@botfabrik/engine-webclient 4.75.1 → 4.75.2

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.
@@ -0,0 +1 @@
1
+ @charset "UTF-8";body{margin:0}._app_wkun7_5{display:flex;flex-direction:row;height:100vh;height:100svh}:root{--aspect-ratio: calc(16 / 9);--body-background-color: white;--brand-primary-color: rgb(4, 47, 97);--brand-secondary-color: white;--danger-color: #b11106;--scrollbar-thumb-color: #adadad;--avatar-size: 2rem;--avatar-radius: 50%;--bot-avatar-background-color: rgb(233, 239, 246);--agent-avatar-background-color: rgb(233, 239, 246);--bubble-padding: .9em 1.3em;--bubble-margin-small: 3px;--bubble-margin-large: 1.2rem;--bubble-radius-large: 20px;--bubble-radius-small: 4px;--bot-bubble-background-color: white;--bot-bubble-text-color: #2e2e2e;--bot-bubble-border-color: #434343;--bot-bubble-border-width: 2px;--bot-bubble-top-left-radius: var(--bubble-radius-small);--bot-bubble-top-right-radius: var(--bubble-radius-large);--bot-bubble-bottom-right-radius: var(--bubble-radius-large);--bot-bubble-bottom-left-radius: var(--bubble-radius-small);--guest-bubble-background-color: var(--brand-primary-color);--guest-bubble-text-color: white;--guest-bubble-border-color: white;--guest-bubble-border-width: 0px;--guest-bubble-top-left-radius: var(--bubble-radius-large);--guest-bubble-top-right-radius: var(--bubble-radius-small);--guest-bubble-bottom-right-radius: var(--bubble-radius-small);--guest-bubble-bottom-left-radius: var(--bubble-radius-large)}::-webkit-scrollbar{width:8px;border:none}::-webkit-scrollbar-track{background:var(--body-background-color)}::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb-color)}input::placeholder,textarea::placeholder{color:#666;opacity:1}._button_9v54n_54{display:inline-block;font-family:inherit;font-size:1em;padding:.5em 1em;border-radius:.2rem;background-color:#fff;cursor:pointer;transition:all .2s linear;text-align:center}._buttonDefault_9v54n_66{color:#000000d9;background-color:#fff;border:2px solid #adadad}._buttonDefault_9v54n_66:hover{color:var(--brand-primary-color);border:2px solid var(--brand-primary-color)}._buttonDefault_9v54n_66:disabled{cursor:not-allowed;opacity:.3}._buttonPrimary_9v54n_80{color:var(--brand-secondary-color);background-color:var(--brand-primary-color);border:2px solid var(--brand-primary-color)}._buttonPrimary_9v54n_80:hover{color:var(--brand-primary-color);background-color:var(--brand-secondary-color);border:2px solid var(--brand-primary-color)}._buttonPrimary_9v54n_80:disabled{cursor:not-allowed;opacity:.3;color:var(--brand-secondary-color);background-color:var(--brand-primary-color)}svg{fill:currentColor}._accessabilityHidden_9v54n_132{visibility:hidden}[data-title]{position:relative}[data-title]:before{content:"";position:absolute;top:-10px;right:35%;border:6px solid transparent;border-top-color:#1f1f1f;z-index:999999;visibility:hidden}[data-title]:after{content:attr(data-title);position:absolute;top:-40px;right:-.5em;font-size:medium;line-height:normal;padding:6px 8px;white-space:nowrap;border-radius:5px;background-color:#1f1f1f;color:#fafafa;box-shadow:1px 6px 16px #1f1f1f;z-index:99999;visibility:hidden}[data-title]:hover:before,[data-title]:hover:after{opacity:1;transition:all .1s ease .5s;visibility:visible}._messageContainer_1wdci_1{flex:1;overflow-y:scroll;overscroll-behavior:contain;padding-top:1rem;position:relative;-webkit-overflow-scrolling:touch}._messages_1wdci_10{position:relative;list-style:none;font-size:.9rem;line-height:1.4;padding:0 1rem;margin:0;overflow-wrap:break-word;word-wrap:break-word}@media (min-width: 36rem){._messageContainer_1wdci_1{padding-top:2rem}._messages_1wdci_10{font-size:1rem;line-height:1.8}}._generalConditionsContainer_1ijeb_1{margin-bottom:1.2rem;margin-left:1rem;margin-right:1rem}._generalConditions_1ijeb_1{transition:all .5s linear;background-color:var(--bot-bubble-background-color);color:var(--bot-bubble-text-color);padding:.9em 1.3em;font-size:.9rem}._generalConditionsHeader_1ijeb_15{display:flex;align-items:flex-end;justify-content:space-between;cursor:pointer}._generalConditionsHeader_1ijeb_15:focus{outline:none}._generalConditionsBody_1ijeb_25{display:flex;align-items:flex-end}._generalConditionsBody_1ijeb_25:focus{outline:none}._generalConditionsAccept_1ijeb_33{padding:.9em 1.3em;font-size:.9rem}._generalConditionsAccept_1ijeb_33:focus{outline:none}._message_1exlf_5{--bubble-margin: var(--bubble-margin-small);margin-bottom:var(--bubble-margin);transition:border-radius .5s}._messageBot_1exlf_11{display:flex;align-items:flex-end}._messageBot_1exlf_11:not(._messageBotLast_1exlf_15) ._avatar_1exlf_15{visibility:hidden}._messageBotFirst_1exlf_19{--bot-bubble-top-left-radius: var(--bubble-radius-large);--bot-bubble-top-right-radius: var(--bubble-radius-large);--bot-bubble-bottom-right-radius: var(--bubble-radius-large)}._messageBotLast_1exlf_15{--bot-bubble-top-right-radius: var(--bubble-radius-large);--bot-bubble-bottom-left-radius: var(--bubble-radius-large);--bot-bubble-bottom-right-radius: var(--bubble-radius-large);--bubble-margin: var(--bubble-margin-large)}._messageBotAnimated_1exlf_32{animation-duration:.25s;animation-timing-function:ease-in;animation-delay:0s;animation-iteration-count:1;animation-direction:normal;animation-fill-mode:forwards;animation-play-state:running;animation-name:_fadeInLeft_1exlf_1}._messageGuest_1exlf_43{display:flex;align-items:flex-end;justify-content:flex-end}._messageGuestFirst_1exlf_49{--guest-bubble-top-left-radius: var(--bubble-radius-large);--guest-bubble-top-right-radius: var(--bubble-radius-large);--guest-bubble-bottom-left-radius: var(--bubble-radius-large)}._messageGuestLast_1exlf_55{--guest-bubble-top-left-radius: var(--bubble-radius-large);--guest-bubble-bottom-left-radius: var(--bubble-radius-large);--guest-bubble-bottom-right-radius: var(--bubble-radius-large);--bubble-margin: var(--bubble-margin-large);margin-bottom:var(--bubble-margin)}._avatar_1exlf_15{width:var(--avatar-size);height:var(--avatar-size);border-radius:var(--avatar-radius, 50%)}._botAvatar_1exlf_69{background-color:var(--bot-avatar-background-color)}._agentAvatar_1exlf_73{background-color:var(--agent-avatar-background-color)}._bubble_1exlf_77{display:inline-block;max-width:calc(100% - 4.3rem);position:relative}._bubbleContent_1exlf_83{padding:var(--bubble-padding);color:inherit;font-size:inherit}._bubbleContent_1exlf_83 *>:first-child{margin-top:0}._bubbleContent_1exlf_83 *>:last-child{margin-bottom:0}._bubbleContent_1exlf_83 h1,._bubbleContent_1exlf_83 h2,._bubbleContent_1exlf_83 h3,._bubbleContent_1exlf_83 h4,._bubbleContent_1exlf_83 h5,._bubbleContent_1exlf_83 p,._bubbleContent_1exlf_83 a,._bubbleContent_1exlf_83 ul,._bubbleContent_1exlf_83 ol{color:inherit;margin-block-start:.4em;margin-block-end:.4em;margin-inline-start:0px;margin-inline-end:0px}._bubbleContent_1exlf_83 h1{font-size:1.2rem;white-space:pre-wrap}._bubbleContent_1exlf_83 h2{font-size:1.1rem;white-space:pre-wrap}._bubbleContent_1exlf_83 h3,._bubbleContent_1exlf_83 h4,._bubbleContent_1exlf_83 h5{font-size:1rem;white-space:pre-wrap}._bubbleContent_1exlf_83 a{text-decoration:underline;cursor:pointer}._bubbleContent_1exlf_83 a:hover{opacity:.8}._bubbleContent_1exlf_83 img{max-width:100%;margin-block-start:0;margin-block-end:0}._bubbleContent_1exlf_83 ul{padding:0 0 0 1.1em}._bubbleContent_1exlf_83 ul>li{list-style-type:disc}._bubbleContent_1exlf_83 ul>li ul{margin-block-start:0}._bubbleContent_1exlf_83 ul>li p{margin-bottom:0}._bubbleContent_1exlf_83 ol{padding:0 0 0 1.1em}._bubbleContent_1exlf_83 ol>li{list-style-type:decimal}._bubbleContent_1exlf_83 table{width:100%}._bubbleContent_1exlf_83 td:not(:last-child){padding-right:1rem}._bubbleContent_1exlf_83 hr{margin-top:1rem;margin-bottom:1rem;border-top:1px solid;border-left:0;border-bottom:0;border-right:0}._bubbleLeft_1exlf_174{border-radius:var(--bot-bubble-top-left-radius) var(--bot-bubble-top-right-radius) var(--bot-bubble-bottom-right-radius) var(--bot-bubble-bottom-left-radius);border-color:var(--bot-bubble-border-color);border-width:var(--bot-bubble-border-width);border-style:solid;background-color:var(--bot-bubble-background-color);margin-left:1rem}._leftText_1exlf_183{color:var(--bot-bubble-text-color)}._leftText_1exlf_183 a{color:var(--bot-bubble-text-color)!important}._bubbleRight_1exlf_190{border-radius:var(--guest-bubble-top-left-radius) var(--guest-bubble-top-right-radius) var(--guest-bubble-bottom-right-radius) var(--guest-bubble-bottom-left-radius);border-color:var(--guest-bubble-border-color);border-width:var(--guest-bubble-border-width);border-style:solid;background-color:var(--guest-bubble-background-color)}._rightText_1exlf_198,._rightText_1exlf_198 a{color:var(--guest-bubble-text-color)}@keyframes _fadeInLeft_1exlf_1{0%{transform:translate(-100vw)}to{transform:translate(0)}}._problemReport_j3gru_1{display:flex;flex-direction:column;align-self:center}._problemReportIcon_j3gru_7{height:1rem;width:1rem;margin-left:.5rem}._problemReportIconActive_j3gru_13{cursor:pointer;opacity:1}._problemReportIconActive_j3gru_13:hover{opacity:.5}._problemReportIconInactive_j3gru_21{cursor:pointer;opacity:.5}._problemReportIconInactive_j3gru_21:hover{opacity:1}._title_1mhh2_1{margin-top:0;margin-block-start:0}._subtitle_1mhh2_6{margin-top:.5rem;margin-bottom:.5rem}._buttons_1mhh2_11{margin-top:1rem;display:flex;flex-direction:row;flex-wrap:wrap;gap:.5rem}._button_1mhh2_11{font-size:.9em;margin:0;background-color:var(--bot-bubble-text-color);color:var(--bot-bubble-background-color);border:2px solid var(--bot-bubble-text-color);width:100%}._button_1mhh2_11:hover{color:var(--bot-bubble-text-color);background-color:var(--bot-bubble-background-color);border:2px solid var(--bot-bubble-text-color)}._imageContainer_1mhh2_33{display:flex}._image_1mhh2_33{height:100%;width:100%;object-fit:cover;border-radius:calc(var(--bot-bubble-top-left-radius) - var(--bot-bubble-border-width)) calc(var(--bot-bubble-top-right-radius) - var(--bot-bubble-border-width)) 0 0}._video_container_1mhh2_44{display:flex}._video_1mhh2_44{width:100%;height:100%;border-radius:calc(var(--bot-bubble-top-left-radius) - var(--bot-bubble-border-width)) calc(var(--bot-bubble-top-right-radius) - var(--bot-bubble-border-width)) 0 0}._only_1mhh2_54{border-radius:calc(var(--bot-bubble-top-left-radius) - var(--bot-bubble-border-width)) calc(var(--bot-bubble-top-right-radius) - var(--bot-bubble-border-width)) calc(var(--bot-bubble-bottom-right-radius) - var(--bot-bubble-border-width)) calc(var(--bot-bubble-bottom-left-radius) - var(--bot-bubble-border-width))}._text_1k7aq_1{overflow-wrap:break-word}._ticontainer_wftg7_1{padding:var(--bubble-padding)}._tiblock_wftg7_5{align-items:center;display:flex;height:1rem;margin:2.1px}._tidot_wftg7_12{background-color:var(--bot-bubble-text-color);animation:_mercuryTypingAnimation_wftg7_1 1s infinite ease-in-out;border-radius:3px;display:inline-block;height:6px;margin-right:3px;width:6px}@keyframes _mercuryTypingAnimation_wftg7_1{0%{transform:translateY(0)}28%{transform:translateY(-5px)}44%{transform:translateY(0)}}._tidot_wftg7_12:nth-child(1){animation-delay:50ms}._tidot_wftg7_12:nth-child(2){animation-delay:.15s}._tidot_wftg7_12:nth-child(3){animation-delay:.25s}._bottomSheet_8itd6_1{visibility:hidden;position:absolute;z-index:3000;height:100%;width:100%;background-color:var(--body-background-color);top:0;bottom:0;transform:translateY(100%);overflow-y:auto;overscroll-behavior:contain}._bottomSheetOpen_8itd6_15{animation:_slide-in_8itd6_1 .2s forwards;visibility:visible}._bottomSheetClose_8itd6_20{animation:_slide-out_8itd6_1 .2s forwards;visibility:hidden}@keyframes _slide-in_8itd6_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slide-out_8itd6_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}._container_ooyn8_1{overflow:hidden}._container_ooyn8_1 iframe{width:100%;height:100%;border:none}._container_t5oqt_1{padding:.5rem;display:flex;justify-content:center;align-items:center;border-top:1px solid #bfbfbf;background-color:#fff;font-size:.7rem;color:#717171}._container_t5oqt_1 a{color:var(--brand-primary-color);text-decoration:none}._container_rkqaf_1{padding:1rem}._container_rkqaf_1 h1{font-size:1.6em}._container_rkqaf_1 h2{font-size:1em}._container_rkqaf_1 p{line-height:1.5}._formContainer_rkqaf_14{display:flex;flex-direction:column}._emailInput_rkqaf_19{box-sizing:border-box;margin:1rem 0 0;font-variant:tabular-nums;list-style:none;font-feature-settings:"tnum";position:relative;display:inline-block;width:100%;min-width:0;padding:4px 11px;color:#000000a6;font-size:14px;line-height:1.5715;background-color:#fff;background-image:none;border:1px solid #d9d9d9;border-radius:2px;transition:all .3s;outline:none}._emailInput_rkqaf_19:hover{border:1px solid var(--brand-primary-color)}._emailInput_rkqaf_19:focus{border:1px solid var(--brand-primary-color)}._description_rkqaf_48{font-size:.9rem;-webkit-hyphens:auto;hyphens:auto}._actions_rkqaf_53{margin-top:1rem;padding-bottom:3rem;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-end;gap:.5rem}._validationError_rkqaf_63{padding-top:.5em;color:var(--danger-color);font-size:.8em;height:1rem}._submitted_rkqaf_70{margin-top:3rem;padding:1rem;border:1px solid var(--brand-primary-color);border-radius:2px}._inputContainer_1px77_1{z-index:2000}._blockUserInput_rv0dg_1{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:left;position:relative;background-color:#fff;color:#717171;font-size:.9rem;border-top:1px solid #bfbfbf;padding:.6rem 1rem;animation:_append-animate_rv0dg_1 .2s ease-in;z-index:0}@keyframes _append-animate_rv0dg_1{0%{opacity:0;top:6rem}to{opacity:1;top:0}}._callToActionContainer_czz0p_1{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;position:relative;background-color:#fff;border-top:1px solid #bfbfbf;padding:.6rem 1rem .3rem;animation:_append-animate_czz0p_1 .2s ease-in;z-index:0}@keyframes _append-animate_czz0p_1{0%{opacity:0;top:6rem}to{opacity:1;top:0}}._callToActionTitle_czz0p_24{font-size:.9rem;color:#717171;margin-bottom:.2rem;padding-right:.5rem}._rateOverlay_czz0p_31{display:flex;flex-direction:column;justify-content:space-between}._rateOverlay_czz0p_31 h2{font-size:1em;text-align:center}._rateOverlay_czz0p_31 p{line-height:1.5}._rateOverlay_czz0p_31 form{display:flex;flex:1;flex-direction:column;justify-content:space-between}._body_czz0p_50{height:100%;display:flex;flex-direction:column;justify-content:space-between;padding:1rem}._footer_czz0p_58{border-top:1px solid #bfbfbf;background-color:#fff}._footer_czz0p_58 input{font-size:1rem;border:none;box-sizing:border-box;width:100%;outline-width:0;padding:1.3rem 1rem 1rem;text-overflow:ellipsis;color:#717171}._actions_czz0p_73{display:flex;padding:.5rem;justify-content:flex-end;align-items:center;line-height:0}._actions_czz0p_73 button{width:100%;font-size:.8rem}._bubbles_czz0p_85{display:flex;flex-direction:column}@keyframes _appear_czz0p_1{0%{opacity:0}66%{opacity:0}to{opacity:1}}@keyframes _fadeInLeft_czz0p_1{0%{transform:translate(-3rem)}80%{transform:translate(-3rem)}to{transform:translate(0)}}._rateFeedbackBotBubble_czz0p_112{display:flex;align-items:flex-end;margin:1rem 0}._rateFeedbackGuestBubble_czz0p_118{display:flex;align-items:flex-end;justify-content:flex-end}._avatar_czz0p_124{width:var(--avatar-size);height:var(--avatar-size);animation-duration:.5s;animation-timing-function:ease-in;animation-delay:0s;animation-iteration-count:1;animation-direction:normal;animation-fill-mode:forwards;animation-play-state:running;animation-name:_fadeInLeft_czz0p_1}._bubble_czz0p_85{padding:var(--bubble-padding);font-size:.9rem;animation-duration:1s;animation-delay:0s;animation-timing-function:ease;animation-iteration-count:1;animation-direction:normal;animation-fill-mode:forwards;animation-play-state:running;animation-name:_appear_czz0p_1}._botBubble_czz0p_150{border-radius:var(--bubble-radius-large);background-color:var(--bot-bubble-background-color);margin-left:1rem;color:var(--bot-bubble-text-color)}._botBubble_czz0p_150 a{color:var(--bot-bubble-text-color)!important}._guestBubble_czz0p_160{animation-duration:.25s;align-self:end;border-radius:var(--bubble-radius-large);background-color:var(--guest-bubble-background-color);color:var(--guest-bubble-text-color);margin-left:1rem;display:box;line-clamp:3;box-orient:vertical;overflow:hidden}._guestBubble_czz0p_160 a{color:var(--guest-bubble-text-color)}._rateText_czz0p_176{padding:.75rem;font-size:.9rem}._stars_czz0p_181{box-sizing:border-box;font-variant:tabular-nums;font-feature-settings:"tnum";display:inline-block;margin:0;padding:0;color:#c4c4c4;line-height:unset;list-style:none;outline:none}._starsSmall_czz0p_194{font-size:1.2rem}._starsLarge_czz0p_198{font-size:2rem}._starsLarge_czz0p_198 ._star_czz0p_181:not(:last-child){margin-right:1.5rem}._star_czz0p_181{display:inline-block;color:inherit;cursor:pointer}._star_czz0p_181:not(:last-child){margin-right:8px}._starReadonly_czz0p_215{cursor:inherit}._star_czz0p_181>div{transition:all .3s,outline 0s}._starIcon_czz0p_223{display:inline-block;color:inherit;font-style:normal;line-height:0;text-align:center;text-transform:none;text-rendering:optimizelegibility}._star_czz0p_181 [aria-checked=true]{color:var(--brand-primary-color, #fadb14)}._star_czz0p_181 [aria-checked=false]{color:#adadad}._starsDescriptionContainer_czz0p_241{display:flex;flex-direction:column;width:fit-content;padding-top:1rem;padding-bottom:1rem;margin:auto}._starsDescription_czz0p_241{display:flex;flex-direction:row;justify-content:space-between;font-size:.7rem;color:#000000a6}._inputWrapper_lbrof_5{display:flex;justify-content:center;align-items:center;line-height:0;border-top:1px solid #bfbfbf;background-color:#fff}._messageInputWrapper_lbrof_14{flex:1;margin-right:.5rem}._messageInput_lbrof_14{resize:none;font-size:1rem;font-family:inherit;border:none;height:calc(1em + 3rem);box-sizing:border-box;width:100%;outline-width:0;padding:1.3rem 1rem;text-overflow:ellipsis}._messageInput_lbrof_14:focus{outline:none}._buttons_lbrof_36{padding-right:.5rem;display:flex;justify-content:center;align-items:center}._button_lbrof_36[disabled]{opacity:.4}._button_lbrof_36{display:flex;align-items:center;justify-content:center;width:40px;height:40px;color:var(--brand-primary-color);background-color:var(--brand-secondary-color);cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:50%;border:none;text-align:center}._button_lbrof_36 svg{margin:2px;height:2em;width:2em;fill:currentColor}._button_lbrof_36:hover,._button_lbrof_36:active,._button_lbrof_36:focus{border:none;outline:none;color:var(--brand-secondary-color);background-color:var(--brand-primary-color)}._button_lbrof_36:not(:last-child){margin-right:.5em}*{box-sizing:border-box}._audioRecorder_xps9k_5{display:flex;margin-left:-5px}._recordButton_xps9k_10{display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-user-select:none;user-select:none;width:40px;height:40px;border-radius:50%;border:none;text-align:center;color:var(--brand-primary-color);background-color:var(--brand-secondary-color)}._recordButton_xps9k_10:hover,._recordButton_xps9k_10:active,._recordButton_xps9k_10:focus{background-color:var(--brand-primary-color);color:var(--brand-secondary-color);border:none;outline:none}._recordButton_xps9k_10 svg{margin:2px;height:2em;width:2em;fill:currentColor}._submitButton_xps9k_37{display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-user-select:none;user-select:none;width:40px;height:40px;border-radius:50%;border:none;text-align:center;color:var(--brand-primary-color);background-color:var(--brand-secondary-color)}._submitButton_xps9k_37:hover,._submitButton_xps9k_37:active,._submitButton_xps9k_37:focus{background-color:var(--brand-primary-color);color:var(--brand-secondary-color);border:none;outline:none}._submitButton_xps9k_37 svg{margin:2px;height:2em;width:2em;fill:currentColor}._cancelButton_xps9k_64{display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-user-select:none;user-select:none;width:40px;height:40px;border-radius:50%;border:none;text-align:center;color:var(--brand-primary-color);background-color:var(--brand-secondary-color)}._cancelButton_xps9k_64:hover,._cancelButton_xps9k_64:active,._cancelButton_xps9k_64:focus{background-color:var(--brand-primary-color);color:var(--brand-secondary-color);border:none;outline:none}._cancelButton_xps9k_64 svg{margin:2px;height:2em;width:2em;fill:currentColor}._recorderIcon_xps9k_91{width:1.3em;height:1.3em;border-radius:50%;animation:_pulse_xps9k_1 2s infinite;margin:auto .6em}@keyframes _pulse_xps9k_1{0%{background-color:#fff}40%{background-color:var(--danger-color)}60%{background-color:var(--danger-color)}to{background-color:#fff}}._spinning_xps9k_113{width:40px;height:40px;padding:5px;display:block;margin:auto;color:var(--brand-primary-color);animation:_spin_xps9k_113 1.2s linear infinite}@keyframes _spin_xps9k_113{to{transform:rotate(360deg)}}._quickReplies_11l22_1{display:flex;flex-flow:row wrap;justify-content:flex-end;padding:.4rem 1rem;gap:.5rem}._quickReply_11l22_9{font-size:.8rem;background-color:var(--brand-secondary-color);color:var(--brand-primary-color);border:1px solid var(--brand-primary-color)}._quickReply_11l22_9:active,._quickReply_11l22_9:focus,._quickReply_11l22_9:hover{background-color:var(--brand-primary-color);color:var(--brand-secondary-color);border:1px solid var(--brand-secondary-color);outline:none}._chatwindow_phukm_1{position:relative;width:100%;height:100vh;height:100svh;max-width:48rem;margin-left:auto;margin-right:auto;overflow:hidden;background-color:var(--body-background-color)}._chatcontent_phukm_13{display:flex;flex-flow:column nowrap;width:100%;height:100vh;height:100svh}._container_1rets_2{display:grid;grid-template-rows:1fr auto;height:100%}._body_1rets_8{padding:1rem;overflow-y:auto}._intro_1rets_13{margin-bottom:1em}._intro_1rets_13 h1{font-size:1.3em}._intro_1rets_13 h2{font-size:1em}._intro_1rets_13 p{line-height:1.5}._footer_1rets_26{padding:1rem}._startChatButton_1rets_30{width:100%}._formFields_1rets_34{display:flex;flex-direction:column;gap:.75em}._formField_1rets_34{display:flex;flex-direction:column;gap:8px}._radio_1rets_46{display:flex;align-items:flex-start;gap:6px;accent-color:var(--brand-primary-color)}._checkbox_1rets_53{display:flex;align-items:flex-start;gap:6px;padding:6px 0;accent-color:var(--brand-primary-color)}._input_1rets_61 input{border-width:1px;border-style:solid;border-color:#d9d9d9;box-sizing:border-box;margin:0;padding:4px 11px;color:#000000e0;font-size:1em;line-height:1.57;list-style:none;font-family:inherit;position:relative;display:inline-block;width:100%;min-width:0;border-radius:6px;transition:all .2s;accent-color:var(--brand-primary-color)}._input_1rets_61 input:focus,._input_1rets_61 input:focus-within{border-color:var(--brand-primary-color);box-shadow:0 0 0 2px #0591ff1a;outline:0;background-color:#fff}._input_1rets_61 input:hover{border-color:var(--brand-primary-color)}._inputLabel_1rets_91{margin-bottom:8px}._selectWrapper_1rets_95{position:relative}._selectWrapper_1rets_95:after{content:"⌄";font-size:1rem;top:2px;right:14px;position:absolute}._select_1rets_95 select{border-width:1px;border-style:solid;border-color:#d9d9d9;box-sizing:border-box;margin:0;padding:4px 11px;color:#000000e0;font-size:1em;line-height:1.57;list-style:none;font-family:inherit;position:relative;display:inline-block;width:100%;min-width:0;border-radius:6px;transition:all .2s;accent-color:var(--brand-primary-color);-webkit-appearance:none;-moz-appearance:none;appearance:none}._select_1rets_95 select:focus,._select_1rets_95 select:focus-within{border-color:var(--brand-primary-color);box-shadow:0 0 0 2px #0591ff1a;outline:0;background-color:#fff}._select_1rets_95 select:hover{border-color:var(--brand-primary-color)}._selectLabel_1rets_137{margin-bottom:8px}
@@ -74,7 +74,7 @@ For more details see https://formatjs.io/docs/getting-started/message-distributi
74
74
  Copyright (c) 2018 Jed Watson.
75
75
  Licensed under the MIT License (MIT), see
76
76
  http://jedwatson.github.io/classnames
77
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(o=i(o,r(a)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var a in o)t.call(o,a)&&o[a]&&(s=i(s,a));return s}function i(o,s){return s?o?o+" "+s:o+s:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Zg);var $S=Zg.exports;const k=Su($S),Jg="%[a-f0-9]{2}",Kd=new RegExp("("+Jg+")|([^%]+?)","gi"),Yd=new RegExp("("+Jg+")+","gi");function eu(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;const n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],eu(n),eu(r))}function HS(e){try{return decodeURIComponent(e)}catch{let t=e.match(Kd)||[];for(let n=1;n<t.length;n++)e=eu(t,n).join(""),t=e.match(Kd)||[];return e}}function GS(e){const t={"%FE%FF":"��","%FF%FE":"��"};let n=Yd.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{const i=HS(n[0]);i!==n[0]&&(t[n[0]]=i)}n=Yd.exec(e)}t["%C2"]="�";const r=Object.keys(t);for(const i of r)e=e.replace(new RegExp(i,"g"),t[i]);return e}function VS(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return GS(e)}}function WS(e,t){const n={};if(Array.isArray(t))for(const r of t){const i=Object.getOwnPropertyDescriptor(e,r);i!=null&&i.enumerable&&Object.defineProperty(n,r,i)}else for(const r of Reflect.ownKeys(e)){const i=Object.getOwnPropertyDescriptor(e,r);if(i.enumerable){const o=e[r];t(r,o,e)&&Object.defineProperty(n,r,i)}}return n}function ey(e,t){if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e===""||t==="")return[];const n=e.indexOf(t);return n===-1?[]:[e.slice(0,n),e.slice(n+t.length)]}const qS=e=>e==null,XS=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),tu=Symbol("encodeFragmentIdentifier");function QS(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,[ce(t,e),"[",i,"]"].join("")]:[...n,[ce(t,e),"[",ce(i,e),"]=",ce(r,e)].join("")]};case"bracket":return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,[ce(t,e),"[]"].join("")]:[...n,[ce(t,e),"[]=",ce(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,[ce(t,e),":list="].join("")]:[...n,[ce(t,e),":list=",ce(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t=e.arrayFormat==="bracket-separator"?"[]=":"=";return n=>(r,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?r:(i=i===null?"":i,r.length===0?[[ce(n,e),t,ce(i,e)].join("")]:[[r,ce(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,ce(t,e)]:[...n,[ce(t,e),"=",ce(r,e)].join("")]}}function KS(e){let t;switch(e.arrayFormat){case"index":return(n,r,i)=>{if(t=/\[(\d*)]$/.exec(n),n=n.replace(/\[\d*]$/,""),!t){i[n]=r;return}i[n]===void 0&&(i[n]={}),i[n][t[1]]=r};case"bracket":return(n,r,i)=>{if(t=/(\[])$/.exec(n),n=n.replace(/\[]$/,""),!t){i[n]=r;return}if(i[n]===void 0){i[n]=[r];return}i[n]=[...i[n],r]};case"colon-list-separator":return(n,r,i)=>{if(t=/(:list)$/.exec(n),n=n.replace(/:list$/,""),!t){i[n]=r;return}if(i[n]===void 0){i[n]=[r];return}i[n]=[...i[n],r]};case"comma":case"separator":return(n,r,i)=>{const o=typeof r=="string"&&r.includes(e.arrayFormatSeparator),s=typeof r=="string"&&!o&&$t(r,e).includes(e.arrayFormatSeparator);r=s?$t(r,e):r;const a=o||s?r.split(e.arrayFormatSeparator).map(l=>$t(l,e)):r===null?r:$t(r,e);i[n]=a};case"bracket-separator":return(n,r,i)=>{const o=/(\[])$/.test(n);if(n=n.replace(/\[]$/,""),!o){i[n]=r&&$t(r,e);return}const s=r===null?[]:r.split(e.arrayFormatSeparator).map(a=>$t(a,e));if(i[n]===void 0){i[n]=s;return}i[n]=[...i[n],...s]};default:return(n,r,i)=>{if(i[n]===void 0){i[n]=r;return}i[n]=[...[i[n]].flat(),r]}}}function ty(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function ce(e,t){return t.encode?t.strict?XS(e):encodeURIComponent(e):e}function $t(e,t){return t.decode?VS(e):e}function ny(e){return Array.isArray(e)?e.sort():typeof e=="object"?ny(Object.keys(e)).sort((t,n)=>Number(t)-Number(n)).map(t=>e[t]):e}function ry(e){const t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function YS(e){let t="";const n=e.indexOf("#");return n!==-1&&(t=e.slice(n)),t}function Zd(e,t,n){return n==="string"&&typeof e=="string"?e:typeof n=="function"&&typeof e=="string"?n(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")?e.toLowerCase()==="true":n==="number"&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""||t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?Number(e):e}function xc(e){e=ry(e);const t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function Tc(e,t){t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t},ty(t.arrayFormatSeparator);const n=KS(t),r=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return r;for(const i of e.split("&")){if(i==="")continue;const o=t.decode?i.replaceAll("+"," "):i;let[s,a]=ey(o,"=");s===void 0&&(s=o),a=a===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:$t(a,t),n($t(s,t),a,r)}for(const[i,o]of Object.entries(r))if(typeof o=="object"&&o!==null&&t.types[i]!=="string")for(const[s,a]of Object.entries(o)){const l=t.types[i]?t.types[i].replace("[]",""):void 0;o[s]=Zd(a,t,l)}else typeof o=="object"&&o!==null&&t.types[i]==="string"?r[i]=Object.values(o).join(t.arrayFormatSeparator):r[i]=Zd(o,t,t.types[i]);return t.sort===!1?r:(t.sort===!0?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((i,o)=>{const s=r[o];return i[o]=s&&typeof s=="object"&&!Array.isArray(s)?ny(s):s,i},Object.create(null))}function iy(e,t){if(!e)return"";t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t},ty(t.arrayFormatSeparator);const n=s=>t.skipNull&&qS(e[s])||t.skipEmptyString&&e[s]==="",r=QS(t),i={};for(const[s,a]of Object.entries(e))n(s)||(i[s]=a);const o=Object.keys(i);return t.sort!==!1&&o.sort(t.sort),o.map(s=>{const a=e[s];return a===void 0?"":a===null?ce(s,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?ce(s,t)+"[]":a.reduce(r(s),[]).join("&"):ce(s,t)+"="+ce(a,t)}).filter(s=>s.length>0).join("&")}function oy(e,t){var i;t={decode:!0,...t};let[n,r]=ey(e,"#");return n===void 0&&(n=e),{url:((i=n==null?void 0:n.split("?"))==null?void 0:i[0])??"",query:Tc(xc(e),t),...t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:$t(r,t)}:{}}}function sy(e,t){t={encode:!0,strict:!0,[tu]:!0,...t};const n=ry(e.url).split("?")[0]||"",r=xc(e.url),i={...Tc(r,{sort:!1}),...e.query};let o=iy(i,t);o&&(o=`?${o}`);let s=YS(e.url);if(typeof e.fragmentIdentifier=="string"){const a=new URL(n);a.hash=e.fragmentIdentifier,s=t[tu]?a.hash:`#${e.fragmentIdentifier}`}return`${n}${o}${s}`}function ay(e,t,n){n={parseFragmentIdentifier:!0,[tu]:!1,...n};const{url:r,query:i,fragmentIdentifier:o}=oy(e,n);return sy({url:r,query:WS(i,t),fragmentIdentifier:o},n)}function ZS(e,t,n){const r=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return ay(e,r,n)}const Cc=Object.freeze(Object.defineProperty({__proto__:null,exclude:ZS,extract:xc,parse:Tc,parseUrl:oy,pick:ay,stringify:iy,stringifyUrl:sy},Symbol.toStringTag,{value:"Module"}));var j={},nu={},P={};Object.defineProperty(P,"__esModule",{value:!0});P.GUEST_LOCALE_CHANGED=P.DRAWER_CLOSE=P.DRAWER_OPEN=P.CONVERSATION_RATING_FROM_GUEST=P.PROBLEM_REPORT_FROM_GUEST=P.TRANSCRIPT_MAIL_REQUEST=P.INBOX_CONNECT_REQUEST=P.RESTART_CHAT_REQUEST=P.EVENT_TO_GUEST=P.NLU_REQUEST_EVENT=P.EXPERTS_DISCONNECTED=P.EXPERTS_DISCONNECT_REQUEST=P.EXPERTS_CONNECTED=P.EXPERTS_CONNECT_REQUEST=P.MESSAGE_TO_GUEST=P.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=P.MESSAGE_FROM_GUEST=P.GUEST_FEEDBACK_RESPONSE=P.GUEST_DISCONNECTED=P.GUEST_CONNECTED=P.TYPING_OFF=P.TYPING_ON=void 0;P.TYPING_ON="core.typing.on";P.TYPING_OFF="core.typing.off";P.GUEST_CONNECTED="core.guest.connected";P.GUEST_DISCONNECTED="core.guest.disconnected";P.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response";P.MESSAGE_FROM_GUEST="core.message.from.guest";P.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest";P.MESSAGE_TO_GUEST="core.message.to.guest";P.EXPERTS_CONNECT_REQUEST="core.experts.connect.request";P.EXPERTS_CONNECTED="core.experts.connected";P.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request";P.EXPERTS_DISCONNECTED="core.experts.disconnected";P.NLU_REQUEST_EVENT="core.nlu.request.event";P.EVENT_TO_GUEST="core.event.to.guest";P.RESTART_CHAT_REQUEST="core.chat.restart.request";P.INBOX_CONNECT_REQUEST="core.inbox.connect.request";P.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request";P.PROBLEM_REPORT_FROM_GUEST="core.problem.report.from.guest";P.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest";P.DRAWER_OPEN="core.drawer.open";P.DRAWER_CLOSE="core.drawer.close";P.GUEST_LOCALE_CHANGED="core.guest.locale.changed";var ly={};Object.defineProperty(ly,"__esModule",{value:!0});var kc={};Object.defineProperty(kc,"__esModule",{value:!0});const JS=P,ew=()=>({type:JS.DRAWER_CLOSE});kc.default=ew;var Oc={};Object.defineProperty(Oc,"__esModule",{value:!0});const tw=P,nw=(e,t)=>({type:tw.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:e,intent:t}});Oc.default=nw;var Rc={};Object.defineProperty(Rc,"__esModule",{value:!0});const rw=P,iw=e=>({type:rw.GUEST_CONNECTED,payload:{sessionId:e}});Rc.default=iw;var Nc={};Object.defineProperty(Nc,"__esModule",{value:!0});const ow=P,sw=e=>({type:ow.GUEST_DISCONNECTED,payload:{sessionId:e}});Nc.default=sw;var Ac={};Object.defineProperty(Ac,"__esModule",{value:!0});const aw=P,lw=(e,t)=>({type:aw.GUEST_LOCALE_CHANGED,payload:{previousLocale:e,newLocale:t}});Ac.default=lw;var Pc={};Object.defineProperty(Pc,"__esModule",{value:!0});const uw=P,cw=e=>({type:uw.DRAWER_OPEN,payload:{contentUrl:e}});Pc.default=cw;var Ic={},ne={};Object.defineProperty(ne,"__esModule",{value:!0});ne.getStringRepresentationFromMessage=ne.MessageTypeEnum=ne.AudioMessage=ne.FileMessage=ne.ImageMessage=ne.VideoMessage=ne.MarkdownMessage=ne.DetailMessage=ne.TextMessage=ne.Message=void 0;let Cn=class{constructor(t,n){W(this,"type");W(this,"sender");W(this,"quickReplies");this.type=t,this.sender=n,this.quickReplies=[]}addQuickReply(t,n){this.quickReplies.push({label:t,payload:n})}};ne.Message=Cn;let fw=class extends Cn{constructor(n,r){super(Te.TEXT,r);W(this,"text");this.text=n}};ne.TextMessage=fw;let dw=class extends Cn{constructor(n,r){super(Te.DETAIL,r);W(this,"title");W(this,"subtitle");W(this,"text");W(this,"imageUrl");W(this,"itemUrl");W(this,"buttons");this.title=n,this.text="",this.subtitle="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(n){this.imageUrl=n}setItemUrl(n){this.itemUrl=n}setSubtitle(n){this.subtitle=n}setText(n){this.text=n}addButton(n){this.buttons.push(n)}};ne.DetailMessage=dw;let hw=class extends Cn{constructor(n,r,i){super(Te.MARKDOWN,i);W(this,"markdown");W(this,"excerpt");W(this,"className");this.markdown=n,this.excerpt=r,this.className=""}setClassName(n){this.className=n}};ne.MarkdownMessage=hw;class pw extends Cn{constructor(n,r){super(Te.VIDEO,r);W(this,"url");this.url=n}}ne.VideoMessage=pw;class mw extends Cn{constructor(n,r){super(Te.IMAGE,r);W(this,"url");this.url=n}}ne.ImageMessage=mw;class gw extends Cn{constructor(n,r){super(Te.FILE,r);W(this,"url");this.url=n}}ne.FileMessage=gw;class yw extends Cn{constructor(n,r){super(Te.AUDIO,r);W(this,"url");this.url=n}}ne.AudioMessage=yw;var Te;(function(e){e.TEXT="TEXT",e.DETAIL="DETAIL",e.MARKDOWN="MARKDOWN",e.VIDEO="VIDEO",e.IMAGE="IMAGE",e.FILE="FILE",e.AUDIO="AUDIO"})(Te||(ne.MessageTypeEnum=Te={}));const vw=e=>{switch(e.type){case Te.TEXT:return e.text;case Te.DETAIL:const n=e;return`${n.title} // ${n.subtitle}`;case Te.MARKDOWN:return e.excerpt;case Te.VIDEO:return`Video Url: ${e.url}`;case Te.IMAGE:return`Image Url: ${e.url}`;case Te.FILE:return`File Url: ${e.url}`;case Te.AUDIO:return`Audio Url: ${e.url}`;default:throw new Error("Unknown message type "+e.type)}};ne.getStringRepresentationFromMessage=vw;var Be={};Object.defineProperty(Be,"__esModule",{value:!0});Be.UserType=Be.PersonUser=Be.GuestUser=Be.BotUser=Be.User=void 0;class js{constructor(t,n,r,i){W(this,"type");W(this,"id");W(this,"name");W(this,"avatar");this.type=t,this.id=n,this.name=r,this.avatar=i}}Be.User=js;class _w extends js{constructor(){super(Fi.BOT,null,"Chatbot","bot.svg")}}Be.BotUser=_w;class Ew extends js{constructor(){super(Fi.GUEST,null,"Guest","visitor.svg")}}Be.GuestUser=Ew;class Sw extends js{constructor(t,n,r){super(Fi.PERSON,t,n,r)}}Be.PersonUser=Sw;var Fi;(function(e){e.GUEST="GUEST",e.BOT="BOT",e.PERSON="PERSON"})(Fi||(Be.UserType=Fi={}));Object.defineProperty(Ic,"__esModule",{value:!0});const ww=ne,bw=Be,xw=P,Tw=e=>{const t=new ww.TextMessage(e,new bw.GuestUser);return{type:xw.MESSAGE_FROM_GUEST,message:t}};Ic.default=Tw;var Dc={};Object.defineProperty(Dc,"__esModule",{value:!0});const Cw=ne,kw=Be,Ow=P,Rw=(e,t={})=>{const n=new Cw.TextMessage(e,new kw.GuestUser);return{type:Ow.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:n,payload:t}};Dc.default=Rw;var Fc={};Object.defineProperty(Fc,"__esModule",{value:!0});const Nw=P,Aw=(e,t)=>({type:Nw.PROBLEM_REPORT_FROM_GUEST,payload:{actionId:e,problem:t}});Fc.default=Aw;var Mc={};Object.defineProperty(Mc,"__esModule",{value:!0});const Pw=P,Iw=e=>({type:Pw.NLU_REQUEST_EVENT,event:e});Mc.default=Iw;var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0});const Dw=P,Fw=()=>({type:Dw.RESTART_CHAT_REQUEST});Lc.default=Fw;var Bc={};Object.defineProperty(Bc,"__esModule",{value:!0});const Mw=P,Lw=e=>({type:Mw.MESSAGE_TO_GUEST,message:e});Bc.default=Lw;(function(e){var t=X&&X.__createBinding||(Object.create?function(d,m,_,w){w===void 0&&(w=_);var b=Object.getOwnPropertyDescriptor(m,_);(!b||("get"in b?!m.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return m[_]}}),Object.defineProperty(d,w,b)}:function(d,m,_,w){w===void 0&&(w=_),d[w]=m[_]}),n=X&&X.__setModuleDefault||(Object.create?function(d,m){Object.defineProperty(d,"default",{enumerable:!0,value:m})}:function(d,m){d.default=m}),r=X&&X.__importStar||function(d){if(d&&d.__esModule)return d;var m={};if(d!=null)for(var _ in d)_!=="default"&&Object.prototype.hasOwnProperty.call(d,_)&&t(m,d,_);return n(m,d),m},i=X&&X.__exportStar||function(d,m){for(var _ in d)_!=="default"&&!Object.prototype.hasOwnProperty.call(m,_)&&t(m,d,_)},o=X&&X.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.sendMessageToGuest=e.restartChatRequest=e.requestNLUEvent=e.reportProblemFromGuest=e.receiveTextMessageWithoutAnalysisFromGuest=e.receiveTextMessageFromGuest=e.openDrawer=e.guestLocaleChanged=e.guestDisconnected=e.guestConnected=e.feedbackFromGuestResponse=e.closeDrawer=e.ActionTypes=void 0,e.ActionTypes=r(P),i(ly,e);const s=o(kc);e.closeDrawer=s.default;const a=o(Oc);e.feedbackFromGuestResponse=a.default;const l=o(Rc);e.guestConnected=l.default;const u=o(Nc);e.guestDisconnected=u.default;const f=o(Ac);e.guestLocaleChanged=f.default;const h=o(Pc);e.openDrawer=h.default;const c=o(Ic);e.receiveTextMessageFromGuest=c.default;const y=o(Dc);e.receiveTextMessageWithoutAnalysisFromGuest=y.default;const p=o(Fc);e.reportProblemFromGuest=p.default;const E=o(Mc);e.requestNLUEvent=E.default;const S=o(Lc);e.restartChatRequest=S.default;const g=o(Bc);e.sendMessageToGuest=g.default})(nu);var Ir={},uy={};Object.defineProperty(uy,"__esModule",{value:!0});var zs={};Object.defineProperty(zs,"__esModule",{value:!0});zs.NullableKnowledgeBaseAdapter=void 0;class Bw{async upsertApiKnowledgeBase(t){throw new Error("Method not implemented.")}async findApiKnowledgeBaseByName(t){throw new Error("Method not implemented.")}async deleteApiKnowledgeBaseByName(t){throw new Error("Method not implemented.")}async setIndexingStatus(t,n){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(t,n){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(t,n){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(t,n){throw new Error("Method not implemented.")}async subscribeToReindex(t,n){throw new Error("Method not implemented.")}isContentTypeSupported(t){throw new Error("Method not implemented.")}}zs.NullableKnowledgeBaseAdapter=Bw;var jw=X&&X.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),zw=X&&X.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Uw=X&&X.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&jw(t,e,n);return zw(t,e),t};Object.defineProperty(Ir,"__esModule",{value:!0});Ir.NullableCmsAdapter=Ir.KnowledgeBase=void 0;Ir.KnowledgeBase=Uw(uy);const $w=zs;Ir.NullableCmsAdapter={knowledgeBase:new $w.NullableKnowledgeBaseAdapter};var ru={},cy={};Object.defineProperty(cy,"__esModule",{value:!0});var Pt={};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.ButtonTypeEnum=Pt.PostbackButton=Pt.UrlButton=Pt.Button=void 0;class jc{constructor(t,n){W(this,"title");W(this,"type");this.title=t,this.type=n}}Pt.Button=jc;class Hw extends jc{constructor(n,r){super(n,fs.WEB_URL);W(this,"url");this.url=r}}Pt.UrlButton=Hw;class Gw extends jc{constructor(n,r){super(n,fs.POSTBACK);W(this,"payload");this.payload=r}}Pt.PostbackButton=Gw;var fs;(function(e){e.WEB_URL="web_url",e.POSTBACK="postback"})(fs||(Pt.ButtonTypeEnum=fs={}));var fy={};Object.defineProperty(fy,"__esModule",{value:!0});var Us={};Object.defineProperty(Us,"__esModule",{value:!0});Us.SatisfactionEnum=void 0;var Jd;(function(e){e.GOOD="GOOD",e.BAD="BAD"})(Jd||(Us.SatisfactionEnum=Jd={}));(function(e){var t=X&&X.__createBinding||(Object.create?function(r,i,o,s){s===void 0&&(s=o);var a=Object.getOwnPropertyDescriptor(i,o);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(r,s,a)}:function(r,i,o,s){s===void 0&&(s=o),r[s]=i[o]}),n=X&&X.__exportStar||function(r,i){for(var o in r)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&t(i,r,o)};Object.defineProperty(e,"__esModule",{value:!0}),n(cy,e),n(Pt,e),n(fy,e),n(Us,e),n(ne,e),n(Be,e)})(ru);(function(e){var t=X&&X.__createBinding||(Object.create?function(o,s,a,l){l===void 0&&(l=a);var u=Object.getOwnPropertyDescriptor(s,a);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[a]}}),Object.defineProperty(o,l,u)}:function(o,s,a,l){l===void 0&&(l=a),o[l]=s[a]}),n=X&&X.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),r=X&&X.__exportStar||function(o,s){for(var a in o)a!=="default"&&!Object.prototype.hasOwnProperty.call(s,a)&&t(s,o,a)},i=X&&X.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var a in o)a!=="default"&&Object.prototype.hasOwnProperty.call(o,a)&&t(s,o,a);return n(s,o),s};Object.defineProperty(e,"__esModule",{value:!0}),e.Model=e.CMS=e.Actions=void 0,r(nu,e),e.Actions=i(nu),e.CMS=i(Ir),r(ru,e),e.Model=i(ru)})(j);const dy=e=>t=>(e.payload.type!==j.ActionTypes.MESSAGE_FROM_GUEST&&t(j.receiveTextMessageWithoutAnalysisFromGuest(e.label,e.payload)),t(e.payload)),hy=e=>(t,n)=>{const{quickReplies:r}=n().chat,i=r.find(o=>e.toLocaleLowerCase().indexOf(o.label.toLocaleLowerCase())>-1);return t(i?dy({...i,label:e}):j.receiveTextMessageFromGuest(e))},$s="MESSAGE_TO_PARENT_PAGE",zc="RESTORE_PREVIOUS_CHAT_MESSAGES",Uc="AUDIO_MESSAGE_FROM_USER",$c="ENABLE_SPEECH_SUPPORT",Hc="ENABLE_BOT_REPLIES_VOTING_SUPPORT",Gc="ENABLE_TRANSCRIPT_EXPORT",Vw="EXPORT_TRANSCRIPT",Vc="RECEIVE_SPEECH_TRANSCRIPTION",Wc="SHOW_GENERAL_CONDITIONS",qc="ENABLE_CONVERSATION_RATING",Ww="webclient.get.started",py="webclient.expand.window",my="webclient.transcript.pdf.download",qw=[$s,zc,Uc,$c,Hc,Gc,Vw,Vc,Wc,qc],Xw=e=>({type:Uc,buffer:e}),Qw=()=>({type:$c}),Kw=()=>({type:Hc}),Yw=e=>({type:Vc,transcription:e}),Zw=e=>({type:Gc,methods:e}),Jw=e=>({type:j.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:e}}}),eb=()=>({type:Wc}),tb=()=>({type:my}),nb=({rating:e})=>({type:qc,payload:{rating:e}}),rb=(e,t)=>({type:j.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:e,feedback:t}}),gy=e=>j.requestNLUEvent(e),ib=e=>({type:zc,messages:e}),ob=e=>{switch(e.type){case j.ButtonTypeEnum.WEB_URL:return yy(e.url);case j.ButtonTypeEnum.POSTBACK:return e.payload;default:throw new Error(`unknown button type ${e.type}`)}},sb=e=>yy(e),yy=e=>({type:$s,message:{type:"webclient.change.url",url:e}}),ab=e=>({type:$s,message:{type:"webclient.change.translations",payload:{translations:e}}});/*! js-cookie v3.0.5 | MIT */function po(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var lb={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function iu(e,t){function n(i,o,s){if(!(typeof document>"u")){s=po({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in s)s[l]&&(a+="; "+l,s[l]!==!0&&(a+="="+s[l].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+a}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],s={},a=0;a<o.length;a++){var l=o[a].split("="),u=l.slice(1).join("=");try{var f=decodeURIComponent(l[0]);if(s[f]=e.read(u,f),i===f)break}catch{}}return i?s[i]:s}}return Object.create({set:n,get:r,remove:function(i,o){n(i,"",po({},o,{expires:-1}))},withAttributes:function(i){return iu(this.converter,po({},this.attributes,i))},withConverter:function(i){return iu(po({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Ia=iu(lb,{path:"/"});function ve(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ub=typeof Symbol=="function"&&Symbol.observable||"@@observable",eh=ub,Da=()=>Math.random().toString(36).substring(7).split("").join("."),cb={INIT:`@@redux/INIT${Da()}`,REPLACE:`@@redux/REPLACE${Da()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Da()}`},ds=cb;function Xc(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function vy(e,t,n){if(typeof e!="function")throw new Error(ve(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(ve(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(ve(1));return n(vy)(e,t)}let r=e,i=t,o=new Map,s=o,a=0,l=!1;function u(){s===o&&(s=new Map,o.forEach((S,g)=>{s.set(g,S)}))}function f(){if(l)throw new Error(ve(3));return i}function h(S){if(typeof S!="function")throw new Error(ve(4));if(l)throw new Error(ve(5));let g=!0;u();const d=a++;return s.set(d,S),function(){if(g){if(l)throw new Error(ve(6));g=!1,u(),s.delete(d),o=null}}}function c(S){if(!Xc(S))throw new Error(ve(7));if(typeof S.type>"u")throw new Error(ve(8));if(typeof S.type!="string")throw new Error(ve(17));if(l)throw new Error(ve(9));try{l=!0,i=r(i,S)}finally{l=!1}return(o=s).forEach(d=>{d()}),S}function y(S){if(typeof S!="function")throw new Error(ve(10));r=S,c({type:ds.REPLACE})}function p(){const S=h;return{subscribe(g){if(typeof g!="object"||g===null)throw new Error(ve(11));function d(){const _=g;_.next&&_.next(f())}return d(),{unsubscribe:S(d)}},[eh](){return this}}}return c({type:ds.INIT}),{dispatch:c,subscribe:h,getState:f,replaceReducer:y,[eh]:p}}function fb(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:ds.INIT})>"u")throw new Error(ve(12));if(typeof n(void 0,{type:ds.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ve(13))})}function _y(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const s=t[o];typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let i;try{fb(n)}catch(o){i=o}return function(s={},a){if(i)throw i;let l=!1;const u={};for(let f=0;f<r.length;f++){const h=r[f],c=n[h],y=s[h],p=c(y,a);if(typeof p>"u")throw a&&a.type,new Error(ve(14));u[h]=p,l=l||p!==y}return l=l||r.length!==Object.keys(s).length,l?u:s}}function hs(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function db(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(ve(15))};const s={getState:i.getState,dispatch:(l,...u)=>o(l,...u)},a=e.map(l=>l(s));return o=hs(...a)(i.dispatch),{...i,dispatch:o}}}function hb(e){return Xc(e)&&"type"in e&&typeof e.type=="string"}var Ey=Symbol.for("immer-nothing"),th=Symbol.for("immer-draftable"),qe=Symbol.for("immer-state");function gt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Dr=Object.getPrototypeOf;function Qn(e){return!!e&&!!e[qe]}function Zt(e){var t;return e?Sy(e)||Array.isArray(e)||!!e[th]||!!((t=e.constructor)!=null&&t[th])||Gs(e)||Vs(e):!1}var pb=Object.prototype.constructor.toString();function Sy(e){if(!e||typeof e!="object")return!1;const t=Dr(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===pb}function Mi(e,t){Hs(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function Hs(e){const t=e[qe];return t?t.type_:Array.isArray(e)?1:Gs(e)?2:Vs(e)?3:0}function ou(e,t){return Hs(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function wy(e,t,n){const r=Hs(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function mb(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Gs(e){return e instanceof Map}function Vs(e){return e instanceof Set}function Dn(e){return e.copy_||e.base_}function su(e,t){if(Gs(e))return new Map(e);if(Vs(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Sy(e))return Dr(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[qe];let r=Reflect.ownKeys(n);for(let i=0;i<r.length;i++){const o=r[i],s=n[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(Dr(e),n)}function Qc(e,t=!1){return Ws(e)||Qn(e)||!Zt(e)||(Hs(e)>1&&(e.set=e.add=e.clear=e.delete=gb),Object.freeze(e),t&&Mi(e,(n,r)=>Qc(r,!0))),e}function gb(){gt(2)}function Ws(e){return Object.isFrozen(e)}var yb={};function Kn(e){const t=yb[e];return t||gt(0,e),t}var Li;function by(){return Li}function vb(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function nh(e,t){t&&(Kn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function au(e){lu(e),e.drafts_.forEach(_b),e.drafts_=null}function lu(e){e===Li&&(Li=e.parent_)}function rh(e){return Li=vb(Li,e)}function _b(e){const t=e[qe];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ih(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[qe].modified_&&(au(t),gt(4)),Zt(e)&&(e=ps(t,e),t.parent_||ms(t,e)),t.patches_&&Kn("Patches").generateReplacementPatches_(n[qe].base_,e,t.patches_,t.inversePatches_)):e=ps(t,n,[]),au(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Ey?e:void 0}function ps(e,t,n){if(Ws(t))return t;const r=t[qe];if(!r)return Mi(t,(i,o)=>oh(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return ms(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,s=!1;r.type_===3&&(o=new Set(i),i.clear(),s=!0),Mi(o,(a,l)=>oh(e,r,i,a,l,n,s)),ms(e,i,!1),n&&e.patches_&&Kn("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function oh(e,t,n,r,i,o,s){if(Qn(i)){const a=o&&t&&t.type_!==3&&!ou(t.assigned_,r)?o.concat(r):void 0,l=ps(e,i,a);if(wy(n,r,l),Qn(l))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(Zt(i)&&!Ws(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ps(e,i),(!t||!t.scope_.parent_)&&ms(e,i)}}function ms(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Qc(t,n)}function Eb(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:by(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=Kc;n&&(i=[r],o=Bi);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=s,a}var Kc={get(e,t){if(t===qe)return e;const n=Dn(e);if(!ou(n,t))return Sb(e,n,t);const r=n[t];return e.finalized_||!Zt(r)?r:r===Fa(e.base_,t)?(Ma(e),e.copy_[t]=cu(r,e)):r},has(e,t){return t in Dn(e)},ownKeys(e){return Reflect.ownKeys(Dn(e))},set(e,t,n){const r=xy(Dn(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Fa(Dn(e),t),o=i==null?void 0:i[qe];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(mb(n,i)&&(n!==void 0||ou(e.base_,t)))return!0;Ma(e),uu(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Fa(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ma(e),uu(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Dn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){gt(11)},getPrototypeOf(e){return Dr(e.base_)},setPrototypeOf(){gt(12)}},Bi={};Mi(Kc,(e,t)=>{Bi[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Bi.deleteProperty=function(e,t){return Bi.set.call(this,e,t,void 0)};Bi.set=function(e,t,n){return Kc.set.call(this,e[0],t,n,e[0])};function Fa(e,t){const n=e[qe];return(n?Dn(n):e)[t]}function Sb(e,t,n){var i;const r=xy(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function xy(e,t){if(!(t in e))return;let n=Dr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Dr(n)}}function uu(e){e.modified_||(e.modified_=!0,e.parent_&&uu(e.parent_))}function Ma(e){e.copy_||(e.copy_=su(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var wb=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const s=this;return function(l=o,...u){return s.produce(l,f=>n.call(this,f,...u))}}typeof n!="function"&&gt(6),r!==void 0&&typeof r!="function"&&gt(7);let i;if(Zt(t)){const o=rh(this),s=cu(t,void 0);let a=!0;try{i=n(s),a=!1}finally{a?au(o):lu(o)}return nh(o,r),ih(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Ey&&(i=void 0),this.autoFreeze_&&Qc(i,!0),r){const o=[],s=[];Kn("Patches").generateReplacementPatches_(t,i,o,s),r(o,s)}return i}else gt(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let r,i;return[this.produce(t,n,(s,a)=>{r=s,i=a}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Zt(e)||gt(8),Qn(e)&&(e=bb(e));const t=rh(this),n=cu(e,void 0);return n[qe].isManual_=!0,lu(t),n}finishDraft(e,t){const n=e&&e[qe];(!n||!n.isManual_)&&gt(9);const{scope_:r}=n;return nh(r,t),ih(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Kn("Patches").applyPatches_;return Qn(e)?r(e,t):this.produce(e,i=>r(i,t))}};function cu(e,t){const n=Gs(e)?Kn("MapSet").proxyMap_(e,t):Vs(e)?Kn("MapSet").proxySet_(e,t):Eb(e,t);return(t?t.scope_:by()).drafts_.push(n),n}function bb(e){return Qn(e)||gt(10,e),Ty(e)}function Ty(e){if(!Zt(e)||Ws(e))return e;const t=e[qe];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=su(e,t.scope_.immer_.useStrictShallowCopy_)}else n=su(e,!0);return Mi(n,(r,i)=>{wy(n,r,Ty(i))}),t&&(t.finalized_=!1),n}var Xe=new wb,Cy=Xe.produce;Xe.produceWithPatches.bind(Xe);Xe.setAutoFreeze.bind(Xe);Xe.setUseStrictShallowCopy.bind(Xe);Xe.applyPatches.bind(Xe);Xe.createDraft.bind(Xe);Xe.finishDraft.bind(Xe);function ky(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var xb=ky(),Tb=ky,Cb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?hs:hs.apply(null,arguments)};function sh(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Et(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>hb(r)&&r.type===e,n}var Oy=class si extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,si.prototype)}static get[Symbol.species](){return si}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new si(...t[0].concat(this)):new si(...t.concat(this))}};function ah(e){return Zt(e)?Cy(e,()=>{}):e}function lh(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(Et(10));const r=n.insert(t,e);return e.set(t,r),r}function kb(e){return typeof e=="boolean"}var Ob=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new Oy;return n&&(kb(n)?s.push(xb):s.push(Tb(n.extraArgument))),s},Rb="RTK_autoBatch",Ry=e=>t=>{setTimeout(t,e)},Nb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ry(10),Ab=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,s=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?Nb:e.type==="callback"?e.queueNotification:Ry(e.timeout),u=()=>{s=!1,o&&(o=!1,a.forEach(f=>f()))};return Object.assign({},r,{subscribe(f){const h=()=>i&&f(),c=r.subscribe(h);return a.add(f),()=>{c(),a.delete(f)}},dispatch(f){var h;try{return i=!((h=f==null?void 0:f.meta)!=null&&h[Rb]),o=!i,o&&(s||(s=!0,l(u))),r.dispatch(f)}finally{i=!0}}})},Pb=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Oy(e);return r&&i.push(Ab(typeof r=="object"?r:void 0)),i};function Ib(e){const t=Ob(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(Xc(n))a=_y(n);else throw new Error(Et(1));let l;typeof r=="function"?l=r(t):l=t();let u=hs;i&&(u=Cb({trace:!1,...typeof i=="object"&&i}));const f=db(...l),h=Pb(f);let c=typeof s=="function"?s(h):h();const y=u(...c);return vy(a,o,y)}function Ny(e){const t={},n=[];let r;const i={addCase(o,s){const a=typeof o=="string"?o:o.type;if(!a)throw new Error(Et(28));if(a in t)throw new Error(Et(29));return t[a]=s,i},addMatcher(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function Db(e){return typeof e=="function"}function Fb(e,t){let[n,r,i]=Ny(t),o;if(Db(e))o=()=>ah(e());else{const a=ah(e);o=()=>a}function s(a=o(),l){let u=[n[l.type],...r.filter(({matcher:f})=>f(l)).map(({reducer:f})=>f)];return u.filter(f=>!!f).length===0&&(u=[i]),u.reduce((f,h)=>{if(h)if(Qn(f)){const y=h(f,l);return y===void 0?f:y}else{if(Zt(f))return Cy(f,c=>h(c,l));{const c=h(f,l);if(c===void 0){if(f===null)return f;throw new Error(Et(9))}return c}}return f},a)}return s.getInitialState=o,s}var Mb=Symbol.for("rtk-slice-createasyncthunk");function Lb(e,t){return`${e}/${t}`}function Bb({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[Mb];return function(i){const{name:o,reducerPath:s=o}=i;if(!o)throw new Error(Et(11));typeof process<"u";const a=(typeof i.reducers=="function"?i.reducers(zb()):i.reducers)||{},l=Object.keys(a),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(m,_){const w=typeof m=="string"?m:m.type;if(!w)throw new Error(Et(12));if(w in u.sliceCaseReducersByType)throw new Error(Et(13));return u.sliceCaseReducersByType[w]=_,f},addMatcher(m,_){return u.sliceMatchers.push({matcher:m,reducer:_}),f},exposeAction(m,_){return u.actionCreators[m]=_,f},exposeCaseReducer(m,_){return u.sliceCaseReducersByName[m]=_,f}};l.forEach(m=>{const _=a[m],w={reducerName:m,type:Lb(o,m),createNotation:typeof i.reducers=="function"};$b(_)?Gb(w,_,f,t):Ub(w,_,f)});function h(){const[m={},_=[],w=void 0]=typeof i.extraReducers=="function"?Ny(i.extraReducers):[i.extraReducers],b={...m,...u.sliceCaseReducersByType};return Fb(i.initialState,x=>{for(let T in b)x.addCase(T,b[T]);for(let T of u.sliceMatchers)x.addMatcher(T.matcher,T.reducer);for(let T of _)x.addMatcher(T.matcher,T.reducer);w&&x.addDefaultCase(w)})}const c=m=>m,y=new Map;let p;function E(m,_){return p||(p=h()),p(m,_)}function S(){return p||(p=h()),p.getInitialState()}function g(m,_=!1){function w(x){let T=x[m];return typeof T>"u"&&_&&(T=S()),T}function b(x=c){const T=lh(y,_,{insert:()=>new WeakMap});return lh(T,x,{insert:()=>{const F={};for(const[D,K]of Object.entries(i.selectors??{}))F[D]=jb(K,x,S,_);return F}})}return{reducerPath:m,getSelectors:b,get selectors(){return b(w)},selectSlice:w}}const d={name:o,reducer:E,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:S,...g(s),injectInto(m,{reducerPath:_,...w}={}){const b=_??s;return m.inject({reducerPath:b,reducer:E},w),{...d,...g(b,!0)}}};return d}}function jb(e,t,n,r){function i(o,...s){let a=t(o);return typeof a>"u"&&r&&(a=n()),e(a,...s)}return i.unwrapped=e,i}var Ay=Bb();function zb(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function Ub({type:e,reducerName:t,createNotation:n},r,i){let o,s;if("reducer"in r){if(n&&!Hb(r))throw new Error(Et(17));o=r.reducer,s=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?sh(e,s):sh(e))}function $b(e){return e._reducerDefinitionType==="asyncThunk"}function Hb(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Gb({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Et(18));const{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:u,options:f}=n,h=i(e,o,f);r.exposeAction(t,h),s&&r.addCase(h.fulfilled,s),a&&r.addCase(h.pending,a),l&&r.addCase(h.rejected,l),u&&r.addMatcher(h.settled,u),r.exposeCaseReducer(t,{fulfilled:s||mo,pending:a||mo,rejected:l||mo,settled:u||mo})}function mo(){}function Et(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const Vb={useStartScreen:void 0,formValues:{}},Py=Ay({name:"start-screen",initialState:Vb,reducers:{enableStartScreen(e){e.useStartScreen=!0},disableStartScreen(e){e.useStartScreen=!1},showStartScreen(e){e.startScreenStatus="VISIBLE",e.formValues={}},startChat(e,t){e.startScreenStatus="HIDDEN",e.formValues=t.payload}}}),{enableStartScreen:Wb,disableStartScreen:qb,startChat:Xb,showStartScreen:Qb}=Py.actions,Kb=Py.reducer,Iy="RESET_CHAT_STATE",Yb=()=>({type:Iy}),Yc="CONNECT",Zc="CONNECTING",Jc="CONNECTED",ef="DISCONNECTED",tf="RECONNECTED",nf="RESTORE_SESSION_ID",qs="START",Xs="CLEAR_SESSION_ID",Zb=[Yc,Zc,Jc,ef,tf,nf],Jb=(e,t)=>({type:Yc,clientName:e,querystrings:t}),ex=e=>({type:nf,sessionId:e}),tx=()=>({type:Zc}),nx=()=>({type:Jc}),rx=()=>({type:ef}),ix=()=>({type:tf}),Dy=(e,t)=>(n,r)=>{const i=r().connection,o=r().startScreen.formValues;let s=i.sessionId;s===void 0&&(s=crypto.randomUUID());let a=i.userId;if(a===void 0){const l=Ia.get("bubble-chat-userId")||Ia.get("bf-webclient-userId");a=l||crypto.randomUUID(),Ia.set("bubble-chat-userId",a)}n({type:qs,payload:{sessionId:s,userId:a,clientName:e,querystrings:{...t,...o}}})},rf=(e,t)=>(n,r)=>{const i=r().connection.sessionId||"";if(n(ox(i)),n(Yb()),r().startScreen.useStartScreen)n(Qb());else return n(Dy(e,t))},ox=e=>({type:Xs,payload:{sessionId:e}}),lt=()=>{const e=Bs();return n=>{const r=e.formatMessage({id:n});return r===n?void 0:r}};var jn=(e=>(e[e.CONNECTING=0]="CONNECTING",e[e.CONNECTED=1]="CONNECTED",e[e.RECONNECTED=2]="RECONNECTED",e[e.DISCONNECTED=3]="DISCONNECTED",e))(jn||{}),Fy=(e=>(e.GUEST="GUEST",e.BOT="BOT",e.PERSON="PERSON",e))(Fy||{});const sx="_button_1uhq5_54",ax="_buttonDefault_1uhq5_66",lx="_buttonPrimary_1uhq5_80",ux="_accessabilityHidden_1uhq5_132",Ee={button:sx,buttonDefault:ax,buttonPrimary:lx,accessabilityHidden:ux},cx="_chatwindow_phukm_1",fx="_chatcontent_phukm_13",dx={chatwindow:cx,chatcontent:fx},hx="_messageContainer_1wdci_1",px="_messages_1wdci_10",uh={messageContainer:hx,messages:px};function Fn(){return Fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fn.apply(this,arguments)}const mx=["children","options"],I={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",tableSeparator:"26",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var ch;(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(ch||(ch={}));const fh=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),dh={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},gx=["style","script"],yx=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,vx=/mailto:/i,_x=/\n{2,}$/,My=/^(\s*>[\s\S]*?)(?=\n{2,})/,Ex=/^ *> ?/gm,Sx=/^ {2,}\n/,wx=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Ly=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,By=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,bx=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,xx=/^(?:\n *)*\n/,Tx=/\r\n?/g,Cx=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,kx=/^\[\^([^\]]+)]/,Ox=/\f/g,Rx=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,Nx=/^\s*?\[(x|\s)\]/,jy=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,zy=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Uy=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,fu=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,Ax=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,$y=/^<!--[\s\S]*?(?:-->)/,Px=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,du=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,Ix=/^\{.*\}$/,Dx=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Fx=/^<([^ >]+@[^ >]+)>/,Mx=/^<([^ >]+:\/[^ >]+)>/,Lx=/-([a-z])?/gi,Hy=/^(.*\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,Bx=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,jx=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,zx=/^\[([^\]]*)\] ?\[([^\]]*)\]/,Ux=/(\[|\])/g,$x=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Hx=/\t/g,Gx=/(^ *\||\| *$)/g,Vx=/^ *:-+: *$/,Wx=/^ *:-+ *$/,qx=/^ *-+: *$/,Qs="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",Xx=new RegExp(`^([*_])\\1${Qs}\\1\\1(?!\\1)`),Qx=new RegExp(`^([*_])${Qs}\\1(?!\\1|\\w)`),Kx=new RegExp(`^==${Qs}==`),Yx=new RegExp(`^~~${Qs}~~`),Zx=/^\\([^0-9A-Za-z\s])/,Jx=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,eT=/^\n+/,tT=/^([ \t]*)/,nT=/\\([^\\])/g,hh=/ *\n+$/,rT=/(?:^|\n)( *)$/,of="(?:\\d+\\.)",sf="(?:[*+-])";function Gy(e){return"( *)("+(e===1?of:sf)+") +"}const Vy=Gy(1),Wy=Gy(2);function qy(e){return new RegExp("^"+(e===1?Vy:Wy))}const iT=qy(1),oT=qy(2);function Xy(e){return new RegExp("^"+(e===1?Vy:Wy)+"[^\\n]*(?:\\n(?!\\1"+(e===1?of:sf)+" )[^\\n]*)*(\\n|$)","gm")}const Qy=Xy(1),Ky=Xy(2);function Yy(e){const t=e===1?of:sf;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Zy=Yy(1),Jy=Yy(2);function ph(e,t){const n=t===1,r=n?Zy:Jy,i=n?Qy:Ky,o=n?iT:oT;return{match(s,a,l){const u=rT.exec(l);return u&&(a.list||!a.inline&&!a.simple)?r.exec(s=u[1]+s):null},order:1,parse(s,a,l){const u=n?+s[2]:void 0,f=s[0].replace(_x,`
77
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(o=i(o,r(a)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var a in o)t.call(o,a)&&o[a]&&(s=i(s,a));return s}function i(o,s){return s?o?o+" "+s:o+s:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Zg);var $S=Zg.exports;const k=Su($S),Jg="%[a-f0-9]{2}",Kd=new RegExp("("+Jg+")|([^%]+?)","gi"),Yd=new RegExp("("+Jg+")+","gi");function eu(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;const n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],eu(n),eu(r))}function HS(e){try{return decodeURIComponent(e)}catch{let t=e.match(Kd)||[];for(let n=1;n<t.length;n++)e=eu(t,n).join(""),t=e.match(Kd)||[];return e}}function GS(e){const t={"%FE%FF":"��","%FF%FE":"��"};let n=Yd.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{const i=HS(n[0]);i!==n[0]&&(t[n[0]]=i)}n=Yd.exec(e)}t["%C2"]="�";const r=Object.keys(t);for(const i of r)e=e.replace(new RegExp(i,"g"),t[i]);return e}function VS(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return GS(e)}}function WS(e,t){const n={};if(Array.isArray(t))for(const r of t){const i=Object.getOwnPropertyDescriptor(e,r);i!=null&&i.enumerable&&Object.defineProperty(n,r,i)}else for(const r of Reflect.ownKeys(e)){const i=Object.getOwnPropertyDescriptor(e,r);if(i.enumerable){const o=e[r];t(r,o,e)&&Object.defineProperty(n,r,i)}}return n}function ey(e,t){if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e===""||t==="")return[];const n=e.indexOf(t);return n===-1?[]:[e.slice(0,n),e.slice(n+t.length)]}const qS=e=>e==null,XS=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),tu=Symbol("encodeFragmentIdentifier");function QS(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,[ce(t,e),"[",i,"]"].join("")]:[...n,[ce(t,e),"[",ce(i,e),"]=",ce(r,e)].join("")]};case"bracket":return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,[ce(t,e),"[]"].join("")]:[...n,[ce(t,e),"[]=",ce(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,[ce(t,e),":list="].join("")]:[...n,[ce(t,e),":list=",ce(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t=e.arrayFormat==="bracket-separator"?"[]=":"=";return n=>(r,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?r:(i=i===null?"":i,r.length===0?[[ce(n,e),t,ce(i,e)].join("")]:[[r,ce(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>r===void 0||e.skipNull&&r===null||e.skipEmptyString&&r===""?n:r===null?[...n,ce(t,e)]:[...n,[ce(t,e),"=",ce(r,e)].join("")]}}function KS(e){let t;switch(e.arrayFormat){case"index":return(n,r,i)=>{if(t=/\[(\d*)]$/.exec(n),n=n.replace(/\[\d*]$/,""),!t){i[n]=r;return}i[n]===void 0&&(i[n]={}),i[n][t[1]]=r};case"bracket":return(n,r,i)=>{if(t=/(\[])$/.exec(n),n=n.replace(/\[]$/,""),!t){i[n]=r;return}if(i[n]===void 0){i[n]=[r];return}i[n]=[...i[n],r]};case"colon-list-separator":return(n,r,i)=>{if(t=/(:list)$/.exec(n),n=n.replace(/:list$/,""),!t){i[n]=r;return}if(i[n]===void 0){i[n]=[r];return}i[n]=[...i[n],r]};case"comma":case"separator":return(n,r,i)=>{const o=typeof r=="string"&&r.includes(e.arrayFormatSeparator),s=typeof r=="string"&&!o&&$t(r,e).includes(e.arrayFormatSeparator);r=s?$t(r,e):r;const a=o||s?r.split(e.arrayFormatSeparator).map(l=>$t(l,e)):r===null?r:$t(r,e);i[n]=a};case"bracket-separator":return(n,r,i)=>{const o=/(\[])$/.test(n);if(n=n.replace(/\[]$/,""),!o){i[n]=r&&$t(r,e);return}const s=r===null?[]:r.split(e.arrayFormatSeparator).map(a=>$t(a,e));if(i[n]===void 0){i[n]=s;return}i[n]=[...i[n],...s]};default:return(n,r,i)=>{if(i[n]===void 0){i[n]=r;return}i[n]=[...[i[n]].flat(),r]}}}function ty(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function ce(e,t){return t.encode?t.strict?XS(e):encodeURIComponent(e):e}function $t(e,t){return t.decode?VS(e):e}function ny(e){return Array.isArray(e)?e.sort():typeof e=="object"?ny(Object.keys(e)).sort((t,n)=>Number(t)-Number(n)).map(t=>e[t]):e}function ry(e){const t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function YS(e){let t="";const n=e.indexOf("#");return n!==-1&&(t=e.slice(n)),t}function Zd(e,t,n){return n==="string"&&typeof e=="string"?e:typeof n=="function"&&typeof e=="string"?n(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")?e.toLowerCase()==="true":n==="number"&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""||t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?Number(e):e}function xc(e){e=ry(e);const t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function Tc(e,t){t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,types:Object.create(null),...t},ty(t.arrayFormatSeparator);const n=KS(t),r=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return r;for(const i of e.split("&")){if(i==="")continue;const o=t.decode?i.replaceAll("+"," "):i;let[s,a]=ey(o,"=");s===void 0&&(s=o),a=a===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:$t(a,t),n($t(s,t),a,r)}for(const[i,o]of Object.entries(r))if(typeof o=="object"&&o!==null&&t.types[i]!=="string")for(const[s,a]of Object.entries(o)){const l=t.types[i]?t.types[i].replace("[]",""):void 0;o[s]=Zd(a,t,l)}else typeof o=="object"&&o!==null&&t.types[i]==="string"?r[i]=Object.values(o).join(t.arrayFormatSeparator):r[i]=Zd(o,t,t.types[i]);return t.sort===!1?r:(t.sort===!0?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((i,o)=>{const s=r[o];return i[o]=s&&typeof s=="object"&&!Array.isArray(s)?ny(s):s,i},Object.create(null))}function iy(e,t){if(!e)return"";t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t},ty(t.arrayFormatSeparator);const n=s=>t.skipNull&&qS(e[s])||t.skipEmptyString&&e[s]==="",r=QS(t),i={};for(const[s,a]of Object.entries(e))n(s)||(i[s]=a);const o=Object.keys(i);return t.sort!==!1&&o.sort(t.sort),o.map(s=>{const a=e[s];return a===void 0?"":a===null?ce(s,t):Array.isArray(a)?a.length===0&&t.arrayFormat==="bracket-separator"?ce(s,t)+"[]":a.reduce(r(s),[]).join("&"):ce(s,t)+"="+ce(a,t)}).filter(s=>s.length>0).join("&")}function oy(e,t){var i;t={decode:!0,...t};let[n,r]=ey(e,"#");return n===void 0&&(n=e),{url:((i=n==null?void 0:n.split("?"))==null?void 0:i[0])??"",query:Tc(xc(e),t),...t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:$t(r,t)}:{}}}function sy(e,t){t={encode:!0,strict:!0,[tu]:!0,...t};const n=ry(e.url).split("?")[0]||"",r=xc(e.url),i={...Tc(r,{sort:!1}),...e.query};let o=iy(i,t);o&&(o=`?${o}`);let s=YS(e.url);if(typeof e.fragmentIdentifier=="string"){const a=new URL(n);a.hash=e.fragmentIdentifier,s=t[tu]?a.hash:`#${e.fragmentIdentifier}`}return`${n}${o}${s}`}function ay(e,t,n){n={parseFragmentIdentifier:!0,[tu]:!1,...n};const{url:r,query:i,fragmentIdentifier:o}=oy(e,n);return sy({url:r,query:WS(i,t),fragmentIdentifier:o},n)}function ZS(e,t,n){const r=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return ay(e,r,n)}const Cc=Object.freeze(Object.defineProperty({__proto__:null,exclude:ZS,extract:xc,parse:Tc,parseUrl:oy,pick:ay,stringify:iy,stringifyUrl:sy},Symbol.toStringTag,{value:"Module"}));var j={},nu={},P={};Object.defineProperty(P,"__esModule",{value:!0});P.GUEST_LOCALE_CHANGED=P.DRAWER_CLOSE=P.DRAWER_OPEN=P.CONVERSATION_RATING_FROM_GUEST=P.PROBLEM_REPORT_FROM_GUEST=P.TRANSCRIPT_MAIL_REQUEST=P.INBOX_CONNECT_REQUEST=P.RESTART_CHAT_REQUEST=P.EVENT_TO_GUEST=P.NLU_REQUEST_EVENT=P.EXPERTS_DISCONNECTED=P.EXPERTS_DISCONNECT_REQUEST=P.EXPERTS_CONNECTED=P.EXPERTS_CONNECT_REQUEST=P.MESSAGE_TO_GUEST=P.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST=P.MESSAGE_FROM_GUEST=P.GUEST_FEEDBACK_RESPONSE=P.GUEST_DISCONNECTED=P.GUEST_CONNECTED=P.TYPING_OFF=P.TYPING_ON=void 0;P.TYPING_ON="core.typing.on";P.TYPING_OFF="core.typing.off";P.GUEST_CONNECTED="core.guest.connected";P.GUEST_DISCONNECTED="core.guest.disconnected";P.GUEST_FEEDBACK_RESPONSE="core.guest.feedback.response";P.MESSAGE_FROM_GUEST="core.message.from.guest";P.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST="core.message.without.analysis.from.guest";P.MESSAGE_TO_GUEST="core.message.to.guest";P.EXPERTS_CONNECT_REQUEST="core.experts.connect.request";P.EXPERTS_CONNECTED="core.experts.connected";P.EXPERTS_DISCONNECT_REQUEST="core.experts.disconnect.request";P.EXPERTS_DISCONNECTED="core.experts.disconnected";P.NLU_REQUEST_EVENT="core.nlu.request.event";P.EVENT_TO_GUEST="core.event.to.guest";P.RESTART_CHAT_REQUEST="core.chat.restart.request";P.INBOX_CONNECT_REQUEST="core.inbox.connect.request";P.TRANSCRIPT_MAIL_REQUEST="core.transcript.mail.request";P.PROBLEM_REPORT_FROM_GUEST="core.problem.report.from.guest";P.CONVERSATION_RATING_FROM_GUEST="core.conversation.rating.from.guest";P.DRAWER_OPEN="core.drawer.open";P.DRAWER_CLOSE="core.drawer.close";P.GUEST_LOCALE_CHANGED="core.guest.locale.changed";var ly={};Object.defineProperty(ly,"__esModule",{value:!0});var kc={};Object.defineProperty(kc,"__esModule",{value:!0});const JS=P,ew=()=>({type:JS.DRAWER_CLOSE});kc.default=ew;var Oc={};Object.defineProperty(Oc,"__esModule",{value:!0});const tw=P,nw=(e,t)=>({type:tw.GUEST_FEEDBACK_RESPONSE,payload:{satisfaction:e,intent:t}});Oc.default=nw;var Rc={};Object.defineProperty(Rc,"__esModule",{value:!0});const rw=P,iw=e=>({type:rw.GUEST_CONNECTED,payload:{sessionId:e}});Rc.default=iw;var Nc={};Object.defineProperty(Nc,"__esModule",{value:!0});const ow=P,sw=e=>({type:ow.GUEST_DISCONNECTED,payload:{sessionId:e}});Nc.default=sw;var Ac={};Object.defineProperty(Ac,"__esModule",{value:!0});const aw=P,lw=(e,t)=>({type:aw.GUEST_LOCALE_CHANGED,payload:{previousLocale:e,newLocale:t}});Ac.default=lw;var Pc={};Object.defineProperty(Pc,"__esModule",{value:!0});const uw=P,cw=e=>({type:uw.DRAWER_OPEN,payload:{contentUrl:e}});Pc.default=cw;var Ic={},ne={};Object.defineProperty(ne,"__esModule",{value:!0});ne.getStringRepresentationFromMessage=ne.MessageTypeEnum=ne.AudioMessage=ne.FileMessage=ne.ImageMessage=ne.VideoMessage=ne.MarkdownMessage=ne.DetailMessage=ne.TextMessage=ne.Message=void 0;let Cn=class{constructor(t,n){W(this,"type");W(this,"sender");W(this,"quickReplies");this.type=t,this.sender=n,this.quickReplies=[]}addQuickReply(t,n){this.quickReplies.push({label:t,payload:n})}};ne.Message=Cn;let fw=class extends Cn{constructor(n,r){super(Te.TEXT,r);W(this,"text");this.text=n}};ne.TextMessage=fw;let dw=class extends Cn{constructor(n,r){super(Te.DETAIL,r);W(this,"title");W(this,"subtitle");W(this,"text");W(this,"imageUrl");W(this,"itemUrl");W(this,"buttons");this.title=n,this.text="",this.subtitle="",this.imageUrl="",this.itemUrl="",this.buttons=[]}setImageUrl(n){this.imageUrl=n}setItemUrl(n){this.itemUrl=n}setSubtitle(n){this.subtitle=n}setText(n){this.text=n}addButton(n){this.buttons.push(n)}};ne.DetailMessage=dw;let hw=class extends Cn{constructor(n,r,i){super(Te.MARKDOWN,i);W(this,"markdown");W(this,"excerpt");W(this,"className");this.markdown=n,this.excerpt=r,this.className=""}setClassName(n){this.className=n}};ne.MarkdownMessage=hw;class pw extends Cn{constructor(n,r){super(Te.VIDEO,r);W(this,"url");this.url=n}}ne.VideoMessage=pw;class mw extends Cn{constructor(n,r){super(Te.IMAGE,r);W(this,"url");this.url=n}}ne.ImageMessage=mw;class gw extends Cn{constructor(n,r){super(Te.FILE,r);W(this,"url");this.url=n}}ne.FileMessage=gw;class yw extends Cn{constructor(n,r){super(Te.AUDIO,r);W(this,"url");this.url=n}}ne.AudioMessage=yw;var Te;(function(e){e.TEXT="TEXT",e.DETAIL="DETAIL",e.MARKDOWN="MARKDOWN",e.VIDEO="VIDEO",e.IMAGE="IMAGE",e.FILE="FILE",e.AUDIO="AUDIO"})(Te||(ne.MessageTypeEnum=Te={}));const vw=e=>{switch(e.type){case Te.TEXT:return e.text;case Te.DETAIL:const n=e;return`${n.title} // ${n.subtitle}`;case Te.MARKDOWN:return e.excerpt;case Te.VIDEO:return`Video Url: ${e.url}`;case Te.IMAGE:return`Image Url: ${e.url}`;case Te.FILE:return`File Url: ${e.url}`;case Te.AUDIO:return`Audio Url: ${e.url}`;default:throw new Error("Unknown message type "+e.type)}};ne.getStringRepresentationFromMessage=vw;var Be={};Object.defineProperty(Be,"__esModule",{value:!0});Be.UserType=Be.PersonUser=Be.GuestUser=Be.BotUser=Be.User=void 0;class js{constructor(t,n,r,i){W(this,"type");W(this,"id");W(this,"name");W(this,"avatar");this.type=t,this.id=n,this.name=r,this.avatar=i}}Be.User=js;class _w extends js{constructor(){super(Fi.BOT,null,"Chatbot","bot.svg")}}Be.BotUser=_w;class Ew extends js{constructor(){super(Fi.GUEST,null,"Guest","visitor.svg")}}Be.GuestUser=Ew;class Sw extends js{constructor(t,n,r){super(Fi.PERSON,t,n,r)}}Be.PersonUser=Sw;var Fi;(function(e){e.GUEST="GUEST",e.BOT="BOT",e.PERSON="PERSON"})(Fi||(Be.UserType=Fi={}));Object.defineProperty(Ic,"__esModule",{value:!0});const ww=ne,bw=Be,xw=P,Tw=e=>{const t=new ww.TextMessage(e,new bw.GuestUser);return{type:xw.MESSAGE_FROM_GUEST,message:t}};Ic.default=Tw;var Dc={};Object.defineProperty(Dc,"__esModule",{value:!0});const Cw=ne,kw=Be,Ow=P,Rw=(e,t={})=>{const n=new Cw.TextMessage(e,new kw.GuestUser);return{type:Ow.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST,message:n,payload:t}};Dc.default=Rw;var Fc={};Object.defineProperty(Fc,"__esModule",{value:!0});const Nw=P,Aw=(e,t)=>({type:Nw.PROBLEM_REPORT_FROM_GUEST,payload:{actionId:e,problem:t}});Fc.default=Aw;var Mc={};Object.defineProperty(Mc,"__esModule",{value:!0});const Pw=P,Iw=e=>({type:Pw.NLU_REQUEST_EVENT,event:e});Mc.default=Iw;var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0});const Dw=P,Fw=()=>({type:Dw.RESTART_CHAT_REQUEST});Lc.default=Fw;var Bc={};Object.defineProperty(Bc,"__esModule",{value:!0});const Mw=P,Lw=e=>({type:Mw.MESSAGE_TO_GUEST,message:e});Bc.default=Lw;(function(e){var t=X&&X.__createBinding||(Object.create?function(d,m,_,w){w===void 0&&(w=_);var b=Object.getOwnPropertyDescriptor(m,_);(!b||("get"in b?!m.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return m[_]}}),Object.defineProperty(d,w,b)}:function(d,m,_,w){w===void 0&&(w=_),d[w]=m[_]}),n=X&&X.__setModuleDefault||(Object.create?function(d,m){Object.defineProperty(d,"default",{enumerable:!0,value:m})}:function(d,m){d.default=m}),r=X&&X.__importStar||function(d){if(d&&d.__esModule)return d;var m={};if(d!=null)for(var _ in d)_!=="default"&&Object.prototype.hasOwnProperty.call(d,_)&&t(m,d,_);return n(m,d),m},i=X&&X.__exportStar||function(d,m){for(var _ in d)_!=="default"&&!Object.prototype.hasOwnProperty.call(m,_)&&t(m,d,_)},o=X&&X.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.sendMessageToGuest=e.restartChatRequest=e.requestNLUEvent=e.reportProblemFromGuest=e.receiveTextMessageWithoutAnalysisFromGuest=e.receiveTextMessageFromGuest=e.openDrawer=e.guestLocaleChanged=e.guestDisconnected=e.guestConnected=e.feedbackFromGuestResponse=e.closeDrawer=e.ActionTypes=void 0,e.ActionTypes=r(P),i(ly,e);const s=o(kc);e.closeDrawer=s.default;const a=o(Oc);e.feedbackFromGuestResponse=a.default;const l=o(Rc);e.guestConnected=l.default;const u=o(Nc);e.guestDisconnected=u.default;const f=o(Ac);e.guestLocaleChanged=f.default;const h=o(Pc);e.openDrawer=h.default;const c=o(Ic);e.receiveTextMessageFromGuest=c.default;const y=o(Dc);e.receiveTextMessageWithoutAnalysisFromGuest=y.default;const p=o(Fc);e.reportProblemFromGuest=p.default;const E=o(Mc);e.requestNLUEvent=E.default;const S=o(Lc);e.restartChatRequest=S.default;const g=o(Bc);e.sendMessageToGuest=g.default})(nu);var Ir={},uy={};Object.defineProperty(uy,"__esModule",{value:!0});var zs={};Object.defineProperty(zs,"__esModule",{value:!0});zs.NullableKnowledgeBaseAdapter=void 0;class Bw{async upsertApiKnowledgeBase(t){throw new Error("Method not implemented.")}async findApiKnowledgeBaseByName(t){throw new Error("Method not implemented.")}async deleteApiKnowledgeBaseByName(t){throw new Error("Method not implemented.")}async setIndexingStatus(t,n){throw new Error("Method not implemented.")}async upsertKnowledgeBaseEntry(t,n){throw new Error("Method not implemented.")}async retrieveKnowledgeBaseEntryConfig(t,n){throw new Error("Method not implemented.")}async deleteKnowledgeBaseEntriesIndexedBeforeDate(t,n){throw new Error("Method not implemented.")}async subscribeToReindex(t,n){throw new Error("Method not implemented.")}isContentTypeSupported(t){throw new Error("Method not implemented.")}}zs.NullableKnowledgeBaseAdapter=Bw;var jw=X&&X.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),zw=X&&X.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Uw=X&&X.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&jw(t,e,n);return zw(t,e),t};Object.defineProperty(Ir,"__esModule",{value:!0});Ir.NullableCmsAdapter=Ir.KnowledgeBase=void 0;Ir.KnowledgeBase=Uw(uy);const $w=zs;Ir.NullableCmsAdapter={knowledgeBase:new $w.NullableKnowledgeBaseAdapter};var ru={},cy={};Object.defineProperty(cy,"__esModule",{value:!0});var Pt={};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.ButtonTypeEnum=Pt.PostbackButton=Pt.UrlButton=Pt.Button=void 0;class jc{constructor(t,n){W(this,"title");W(this,"type");this.title=t,this.type=n}}Pt.Button=jc;class Hw extends jc{constructor(n,r){super(n,fs.WEB_URL);W(this,"url");this.url=r}}Pt.UrlButton=Hw;class Gw extends jc{constructor(n,r){super(n,fs.POSTBACK);W(this,"payload");this.payload=r}}Pt.PostbackButton=Gw;var fs;(function(e){e.WEB_URL="web_url",e.POSTBACK="postback"})(fs||(Pt.ButtonTypeEnum=fs={}));var fy={};Object.defineProperty(fy,"__esModule",{value:!0});var Us={};Object.defineProperty(Us,"__esModule",{value:!0});Us.SatisfactionEnum=void 0;var Jd;(function(e){e.GOOD="GOOD",e.BAD="BAD"})(Jd||(Us.SatisfactionEnum=Jd={}));(function(e){var t=X&&X.__createBinding||(Object.create?function(r,i,o,s){s===void 0&&(s=o);var a=Object.getOwnPropertyDescriptor(i,o);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(r,s,a)}:function(r,i,o,s){s===void 0&&(s=o),r[s]=i[o]}),n=X&&X.__exportStar||function(r,i){for(var o in r)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&t(i,r,o)};Object.defineProperty(e,"__esModule",{value:!0}),n(cy,e),n(Pt,e),n(fy,e),n(Us,e),n(ne,e),n(Be,e)})(ru);(function(e){var t=X&&X.__createBinding||(Object.create?function(o,s,a,l){l===void 0&&(l=a);var u=Object.getOwnPropertyDescriptor(s,a);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[a]}}),Object.defineProperty(o,l,u)}:function(o,s,a,l){l===void 0&&(l=a),o[l]=s[a]}),n=X&&X.__setModuleDefault||(Object.create?function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}:function(o,s){o.default=s}),r=X&&X.__exportStar||function(o,s){for(var a in o)a!=="default"&&!Object.prototype.hasOwnProperty.call(s,a)&&t(s,o,a)},i=X&&X.__importStar||function(o){if(o&&o.__esModule)return o;var s={};if(o!=null)for(var a in o)a!=="default"&&Object.prototype.hasOwnProperty.call(o,a)&&t(s,o,a);return n(s,o),s};Object.defineProperty(e,"__esModule",{value:!0}),e.Model=e.CMS=e.Actions=void 0,r(nu,e),e.Actions=i(nu),e.CMS=i(Ir),r(ru,e),e.Model=i(ru)})(j);const dy=e=>t=>(e.payload.type!==j.ActionTypes.MESSAGE_FROM_GUEST&&t(j.receiveTextMessageWithoutAnalysisFromGuest(e.label,e.payload)),t(e.payload)),hy=e=>(t,n)=>{const{quickReplies:r}=n().chat,i=r.find(o=>e.toLocaleLowerCase().indexOf(o.label.toLocaleLowerCase())>-1);return t(i?dy({...i,label:e}):j.receiveTextMessageFromGuest(e))},$s="MESSAGE_TO_PARENT_PAGE",zc="RESTORE_PREVIOUS_CHAT_MESSAGES",Uc="AUDIO_MESSAGE_FROM_USER",$c="ENABLE_SPEECH_SUPPORT",Hc="ENABLE_BOT_REPLIES_VOTING_SUPPORT",Gc="ENABLE_TRANSCRIPT_EXPORT",Vw="EXPORT_TRANSCRIPT",Vc="RECEIVE_SPEECH_TRANSCRIPTION",Wc="SHOW_GENERAL_CONDITIONS",qc="ENABLE_CONVERSATION_RATING",Ww="webclient.get.started",py="webclient.expand.window",my="webclient.transcript.pdf.download",qw=[$s,zc,Uc,$c,Hc,Gc,Vw,Vc,Wc,qc],Xw=e=>({type:Uc,buffer:e}),Qw=()=>({type:$c}),Kw=()=>({type:Hc}),Yw=e=>({type:Vc,transcription:e}),Zw=e=>({type:Gc,methods:e}),Jw=e=>({type:j.ActionTypes.TRANSCRIPT_MAIL_REQUEST,payload:{parameters:{mailTo:e}}}),eb=()=>({type:Wc}),tb=()=>({type:my}),nb=({rating:e})=>({type:qc,payload:{rating:e}}),rb=(e,t)=>({type:j.ActionTypes.CONVERSATION_RATING_FROM_GUEST,payload:{value:e,feedback:t}}),gy=e=>j.requestNLUEvent(e),ib=e=>({type:zc,messages:e}),ob=e=>{switch(e.type){case j.ButtonTypeEnum.WEB_URL:return yy(e.url);case j.ButtonTypeEnum.POSTBACK:return e.payload;default:throw new Error(`unknown button type ${e.type}`)}},sb=e=>yy(e),yy=e=>({type:$s,message:{type:"webclient.change.url",url:e}}),ab=e=>({type:$s,message:{type:"webclient.change.translations",payload:{translations:e}}});/*! js-cookie v3.0.5 | MIT */function po(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var lb={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function iu(e,t){function n(i,o,s){if(!(typeof document>"u")){s=po({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in s)s[l]&&(a+="; "+l,s[l]!==!0&&(a+="="+s[l].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+a}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],s={},a=0;a<o.length;a++){var l=o[a].split("="),u=l.slice(1).join("=");try{var f=decodeURIComponent(l[0]);if(s[f]=e.read(u,f),i===f)break}catch{}}return i?s[i]:s}}return Object.create({set:n,get:r,remove:function(i,o){n(i,"",po({},o,{expires:-1}))},withAttributes:function(i){return iu(this.converter,po({},this.attributes,i))},withConverter:function(i){return iu(po({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Ia=iu(lb,{path:"/"});function ve(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ub=typeof Symbol=="function"&&Symbol.observable||"@@observable",eh=ub,Da=()=>Math.random().toString(36).substring(7).split("").join("."),cb={INIT:`@@redux/INIT${Da()}`,REPLACE:`@@redux/REPLACE${Da()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Da()}`},ds=cb;function Xc(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function vy(e,t,n){if(typeof e!="function")throw new Error(ve(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(ve(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(ve(1));return n(vy)(e,t)}let r=e,i=t,o=new Map,s=o,a=0,l=!1;function u(){s===o&&(s=new Map,o.forEach((S,g)=>{s.set(g,S)}))}function f(){if(l)throw new Error(ve(3));return i}function h(S){if(typeof S!="function")throw new Error(ve(4));if(l)throw new Error(ve(5));let g=!0;u();const d=a++;return s.set(d,S),function(){if(g){if(l)throw new Error(ve(6));g=!1,u(),s.delete(d),o=null}}}function c(S){if(!Xc(S))throw new Error(ve(7));if(typeof S.type>"u")throw new Error(ve(8));if(typeof S.type!="string")throw new Error(ve(17));if(l)throw new Error(ve(9));try{l=!0,i=r(i,S)}finally{l=!1}return(o=s).forEach(d=>{d()}),S}function y(S){if(typeof S!="function")throw new Error(ve(10));r=S,c({type:ds.REPLACE})}function p(){const S=h;return{subscribe(g){if(typeof g!="object"||g===null)throw new Error(ve(11));function d(){const _=g;_.next&&_.next(f())}return d(),{unsubscribe:S(d)}},[eh](){return this}}}return c({type:ds.INIT}),{dispatch:c,subscribe:h,getState:f,replaceReducer:y,[eh]:p}}function fb(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:ds.INIT})>"u")throw new Error(ve(12));if(typeof n(void 0,{type:ds.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ve(13))})}function _y(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const s=t[o];typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let i;try{fb(n)}catch(o){i=o}return function(s={},a){if(i)throw i;let l=!1;const u={};for(let f=0;f<r.length;f++){const h=r[f],c=n[h],y=s[h],p=c(y,a);if(typeof p>"u")throw a&&a.type,new Error(ve(14));u[h]=p,l=l||p!==y}return l=l||r.length!==Object.keys(s).length,l?u:s}}function hs(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function db(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(ve(15))};const s={getState:i.getState,dispatch:(l,...u)=>o(l,...u)},a=e.map(l=>l(s));return o=hs(...a)(i.dispatch),{...i,dispatch:o}}}function hb(e){return Xc(e)&&"type"in e&&typeof e.type=="string"}var Ey=Symbol.for("immer-nothing"),th=Symbol.for("immer-draftable"),qe=Symbol.for("immer-state");function gt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Dr=Object.getPrototypeOf;function Qn(e){return!!e&&!!e[qe]}function Zt(e){var t;return e?Sy(e)||Array.isArray(e)||!!e[th]||!!((t=e.constructor)!=null&&t[th])||Gs(e)||Vs(e):!1}var pb=Object.prototype.constructor.toString();function Sy(e){if(!e||typeof e!="object")return!1;const t=Dr(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===pb}function Mi(e,t){Hs(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function Hs(e){const t=e[qe];return t?t.type_:Array.isArray(e)?1:Gs(e)?2:Vs(e)?3:0}function ou(e,t){return Hs(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function wy(e,t,n){const r=Hs(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function mb(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Gs(e){return e instanceof Map}function Vs(e){return e instanceof Set}function Dn(e){return e.copy_||e.base_}function su(e,t){if(Gs(e))return new Map(e);if(Vs(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Sy(e))return Dr(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[qe];let r=Reflect.ownKeys(n);for(let i=0;i<r.length;i++){const o=r[i],s=n[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(Dr(e),n)}function Qc(e,t=!1){return Ws(e)||Qn(e)||!Zt(e)||(Hs(e)>1&&(e.set=e.add=e.clear=e.delete=gb),Object.freeze(e),t&&Mi(e,(n,r)=>Qc(r,!0))),e}function gb(){gt(2)}function Ws(e){return Object.isFrozen(e)}var yb={};function Kn(e){const t=yb[e];return t||gt(0,e),t}var Li;function by(){return Li}function vb(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function nh(e,t){t&&(Kn("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function au(e){lu(e),e.drafts_.forEach(_b),e.drafts_=null}function lu(e){e===Li&&(Li=e.parent_)}function rh(e){return Li=vb(Li,e)}function _b(e){const t=e[qe];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ih(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[qe].modified_&&(au(t),gt(4)),Zt(e)&&(e=ps(t,e),t.parent_||ms(t,e)),t.patches_&&Kn("Patches").generateReplacementPatches_(n[qe].base_,e,t.patches_,t.inversePatches_)):e=ps(t,n,[]),au(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Ey?e:void 0}function ps(e,t,n){if(Ws(t))return t;const r=t[qe];if(!r)return Mi(t,(i,o)=>oh(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return ms(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,s=!1;r.type_===3&&(o=new Set(i),i.clear(),s=!0),Mi(o,(a,l)=>oh(e,r,i,a,l,n,s)),ms(e,i,!1),n&&e.patches_&&Kn("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function oh(e,t,n,r,i,o,s){if(Qn(i)){const a=o&&t&&t.type_!==3&&!ou(t.assigned_,r)?o.concat(r):void 0,l=ps(e,i,a);if(wy(n,r,l),Qn(l))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(Zt(i)&&!Ws(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ps(e,i),(!t||!t.scope_.parent_)&&ms(e,i)}}function ms(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Qc(t,n)}function Eb(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:by(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=Kc;n&&(i=[r],o=Bi);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return r.draft_=a,r.revoke_=s,a}var Kc={get(e,t){if(t===qe)return e;const n=Dn(e);if(!ou(n,t))return Sb(e,n,t);const r=n[t];return e.finalized_||!Zt(r)?r:r===Fa(e.base_,t)?(Ma(e),e.copy_[t]=cu(r,e)):r},has(e,t){return t in Dn(e)},ownKeys(e){return Reflect.ownKeys(Dn(e))},set(e,t,n){const r=xy(Dn(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Fa(Dn(e),t),o=i==null?void 0:i[qe];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(mb(n,i)&&(n!==void 0||ou(e.base_,t)))return!0;Ma(e),uu(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Fa(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ma(e),uu(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Dn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){gt(11)},getPrototypeOf(e){return Dr(e.base_)},setPrototypeOf(){gt(12)}},Bi={};Mi(Kc,(e,t)=>{Bi[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Bi.deleteProperty=function(e,t){return Bi.set.call(this,e,t,void 0)};Bi.set=function(e,t,n){return Kc.set.call(this,e[0],t,n,e[0])};function Fa(e,t){const n=e[qe];return(n?Dn(n):e)[t]}function Sb(e,t,n){var i;const r=xy(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function xy(e,t){if(!(t in e))return;let n=Dr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Dr(n)}}function uu(e){e.modified_||(e.modified_=!0,e.parent_&&uu(e.parent_))}function Ma(e){e.copy_||(e.copy_=su(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var wb=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const s=this;return function(l=o,...u){return s.produce(l,f=>n.call(this,f,...u))}}typeof n!="function"&&gt(6),r!==void 0&&typeof r!="function"&&gt(7);let i;if(Zt(t)){const o=rh(this),s=cu(t,void 0);let a=!0;try{i=n(s),a=!1}finally{a?au(o):lu(o)}return nh(o,r),ih(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Ey&&(i=void 0),this.autoFreeze_&&Qc(i,!0),r){const o=[],s=[];Kn("Patches").generateReplacementPatches_(t,i,o,s),r(o,s)}return i}else gt(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...a)=>this.produceWithPatches(s,l=>t(l,...a));let r,i;return[this.produce(t,n,(s,a)=>{r=s,i=a}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Zt(e)||gt(8),Qn(e)&&(e=bb(e));const t=rh(this),n=cu(e,void 0);return n[qe].isManual_=!0,lu(t),n}finishDraft(e,t){const n=e&&e[qe];(!n||!n.isManual_)&&gt(9);const{scope_:r}=n;return nh(r,t),ih(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Kn("Patches").applyPatches_;return Qn(e)?r(e,t):this.produce(e,i=>r(i,t))}};function cu(e,t){const n=Gs(e)?Kn("MapSet").proxyMap_(e,t):Vs(e)?Kn("MapSet").proxySet_(e,t):Eb(e,t);return(t?t.scope_:by()).drafts_.push(n),n}function bb(e){return Qn(e)||gt(10,e),Ty(e)}function Ty(e){if(!Zt(e)||Ws(e))return e;const t=e[qe];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=su(e,t.scope_.immer_.useStrictShallowCopy_)}else n=su(e,!0);return Mi(n,(r,i)=>{wy(n,r,Ty(i))}),t&&(t.finalized_=!1),n}var Xe=new wb,Cy=Xe.produce;Xe.produceWithPatches.bind(Xe);Xe.setAutoFreeze.bind(Xe);Xe.setUseStrictShallowCopy.bind(Xe);Xe.applyPatches.bind(Xe);Xe.createDraft.bind(Xe);Xe.finishDraft.bind(Xe);function ky(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var xb=ky(),Tb=ky,Cb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?hs:hs.apply(null,arguments)};function sh(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Et(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>hb(r)&&r.type===e,n}var Oy=class si extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,si.prototype)}static get[Symbol.species](){return si}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new si(...t[0].concat(this)):new si(...t.concat(this))}};function ah(e){return Zt(e)?Cy(e,()=>{}):e}function lh(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(Et(10));const r=n.insert(t,e);return e.set(t,r),r}function kb(e){return typeof e=="boolean"}var Ob=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new Oy;return n&&(kb(n)?s.push(xb):s.push(Tb(n.extraArgument))),s},Rb="RTK_autoBatch",Ry=e=>t=>{setTimeout(t,e)},Nb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ry(10),Ab=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,s=!1;const a=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?Nb:e.type==="callback"?e.queueNotification:Ry(e.timeout),u=()=>{s=!1,o&&(o=!1,a.forEach(f=>f()))};return Object.assign({},r,{subscribe(f){const h=()=>i&&f(),c=r.subscribe(h);return a.add(f),()=>{c(),a.delete(f)}},dispatch(f){var h;try{return i=!((h=f==null?void 0:f.meta)!=null&&h[Rb]),o=!i,o&&(s||(s=!0,l(u))),r.dispatch(f)}finally{i=!0}}})},Pb=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Oy(e);return r&&i.push(Ab(typeof r=="object"?r:void 0)),i};function Ib(e){const t=Ob(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let a;if(typeof n=="function")a=n;else if(Xc(n))a=_y(n);else throw new Error(Et(1));let l;typeof r=="function"?l=r(t):l=t();let u=hs;i&&(u=Cb({trace:!1,...typeof i=="object"&&i}));const f=db(...l),h=Pb(f);let c=typeof s=="function"?s(h):h();const y=u(...c);return vy(a,o,y)}function Ny(e){const t={},n=[];let r;const i={addCase(o,s){const a=typeof o=="string"?o:o.type;if(!a)throw new Error(Et(28));if(a in t)throw new Error(Et(29));return t[a]=s,i},addMatcher(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function Db(e){return typeof e=="function"}function Fb(e,t){let[n,r,i]=Ny(t),o;if(Db(e))o=()=>ah(e());else{const a=ah(e);o=()=>a}function s(a=o(),l){let u=[n[l.type],...r.filter(({matcher:f})=>f(l)).map(({reducer:f})=>f)];return u.filter(f=>!!f).length===0&&(u=[i]),u.reduce((f,h)=>{if(h)if(Qn(f)){const y=h(f,l);return y===void 0?f:y}else{if(Zt(f))return Cy(f,c=>h(c,l));{const c=h(f,l);if(c===void 0){if(f===null)return f;throw new Error(Et(9))}return c}}return f},a)}return s.getInitialState=o,s}var Mb=Symbol.for("rtk-slice-createasyncthunk");function Lb(e,t){return`${e}/${t}`}function Bb({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[Mb];return function(i){const{name:o,reducerPath:s=o}=i;if(!o)throw new Error(Et(11));typeof process<"u";const a=(typeof i.reducers=="function"?i.reducers(zb()):i.reducers)||{},l=Object.keys(a),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(m,_){const w=typeof m=="string"?m:m.type;if(!w)throw new Error(Et(12));if(w in u.sliceCaseReducersByType)throw new Error(Et(13));return u.sliceCaseReducersByType[w]=_,f},addMatcher(m,_){return u.sliceMatchers.push({matcher:m,reducer:_}),f},exposeAction(m,_){return u.actionCreators[m]=_,f},exposeCaseReducer(m,_){return u.sliceCaseReducersByName[m]=_,f}};l.forEach(m=>{const _=a[m],w={reducerName:m,type:Lb(o,m),createNotation:typeof i.reducers=="function"};$b(_)?Gb(w,_,f,t):Ub(w,_,f)});function h(){const[m={},_=[],w=void 0]=typeof i.extraReducers=="function"?Ny(i.extraReducers):[i.extraReducers],b={...m,...u.sliceCaseReducersByType};return Fb(i.initialState,x=>{for(let T in b)x.addCase(T,b[T]);for(let T of u.sliceMatchers)x.addMatcher(T.matcher,T.reducer);for(let T of _)x.addMatcher(T.matcher,T.reducer);w&&x.addDefaultCase(w)})}const c=m=>m,y=new Map;let p;function E(m,_){return p||(p=h()),p(m,_)}function S(){return p||(p=h()),p.getInitialState()}function g(m,_=!1){function w(x){let T=x[m];return typeof T>"u"&&_&&(T=S()),T}function b(x=c){const T=lh(y,_,{insert:()=>new WeakMap});return lh(T,x,{insert:()=>{const F={};for(const[D,K]of Object.entries(i.selectors??{}))F[D]=jb(K,x,S,_);return F}})}return{reducerPath:m,getSelectors:b,get selectors(){return b(w)},selectSlice:w}}const d={name:o,reducer:E,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:S,...g(s),injectInto(m,{reducerPath:_,...w}={}){const b=_??s;return m.inject({reducerPath:b,reducer:E},w),{...d,...g(b,!0)}}};return d}}function jb(e,t,n,r){function i(o,...s){let a=t(o);return typeof a>"u"&&r&&(a=n()),e(a,...s)}return i.unwrapped=e,i}var Ay=Bb();function zb(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function Ub({type:e,reducerName:t,createNotation:n},r,i){let o,s;if("reducer"in r){if(n&&!Hb(r))throw new Error(Et(17));o=r.reducer,s=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?sh(e,s):sh(e))}function $b(e){return e._reducerDefinitionType==="asyncThunk"}function Hb(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Gb({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Et(18));const{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:u,options:f}=n,h=i(e,o,f);r.exposeAction(t,h),s&&r.addCase(h.fulfilled,s),a&&r.addCase(h.pending,a),l&&r.addCase(h.rejected,l),u&&r.addMatcher(h.settled,u),r.exposeCaseReducer(t,{fulfilled:s||mo,pending:a||mo,rejected:l||mo,settled:u||mo})}function mo(){}function Et(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const Vb={useStartScreen:void 0,formValues:{}},Py=Ay({name:"start-screen",initialState:Vb,reducers:{enableStartScreen(e){e.useStartScreen=!0},disableStartScreen(e){e.useStartScreen=!1},showStartScreen(e){e.startScreenStatus="VISIBLE",e.formValues={}},startChat(e,t){e.startScreenStatus="HIDDEN",e.formValues=t.payload}}}),{enableStartScreen:Wb,disableStartScreen:qb,startChat:Xb,showStartScreen:Qb}=Py.actions,Kb=Py.reducer,Iy="RESET_CHAT_STATE",Yb=()=>({type:Iy}),Yc="CONNECT",Zc="CONNECTING",Jc="CONNECTED",ef="DISCONNECTED",tf="RECONNECTED",nf="RESTORE_SESSION_ID",qs="START",Xs="CLEAR_SESSION_ID",Zb=[Yc,Zc,Jc,ef,tf,nf],Jb=(e,t)=>({type:Yc,clientName:e,querystrings:t}),ex=e=>({type:nf,sessionId:e}),tx=()=>({type:Zc}),nx=()=>({type:Jc}),rx=()=>({type:ef}),ix=()=>({type:tf}),Dy=(e,t)=>(n,r)=>{const i=r().connection,o=r().startScreen.formValues;let s=i.sessionId;s===void 0&&(s=crypto.randomUUID());let a=i.userId;if(a===void 0){const l=Ia.get("bubble-chat-userId")||Ia.get("bf-webclient-userId");a=l||crypto.randomUUID(),Ia.set("bubble-chat-userId",a)}n({type:qs,payload:{sessionId:s,userId:a,clientName:e,querystrings:{...t,...o}}})},rf=(e,t)=>(n,r)=>{const i=r().connection.sessionId||"";if(n(ox(i)),n(Yb()),r().startScreen.useStartScreen)n(Qb());else return n(Dy(e,t))},ox=e=>({type:Xs,payload:{sessionId:e}}),lt=()=>{const e=Bs();return n=>{const r=e.formatMessage({id:n});return r===n?void 0:r}};var jn=(e=>(e[e.CONNECTING=0]="CONNECTING",e[e.CONNECTED=1]="CONNECTED",e[e.RECONNECTED=2]="RECONNECTED",e[e.DISCONNECTED=3]="DISCONNECTED",e))(jn||{}),Fy=(e=>(e.GUEST="GUEST",e.BOT="BOT",e.PERSON="PERSON",e))(Fy||{});const sx="_button_9v54n_54",ax="_buttonDefault_9v54n_66",lx="_buttonPrimary_9v54n_80",ux="_accessabilityHidden_9v54n_132",Ee={button:sx,buttonDefault:ax,buttonPrimary:lx,accessabilityHidden:ux},cx="_chatwindow_phukm_1",fx="_chatcontent_phukm_13",dx={chatwindow:cx,chatcontent:fx},hx="_messageContainer_1wdci_1",px="_messages_1wdci_10",uh={messageContainer:hx,messages:px};function Fn(){return Fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fn.apply(this,arguments)}const mx=["children","options"],I={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",tableSeparator:"26",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var ch;(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(ch||(ch={}));const fh=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),dh={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},gx=["style","script"],yx=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,vx=/mailto:/i,_x=/\n{2,}$/,My=/^(\s*>[\s\S]*?)(?=\n{2,})/,Ex=/^ *> ?/gm,Sx=/^ {2,}\n/,wx=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Ly=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,By=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,bx=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,xx=/^(?:\n *)*\n/,Tx=/\r\n?/g,Cx=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,kx=/^\[\^([^\]]+)]/,Ox=/\f/g,Rx=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,Nx=/^\s*?\[(x|\s)\]/,jy=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,zy=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Uy=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,fu=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,Ax=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,$y=/^<!--[\s\S]*?(?:-->)/,Px=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,du=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,Ix=/^\{.*\}$/,Dx=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Fx=/^<([^ >]+@[^ >]+)>/,Mx=/^<([^ >]+:\/[^ >]+)>/,Lx=/-([a-z])?/gi,Hy=/^(.*\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,Bx=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,jx=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,zx=/^\[([^\]]*)\] ?\[([^\]]*)\]/,Ux=/(\[|\])/g,$x=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Hx=/\t/g,Gx=/(^ *\||\| *$)/g,Vx=/^ *:-+: *$/,Wx=/^ *:-+ *$/,qx=/^ *-+: *$/,Qs="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",Xx=new RegExp(`^([*_])\\1${Qs}\\1\\1(?!\\1)`),Qx=new RegExp(`^([*_])${Qs}\\1(?!\\1|\\w)`),Kx=new RegExp(`^==${Qs}==`),Yx=new RegExp(`^~~${Qs}~~`),Zx=/^\\([^0-9A-Za-z\s])/,Jx=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,eT=/^\n+/,tT=/^([ \t]*)/,nT=/\\([^\\])/g,hh=/ *\n+$/,rT=/(?:^|\n)( *)$/,of="(?:\\d+\\.)",sf="(?:[*+-])";function Gy(e){return"( *)("+(e===1?of:sf)+") +"}const Vy=Gy(1),Wy=Gy(2);function qy(e){return new RegExp("^"+(e===1?Vy:Wy))}const iT=qy(1),oT=qy(2);function Xy(e){return new RegExp("^"+(e===1?Vy:Wy)+"[^\\n]*(?:\\n(?!\\1"+(e===1?of:sf)+" )[^\\n]*)*(\\n|$)","gm")}const Qy=Xy(1),Ky=Xy(2);function Yy(e){const t=e===1?of:sf;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Zy=Yy(1),Jy=Yy(2);function ph(e,t){const n=t===1,r=n?Zy:Jy,i=n?Qy:Ky,o=n?iT:oT;return{match(s,a,l){const u=rT.exec(l);return u&&(a.list||!a.inline&&!a.simple)?r.exec(s=u[1]+s):null},order:1,parse(s,a,l){const u=n?+s[2]:void 0,f=s[0].replace(_x,`
78
78
  `).match(i);let h=!1;return{items:f.map(function(c,y){const p=o.exec(c)[0].length,E=new RegExp("^ {1,"+p+"}","gm"),S=c.replace(E,"").replace(o,""),g=y===f.length-1,d=S.indexOf(`
79
79
 
80
80
  `)!==-1||g&&h;h=d;const m=l.inline,_=l.list;let w;l.list=!0,d?(l.inline=!1,w=S.replace(hh,`
@@ -101,4 +101,4 @@ For more details see https://formatjs.io/docs/getting-started/message-distributi
101
101
 
102
102
  - La cronologia delle chat è memorizzata nell'area UE e può essere visualizzata solo da persone autorizzate.
103
103
  - Non inserire dati personali nella finestra di chat (password, data di nascita, ecc.).`,"general-conditions.accept-conditions-note":"Utilizzando la chat si accettano le condizioni d'uso.","problem-report.action.mark":"Segna come errato","problem-report.action.unmark":"Rimuovere il marcatore","block-user-input.title":"Attendere la risposta del chatbot.","conversation-rating.call-to-action.title":"Valuta questa chat","conversation-rating.overlay.title":"Quanto sei soddisfatto di questa chat?","conversation-rating.overlay.guest-feedback.input-placeholder":"Inserisci qui il tuo feedback (opzionale)","conversation-rating.overlay.star.very-bad":"Molto male","conversation-rating.overlay.star.very-good":"Molto buono","conversation-rating.overlay.bot-message.rate-feedback.value-1":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-2":"Oh, non suona bene. Vi prego di darmi un feedback in modo che possa imparare di più.","conversation-rating.overlay.bot-message.rate-feedback.value-3":"La media non è il mio obiettivo, cosa posso ancora migliorare?","conversation-rating.overlay.bot-message.rate-feedback.value-4":"Anche l'assenza è finita. Cosa posso migliorare per ottenere tutte le stelle la prossima volta?","conversation-rating.overlay.bot-message.rate-feedback.value-5":"Perfetto! Allora spero di potervi consigliare ancora una volta bene.","conversation-rating.overlay.bot-message.submit-feedback":"Grazie mille per il feedback. Mi impegno costantemente per migliorare.","conversation-rating.overlay.action.submit":"Invia","conversation-rating.overlay.action.close":"Chiudere","start-screen.intro":"","start-screen.start-chat":"Avviare la chat","header.restart-chat":"Riavviare la chat","header.close-chat":"Ridurre al minimo la chat"},zR=["de","en","fr","it"],yv={locale:"de",messages:gv},UR=(e,t)=>{if(zR.includes(e)){const n=$R(e),r=MR.dot(t);return{...n,...r}}return t},$R=e=>{switch(e.toString()){case"en":return LR;case"fr":return BR;case"it":return jR;default:return gv}},HR=(e=GR,t)=>{switch(t.type){case Zc:return Object.assign({},e,{connectionState:jn.CONNECTING});case Jc:return Object.assign({},e,{connectionState:jn.CONNECTED});case ef:return Object.assign({},e,{connectionState:jn.DISCONNECTED});case tf:return Object.assign({},e,{connectionState:jn.RECONNECTED});case nf:return Object.assign({},e,{sessionId:t.sessionId});case qs:return Object.assign({},e,{sessionId:t.payload.sessionId,userId:t.payload.userId});case Xs:return Object.assign({},e,{sessionId:void 0});default:return e}},GR={connectionState:jn.DISCONNECTED,sessionId:void 0,userId:void 0},VR=(e=Vh,t)=>{switch(t.type){case Iy:return Vh;case qs:return sr({type:"webclient.chat.started"}),e;case Xs:return sr({type:"webclient.chat.ended"}),e;case j.ActionTypes.TYPING_ON:return Object.assign({},e,{isBotTyping:!0});case j.ActionTypes.TYPING_OFF:return Object.assign({},e,{isBotTyping:!1});case j.ActionTypes.MESSAGE_FROM_GUEST:case j.ActionTypes.MESSAGE_WITHOUT_ANALYSIS_FROM_GUEST:return Gh(e,t.message);case j.ActionTypes.MESSAGE_TO_GUEST:sr(t);const n=Object.assign({},t.message,{_id:t.meta.actionId}),r=e.messages.filter(l=>l._id===t.meta.actionId).length>0;return Object.assign({},e,{isBotTyping:!1,messages:r?e.messages:e.messages.concat([n]),quickReplies:n.quickReplies?n.quickReplies:[]});case zc:{const l=t.messages,u=l.length?l[l.length-1]:void 0;return Object.assign({},e,{isBotTyping:!1,messages:l,quickReplies:(u==null?void 0:u.quickReplies)||[]})}case $s:return sr(t.message),e;case j.ActionTypes.EVENT_TO_GUEST:return sr(t.event),e;case j.ActionTypes.DRAWER_OPEN:return Object.assign({},e,{drawerContentUrl:t.payload.contentUrl});case j.ActionTypes.DRAWER_CLOSE:return Object.assign({},e,{drawerContentUrl:void 0});case j.ActionTypes.GUEST_LOCALE_CHANGED:return Object.assign({},e,{locale:t.payload.locale});case py:return sr(t),e;case $c:return Object.assign({},e,{speechSupport:!0});case Hc:return Object.assign({},e,{problemReportingEnabled:!0});case Vc:const i=new j.TextMessage(t.transcription,new j.GuestUser),o=Object.assign({},i,{_id:crypto.randomUUID()});return Gh(e,o);case Gc:return Object.assign({},e,{transcriptExportEnabled:t.methods});case Wc:return Object.assign({},e,{showGeneralConditions:!0});case j.ActionTypes.PROBLEM_REPORT_FROM_GUEST:const s=e.messages.map(l=>l._id===t.payload.actionId?Object.assign({},l,{problemReport:t.payload.problem}):l);return Object.assign({},e,{messages:s});case qc:const a={enabled:!0,rating:t.payload.rating};return Object.assign({},e,{conversationRating:a});case j.ActionTypes.CONVERSATION_RATING_FROM_GUEST:{const l={...e.conversationRating,rating:t.payload};return Object.assign({},e,{conversationRating:l})}default:return e}},Gh=(e,t)=>{const n=e.messages[e.messages.length-1],r=(n==null?void 0:n.text)===t.text;return n&&n.sender.type===t.sender.type&&r?e:Object.assign({},e,{messages:e.messages.concat([t]),quickReplies:[]})},sr=e=>{var t;WR()?(t=window.top)==null||t.postMessage(e,"*"):e.type==="webclient.change.url"&&window.open(e.url)},WR=()=>typeof window<"u"&&window.self!==window.top,Vh={messages:[],quickReplies:[],isBotTyping:!1,speechSupport:!1,problemReportingEnabled:!1,transcriptExportEnabled:{pdf:!1,email:!1},showGeneralConditions:!1,conversationRating:{enabled:!1}},vv=Ay({name:"intl",initialState:yv,reducers:{updateIntl:(e,t)=>{e.locale=t.payload.language,e.messages=t.payload.messages}}}),{updateIntl:qR}=vv.actions,XR=vv.reducer,QR=_y({chat:VR,startScreen:Kb,connection:HR,intl:XR}),_v="bf-webclient-state-last-saved-at",Ev="bf-webclient-state",KR=e=>{try{if(!JR())return;const t=Wh(e,_v);if(ZR(t))return;{const n=Wh(e,Ev);return n===null?void 0:JSON.parse(n)}}catch(t){console.error(t);return}},YR=(e,t)=>{try{const n=JSON.stringify(t);qh(e,Ev,n);let r=new Date().toISOString();qh(e,_v,r)}catch(n){console.error(n)}},ZR=e=>{if(e===null)return!1;let t=new Date(e);return t.setHours(t.getHours()+12),new Date>t},JR=()=>typeof localStorage<"u",Wh=(e,t)=>localStorage.getItem(`${e}_${t}`),qh=(e,t,n)=>localStorage.setItem(`${e}_${t}`,n),Lt=Object.create(null);Lt.open="0";Lt.close="1";Lt.ping="2";Lt.pong="3";Lt.message="4";Lt.upgrade="5";Lt.noop="6";const Mo=Object.create(null);Object.keys(Lt).forEach(e=>{Mo[Lt[e]]=e});const pu={type:"error",data:"parser error"},Sv=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",wv=typeof ArrayBuffer=="function",bv=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,hf=({type:e,data:t},n,r)=>Sv&&t instanceof Blob?n?r(t):Xh(t,r):wv&&(t instanceof ArrayBuffer||bv(t))?n?r(t):Xh(new Blob([t]),r):r(Lt[e]+(t||"")),Xh=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function Qh(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let qa;function eN(e,t){if(Sv&&e.data instanceof Blob)return e.data.arrayBuffer().then(Qh).then(t);if(wv&&(e.data instanceof ArrayBuffer||bv(e.data)))return t(Qh(e.data));hf(e,!1,n=>{qa||(qa=new TextEncoder),t(qa.encode(n))})}const Kh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",li=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Kh.length;e++)li[Kh.charCodeAt(e)]=e;const tN=e=>{let t=e.length*.75,n=e.length,r,i=0,o,s,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),f=new Uint8Array(u);for(r=0;r<n;r+=4)o=li[e.charCodeAt(r)],s=li[e.charCodeAt(r+1)],a=li[e.charCodeAt(r+2)],l=li[e.charCodeAt(r+3)],f[i++]=o<<2|s>>4,f[i++]=(s&15)<<4|a>>2,f[i++]=(a&3)<<6|l&63;return u},nN=typeof ArrayBuffer=="function",pf=(e,t)=>{if(typeof e!="string")return{type:"message",data:xv(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:rN(e.substring(1),t)}:Mo[n]?e.length>1?{type:Mo[n],data:e.substring(1)}:{type:Mo[n]}:pu},rN=(e,t)=>{if(nN){const n=tN(e);return xv(n,t)}else return{base64:!0,data:e}},xv=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},Tv="",iN=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((o,s)=>{hf(o,!1,a=>{r[s]=a,++i===n&&t(r.join(Tv))})})},oN=(e,t)=>{const n=e.split(Tv),r=[];for(let i=0;i<n.length;i++){const o=pf(n[i],t);if(r.push(o),o.type==="error")break}return r};function sN(){return new TransformStream({transform(e,t){eN(e,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let Xa;function vo(e){return e.reduce((t,n)=>t+n.length,0)}function _o(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function aN(e,t){Xa||(Xa=new TextDecoder);const n=[];let r=0,i=-1,o=!1;return new TransformStream({transform(s,a){for(n.push(s);;){if(r===0){if(vo(n)<1)break;const l=_o(n,1);o=(l[0]&128)===128,i=l[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(vo(n)<2)break;const l=_o(n,2);i=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),r=3}else if(r===2){if(vo(n)<8)break;const l=_o(n,8),u=new DataView(l.buffer,l.byteOffset,l.length),f=u.getUint32(0);if(f>Math.pow(2,21)-1){a.enqueue(pu);break}i=f*Math.pow(2,32)+u.getUint32(4),r=3}else{if(vo(n)<i)break;const l=_o(n,i);a.enqueue(pf(o?l:Xa.decode(l),t)),r=0}if(i===0||i>e){a.enqueue(pu);break}}}})}const Cv=4;function de(e){if(e)return lN(e)}function lN(e){for(var t in de.prototype)e[t]=de.prototype[t];return e}de.prototype.on=de.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};de.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};de.prototype.off=de.prototype.removeListener=de.prototype.removeAllListeners=de.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};de.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this};de.prototype.emitReserved=de.prototype.emit;de.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};de.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Js=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),et=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),uN="arraybuffer";function kv(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const cN=et.setTimeout,fN=et.clearTimeout;function ea(e,t){t.useNativeTimers?(e.setTimeoutFn=cN.bind(et),e.clearTimeoutFn=fN.bind(et)):(e.setTimeoutFn=et.setTimeout.bind(et),e.clearTimeoutFn=et.clearTimeout.bind(et))}const dN=1.33;function hN(e){return typeof e=="string"?pN(e):Math.ceil((e.byteLength||e.size)*dN)}function pN(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function Ov(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function mN(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function gN(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let o=n[r].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}class yN extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class mf extends de{constructor(t){super(),this.writable=!1,ea(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new yN(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=pf(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const n=mN(t);return n.length?"?"+n:""}}class vN extends mf{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};oN(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,iN(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Ov()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}}let Rv=!1;try{Rv=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const _N=Rv;function EN(){}class SN extends vN{constructor(t){if(super(t),typeof location<"u"){const n=location.protocol==="https:";let r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Ft extends de{constructor(t,n,r){super(),this.createRequest=t,ea(this,r),this._opts=r,this._method=r.method||"GET",this._uri=n,this._data=r.data!==void 0?r.data:null,this._create()}_create(){var t;const n=kv(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(r.getResponseHeader("set-cookie"))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status=="number"?r.status:0)},0))},r.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=Ft.requestsCount++,Ft.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=EN,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Ft.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}Ft.requestsCount=0;Ft.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Yh);else if(typeof addEventListener=="function"){const e="onpagehide"in et?"pagehide":"unload";addEventListener(e,Yh,!1)}}function Yh(){for(let e in Ft.requests)Ft.requests.hasOwnProperty(e)&&Ft.requests[e].abort()}const wN=function(){const e=Nv({xdomain:!1});return e&&e.responseType!==null}();class bN extends SN{constructor(t){super(t);const n=t&&t.forceBase64;this.supportsBinary=wN&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new Ft(Nv,this.uri(),t)}}function Nv(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||_N))return new XMLHttpRequest}catch{}if(!t)try{return new et[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Av=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class xN extends mf{get name(){return"websocket"}doOpen(){const t=this.uri(),n=this.opts.protocols,r=Av?{}:kv(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;hf(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}i&&Js(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Ov()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}}const Qa=et.WebSocket||et.MozWebSocket;class TN extends xN{createSocket(t,n,r){return Av?new Qa(t,n,r):n?new Qa(t,n):new Qa(t)}doWrite(t,n){this.ws.send(n)}}class CN extends mf{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const n=aN(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=sN();i.readable.pipeTo(t.writable),this._writer=i.writable.getWriter();const o=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),o())}).catch(a=>{})};o();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;this._writer.write(r).then(()=>{i&&Js(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const kN={websocket:TN,webtransport:CN,polling:bN},ON=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,RN=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function mu(e){if(e.length>8e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=ON.exec(e||""),o={},s=14;for(;s--;)o[RN[s]]=i[s]||"";return n!=-1&&r!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=NN(o,o.path),o.queryKey=AN(o,o.query),o}function NN(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function AN(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}const gu=typeof addEventListener=="function"&&typeof removeEventListener=="function",Lo=[];gu&&addEventListener("offline",()=>{Lo.forEach(e=>e())},!1);class _n extends de{constructor(t,n){if(super(),this.binaryType=uN,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(n=t,t=null),t){const r=mu(t);n.hostname=r.host,n.secure=r.protocol==="https"||r.protocol==="wss",n.port=r.port,r.query&&(n.query=r.query)}else n.host&&(n.hostname=mu(n.host).host);ea(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},n.transports.forEach(r=>{const i=r.prototype.name;this.transports.push(i),this._transportsByName[i]=r}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=gN(this.opts.query)),gu&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Lo.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Cv,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](r)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&_n.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",n=>this._onClose("transport close",n))}onOpen(){this.readyState="open",_n.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const n=new Error("server error");n.code=t.data,this._onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=hN(i)),r>0&&n>this._maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Js(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,n,r){return this._sendPacket("message",t,n,r),this}send(t,n,r){return this._sendPacket("message",t,n,r),this}_sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:t,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(_n.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),gu&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const r=Lo.indexOf(this._offlineEventListener);r!==-1&&Lo.splice(r,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this._prevBufferLen=0}}}_n.protocol=Cv;class PN extends _n{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;_n.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!r)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;_n.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(f(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const c=new Error("probe error");c.transport=n.name,this.emitReserved("upgradeError",c)}}))};function o(){r||(r=!0,f(),n.close(),n=null)}const s=h=>{const c=new Error("probe error: "+h);c.transport=n.name,o(),this.emitReserved("upgradeError",c)};function a(){s("transport closed")}function l(){s("socket closed")}function u(h){n&&h.name!==n.name&&o()}const f=()=>{n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",a),this.off("close",l),this.off("upgrading",u)};n.once("open",i),n.once("error",s),n.once("close",a),this.once("close",l),this.once("upgrading",u),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}}let IN=class extends PN{constructor(t,n={}){const r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(i=>kN[i]).filter(i=>!!i)),super(t,r)}};function DN(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=mu(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}const FN=typeof ArrayBuffer=="function",MN=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Pv=Object.prototype.toString,LN=typeof Blob=="function"||typeof Blob<"u"&&Pv.call(Blob)==="[object BlobConstructor]",BN=typeof File=="function"||typeof File<"u"&&Pv.call(File)==="[object FileConstructor]";function gf(e){return FN&&(e instanceof ArrayBuffer||MN(e))||LN&&e instanceof Blob||BN&&e instanceof File}function Bo(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Bo(e[n]))return!0;return!1}if(gf(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Bo(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Bo(e[n]))return!0;return!1}function jN(e){const t=[],n=e.data,r=e;return r.data=yu(n,t),r.attachments=t.length,{packet:r,buffers:t}}function yu(e,t){if(!e)return e;if(gf(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=yu(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=yu(e[r],t));return n}return e}function zN(e,t){return e.data=vu(e.data,t),delete e.attachments,e}function vu(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=vu(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=vu(e[n],t));return e}const UN=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],$N=5;var $;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})($||($={}));class HN{constructor(t){this.replacer=t}encode(t){return(t.type===$.EVENT||t.type===$.ACK)&&Bo(t)?this.encodeAsBinary({type:t.type===$.EVENT?$.BINARY_EVENT:$.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===$.BINARY_EVENT||t.type===$.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=jN(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}function Zh(e){return Object.prototype.toString.call(e)==="[object Object]"}class yf extends de{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===$.BINARY_EVENT;r||n.type===$.BINARY_ACK?(n.type=r?$.EVENT:$.ACK,this.reconstructor=new GN(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(gf(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if($[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===$.BINARY_EVENT||r.type===$.BINARY_ACK){const o=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const s=t.substring(o,n);if(s!=Number(s)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(s)}if(t.charAt(n+1)==="/"){const o=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(o,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const o=n+1;for(;++n;){const s=t.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===t.length)break}r.id=Number(t.substring(o,n+1))}if(t.charAt(++n)){const o=this.tryParse(t.substr(n));if(yf.isPayloadValid(r.type,o))r.data=o;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case $.CONNECT:return Zh(n);case $.DISCONNECT:return n===void 0;case $.CONNECT_ERROR:return typeof n=="string"||Zh(n);case $.EVENT:case $.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&UN.indexOf(n[0])===-1);case $.ACK:case $.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class GN{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=zN(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const VN=Object.freeze(Object.defineProperty({__proto__:null,Decoder:yf,Encoder:HN,get PacketType(){return $},protocol:$N},Symbol.toStringTag,{value:"Module"}));function pt(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const WN=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Iv extends de{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[pt(t,"open",this.onopen.bind(this)),pt(t,"packet",this.onpacket.bind(this)),pt(t,"error",this.onerror.bind(this)),pt(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,i,o;if(WN.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const s={type:$.EVENT,data:n};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const f=this.ids++,h=n.pop();this._registerAckCallback(f,h),s.id=f}const a=(i=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||i===void 0?void 0:i.writable,l=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!a||(l?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===t&&this.sendBuffer.splice(a,1);n.call(this,new Error("operation has timed out"))},i),s=(...a)=>{this.io.clearTimeoutFn(o),n.apply(this,a)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,i)=>{const o=(s,a)=>s?i(s):r(a);o.withError=!0,n.push(o),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...o)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:$.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case $.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case $.EVENT:case $.BINARY_EVENT:this.onevent(t);break;case $.ACK:case $.BINARY_ACK:this.onack(t);break;case $.DISCONNECT:this.ondisconnect();break;case $.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:$.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:$.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}}function jr(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}jr.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};jr.prototype.reset=function(){this.attempts=0};jr.prototype.setMin=function(e){this.ms=e};jr.prototype.setMax=function(e){this.max=e};jr.prototype.setJitter=function(e){this.jitter=e};class _u extends de{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,ea(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new jr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||VN;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new IN(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=pt(n,"open",function(){r.onopen(),t&&t()}),o=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=pt(n,"error",o);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(i),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(pt(t,"ping",this.onping.bind(this)),pt(t,"data",this.ondata.bind(this)),pt(t,"error",this.onerror.bind(this)),pt(t,"close",this.onclose.bind(this)),pt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Js(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new Iv(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const ti={};function jo(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=DN(e,t.path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=ti[i]&&o in ti[i].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return a?l=new _u(r,t):(ti[i]||(ti[i]=new _u(r,t)),l=ti[i]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(jo,{Manager:_u,Socket:Iv,io:jo,connect:jo});const qN=[j.ActionTypes.MESSAGE_TO_GUEST,j.ActionTypes.EVENT_TO_GUEST,j.ActionTypes.TYPING_ON,j.ActionTypes.TYPING_OFF,j.ActionTypes.RESTART_CHAT_REQUEST,...Zb,...qw,"@@localize/SET_ACTIVE_LANGUAGE","@@localize/ADD_TRANSLATION_FOR_LANGUAGE"],XN=({dispatch:e,getState:t})=>n=>{let r=null;return i=>{let o=n(i);if(i.type===Yc)r!=null&&r.disconnect(),e(tx()),r=jo(`/${i.clientName}/chat?${Cc.stringify(i.querystrings)}`),r.on("action",e),r.on("connect",()=>e(nx())),r.on("disconnect",()=>e(rx())),r.on("reconnect",()=>e(ix())),r.on("set-use-start-screen",s=>{e(s?Wb():qb())}),r.on("set-translations",(s,a)=>{e(qR({language:s,messages:UR(s,a)}))}),r.on("enable-speech-support",()=>e(Qw())),r.on("enable-problem-reporting",()=>e(Kw())),r.on("enable-transcript-export",s=>e(Zw(s))),r.on("enable-conversation-rating",s=>e(nb(s))),r.on("speech-transcription",s=>e(Yw(s))),r.on("restore-client-state",s=>{e(ex(s.sessionId)),e(ib(s.messages))}),r.on("expand-window",({devices:s})=>e({type:py,devices:s})),r.on("show-general-conditions",()=>e(eb())),r.on("restart-chat",()=>{e(rf(i.clientName,i.querystrings))});else if(i.type===qs)r==null||r.emit("start-chat",i.payload);else if(i.type===Xs)r==null||r.emit("terminate-session",i.payload);else if(i.type===Ww)r==null||r.emit("get-started",JSON.stringify(i));else if(i.type===Uc)r==null||r.emit("audio-message",i.buffer);else if(i.type===j.ActionTypes.CONVERSATION_RATING_FROM_GUEST)r==null||r.emit("conversation-rating",i.payload);else if(i.type===my){const{connection:{sessionId:s}}=t();window.location.href=`/transcript-pdf/${s}`}else qN.indexOf(i.type)===-1&&i.meta===void 0&&r&&r.emit("action",JSON.stringify(i));return o}},Dv=Yg(),QN={...KR(Dv),intl:yv},Eu=Ib({middleware:e=>e().concat(XN),reducer:QR,preloadedState:QN});Eu.subscribe(AR(()=>{const e=Eu.getState();YR(Dv,{connection:e.connection,startScreen:e.startScreen})},1e3));const KN=document.getElementById("root"),YN=fg(KN);YN.render(v.jsx(pE,{store:Eu,children:v.jsx(CO,{})}));
104
- //# sourceMappingURL=index-Dp8N3xNn.js.map
104
+ //# sourceMappingURL=index-Chkiw6s3.js.map