minerva-plexus-csd 1.0.8 → 1.0.10
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.
|
@@ -6193,18 +6193,12 @@ ev.displayName = "ToastContainer";
|
|
|
6193
6193
|
const zx = F(Vn)`
|
|
6194
6194
|
&.add-button {
|
|
6195
6195
|
border: 0px solid #ccc;
|
|
6196
|
-
|
|
6197
6196
|
background-color: #cccccc;
|
|
6198
|
-
|
|
6199
6197
|
padding: 8px;
|
|
6200
|
-
|
|
6201
6198
|
color: black !important;
|
|
6202
|
-
|
|
6203
6199
|
transition: all 0.3s ease;
|
|
6204
|
-
|
|
6205
6200
|
&:hover {
|
|
6206
6201
|
background-color: #efefef;
|
|
6207
|
-
|
|
6208
6202
|
border-color: #aaa;
|
|
6209
6203
|
}
|
|
6210
6204
|
}
|
|
@@ -6235,134 +6229,82 @@ const zx = F(Vn)`
|
|
|
6235
6229
|
}
|
|
6236
6230
|
};
|
|
6237
6231
|
return /* @__PURE__ */ f.jsxs("div", { children: [
|
|
6238
|
-
" ",
|
|
6239
|
-
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6232
|
+
e && /* @__PURE__ */ f.jsx("div", { style: { marginLeft: "0.5rem" }, children: /* @__PURE__ */ f.jsx(
|
|
6233
|
+
oa,
|
|
6234
|
+
{
|
|
6235
|
+
trigger: "click",
|
|
6236
|
+
rootClose: !0,
|
|
6237
|
+
placement: "top",
|
|
6238
|
+
overlay: /* @__PURE__ */ f.jsx($u, { id: "popover-email-input", style: { zIndex: 1e3 }, children: /* @__PURE__ */ f.jsx($u.Body, { children: /* @__PURE__ */ f.jsxs(
|
|
6239
|
+
"div",
|
|
6240
|
+
{
|
|
6241
|
+
style: {
|
|
6242
|
+
display: "flex",
|
|
6243
|
+
flexDirection: "column",
|
|
6244
|
+
gap: "0.5rem",
|
|
6245
|
+
margin: "0.5rem"
|
|
6246
|
+
},
|
|
6247
|
+
children: [
|
|
6248
|
+
/* @__PURE__ */ f.jsx("h3", { children: "Crear ticket" }),
|
|
6249
|
+
/* @__PURE__ */ f.jsx(
|
|
6250
|
+
RS,
|
|
6253
6251
|
{
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
/* @__PURE__ */ f.jsx(
|
|
6264
|
-
RS,
|
|
6265
|
-
{
|
|
6266
|
-
haveIcon: !0,
|
|
6267
|
-
iconClickable: !1,
|
|
6268
|
-
value: n,
|
|
6269
|
-
placeholder: "Introduce el email",
|
|
6270
|
-
onChange: (A) => r(A.target.value),
|
|
6271
|
-
id: "email",
|
|
6272
|
-
required: !0,
|
|
6273
|
-
"data-testid": "email-input",
|
|
6274
|
-
type: "email"
|
|
6275
|
-
}
|
|
6276
|
-
),
|
|
6277
|
-
" ",
|
|
6278
|
-
/* @__PURE__ */ f.jsxs(
|
|
6279
|
-
zx,
|
|
6280
|
-
{
|
|
6281
|
-
disabled: a || !Hx(n),
|
|
6282
|
-
variant: "filled",
|
|
6283
|
-
size: "middle",
|
|
6284
|
-
width: "50",
|
|
6285
|
-
color: "tertiary",
|
|
6286
|
-
className: "add-button",
|
|
6287
|
-
onClick: () => y(n),
|
|
6288
|
-
children: [
|
|
6289
|
-
" ",
|
|
6290
|
-
a ? /* @__PURE__ */ f.jsx(qu, { animation: "border", size: "sm" }) : "Enviar ticket",
|
|
6291
|
-
" "
|
|
6292
|
-
]
|
|
6293
|
-
}
|
|
6294
|
-
),
|
|
6295
|
-
" "
|
|
6296
|
-
]
|
|
6252
|
+
haveIcon: !0,
|
|
6253
|
+
iconClickable: !1,
|
|
6254
|
+
value: n,
|
|
6255
|
+
placeholder: "Introduce el email",
|
|
6256
|
+
onChange: (A) => r(A.target.value),
|
|
6257
|
+
id: "email",
|
|
6258
|
+
required: !0,
|
|
6259
|
+
"data-testid": "email-input",
|
|
6260
|
+
type: "email"
|
|
6297
6261
|
}
|
|
6298
6262
|
),
|
|
6299
|
-
|
|
6300
|
-
|
|
6301
|
-
" "
|
|
6302
|
-
] }),
|
|
6303
|
-
children: [
|
|
6304
|
-
" ",
|
|
6305
|
-
/* @__PURE__ */ f.jsxs("div", { style: { display: "inline-block", cursor: "pointer" }, children: [
|
|
6306
|
-
" ",
|
|
6307
|
-
/* @__PURE__ */ f.jsxs(
|
|
6308
|
-
oa,
|
|
6263
|
+
/* @__PURE__ */ f.jsx(
|
|
6264
|
+
zx,
|
|
6309
6265
|
{
|
|
6310
|
-
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
]
|
|
6266
|
+
disabled: a || !Hx(n),
|
|
6267
|
+
variant: "filled",
|
|
6268
|
+
size: "middle",
|
|
6269
|
+
width: "50",
|
|
6270
|
+
color: "tertiary",
|
|
6271
|
+
className: "add-button",
|
|
6272
|
+
onClick: () => y(n),
|
|
6273
|
+
children: a ? /* @__PURE__ */ f.jsx(qu, { animation: "border", size: "sm" }) : "Enviar ticket"
|
|
6319
6274
|
}
|
|
6320
|
-
)
|
|
6321
|
-
|
|
6322
|
-
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
|
|
6326
|
-
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
|
|
6349
|
-
|
|
6350
|
-
|
|
6351
|
-
|
|
6352
|
-
a ? /* @__PURE__ */ f.jsx(qu, { animation: "border", size: "sm" }) : /* @__PURE__ */ f.jsx(vd, {}),
|
|
6353
|
-
" "
|
|
6354
|
-
]
|
|
6355
|
-
}
|
|
6356
|
-
),
|
|
6357
|
-
" "
|
|
6358
|
-
]
|
|
6359
|
-
}
|
|
6360
|
-
),
|
|
6361
|
-
" "
|
|
6362
|
-
] }),
|
|
6363
|
-
" ",
|
|
6275
|
+
)
|
|
6276
|
+
]
|
|
6277
|
+
}
|
|
6278
|
+
) }) }),
|
|
6279
|
+
children: /* @__PURE__ */ f.jsx("div", { style: { display: "inline-block", cursor: "pointer" }, children: /* @__PURE__ */ f.jsx(
|
|
6280
|
+
oa,
|
|
6281
|
+
{
|
|
6282
|
+
placement: "top",
|
|
6283
|
+
overlay: /* @__PURE__ */ f.jsx(ju, { id: "tooltip-ticket-user", children: "Enviar ticket a usuario notificado" }),
|
|
6284
|
+
children: /* @__PURE__ */ f.jsx(vd, {})
|
|
6285
|
+
}
|
|
6286
|
+
) })
|
|
6287
|
+
}
|
|
6288
|
+
) }),
|
|
6289
|
+
!e && /* @__PURE__ */ f.jsx("div", { children: /* @__PURE__ */ f.jsx(
|
|
6290
|
+
oa,
|
|
6291
|
+
{
|
|
6292
|
+
placement: "top",
|
|
6293
|
+
overlay: /* @__PURE__ */ f.jsx(ju, { id: "tooltip-ticket-icon", children: "Abrir ticket de soporte" }),
|
|
6294
|
+
children: /* @__PURE__ */ f.jsx(
|
|
6295
|
+
Dy,
|
|
6296
|
+
{
|
|
6297
|
+
onClick: () => {
|
|
6298
|
+
const A = m();
|
|
6299
|
+
A ? y(A) : (u("No se pudo extraer el email del token."), v(!0));
|
|
6300
|
+
},
|
|
6301
|
+
disabled: T || a,
|
|
6302
|
+
children: a ? /* @__PURE__ */ f.jsx(qu, { animation: "border", size: "sm" }) : /* @__PURE__ */ f.jsx(vd, {})
|
|
6303
|
+
}
|
|
6304
|
+
)
|
|
6305
|
+
}
|
|
6306
|
+
) }),
|
|
6364
6307
|
/* @__PURE__ */ f.jsxs(ev, { position: "top-center", className: "p-3", children: [
|
|
6365
|
-
" ",
|
|
6366
6308
|
/* @__PURE__ */ f.jsxs(
|
|
6367
6309
|
cn,
|
|
6368
6310
|
{
|
|
@@ -6372,23 +6314,15 @@ const zx = F(Vn)`
|
|
|
6372
6314
|
autohide: !0,
|
|
6373
6315
|
bg: "success",
|
|
6374
6316
|
children: [
|
|
6375
|
-
" ",
|
|
6376
|
-
/* @__PURE__ */ f.jsxs(cn.Header, { children: [
|
|
6377
|
-
/* @__PURE__ */ f.jsx("strong", { className: "me-auto", children: "Ticket creado" }),
|
|
6378
|
-
" "
|
|
6379
|
-
] }),
|
|
6380
|
-
" ",
|
|
6317
|
+
/* @__PURE__ */ f.jsx(cn.Header, { children: /* @__PURE__ */ f.jsx("strong", { className: "me-auto", children: "Ticket creado" }) }),
|
|
6381
6318
|
/* @__PURE__ */ f.jsxs(cn.Body, { style: { color: "white" }, children: [
|
|
6382
6319
|
"El ticket con identificador ",
|
|
6383
6320
|
/* @__PURE__ */ f.jsx("strong", { children: g }),
|
|
6384
|
-
" se ha añadido. Recibirá información cuando sea tramitado."
|
|
6385
|
-
|
|
6386
|
-
] }),
|
|
6387
|
-
" "
|
|
6321
|
+
" se ha añadido. Recibirá información cuando sea tramitado."
|
|
6322
|
+
] })
|
|
6388
6323
|
]
|
|
6389
6324
|
}
|
|
6390
6325
|
),
|
|
6391
|
-
" ",
|
|
6392
6326
|
/* @__PURE__ */ f.jsxs(
|
|
6393
6327
|
cn,
|
|
6394
6328
|
{
|
|
@@ -6398,19 +6332,12 @@ const zx = F(Vn)`
|
|
|
6398
6332
|
autohide: !0,
|
|
6399
6333
|
bg: "danger",
|
|
6400
6334
|
children: [
|
|
6401
|
-
" ",
|
|
6402
|
-
/* @__PURE__ */ f.
|
|
6403
|
-
/* @__PURE__ */ f.jsx("strong", { className: "me-auto", children: "Error" }),
|
|
6404
|
-
" "
|
|
6405
|
-
] }),
|
|
6406
|
-
/* @__PURE__ */ f.jsx(cn.Body, { style: { color: "white" }, children: l }),
|
|
6407
|
-
" "
|
|
6335
|
+
/* @__PURE__ */ f.jsx(cn.Header, { children: /* @__PURE__ */ f.jsx("strong", { className: "me-auto", children: "Error" }) }),
|
|
6336
|
+
/* @__PURE__ */ f.jsx(cn.Body, { style: { color: "white" }, children: l })
|
|
6408
6337
|
]
|
|
6409
6338
|
}
|
|
6410
|
-
)
|
|
6411
|
-
|
|
6412
|
-
] }),
|
|
6413
|
-
" "
|
|
6339
|
+
)
|
|
6340
|
+
] })
|
|
6414
6341
|
] });
|
|
6415
6342
|
}, Wx = F.div.attrs({
|
|
6416
6343
|
className: "styled-chat-area-container"
|
|
@@ -37344,7 +37271,7 @@ const $9 = ({
|
|
|
37344
37271
|
createWhenLogin: a = !1,
|
|
37345
37272
|
createWhenCsd: i = !1,
|
|
37346
37273
|
showControlButtons: o = !0,
|
|
37347
|
-
chatVersion: s = "
|
|
37274
|
+
chatVersion: s = "mini",
|
|
37348
37275
|
className: l,
|
|
37349
37276
|
showLogoutButton: u = !0,
|
|
37350
37277
|
showCreateConversation: c = !0,
|
|
@@ -823,22 +823,16 @@ object-assign
|
|
|
823
823
|
Valid keys: `+JSON.stringify(Object.keys(L),null," "));var H=Ae(ee,re,K,W,J+"."+re,r);if(H)return H}return null}return S(U)}function B(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(B);if(L===null||l(L))return!0;var U=g(L);if(U){var C=U.call(L),V;if(U!==L.entries){for(;!(V=C.next()).done;)if(!B(V.value))return!1}else for(;!(V=C.next()).done;){var K=V.value;if(K&&!B(K[1]))return!1}}else return!1;return!0;default:return!1}}function X(L,U){return L==="symbol"?!0:U?U["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&U instanceof Symbol:!1}function Z(L){var U=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":X(U,L)?"symbol":U}function Y(L){if(typeof L>"u"||L===null)return""+L;var U=Z(L);if(U==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return U}function te(L){var U=Y(L);switch(U){case"array":case"object":return"an "+U;case"boolean":case"date":case"regexp":return"a "+U;default:return U}}function x(L){return!L.constructor||!L.constructor.name?p:L.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Qr}var Jr,$d;function q1(){if($d)return Jr;$d=1;var e=Kr();function t(){}function n(){}return n.resetWarningCache=t,Jr=function(){function r(o,s,l,u,c,d){if(d!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function a(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Jr}var G1={};if(G1.NODE_ENV!=="production"){var z1=Ld(),H1=!0;Vr.exports=j1()(z1.isElement,H1)}else Vr.exports=q1()();var V1=Vr.exports;const ie=Ot(V1),jd={disabled:!1};var qd={},W1=qd.NODE_ENV!=="production"?ie.oneOfType([ie.number,ie.shape({enter:ie.number,exit:ie.number,appear:ie.number}).isRequired]):null,Y1=qd.NODE_ENV!=="production"?ie.oneOfType([ie.string,ie.shape({enter:ie.string,exit:ie.string,active:ie.string}),ie.shape({enter:ie.string,enterDone:ie.string,enterActive:ie.string,exit:ie.string,exitDone:ie.string,exitActive:ie.string})]):null;const Gd=_.createContext(null);var zd=function(t){return t.scrollTop},K1={},Rn="unmounted",Ft="exited",Et="entering",Pt="entered",sr="exiting",ot=function(e){Ad(t,e);function t(r,a){var i;i=e.call(this,r,a)||this;var o=a,s=o&&!o.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=Ft,i.appearStatus=Et):l=Pt:r.unmountOnExit||r.mountOnEnter?l=Rn:l=Ft,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(a,i){var o=a.in;return o&&i.status===Rn?{status:Ft}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var i=null;if(a!==this.props){var o=this.state.status;this.props.in?o!==Et&&o!==Pt&&(i=Et):(o===Et||o===Pt)&&(i=sr)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,i,o,s;return i=o=s=a,a!=null&&typeof a!="number"&&(i=a.exit,o=a.enter,s=a.appear!==void 0?a.appear:o),{exit:i,enter:o,appear:s}},n.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===Et){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Qt.findDOMNode(this);o&&zd(o)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ft&&this.setState({status:Rn})},n.performEnter=function(a){var i=this,o=this.props.enter,s=this.context?this.context.isMounting:a,l=this.props.nodeRef?[s]:[Qt.findDOMNode(this),s],u=l[0],c=l[1],d=this.getTimeouts(),g=s?d.appear:d.enter;if(!a&&!o||jd.disabled){this.safeSetState({status:Pt},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Et},function(){i.props.onEntering(u,c),i.onTransitionEnd(g,function(){i.safeSetState({status:Pt},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var a=this,i=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:Qt.findDOMNode(this);if(!i||jd.disabled){this.safeSetState({status:Ft},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:sr},function(){a.props.onExiting(s),a.onTransitionEnd(o.exit,function(){a.safeSetState({status:Ft},function(){a.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},n.setNextCallback=function(a){var i=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,i.nextCallback=null,a(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(a,i){this.setNextCallback(i);var o=this.props.nodeRef?this.props.nodeRef.current:Qt.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===Rn)return null;var i=this.props,o=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=rr(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _.createElement(Gd.Provider,{value:null},typeof o=="function"?o(a,s):_.cloneElement(_.Children.only(o),s))},t}(_.Component);ot.contextType=Gd,ot.propTypes=K1.NODE_ENV!=="production"?{nodeRef:ie.shape({current:typeof Element>"u"?ie.any:function(e,t,n,r,a,i){var o=e[t];return ie.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,n,r,a,i)}}),children:ie.oneOfType([ie.func.isRequired,ie.element.isRequired]).isRequired,in:ie.bool,mountOnEnter:ie.bool,unmountOnExit:ie.bool,appear:ie.bool,enter:ie.bool,exit:ie.bool,timeout:function(t){var n=W1;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return n.apply(void 0,[t].concat(a))},addEndListener:ie.func,onEnter:ie.func,onEntering:ie.func,onEntered:ie.func,onExit:ie.func,onExiting:ie.func,onExited:ie.func}:{};function tn(){}ot.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:tn,onEntering:tn,onEntered:tn,onExit:tn,onExiting:tn,onExited:tn},ot.UNMOUNTED=Rn,ot.EXITED=Ft,ot.ENTERING=Et,ot.ENTERED=Pt,ot.EXITING=sr;function X1(e){return e.code==="Escape"||e.keyCode===27}function Z1(){const e=ce.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function In(e){if(!e||typeof e=="function")return null;const{major:t}=Z1();return t>=19?e.props.ref:e.ref}const ea=!!(typeof window<"u"&&window.document&&window.document.createElement);var ta=!1,na=!1;try{var ra={get passive(){return ta=!0},get once(){return na=ta=!0}};ea&&(window.addEventListener("test",ra,ra),window.removeEventListener("test",ra,!0))}catch{}function Hd(e,t,n,r){if(r&&typeof r!="boolean"&&!na){var a=r.once,i=r.capture,o=n;!na&&a&&(o=n.__once||function s(l){this.removeEventListener(t,s,i),n.call(this,l)},n.__once=o),e.addEventListener(t,o,ta?r:i)}e.addEventListener(t,n,r)}function Q1(e,t,n,r){var a=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,a),n.__once&&e.removeEventListener(t,n.__once,a)}function Ut(e,t,n,r){return Hd(e,t,n,r),function(){Q1(e,t,n,r)}}function J1(e,t,n,r){if(r===void 0&&(r=!0),e){var a=document.createEvent("HTMLEvents");a.initEvent(t,n,r),e.dispatchEvent(a)}}function ew(e){var t=Rd(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function tw(e,t,n){n===void 0&&(n=5);var r=!1,a=setTimeout(function(){r||J1(e,"transitionend",!0)},t+n),i=Ut(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(a),i()}}function nw(e,t,n,r){n==null&&(n=ew(e)||0);var a=tw(e,n,r),i=Ut(e,"transitionend",t);return function(){a(),i()}}function Vd(e,t){const n=Rd(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function rw(e,t){const n=Vd(e,"transitionDuration"),r=Vd(e,"transitionDelay"),a=nw(e,i=>{i.target===e&&(a(),t(i))},n+r)}function aw(e){e.offsetHeight}const Wd=e=>!e||typeof e=="function"?e:t=>{e.current=t};function iw(e,t){const n=Wd(e),r=Wd(t);return a=>{n&&n(a),r&&r(a)}}function nn(e,t){return _.useMemo(()=>iw(e,t),[e,t])}function lr(e){return e&&"setState"in e?Qt.findDOMNode(e):e??null}const Yd=_.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:a,onExited:i,addEndListener:o,children:s,childRef:l,...u},c)=>{const d=_.useRef(null),g=nn(d,l),p=b=>{g(lr(b))},h=b=>R=>{b&&d.current&&b(d.current,R)},v=_.useCallback(h(e),[e]),T=_.useCallback(h(t),[t]),S=_.useCallback(h(n),[n]),E=_.useCallback(h(r),[r]),m=_.useCallback(h(a),[a]),A=_.useCallback(h(i),[i]),y=_.useCallback(h(o),[o]);return f.jsx(ot,{ref:c,...u,onEnter:v,onEntered:S,onEntering:T,onExit:E,onExited:A,onExiting:m,addEndListener:y,nodeRef:d,children:typeof s=="function"?(b,R)=>s(b,{...R,ref:p}):_.cloneElement(s,{ref:p})})});Yd.displayName="TransitionWrapper";function ow(e){const t=_.useRef(e);return _.useEffect(()=>{t.current=e},[e]),t}function aa(e){const t=ow(e);return _.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function ia(){return _.useState(null)}function sw(e){const t=_.useRef(e);return _.useEffect(()=>{t.current=e},[e]),t}function st(e){const t=sw(e);return _.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function lw(e,t,n,r=!1){const a=st(n);_.useEffect(()=>{const i=typeof e=="function"?e():e;return i.addEventListener(t,a,r),()=>i.removeEventListener(t,a,r)},[e])}function uw(){const e=_.useRef(!0),t=_.useRef(()=>e.current);return _.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function cw(e){const t=_.useRef(null);return _.useEffect(()=>{t.current=e}),t.current}const dw=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Kd=typeof document<"u"||dw?_.useLayoutEffect:_.useEffect,pw=["as","disabled"];function fw(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function gw(e){return!e||e.trim()==="#"}function oa({tagName:e,disabled:t,href:n,target:r,rel:a,role:i,onClick:o,tabIndex:s=0,type:l}){e||(n!=null||r!=null||a!=null?e="a":e="button");const u={tagName:e};if(e==="button")return[{type:l||"button",disabled:t},u];const c=g=>{if((t||e==="a"&&gw(n))&&g.preventDefault(),t){g.stopPropagation();return}o==null||o(g)},d=g=>{g.key===" "&&(g.preventDefault(),c(g))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:i??"button",disabled:void 0,tabIndex:t?void 0:s,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?a:void 0,onClick:c,onKeyDown:d},u]}const Xd=ce.forwardRef((e,t)=>{let{as:n,disabled:r}=e,a=fw(e,pw);const[i,{tagName:o}]=oa(Object.assign({tagName:n,disabled:r},a));return f.jsx(o,Object.assign({},a,i,{ref:t}))});Xd.displayName="Button";const mw=["onKeyDown"];function hw(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function bw(e){return!e||e.trim()==="#"}const Zd=ce.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=hw(e,mw);const[a]=oa(Object.assign({tagName:"a"},r)),i=st(o=>{a.onKeyDown(o),n==null||n(o)});return bw(r.href)||r.role==="button"?f.jsx("a",Object.assign({ref:t},r,a,{onKeyDown:i})):f.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});Zd.displayName="Anchor";const Ew={[Et]:"show",[Pt]:"show"},ur=ce.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...a},i)=>{const o={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...a},s=_.useCallback((l,u)=>{aw(l),r==null||r(l,u)},[r]);return f.jsx(Yd,{ref:i,addEndListener:rw,...o,onEnter:s,childRef:In(t),children:(l,u)=>ce.cloneElement(t,{...u,className:Ce("fade",e,t.props.className,Ew[l],n[l])})})});ur.displayName="Fade";const yw={"aria-label":ie.string,onClick:ie.func,variant:ie.oneOf(["white"])},sa=ce.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},a)=>f.jsx("button",{ref:a,type:"button",className:Ce("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));sa.displayName="CloseButton",sa.propTypes=yw;const Qd=ce.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:a=!1,disabled:i=!1,className:o,...s},l)=>{const u=_e(t,"btn"),[c,{tagName:d}]=oa({tagName:e,disabled:i,...s}),g=d;return f.jsx(g,{...c,...s,ref:l,disabled:i,className:Ce(o,u,a&&"active",n&&`${u}-${n}`,r&&`${u}-${r}`,s.href&&i&&"disabled")})});Qd.displayName="Button";function vw(){const e=_.useRef(!0),t=_.useRef(()=>e.current);return _.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function Sw(e){const t=_.useRef(e);return t.current=e,t}function ww(e){const t=Sw(e);_.useEffect(()=>()=>t.current(),[])}const la=2**31-1;function Jd(e,t,n){const r=n-Date.now();e.current=r<=la?setTimeout(t,r):setTimeout(()=>Jd(e,t,n),la)}function ep(){const e=vw(),t=_.useRef();return ww(()=>clearTimeout(t.current)),_.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(a,i=0){e()&&(n(),i<=la?t.current=setTimeout(a,i):Jd(t,a,Date.now()+i))}return{set:r,clear:n,handleRef:t}},[])}function Tw({as:e,bsPrefix:t,className:n,...r}){t=_e(t,"col");const a=_d(),i=kd(),o=[],s=[];return a.forEach(l=>{const u=r[l];delete r[l];let c,d,g;typeof u=="object"&&u!=null?{span:c,offset:d,order:g}=u:c=u;const p=l!==i?`-${l}`:"";c&&o.push(c===!0?`${t}${p}`:`${t}${p}-${c}`),g!=null&&s.push(`order${p}-${g}`),d!=null&&s.push(`offset${p}-${d}`)}),[{...r,className:Ce(n,...o,...s)},{as:e,bsPrefix:t,spans:o}]}const ua=ce.forwardRef((e,t)=>{const[{className:n,...r},{as:a="div",bsPrefix:i,spans:o}]=Tw(e);return f.jsx(a,{...r,ref:t,className:Ce(n,!o.length&&i)})});ua.displayName="Col";var xw=Function.prototype.bind.call(Function.prototype.call,[].slice);function tp(e,t){return xw(e.querySelectorAll(t))}function Cw(e,t,n){const r=_.useRef(e!==void 0),[a,i]=_.useState(t),o=e!==void 0,s=r.current;return r.current=o,!o&&s&&a!==t&&i(t),[o?e:a,_.useCallback((...l)=>{const[u,...c]=l;let d=n==null?void 0:n(u,...c);return i(u),d},[n])]}function Aw(){const[,e]=_.useReducer(t=>t+1,0);return e}const cr=ce.createContext(null);var np=Object.prototype.hasOwnProperty;function rp(e,t,n){for(n of e.keys())if(Nn(n,t))return n}function Nn(e,t){var n,r,a;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Nn(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(a=r,a&&typeof a=="object"&&(a=rp(t,a),!a)||!t.has(a))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(a=r[0],a&&typeof a=="object"&&(a=rp(t,a),!a)||!Nn(r[1],t.get(a)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(np.call(e,n)&&++r&&!np.call(t,n)||!(n in t)||!Nn(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function _w(e){const t=uw();return[e[0],_.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var Be="top",et="bottom",tt="right",$e="left",ca="auto",On=[Be,et,tt,$e],rn="start",Ln="end",kw="clippingParents",ap="viewport",Dn="popper",Rw="reference",ip=On.reduce(function(e,t){return e.concat([t+"-"+rn,t+"-"+Ln])},[]),op=[].concat(On,[ca]).reduce(function(e,t){return e.concat([t,t+"-"+rn,t+"-"+Ln])},[]),Iw="beforeRead",Nw="read",Ow="afterRead",Lw="beforeMain",Dw="main",Mw="afterMain",Fw="beforeWrite",Pw="write",Uw="afterWrite",Bw=[Iw,Nw,Ow,Lw,Dw,Mw,Fw,Pw,Uw];function pt(e){return e.split("-")[0]}function Ye(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Bt(e){var t=Ye(e).Element;return e instanceof t||e instanceof Element}function ft(e){var t=Ye(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function da(e){if(typeof ShadowRoot>"u")return!1;var t=Ye(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var $t=Math.max,dr=Math.min,an=Math.round;function pa(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function sp(){return!/^((?!chrome|android).)*safari/i.test(pa())}function on(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,i=1;t&&ft(e)&&(a=e.offsetWidth>0&&an(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&an(r.height)/e.offsetHeight||1);var o=Bt(e)?Ye(e):window,s=o.visualViewport,l=!sp()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/a,c=(r.top+(l&&s?s.offsetTop:0))/i,d=r.width/a,g=r.height/i;return{width:d,height:g,top:c,right:u+d,bottom:c+g,left:u,x:u,y:c}}function fa(e){var t=on(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function lp(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&da(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function wt(e){return e?(e.nodeName||"").toLowerCase():null}function yt(e){return Ye(e).getComputedStyle(e)}function $w(e){return["table","td","th"].indexOf(wt(e))>=0}function Tt(e){return((Bt(e)?e.ownerDocument:e.document)||window.document).documentElement}function pr(e){return wt(e)==="html"?e:e.assignedSlot||e.parentNode||(da(e)?e.host:null)||Tt(e)}function up(e){return!ft(e)||yt(e).position==="fixed"?null:e.offsetParent}function jw(e){var t=/firefox/i.test(pa()),n=/Trident/i.test(pa());if(n&&ft(e)){var r=yt(e);if(r.position==="fixed")return null}var a=pr(e);for(da(a)&&(a=a.host);ft(a)&&["html","body"].indexOf(wt(a))<0;){var i=yt(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function Mn(e){for(var t=Ye(e),n=up(e);n&&$w(n)&&yt(n).position==="static";)n=up(n);return n&&(wt(n)==="html"||wt(n)==="body"&&yt(n).position==="static")?t:n||jw(e)||t}function ga(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Fn(e,t,n){return $t(e,dr(t,n))}function qw(e,t,n){var r=Fn(e,t,n);return r>n?n:r}function cp(){return{top:0,right:0,bottom:0,left:0}}function dp(e){return Object.assign({},cp(),e)}function pp(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Gw=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,dp(typeof t!="number"?t:pp(t,On))};function zw(e){var t,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,s=pt(n.placement),l=ga(s),u=[$e,tt].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!o)){var d=Gw(a.padding,n),g=fa(i),p=l==="y"?Be:$e,h=l==="y"?et:tt,v=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],T=o[l]-n.rects.reference[l],S=Mn(i),E=S?l==="y"?S.clientHeight||0:S.clientWidth||0:0,m=v/2-T/2,A=d[p],y=E-g[c]-d[h],b=E/2-g[c]/2+m,R=Fn(A,b,y),N=l;n.modifiersData[r]=(t={},t[N]=R,t.centerOffset=R-b,t)}}function Hw(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||lp(t.elements.popper,a)&&(t.elements.arrow=a))}const Vw={name:"arrow",enabled:!0,phase:"main",fn:zw,effect:Hw,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function sn(e){return e.split("-")[1]}var Ww={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yw(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:an(n*a)/a||0,y:an(r*a)/a||0}}function fp(e){var t,n=e.popper,r=e.popperRect,a=e.placement,i=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,g=o.x,p=g===void 0?0:g,h=o.y,v=h===void 0?0:h,T=typeof c=="function"?c({x:p,y:v}):{x:p,y:v};p=T.x,v=T.y;var S=o.hasOwnProperty("x"),E=o.hasOwnProperty("y"),m=$e,A=Be,y=window;if(u){var b=Mn(n),R="clientHeight",N="clientWidth";if(b===Ye(n)&&(b=Tt(n),yt(b).position!=="static"&&s==="absolute"&&(R="scrollHeight",N="scrollWidth")),b=b,a===Be||(a===$e||a===tt)&&i===Ln){A=et;var I=d&&b===y&&y.visualViewport?y.visualViewport.height:b[R];v-=I-r.height,v*=l?1:-1}if(a===$e||(a===Be||a===et)&&i===Ln){m=tt;var M=d&&b===y&&y.visualViewport?y.visualViewport.width:b[N];p-=M-r.width,p*=l?1:-1}}var O=Object.assign({position:s},u&&Ww),F=c===!0?Yw({x:p,y:v},Ye(n)):{x:p,y:v};if(p=F.x,v=F.y,l){var $;return Object.assign({},O,($={},$[A]=E?"0":"",$[m]=S?"0":"",$.transform=(y.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",$))}return Object.assign({},O,(t={},t[A]=E?v+"px":"",t[m]=S?p+"px":"",t.transform="",t))}function Kw(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:pt(t.placement),variation:sn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,fp(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,fp(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Xw={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Kw,data:{}};var fr={passive:!0};function Zw(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,i=a===void 0?!0:a,o=r.resize,s=o===void 0?!0:o,l=Ye(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,fr)}),s&&l.addEventListener("resize",n.update,fr),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,fr)}),s&&l.removeEventListener("resize",n.update,fr)}}const Qw={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Zw,data:{}};var Jw={left:"right",right:"left",bottom:"top",top:"bottom"};function gr(e){return e.replace(/left|right|bottom|top/g,function(t){return Jw[t]})}var eT={start:"end",end:"start"};function gp(e){return e.replace(/start|end/g,function(t){return eT[t]})}function ma(e){var t=Ye(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ha(e){return on(Tt(e)).left+ma(e).scrollLeft}function tT(e,t){var n=Ye(e),r=Tt(e),a=n.visualViewport,i=r.clientWidth,o=r.clientHeight,s=0,l=0;if(a){i=a.width,o=a.height;var u=sp();(u||!u&&t==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}return{width:i,height:o,x:s+ha(e),y:l}}function nT(e){var t,n=Tt(e),r=ma(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=$t(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=$t(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+ha(e),l=-r.scrollTop;return yt(a||n).direction==="rtl"&&(s+=$t(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:s,y:l}}function ba(e){var t=yt(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function mp(e){return["html","body","#document"].indexOf(wt(e))>=0?e.ownerDocument.body:ft(e)&&ba(e)?e:mp(pr(e))}function Pn(e,t){var n;t===void 0&&(t=[]);var r=mp(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=Ye(r),o=a?[i].concat(i.visualViewport||[],ba(r)?r:[]):r,s=t.concat(o);return a?s:s.concat(Pn(pr(o)))}function Ea(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function rT(e,t){var n=on(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function hp(e,t,n){return t===ap?Ea(tT(e,n)):Bt(t)?rT(t,n):Ea(nT(Tt(e)))}function aT(e){var t=Pn(pr(e)),n=["absolute","fixed"].indexOf(yt(e).position)>=0,r=n&&ft(e)?Mn(e):e;return Bt(r)?t.filter(function(a){return Bt(a)&&lp(a,r)&&wt(a)!=="body"}):[]}function iT(e,t,n,r){var a=t==="clippingParents"?aT(e):[].concat(t),i=[].concat(a,[n]),o=i[0],s=i.reduce(function(l,u){var c=hp(e,u,r);return l.top=$t(c.top,l.top),l.right=dr(c.right,l.right),l.bottom=dr(c.bottom,l.bottom),l.left=$t(c.left,l.left),l},hp(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function bp(e){var t=e.reference,n=e.element,r=e.placement,a=r?pt(r):null,i=r?sn(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(a){case Be:l={x:o,y:t.y-n.height};break;case et:l={x:o,y:t.y+t.height};break;case tt:l={x:t.x+t.width,y:s};break;case $e:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=a?ga(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case rn:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Ln:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function Un(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,i=n.strategy,o=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?kw:s,u=n.rootBoundary,c=u===void 0?ap:u,d=n.elementContext,g=d===void 0?Dn:d,p=n.altBoundary,h=p===void 0?!1:p,v=n.padding,T=v===void 0?0:v,S=dp(typeof T!="number"?T:pp(T,On)),E=g===Dn?Rw:Dn,m=e.rects.popper,A=e.elements[h?E:g],y=iT(Bt(A)?A:A.contextElement||Tt(e.elements.popper),l,c,o),b=on(e.elements.reference),R=bp({reference:b,element:m,placement:a}),N=Ea(Object.assign({},m,R)),I=g===Dn?N:b,M={top:y.top-I.top+S.top,bottom:I.bottom-y.bottom+S.bottom,left:y.left-I.left+S.left,right:I.right-y.right+S.right},O=e.modifiersData.offset;if(g===Dn&&O){var F=O[a];Object.keys(M).forEach(function($){var z=[tt,et].indexOf($)>=0?1:-1,B=[Be,et].indexOf($)>=0?"y":"x";M[$]+=F[B]*z})}return M}function oT(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,i=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?op:l,c=sn(r),d=c?s?ip:ip.filter(function(h){return sn(h)===c}):On,g=d.filter(function(h){return u.indexOf(h)>=0});g.length===0&&(g=d);var p=g.reduce(function(h,v){return h[v]=Un(e,{placement:v,boundary:a,rootBoundary:i,padding:o})[pt(v)],h},{});return Object.keys(p).sort(function(h,v){return p[h]-p[v]})}function sT(e){if(pt(e)===ca)return[];var t=gr(e);return[gp(e),t,gp(t)]}function lT(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,s=o===void 0?!0:o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,g=n.altBoundary,p=n.flipVariations,h=p===void 0?!0:p,v=n.allowedAutoPlacements,T=t.options.placement,S=pt(T),E=S===T,m=l||(E||!h?[gr(T)]:sT(T)),A=[T].concat(m).reduce(function(V,K){return V.concat(pt(K)===ca?oT(t,{placement:K,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:v}):K)},[]),y=t.rects.reference,b=t.rects.popper,R=new Map,N=!0,I=A[0],M=0;M<A.length;M++){var O=A[M],F=pt(O),$=sn(O)===rn,z=[Be,et].indexOf(F)>=0,B=z?"width":"height",X=Un(t,{placement:O,boundary:c,rootBoundary:d,altBoundary:g,padding:u}),Z=z?$?tt:$e:$?et:Be;y[B]>b[B]&&(Z=gr(Z));var Y=gr(Z),te=[];if(i&&te.push(X[F]<=0),s&&te.push(X[Z]<=0,X[Y]<=0),te.every(function(V){return V})){I=O,N=!1;break}R.set(O,te)}if(N)for(var x=h?3:1,L=function(K){var W=A.find(function(J){var ee=R.get(J);if(ee)return ee.slice(0,K).every(function(ne){return ne})});if(W)return I=W,"break"},U=x;U>0;U--){var C=L(U);if(C==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const uT={name:"flip",enabled:!0,phase:"main",fn:lT,requiresIfExists:["offset"],data:{_skip:!1}};function Ep(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function yp(e){return[Be,tt,et,$e].some(function(t){return e[t]>=0})}function cT(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,o=Un(t,{elementContext:"reference"}),s=Un(t,{altBoundary:!0}),l=Ep(o,r),u=Ep(s,a,i),c=yp(l),d=yp(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const dT={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:cT};function pT(e,t,n){var r=pt(e),a=[$e,Be].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],s=i[1];return o=o||0,s=(s||0)*a,[$e,tt].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function fT(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=a===void 0?[0,0]:a,o=op.reduce(function(c,d){return c[d]=pT(d,t.rects,i),c},{}),s=o[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}const gT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:fT};function mT(e){var t=e.state,n=e.name;t.modifiersData[n]=bp({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const hT={name:"popperOffsets",enabled:!0,phase:"read",fn:mT,data:{}};function bT(e){return e==="x"?"y":"x"}function ET(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,s=o===void 0?!1:o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,g=n.tether,p=g===void 0?!0:g,h=n.tetherOffset,v=h===void 0?0:h,T=Un(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),S=pt(t.placement),E=sn(t.placement),m=!E,A=ga(S),y=bT(A),b=t.modifiersData.popperOffsets,R=t.rects.reference,N=t.rects.popper,I=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,M=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(b){if(i){var $,z=A==="y"?Be:$e,B=A==="y"?et:tt,X=A==="y"?"height":"width",Z=b[A],Y=Z+T[z],te=Z-T[B],x=p?-N[X]/2:0,L=E===rn?R[X]:N[X],U=E===rn?-N[X]:-R[X],C=t.elements.arrow,V=p&&C?fa(C):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:cp(),W=K[z],J=K[B],ee=Fn(0,R[X],V[X]),ne=m?R[X]/2-x-ee-W-M.mainAxis:L-ee-W-M.mainAxis,se=m?-R[X]/2+x+ee+J+M.mainAxis:U+ee+J+M.mainAxis,re=t.elements.arrow&&Mn(t.elements.arrow),Ae=re?A==="y"?re.clientTop||0:re.clientLeft||0:0,H=($=O==null?void 0:O[A])!=null?$:0,De=Z+ne-H-Ae,lt=Z+se-H,Ze=Fn(p?dr(Y,De):Y,Z,p?$t(te,lt):te);b[A]=Ze,F[A]=Ze-Z}if(s){var ut,vn=A==="x"?Be:$e,Vt=A==="x"?et:tt,Fe=b[y],Rt=y==="y"?"height":"width",Sn=Fe+T[vn],It=Fe-T[Vt],Wt=[Be,$e].indexOf(S)!==-1,wn=(ut=O==null?void 0:O[y])!=null?ut:0,P=Wt?Sn:Fe-R[Rt]-N[Rt]-wn+M.altAxis,G=Wt?Fe+R[Rt]+N[Rt]-wn-M.altAxis:It,ae=p&&Wt?qw(P,Fe,G):Fn(p?P:Sn,Fe,p?G:It);b[y]=ae,F[y]=ae-Fe}t.modifiersData[r]=F}}const yT={name:"preventOverflow",enabled:!0,phase:"main",fn:ET,requiresIfExists:["offset"]};function vT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ST(e){return e===Ye(e)||!ft(e)?ma(e):vT(e)}function wT(e){var t=e.getBoundingClientRect(),n=an(t.width)/e.offsetWidth||1,r=an(t.height)/e.offsetHeight||1;return n!==1||r!==1}function TT(e,t,n){n===void 0&&(n=!1);var r=ft(t),a=ft(t)&&wT(t),i=Tt(t),o=on(e,a,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((wt(t)!=="body"||ba(i))&&(s=ST(t)),ft(t)?(l=on(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=ha(i))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function xT(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function a(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&a(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),r}function CT(e){var t=xT(e);return Bw.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function AT(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function _T(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var vp={placement:"bottom",modifiers:[],strategy:"absolute"};function Sp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function kT(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,i=a===void 0?vp:a;return function(s,l,u){u===void 0&&(u=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},vp,i),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],g=!1,p={state:c,setOptions:function(S){var E=typeof S=="function"?S(c.options):S;v(),c.options=Object.assign({},i,c.options,E),c.scrollParents={reference:Bt(s)?Pn(s):s.contextElement?Pn(s.contextElement):[],popper:Pn(l)};var m=CT(_T([].concat(r,c.options.modifiers)));return c.orderedModifiers=m.filter(function(A){return A.enabled}),h(),p.update()},forceUpdate:function(){if(!g){var S=c.elements,E=S.reference,m=S.popper;if(Sp(E,m)){c.rects={reference:TT(E,Mn(m),c.options.strategy==="fixed"),popper:fa(m)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(M){return c.modifiersData[M.name]=Object.assign({},M.data)});for(var A=0;A<c.orderedModifiers.length;A++){if(c.reset===!0){c.reset=!1,A=-1;continue}var y=c.orderedModifiers[A],b=y.fn,R=y.options,N=R===void 0?{}:R,I=y.name;typeof b=="function"&&(c=b({state:c,options:N,name:I,instance:p})||c)}}}},update:AT(function(){return new Promise(function(T){p.forceUpdate(),T(c)})}),destroy:function(){v(),g=!0}};if(!Sp(s,l))return p;p.setOptions(u).then(function(T){!g&&u.onFirstUpdate&&u.onFirstUpdate(T)});function h(){c.orderedModifiers.forEach(function(T){var S=T.name,E=T.options,m=E===void 0?{}:E,A=T.effect;if(typeof A=="function"){var y=A({state:c,name:S,instance:p,options:m}),b=function(){};d.push(y||b)}})}function v(){d.forEach(function(T){return T()}),d=[]}return p}}const RT=kT({defaultModifiers:[dT,hT,Xw,Qw,gT,uT,yT,Vw]}),IT=["enabled","placement","strategy","modifiers"];function NT(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const OT={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},LT={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(a=>a.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,a=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&a==="tooltip"&&"setAttribute"in r){const i=r.getAttribute("aria-describedby");if(i&&i.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",i?`${i},${n.id}`:n.id)}}},DT=[];function wp(e,t,n={}){let{enabled:r=!0,placement:a="bottom",strategy:i="absolute",modifiers:o=DT}=n,s=NT(n,IT);const l=_.useRef(o),u=_.useRef(),c=_.useCallback(()=>{var T;(T=u.current)==null||T.update()},[]),d=_.useCallback(()=>{var T;(T=u.current)==null||T.forceUpdate()},[]),[g,p]=_w(_.useState({placement:a,update:c,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),h=_.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:T})=>{const S={},E={};Object.keys(T.elements).forEach(m=>{S[m]=T.styles[m],E[m]=T.attributes[m]}),p({state:T,styles:S,attributes:E,update:c,forceUpdate:d,placement:T.placement})}}),[c,d,p]),v=_.useMemo(()=>(Nn(l.current,o)||(l.current=o),l.current),[o]);return _.useEffect(()=>{!u.current||!r||u.current.setOptions({placement:a,strategy:i,modifiers:[...v,h,OT]})},[i,a,h,r,v]),_.useEffect(()=>{if(!(!r||e==null||t==null))return u.current=RT(e,t,Object.assign({},s,{placement:a,strategy:i,modifiers:[...v,LT,h]})),()=>{u.current!=null&&(u.current.destroy(),u.current=void 0,p(T=>Object.assign({},T,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),g}function ya(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var MT={},FT=MT.NODE_ENV!=="production",Tp=function(){};if(FT){var PT=function(t,n){var r=arguments.length;n=new Array(r>1?r-1:0);for(var a=1;a<r;a++)n[a-1]=arguments[a];var i=0,o="Warning: "+t.replace(/%s/g,function(){return n[i++]});typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}};Tp=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var a=2;a<r;a++)n[a-2]=arguments[a];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||PT.apply(null,[t].concat(n))}}var UT=Tp;const va=Ot(UT),xp=()=>{};function BT(e){return e.button===0}function $T(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const mr=e=>e&&("current"in e?e.current:e),Cp={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Ap(e,t=xp,{disabled:n,clickTrigger:r="click"}={}){const a=_.useRef(!1),i=_.useRef(!1),o=_.useCallback(u=>{const c=mr(e);va(!!c,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),a.current=!c||$T(u)||!BT(u)||!!ya(c,u.target)||i.current,i.current=!1},[e]),s=st(u=>{const c=mr(e);c&&ya(c,u.target)?i.current=!0:i.current=!1}),l=st(u=>{a.current||t(u)});_.useEffect(()=>{var u,c;if(n||e==null)return;const d=ar(mr(e)),g=d.defaultView||window;let p=(u=g.event)!=null?u:(c=g.parent)==null?void 0:c.event,h=null;Cp[r]&&(h=Ut(d,Cp[r],s,!0));const v=Ut(d,r,o,!0),T=Ut(d,r,E=>{if(E===p){p=void 0;return}l(E)});let S=[];return"ontouchstart"in d.documentElement&&(S=[].slice.call(d.body.children).map(E=>Ut(E,"mousemove",xp))),()=>{h==null||h(),v(),T(),S.forEach(E=>E())}},[e,n,r,o,s,l])}function jT(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function qT(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function _p({enabled:e,enableEvents:t,placement:n,flip:r,offset:a,fixed:i,containerPadding:o,arrowElement:s,popperConfig:l={}}){var u,c,d,g,p;const h=jT(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:i?"fixed":l.strategy,modifiers:qT(Object.assign({},h,{eventListeners:{enabled:t,options:(u=h.eventListeners)==null?void 0:u.options},preventOverflow:Object.assign({},h.preventOverflow,{options:o?Object.assign({padding:o},(c=h.preventOverflow)==null?void 0:c.options):(d=h.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:a},(g=h.offset)==null?void 0:g.options)},arrow:Object.assign({},h.arrow,{enabled:!!s,options:Object.assign({},(p=h.arrow)==null?void 0:p.options,{element:s})}),flip:Object.assign({enabled:!!r},h.flip)}))})}const GT=["children","usePopper"];function zT(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const HT=()=>{};function kp(e={}){const t=_.useContext(cr),[n,r]=ia(),a=_.useRef(!1),{flip:i,offset:o,rootCloseEvent:s,fixed:l=!1,placement:u,popperConfig:c={},enableEventListeners:d=!0,usePopper:g=!!t}=e,p=(t==null?void 0:t.show)==null?!!e.show:t.show;p&&!a.current&&(a.current=!0);const h=b=>{t==null||t.toggle(!1,b)},{placement:v,setMenu:T,menuElement:S,toggleElement:E}=t||{},m=wp(E,S,_p({placement:u||v||"bottom-start",enabled:g,enableEvents:d??p,offset:o,flip:i,fixed:l,arrowElement:n,popperConfig:c})),A=Object.assign({ref:T||HT,"aria-labelledby":E==null?void 0:E.id},m.attributes.popper,{style:m.styles.popper}),y={show:p,placement:v,hasShown:a.current,toggle:t==null?void 0:t.toggle,popper:g?m:null,arrowProps:g?Object.assign({ref:r},m.attributes.arrow,{style:m.styles.arrow}):{}};return Ap(S,h,{clickTrigger:s,disabled:!p}),[A,y]}function Rp(e){let{children:t,usePopper:n=!0}=e,r=zT(e,GT);const[a,i]=kp(Object.assign({},r,{usePopper:n}));return f.jsx(f.Fragment,{children:t(a,i)})}Rp.displayName="DropdownMenu";var Sa={};const hr={prefix:String(Math.round(Math.random()*1e10)),current:0},Ip=_.createContext(hr),VT=_.createContext(!1);let WT=!!(typeof window<"u"&&window.document&&window.document.createElement),wa=new WeakMap;function YT(e=!1){let t=_.useContext(Ip),n=_.useRef(null);if(n.current===null&&!e){var r,a;let i=(a=_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(r=a.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let o=wa.get(i);o==null?wa.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==o.state&&(t.current=o.id,wa.delete(i))}n.current=++t.current}return n.current}function KT(e){let t=_.useContext(Ip);t===hr&&!WT&&Sa.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=YT(!!e),r=t===hr&&Sa.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function XT(e){let t=_.useId(),[n]=_.useState(tx()),r=n||Sa.NODE_ENV==="test"?"react-aria":`react-aria${hr.prefix}`;return e||`${r}-${t}`}const ZT=typeof _.useId=="function"?XT:KT;function QT(){return!1}function JT(){return!0}function ex(e){return()=>{}}function tx(){return typeof _.useSyncExternalStore=="function"?_.useSyncExternalStore(ex,QT,JT):_.useContext(VT)}const Np=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},Op=()=>{};function Lp(){const e=ZT(),{show:t=!1,toggle:n=Op,setToggle:r,menuElement:a}=_.useContext(cr)||{},i=_.useCallback(s=>{n(!t,s)},[t,n]),o={id:e,ref:r||Op,onClick:i,"aria-expanded":!!t};return a&&Np(a)&&(o["aria-haspopup"]=!0),[o,{show:t,toggle:n}]}function Dp({children:e}){const[t,n]=Lp();return f.jsx(f.Fragment,{children:e(t,n)})}Dp.displayName="DropdownToggle";const Ta=ce.createContext(null),Mp=(e,t=null)=>e!=null?String(e):t||null,Fp=ce.createContext(null);Fp.displayName="NavContext";const nx="data-rr-ui-";function Pp(e){return`${nx}${e}`}const rx=["eventKey","disabled","onClick","active","as"];function ax(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Up({key:e,href:t,active:n,disabled:r,onClick:a}){const i=_.useContext(Ta),o=_.useContext(Fp),{activeKey:s}=o||{},l=Mp(e,t),u=n==null&&e!=null?Mp(s)===l:n;return[{onClick:st(d=>{r||(a==null||a(d),i&&!d.isPropagationStopped()&&i(l,d))}),"aria-disabled":r||void 0,"aria-selected":u,[Pp("dropdown-item")]:""},{isActive:u}]}const Bp=ce.forwardRef((e,t)=>{let{eventKey:n,disabled:r,onClick:a,active:i,as:o=Xd}=e,s=ax(e,rx);const[l]=Up({key:n,href:s.href,disabled:r,onClick:a,active:i});return f.jsx(o,Object.assign({},s,{ref:t},l))});Bp.displayName="DropdownItem";const $p=_.createContext(ea?window:void 0);$p.Provider;function jp(){return _.useContext($p)}function qp(){const e=Aw(),t=_.useRef(null),n=_.useCallback(r=>{t.current=r,e()},[e]);return[t,n]}function Bn({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:a=`* [${Pp("dropdown-item")}]`,focusFirstItemOnShow:i,placement:o="bottom-start",children:s}){const l=jp(),[u,c]=Cw(t,e,r),[d,g]=qp(),p=d.current,[h,v]=qp(),T=h.current,S=cw(u),E=_.useRef(null),m=_.useRef(!1),A=_.useContext(Ta),y=_.useCallback((O,F,$=F==null?void 0:F.type)=>{c(O,{originalEvent:F,source:$})},[c]),b=st((O,F)=>{n==null||n(O,F),y(!1,F,"select"),F.isPropagationStopped()||A==null||A(O,F)}),R=_.useMemo(()=>({toggle:y,placement:o,show:u,menuElement:p,toggleElement:T,setMenu:g,setToggle:v}),[y,o,u,p,T,g,v]);p&&S&&!u&&(m.current=p.contains(p.ownerDocument.activeElement));const N=st(()=>{T&&T.focus&&T.focus()}),I=st(()=>{const O=E.current;let F=i;if(F==null&&(F=d.current&&Np(d.current)?"keyboard":!1),F===!1||F==="keyboard"&&!/^key.+$/.test(O))return;const $=tp(d.current,a)[0];$&&$.focus&&$.focus()});_.useEffect(()=>{u?I():m.current&&(m.current=!1,N())},[u,m,N,I]),_.useEffect(()=>{E.current=null});const M=(O,F)=>{if(!d.current)return null;const $=tp(d.current,a);let z=$.indexOf(O)+F;return z=Math.max(0,Math.min(z,$.length)),$[z]};return lw(_.useCallback(()=>l.document,[l]),"keydown",O=>{var F,$;const{key:z}=O,B=O.target,X=(F=d.current)==null?void 0:F.contains(B),Z=($=h.current)==null?void 0:$.contains(B);if(/input|textarea/i.test(B.tagName)&&(z===" "||z!=="Escape"&&X||z==="Escape"&&B.type==="search")||!X&&!Z||z==="Tab"&&(!d.current||!u))return;E.current=O.type;const te={originalEvent:O,source:O.type};switch(z){case"ArrowUp":{const x=M(B,-1);x&&x.focus&&x.focus(),O.preventDefault();return}case"ArrowDown":if(O.preventDefault(),!u)c(!0,te);else{const x=M(B,1);x&&x.focus&&x.focus()}return;case"Tab":Hd(B.ownerDocument,"keyup",x=>{var L;(x.key==="Tab"&&!x.target||!((L=d.current)!=null&&L.contains(x.target)))&&c(!1,te)},{once:!0});break;case"Escape":z==="Escape"&&(O.preventDefault(),O.stopPropagation()),c(!1,te);break}}),f.jsx(Ta.Provider,{value:b,children:f.jsx(cr.Provider,{value:R,children:s})})}Bn.displayName="Dropdown",Bn.Menu=Rp,Bn.Toggle=Dp,Bn.Item=Bp;const xa=ce.createContext({});xa.displayName="DropdownContext";const Gp=ce.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:r="separator",...a},i)=>(t=_e(t,"dropdown-divider"),f.jsx(n,{ref:i,className:Ce(e,t),role:r,...a})));Gp.displayName="DropdownDivider";const zp=ce.forwardRef(({className:e,bsPrefix:t,as:n="div",role:r="heading",...a},i)=>(t=_e(t,"dropdown-header"),f.jsx(n,{ref:i,className:Ce(e,t),role:r,...a})));zp.displayName="DropdownHeader";const Hp=ce.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:a,active:i,as:o=Zd,...s},l)=>{const u=_e(e,"dropdown-item"),[c,d]=Up({key:n,href:s.href,disabled:r,onClick:a,active:i});return f.jsx(o,{...s,...c,ref:l,className:Ce(t,u,d.isActive&&"active",r&&"disabled")})});Hp.displayName="DropdownItem";const Vp=ce.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},a)=>(t=_e(t,"dropdown-item-text"),f.jsx(n,{ref:a,className:Ce(e,t),...r})));Vp.displayName="DropdownItemText";const ix=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Wp=typeof document<"u"||ix?_.useLayoutEffect:_.useEffect,Ca=ce.createContext(null);Ca.displayName="InputGroupContext";const Yp=ce.createContext(null);Yp.displayName="NavbarContext";var Kp={};function Xp(e,t){if(Kp.NODE_ENV==="production")return e;const n=_.useCallback(r=>{r==null||!r.isReactComponent||(Kp.NODE_ENV!=="production"?Td(!1,`${t} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. Use \`React.forwardRef\` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element`):Td(!1))},[t]);return nn(n,e)}var ox={};function Zp(e,t,n){const r=n?"top-end":"top-start",a=n?"top-start":"top-end",i=n?"bottom-end":"bottom-start",o=n?"bottom-start":"bottom-end",s=n?"right-start":"left-start",l=n?"right-end":"left-end",u=n?"left-start":"right-start",c=n?"left-end":"right-end";let d=e?o:i;return t==="up"?d=e?a:r:t==="end"?d=e?c:u:t==="start"?d=e?l:s:t==="down-centered"?d="bottom":t==="up-centered"&&(d="top"),d}const Qp=ce.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:r,flip:a=!0,show:i,renderOnMount:o,as:s="div",popperConfig:l,variant:u,...c},d)=>{let g=!1;const p=_.useContext(Yp),h=_e(e,"dropdown-menu"),{align:v,drop:T,isRTL:S}=_.useContext(xa);n=n||v;const E=_.useContext(Ca),m=[];if(n)if(typeof n=="object"){const O=Object.keys(n);if(ox.NODE_ENV!=="production"&&va(O.length===1,"There should only be 1 breakpoint when passing an object to `align`"),O.length){const F=O[0],$=n[F];g=$==="start",m.push(`${h}-${F}-${$}`)}}else n==="end"&&(g=!0);const A=Zp(g,T,S),[y,{hasShown:b,popper:R,show:N,toggle:I}]=kp({flip:a,rootCloseEvent:r,show:i,usePopper:!p&&m.length===0,offset:[0,2],popperConfig:l,placement:A});if(y.ref=nn(Xp(d,"DropdownMenu"),y.ref),Wp(()=>{N&&(R==null||R.update())},[N]),!b&&!o&&!E)return null;typeof s!="string"&&(y.show=N,y.close=()=>I==null?void 0:I(!1),y.align=n);let M=c.style;return R!=null&&R.placement&&(M={...c.style,...y.style},c["x-placement"]=R.placement),f.jsx(s,{...c,...y,style:M,...(m.length||p)&&{"data-bs-popper":"static"},className:Ce(t,h,N&&"show",g&&`${h}-end`,u&&`${h}-${u}`,...m)})});Qp.displayName="DropdownMenu";const Jp=ce.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:a=Qd,...i},o)=>{const s=_e(e,"dropdown-toggle"),l=_.useContext(cr);r!==void 0&&(i.bsPrefix=r);const[u]=Lp();return u.ref=nn(u.ref,Xp(o,"DropdownToggle")),f.jsx(a,{className:Ce(n,s,t&&`${s}-split`,(l==null?void 0:l.show)&&"show"),...u,...i})});Jp.displayName="DropdownToggle";const ef=ce.forwardRef((e,t)=>{const{bsPrefix:n,drop:r="down",show:a,className:i,align:o="start",onSelect:s,onToggle:l,focusFirstItemOnShow:u,as:c="div",navbar:d,autoClose:g=!0,...p}=k1(e,{show:"onToggle"}),h=_.useContext(Ca),v=_e(n,"dropdown"),T=Hr(),S=R=>g===!1?R==="click":g==="inside"?R!=="rootClose":g==="outside"?R!=="select":!0,E=aa((R,N)=>{var I;!((I=N.originalEvent)==null||(I=I.target)==null)&&I.classList.contains("dropdown-toggle")&&N.source==="mousedown"||(N.originalEvent.currentTarget===document&&(N.source!=="keydown"||N.originalEvent.key==="Escape")&&(N.source="rootClose"),S(N.source)&&(l==null||l(R,N)))}),A=Zp(o==="end",r,T),y=_.useMemo(()=>({align:o,drop:r,isRTL:T}),[o,r,T]),b={down:v,"down-centered":`${v}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return f.jsx(xa.Provider,{value:y,children:f.jsx(Bn,{placement:A,show:a,onSelect:s,onToggle:E,focusFirstItemOnShow:u,itemSelector:`.${v}-item:not(.disabled):not(:disabled)`,children:h?p.children:f.jsx(c,{...p,ref:t,className:Ce(i,a&&"show",b[r])})})})});ef.displayName="Dropdown";const $n=Object.assign(ef,{Toggle:Jp,Menu:Qp,Item:Hp,ItemText:Vp,Divider:Gp,Header:zp}),tf=e=>!e||typeof e=="function"?e:t=>{e.current=t};function sx(e,t){const n=tf(e),r=tf(t);return a=>{n&&n(a),r&&r(a)}}function br(e,t){return _.useMemo(()=>sx(e,t),[e,t])}const Aa=(e,t)=>ea?e==null?(t||ar()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function nf(e,t){const n=jp(),[r,a]=_.useState(()=>Aa(e,n==null?void 0:n.document));if(!r){const i=Aa(e);i&&a(i)}return _.useEffect(()=>{},[t,r]),_.useEffect(()=>{const i=Aa(e);i!==r&&a(i)},[e,r]),r}function lx({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:a}){const i=_.useRef(null),o=_.useRef(t),s=st(n);_.useEffect(()=>{t?o.current=!0:s(i.current)},[t,s]);const l=br(i,In(e)),u=_.cloneElement(e,{ref:l});return t?u:a||!o.current&&r?null:u}const ux=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function cx(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function dx(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:a,onExiting:i,onExited:o,addEndListener:s,children:l}=e,u=cx(e,ux);const c=_.useRef(null),d=br(c,In(l)),g=A=>y=>{A&&c.current&&A(c.current,y)},p=_.useCallback(g(t),[t]),h=_.useCallback(g(n),[n]),v=_.useCallback(g(r),[r]),T=_.useCallback(g(a),[a]),S=_.useCallback(g(i),[i]),E=_.useCallback(g(o),[o]),m=_.useCallback(g(s),[s]);return Object.assign({},u,{nodeRef:c},t&&{onEnter:p},n&&{onEntering:h},r&&{onEntered:v},a&&{onExit:T},i&&{onExiting:S},o&&{onExited:E},s&&{addEndListener:m},{children:typeof l=="function"?(A,y)=>l(A,Object.assign({},y,{ref:d})):_.cloneElement(l,{ref:d})})}const px=["component"];function fx(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const gx=ce.forwardRef((e,t)=>{let{component:n}=e,r=fx(e,px);const a=dx(r);return f.jsx(n,Object.assign({ref:t},a))});function mx({in:e,onTransition:t}){const n=_.useRef(null),r=_.useRef(!0),a=st(t);return Kd(()=>{if(!n.current)return;let i=!1;return a({in:e,element:n.current,initial:r.current,isStale:()=>i}),()=>{i=!0}},[e,a]),Kd(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function hx({children:e,in:t,onExited:n,onEntered:r,transition:a}){const[i,o]=_.useState(!t);t&&i&&o(!1);const s=mx({in:!!t,onTransition:u=>{const c=()=>{u.isStale()||(u.in?r==null||r(u.element,u.initial):(o(!0),n==null||n(u.element)))};Promise.resolve(a(u)).then(c,d=>{throw u.in||o(!0),d})}}),l=br(s,In(e));return i&&!t?null:_.cloneElement(e,{ref:l})}function bx(e,t,n){return e?f.jsx(gx,Object.assign({},n,{component:e})):t?f.jsx(hx,Object.assign({},n,{transition:t})):f.jsx(lx,Object.assign({},n))}function _a(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Ex(e,t){e.classList?e.classList.add(t):_a(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function rf(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function yx(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=rf(e.className,t):e.setAttribute("class",rf(e.className&&e.className.baseVal||"",t))}const vx=()=>{};function Sx(e,t,{disabled:n,clickTrigger:r}={}){const a=t||vx;Ap(e,a,{disabled:n,clickTrigger:r});const i=st(o=>{X1(o)&&a(o)});_.useEffect(()=>{if(n||e==null)return;const o=ar(mr(e));let s=(o.defaultView||window).event;const l=Ut(o,"keyup",u=>{if(u===s){s=void 0;return}i(u)});return()=>{l()}},[e,n,i])}const af=ce.forwardRef((e,t)=>{const{flip:n,offset:r,placement:a,containerPadding:i,popperConfig:o={},transition:s,runTransition:l}=e,[u,c]=ia(),[d,g]=ia(),p=br(c,t),h=nf(e.container),v=nf(e.target),[T,S]=_.useState(!e.show),E=wp(v,u,_p({placement:a,enableEvents:!!e.show,containerPadding:i||5,flip:n,offset:r,arrowElement:d,popperConfig:o}));e.show&&T&&S(!1);const m=(...O)=>{S(!0),e.onExited&&e.onExited(...O)},A=e.show||!T;if(Sx(u,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!A)return null;const{onExit:y,onExiting:b,onEnter:R,onEntering:N,onEntered:I}=e;let M=e.children(Object.assign({},E.attributes.popper,{style:E.styles.popper,ref:p}),{popper:E,placement:a,show:!!e.show,arrowProps:Object.assign({},E.attributes.arrow,{style:E.styles.arrow,ref:g})});return M=bx(s,l,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:M,onExit:y,onExiting:b,onExited:m,onEnter:R,onEntering:N,onEntered:I}),h?Qt.createPortal(M,h):null});af.displayName="Overlay";const of=ce.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=_e(t,"popover-header"),f.jsx(n,{ref:a,className:Ce(e,t),...r})));of.displayName="PopoverHeader";const ka=ce.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=_e(t,"popover-body"),f.jsx(n,{ref:a,className:Ce(e,t),...r})));ka.displayName="PopoverBody";function sf(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function lf(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const uf=ce.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:a,body:i,arrowProps:o,hasDoneInitialMeasure:s,popper:l,show:u,...c},d)=>{const g=_e(e,"popover"),p=Hr(),[h]=(t==null?void 0:t.split("-"))||[],v=sf(h,p);let T=r;return u&&!s&&(T={...r,...lf(l==null?void 0:l.strategy)}),f.jsxs("div",{ref:d,role:"tooltip",style:T,"x-placement":h,className:Ce(n,g,h&&`bs-popover-${v}`),...c,children:[f.jsx("div",{className:"popover-arrow",...o}),i?f.jsx(ka,{children:a}):a]})});uf.displayName="Popover";const Ra=Object.assign(uf,{Header:of,Body:ka,POPPER_OFFSET:[0,8]}),cf=ce.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:a,arrowProps:i,hasDoneInitialMeasure:o,popper:s,show:l,...u},c)=>{e=_e(e,"tooltip");const d=Hr(),[g]=(t==null?void 0:t.split("-"))||[],p=sf(g,d);let h=r;return l&&!o&&(h={...r,...lf(s==null?void 0:s.strategy)}),f.jsxs("div",{ref:c,style:h,role:"tooltip","x-placement":g,className:Ce(n,e,`bs-tooltip-${p}`),...u,children:[f.jsx("div",{className:"tooltip-arrow",...i}),f.jsx("div",{className:`${e}-inner`,children:a})]})});cf.displayName="Tooltip";const Ia=Object.assign(cf,{TOOLTIP_OFFSET:[0,6]});function wx(e){const t=_.useRef(null),n=_e(void 0,"popover"),r=_e(void 0,"tooltip"),a=_.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(_a(t.current,n))return Ra.POPPER_OFFSET;if(_a(t.current,r))return Ia.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[a]]}function Tx(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=a=>n(lr(a))),t.ref=r.__wrapped||(r.__wrapped=a=>r(lr(a)))}const df=ce.forwardRef(({children:e,transition:t=ur,popperConfig:n={},rootClose:r=!1,placement:a="top",show:i=!1,...o},s)=>{const l=_.useRef({}),[u,c]=_.useState(null),[d,g]=wx(o.offset),p=nn(s,d),h=t===!0?ur:t||void 0,v=aa(T=>{c(T),n==null||n.onFirstUpdate==null||n.onFirstUpdate(T)});return Wp(()=>{u&&o.target&&(l.current.scheduleUpdate==null||l.current.scheduleUpdate())},[u,o.target]),_.useEffect(()=>{i||c(null)},[i]),f.jsx(af,{...o,ref:p,popperConfig:{...n,modifiers:g.concat(n.modifiers||[]),onFirstUpdate:v},transition:h,rootClose:r,placement:a,show:i,children:(T,{arrowProps:S,popper:E,show:m})=>{var A;Tx(T,S);const y=E==null?void 0:E.placement,b=Object.assign(l.current,{state:E==null?void 0:E.state,scheduleUpdate:E==null?void 0:E.update,placement:y,outOfBoundaries:(E==null||(A=E.state)==null||(A=A.modifiersData.hide)==null?void 0:A.isReferenceHidden)||!1,strategy:n.strategy}),R=!!u;return typeof e=="function"?e({...T,placement:y,show:m,...!t&&m&&{className:"show"},popper:b,arrowProps:S,hasDoneInitialMeasure:R}):ce.cloneElement(e,{...T,placement:y,arrowProps:S,popper:b,hasDoneInitialMeasure:R,className:Ce(e.props.className,!t&&m&&"show"),style:{...e.props.style,...T.style}})}})});df.displayName="Overlay";var xx={};function Cx(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function pf(e,t,n){const[r]=t,a=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];(!i||i!==a)&&!ya(a,i)&&e(...t)}ie.oneOf(["click","hover","focus"]);const Na=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:a,defaultShow:i=!1,onToggle:o,delay:s,placement:l,flip:u=l&&l.indexOf("auto")!==-1,...c})=>{const d=_.useRef(null),g=nn(d,In(n)),p=ep(),h=_.useRef(""),[v,T]=Cd(a,i,o),S=Cx(s),{onFocus:E,onBlur:m,onClick:A}=typeof n!="function"?ce.Children.only(n).props:{},y=B=>{g(lr(B))},b=_.useCallback(()=>{if(p.clear(),h.current="show",!S.show){T(!0);return}p.set(()=>{h.current==="show"&&T(!0)},S.show)},[S.show,T,p]),R=_.useCallback(()=>{if(p.clear(),h.current="hide",!S.hide){T(!1);return}p.set(()=>{h.current==="hide"&&T(!1)},S.hide)},[S.hide,T,p]),N=_.useCallback((...B)=>{b(),E==null||E(...B)},[b,E]),I=_.useCallback((...B)=>{R(),m==null||m(...B)},[R,m]),M=_.useCallback((...B)=>{T(!v),A==null||A(...B)},[A,T,v]),O=_.useCallback((...B)=>{pf(b,B,"fromElement")},[b]),F=_.useCallback((...B)=>{pf(R,B,"toElement")},[R]),$=e==null?[]:[].concat(e),z={ref:y};return $.indexOf("click")!==-1&&(z.onClick=M),$.indexOf("focus")!==-1&&(z.onFocus=N,z.onBlur=I),$.indexOf("hover")!==-1&&(xx.NODE_ENV!=="production"&&va($.length>1,'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'),z.onMouseOver=O,z.onMouseOut=F),f.jsxs(f.Fragment,{children:[typeof n=="function"?n(z):_.cloneElement(n,z),f.jsx(df,{...c,show:v,onHide:R,flip:u,placement:l,popperConfig:r,target:d.current,children:t})]})},ff=ce.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},a)=>{const i=_e(e,"row"),o=_d(),s=kd(),l=`${i}-cols`,u=[];return o.forEach(c=>{const d=r[c];delete r[c];let g;d!=null&&typeof d=="object"?{cols:g}=d:g=d;const p=c!==s?`-${c}`:"";g!=null&&u.push(`${l}${p}-${g}`)}),f.jsx(n,{ref:a,...r,className:Ce(t,i,...u)})});ff.displayName="Row";const Oa=ce.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:a="div",className:i,...o},s)=>{e=_e(e,"spinner");const l=`${e}-${n}`;return f.jsx(a,{ref:s,...o,className:Ce(i,l,r&&`${l}-${r}`,t&&`text-${t}`)})});Oa.displayName="Spinner";const Ax={[Et]:"showing",[sr]:"showing show"},gf=ce.forwardRef((e,t)=>f.jsx(ur,{...e,ref:t,transitionClasses:Ax}));gf.displayName="ToastFade";const mf=ce.createContext({onClose(){}}),hf=ce.forwardRef(({bsPrefix:e,closeLabel:t="Close",closeVariant:n,closeButton:r=!0,className:a,children:i,...o},s)=>{e=_e(e,"toast-header");const l=_.useContext(mf),u=aa(c=>{l==null||l.onClose==null||l.onClose(c)});return f.jsxs("div",{ref:s,...o,className:Ce(e,a),children:[i,r&&f.jsx(sa,{"aria-label":t,variant:n,onClick:u,"data-dismiss":"toast"})]})});hf.displayName="ToastHeader";const bf=ce.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},a)=>(t=_e(t,"toast-body"),f.jsx(n,{ref:a,className:Ce(e,t),...r})));bf.displayName="ToastBody";const Ef=ce.forwardRef(({bsPrefix:e,className:t,transition:n=gf,show:r=!0,animation:a=!0,delay:i=5e3,autohide:o=!1,onClose:s,onEntered:l,onExit:u,onExiting:c,onEnter:d,onEntering:g,onExited:p,bg:h,...v},T)=>{e=_e(e,"toast");const S=_.useRef(i),E=_.useRef(s);_.useEffect(()=>{S.current=i,E.current=s},[i,s]);const m=ep(),A=!!(o&&r),y=_.useCallback(()=>{A&&(E.current==null||E.current())},[A]);_.useEffect(()=>{m.set(y,S.current)},[m,y]);const b=_.useMemo(()=>({onClose:s}),[s]),R=!!(n&&a),N=f.jsx("div",{...v,ref:T,className:Ce(e,t,h&&`bg-${h}`,!R&&(r?"show":"hide")),role:"alert","aria-live":"assertive","aria-atomic":"true"});return f.jsx(mf.Provider,{value:b,children:R&&n?f.jsx(n,{in:r,onEnter:d,onEntering:g,onEntered:l,onExit:u,onExiting:c,onExited:p,unmountOnExit:!0,children:N}):N})});Ef.displayName="Toast";const ln=Object.assign(Ef,{Body:bf,Header:hf}),_x={"top-start":"top-0 start-0","top-center":"top-0 start-50 translate-middle-x","top-end":"top-0 end-0","middle-start":"top-50 start-0 translate-middle-y","middle-center":"top-50 start-50 translate-middle","middle-end":"top-50 end-0 translate-middle-y","bottom-start":"bottom-0 start-0","bottom-center":"bottom-0 start-50 translate-middle-x","bottom-end":"bottom-0 end-0"},yf=ce.forwardRef(({bsPrefix:e,position:t,containerPosition:n,className:r,as:a="div",...i},o)=>(e=_e(e,"toast-container"),f.jsx(a,{ref:o,...i,className:Ce(e,t&&_x[t],n&&`position-${n}`,r)})));yf.displayName="ToastContainer";const kx=D(_n)`
|
|
824
824
|
&.add-button {
|
|
825
825
|
border: 0px solid #ccc;
|
|
826
|
-
|
|
827
826
|
background-color: #cccccc;
|
|
828
|
-
|
|
829
827
|
padding: 8px;
|
|
830
|
-
|
|
831
828
|
color: black !important;
|
|
832
|
-
|
|
833
829
|
transition: all 0.3s ease;
|
|
834
|
-
|
|
835
830
|
&:hover {
|
|
836
831
|
background-color: #efefef;
|
|
837
|
-
|
|
838
832
|
border-color: #aaa;
|
|
839
833
|
}
|
|
840
834
|
}
|
|
841
|
-
`,Rx=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),vf=({serviceTicketingNoUSer:e})=>{const{selectedConversation:t}=Mt(),[n,r]=_.useState(""),[a,i]=_.useState(!1),[o,s]=_.useState(null),[l,u]=_.useState(null),[c,d]=_.useState(!1),[g,p]=_.useState(null),[h,v]=_.useState(!1),{isBotWriting:T}=tr(),S=t==null?void 0:t.id,E=async A=>{if(!S){u("No hay conversación seleccionada"),v(!0);return}i(!0),u(null),s(null);try{const y=await y1(S,A);y.success&&y.ticket_id?(p(y.ticket_id),s("✅ Ticket creado correctamente"),d(!0)):(u("❌ Error: No se pudo crear el ticket."),v(!0))}catch(y){u(`❌ Error: ${y.message}`),v(!0)}finally{i(!1)}},m=()=>{const A=xS.get("access_token");if(!A)return"";try{return JSON.parse(atob(A.split(".")[1])).email||""}catch(y){return console.error("No se pudo leer el token:",y),""}};return f.jsxs("div",{children:[
|
|
835
|
+
`,Rx=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),vf=({serviceTicketingNoUSer:e})=>{const{selectedConversation:t}=Mt(),[n,r]=_.useState(""),[a,i]=_.useState(!1),[o,s]=_.useState(null),[l,u]=_.useState(null),[c,d]=_.useState(!1),[g,p]=_.useState(null),[h,v]=_.useState(!1),{isBotWriting:T}=tr(),S=t==null?void 0:t.id,E=async A=>{if(!S){u("No hay conversación seleccionada"),v(!0);return}i(!0),u(null),s(null);try{const y=await y1(S,A);y.success&&y.ticket_id?(p(y.ticket_id),s("✅ Ticket creado correctamente"),d(!0)):(u("❌ Error: No se pudo crear el ticket."),v(!0))}catch(y){u(`❌ Error: ${y.message}`),v(!0)}finally{i(!1)}},m=()=>{const A=xS.get("access_token");if(!A)return"";try{return JSON.parse(atob(A.split(".")[1])).email||""}catch(y){return console.error("No se pudo leer el token:",y),""}};return f.jsxs("div",{children:[e&&f.jsx("div",{style:{marginLeft:"0.5rem"},children:f.jsx(Na,{trigger:"click",rootClose:!0,placement:"top",overlay:f.jsx(Ra,{id:"popover-email-input",style:{zIndex:1e3},children:f.jsx(Ra.Body,{children:f.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"0.5rem",margin:"0.5rem"},children:[f.jsx("h3",{children:"Crear ticket"}),f.jsx(d1,{haveIcon:!0,iconClickable:!1,value:n,placeholder:"Introduce el email",onChange:A=>r(A.target.value),id:"email",required:!0,"data-testid":"email-input",type:"email"}),f.jsx(kx,{disabled:a||!Rx(n),variant:"filled",size:"middle",width:"50",color:"tertiary",className:"add-button",onClick:()=>E(n),children:a?f.jsx(Oa,{animation:"border",size:"sm"}):"Enviar ticket"})]})})}),children:f.jsx("div",{style:{display:"inline-block",cursor:"pointer"},children:f.jsx(Na,{placement:"top",overlay:f.jsx(Ia,{id:"tooltip-ticket-user",children:"Enviar ticket a usuario notificado"}),children:f.jsx(bd,{})})})})}),!e&&f.jsx("div",{children:f.jsx(Na,{placement:"top",overlay:f.jsx(Ia,{id:"tooltip-ticket-icon",children:"Abrir ticket de soporte"}),children:f.jsx(gd,{onClick:()=>{const A=m();A?E(A):(u("No se pudo extraer el email del token."),v(!0))},disabled:T||a,children:a?f.jsx(Oa,{animation:"border",size:"sm"}):f.jsx(bd,{})})})}),f.jsxs(yf,{position:"top-center",className:"p-3",children:[f.jsxs(ln,{onClose:()=>d(!1),show:c,delay:5e3,autohide:!0,bg:"success",children:[f.jsx(ln.Header,{children:f.jsx("strong",{className:"me-auto",children:"Ticket creado"})}),f.jsxs(ln.Body,{style:{color:"white"},children:["El ticket con identificador ",f.jsx("strong",{children:g})," se ha añadido. Recibirá información cuando sea tramitado."]})]}),f.jsxs(ln,{onClose:()=>v(!1),show:h,delay:5e3,autohide:!0,bg:"danger",children:[f.jsx(ln.Header,{children:f.jsx("strong",{className:"me-auto",children:"Error"})}),f.jsx(ln.Body,{style:{color:"white"},children:l})]})]})]})},Ix=D.div.attrs({className:"styled-chat-area-container"})`
|
|
842
836
|
position: absolute;
|
|
843
837
|
bottom: 0;
|
|
844
838
|
left: 0;
|
|
@@ -1255,7 +1249,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1255
1249
|
padding-top: 19px;
|
|
1256
1250
|
margin-bottom: 20px;
|
|
1257
1251
|
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.5);
|
|
1258
|
-
`;const eD=({showHeader:e,customLogo:t,showDate:n,showCreateConversation:r,showControlButtons:a,className:i,showConversationTitle:o})=>{const s=!!t;return f.jsx(Q3,{className:i,showHeader:e,hasCustomLogo:s,showCreateConversation:r,showDate:n,showConversationTitle:o,showControlButtons:a})},mS=_.createContext(void 0),hS=({children:e})=>{const[t,n]=_.useState([]),[r,a]=_.useState(!1),[i,o]=_.useState(!1),s=_.useRef(null),l=_.useRef(null),[u,c]=_.useState(!1),{preloadInteractions:d,typeWritterSpeed:g}=Xg(),p=_.useRef(null),h=async m=>{try{a(!0);const y=(await NS(m)).map(b=>({...b}));d(y),n(b=>{const R=b.find(M=>M.pendingSync&&M.sender_type==="ai");if(!R)return y;const N=y.find(M=>M.sender_type==="ai"&&Math.abs(new Date(M.created_at).getTime()-new Date(R.created_at).getTime())<3e3);return N?y.map(M=>M.id===N.id?{...N,content:R.content}:M):y})}catch(A){console.error("Failed to fetch messages:",A)}finally{a(!1)}},v=async(m,A,y)=>{const b={id:`user-${new Date().toISOString()}`,content:A,sender_type:"user",conversation_id:m,created_at:new Date().toISOString()};n(M=>[...M,b].sort((F,$)=>new Date(F.created_at).getTime()-new Date($.created_at).getTime()));const R=`bot-loading-${new Date().toISOString()}`;s.current=R;const N={id:R,content:"",loadingContent:f.jsx(bi,{}),sender_type:"ai",conversation_id:m,created_at:new Date().toISOString(),pendingSync:!0};n(M=>[...M,N].sort((F,$)=>new Date(F.created_at).getTime()-new Date($.created_at).getTime())),a(!0),o(!0);const I=new AbortController;l.current=I,c(!0);try{const M=await OS(m,A,y,I.signal);if(!M)throw new Error("Error: La respuesta en streaming es nula.");const O=M.getReader();p.current=O;const F=new TextDecoder;let $="";for(;;){const{done:z,value:B}=await O.read();if(z)break;const X=F.decode(B,{stream:!0});i&&o(!1),await ud(X,g,Z=>{$+=Z,n(Y=>Y.map(x=>x.id===R?{...x,content:$,loadingContent:void 0}:x).sort((x,L)=>new Date(x.created_at).getTime()-new Date(L.created_at).getTime()))})}await h(m)}catch(M){M instanceof Error&&M.message.includes("cancel")?console.log("Stream cancelado por el usuario"):console.error("Error en el streaming del bot:",M)}finally{a(!1),c(!1),l.current=null,p.current=null,s.current=null}},T=async(m,A,y)=>{n(N=>{const I=N.findIndex(O=>O.id===A);return I===-1?N:[...N.slice(0,I),{...N[I],content:y,created_at:new Date().toISOString()}]});const b=`bot-edit-loading-${Date.now()}`;let R={id:b,content:"",loadingContent:f.jsx(bi,{}),sender_type:"ai",conversation_id:m,created_at:new Date().toISOString(),pendingSync:!0};n(N=>[...N,R]),a(!0);try{const I=(await LS(m,A,y)).getReader();p.current=I;const M=new TextDecoder;let O="";for(;;){const{done:F,value:$}=await I.read();if(F)break;const z=M.decode($,{stream:!0});await ud(z,g,B=>{O+=B,n(X=>X.map(Z=>Z.id===b?{...Z,content:O,loadingContent:void 0}:Z))})}await h(m)}catch(N){N instanceof Error&&N.message.includes("cancel")?console.log("Stream de edición cancelado por el usuario"):console.error("Error al editar mensaje y relanzar:",N)}finally{a(!1),c(!1),p.current=null,s.current=null}},S=async m=>{try{if(console.log("🔄 Intentando detener el stream desde MessageContext..."),l.current&&(l.current.abort(),l.current=null),s.current)try{await Yg.register(s.current,At.STOP)}catch(A){console.warn("Error al cancelar el reader:",A)}return await ld(m),console.log("AAA Stream detenido correctamente en el backend"),c(!1),a(!1),o(!1),console.log("✅ Stream detenido correctamente"),!0}catch(A){return console.error("❌ Error al detener el stream:",A),!1}},E=_.useMemo(()=>({messages:t,fetchMessages:h,addMessage:v,isBotWriting:r,isBotStreaming:u,isWaitingForFirstResponse:i,setIsWaitingForFirstResponse:o,currentBotMessageId:s.current,editAndReplayMessage:T,stopStreamingResponse:S}),[t,r,u,i]);return f.jsx(mS.Provider,{value:E,children:e})},tr=()=>{const e=_.useContext(mS);if(!e)throw new Error("useMessage must be used within a MessageProvider");return e},tD=({theme:e,customLogo:t,showDate:n=!0,showHeader:r=!0,createWhenLogin:a=!1,createWhenCsd:i=!1,showControlButtons:o=!0,chatVersion:s="
|
|
1252
|
+
`;const eD=({showHeader:e,customLogo:t,showDate:n,showCreateConversation:r,showControlButtons:a,className:i,showConversationTitle:o})=>{const s=!!t;return f.jsx(Q3,{className:i,showHeader:e,hasCustomLogo:s,showCreateConversation:r,showDate:n,showConversationTitle:o,showControlButtons:a})},mS=_.createContext(void 0),hS=({children:e})=>{const[t,n]=_.useState([]),[r,a]=_.useState(!1),[i,o]=_.useState(!1),s=_.useRef(null),l=_.useRef(null),[u,c]=_.useState(!1),{preloadInteractions:d,typeWritterSpeed:g}=Xg(),p=_.useRef(null),h=async m=>{try{a(!0);const y=(await NS(m)).map(b=>({...b}));d(y),n(b=>{const R=b.find(M=>M.pendingSync&&M.sender_type==="ai");if(!R)return y;const N=y.find(M=>M.sender_type==="ai"&&Math.abs(new Date(M.created_at).getTime()-new Date(R.created_at).getTime())<3e3);return N?y.map(M=>M.id===N.id?{...N,content:R.content}:M):y})}catch(A){console.error("Failed to fetch messages:",A)}finally{a(!1)}},v=async(m,A,y)=>{const b={id:`user-${new Date().toISOString()}`,content:A,sender_type:"user",conversation_id:m,created_at:new Date().toISOString()};n(M=>[...M,b].sort((F,$)=>new Date(F.created_at).getTime()-new Date($.created_at).getTime()));const R=`bot-loading-${new Date().toISOString()}`;s.current=R;const N={id:R,content:"",loadingContent:f.jsx(bi,{}),sender_type:"ai",conversation_id:m,created_at:new Date().toISOString(),pendingSync:!0};n(M=>[...M,N].sort((F,$)=>new Date(F.created_at).getTime()-new Date($.created_at).getTime())),a(!0),o(!0);const I=new AbortController;l.current=I,c(!0);try{const M=await OS(m,A,y,I.signal);if(!M)throw new Error("Error: La respuesta en streaming es nula.");const O=M.getReader();p.current=O;const F=new TextDecoder;let $="";for(;;){const{done:z,value:B}=await O.read();if(z)break;const X=F.decode(B,{stream:!0});i&&o(!1),await ud(X,g,Z=>{$+=Z,n(Y=>Y.map(x=>x.id===R?{...x,content:$,loadingContent:void 0}:x).sort((x,L)=>new Date(x.created_at).getTime()-new Date(L.created_at).getTime()))})}await h(m)}catch(M){M instanceof Error&&M.message.includes("cancel")?console.log("Stream cancelado por el usuario"):console.error("Error en el streaming del bot:",M)}finally{a(!1),c(!1),l.current=null,p.current=null,s.current=null}},T=async(m,A,y)=>{n(N=>{const I=N.findIndex(O=>O.id===A);return I===-1?N:[...N.slice(0,I),{...N[I],content:y,created_at:new Date().toISOString()}]});const b=`bot-edit-loading-${Date.now()}`;let R={id:b,content:"",loadingContent:f.jsx(bi,{}),sender_type:"ai",conversation_id:m,created_at:new Date().toISOString(),pendingSync:!0};n(N=>[...N,R]),a(!0);try{const I=(await LS(m,A,y)).getReader();p.current=I;const M=new TextDecoder;let O="";for(;;){const{done:F,value:$}=await I.read();if(F)break;const z=M.decode($,{stream:!0});await ud(z,g,B=>{O+=B,n(X=>X.map(Z=>Z.id===b?{...Z,content:O,loadingContent:void 0}:Z))})}await h(m)}catch(N){N instanceof Error&&N.message.includes("cancel")?console.log("Stream de edición cancelado por el usuario"):console.error("Error al editar mensaje y relanzar:",N)}finally{a(!1),c(!1),p.current=null,s.current=null}},S=async m=>{try{if(console.log("🔄 Intentando detener el stream desde MessageContext..."),l.current&&(l.current.abort(),l.current=null),s.current)try{await Yg.register(s.current,At.STOP)}catch(A){console.warn("Error al cancelar el reader:",A)}return await ld(m),console.log("AAA Stream detenido correctamente en el backend"),c(!1),a(!1),o(!1),console.log("✅ Stream detenido correctamente"),!0}catch(A){return console.error("❌ Error al detener el stream:",A),!1}},E=_.useMemo(()=>({messages:t,fetchMessages:h,addMessage:v,isBotWriting:r,isBotStreaming:u,isWaitingForFirstResponse:i,setIsWaitingForFirstResponse:o,currentBotMessageId:s.current,editAndReplayMessage:T,stopStreamingResponse:S}),[t,r,u,i]);return f.jsx(mS.Provider,{value:E,children:e})},tr=()=>{const e=_.useContext(mS);if(!e)throw new Error("useMessage must be used within a MessageProvider");return e},tD=({theme:e,customLogo:t,showDate:n=!0,showHeader:r=!0,createWhenLogin:a=!1,createWhenCsd:i=!1,showControlButtons:o=!0,chatVersion:s="mini",className:l,showLogoutButton:u=!0,showCreateConversation:c=!0,showConversationTitle:d=!0,showPlexo:g=!0,showFeedbackButtons:p=!0,showeditIcon:h=!0})=>{const v=od[e];console.log("theme que llega",e);const{addConversation:T,selectConversation:S,service:E,conversations:m}=Mt();return jr({enableAutoCreate:a,enableAutoCreateCsd:i,addConversation:T,selectConversation:S,service:E,conversations:m}),f.jsx(hS,{children:s==="mini"?f.jsx(K3,{showeditIcon:h,showPlexo:g,showFeedbackButtons:p,showLogoutButton:u,showDate:n,customLogo:t,themeDisplayName:v,showHeader:r,showCreateConversation:c,showControlButtons:o,className:l,showConversationTitle:d}):f.jsx(eD,{showDate:n,customLogo:t,showHeader:r,showCreateConversation:c,showControlButtons:o,className:l,showConversationTitle:d})})},Pr=D.pre`
|
|
1259
1253
|
display: flex;
|
|
1260
1254
|
justify-content: start;
|
|
1261
1255
|
align-items: center;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "minerva-plexus-csd",
|
|
3
3
|
"private": false,
|
|
4
4
|
"description": "A reusable chat logic library for React applications",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.10",
|
|
6
6
|
"main": "dist/minerva-plexus-csd.umd.js",
|
|
7
7
|
"module": "dist/minerva-plexus-csd.es.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|