@xcelsior/ui-chat 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/preview.tsx +2 -1
- package/dist/index.js +38 -53
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +66 -81
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
- package/src/components/Chat.tsx +35 -74
- package/src/components/ChatWidget.tsx +0 -1
- package/src/hooks/useMessages.ts +22 -1
- package/storybook-static/assets/Chat.stories-BkbpOOSG.js +830 -0
- package/storybook-static/assets/{Color-YHDXOIA2-BMnd3YrF.js → Color-YHDXOIA2-CSuNIR0a.js} +1 -1
- package/storybook-static/assets/{DocsRenderer-CFRXHY34-i_W8iCu9.js → DocsRenderer-CFRXHY34-dpuOKTQp.js} +3 -3
- package/storybook-static/assets/{MessageItem-DAaKZ9s9.js → MessageItem-Dlb6dSKL.js} +9 -9
- package/storybook-static/assets/MessageItem.stories-CsxqSqu-.js +422 -0
- package/storybook-static/assets/{entry-preview-oDnntGcx.js → entry-preview-C_-WO6GJ.js} +1 -1
- package/storybook-static/assets/{iframe-CGBtu2Se.js → iframe-BXTccXxS.js} +2 -2
- package/storybook-static/assets/preview-B8y-wc-n.css +1 -0
- package/storybook-static/assets/preview-CC4t7T7W.js +1 -0
- package/storybook-static/assets/{preview-BRpahs9B.js → preview-Cyx3pE7Q.js} +2 -2
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/index.json +1 -1
- package/storybook-static/project.json +1 -1
- package/tsconfig.json +4 -0
- package/storybook-static/assets/Chat.stories-J_Yp51wU.js +0 -803
- package/storybook-static/assets/MessageItem.stories-Ckr1_scc.js +0 -255
- package/storybook-static/assets/ToastContext-Bty1K7ya.js +0 -1
- package/storybook-static/assets/preview-DUOvJmsz.js +0 -1
- package/storybook-static/assets/preview-DcGwT3kv.css +0 -1
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
import{j as t}from"./jsx-runtime-Cf8x2fCZ.js";import{M as r}from"./MessageItem-Dlb6dSKL.js";import"./index-yBjzXJbu.js";import"./BrandIcons-Cjy5INAp.js";import"./index--qcDGAq6.js";import"./en-US-BukEqXxE.js";const $e={title:"Components/MessageItem",component:r,parameters:{layout:"padded"},tags:["autodocs"]},s={name:"John Doe",email:"john@example.com",type:"customer",status:"online"},e={id:"1",conversationId:"conv-1",senderId:"user@example.com",senderType:"customer",content:"Hello, I need help with my account.",messageType:"text",createdAt:new Date().toISOString(),status:"sent"},a={args:{message:{...e,senderId:s.email,content:"Hello, I need help with my account."},currentUser:s,showAvatar:!0,showTimestamp:!0}},n={args:{message:{...e,senderId:"agent@example.com",senderType:"agent",content:"Hi! I'd be happy to help you with your account. What issue are you experiencing?"},currentUser:s,showAvatar:!0,showTimestamp:!0}},i={args:{message:{...e,senderId:"ai-assistant",senderType:"bot",content:`Hello! I'm the Xcelsior assistant. Based on our knowledge base, here are some common solutions:
|
|
2
|
+
|
|
3
|
+
1. Reset your password
|
|
4
|
+
2. Verify your email
|
|
5
|
+
3. Contact support
|
|
6
|
+
|
|
7
|
+
Which would you like help with?`,confidence:.85,metadata:{isAI:!0,kbUsed:!0}},currentUser:s,showAvatar:!0,showTimestamp:!0}},c={args:{message:{...e,senderId:"ai-assistant",senderType:"bot",content:"I'm not entirely sure about this, but let me check with my team. In the meantime, you might want to visit our help center.",confidence:.3,metadata:{isAI:!0,kbUsed:!1}},currentUser:s,showAvatar:!0,showTimestamp:!0}},m={args:{message:{...e,senderId:"ai-assistant",senderType:"bot",content:"You can reset your password by going to Settings > Security > Change Password.",feedback:"good",confidence:.9,metadata:{isAI:!0,kbUsed:!0}},currentUser:s,showAvatar:!0,showTimestamp:!0}},d={args:{message:{...e,senderId:"ai-assistant",senderType:"bot",content:"Your subscription expires on March 15th.",feedback:"wrong",confidence:.6,metadata:{isAI:!0,kbUsed:!0}},currentUser:s,showAvatar:!0,showTimestamp:!0}},u={args:{message:{...e,senderId:"ai-assistant",senderType:"bot",content:`## Getting Started
|
|
8
|
+
|
|
9
|
+
Here's how you can reset your password:
|
|
10
|
+
|
|
11
|
+
1. Go to the login page
|
|
12
|
+
2. Click on **"Forgot Password"**
|
|
13
|
+
3. Enter your email address
|
|
14
|
+
4. Check your inbox for the reset link
|
|
15
|
+
|
|
16
|
+
*Note: The link expires in 24 hours.*
|
|
17
|
+
|
|
18
|
+
For more help, visit our [support page](https://xcelsior.co/support).`,metadata:{isAI:!0,kbUsed:!0}},currentUser:s,showAvatar:!0,showTimestamp:!0}},p={args:{message:{...e,senderId:"system",senderType:"system",content:"Agent John joined the conversation",messageType:"system"},currentUser:s,showAvatar:!0,showTimestamp:!0}},g={args:{message:{...e,senderId:"system",senderType:"system",content:"Connecting you with a team member who can help further...",messageType:"system"},currentUser:s,showAvatar:!0,showTimestamp:!0}},l={args:{message:{...e,senderId:"system",senderType:"system",content:"Sarah from our team is here to help!",messageType:"system"},currentUser:s,showAvatar:!0,showTimestamp:!0}},h={args:{message:{...e,content:"https://picsum.photos/400/300",messageType:"image"},currentUser:s,showAvatar:!0,showTimestamp:!0}},y={args:{message:{...e,content:"https://example.com/document.pdf",messageType:"file",metadata:{fileName:"Technical Documentation.pdf"}},currentUser:s,showAvatar:!0,showTimestamp:!0}},w={args:{message:{id:"md-1",conversationId:"conv-1",senderId:"ai-assistant",senderType:"bot",content:`Hi there! I'd be happy to help you get a quote for your project.
|
|
19
|
+
|
|
20
|
+
To provide you with the most accurate quote, I'll need to understand more about what you're looking for. Could you tell me:
|
|
21
|
+
|
|
22
|
+
- **What type of project** are you considering? (mobile app, website, custom software, etc.)
|
|
23
|
+
- **What's the main purpose** or functionality you need?
|
|
24
|
+
- **Any specific requirements** or features you have in mind?
|
|
25
|
+
|
|
26
|
+
At Xcelsior, we offer flexible pricing models to fit your needs:
|
|
27
|
+
|
|
28
|
+
1. Hour-based pricing
|
|
29
|
+
2. Feature-based pricing
|
|
30
|
+
3. Fixed-sum pricing
|
|
31
|
+
|
|
32
|
+
Once I understand your project better, I can connect you with our team for a detailed quote and consultation.`,messageType:"text",createdAt:new Date().toISOString(),status:"sent"},currentUser:{name:"Visitor",email:"visitor@example.com",type:"customer",status:"online"},showAvatar:!0,showTimestamp:!0}},b={args:{message:{id:"md-2",conversationId:"conv-1",senderId:"ai-assistant",senderType:"bot",content:`Here's a quick example of how to integrate our SDK:
|
|
33
|
+
|
|
34
|
+
\`\`\`javascript
|
|
35
|
+
import { XcelsiorChat } from '@xcelsior/ui-chat';
|
|
36
|
+
|
|
37
|
+
const config = {
|
|
38
|
+
apiKey: 'your-api-key',
|
|
39
|
+
theme: { primary: '#337eff' }
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
<XcelsiorChat config={config} />
|
|
43
|
+
\`\`\`
|
|
44
|
+
|
|
45
|
+
You can also use inline code like \`npm install @xcelsior/ui-chat\` to get started.
|
|
46
|
+
|
|
47
|
+
For more details, check our **documentation** or reach out to our team!`,messageType:"text",createdAt:new Date().toISOString(),status:"sent"},currentUser:{name:"Visitor",email:"visitor@example.com",type:"customer",status:"online"},showAvatar:!0,showTimestamp:!0}},I={args:{message:{id:"md-3",conversationId:"conv-1",senderId:"ai-assistant",senderType:"bot",content:`Great question! Here's a comprehensive overview of our services:
|
|
48
|
+
|
|
49
|
+
## Web Development
|
|
50
|
+
We build modern, responsive web applications using cutting-edge technologies like **Next.js**, **React**, and **TypeScript**. Our team focuses on performance, accessibility, and SEO.
|
|
51
|
+
|
|
52
|
+
## Mobile Development
|
|
53
|
+
We develop cross-platform mobile apps using **React Native** and **Flutter**, ensuring your app runs smoothly on both iOS and Android.
|
|
54
|
+
|
|
55
|
+
## Digital Solutions
|
|
56
|
+
- Custom CMS development
|
|
57
|
+
- E-commerce platforms
|
|
58
|
+
- API integrations
|
|
59
|
+
- Cloud infrastructure (AWS, GCP)
|
|
60
|
+
|
|
61
|
+
## IT Consulting
|
|
62
|
+
Our experienced consultants help you:
|
|
63
|
+
1. Plan your technology roadmap
|
|
64
|
+
2. Optimize existing systems
|
|
65
|
+
3. Scale your infrastructure
|
|
66
|
+
4. Implement security best practices
|
|
67
|
+
|
|
68
|
+
> "Xcelsior delivered our project on time and exceeded our expectations." — Client Testimonial
|
|
69
|
+
|
|
70
|
+
Would you like to know more about any specific service?`,messageType:"text",createdAt:new Date().toISOString(),status:"sent"},currentUser:{name:"Visitor",email:"visitor@example.com",type:"customer",status:"online"},showAvatar:!0,showTimestamp:!0}},f={render:o=>t.jsxs("div",{className:"flex flex-col gap-2 max-w-2xl p-4 bg-gray-950 rounded-lg",children:[t.jsx(r,{...o,message:{...e,id:"1",senderId:s.email,senderType:"customer",content:"Hi, I need help with pricing for a custom web app."}}),t.jsx(r,{...o,message:{...e,id:"2",senderId:"ai-assistant",senderType:"bot",content:"Hello! I'd be happy to help with pricing. At Xcelsior, we offer custom quotes based on your project requirements. Could you tell me more about what you're looking for?",confidence:.8,metadata:{isAI:!0,kbUsed:!0},createdAt:new Date(Date.now()-6e4).toISOString()}}),t.jsx(r,{...o,message:{...e,id:"3",senderId:s.email,senderType:"customer",content:"I want to talk to a real person about this. Can you connect me with your sales team?",createdAt:new Date(Date.now()-3e4).toISOString()}}),t.jsx(r,{...o,message:{...e,id:"4",senderId:"system",senderType:"system",content:"Connecting you with a team member who can help further...",messageType:"system",createdAt:new Date(Date.now()-25e3).toISOString()}}),t.jsx(r,{...o,message:{...e,id:"5",senderId:"sarah@xcelsior.co",senderType:"agent",content:"Hi there! I'm Sarah from our sales team. I'd love to discuss your custom web app project. Can you share a bit about the features you need and your timeline?",createdAt:new Date().toISOString()}})]}),args:{currentUser:s,showAvatar:!0,showTimestamp:!0}};var T,v,A,S,k;a.parameters={...a.parameters,docs:{...(T=a.parameters)==null?void 0:T.docs,source:{originalSource:`{
|
|
71
|
+
args: {
|
|
72
|
+
message: {
|
|
73
|
+
...baseMessage,
|
|
74
|
+
senderId: currentUser.email,
|
|
75
|
+
content: 'Hello, I need help with my account.'
|
|
76
|
+
},
|
|
77
|
+
currentUser,
|
|
78
|
+
showAvatar: true,
|
|
79
|
+
showTimestamp: true
|
|
80
|
+
}
|
|
81
|
+
}`,...(A=(v=a.parameters)==null?void 0:v.docs)==null?void 0:A.source},description:{story:"Customer message (own message)",...(k=(S=a.parameters)==null?void 0:S.docs)==null?void 0:k.description}}};var x,M,C,U,D;n.parameters={...n.parameters,docs:{...(x=n.parameters)==null?void 0:x.docs,source:{originalSource:`{
|
|
82
|
+
args: {
|
|
83
|
+
message: {
|
|
84
|
+
...baseMessage,
|
|
85
|
+
senderId: 'agent@example.com',
|
|
86
|
+
senderType: 'agent',
|
|
87
|
+
content: "Hi! I'd be happy to help you with your account. What issue are you experiencing?"
|
|
88
|
+
},
|
|
89
|
+
currentUser,
|
|
90
|
+
showAvatar: true,
|
|
91
|
+
showTimestamp: true
|
|
92
|
+
}
|
|
93
|
+
}`,...(C=(M=n.parameters)==null?void 0:M.docs)==null?void 0:C.source},description:{story:"Human agent message",...(D=(U=n.parameters)==null?void 0:U.docs)==null?void 0:D.description}}};var O,j,B,F,H;i.parameters={...i.parameters,docs:{...(O=i.parameters)==null?void 0:O.docs,source:{originalSource:`{
|
|
94
|
+
args: {
|
|
95
|
+
message: {
|
|
96
|
+
...baseMessage,
|
|
97
|
+
senderId: 'ai-assistant',
|
|
98
|
+
senderType: 'bot',
|
|
99
|
+
content: "Hello! I'm the Xcelsior assistant. Based on our knowledge base, here are some common solutions:\\n\\n1. Reset your password\\n2. Verify your email\\n3. Contact support\\n\\nWhich would you like help with?",
|
|
100
|
+
confidence: 0.85,
|
|
101
|
+
metadata: {
|
|
102
|
+
isAI: true,
|
|
103
|
+
kbUsed: true
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
currentUser,
|
|
107
|
+
showAvatar: true,
|
|
108
|
+
showTimestamp: true
|
|
109
|
+
}
|
|
110
|
+
}`,...(B=(j=i.parameters)==null?void 0:j.docs)==null?void 0:B.source},description:{story:"Bot message (AI assistant) — new senderType",...(H=(F=i.parameters)==null?void 0:F.docs)==null?void 0:H.description}}};var W,q,N,X,E;c.parameters={...c.parameters,docs:{...(W=c.parameters)==null?void 0:W.docs,source:{originalSource:`{
|
|
111
|
+
args: {
|
|
112
|
+
message: {
|
|
113
|
+
...baseMessage,
|
|
114
|
+
senderId: 'ai-assistant',
|
|
115
|
+
senderType: 'bot',
|
|
116
|
+
content: "I'm not entirely sure about this, but let me check with my team. In the meantime, you might want to visit our help center.",
|
|
117
|
+
confidence: 0.3,
|
|
118
|
+
metadata: {
|
|
119
|
+
isAI: true,
|
|
120
|
+
kbUsed: false
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
currentUser,
|
|
124
|
+
showAvatar: true,
|
|
125
|
+
showTimestamp: true
|
|
126
|
+
}
|
|
127
|
+
}`,...(N=(q=c.parameters)==null?void 0:q.docs)==null?void 0:N.source},description:{story:"Bot message with low confidence",...(E=(X=c.parameters)==null?void 0:X.docs)==null?void 0:E.description}}};var G,P,R,V,Y;m.parameters={...m.parameters,docs:{...(G=m.parameters)==null?void 0:G.docs,source:{originalSource:`{
|
|
128
|
+
args: {
|
|
129
|
+
message: {
|
|
130
|
+
...baseMessage,
|
|
131
|
+
senderId: 'ai-assistant',
|
|
132
|
+
senderType: 'bot',
|
|
133
|
+
content: "You can reset your password by going to Settings > Security > Change Password.",
|
|
134
|
+
feedback: 'good',
|
|
135
|
+
confidence: 0.9,
|
|
136
|
+
metadata: {
|
|
137
|
+
isAI: true,
|
|
138
|
+
kbUsed: true
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
currentUser,
|
|
142
|
+
showAvatar: true,
|
|
143
|
+
showTimestamp: true
|
|
144
|
+
}
|
|
145
|
+
}`,...(R=(P=m.parameters)==null?void 0:P.docs)==null?void 0:R.source},description:{story:"Bot message with feedback (rated good)",...(Y=(V=m.parameters)==null?void 0:V.docs)==null?void 0:Y.description}}};var K,L,J,z,_;d.parameters={...d.parameters,docs:{...(K=d.parameters)==null?void 0:K.docs,source:{originalSource:`{
|
|
146
|
+
args: {
|
|
147
|
+
message: {
|
|
148
|
+
...baseMessage,
|
|
149
|
+
senderId: 'ai-assistant',
|
|
150
|
+
senderType: 'bot',
|
|
151
|
+
content: "Your subscription expires on March 15th.",
|
|
152
|
+
feedback: 'wrong',
|
|
153
|
+
confidence: 0.6,
|
|
154
|
+
metadata: {
|
|
155
|
+
isAI: true,
|
|
156
|
+
kbUsed: true
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
currentUser,
|
|
160
|
+
showAvatar: true,
|
|
161
|
+
showTimestamp: true
|
|
162
|
+
}
|
|
163
|
+
}`,...(J=(L=d.parameters)==null?void 0:L.docs)==null?void 0:J.source},description:{story:"Bot message with feedback (rated wrong)",...(_=(z=d.parameters)==null?void 0:z.docs)==null?void 0:_.description}}};var Q,Z,$,ee,se;u.parameters={...u.parameters,docs:{...(Q=u.parameters)==null?void 0:Q.docs,source:{originalSource:`{
|
|
164
|
+
args: {
|
|
165
|
+
message: {
|
|
166
|
+
...baseMessage,
|
|
167
|
+
senderId: 'ai-assistant',
|
|
168
|
+
senderType: 'bot',
|
|
169
|
+
content: \`## Getting Started
|
|
170
|
+
|
|
171
|
+
Here's how you can reset your password:
|
|
172
|
+
|
|
173
|
+
1. Go to the login page
|
|
174
|
+
2. Click on **"Forgot Password"**
|
|
175
|
+
3. Enter your email address
|
|
176
|
+
4. Check your inbox for the reset link
|
|
177
|
+
|
|
178
|
+
*Note: The link expires in 24 hours.*
|
|
179
|
+
|
|
180
|
+
For more help, visit our [support page](https://xcelsior.co/support).\`,
|
|
181
|
+
metadata: {
|
|
182
|
+
isAI: true,
|
|
183
|
+
kbUsed: true
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
currentUser,
|
|
187
|
+
showAvatar: true,
|
|
188
|
+
showTimestamp: true
|
|
189
|
+
}
|
|
190
|
+
}`,...($=(Z=u.parameters)==null?void 0:Z.docs)==null?void 0:$.source},description:{story:"AI message with markdown formatting",...(se=(ee=u.parameters)==null?void 0:ee.docs)==null?void 0:se.description}}};var te,re,oe,ae,ne;p.parameters={...p.parameters,docs:{...(te=p.parameters)==null?void 0:te.docs,source:{originalSource:`{
|
|
191
|
+
args: {
|
|
192
|
+
message: {
|
|
193
|
+
...baseMessage,
|
|
194
|
+
senderId: 'system',
|
|
195
|
+
senderType: 'system',
|
|
196
|
+
content: 'Agent John joined the conversation',
|
|
197
|
+
messageType: 'system'
|
|
198
|
+
},
|
|
199
|
+
currentUser,
|
|
200
|
+
showAvatar: true,
|
|
201
|
+
showTimestamp: true
|
|
202
|
+
}
|
|
203
|
+
}`,...(oe=(re=p.parameters)==null?void 0:re.docs)==null?void 0:oe.source},description:{story:"System message — generic",...(ne=(ae=p.parameters)==null?void 0:ae.docs)==null?void 0:ne.description}}};var ie,ce,me,de,ue;g.parameters={...g.parameters,docs:{...(ie=g.parameters)==null?void 0:ie.docs,source:{originalSource:`{
|
|
204
|
+
args: {
|
|
205
|
+
message: {
|
|
206
|
+
...baseMessage,
|
|
207
|
+
senderId: 'system',
|
|
208
|
+
senderType: 'system',
|
|
209
|
+
content: 'Connecting you with a team member who can help further...',
|
|
210
|
+
messageType: 'system'
|
|
211
|
+
},
|
|
212
|
+
currentUser,
|
|
213
|
+
showAvatar: true,
|
|
214
|
+
showTimestamp: true
|
|
215
|
+
}
|
|
216
|
+
}`,...(me=(ce=g.parameters)==null?void 0:ce.docs)==null?void 0:me.source},description:{story:"System message — escalation notice",...(ue=(de=g.parameters)==null?void 0:de.docs)==null?void 0:ue.description}}};var pe,ge,le,he,ye;l.parameters={...l.parameters,docs:{...(pe=l.parameters)==null?void 0:pe.docs,source:{originalSource:`{
|
|
217
|
+
args: {
|
|
218
|
+
message: {
|
|
219
|
+
...baseMessage,
|
|
220
|
+
senderId: 'system',
|
|
221
|
+
senderType: 'system',
|
|
222
|
+
content: 'Sarah from our team is here to help!',
|
|
223
|
+
messageType: 'system'
|
|
224
|
+
},
|
|
225
|
+
currentUser,
|
|
226
|
+
showAvatar: true,
|
|
227
|
+
showTimestamp: true
|
|
228
|
+
}
|
|
229
|
+
}`,...(le=(ge=l.parameters)==null?void 0:ge.docs)==null?void 0:le.source},description:{story:"System message — agent took over",...(ye=(he=l.parameters)==null?void 0:he.docs)==null?void 0:ye.description}}};var we,be,Ie,fe,Te;h.parameters={...h.parameters,docs:{...(we=h.parameters)==null?void 0:we.docs,source:{originalSource:`{
|
|
230
|
+
args: {
|
|
231
|
+
message: {
|
|
232
|
+
...baseMessage,
|
|
233
|
+
content: 'https://picsum.photos/400/300',
|
|
234
|
+
messageType: 'image'
|
|
235
|
+
},
|
|
236
|
+
currentUser,
|
|
237
|
+
showAvatar: true,
|
|
238
|
+
showTimestamp: true
|
|
239
|
+
}
|
|
240
|
+
}`,...(Ie=(be=h.parameters)==null?void 0:be.docs)==null?void 0:Ie.source},description:{story:"Image message",...(Te=(fe=h.parameters)==null?void 0:fe.docs)==null?void 0:Te.description}}};var ve,Ae,Se,ke,xe;y.parameters={...y.parameters,docs:{...(ve=y.parameters)==null?void 0:ve.docs,source:{originalSource:`{
|
|
241
|
+
args: {
|
|
242
|
+
message: {
|
|
243
|
+
...baseMessage,
|
|
244
|
+
content: 'https://example.com/document.pdf',
|
|
245
|
+
messageType: 'file',
|
|
246
|
+
metadata: {
|
|
247
|
+
fileName: 'Technical Documentation.pdf'
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
currentUser,
|
|
251
|
+
showAvatar: true,
|
|
252
|
+
showTimestamp: true
|
|
253
|
+
}
|
|
254
|
+
}`,...(Se=(Ae=y.parameters)==null?void 0:Ae.docs)==null?void 0:Se.source},description:{story:"File message",...(xe=(ke=y.parameters)==null?void 0:ke.docs)==null?void 0:xe.description}}};var Me,Ce,Ue,De,Oe;w.parameters={...w.parameters,docs:{...(Me=w.parameters)==null?void 0:Me.docs,source:{originalSource:`{
|
|
255
|
+
args: {
|
|
256
|
+
message: {
|
|
257
|
+
id: 'md-1',
|
|
258
|
+
conversationId: 'conv-1',
|
|
259
|
+
senderId: 'ai-assistant',
|
|
260
|
+
senderType: 'bot',
|
|
261
|
+
content: \`Hi there! I'd be happy to help you get a quote for your project.
|
|
262
|
+
|
|
263
|
+
To provide you with the most accurate quote, I'll need to understand more about what you're looking for. Could you tell me:
|
|
264
|
+
|
|
265
|
+
- **What type of project** are you considering? (mobile app, website, custom software, etc.)
|
|
266
|
+
- **What's the main purpose** or functionality you need?
|
|
267
|
+
- **Any specific requirements** or features you have in mind?
|
|
268
|
+
|
|
269
|
+
At Xcelsior, we offer flexible pricing models to fit your needs:
|
|
270
|
+
|
|
271
|
+
1. Hour-based pricing
|
|
272
|
+
2. Feature-based pricing
|
|
273
|
+
3. Fixed-sum pricing
|
|
274
|
+
|
|
275
|
+
Once I understand your project better, I can connect you with our team for a detailed quote and consultation.\`,
|
|
276
|
+
messageType: 'text',
|
|
277
|
+
createdAt: new Date().toISOString(),
|
|
278
|
+
status: 'sent'
|
|
279
|
+
},
|
|
280
|
+
currentUser: {
|
|
281
|
+
name: 'Visitor',
|
|
282
|
+
email: 'visitor@example.com',
|
|
283
|
+
type: 'customer',
|
|
284
|
+
status: 'online'
|
|
285
|
+
},
|
|
286
|
+
showAvatar: true,
|
|
287
|
+
showTimestamp: true
|
|
288
|
+
}
|
|
289
|
+
}`,...(Ue=(Ce=w.parameters)==null?void 0:Ce.docs)==null?void 0:Ue.source},description:{story:"Bot message with rich markdown — bullet list, bold, pricing options",...(Oe=(De=w.parameters)==null?void 0:De.docs)==null?void 0:Oe.description}}};var je,Be,Fe,He,We;b.parameters={...b.parameters,docs:{...(je=b.parameters)==null?void 0:je.docs,source:{originalSource:`{
|
|
290
|
+
args: {
|
|
291
|
+
message: {
|
|
292
|
+
id: 'md-2',
|
|
293
|
+
conversationId: 'conv-1',
|
|
294
|
+
senderId: 'ai-assistant',
|
|
295
|
+
senderType: 'bot',
|
|
296
|
+
content: \`Here's a quick example of how to integrate our SDK:
|
|
297
|
+
|
|
298
|
+
\\\`\\\`\\\`javascript
|
|
299
|
+
import { XcelsiorChat } from '@xcelsior/ui-chat';
|
|
300
|
+
|
|
301
|
+
const config = {
|
|
302
|
+
apiKey: 'your-api-key',
|
|
303
|
+
theme: { primary: '#337eff' }
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
<XcelsiorChat config={config} />
|
|
307
|
+
\\\`\\\`\\\`
|
|
308
|
+
|
|
309
|
+
You can also use inline code like \\\`npm install @xcelsior/ui-chat\\\` to get started.
|
|
310
|
+
|
|
311
|
+
For more details, check our **documentation** or reach out to our team!\`,
|
|
312
|
+
messageType: 'text',
|
|
313
|
+
createdAt: new Date().toISOString(),
|
|
314
|
+
status: 'sent'
|
|
315
|
+
},
|
|
316
|
+
currentUser: {
|
|
317
|
+
name: 'Visitor',
|
|
318
|
+
email: 'visitor@example.com',
|
|
319
|
+
type: 'customer',
|
|
320
|
+
status: 'online'
|
|
321
|
+
},
|
|
322
|
+
showAvatar: true,
|
|
323
|
+
showTimestamp: true
|
|
324
|
+
}
|
|
325
|
+
}`,...(Fe=(Be=b.parameters)==null?void 0:Be.docs)==null?void 0:Fe.source},description:{story:"Bot message with a fenced code block and inline code",...(We=(He=b.parameters)==null?void 0:He.docs)==null?void 0:We.description}}};var qe,Ne,Xe,Ee,Ge;I.parameters={...I.parameters,docs:{...(qe=I.parameters)==null?void 0:qe.docs,source:{originalSource:`{
|
|
326
|
+
args: {
|
|
327
|
+
message: {
|
|
328
|
+
id: 'md-3',
|
|
329
|
+
conversationId: 'conv-1',
|
|
330
|
+
senderId: 'ai-assistant',
|
|
331
|
+
senderType: 'bot',
|
|
332
|
+
content: \`Great question! Here's a comprehensive overview of our services:
|
|
333
|
+
|
|
334
|
+
## Web Development
|
|
335
|
+
We build modern, responsive web applications using cutting-edge technologies like **Next.js**, **React**, and **TypeScript**. Our team focuses on performance, accessibility, and SEO.
|
|
336
|
+
|
|
337
|
+
## Mobile Development
|
|
338
|
+
We develop cross-platform mobile apps using **React Native** and **Flutter**, ensuring your app runs smoothly on both iOS and Android.
|
|
339
|
+
|
|
340
|
+
## Digital Solutions
|
|
341
|
+
- Custom CMS development
|
|
342
|
+
- E-commerce platforms
|
|
343
|
+
- API integrations
|
|
344
|
+
- Cloud infrastructure (AWS, GCP)
|
|
345
|
+
|
|
346
|
+
## IT Consulting
|
|
347
|
+
Our experienced consultants help you:
|
|
348
|
+
1. Plan your technology roadmap
|
|
349
|
+
2. Optimize existing systems
|
|
350
|
+
3. Scale your infrastructure
|
|
351
|
+
4. Implement security best practices
|
|
352
|
+
|
|
353
|
+
> "Xcelsior delivered our project on time and exceeded our expectations." — Client Testimonial
|
|
354
|
+
|
|
355
|
+
Would you like to know more about any specific service?\`,
|
|
356
|
+
messageType: 'text',
|
|
357
|
+
createdAt: new Date().toISOString(),
|
|
358
|
+
status: 'sent'
|
|
359
|
+
},
|
|
360
|
+
currentUser: {
|
|
361
|
+
name: 'Visitor',
|
|
362
|
+
email: 'visitor@example.com',
|
|
363
|
+
type: 'customer',
|
|
364
|
+
status: 'online'
|
|
365
|
+
},
|
|
366
|
+
showAvatar: true,
|
|
367
|
+
showTimestamp: true
|
|
368
|
+
}
|
|
369
|
+
}`,...(Xe=(Ne=I.parameters)==null?void 0:Ne.docs)==null?void 0:Xe.source},description:{story:"Bot message with headings, nested lists, and a blockquote",...(Ge=(Ee=I.parameters)==null?void 0:Ee.docs)==null?void 0:Ge.description}}};var Pe,Re,Ve,Ye,Ke;f.parameters={...f.parameters,docs:{...(Pe=f.parameters)==null?void 0:Pe.docs,source:{originalSource:`{
|
|
370
|
+
render: args => <div className="flex flex-col gap-2 max-w-2xl p-4 bg-gray-950 rounded-lg">
|
|
371
|
+
<MessageItem {...args} message={{
|
|
372
|
+
...baseMessage,
|
|
373
|
+
id: '1',
|
|
374
|
+
senderId: currentUser.email,
|
|
375
|
+
senderType: 'customer',
|
|
376
|
+
content: 'Hi, I need help with pricing for a custom web app.'
|
|
377
|
+
}} />
|
|
378
|
+
<MessageItem {...args} message={{
|
|
379
|
+
...baseMessage,
|
|
380
|
+
id: '2',
|
|
381
|
+
senderId: 'ai-assistant',
|
|
382
|
+
senderType: 'bot',
|
|
383
|
+
content: "Hello! I'd be happy to help with pricing. At Xcelsior, we offer custom quotes based on your project requirements. Could you tell me more about what you're looking for?",
|
|
384
|
+
confidence: 0.8,
|
|
385
|
+
metadata: {
|
|
386
|
+
isAI: true,
|
|
387
|
+
kbUsed: true
|
|
388
|
+
},
|
|
389
|
+
createdAt: new Date(Date.now() - 60000).toISOString()
|
|
390
|
+
}} />
|
|
391
|
+
<MessageItem {...args} message={{
|
|
392
|
+
...baseMessage,
|
|
393
|
+
id: '3',
|
|
394
|
+
senderId: currentUser.email,
|
|
395
|
+
senderType: 'customer',
|
|
396
|
+
content: 'I want to talk to a real person about this. Can you connect me with your sales team?',
|
|
397
|
+
createdAt: new Date(Date.now() - 30000).toISOString()
|
|
398
|
+
}} />
|
|
399
|
+
<MessageItem {...args} message={{
|
|
400
|
+
...baseMessage,
|
|
401
|
+
id: '4',
|
|
402
|
+
senderId: 'system',
|
|
403
|
+
senderType: 'system',
|
|
404
|
+
content: 'Connecting you with a team member who can help further...',
|
|
405
|
+
messageType: 'system',
|
|
406
|
+
createdAt: new Date(Date.now() - 25000).toISOString()
|
|
407
|
+
}} />
|
|
408
|
+
<MessageItem {...args} message={{
|
|
409
|
+
...baseMessage,
|
|
410
|
+
id: '5',
|
|
411
|
+
senderId: 'sarah@xcelsior.co',
|
|
412
|
+
senderType: 'agent',
|
|
413
|
+
content: "Hi there! I'm Sarah from our sales team. I'd love to discuss your custom web app project. Can you share a bit about the features you need and your timeline?",
|
|
414
|
+
createdAt: new Date().toISOString()
|
|
415
|
+
}} />
|
|
416
|
+
</div>,
|
|
417
|
+
args: {
|
|
418
|
+
currentUser,
|
|
419
|
+
showAvatar: true,
|
|
420
|
+
showTimestamp: true
|
|
421
|
+
}
|
|
422
|
+
}`,...(Ve=(Re=f.parameters)==null?void 0:Re.docs)==null?void 0:Ve.source},description:{story:"Full conversation flow: customer → bot → escalation → agent",...(Ke=(Ye=f.parameters)==null?void 0:Ye.docs)==null?void 0:Ke.description}}};const es=["CustomerMessage","AgentMessage","BotMessage","BotMessageLowConfidence","BotMessageFeedbackGood","BotMessageFeedbackWrong","BotMessageWithMarkdown","SystemMessage","EscalationNotice","AgentTookOver","ImageMessage","FileMessage","BotMarkdownMessage","BotCodeBlock","BotLongResponse","FullConversationFlow"];export{n as AgentMessage,l as AgentTookOver,b as BotCodeBlock,I as BotLongResponse,w as BotMarkdownMessage,i as BotMessage,m as BotMessageFeedbackGood,d as BotMessageFeedbackWrong,c as BotMessageLowConfidence,u as BotMessageWithMarkdown,a as CustomerMessage,g as EscalationNotice,y as FileMessage,f as FullConversationFlow,h as ImageMessage,p as SystemMessage,es as __namedExportsOrder,$e as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./test-utils-BE0XkMtV.js","./index--qcDGAq6.js","./index-yBjzXJbu.js","./index-BLHw34Di.js","./react-18-CALspjOX.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as Ee}from"./iframe-CGBtu2Se.js";import{_ as Ae,a as O,b as ge}from"./chunk-XP5HYGXS-BpfKkqn7.js";import{r as k,R as Y,a as we}from"./index--qcDGAq6.js";import"./index-yBjzXJbu.js";var ne={};const{global:xe}=__STORYBOOK_MODULE_GLOBAL__;var Q=O({"../../node_modules/semver/internal/constants.js"(m,l){var r="2.0.0",a=Number.MAX_SAFE_INTEGER||9007199254740991,n=16,t=250,p=["major","premajor","minor","preminor","patch","prepatch","prerelease"];l.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:t,MAX_SAFE_INTEGER:a,RELEASE_TYPES:p,SEMVER_SPEC_VERSION:r,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}}),Z=O({"../../node_modules/semver/internal/debug.js"(m,l){var r=typeof process=="object"&&ne&&ne.NODE_DEBUG&&/\bsemver\b/i.test(ne.NODE_DEBUG)?(...a)=>console.error("SEMVER",...a):()=>{};l.exports=r}}),z=O({"../../node_modules/semver/internal/re.js"(m,l){var{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:a,MAX_LENGTH:n}=Q(),t=Z();m=l.exports={};var p=m.re=[],h=m.safeRe=[],e=m.src=[],f=m.safeSrc=[],i=m.t={},v=0,s="[a-zA-Z0-9-]",u=[["\\s",1],["\\d",n],[s,a]],E=I=>{for(let[T,A]of u)I=I.split(`${T}*`).join(`${T}{0,${A}}`).split(`${T}+`).join(`${T}{1,${A}}`);return I},o=(I,T,A)=>{let y=E(T),D=v++;t(I,D,T),i[I]=D,e[D]=T,f[D]=y,p[D]=new RegExp(T,A?"g":void 0),h[D]=new RegExp(y,A?"g":void 0)};o("NUMERICIDENTIFIER","0|[1-9]\\d*"),o("NUMERICIDENTIFIERLOOSE","\\d+"),o("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${s}*`),o("MAINVERSION",`(${e[i.NUMERICIDENTIFIER]})\\.(${e[i.NUMERICIDENTIFIER]})\\.(${e[i.NUMERICIDENTIFIER]})`),o("MAINVERSIONLOOSE",`(${e[i.NUMERICIDENTIFIERLOOSE]})\\.(${e[i.NUMERICIDENTIFIERLOOSE]})\\.(${e[i.NUMERICIDENTIFIERLOOSE]})`),o("PRERELEASEIDENTIFIER",`(?:${e[i.NUMERICIDENTIFIER]}|${e[i.NONNUMERICIDENTIFIER]})`),o("PRERELEASEIDENTIFIERLOOSE",`(?:${e[i.NUMERICIDENTIFIERLOOSE]}|${e[i.NONNUMERICIDENTIFIER]})`),o("PRERELEASE",`(?:-(${e[i.PRERELEASEIDENTIFIER]}(?:\\.${e[i.PRERELEASEIDENTIFIER]})*))`),o("PRERELEASELOOSE",`(?:-?(${e[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${e[i.PRERELEASEIDENTIFIERLOOSE]})*))`),o("BUILDIDENTIFIER",`${s}+`),o("BUILD",`(?:\\+(${e[i.BUILDIDENTIFIER]}(?:\\.${e[i.BUILDIDENTIFIER]})*))`),o("FULLPLAIN",`v?${e[i.MAINVERSION]}${e[i.PRERELEASE]}?${e[i.BUILD]}?`),o("FULL",`^${e[i.FULLPLAIN]}$`),o("LOOSEPLAIN",`[v=\\s]*${e[i.MAINVERSIONLOOSE]}${e[i.PRERELEASELOOSE]}?${e[i.BUILD]}?`),o("LOOSE",`^${e[i.LOOSEPLAIN]}$`),o("GTLT","((?:<|>)?=?)"),o("XRANGEIDENTIFIERLOOSE",`${e[i.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),o("XRANGEIDENTIFIER",`${e[i.NUMERICIDENTIFIER]}|x|X|\\*`),o("XRANGEPLAIN",`[v=\\s]*(${e[i.XRANGEIDENTIFIER]})(?:\\.(${e[i.XRANGEIDENTIFIER]})(?:\\.(${e[i.XRANGEIDENTIFIER]})(?:${e[i.PRERELEASE]})?${e[i.BUILD]}?)?)?`),o("XRANGEPLAINLOOSE",`[v=\\s]*(${e[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${e[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${e[i.XRANGEIDENTIFIERLOOSE]})(?:${e[i.PRERELEASELOOSE]})?${e[i.BUILD]}?)?)?`),o("XRANGE",`^${e[i.GTLT]}\\s*${e[i.XRANGEPLAIN]}$`),o("XRANGELOOSE",`^${e[i.GTLT]}\\s*${e[i.XRANGEPLAINLOOSE]}$`),o("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),o("COERCE",`${e[i.COERCEPLAIN]}(?:$|[^\\d])`),o("COERCEFULL",e[i.COERCEPLAIN]+`(?:${e[i.PRERELEASE]})?(?:${e[i.BUILD]})?(?:$|[^\\d])`),o("COERCERTL",e[i.COERCE],!0),o("COERCERTLFULL",e[i.COERCEFULL],!0),o("LONETILDE","(?:~>?)"),o("TILDETRIM",`(\\s*)${e[i.LONETILDE]}\\s+`,!0),m.tildeTrimReplace="$1~",o("TILDE",`^${e[i.LONETILDE]}${e[i.XRANGEPLAIN]}$`),o("TILDELOOSE",`^${e[i.LONETILDE]}${e[i.XRANGEPLAINLOOSE]}$`),o("LONECARET","(?:\\^)"),o("CARETTRIM",`(\\s*)${e[i.LONECARET]}\\s+`,!0),m.caretTrimReplace="$1^",o("CARET",`^${e[i.LONECARET]}${e[i.XRANGEPLAIN]}$`),o("CARETLOOSE",`^${e[i.LONECARET]}${e[i.XRANGEPLAINLOOSE]}$`),o("COMPARATORLOOSE",`^${e[i.GTLT]}\\s*(${e[i.LOOSEPLAIN]})$|^$`),o("COMPARATOR",`^${e[i.GTLT]}\\s*(${e[i.FULLPLAIN]})$|^$`),o("COMPARATORTRIM",`(\\s*)${e[i.GTLT]}\\s*(${e[i.LOOSEPLAIN]}|${e[i.XRANGEPLAIN]})`,!0),m.comparatorTrimReplace="$1$2$3",o("HYPHENRANGE",`^\\s*(${e[i.XRANGEPLAIN]})\\s+-\\s+(${e[i.XRANGEPLAIN]})\\s*$`),o("HYPHENRANGELOOSE",`^\\s*(${e[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${e[i.XRANGEPLAINLOOSE]})\\s*$`),o("STAR","(<|>)?=?\\s*\\*"),o("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),o("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),me=O({"../../node_modules/semver/internal/parse-options.js"(m,l){var r=Object.freeze({loose:!0}),a=Object.freeze({}),n=t=>t?typeof t!="object"?r:t:a;l.exports=n}}),Le=O({"../../node_modules/semver/internal/identifiers.js"(m,l){var r=/^[0-9]+$/,a=(t,p)=>{let h=r.test(t),e=r.test(p);return h&&e&&(t=+t,p=+p),t===p?0:h&&!e?-1:e&&!h?1:t<p?-1:1},n=(t,p)=>a(p,t);l.exports={compareIdentifiers:a,rcompareIdentifiers:n}}}),q=O({"../../node_modules/semver/classes/semver.js"(m,l){var r=Z(),{MAX_LENGTH:a,MAX_SAFE_INTEGER:n}=Q(),{safeRe:t,safeSrc:p,t:h}=z(),e=me(),{compareIdentifiers:f}=Le(),i=class X{constructor(s,u){if(u=e(u),s instanceof X){if(s.loose===!!u.loose&&s.includePrerelease===!!u.includePrerelease)return s;s=s.version}else if(typeof s!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof s}".`);if(s.length>a)throw new TypeError(`version is longer than ${a} characters`);r("SemVer",s,u),this.options=u,this.loose=!!u.loose,this.includePrerelease=!!u.includePrerelease;let E=s.trim().match(u.loose?t[h.LOOSE]:t[h.FULL]);if(!E)throw new TypeError(`Invalid Version: ${s}`);if(this.raw=s,this.major=+E[1],this.minor=+E[2],this.patch=+E[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");E[4]?this.prerelease=E[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){let I=+o;if(I>=0&&I<n)return I}return o}):this.prerelease=[],this.build=E[5]?E[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(s){if(r("SemVer.compare",this.version,this.options,s),!(s instanceof X)){if(typeof s=="string"&&s===this.version)return 0;s=new X(s,this.options)}return s.version===this.version?0:this.compareMain(s)||this.comparePre(s)}compareMain(s){return s instanceof X||(s=new X(s,this.options)),f(this.major,s.major)||f(this.minor,s.minor)||f(this.patch,s.patch)}comparePre(s){if(s instanceof X||(s=new X(s,this.options)),this.prerelease.length&&!s.prerelease.length)return-1;if(!this.prerelease.length&&s.prerelease.length)return 1;if(!this.prerelease.length&&!s.prerelease.length)return 0;let u=0;do{let E=this.prerelease[u],o=s.prerelease[u];if(r("prerelease compare",u,E,o),E===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(E===void 0)return-1;if(E!==o)return f(E,o)}while(++u)}compareBuild(s){s instanceof X||(s=new X(s,this.options));let u=0;do{let E=this.build[u],o=s.build[u];if(r("build compare",u,E,o),E===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(E===void 0)return-1;if(E!==o)return f(E,o)}while(++u)}inc(s,u,E){if(s.startsWith("pre")){if(!u&&E===!1)throw new Error("invalid increment argument: identifier is empty");if(u){let o=new RegExp(`^${this.options.loose?p[h.PRERELEASELOOSE]:p[h.PRERELEASE]}$`),I=`-${u}`.match(o);if(!I||I[1]!==u)throw new Error(`invalid identifier: ${u}`)}}switch(s){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",u,E);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",u,E);break;case"prepatch":this.prerelease.length=0,this.inc("patch",u,E),this.inc("pre",u,E);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",u,E),this.inc("pre",u,E);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let o=Number(E)?1:0;if(this.prerelease.length===0)this.prerelease=[o];else{let I=this.prerelease.length;for(;--I>=0;)typeof this.prerelease[I]=="number"&&(this.prerelease[I]++,I=-2);if(I===-1){if(u===this.prerelease.join(".")&&E===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(u){let I=[u,o];E===!1&&(I=[u]),f(this.prerelease[0],u)===0?isNaN(this.prerelease[1])&&(this.prerelease=I):this.prerelease=I}break}default:throw new Error(`invalid increment argument: ${s}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};l.exports=i}}),H=O({"../../node_modules/semver/functions/parse.js"(m,l){var r=q(),a=(n,t,p=!1)=>{if(n instanceof r)return n;try{return new r(n,t)}catch(h){if(!p)return null;throw h}};l.exports=a}}),je=O({"../../node_modules/semver/functions/valid.js"(m,l){var r=H(),a=(n,t)=>{let p=r(n,t);return p?p.version:null};l.exports=a}}),Pe=O({"../../node_modules/semver/functions/clean.js"(m,l){var r=H(),a=(n,t)=>{let p=r(n.trim().replace(/^[=v]+/,""),t);return p?p.version:null};l.exports=a}}),Ce=O({"../../node_modules/semver/functions/inc.js"(m,l){var r=q(),a=(n,t,p,h,e)=>{typeof p=="string"&&(e=h,h=p,p=void 0);try{return new r(n instanceof r?n.version:n,p).inc(t,h,e).version}catch{return null}};l.exports=a}}),ye=O({"../../node_modules/semver/functions/diff.js"(m,l){var r=H(),a=(n,t)=>{let p=r(n,null,!0),h=r(t,null,!0),e=p.compare(h);if(e===0)return null;let f=e>0,i=f?p:h,v=f?h:p,s=!!i.prerelease.length;if(v.prerelease.length&&!s){if(!v.patch&&!v.minor)return"major";if(v.compareMain(i)===0)return v.minor&&!v.patch?"minor":"patch"}let u=s?"pre":"";return p.major!==h.major?u+"major":p.minor!==h.minor?u+"minor":p.patch!==h.patch?u+"patch":"prerelease"};l.exports=a}}),De=O({"../../node_modules/semver/functions/major.js"(m,l){var r=q(),a=(n,t)=>new r(n,t).major;l.exports=a}}),Ge=O({"../../node_modules/semver/functions/minor.js"(m,l){var r=q(),a=(n,t)=>new r(n,t).minor;l.exports=a}}),qe=O({"../../node_modules/semver/functions/patch.js"(m,l){var r=q(),a=(n,t)=>new r(n,t).patch;l.exports=a}}),Fe=O({"../../node_modules/semver/functions/prerelease.js"(m,l){var r=H(),a=(n,t)=>{let p=r(n,t);return p&&p.prerelease.length?p.prerelease:null};l.exports=a}}),V=O({"../../node_modules/semver/functions/compare.js"(m,l){var r=q(),a=(n,t,p)=>new r(n,p).compare(new r(t,p));l.exports=a}}),Ve=O({"../../node_modules/semver/functions/rcompare.js"(m,l){var r=V(),a=(n,t,p)=>r(t,n,p);l.exports=a}}),Ue=O({"../../node_modules/semver/functions/compare-loose.js"(m,l){var r=V(),a=(n,t)=>r(n,t,!0);l.exports=a}}),ce=O({"../../node_modules/semver/functions/compare-build.js"(m,l){var r=q(),a=(n,t,p)=>{let h=new r(n,p),e=new r(t,p);return h.compare(e)||h.compareBuild(e)};l.exports=a}}),Xe=O({"../../node_modules/semver/functions/sort.js"(m,l){var r=ce(),a=(n,t)=>n.sort((p,h)=>r(p,h,t));l.exports=a}}),be=O({"../../node_modules/semver/functions/rsort.js"(m,l){var r=ce(),a=(n,t)=>n.sort((p,h)=>r(h,p,t));l.exports=a}}),J=O({"../../node_modules/semver/functions/gt.js"(m,l){var r=V(),a=(n,t,p)=>r(n,t,p)>0;l.exports=a}}),he=O({"../../node_modules/semver/functions/lt.js"(m,l){var r=V(),a=(n,t,p)=>r(n,t,p)<0;l.exports=a}}),_e=O({"../../node_modules/semver/functions/eq.js"(m,l){var r=V(),a=(n,t,p)=>r(n,t,p)===0;l.exports=a}}),Ne=O({"../../node_modules/semver/functions/neq.js"(m,l){var r=V(),a=(n,t,p)=>r(n,t,p)!==0;l.exports=a}}),fe=O({"../../node_modules/semver/functions/gte.js"(m,l){var r=V(),a=(n,t,p)=>r(n,t,p)>=0;l.exports=a}}),ve=O({"../../node_modules/semver/functions/lte.js"(m,l){var r=V(),a=(n,t,p)=>r(n,t,p)<=0;l.exports=a}}),Oe=O({"../../node_modules/semver/functions/cmp.js"(m,l){var r=_e(),a=Ne(),n=J(),t=fe(),p=he(),h=ve(),e=(f,i,v,s)=>{switch(i){case"===":return typeof f=="object"&&(f=f.version),typeof v=="object"&&(v=v.version),f===v;case"!==":return typeof f=="object"&&(f=f.version),typeof v=="object"&&(v=v.version),f!==v;case"":case"=":case"==":return r(f,v,s);case"!=":return a(f,v,s);case">":return n(f,v,s);case">=":return t(f,v,s);case"<":return p(f,v,s);case"<=":return h(f,v,s);default:throw new TypeError(`Invalid operator: ${i}`)}};l.exports=e}}),ke=O({"../../node_modules/semver/functions/coerce.js"(m,l){var r=q(),a=H(),{safeRe:n,t}=z(),p=(h,e)=>{if(h instanceof r)return h;if(typeof h=="number"&&(h=String(h)),typeof h!="string")return null;e=e||{};let f=null;if(!e.rtl)f=h.match(e.includePrerelease?n[t.COERCEFULL]:n[t.COERCE]);else{let o=e.includePrerelease?n[t.COERCERTLFULL]:n[t.COERCERTL],I;for(;(I=o.exec(h))&&(!f||f.index+f[0].length!==h.length);)(!f||I.index+I[0].length!==f.index+f[0].length)&&(f=I),o.lastIndex=I.index+I[1].length+I[2].length;o.lastIndex=-1}if(f===null)return null;let i=f[2],v=f[3]||"0",s=f[4]||"0",u=e.includePrerelease&&f[5]?`-${f[5]}`:"",E=e.includePrerelease&&f[6]?`+${f[6]}`:"";return a(`${i}.${v}.${s}${u}${E}`,e)};l.exports=p}}),Me=O({"../../node_modules/semver/internal/lrucache.js"(m,l){var r=class{constructor(){this.max=1e3,this.map=new Map}get(a){let n=this.map.get(a);if(n!==void 0)return this.map.delete(a),this.map.set(a,n),n}delete(a){return this.map.delete(a)}set(a,n){if(!this.delete(a)&&n!==void 0){if(this.map.size>=this.max){let t=this.map.keys().next().value;this.delete(t)}this.map.set(a,n)}return this}};l.exports=r}}),U=O({"../../node_modules/semver/classes/range.js"(m,l){var r=/\s+/g,a=class K{constructor(c,L){if(L=p(L),c instanceof K)return c.loose===!!L.loose&&c.includePrerelease===!!L.includePrerelease?c:new K(c.raw,L);if(c instanceof h)return this.raw=c.value,this.set=[[c]],this.formatted=void 0,this;if(this.options=L,this.loose=!!L.loose,this.includePrerelease=!!L.includePrerelease,this.raw=c.trim().replace(r," "),this.set=this.raw.split("||").map(d=>this.parseRange(d.trim())).filter(d=>d.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let d=this.set[0];if(this.set=this.set.filter(_=>!T(_[0])),this.set.length===0)this.set=[d];else if(this.set.length>1){for(let _ of this.set)if(_.length===1&&A(_[0])){this.set=[_];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let c=0;c<this.set.length;c++){c>0&&(this.formatted+="||");let L=this.set[c];for(let d=0;d<L.length;d++)d>0&&(this.formatted+=" "),this.formatted+=L[d].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(c){let L=((this.options.includePrerelease&&o)|(this.options.loose&&I))+":"+c,d=t.get(L);if(d)return d;let _=this.options.loose,R=_?i[v.HYPHENRANGELOOSE]:i[v.HYPHENRANGE];c=c.replace(R,ae(this.options.includePrerelease)),e("hyphen replace",c),c=c.replace(i[v.COMPARATORTRIM],s),e("comparator trim",c),c=c.replace(i[v.TILDETRIM],u),e("tilde trim",c),c=c.replace(i[v.CARETTRIM],E),e("caret trim",c);let N=c.split(" ").map(j=>D(j,this.options)).join(" ").split(/\s+/).map(j=>se(j,this.options));_&&(N=N.filter(j=>(e("loose invalid filter",j,this.options),!!j.match(i[v.COMPARATORLOOSE])))),e("range list",N);let w=new Map,g=N.map(j=>new h(j,this.options));for(let j of g){if(T(j))return[j];w.set(j.value,j)}w.size>1&&w.has("")&&w.delete("");let x=[...w.values()];return t.set(L,x),x}intersects(c,L){if(!(c instanceof K))throw new TypeError("a Range is required");return this.set.some(d=>y(d,L)&&c.set.some(_=>y(_,L)&&d.every(R=>_.every(N=>R.intersects(N,L)))))}test(c){if(!c)return!1;if(typeof c=="string")try{c=new f(c,this.options)}catch{return!1}for(let L=0;L<this.set.length;L++)if(ie(this.set[L],c,this.options))return!0;return!1}};l.exports=a;var n=Me(),t=new n,p=me(),h=ee(),e=Z(),f=q(),{safeRe:i,t:v,comparatorTrimReplace:s,tildeTrimReplace:u,caretTrimReplace:E}=z(),{FLAG_INCLUDE_PRERELEASE:o,FLAG_LOOSE:I}=Q(),T=$=>$.value==="<0.0.0-0",A=$=>$.value==="",y=($,c)=>{let L=!0,d=$.slice(),_=d.pop();for(;L&&d.length;)L=d.every(R=>_.intersects(R,c)),_=d.pop();return L},D=($,c)=>(e("comp",$,c),$=C($,c),e("caret",$),$=b($,c),e("tildes",$),$=S($,c),e("xrange",$),$=te($,c),e("stars",$),$),P=$=>!$||$.toLowerCase()==="x"||$==="*",b=($,c)=>$.trim().split(/\s+/).map(L=>F(L,c)).join(" "),F=($,c)=>{let L=c.loose?i[v.TILDELOOSE]:i[v.TILDE];return $.replace(L,(d,_,R,N,w)=>{e("tilde",$,d,_,R,N,w);let g;return P(_)?g="":P(R)?g=`>=${_}.0.0 <${+_+1}.0.0-0`:P(N)?g=`>=${_}.${R}.0 <${_}.${+R+1}.0-0`:w?(e("replaceTilde pr",w),g=`>=${_}.${R}.${N}-${w} <${_}.${+R+1}.0-0`):g=`>=${_}.${R}.${N} <${_}.${+R+1}.0-0`,e("tilde return",g),g})},C=($,c)=>$.trim().split(/\s+/).map(L=>G(L,c)).join(" "),G=($,c)=>{e("caret",$,c);let L=c.loose?i[v.CARETLOOSE]:i[v.CARET],d=c.includePrerelease?"-0":"";return $.replace(L,(_,R,N,w,g)=>{e("caret",$,_,R,N,w,g);let x;return P(R)?x="":P(N)?x=`>=${R}.0.0${d} <${+R+1}.0.0-0`:P(w)?R==="0"?x=`>=${R}.${N}.0${d} <${R}.${+N+1}.0-0`:x=`>=${R}.${N}.0${d} <${+R+1}.0.0-0`:g?(e("replaceCaret pr",g),R==="0"?N==="0"?x=`>=${R}.${N}.${w}-${g} <${R}.${N}.${+w+1}-0`:x=`>=${R}.${N}.${w}-${g} <${R}.${+N+1}.0-0`:x=`>=${R}.${N}.${w}-${g} <${+R+1}.0.0-0`):(e("no pr"),R==="0"?N==="0"?x=`>=${R}.${N}.${w}${d} <${R}.${N}.${+w+1}-0`:x=`>=${R}.${N}.${w}${d} <${R}.${+N+1}.0-0`:x=`>=${R}.${N}.${w} <${+R+1}.0.0-0`),e("caret return",x),x})},S=($,c)=>(e("replaceXRanges",$,c),$.split(/\s+/).map(L=>B(L,c)).join(" ")),B=($,c)=>{$=$.trim();let L=c.loose?i[v.XRANGELOOSE]:i[v.XRANGE];return $.replace(L,(d,_,R,N,w,g)=>{e("xRange",$,d,_,R,N,w,g);let x=P(R),j=x||P(N),M=j||P(w),W=M;return _==="="&&W&&(_=""),g=c.includePrerelease?"-0":"",x?_===">"||_==="<"?d="<0.0.0-0":d="*":_&&W?(j&&(N=0),w=0,_===">"?(_=">=",j?(R=+R+1,N=0,w=0):(N=+N+1,w=0)):_==="<="&&(_="<",j?R=+R+1:N=+N+1),_==="<"&&(g="-0"),d=`${_+R}.${N}.${w}${g}`):j?d=`>=${R}.0.0${g} <${+R+1}.0.0-0`:M&&(d=`>=${R}.${N}.0${g} <${R}.${+N+1}.0-0`),e("xRange return",d),d})},te=($,c)=>(e("replaceStars",$,c),$.trim().replace(i[v.STAR],"")),se=($,c)=>(e("replaceGTE0",$,c),$.trim().replace(i[c.includePrerelease?v.GTE0PRE:v.GTE0],"")),ae=$=>(c,L,d,_,R,N,w,g,x,j,M,W)=>(P(d)?L="":P(_)?L=`>=${d}.0.0${$?"-0":""}`:P(R)?L=`>=${d}.${_}.0${$?"-0":""}`:N?L=`>=${L}`:L=`>=${L}${$?"-0":""}`,P(x)?g="":P(j)?g=`<${+x+1}.0.0-0`:P(M)?g=`<${x}.${+j+1}.0-0`:W?g=`<=${x}.${j}.${M}-${W}`:$?g=`<${x}.${j}.${+M+1}-0`:g=`<=${g}`,`${L} ${g}`.trim()),ie=($,c,L)=>{for(let d=0;d<$.length;d++)if(!$[d].test(c))return!1;if(c.prerelease.length&&!L.includePrerelease){for(let d=0;d<$.length;d++)if(e($[d].semver),$[d].semver!==h.ANY&&$[d].semver.prerelease.length>0){let _=$[d].semver;if(_.major===c.major&&_.minor===c.minor&&_.patch===c.patch)return!0}return!1}return!0}}}),ee=O({"../../node_modules/semver/classes/comparator.js"(m,l){var r=Symbol("SemVer ANY"),a=class ue{static get ANY(){return r}constructor(s,u){if(u=n(u),s instanceof ue){if(s.loose===!!u.loose)return s;s=s.value}s=s.trim().split(/\s+/).join(" "),e("comparator",s,u),this.options=u,this.loose=!!u.loose,this.parse(s),this.semver===r?this.value="":this.value=this.operator+this.semver.version,e("comp",this)}parse(s){let u=this.options.loose?t[p.COMPARATORLOOSE]:t[p.COMPARATOR],E=s.match(u);if(!E)throw new TypeError(`Invalid comparator: ${s}`);this.operator=E[1]!==void 0?E[1]:"",this.operator==="="&&(this.operator=""),E[2]?this.semver=new f(E[2],this.options.loose):this.semver=r}toString(){return this.value}test(s){if(e("Comparator.test",s,this.options.loose),this.semver===r||s===r)return!0;if(typeof s=="string")try{s=new f(s,this.options)}catch{return!1}return h(s,this.operator,this.semver,this.options)}intersects(s,u){if(!(s instanceof ue))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new i(s.value,u).test(this.value):s.operator===""?s.value===""?!0:new i(this.value,u).test(s.semver):(u=n(u),u.includePrerelease&&(this.value==="<0.0.0-0"||s.value==="<0.0.0-0")||!u.includePrerelease&&(this.value.startsWith("<0.0.0")||s.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&s.operator.startsWith(">")||this.operator.startsWith("<")&&s.operator.startsWith("<")||this.semver.version===s.semver.version&&this.operator.includes("=")&&s.operator.includes("=")||h(this.semver,"<",s.semver,u)&&this.operator.startsWith(">")&&s.operator.startsWith("<")||h(this.semver,">",s.semver,u)&&this.operator.startsWith("<")&&s.operator.startsWith(">")))}};l.exports=a;var n=me(),{safeRe:t,t:p}=z(),h=Oe(),e=Z(),f=q(),i=U()}}),re=O({"../../node_modules/semver/functions/satisfies.js"(m,l){var r=U(),a=(n,t,p)=>{try{t=new r(t,p)}catch{return!1}return t.test(n)};l.exports=a}}),He=O({"../../node_modules/semver/ranges/to-comparators.js"(m,l){var r=U(),a=(n,t)=>new r(n,t).set.map(p=>p.map(h=>h.value).join(" ").trim().split(" "));l.exports=a}}),Be=O({"../../node_modules/semver/ranges/max-satisfying.js"(m,l){var r=q(),a=U(),n=(t,p,h)=>{let e=null,f=null,i=null;try{i=new a(p,h)}catch{return null}return t.forEach(v=>{i.test(v)&&(!e||f.compare(v)===-1)&&(e=v,f=new r(e,h))}),e};l.exports=n}}),We=O({"../../node_modules/semver/ranges/min-satisfying.js"(m,l){var r=q(),a=U(),n=(t,p,h)=>{let e=null,f=null,i=null;try{i=new a(p,h)}catch{return null}return t.forEach(v=>{i.test(v)&&(!e||f.compare(v)===1)&&(e=v,f=new r(e,h))}),e};l.exports=n}}),Ye=O({"../../node_modules/semver/ranges/min-version.js"(m,l){var r=q(),a=U(),n=J(),t=(p,h)=>{p=new a(p,h);let e=new r("0.0.0");if(p.test(e)||(e=new r("0.0.0-0"),p.test(e)))return e;e=null;for(let f=0;f<p.set.length;++f){let i=p.set[f],v=null;i.forEach(s=>{let u=new r(s.semver.version);switch(s.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!v||n(u,v))&&(v=u);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${s.operator}`)}}),v&&(!e||n(e,v))&&(e=v)}return e&&p.test(e)?e:null};l.exports=t}}),ze=O({"../../node_modules/semver/ranges/valid.js"(m,l){var r=U(),a=(n,t)=>{try{return new r(n,t).range||"*"}catch{return null}};l.exports=a}}),$e=O({"../../node_modules/semver/ranges/outside.js"(m,l){var r=q(),a=ee(),{ANY:n}=a,t=U(),p=re(),h=J(),e=he(),f=ve(),i=fe(),v=(s,u,E,o)=>{s=new r(s,o),u=new t(u,o);let I,T,A,y,D;switch(E){case">":I=h,T=f,A=e,y=">",D=">=";break;case"<":I=e,T=i,A=h,y="<",D="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(p(s,u,o))return!1;for(let P=0;P<u.set.length;++P){let b=u.set[P],F=null,C=null;if(b.forEach(G=>{G.semver===n&&(G=new a(">=0.0.0")),F=F||G,C=C||G,I(G.semver,F.semver,o)?F=G:A(G.semver,C.semver,o)&&(C=G)}),F.operator===y||F.operator===D||(!C.operator||C.operator===y)&&T(s,C.semver)||C.operator===D&&A(s,C.semver))return!1}return!0};l.exports=v}}),Ke=O({"../../node_modules/semver/ranges/gtr.js"(m,l){var r=$e(),a=(n,t,p)=>r(n,t,">",p);l.exports=a}}),Qe=O({"../../node_modules/semver/ranges/ltr.js"(m,l){var r=$e(),a=(n,t,p)=>r(n,t,"<",p);l.exports=a}}),Ze=O({"../../node_modules/semver/ranges/intersects.js"(m,l){var r=U(),a=(n,t,p)=>(n=new r(n,p),t=new r(t,p),n.intersects(t,p));l.exports=a}}),Je=O({"../../node_modules/semver/ranges/simplify.js"(m,l){var r=re(),a=V();l.exports=(n,t,p)=>{let h=[],e=null,f=null,i=n.sort((E,o)=>a(E,o,p));for(let E of i)r(E,t,p)?(f=E,e||(e=E)):(f&&h.push([e,f]),f=null,e=null);e&&h.push([e,null]);let v=[];for(let[E,o]of h)E===o?v.push(E):!o&&E===i[0]?v.push("*"):o?E===i[0]?v.push(`<=${o}`):v.push(`${E} - ${o}`):v.push(`>=${E}`);let s=v.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return s.length<u.length?s:t}}}),er=O({"../../node_modules/semver/ranges/subset.js"(m,l){var r=U(),a=ee(),{ANY:n}=a,t=re(),p=V(),h=(u,E,o={})=>{if(u===E)return!0;u=new r(u,o),E=new r(E,o);let I=!1;e:for(let T of u.set){for(let A of E.set){let y=i(T,A,o);if(I=I||y!==null,y)continue e}if(I)return!1}return!0},e=[new a(">=0.0.0-0")],f=[new a(">=0.0.0")],i=(u,E,o)=>{if(u===E)return!0;if(u.length===1&&u[0].semver===n){if(E.length===1&&E[0].semver===n)return!0;o.includePrerelease?u=e:u=f}if(E.length===1&&E[0].semver===n){if(o.includePrerelease)return!0;E=f}let I=new Set,T,A;for(let S of u)S.operator===">"||S.operator===">="?T=v(T,S,o):S.operator==="<"||S.operator==="<="?A=s(A,S,o):I.add(S.semver);if(I.size>1)return null;let y;if(T&&A&&(y=p(T.semver,A.semver,o),y>0||y===0&&(T.operator!==">="||A.operator!=="<=")))return null;for(let S of I){if(T&&!t(S,String(T),o)||A&&!t(S,String(A),o))return null;for(let B of E)if(!t(S,String(B),o))return!1;return!0}let D,P,b,F,C=A&&!o.includePrerelease&&A.semver.prerelease.length?A.semver:!1,G=T&&!o.includePrerelease&&T.semver.prerelease.length?T.semver:!1;C&&C.prerelease.length===1&&A.operator==="<"&&C.prerelease[0]===0&&(C=!1);for(let S of E){if(F=F||S.operator===">"||S.operator===">=",b=b||S.operator==="<"||S.operator==="<=",T){if(G&&S.semver.prerelease&&S.semver.prerelease.length&&S.semver.major===G.major&&S.semver.minor===G.minor&&S.semver.patch===G.patch&&(G=!1),S.operator===">"||S.operator===">="){if(D=v(T,S,o),D===S&&D!==T)return!1}else if(T.operator===">="&&!t(T.semver,String(S),o))return!1}if(A){if(C&&S.semver.prerelease&&S.semver.prerelease.length&&S.semver.major===C.major&&S.semver.minor===C.minor&&S.semver.patch===C.patch&&(C=!1),S.operator==="<"||S.operator==="<="){if(P=s(A,S,o),P===S&&P!==A)return!1}else if(A.operator==="<="&&!t(A.semver,String(S),o))return!1}if(!S.operator&&(A||T)&&y!==0)return!1}return!(T&&b&&!A&&y!==0||A&&F&&!T&&y!==0||G||C)},v=(u,E,o)=>{if(!u)return E;let I=p(u.semver,E.semver,o);return I>0?u:I<0||E.operator===">"&&u.operator===">="?E:u},s=(u,E,o)=>{if(!u)return E;let I=p(u.semver,E.semver,o);return I<0?u:I>0||E.operator==="<"&&u.operator==="<="?E:u};l.exports=h}}),rr=O({"../../node_modules/semver/index.js"(m,l){var r=z(),a=Q(),n=q(),t=Le(),p=H(),h=je(),e=Pe(),f=Ce(),i=ye(),v=De(),s=Ge(),u=qe(),E=Fe(),o=V(),I=Ve(),T=Ue(),A=ce(),y=Xe(),D=be(),P=J(),b=he(),F=_e(),C=Ne(),G=fe(),S=ve(),B=Oe(),te=ke(),se=ee(),ae=U(),ie=re(),$=He(),c=Be(),L=We(),d=Ye(),_=ze(),R=$e(),N=Ke(),w=Qe(),g=Ze(),x=Je(),j=er();l.exports={parse:p,valid:h,clean:e,inc:f,diff:i,major:v,minor:s,patch:u,prerelease:E,compare:o,rcompare:I,compareLoose:T,compareBuild:A,sort:y,rsort:D,gt:P,lt:b,eq:F,neq:C,gte:G,lte:S,cmp:B,coerce:te,Comparator:se,Range:ae,satisfies:ie,toComparators:$,maxSatisfying:c,minSatisfying:L,minVersion:d,validRange:_,outside:R,gtr:N,ltr:w,intersects:g,simplifyRange:x,subset:j,SemVer:n,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:a.SEMVER_SPEC_VERSION,RELEASE_TYPES:a.RELEASE_TYPES,compareIdentifiers:t.compareIdentifiers,rcompareIdentifiers:t.rcompareIdentifiers}}}),tr={};ge(tr,{beforeAll:()=>Er,decorators:()=>pr,mount:()=>or,parameters:()=>ur,render:()=>ir,renderToCanvas:()=>lr});var de=Ae(rr()),sr={...we};function Re(m){globalThis.IS_REACT_ACT_ENVIRONMENT=m}function ar(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var Se=async()=>{var m;if(typeof sr.act!="function"){let l=await Ee(()=>import("./test-utils-BE0XkMtV.js").then(r=>r.t),__vite__mapDeps([0,1,2,3]),import.meta.url);((m=l==null?void 0:l.default)==null?void 0:m.act)??l.act}return l=>l()},ir=(m,l)=>{let{id:r,component:a}=l;if(!a)throw new Error(`Unable to render story ${r} as the component annotation is missing from the default export`);return Y.createElement(a,{...m})},{FRAMEWORK_OPTIONS:le}=xe,nr=class extends k.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidMount(){let{hasError:m}=this.state,{showMain:l}=this.props;m||l()}componentDidCatch(m){let{showException:l}=this.props;l(m)}render(){let{hasError:m}=this.state,{children:l}=this.props;return m?null:l}},Ie=le!=null&&le.strictMode?k.StrictMode:k.Fragment,pe=[],oe=!1,Te=async()=>{if(oe||pe.length===0)return;oe=!0;let m=pe.shift();m&&await m(),oe=!1,Te()};async function lr({storyContext:m,unboundStoryFn:l,showMain:r,showException:a,forceRemount:n},t){let{renderElement:p,unmountElement:h}=await Ee(async()=>{const{renderElement:s,unmountElement:u}=await import("./react-18-CALspjOX.js");return{renderElement:s,unmountElement:u}},__vite__mapDeps([4,1,2,3]),import.meta.url),e=l,f=m.parameters.__isPortableStory?Y.createElement(e,{...m}):Y.createElement(nr,{showMain:r,showException:a},Y.createElement(e,{...m})),i=Ie?Y.createElement(Ie,null,f):f;n&&h(t);let v=await Se();return await new Promise(async(s,u)=>{pe.push(async()=>{try{await v(async()=>{var E,o;await p(i,t,(o=(E=m==null?void 0:m.parameters)==null?void 0:E.react)==null?void 0:o.rootOptions)}),s()}catch(E){u(E)}}),Te()}),async()=>{await v(()=>{h(t)})}}var or=m=>async l=>(l!=null&&(m.originalStoryFn=()=>l),await m.renderToCanvas(),m.canvas),ur={renderer:"react"},pr=[(m,l)=>{var n,t;if(!((t=(n=l.parameters)==null?void 0:n.react)!=null&&t.rsc))return m();let r=de.default.major(k.version),a=de.default.minor(k.version);if(r<18||r===18&&a<3)throw new Error("React Server Components require React >= 18.3");return k.createElement(k.Suspense,null,m())}],Er=async()=>{try{let{configure:m}=await Ee(async()=>{const{configure:r}=await import("./index-DrdPSA1J.js").then(a=>a.a);return{configure:r}},[],import.meta.url),l=await Se();m({unstable_advanceTimersWrapper:r=>l(r),asyncWrapper:async r=>{let a=ar();Re(!1);try{let n=await r();return await new Promise(t=>{setTimeout(()=>{t()},0),mr()&&jest.advanceTimersByTime(0)}),n}finally{Re(a)}},eventWrapper:r=>{let a;return l(()=>(a=r(),a)),a}})}catch{}};function mr(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}export{Er as beforeAll,pr as decorators,or as mount,ur as parameters,ir as render,lr as renderToCanvas};
|
|
2
|
+
import{_ as Ee}from"./iframe-BXTccXxS.js";import{_ as Ae,a as O,b as ge}from"./chunk-XP5HYGXS-BpfKkqn7.js";import{r as k,R as Y,a as we}from"./index--qcDGAq6.js";import"./index-yBjzXJbu.js";var ne={};const{global:xe}=__STORYBOOK_MODULE_GLOBAL__;var Q=O({"../../node_modules/semver/internal/constants.js"(m,l){var r="2.0.0",a=Number.MAX_SAFE_INTEGER||9007199254740991,n=16,t=250,p=["major","premajor","minor","preminor","patch","prepatch","prerelease"];l.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:t,MAX_SAFE_INTEGER:a,RELEASE_TYPES:p,SEMVER_SPEC_VERSION:r,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}}),Z=O({"../../node_modules/semver/internal/debug.js"(m,l){var r=typeof process=="object"&&ne&&ne.NODE_DEBUG&&/\bsemver\b/i.test(ne.NODE_DEBUG)?(...a)=>console.error("SEMVER",...a):()=>{};l.exports=r}}),z=O({"../../node_modules/semver/internal/re.js"(m,l){var{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:a,MAX_LENGTH:n}=Q(),t=Z();m=l.exports={};var p=m.re=[],h=m.safeRe=[],e=m.src=[],f=m.safeSrc=[],i=m.t={},v=0,s="[a-zA-Z0-9-]",u=[["\\s",1],["\\d",n],[s,a]],E=I=>{for(let[T,A]of u)I=I.split(`${T}*`).join(`${T}{0,${A}}`).split(`${T}+`).join(`${T}{1,${A}}`);return I},o=(I,T,A)=>{let y=E(T),D=v++;t(I,D,T),i[I]=D,e[D]=T,f[D]=y,p[D]=new RegExp(T,A?"g":void 0),h[D]=new RegExp(y,A?"g":void 0)};o("NUMERICIDENTIFIER","0|[1-9]\\d*"),o("NUMERICIDENTIFIERLOOSE","\\d+"),o("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${s}*`),o("MAINVERSION",`(${e[i.NUMERICIDENTIFIER]})\\.(${e[i.NUMERICIDENTIFIER]})\\.(${e[i.NUMERICIDENTIFIER]})`),o("MAINVERSIONLOOSE",`(${e[i.NUMERICIDENTIFIERLOOSE]})\\.(${e[i.NUMERICIDENTIFIERLOOSE]})\\.(${e[i.NUMERICIDENTIFIERLOOSE]})`),o("PRERELEASEIDENTIFIER",`(?:${e[i.NUMERICIDENTIFIER]}|${e[i.NONNUMERICIDENTIFIER]})`),o("PRERELEASEIDENTIFIERLOOSE",`(?:${e[i.NUMERICIDENTIFIERLOOSE]}|${e[i.NONNUMERICIDENTIFIER]})`),o("PRERELEASE",`(?:-(${e[i.PRERELEASEIDENTIFIER]}(?:\\.${e[i.PRERELEASEIDENTIFIER]})*))`),o("PRERELEASELOOSE",`(?:-?(${e[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${e[i.PRERELEASEIDENTIFIERLOOSE]})*))`),o("BUILDIDENTIFIER",`${s}+`),o("BUILD",`(?:\\+(${e[i.BUILDIDENTIFIER]}(?:\\.${e[i.BUILDIDENTIFIER]})*))`),o("FULLPLAIN",`v?${e[i.MAINVERSION]}${e[i.PRERELEASE]}?${e[i.BUILD]}?`),o("FULL",`^${e[i.FULLPLAIN]}$`),o("LOOSEPLAIN",`[v=\\s]*${e[i.MAINVERSIONLOOSE]}${e[i.PRERELEASELOOSE]}?${e[i.BUILD]}?`),o("LOOSE",`^${e[i.LOOSEPLAIN]}$`),o("GTLT","((?:<|>)?=?)"),o("XRANGEIDENTIFIERLOOSE",`${e[i.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),o("XRANGEIDENTIFIER",`${e[i.NUMERICIDENTIFIER]}|x|X|\\*`),o("XRANGEPLAIN",`[v=\\s]*(${e[i.XRANGEIDENTIFIER]})(?:\\.(${e[i.XRANGEIDENTIFIER]})(?:\\.(${e[i.XRANGEIDENTIFIER]})(?:${e[i.PRERELEASE]})?${e[i.BUILD]}?)?)?`),o("XRANGEPLAINLOOSE",`[v=\\s]*(${e[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${e[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${e[i.XRANGEIDENTIFIERLOOSE]})(?:${e[i.PRERELEASELOOSE]})?${e[i.BUILD]}?)?)?`),o("XRANGE",`^${e[i.GTLT]}\\s*${e[i.XRANGEPLAIN]}$`),o("XRANGELOOSE",`^${e[i.GTLT]}\\s*${e[i.XRANGEPLAINLOOSE]}$`),o("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),o("COERCE",`${e[i.COERCEPLAIN]}(?:$|[^\\d])`),o("COERCEFULL",e[i.COERCEPLAIN]+`(?:${e[i.PRERELEASE]})?(?:${e[i.BUILD]})?(?:$|[^\\d])`),o("COERCERTL",e[i.COERCE],!0),o("COERCERTLFULL",e[i.COERCEFULL],!0),o("LONETILDE","(?:~>?)"),o("TILDETRIM",`(\\s*)${e[i.LONETILDE]}\\s+`,!0),m.tildeTrimReplace="$1~",o("TILDE",`^${e[i.LONETILDE]}${e[i.XRANGEPLAIN]}$`),o("TILDELOOSE",`^${e[i.LONETILDE]}${e[i.XRANGEPLAINLOOSE]}$`),o("LONECARET","(?:\\^)"),o("CARETTRIM",`(\\s*)${e[i.LONECARET]}\\s+`,!0),m.caretTrimReplace="$1^",o("CARET",`^${e[i.LONECARET]}${e[i.XRANGEPLAIN]}$`),o("CARETLOOSE",`^${e[i.LONECARET]}${e[i.XRANGEPLAINLOOSE]}$`),o("COMPARATORLOOSE",`^${e[i.GTLT]}\\s*(${e[i.LOOSEPLAIN]})$|^$`),o("COMPARATOR",`^${e[i.GTLT]}\\s*(${e[i.FULLPLAIN]})$|^$`),o("COMPARATORTRIM",`(\\s*)${e[i.GTLT]}\\s*(${e[i.LOOSEPLAIN]}|${e[i.XRANGEPLAIN]})`,!0),m.comparatorTrimReplace="$1$2$3",o("HYPHENRANGE",`^\\s*(${e[i.XRANGEPLAIN]})\\s+-\\s+(${e[i.XRANGEPLAIN]})\\s*$`),o("HYPHENRANGELOOSE",`^\\s*(${e[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${e[i.XRANGEPLAINLOOSE]})\\s*$`),o("STAR","(<|>)?=?\\s*\\*"),o("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),o("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),me=O({"../../node_modules/semver/internal/parse-options.js"(m,l){var r=Object.freeze({loose:!0}),a=Object.freeze({}),n=t=>t?typeof t!="object"?r:t:a;l.exports=n}}),Le=O({"../../node_modules/semver/internal/identifiers.js"(m,l){var r=/^[0-9]+$/,a=(t,p)=>{let h=r.test(t),e=r.test(p);return h&&e&&(t=+t,p=+p),t===p?0:h&&!e?-1:e&&!h?1:t<p?-1:1},n=(t,p)=>a(p,t);l.exports={compareIdentifiers:a,rcompareIdentifiers:n}}}),q=O({"../../node_modules/semver/classes/semver.js"(m,l){var r=Z(),{MAX_LENGTH:a,MAX_SAFE_INTEGER:n}=Q(),{safeRe:t,safeSrc:p,t:h}=z(),e=me(),{compareIdentifiers:f}=Le(),i=class X{constructor(s,u){if(u=e(u),s instanceof X){if(s.loose===!!u.loose&&s.includePrerelease===!!u.includePrerelease)return s;s=s.version}else if(typeof s!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof s}".`);if(s.length>a)throw new TypeError(`version is longer than ${a} characters`);r("SemVer",s,u),this.options=u,this.loose=!!u.loose,this.includePrerelease=!!u.includePrerelease;let E=s.trim().match(u.loose?t[h.LOOSE]:t[h.FULL]);if(!E)throw new TypeError(`Invalid Version: ${s}`);if(this.raw=s,this.major=+E[1],this.minor=+E[2],this.patch=+E[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");E[4]?this.prerelease=E[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){let I=+o;if(I>=0&&I<n)return I}return o}):this.prerelease=[],this.build=E[5]?E[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(s){if(r("SemVer.compare",this.version,this.options,s),!(s instanceof X)){if(typeof s=="string"&&s===this.version)return 0;s=new X(s,this.options)}return s.version===this.version?0:this.compareMain(s)||this.comparePre(s)}compareMain(s){return s instanceof X||(s=new X(s,this.options)),f(this.major,s.major)||f(this.minor,s.minor)||f(this.patch,s.patch)}comparePre(s){if(s instanceof X||(s=new X(s,this.options)),this.prerelease.length&&!s.prerelease.length)return-1;if(!this.prerelease.length&&s.prerelease.length)return 1;if(!this.prerelease.length&&!s.prerelease.length)return 0;let u=0;do{let E=this.prerelease[u],o=s.prerelease[u];if(r("prerelease compare",u,E,o),E===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(E===void 0)return-1;if(E!==o)return f(E,o)}while(++u)}compareBuild(s){s instanceof X||(s=new X(s,this.options));let u=0;do{let E=this.build[u],o=s.build[u];if(r("build compare",u,E,o),E===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(E===void 0)return-1;if(E!==o)return f(E,o)}while(++u)}inc(s,u,E){if(s.startsWith("pre")){if(!u&&E===!1)throw new Error("invalid increment argument: identifier is empty");if(u){let o=new RegExp(`^${this.options.loose?p[h.PRERELEASELOOSE]:p[h.PRERELEASE]}$`),I=`-${u}`.match(o);if(!I||I[1]!==u)throw new Error(`invalid identifier: ${u}`)}}switch(s){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",u,E);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",u,E);break;case"prepatch":this.prerelease.length=0,this.inc("patch",u,E),this.inc("pre",u,E);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",u,E),this.inc("pre",u,E);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let o=Number(E)?1:0;if(this.prerelease.length===0)this.prerelease=[o];else{let I=this.prerelease.length;for(;--I>=0;)typeof this.prerelease[I]=="number"&&(this.prerelease[I]++,I=-2);if(I===-1){if(u===this.prerelease.join(".")&&E===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(u){let I=[u,o];E===!1&&(I=[u]),f(this.prerelease[0],u)===0?isNaN(this.prerelease[1])&&(this.prerelease=I):this.prerelease=I}break}default:throw new Error(`invalid increment argument: ${s}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};l.exports=i}}),H=O({"../../node_modules/semver/functions/parse.js"(m,l){var r=q(),a=(n,t,p=!1)=>{if(n instanceof r)return n;try{return new r(n,t)}catch(h){if(!p)return null;throw h}};l.exports=a}}),je=O({"../../node_modules/semver/functions/valid.js"(m,l){var r=H(),a=(n,t)=>{let p=r(n,t);return p?p.version:null};l.exports=a}}),Pe=O({"../../node_modules/semver/functions/clean.js"(m,l){var r=H(),a=(n,t)=>{let p=r(n.trim().replace(/^[=v]+/,""),t);return p?p.version:null};l.exports=a}}),Ce=O({"../../node_modules/semver/functions/inc.js"(m,l){var r=q(),a=(n,t,p,h,e)=>{typeof p=="string"&&(e=h,h=p,p=void 0);try{return new r(n instanceof r?n.version:n,p).inc(t,h,e).version}catch{return null}};l.exports=a}}),ye=O({"../../node_modules/semver/functions/diff.js"(m,l){var r=H(),a=(n,t)=>{let p=r(n,null,!0),h=r(t,null,!0),e=p.compare(h);if(e===0)return null;let f=e>0,i=f?p:h,v=f?h:p,s=!!i.prerelease.length;if(v.prerelease.length&&!s){if(!v.patch&&!v.minor)return"major";if(v.compareMain(i)===0)return v.minor&&!v.patch?"minor":"patch"}let u=s?"pre":"";return p.major!==h.major?u+"major":p.minor!==h.minor?u+"minor":p.patch!==h.patch?u+"patch":"prerelease"};l.exports=a}}),De=O({"../../node_modules/semver/functions/major.js"(m,l){var r=q(),a=(n,t)=>new r(n,t).major;l.exports=a}}),Ge=O({"../../node_modules/semver/functions/minor.js"(m,l){var r=q(),a=(n,t)=>new r(n,t).minor;l.exports=a}}),qe=O({"../../node_modules/semver/functions/patch.js"(m,l){var r=q(),a=(n,t)=>new r(n,t).patch;l.exports=a}}),Fe=O({"../../node_modules/semver/functions/prerelease.js"(m,l){var r=H(),a=(n,t)=>{let p=r(n,t);return p&&p.prerelease.length?p.prerelease:null};l.exports=a}}),V=O({"../../node_modules/semver/functions/compare.js"(m,l){var r=q(),a=(n,t,p)=>new r(n,p).compare(new r(t,p));l.exports=a}}),Ve=O({"../../node_modules/semver/functions/rcompare.js"(m,l){var r=V(),a=(n,t,p)=>r(t,n,p);l.exports=a}}),Ue=O({"../../node_modules/semver/functions/compare-loose.js"(m,l){var r=V(),a=(n,t)=>r(n,t,!0);l.exports=a}}),ce=O({"../../node_modules/semver/functions/compare-build.js"(m,l){var r=q(),a=(n,t,p)=>{let h=new r(n,p),e=new r(t,p);return h.compare(e)||h.compareBuild(e)};l.exports=a}}),Xe=O({"../../node_modules/semver/functions/sort.js"(m,l){var r=ce(),a=(n,t)=>n.sort((p,h)=>r(p,h,t));l.exports=a}}),be=O({"../../node_modules/semver/functions/rsort.js"(m,l){var r=ce(),a=(n,t)=>n.sort((p,h)=>r(h,p,t));l.exports=a}}),J=O({"../../node_modules/semver/functions/gt.js"(m,l){var r=V(),a=(n,t,p)=>r(n,t,p)>0;l.exports=a}}),he=O({"../../node_modules/semver/functions/lt.js"(m,l){var r=V(),a=(n,t,p)=>r(n,t,p)<0;l.exports=a}}),_e=O({"../../node_modules/semver/functions/eq.js"(m,l){var r=V(),a=(n,t,p)=>r(n,t,p)===0;l.exports=a}}),Ne=O({"../../node_modules/semver/functions/neq.js"(m,l){var r=V(),a=(n,t,p)=>r(n,t,p)!==0;l.exports=a}}),fe=O({"../../node_modules/semver/functions/gte.js"(m,l){var r=V(),a=(n,t,p)=>r(n,t,p)>=0;l.exports=a}}),ve=O({"../../node_modules/semver/functions/lte.js"(m,l){var r=V(),a=(n,t,p)=>r(n,t,p)<=0;l.exports=a}}),Oe=O({"../../node_modules/semver/functions/cmp.js"(m,l){var r=_e(),a=Ne(),n=J(),t=fe(),p=he(),h=ve(),e=(f,i,v,s)=>{switch(i){case"===":return typeof f=="object"&&(f=f.version),typeof v=="object"&&(v=v.version),f===v;case"!==":return typeof f=="object"&&(f=f.version),typeof v=="object"&&(v=v.version),f!==v;case"":case"=":case"==":return r(f,v,s);case"!=":return a(f,v,s);case">":return n(f,v,s);case">=":return t(f,v,s);case"<":return p(f,v,s);case"<=":return h(f,v,s);default:throw new TypeError(`Invalid operator: ${i}`)}};l.exports=e}}),ke=O({"../../node_modules/semver/functions/coerce.js"(m,l){var r=q(),a=H(),{safeRe:n,t}=z(),p=(h,e)=>{if(h instanceof r)return h;if(typeof h=="number"&&(h=String(h)),typeof h!="string")return null;e=e||{};let f=null;if(!e.rtl)f=h.match(e.includePrerelease?n[t.COERCEFULL]:n[t.COERCE]);else{let o=e.includePrerelease?n[t.COERCERTLFULL]:n[t.COERCERTL],I;for(;(I=o.exec(h))&&(!f||f.index+f[0].length!==h.length);)(!f||I.index+I[0].length!==f.index+f[0].length)&&(f=I),o.lastIndex=I.index+I[1].length+I[2].length;o.lastIndex=-1}if(f===null)return null;let i=f[2],v=f[3]||"0",s=f[4]||"0",u=e.includePrerelease&&f[5]?`-${f[5]}`:"",E=e.includePrerelease&&f[6]?`+${f[6]}`:"";return a(`${i}.${v}.${s}${u}${E}`,e)};l.exports=p}}),Me=O({"../../node_modules/semver/internal/lrucache.js"(m,l){var r=class{constructor(){this.max=1e3,this.map=new Map}get(a){let n=this.map.get(a);if(n!==void 0)return this.map.delete(a),this.map.set(a,n),n}delete(a){return this.map.delete(a)}set(a,n){if(!this.delete(a)&&n!==void 0){if(this.map.size>=this.max){let t=this.map.keys().next().value;this.delete(t)}this.map.set(a,n)}return this}};l.exports=r}}),U=O({"../../node_modules/semver/classes/range.js"(m,l){var r=/\s+/g,a=class K{constructor(c,L){if(L=p(L),c instanceof K)return c.loose===!!L.loose&&c.includePrerelease===!!L.includePrerelease?c:new K(c.raw,L);if(c instanceof h)return this.raw=c.value,this.set=[[c]],this.formatted=void 0,this;if(this.options=L,this.loose=!!L.loose,this.includePrerelease=!!L.includePrerelease,this.raw=c.trim().replace(r," "),this.set=this.raw.split("||").map(d=>this.parseRange(d.trim())).filter(d=>d.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let d=this.set[0];if(this.set=this.set.filter(_=>!T(_[0])),this.set.length===0)this.set=[d];else if(this.set.length>1){for(let _ of this.set)if(_.length===1&&A(_[0])){this.set=[_];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let c=0;c<this.set.length;c++){c>0&&(this.formatted+="||");let L=this.set[c];for(let d=0;d<L.length;d++)d>0&&(this.formatted+=" "),this.formatted+=L[d].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(c){let L=((this.options.includePrerelease&&o)|(this.options.loose&&I))+":"+c,d=t.get(L);if(d)return d;let _=this.options.loose,R=_?i[v.HYPHENRANGELOOSE]:i[v.HYPHENRANGE];c=c.replace(R,ae(this.options.includePrerelease)),e("hyphen replace",c),c=c.replace(i[v.COMPARATORTRIM],s),e("comparator trim",c),c=c.replace(i[v.TILDETRIM],u),e("tilde trim",c),c=c.replace(i[v.CARETTRIM],E),e("caret trim",c);let N=c.split(" ").map(j=>D(j,this.options)).join(" ").split(/\s+/).map(j=>se(j,this.options));_&&(N=N.filter(j=>(e("loose invalid filter",j,this.options),!!j.match(i[v.COMPARATORLOOSE])))),e("range list",N);let w=new Map,g=N.map(j=>new h(j,this.options));for(let j of g){if(T(j))return[j];w.set(j.value,j)}w.size>1&&w.has("")&&w.delete("");let x=[...w.values()];return t.set(L,x),x}intersects(c,L){if(!(c instanceof K))throw new TypeError("a Range is required");return this.set.some(d=>y(d,L)&&c.set.some(_=>y(_,L)&&d.every(R=>_.every(N=>R.intersects(N,L)))))}test(c){if(!c)return!1;if(typeof c=="string")try{c=new f(c,this.options)}catch{return!1}for(let L=0;L<this.set.length;L++)if(ie(this.set[L],c,this.options))return!0;return!1}};l.exports=a;var n=Me(),t=new n,p=me(),h=ee(),e=Z(),f=q(),{safeRe:i,t:v,comparatorTrimReplace:s,tildeTrimReplace:u,caretTrimReplace:E}=z(),{FLAG_INCLUDE_PRERELEASE:o,FLAG_LOOSE:I}=Q(),T=$=>$.value==="<0.0.0-0",A=$=>$.value==="",y=($,c)=>{let L=!0,d=$.slice(),_=d.pop();for(;L&&d.length;)L=d.every(R=>_.intersects(R,c)),_=d.pop();return L},D=($,c)=>(e("comp",$,c),$=C($,c),e("caret",$),$=b($,c),e("tildes",$),$=S($,c),e("xrange",$),$=te($,c),e("stars",$),$),P=$=>!$||$.toLowerCase()==="x"||$==="*",b=($,c)=>$.trim().split(/\s+/).map(L=>F(L,c)).join(" "),F=($,c)=>{let L=c.loose?i[v.TILDELOOSE]:i[v.TILDE];return $.replace(L,(d,_,R,N,w)=>{e("tilde",$,d,_,R,N,w);let g;return P(_)?g="":P(R)?g=`>=${_}.0.0 <${+_+1}.0.0-0`:P(N)?g=`>=${_}.${R}.0 <${_}.${+R+1}.0-0`:w?(e("replaceTilde pr",w),g=`>=${_}.${R}.${N}-${w} <${_}.${+R+1}.0-0`):g=`>=${_}.${R}.${N} <${_}.${+R+1}.0-0`,e("tilde return",g),g})},C=($,c)=>$.trim().split(/\s+/).map(L=>G(L,c)).join(" "),G=($,c)=>{e("caret",$,c);let L=c.loose?i[v.CARETLOOSE]:i[v.CARET],d=c.includePrerelease?"-0":"";return $.replace(L,(_,R,N,w,g)=>{e("caret",$,_,R,N,w,g);let x;return P(R)?x="":P(N)?x=`>=${R}.0.0${d} <${+R+1}.0.0-0`:P(w)?R==="0"?x=`>=${R}.${N}.0${d} <${R}.${+N+1}.0-0`:x=`>=${R}.${N}.0${d} <${+R+1}.0.0-0`:g?(e("replaceCaret pr",g),R==="0"?N==="0"?x=`>=${R}.${N}.${w}-${g} <${R}.${N}.${+w+1}-0`:x=`>=${R}.${N}.${w}-${g} <${R}.${+N+1}.0-0`:x=`>=${R}.${N}.${w}-${g} <${+R+1}.0.0-0`):(e("no pr"),R==="0"?N==="0"?x=`>=${R}.${N}.${w}${d} <${R}.${N}.${+w+1}-0`:x=`>=${R}.${N}.${w}${d} <${R}.${+N+1}.0-0`:x=`>=${R}.${N}.${w} <${+R+1}.0.0-0`),e("caret return",x),x})},S=($,c)=>(e("replaceXRanges",$,c),$.split(/\s+/).map(L=>B(L,c)).join(" ")),B=($,c)=>{$=$.trim();let L=c.loose?i[v.XRANGELOOSE]:i[v.XRANGE];return $.replace(L,(d,_,R,N,w,g)=>{e("xRange",$,d,_,R,N,w,g);let x=P(R),j=x||P(N),M=j||P(w),W=M;return _==="="&&W&&(_=""),g=c.includePrerelease?"-0":"",x?_===">"||_==="<"?d="<0.0.0-0":d="*":_&&W?(j&&(N=0),w=0,_===">"?(_=">=",j?(R=+R+1,N=0,w=0):(N=+N+1,w=0)):_==="<="&&(_="<",j?R=+R+1:N=+N+1),_==="<"&&(g="-0"),d=`${_+R}.${N}.${w}${g}`):j?d=`>=${R}.0.0${g} <${+R+1}.0.0-0`:M&&(d=`>=${R}.${N}.0${g} <${R}.${+N+1}.0-0`),e("xRange return",d),d})},te=($,c)=>(e("replaceStars",$,c),$.trim().replace(i[v.STAR],"")),se=($,c)=>(e("replaceGTE0",$,c),$.trim().replace(i[c.includePrerelease?v.GTE0PRE:v.GTE0],"")),ae=$=>(c,L,d,_,R,N,w,g,x,j,M,W)=>(P(d)?L="":P(_)?L=`>=${d}.0.0${$?"-0":""}`:P(R)?L=`>=${d}.${_}.0${$?"-0":""}`:N?L=`>=${L}`:L=`>=${L}${$?"-0":""}`,P(x)?g="":P(j)?g=`<${+x+1}.0.0-0`:P(M)?g=`<${x}.${+j+1}.0-0`:W?g=`<=${x}.${j}.${M}-${W}`:$?g=`<${x}.${j}.${+M+1}-0`:g=`<=${g}`,`${L} ${g}`.trim()),ie=($,c,L)=>{for(let d=0;d<$.length;d++)if(!$[d].test(c))return!1;if(c.prerelease.length&&!L.includePrerelease){for(let d=0;d<$.length;d++)if(e($[d].semver),$[d].semver!==h.ANY&&$[d].semver.prerelease.length>0){let _=$[d].semver;if(_.major===c.major&&_.minor===c.minor&&_.patch===c.patch)return!0}return!1}return!0}}}),ee=O({"../../node_modules/semver/classes/comparator.js"(m,l){var r=Symbol("SemVer ANY"),a=class ue{static get ANY(){return r}constructor(s,u){if(u=n(u),s instanceof ue){if(s.loose===!!u.loose)return s;s=s.value}s=s.trim().split(/\s+/).join(" "),e("comparator",s,u),this.options=u,this.loose=!!u.loose,this.parse(s),this.semver===r?this.value="":this.value=this.operator+this.semver.version,e("comp",this)}parse(s){let u=this.options.loose?t[p.COMPARATORLOOSE]:t[p.COMPARATOR],E=s.match(u);if(!E)throw new TypeError(`Invalid comparator: ${s}`);this.operator=E[1]!==void 0?E[1]:"",this.operator==="="&&(this.operator=""),E[2]?this.semver=new f(E[2],this.options.loose):this.semver=r}toString(){return this.value}test(s){if(e("Comparator.test",s,this.options.loose),this.semver===r||s===r)return!0;if(typeof s=="string")try{s=new f(s,this.options)}catch{return!1}return h(s,this.operator,this.semver,this.options)}intersects(s,u){if(!(s instanceof ue))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new i(s.value,u).test(this.value):s.operator===""?s.value===""?!0:new i(this.value,u).test(s.semver):(u=n(u),u.includePrerelease&&(this.value==="<0.0.0-0"||s.value==="<0.0.0-0")||!u.includePrerelease&&(this.value.startsWith("<0.0.0")||s.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&s.operator.startsWith(">")||this.operator.startsWith("<")&&s.operator.startsWith("<")||this.semver.version===s.semver.version&&this.operator.includes("=")&&s.operator.includes("=")||h(this.semver,"<",s.semver,u)&&this.operator.startsWith(">")&&s.operator.startsWith("<")||h(this.semver,">",s.semver,u)&&this.operator.startsWith("<")&&s.operator.startsWith(">")))}};l.exports=a;var n=me(),{safeRe:t,t:p}=z(),h=Oe(),e=Z(),f=q(),i=U()}}),re=O({"../../node_modules/semver/functions/satisfies.js"(m,l){var r=U(),a=(n,t,p)=>{try{t=new r(t,p)}catch{return!1}return t.test(n)};l.exports=a}}),He=O({"../../node_modules/semver/ranges/to-comparators.js"(m,l){var r=U(),a=(n,t)=>new r(n,t).set.map(p=>p.map(h=>h.value).join(" ").trim().split(" "));l.exports=a}}),Be=O({"../../node_modules/semver/ranges/max-satisfying.js"(m,l){var r=q(),a=U(),n=(t,p,h)=>{let e=null,f=null,i=null;try{i=new a(p,h)}catch{return null}return t.forEach(v=>{i.test(v)&&(!e||f.compare(v)===-1)&&(e=v,f=new r(e,h))}),e};l.exports=n}}),We=O({"../../node_modules/semver/ranges/min-satisfying.js"(m,l){var r=q(),a=U(),n=(t,p,h)=>{let e=null,f=null,i=null;try{i=new a(p,h)}catch{return null}return t.forEach(v=>{i.test(v)&&(!e||f.compare(v)===1)&&(e=v,f=new r(e,h))}),e};l.exports=n}}),Ye=O({"../../node_modules/semver/ranges/min-version.js"(m,l){var r=q(),a=U(),n=J(),t=(p,h)=>{p=new a(p,h);let e=new r("0.0.0");if(p.test(e)||(e=new r("0.0.0-0"),p.test(e)))return e;e=null;for(let f=0;f<p.set.length;++f){let i=p.set[f],v=null;i.forEach(s=>{let u=new r(s.semver.version);switch(s.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!v||n(u,v))&&(v=u);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${s.operator}`)}}),v&&(!e||n(e,v))&&(e=v)}return e&&p.test(e)?e:null};l.exports=t}}),ze=O({"../../node_modules/semver/ranges/valid.js"(m,l){var r=U(),a=(n,t)=>{try{return new r(n,t).range||"*"}catch{return null}};l.exports=a}}),$e=O({"../../node_modules/semver/ranges/outside.js"(m,l){var r=q(),a=ee(),{ANY:n}=a,t=U(),p=re(),h=J(),e=he(),f=ve(),i=fe(),v=(s,u,E,o)=>{s=new r(s,o),u=new t(u,o);let I,T,A,y,D;switch(E){case">":I=h,T=f,A=e,y=">",D=">=";break;case"<":I=e,T=i,A=h,y="<",D="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(p(s,u,o))return!1;for(let P=0;P<u.set.length;++P){let b=u.set[P],F=null,C=null;if(b.forEach(G=>{G.semver===n&&(G=new a(">=0.0.0")),F=F||G,C=C||G,I(G.semver,F.semver,o)?F=G:A(G.semver,C.semver,o)&&(C=G)}),F.operator===y||F.operator===D||(!C.operator||C.operator===y)&&T(s,C.semver)||C.operator===D&&A(s,C.semver))return!1}return!0};l.exports=v}}),Ke=O({"../../node_modules/semver/ranges/gtr.js"(m,l){var r=$e(),a=(n,t,p)=>r(n,t,">",p);l.exports=a}}),Qe=O({"../../node_modules/semver/ranges/ltr.js"(m,l){var r=$e(),a=(n,t,p)=>r(n,t,"<",p);l.exports=a}}),Ze=O({"../../node_modules/semver/ranges/intersects.js"(m,l){var r=U(),a=(n,t,p)=>(n=new r(n,p),t=new r(t,p),n.intersects(t,p));l.exports=a}}),Je=O({"../../node_modules/semver/ranges/simplify.js"(m,l){var r=re(),a=V();l.exports=(n,t,p)=>{let h=[],e=null,f=null,i=n.sort((E,o)=>a(E,o,p));for(let E of i)r(E,t,p)?(f=E,e||(e=E)):(f&&h.push([e,f]),f=null,e=null);e&&h.push([e,null]);let v=[];for(let[E,o]of h)E===o?v.push(E):!o&&E===i[0]?v.push("*"):o?E===i[0]?v.push(`<=${o}`):v.push(`${E} - ${o}`):v.push(`>=${E}`);let s=v.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return s.length<u.length?s:t}}}),er=O({"../../node_modules/semver/ranges/subset.js"(m,l){var r=U(),a=ee(),{ANY:n}=a,t=re(),p=V(),h=(u,E,o={})=>{if(u===E)return!0;u=new r(u,o),E=new r(E,o);let I=!1;e:for(let T of u.set){for(let A of E.set){let y=i(T,A,o);if(I=I||y!==null,y)continue e}if(I)return!1}return!0},e=[new a(">=0.0.0-0")],f=[new a(">=0.0.0")],i=(u,E,o)=>{if(u===E)return!0;if(u.length===1&&u[0].semver===n){if(E.length===1&&E[0].semver===n)return!0;o.includePrerelease?u=e:u=f}if(E.length===1&&E[0].semver===n){if(o.includePrerelease)return!0;E=f}let I=new Set,T,A;for(let S of u)S.operator===">"||S.operator===">="?T=v(T,S,o):S.operator==="<"||S.operator==="<="?A=s(A,S,o):I.add(S.semver);if(I.size>1)return null;let y;if(T&&A&&(y=p(T.semver,A.semver,o),y>0||y===0&&(T.operator!==">="||A.operator!=="<=")))return null;for(let S of I){if(T&&!t(S,String(T),o)||A&&!t(S,String(A),o))return null;for(let B of E)if(!t(S,String(B),o))return!1;return!0}let D,P,b,F,C=A&&!o.includePrerelease&&A.semver.prerelease.length?A.semver:!1,G=T&&!o.includePrerelease&&T.semver.prerelease.length?T.semver:!1;C&&C.prerelease.length===1&&A.operator==="<"&&C.prerelease[0]===0&&(C=!1);for(let S of E){if(F=F||S.operator===">"||S.operator===">=",b=b||S.operator==="<"||S.operator==="<=",T){if(G&&S.semver.prerelease&&S.semver.prerelease.length&&S.semver.major===G.major&&S.semver.minor===G.minor&&S.semver.patch===G.patch&&(G=!1),S.operator===">"||S.operator===">="){if(D=v(T,S,o),D===S&&D!==T)return!1}else if(T.operator===">="&&!t(T.semver,String(S),o))return!1}if(A){if(C&&S.semver.prerelease&&S.semver.prerelease.length&&S.semver.major===C.major&&S.semver.minor===C.minor&&S.semver.patch===C.patch&&(C=!1),S.operator==="<"||S.operator==="<="){if(P=s(A,S,o),P===S&&P!==A)return!1}else if(A.operator==="<="&&!t(A.semver,String(S),o))return!1}if(!S.operator&&(A||T)&&y!==0)return!1}return!(T&&b&&!A&&y!==0||A&&F&&!T&&y!==0||G||C)},v=(u,E,o)=>{if(!u)return E;let I=p(u.semver,E.semver,o);return I>0?u:I<0||E.operator===">"&&u.operator===">="?E:u},s=(u,E,o)=>{if(!u)return E;let I=p(u.semver,E.semver,o);return I<0?u:I>0||E.operator==="<"&&u.operator==="<="?E:u};l.exports=h}}),rr=O({"../../node_modules/semver/index.js"(m,l){var r=z(),a=Q(),n=q(),t=Le(),p=H(),h=je(),e=Pe(),f=Ce(),i=ye(),v=De(),s=Ge(),u=qe(),E=Fe(),o=V(),I=Ve(),T=Ue(),A=ce(),y=Xe(),D=be(),P=J(),b=he(),F=_e(),C=Ne(),G=fe(),S=ve(),B=Oe(),te=ke(),se=ee(),ae=U(),ie=re(),$=He(),c=Be(),L=We(),d=Ye(),_=ze(),R=$e(),N=Ke(),w=Qe(),g=Ze(),x=Je(),j=er();l.exports={parse:p,valid:h,clean:e,inc:f,diff:i,major:v,minor:s,patch:u,prerelease:E,compare:o,rcompare:I,compareLoose:T,compareBuild:A,sort:y,rsort:D,gt:P,lt:b,eq:F,neq:C,gte:G,lte:S,cmp:B,coerce:te,Comparator:se,Range:ae,satisfies:ie,toComparators:$,maxSatisfying:c,minSatisfying:L,minVersion:d,validRange:_,outside:R,gtr:N,ltr:w,intersects:g,simplifyRange:x,subset:j,SemVer:n,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:a.SEMVER_SPEC_VERSION,RELEASE_TYPES:a.RELEASE_TYPES,compareIdentifiers:t.compareIdentifiers,rcompareIdentifiers:t.rcompareIdentifiers}}}),tr={};ge(tr,{beforeAll:()=>Er,decorators:()=>pr,mount:()=>or,parameters:()=>ur,render:()=>ir,renderToCanvas:()=>lr});var de=Ae(rr()),sr={...we};function Re(m){globalThis.IS_REACT_ACT_ENVIRONMENT=m}function ar(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var Se=async()=>{var m;if(typeof sr.act!="function"){let l=await Ee(()=>import("./test-utils-BE0XkMtV.js").then(r=>r.t),__vite__mapDeps([0,1,2,3]),import.meta.url);((m=l==null?void 0:l.default)==null?void 0:m.act)??l.act}return l=>l()},ir=(m,l)=>{let{id:r,component:a}=l;if(!a)throw new Error(`Unable to render story ${r} as the component annotation is missing from the default export`);return Y.createElement(a,{...m})},{FRAMEWORK_OPTIONS:le}=xe,nr=class extends k.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidMount(){let{hasError:m}=this.state,{showMain:l}=this.props;m||l()}componentDidCatch(m){let{showException:l}=this.props;l(m)}render(){let{hasError:m}=this.state,{children:l}=this.props;return m?null:l}},Ie=le!=null&&le.strictMode?k.StrictMode:k.Fragment,pe=[],oe=!1,Te=async()=>{if(oe||pe.length===0)return;oe=!0;let m=pe.shift();m&&await m(),oe=!1,Te()};async function lr({storyContext:m,unboundStoryFn:l,showMain:r,showException:a,forceRemount:n},t){let{renderElement:p,unmountElement:h}=await Ee(async()=>{const{renderElement:s,unmountElement:u}=await import("./react-18-CALspjOX.js");return{renderElement:s,unmountElement:u}},__vite__mapDeps([4,1,2,3]),import.meta.url),e=l,f=m.parameters.__isPortableStory?Y.createElement(e,{...m}):Y.createElement(nr,{showMain:r,showException:a},Y.createElement(e,{...m})),i=Ie?Y.createElement(Ie,null,f):f;n&&h(t);let v=await Se();return await new Promise(async(s,u)=>{pe.push(async()=>{try{await v(async()=>{var E,o;await p(i,t,(o=(E=m==null?void 0:m.parameters)==null?void 0:E.react)==null?void 0:o.rootOptions)}),s()}catch(E){u(E)}}),Te()}),async()=>{await v(()=>{h(t)})}}var or=m=>async l=>(l!=null&&(m.originalStoryFn=()=>l),await m.renderToCanvas(),m.canvas),ur={renderer:"react"},pr=[(m,l)=>{var n,t;if(!((t=(n=l.parameters)==null?void 0:n.react)!=null&&t.rsc))return m();let r=de.default.major(k.version),a=de.default.minor(k.version);if(r<18||r===18&&a<3)throw new Error("React Server Components require React >= 18.3");return k.createElement(k.Suspense,null,m())}],Er=async()=>{try{let{configure:m}=await Ee(async()=>{const{configure:r}=await import("./index-DrdPSA1J.js").then(a=>a.a);return{configure:r}},[],import.meta.url),l=await Se();m({unstable_advanceTimersWrapper:r=>l(r),asyncWrapper:async r=>{let a=ar();Re(!1);try{let n=await r();return await new Promise(t=>{setTimeout(()=>{t()},0),mr()&&jest.advanceTimersByTime(0)}),n}finally{Re(a)}},eventWrapper:r=>{let a;return l(()=>(a=r(),a)),a}})}catch{}};function mr(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}export{Er as beforeAll,pr as decorators,or as mount,ur as parameters,ir as render,lr as renderToCanvas};
|