@ncino/web-components 4.0.0-preview.11 → 4.0.0-preview.13

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 (46) hide show
  1. package/dist/components/popover/gator/popover.gator.js +49 -0
  2. package/dist/components/popover/index.js +1 -0
  3. package/dist/components/popover/popover.js +1 -0
  4. package/dist/index.gator.js +1 -1
  5. package/dist/index.js +1 -1
  6. package/dist/node_modules/.pnpm/@floating-ui_core@1.7.0/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -1
  7. package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -1
  8. package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +1 -1
  9. package/dist/node_modules/.pnpm/{@vitest_expect@3.1.3 → @vitest_expect@3.1.4}/node_modules/@vitest/expect/dist/index.js +1 -1
  10. package/dist/node_modules/.pnpm/{@vitest_runner@3.1.3 → @vitest_runner@3.1.4}/node_modules/@vitest/runner/dist/index.js +1 -1
  11. package/dist/node_modules/.pnpm/{@vitest_snapshot@3.1.3 → @vitest_snapshot@3.1.4}/node_modules/@vitest/snapshot/dist/index.js +1 -1
  12. package/dist/node_modules/.pnpm/{@vitest_utils@3.1.3 → @vitest_utils@3.1.4}/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +1 -1
  13. package/dist/node_modules/.pnpm/{@vitest_utils@3.1.3 → @vitest_utils@3.1.4}/node_modules/@vitest/utils/dist/diff.js +1 -1
  14. package/dist/node_modules/.pnpm/{vitest@3.1.3_@types_debug@4.1.12_@types_node@22.15.19_@vitest_browser@3.1.3_@vitest_ui@_3180216f6b61ec2f46d7548bbabcaf0e → vitest@3.1.4_@types_debug@4.1.12_@types_node@22.15.19_@vitest_browser@3.1.4_@vitest_ui@_4606f50216b489908c0243553d6b6054}/node_modules/vitest/dist/chunks/utils.CgTj3MsC.js +1 -1
  15. package/dist/node_modules/.pnpm/{vitest@3.1.3_@types_debug@4.1.12_@types_node@22.15.19_@vitest_browser@3.1.3_@vitest_ui@_3180216f6b61ec2f46d7548bbabcaf0e → vitest@3.1.4_@types_debug@4.1.12_@types_node@22.15.19_@vitest_browser@3.1.4_@vitest_ui@_4606f50216b489908c0243553d6b6054}/node_modules/vitest/dist/chunks/vi.ClIskdbk.js +1 -1
  16. package/dist/packages/web-components/public/styles/gator/gator-global-styles.css.js +1 -0
  17. package/dist/packages/web-components/src/components/chip/gator/chip.gator.scss.js +1 -1
  18. package/dist/packages/web-components/src/components/icon-button/gator/icon-button.gator.scss.js +1 -1
  19. package/dist/packages/web-components/src/components/popover/gator/popover.gator.scss.js +1 -0
  20. package/dist/packages/web-components/src/components/popover/popover.scss.js +1 -0
  21. package/dist/packages/web-components/src/tokens/semantic.tokens.scss.js +1 -1
  22. package/dist/types/components/popover/gator/popover.gator.d.ts +31 -0
  23. package/dist/types/components/popover/gator/popover.gator.test.d.ts +0 -0
  24. package/dist/types/components/popover/index.d.ts +1 -0
  25. package/dist/types/components/popover/popover.d.ts +79 -0
  26. package/dist/types/index.d.ts +1 -0
  27. package/dist/types/index.gator.d.ts +1 -0
  28. package/dist/types/utils/accessibility-utils.d.ts +1 -0
  29. package/dist/types/utils/components/slot-placeholder/slot-placeholder.d.ts +1 -1
  30. package/dist/types/utils/vitest-utils.d.ts +1 -0
  31. package/dist/utils/accessibility-utils.js +1 -1
  32. package/dist/utils/components/slot-placeholder/slot-placeholder.js +3 -4
  33. package/dist/utils/vitest-a11y-utils.js +1 -1
  34. package/dist/utils/vitest-utils.js +1 -1
  35. package/package.json +2 -2
  36. package/web-types.json +72 -1
  37. /package/dist/node_modules/.pnpm/{@vitest_browser@3.1.3_msw@2.7.3_@types_node@22.15.19_typescript@5.8.3__playwright@1.52._8b855f36808d26e31e79487036037a75 → @vitest_browser@3.1.4_msw@2.7.3_@types_node@22.15.19_typescript@5.8.3__playwright@1.52._13b8a2a4b2a0901553df50edb95cc02c}/node_modules/@vitest/browser/context.js +0 -0
  38. /package/dist/node_modules/.pnpm/{@vitest_pretty-format@3.1.3 → @vitest_pretty-format@3.1.4}/node_modules/@vitest/pretty-format/dist/index.js +0 -0
  39. /package/dist/node_modules/.pnpm/{@vitest_runner@3.1.3 → @vitest_runner@3.1.4}/node_modules/@vitest/runner/dist/chunk-tasks.js +0 -0
  40. /package/dist/node_modules/.pnpm/{@vitest_spy@3.1.3 → @vitest_spy@3.1.4}/node_modules/@vitest/spy/dist/index.js +0 -0
  41. /package/dist/node_modules/.pnpm/{@vitest_utils@3.1.3 → @vitest_utils@3.1.4}/node_modules/@vitest/utils/dist/error.js +0 -0
  42. /package/dist/node_modules/.pnpm/{@vitest_utils@3.1.3 → @vitest_utils@3.1.4}/node_modules/@vitest/utils/dist/helpers.js +0 -0
  43. /package/dist/node_modules/.pnpm/{@vitest_utils@3.1.3 → @vitest_utils@3.1.4}/node_modules/@vitest/utils/dist/index.js +0 -0
  44. /package/dist/node_modules/.pnpm/{@vitest_utils@3.1.3 → @vitest_utils@3.1.4}/node_modules/@vitest/utils/dist/source-map.js +0 -0
  45. /package/dist/node_modules/.pnpm/{vitest@3.1.3_@types_debug@4.1.12_@types_node@22.15.19_@vitest_browser@3.1.3_@vitest_ui@_3180216f6b61ec2f46d7548bbabcaf0e → vitest@3.1.4_@types_debug@4.1.12_@types_node@22.15.19_@vitest_browser@3.1.4_@vitest_ui@_4606f50216b489908c0243553d6b6054}/node_modules/vitest/dist/chunks/_commonjsHelpers.BFTU3MAI.js +0 -0
  46. /package/dist/node_modules/.pnpm/{vitest@3.1.3_@types_debug@4.1.12_@types_node@22.15.19_@vitest_browser@3.1.3_@vitest_ui@_3180216f6b61ec2f46d7548bbabcaf0e → vitest@3.1.4_@types_debug@4.1.12_@types_node@22.15.19_@vitest_browser@3.1.4_@vitest_ui@_4606f50216b489908c0243553d6b6054}/node_modules/vitest/dist/chunks/date.CDOsz-HY.js +0 -0
@@ -0,0 +1,49 @@
1
+ import{NjcPopover as g}from"../popover.js";import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as p,nothing as u}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import{LitElement as v}from"../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{ref as b}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js";import{customElement as _}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import y from"../../../packages/web-components/src/components/popover/gator/popover.gator.scss.js";import P from"../../../packages/web-components/src/components/popover/popover.scss.js";import E from"../../../packages/web-components/src/tokens/primitive.tokens.scss.js";import k from"../../../packages/web-components/src/tokens/semantic.tokens.scss.js";import{autoUpdate as w,computePosition as O,autoPlacement as S}from"../../../node_modules/.pnpm/@floating-ui_dom@1.7.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.js";import $ from"../../../packages/web-components/public/styles/gator/gator-global-styles.css.js";import{KEY_CONSTANTS as l}from"../../../consts/key-constants.js";import{msg as x}from"../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import"../../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{unsafeCSS as h}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var R=Object.getOwnPropertyDescriptor,C=(t,e,i,r)=>{for(var o=r>1?void 0:r?R(e,i):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(o=n(o)||o);return o};let m=class extends g{render(){return p`
2
+ <div
3
+ ${b(this._popoverRef)}
4
+ id="${this.popoverId}"
5
+ class="gator-popover ${this._nubbinPositionClass} gator-popover-${this.size}"
6
+ aria-label="${this.title}"
7
+ role="dialog"
8
+ >
9
+ ${this._closeButtonMarkup}
10
+ ${this._bodyMarkup}
11
+ ${this._footerMarkup}
12
+ </div>
13
+ `}get _closeButtonMarkup(){return p`
14
+ <ngc-icon-button
15
+ id="gator-popover-close"
16
+ .ariaLabel="${x("Close")} ${this.title}"
17
+ icon-name="exit"
18
+ size="xsmall"
19
+ @click="${this.hidePopover}"
20
+ @keydown="${this._handleKeyDown}"
21
+ ></ngc-icon-button>
22
+ `}get _bodyMarkup(){return p`
23
+ <div class="gator-popover-body">
24
+ <slot name="labels"></slot>
25
+ <div class="gator-popover-body-container">
26
+ ${this.iconName?p`
27
+ <ngc-icon
28
+ name="${this.iconName}"
29
+ width="24"
30
+ height="24"
31
+ ></ngc-icon>
32
+ `:u}
33
+
34
+ <div class="gator-popover-body-content">
35
+ <span class="gator-popover-body-title">${this.title}</span>
36
+ <slot
37
+ id="gator-popover-content-slot"
38
+ name="content"
39
+ ></slot>
40
+ </div>
41
+ </div>
42
+ </div>
43
+ `}get _footerMarkup(){return p`
44
+ <div class="gator-popover-divider"></div>
45
+ <div class="gator-popover-footer">
46
+ ${this.errorText?p`<ngc-help-text icon error>${this.errorText}</ngc-help-text>`:u}
47
+ <slot name="footer"></slot>
48
+ </div>
49
+ `}get _computedPlacement(){return this.placement||this._placement}get _xPositionOffset(){return this._computedPlacement.includes("left")?-12+this.xOffset:this._computedPlacement.includes("right")?12+this.xOffset:0}get _yPositionOffset(){return this._computedPlacement.includes("top")?-12+this.yOffset:this._computedPlacement.includes("bottom")?12+this.yOffset:0}get _nubbinPositionClass(){return{"top-start":"gator-popover-nubbin_bottom-start",top:"gator-popover-nubbin_bottom-center","top-end":"gator-popover-nubbin_bottom-end","right-start":"gator-popover-nubbin_left-start",right:"gator-popover-nubbin_left-center","right-end":"gator-popover-nubbin_left-end","bottom-start":"gator-popover-nubbin_top-start",bottom:"gator-popover-nubbin_top-center","bottom-end":"gator-popover-nubbin_top-end","left-start":"gator-popover-nubbin_right-start",left:"gator-popover-nubbin_right-center","left-end":"gator-popover-nubbin_right-end"}[this._computedPlacement]}connectedCallback(){super.connectedCallback(),this.addTrackedEventListener(this.referenceElement,"keydown",t=>{(t.key===l.SPACE||t.key===l.ENTER)&&(t.preventDefault(),t.stopPropagation(),this.showPopover(!0))})}firstUpdated(){var o,s;super.firstUpdated();const t=(o=this.shadowRoot)==null?void 0:o.querySelector('slot[name="footer"]'),e=(s=this.shadowRoot)==null?void 0:s.querySelector(".gator-popover-footer"),i=!!t&&t.assignedNodes().length>0,r=!!this.errorText;e&&(e.style.display=i||r?"flex":"none")}updated(t){super.updated(t),t.has("placement")&&(this._cleanup&&this._cleanup(),this.assignPosition(),this.requestUpdate())}assignPosition(){const t=this.referenceElement;if(!this._popoverRef||!this._popoverRef.value||!t)return;const e={placement:this.placement},i={middleware:[S({allowedPlacements:["top-start","top","top-end","right-start","right","right-end","bottom-start","bottom","bottom-end","left-start","left","left-end"],padding:5})]},o=!!this.placement?e:i;this._cleanup=w(t,this._popoverRef.value,async()=>{if(!this._popoverRef||!this._popoverRef.value||!t)return;const{x:s,y:n,placement:a}=await O(t,this._popoverRef.value,o);this._placement!==a&&(this._placement=a,this.requestUpdate()),Object.assign(this._popoverRef.value.style,{left:`${s+this._xPositionOffset}px`,top:`${n+this._yPositionOffset}px`})})}showPopover(t=!1){super.showPopover(t),this.addEventListener("keydown",this._handleKeyDown)}hidePopover(){var i,r;super.hidePopover();const t=(i=this.shadowRoot)==null?void 0:i.querySelector("#gator-popover-close"),e=(r=t==null?void 0:t.shadowRoot)==null?void 0:r.firstElementChild;e==null||e.classList.remove("no-focus-visible")}_handleKeyDown(t){var r,o,s,n;const i=(t.key===l.SPACE||t.key===l.ENTER)&&((r=t.target)==null?void 0:r.id)==="gator-popover-close";if((t.key===l.ESCAPE||i)&&(t.preventDefault(),this.hidePopover(),this.referenceElement.focus()),t.key===l.TAB){const a=this._getKeyboardFocusableElements(),c=((o=this.shadowRoot)==null?void 0:o.activeElement)??document.activeElement,d=a[0],f=a[a.length-1];(n=(s=c==null?void 0:c.shadowRoot)==null?void 0:s.firstElementChild)==null||n.classList.remove("no-focus-visible"),t.shiftKey?c===d&&(t.preventDefault(),t.stopPropagation(),f.focus()):c===f&&(t.preventDefault(),t.stopPropagation(),d.focus())}}};m.shadowRootOptions={...v.shadowRootOptions,delegatesFocus:!0,mode:"open"};m.styles=[h(y),h(P),h(E),h(k),h($)];m=C([_("ngc-popover")],m);export{m as NgcPopover};
@@ -0,0 +1 @@
1
+ import*as o from"./gator/popover.gator.js";export{o as NgcPopover};
@@ -0,0 +1 @@
1
+ import{property as n}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{createRef as u}from"../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/directives/ref.js";import{generateRandomId as m}from"../../utils/string-utils.js";import{TestableLitElement as E}from"../../utils/components/testable-lit-element/testable-lit-element.js";import{handleDataTestid as p}from"../../utils/datatestid-utils.js";import{getFirstFocusableElement as y,getFocusableElements as v}from"../../utils/accessibility-utils.js";var _=Object.defineProperty,a=(l,e,t,s)=>{for(var o=void 0,i=l.length-1,r;i>=0;i--)(r=l[i])&&(o=r(e,t,o)||o);return o&&_(e,t,o),o};class h extends E{constructor(){super(...arguments),this.referenceId="",this.title="",this.xOffset=0,this.yOffset=0,this.iconName=void 0,this.errorText=void 0,this.size="medium",this.showOnHover=!1,this._popoverRef=u(),this._forceOpen=!1,this._mousedInsidePopover=!1,this._placement="top",this.popoverId=m(),this.elementListeners=new WeakMap}firstUpdated(){var o,i,r;if(this._popoverRef.value&&(this._popoverRef.value.style.visibility="hidden",this._popoverRef.value.style.opacity="0"),!this.referenceId)return;const e=this.referenceElement,t=this._popoverRef.value;let s;(o=e.shadowRoot)!=null&&o.delegatesFocus?s=y(e):s=e,s&&(s.ariaDescribedByElements=[this]),e&&t&&(p(e,this.dataTestid,"trigger"),p(t,this.dataTestid,"popover"),(r=(i=e.shadowRoot)==null?void 0:i.firstElementChild)==null||r.setAttribute("aria-expanded","false"),this.showOnHover?this._addShowOnHoverEvents(e,t):this._addShowOnClickEvents(e,t))}updated(e){if(super.updated(e),e.has("showOnHover")&&e.get("showOnHover")!==void 0){const t=this.referenceElement,s=this._popoverRef.value;s&&(this.removeAllTrackedEventListeners(t),this.removeAllTrackedEventListeners(s),this.removeAllTrackedEventListeners(document),this.showOnHover?this._addShowOnHoverEvents(t,s):this._addShowOnClickEvents(t,s))}}get referenceElement(){var t,s;let e=document.querySelector(`#${this.referenceId}`);return e||(e=(s=(t=document.querySelector(`[data-id="${this.referenceId}"]`))==null?void 0:t.shadowRoot)==null?void 0:s.querySelector(`#${this.referenceId}`)),e}_addShowOnHoverEvents(e,t){this.addTrackedEventListener(e,"mouseenter",()=>this.showPopover()),this.addTrackedEventListener(e,"mouseleave",s=>this._handleMouseLeave(s,e,t)),this.addTrackedEventListener(e,"click",()=>this.showPopover(!0)),this.addTrackedEventListener(t,"mouseenter",()=>this.showPopover()),this.addTrackedEventListener(t,"mouseleave",s=>{if(this._mousedInsidePopover){this.hidePopover();return}this._handleMouseLeave(s,e,t)})}_addShowOnClickEvents(e,t){this.addTrackedEventListener(e,"click",()=>this.showPopover()),this.addTrackedEventListener(document,"click",s=>{const o=t.getBoundingClientRect(),i=s.target===e;!(this._isMouseInside(s,o,25)||this._hasPopoverAsParent(s.target))&&!i&&this.hidePopover()})}_hasPopoverAsParent(e){let t=e==null?void 0:e.parentElement;for(;t&&t.tagName.toLowerCase()!=="ngc-popover";)t=t==null?void 0:t.parentElement;return!!t}addTrackedEventListener(e,t,s,o={}){this.elementListeners.has(e)||this.elementListeners.set(e,[]),this.elementListeners.get(e).push({eventType:t,listener:s,options:o}),e.addEventListener(t,s,o)}removeAllTrackedEventListeners(e){if(!this.elementListeners.has(e))return;const t=this.elementListeners.get(e);for(const{eventType:s,listener:o,options:i}of t)e.removeEventListener(s,o,i);this.elementListeners.delete(e)}_handleMouseLeave(e,t,s){const o=t.getBoundingClientRect(),i=s.getBoundingClientRect(),r=this._isMouseInside(e,o,-5),d=this._isMouseInside(e,i,25);!r&&!d&&this.hidePopover(),d&&(this._mousedInsidePopover=!0)}_isMouseInside(e,t,s=0){const{left:o,right:i,top:r,bottom:d}=t,c=e.clientX,f=e.clientY;return c>=o-s&&c<=i+s&&f>=r-s&&f<=d+s}showPopover(e=!1){var o,i;this.assignPosition();const t=this.referenceElement,s=this._popoverRef.value;s&&(s.style.visibility="visible",s.style.opacity="1"),t&&((i=(o=t.shadowRoot)==null?void 0:o.firstElementChild)==null||i.setAttribute("aria-expanded","true")),this._focusFirstElement(e)}hidePopover(){var e,t;this._forceOpen||(this._popoverRef.value&&(this._popoverRef.value.style.visibility="hidden",this._popoverRef.value.style.opacity="0"),this.referenceElement&&((t=(e=this.referenceElement.shadowRoot)==null?void 0:e.firstElementChild)==null||t.setAttribute("aria-expanded","false")))}_getKeyboardFocusableElements(){var s;let e=[];const t=(s=this.shadowRoot)==null?void 0:s.querySelector('slot[name="footer"]');if(this.shadowRoot&&(e=e.concat(v(this.shadowRoot))),t){const o=Array.from(t.assignedElements());for(const i of o)e=e.concat(v(i))}return e.filter(o=>!o.hasAttribute("disabled")&&!o.hasAttribute("aria-hidden"))}_focusFirstElement(e=!1){const t=this._getKeyboardFocusableElements();if(t.length>0){const s=t[0];requestAnimationFrame(()=>{var i;let o;e?o=s:(o=(i=s.shadowRoot)==null?void 0:i.firstElementChild,o==null||o.classList.add("no-focus-visible")),o==null||o.focus()})}}assignPosition(){}disconnectedCallback(){this._cleanup&&this._cleanup(),super.disconnectedCallback()}}a([n({attribute:"reference-id"})],h.prototype,"referenceId");a([n({type:String})],h.prototype,"title");a([n()],h.prototype,"placement");a([n({type:Number,attribute:"x-offset"})],h.prototype,"xOffset");a([n({type:Number,attribute:"y-offset"})],h.prototype,"yOffset");a([n({type:String,attribute:"icon-name"})],h.prototype,"iconName");a([n({type:String,attribute:"error-text"})],h.prototype,"errorText");a([n()],h.prototype,"size");a([n({type:Boolean,attribute:"show-on-hover"})],h.prototype,"showOnHover");export{h as NjcPopover};
@@ -1 +1 @@
1
- import*as o from"./components/accordion/gator/base/accordion.gator.js";import*as t from"./components/accordion/gator/group/accordion-group.gator.js";import*as r from"./components/alert/gator/base/alert.gator.js";import*as a from"./components/alert/gator/subtitle/alert-subtitle.gator.js";import*as e from"./components/alert/gator/title/alert-title.gator.js";import*as p from"./components/avatar/gator/avatar.gator.js";import"./components/badge/slds/badge.slds.js";import*as n from"./components/badge/gator/badge.gator.js";import*as s from"./components/banner/gator/banner.gator.js";import*as m from"./components/boolean/boolean.gator.js";import*as i from"./components/breadcrumbs/gator/container/breadcrumbs.gator.js";import"./components/button/slds/button.slds.js";import*as c from"./components/button/gator/button.gator.js";import*as u from"./components/button-card/gator/button-card.gator.js";import*as x from"./components/button-group/gator/button-group.gator.js";import*as l from"./components/card/gator/base/card.gator.js";import*as d from"./components/card/gator/header/card-header.gator.js";import*as f from"./components/card/gator/content/card-content.gator.js";import*as N from"./components/card/gator/footer/card-footer.gator.js";import*as b from"./components/checkbox/checkbox.gator.js";import*as C from"./components/checkbox-group/checkbox-group.gator.js";import*as T from"./components/chip/gator/chip.gator.js";import*as h from"./components/display-card/gator/display-card.gator.js";import*as I from"./components/divider/gator/divider.gator.js";import*as B from"./components/fab/gator/fab.gator.js";import*as k from"./components/headline-card/gator/headline-card.gator.js";import*as P from"./components/input/gator/input-currency/input-currency.gator.js";import*as G from"./components/input/gator/input-date/input-date.gator.js";import*as L from"./components/input/gator/input-label/input-label.gator.js";import*as S from"./components/input/gator/help-text/help-text.gator.js";import*as D from"./components/input/gator/input-text/input-text.gator.js";import*as v from"./components/input/gator/input-textarea/input-textarea.gator.js";import*as w from"./components/input/gator/input-masked/input-masked.gator.js";import*as F from"./components/input/gator/input-percent/input-percent.gator.js";import*as H from"./components/input/gator/input-phone/input-phone.gator.js";import*as y from"./components/input/gator/dropdown/input-dropdown.gator.js";import*as A from"./components/input/gator/input-file/input-file.gator.js";import*as M from"./components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.js";import*as U from"./components/input/gator/input-search/input-search.gator.js";import*as R from"./components/input/gator/input-time/input-time.gator.js";import"./components/icon/slds/icon.slds.js";import*as q from"./components/icon/gator/icon.gator.js";import*as z from"./components/icon-button/gator/icon-button.gator.js";import*as E from"./components/list/gator/list/list.gator.js";import*as J from"./components/list/gator/list-item/list-item.gator.js";import*as K from"./components/loading-spinner/gator/loading-spinner.gator.js";import"./components/menu/base/slds/menu.slds.js";import*as Q from"./components/menu/base/gator/menu.gator.js";import"./components/menu/menu-divider/menu-divider.slds.js";import"./components/menu/menu-item/slds/menu-item.slds.js";import*as X from"./components/menu/menu-item/gator/menu-item.gator.js";import"./components/menu/menu-submenu/menu-submenu.slds.js";import*as Z from"./components/modal/gator/modal.gator.js";import*as $ from"./components/page-header/gator/page-header.gator.js";import*as oo from"./components/panel/gator/panel.gator.js";import*as to from"./components/progress-bar/gator/progress-bar.gator.js";import*as ro from"./components/radio/radio.gator.js";import*as ao from"./components/radio-group/radio-group.gator.js";import*as eo from"./components/selection-box/selection-box.gator.js";import*as po from"./components/selection-box-group/selection-box-group.gator.js";import*as _o from"./components/skeleton-loader/gator/skeleton-loader.gator.js";import*as no from"./components/switch/gator/switch.gator.js";import*as so from"./components/tabs/gator/tabset/tabset.gator.js";import*as mo from"./components/tabs/gator/tab/tab.gator.js";import*as io from"./components/text-detail/gator/text-detail.gator.js";import*as go from"./components/text-link/gator/text-link.gator.js";import*as co from"./components/time-picker/gator/time-picker.gator.js";import*as uo from"./components/toast/gator/base/toast.gator.js";import*as xo from"./components/tooltip/gator/tooltip.gator.js";import"./components/tooltip/slds/tooltip.slds.js";import*as fo from"./components/table/gator/table.gator.js";import*as No from"./components/table/gator/table-pagination/table-pagination.gator.js";import*as bo from"./components/table/gator/table-controls/table-controls.gator.js";export{o as NgcAccordion,t as NgcAccordionGroup,r as NgcAlert,a as NgcAlertSubtitle,e as NgcAlertTitle,p as NgcAvatar,n as NgcBadge,s as NgcBanner,m as NgcBoolean,i as NgcBreadcrumbs,c as NgcButton,u as NgcButtonCard,x as NgcButtonGroup,l as NgcCard,f as NgcCardContent,N as NgcCardFooter,d as NgcCardHeader,b as NgcCheckbox,C as NgcCheckboxGroup,T as NgcChip,h as NgcDisplayCard,I as NgcDivider,B as NgcFab,k as NgcHeadlineCard,S as NgcHelpText,q as NgcIcon,z as NgcIconButton,P as NgcInputCurrency,G as NgcInputDate,y as NgcInputDropdown,A as NgcInputFile,M as NgcInputFileUploadedPreview,L as NgcInputLabel,w as NgcInputMasked,F as NgcInputPercent,H as NgcInputPhone,U as NgcInputSearch,D as NgcInputText,v as NgcInputTextarea,R as NgcInputTime,E as NgcList,J as NgcListItem,K as NgcLoadingSpinner,Q as NgcMenu,X as NgcMenuItem,Z as NgcModal,$ as NgcPageHeader,oo as NgcPanel,to as NgcProgressBar,ro as NgcRadio,ao as NgcRadioGroup,eo as NgcSelectionBox,po as NgcSelectionBoxGroup,_o as NgcSkeletonLoader,no as NgcSwitch,mo as NgcTab,fo as NgcTable,bo as NgcTableControls,No as NgcTablePagination,so as NgcTabs,io as NgcTextDetail,go as NgcTextLink,co as NgcTimePicker,uo as NgcToast,xo as NgcTooltip};
1
+ import*as o from"./components/accordion/gator/base/accordion.gator.js";import*as t from"./components/accordion/gator/group/accordion-group.gator.js";import*as r from"./components/alert/gator/base/alert.gator.js";import*as a from"./components/alert/gator/subtitle/alert-subtitle.gator.js";import*as e from"./components/alert/gator/title/alert-title.gator.js";import*as p from"./components/avatar/gator/avatar.gator.js";import"./components/badge/slds/badge.slds.js";import*as n from"./components/badge/gator/badge.gator.js";import*as s from"./components/banner/gator/banner.gator.js";import*as m from"./components/boolean/boolean.gator.js";import*as g from"./components/breadcrumbs/gator/container/breadcrumbs.gator.js";import"./components/button/slds/button.slds.js";import*as c from"./components/button/gator/button.gator.js";import*as u from"./components/button-card/gator/button-card.gator.js";import*as x from"./components/button-group/gator/button-group.gator.js";import*as l from"./components/card/gator/base/card.gator.js";import*as d from"./components/card/gator/header/card-header.gator.js";import*as f from"./components/card/gator/content/card-content.gator.js";import*as N from"./components/card/gator/footer/card-footer.gator.js";import*as b from"./components/checkbox/checkbox.gator.js";import*as C from"./components/checkbox-group/checkbox-group.gator.js";import*as T from"./components/chip/gator/chip.gator.js";import*as h from"./components/display-card/gator/display-card.gator.js";import*as I from"./components/divider/gator/divider.gator.js";import*as B from"./components/fab/gator/fab.gator.js";import*as P from"./components/headline-card/gator/headline-card.gator.js";import*as k from"./components/input/gator/input-currency/input-currency.gator.js";import*as G from"./components/input/gator/input-date/input-date.gator.js";import*as v from"./components/input/gator/input-label/input-label.gator.js";import*as L from"./components/input/gator/help-text/help-text.gator.js";import*as S from"./components/input/gator/input-text/input-text.gator.js";import*as D from"./components/input/gator/input-textarea/input-textarea.gator.js";import*as w from"./components/input/gator/input-masked/input-masked.gator.js";import*as F from"./components/input/gator/input-percent/input-percent.gator.js";import*as H from"./components/input/gator/input-phone/input-phone.gator.js";import*as y from"./components/input/gator/dropdown/input-dropdown.gator.js";import*as A from"./components/input/gator/input-file/input-file.gator.js";import*as M from"./components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.js";import*as U from"./components/input/gator/input-search/input-search.gator.js";import*as R from"./components/input/gator/input-time/input-time.gator.js";import"./components/icon/slds/icon.slds.js";import*as q from"./components/icon/gator/icon.gator.js";import*as z from"./components/icon-button/gator/icon-button.gator.js";import*as E from"./components/list/gator/list/list.gator.js";import*as J from"./components/list/gator/list-item/list-item.gator.js";import*as K from"./components/loading-spinner/gator/loading-spinner.gator.js";import"./components/menu/base/slds/menu.slds.js";import*as Q from"./components/menu/base/gator/menu.gator.js";import"./components/menu/menu-divider/menu-divider.slds.js";import"./components/menu/menu-item/slds/menu-item.slds.js";import*as X from"./components/menu/menu-item/gator/menu-item.gator.js";import"./components/menu/menu-submenu/menu-submenu.slds.js";import*as Z from"./components/modal/gator/modal.gator.js";import*as $ from"./components/page-header/gator/page-header.gator.js";import*as oo from"./components/panel/gator/panel.gator.js";import*as to from"./components/popover/gator/popover.gator.js";import*as ro from"./components/progress-bar/gator/progress-bar.gator.js";import*as ao from"./components/radio/radio.gator.js";import*as eo from"./components/radio-group/radio-group.gator.js";import*as po from"./components/selection-box/selection-box.gator.js";import*as _o from"./components/selection-box-group/selection-box-group.gator.js";import*as no from"./components/skeleton-loader/gator/skeleton-loader.gator.js";import*as so from"./components/switch/gator/switch.gator.js";import*as mo from"./components/tabs/gator/tabset/tabset.gator.js";import*as go from"./components/tabs/gator/tab/tab.gator.js";import*as io from"./components/text-detail/gator/text-detail.gator.js";import*as co from"./components/text-link/gator/text-link.gator.js";import*as uo from"./components/time-picker/gator/time-picker.gator.js";import*as xo from"./components/toast/gator/base/toast.gator.js";import*as lo from"./components/tooltip/gator/tooltip.gator.js";import"./components/tooltip/slds/tooltip.slds.js";import*as No from"./components/table/gator/table.gator.js";import*as bo from"./components/table/gator/table-pagination/table-pagination.gator.js";import*as Co from"./components/table/gator/table-controls/table-controls.gator.js";export{o as NgcAccordion,t as NgcAccordionGroup,r as NgcAlert,a as NgcAlertSubtitle,e as NgcAlertTitle,p as NgcAvatar,n as NgcBadge,s as NgcBanner,m as NgcBoolean,g as NgcBreadcrumbs,c as NgcButton,u as NgcButtonCard,x as NgcButtonGroup,l as NgcCard,f as NgcCardContent,N as NgcCardFooter,d as NgcCardHeader,b as NgcCheckbox,C as NgcCheckboxGroup,T as NgcChip,h as NgcDisplayCard,I as NgcDivider,B as NgcFab,P as NgcHeadlineCard,L as NgcHelpText,q as NgcIcon,z as NgcIconButton,k as NgcInputCurrency,G as NgcInputDate,y as NgcInputDropdown,A as NgcInputFile,M as NgcInputFileUploadedPreview,v as NgcInputLabel,w as NgcInputMasked,F as NgcInputPercent,H as NgcInputPhone,U as NgcInputSearch,S as NgcInputText,D as NgcInputTextarea,R as NgcInputTime,E as NgcList,J as NgcListItem,K as NgcLoadingSpinner,Q as NgcMenu,X as NgcMenuItem,Z as NgcModal,$ as NgcPageHeader,oo as NgcPanel,to as NgcPopover,ro as NgcProgressBar,ao as NgcRadio,eo as NgcRadioGroup,po as NgcSelectionBox,_o as NgcSelectionBoxGroup,no as NgcSkeletonLoader,so as NgcSwitch,go as NgcTab,No as NgcTable,Co as NgcTableControls,bo as NgcTablePagination,mo as NgcTabs,io as NgcTextDetail,co as NgcTextLink,uo as NgcTimePicker,xo as NgcToast,lo as NgcTooltip};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import*as o from"./components/accordion/gator/base/accordion.gator.js";import*as t from"./components/accordion/gator/group/accordion-group.gator.js";import*as r from"./components/alert/gator/base/alert.gator.js";import*as a from"./components/alert/gator/subtitle/alert-subtitle.gator.js";import*as e from"./components/alert/gator/title/alert-title.gator.js";import*as p from"./components/avatar/gator/avatar.gator.js";import*as s from"./components/badge/slds/badge.slds.js";import*as _ from"./components/badge/gator/badge.gator.js";import*as n from"./components/banner/gator/banner.gator.js";import*as m from"./components/boolean/boolean.gator.js";import*as i from"./components/breadcrumbs/gator/container/breadcrumbs.gator.js";import*as c from"./components/button/slds/button.slds.js";import*as g from"./components/button/gator/button.gator.js";import*as u from"./components/button-card/gator/button-card.gator.js";import*as x from"./components/card/gator/base/card.gator.js";import*as d from"./components/card/gator/header/card-header.gator.js";import*as l from"./components/card/gator/content/card-content.gator.js";import*as f from"./components/card/gator/footer/card-footer.gator.js";import*as N from"./components/checkbox/checkbox.gator.js";import*as b from"./components/checkbox-group/checkbox-group.gator.js";import*as I from"./components/chip/gator/chip.gator.js";import*as T from"./components/combobox/base/index.js";import*as h from"./components/combobox/combobox-item/index.js";import*as C from"./components/display-card/gator/display-card.gator.js";import*as B from"./components/divider/gator/divider.gator.js";import*as k from"./components/fab/gator/fab.gator.js";import*as L from"./components/headline-card/gator/headline-card.gator.js";import*as D from"./components/icon/slds/icon.slds.js";import*as S from"./components/icon/gator/icon.gator.js";import*as v from"./components/icon-button/gator/icon-button.gator.js";import*as G from"./components/input/gator/input-currency/input-currency.gator.js";import*as P from"./components/input/gator/input-date/input-date.gator.js";import*as M from"./components/input/gator/input-label/input-label.gator.js";import*as w from"./components/input/gator/help-text/help-text.gator.js";import*as F from"./components/input/gator/input-text/input-text.gator.js";import*as H from"./components/input/gator/input-textarea/input-textarea.gator.js";import*as y from"./components/input/gator/input-masked/input-masked.gator.js";import*as A from"./components/input/gator/input-percent/input-percent.gator.js";import*as R from"./components/input/gator/input-phone/input-phone.gator.js";import*as E from"./components/input/gator/dropdown/input-dropdown.gator.js";import*as U from"./components/input/gator/input-file/input-file.gator.js";import*as j from"./components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.js";import*as q from"./components/input/gator/input-search/input-search.gator.js";import*as z from"./components/input/gator/input-time/input-time.gator.js";import*as J from"./components/input/slds/input-text/input-text.slds.js";import*as K from"./components/input/slds/input-error/input-error.slds.js";import*as O from"./components/input/slds/input-label/input-label.slds.js";import*as Q from"./components/input-rich-text/input-rich-text.slds.js";import*as V from"./components/list/gator/list/list.gator.js";import*as W from"./components/list/gator/list-item/list-item.gator.js";import*as X from"./components/menu/base/slds/menu.slds.js";import*as Y from"./components/menu/base/gator/menu.gator.js";import*as Z from"./components/menu/menu-divider/menu-divider.slds.js";import*as $ from"./components/menu/menu-item/slds/menu-item.slds.js";import*as oo from"./components/menu/menu-item/gator/menu-item.gator.js";import*as to from"./components/menu/menu-submenu/menu-submenu.slds.js";import*as ro from"./components/modal/gator/modal.gator.js";import*as ao from"./components/page-header/gator/page-header.gator.js";import*as eo from"./components/pill/pill.js";import*as po from"./components/radio/radio.gator.js";import*as so from"./components/radio-group/radio-group.gator.js";import*as _o from"./components/scoped-notification/scoped-notification.slds.js";import*as no from"./components/selection-box/selection-box.gator.js";import*as mo from"./components/selection-box-group/selection-box-group.gator.js";import*as io from"./components/skeleton-loader/gator/skeleton-loader.gator.js";import*as co from"./components/switch/gator/switch.gator.js";import*as go from"./components/tabs/gator/tabset/tabset.gator.js";import*as uo from"./components/tabs/gator/tab/tab.gator.js";import*as xo from"./components/text-detail/gator/text-detail.gator.js";import*as lo from"./components/text-link/gator/text-link.gator.js";import*as fo from"./components/toast/gator/base/toast.gator.js";import*as No from"./components/tooltip/gator/tooltip.gator.js";import*as bo from"./components/tooltip/slds/tooltip.slds.js";export{o as NgcAccordion,t as NgcAccordionGroup,r as NgcAlert,a as NgcAlertSubtitle,e as NgcAlertTitle,p as NgcAvatar,_ as NgcBadge,n as NgcBanner,m as NgcBoolean,i as NgcBreadcrumbs,g as NgcButton,u as NgcButtonCard,x as NgcCard,l as NgcCardContent,f as NgcCardFooter,d as NgcCardHeader,N as NgcCheckbox,b as NgcCheckboxGroup,I as NgcChip,C as NgcDisplayCard,B as NgcDivider,k as NgcFab,L as NgcHeadlineCard,w as NgcHelpText,S as NgcIcon,v as NgcIconButton,G as NgcInputCurrency,P as NgcInputDate,E as NgcInputDropdown,U as NgcInputFile,j as NgcInputFileUploadedPreview,M as NgcInputLabel,y as NgcInputMasked,A as NgcInputPercent,R as NgcInputPhone,q as NgcInputSearch,F as NgcInputText,H as NgcInputTextarea,z as NgcInputTime,V as NgcList,W as NgcListItem,Y as NgcMenu,oo as NgcMenuItem,ro as NgcModal,ao as NgcPageHeader,po as NgcRadio,so as NgcRadioGroup,no as NgcSelectionBox,mo as NgcSelectionBoxGroup,io as NgcSkeletonLoader,co as NgcSwitch,uo as NgcTab,go as NgcTabs,xo as NgcTextDetail,lo as NgcTextLink,fo as NgcToast,No as NgcTooltip,s as NscBadge,c as NscButton,T as NscCombobox,h as NscComboboxItem,D as NscIcon,K as NscInputError,O as NscInputLabel,Q as NscInputRichText,J as NscInputText,X as NscMenu,Z as NscMenuDivider,$ as NscMenuItem,to as NscMenuSubmenu,eo as NscPill,_o as NscScopedNotification,bo as NscTooltip};
1
+ import*as o from"./components/accordion/gator/base/accordion.gator.js";import*as t from"./components/accordion/gator/group/accordion-group.gator.js";import*as r from"./components/alert/gator/base/alert.gator.js";import*as a from"./components/alert/gator/subtitle/alert-subtitle.gator.js";import*as e from"./components/alert/gator/title/alert-title.gator.js";import*as p from"./components/avatar/gator/avatar.gator.js";import*as s from"./components/badge/slds/badge.slds.js";import*as _ from"./components/badge/gator/badge.gator.js";import*as n from"./components/banner/gator/banner.gator.js";import*as m from"./components/boolean/boolean.gator.js";import*as i from"./components/breadcrumbs/gator/container/breadcrumbs.gator.js";import*as c from"./components/button/slds/button.slds.js";import*as g from"./components/button/gator/button.gator.js";import*as u from"./components/button-card/gator/button-card.gator.js";import*as x from"./components/card/gator/base/card.gator.js";import*as d from"./components/card/gator/header/card-header.gator.js";import*as l from"./components/card/gator/content/card-content.gator.js";import*as f from"./components/card/gator/footer/card-footer.gator.js";import*as N from"./components/checkbox/checkbox.gator.js";import*as b from"./components/checkbox-group/checkbox-group.gator.js";import*as I from"./components/chip/gator/chip.gator.js";import*as T from"./components/combobox/base/index.js";import*as h from"./components/combobox/combobox-item/index.js";import*as C from"./components/display-card/gator/display-card.gator.js";import*as B from"./components/divider/gator/divider.gator.js";import*as k from"./components/fab/gator/fab.gator.js";import*as v from"./components/headline-card/gator/headline-card.gator.js";import*as L from"./components/icon/slds/icon.slds.js";import*as D from"./components/icon/gator/icon.gator.js";import*as S from"./components/icon-button/gator/icon-button.gator.js";import*as P from"./components/input/gator/input-currency/input-currency.gator.js";import*as G from"./components/input/gator/input-date/input-date.gator.js";import*as M from"./components/input/gator/input-label/input-label.gator.js";import*as w from"./components/input/gator/help-text/help-text.gator.js";import*as F from"./components/input/gator/input-text/input-text.gator.js";import*as H from"./components/input/gator/input-textarea/input-textarea.gator.js";import*as y from"./components/input/gator/input-masked/input-masked.gator.js";import*as A from"./components/input/gator/input-percent/input-percent.gator.js";import*as R from"./components/input/gator/input-phone/input-phone.gator.js";import*as E from"./components/input/gator/dropdown/input-dropdown.gator.js";import*as U from"./components/input/gator/input-file/input-file.gator.js";import*as j from"./components/input/gator/input-file/file-uploaded-preview/file-upload-preview.gator.js";import*as q from"./components/input/gator/input-search/input-search.gator.js";import*as z from"./components/input/gator/input-time/input-time.gator.js";import*as J from"./components/input/slds/input-text/input-text.slds.js";import*as K from"./components/input/slds/input-error/input-error.slds.js";import*as O from"./components/input/slds/input-label/input-label.slds.js";import*as Q from"./components/input-rich-text/input-rich-text.slds.js";import*as V from"./components/list/gator/list/list.gator.js";import*as W from"./components/list/gator/list-item/list-item.gator.js";import*as X from"./components/menu/base/slds/menu.slds.js";import*as Y from"./components/menu/base/gator/menu.gator.js";import*as Z from"./components/menu/menu-divider/menu-divider.slds.js";import*as $ from"./components/menu/menu-item/slds/menu-item.slds.js";import*as oo from"./components/menu/menu-item/gator/menu-item.gator.js";import*as to from"./components/menu/menu-submenu/menu-submenu.slds.js";import*as ro from"./components/modal/gator/modal.gator.js";import*as ao from"./components/page-header/gator/page-header.gator.js";import*as eo from"./components/pill/pill.js";import*as po from"./components/popover/gator/popover.gator.js";import*as so from"./components/radio/radio.gator.js";import*as _o from"./components/radio-group/radio-group.gator.js";import*as no from"./components/scoped-notification/scoped-notification.slds.js";import*as mo from"./components/selection-box/selection-box.gator.js";import*as io from"./components/selection-box-group/selection-box-group.gator.js";import*as co from"./components/skeleton-loader/gator/skeleton-loader.gator.js";import*as go from"./components/switch/gator/switch.gator.js";import*as uo from"./components/tabs/gator/tabset/tabset.gator.js";import*as xo from"./components/tabs/gator/tab/tab.gator.js";import*as lo from"./components/text-detail/gator/text-detail.gator.js";import*as fo from"./components/text-link/gator/text-link.gator.js";import*as No from"./components/toast/gator/base/toast.gator.js";import*as bo from"./components/tooltip/gator/tooltip.gator.js";import*as Io from"./components/tooltip/slds/tooltip.slds.js";export{o as NgcAccordion,t as NgcAccordionGroup,r as NgcAlert,a as NgcAlertSubtitle,e as NgcAlertTitle,p as NgcAvatar,_ as NgcBadge,n as NgcBanner,m as NgcBoolean,i as NgcBreadcrumbs,g as NgcButton,u as NgcButtonCard,x as NgcCard,l as NgcCardContent,f as NgcCardFooter,d as NgcCardHeader,N as NgcCheckbox,b as NgcCheckboxGroup,I as NgcChip,C as NgcDisplayCard,B as NgcDivider,k as NgcFab,v as NgcHeadlineCard,w as NgcHelpText,D as NgcIcon,S as NgcIconButton,P as NgcInputCurrency,G as NgcInputDate,E as NgcInputDropdown,U as NgcInputFile,j as NgcInputFileUploadedPreview,M as NgcInputLabel,y as NgcInputMasked,A as NgcInputPercent,R as NgcInputPhone,q as NgcInputSearch,F as NgcInputText,H as NgcInputTextarea,z as NgcInputTime,V as NgcList,W as NgcListItem,Y as NgcMenu,oo as NgcMenuItem,ro as NgcModal,ao as NgcPageHeader,po as NgcPopover,so as NgcRadio,_o as NgcRadioGroup,mo as NgcSelectionBox,io as NgcSelectionBoxGroup,co as NgcSkeletonLoader,go as NgcSwitch,xo as NgcTab,uo as NgcTabs,lo as NgcTextDetail,fo as NgcTextLink,No as NgcToast,bo as NgcTooltip,s as NscBadge,c as NscButton,T as NscCombobox,h as NscComboboxItem,L as NscIcon,K as NscInputError,O as NscInputLabel,Q as NscInputRichText,J as NscInputText,X as NscMenu,Z as NscMenuDivider,$ as NscMenuItem,to as NscMenuSubmenu,eo as NscPill,no as NscScopedNotification,Io as NscTooltip};
@@ -1 +1 @@
1
- import{getSideAxis as S,getAlignmentAxis as G,getSide as D,getAlignment as H,getAxisLength as J,evaluate as Y,getOppositePlacement as K,getExpandedPlacements as N,getOppositeAxisPlacements as Q,getAlignmentSides as U,getPaddingObject as W,rectToClientRect as I}from"../../../../../@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";function X(r,l,g){let{reference:e,floating:a}=r;const t=S(l),o=G(l),n=J(o),u=D(l),d=t==="y",f=e.x+e.width/2-a.width/2,s=e.y+e.height/2-a.height/2,m=e[n]/2-a[n]/2;let i;switch(u){case"top":i={x:f,y:e.y-a.height};break;case"bottom":i={x:f,y:e.y+e.height};break;case"right":i={x:e.x+e.width,y:s};break;case"left":i={x:e.x-a.width,y:s};break;default:i={x:e.x,y:e.y}}switch(H(l)){case"start":i[o]-=m*(g&&d?-1:1);break;case"end":i[o]+=m*(g&&d?-1:1);break}return i}const _=async(r,l,g)=>{const{placement:e="bottom",strategy:a="absolute",middleware:t=[],platform:o}=g,n=t.filter(Boolean),u=await(o.isRTL==null?void 0:o.isRTL(l));let d=await o.getElementRects({reference:r,floating:l,strategy:a}),{x:f,y:s}=X(d,e,u),m=e,i={},p=0;for(let v=0;v<n.length;v++){const{name:h,fn:y}=n[v],{x:b,y:A,data:w,reset:c}=await y({x:f,y:s,initialPlacement:e,placement:m,strategy:a,middlewareData:i,rects:d,platform:o,elements:{reference:r,floating:l}});f=b??f,s=A??s,i={...i,[h]:{...i[h],...w}},c&&p<=50&&(p++,typeof c=="object"&&(c.placement&&(m=c.placement),c.rects&&(d=c.rects===!0?await o.getElementRects({reference:r,floating:l,strategy:a}):c.rects),{x:f,y:s}=X(d,m,u)),v=-1)}return{x:f,y:s,placement:m,strategy:a,middlewareData:i}};async function Z(r,l){var g;l===void 0&&(l={});const{x:e,y:a,platform:t,rects:o,elements:n,strategy:u}=r,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:s="floating",altBoundary:m=!1,padding:i=0}=Y(l,r),p=W(i),h=n[m?s==="floating"?"reference":"floating":s],y=I(await t.getClippingRect({element:(g=await(t.isElement==null?void 0:t.isElement(h)))==null||g?h:h.contextElement||await(t.getDocumentElement==null?void 0:t.getDocumentElement(n.floating)),boundary:d,rootBoundary:f,strategy:u})),b=s==="floating"?{x:e,y:a,width:o.floating.width,height:o.floating.height}:o.reference,A=await(t.getOffsetParent==null?void 0:t.getOffsetParent(n.floating)),w=await(t.isElement==null?void 0:t.isElement(A))?await(t.getScale==null?void 0:t.getScale(A))||{x:1,y:1}:{x:1,y:1},c=I(t.convertOffsetParentRelativeRectToViewportRelativeRect?await t.convertOffsetParentRelativeRectToViewportRelativeRect({elements:n,rect:b,offsetParent:A,strategy:u}):b);return{top:(y.top-c.top+p.top)/w.y,bottom:(c.bottom-y.bottom+p.bottom)/w.y,left:(y.left-c.left+p.left)/w.x,right:(c.right-y.right+p.right)/w.x}}const ee=function(r){return r===void 0&&(r={}),{name:"flip",options:r,async fn(l){var g,e;const{placement:a,middlewareData:t,rects:o,initialPlacement:n,platform:u,elements:d}=l,{mainAxis:f=!0,crossAxis:s=!0,fallbackPlacements:m,fallbackStrategy:i="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:v=!0,...h}=Y(r,l);if((g=t.arrow)!=null&&g.alignmentOffset)return{};const y=D(a),b=S(n),A=D(n)===n,w=await(u.isRTL==null?void 0:u.isRTL(d.floating)),c=m||(A||!v?[K(n)]:N(n)),F=p!=="none";!m&&F&&c.push(...Q(n,v,p,w));const q=[n,...c],T=await Z(l,h),E=[];let O=((e=t.flip)==null?void 0:e.overflows)||[];if(f&&E.push(T[y]),s){const k=U(a,o,w);E.push(T[k[0]],T[k[1]])}if(O=[...O,{placement:a,overflows:E}],!E.every(k=>k<=0)){var B,j;const k=(((B=t.flip)==null?void 0:B.index)||0)+1,L=q[k];if(L){var M;const P=s==="alignment"?b!==S(L):!1,x=((M=O[0])==null?void 0:M.overflows[0])>0;if(!P||x)return{data:{index:k,overflows:O},reset:{placement:L}}}let C=(j=O.filter(P=>P.overflows[0]<=0).sort((P,x)=>P.overflows[1]-x.overflows[1])[0])==null?void 0:j.placement;if(!C)switch(i){case"bestFit":{var V;const P=(V=O.filter(x=>{if(F){const R=S(x.placement);return R===b||R==="y"}return!0}).map(x=>[x.placement,x.overflows.filter(R=>R>0).reduce((R,z)=>R+z,0)]).sort((x,R)=>x[1]-R[1])[0])==null?void 0:V[0];P&&(C=P);break}case"initialPlacement":C=n;break}if(a!==C)return{reset:{placement:C}}}return{}}}};export{_ as computePosition,Z as detectOverflow,ee as flip,I as rectToClientRect};
1
+ import{getSideAxis as I,getAlignmentAxis as J,getSide as D,getAlignment as T,getAxisLength as K,evaluate as $,getOppositePlacement as N,getExpandedPlacements as Q,getOppositeAxisPlacements as U,getAlignmentSides as z,getPaddingObject as W,rectToClientRect as Y,placements as _,getOppositeAlignmentPlacement as Z}from"../../../../../@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";function q(n,l,f){let{reference:t,floating:e}=n;const i=I(l),c=J(l),a=K(c),w=D(l),p=i==="y",u=t.x+t.width/2-e.width/2,r=t.y+t.height/2-e.height/2,d=t[a]/2-e[a]/2;let o;switch(w){case"top":o={x:u,y:t.y-e.height};break;case"bottom":o={x:u,y:t.y+t.height};break;case"right":o={x:t.x+t.width,y:r};break;case"left":o={x:t.x-e.width,y:r};break;default:o={x:t.x,y:t.y}}switch(T(l)){case"start":o[c]-=d*(f&&p?-1:1);break;case"end":o[c]+=d*(f&&p?-1:1);break}return o}const ne=async(n,l,f)=>{const{placement:t="bottom",strategy:e="absolute",middleware:i=[],platform:c}=f,a=i.filter(Boolean),w=await(c.isRTL==null?void 0:c.isRTL(l));let p=await c.getElementRects({reference:n,floating:l,strategy:e}),{x:u,y:r}=q(p,t,w),d=t,o={},x=0;for(let h=0;h<a.length;h++){const{name:y,fn:v}=a[h],{x:g,y:P,data:b,reset:s}=await v({x:u,y:r,initialPlacement:t,placement:d,strategy:e,middlewareData:o,rects:p,platform:c,elements:{reference:n,floating:l}});u=g??u,r=P??r,o={...o,[y]:{...o[y],...b}},s&&x<=50&&(x++,typeof s=="object"&&(s.placement&&(d=s.placement),s.rects&&(p=s.rects===!0?await c.getElementRects({reference:n,floating:l,strategy:e}):s.rects),{x:u,y:r}=q(p,d,w)),h=-1)}return{x:u,y:r,placement:d,strategy:e,middlewareData:o}};async function G(n,l){var f;l===void 0&&(l={});const{x:t,y:e,platform:i,rects:c,elements:a,strategy:w}=n,{boundary:p="clippingAncestors",rootBoundary:u="viewport",elementContext:r="floating",altBoundary:d=!1,padding:o=0}=$(l,n),x=W(o),y=a[d?r==="floating"?"reference":"floating":r],v=Y(await i.getClippingRect({element:(f=await(i.isElement==null?void 0:i.isElement(y)))==null||f?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:p,rootBoundary:u,strategy:w})),g=r==="floating"?{x:t,y:e,width:c.floating.width,height:c.floating.height}:c.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),b=await(i.isElement==null?void 0:i.isElement(P))?await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1}:{x:1,y:1},s=Y(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:P,strategy:w}):g);return{top:(v.top-s.top+x.top)/b.y,bottom:(s.bottom-v.bottom+x.bottom)/b.y,left:(v.left-s.left+x.left)/b.x,right:(s.right-v.right+x.right)/b.x}}function ee(n,l,f){return(n?[...f.filter(e=>T(e)===n),...f.filter(e=>T(e)!==n)]:f.filter(e=>D(e)===e)).filter(e=>n?T(e)===n||(l?Z(e)!==e:!1):!0)}const le=function(n){return n===void 0&&(n={}),{name:"autoPlacement",options:n,async fn(l){var f,t,e;const{rects:i,middlewareData:c,placement:a,platform:w,elements:p}=l,{crossAxis:u=!1,alignment:r,allowedPlacements:d=_,autoAlignment:o=!0,...x}=$(n,l),h=r!==void 0||d===_?ee(r||null,o,d):d,y=await G(l,x),v=((f=c.autoPlacement)==null?void 0:f.index)||0,g=h[v];if(g==null)return{};const P=z(g,i,await(w.isRTL==null?void 0:w.isRTL(p.floating)));if(a!==g)return{reset:{placement:h[0]}};const b=[y[D(g)],y[P[0]],y[P[1]]],s=[...((t=c.autoPlacement)==null?void 0:t.overflows)||[],{placement:g,overflows:b}],C=h[v+1];if(C)return{data:{index:v+1,overflows:s},reset:{placement:C}};const F=s.map(m=>{const O=T(m.placement);return[m.placement,O&&u?m.overflows.slice(0,2).reduce((M,j)=>M+j,0):m.overflows[0],m.overflows]}).sort((m,O)=>m[1]-O[1]),k=((e=F.filter(m=>m[2].slice(0,T(m[0])?2:3).every(O=>O<=0))[0])==null?void 0:e[0])||F[0][0];return k!==a?{data:{index:v+1,overflows:s},reset:{placement:k}}:{}}}},ie=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(l){var f,t;const{placement:e,middlewareData:i,rects:c,initialPlacement:a,platform:w,elements:p}=l,{mainAxis:u=!0,crossAxis:r=!0,fallbackPlacements:d,fallbackStrategy:o="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:h=!0,...y}=$(n,l);if((f=i.arrow)!=null&&f.alignmentOffset)return{};const v=D(e),g=I(a),P=D(a)===a,b=await(w.isRTL==null?void 0:w.isRTL(p.floating)),s=d||(P||!h?[N(a)]:Q(a)),C=x!=="none";!d&&C&&s.push(...U(a,h,x,b));const F=[a,...s],B=await G(l,y),k=[];let m=((t=i.flip)==null?void 0:t.overflows)||[];if(u&&k.push(B[v]),r){const E=z(e,c,b);k.push(B[E[0]],B[E[1]])}if(m=[...m,{placement:e,overflows:k}],!k.every(E=>E<=0)){var O,M;const E=(((O=i.flip)==null?void 0:O.index)||0)+1,V=F[E];if(V){var j;const R=r==="alignment"?g!==I(V):!1,A=((j=m[0])==null?void 0:j.overflows[0])>0;if(!R||A)return{data:{index:E,overflows:m},reset:{placement:V}}}let L=(M=m.filter(R=>R.overflows[0]<=0).sort((R,A)=>R.overflows[1]-A.overflows[1])[0])==null?void 0:M.placement;if(!L)switch(o){case"bestFit":{var X;const R=(X=m.filter(A=>{if(C){const S=I(A.placement);return S===g||S==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(S=>S>0).reduce((S,H)=>S+H,0)]).sort((A,S)=>A[1]-S[1])[0])==null?void 0:X[0];R&&(L=R);break}case"initialPlacement":L=a;break}if(e!==L)return{reset:{placement:L}}}return{}}}};export{le as autoPlacement,ne as computePosition,G as detectOverflow,ie as flip,Y as rectToClientRect};
@@ -1 +1 @@
1
- import{computePosition as ot,flip as st}from"../../../../../@floating-ui_core@1.7.0/node_modules/@floating-ui/core/dist/floating-ui.core.js";import{createCoords as m,rectToClientRect as J,floor as A,max as E,round as H,min as z}from"../../../../../@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";import{getOverflowAncestors as M,isElement as v,getDocumentElement as O,getWindow as L,getFrameElement as K,getComputedStyle as R,isHTMLElement as b,isWebKit as Q,isTopLayer as S,getParentNode as W,isLastTraversableNode as N,isTableElement as rt,isContainingBlock as Y,getContainingBlock as ct,getNodeName as _,isOverflowElement as $,getNodeScroll as I}from"../../../../../@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js";function Z(t){const e=R(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const o=b(t),r=o?t.offsetWidth:n,s=o?t.offsetHeight:i,c=H(n)!==r||H(i)!==s;return c&&(n=r,i=s),{width:n,height:i,$:c}}function q(t){return v(t)?t:t.contextElement}function F(t){const e=q(t);if(!b(e))return m(1);const n=e.getBoundingClientRect(),{width:i,height:o,$:r}=Z(e);let s=(r?H(n.width):n.width)/i,c=(r?H(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const lt=m(0);function X(t){const e=L(t);return!Q()||!e.visualViewport?lt:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ft(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==L(t)?!1:e}function T(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),r=q(t);let s=m(1);e&&(i?v(i)&&(s=F(i)):s=F(t));const c=ft(r,n,i)?X(r):m(0);let l=(o.left+c.x)/s.x,f=(o.top+c.y)/s.y,u=o.width/s.x,h=o.height/s.y;if(r){const p=L(r),a=i&&v(i)?L(i):i;let y=p,g=K(y);for(;g&&i&&a!==y;){const w=F(g),d=g.getBoundingClientRect(),x=R(g),C=d.left+(g.clientLeft+parseFloat(x.paddingLeft))*w.x,B=d.top+(g.clientTop+parseFloat(x.paddingTop))*w.y;l*=w.x,f*=w.y,u*=w.x,h*=w.y,l+=C,f+=B,y=L(g),g=K(y)}}return J({width:u,height:h,x:l,y:f})}function k(t,e){const n=I(t).scrollLeft;return e?e.left+n:T(O(t)).left+n}function tt(t,e,n){n===void 0&&(n=!1);const i=t.getBoundingClientRect(),o=i.left+e.scrollLeft-(n?0:k(t,i)),r=i.top+e.scrollTop;return{x:o,y:r}}function ut(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t;const r=o==="fixed",s=O(i),c=e?S(e.floating):!1;if(i===s||c&&r)return n;let l={scrollLeft:0,scrollTop:0},f=m(1);const u=m(0),h=b(i);if((h||!h&&!r)&&((_(i)!=="body"||$(s))&&(l=I(i)),b(i))){const a=T(i);f=F(i),u.x=a.x+i.clientLeft,u.y=a.y+i.clientTop}const p=s&&!h&&!r?tt(s,l,!0):m(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-l.scrollLeft*f.x+u.x+p.x,y:n.y*f.y-l.scrollTop*f.y+u.y+p.y}}function ht(t){return Array.from(t.getClientRects())}function at(t){const e=O(t),n=I(t),i=t.ownerDocument.body,o=E(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=E(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+k(t);const c=-n.scrollTop;return R(i).direction==="rtl"&&(s+=E(e.clientWidth,i.clientWidth)-o),{width:o,height:r,x:s,y:c}}function dt(t,e){const n=L(t),i=O(t),o=n.visualViewport;let r=i.clientWidth,s=i.clientHeight,c=0,l=0;if(o){r=o.width,s=o.height;const f=Q();(!f||f&&e==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:c,y:l}}function gt(t,e){const n=T(t,!0,e==="fixed"),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=b(t)?F(t):m(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,l=o*r.x,f=i*r.y;return{width:s,height:c,x:l,y:f}}function j(t,e,n){let i;if(e==="viewport")i=dt(t,n);else if(e==="document")i=at(O(t));else if(v(e))i=gt(e,n);else{const o=X(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return J(i)}function et(t,e){const n=W(t);return n===e||!v(n)||N(n)?!1:R(n).position==="fixed"||et(n,e)}function pt(t,e){const n=e.get(t);if(n)return n;let i=M(t,[],!1).filter(c=>v(c)&&_(c)!=="body"),o=null;const r=R(t).position==="fixed";let s=r?W(t):t;for(;v(s)&&!N(s);){const c=R(s),l=Y(s);!l&&c.position==="fixed"&&(o=null),(r?!l&&!o:!l&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||$(s)&&!l&&et(t,s))?i=i.filter(u=>u!==s):o=c,s=W(s)}return e.set(t,i),i}function wt(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const s=[...n==="clippingAncestors"?S(e)?[]:pt(e,this._c):[].concat(n),i],c=s[0],l=s.reduce((f,u)=>{const h=j(e,u,o);return f.top=E(h.top,f.top),f.right=z(h.right,f.right),f.bottom=z(h.bottom,f.bottom),f.left=E(h.left,f.left),f},j(e,c,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function mt(t){const{width:e,height:n}=Z(t);return{width:e,height:n}}function yt(t,e,n){const i=b(e),o=O(e),r=n==="fixed",s=T(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const l=m(0);function f(){l.x=k(o)}if(i||!i&&!r)if((_(e)!=="body"||$(o))&&(c=I(e)),i){const a=T(e,!0,r,e);l.x=a.x+e.clientLeft,l.y=a.y+e.clientTop}else o&&f();r&&!i&&o&&f();const u=o&&!i&&!r?tt(o,c):m(0),h=s.left+c.scrollLeft-l.x-u.x,p=s.top+c.scrollTop-l.y-u.y;return{x:h,y:p,width:s.width,height:s.height}}function V(t){return R(t).position==="static"}function G(t,e){if(!b(t)||R(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return O(t)===n&&(n=n.ownerDocument.body),n}function nt(t,e){const n=L(t);if(S(t))return n;if(!b(t)){let o=W(t);for(;o&&!N(o);){if(v(o)&&!V(o))return o;o=W(o)}return n}let i=G(t,e);for(;i&&rt(i)&&V(i);)i=G(i,e);return i&&N(i)&&V(i)&&!Y(i)?n:i||ct(t)||n}const xt=async function(t){const e=this.getOffsetParent||nt,n=this.getDimensions,i=await n(t.floating);return{reference:yt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function vt(t){return R(t).direction==="rtl"}const Rt={convertOffsetParentRelativeRectToViewportRelativeRect:ut,getDocumentElement:O,getClippingRect:wt,getOffsetParent:nt,getElementRects:xt,getClientRects:ht,getDimensions:mt,getScale:F,isElement:v,isRTL:vt};function it(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Ot(t,e){let n=null,i;const o=O(t);function r(){var c;clearTimeout(i),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();const f=t.getBoundingClientRect(),{left:u,top:h,width:p,height:a}=f;if(c||e(),!p||!a)return;const y=A(h),g=A(o.clientWidth-(u+p)),w=A(o.clientHeight-(h+a)),d=A(u),C={rootMargin:-y+"px "+-g+"px "+-w+"px "+-d+"px",threshold:E(0,z(1,l))||1};let B=!0;function P(U){const D=U[0].intersectionRatio;if(D!==l){if(!B)return s();D?s(!1,D):i=setTimeout(()=>{s(!1,1e-7)},1e3)}D===1&&!it(f,t.getBoundingClientRect())&&s(),B=!1}try{n=new IntersectionObserver(P,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(P,C)}n.observe(t)}return s(!0),r}function Tt(t,e,n,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,f=q(t),u=o||r?[...f?M(f):[],...M(e)]:[];u.forEach(d=>{o&&d.addEventListener("scroll",n,{passive:!0}),r&&d.addEventListener("resize",n)});const h=f&&c?Ot(f,n):null;let p=-1,a=null;s&&(a=new ResizeObserver(d=>{let[x]=d;x&&x.target===f&&a&&(a.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var C;(C=a)==null||C.observe(e)})),n()}),f&&!l&&a.observe(f),a.observe(e));let y,g=l?T(t):null;l&&w();function w(){const d=T(t);g&&!it(g,d)&&n(),g=d,y=requestAnimationFrame(w)}return n(),()=>{var d;u.forEach(x=>{o&&x.removeEventListener("scroll",n),r&&x.removeEventListener("resize",n)}),h==null||h(),(d=a)==null||d.disconnect(),a=null,l&&cancelAnimationFrame(y)}}const Et=st,Ft=(t,e,n)=>{const i=new Map,o={platform:Rt,...n},r={...o.platform,_c:i};return ot(t,e,{...o,platform:r})};export{Tt as autoUpdate,Ft as computePosition,Et as flip,M as getOverflowAncestors,Rt as platform};
1
+ import{computePosition as ot,flip as st,autoPlacement as rt}from"../../../../../@floating-ui_core@1.7.0/node_modules/@floating-ui/core/dist/floating-ui.core.js";import{createCoords as w,rectToClientRect as J,floor as A,max as E,round as H,min as z}from"../../../../../@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";import{getOverflowAncestors as M,isElement as v,getDocumentElement as O,getWindow as L,getFrameElement as K,getComputedStyle as R,isHTMLElement as b,isWebKit as Q,isTopLayer as S,getParentNode as W,isLastTraversableNode as N,isTableElement as ct,isContainingBlock as Y,getContainingBlock as lt,getNodeName as _,isOverflowElement as P,getNodeScroll as I}from"../../../../../@floating-ui_utils@0.2.9/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js";function Z(t){const e=R(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const o=b(t),r=o?t.offsetWidth:n,s=o?t.offsetHeight:i,c=H(n)!==r||H(i)!==s;return c&&(n=r,i=s),{width:n,height:i,$:c}}function $(t){return v(t)?t:t.contextElement}function F(t){const e=$(t);if(!b(e))return w(1);const n=e.getBoundingClientRect(),{width:i,height:o,$:r}=Z(e);let s=(r?H(n.width):n.width)/i,c=(r?H(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const ft=w(0);function X(t){const e=L(t);return!Q()||!e.visualViewport?ft:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ut(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==L(t)?!1:e}function T(t,e,n,i){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),r=$(t);let s=w(1);e&&(i?v(i)&&(s=F(i)):s=F(t));const c=ut(r,n,i)?X(r):w(0);let l=(o.left+c.x)/s.x,f=(o.top+c.y)/s.y,u=o.width/s.x,h=o.height/s.y;if(r){const p=L(r),a=i&&v(i)?L(i):i;let y=p,g=K(y);for(;g&&i&&a!==y;){const m=F(g),d=g.getBoundingClientRect(),x=R(g),C=d.left+(g.clientLeft+parseFloat(x.paddingLeft))*m.x,B=d.top+(g.clientTop+parseFloat(x.paddingTop))*m.y;l*=m.x,f*=m.y,u*=m.x,h*=m.y,l+=C,f+=B,y=L(g),g=K(y)}}return J({width:u,height:h,x:l,y:f})}function q(t,e){const n=I(t).scrollLeft;return e?e.left+n:T(O(t)).left+n}function tt(t,e,n){n===void 0&&(n=!1);const i=t.getBoundingClientRect(),o=i.left+e.scrollLeft-(n?0:q(t,i)),r=i.top+e.scrollTop;return{x:o,y:r}}function ht(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t;const r=o==="fixed",s=O(i),c=e?S(e.floating):!1;if(i===s||c&&r)return n;let l={scrollLeft:0,scrollTop:0},f=w(1);const u=w(0),h=b(i);if((h||!h&&!r)&&((_(i)!=="body"||P(s))&&(l=I(i)),b(i))){const a=T(i);f=F(i),u.x=a.x+i.clientLeft,u.y=a.y+i.clientTop}const p=s&&!h&&!r?tt(s,l,!0):w(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-l.scrollLeft*f.x+u.x+p.x,y:n.y*f.y-l.scrollTop*f.y+u.y+p.y}}function at(t){return Array.from(t.getClientRects())}function dt(t){const e=O(t),n=I(t),i=t.ownerDocument.body,o=E(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=E(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+q(t);const c=-n.scrollTop;return R(i).direction==="rtl"&&(s+=E(e.clientWidth,i.clientWidth)-o),{width:o,height:r,x:s,y:c}}function gt(t,e){const n=L(t),i=O(t),o=n.visualViewport;let r=i.clientWidth,s=i.clientHeight,c=0,l=0;if(o){r=o.width,s=o.height;const f=Q();(!f||f&&e==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:r,height:s,x:c,y:l}}function pt(t,e){const n=T(t,!0,e==="fixed"),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=b(t)?F(t):w(1),s=t.clientWidth*r.x,c=t.clientHeight*r.y,l=o*r.x,f=i*r.y;return{width:s,height:c,x:l,y:f}}function j(t,e,n){let i;if(e==="viewport")i=gt(t,n);else if(e==="document")i=dt(O(t));else if(v(e))i=pt(e,n);else{const o=X(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return J(i)}function et(t,e){const n=W(t);return n===e||!v(n)||N(n)?!1:R(n).position==="fixed"||et(n,e)}function mt(t,e){const n=e.get(t);if(n)return n;let i=M(t,[],!1).filter(c=>v(c)&&_(c)!=="body"),o=null;const r=R(t).position==="fixed";let s=r?W(t):t;for(;v(s)&&!N(s);){const c=R(s),l=Y(s);!l&&c.position==="fixed"&&(o=null),(r?!l&&!o:!l&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||P(s)&&!l&&et(t,s))?i=i.filter(u=>u!==s):o=c,s=W(s)}return e.set(t,i),i}function wt(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const s=[...n==="clippingAncestors"?S(e)?[]:mt(e,this._c):[].concat(n),i],c=s[0],l=s.reduce((f,u)=>{const h=j(e,u,o);return f.top=E(h.top,f.top),f.right=z(h.right,f.right),f.bottom=z(h.bottom,f.bottom),f.left=E(h.left,f.left),f},j(e,c,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function yt(t){const{width:e,height:n}=Z(t);return{width:e,height:n}}function xt(t,e,n){const i=b(e),o=O(e),r=n==="fixed",s=T(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const l=w(0);function f(){l.x=q(o)}if(i||!i&&!r)if((_(e)!=="body"||P(o))&&(c=I(e)),i){const a=T(e,!0,r,e);l.x=a.x+e.clientLeft,l.y=a.y+e.clientTop}else o&&f();r&&!i&&o&&f();const u=o&&!i&&!r?tt(o,c):w(0),h=s.left+c.scrollLeft-l.x-u.x,p=s.top+c.scrollTop-l.y-u.y;return{x:h,y:p,width:s.width,height:s.height}}function V(t){return R(t).position==="static"}function G(t,e){if(!b(t)||R(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return O(t)===n&&(n=n.ownerDocument.body),n}function nt(t,e){const n=L(t);if(S(t))return n;if(!b(t)){let o=W(t);for(;o&&!N(o);){if(v(o)&&!V(o))return o;o=W(o)}return n}let i=G(t,e);for(;i&&ct(i)&&V(i);)i=G(i,e);return i&&N(i)&&V(i)&&!Y(i)?n:i||lt(t)||n}const vt=async function(t){const e=this.getOffsetParent||nt,n=this.getDimensions,i=await n(t.floating);return{reference:xt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Rt(t){return R(t).direction==="rtl"}const Ot={convertOffsetParentRelativeRectToViewportRelativeRect:ht,getDocumentElement:O,getClippingRect:wt,getOffsetParent:nt,getElementRects:vt,getClientRects:at,getDimensions:yt,getScale:F,isElement:v,isRTL:Rt};function it(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function bt(t,e){let n=null,i;const o=O(t);function r(){var c;clearTimeout(i),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),r();const f=t.getBoundingClientRect(),{left:u,top:h,width:p,height:a}=f;if(c||e(),!p||!a)return;const y=A(h),g=A(o.clientWidth-(u+p)),m=A(o.clientHeight-(h+a)),d=A(u),C={rootMargin:-y+"px "+-g+"px "+-m+"px "+-d+"px",threshold:E(0,z(1,l))||1};let B=!0;function k(U){const D=U[0].intersectionRatio;if(D!==l){if(!B)return s();D?s(!1,D):i=setTimeout(()=>{s(!1,1e-7)},1e3)}D===1&&!it(f,t.getBoundingClientRect())&&s(),B=!1}try{n=new IntersectionObserver(k,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,C)}n.observe(t)}return s(!0),r}function Et(t,e,n,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,f=$(t),u=o||r?[...f?M(f):[],...M(e)]:[];u.forEach(d=>{o&&d.addEventListener("scroll",n,{passive:!0}),r&&d.addEventListener("resize",n)});const h=f&&c?bt(f,n):null;let p=-1,a=null;s&&(a=new ResizeObserver(d=>{let[x]=d;x&&x.target===f&&a&&(a.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var C;(C=a)==null||C.observe(e)})),n()}),f&&!l&&a.observe(f),a.observe(e));let y,g=l?T(t):null;l&&m();function m(){const d=T(t);g&&!it(g,d)&&n(),g=d,y=requestAnimationFrame(m)}return n(),()=>{var d;u.forEach(x=>{o&&x.removeEventListener("scroll",n),r&&x.removeEventListener("resize",n)}),h==null||h(),(d=a)==null||d.disconnect(),a=null,l&&cancelAnimationFrame(y)}}const Ft=rt,Wt=st,Bt=(t,e,n)=>{const i=new Map,o={platform:Ot,...n},r={...o.platform,_c:i};return ot(t,e,{...o,platform:r})};export{Ft as autoPlacement,Et as autoUpdate,Bt as computePosition,Wt as flip,M as getOverflowAncestors,Ot as platform};
@@ -1 +1 @@
1
- const A=Math.min,y=Math.max,P=Math.round,M=Math.floor,O=t=>({x:t,y:t}),l={left:"right",right:"left",bottom:"top",top:"bottom"},a={start:"end",end:"start"};function S(t,n){return typeof t=="function"?t(n):t}function u(t){return t.split("-")[0]}function g(t){return t.split("-")[1]}function m(t){return t==="x"?"y":"x"}function p(t){return t==="y"?"height":"width"}function h(t){return["top","bottom"].includes(u(t))?"y":"x"}function x(t){return m(h(t))}function w(t,n,e){e===void 0&&(e=!1);const r=g(t),o=x(t),i=p(o);let c=o==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return n.reference[i]>n.floating[i]&&(c=f(c)),[c,f(c)]}function j(t){const n=f(t);return[s(t),n,s(n)]}function s(t){return t.replace(/start|end/g,n=>a[n])}function b(t,n,e){const r=["left","right"],o=["right","left"],i=["top","bottom"],c=["bottom","top"];switch(t){case"top":case"bottom":return e?n?o:r:n?r:o;case"left":case"right":return n?i:c;default:return[]}}function C(t,n,e,r){const o=g(t);let i=b(u(t),e==="start",r);return o&&(i=i.map(c=>c+"-"+o),n&&(i=i.concat(i.map(s)))),i}function f(t){return t.replace(/left|right|bottom|top/g,n=>l[n])}function d(t){return{top:0,right:0,bottom:0,left:0,...t}}function L(t){return typeof t!="number"?d(t):{top:t,right:t,bottom:t,left:t}}function E(t){const{x:n,y:e,width:r,height:o}=t;return{width:r,height:o,top:e,left:n,right:n+r,bottom:e+o,x:n,y:e}}export{O as createCoords,S as evaluate,d as expandPaddingObject,M as floor,g as getAlignment,x as getAlignmentAxis,w as getAlignmentSides,p as getAxisLength,j as getExpandedPlacements,s as getOppositeAlignmentPlacement,m as getOppositeAxis,C as getOppositeAxisPlacements,f as getOppositePlacement,L as getPaddingObject,u as getSide,h as getSideAxis,y as max,A as min,E as rectToClientRect,P as round};
1
+ const a=["top","right","bottom","left"],u=["start","end"],P=a.reduce((t,n)=>t.concat(n,n+"-"+u[0],n+"-"+u[1]),[]),M=Math.min,O=Math.max,S=Math.round,w=Math.floor,j=t=>({x:t,y:t}),m={left:"right",right:"left",bottom:"top",top:"bottom"},p={start:"end",end:"start"};function C(t,n){return typeof t=="function"?t(n):t}function g(t){return t.split("-")[0]}function l(t){return t.split("-")[1]}function h(t){return t==="x"?"y":"x"}function b(t){return t==="y"?"height":"width"}function x(t){return["top","bottom"].includes(g(t))?"y":"x"}function d(t){return h(x(t))}function L(t,n,e){e===void 0&&(e=!1);const r=l(t),o=d(t),i=b(o);let c=o==="x"?r===(e?"end":"start")?"right":"left":r==="start"?"bottom":"top";return n.reference[i]>n.floating[i]&&(c=f(c)),[c,f(c)]}function E(t){const n=f(t);return[s(t),n,s(n)]}function s(t){return t.replace(/start|end/g,n=>p[n])}function A(t,n,e){const r=["left","right"],o=["right","left"],i=["top","bottom"],c=["bottom","top"];switch(t){case"top":case"bottom":return e?n?o:r:n?r:o;case"left":case"right":return n?i:c;default:return[]}}function R(t,n,e,r){const o=l(t);let i=A(g(t),e==="start",r);return o&&(i=i.map(c=>c+"-"+o),n&&(i=i.concat(i.map(s)))),i}function f(t){return t.replace(/left|right|bottom|top/g,n=>m[n])}function y(t){return{top:0,right:0,bottom:0,left:0,...t}}function T(t){return typeof t!="number"?y(t):{top:t,right:t,bottom:t,left:t}}function k(t){const{x:n,y:e,width:r,height:o}=t;return{width:r,height:o,top:e,left:n,right:n+r,bottom:e+o,x:n,y:e}}export{u as alignments,j as createCoords,C as evaluate,y as expandPaddingObject,w as floor,l as getAlignment,d as getAlignmentAxis,L as getAlignmentSides,b as getAxisLength,E as getExpandedPlacements,s as getOppositeAlignmentPlacement,h as getOppositeAxis,R as getOppositeAxisPlacements,f as getOppositePlacement,T as getPaddingObject,g as getSide,x as getSideAxis,O as max,M as min,P as placements,k as rectToClientRect,S as round,a as sides};
@@ -1,4 +1,4 @@
1
- var xt=Object.defineProperty;var vt=(e,t,r)=>t in e?xt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var H=(e,t,r)=>vt(e,typeof t!="symbol"?t+"":t,r);import{diff as S,printDiffOrStringify as Nt}from"../../../../../@vitest_utils@3.1.3/node_modules/@vitest/utils/dist/diff.js";import E from"../../../../../tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.js";import{isMockFunction as V}from"../../../../../@vitest_spy@3.1.3/node_modules/@vitest/spy/dist/index.js";import{processError as Ot}from"../../../../../@vitest_utils@3.1.3/node_modules/@vitest/utils/dist/error.js";import{use as Tt,util as P}from"../../../../../chai@5.2.0/node_modules/chai/chai.js";import{getType as ut,isObject as q,assertTypes as O}from"../../../../../@vitest_utils@3.1.3/node_modules/@vitest/utils/dist/helpers.js";import{s as j}from"../../../../../@vitest_utils@3.1.3/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js";const k=Symbol.for("matchers-object"),B=Symbol.for("$$jest-matchers-object"),ft=Symbol.for("expect-global"),ht=Symbol.for("asymmetric-matchers-object"),ae={toSatisfy(e,t,r){const{printReceived:a,printExpected:c,matcherHint:h}=this.utils,u=t(e);return{pass:u,message:()=>u?`${h(".not.toSatisfy","received","")}
1
+ var xt=Object.defineProperty;var vt=(e,t,r)=>t in e?xt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var H=(e,t,r)=>vt(e,typeof t!="symbol"?t+"":t,r);import{diff as S,printDiffOrStringify as Nt}from"../../../../../@vitest_utils@3.1.4/node_modules/@vitest/utils/dist/diff.js";import E from"../../../../../tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.js";import{isMockFunction as V}from"../../../../../@vitest_spy@3.1.4/node_modules/@vitest/spy/dist/index.js";import{processError as Ot}from"../../../../../@vitest_utils@3.1.4/node_modules/@vitest/utils/dist/error.js";import{use as Tt,util as P}from"../../../../../chai@5.2.0/node_modules/chai/chai.js";import{getType as ut,isObject as q,assertTypes as O}from"../../../../../@vitest_utils@3.1.4/node_modules/@vitest/utils/dist/helpers.js";import{s as j}from"../../../../../@vitest_utils@3.1.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js";const k=Symbol.for("matchers-object"),B=Symbol.for("$$jest-matchers-object"),ft=Symbol.for("expect-global"),ht=Symbol.for("asymmetric-matchers-object"),ae={toSatisfy(e,t,r){const{printReceived:a,printExpected:c,matcherHint:h}=this.utils,u=t(e);return{pass:u,message:()=>u?`${h(".not.toSatisfy","received","")}
2
2
 
3
3
  Expected value to not satisfy:
4
4
  ${r||c(t)}
@@ -1,4 +1,4 @@
1
- var te=Object.defineProperty;var ne=(e,t,o)=>t in e?te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var j=(e,t,o)=>ne(e,typeof t!="symbol"?t+"":t,o);import{getSafeTimers as re}from"../../../../../@vitest_utils@3.1.3/node_modules/@vitest/utils/dist/index.js";import{parseSingleStack as oe}from"../../../../../@vitest_utils@3.1.3/node_modules/@vitest/utils/dist/source-map.js";import{c as X}from"./chunk-tasks.js";import{isNegativeNaN as ie,isObject as L,objectAttr as D,toArray as H,createDefer as W}from"../../../../../@vitest_utils@3.1.3/node_modules/@vitest/utils/dist/helpers.js";import{f as se,o as ce}from"../../../../../@vitest_utils@3.1.3/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js";class ue extends Error{constructor(o,r,n){super(o);j(this,"code","VITEST_PENDING");j(this,"taskId");this.message=o,this.note=n,this.taskId=r.id}}const ae=new WeakMap,B=new WeakMap,G=new WeakMap;function le(e,t){ae.set(e,t)}function fe(e,t){B.set(e,t)}function he(e){return B.get(e)}function de(e,t){G.set(e,t)}function pe(e){return G.get(e)}function me(e,t){const o=t.reduce((s,i)=>(s[i.prop]=i,s),{}),r={};e.forEach(s=>{const i=o[s.prop]||{...s};r[i.prop]=i});for(const s in r){var n;const i=r[s];i.deps=(n=i.deps)===null||n===void 0?void 0:n.map(c=>r[c.prop])}return Object.values(r)}function Y(e,t,o){const r=["auto","injected"],n=Object.entries(e).map(([s,i])=>{const c={value:i};if(Array.isArray(i)&&i.length>=2&&L(i[1])&&Object.keys(i[1]).some(a=>r.includes(a))){Object.assign(c,i[1]);const a=i[0];c.value=c.injected?o(s)??a:a}return c.prop=s,c.isFn=typeof c.value=="function",c});return Array.isArray(t.fixtures)?t.fixtures=t.fixtures.concat(n):t.fixtures=n,n.forEach(s=>{if(s.isFn){const i=J(s.value);i.length&&(s.deps=t.fixtures.filter(({prop:c})=>c!==s.prop&&i.includes(c)))}}),t}const I=new Map,R=new Map;function ge(e,t){return o=>{const r=o||t;if(!r)return e({});const n=he(r);if(!(n!=null&&n.length))return e(r);const s=J(e),i=n.some(({auto:l})=>l);if(!s.length&&!i)return e(r);I.get(r)||I.set(r,new Map);const c=I.get(r);R.has(r)||R.set(r,[]);const a=R.get(r),f=n.filter(({prop:l,auto:d})=>d||s.includes(l)),h=z(f);if(!h.length)return e(r);async function m(){for(const l of h){if(c.has(l))continue;const d=l.isFn?await ye(l.value,r,a):l.value;r[l.prop]=d,c.set(l,d),a.unshift(()=>{c.delete(l)})}}return m().then(()=>e(r))}}async function ye(e,t,o){const r=W();let n=!1;const s=e(t,async i=>{n=!0,r.resolve(i);const c=W();o.push(async()=>{c.resolve(),await s}),await c}).catch(i=>{if(!n){r.reject(i);return}throw i});return r}function z(e,t=new Set,o=[]){return e.forEach(r=>{if(!o.includes(r)){if(!r.isFn||!r.deps){o.push(r);return}if(t.has(r))throw new Error(`Circular fixture dependency detected: ${r.prop} <- ${[...t].reverse().map(n=>n.prop).join(" <- ")}`);t.add(r),z(r.deps,t,o),o.push(r),t.clear()}}),o}function J(e){let t=e.toString();/__async\((?:this|null), (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(t)&&(t=t.split(/__async\((?:this|null),/)[1]);const o=t.match(/[^(]*\(([^)]*)/);if(!o)return[];const r=K(o[1]);if(!r.length)return[];let n=r[0];if("__VITEST_FIXTURE_INDEX__"in e&&(n=r[e.__VITEST_FIXTURE_INDEX__],!n))return[];if(!(n.startsWith("{")&&n.endsWith("}")))throw new Error(`The first argument inside a fixture must use object destructuring pattern, e.g. ({ test } => {}). Instead, received "${n}".`);const s=n.slice(1,-1).replace(/\s/g,""),i=K(s).map(a=>a.replace(/:.*|=.*/g,"")),c=i.at(-1);if(c&&c.startsWith("..."))throw new Error(`Rest parameters are not supported in fixtures, received "${c}".`);return i}function K(e){const t=[],o=[];let r=0;for(let s=0;s<e.length;s++)if(e[s]==="{"||e[s]==="[")o.push(e[s]==="{"?"}":"]");else if(e[s]===o[o.length-1])o.pop();else if(!o.length&&e[s]===","){const i=e.substring(r,s).trim();i&&t.push(i),r=s+1}const n=e.substring(r).trim();return n&&t.push(n),t}const A=be();P(function(e,t,o){$().test.fn.call(this,k(e),t,o)});let E,Q,ve;function Z(e,t){if(!e)throw new Error(`Vitest failed to find ${t}. This is a bug in Vitest. Please, open an issue with reproduction.`)}function Te(){return ve}function V(){return Z(E,"the runner"),E}function $(){const e=b.currentSuite||Q;return Z(e,"the current suite"),e}function _e(){return{beforeAll:[],afterAll:[],beforeEach:[],afterEach:[]}}function S(e,t){let o={},r=()=>{};if(typeof t=="object"){if(typeof e=="object")throw new TypeError("Cannot use two objects as arguments. Please provide options and a function callback in that order.");console.warn("Using an object as a third argument is deprecated. Vitest 4 will throw an error if the third argument is not a timeout number. Please use the second argument for options. See more at https://vitest.dev/guide/migration"),o=t}else typeof t=="number"?o={timeout:t}:typeof e=="object"&&(o=e);if(typeof e=="function"){if(typeof t=="function")throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");r=e}else typeof t=="function"&&(r=t);return{options:o,handler:r}}function we(e,t=()=>{},o,r,n,s){const i=[];let c;d();const a=function(p="",u={}){var _;const g=(u==null?void 0:u.timeout)??E.config.testTimeout,v={id:"",name:p,suite:(_=b.currentSuite)===null||_===void 0?void 0:_.suite,each:u.each,fails:u.fails,context:void 0,type:"test",file:void 0,timeout:g,retry:u.retry??E.config.retry,repeats:u.repeats,mode:u.only?"only":u.skip?"skip":u.todo?"todo":"run",meta:u.meta??Object.create(null)},x=u.handler;(u.concurrent||!u.sequential&&E.config.sequence.concurrent)&&(v.concurrent=!0),v.shuffle=n==null?void 0:n.shuffle;const F=Ce(v,E);Object.defineProperty(v,"context",{value:F,enumerable:!1}),fe(F,u.fixtures);const O=Error.stackTraceLimit;Error.stackTraceLimit=15;const M=new Error("STACK_TRACE_ERROR");if(Error.stackTraceLimit=O,x&&le(v,q(ke(ge(x,F),v),g,!1,M)),E.config.includeTaskLocation){const ee=M.stack,N=Se(ee,v.each??!1);N&&(v.location=N)}return i.push(v),v},f=P(function(p,u,_){let{options:g,handler:v}=S(u,_);typeof n=="object"&&(g=Object.assign({},n,g)),g.concurrent=this.concurrent||!this.sequential&&(g==null?void 0:g.concurrent),g.sequential=this.sequential||!this.concurrent&&(g==null?void 0:g.sequential);const x=a(k(p),{...this,...g,handler:v});x.type="test"});let h=s;const m={type:"collector",name:e,mode:o,suite:c,options:n,test:f,tasks:i,collect:T,task:a,clear:y,on:l,fixtures(){return h},scoped(p){const u=Y(p,{fixtures:h},_=>{var g,v;return(g=(v=V()).injectValue)===null||g===void 0?void 0:g.call(v,_)});u.fixtures&&(h=u.fixtures)}};function l(p,...u){pe(c)[p].push(...u)}function d(p){var u;typeof n=="number"&&(n={timeout:n}),c={id:"",type:"suite",name:e,suite:(u=b.currentSuite)===null||u===void 0?void 0:u.suite,mode:o,each:r,file:void 0,shuffle:n==null?void 0:n.shuffle,tasks:[],meta:Object.create(null),concurrent:n==null?void 0:n.concurrent},de(c,_e())}function y(){i.length=0,d()}async function T(p){if(!p)throw new TypeError("File is required to collect tasks.");t&&await xe(m,()=>t(f));const u=[];for(const _ of i)u.push(_.type==="collector"?await _.collect(p):_);return c.file=p,c.tasks=u,u.forEach(_=>{_.file=p}),c}return Ae(m),m}function ke(e,t){return async(...o)=>{const r=await e(...o);if(t.promises){const s=(await Promise.allSettled(t.promises)).map(i=>i.status==="rejected"?i.reason:void 0).filter(Boolean);if(s.length)throw s}return r}}function be(){function e(t,o,r){var n;const s=this.only?"only":this.skip?"skip":this.todo?"todo":"run",i=b.currentSuite||Q;let{options:c,handler:a}=S(o,r);const f=c.concurrent||this.concurrent||c.sequential===!1,h=c.sequential||this.sequential||c.concurrent===!1;c={...i==null?void 0:i.options,...c,shuffle:this.shuffle??c.shuffle??(i==null||(n=i.options)===null||n===void 0?void 0:n.shuffle)??void 0};const m=f||c.concurrent&&!h,l=h||c.sequential&&!f;return c.concurrent=m&&!l,c.sequential=l&&!m,we(k(t),a,s,this.each,c,i==null?void 0:i.fixtures())}return e.each=function(t,...o){const r=this.withContext();return this.setContext("each",!0),Array.isArray(t)&&o.length&&(t=C(t,o)),(n,s,i)=>{const c=k(n),a=t.every(Array.isArray),{options:f,handler:h}=S(s,i),m=typeof s=="function"&&typeof i=="object";t.forEach((l,d)=>{const y=Array.isArray(l)?l:[l];m?a?r(w(c,y,d),()=>h(...y),f):r(w(c,y,d),()=>h(l),f):a?r(w(c,y,d),f,()=>h(...y)):r(w(c,y,d),f,()=>h(l))}),this.setContext("each",void 0)}},e.for=function(t,...o){return Array.isArray(t)&&o.length&&(t=C(t,o)),(r,n,s)=>{const i=k(r),{options:c,handler:a}=S(n,s);t.forEach((f,h)=>{A(w(i,H(f),h),c,()=>a(f))})}},e.skipIf=t=>t?A.skip:A,e.runIf=t=>t?A:A.skip,X(["concurrent","sequential","shuffle","skip","only","todo"],e)}function Ee(e,t){const o=e;o.each=function(n,...s){const i=this.withContext();return this.setContext("each",!0),Array.isArray(n)&&s.length&&(n=C(n,s)),(c,a,f)=>{const h=k(c),m=n.every(Array.isArray),{options:l,handler:d}=S(a,f),y=typeof a=="function"&&typeof f=="object";n.forEach((T,p)=>{const u=Array.isArray(T)?T:[T];y?m?i(w(h,u,p),()=>d(...u),l):i(w(h,u,p),()=>d(T),l):m?i(w(h,u,p),l,()=>d(...u)):i(w(h,u,p),l,()=>d(T))}),this.setContext("each",void 0)}},o.for=function(n,...s){const i=this.withContext();return Array.isArray(n)&&s.length&&(n=C(n,s)),(c,a,f)=>{const h=k(c),{options:m,handler:l}=S(a,f);n.forEach((d,y)=>{const T=p=>l(d,p);T.__VITEST_FIXTURE_INDEX__=1,T.toString=()=>l.toString(),i(w(h,H(d),y),m,T)})}},o.skipIf=function(n){return n?this.skip:this},o.runIf=function(n){return n?this:this.skip},o.scoped=function(n){$().scoped(n)},o.extend=function(n){const s=Y(n,t||{},i=>{var c,a;return(c=(a=V()).injectValue)===null||c===void 0?void 0:c.call(a,i)});return P(function(c,a,f){const h=$(),m=h.fixtures(),l={...this};m&&(l.fixtures=me(l.fixtures||[],m)),h.test.fn.call(l,k(c),a,f)},s)};const r=X(["concurrent","sequential","skip","only","todo","fails"],o);return t&&r.mergeContext(t),r}function P(e,t){return Ee(e,t)}function k(e){return typeof e=="string"?e:typeof e=="function"?e.name||"<anonymous>":String(e)}function w(e,t,o){(e.includes("%#")||e.includes("%$"))&&(e=e.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,`${o}`).replace(/%\$/g,`${o+1}`).replace(/__vitest_escaped_%__/g,"%%"));const r=e.split("%").length-1;e.includes("%f")&&(e.match(/%f/g)||[]).forEach((c,a)=>{if(ie(t[a])||Object.is(t[a],-0)){let f=0;e=e.replace(/%f/g,h=>(f++,f===a+1?"-%f":h))}});let n=se(e,...t.slice(0,r));const s=L(t[0]);return n=n.replace(/\$([$\w.]+)/g,(i,c)=>{const a=/^\d+$/.test(c);if(!s&&!a)return`$${c}`;const f=a?D(t,c):void 0,h=s?D(t[0],c,f):f;return ce(h,{truncate:void 0})}),n}function C(e,t){const o=e.join("").trim().replace(/ /g,"").split(`
1
+ var te=Object.defineProperty;var ne=(e,t,o)=>t in e?te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var j=(e,t,o)=>ne(e,typeof t!="symbol"?t+"":t,o);import{getSafeTimers as re}from"../../../../../@vitest_utils@3.1.4/node_modules/@vitest/utils/dist/index.js";import{parseSingleStack as oe}from"../../../../../@vitest_utils@3.1.4/node_modules/@vitest/utils/dist/source-map.js";import{c as X}from"./chunk-tasks.js";import{isNegativeNaN as ie,isObject as L,objectAttr as D,toArray as H,createDefer as W}from"../../../../../@vitest_utils@3.1.4/node_modules/@vitest/utils/dist/helpers.js";import{f as se,o as ce}from"../../../../../@vitest_utils@3.1.4/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js";class ue extends Error{constructor(o,r,n){super(o);j(this,"code","VITEST_PENDING");j(this,"taskId");this.message=o,this.note=n,this.taskId=r.id}}const ae=new WeakMap,B=new WeakMap,G=new WeakMap;function le(e,t){ae.set(e,t)}function fe(e,t){B.set(e,t)}function he(e){return B.get(e)}function de(e,t){G.set(e,t)}function pe(e){return G.get(e)}function me(e,t){const o=t.reduce((s,i)=>(s[i.prop]=i,s),{}),r={};e.forEach(s=>{const i=o[s.prop]||{...s};r[i.prop]=i});for(const s in r){var n;const i=r[s];i.deps=(n=i.deps)===null||n===void 0?void 0:n.map(c=>r[c.prop])}return Object.values(r)}function Y(e,t,o){const r=["auto","injected"],n=Object.entries(e).map(([s,i])=>{const c={value:i};if(Array.isArray(i)&&i.length>=2&&L(i[1])&&Object.keys(i[1]).some(a=>r.includes(a))){Object.assign(c,i[1]);const a=i[0];c.value=c.injected?o(s)??a:a}return c.prop=s,c.isFn=typeof c.value=="function",c});return Array.isArray(t.fixtures)?t.fixtures=t.fixtures.concat(n):t.fixtures=n,n.forEach(s=>{if(s.isFn){const i=J(s.value);i.length&&(s.deps=t.fixtures.filter(({prop:c})=>c!==s.prop&&i.includes(c)))}}),t}const I=new Map,R=new Map;function ge(e,t){return o=>{const r=o||t;if(!r)return e({});const n=he(r);if(!(n!=null&&n.length))return e(r);const s=J(e),i=n.some(({auto:l})=>l);if(!s.length&&!i)return e(r);I.get(r)||I.set(r,new Map);const c=I.get(r);R.has(r)||R.set(r,[]);const a=R.get(r),f=n.filter(({prop:l,auto:d})=>d||s.includes(l)),h=z(f);if(!h.length)return e(r);async function m(){for(const l of h){if(c.has(l))continue;const d=l.isFn?await ye(l.value,r,a):l.value;r[l.prop]=d,c.set(l,d),a.unshift(()=>{c.delete(l)})}}return m().then(()=>e(r))}}async function ye(e,t,o){const r=W();let n=!1;const s=e(t,async i=>{n=!0,r.resolve(i);const c=W();o.push(async()=>{c.resolve(),await s}),await c}).catch(i=>{if(!n){r.reject(i);return}throw i});return r}function z(e,t=new Set,o=[]){return e.forEach(r=>{if(!o.includes(r)){if(!r.isFn||!r.deps){o.push(r);return}if(t.has(r))throw new Error(`Circular fixture dependency detected: ${r.prop} <- ${[...t].reverse().map(n=>n.prop).join(" <- ")}`);t.add(r),z(r.deps,t,o),o.push(r),t.clear()}}),o}function J(e){let t=e.toString();/__async\((?:this|null), (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(t)&&(t=t.split(/__async\((?:this|null),/)[1]);const o=t.match(/[^(]*\(([^)]*)/);if(!o)return[];const r=K(o[1]);if(!r.length)return[];let n=r[0];if("__VITEST_FIXTURE_INDEX__"in e&&(n=r[e.__VITEST_FIXTURE_INDEX__],!n))return[];if(!(n.startsWith("{")&&n.endsWith("}")))throw new Error(`The first argument inside a fixture must use object destructuring pattern, e.g. ({ test } => {}). Instead, received "${n}".`);const s=n.slice(1,-1).replace(/\s/g,""),i=K(s).map(a=>a.replace(/:.*|=.*/g,"")),c=i.at(-1);if(c&&c.startsWith("..."))throw new Error(`Rest parameters are not supported in fixtures, received "${c}".`);return i}function K(e){const t=[],o=[];let r=0;for(let s=0;s<e.length;s++)if(e[s]==="{"||e[s]==="[")o.push(e[s]==="{"?"}":"]");else if(e[s]===o[o.length-1])o.pop();else if(!o.length&&e[s]===","){const i=e.substring(r,s).trim();i&&t.push(i),r=s+1}const n=e.substring(r).trim();return n&&t.push(n),t}const A=be();P(function(e,t,o){$().test.fn.call(this,k(e),t,o)});let E,Q,ve;function Z(e,t){if(!e)throw new Error(`Vitest failed to find ${t}. This is a bug in Vitest. Please, open an issue with reproduction.`)}function Te(){return ve}function V(){return Z(E,"the runner"),E}function $(){const e=b.currentSuite||Q;return Z(e,"the current suite"),e}function _e(){return{beforeAll:[],afterAll:[],beforeEach:[],afterEach:[]}}function S(e,t){let o={},r=()=>{};if(typeof t=="object"){if(typeof e=="object")throw new TypeError("Cannot use two objects as arguments. Please provide options and a function callback in that order.");console.warn("Using an object as a third argument is deprecated. Vitest 4 will throw an error if the third argument is not a timeout number. Please use the second argument for options. See more at https://vitest.dev/guide/migration"),o=t}else typeof t=="number"?o={timeout:t}:typeof e=="object"&&(o=e);if(typeof e=="function"){if(typeof t=="function")throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");r=e}else typeof t=="function"&&(r=t);return{options:o,handler:r}}function we(e,t=()=>{},o,r,n,s){const i=[];let c;d();const a=function(p="",u={}){var _;const g=(u==null?void 0:u.timeout)??E.config.testTimeout,v={id:"",name:p,suite:(_=b.currentSuite)===null||_===void 0?void 0:_.suite,each:u.each,fails:u.fails,context:void 0,type:"test",file:void 0,timeout:g,retry:u.retry??E.config.retry,repeats:u.repeats,mode:u.only?"only":u.skip?"skip":u.todo?"todo":"run",meta:u.meta??Object.create(null)},x=u.handler;(u.concurrent||!u.sequential&&E.config.sequence.concurrent)&&(v.concurrent=!0),v.shuffle=n==null?void 0:n.shuffle;const F=Ce(v,E);Object.defineProperty(v,"context",{value:F,enumerable:!1}),fe(F,u.fixtures);const O=Error.stackTraceLimit;Error.stackTraceLimit=15;const M=new Error("STACK_TRACE_ERROR");if(Error.stackTraceLimit=O,x&&le(v,q(ke(ge(x,F),v),g,!1,M)),E.config.includeTaskLocation){const ee=M.stack,N=Se(ee,v.each??!1);N&&(v.location=N)}return i.push(v),v},f=P(function(p,u,_){let{options:g,handler:v}=S(u,_);typeof n=="object"&&(g=Object.assign({},n,g)),g.concurrent=this.concurrent||!this.sequential&&(g==null?void 0:g.concurrent),g.sequential=this.sequential||!this.concurrent&&(g==null?void 0:g.sequential);const x=a(k(p),{...this,...g,handler:v});x.type="test"});let h=s;const m={type:"collector",name:e,mode:o,suite:c,options:n,test:f,tasks:i,collect:T,task:a,clear:y,on:l,fixtures(){return h},scoped(p){const u=Y(p,{fixtures:h},_=>{var g,v;return(g=(v=V()).injectValue)===null||g===void 0?void 0:g.call(v,_)});u.fixtures&&(h=u.fixtures)}};function l(p,...u){pe(c)[p].push(...u)}function d(p){var u;typeof n=="number"&&(n={timeout:n}),c={id:"",type:"suite",name:e,suite:(u=b.currentSuite)===null||u===void 0?void 0:u.suite,mode:o,each:r,file:void 0,shuffle:n==null?void 0:n.shuffle,tasks:[],meta:Object.create(null),concurrent:n==null?void 0:n.concurrent},de(c,_e())}function y(){i.length=0,d()}async function T(p){if(!p)throw new TypeError("File is required to collect tasks.");t&&await xe(m,()=>t(f));const u=[];for(const _ of i)u.push(_.type==="collector"?await _.collect(p):_);return c.file=p,c.tasks=u,u.forEach(_=>{_.file=p}),c}return Ae(m),m}function ke(e,t){return async(...o)=>{const r=await e(...o);if(t.promises){const s=(await Promise.allSettled(t.promises)).map(i=>i.status==="rejected"?i.reason:void 0).filter(Boolean);if(s.length)throw s}return r}}function be(){function e(t,o,r){var n;const s=this.only?"only":this.skip?"skip":this.todo?"todo":"run",i=b.currentSuite||Q;let{options:c,handler:a}=S(o,r);const f=c.concurrent||this.concurrent||c.sequential===!1,h=c.sequential||this.sequential||c.concurrent===!1;c={...i==null?void 0:i.options,...c,shuffle:this.shuffle??c.shuffle??(i==null||(n=i.options)===null||n===void 0?void 0:n.shuffle)??void 0};const m=f||c.concurrent&&!h,l=h||c.sequential&&!f;return c.concurrent=m&&!l,c.sequential=l&&!m,we(k(t),a,s,this.each,c,i==null?void 0:i.fixtures())}return e.each=function(t,...o){const r=this.withContext();return this.setContext("each",!0),Array.isArray(t)&&o.length&&(t=C(t,o)),(n,s,i)=>{const c=k(n),a=t.every(Array.isArray),{options:f,handler:h}=S(s,i),m=typeof s=="function"&&typeof i=="object";t.forEach((l,d)=>{const y=Array.isArray(l)?l:[l];m?a?r(w(c,y,d),()=>h(...y),f):r(w(c,y,d),()=>h(l),f):a?r(w(c,y,d),f,()=>h(...y)):r(w(c,y,d),f,()=>h(l))}),this.setContext("each",void 0)}},e.for=function(t,...o){return Array.isArray(t)&&o.length&&(t=C(t,o)),(r,n,s)=>{const i=k(r),{options:c,handler:a}=S(n,s);t.forEach((f,h)=>{A(w(i,H(f),h),c,()=>a(f))})}},e.skipIf=t=>t?A.skip:A,e.runIf=t=>t?A:A.skip,X(["concurrent","sequential","shuffle","skip","only","todo"],e)}function Ee(e,t){const o=e;o.each=function(n,...s){const i=this.withContext();return this.setContext("each",!0),Array.isArray(n)&&s.length&&(n=C(n,s)),(c,a,f)=>{const h=k(c),m=n.every(Array.isArray),{options:l,handler:d}=S(a,f),y=typeof a=="function"&&typeof f=="object";n.forEach((T,p)=>{const u=Array.isArray(T)?T:[T];y?m?i(w(h,u,p),()=>d(...u),l):i(w(h,u,p),()=>d(T),l):m?i(w(h,u,p),l,()=>d(...u)):i(w(h,u,p),l,()=>d(T))}),this.setContext("each",void 0)}},o.for=function(n,...s){const i=this.withContext();return Array.isArray(n)&&s.length&&(n=C(n,s)),(c,a,f)=>{const h=k(c),{options:m,handler:l}=S(a,f);n.forEach((d,y)=>{const T=p=>l(d,p);T.__VITEST_FIXTURE_INDEX__=1,T.toString=()=>l.toString(),i(w(h,H(d),y),m,T)})}},o.skipIf=function(n){return n?this.skip:this},o.runIf=function(n){return n?this:this.skip},o.scoped=function(n){$().scoped(n)},o.extend=function(n){const s=Y(n,t||{},i=>{var c,a;return(c=(a=V()).injectValue)===null||c===void 0?void 0:c.call(a,i)});return P(function(c,a,f){const h=$(),m=h.fixtures(),l={...this};m&&(l.fixtures=me(l.fixtures||[],m)),h.test.fn.call(l,k(c),a,f)},s)};const r=X(["concurrent","sequential","skip","only","todo","fails"],o);return t&&r.mergeContext(t),r}function P(e,t){return Ee(e,t)}function k(e){return typeof e=="string"?e:typeof e=="function"?e.name||"<anonymous>":String(e)}function w(e,t,o){(e.includes("%#")||e.includes("%$"))&&(e=e.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,`${o}`).replace(/%\$/g,`${o+1}`).replace(/__vitest_escaped_%__/g,"%%"));const r=e.split("%").length-1;e.includes("%f")&&(e.match(/%f/g)||[]).forEach((c,a)=>{if(ie(t[a])||Object.is(t[a],-0)){let f=0;e=e.replace(/%f/g,h=>(f++,f===a+1?"-%f":h))}});let n=se(e,...t.slice(0,r));const s=L(t[0]);return n=n.replace(/\$([$\w.]+)/g,(i,c)=>{const a=/^\d+$/.test(c);if(!s&&!a)return`$${c}`;const f=a?D(t,c):void 0,h=s?D(t[0],c,f):f;return ce(h,{truncate:void 0})}),n}function C(e,t){const o=e.join("").trim().replace(/ /g,"").split(`
2
2
  `).map(n=>n.split("|"))[0],r=[];for(let n=0;n<Math.floor(t.length/o.length);n++){const s={};for(let i=0;i<o.length;i++)s[o[i]]=t[n*o.length+i];r.push(s)}return r}function Se(e,t){const o=e.split(`
3
3
  `).slice(1);for(const r of o){const n=oe(r);if(n&&n.file===Te())return{line:n.line,column:t?n.column+1:n.column}}}const U=Date.now,b={currentSuite:null};function Ae(e){var t;(t=b.currentSuite)===null||t===void 0||t.tasks.push(e)}async function xe(e,t){const o=b.currentSuite;b.currentSuite=e,await t(),b.currentSuite=o}function q(e,t,o=!1,r){if(t<=0||t===Number.POSITIVE_INFINITY)return e;const{setTimeout:n,clearTimeout:s}=re();return function(...c){const a=U(),f=V();return f._currentTaskStartTime=a,f._currentTaskTimeout=t,new Promise((h,m)=>{var l;const d=n(()=>{s(d),y()},t);(l=d.unref)===null||l===void 0||l.call(d);function y(){m(Fe(o,t,r))}function T(u){if(f._currentTaskStartTime=void 0,f._currentTaskTimeout=void 0,s(d),U()-a>=t){y();return}h(u)}function p(u){f._currentTaskStartTime=void 0,f._currentTaskTimeout=void 0,s(d),m(u)}try{const u=e(...c);typeof u=="object"&&u!=null&&typeof u.then=="function"?u.then(T,p):T(u)}catch(u){p(u)}})}}function Ce(e,t){var o;const r=function(){throw new Error("done() callback is deprecated, use promise instead")};return r.task=e,r.skip=(n,s)=>{if(n!==!1)throw e.result??(e.result={state:"skip"}),e.result.pending=!0,new ue("test is skipped; abort execution",e,typeof n=="string"?n:s)},r.onTestFailed=(n,s)=>{e.onFailed||(e.onFailed=[]),e.onFailed.push(q(n,s??t.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR")))},r.onTestFinished=(n,s)=>{e.onFinished||(e.onFinished=[]),e.onFinished.push(q(n,s??t.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR")))},((o=t.extendTaskContext)===null||o===void 0?void 0:o.call(t,r))||r}function Fe(e,t,o){const r=`${e?"Hook":"Test"} timed out in ${t}ms.
4
4
  If this is a long-running ${e?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "${e?"hookTimeout":"testTimeout"}".`,n=new Error(r);return o!=null&&o.stack&&(n.stack=o.stack.replace(n.message,o.message)),n}globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;export{Ee as createTaskCollector,$ as getCurrentSuite,pe as getHooks,le as setFn,de as setHooks,A as suite};
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["node_modules/.pnpm/magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.js","_virtual/sourcemap-codec.umd.js","node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.0/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js","_virtual/sourcemap-codec.umd2.js"])))=>i.map(i=>d[i]);
2
- var $e=Object.defineProperty;var Ne=(t,e,n)=>e in t?$e(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var y=(t,e,n)=>Ne(t,typeof e!="symbol"?e+"":e,n);import{__vitePreload as Pe}from"../../../../../../../_virtual/preload-helper.js";import{format as Re,plugins as Ce}from"../../../../../@vitest_pretty-format@3.1.3/node_modules/@vitest/pretty-format/dist/index.js";import{r as Te}from"../../../../../pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js";const Oe=44,ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ae=new Uint8Array(64),Se=new Uint8Array(128);for(let t=0;t<ee.length;t++){const e=ee.charCodeAt(t);Ae[t]=e,Se[e]=t}function F(t,e){let n=0,s=0,i=0;do{const a=t.next();i=Se[a],n|=(i&31)<<s,s+=5}while(i&32);const r=n&1;return n>>>=1,r&&(n=-2147483648|-n),e+n}function te(t,e){return t.pos>=e?!1:t.peek()!==Oe}class Me{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:n,pos:s}=this,i=n.indexOf(e,s);return i===-1?n.length:i}}function Fe(t){const{length:e}=t,n=new Me(t),s=[];let i=0,r=0,a=0,l=0,o=0;do{const c=n.indexOf(";"),d=[];let p=!0,u=0;for(i=0;n.pos<c;){let S;i=F(n,i),i<u&&(p=!1),u=i,te(n,c)?(r=F(n,r),a=F(n,a),l=F(n,l),te(n,c)?(o=F(n,o),S=[i,r,a,l,o]):S=[i,r,a,l]):S=[i],d.push(S),n.pos++}p||Le(d),s.push(d),n.pos=c+1}while(n.pos<=e);return s}function Le(t){t.sort(Be)}function Be(t,e){return t[0]-e[0]}const De=/^[\w+.-]+:\/\//,Je=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Xe=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var v;(function(t){t[t.Empty=1]="Empty",t[t.Hash=2]="Hash",t[t.Query=3]="Query",t[t.RelativePath=4]="RelativePath",t[t.AbsolutePath=5]="AbsolutePath",t[t.SchemeRelative=6]="SchemeRelative",t[t.Absolute=7]="Absolute"})(v||(v={}));function je(t){return De.test(t)}function We(t){return t.startsWith("//")}function _e(t){return t.startsWith("/")}function Ke(t){return t.startsWith("file:")}function ne(t){return/^[.?#]/.test(t)}function B(t){const e=Je.exec(t);return ye(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}function Ue(t){const e=Xe.exec(t),n=e[2];return ye("file:","",e[1]||"","",_e(n)?n:"/"+n,e[3]||"",e[4]||"")}function ye(t,e,n,s,i,r,a){return{scheme:t,user:e,host:n,port:s,path:i,query:r,hash:a,type:v.Absolute}}function se(t){if(We(t)){const n=B("http:"+t);return n.scheme="",n.type=v.SchemeRelative,n}if(_e(t)){const n=B("http://foo.com"+t);return n.scheme="",n.host="",n.type=v.AbsolutePath,n}if(Ke(t))return Ue(t);if(je(t))return B(t);const e=B("http://foo.com/"+t);return e.scheme="",e.host="",e.type=t?t.startsWith("?")?v.Query:t.startsWith("#")?v.Hash:v.RelativePath:v.Empty,e}function qe(t){if(t.endsWith("/.."))return t;const e=t.lastIndexOf("/");return t.slice(0,e+1)}function ze(t,e){ve(e,e.type),t.path==="/"?t.path=e.path:t.path=qe(e.path)+t.path}function ve(t,e){const n=e<=v.RelativePath,s=t.path.split("/");let i=1,r=0,a=!1;for(let o=1;o<s.length;o++){const c=s[o];if(!c){a=!0;continue}if(a=!1,c!=="."){if(c===".."){r?(a=!0,r--,i--):n&&(s[i++]=c);continue}s[i++]=c,r++}}let l="";for(let o=1;o<i;o++)l+="/"+s[o];(!l||a&&!l.endsWith("/.."))&&(l+="/"),t.path=l}function He(t,e){if(!t&&!e)return"";const n=se(t);let s=n.type;if(e&&s!==v.Absolute){const r=se(e),a=r.type;switch(s){case v.Empty:n.hash=r.hash;case v.Hash:n.query=r.query;case v.Query:case v.RelativePath:ze(n,r);case v.AbsolutePath:n.user=r.user,n.host=r.host,n.port=r.port;case v.SchemeRelative:n.scheme=r.scheme}a>s&&(s=a)}ve(n,s);const i=n.query+n.hash;switch(s){case v.Hash:case v.Query:return i;case v.RelativePath:{const r=n.path.slice(1);return r?ne(e||t)&&!ne(r)?"./"+r+i:r+i:i||"."}case v.AbsolutePath:return n.path+i;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+i}}function ie(t,e){return e&&!e.endsWith("/")&&(e+="/"),He(t,e)}function Ge(t){if(!t)return"";const e=t.lastIndexOf("/");return t.slice(0,e+1)}const C=0,Ve=1,Qe=2,Ze=3,Ye=4;function et(t,e){const n=re(t,0);if(n===t.length)return t;e||(t=t.slice());for(let s=n;s<t.length;s=re(t,s+1))t[s]=nt(t[s],e);return t}function re(t,e){for(let n=e;n<t.length;n++)if(!tt(t[n]))return n;return t.length}function tt(t){for(let e=1;e<t.length;e++)if(t[e][C]<t[e-1][C])return!1;return!0}function nt(t,e){return e||(t=t.slice()),t.sort(st)}function st(t,e){return t[C]-e[C]}let X=!1;function it(t,e,n,s){for(;n<=s;){const i=n+(s-n>>1),r=t[i][C]-e;if(r===0)return X=!0,i;r<0?n=i+1:s=i-1}return X=!1,n-1}function rt(t,e,n){for(let s=n+1;s<t.length&&t[s][C]===e;n=s++);return n}function at(t,e,n){for(let s=n-1;s>=0&&t[s][C]===e;n=s--);return n}function ot(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function lt(t,e,n,s){const{lastKey:i,lastNeedle:r,lastIndex:a}=n;let l=0,o=t.length-1;if(s===i){if(e===r)return X=a!==-1&&t[a][C]===e,a;e>=r?l=a===-1?0:a:o=a}return n.lastKey=s,n.lastNeedle=e,n.lastIndex=it(t,e,l,o)}const ct="`line` must be greater than 0 (lines start at line 1)",ut="`column` must be greater than or equal to 0 (columns start at column 0)",ae=-1,ht=1;class dt{constructor(e,n){const s=typeof e=="string";if(!s&&e._decodedMemo)return e;const i=s?JSON.parse(e):e,{version:r,file:a,names:l,sourceRoot:o,sources:c,sourcesContent:d}=i;this.version=r,this.file=a,this.names=l||[],this.sourceRoot=o,this.sources=c,this.sourcesContent=d,this.ignoreList=i.ignoreList||i.x_google_ignoreList||void 0;const p=ie(o||"",Ge(n));this.resolvedSources=c.map(S=>ie(S||"",p));const{mappings:u}=i;typeof u=="string"?(this._encoded=u,this._decoded=void 0):(this._encoded=void 0,this._decoded=et(u,s)),this._decodedMemo=ot(),this._bySources=void 0,this._bySourceMemos=void 0}}function ft(t){var e;return(e=t)._decoded||(e._decoded=Fe(t._encoded))}function pt(t,e){let{line:n,column:s,bias:i}=e;if(n--,n<0)throw new Error(ct);if(s<0)throw new Error(ut);const r=ft(t);if(n>=r.length)return D(null,null,null,null);const a=r[n],l=mt(a,t._decodedMemo,n,s,i||ht);if(l===-1)return D(null,null,null,null);const o=a[l];if(o.length===1)return D(null,null,null,null);const{names:c,resolvedSources:d}=t;return D(d[o[Ve]],o[Qe]+1,o[Ze],o.length===5?c[o[Ye]]:null)}function D(t,e,n,s){return{source:t,line:e,column:n,name:s}}function mt(t,e,n,s,i){let r=lt(t,s,e,n);return X?r=(i===ae?rt:at)(t,s,r):i===ae&&r++,r===-1||r===t.length?-1:r}function xe(t){return t!=null}function gt(t){return t===null||typeof t!="function"&&typeof t!="object"}function J(t){return t!=null&&typeof t=="object"&&!Array.isArray(t)}function St(t){let e=-1,n=null,s=0,i=0,r=null;for(;e<=t.length;){r=t[e],e++;const a=t[e];if((a==='"'||a==="'"||a==="`")&&r!=="\\"&&(n===a?n=null:n||(n=a)),n||(a==="("&&s++,a===")"&&i++),s&&i&&s===i)return e}return null}const we=/^\s*at .*(?:\S:\d+|\(native\))/m,_t=/^(?:eval@)?(?:\[native code\])?$/,yt=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function Ie(t){if(!t.includes(":"))return[t];const n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/^\(|\)$/g,""));if(!n)return[t];let s=n[1];if(s.startsWith("async ")&&(s=s.slice(6)),s.startsWith("http:")||s.startsWith("https:")){const i=new URL(s);i.searchParams.delete("import"),i.searchParams.delete("browserv"),s=i.pathname+i.hash+i.search}if(s.startsWith("/@fs/")){const i=/^\/@fs\/[a-zA-Z]:\//.test(s);s=s.slice(i?5:4)}return[s,n[2]||void 0,n[3]||void 0]}function vt(t){let e=t.trim();if(_t.test(e)||(e.includes(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!e.includes("@")&&!e.includes(":")))return null;const n=/((.*".+"[^@]*)?[^@]*)(@)/,s=e.match(n),i=s&&s[1]?s[1]:void 0,[r,a,l]=Ie(e.replace(n,""));return!r||!a||!l?null:{file:r,method:i||"",line:Number.parseInt(a),column:Number.parseInt(l)}}function xt(t){let e=t.trim();if(!we.test(e))return null;e.includes("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const s=n.match(/ (\(.+\)$)/);n=s?n.replace(s[0],""):n;const[i,r,a]=Ie(s?s[1]:n);let l=s&&n||"",o=i&&["eval","<anonymous>"].includes(i)?void 0:i;return!o||!r||!a?null:(l.startsWith("async ")&&(l=l.slice(6)),o.startsWith("file://")&&(o=o.slice(7)),o=o.startsWith("node:")||o.startsWith("internal:")?o:Te(o),l&&(l=l.replace(/__vite_ssr_import_\d+__\./g,"")),{method:l,file:o,line:Number.parseInt(r),column:Number.parseInt(a)})}function j(t,e={}){const{ignoreStackEntries:n=yt}=e;return(we.test(t)?It(t):wt(t)).map(i=>{var r;e.getUrlId&&(i.file=e.getUrlId(i.file));const a=(r=e.getSourceMap)===null||r===void 0?void 0:r.call(e,i.file);if(!a||typeof a!="object"||!a.version)return oe(n,i.file)?null:i;const l=new dt(a),{line:o,column:c,source:d,name:p}=pt(l,i);let u=i.file;if(d){const S=i.file.startsWith("file://")?i.file:`file://${i.file}`,I=a.sourceRoot?new URL(a.sourceRoot,S):S;u=new URL(d,I).pathname}return oe(n,u)?null:o!=null&&c!=null?{line:o,column:c,file:u,method:p||i.method}:i}).filter(i=>i!=null)}function oe(t,e){return t.some(n=>e.match(n))}function wt(t){return t.split(`
2
+ var $e=Object.defineProperty;var Ne=(t,e,n)=>e in t?$e(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var y=(t,e,n)=>Ne(t,typeof e!="symbol"?e+"":e,n);import{__vitePreload as Pe}from"../../../../../../../_virtual/preload-helper.js";import{format as Re,plugins as Ce}from"../../../../../@vitest_pretty-format@3.1.4/node_modules/@vitest/pretty-format/dist/index.js";import{r as Te}from"../../../../../pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js";const Oe=44,ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ae=new Uint8Array(64),Se=new Uint8Array(128);for(let t=0;t<ee.length;t++){const e=ee.charCodeAt(t);Ae[t]=e,Se[e]=t}function F(t,e){let n=0,s=0,i=0;do{const a=t.next();i=Se[a],n|=(i&31)<<s,s+=5}while(i&32);const r=n&1;return n>>>=1,r&&(n=-2147483648|-n),e+n}function te(t,e){return t.pos>=e?!1:t.peek()!==Oe}class Me{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:n,pos:s}=this,i=n.indexOf(e,s);return i===-1?n.length:i}}function Fe(t){const{length:e}=t,n=new Me(t),s=[];let i=0,r=0,a=0,l=0,o=0;do{const c=n.indexOf(";"),d=[];let p=!0,u=0;for(i=0;n.pos<c;){let S;i=F(n,i),i<u&&(p=!1),u=i,te(n,c)?(r=F(n,r),a=F(n,a),l=F(n,l),te(n,c)?(o=F(n,o),S=[i,r,a,l,o]):S=[i,r,a,l]):S=[i],d.push(S),n.pos++}p||Le(d),s.push(d),n.pos=c+1}while(n.pos<=e);return s}function Le(t){t.sort(Be)}function Be(t,e){return t[0]-e[0]}const De=/^[\w+.-]+:\/\//,Je=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Xe=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var v;(function(t){t[t.Empty=1]="Empty",t[t.Hash=2]="Hash",t[t.Query=3]="Query",t[t.RelativePath=4]="RelativePath",t[t.AbsolutePath=5]="AbsolutePath",t[t.SchemeRelative=6]="SchemeRelative",t[t.Absolute=7]="Absolute"})(v||(v={}));function je(t){return De.test(t)}function We(t){return t.startsWith("//")}function _e(t){return t.startsWith("/")}function Ke(t){return t.startsWith("file:")}function ne(t){return/^[.?#]/.test(t)}function B(t){const e=Je.exec(t);return ye(e[1],e[2]||"",e[3],e[4]||"",e[5]||"/",e[6]||"",e[7]||"")}function Ue(t){const e=Xe.exec(t),n=e[2];return ye("file:","",e[1]||"","",_e(n)?n:"/"+n,e[3]||"",e[4]||"")}function ye(t,e,n,s,i,r,a){return{scheme:t,user:e,host:n,port:s,path:i,query:r,hash:a,type:v.Absolute}}function se(t){if(We(t)){const n=B("http:"+t);return n.scheme="",n.type=v.SchemeRelative,n}if(_e(t)){const n=B("http://foo.com"+t);return n.scheme="",n.host="",n.type=v.AbsolutePath,n}if(Ke(t))return Ue(t);if(je(t))return B(t);const e=B("http://foo.com/"+t);return e.scheme="",e.host="",e.type=t?t.startsWith("?")?v.Query:t.startsWith("#")?v.Hash:v.RelativePath:v.Empty,e}function qe(t){if(t.endsWith("/.."))return t;const e=t.lastIndexOf("/");return t.slice(0,e+1)}function ze(t,e){ve(e,e.type),t.path==="/"?t.path=e.path:t.path=qe(e.path)+t.path}function ve(t,e){const n=e<=v.RelativePath,s=t.path.split("/");let i=1,r=0,a=!1;for(let o=1;o<s.length;o++){const c=s[o];if(!c){a=!0;continue}if(a=!1,c!=="."){if(c===".."){r?(a=!0,r--,i--):n&&(s[i++]=c);continue}s[i++]=c,r++}}let l="";for(let o=1;o<i;o++)l+="/"+s[o];(!l||a&&!l.endsWith("/.."))&&(l+="/"),t.path=l}function He(t,e){if(!t&&!e)return"";const n=se(t);let s=n.type;if(e&&s!==v.Absolute){const r=se(e),a=r.type;switch(s){case v.Empty:n.hash=r.hash;case v.Hash:n.query=r.query;case v.Query:case v.RelativePath:ze(n,r);case v.AbsolutePath:n.user=r.user,n.host=r.host,n.port=r.port;case v.SchemeRelative:n.scheme=r.scheme}a>s&&(s=a)}ve(n,s);const i=n.query+n.hash;switch(s){case v.Hash:case v.Query:return i;case v.RelativePath:{const r=n.path.slice(1);return r?ne(e||t)&&!ne(r)?"./"+r+i:r+i:i||"."}case v.AbsolutePath:return n.path+i;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+i}}function ie(t,e){return e&&!e.endsWith("/")&&(e+="/"),He(t,e)}function Ge(t){if(!t)return"";const e=t.lastIndexOf("/");return t.slice(0,e+1)}const C=0,Ve=1,Qe=2,Ze=3,Ye=4;function et(t,e){const n=re(t,0);if(n===t.length)return t;e||(t=t.slice());for(let s=n;s<t.length;s=re(t,s+1))t[s]=nt(t[s],e);return t}function re(t,e){for(let n=e;n<t.length;n++)if(!tt(t[n]))return n;return t.length}function tt(t){for(let e=1;e<t.length;e++)if(t[e][C]<t[e-1][C])return!1;return!0}function nt(t,e){return e||(t=t.slice()),t.sort(st)}function st(t,e){return t[C]-e[C]}let X=!1;function it(t,e,n,s){for(;n<=s;){const i=n+(s-n>>1),r=t[i][C]-e;if(r===0)return X=!0,i;r<0?n=i+1:s=i-1}return X=!1,n-1}function rt(t,e,n){for(let s=n+1;s<t.length&&t[s][C]===e;n=s++);return n}function at(t,e,n){for(let s=n-1;s>=0&&t[s][C]===e;n=s--);return n}function ot(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function lt(t,e,n,s){const{lastKey:i,lastNeedle:r,lastIndex:a}=n;let l=0,o=t.length-1;if(s===i){if(e===r)return X=a!==-1&&t[a][C]===e,a;e>=r?l=a===-1?0:a:o=a}return n.lastKey=s,n.lastNeedle=e,n.lastIndex=it(t,e,l,o)}const ct="`line` must be greater than 0 (lines start at line 1)",ut="`column` must be greater than or equal to 0 (columns start at column 0)",ae=-1,ht=1;class dt{constructor(e,n){const s=typeof e=="string";if(!s&&e._decodedMemo)return e;const i=s?JSON.parse(e):e,{version:r,file:a,names:l,sourceRoot:o,sources:c,sourcesContent:d}=i;this.version=r,this.file=a,this.names=l||[],this.sourceRoot=o,this.sources=c,this.sourcesContent=d,this.ignoreList=i.ignoreList||i.x_google_ignoreList||void 0;const p=ie(o||"",Ge(n));this.resolvedSources=c.map(S=>ie(S||"",p));const{mappings:u}=i;typeof u=="string"?(this._encoded=u,this._decoded=void 0):(this._encoded=void 0,this._decoded=et(u,s)),this._decodedMemo=ot(),this._bySources=void 0,this._bySourceMemos=void 0}}function ft(t){var e;return(e=t)._decoded||(e._decoded=Fe(t._encoded))}function pt(t,e){let{line:n,column:s,bias:i}=e;if(n--,n<0)throw new Error(ct);if(s<0)throw new Error(ut);const r=ft(t);if(n>=r.length)return D(null,null,null,null);const a=r[n],l=mt(a,t._decodedMemo,n,s,i||ht);if(l===-1)return D(null,null,null,null);const o=a[l];if(o.length===1)return D(null,null,null,null);const{names:c,resolvedSources:d}=t;return D(d[o[Ve]],o[Qe]+1,o[Ze],o.length===5?c[o[Ye]]:null)}function D(t,e,n,s){return{source:t,line:e,column:n,name:s}}function mt(t,e,n,s,i){let r=lt(t,s,e,n);return X?r=(i===ae?rt:at)(t,s,r):i===ae&&r++,r===-1||r===t.length?-1:r}function xe(t){return t!=null}function gt(t){return t===null||typeof t!="function"&&typeof t!="object"}function J(t){return t!=null&&typeof t=="object"&&!Array.isArray(t)}function St(t){let e=-1,n=null,s=0,i=0,r=null;for(;e<=t.length;){r=t[e],e++;const a=t[e];if((a==='"'||a==="'"||a==="`")&&r!=="\\"&&(n===a?n=null:n||(n=a)),n||(a==="("&&s++,a===")"&&i++),s&&i&&s===i)return e}return null}const we=/^\s*at .*(?:\S:\d+|\(native\))/m,_t=/^(?:eval@)?(?:\[native code\])?$/,yt=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function Ie(t){if(!t.includes(":"))return[t];const n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(t.replace(/^\(|\)$/g,""));if(!n)return[t];let s=n[1];if(s.startsWith("async ")&&(s=s.slice(6)),s.startsWith("http:")||s.startsWith("https:")){const i=new URL(s);i.searchParams.delete("import"),i.searchParams.delete("browserv"),s=i.pathname+i.hash+i.search}if(s.startsWith("/@fs/")){const i=/^\/@fs\/[a-zA-Z]:\//.test(s);s=s.slice(i?5:4)}return[s,n[2]||void 0,n[3]||void 0]}function vt(t){let e=t.trim();if(_t.test(e)||(e.includes(" > eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!e.includes("@")&&!e.includes(":")))return null;const n=/((.*".+"[^@]*)?[^@]*)(@)/,s=e.match(n),i=s&&s[1]?s[1]:void 0,[r,a,l]=Ie(e.replace(n,""));return!r||!a||!l?null:{file:r,method:i||"",line:Number.parseInt(a),column:Number.parseInt(l)}}function xt(t){let e=t.trim();if(!we.test(e))return null;e.includes("(eval ")&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=e.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const s=n.match(/ (\(.+\)$)/);n=s?n.replace(s[0],""):n;const[i,r,a]=Ie(s?s[1]:n);let l=s&&n||"",o=i&&["eval","<anonymous>"].includes(i)?void 0:i;return!o||!r||!a?null:(l.startsWith("async ")&&(l=l.slice(6)),o.startsWith("file://")&&(o=o.slice(7)),o=o.startsWith("node:")||o.startsWith("internal:")?o:Te(o),l&&(l=l.replace(/__vite_ssr_import_\d+__\./g,"")),{method:l,file:o,line:Number.parseInt(r),column:Number.parseInt(a)})}function j(t,e={}){const{ignoreStackEntries:n=yt}=e;return(we.test(t)?It(t):wt(t)).map(i=>{var r;e.getUrlId&&(i.file=e.getUrlId(i.file));const a=(r=e.getSourceMap)===null||r===void 0?void 0:r.call(e,i.file);if(!a||typeof a!="object"||!a.version)return oe(n,i.file)?null:i;const l=new dt(a),{line:o,column:c,source:d,name:p}=pt(l,i);let u=i.file;if(d){const S=i.file.startsWith("file://")?i.file:`file://${i.file}`,I=a.sourceRoot?new URL(a.sourceRoot,S):S;u=new URL(d,I).pathname}return oe(n,u)?null:o!=null&&c!=null?{line:o,column:c,file:u,method:p||i.method}:i}).filter(i=>i!=null)}function oe(t,e){return t.some(n=>e.match(n))}function wt(t){return t.split(`
3
3
  `).map(e=>vt(e)).filter(xe)}function It(t){return t.split(`
4
4
  `).map(e=>xt(e)).filter(xe)}function Et(t,e={}){if(!t||gt(t))return[];if(t.stacks)return t.stacks;const n=t.stack||t.stackStr||"";let s=j(n,e);if(!s.length){const i=t;i.fileName!=null&&i.lineNumber!=null&&i.columnNumber!=null&&(s=j(`${i.fileName}:${i.lineNumber}:${i.columnNumber}`,e)),i.sourceURL!=null&&i.line!=null&&i._column!=null&&(s=j(`${i.sourceURL}:${i.line}:${i.column}`,e))}return e.frameFilter&&(s=s.filter(i=>e.frameFilter(t,i)!==!1)),t.stacks=s,s}let bt=()=>"Promise{…}";try{const{getPromiseDetails:t,kPending:e,kRejected:n}=process.binding("util");Array.isArray(t(Promise.resolve()))&&(bt=(s,i)=>{const[r,a]=t(s);return r===e?"Promise{<pending>}":`Promise${r===n?"!":""}{${i.inspect(a,i)}}`})}catch{}let le=!1;try{const t=require("util");le=t.inspect?t.inspect.custom:!1}catch{le=!1}function kt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var W,ce;function $t(){if(ce)return W;ce=1;var t,e,n,s,i,r,a,l,o,c,d,p,u,S,I,b,k,E,$;return u=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,p=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,t=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,I=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,d=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,b=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,$=/[\t\v\f\ufeff\p{Zs}]+/yu,l=/\r?\n|[\r\u2028\u2029]/y,o=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,S=/\/\/.*/y,n=/[<>.:={}]|\/(?![\/*])/y,e=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,s=/(['"])(?:(?!\1)[^])*(\1)?/y,i=/[^<>{}]+/y,E=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,k=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,r=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,a=/^(?:return|throw|yield)$/,c=RegExp(l.source),W=function*(_,{jsx:T=!1}={}){var w,P,O,f,m,Z,h,R,Y,N,A,g,M,x;for({length:Z}=_,f=0,m="",x=[{tag:"JS"}],w=[],A=0,g=!1;f<Z;){switch(R=x[x.length-1],R.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(_[f]==="/"&&(E.test(m)||r.test(m))&&(u.lastIndex=f,h=u.exec(_))){f=u.lastIndex,m=h[0],g=!0,yield{type:"RegularExpressionLiteral",value:h[0],closed:h[1]!==void 0&&h[1]!=="\\"};continue}if(p.lastIndex=f,h=p.exec(_)){switch(M=h[0],Y=p.lastIndex,N=M,M){case"(":m==="?NonExpressionParenKeyword"&&x.push({tag:"JSNonExpressionParen",nesting:A}),A++,g=!1;break;case")":A--,g=!0,R.tag==="JSNonExpressionParen"&&A===R.nesting&&(x.pop(),N="?NonExpressionParenEnd",g=!1);break;case"{":p.lastIndex=0,O=!k.test(m)&&(E.test(m)||r.test(m)),w.push(O),g=!1;break;case"}":switch(R.tag){case"InterpolationInTemplate":if(w.length===R.nesting){b.lastIndex=f,h=b.exec(_),f=b.lastIndex,m=h[0],h[1]==="${"?(m="?InterpolationInTemplate",g=!1,yield{type:"TemplateMiddle",value:h[0]}):(x.pop(),g=!0,yield{type:"TemplateTail",value:h[0],closed:h[1]==="`"});continue}break;case"InterpolationInJSX":if(w.length===R.nesting){x.pop(),f+=1,m="}",yield{type:"JSXPunctuator",value:"}"};continue}}g=w.pop(),N=g?"?ExpressionBraceEnd":"}";break;case"]":g=!0;break;case"++":case"--":N=g?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(T&&(E.test(m)||r.test(m))){x.push({tag:"JSXTag"}),f+=1,m="<",yield{type:"JSXPunctuator",value:M};continue}g=!1;break;default:g=!1}f=Y,m=N,yield{type:"Punctuator",value:M};continue}if(t.lastIndex=f,h=t.exec(_)){switch(f=t.lastIndex,N=h[0],h[0]){case"for":case"if":case"while":case"with":m!=="."&&m!=="?."&&(N="?NonExpressionParenKeyword")}m=N,g=!r.test(h[0]),yield{type:h[1]==="#"?"PrivateIdentifier":"IdentifierName",value:h[0]};continue}if(I.lastIndex=f,h=I.exec(_)){f=I.lastIndex,m=h[0],g=!0,yield{type:"StringLiteral",value:h[0],closed:h[2]!==void 0};continue}if(d.lastIndex=f,h=d.exec(_)){f=d.lastIndex,m=h[0],g=!0,yield{type:"NumericLiteral",value:h[0]};continue}if(b.lastIndex=f,h=b.exec(_)){f=b.lastIndex,m=h[0],h[1]==="${"?(m="?InterpolationInTemplate",x.push({tag:"InterpolationInTemplate",nesting:w.length}),g=!1,yield{type:"TemplateHead",value:h[0]}):(g=!0,yield{type:"NoSubstitutionTemplate",value:h[0],closed:h[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(n.lastIndex=f,h=n.exec(_)){switch(f=n.lastIndex,N=h[0],h[0]){case"<":x.push({tag:"JSXTag"});break;case">":x.pop(),m==="/"||R.tag==="JSXTagEnd"?(N="?JSX",g=!0):x.push({tag:"JSXChildren"});break;case"{":x.push({tag:"InterpolationInJSX",nesting:w.length}),N="?InterpolationInJSX",g=!1;break;case"/":m==="<"&&(x.pop(),x[x.length-1].tag==="JSXChildren"&&x.pop(),x.push({tag:"JSXTagEnd"}))}m=N,yield{type:"JSXPunctuator",value:h[0]};continue}if(e.lastIndex=f,h=e.exec(_)){f=e.lastIndex,m=h[0],yield{type:"JSXIdentifier",value:h[0]};continue}if(s.lastIndex=f,h=s.exec(_)){f=s.lastIndex,m=h[0],yield{type:"JSXString",value:h[0],closed:h[2]!==void 0};continue}break;case"JSXChildren":if(i.lastIndex=f,h=i.exec(_)){f=i.lastIndex,m=h[0],yield{type:"JSXText",value:h[0]};continue}switch(_[f]){case"<":x.push({tag:"JSXTag"}),f++,m="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":x.push({tag:"InterpolationInJSX",nesting:w.length}),f++,m="?InterpolationInJSX",g=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if($.lastIndex=f,h=$.exec(_)){f=$.lastIndex,yield{type:"WhiteSpace",value:h[0]};continue}if(l.lastIndex=f,h=l.exec(_)){f=l.lastIndex,g=!1,a.test(m)&&(m="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:h[0]};continue}if(o.lastIndex=f,h=o.exec(_)){f=o.lastIndex,c.test(h[0])&&(g=!1,a.test(m)&&(m="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:h[0],closed:h[1]!==void 0};continue}if(S.lastIndex=f,h=S.exec(_)){f=S.lastIndex,g=!1,yield{type:"SingleLineComment",value:h[0]};continue}P=String.fromCodePoint(_.codePointAt(f)),f+=P.length,m=P,g=!1,yield{type:R.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:P}}},W}$t();var Ee={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(Ee.keyword);new Set(Ee.strict);var Nt={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]},Pt=Object.entries(Nt);function z(t){return String(t)}z.open="";z.close="";function Rt(t=!1){let e=typeof process<"u"?process:void 0,n=(e==null?void 0:e.env)||{},s=(e==null?void 0:e.argv)||[];return!("NO_COLOR"in n||s.includes("--no-color"))&&("FORCE_COLOR"in n||s.includes("--color")||(e==null?void 0:e.platform)==="win32"||t&&n.TERM!=="dumb"||"CI"in n)||typeof window<"u"&&!!window.chrome}function Ct(t=!1){let e=Rt(t),n=(a,l,o,c)=>{let d="",p=0;do d+=a.substring(p,c)+o,p=c+l.length,c=a.indexOf(l,p);while(~c);return d+a.substring(p)},s=(a,l,o=a)=>{let c=d=>{let p=String(d),u=p.indexOf(l,a.length);return~u?a+n(p,l,o,u)+l:a+p+l};return c.open=a,c.close=l,c},i={isColorSupported:e},r=a=>`\x1B[${a}m`;for(let[a,l]of Pt)i[a]=e?s(r(l[0]),r(l[1]),l[2]):z;return i}Ct();const H=/\r?\n/;function Tt(t,e,n){const s=t.split(H),i=/\r\n/.test(t)?2:1;let r=0;if(e>s.length)return t.length;for(let a=0;a<e-1;a++)r+=s[a].length+i;return r+n}function Ot(t,e){if(e>t.length)throw new Error(`offset is longer than source length! offset ${e} > length ${t.length}`);const n=t.split(H),s=/\r\n/.test(t)?2:1;let i=0,r=0;for(;r<n.length;r++){const a=n[r].length+s;if(i+a>=e)break;i+=a}return r+1}async function At(t,e){const n=(await Pe(async()=>{const{default:i}=await import("../../../../../magic-string@0.30.17/node_modules/magic-string/dist/magic-string.es.js");return{default:i}},__vite__mapDeps([0,1,2,3]))).default,s=new Set(e.map(i=>i.file));await Promise.all(Array.from(s).map(async i=>{const r=e.filter(c=>c.file===i),a=await t.readSnapshotFile(i),l=new n(a);for(const c of r){const d=Tt(a,c.line,c.column);Jt(a,l,d,c.snapshot)}const o=l.toString();o!==a&&await t.saveSnapshotFile(i,o)}))}const Mt=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*\{/;function Ft(t,e,n,s){let i=t.slice(n);const r=Mt.exec(i);if(!r)return!1;i=i.slice(r.index);let a=St(i);if(a===null)return!1;a+=n+r.index;const l=n+r.index+r[0].length,o=Lt(t,l),c=`, ${be(s,t,n)}`;return o===a?e.appendLeft(a,c):e.overwrite(o,a,c),!0}function Lt(t,e){let n=1,s=0;for(;n!==s&&e<t.length;){const i=t[e++];i==="{"?n++:i==="}"&&s++}return e}function be(t,e,n){const s=Ot(e,n),r=e.split(H)[s-1].match(/^\s*/)[0]||"",a=r.includes(" ")?`${r} `:`${r} `,l=t.trim().replace(/\\/g,"\\\\").split(/\n/g),o=l.length<=1,c="`";return o?`${c}${l.join(`
5
5
  `).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}${c}`:`${c}
@@ -1 +1 @@
1
- import{format as l,plugins as a}from"../../../../../@vitest_pretty-format@3.1.3/node_modules/@vitest/pretty-format/dist/index.js";import{inspect as p}from"../../../../../loupe@3.1.3/node_modules/loupe/lib/index.js";const{AsymmetricMatcher:y,DOMCollection:m,DOMElement:g,Immutable:S,ReactElement:b,ReactTestComponent:d}=a,f=[d,b,g,m,S,y];function h(t,c=10,{maxLength:r,...u}={}){const i=r??1e4;let n;try{n=l(t,{maxDepth:c,escapeString:!1,plugins:f,...u})}catch{n=l(t,{callToJSON:!1,maxDepth:c,escapeString:!1,plugins:f,...u})}return n.length>=i&&c>1?h(t,Math.floor(Math.min(c,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...u}):n}const j=/%[sdjifoOc%]/g;function $(...t){if(typeof t[0]!="string"){const n=[];for(let e=0;e<t.length;e++)n.push(o(t[e],{depth:0,colors:!1}));return n.join(" ")}const c=t.length;let r=1;const u=t[0];let i=String(u).replace(j,n=>{if(n==="%%")return"%";if(r>=c)return n;switch(n){case"%s":{const e=t[r++];return typeof e=="bigint"?`${e.toString()}n`:typeof e=="number"&&e===0&&1/e<0?"-0":typeof e=="object"&&e!==null?typeof e.toString=="function"&&e.toString!==Object.prototype.toString?e.toString():o(e,{depth:0,colors:!1}):String(e)}case"%d":{const e=t[r++];return typeof e=="bigint"?`${e.toString()}n`:Number(e).toString()}case"%i":{const e=t[r++];return typeof e=="bigint"?`${e.toString()}n`:Number.parseInt(String(e)).toString()}case"%f":return Number.parseFloat(String(t[r++])).toString();case"%o":return o(t[r++],{showHidden:!0,showProxy:!0});case"%O":return o(t[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(t[r++])}catch(e){const s=e.message;if(s.includes("circular structure")||s.includes("cyclic structures")||s.includes("cyclic object"))return"[Circular]";throw e}default:return n}});for(let n=t[r];r<c;n=t[++r])n===null||typeof n!="object"?i+=` ${n}`:i+=` ${o(n)}`;return i}function o(t,c={}){return c.truncate===0&&(c.truncate=Number.POSITIVE_INFINITY),p(t,c)}function E(t,c={}){typeof c.truncate>"u"&&(c.truncate=40);const r=o(t,c),u=Object.prototype.toString.call(t);if(c.truncate&&r.length>=c.truncate)if(u==="[object Function]"){const i=t;return i.name?`[Function: ${i.name}]`:"[Function]"}else{if(u==="[object Array]")return`[ Array(${t.length}) ]`;if(u==="[object Object]"){const i=Object.keys(t);return`{ Object (${i.length>2?`${i.splice(0,2).join(", ")}, ...`:i.join(", ")}) }`}else return r}return r}function I(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}export{$ as f,I as g,o as i,E as o,h as s};
1
+ import{format as l,plugins as a}from"../../../../../@vitest_pretty-format@3.1.4/node_modules/@vitest/pretty-format/dist/index.js";import{inspect as p}from"../../../../../loupe@3.1.3/node_modules/loupe/lib/index.js";const{AsymmetricMatcher:y,DOMCollection:m,DOMElement:g,Immutable:S,ReactElement:b,ReactTestComponent:d}=a,f=[d,b,g,m,S,y];function h(t,c=10,{maxLength:r,...u}={}){const i=r??1e4;let n;try{n=l(t,{maxDepth:c,escapeString:!1,plugins:f,...u})}catch{n=l(t,{callToJSON:!1,maxDepth:c,escapeString:!1,plugins:f,...u})}return n.length>=i&&c>1?h(t,Math.floor(Math.min(c,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...u}):n}const j=/%[sdjifoOc%]/g;function $(...t){if(typeof t[0]!="string"){const n=[];for(let e=0;e<t.length;e++)n.push(o(t[e],{depth:0,colors:!1}));return n.join(" ")}const c=t.length;let r=1;const u=t[0];let i=String(u).replace(j,n=>{if(n==="%%")return"%";if(r>=c)return n;switch(n){case"%s":{const e=t[r++];return typeof e=="bigint"?`${e.toString()}n`:typeof e=="number"&&e===0&&1/e<0?"-0":typeof e=="object"&&e!==null?typeof e.toString=="function"&&e.toString!==Object.prototype.toString?e.toString():o(e,{depth:0,colors:!1}):String(e)}case"%d":{const e=t[r++];return typeof e=="bigint"?`${e.toString()}n`:Number(e).toString()}case"%i":{const e=t[r++];return typeof e=="bigint"?`${e.toString()}n`:Number.parseInt(String(e)).toString()}case"%f":return Number.parseFloat(String(t[r++])).toString();case"%o":return o(t[r++],{showHidden:!0,showProxy:!0});case"%O":return o(t[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(t[r++])}catch(e){const s=e.message;if(s.includes("circular structure")||s.includes("cyclic structures")||s.includes("cyclic object"))return"[Circular]";throw e}default:return n}});for(let n=t[r];r<c;n=t[++r])n===null||typeof n!="object"?i+=` ${n}`:i+=` ${o(n)}`;return i}function o(t,c={}){return c.truncate===0&&(c.truncate=Number.POSITIVE_INFINITY),p(t,c)}function E(t,c={}){typeof c.truncate>"u"&&(c.truncate=40);const r=o(t,c),u=Object.prototype.toString.call(t);if(c.truncate&&r.length>=c.truncate)if(u==="[object Function]"){const i=t;return i.name?`[Function: ${i.name}]`:"[Function]"}else{if(u==="[object Array]")return`[ Array(${t.length}) ]`;if(u==="[object Object]"){const i=Object.keys(t);return`{ Object (${i.length>2?`${i.splice(0,2).join(", ")}, ...`:i.join(", ")}) }`}else return r}return r}function I(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}export{$ as f,I as g,o as i,E as o,h as s};
@@ -1,4 +1,4 @@
1
- var Qn=Object.defineProperty;var Zn=(n,e,t)=>e in n?Qn(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var K=(n,e,t)=>Zn(n,typeof e!="symbol"?e+"":e,t);import{format as Q,plugins as Bn}from"../../../../../@vitest_pretty-format@3.1.3/node_modules/@vitest/pretty-format/dist/index.js";import Y from"../../../../../tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.js";import{s as Rn,g as vn}from"./chunk-_commonjsHelpers.js";import{deepClone as wn,getOwnProperties as xn,getType as sn}from"./helpers.js";import"../../../../../loupe@3.1.3/node_modules/loupe/lib/index.js";const j=-1,O=1,M=0;class A{constructor(e,t){K(this,0);K(this,1);this[0]=e,this[1]=t}}function dn(n,e){if(!n||!e||n.charAt(0)!==e.charAt(0))return 0;let t=0,r=Math.min(n.length,e.length),o=r,l=0;for(;t<o;)n.substring(l,o)===e.substring(l,o)?(t=o,l=t):r=o,o=Math.floor((r-t)/2+t);return o}function kn(n,e){if(!n||!e||n.charAt(n.length-1)!==e.charAt(e.length-1))return 0;let t=0,r=Math.min(n.length,e.length),o=r,l=0;for(;t<o;)n.substring(n.length-o,n.length-l)===e.substring(e.length-o,e.length-l)?(t=o,l=t):r=o,o=Math.floor((r-t)/2+t);return o}function Cn(n,e){const t=n.length,r=e.length;if(t===0||r===0)return 0;t>r?n=n.substring(t-r):t<r&&(e=e.substring(0,t));const o=Math.min(t,r);if(n===e)return o;let l=0,s=1;for(;;){const b=n.substring(o-s),u=e.indexOf(b);if(u===-1)return l;s+=u,(u===0||n.substring(o-s)===e.substring(0,s))&&(l=s,s++)}}function ne(n){let e=!1;const t=[];let r=0,o=null,l=0,s=0,b=0,u=0,F=0;for(;l<n.length;)n[l][0]===M?(t[r++]=l,s=u,b=F,u=0,F=0,o=n[l][1]):(n[l][0]===O?u+=n[l][1].length:F+=n[l][1].length,o&&o.length<=Math.max(s,b)&&o.length<=Math.max(u,F)&&(n.splice(t[r-1],0,new A(j,o)),n[t[r-1]+1][0]=O,r--,r--,l=r>0?t[r-1]:-1,s=0,b=0,u=0,F=0,o=null,e=!0)),l++;for(e&&Nn(n),re(n),l=1;l<n.length;){if(n[l-1][0]===j&&n[l][0]===O){const y=n[l-1][1],C=n[l][1],D=Cn(y,C),c=Cn(C,y);D>=c?(D>=y.length/2||D>=C.length/2)&&(n.splice(l,0,new A(M,C.substring(0,D))),n[l-1][1]=y.substring(0,y.length-D),n[l+1][1]=C.substring(D),l++):(c>=y.length/2||c>=C.length/2)&&(n.splice(l,0,new A(M,y.substring(0,c))),n[l-1][0]=O,n[l-1][1]=C.substring(0,C.length-c),n[l+1][0]=j,n[l+1][1]=y.substring(c),l++),l++}l++}}const bn=/[^a-z0-9]/i,yn=/\s/,$n=/[\r\n]/,ee=/\n\r?\n$/,te=/^\r?\n\r?\n/;function re(n){let e=1;for(;e<n.length-1;){if(n[e-1][0]===M&&n[e+1][0]===M){let t=n[e-1][1],r=n[e][1],o=n[e+1][1];const l=kn(t,r);if(l){const y=r.substring(r.length-l);t=t.substring(0,t.length-l),r=y+r.substring(0,r.length-l),o=y+o}let s=t,b=r,u=o,F=en(t,r)+en(r,o);for(;r.charAt(0)===o.charAt(0);){t+=r.charAt(0),r=r.substring(1)+o.charAt(0),o=o.substring(1);const y=en(t,r)+en(r,o);y>=F&&(F=y,s=t,b=r,u=o)}n[e-1][1]!==s&&(s?n[e-1][1]=s:(n.splice(e-1,1),e--),n[e][1]=b,u?n[e+1][1]=u:(n.splice(e+1,1),e--))}e++}}function Nn(n){n.push(new A(M,""));let e=0,t=0,r=0,o="",l="",s;for(;e<n.length;)switch(n[e][0]){case O:r++,l+=n[e][1],e++;break;case j:t++,o+=n[e][1],e++;break;case M:t+r>1?(t!==0&&r!==0&&(s=dn(l,o),s!==0&&(e-t-r>0&&n[e-t-r-1][0]===M?n[e-t-r-1][1]+=l.substring(0,s):(n.splice(0,0,new A(M,l.substring(0,s))),e++),l=l.substring(s),o=o.substring(s)),s=kn(l,o),s!==0&&(n[e][1]=l.substring(l.length-s)+n[e][1],l=l.substring(0,l.length-s),o=o.substring(0,o.length-s))),e-=t+r,n.splice(e,t+r),o.length&&(n.splice(e,0,new A(j,o)),e++),l.length&&(n.splice(e,0,new A(O,l)),e++),e++):e!==0&&n[e-1][0]===M?(n[e-1][1]+=n[e][1],n.splice(e,1)):e++,r=0,t=0,o="",l="";break}n[n.length-1][1]===""&&n.pop();let b=!1;for(e=1;e<n.length-1;)n[e-1][0]===M&&n[e+1][0]===M&&(n[e][1].substring(n[e][1].length-n[e-1][1].length)===n[e-1][1]?(n[e][1]=n[e-1][1]+n[e][1].substring(0,n[e][1].length-n[e-1][1].length),n[e+1][1]=n[e-1][1]+n[e+1][1],n.splice(e-1,1),b=!0):n[e][1].substring(0,n[e+1][1].length)===n[e+1][1]&&(n[e-1][1]+=n[e+1][1],n[e][1]=n[e][1].substring(n[e+1][1].length)+n[e+1][1],n.splice(e+1,1),b=!0)),e++;b&&Nn(n)}function en(n,e){if(!n||!e)return 6;const t=n.charAt(n.length-1),r=e.charAt(0),o=t.match(bn),l=r.match(bn),s=o&&t.match(yn),b=l&&r.match(yn),u=s&&t.match($n),F=b&&r.match($n),y=u&&n.match(ee),C=F&&e.match(te);return y||C?5:u||F?4:o&&!s&&b?3:s||b?2:o||l?1:0}const qn="Compared values have no visual difference.",oe="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.";var tn={},Fn;function le(){if(Fn)return tn;Fn=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.default=D;const n="diff-sequences",e=0,t=(c,i,h,a,f)=>{let p=0;for(;c<i&&h<a&&f(c,h);)c+=1,h+=1,p+=1;return p},r=(c,i,h,a,f)=>{let p=0;for(;c<=i&&h<=a&&f(i,a);)i-=1,a-=1,p+=1;return p},o=(c,i,h,a,f,p,L)=>{let g=0,w=-c,$=p[g],m=$;p[g]+=t($+1,i,a+$-w+1,h,f);const P=c<L?c:L;for(g+=1,w+=2;g<=P;g+=1,w+=2){if(g!==c&&m<p[g])$=p[g];else if($=m+1,i<=$)return g-1;m=p[g],p[g]=$+t($+1,i,a+$-w+1,h,f)}return L},l=(c,i,h,a,f,p,L)=>{let g=0,w=c,$=p[g],m=$;p[g]-=r(i,$-1,h,a+$-w-1,f);const P=c<L?c:L;for(g+=1,w-=2;g<=P;g+=1,w-=2){if(g!==c&&p[g]<m)$=p[g];else if($=m-1,$<i)return g-1;m=p[g],p[g]=$-r(i,$-1,h,a+$-w-1,f)}return L},s=(c,i,h,a,f,p,L,g,w,$,m)=>{const P=a-i,z=h-i,E=f-a-z,R=-E-(c-1),H=-E+(c-1);let k=e;const _=c<g?c:g;for(let T=0,S=-c;T<=_;T+=1,S+=2){const X=T===0||T!==c&&k<L[T],B=X?L[T]:k,q=X?B:B+1,J=P+q-S,U=t(q+1,h,J+1,f,p),G=q+U;if(k=L[T],L[T]=G,R<=S&&S<=H){const Z=(c-1-(S+E))/2;if(Z<=$&&w[Z]-1<=G){const I=P+B-(X?S+1:S-1),N=r(i,B,a,I,p),V=B-N,nn=I-N,x=V+1,on=nn+1;m.nChangePreceding=c-1,c-1===x+on-i-a?(m.aEndPreceding=i,m.bEndPreceding=a):(m.aEndPreceding=x,m.bEndPreceding=on),m.nCommonPreceding=N,N!==0&&(m.aCommonPreceding=x,m.bCommonPreceding=on),m.nCommonFollowing=U,U!==0&&(m.aCommonFollowing=q+1,m.bCommonFollowing=J+1);const mn=G+1,pn=J+U+1;return m.nChangeFollowing=c-1,c-1===h+f-mn-pn?(m.aStartFollowing=h,m.bStartFollowing=f):(m.aStartFollowing=mn,m.bStartFollowing=pn),!0}}}return!1},b=(c,i,h,a,f,p,L,g,w,$,m)=>{const P=f-h,z=h-i,E=f-a-z,R=E-c,H=E+c;let k=e;const _=c<$?c:$;for(let T=0,S=c;T<=_;T+=1,S-=2){const X=T===0||T!==c&&w[T]<k,B=X?w[T]:k,q=X?B:B-1,J=P+q-S,U=r(i,q-1,a,J-1,p),G=q-U;if(k=w[T],w[T]=G,R<=S&&S<=H){const Z=(c+(S-E))/2;if(Z<=g&&G-1<=L[Z]){const I=J-U;if(m.nChangePreceding=c,c===G+I-i-a?(m.aEndPreceding=i,m.bEndPreceding=a):(m.aEndPreceding=G,m.bEndPreceding=I),m.nCommonPreceding=U,U!==0&&(m.aCommonPreceding=G,m.bCommonPreceding=I),m.nChangeFollowing=c-1,c===1)m.nCommonFollowing=0,m.aStartFollowing=h,m.bStartFollowing=f;else{const N=P+B-(X?S-1:S+1),V=t(B,h,N,f,p);m.nCommonFollowing=V,V!==0&&(m.aCommonFollowing=B,m.bCommonFollowing=N);const nn=B+V,x=N+V;c-1===h+f-nn-x?(m.aStartFollowing=h,m.bStartFollowing=f):(m.aStartFollowing=nn,m.bStartFollowing=x)}return!0}}}return!1},u=(c,i,h,a,f,p,L,g,w)=>{const $=a-i,m=f-h,P=h-i,z=f-a,W=z-P;let E=P,R=P;if(L[0]=i-1,g[0]=h,W%2===0){const H=(c||W)/2,k=(P+z)/2;for(let _=1;_<=k;_+=1)if(E=o(_,h,f,$,p,L,E),_<H)R=l(_,i,a,m,p,g,R);else if(b(_,i,h,a,f,p,L,E,g,R,w))return}else{const H=((c||W)+1)/2,k=(P+z+1)/2;let _=1;for(E=o(_,h,f,$,p,L,E),_+=1;_<=k;_+=1)if(R=l(_-1,i,a,m,p,g,R),_<H)E=o(_,h,f,$,p,L,E);else if(s(_,i,h,a,f,p,L,E,g,R,w))return}throw new Error(`${n}: no overlap aStart=${i} aEnd=${h} bStart=${a} bEnd=${f}`)},F=(c,i,h,a,f,p,L,g,w,$)=>{if(f-a<h-i){if(p=!p,p&&L.length===1){const{foundSubsequence:G,isCommon:Z}=L[0];L[1]={foundSubsequence:(I,N,V)=>{G(I,V,N)},isCommon:(I,N)=>Z(N,I)}}const J=i,U=h;i=a,h=f,a=J,f=U}const{foundSubsequence:m,isCommon:P}=L[p?1:0];u(c,i,h,a,f,P,g,w,$);const{nChangePreceding:z,aEndPreceding:W,bEndPreceding:E,nCommonPreceding:R,aCommonPreceding:H,bCommonPreceding:k,nCommonFollowing:_,aCommonFollowing:T,bCommonFollowing:S,nChangeFollowing:X,aStartFollowing:B,bStartFollowing:q}=$;i<W&&a<E&&F(z,i,W,a,E,p,L,g,w,$),R!==0&&m(R,H,k),_!==0&&m(_,T,S),B<h&&q<f&&F(X,B,h,q,f,p,L,g,w,$)},y=(c,i)=>{if(typeof i!="number")throw new TypeError(`${n}: ${c} typeof ${typeof i} is not a number`);if(!Number.isSafeInteger(i))throw new RangeError(`${n}: ${c} value ${i} is not a safe integer`);if(i<0)throw new RangeError(`${n}: ${c} value ${i} is a negative integer`)},C=(c,i)=>{const h=typeof i;if(h!=="function")throw new TypeError(`${n}: ${c} typeof ${h} is not a function`)};function D(c,i,h,a){y("aLength",c),y("bLength",i),C("isCommon",h),C("foundSubsequence",a);const f=t(0,c,0,i,h);if(f!==0&&a(f,0,0),c!==f||i!==f){const p=f,L=f,g=r(p,c-1,L,i-1,h),w=c-g,$=i-g,m=f+g;c!==m&&i!==m&&F(0,p,w,L,$,!1,[{foundSubsequence:a,isCommon:h}],[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}),g!==0&&a(g,w,$)}}return tn}var ce=le(),Un=vn(ce);function ie(n,e){return n.replace(/\s+$/,t=>e(t))}function an(n,e,t,r,o,l){return n.length!==0?t(`${r} ${ie(n,o)}`):r!==" "?t(r):e&&l.length!==0?t(`${r} ${l}`):""}function Gn(n,e,{aColor:t,aIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:l}){return an(n,e,t,r,o,l)}function zn(n,e,{bColor:t,bIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:l}){return an(n,e,t,r,o,l)}function Hn(n,e,{commonColor:t,commonIndicator:r,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:l}){return an(n,e,t,r,o,l)}function Ln(n,e,t,r,{patchColor:o}){return o(`@@ -${n+1},${e-n} +${t+1},${r-t} @@`)}function se(n,e){const t=n.length,r=e.contextLines,o=r+r;let l=t,s=!1,b=0,u=0;for(;u!==t;){const g=u;for(;u!==t&&n[u][0]===M;)u+=1;if(g!==u)if(g===0)u>r&&(l-=u-r,s=!0);else if(u===t){const w=u-g;w>r&&(l-=w-r,s=!0)}else{const w=u-g;w>o&&(l-=w-o,b+=1)}for(;u!==t&&n[u][0]!==M;)u+=1}const F=b!==0||s;b!==0?l+=b+1:s&&(l+=1);const y=l-1,C=[];let D=0;F&&C.push("");let c=0,i=0,h=0,a=0;const f=g=>{const w=C.length;C.push(Hn(g,w===0||w===y,e)),h+=1,a+=1},p=g=>{const w=C.length;C.push(Gn(g,w===0||w===y,e)),h+=1},L=g=>{const w=C.length;C.push(zn(g,w===0||w===y,e)),a+=1};for(u=0;u!==t;){let g=u;for(;u!==t&&n[u][0]===M;)u+=1;if(g!==u)if(g===0){u>r&&(g=u-r,c=g,i=g,h=c,a=i);for(let w=g;w!==u;w+=1)f(n[w][1])}else if(u===t){const w=u-g>r?g+r:u;for(let $=g;$!==w;$+=1)f(n[$][1])}else{const w=u-g;if(w>o){const $=g+r;for(let P=g;P!==$;P+=1)f(n[P][1]);C[D]=Ln(c,h,i,a,e),D=C.length,C.push("");const m=w-o;c=h+m,i=a+m,h=c,a=i;for(let P=u-r;P!==u;P+=1)f(n[P][1])}else for(let $=g;$!==u;$+=1)f(n[$][1])}for(;u!==t&&n[u][0]===j;)p(n[u][1]),u+=1;for(;u!==t&&n[u][0]===O;)L(n[u][1]),u+=1}return F&&(C[D]=Ln(c,h,i,a,e)),C.join(`
1
+ var Qn=Object.defineProperty;var Zn=(n,e,t)=>e in n?Qn(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var K=(n,e,t)=>Zn(n,typeof e!="symbol"?e+"":e,t);import{format as Q,plugins as Bn}from"../../../../../@vitest_pretty-format@3.1.4/node_modules/@vitest/pretty-format/dist/index.js";import Y from"../../../../../tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/browser.js";import{s as Rn,g as vn}from"./chunk-_commonjsHelpers.js";import{deepClone as wn,getOwnProperties as xn,getType as sn}from"./helpers.js";import"../../../../../loupe@3.1.3/node_modules/loupe/lib/index.js";const j=-1,O=1,M=0;class A{constructor(e,t){K(this,0);K(this,1);this[0]=e,this[1]=t}}function dn(n,e){if(!n||!e||n.charAt(0)!==e.charAt(0))return 0;let t=0,r=Math.min(n.length,e.length),o=r,l=0;for(;t<o;)n.substring(l,o)===e.substring(l,o)?(t=o,l=t):r=o,o=Math.floor((r-t)/2+t);return o}function kn(n,e){if(!n||!e||n.charAt(n.length-1)!==e.charAt(e.length-1))return 0;let t=0,r=Math.min(n.length,e.length),o=r,l=0;for(;t<o;)n.substring(n.length-o,n.length-l)===e.substring(e.length-o,e.length-l)?(t=o,l=t):r=o,o=Math.floor((r-t)/2+t);return o}function Cn(n,e){const t=n.length,r=e.length;if(t===0||r===0)return 0;t>r?n=n.substring(t-r):t<r&&(e=e.substring(0,t));const o=Math.min(t,r);if(n===e)return o;let l=0,s=1;for(;;){const b=n.substring(o-s),u=e.indexOf(b);if(u===-1)return l;s+=u,(u===0||n.substring(o-s)===e.substring(0,s))&&(l=s,s++)}}function ne(n){let e=!1;const t=[];let r=0,o=null,l=0,s=0,b=0,u=0,F=0;for(;l<n.length;)n[l][0]===M?(t[r++]=l,s=u,b=F,u=0,F=0,o=n[l][1]):(n[l][0]===O?u+=n[l][1].length:F+=n[l][1].length,o&&o.length<=Math.max(s,b)&&o.length<=Math.max(u,F)&&(n.splice(t[r-1],0,new A(j,o)),n[t[r-1]+1][0]=O,r--,r--,l=r>0?t[r-1]:-1,s=0,b=0,u=0,F=0,o=null,e=!0)),l++;for(e&&Nn(n),re(n),l=1;l<n.length;){if(n[l-1][0]===j&&n[l][0]===O){const y=n[l-1][1],C=n[l][1],D=Cn(y,C),c=Cn(C,y);D>=c?(D>=y.length/2||D>=C.length/2)&&(n.splice(l,0,new A(M,C.substring(0,D))),n[l-1][1]=y.substring(0,y.length-D),n[l+1][1]=C.substring(D),l++):(c>=y.length/2||c>=C.length/2)&&(n.splice(l,0,new A(M,y.substring(0,c))),n[l-1][0]=O,n[l-1][1]=C.substring(0,C.length-c),n[l+1][0]=j,n[l+1][1]=y.substring(c),l++),l++}l++}}const bn=/[^a-z0-9]/i,yn=/\s/,$n=/[\r\n]/,ee=/\n\r?\n$/,te=/^\r?\n\r?\n/;function re(n){let e=1;for(;e<n.length-1;){if(n[e-1][0]===M&&n[e+1][0]===M){let t=n[e-1][1],r=n[e][1],o=n[e+1][1];const l=kn(t,r);if(l){const y=r.substring(r.length-l);t=t.substring(0,t.length-l),r=y+r.substring(0,r.length-l),o=y+o}let s=t,b=r,u=o,F=en(t,r)+en(r,o);for(;r.charAt(0)===o.charAt(0);){t+=r.charAt(0),r=r.substring(1)+o.charAt(0),o=o.substring(1);const y=en(t,r)+en(r,o);y>=F&&(F=y,s=t,b=r,u=o)}n[e-1][1]!==s&&(s?n[e-1][1]=s:(n.splice(e-1,1),e--),n[e][1]=b,u?n[e+1][1]=u:(n.splice(e+1,1),e--))}e++}}function Nn(n){n.push(new A(M,""));let e=0,t=0,r=0,o="",l="",s;for(;e<n.length;)switch(n[e][0]){case O:r++,l+=n[e][1],e++;break;case j:t++,o+=n[e][1],e++;break;case M:t+r>1?(t!==0&&r!==0&&(s=dn(l,o),s!==0&&(e-t-r>0&&n[e-t-r-1][0]===M?n[e-t-r-1][1]+=l.substring(0,s):(n.splice(0,0,new A(M,l.substring(0,s))),e++),l=l.substring(s),o=o.substring(s)),s=kn(l,o),s!==0&&(n[e][1]=l.substring(l.length-s)+n[e][1],l=l.substring(0,l.length-s),o=o.substring(0,o.length-s))),e-=t+r,n.splice(e,t+r),o.length&&(n.splice(e,0,new A(j,o)),e++),l.length&&(n.splice(e,0,new A(O,l)),e++),e++):e!==0&&n[e-1][0]===M?(n[e-1][1]+=n[e][1],n.splice(e,1)):e++,r=0,t=0,o="",l="";break}n[n.length-1][1]===""&&n.pop();let b=!1;for(e=1;e<n.length-1;)n[e-1][0]===M&&n[e+1][0]===M&&(n[e][1].substring(n[e][1].length-n[e-1][1].length)===n[e-1][1]?(n[e][1]=n[e-1][1]+n[e][1].substring(0,n[e][1].length-n[e-1][1].length),n[e+1][1]=n[e-1][1]+n[e+1][1],n.splice(e-1,1),b=!0):n[e][1].substring(0,n[e+1][1].length)===n[e+1][1]&&(n[e-1][1]+=n[e+1][1],n[e][1]=n[e][1].substring(n[e+1][1].length)+n[e+1][1],n.splice(e+1,1),b=!0)),e++;b&&Nn(n)}function en(n,e){if(!n||!e)return 6;const t=n.charAt(n.length-1),r=e.charAt(0),o=t.match(bn),l=r.match(bn),s=o&&t.match(yn),b=l&&r.match(yn),u=s&&t.match($n),F=b&&r.match($n),y=u&&n.match(ee),C=F&&e.match(te);return y||C?5:u||F?4:o&&!s&&b?3:s||b?2:o||l?1:0}const qn="Compared values have no visual difference.",oe="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.";var tn={},Fn;function le(){if(Fn)return tn;Fn=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.default=D;const n="diff-sequences",e=0,t=(c,i,h,a,f)=>{let p=0;for(;c<i&&h<a&&f(c,h);)c+=1,h+=1,p+=1;return p},r=(c,i,h,a,f)=>{let p=0;for(;c<=i&&h<=a&&f(i,a);)i-=1,a-=1,p+=1;return p},o=(c,i,h,a,f,p,L)=>{let g=0,w=-c,$=p[g],m=$;p[g]+=t($+1,i,a+$-w+1,h,f);const P=c<L?c:L;for(g+=1,w+=2;g<=P;g+=1,w+=2){if(g!==c&&m<p[g])$=p[g];else if($=m+1,i<=$)return g-1;m=p[g],p[g]=$+t($+1,i,a+$-w+1,h,f)}return L},l=(c,i,h,a,f,p,L)=>{let g=0,w=c,$=p[g],m=$;p[g]-=r(i,$-1,h,a+$-w-1,f);const P=c<L?c:L;for(g+=1,w-=2;g<=P;g+=1,w-=2){if(g!==c&&p[g]<m)$=p[g];else if($=m-1,$<i)return g-1;m=p[g],p[g]=$-r(i,$-1,h,a+$-w-1,f)}return L},s=(c,i,h,a,f,p,L,g,w,$,m)=>{const P=a-i,z=h-i,E=f-a-z,R=-E-(c-1),H=-E+(c-1);let k=e;const _=c<g?c:g;for(let T=0,S=-c;T<=_;T+=1,S+=2){const X=T===0||T!==c&&k<L[T],B=X?L[T]:k,q=X?B:B+1,J=P+q-S,U=t(q+1,h,J+1,f,p),G=q+U;if(k=L[T],L[T]=G,R<=S&&S<=H){const Z=(c-1-(S+E))/2;if(Z<=$&&w[Z]-1<=G){const I=P+B-(X?S+1:S-1),N=r(i,B,a,I,p),V=B-N,nn=I-N,x=V+1,on=nn+1;m.nChangePreceding=c-1,c-1===x+on-i-a?(m.aEndPreceding=i,m.bEndPreceding=a):(m.aEndPreceding=x,m.bEndPreceding=on),m.nCommonPreceding=N,N!==0&&(m.aCommonPreceding=x,m.bCommonPreceding=on),m.nCommonFollowing=U,U!==0&&(m.aCommonFollowing=q+1,m.bCommonFollowing=J+1);const mn=G+1,pn=J+U+1;return m.nChangeFollowing=c-1,c-1===h+f-mn-pn?(m.aStartFollowing=h,m.bStartFollowing=f):(m.aStartFollowing=mn,m.bStartFollowing=pn),!0}}}return!1},b=(c,i,h,a,f,p,L,g,w,$,m)=>{const P=f-h,z=h-i,E=f-a-z,R=E-c,H=E+c;let k=e;const _=c<$?c:$;for(let T=0,S=c;T<=_;T+=1,S-=2){const X=T===0||T!==c&&w[T]<k,B=X?w[T]:k,q=X?B:B-1,J=P+q-S,U=r(i,q-1,a,J-1,p),G=q-U;if(k=w[T],w[T]=G,R<=S&&S<=H){const Z=(c+(S-E))/2;if(Z<=g&&G-1<=L[Z]){const I=J-U;if(m.nChangePreceding=c,c===G+I-i-a?(m.aEndPreceding=i,m.bEndPreceding=a):(m.aEndPreceding=G,m.bEndPreceding=I),m.nCommonPreceding=U,U!==0&&(m.aCommonPreceding=G,m.bCommonPreceding=I),m.nChangeFollowing=c-1,c===1)m.nCommonFollowing=0,m.aStartFollowing=h,m.bStartFollowing=f;else{const N=P+B-(X?S-1:S+1),V=t(B,h,N,f,p);m.nCommonFollowing=V,V!==0&&(m.aCommonFollowing=B,m.bCommonFollowing=N);const nn=B+V,x=N+V;c-1===h+f-nn-x?(m.aStartFollowing=h,m.bStartFollowing=f):(m.aStartFollowing=nn,m.bStartFollowing=x)}return!0}}}return!1},u=(c,i,h,a,f,p,L,g,w)=>{const $=a-i,m=f-h,P=h-i,z=f-a,W=z-P;let E=P,R=P;if(L[0]=i-1,g[0]=h,W%2===0){const H=(c||W)/2,k=(P+z)/2;for(let _=1;_<=k;_+=1)if(E=o(_,h,f,$,p,L,E),_<H)R=l(_,i,a,m,p,g,R);else if(b(_,i,h,a,f,p,L,E,g,R,w))return}else{const H=((c||W)+1)/2,k=(P+z+1)/2;let _=1;for(E=o(_,h,f,$,p,L,E),_+=1;_<=k;_+=1)if(R=l(_-1,i,a,m,p,g,R),_<H)E=o(_,h,f,$,p,L,E);else if(s(_,i,h,a,f,p,L,E,g,R,w))return}throw new Error(`${n}: no overlap aStart=${i} aEnd=${h} bStart=${a} bEnd=${f}`)},F=(c,i,h,a,f,p,L,g,w,$)=>{if(f-a<h-i){if(p=!p,p&&L.length===1){const{foundSubsequence:G,isCommon:Z}=L[0];L[1]={foundSubsequence:(I,N,V)=>{G(I,V,N)},isCommon:(I,N)=>Z(N,I)}}const J=i,U=h;i=a,h=f,a=J,f=U}const{foundSubsequence:m,isCommon:P}=L[p?1:0];u(c,i,h,a,f,P,g,w,$);const{nChangePreceding:z,aEndPreceding:W,bEndPreceding:E,nCommonPreceding:R,aCommonPreceding:H,bCommonPreceding:k,nCommonFollowing:_,aCommonFollowing:T,bCommonFollowing:S,nChangeFollowing:X,aStartFollowing:B,bStartFollowing:q}=$;i<W&&a<E&&F(z,i,W,a,E,p,L,g,w,$),R!==0&&m(R,H,k),_!==0&&m(_,T,S),B<h&&q<f&&F(X,B,h,q,f,p,L,g,w,$)},y=(c,i)=>{if(typeof i!="number")throw new TypeError(`${n}: ${c} typeof ${typeof i} is not a number`);if(!Number.isSafeInteger(i))throw new RangeError(`${n}: ${c} value ${i} is not a safe integer`);if(i<0)throw new RangeError(`${n}: ${c} value ${i} is a negative integer`)},C=(c,i)=>{const h=typeof i;if(h!=="function")throw new TypeError(`${n}: ${c} typeof ${h} is not a function`)};function D(c,i,h,a){y("aLength",c),y("bLength",i),C("isCommon",h),C("foundSubsequence",a);const f=t(0,c,0,i,h);if(f!==0&&a(f,0,0),c!==f||i!==f){const p=f,L=f,g=r(p,c-1,L,i-1,h),w=c-g,$=i-g,m=f+g;c!==m&&i!==m&&F(0,p,w,L,$,!1,[{foundSubsequence:a,isCommon:h}],[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}),g!==0&&a(g,w,$)}}return tn}var ce=le(),Un=vn(ce);function ie(n,e){return n.replace(/\s+$/,t=>e(t))}function an(n,e,t,r,o,l){return n.length!==0?t(`${r} ${ie(n,o)}`):r!==" "?t(r):e&&l.length!==0?t(`${r} ${l}`):""}function Gn(n,e,{aColor:t,aIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:l}){return an(n,e,t,r,o,l)}function zn(n,e,{bColor:t,bIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:l}){return an(n,e,t,r,o,l)}function Hn(n,e,{commonColor:t,commonIndicator:r,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:l}){return an(n,e,t,r,o,l)}function Ln(n,e,t,r,{patchColor:o}){return o(`@@ -${n+1},${e-n} +${t+1},${r-t} @@`)}function se(n,e){const t=n.length,r=e.contextLines,o=r+r;let l=t,s=!1,b=0,u=0;for(;u!==t;){const g=u;for(;u!==t&&n[u][0]===M;)u+=1;if(g!==u)if(g===0)u>r&&(l-=u-r,s=!0);else if(u===t){const w=u-g;w>r&&(l-=w-r,s=!0)}else{const w=u-g;w>o&&(l-=w-o,b+=1)}for(;u!==t&&n[u][0]!==M;)u+=1}const F=b!==0||s;b!==0?l+=b+1:s&&(l+=1);const y=l-1,C=[];let D=0;F&&C.push("");let c=0,i=0,h=0,a=0;const f=g=>{const w=C.length;C.push(Hn(g,w===0||w===y,e)),h+=1,a+=1},p=g=>{const w=C.length;C.push(Gn(g,w===0||w===y,e)),h+=1},L=g=>{const w=C.length;C.push(zn(g,w===0||w===y,e)),a+=1};for(u=0;u!==t;){let g=u;for(;u!==t&&n[u][0]===M;)u+=1;if(g!==u)if(g===0){u>r&&(g=u-r,c=g,i=g,h=c,a=i);for(let w=g;w!==u;w+=1)f(n[w][1])}else if(u===t){const w=u-g>r?g+r:u;for(let $=g;$!==w;$+=1)f(n[$][1])}else{const w=u-g;if(w>o){const $=g+r;for(let P=g;P!==$;P+=1)f(n[P][1]);C[D]=Ln(c,h,i,a,e),D=C.length,C.push("");const m=w-o;c=h+m,i=a+m,h=c,a=i;for(let P=u-r;P!==u;P+=1)f(n[P][1])}else for(let $=g;$!==u;$+=1)f(n[$][1])}for(;u!==t&&n[u][0]===j;)p(n[u][1]),u+=1;for(;u!==t&&n[u][0]===O;)L(n[u][1]),u+=1}return F&&(C[D]=Ln(c,h,i,a,e)),C.join(`
2
2
  `)}function ue(n,e){return n.map((t,r,o)=>{const l=t[1],s=r===0||r===o.length-1;switch(t[0]){case j:return Gn(l,s,e);case O:return zn(l,s,e);default:return Hn(l,s,e)}}).join(`
3
3
  `)}const ln=n=>n,In=5,he=0;function ge(){return{aAnnotation:"Expected",aColor:Y.green,aIndicator:"-",bAnnotation:"Received",bColor:Y.red,bIndicator:"+",changeColor:Y.inverse,changeLineTrailingSpaceColor:ln,commonColor:Y.dim,commonIndicator:" ",commonLineTrailingSpaceColor:ln,compareKeys:void 0,contextLines:In,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:Y.yellow,printBasicPrototype:!1,truncateThreshold:he,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:ln}}function ae(n){return n&&typeof n=="function"?n:void 0}function fe(n){return typeof n=="number"&&Number.isSafeInteger(n)&&n>=0?n:In}function v(n={}){return{...ge(),...n,compareKeys:ae(n.compareKeys),contextLines:fe(n.contextLines)}}function d(n){return n.length===1&&n[0].length===0}function me(n){let e=0,t=0;return n.forEach(r=>{switch(r[0]){case j:e+=1;break;case O:t+=1;break}}),{a:e,b:t}}function pe({aAnnotation:n,aColor:e,aIndicator:t,bAnnotation:r,bColor:o,bIndicator:l,includeChangeCounts:s,omitAnnotationLines:b},u){if(b)return"";let F="",y="";if(s){const c=String(u.a),i=String(u.b),h=r.length-n.length,a=" ".repeat(Math.max(0,h)),f=" ".repeat(Math.max(0,-h)),p=i.length-c.length,L=" ".repeat(Math.max(0,p)),g=" ".repeat(Math.max(0,-p));F=`${a} ${t} ${L}${c}`,y=`${f} ${l} ${g}${i}`}const C=`${t} ${n}${F}`,D=`${l} ${r}${y}`;return`${e(C)}
4
4
  ${o(D)}
@@ -1,4 +1,4 @@
1
- import{getSafeTimers as a}from"../../../../../@vitest_utils@3.1.3/node_modules/@vitest/utils/dist/index.js";const u="__vitest_worker__";function o(){const t=globalThis[u];if(!t){const e=`Vitest failed to access its internal state.
1
+ import{getSafeTimers as a}from"../../../../../@vitest_utils@3.1.4/node_modules/@vitest/utils/dist/index.js";const u="__vitest_worker__";function o(){const t=globalThis[u];if(!t){const e=`Vitest failed to access its internal state.
2
2
 
3
3
  One of the following is possible:
4
4
  - "vitest" is imported directly without running "vitest" command
@@ -1,4 +1,4 @@
1
- var $t=Object.defineProperty;var Bt=(s,r,c)=>r in s?$t(s,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):s[r]=c;var te=(s,r,c)=>Bt(s,typeof r!="symbol"?r+"":r,c);import{ASYMMETRIC_MATCHERS_OBJECT as Ht,getState as Pe,setState as Oe,addCustomEqualityTesters as Gt,customMatchers as Wt,GLOBAL_EXPECT as Ct,JestExtend as Ut,JestChaiExpect as Jt,JestAsymmetricMatchers as Kt,equals as Vt,iterableEquality as zt,subsetEquality as Qt}from"../../../../../@vitest_expect@3.1.3/node_modules/@vitest/expect/dist/index.js";import"../../../../../@vitest_runner@3.1.3/node_modules/@vitest/runner/dist/index.js";import{f as Xt}from"../../../../../@vitest_runner@3.1.3/node_modules/@vitest/runner/dist/chunk-tasks.js";import{getSafeTimers as Ze}from"../../../../../@vitest_utils@3.1.3/node_modules/@vitest/utils/dist/index.js";import{expect as xe,assert as Yt,util as Y,Assertion as Zt,use as he}from"../../../../../chai@5.2.0/node_modules/chai/chai.js";import{a as er,g as et,w as tr,r as rr,i as Ft}from"./utils.CgTj3MsC.js";import{g as nr,c as Ye}from"./_commonjsHelpers.BFTU3MAI.js";import{stripSnapshotIndentation as st,addSerializer as ir,SnapshotClient as or}from"../../../../../@vitest_snapshot@3.1.3/node_modules/@vitest/snapshot/dist/index.js";import{fn as sr,spyOn as ar,mocks as Ce,isMockFunction as cr}from"../../../../../@vitest_spy@3.1.3/node_modules/@vitest/spy/dist/index.js";import{parseSingleStack as ur}from"../../../../../@vitest_utils@3.1.3/node_modules/@vitest/utils/dist/source-map.js";import{R as fr,r as lr,m as mr}from"./date.CDOsz-HY.js";import{assertTypes as dr,createSimpleStackTrace as pr}from"../../../../../@vitest_utils@3.1.3/node_modules/@vitest/utils/dist/helpers.js";var oe={};const hr=["matchSnapshot","toMatchSnapshot","toMatchInlineSnapshot","toThrowErrorMatchingSnapshot","toThrowErrorMatchingInlineSnapshot","throws","Throw","throw","toThrow","toThrowError"];function yr(s){return function(c,m={}){var A;const t=((A=et().config.expect)==null?void 0:A.poll)??{},{interval:p=t.interval??50,timeout:l=t.timeout??1e3,message:o}=m,h=s(null,o).withContext({poll:!0});c=c.bind(h);const d=Y.flag(h,"vitest-test");if(!d)throw new Error("expect.poll() must be called inside a test");const I=new Proxy(h,{get(O,j,H){const x=Reflect.get(O,j,H);if(typeof x!="function")return x instanceof Zt?I:x;if(j==="assert")return x;if(typeof j=="string"&&hr.includes(j))throw new SyntaxError(`expect.poll() is not supported in combination with .${j}(). Use vi.waitFor() if your assertion condition is unstable.`);return function(...M){const C=new Error("STACK_TRACE_ERROR"),N=()=>new Promise((q,P)=>{let B,Q,R;const{setTimeout:ye,clearTimeout:re}=Ze(),ue=async()=>{try{Y.flag(h,"_name",j);const Z=await c();Y.flag(h,"object",Z),q(await x.call(h,...M)),re(B),re(Q)}catch(Z){R=Z,Y.flag(h,"_isLastPollAttempt")||(B=ye(ue,p))}};Q=ye(()=>{re(B),Y.flag(h,"_isLastPollAttempt",!0);const Z=fe=>{P(at(new Error("Matcher did not succeed in time.",{cause:fe}),C))};ue().then(()=>Z(R)).catch(fe=>Z(fe))},l),ue()});let J=!1;d.onFinished??(d.onFinished=[]),d.onFinished.push(()=>{if(!J){const q=Y.flag(h,"negate")?"not.":"",B=`expect.${Y.flag(h,"_poll.element")?"element(locator)":"poll(assertion)"}.${q}${String(j)}()`,Q=new Error(`${B} was not awaited. This assertion is asynchronous and must be awaited; otherwise, it is not executed to avoid unhandled rejections:
1
+ var $t=Object.defineProperty;var Bt=(s,r,c)=>r in s?$t(s,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):s[r]=c;var te=(s,r,c)=>Bt(s,typeof r!="symbol"?r+"":r,c);import{ASYMMETRIC_MATCHERS_OBJECT as Ht,getState as Pe,setState as Oe,addCustomEqualityTesters as Gt,customMatchers as Wt,GLOBAL_EXPECT as Ct,JestExtend as Ut,JestChaiExpect as Jt,JestAsymmetricMatchers as Kt,equals as Vt,iterableEquality as zt,subsetEquality as Qt}from"../../../../../@vitest_expect@3.1.4/node_modules/@vitest/expect/dist/index.js";import"../../../../../@vitest_runner@3.1.4/node_modules/@vitest/runner/dist/index.js";import{f as Xt}from"../../../../../@vitest_runner@3.1.4/node_modules/@vitest/runner/dist/chunk-tasks.js";import{getSafeTimers as Ze}from"../../../../../@vitest_utils@3.1.4/node_modules/@vitest/utils/dist/index.js";import{expect as xe,assert as Yt,util as Y,Assertion as Zt,use as he}from"../../../../../chai@5.2.0/node_modules/chai/chai.js";import{a as er,g as et,w as tr,r as rr,i as Ft}from"./utils.CgTj3MsC.js";import{g as nr,c as Ye}from"./_commonjsHelpers.BFTU3MAI.js";import{stripSnapshotIndentation as st,addSerializer as ir,SnapshotClient as or}from"../../../../../@vitest_snapshot@3.1.4/node_modules/@vitest/snapshot/dist/index.js";import{fn as sr,spyOn as ar,mocks as Ce,isMockFunction as cr}from"../../../../../@vitest_spy@3.1.4/node_modules/@vitest/spy/dist/index.js";import{parseSingleStack as ur}from"../../../../../@vitest_utils@3.1.4/node_modules/@vitest/utils/dist/source-map.js";import{R as fr,r as lr,m as mr}from"./date.CDOsz-HY.js";import{assertTypes as dr,createSimpleStackTrace as pr}from"../../../../../@vitest_utils@3.1.4/node_modules/@vitest/utils/dist/helpers.js";var oe={};const hr=["matchSnapshot","toMatchSnapshot","toMatchInlineSnapshot","toThrowErrorMatchingSnapshot","toThrowErrorMatchingInlineSnapshot","throws","Throw","throw","toThrow","toThrowError"];function yr(s){return function(c,m={}){var A;const t=((A=et().config.expect)==null?void 0:A.poll)??{},{interval:p=t.interval??50,timeout:l=t.timeout??1e3,message:o}=m,h=s(null,o).withContext({poll:!0});c=c.bind(h);const d=Y.flag(h,"vitest-test");if(!d)throw new Error("expect.poll() must be called inside a test");const I=new Proxy(h,{get(O,j,H){const x=Reflect.get(O,j,H);if(typeof x!="function")return x instanceof Zt?I:x;if(j==="assert")return x;if(typeof j=="string"&&hr.includes(j))throw new SyntaxError(`expect.poll() is not supported in combination with .${j}(). Use vi.waitFor() if your assertion condition is unstable.`);return function(...M){const C=new Error("STACK_TRACE_ERROR"),N=()=>new Promise((q,P)=>{let B,Q,R;const{setTimeout:ye,clearTimeout:re}=Ze(),ue=async()=>{try{Y.flag(h,"_name",j);const Z=await c();Y.flag(h,"object",Z),q(await x.call(h,...M)),re(B),re(Q)}catch(Z){R=Z,Y.flag(h,"_isLastPollAttempt")||(B=ye(ue,p))}};Q=ye(()=>{re(B),Y.flag(h,"_isLastPollAttempt",!0);const Z=fe=>{P(at(new Error("Matcher did not succeed in time.",{cause:fe}),C))};ue().then(()=>Z(R)).catch(fe=>Z(fe))},l),ue()});let J=!1;d.onFinished??(d.onFinished=[]),d.onFinished.push(()=>{if(!J){const q=Y.flag(h,"negate")?"not.":"",B=`expect.${Y.flag(h,"_poll.element")?"element(locator)":"poll(assertion)"}.${q}${String(j)}()`,Q=new Error(`${B} was not awaited. This assertion is asynchronous and must be awaited; otherwise, it is not executed to avoid unhandled rejections:
2
2
 
3
3
  await ${B}
4
4
  `);throw at(Q,C)}});let K;return{then(q,P){return J=!0,(K||(K=N())).then(q,P)},catch(q){return(K||(K=N())).catch(q)},finally(q){return(K||(K=N())).finally(q)},[Symbol.toStringTag]:"Promise"}}}});return I}}function at(s,r){return r.stack!==void 0&&(s.stack=r.stack.replace(r.message,s.message)),s}function Tr(s){throw new Error('Could not dynamically require "'+s+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var we={exports:{}},wr=we.exports,ct;function vr(){return ct||(ct=1,function(s,r){(function(){(function(c){return typeof Tr=="function"?s.exports=c:chai.use(c)})(function(c,m){var f=c.Assertion,t=f.prototype;f.addMethod("containSubset",function(l){var o=m.flag(this,"object"),h=c.config.showDiff;t.assert.call(this,p(l,o),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",l,o,h)}),c.assert.containSubset=function(l,o,h){new c.Assertion(l,h).to.be.containSubset(o)};function p(l,o){if(l===o)return!0;if(typeof o!=typeof l)return!1;if(typeof l!="object"||l===null)return l===o;if(l&&!o)return!1;if(Array.isArray(l)){if(typeof o.length!="number")return!1;var h=Array.prototype.slice.call(o);return l.every(function(d){return h.some(function(I){return p(d,I)})})}return l instanceof Date?o instanceof Date?l.getTime()===o.getTime():!1:Object.keys(l).every(function(d){var I=l[d],A=o[d];return typeof I=="object"&&I!==null&&A!==null?p(I,A):typeof I=="function"?I(A):A===I})}})}).call(wr)}(we)),we.exports}var gr=vr(),kr=nr(gr);function br(s,r,c){const m=s.flag(r,"negate")?"not.":"",f=`${s.flag(r,"_name")}(expected)`,t=s.flag(r,"promise");return`expect(actual)${t?`.${t}`:""}.${m}${f}`}function Ir(s,r,c,m){const f=s;if(f&&r instanceof Promise){r=r.finally(()=>{if(!f.promises)return;const p=f.promises.indexOf(r);p!==-1&&f.promises.splice(p,1)}),f.promises||(f.promises=[]),f.promises.push(r);let t=!1;return f.onFinished??(f.onFinished=[]),f.onFinished.push(()=>{var p;if(!t){const o=(((p=globalThis.__vitest_worker__)==null?void 0:p.onFilterStackTrace)||(h=>h||""))(m.stack);console.warn([`Promise returned by \`${c}\` was not awaited. `,"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. ",`Please remember to await the assertion.
@@ -0,0 +1 @@
1
+ const t=':host,:root{--gator-gutter-x: 1.5rem;--gator-gutter-y: 0}.gator-row{display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--gator-gutter-y));margin-right:calc(-.5 * var(--gator-gutter-x));margin-left:calc(-.5 * var(--gator-gutter-x))}.gator-col{flex:1 0 0}.gator-row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--gator-gutter-x) * .5);padding-left:calc(var(--gator-gutter-x) * .5);margin-top:var(--gator-gutter-y)}.gator-col-12{flex:0 0 100%;max-width:100%}.gator-col-11{flex:0 0 91.666667%;max-width:91.666667%}.gator-col-10{flex:0 0 83.333333%;max-width:83.333333%}.gator-col-9{flex:0 0 75%;max-width:75%}.gator-col-7{flex:0 0 58.333333%;max-width:58.333333%}.gator-col-8{flex:0 0 66.666667%;max-width:66.666667%}.gator-col-6{flex:0 0 50%;max-width:50%}.gator-col-5{flex:0 0 41.666667%;max-width:41.666667%}.gator-col-4{flex:0 0 33.333333%;max-width:33.333333%}.gator-col-3{flex:0 0 25%;max-width:25%}.gator-col-2{flex:0 0 16.666667%;max-width:16.666667%}.gator-col-1{flex:0 0 8.333333%;max-width:8.333333%}.gator-w-100{width:100%}.gator-w-90{width:90%}.gator-w-80{width:80%}.gator-w-70{width:70%}.gator-w-60{width:60%}.gator-w-50{width:50%}.gator-w-40{width:40%}.gator-w-30{width:30%}.gator-w-20{width:20%}.gator-w-10{width:10%}.gator-w-0{width:0}.gator-w-auto{width:auto}.gator-h-auto{height:auto}.gator-h-100{height:100%}.gator-h-90{height:90%}.gator-h-80{height:80%}.gator-h-70{height:70%}.gator-h-60{height:60%}.gator-h-50{height:50%}.gator-h-40{height:40%}.gator-h-30{height:30%}.gator-h-20{height:20%}.gator-h-10{height:10%}.gator-h-0{height:0}.gator-mh-100{max-height:100%}.gator-mh-90{max-height:90%}.gator-mh-80{max-height:80%}.gator-mh-70{max-height:70%}.gator-mh-60{max-height:60%}.gator-mh-50{max-height:50%}.gator-mh-40{max-height:40%}.gator-mh-30{max-height:30%}.gator-mh-20{max-height:20%}.gator-mh-10{max-height:10%}.gator-mw-100{max-width:100%}.gator-mw-90{max-width:90%}.gator-mw-80{max-width:80%}.gator-mw-70{max-width:70%}.gator-mw-60{max-width:60%}.gator-mw-50{max-width:50%}.gator-mw-40{max-width:40%}.gator-mw-30{max-width:30%}.gator-mw-20{max-width:20%}.gator-mw-10{max-width:10%}.gator-mw-0{max-width:0}body{font-family:var(--text-family-body, "Open Sans"),sans-serif}.gator-d-flex{display:flex}.gator-d-inline-flex{display:inline-flex}';export{t as default};
@@ -1 +1 @@
1
- const r='.gator-chip{background-color:var(--ngc-chip-background-color, var(--color-background-primary));border-radius:var(--ngc-chip-border-radius, 3rem);display:inline-block;padding:var(--ngc-chip-padding, .25rem .75rem);font-family:var(--text-family-body, "Open Sans"),sans-serif;font-size:var(--ngc-chip-font-size, .9375rem);line-height:var(--ngc-chip-line-height);border:var(--ngc-chip-border, 1px solid var(--color-stroke-tertiary, #E5E5E5));color:var(--color-neutral-70);cursor:var(--ngc-chip-cursor, default)}button:hover{background-color:var(--ngc-chip-hover-background-color, var(--color-neutral-20));cursor:var(--ngc-chip-cursor, pointer)}button:focus-visible{outline:none;box-shadow:var(--ngc-chip-focus-box-shadow, var(--shadow-x-offset-0, 0px) var(--shadow-y-offset-0, 0px) var(--shadow-blur-0, 0px) var(--shadow-spread-2, 2px) var(--color-focus-gap, #FFF), var(--shadow-x-offset-0, 0px) var(--shadow-y-offset-0, 0px) var(--shadow-blur-0, 0px) var(--shadow-spread-4, 4px) var(--color-focus-border, #11395B))}button:active{background-color:var(--ngc-chip-active-background-color)}.gator-chip_disabled{cursor:not-allowed!important;color:var(--button-color-default-text-disabled, #6D6D6D);outline:1px solid transparent!important;background:var(--color-surface-disabled, #E5E5E5);border:1px solid transparent!important}.gator-chip_disabled:hover{background:var(--color-surface-disabled, #E5E5E5)!important}.gator-chip__read-only{cursor:var(--ngc-chip-cursor, default !important)}.gator-chip__read-only:active{background-color:var(--ngc-chip-background-color, var(--color-background-primary))}.gator-chip_error{background:var(--color-surface-error, #FAEBE7);border:1px solid var(--color-stroke-error-weak, #E99F88)}.gator-chip_error:hover:not(.gator-chip__read-only){background:var(--color-stroke-error-weak, #E99F88)}.gator-chip_warning{background:var(--color-surface-error, #FAEBE7);border:1px solid var(--color-stroke-warning, #F5B77F)}.gator-chip_warning:hover:not(.gator-chip__read-only){background:var(--color-stroke-warning, #F5B77F)}.gator-chip_success{background:var(--color-surface-success, #E9F7F0);border:1px solid var(--color-stroke-success, #90D4B4)}.gator-chip_success:hover:not(.gator-chip__read-only){background:var(--color-stroke-success, #90D4B4)}.gator-chip_info{border:1px solid var(--color-surface-brand-secondary, #C3CDD6);background:var(--color-surface-brand-hover, #E4ECF2)}.gator-chip_info:hover:not(.gator-chip__read-only){background:var(--color-surface-brand-secondary, #C3CDD6)}.gator-chip_small{font-size:var(--text-size-caption);line-height:var(--text-line-height-caption)}.hide-border{border:none}';export{r as default};
1
+ const r='.gator-chip{background-color:var(--ngc-chip-background-color, var(--color-background-primary));border-radius:var(--ngc-chip-border-radius, 3rem);display:inline-block;padding:var(--ngc-chip-padding, .25rem .75rem);font-family:var(--text-family-body, "Open Sans"),sans-serif;font-size:var(--ngc-chip-font-size, .9375rem);line-height:var(--ngc-chip-line-height);border:var(--ngc-chip-border, 1px solid var(--color-stroke-tertiary, #E5E5E5));color:var(--color-neutral-70);cursor:var(--ngc-chip-cursor, default)}.gator-chip.hide-border{border:1px solid transparent}button:hover{background-color:var(--ngc-chip-hover-background-color, var(--color-neutral-20));cursor:var(--ngc-chip-cursor, pointer)}button:focus-visible{outline:none;box-shadow:var(--ngc-chip-focus-box-shadow, var(--shadow-x-offset-0, 0px) var(--shadow-y-offset-0, 0px) var(--shadow-blur-0, 0px) var(--shadow-spread-2, 2px) var(--color-focus-gap, #FFF), var(--shadow-x-offset-0, 0px) var(--shadow-y-offset-0, 0px) var(--shadow-blur-0, 0px) var(--shadow-spread-4, 4px) var(--color-focus-border, #11395B))}button:active{background-color:var(--ngc-chip-active-background-color)}.gator-chip_disabled{cursor:not-allowed!important;color:var(--button-color-default-text-disabled, #6D6D6D);outline:1px solid transparent!important;background:var(--color-surface-disabled, #E5E5E5);border:1px solid transparent!important}.gator-chip_disabled:hover{background:var(--color-surface-disabled, #E5E5E5)!important}.gator-chip__read-only{cursor:var(--ngc-chip-cursor, default !important)}.gator-chip__read-only:active{background-color:var(--ngc-chip-background-color, var(--color-background-primary))}.gator-chip_error:not(.gator-chip_disabled){background:var(--color-surface-error, #FAEBE7);border:1px solid var(--color-stroke-error-weak, #E99F88)}.gator-chip_error:not(.gator-chip_disabled):hover:not(.gator-chip__read-only){background:var(--color-stroke-error-weak, #E99F88)}.gator-chip_error:not(.gator-chip_disabled).hide-border{border:1px solid transparent}.gator-chip_warning:not(.gator-chip_disabled){background:var(--color-surface-error, #FAEBE7);border:1px solid var(--color-stroke-warning, #F5B77F)}.gator-chip_warning:not(.gator-chip_disabled):hover:not(.gator-chip__read-only){background:var(--color-stroke-warning, #F5B77F)}.gator-chip_warning:not(.gator-chip_disabled).hide-border{border:1px solid transparent}.gator-chip_success:not(.gator-chip_disabled){background:var(--color-surface-success, #E9F7F0);border:1px solid var(--color-stroke-success, #90D4B4)}.gator-chip_success:not(.gator-chip_disabled):hover:not(.gator-chip__read-only){background:var(--color-stroke-success, #90D4B4)}.gator-chip_success:not(.gator-chip_disabled).hide-border{border:1px solid transparent}.gator-chip_info:not(.gator-chip_disabled){border:1px solid var(--color-surface-brand-secondary, #C3CDD6);background:var(--color-surface-brand-hover, #E4ECF2)}.gator-chip_info:not(.gator-chip_disabled):hover:not(.gator-chip__read-only){background:var(--color-surface-brand-secondary, #C3CDD6)}.gator-chip_info:not(.gator-chip_disabled).hide-border{border:1px solid transparent}.gator-chip_small{font-size:var(--text-size-caption);line-height:var(--text-line-height-caption)}';export{r as default};
@@ -1 +1 @@
1
- const o=".gator-icon-button{display:inline-flex;align-items:center;justify-content:center;border-style:none;cursor:pointer;margin:var(--ngc-icon-button-margin, auto);background-color:var(--ngc-icon-button-background-color, transparent);padding:var(--ngc-icon-button-padding, 0);border-radius:50%}.gator-icon-button ngc-icon{--ngc-icon-color: var(--ngc-icon-button-icon-color, var(--color-primary-03-base))}.gator-icon-button_xsmall{height:var(--ngc-icon-button-height, 1.5rem);width:var(--ngc-icon-button-width, 1.5rem)}.gator-icon-button_xsmall ngc-icon{--ngc-icon-height: 1rem;--ngc-icon-width: 1rem}.gator-icon-button_xsmall .gator-icon-button_loader{display:inline-flex;align-items:center;justify-content:center;height:1.5rem;width:1.5rem}.gator-icon-button_small{height:var(--ngc-icon-button-height, 1.5rem);width:var(--ngc-icon-button-width, 1.5rem)}.gator-icon-button_small ngc-icon{--ngc-icon-height: 1.125rem;--ngc-icon-width: 1.125rem}.gator-icon-button_medium{height:var(--ngc-icon-button-height, 2rem);width:var(--ngc-icon-button-width, 2rem)}.gator-icon-button_medium ngc-icon{--ngc-icon-height: 1.5rem;--ngc-icon-width: 1.5rem}.gator-icon-button_large{height:var(--ngc-icon-button-height, 3rem);width:var(--ngc-icon-button-width, 3rem)}.gator-icon-button_large ngc-icon{--ngc-icon-height: 2.25rem;--ngc-icon-width: 2.25rem}.gator-icon-button_xlarge{height:var(--ngc-icon-button-height, 3rem);width:var(--ngc-icon-button-width, 3rem)}.gator-icon-button_xlarge ngc-icon{--ngc-icon-height: 2.5rem;--ngc-icon-width: 2.5rem}.gator-icon-button-loader{display:flex;align-items:center;justify-content:center;background-color:var(--ngc-icon-button-loading-background-color, var(--color-surface-loading));border-radius:50%}.gator-icon-button-loader_xsmall{width:16px;height:16px}.gator-icon-button-loader_small{width:20px;height:20px}.gator-icon-button-loader_medium{width:24px;height:24px}.gator-icon-button-loader_large{width:36px;height:36px}.gator-icon-button-loader_xlarge{width:40px;height:40px}.gator-icon-button[disabled]{cursor:not-allowed}.gator-icon-button[disabled] ngc-icon{--ngc-icon-color: var(--ngc-icon-button-disabled-color, var(--color-text-disabled))}.gator-icon-button:not([disabled]):not(.gator-icon-button_loading):hover{box-shadow:var(--ngc-icon-button-hover-box-shadow, 0px 3px 6px 0px rgba(31, 31, 31, .2))}.gator-icon-button:not([disabled]):focus-visible{outline:var(--ngc-icon-button-focus-outline, 2px solid var(--color-focus-border));outline-offset:2px}.gator-icon-button:not([disabled]):not(.gator-icon-button_loading):active{background-color:var(--ngc-icon-button-pressed-background-color, var(--color-surface-brand-secondary));box-shadow:none}.gator-icon-button.gator-icon-button_loading{cursor:not-allowed}";export{o as default};
1
+ const o=".gator-icon-button{display:inline-flex;align-items:center;justify-content:center;border-style:none;cursor:pointer;margin:var(--ngc-icon-button-margin, auto);background-color:var(--ngc-icon-button-background-color, transparent);padding:var(--ngc-icon-button-padding, 0);border-radius:50%}.gator-icon-button ngc-icon{--ngc-icon-color: var(--ngc-icon-button-icon-color, var(--color-primary-03-base))}.gator-icon-button_xsmall{height:var(--ngc-icon-button-height, 1.5rem);width:var(--ngc-icon-button-width, 1.5rem)}.gator-icon-button_xsmall ngc-icon{--ngc-icon-height: 1rem;--ngc-icon-width: 1rem}.gator-icon-button_xsmall .gator-icon-button_loader{display:inline-flex;align-items:center;justify-content:center;height:1.5rem;width:1.5rem}.gator-icon-button_small{height:var(--ngc-icon-button-height, 1.5rem);width:var(--ngc-icon-button-width, 1.5rem)}.gator-icon-button_small ngc-icon{--ngc-icon-height: 1.125rem;--ngc-icon-width: 1.125rem}.gator-icon-button_medium{height:var(--ngc-icon-button-height, 2rem);width:var(--ngc-icon-button-width, 2rem)}.gator-icon-button_medium ngc-icon{--ngc-icon-height: 1.5rem;--ngc-icon-width: 1.5rem}.gator-icon-button_large{height:var(--ngc-icon-button-height, 3rem);width:var(--ngc-icon-button-width, 3rem)}.gator-icon-button_large ngc-icon{--ngc-icon-height: 2.25rem;--ngc-icon-width: 2.25rem}.gator-icon-button_xlarge{height:var(--ngc-icon-button-height, 3rem);width:var(--ngc-icon-button-width, 3rem)}.gator-icon-button_xlarge ngc-icon{--ngc-icon-height: 2.5rem;--ngc-icon-width: 2.5rem}.gator-icon-button-loader{display:flex;align-items:center;justify-content:center;background-color:var(--ngc-icon-button-loading-background-color, var(--color-surface-loading));border-radius:50%}.gator-icon-button-loader_xsmall{width:16px;height:16px}.gator-icon-button-loader_small{width:20px;height:20px}.gator-icon-button-loader_medium{width:24px;height:24px}.gator-icon-button-loader_large{width:36px;height:36px}.gator-icon-button-loader_xlarge{width:40px;height:40px}.gator-icon-button[disabled]{cursor:not-allowed}.gator-icon-button[disabled] ngc-icon{--ngc-icon-color: var(--ngc-icon-button-disabled-color, var(--color-text-disabled))}.gator-icon-button:not([disabled]):not(.gator-icon-button_loading):hover{box-shadow:var(--ngc-icon-button-hover-box-shadow, 0px 3px 6px 0px rgba(31, 31, 31, .2))}.gator-icon-button:not([disabled]):focus-visible{outline:var(--ngc-icon-button-focus-outline, 2px solid var(--color-focus-border));outline-offset:2px}.gator-icon-button:focus-visible.no-focus-visible{outline:none}.gator-icon-button:not([disabled]):not(.gator-icon-button_loading):active{background-color:var(--ngc-icon-button-pressed-background-color, var(--color-surface-brand-secondary));box-shadow:none}.gator-icon-button.gator-icon-button_loading{cursor:not-allowed}";export{o as default};
@@ -0,0 +1 @@
1
+ const r='.gator-popover{position:relative;filter:drop-shadow(0px 1px 5px rgba(31,31,31,.2));border-radius:var(--ngc-popover-border-radius, var(--radius-m));background-color:var(--ngc-popover-background-color, var(--color-surface-primary));pointer-events:auto}.gator-popover-small{width:240px}.gator-popover-medium{width:320px}.gator-popover-large{width:400px}.gator-popover-body{display:flex;flex-direction:column;padding:var(--ngc-popover-body-padding, .75rem 1.75rem .75rem .75rem)}.gator-popover-body-container{display:flex;margin-top:.75rem}.gator-popover-body-container ngc-icon{margin-right:.5rem}.gator-popover-body-content{display:flex;flex-direction:column;flex-grow:1}.gator-popover-body-title{font-family:var(--ngc-font-family-body),sans-serif;font-size:var(--text-size-subtitle-1);font-weight:700;line-height:var(--text-line-height-subtitle-1);margin-bottom:var(--spacing-3)}.gator-popover-divider{height:1px;background-color:var(--color-stroke-tertiary)}.gator-popover-footer{display:flex;justify-content:flex-end;align-items:center;padding:var(--ngc-popover-footer-padding, var(--spacing-3, .5rem) var(--spacing-4, 1rem))}.gator-popover-footer ngc-help-text{margin-right:auto}#gator-popover-close{position:absolute;top:.25rem;right:.25rem;--ngc-icon-button-hover-box-shadow: none}.gator-popover-nubbin_bottom-start:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;left:1.75rem;bottom:-.5rem;margin-left:-.5rem;border-radius:100% 0 3px}.gator-popover-nubbin_bottom-center:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;left:50%;bottom:-.5rem;margin-left:-.5rem;border-radius:100% 0 3px}.gator-popover-nubbin_bottom-end:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;right:1.75rem;bottom:-.5rem;margin-left:-.5rem;border-radius:100% 0 3px}.gator-popover-nubbin_top-start:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;left:1.75rem;top:-.5rem;margin-left:-.5rem;border-radius:3px 0 100%}.gator-popover-nubbin_top-center:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;left:50%;top:-.5rem;margin-left:-.5rem;border-radius:3px 0 100%}.gator-popover-nubbin_top-end:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;right:1.75rem;top:-.5rem;margin-left:-.5rem;border-radius:3px 0 100%}.gator-popover-nubbin_left-start:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;left:-.5rem;top:1.4rem;margin-top:-.5rem;border-radius:0 100% 0 3px}.gator-popover-nubbin_left-center:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;left:-.5rem;top:50%;margin-top:-.5rem;border-radius:0 100% 0 3px}.gator-popover-nubbin_left-end:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;left:-.5rem;bottom:1rem;margin-top:-.5rem;border-radius:0 100% 0 3px}.gator-popover-nubbin_right-start:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;right:-.5rem;top:1.4rem;margin-top:-.5rem;border-radius:0 3px 0 100%}.gator-popover-nubbin_right-center:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;right:-.5rem;top:50%;margin-top:-.5rem;border-radius:0 3px 0 100%}.gator-popover-nubbin_right-end:before{content:"";position:absolute;width:1rem;height:1rem;transform:rotate(45deg);background-color:inherit;right:-.5rem;bottom:1rem;margin-top:-.5rem;border-radius:0 3px 0 100%}';export{r as default};
@@ -0,0 +1 @@
1
+ const i="div[role=dialog]{position:absolute;top:0;left:0;z-index:9999;visibility:hidden;opacity:0;transition:opacity .2s}";export{i as default};
@@ -1 +1 @@
1
- const r=":host,:root{--color-background-primary: var(--color-blue-10, #F3F5F7);--color-stroke-primary: var(--color-neutral-50, #6D6D6D);--color-stroke-secondary: var(--color-neutral-40, #BFBFBF);--color-stroke-tertiary: var(--color-neutral-30, #E5E5E5);--color-stroke-read-only: var(--color-neutral-40, #BFBFBF);--color-stroke-disabled: var(--color-neutral-30, #E5E5E5);--color-stroke-brand: var(--color-blue-30, #11395B);--color-stroke-brand-secondary: var(--color-blue-20, #C3CDD6);--color-stroke-interactive: var(--color-blue-40, #0E304D);--color-stroke-focus: var(--color-blue-30, #11395B);--color-stroke-success: var(--color-green-20, #90D4B4);--color-stroke-warning: var(--color-orange-20, #F5B77F);--color-stroke-error-weak: var(--color-red-20, #E99F88);--color-stroke-error: var(--color-red-40, #AA330E);--color-text-primary-base: var(--color-neutral-70, #1F1F1F);--color-text-secondary: var(--color-neutral-50, #6D6D6D);--color-text-brand: var(--color-blue-30, #11395B);--color-text-placeholder: var(--color-neutral-50, #6D6D6D);--color-text-error: var(--color-red-40, #AA330E);--color-text-disabled: var(--color-neutral-50, #6D6D6D);--color-text-inverse: var(--color-neutral-0, #FFFFFF);--color-surface-brand: var(--color-blue-10, #F3F5F7);--color-surface-brand-secondary: var(--color-blue-20, #C3CDD6);--color-surface-brand-pressed: #C3CDD6;--color-surface-brand-hover: #E4ECF2;--color-surface-primary: var(--color-neutral-0, #FFFFFF);--color-surface-secondary: var(--color-neutral-10);--color-surface-error: var(--color-red-10);--color-surface-success: var(--color-green-10);--color-surface-warning: var(--color-orange-10);--color-surface-badge: var(--color-red-30);--color-surface-hover: var(--color-neutral-10, #F7F7F7);--color-surface-loading: var(--color-neutral-30);--color-surface-interactive-primary: var(--color-blue-40, #0E304D);--color-surface-interactive-primary-hover: var(--color-blue-50, #0A2033);--color-surface-interactive-primary-pressed: var(--color-blue-50, #0A2033);--color-icon-error: var(--color-red-30);--color-icon-success: var(--color-green-30);--color-icon-warning: var(--color-orange-30);--color-icon-disabled: var(--color-neutral-40, #BFBFBF);--color-icon-brand: var(--color-blue-30);--icon-color-brand: #11395B;--color-primary-03-base: var(--color-neutral-70, #1F1F1F);--color-primary-01-placeholder: var(--color-neutral-50, #6D6D6D);--color-underline-primary: var(--color-neutral-40, #BFBFBF);--color-button-pressed: var(--color-neutral-60, #404040);--color-button-disabled: var(--color-neutral-40, #BFBFBF);--color-focus-gap: var(--color-neutral-0, #FFFFFF);--color-focus-border: var(--color-blue-30, #11395B);--primary-01-placeholder: var(--color-neutral-50, #6D6D6D);--text-color-secondary: var(--color-neutral-50, #6D6D6D);--size-stroke-1: 1px;--radius-sm: .125rem;--radius-circle: 9999rem;--text-size-subtitle-1: 1.0625rem;--text-size-body-1: 1.0625rem;--text-size-body-2: .9375rem;--text-size-caption: .8125rem;--text-size-h1: 2.5rem;--text-size-h5: 1.25rem;--text-size-button-small: .8125rem;--text-size-button-large: 1.0625rem;--text-size-heading-3: 1.625rem;--text-line-height-subtitle-1: 1.5rem;--text-line-height-body-1: 1.5rem;--text-line-height-body-2: 1.375rem;--text-line-height-h1: 3.125rem;--text-line-height-h5: 1.875rem;--text-line-height-heading-2: 2.625rem;--text-line-height-caption: 1.1rem;--spacing-2: .5rem;--spacing-5: 1.5rem;--spacing-padding-margin-32: 2rem;--spacing-padding-margin-16: 1rem;--spacing-padding-margin-8: .5rem;--spacing-padding-margin-4: .25rem;--spacing-gap-4: .25rem;--spacing-gap-8: .5rem;--spacing-gap-12: .75rem;--spacing-gap-16: 1rem;--size-icon-default: 1.5rem;--text-line-height-subtitle: 1.5rem}";export{r as default};
1
+ const r=":host,:root{--color-background-primary: var(--color-blue-10, #F3F5F7);--color-stroke-primary: var(--color-neutral-50, #6D6D6D);--color-stroke-secondary: var(--color-neutral-40, #BFBFBF);--color-stroke-tertiary: var(--color-neutral-30, #E5E5E5);--color-stroke-read-only: var(--color-neutral-40, #BFBFBF);--color-stroke-disabled: var(--color-neutral-30, #E5E5E5);--color-stroke-brand: var(--color-blue-30, #11395B);--color-stroke-brand-secondary: var(--color-blue-20, #C3CDD6);--color-stroke-interactive: var(--color-blue-40, #0E304D);--color-stroke-focus: var(--color-blue-30, #11395B);--color-stroke-success: var(--color-green-20, #90D4B4);--color-stroke-warning: var(--color-orange-20, #F5B77F);--color-stroke-error-weak: var(--color-red-20, #E99F88);--color-stroke-error: var(--color-red-40, #AA330E);--color-text-primary-base: var(--color-neutral-70, #1F1F1F);--color-text-secondary: var(--color-neutral-50, #6D6D6D);--color-text-brand: var(--color-blue-30, #11395B);--color-text-placeholder: var(--color-neutral-50, #6D6D6D);--color-text-error: var(--color-red-40, #AA330E);--color-text-disabled: var(--color-neutral-50, #6D6D6D);--color-text-inverse: var(--color-neutral-0, #FFFFFF);--color-surface-brand: var(--color-blue-10, #F3F5F7);--color-surface-brand-secondary: var(--color-blue-20, #C3CDD6);--color-surface-brand-pressed: #C3CDD6;--color-surface-brand-hover: #E4ECF2;--color-surface-primary: var(--color-neutral-0, #FFFFFF);--color-surface-secondary: var(--color-neutral-10);--color-surface-error: var(--color-red-10);--color-surface-success: var(--color-green-10);--color-surface-warning: var(--color-orange-10);--color-surface-badge: var(--color-red-30);--color-surface-hover: var(--color-neutral-10, #F7F7F7);--color-surface-loading: var(--color-neutral-30);--color-surface-interactive-primary: var(--color-blue-40, #0E304D);--color-surface-interactive-primary-hover: var(--color-blue-50, #0A2033);--color-surface-interactive-primary-pressed: var(--color-blue-50, #0A2033);--color-icon-error: var(--color-red-30);--color-icon-success: var(--color-green-30);--color-icon-warning: var(--color-orange-30);--color-icon-disabled: var(--color-neutral-40, #BFBFBF);--color-icon-brand: var(--color-blue-30);--icon-color-brand: #11395B;--color-primary-03-base: var(--color-neutral-70, #1F1F1F);--color-primary-01-placeholder: var(--color-neutral-50, #6D6D6D);--color-underline-primary: var(--color-neutral-40, #BFBFBF);--color-button-pressed: var(--color-neutral-60, #404040);--color-button-disabled: var(--color-neutral-40, #BFBFBF);--color-focus-gap: var(--color-neutral-0, #FFFFFF);--color-focus-border: var(--color-blue-30, #11395B);--primary-01-placeholder: var(--color-neutral-50, #6D6D6D);--text-color-secondary: var(--color-neutral-50, #6D6D6D);--size-stroke-1: 1px;--radius-sm: .125rem;--radius-m: .75rem;--radius-circle: 9999rem;--text-size-subtitle-1: 1.0625rem;--text-size-body-1: 1.0625rem;--text-size-body-2: .9375rem;--text-size-caption: .8125rem;--text-size-h1: 2.5rem;--text-size-h5: 1.25rem;--text-size-button-small: .8125rem;--text-size-button-large: 1.0625rem;--text-size-heading-3: 1.625rem;--text-line-height-subtitle-1: 1.5rem;--text-line-height-body-1: 1.5rem;--text-line-height-body-2: 1.375rem;--text-line-height-h1: 3.125rem;--text-line-height-h5: 1.875rem;--text-line-height-heading-2: 2.625rem;--text-line-height-caption: 1.1rem;--spacing-2: .5rem;--spacing-5: 1.5rem;--spacing-padding-margin-32: 2rem;--spacing-padding-margin-16: 1rem;--spacing-padding-margin-8: .5rem;--spacing-padding-margin-4: .25rem;--spacing-gap-4: .25rem;--spacing-gap-8: .5rem;--spacing-gap-12: .75rem;--spacing-gap-16: 1rem;--size-icon-default: 1.5rem;--text-line-height-subtitle: 1.5rem}";export{r as default};
@@ -0,0 +1,31 @@
1
+ import { NjcPopover } from '../popover.ts';
2
+ import { PropertyValues } from 'lit';
3
+ export declare class NgcPopover extends NjcPopover {
4
+ static shadowRootOptions: {
5
+ delegatesFocus: boolean;
6
+ mode: ShadowRootMode;
7
+ serializable?: boolean;
8
+ slotAssignment?: SlotAssignmentMode;
9
+ };
10
+ static styles: import('lit').CSSResult[];
11
+ render(): import('lit').TemplateResult<1>;
12
+ private get _closeButtonMarkup();
13
+ private get _bodyMarkup();
14
+ private get _footerMarkup();
15
+ private get _computedPlacement();
16
+ private get _xPositionOffset();
17
+ private get _yPositionOffset();
18
+ private get _nubbinPositionClass();
19
+ connectedCallback(): void;
20
+ firstUpdated(): void;
21
+ protected updated(_changedProperties: PropertyValues): void;
22
+ protected assignPosition(): void;
23
+ showPopover(triggeredByKeyboard?: boolean): void;
24
+ hidePopover(): void;
25
+ private _handleKeyDown;
26
+ }
27
+ declare global {
28
+ interface HTMLElementTagNameMap {
29
+ 'ngc-popover': NgcPopover;
30
+ }
31
+ }
@@ -0,0 +1 @@
1
+ export * as NgcPopover from './gator/popover.gator.ts';
@@ -0,0 +1,79 @@
1
+ import { Placement } from '@floating-ui/dom';
2
+ import { Ref } from 'lit/directives/ref.js';
3
+ import { TestableLitElement } from '../../utils/components/testable-lit-element/testable-lit-element.ts';
4
+ import { PropertyValues } from 'lit';
5
+ export type NJC_POPOVER_SIZE = 'small' | 'medium' | 'large';
6
+ export declare class NjcPopover extends TestableLitElement {
7
+ /**
8
+ * @property {string} referenceId
9
+ * @description The id of the reference element that is used to trigger the popover
10
+ */
11
+ referenceId: string;
12
+ /**
13
+ * @property {string} title
14
+ * @description The title for the popover
15
+ */
16
+ title: string;
17
+ /**
18
+ * @property {Placement} placement
19
+ * @description The placement of the popover relative to the reference element
20
+ */
21
+ placement: Placement | undefined;
22
+ /**
23
+ * @property {number} xOffset
24
+ * @description X offset of the popover's position
25
+ */
26
+ xOffset: number;
27
+ /**
28
+ * @property {number} yOffset
29
+ * @description Y offset of the popover's position
30
+ */
31
+ yOffset: number;
32
+ /**
33
+ * @property {string} iconName
34
+ * @description The name of the icon to use in the content of the popover
35
+ */
36
+ iconName: string | undefined;
37
+ /**
38
+ * @property {string} errorText
39
+ * @description The error text that is shown in the footer of the popover
40
+ */
41
+ errorText: string | undefined;
42
+ /**
43
+ * @property {NJC_POPOVER_SIZE} size
44
+ * @description The size of the popover
45
+ */
46
+ size: NJC_POPOVER_SIZE;
47
+ /**
48
+ * @property {string} showOnHover
49
+ * @description If true, the popover will show on hover of the reference element. If false,
50
+ * the popover will be shown on click of the reference element.
51
+ */
52
+ showOnHover: boolean;
53
+ _popoverRef: Ref<HTMLElement>;
54
+ _cleanup: (() => void) | undefined;
55
+ private _forceOpen;
56
+ private _mousedInsidePopover;
57
+ protected _placement: Placement;
58
+ popoverId: string;
59
+ firstUpdated(): void;
60
+ protected updated(_changedProperties: PropertyValues): void;
61
+ get referenceElement(): HTMLElement;
62
+ private _addShowOnHoverEvents;
63
+ private _addShowOnClickEvents;
64
+ private _hasPopoverAsParent;
65
+ elementListeners: WeakMap<object, any>;
66
+ addTrackedEventListener(element: HTMLElement | Document, eventType: string, listener: Function, options?: AddEventListenerOptions): void;
67
+ removeAllTrackedEventListeners(element: HTMLElement | Document): void;
68
+ _handleMouseLeave(e: MouseEvent, referenceElement: HTMLElement, popoverElement: HTMLElement): void;
69
+ _isMouseInside(e: MouseEvent, rect: DOMRect, padding?: number): boolean;
70
+ showPopover(triggeredByKeyboard?: boolean): void;
71
+ hidePopover(): void;
72
+ protected _getKeyboardFocusableElements(): HTMLElement[];
73
+ protected _focusFirstElement(useVisibleFocus?: boolean): void;
74
+ /**
75
+ * Override this function to use floating UI autoUpdate and computePosition
76
+ */
77
+ protected assignPosition(): void;
78
+ disconnectedCallback(): void;
79
+ }
@@ -25,6 +25,7 @@ export * from './components/menu';
25
25
  export * from './components/modal';
26
26
  export * from './components/page-header';
27
27
  export * from './components/pill';
28
+ export * from './components/popover';
28
29
  export * from './components/radio';
29
30
  export * from './components/radio-group';
30
31
  export * from './components/scoped-notification';
@@ -25,6 +25,7 @@ export { NgcMenu, NgcMenuItem } from './components/menu';
25
25
  export { NgcModal } from './components/modal';
26
26
  export { NgcPageHeader } from './components/page-header';
27
27
  export { NgcPanel } from './components/panel';
28
+ export { NgcPopover } from './components/popover';
28
29
  export { NgcProgressBar } from './components/progress-bar';
29
30
  export { NgcRadio } from './components/radio';
30
31
  export { NgcRadioGroup } from './components/radio-group';
@@ -1 +1,2 @@
1
1
  export declare function getFirstFocusableElement(element: Element | undefined): Element | null;
2
+ export declare function getFocusableElements(element: Element | ShadowRoot | undefined): Element[] | null;
@@ -3,5 +3,5 @@ export declare class SlotPlaceholder extends LitElement {
3
3
  slotName: string;
4
4
  static styles: import('lit').CSSResult[];
5
5
  render(): import('lit').TemplateResult<1>;
6
- get namedSlotMarkup(): import('lit').TemplateResult<1> | null;
6
+ get namedSlotMarkup(): import('lit').TemplateResult<1>;
7
7
  }
@@ -11,6 +11,7 @@ export declare function getShadowRootElements(element: Element | null | undefine
11
11
  export declare function getSlotTextContent(element: HTMLElement | null | undefined): string | null | undefined;
12
12
  export declare function getNamedSlotTextContent(element: HTMLElement | null, name: string): string | undefined | null;
13
13
  export declare function getSlottedElements(element: HTMLElement | null): Element[] | undefined;
14
+ export declare function getNamedSlottedElements(element: HTMLElement | null, name: string): Element[] | undefined;
14
15
  export declare function flushPromises(time?: number): Promise<unknown>;
15
16
  /**
16
17
  * Removes Lit-related comments from a given innerHTML string and normalizes whitespace.
@@ -1 +1 @@
1
- function l(e){var t;if(!e)return null;const n=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])",'[tabindex]:not([tabindex="-1"])'];return((t=e.shadowRoot)==null?void 0:t.querySelector(n.join(",")))||null}export{l as getFirstFocusableElement};
1
+ function a(t){var n;if(!t)return null;const e=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])",'[tabindex]:not([tabindex="-1"])'];return((n=t.shadowRoot)==null?void 0:n.querySelector(e.join(",")))||null}function l(t){if(!t)return null;const e=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","ngc-button","ngc-icon-button",'[tabindex]:not([tabindex="-1"])'];return Array.from(t.querySelectorAll(e.join(",")))}export{a as getFirstFocusableElement,l as getFocusableElements};
@@ -1,9 +1,8 @@
1
- import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as m}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import{LitElement as p}from"../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{customElement as d}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as f}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{css as c}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var u=Object.defineProperty,h=Object.getOwnPropertyDescriptor,n=(i,t,s,r)=>{for(var e=r>1?void 0:r?h(t,s):t,l=i.length-1,a;l>=0;l--)(a=i[l])&&(e=(r?a(t,s,e):a(e))||e);return r&&e&&u(t,s,e),e};let o=class extends p{constructor(){super(...arguments),this.slotName=""}render(){return m`
1
+ import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/reactive-element.js";import{html as m}from"../../../node_modules/.pnpm/lit-html@3.3.0/node_modules/lit-html/lit-html.js";import{LitElement as n}from"../../../node_modules/.pnpm/lit-element@4.2.0/node_modules/lit-element/lit-element.js";import{customElement as d}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/custom-element.js";import{property as f}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/decorators/property.js";import{css as c}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit/reactive-element/css-tag.js";var u=Object.defineProperty,v=Object.getOwnPropertyDescriptor,p=(i,t,s,r)=>{for(var e=r>1?void 0:r?v(t,s):t,a=i.length-1,l;a>=0;a--)(l=i[a])&&(e=(r?l(t,s,e):l(e))||e);return r&&e&&u(t,s,e),e};let o=class extends n{constructor(){super(...arguments),this.slotName=""}render(){return m`
2
2
  <div class="slot-placeholder">
3
- Swap this with your design
4
3
  ${this.namedSlotMarkup}
5
4
  </div>
6
- `}get namedSlotMarkup(){return this.slotName?m`<div style="font-size: 0.8rem;">Slot Name : ${this.slotName}</div>`:null}};o.styles=[c`
5
+ `}get namedSlotMarkup(){return this.slotName?m`<div>Slot Name: ${this.slotName}</div>`:m`<div>Default slot</div>`}};o.styles=[c`
7
6
  .slot-placeholder {
8
7
  background: #D8C3F3;
9
8
  border: 1px dashed #9747FF;
@@ -14,4 +13,4 @@ import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.0/node_modules/@lit
14
13
  color: #6F1FC3;
15
14
  text-align: center;
16
15
  }
17
- `];n([f({attribute:"slot-name"})],o.prototype,"slotName",2);o=n([d("slot-placeholder")],o);export{o as SlotPlaceholder};
16
+ `];p([f({attribute:"slot-name"})],o.prototype,"slotName",2);o=p([d("slot-placeholder")],o);export{o as SlotPlaceholder};
@@ -1 +1 @@
1
- import{page as n}from"../node_modules/.pnpm/@vitest_browser@3.1.3_msw@2.7.3_@types_node@22.15.19_typescript@5.8.3__playwright@1.52._8b855f36808d26e31e79487036037a75/node_modules/@vitest/browser/context.js";import u from"../_virtual/axe.js";import{a as o}from"../node_modules/.pnpm/vitest@3.1.3_@types_debug@4.1.12_@types_node@22.15.19_@vitest_browser@3.1.3_@vitest_ui@_3180216f6b61ec2f46d7548bbabcaf0e/node_modules/vitest/dist/chunks/vi.ClIskdbk.js";const h="Supercalifragilisticexpialidocious".repeat(10);async function c(t){return(await u.run(t)).violations}async function x(t){const e=await c(t);o(e).toHaveLength(0)}function w(){return n.viewport(320,256)}function g(t){let e;if(t.scrollWidth!==0?e=t:t.shadowRoot?e=t.shadowRoot.firstElementChild:e=t.firstElementChild,e){const r=e.scrollWidth>e.clientWidth;return o(r).toBe(!1)}return o(!0).toBe(!1)}function m(t,e,r){var l;const s={attribute:e};let i=t.querySelector(":focus-visible");if(i||(i=(l=t.shadowRoot)==null?void 0:l.querySelector(":focus-visible")),i){const a=getComputedStyle(i).getPropertyValue(s.attribute);return o(a).toContain(r)}return o(!0).toBe(!1)}export{m as expectComponentFocusStyle,g as expectComponentNotToHaveHorizontalScrollbar,x as expectNoAxeViolations,w as resizeWindowForReflowTest,c as runAxeAndGetViolations,h as superLongStringForReflowTest};
1
+ import{page as n}from"../node_modules/.pnpm/@vitest_browser@3.1.4_msw@2.7.3_@types_node@22.15.19_typescript@5.8.3__playwright@1.52._13b8a2a4b2a0901553df50edb95cc02c/node_modules/@vitest/browser/context.js";import u from"../_virtual/axe.js";import{a as o}from"../node_modules/.pnpm/vitest@3.1.4_@types_debug@4.1.12_@types_node@22.15.19_@vitest_browser@3.1.4_@vitest_ui@_4606f50216b489908c0243553d6b6054/node_modules/vitest/dist/chunks/vi.ClIskdbk.js";const x="Supercalifragilisticexpialidocious".repeat(10);async function c(t){return(await u.run(t)).violations}async function h(t){const e=await c(t);o(e,`Expected no axe core violations, but got ${e.length}`).toHaveLength(0)}function g(){return n.viewport(320,256)}function w(t){let e;if(t.scrollWidth!==0?e=t:t.shadowRoot?e=t.shadowRoot.firstElementChild:e=t.firstElementChild,e){const r=e.scrollWidth>e.clientWidth;return o(r).toBe(!1)}return o(!0).toBe(!1)}function m(t,e,r){var l;const a={attribute:e};let i=t.querySelector(":focus-visible");if(i||(i=(l=t.shadowRoot)==null?void 0:l.querySelector(":focus-visible")),i){const s=getComputedStyle(i).getPropertyValue(a.attribute);return o(s).toContain(r)}return o(!0).toBe(!1)}export{m as expectComponentFocusStyle,w as expectComponentNotToHaveHorizontalScrollbar,h as expectNoAxeViolations,g as resizeWindowForReflowTest,c as runAxeAndGetViolations,x as superLongStringForReflowTest};
@@ -1 +1 @@
1
- async function s(t){document.body.innerHTML=t,await new Promise(r=>setTimeout(r,0))}function c(t){return document.body.querySelector(t)}function a(t,r){return t.querySelector(r)}function d(t,r){return t.querySelectorAll(r)}function i(t){return document.body.querySelectorAll(t)}function f(t,r){var o;return(o=t==null?void 0:t.shadowRoot)==null?void 0:o.querySelectorAll(r)}function g(t,r){var o;return(o=t==null?void 0:t.shadowRoot)==null?void 0:o.querySelector(r)}function S(t,r){var o;return(o=t==null?void 0:t.shadowRoot)==null?void 0:o.querySelector(`[data-testid="${r}"]`)}function y(t,r){var o;return(o=t==null?void 0:t.shadowRoot)==null?void 0:o.querySelector(r)}function w(t,r){var o;return(o=t==null?void 0:t.shadowRoot)==null?void 0:o.querySelectorAll(r)}function h(t){var n;const r=(n=t==null?void 0:t.shadowRoot)==null?void 0:n.querySelectorAll("slot"),o=Array.from(r).find(u=>u.name==="");return o==null?void 0:o.assignedNodes({flatten:!0}).filter(u=>{var e;return((e=u.textContent)==null?void 0:e.trim())!==""})[0].textContent}function l(t,r){var u;const o=(u=t==null?void 0:t.shadowRoot)==null?void 0:u.querySelector(`slot[name="${r}"]`),n=o!=null&&o.assignedNodes().length?o==null?void 0:o.assignedNodes({flatten:!0})[0]:o==null?void 0:o.assignedElements({flatten:!0})[0];return n==null?void 0:n.textContent}function R(t){var o;const r=(o=t==null?void 0:t.shadowRoot)==null?void 0:o.querySelector("slot");return r==null?void 0:r.assignedElements({flatten:!0})}function q(t=0){return new Promise(r=>setTimeout(r,t))}function T(t){const r=/<!--\?lit\$[^\$]*\$-->/g;return t.replace(r,"").replace(/\s+/g," ").trim()}export{s as addTestableElement,T as cleanInnerHTML,q as flushPromises,c as getElement,a as getElementInsideElement,i as getElements,d as getElementsInsideElement,l as getNamedSlotTextContent,y as getShadowRootElement,S as getShadowRootElementByDataTestId,w as getShadowRootElements,g as getShadowRootHTMLElement,f as getShadowRootHTMLElements,h as getSlotTextContent,R as getSlottedElements};
1
+ async function e(t){document.body.innerHTML=t,await new Promise(r=>setTimeout(r,0))}function c(t){return document.body.querySelector(t)}function a(t,r){return t.querySelector(r)}function d(t,r){return t.querySelectorAll(r)}function i(t){return document.body.querySelectorAll(t)}function f(t,r){var o;return(o=t==null?void 0:t.shadowRoot)==null?void 0:o.querySelectorAll(r)}function g(t,r){var o;return(o=t==null?void 0:t.shadowRoot)==null?void 0:o.querySelector(r)}function S(t,r){var o;return(o=t==null?void 0:t.shadowRoot)==null?void 0:o.querySelector(`[data-testid="${r}"]`)}function y(t,r){var o;return(o=t==null?void 0:t.shadowRoot)==null?void 0:o.querySelector(r)}function h(t,r){var o;return(o=t==null?void 0:t.shadowRoot)==null?void 0:o.querySelectorAll(r)}function w(t){var n;const r=(n=t==null?void 0:t.shadowRoot)==null?void 0:n.querySelectorAll("slot"),o=Array.from(r).find(u=>u.name==="");return o==null?void 0:o.assignedNodes({flatten:!0}).filter(u=>{var s;return((s=u.textContent)==null?void 0:s.trim())!==""})[0].textContent}function l(t,r){var u;const o=(u=t==null?void 0:t.shadowRoot)==null?void 0:u.querySelector(`slot[name="${r}"]`),n=o!=null&&o.assignedNodes().length?o==null?void 0:o.assignedNodes({flatten:!0})[0]:o==null?void 0:o.assignedElements({flatten:!0})[0];return n==null?void 0:n.textContent}function R(t){var o;const r=(o=t==null?void 0:t.shadowRoot)==null?void 0:o.querySelector("slot");return r==null?void 0:r.assignedElements({flatten:!0})}function q(t,r){var n,u;const o=(n=t==null?void 0:t.shadowRoot)==null?void 0:n.querySelector(`slot[name=${r}]`);return Array.from(((u=o==null?void 0:o.assignedElements({flatten:!0}))==null?void 0:u[0].children)??[])}function T(t=0){return new Promise(r=>setTimeout(r,t))}function E(t){const r=/<!--\?lit\$[^\$]*\$-->/g;return t.replace(r,"").replace(/\s+/g," ").trim()}export{e as addTestableElement,E as cleanInnerHTML,T as flushPromises,c as getElement,a as getElementInsideElement,i as getElements,d as getElementsInsideElement,l as getNamedSlotTextContent,q as getNamedSlottedElements,y as getShadowRootElement,S as getShadowRootElementByDataTestId,h as getShadowRootElements,g as getShadowRootHTMLElement,f as getShadowRootHTMLElements,w as getSlotTextContent,R as getSlottedElements};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ncino/web-components",
3
3
  "author": "nCino",
4
- "version": "4.0.0-preview.11",
4
+ "version": "4.0.0-preview.13",
5
5
  "license": "(c) Copyright 2023 nCino, Inc., all rights reserved",
6
6
  "publishConfig": {
7
7
  "registry": "https://registry.npmjs.org/"
@@ -101,7 +101,7 @@
101
101
  "axe-core": "^4.10.3",
102
102
  "cem-plugin-expanded-types": "^1.4.0",
103
103
  "chromatic": "^11.28.2",
104
- "conventional-changelog-conventionalcommits": "^8.0.0",
104
+ "conventional-changelog-conventionalcommits": "^9.0.0",
105
105
  "custom-element-jet-brains-integration": "^1.7.0",
106
106
  "custom-elements-manifest": "^2.1.0",
107
107
  "eslint": "^9.26.0",
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@ncino/web-components",
4
- "version": "4.0.0-preview.10",
4
+ "version": "4.0.0-preview.12",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -4507,6 +4507,77 @@
4507
4507
  ]
4508
4508
  }
4509
4509
  },
4510
+ {
4511
+ "name": "ngc-popover",
4512
+ "description": "\n---\n\n\n### **Methods:**\n ",
4513
+ "doc-url": "",
4514
+ "attributes": [
4515
+ {
4516
+ "name": "reference-id",
4517
+ "value": { "type": "string", "default": "''" }
4518
+ },
4519
+ { "name": "title", "value": { "type": "string", "default": "''" } },
4520
+ {
4521
+ "name": "placement",
4522
+ "value": { "type": "Placement | undefined" }
4523
+ },
4524
+ {
4525
+ "name": "x-offset",
4526
+ "value": { "type": "number", "default": "0" }
4527
+ },
4528
+ {
4529
+ "name": "y-offset",
4530
+ "value": { "type": "number", "default": "0" }
4531
+ },
4532
+ {
4533
+ "name": "icon-name",
4534
+ "value": { "type": "string | undefined", "default": "undefined" }
4535
+ },
4536
+ {
4537
+ "name": "error-text",
4538
+ "value": { "type": "string | undefined", "default": "undefined" }
4539
+ },
4540
+ {
4541
+ "name": "size",
4542
+ "value": {
4543
+ "type": "'small' | 'medium' | 'large'",
4544
+ "default": "'medium'"
4545
+ }
4546
+ },
4547
+ {
4548
+ "name": "show-on-hover",
4549
+ "value": { "type": "boolean", "default": "false" }
4550
+ },
4551
+ {
4552
+ "name": "data-testid",
4553
+ "value": { "type": "string | undefined", "default": "undefined" }
4554
+ }
4555
+ ],
4556
+ "events": [],
4557
+ "js": {
4558
+ "properties": [
4559
+ { "name": "referenceId", "type": "string" },
4560
+ { "name": "title", "type": "string" },
4561
+ { "name": "placement", "type": "Placement | undefined" },
4562
+ { "name": "xOffset", "type": "number" },
4563
+ { "name": "yOffset", "type": "number" },
4564
+ { "name": "iconName", "type": "string | undefined" },
4565
+ { "name": "errorText", "type": "string | undefined" },
4566
+ { "name": "size", "type": "'small' | 'medium' | 'large'" },
4567
+ { "name": "showOnHover", "type": "boolean" },
4568
+ { "name": "_popoverRef", "type": "Ref<HTMLElement>" },
4569
+ { "name": "_cleanup", "type": "(() => void) | undefined" },
4570
+ { "name": "popoverId" },
4571
+ { "name": "referenceElement" },
4572
+ { "name": "elementListeners" },
4573
+ { "name": "dataTestid", "type": "string | undefined" },
4574
+ { "name": "labelDataTestid" },
4575
+ { "name": "helpTextDataTestid" },
4576
+ { "name": "errorMessageDataTestid" }
4577
+ ],
4578
+ "events": []
4579
+ }
4580
+ },
4510
4581
  {
4511
4582
  "name": "ngc-progress-bar",
4512
4583
  "description": "\n---\n",