@ncino/web-components 13.5.0 → 13.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/toast/gator/base/toast.gator.js +19 -8
- package/dist/components/toast/gator/toast-constants.js +1 -1
- package/dist/components/toast/toast.js +1 -1
- package/dist/components/toast-container/gator/toast-container.gator.js +3 -2
- package/dist/components/toaster/gator/toaster.gator.js +3 -3
- package/dist/node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-6XWLIJQL.js +1 -0
- package/dist/node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-A242L54C.js +1 -1
- package/dist/node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-EUVGDK4H.js +1 -0
- package/dist/node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-JVRDBUUP.js +6 -0
- package/dist/node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-POMIZRJL.js +11 -0
- package/dist/node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-SZQXB3JV.js +11 -0
- package/dist/node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-V2VKKSMQ.js +3 -0
- package/dist/node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-XLJZ7AOP.js +1 -0
- package/dist/node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-ZCFV7BZB.js +1 -0
- package/dist/node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/channels/index.js +1 -0
- package/dist/types/components/toast/gator/base/toast.gator.d.ts +3 -2
- package/dist/types/components/toast/gator/toast-constants.d.ts +4 -0
- package/dist/types/components/toast/toast.d.ts +12 -0
- package/dist/types/services/toaster-service.d.ts +7 -0
- package/dist/types/utils/storybook-actions.d.ts +7 -0
- package/dist/utils/storybook-actions.js +1 -0
- package/package.json +3 -3
- package/web-types.json +8 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{NjcToast as m}from"../../toast.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{nothing as
|
|
1
|
+
import{NjcToast as m}from"../../toast.js";import"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{nothing as u,html as i}from"../../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import"../../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{customElement as g}from"../../../../utils/decorators/custom-element-decorator.js";import h from"../../../../packages/web-components/src/components/toast/gator/base/toast.gator.scss.js";import d from"../../../../packages/styles/dist/tokens/primitive.tokens.css.js";import b from"../../../../packages/styles/dist/tokens/semantic.tokens.css.js";import"../../../icon-button/gator/icon-button.gator.js";import"../../../button/slds/button.slds.js";import"../../../button/gator/button.gator.js";import"../title/toast-title.gator.js";import"../subtitle/toast-subtitle.gator.js";import{MAX_TOAST_ACTIONS as p}from"../toast-constants.js";import{unsafeCSS as o}from"../../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";var v=Object.getOwnPropertyDescriptor,f=(t,s,a,c)=>{for(var r=c>1?void 0:c?v(s,a):s,e=t.length-1,l;e>=0;e--)(l=t[e])&&(r=l(r)||r);return r};let n=class extends m{render(){return i`
|
|
2
2
|
<div
|
|
3
3
|
class="gator-toast ${this.variantClass}"
|
|
4
4
|
role="${this.ariaRole}"
|
|
@@ -8,26 +8,37 @@ import{NjcToast as m}from"../../toast.js";import"../../../../node_modules/.pnpm/
|
|
|
8
8
|
<div class="gator-toast-content-container">
|
|
9
9
|
<div class="gator-toast-content">
|
|
10
10
|
<slot name="content">
|
|
11
|
-
${this.title?
|
|
12
|
-
${this.subtitle?
|
|
11
|
+
${this.title?i`<ngc-toast-title>${this.title}</ngc-toast-title>`:u}
|
|
12
|
+
${this.subtitle?i`<ngc-toast-subtitle>${this.subtitle}</ngc-toast-subtitle>`:u}
|
|
13
13
|
</slot>
|
|
14
14
|
</div>
|
|
15
15
|
|
|
16
|
-
${this.
|
|
16
|
+
${this.actionsMarkup}
|
|
17
17
|
</div>
|
|
18
18
|
|
|
19
19
|
${this.dismissibleMarkup}
|
|
20
20
|
</div>
|
|
21
|
-
`}get ariaRole(){return this.sticky?"alertdialog":"alert"}get
|
|
21
|
+
`}get ariaRole(){return this.sticky?"alertdialog":"alert"}get actionsMarkup(){return this.actions?.length?i`
|
|
22
|
+
<div class="gator-toast-actions">
|
|
23
|
+
${this.actions.slice(0,p).map(s=>i`
|
|
24
|
+
<ngc-button
|
|
25
|
+
variant="${s.variant??"base"}"
|
|
26
|
+
@click=${a=>this.handleActionClick(a,s)}
|
|
27
|
+
>
|
|
28
|
+
${s.label}
|
|
29
|
+
</ngc-button>
|
|
30
|
+
`)}
|
|
31
|
+
</div>
|
|
32
|
+
`:this.querySelector('[slot="actions"]')?i`
|
|
22
33
|
<div class="gator-toast-actions">
|
|
23
34
|
<slot name="actions"></slot>
|
|
24
35
|
</div>
|
|
25
|
-
`:null}get variantClass(){switch(this.variant){case"info":return"gator-toast_info";case"warning":return"gator-toast_warning";case"error":return"gator-toast_error";case"success":return"gator-toast_success";case"inverse":return"gator-toast_inverse";default:return"gator-toast_info"}}get iconMarkup(){let t="info";switch(this.variant){case"info":t="info";break;case"warning":t="warning";break;case"error":t="restricted";break;case"success":t="check-circle";break;case"inverse":t="info";break}return
|
|
36
|
+
`:null}handleActionClick(t,s){s.onClick?.(t)}get variantClass(){switch(this.variant){case"info":return"gator-toast_info";case"warning":return"gator-toast_warning";case"error":return"gator-toast_error";case"success":return"gator-toast_success";case"inverse":return"gator-toast_inverse";default:return"gator-toast_info"}}get iconMarkup(){let t="info";switch(this.variant){case"info":t="info";break;case"warning":t="warning";break;case"error":t="restricted";break;case"success":t="check-circle";break;case"inverse":t="info";break}return i`
|
|
26
37
|
<ngc-icon
|
|
27
38
|
name="${t}"
|
|
28
39
|
label="${this.statusIconLabel?this.statusIconLabel:t}"
|
|
29
40
|
></ngc-icon>
|
|
30
|
-
`}get dismissibleMarkup(){return this.dismissible?
|
|
41
|
+
`}get dismissibleMarkup(){return this.dismissible?i`
|
|
31
42
|
<div class="gator-toast-dismiss-button">
|
|
32
43
|
<ngc-icon-button
|
|
33
44
|
aria-label="${this.exitIconLabel}"
|
|
@@ -36,4 +47,4 @@ import{NjcToast as m}from"../../toast.js";import"../../../../node_modules/.pnpm/
|
|
|
36
47
|
@click=${this.handleDismiss}
|
|
37
48
|
></ngc-icon-button>
|
|
38
49
|
</div>
|
|
39
|
-
`:null}handleDismiss(){this.dispatchEvent(new CustomEvent("dismiss",{bubbles:!0,composed:!0,detail:{id:this.id}}))}};
|
|
50
|
+
`:null}handleDismiss(){this.dispatchEvent(new CustomEvent("dismiss",{bubbles:!0,composed:!0,detail:{id:this.id}}))}};n.styles=[o(h),o(d),o(b)];n=f([g("ngc-toast")],n);export{n as NgcToast};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const A=
|
|
1
|
+
const A=2,T=300,_=350;export{A as MAX_TOAST_ACTIONS,T as TOAST_ANIMATION_DURATION_MS,_ as TOAST_CLOSE_DIALOG_DELAY_MS};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import"../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import{LitElement as
|
|
1
|
+
import"../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import"../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import{LitElement as y}from"../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{property as i}from"../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";import{msg as m}from"../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/install.js";import{localized as c}from"../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/internal/localized-decorator.js";import"../../node_modules/.pnpm/@lit_localize@0.12.2/node_modules/@lit/localize/init/runtime.js";import{StripTitleFromHostMixin as b}from"../../utils/mixins/strip-title-from-host-mixin.js";var f=Object.defineProperty,u=Object.getOwnPropertyDescriptor,e=(n,r,p,s)=>{for(var o=s>1?void 0:s?u(r,p):r,a=n.length-1,l;a>=0;a--)(l=n[a])&&(o=(s?l(r,p,o):l(o))||o);return s&&o&&f(r,p,o),o};let t=class extends b(y){constructor(){super(...arguments),this.id="",this.variant="info",this.dismissible=!1,this.sticky=!1,this.exitIconLabel=m("Close Notification"),this.statusIconLabel="",this.title="",this.subtitle="",this.actions=[]}};e([i({type:String})],t.prototype,"id",2);e([i()],t.prototype,"variant",2);e([i({type:Boolean})],t.prototype,"dismissible",2);e([i({type:Boolean})],t.prototype,"sticky",2);e([i({type:String,attribute:"exit-icon-label"})],t.prototype,"exitIconLabel",2);e([i({type:String,attribute:"status-icon-label"})],t.prototype,"statusIconLabel",2);e([i({type:String,attribute:!1})],t.prototype,"title",2);e([i({type:String})],t.prototype,"subtitle",2);e([i({type:Array,attribute:!1})],t.prototype,"actions",2);t=e([c()],t);export{t as NjcToast};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{html as l}from"../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import{LitElement as c}from"../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{property as f}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";import{state as u}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js";import{customElement as h}from"../../../utils/decorators/custom-element-decorator.js";import _ from"../../../packages/web-components/src/components/toast-container/gator/toast-container.gator.scss.js";import
|
|
1
|
+
import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{html as l}from"../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import{LitElement as c}from"../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{property as f}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";import{state as u}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js";import{customElement as h}from"../../../utils/decorators/custom-element-decorator.js";import _ from"../../../packages/web-components/src/components/toast-container/gator/toast-container.gator.scss.js";import $ from"../../../packages/styles/dist/tokens/primitive.tokens.css.js";import T from"../../../packages/styles/dist/tokens/semantic.tokens.css.js";import{repeat as b}from"../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/repeat.js";import{ifDefined as n}from"../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/if-defined.js";import{TOAST_ANIMATION_DURATION_MS as g}from"../../toast/gator/toast-constants.js";import"../../toast/gator/base/toast.gator.js";import{unsafeCSS as m}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";var v=Object.defineProperty,y=Object.getOwnPropertyDescriptor,p=(t,r,o,s)=>{for(var i=s>1?void 0:s?y(r,o):r,e=t.length-1,d;e>=0;e--)(d=t[e])&&(i=(s?d(r,o,i):d(i))||i);return s&&i&&v(r,o,i),i};let a=class extends c{constructor(){super(...arguments),this.toasts=[],this._renderedToasts=[]}updated(t){if(t.has("toasts")){const r=this.toasts.filter(e=>e.id?!0:(console.warn("[ngc-toast-container] A toast was provided without a required `id` property and will be ignored.",e),!1)),o=new Set(r.map(e=>e.id)),s=[];this._renderedToasts.forEach(e=>{o.has(e.id)?s.push(e):s.push({...e,initiateRemoval:!0})});const i=new Set(this._renderedToasts.map(e=>e.id));r.forEach(e=>{i.has(e.id)||s.push(e)}),this._renderedToasts=s}}handleAnimationEnd(t){if(t.animationName==="toast-fade-out"){const o=t.target.getAttribute("id");o&&(this._renderedToasts=this._renderedToasts.filter(s=>s.id!==o))}}render(){return l`
|
|
2
2
|
<section
|
|
3
3
|
class="gator-toast-container"
|
|
4
4
|
aria-live="polite"
|
|
@@ -15,8 +15,9 @@ import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit
|
|
|
15
15
|
status-icon-label="${n(t.statusIconLabel)}"
|
|
16
16
|
?sticky="${t.sticky}"
|
|
17
17
|
?dismissible="${t.dismissible}"
|
|
18
|
+
.actions=${t.actions??[]}
|
|
18
19
|
@animationend=${this.handleAnimationEnd}
|
|
19
20
|
></ngc-toast>
|
|
20
21
|
`)}
|
|
21
22
|
</section>
|
|
22
|
-
`}};a.styles=[m(_),m(
|
|
23
|
+
`}};a.styles=[m(_),m($),m(T)];p([f({type:Array})],a.prototype,"toasts",2);p([u()],a.prototype,"_renderedToasts",2);a=p([h("ngc-toast-container")],a);export{a as NgcToastContainer};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{html as h}from"../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import{LitElement as
|
|
1
|
+
import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";import{html as h}from"../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/lit-html.js";import{LitElement as _}from"../../../node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js";import{property as p}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";import{state as d}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js";import{customElement as g}from"../../../utils/decorators/custom-element-decorator.js";import f from"../../../packages/web-components/src/components/toaster/gator/toaster.gator.scss.js";import T from"../../../packages/styles/dist/tokens/primitive.tokens.css.js";import D from"../../../packages/styles/dist/tokens/semantic.tokens.css.js";import"../../toast-container/gator/toast-container.gator.js";import{createRef as O,ref as v}from"../../../node_modules/.pnpm/lit-html@3.3.2/node_modules/lit-html/directives/ref.js";import{MAX_TOAST_ACTIONS as c,TOAST_CLOSE_DIALOG_DELAY_MS as m}from"../../toast/gator/toast-constants.js";import{unsafeCSS as u}from"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";var y=Object.defineProperty,S=Object.getOwnPropertyDescriptor,r=(o,t,e,a)=>{for(var i=a>1?void 0:a?S(t,e):t,l=o.length-1,n;l>=0;l--)(n=o[l])&&(i=(a?n(t,e,i):n(i))||i);return a&&i&&y(t,e,i),i};let s=class extends _{constructor(){super(...arguments),this.position="top-right",this.defaultToastOptions={},this._toasts=[],this._dialogOpen=!1,this._dialogRef=O(),this._closeDialogTimeout=null}addToast(o){const t=crypto.randomUUID(),e=o.duration??this.defaultToastOptions?.duration??s.defaultDuration,a=!e||e===0;let i=o.actions;i&&i.length>c&&(console.warn(`[ngc-toaster] Toast actions are limited to ${c}. Extra actions were ignored.`),i=i.slice(0,c));const l={...this.defaultToastOptions,...o,id:t,sticky:a,actions:i};return this._toasts=[...this._toasts,l],this._closeDialogTimeout!==null&&(clearTimeout(this._closeDialogTimeout),this._closeDialogTimeout=null),this._dialogOpen=!0,a||setTimeout(()=>{this.removeToast(t)},e),t}removeToast(o){this._toasts=this._toasts.filter(t=>t.id!==o),this._toasts.length===0&&(this._closeDialogTimeout!==null&&clearTimeout(this._closeDialogTimeout),this._closeDialogTimeout=window.setTimeout(()=>{this._dialogOpen=!1,this._closeDialogTimeout=null},m))}clearAll(){this._toasts=[],this._closeDialogTimeout!==null&&clearTimeout(this._closeDialogTimeout),this._closeDialogTimeout=window.setTimeout(()=>{this._dialogOpen=!1,this._closeDialogTimeout=null},m)}handleToastDismiss(o){const t=o.detail.id;t&&this.removeToast(t)}updated(o){if(super.updated(o),o.has("_dialogOpen")){const t=this._dialogRef.value;if(!t)return;this._dialogOpen&&!t.open?t.show():!this._dialogOpen&&t.open&&t.close()}}disconnectedCallback(){super.disconnectedCallback(),this._closeDialogTimeout!==null&&(clearTimeout(this._closeDialogTimeout),this._closeDialogTimeout=null)}render(){return h`
|
|
2
2
|
<dialog
|
|
3
|
-
${
|
|
3
|
+
${v(this._dialogRef)}
|
|
4
4
|
class="gator-toaster-dialog"
|
|
5
5
|
@click=${this.preventDialogClose}
|
|
6
6
|
>
|
|
@@ -11,4 +11,4 @@ import"../../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit
|
|
|
11
11
|
></ngc-toast-container>
|
|
12
12
|
</div>
|
|
13
13
|
</dialog>
|
|
14
|
-
`}preventDialogClose(o){o.stopPropagation()}};
|
|
14
|
+
`}preventDialogClose(o){o.stopPropagation()}};s.styles=[u(f),u(T),u(D)];s.defaultDuration=5e3;r([p({type:String})],s.prototype,"position",2);r([p({type:Object,attribute:"default-toast-options"})],s.prototype,"defaultToastOptions",2);r([d()],s.prototype,"_toasts",2);r([d()],s.prototype,"_dialogOpen",2);s=r([g("ngc-toaster")],s);export{s as NgcToaster};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var o="storybook/actions",t=`${o}/action-event`;export{o as ADDON_ID,t as EVENT_ID};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _=Object.create,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty,f=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(r,t)=>(typeof require<"u"?require:r)[t]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),s=(e,r)=>function(){return r||(0,e[n(e)[0]])((r={exports:{}}).exports,r),r.exports},O=(e,r)=>{for(var t in r)u(e,t,{get:r[t],enumerable:!0})},c=(e,r,t,p)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of n(r))!y.call(e,o)&&o!==t&&u(e,o,{get:()=>r[o],enumerable:!(p=a(r,o))||p.enumerable});return e},P=(e,r,t)=>(t=e!=null?_(i(e)):{},c(r||!e||!e.__esModule?u(t,"default",{value:e,enumerable:!0}):t,e));export{s as __commonJS,O as __export,f as __require,P as __toESM};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{EVENT_ID as O}from"./chunk-6XWLIJQL.js";import{ImplicitActionsDuringRendering as u}from"./chunk-POMIZRJL.js";import{global as g}from"../../../../../@storybook_global@5.0.0/node_modules/@storybook/global/dist/index.js";import{addons as b}from"./chunk-SZQXB3JV.js";var s={depth:10,clearOnStoryChange:!0,limit:50},h=(e,r)=>{let t=Object.getPrototypeOf(e);return!t||r(t)?t:h(t,r)},E=e=>!!(typeof e=="object"&&e&&h(e,r=>/^Synthetic(?:Base)?Event$/.test(r.constructor.name))&&typeof e.persist=="function"),v=e=>{if(E(e)){let r=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));r.persist();let t=Object.getOwnPropertyDescriptor(r,"view"),i=t?.value;return typeof i=="object"&&i?.constructor.name==="Window"&&Object.defineProperty(r,"view",{...t,value:Object.create(i.constructor.prototype)}),r}return e};function w(e,r={}){let t={...s,...r},i=function(...n){if(r.implicit){let a=("__STORYBOOK_PREVIEW__"in g?g.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(c=>c.phase==="playing"||c.phase==="rendering");if(a){let c=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,l=new u({phase:a.phase,name:e,deprecated:c});if(c)console.warn(l);else throw l}}let o=b.getChannel(),f=Date.now().toString(36)+Math.random().toString(36).substring(2),d=5,p=n.map(v),m=n.length>1?p:p[0],y={id:f,count:0,data:{name:e,args:m},options:{...t,maxDepth:d+(t.depth||3)}};o.emit(O,y)};return i.isAction=!0,i.implicit=r.implicit,i}var D=(...e)=>{let r=s,t=e;t.length===1&&Array.isArray(t[0])&&([t]=t),t.length!==1&&typeof t[t.length-1]!="string"&&(r={...s,...t.pop()});let i=t[0];(t.length!==1||typeof i=="string")&&(i={},t.forEach(o=>{i[o]=o}));let n={};return Object.keys(i).forEach(o=>{n[o]=w(i[o],r)}),n};export{w as action,D as actions,s as config};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
function s({code:e,category:r}){let o=String(e).padStart(4,"0");return`SB_${r}_${o}`}function a(e){if(/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(e))return e;try{let r=new URL(e);return r.searchParams.set("ref","error"),r.toString()}catch{return e}}var l=class n extends Error{constructor(r){super(n.getFullMessage(r)),this.data={},this.fromStorybook=!0,this.isHandledError=!1,this.subErrors=[],this.category=r.category,this.documentation=r.documentation??!1,this.code=r.code,this.isHandledError=r.isHandledError??!1,this.name=r.name,this.subErrors=r.subErrors??[]}get fullErrorCode(){return s({code:this.code,category:this.category})}get name(){let r=this._name||this.constructor.name;return`${this.fullErrorCode} (${r})`}set name(r){this._name=r}static getFullMessage({documentation:r,code:o,category:i,message:d}){let t;return r===!0?t=`https://storybook.js.org/error/${s({code:o,category:i})}?ref=error`:typeof r=="string"?t=a(r):Array.isArray(r)&&(t=`
|
|
2
|
+
${r.map(h=>` - ${a(h)}`).join(`
|
|
3
|
+
`)}`),`${d}${t!=null?`
|
|
4
|
+
|
|
5
|
+
More info: ${t}
|
|
6
|
+
`:""}`}};export{l as StorybookError};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{StorybookError as e}from"./chunk-JVRDBUUP.js";import{dedent as t}from"./chunk-3LY4VQVK.js";var n=class extends e{constructor(o){super({name:"ImplicitActionsDuringRendering",category:"PREVIEW_API",code:2,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function",message:t`
|
|
2
|
+
We detected that you use an implicit action arg while ${o.phase} of your story.
|
|
3
|
+
${o.deprecated?`
|
|
4
|
+
This is deprecated and won't work in Storybook 8 anymore.
|
|
5
|
+
`:""}
|
|
6
|
+
Please provide an explicit spy to your args like this:
|
|
7
|
+
import { fn } from 'storybook/test';
|
|
8
|
+
...
|
|
9
|
+
args: {
|
|
10
|
+
${o.name}: fn()
|
|
11
|
+
}`}),this.data=o}};export{n as ImplicitActionsDuringRendering};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{require_main as m}from"./chunk-XLJZ7AOP.js";import{require_ansi_to_html as y}from"./chunk-V2VKKSMQ.js";import{require_memoizerific as f}from"./chunk-ZCFV7BZB.js";import{dedent as k}from"./chunk-3LY4VQVK.js";import{__toESM as u}from"./chunk-A242L54C.js";import{global as s}from"../../../../../@storybook_global@5.0.0/node_modules/@storybook/global/dist/index.js";import{Channel as v}from"../channels/index.js";import{logger as d}from"../client-logger/index.js";function w(){let e={setHandler:()=>{},send:()=>{}};return new v({transport:e})}var b=class{constructor(){this.getChannel=()=>{if(!this.channel){let e=w();return this.setChannel(e),e}return this.channel},this.ready=()=>this.promise,this.hasChannel=()=>!!this.channel,this.setChannel=e=>{this.channel=e,this.resolve()},this.promise=new Promise(e=>{this.resolve=()=>e(this.getChannel())})}},c="__STORYBOOK_ADDONS_PREVIEW";function S(){return s[c]||(s[c]=new b),s[c]}var q=S(),E=(e,o)=>e.length===o.length&&e.every((t,n)=>t===o[n]),p=()=>new Error(`Storybook preview hooks can only be called inside decorators and story functions.
|
|
2
|
+
|
|
3
|
+
When combining Storybook hooks (e.g. useArgs) with framework hooks (e.g. React's useState, useEffect, useRef) in the same render function, use Storybook's equivalents from 'storybook/preview-api' instead: useState, useEffect, useRef, useMemo, useCallback, useReducer.`);function _(){return s.STORYBOOK_HOOKS_CONTEXT||null}function g(){let e=_();if(e==null)throw p();return e}function O(e,o,t){let n=g();if(n.currentPhase==="MOUNT"){t!=null&&!Array.isArray(t)&&d.warn(`${e} received a final argument that is not an array (instead, received ${t}). When specified, the final argument must be an array.`);let r={name:e,deps:t};return n.currentHooks.push(r),o(r),r}if(n.currentPhase==="UPDATE"){let r=n.getNextHook();if(r==null)throw new Error("Rendered more hooks than during the previous render.");return r.name!==e&&d.warn(`Storybook has detected a change in the order of Hooks${n.currentDecoratorName?` called by ${n.currentDecoratorName}`:""}. This will lead to bugs and errors if not fixed.`),t!=null&&r.deps==null&&d.warn(`${e} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),t!=null&&r.deps!=null&&t.length!==r.deps.length&&d.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant.
|
|
4
|
+
Previous: ${r.deps}
|
|
5
|
+
Incoming: ${t}`),(t==null||r.deps==null||!E(t,r.deps))&&(o(r),r.deps=t),r}throw p()}function C(e,o,t){let{memoizedState:n}=O(e,r=>{r.memoizedState=o()},t);return n}function F(e,o){let t=g(),n=C("useEffect",()=>({create:e}),o);t.currentEffects.includes(n)||t.currentEffects.push(n)}var I=({name:e,parameterName:o,wrapper:t,skipIfNoParametersOrOptions:n=!1})=>{let r=a=>(i,l)=>{let h=l.parameters&&l.parameters[o];return h&&h.disable||n&&!a&&!h?i(l):t(i,l,{options:a,parameters:h})};return(...a)=>typeof a[0]=="function"?r()(...a):(...i)=>{if(i.length>1)return a.length>1?r(a)(...i):r(...a)(...i);throw new Error(`Passing stories directly into ${e}() is not allowed,
|
|
6
|
+
instead use addDecorator(${e}) and pass options with the '${o}' parameter`)}};u(f(),1);var T=u(f(),1);(0,T.default)(1)(e=>Object.values(e).reduce((o,t)=>(o[t.importPath]=o[t.importPath]||t,o),{}));k`
|
|
7
|
+
CSF .story annotations deprecated; annotate story functions directly:
|
|
8
|
+
- StoryFn.story.name => StoryFn.storyName
|
|
9
|
+
- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
|
|
10
|
+
See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
|
|
11
|
+
`;var{fetch:K}=s;u(m(),1);u(m(),1);var{history:W,document:Y}=s,$=u(y(),1);u(m(),1);var{document:j}=s;new $.default({escapeXML:!0});var{document:x}=s;export{q as addons,I as makeDecorator,w as mockChannel,F as useEffect};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{__commonJS as S}from"./chunk-A242L54C.js";var Y=S({"../../node_modules/entities/lib/maps/entities.json"(t,c){c.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
2
|
+
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}}}),cu=S({"../../node_modules/entities/lib/maps/legacy.json"(t,c){c.exports={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}}}),Z=S({"../../node_modules/entities/lib/maps/xml.json"(t,c){c.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}}),lu=S({"../../node_modules/entities/lib/maps/decode.json"(t,c){c.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}}),su=S({"../../node_modules/entities/lib/decode_codepoint.js"(t){var c=t&&t.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(t,"__esModule",{value:!0});var C=c(lu()),L=String.fromCodePoint||function(i){var A="";return i>65535&&(i-=65536,A+=String.fromCharCode(i>>>10&1023|55296),i=56320|i&1023),A+=String.fromCharCode(i),A};function T(i){return i>=55296&&i<=57343||i>1114111?"�":(i in C.default&&(i=C.default[i]),L(i))}t.default=T}}),z=S({"../../node_modules/entities/lib/decode.js"(t){var c=t&&t.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeHTML=t.decodeHTMLStrict=t.decodeXML=void 0;var C=c(Y()),L=c(cu()),T=c(Z()),i=c(su()),A=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;t.decodeXML=g(T.default),t.decodeHTMLStrict=g(C.default);function g(f){var l=D(f);return function(d){return String(d).replace(A,l)}}var b=function(f,l){return f<l?1:-1};t.decodeHTML=(function(){for(var f=Object.keys(L.default).sort(b),l=Object.keys(C.default).sort(b),d=0,H=0;d<l.length;d++)f[H]===l[d]?(l[d]+=";?",H++):l[d]+=";";var R=new RegExp("&(?:"+l.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),N=D(C.default);function _(F){return F.substr(-1)!==";"&&(F+=";"),N(F)}return function(F){return String(F).replace(R,_)}})();function D(f){return function(l){if(l.charAt(1)==="#"){var d=l.charAt(2);return d==="X"||d==="x"?i.default(parseInt(l.substr(3),16)):i.default(parseInt(l.substr(2),10))}return f[l.slice(1,-1)]||l}}}}),J=S({"../../node_modules/entities/lib/encode.js"(t){var c=t&&t.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0}),t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=void 0;var C=c(Z()),L=b(C.default),T=D(L);t.encodeXML=F(L);var i=c(Y()),A=b(i.default),g=D(A);t.encodeHTML=H(A,g),t.encodeNonAsciiHTML=F(A);function b(n){return Object.keys(n).sort().reduce(function(p,m){return p[n[m]]="&"+m+";",p},{})}function D(n){for(var p=[],m=[],M=0,x=Object.keys(n);M<x.length;M++){var k=x[M];k.length===1?p.push("\\"+k):m.push(k)}p.sort();for(var v=0;v<p.length-1;v++){for(var q=v;q<p.length-1&&p[q].charCodeAt(1)+1===p[q+1].charCodeAt(1);)q+=1;var U=1+q-v;U<3||p.splice(v,U,p[v]+"-"+p[q])}return m.unshift("["+p.join("")+"]"),new RegExp(m.join("|"),"g")}var f=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,l=String.prototype.codePointAt!=null?(function(n){return n.codePointAt(0)}):(function(n){return(n.charCodeAt(0)-55296)*1024+n.charCodeAt(1)-56320+65536});function d(n){return"&#x"+(n.length>1?l(n):n.charCodeAt(0)).toString(16).toUpperCase()+";"}function H(n,p){return function(m){return m.replace(p,function(M){return n[M]}).replace(f,d)}}var R=new RegExp(T.source+"|"+f.source,"g");function N(n){return n.replace(R,d)}t.escape=N;function _(n){return n.replace(T,d)}t.escapeUTF8=_;function F(n){return function(p){return p.replace(R,function(m){return n[m]||d(m)})}}}}),Au=S({"../../node_modules/entities/lib/index.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var c=z(),C=J();function L(b,D){return(!D||D<=0?c.decodeXML:c.decodeHTML)(b)}t.decode=L;function T(b,D){return(!D||D<=0?c.decodeXML:c.decodeHTMLStrict)(b)}t.decodeStrict=T;function i(b,D){return(!D||D<=0?C.encodeXML:C.encodeHTML)(b)}t.encode=i;var A=J();Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return A.encodeXML}}),Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return A.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return A.encodeNonAsciiHTML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return A.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return A.escapeUTF8}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return A.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return A.encodeHTML}});var g=z();Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return g.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return g.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return g.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return g.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return g.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return g.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return g.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return g.decodeXML}})}}),du=S({"../../node_modules/ansi-to-html/lib/ansi_to_html.js"(t,c){function C(u,r){if(!(u instanceof r))throw new TypeError("Cannot call a class as a function")}function L(u,r){for(var e=0;e<r.length;e++){var a=r[e];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(u,a.key,a)}}function T(u,r,e){return r&&L(u.prototype,r),u}function i(u,r){var e=typeof Symbol<"u"&&u[Symbol.iterator]||u["@@iterator"];if(!e){if(Array.isArray(u)||(e=A(u))||r){e&&(u=e);var a=0,o=function(){};return{s:o,n:function(){return a>=u.length?{done:!0}:{done:!1,value:u[a++]}},e:function(E){throw E},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,B=!1,h;return{s:function(){e=e.call(u)},n:function(){var E=e.next();return s=E.done,E},e:function(E){B=!0,h=E},f:function(){try{!s&&e.return!=null&&e.return()}finally{if(B)throw h}}}}function A(u,r){if(u){if(typeof u=="string")return g(u,r);var e=Object.prototype.toString.call(u).slice(8,-1);if(e==="Object"&&u.constructor&&(e=u.constructor.name),e==="Map"||e==="Set")return Array.from(u);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return g(u,r)}}function g(u,r){(r==null||r>u.length)&&(r=u.length);for(var e=0,a=new Array(r);e<r;e++)a[e]=u[e];return a}var b=Au(),D={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:f()};function f(){var u={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return n(0,5).forEach(function(r){n(0,5).forEach(function(e){n(0,5).forEach(function(a){return l(r,e,a,u)})})}),n(0,23).forEach(function(r){var e=r+232,a=d(r*10+8);u[e]="#"+a+a+a}),u}function l(u,r,e,a){var o=16+u*36+r*6+e,s=u>0?u*40+55:0,B=r>0?r*40+55:0,h=e>0?e*40+55:0;a[o]=H([s,B,h])}function d(u){for(var r=u.toString(16);r.length<2;)r="0"+r;return r}function H(u){var r=[],e=i(u),a;try{for(e.s();!(a=e.n()).done;){var o=a.value;r.push(d(o))}}catch(s){e.e(s)}finally{e.f()}return"#"+r.join("")}function R(u,r,e,a){var o;return r==="text"?o=M(e,a):r==="display"?o=_(u,e,a):r==="xterm256Foreground"?o=v(u,a.colors[e]):r==="xterm256Background"?o=q(u,a.colors[e]):r==="rgb"&&(o=N(u,e)),o}function N(u,r){r=r.substring(2).slice(0,-1);var e=+r.substr(0,2),a=r.substring(5).split(";"),o=a.map(function(s){return("0"+Number(s).toString(16)).substr(-2)}).join("");return k(u,(e===38?"color:#":"background-color:#")+o)}function _(u,r,e){r=parseInt(r,10);var a={"-1":function(){return"<br/>"},0:function(){return u.length&&F(u)},1:function(){return x(u,"b")},3:function(){return x(u,"i")},4:function(){return x(u,"u")},8:function(){return k(u,"display:none")},9:function(){return x(u,"strike")},22:function(){return k(u,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return U(u,"i")},24:function(){return U(u,"u")},39:function(){return v(u,e.fg)},49:function(){return q(u,e.bg)},53:function(){return k(u,"text-decoration:overline")}},o;return a[r]?o=a[r]():4<r&&r<7?o=x(u,"blink"):29<r&&r<38?o=v(u,e.colors[r-30]):39<r&&r<48?o=q(u,e.colors[r-40]):89<r&&r<98?o=v(u,e.colors[8+(r-90)]):99<r&&r<108&&(o=q(u,e.colors[8+(r-100)])),o}function F(u){var r=u.slice(0);return u.length=0,r.reverse().map(function(e){return"</"+e+">"}).join("")}function n(u,r){for(var e=[],a=u;a<=r;a++)e.push(a);return e}function p(u){return function(r){return(u===null||r.category!==u)&&u!=="all"}}function m(u){u=parseInt(u,10);var r=null;return u===0?r="all":u===1?r="bold":2<u&&u<5?r="underline":4<u&&u<7?r="blink":u===8?r="hide":u===9?r="strike":29<u&&u<38||u===39||89<u&&u<98?r="foreground-color":(39<u&&u<48||u===49||99<u&&u<108)&&(r="background-color"),r}function M(u,r){return r.escapeXML?b.encodeXML(u):u}function x(u,r,e){return e||(e=""),u.push(r),"<".concat(r).concat(e?' style="'.concat(e,'"'):"",">")}function k(u,r){return x(u,"span",r)}function v(u,r){return x(u,"span","color:"+r)}function q(u,r){return x(u,"span","background-color:"+r)}function U(u,r){var e;if(u.slice(-1)[0]===r&&(e=u.pop()),e)return"</"+r+">"}function K(u,r,e){var a=!1,o=3;function s(){return""}function B(w,y){return e("xterm256Foreground",y),""}function h(w,y){return e("xterm256Background",y),""}function E(w){return r.newline?e("display",-1):e("text",w),""}function $(w,y){a=!0,y.trim().length===0&&(y="0"),y=y.trimRight(";").split(";");var O=i(y),X;try{for(O.s();!(X=O.n()).done;){var ou=X.value;e("display",ou)}}catch(iu){O.e(iu)}finally{O.f()}return""}function uu(w){return e("text",w),""}function ru(w){return e("rgb",w),""}var I=[{pattern:/^\x08+/,sub:s},{pattern:/^\x1b\[[012]?K/,sub:s},{pattern:/^\x1b\[\(B/,sub:s},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:ru},{pattern:/^\x1b\[38;5;(\d+)m/,sub:B},{pattern:/^\x1b\[48;5;(\d+)m/,sub:h},{pattern:/^\n/,sub:E},{pattern:/^\r+\n/,sub:E},{pattern:/^\r/,sub:E},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:$},{pattern:/^\x1b\[\d?J/,sub:s},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:s},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:s},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:uu}];function eu(w,y){y>o&&a||(a=!1,u=u.replace(w.pattern,w.sub))}var P=[],tu=u,j=tu.length;u:for(;j>0;){for(var V=0,G=0,au=I.length;G<au;V=++G){var nu=I[V];if(eu(nu,V),u.length!==j){j=u.length;continue u}}if(u.length===j)break;P.push(0),j=u.length}return P}function Q(u,r,e){return r!=="text"&&(u=u.filter(p(m(e))),u.push({token:r,data:e,category:m(e)})),u}var W=(function(){function u(r){C(this,u),r=r||{},r.colors&&(r.colors=Object.assign({},D.colors,r.colors)),this.options=Object.assign({},D,r),this.stack=[],this.stickyStack=[]}return T(u,[{key:"toHtml",value:function(r){var e=this;r=typeof r=="string"?[r]:r;var a=this.stack,o=this.options,s=[];return this.stickyStack.forEach(function(B){var h=R(a,B.token,B.data,o);h&&s.push(h)}),K(r.join(""),o,function(B,h){var E=R(a,B,h,o);E&&s.push(E),o.stream&&(e.stickyStack=Q(e.stickyStack,B,h))}),a.length&&s.push(F(a)),s.join("")}}]),u})();c.exports=W}});export{du as require_ansi_to_html};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__commonJS as N}from"./chunk-A242L54C.js";var X=N({"../../node_modules/picoquery/lib/string-util.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.encodeString=b;var a=Array.from({length:256},(d,i)=>"%"+((i<16?"0":"")+i.toString(16)).toUpperCase()),f=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function b(d){let i=d.length;if(i===0)return"";let o="",r=0,e=0;e:for(;e<i;e++){let n=d.charCodeAt(e);for(;n<128;){if(f[n]!==1&&(r<e&&(o+=d.slice(r,e)),r=e+1,o+=a[n]),++e===i)break e;n=d.charCodeAt(e)}if(r<e&&(o+=d.slice(r,e)),n<2048){r=e+1,o+=a[192|n>>6]+a[128|n&63];continue}if(n<55296||n>=57344){r=e+1,o+=a[224|n>>12]+a[128|n>>6&63]+a[128|n&63];continue}if(++e,e>=i)throw new Error("URI malformed");let u=d.charCodeAt(e)&1023;r=e+1,n=65536+((n&1023)<<10|u),o+=a[240|n>>18]+a[128|n>>12&63]+a[128|n>>6&63]+a[128|n&63]}return r===0?d:r<i?o+d.slice(r):o}}}),J=N({"../../node_modules/picoquery/lib/shared.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultOptions=t.defaultShouldSerializeObject=t.defaultValueSerializer=void 0;var a=X(),f=i=>{switch(typeof i){case"string":return(0,a.encodeString)(i);case"bigint":case"boolean":return""+i;case"number":if(Number.isFinite(i))return i<1e21?""+i:(0,a.encodeString)(""+i);break}return i instanceof Date?(0,a.encodeString)(i.toISOString()):""};t.defaultValueSerializer=f;var b=i=>i instanceof Date;t.defaultShouldSerializeObject=b;var d=i=>i;t.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:d,valueSerializer:t.defaultValueSerializer,keyDeserializer:d,shouldSerializeObject:t.defaultShouldSerializeObject}}}),G=N({"../../node_modules/picoquery/lib/object-util.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.getDeepObject=d,t.stringifyObject=u;var a=J(),f=X();function b(l){return l==="__proto__"||l==="constructor"||l==="prototype"}function d(l,y,g,h,O){if(b(y))return l;let D=l[y];return typeof D=="object"&&D!==null?D:!h&&(O||typeof g=="number"||typeof g=="string"&&g*0===0&&g.indexOf(".")===-1)?l[y]=[]:l[y]={}}var i=20,o="[]",r="[",e="]",n=".";function u(l,y,g=0,h,O){let{nestingSyntax:D=a.defaultOptions.nestingSyntax,arrayRepeat:C=a.defaultOptions.arrayRepeat,arrayRepeatSyntax:A=a.defaultOptions.arrayRepeatSyntax,nesting:T=a.defaultOptions.nesting,delimiter:z=a.defaultOptions.delimiter,valueSerializer:V=a.defaultOptions.valueSerializer,shouldSerializeObject:B=a.defaultOptions.shouldSerializeObject}=y,P=typeof z=="number"?String.fromCharCode(z):z,R=O===!0&&C,S=D==="dot"||D==="js"&&!O;if(g>i)return"";let _="",p=!0,m=!1;for(let s in l){let v=l[s];if(v===void 0)continue;let c;h?(c=h,R?A==="bracket"&&(c+=o):S?(c+=n,c+=s):(c+=r,c+=s,c+=e)):c=s,p||(_+=P),typeof v=="object"&&v!==null&&!B(v)?(m=v.pop!==void 0,(T||C&&m)&&(_+=u(v,y,g+1,c,m))):(_+=(0,f.encodeString)(c),_+="=",_+=V(v,s)),p&&(p=!1)}return _}}}),Q=N({"../../node_modules/picoquery/lib/decode-uri-component.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeURIComponent=d;var a=12,f=0,b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function d(r){let e=r.indexOf("%");if(e===-1)return r;let n=r.length,u="",l=0,y=0,g=e,h=a;for(;e>-1&&e<n;){let O=o(r[e+1],4),D=o(r[e+2],0),C=O|D,A=b[C];if(h=b[256+h+A],y=y<<6|C&b[364+A],h===a)u+=r.slice(l,g),u+=y<=65535?String.fromCharCode(y):String.fromCharCode(55232+(y>>10),56320+(y&1023)),y=0,l=e+3,e=g=r.indexOf("%",l);else{if(h===f)return null;if(e+=3,e<n&&r.charCodeAt(e)===37)continue;return null}}return u+r.slice(l)}var i={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function o(r,e){let n=i[r];return n===void 0?255:n<<e}}}),W=N({"../../node_modules/picoquery/lib/parse.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.numberValueDeserializer=t.numberKeyDeserializer=void 0,t.parse=n;var a=G(),f=J(),b=Q(),d=u=>{let l=Number(u);return Number.isNaN(l)?u:l};t.numberKeyDeserializer=d;var i=u=>{let l=Number(u);return Number.isNaN(l)?u:l};t.numberValueDeserializer=i;var o=/\+/g,r=function(){};r.prototype=Object.create(null);function e(u,l,y,g,h){let O=u.substring(l,y);return g&&(O=O.replace(o," ")),h&&(O=(0,b.decodeURIComponent)(O)||O),O}function n(u,l){let{valueDeserializer:y=f.defaultOptions.valueDeserializer,keyDeserializer:g=f.defaultOptions.keyDeserializer,arrayRepeatSyntax:h=f.defaultOptions.arrayRepeatSyntax,nesting:O=f.defaultOptions.nesting,arrayRepeat:D=f.defaultOptions.arrayRepeat,nestingSyntax:C=f.defaultOptions.nestingSyntax,delimiter:A=f.defaultOptions.delimiter}=l??{},T=typeof A=="string"?A.charCodeAt(0):A,z=C==="js",V=new r;if(typeof u!="string")return V;let B=u.length,P="",R=-1,S=-1,_=-1,p=V,m,s="",v="",c=!1,k=!1,q=!1,H=!1,w=!1,K=!1,I=0,U=-1,E=-1,L=-1;for(let j=0;j<B+1;j++){if(I=j!==B?u.charCodeAt(j):T,I===T){if(K=S>R,K||(S=j),_!==S-1&&(v=e(u,_+1,U>-1?U:S,q,c),s=g(v),m!==void 0&&(p=(0,a.getDeepObject)(p,m,s,z&&w,void 0))),K||s!==""){K&&(P=u.slice(S+1,j),H&&(P=P.replace(o," ")),k&&(P=(0,b.decodeURIComponent)(P)||P));let M=y(P,s);if(D){let F=p[s];F===void 0?U>-1?p[s]=[M]:p[s]=M:F.pop?F.push(M):p[s]=[F,M]}else p[s]=M}P="",R=j,S=j,c=!1,k=!1,q=!1,H=!1,w=!1,U=-1,_=j,p=V,m=void 0,s=""}else I===93?(D&&h==="bracket"&&L===91&&(U=E),O&&(C==="index"||z)&&S<=R&&(_!==E&&(v=e(u,_+1,j,q,c),s=g(v),m!==void 0&&(p=(0,a.getDeepObject)(p,m,s,void 0,void 0)),m=s,q=!1,c=!1),_=j,w=!1)):I===46?O&&(C==="dot"||z)&&S<=R&&(_!==E&&(v=e(u,_+1,j,q,c),s=g(v),m!==void 0&&(p=(0,a.getDeepObject)(p,m,s,z)),m=s,q=!1,c=!1),w=!0,_=j):I===91?O&&(C==="index"||z)&&S<=R&&(_!==E&&(v=e(u,_+1,j,q,c),s=g(v),z&&m!==void 0&&(p=(0,a.getDeepObject)(p,m,s,z)),m=s,q=!1,c=!1,w=!1),_=j):I===61?S<=R?S=j:k=!0:I===43?S>R?H=!0:q=!0:I===37&&(S>R?k=!0:c=!0);E=j,L=I}return V}}}),Y=N({"../../node_modules/picoquery/lib/stringify.js"(t){Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=f;var a=G();function f(b,d){if(b===null||typeof b!="object")return"";let i=d??{};return(0,a.stringifyObject)(b,i)}}}),x=N({"../../node_modules/picoquery/lib/main.js"(t){var a=t&&t.__createBinding||(Object.create?(function(i,o,r,e){e===void 0&&(e=r);var n=Object.getOwnPropertyDescriptor(o,r);(!n||("get"in n?!o.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return o[r]}}),Object.defineProperty(i,e,n)}):(function(i,o,r,e){e===void 0&&(e=r),i[e]=o[r]})),f=t&&t.__exportStar||function(i,o){for(var r in i)r!=="default"&&!Object.prototype.hasOwnProperty.call(o,r)&&a(o,i,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=t.parse=void 0;var b=W();Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return b.parse}});var d=Y();Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),f(J(),t)}});export{x as require_main};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__commonJS as z,__require as y}from"./chunk-A242L54C.js";var E=z({"../../node_modules/memoizerific/memoizerific.js"(w,v){(function(l){if(typeof w=="object"&&typeof v<"u")v.exports=l();else if(typeof define=="function"&&define.amd)define([],l);else{var u;typeof window<"u"?u=window:typeof global<"u"?u=global:typeof self<"u"?u=self:u=this,u.memoizerific=l()}})(function(){return(function l(u,g,a){function e(i,f){if(!g[i]){if(!u[i]){var n=typeof y=="function"&&y;if(!f&&n)return n(i,!0);if(t)return t(i,!0);var m=new Error("Cannot find module '"+i+"'");throw m.code="MODULE_NOT_FOUND",m}var s=g[i]={exports:{}};u[i][0].call(s.exports,function(r){var h=u[i][1][r];return e(h||r)},s,s.exports,l,u,g,a)}return g[i].exports}for(var t=typeof y=="function"&&y,o=0;o<a.length;o++)e(a[o]);return e})({1:[function(l,u,g){u.exports=function(a){if(typeof Map!="function"||a){var e=l("./similar");return new e}else return new Map}},{"./similar":2}],2:[function(l,u,g){function a(){return this.list=[],this.lastItem=void 0,this.size=0,this}a.prototype.get=function(e){var t;if(this.lastItem&&this.isEqual(this.lastItem.key,e))return this.lastItem.val;if(t=this.indexOf(e),t>=0)return this.lastItem=this.list[t],this.list[t].val},a.prototype.set=function(e,t){var o;return this.lastItem&&this.isEqual(this.lastItem.key,e)?(this.lastItem.val=t,this):(o=this.indexOf(e),o>=0?(this.lastItem=this.list[o],this.list[o].val=t,this):(this.lastItem={key:e,val:t},this.list.push(this.lastItem),this.size++,this))},a.prototype.delete=function(e){var t;if(this.lastItem&&this.isEqual(this.lastItem.key,e)&&(this.lastItem=void 0),t=this.indexOf(e),t>=0)return this.size--,this.list.splice(t,1)[0]},a.prototype.has=function(e){var t;return this.lastItem&&this.isEqual(this.lastItem.key,e)?!0:(t=this.indexOf(e),t>=0?(this.lastItem=this.list[t],!0):!1)},a.prototype.forEach=function(e,t){var o;for(o=0;o<this.size;o++)e.call(t||this,this.list[o].val,this.list[o].key,this)},a.prototype.indexOf=function(e){var t;for(t=0;t<this.size;t++)if(this.isEqual(this.list[t].key,e))return t;return-1},a.prototype.isEqual=function(e,t){return e===t||e!==e&&t!==t},u.exports=a},{}],3:[function(l,u,g){var a=l("map-or-similar");u.exports=function(i){var f=new a(!1),n=[];return function(m){var s=function(){var r=f,h,I,c=arguments.length-1,x=Array(c+1),d=!0,p;if((s.numArgs||s.numArgs===0)&&s.numArgs!==c+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(p=0;p<c;p++){if(x[p]={cacheItem:r,arg:arguments[p]},r.has(arguments[p])){r=r.get(arguments[p]);continue}d=!1,h=new a(!1),r.set(arguments[p],h),r=h}return d&&(r.has(arguments[c])?I=r.get(arguments[c]):d=!1),d||(I=m.apply(null,arguments),r.set(arguments[c],I)),i>0&&(x[c]={cacheItem:r,arg:arguments[c]},d?e(n,x):n.push(x),n.length>i&&t(n.shift())),s.wasMemoized=d,s.numArgs=c+1,I};return s.limit=i,s.wasMemoized=!1,s.cache=f,s.lru=n,s}};function e(i,f){var n=i.length,m=f.length,s,r,h;for(r=0;r<n;r++){for(s=!0,h=0;h<m;h++)if(!o(i[r][h].arg,f[h].arg)){s=!1;break}if(s)break}i.push(i.splice(r,1)[0])}function t(i){var f=i.length,n=i[f-1],m,s;for(n.cacheItem.delete(n.arg),s=f-2;s>=0&&(n=i[s],m=n.cacheItem.get(n.arg),!m||!m.size);s--)n.cacheItem.delete(n.arg)}function o(i,f){return i===f||i!==i&&f!==f}},{"map-or-similar":1}]},{},[3])(3)})}});export{E as require_memoizerific};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{global as n}from"../../../../../@storybook_global@5.0.0/node_modules/@storybook/global/dist/index.js";var o=t=>t.transports!==void 0,a=()=>Math.random().toString(16).slice(2),d=class{constructor(t={}){this.sender=a(),this.events={},this.data={},this.transports=[],this.isAsync=t.async||!1,o(t)?(this.transports=t.transports||[],this.transports.forEach(s=>{s.setHandler(e=>this.handleEvent(e))})):this.transports=t.transport?[t.transport]:[],this.transports.forEach(s=>{s.setHandler(e=>this.handleEvent(e))})}get hasTransport(){return this.transports.length>0}addListener(t,s){this.events[t]=this.events[t]||[],this.events[t].push(s)}emit(t,...s){let e={type:t,args:s,from:this.sender},r={};s.length>=1&&s[0]&&s[0].options&&(r=s[0].options);let i=()=>{this.transports.forEach(h=>{h.send(e,r)}),this.handleEvent(e)};this.isAsync?setImmediate(i):i()}last(t){return this.data[t]}eventNames(){return Object.keys(this.events)}listenerCount(t){let s=this.listeners(t);return s?s.length:0}listeners(t){return this.events[t]||void 0}once(t,s){let e=this.onceListener(t,s);this.addListener(t,e)}removeAllListeners(t){t?this.events[t]&&delete this.events[t]:this.events={}}removeListener(t,s){let e=this.listeners(t);e&&(this.events[t]=e.filter(r=>r!==s))}on(t,s){this.addListener(t,s)}off(t,s){this.removeListener(t,s)}handleEvent(t){let s=this.listeners(t.type);s&&s.length&&s.forEach(e=>{e.apply(t,t.args)}),this.data[t.type]=t.args}onceListener(t,s){let e=(...r)=>(this.removeListener(t,e),s(...r));return e}},{document:c,location:p}=n,{WebSocket:v}=n,{CHANNEL_OPTIONS:L,CONFIG_TYPE:f}=n;export{d as Channel};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NjcToast } from '../../toast.ts';
|
|
1
|
+
import { NjcToast, NJC_TOAST_ACTION } from '../../toast.ts';
|
|
2
2
|
/**
|
|
3
3
|
* @slot - The content within the toast
|
|
4
4
|
*/
|
|
@@ -6,7 +6,8 @@ export declare class NgcToast extends NjcToast {
|
|
|
6
6
|
static styles: import('lit').CSSResult[];
|
|
7
7
|
render(): import('lit').TemplateResult<1>;
|
|
8
8
|
get ariaRole(): "alertdialog" | "alert";
|
|
9
|
-
get
|
|
9
|
+
get actionsMarkup(): import('lit').TemplateResult<1> | null;
|
|
10
|
+
handleActionClick(event: Event, action: NJC_TOAST_ACTION): void;
|
|
10
11
|
get variantClass(): "gator-toast_info" | "gator-toast_warning" | "gator-toast_error" | "gator-toast_success" | "gator-toast_inverse";
|
|
11
12
|
get iconMarkup(): import('lit').TemplateResult<1>;
|
|
12
13
|
get dismissibleMarkup(): import('lit').TemplateResult<1> | null;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
+
import { NJC_BUTTON_VARIANTS } from '../button/button.ts';
|
|
2
3
|
export type NJC_TOAST_VARIANTS = 'info' | 'warning' | 'error' | 'success' | 'inverse';
|
|
4
|
+
export type NJC_TOAST_ACTION = {
|
|
5
|
+
label: string;
|
|
6
|
+
variant?: NJC_BUTTON_VARIANTS;
|
|
7
|
+
onClick?: (event: Event) => void;
|
|
8
|
+
};
|
|
3
9
|
export type NJC_TOAST_OPTIONS = {
|
|
4
10
|
id: string;
|
|
5
11
|
variant?: NJC_TOAST_VARIANTS;
|
|
@@ -9,6 +15,7 @@ export type NJC_TOAST_OPTIONS = {
|
|
|
9
15
|
sticky?: boolean;
|
|
10
16
|
exitIconLabel?: string;
|
|
11
17
|
statusIconLabel?: string;
|
|
18
|
+
actions?: NJC_TOAST_ACTION[];
|
|
12
19
|
};
|
|
13
20
|
declare const NjcToast_base: typeof LitElement;
|
|
14
21
|
export declare class NjcToast extends NjcToast_base {
|
|
@@ -51,5 +58,10 @@ export declare class NjcToast extends NjcToast_base {
|
|
|
51
58
|
* @type {string}
|
|
52
59
|
*/
|
|
53
60
|
subtitle: string;
|
|
61
|
+
/**
|
|
62
|
+
* @property actions - Action buttons rendered in the toast (max 2). Used by toasterService; slot="actions" remains for manual markup.
|
|
63
|
+
* @type {NJC_TOAST_ACTION[]}
|
|
64
|
+
*/
|
|
65
|
+
actions: NJC_TOAST_ACTION[];
|
|
54
66
|
}
|
|
55
67
|
export {};
|
|
@@ -20,6 +20,7 @@ declare class ToasterService {
|
|
|
20
20
|
* @param options.dismissible - Whether the toast can be manually dismissed by the user
|
|
21
21
|
* @param options.exitIconLabel - Aria label for the dismiss button, default is 'Close Notification'
|
|
22
22
|
* @param options.statusIconLabel - Aria label for the status icon, default is the variant name (info, success, warning, error)
|
|
23
|
+
* @param options.actions - Up to 2 action buttons with labels and optional onClick handlers
|
|
23
24
|
* @returns The unique ID of the created toast, or null if no toaster is found
|
|
24
25
|
* @example
|
|
25
26
|
* ```typescript
|
|
@@ -36,6 +37,12 @@ declare class ToasterService {
|
|
|
36
37
|
* duration: 10000,
|
|
37
38
|
* dismissible: false
|
|
38
39
|
* });
|
|
40
|
+
*
|
|
41
|
+
* // With action buttons
|
|
42
|
+
* toasterService.createToast({
|
|
43
|
+
* title: 'File deleted',
|
|
44
|
+
* actions: [{ label: 'Undo', onClick: () => undo() }]
|
|
45
|
+
* });
|
|
39
46
|
* ```
|
|
40
47
|
*/
|
|
41
48
|
createToast(options: ToastCreateOptions): string | null;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shape logged in the Storybook Actions panel. Storybook v9+ no longer expands
|
|
3
|
+
* CustomEvent/DOM Event fields; ngc components emit detail on CustomEvents.
|
|
4
|
+
*/
|
|
5
|
+
export declare function serializeEventForActionPanel(event: Event): Record<string, unknown>;
|
|
6
|
+
/** Gator Storybook decorator — logs CustomEvent `detail` in the Actions panel. */
|
|
7
|
+
export declare const withGatorActions: (...args: any) => any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{actions as m}from"../node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-EUVGDK4H.js";import{makeDecorator as f,useEffect as u}from"../node_modules/.pnpm/storybook@10.3.0_@testing-library_dom@10.4.1_prettier@3.8.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/storybook/dist/_browser-chunks/chunk-SZQXB3JV.js";const d=/^(\S+)\s*(.*)$/,p=Element!=null&&!Element.prototype.matches?"msMatchesSelector":"matches";function E(t){const o={type:t.type,bubbles:t.bubbles,composed:t.composed,cancelable:t.cancelable};if("detail"in t){const{detail:e}=t;e!==void 0&&(o.detail=e)}return t.target instanceof Element&&(o.target=t.target.tagName.toLowerCase()),o}function i(t,o){if(t[p](o))return!0;const e=t.parentElement;return e?i(e,o):!1}function h(t,...o){const e=t(...o);return Object.entries(e).map(([a,n])=>{const r=a.match(d)||[],l=r[1],c=r[2]?.trim();return{eventName:l,handler:s=>{(!c||i(s.target,c))&&n(E(s))}}})}function b(t,...o){const e=typeof globalThis.document<"u"&&globalThis.document.getElementById("storybook-root");u(()=>{if(!e)return;const a=h(t,...o);return a.forEach(({eventName:n,handler:r})=>{e.addEventListener(n,r)}),()=>{a.forEach(({eventName:n,handler:r})=>{e.removeEventListener(n,r)})}},[e,t,o])}const T=f({name:"withGatorActions",parameterName:"actions",skipIfNoParametersOrOptions:!0,wrapper:(t,o,{parameters:e})=>(e?.handles&&b(m,...e.handles),t(o))});export{E as serializeEventForActionPanel,T as withGatorActions};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ncino/web-components",
|
|
3
3
|
"author": "nCino",
|
|
4
|
-
"version": "13.
|
|
4
|
+
"version": "13.6.0",
|
|
5
5
|
"license": "(c) Copyright 2023 nCino, Inc., all rights reserved",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -100,10 +100,10 @@
|
|
|
100
100
|
"vite-plugin-static-copy": "^3.3.0",
|
|
101
101
|
"vitest": "^4.1.0",
|
|
102
102
|
"yaml-eslint-parser": "^2.0.0",
|
|
103
|
-
"@ncino/styles": "13.
|
|
103
|
+
"@ncino/styles": "13.6.0"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
|
-
"@ncino/styles": "13.
|
|
106
|
+
"@ncino/styles": "13.6.0"
|
|
107
107
|
},
|
|
108
108
|
"bugs": {
|
|
109
109
|
"url": "https://github.com/ncino/force-sdk-web-components/issues"
|
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": "13.
|
|
4
|
+
"version": "13.5.0",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -3385,7 +3385,8 @@
|
|
|
3385
3385
|
{ "name": "exitIconLabel", "type": "string" },
|
|
3386
3386
|
{ "name": "statusIconLabel", "type": "string" },
|
|
3387
3387
|
{ "name": "title", "type": "string" },
|
|
3388
|
-
{ "name": "subtitle", "type": "string" }
|
|
3388
|
+
{ "name": "subtitle", "type": "string" },
|
|
3389
|
+
{ "name": "actions", "type": "NJC_TOAST_ACTION[]" }
|
|
3389
3390
|
],
|
|
3390
3391
|
"events": []
|
|
3391
3392
|
}
|
|
@@ -3443,7 +3444,8 @@
|
|
|
3443
3444
|
{ "name": "exitIconLabel", "type": "string" },
|
|
3444
3445
|
{ "name": "statusIconLabel", "type": "string" },
|
|
3445
3446
|
{ "name": "title", "type": "string" },
|
|
3446
|
-
{ "name": "subtitle", "type": "string" }
|
|
3447
|
+
{ "name": "subtitle", "type": "string" },
|
|
3448
|
+
{ "name": "actions", "type": "NJC_TOAST_ACTION[]" }
|
|
3447
3449
|
],
|
|
3448
3450
|
"events": []
|
|
3449
3451
|
}
|
|
@@ -3490,7 +3492,7 @@
|
|
|
3490
3492
|
"js": {
|
|
3491
3493
|
"properties": [
|
|
3492
3494
|
{ "name": "ariaRole" },
|
|
3493
|
-
{ "name": "
|
|
3495
|
+
{ "name": "actionsMarkup" },
|
|
3494
3496
|
{ "name": "variantClass" },
|
|
3495
3497
|
{ "name": "iconMarkup" },
|
|
3496
3498
|
{ "name": "dismissibleMarkup" },
|
|
@@ -3508,7 +3510,8 @@
|
|
|
3508
3510
|
{ "name": "exitIconLabel", "type": "string" },
|
|
3509
3511
|
{ "name": "statusIconLabel", "type": "string" },
|
|
3510
3512
|
{ "name": "title", "type": "string" },
|
|
3511
|
-
{ "name": "subtitle", "type": "string" }
|
|
3513
|
+
{ "name": "subtitle", "type": "string" },
|
|
3514
|
+
{ "name": "actions", "type": "NJC_TOAST_ACTION[]" }
|
|
3512
3515
|
],
|
|
3513
3516
|
"events": [{ "name": "dismiss", "type": "CustomEvent" }]
|
|
3514
3517
|
}
|