@eshal-bot/chat-widget 0.2.29 → 0.2.30

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.
@@ -17,7 +17,7 @@
17
17
  *
18
18
  * This source code is licensed under the MIT license found in the
19
19
  * LICENSE file in the root directory of this source tree.
20
- */function q(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var W=new Set,K={};function Q(e,t){Y(e,t),Y(e+"Capture",t)}function Y(e,t){for(K[e]=t,e=0;e<t.length;e++)W.add(t[e])}var G=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),J=Object.prototype.hasOwnProperty,X=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Z={},ee={};function te(e,t,r,n,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){re[e]=new te(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];re[t]=new te(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){re[e]=new te(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){re[e]=new te(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){re[e]=new te(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){re[e]=new te(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){re[e]=new te(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){re[e]=new te(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){re[e]=new te(e,5,!1,e.toLowerCase(),null,!1,!1)});var ne=/[\-:]([a-z])/g;function oe(e){return e[1].toUpperCase()}function ae(e,t,r,n){var o=re.hasOwnProperty(t)?re[t]:null;(null!==o?0!==o.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,o,n)&&(r=null),n||null===o?function(e){return!!J.call(ee,e)||!J.call(Z,e)&&(X.test(e)?ee[e]=!0:(Z[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=null===r?3!==o.type&&"":r:(t=o.attributeName,n=o.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(o=o.type)||4===o&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ne,oe);re[t]=new te(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ne,oe);re[t]=new te(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ne,oe);re[t]=new te(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){re[e]=new te(e,1,!1,e.toLowerCase(),null,!1,!1)}),re.xlinkHref=new te("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){re[e]=new te(e,1,!1,e.toLowerCase(),null,!0,!0)});var ie=$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,se=Symbol.for("react.element"),le=Symbol.for("react.portal"),ce=Symbol.for("react.fragment"),ue=Symbol.for("react.strict_mode"),de=Symbol.for("react.profiler"),ge=Symbol.for("react.provider"),pe=Symbol.for("react.context"),fe=Symbol.for("react.forward_ref"),he=Symbol.for("react.suspense"),me=Symbol.for("react.suspense_list"),be=Symbol.for("react.memo"),ye=Symbol.for("react.lazy"),ve=Symbol.for("react.offscreen"),we=Symbol.iterator;function ke(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=we&&e[we]||e["@@iterator"])?e:null}var xe,Ce=Object.assign;function Se(e){if(void 0===xe)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);xe=t&&t[1]||""}return"\n"+xe+e}var Me=!1;function Te(e,t){if(!e||Me)return"";Me=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=n.stack.split("\n"),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(1!==i||1!==s)do{if(i--,0>--s||o[i]!==a[s]){var l="\n"+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=i&&0<=s);break}}}finally{Me=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Se(e):""}function Pe(e){switch(e.tag){case 5:return Se(e.type);case 16:return Se("Lazy");case 13:return Se("Suspense");case 19:return Se("SuspenseList");case 0:case 2:case 15:return e=Te(e.type,!1);case 11:return e=Te(e.type.render,!1);case 1:return e=Te(e.type,!0);default:return""}}function ze(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ce:return"Fragment";case le:return"Portal";case de:return"Profiler";case ue:return"StrictMode";case he:return"Suspense";case me:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case pe:return(e.displayName||"Context")+".Consumer";case ge:return(e._context.displayName||"Context")+".Provider";case fe:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case be:return null!==(t=e.displayName||null)?t:ze(e.type)||"Memo";case ye:t=e._payload,e=e._init;try{return ze(e(t))}catch(e){}}return null}function je(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ze(t);case 8:return t===ue?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Ee(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Fe(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Le(e){e._valueTracker||(e._valueTracker=function(e){var t=Fe(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Ne(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Fe(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function Re(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Ae(e,t){var r=t.checked;return Ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function _e(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=Ee(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ie(e,t){null!=(t=t.checked)&&ae(e,"checked",t,!1)}function Be(e,t){Ie(e,t);var r=Ee(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?Oe(e,t.type,r):t.hasOwnProperty("defaultValue")&&Oe(e,t.type,Ee(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function De(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function Oe(e,t,r){"number"===t&&Re(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ue=Array.isArray;function Ve(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Ee(r),t=null,o=0;o<e.length;o++){if(e[o].value===r)return e[o].selected=!0,void(n&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function $e(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(q(91));return Ce({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function He(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(q(92));if(Ue(r)){if(1<r.length)throw Error(q(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:Ee(r)}}function qe(e,t){var r=Ee(t.value),n=Ee(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function We(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Ke(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Qe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ke(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ye,Ge,Je=(Ge=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Ye=Ye||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ye.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction(function(){return Ge(e,t)})}:Ge);function Xe(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var Ze={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},et=["Webkit","ms","Moz","O"];function tt(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||Ze.hasOwnProperty(e)&&Ze[e]?(""+t).trim():t+"px"}function rt(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),o=tt(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}Object.keys(Ze).forEach(function(e){et.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ze[t]=Ze[e]})});var nt=Ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ot(e,t){if(t){if(nt[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(q(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(q(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(q(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(q(62))}}function at(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var it=null;function st(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var lt=null,ct=null,ut=null;function dt(e){if(e=ia(e)){if("function"!=typeof lt)throw Error(q(280));var t=e.stateNode;t&&(t=la(t),lt(e.stateNode,e.type,t))}}function gt(e){ct?ut?ut.push(e):ut=[e]:ct=e}function pt(){if(ct){var e=ct,t=ut;if(ut=ct=null,dt(e),t)for(e=0;e<t.length;e++)dt(t[e])}}function ft(e,t){return e(t)}function ht(){}var mt=!1;function bt(e,t,r){if(mt)return e(t,r);mt=!0;try{return ft(e,t,r)}finally{mt=!1,(null!==ct||null!==ut)&&(ht(),pt())}}function yt(e,t){var r=e.stateNode;if(null===r)return null;var n=la(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(q(231,t,typeof r));return r}var vt=!1;if(G)try{var wt={};Object.defineProperty(wt,"passive",{get:function(){vt=!0}}),window.addEventListener("test",wt,wt),window.removeEventListener("test",wt,wt)}catch(Ge){vt=!1}function kt(e,t,r,n,o,a,i,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(e){this.onError(e)}}var xt=!1,Ct=null,St=!1,Mt=null,Tt={onError:function(e){xt=!0,Ct=e}};function Pt(e,t,r,n,o,a,i,s,l){xt=!1,Ct=null,kt.apply(Tt,arguments)}function zt(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function jt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Et(e){if(zt(e)!==e)throw Error(q(188))}function Ft(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=zt(e)))throw Error(q(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(n=o.return)){r=n;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===r)return Et(o),e;if(a===n)return Et(o),t;a=a.sibling}throw Error(q(188))}if(r.return!==n.return)r=o,n=a;else{for(var i=!1,s=o.child;s;){if(s===r){i=!0,r=o,n=a;break}if(s===n){i=!0,n=o,r=a;break}s=s.sibling}if(!i){for(s=a.child;s;){if(s===r){i=!0,r=a,n=o;break}if(s===n){i=!0,n=a,r=o;break}s=s.sibling}if(!i)throw Error(q(189))}}if(r.alternate!==n)throw Error(q(190))}if(3!==r.tag)throw Error(q(188));return r.stateNode.current===r?e:t}(e),null!==e?Lt(e):null}function Lt(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Lt(e);if(null!==t)return t;e=e.sibling}return null}var Nt=H.unstable_scheduleCallback,Rt=H.unstable_cancelCallback,At=H.unstable_shouldYield,_t=H.unstable_requestPaint,It=H.unstable_now,Bt=H.unstable_getCurrentPriorityLevel,Dt=H.unstable_ImmediatePriority,Ot=H.unstable_UserBlockingPriority,Ut=H.unstable_NormalPriority,Vt=H.unstable_LowPriority,$t=H.unstable_IdlePriority,Ht=null,qt=null;var Wt=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(Kt(e)/Qt|0)|0},Kt=Math.log,Qt=Math.LN2;var Yt=64,Gt=4194304;function Jt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Xt(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&r;if(0!==i){var s=i&~o;0!==s?n=Jt(s):0!==(a&=i)&&(n=Jt(a))}else 0!==(i=r&~o)?n=Jt(i):0!==a&&(n=Jt(a));if(0===n)return 0;if(0!==t&&t!==n&&0===(t&o)&&((o=n&-n)>=(a=t&-t)||16===o&&4194240&a))return t;if(4&n&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)o=1<<(r=31-Wt(t)),n|=e[r],t&=~o;return n}function Zt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function er(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function tr(){var e=Yt;return!(4194240&(Yt<<=1))&&(Yt=64),e}function rr(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function nr(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-Wt(t)]=r}function or(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Wt(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var ar=0;function ir(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var sr,lr,cr,ur,dr,gr=!1,pr=[],fr=null,hr=null,mr=null,br=new Map,yr=new Map,vr=[],wr="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function kr(e,t){switch(e){case"focusin":case"focusout":fr=null;break;case"dragenter":case"dragleave":hr=null;break;case"mouseover":case"mouseout":mr=null;break;case"pointerover":case"pointerout":br.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":yr.delete(t.pointerId)}}function xr(e,t,r,n,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=ia(t))&&lr(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Cr(e){var t=aa(e.target);if(null!==t){var r=zt(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=jt(r)))return e.blockedOn=t,void dr(e.priority,function(){cr(r)})}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Sr(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Ar(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=ia(r))&&lr(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);it=n,r.target.dispatchEvent(n),it=null,t.shift()}return!0}function Mr(e,t,r){Sr(e)&&r.delete(t)}function Tr(){gr=!1,null!==fr&&Sr(fr)&&(fr=null),null!==hr&&Sr(hr)&&(hr=null),null!==mr&&Sr(mr)&&(mr=null),br.forEach(Mr),yr.forEach(Mr)}function Pr(e,t){e.blockedOn===t&&(e.blockedOn=null,gr||(gr=!0,H.unstable_scheduleCallback(H.unstable_NormalPriority,Tr)))}function zr(e){function t(t){return Pr(t,e)}if(0<pr.length){Pr(pr[0],e);for(var r=1;r<pr.length;r++){var n=pr[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==fr&&Pr(fr,e),null!==hr&&Pr(hr,e),null!==mr&&Pr(mr,e),br.forEach(t),yr.forEach(t),r=0;r<vr.length;r++)(n=vr[r]).blockedOn===e&&(n.blockedOn=null);for(;0<vr.length&&null===(r=vr[0]).blockedOn;)Cr(r),null===r.blockedOn&&vr.shift()}var jr=ie.ReactCurrentBatchConfig,Er=!0;function Fr(e,t,r,n){var o=ar,a=jr.transition;jr.transition=null;try{ar=1,Nr(e,t,r,n)}finally{ar=o,jr.transition=a}}function Lr(e,t,r,n){var o=ar,a=jr.transition;jr.transition=null;try{ar=4,Nr(e,t,r,n)}finally{ar=o,jr.transition=a}}function Nr(e,t,r,n){if(Er){var o=Ar(e,t,r,n);if(null===o)Fo(e,t,n,Rr,r),kr(e,n);else if(function(e,t,r,n,o){switch(t){case"focusin":return fr=xr(fr,e,t,r,n,o),!0;case"dragenter":return hr=xr(hr,e,t,r,n,o),!0;case"mouseover":return mr=xr(mr,e,t,r,n,o),!0;case"pointerover":var a=o.pointerId;return br.set(a,xr(br.get(a)||null,e,t,r,n,o)),!0;case"gotpointercapture":return a=o.pointerId,yr.set(a,xr(yr.get(a)||null,e,t,r,n,o)),!0}return!1}(o,e,t,r,n))n.stopPropagation();else if(kr(e,n),4&t&&-1<wr.indexOf(e)){for(;null!==o;){var a=ia(o);if(null!==a&&sr(a),null===(a=Ar(e,t,r,n))&&Fo(e,t,n,Rr,r),a===o)break;o=a}null!==o&&n.stopPropagation()}else Fo(e,t,n,null,r)}}var Rr=null;function Ar(e,t,r,n){if(Rr=null,null!==(e=aa(e=st(n))))if(null===(t=zt(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=jt(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Rr=e,null}function _r(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Bt()){case Dt:return 1;case Ot:return 4;case Ut:case Vt:return 16;case $t:return 536870912;default:return 16}default:return 16}}var Ir=null,Br=null,Dr=null;function Or(){if(Dr)return Dr;var e,t,r=Br,n=r.length,o="value"in Ir?Ir.value:Ir.textContent,a=o.length;for(e=0;e<n&&r[e]===o[e];e++);var i=n-e;for(t=1;t<=i&&r[n-t]===o[a-t];t++);return Dr=o.slice(e,1<t?1-t:void 0)}function Ur(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Vr(){return!0}function $r(){return!1}function Hr(e){function t(t,r,n,o,a){for(var i in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Vr:$r,this.isPropagationStopped=$r,this}return Ce(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Vr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Vr)},persist:function(){},isPersistent:Vr}),t}var qr,Wr,Kr,Qr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yr=Hr(Qr),Gr=Ce({},Qr,{view:0,detail:0}),Jr=Hr(Gr),Xr=Ce({},Gr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Kr&&(Kr&&"mousemove"===e.type?(qr=e.screenX-Kr.screenX,Wr=e.screenY-Kr.screenY):Wr=qr=0,Kr=e),qr)},movementY:function(e){return"movementY"in e?e.movementY:Wr}}),Zr=Hr(Xr),en=Hr(Ce({},Xr,{dataTransfer:0})),tn=Hr(Ce({},Gr,{relatedTarget:0})),rn=Hr(Ce({},Qr,{animationName:0,elapsedTime:0,pseudoElement:0})),nn=Ce({},Qr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),on=Hr(nn),an=Hr(Ce({},Qr,{data:0})),sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ln={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function un(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=cn[e])&&!!t[e]}function dn(){return un}var gn=Ce({},Gr,{key:function(e){if(e.key){var t=sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Ur(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ln[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dn,charCode:function(e){return"keypress"===e.type?Ur(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Ur(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),pn=Hr(gn),fn=Hr(Ce({},Xr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),hn=Hr(Ce({},Gr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dn})),mn=Hr(Ce({},Qr,{propertyName:0,elapsedTime:0,pseudoElement:0})),bn=Ce({},Xr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),yn=Hr(bn),vn=[9,13,27,32],wn=G&&"CompositionEvent"in window,kn=null;G&&"documentMode"in document&&(kn=document.documentMode);var xn=G&&"TextEvent"in window&&!kn,Cn=G&&(!wn||kn&&8<kn&&11>=kn),Sn=String.fromCharCode(32),Mn=!1;function Tn(e,t){switch(e){case"keyup":return-1!==vn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!1;var jn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function En(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!jn[e.type]:"textarea"===t}function Fn(e,t,r,n){gt(n),0<(t=No(t,"onChange")).length&&(r=new Yr("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Ln=null,Nn=null;function Rn(e){Mo(e,0)}function An(e){if(Ne(sa(e)))return e}function _n(e,t){if("change"===e)return t}var In=!1;if(G){var Bn;if(G){var Dn="oninput"in document;if(!Dn){var On=document.createElement("div");On.setAttribute("oninput","return;"),Dn="function"==typeof On.oninput}Bn=Dn}else Bn=!1;In=Bn&&(!document.documentMode||9<document.documentMode)}function Un(){Ln&&(Ln.detachEvent("onpropertychange",Vn),Nn=Ln=null)}function Vn(e){if("value"===e.propertyName&&An(Nn)){var t=[];Fn(t,Nn,e,st(e)),bt(Rn,t)}}function $n(e,t,r){"focusin"===e?(Un(),Nn=r,(Ln=t).attachEvent("onpropertychange",Vn)):"focusout"===e&&Un()}function Hn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return An(Nn)}function qn(e,t){if("click"===e)return An(t)}function Wn(e,t){if("input"===e||"change"===e)return An(t)}var Kn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Qn(e,t){if(Kn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!J.call(t,o)||!Kn(e[o],t[o]))return!1}return!0}function Yn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gn(e,t){var r,n=Yn(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Yn(n)}}function Jn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Jn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Xn(){for(var e=window,t=Re();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=Re((e=t.contentWindow).document)}return t}function Zn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function eo(e){var t=Xn(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Jn(r.ownerDocument.documentElement,r)){if(null!==n&&Zn(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=r.textContent.length,a=Math.min(n.start,o);n=void 0===n.end?a:Math.min(n.end,o),!e.extend&&a>n&&(o=n,n=a,a=o),o=Gn(r,a);var i=Gn(r,n);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var to=G&&"documentMode"in document&&11>=document.documentMode,ro=null,no=null,oo=null,ao=!1;function io(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;ao||null==ro||ro!==Re(n)||("selectionStart"in(n=ro)&&Zn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},oo&&Qn(oo,n)||(oo=n,0<(n=No(no,"onSelect")).length&&(t=new Yr("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=ro)))}function so(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var lo={animationend:so("Animation","AnimationEnd"),animationiteration:so("Animation","AnimationIteration"),animationstart:so("Animation","AnimationStart"),transitionend:so("Transition","TransitionEnd")},co={},uo={};function go(e){if(co[e])return co[e];if(!lo[e])return e;var t,r=lo[e];for(t in r)if(r.hasOwnProperty(t)&&t in uo)return co[e]=r[t];return e}G&&(uo=document.createElement("div").style,"AnimationEvent"in window||(delete lo.animationend.animation,delete lo.animationiteration.animation,delete lo.animationstart.animation),"TransitionEvent"in window||delete lo.transitionend.transition);var po=go("animationend"),fo=go("animationiteration"),ho=go("animationstart"),mo=go("transitionend"),bo=new Map,yo="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function vo(e,t){bo.set(e,t),Q(t,[e])}for(var wo=0;wo<yo.length;wo++){var ko=yo[wo];vo(ko.toLowerCase(),"on"+(ko[0].toUpperCase()+ko.slice(1)))}vo(po,"onAnimationEnd"),vo(fo,"onAnimationIteration"),vo(ho,"onAnimationStart"),vo("dblclick","onDoubleClick"),vo("focusin","onFocus"),vo("focusout","onBlur"),vo(mo,"onTransitionEnd"),Y("onMouseEnter",["mouseout","mouseover"]),Y("onMouseLeave",["mouseout","mouseover"]),Y("onPointerEnter",["pointerout","pointerover"]),Y("onPointerLeave",["pointerout","pointerover"]),Q("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Q("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Q("onBeforeInput",["compositionend","keypress","textInput","paste"]),Q("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Q("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Q("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Co=new Set("cancel close invalid load scroll toggle".split(" ").concat(xo));function So(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,o,a,i,s,l){if(Pt.apply(this,arguments),xt){if(!xt)throw Error(q(198));var c=Ct;xt=!1,Ct=null,St||(St=!0,Mt=c)}}(n,t,void 0,e),e.currentTarget=null}function Mo(e,t){t=!!(4&t);for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var i=n.length-1;0<=i;i--){var s=n[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&o.isPropagationStopped())break e;So(o,s,c),a=l}else for(i=0;i<n.length;i++){if(l=(s=n[i]).instance,c=s.currentTarget,s=s.listener,l!==a&&o.isPropagationStopped())break e;So(o,s,c),a=l}}}if(St)throw e=Mt,St=!1,Mt=null,e}function To(e,t){var r=t[ra];void 0===r&&(r=t[ra]=new Set);var n=e+"__bubble";r.has(n)||(Eo(t,e,2,!1),r.add(n))}function Po(e,t,r){var n=0;t&&(n|=4),Eo(r,e,n,t)}var zo="_reactListening"+Math.random().toString(36).slice(2);function jo(e){if(!e[zo]){e[zo]=!0,W.forEach(function(t){"selectionchange"!==t&&(Co.has(t)||Po(t,!1,e),Po(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zo]||(t[zo]=!0,Po("selectionchange",!1,t))}}function Eo(e,t,r,n){switch(_r(t)){case 1:var o=Fr;break;case 4:o=Lr;break;default:o=Nr}r=o.bind(null,t,r,e),o=void 0,!vt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),n?void 0!==o?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):void 0!==o?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Fo(e,t,r,n,o){var a=n;if(!(1&t||2&t||null===n))e:for(;;){if(null===n)return;var i=n.tag;if(3===i||4===i){var s=n.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===i)for(i=n.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;i=i.return}for(;null!==s;){if(null===(i=aa(s)))return;if(5===(l=i.tag)||6===l){n=a=i;continue e}s=s.parentNode}}n=n.return}bt(function(){var n=a,o=st(r),i=[];e:{var s=bo.get(e);if(void 0!==s){var l=Yr,c=e;switch(e){case"keypress":if(0===Ur(r))break e;case"keydown":case"keyup":l=pn;break;case"focusin":c="focus",l=tn;break;case"focusout":c="blur",l=tn;break;case"beforeblur":case"afterblur":l=tn;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=Zr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=en;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=hn;break;case po:case fo:case ho:l=rn;break;case mo:l=mn;break;case"scroll":l=Jr;break;case"wheel":l=yn;break;case"copy":case"cut":case"paste":l=on;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=fn}var u=!!(4&t),d=!u&&"scroll"===e,g=u?null!==s?s+"Capture":null:s;u=[];for(var p,f=n;null!==f;){var h=(p=f).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==g&&(null!=(h=yt(f,g))&&u.push(Lo(f,h,p)))),d)break;f=f.return}0<u.length&&(s=new l(s,c,null,r,o),i.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||r===it||!(c=r.relatedTarget||r.fromElement)||!aa(c)&&!c[ta])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=n,null!==(c=(c=r.relatedTarget||r.toElement)?aa(c):null)&&(c!==(d=zt(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=n),l!==c)){if(u=Zr,h="onMouseLeave",g="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(u=fn,h="onPointerLeave",g="onPointerEnter",f="pointer"),d=null==l?s:sa(l),p=null==c?s:sa(c),(s=new u(h,f+"leave",l,r,o)).target=d,s.relatedTarget=p,h=null,aa(o)===n&&((u=new u(g,f+"enter",c,r,o)).target=p,u.relatedTarget=d,h=u),d=h,l&&c)e:{for(g=c,f=0,p=u=l;p;p=Ro(p))f++;for(p=0,h=g;h;h=Ro(h))p++;for(;0<f-p;)u=Ro(u),f--;for(;0<p-f;)g=Ro(g),p--;for(;f--;){if(u===g||null!==g&&u===g.alternate)break e;u=Ro(u),g=Ro(g)}u=null}else u=null;null!==l&&Ao(i,s,l,u,!1),null!==c&&null!==d&&Ao(i,d,c,u,!0)}if("select"===(l=(s=n?sa(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=_n;else if(En(s))if(In)m=Wn;else{m=Hn;var b=$n}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=qn);switch(m&&(m=m(e,n))?Fn(i,m,r,o):(b&&b(e,s,n),"focusout"===e&&(b=s._wrapperState)&&b.controlled&&"number"===s.type&&Oe(s,"number",s.value)),b=n?sa(n):window,e){case"focusin":(En(b)||"true"===b.contentEditable)&&(ro=b,no=n,oo=null);break;case"focusout":oo=no=ro=null;break;case"mousedown":ao=!0;break;case"contextmenu":case"mouseup":case"dragend":ao=!1,io(i,r,o);break;case"selectionchange":if(to)break;case"keydown":case"keyup":io(i,r,o)}var y;if(wn)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else zn?Tn(e,r)&&(v="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(v="onCompositionStart");v&&(Cn&&"ko"!==r.locale&&(zn||"onCompositionStart"!==v?"onCompositionEnd"===v&&zn&&(y=Or()):(Br="value"in(Ir=o)?Ir.value:Ir.textContent,zn=!0)),0<(b=No(n,v)).length&&(v=new an(v,e,null,r,o),i.push({event:v,listeners:b}),y?v.data=y:null!==(y=Pn(r))&&(v.data=y))),(y=xn?function(e,t){switch(e){case"compositionend":return Pn(t);case"keypress":return 32!==t.which?null:(Mn=!0,Sn);case"textInput":return(e=t.data)===Sn&&Mn?null:e;default:return null}}(e,r):function(e,t){if(zn)return"compositionend"===e||!wn&&Tn(e,t)?(e=Or(),Dr=Br=Ir=null,zn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Cn&&"ko"!==t.locale?null:t.data}}(e,r))&&(0<(n=No(n,"onBeforeInput")).length&&(o=new an("onBeforeInput","beforeinput",null,r,o),i.push({event:o,listeners:n}),o.data=y))}Mo(i,t)})}function Lo(e,t,r){return{instance:e,listener:t,currentTarget:r}}function No(e,t){for(var r=t+"Capture",n=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=yt(e,r))&&n.unshift(Lo(e,a,o)),null!=(a=yt(e,t))&&n.push(Lo(e,a,o))),e=e.return}return n}function Ro(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Ao(e,t,r,n,o){for(var a=t._reactName,i=[];null!==r&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(null!==l&&l===n)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=yt(r,a))&&i.unshift(Lo(r,l,s)):o||null!=(l=yt(r,a))&&i.push(Lo(r,l,s))),r=r.return}0!==i.length&&e.push({event:t,listeners:i})}var _o=/\r\n?/g,Io=/\u0000|\uFFFD/g;function Bo(e){return("string"==typeof e?e:""+e).replace(_o,"\n").replace(Io,"")}function Do(e,t,r){if(t=Bo(t),Bo(e)!==t&&r)throw Error(q(425))}function Oo(){}var Uo=null,Vo=null;function $o(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Ho="function"==typeof setTimeout?setTimeout:void 0,qo="function"==typeof clearTimeout?clearTimeout:void 0,Wo="function"==typeof Promise?Promise:void 0,Ko="function"==typeof queueMicrotask?queueMicrotask:void 0!==Wo?function(e){return Wo.resolve(null).then(e).catch(Qo)}:Ho;function Qo(e){setTimeout(function(){throw e})}function Yo(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&8===o.nodeType)if("/$"===(r=o.data)){if(0===n)return e.removeChild(o),void zr(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=o}while(r);zr(t)}function Go(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function Jo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var Xo=Math.random().toString(36).slice(2),Zo="__reactFiber$"+Xo,ea="__reactProps$"+Xo,ta="__reactContainer$"+Xo,ra="__reactEvents$"+Xo,na="__reactListeners$"+Xo,oa="__reactHandles$"+Xo;function aa(e){var t=e[Zo];if(t)return t;for(var r=e.parentNode;r;){if(t=r[ta]||r[Zo]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=Jo(e);null!==e;){if(r=e[Zo])return r;e=Jo(e)}return t}r=(e=r).parentNode}return null}function ia(e){return!(e=e[Zo]||e[ta])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function sa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(q(33))}function la(e){return e[ea]||null}var ca=[],ua=-1;function da(e){return{current:e}}function ga(e){0>ua||(e.current=ca[ua],ca[ua]=null,ua--)}function pa(e,t){ua++,ca[ua]=e.current,e.current=t}var fa={},ha=da(fa),ma=da(!1),ba=fa;function ya(e,t){var r=e.type.contextTypes;if(!r)return fa;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in r)a[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function va(e){return null!=(e=e.childContextTypes)}function wa(){ga(ma),ga(ha)}function ka(e,t,r){if(ha.current!==fa)throw Error(q(168));pa(ha,t),pa(ma,r)}function xa(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in t))throw Error(q(108,je(e)||"Unknown",o));return Ce({},r,n)}function Ca(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fa,ba=ha.current,pa(ha,e),pa(ma,ma.current),!0}function Sa(e,t,r){var n=e.stateNode;if(!n)throw Error(q(169));r?(e=xa(e,t,ba),n.__reactInternalMemoizedMergedChildContext=e,ga(ma),ga(ha),pa(ha,e)):ga(ma),pa(ma,r)}var Ma=null,Ta=!1,Pa=!1;function za(e){null===Ma?Ma=[e]:Ma.push(e)}function ja(){if(!Pa&&null!==Ma){Pa=!0;var e=0,t=ar;try{var r=Ma;for(ar=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}Ma=null,Ta=!1}catch(t){throw null!==Ma&&(Ma=Ma.slice(e+1)),Nt(Dt,ja),t}finally{ar=t,Pa=!1}}return null}var Ea=[],Fa=0,La=null,Na=0,Ra=[],Aa=0,_a=null,Ia=1,Ba="";function Da(e,t){Ea[Fa++]=Na,Ea[Fa++]=La,La=e,Na=t}function Oa(e,t,r){Ra[Aa++]=Ia,Ra[Aa++]=Ba,Ra[Aa++]=_a,_a=e;var n=Ia;e=Ba;var o=32-Wt(n)-1;n&=~(1<<o),r+=1;var a=32-Wt(t)+o;if(30<a){var i=o-o%5;a=(n&(1<<i)-1).toString(32),n>>=i,o-=i,Ia=1<<32-Wt(t)+o|r<<o|n,Ba=a+e}else Ia=1<<a|r<<o|n,Ba=e}function Ua(e){null!==e.return&&(Da(e,1),Oa(e,1,0))}function Va(e){for(;e===La;)La=Ea[--Fa],Ea[Fa]=null,Na=Ea[--Fa],Ea[Fa]=null;for(;e===_a;)_a=Ra[--Aa],Ra[Aa]=null,Ba=Ra[--Aa],Ra[Aa]=null,Ia=Ra[--Aa],Ra[Aa]=null}var $a=null,Ha=null,qa=!1,Wa=null;function Ka(e,t){var r=mu(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function Qa(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,$a=e,Ha=Go(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,$a=e,Ha=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==_a?{id:Ia,overflow:Ba}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=mu(18,null,null,0)).stateNode=t,r.return=e,e.child=r,$a=e,Ha=null,!0);default:return!1}}function Ya(e){return!(!(1&e.mode)||128&e.flags)}function Ga(e){if(qa){var t=Ha;if(t){var r=t;if(!Qa(e,t)){if(Ya(e))throw Error(q(418));t=Go(r.nextSibling);var n=$a;t&&Qa(e,t)?Ka(n,r):(e.flags=-4097&e.flags|2,qa=!1,$a=e)}}else{if(Ya(e))throw Error(q(418));e.flags=-4097&e.flags|2,qa=!1,$a=e}}}function Ja(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;$a=e}function Xa(e){if(e!==$a)return!1;if(!qa)return Ja(e),qa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!$o(e.type,e.memoizedProps)),t&&(t=Ha)){if(Ya(e))throw Za(),Error(q(418));for(;t;)Ka(e,t),t=Go(t.nextSibling)}if(Ja(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(q(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){Ha=Go(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}Ha=null}}else Ha=$a?Go(e.stateNode.nextSibling):null;return!0}function Za(){for(var e=Ha;e;)e=Go(e.nextSibling)}function ei(){Ha=$a=null,qa=!1}function ti(e){null===Wa?Wa=[e]:Wa.push(e)}var ri=ie.ReactCurrentBatchConfig;function ni(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(q(309));var n=r.stateNode}if(!n)throw Error(q(147,e));var o=n,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(q(284));if(!r._owner)throw Error(q(290,e))}return e}function oi(e,t){throw e=Object.prototype.toString.call(t),Error(q(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ai(e){return(0,e._init)(e._payload)}function ii(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=yu(e,t)).index=0,e.sibling=null,e}function a(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,r,n){return null===t||6!==t.tag?((t=xu(r,e.mode,n)).return=e,t):((t=o(t,r)).return=e,t)}function l(e,t,r,n){var a=r.type;return a===ce?u(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===ye&&ai(a)===t.type)?((n=o(t,r.props)).ref=ni(e,t,r),n.return=e,n):((n=vu(r.type,r.key,r.props,null,e.mode,n)).ref=ni(e,t,r),n.return=e,n)}function c(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Cu(r,e.mode,n)).return=e,t):((t=o(t,r.children||[])).return=e,t)}function u(e,t,r,n,a){return null===t||7!==t.tag?((t=wu(r,e.mode,n,a)).return=e,t):((t=o(t,r)).return=e,t)}function d(e,t,r){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=xu(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case se:return(r=vu(t.type,t.key,t.props,null,e.mode,r)).ref=ni(e,null,t),r.return=e,r;case le:return(t=Cu(t,e.mode,r)).return=e,t;case ye:return d(e,(0,t._init)(t._payload),r)}if(Ue(t)||ke(t))return(t=wu(t,e.mode,r,null)).return=e,t;oi(e,t)}return null}function g(e,t,r,n){var o=null!==t?t.key:null;if("string"==typeof r&&""!==r||"number"==typeof r)return null!==o?null:s(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case se:return r.key===o?l(e,t,r,n):null;case le:return r.key===o?c(e,t,r,n):null;case ye:return g(e,t,(o=r._init)(r._payload),n)}if(Ue(r)||ke(r))return null!==o?null:u(e,t,r,n,null);oi(e,r)}return null}function p(e,t,r,n,o){if("string"==typeof n&&""!==n||"number"==typeof n)return s(t,e=e.get(r)||null,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case se:return l(t,e=e.get(null===n.key?r:n.key)||null,n,o);case le:return c(t,e=e.get(null===n.key?r:n.key)||null,n,o);case ye:return p(e,t,r,(0,n._init)(n._payload),o)}if(Ue(n)||ke(n))return u(t,e=e.get(r)||null,n,o,null);oi(t,n)}return null}function f(o,i,s,l){for(var c=null,u=null,f=i,h=i=0,m=null;null!==f&&h<s.length;h++){f.index>h?(m=f,f=null):m=f.sibling;var b=g(o,f,s[h],l);if(null===b){null===f&&(f=m);break}e&&f&&null===b.alternate&&t(o,f),i=a(b,i,h),null===u?c=b:u.sibling=b,u=b,f=m}if(h===s.length)return r(o,f),qa&&Da(o,h),c;if(null===f){for(;h<s.length;h++)null!==(f=d(o,s[h],l))&&(i=a(f,i,h),null===u?c=f:u.sibling=f,u=f);return qa&&Da(o,h),c}for(f=n(o,f);h<s.length;h++)null!==(m=p(f,o,h,s[h],l))&&(e&&null!==m.alternate&&f.delete(null===m.key?h:m.key),i=a(m,i,h),null===u?c=m:u.sibling=m,u=m);return e&&f.forEach(function(e){return t(o,e)}),qa&&Da(o,h),c}function h(o,i,s,l){var c=ke(s);if("function"!=typeof c)throw Error(q(150));if(null==(s=c.call(s)))throw Error(q(151));for(var u=c=null,f=i,h=i=0,m=null,b=s.next();null!==f&&!b.done;h++,b=s.next()){f.index>h?(m=f,f=null):m=f.sibling;var y=g(o,f,b.value,l);if(null===y){null===f&&(f=m);break}e&&f&&null===y.alternate&&t(o,f),i=a(y,i,h),null===u?c=y:u.sibling=y,u=y,f=m}if(b.done)return r(o,f),qa&&Da(o,h),c;if(null===f){for(;!b.done;h++,b=s.next())null!==(b=d(o,b.value,l))&&(i=a(b,i,h),null===u?c=b:u.sibling=b,u=b);return qa&&Da(o,h),c}for(f=n(o,f);!b.done;h++,b=s.next())null!==(b=p(f,o,h,b.value,l))&&(e&&null!==b.alternate&&f.delete(null===b.key?h:b.key),i=a(b,i,h),null===u?c=b:u.sibling=b,u=b);return e&&f.forEach(function(e){return t(o,e)}),qa&&Da(o,h),c}return function e(n,a,s,l){if("object"==typeof s&&null!==s&&s.type===ce&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case se:e:{for(var c=s.key,u=a;null!==u;){if(u.key===c){if((c=s.type)===ce){if(7===u.tag){r(n,u.sibling),(a=o(u,s.props.children)).return=n,n=a;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===ye&&ai(c)===u.type){r(n,u.sibling),(a=o(u,s.props)).ref=ni(n,u,s),a.return=n,n=a;break e}r(n,u);break}t(n,u),u=u.sibling}s.type===ce?((a=wu(s.props.children,n.mode,l,s.key)).return=n,n=a):((l=vu(s.type,s.key,s.props,null,n.mode,l)).ref=ni(n,a,s),l.return=n,n=l)}return i(n);case le:e:{for(u=s.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===s.containerInfo&&a.stateNode.implementation===s.implementation){r(n,a.sibling),(a=o(a,s.children||[])).return=n,n=a;break e}r(n,a);break}t(n,a),a=a.sibling}(a=Cu(s,n.mode,l)).return=n,n=a}return i(n);case ye:return e(n,a,(u=s._init)(s._payload),l)}if(Ue(s))return f(n,a,s,l);if(ke(s))return h(n,a,s,l);oi(n,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==a&&6===a.tag?(r(n,a.sibling),(a=o(a,s)).return=n,n=a):(r(n,a),(a=xu(s,n.mode,l)).return=n,n=a),i(n)):r(n,a)}}var si=ii(!0),li=ii(!1),ci=da(null),ui=null,di=null,gi=null;function pi(){gi=di=ui=null}function fi(e){var t=ci.current;ga(ci),e._currentValue=t}function hi(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function mi(e,t){ui=e,gi=di=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ol=!0),e.firstContext=null)}function bi(e){var t=e._currentValue;if(gi!==e)if(e={context:e,memoizedValue:t,next:null},null===di){if(null===ui)throw Error(q(308));di=e,ui.dependencies={lanes:0,firstContext:e}}else di=di.next=e;return t}var yi=null;function vi(e){null===yi?yi=[e]:yi.push(e)}function wi(e,t,r,n){var o=t.interleaved;return null===o?(r.next=r,vi(t)):(r.next=o.next,o.next=r),t.interleaved=r,ki(e,n)}function ki(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var xi=!1;function Ci(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Si(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Mi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ti(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,2&pc){var o=n.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),n.pending=t,ki(e,r)}return null===(o=n.interleaved)?(t.next=t,vi(n)):(t.next=o.next,o.next=t),n.interleaved=t,ki(e,r)}function Pi(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,or(e,r)}}function zi(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var o=null,a=null;if(null!==(r=r.firstBaseUpdate)){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===a?o=a=i:a=a.next=i,r=r.next}while(null!==r);null===a?o=a=t:a=a.next=t}else o=a=t;return r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function ji(e,t,r,n){var o=e.updateQueue;xi=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===i?a=c:i.next=c,i=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==a){var d=o.baseState;for(i=0,u=c=l=null,s=a;;){var g=s.lane,p=s.eventTime;if((n&g)===g){null!==u&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,h=s;switch(g=t,p=r,h.tag){case 1:if("function"==typeof(f=h.payload)){d=f.call(p,d,g);break e}d=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(g="function"==typeof(f=h.payload)?f.call(p,d,g):f))break e;d=Ce({},d,g);break e;case 2:xi=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(g=o.effects)?o.effects=[s]:g.push(s))}else p={eventTime:p,lane:g,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=p,l=d):u=u.next=p,i|=g;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(g=s).next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);kc|=i,e.lanes=i,e.memoizedState=d}}function Ei(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(null!==o){if(n.callback=null,n=r,"function"!=typeof o)throw Error(q(191,o));o.call(n)}}}var Fi={},Li=da(Fi),Ni=da(Fi),Ri=da(Fi);function Ai(e){if(e===Fi)throw Error(q(174));return e}function _i(e,t){switch(pa(Ri,t),pa(Ni,e),pa(Li,Fi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Qe(null,"");break;default:t=Qe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ga(Li),pa(Li,t)}function Ii(){ga(Li),ga(Ni),ga(Ri)}function Bi(e){Ai(Ri.current);var t=Ai(Li.current),r=Qe(t,e.type);t!==r&&(pa(Ni,e),pa(Li,r))}function Di(e){Ni.current===e&&(ga(Li),ga(Ni))}var Oi=da(0);function Ui(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Vi=[];function $i(){for(var e=0;e<Vi.length;e++)Vi[e]._workInProgressVersionPrimary=null;Vi.length=0}var Hi=ie.ReactCurrentDispatcher,qi=ie.ReactCurrentBatchConfig,Wi=0,Ki=null,Qi=null,Yi=null,Gi=!1,Ji=!1,Xi=0,Zi=0;function es(){throw Error(q(321))}function ts(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Kn(e[r],t[r]))return!1;return!0}function rs(e,t,r,n,o,a){if(Wi=a,Ki=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Hi.current=null===e||null===e.memoizedState?Ds:Os,e=r(n,o),Ji){a=0;do{if(Ji=!1,Xi=0,25<=a)throw Error(q(301));a+=1,Yi=Qi=null,t.updateQueue=null,Hi.current=Us,e=r(n,o)}while(Ji)}if(Hi.current=Bs,t=null!==Qi&&null!==Qi.next,Wi=0,Yi=Qi=Ki=null,Gi=!1,t)throw Error(q(300));return e}function ns(){var e=0!==Xi;return Xi=0,e}function os(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Yi?Ki.memoizedState=Yi=e:Yi=Yi.next=e,Yi}function as(){if(null===Qi){var e=Ki.alternate;e=null!==e?e.memoizedState:null}else e=Qi.next;var t=null===Yi?Ki.memoizedState:Yi.next;if(null!==t)Yi=t,Qi=e;else{if(null===e)throw Error(q(310));e={memoizedState:(Qi=e).memoizedState,baseState:Qi.baseState,baseQueue:Qi.baseQueue,queue:Qi.queue,next:null},null===Yi?Ki.memoizedState=Yi=e:Yi=Yi.next=e}return Yi}function is(e,t){return"function"==typeof t?t(e):t}function ss(e){var t=as(),r=t.queue;if(null===r)throw Error(q(311));r.lastRenderedReducer=e;var n=Qi,o=n.baseQueue,a=r.pending;if(null!==a){if(null!==o){var i=o.next;o.next=a.next,a.next=i}n.baseQueue=o=a,r.pending=null}if(null!==o){a=o.next,n=n.baseState;var s=i=null,l=null,c=a;do{var u=c.lane;if((Wi&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(s=l=d,i=n):l=l.next=d,Ki.lanes|=u,kc|=u}c=c.next}while(null!==c&&c!==a);null===l?i=n:l.next=s,Kn(n,t.memoizedState)||(ol=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=l,r.lastRenderedState=n}if(null!==(e=r.interleaved)){o=e;do{a=o.lane,Ki.lanes|=a,kc|=a,o=o.next}while(o!==e)}else null===o&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function ls(e){var t=as(),r=t.queue;if(null===r)throw Error(q(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,a=t.memoizedState;if(null!==o){r.pending=null;var i=o=o.next;do{a=e(a,i.action),i=i.next}while(i!==o);Kn(a,t.memoizedState)||(ol=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function cs(){}function us(e,t){var r=Ki,n=as(),o=t(),a=!Kn(n.memoizedState,o);if(a&&(n.memoizedState=o,ol=!0),n=n.queue,xs(ps.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||null!==Yi&&1&Yi.memoizedState.tag){if(r.flags|=2048,bs(9,gs.bind(null,r,n,o,t),void 0,null),null===fc)throw Error(q(349));30&Wi||ds(r,t,o)}return o}function ds(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=Ki.updateQueue)?(t={lastEffect:null,stores:null},Ki.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function gs(e,t,r,n){t.value=r,t.getSnapshot=n,fs(t)&&hs(e)}function ps(e,t,r){return r(function(){fs(t)&&hs(e)})}function fs(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Kn(e,r)}catch(e){return!0}}function hs(e){var t=ki(e,1);null!==t&&Uc(t,e,1,-1)}function ms(e){var t=os();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:is,lastRenderedState:e},t.queue=e,e=e.dispatch=Rs.bind(null,Ki,e),[t.memoizedState,e]}function bs(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=Ki.updateQueue)?(t={lastEffect:null,stores:null},Ki.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function ys(){return as().memoizedState}function vs(e,t,r,n){var o=os();Ki.flags|=e,o.memoizedState=bs(1|t,r,void 0,void 0===n?null:n)}function ws(e,t,r,n){var o=as();n=void 0===n?null:n;var a=void 0;if(null!==Qi){var i=Qi.memoizedState;if(a=i.destroy,null!==n&&ts(n,i.deps))return void(o.memoizedState=bs(t,r,a,n))}Ki.flags|=e,o.memoizedState=bs(1|t,r,a,n)}function ks(e,t){return vs(8390656,8,e,t)}function xs(e,t){return ws(2048,8,e,t)}function Cs(e,t){return ws(4,2,e,t)}function Ss(e,t){return ws(4,4,e,t)}function Ms(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ts(e,t,r){return r=null!=r?r.concat([e]):null,ws(4,4,Ms.bind(null,t,e),r)}function Ps(){}function zs(e,t){var r=as();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ts(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function js(e,t){var r=as();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ts(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Es(e,t,r){return 21&Wi?(Kn(r,t)||(r=tr(),Ki.lanes|=r,kc|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ol=!0),e.memoizedState=r)}function Fs(e,t){var r=ar;ar=0!==r&&4>r?r:4,e(!0);var n=qi.transition;qi.transition={};try{e(!1),t()}finally{ar=r,qi.transition=n}}function Ls(){return as().memoizedState}function Ns(e,t,r){var n=Oc(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},As(e))_s(t,r);else if(null!==(r=wi(e,t,r,n))){Uc(r,e,n,Dc()),Is(r,t,n)}}function Rs(e,t,r){var n=Oc(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(As(e))_s(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=a(i,r);if(o.hasEagerState=!0,o.eagerState=s,Kn(s,i)){var l=t.interleaved;return null===l?(o.next=o,vi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(r=wi(e,t,o,n))&&(Uc(r,e,n,o=Dc()),Is(r,t,n))}}function As(e){var t=e.alternate;return e===Ki||null!==t&&t===Ki}function _s(e,t){Ji=Gi=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Is(e,t,r){if(4194240&r){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,or(e,r)}}var Bs={readContext:bi,useCallback:es,useContext:es,useEffect:es,useImperativeHandle:es,useInsertionEffect:es,useLayoutEffect:es,useMemo:es,useReducer:es,useRef:es,useState:es,useDebugValue:es,useDeferredValue:es,useTransition:es,useMutableSource:es,useSyncExternalStore:es,useId:es,unstable_isNewReconciler:!1},Ds={readContext:bi,useCallback:function(e,t){return os().memoizedState=[e,void 0===t?null:t],e},useContext:bi,useEffect:ks,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,vs(4194308,4,Ms.bind(null,t,e),r)},useLayoutEffect:function(e,t){return vs(4194308,4,e,t)},useInsertionEffect:function(e,t){return vs(4,2,e,t)},useMemo:function(e,t){var r=os();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=os();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Ns.bind(null,Ki,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},os().memoizedState=e},useState:ms,useDebugValue:Ps,useDeferredValue:function(e){return os().memoizedState=e},useTransition:function(){var e=ms(!1),t=e[0];return e=Fs.bind(null,e[1]),os().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Ki,o=os();if(qa){if(void 0===r)throw Error(q(407));r=r()}else{if(r=t(),null===fc)throw Error(q(349));30&Wi||ds(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,ks(ps.bind(null,n,a,e),[e]),n.flags|=2048,bs(9,gs.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=os(),t=fc.identifierPrefix;if(qa){var r=Ba;t=":"+t+"R"+(r=(Ia&~(1<<32-Wt(Ia)-1)).toString(32)+r),0<(r=Xi++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=Zi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Os={readContext:bi,useCallback:zs,useContext:bi,useEffect:xs,useImperativeHandle:Ts,useInsertionEffect:Cs,useLayoutEffect:Ss,useMemo:js,useReducer:ss,useRef:ys,useState:function(){return ss(is)},useDebugValue:Ps,useDeferredValue:function(e){return Es(as(),Qi.memoizedState,e)},useTransition:function(){return[ss(is)[0],as().memoizedState]},useMutableSource:cs,useSyncExternalStore:us,useId:Ls,unstable_isNewReconciler:!1},Us={readContext:bi,useCallback:zs,useContext:bi,useEffect:xs,useImperativeHandle:Ts,useInsertionEffect:Cs,useLayoutEffect:Ss,useMemo:js,useReducer:ls,useRef:ys,useState:function(){return ls(is)},useDebugValue:Ps,useDeferredValue:function(e){var t=as();return null===Qi?t.memoizedState=e:Es(t,Qi.memoizedState,e)},useTransition:function(){return[ls(is)[0],as().memoizedState]},useMutableSource:cs,useSyncExternalStore:us,useId:Ls,unstable_isNewReconciler:!1};function Vs(e,t){if(e&&e.defaultProps){for(var r in t=Ce({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}function $s(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:Ce({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var Hs={isMounted:function(e){return!!(e=e._reactInternals)&&zt(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Dc(),o=Oc(e),a=Mi(n,o);a.payload=t,null!=r&&(a.callback=r),null!==(t=Ti(e,a,o))&&(Uc(t,e,o,n),Pi(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Dc(),o=Oc(e),a=Mi(n,o);a.tag=1,a.payload=t,null!=r&&(a.callback=r),null!==(t=Ti(e,a,o))&&(Uc(t,e,o,n),Pi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Dc(),n=Oc(e),o=Mi(r,n);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ti(e,o,n))&&(Uc(t,e,n,r),Pi(t,e,n))}};function qs(e,t,r,n,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!Qn(r,n)||!Qn(o,a))}function Ws(e,t,r){var n=!1,o=fa,a=t.contextType;return"object"==typeof a&&null!==a?a=bi(a):(o=va(t)?ba:ha.current,a=(n=null!=(n=t.contextTypes))?ya(e,o):fa),t=new t(r,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Hs,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ks(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Hs.enqueueReplaceState(t,t.state,null)}function Qs(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs={},Ci(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=bi(a):(a=va(t)?ba:ha.current,o.context=ya(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&($s(e,t,a,r),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Hs.enqueueReplaceState(o,o.state,null),ji(e,r,o,n),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Ys(e,t){try{var r="",n=t;do{r+=Pe(n),n=n.return}while(n);var o=r}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function Gs(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}var Js="function"==typeof WeakMap?WeakMap:Map;function Xs(e,t,r){(r=Mi(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){jc||(jc=!0,Ec=n)},r}function Zs(e,t,r){(r=Mi(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(r.callback=function(){"function"!=typeof n&&(null===Fc?Fc=new Set([this]):Fc.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function el(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new Js;var o=new Set;n.set(t,o)}else void 0===(o=n.get(t))&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=uu.bind(null,e,t,r),t.then(e,e))}function tl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function rl(e,t,r,n,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=Mi(-1,1)).tag=2,Ti(r,t,1))),r.lanes|=1),e)}var nl=ie.ReactCurrentOwner,ol=!1;function al(e,t,r,n){t.child=null===e?li(t,null,r,n):si(t,e.child,r,n)}function il(e,t,r,n,o){r=r.render;var a=t.ref;return mi(t,o),n=rs(e,t,r,n,a,o),r=ns(),null===e||ol?(qa&&r&&Ua(t),t.flags|=1,al(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,jl(e,t,o))}function sl(e,t,r,n,o){if(null===e){var a=r.type;return"function"!=typeof a||bu(a)||void 0!==a.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=vu(r.type,null,n,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,ll(e,t,a,n,o))}if(a=e.child,0===(e.lanes&o)){var i=a.memoizedProps;if((r=null!==(r=r.compare)?r:Qn)(i,n)&&e.ref===t.ref)return jl(e,t,o)}return t.flags|=1,(e=yu(a,n)).ref=t.ref,e.return=t,t.child=e}function ll(e,t,r,n,o){if(null!==e){var a=e.memoizedProps;if(Qn(a,n)&&e.ref===t.ref){if(ol=!1,t.pendingProps=n=a,0===(e.lanes&o))return t.lanes=e.lanes,jl(e,t,o);131072&e.flags&&(ol=!0)}}return dl(e,t,r,n,o)}function cl(e,t,r){var n=t.pendingProps,o=n.children,a=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(1&t.mode){if(!(1073741824&r))return e=null!==a?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,pa(yc,bc),bc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==a?a.baseLanes:r,pa(yc,bc),bc|=n}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},pa(yc,bc),bc|=r;else null!==a?(n=a.baseLanes|r,t.memoizedState=null):n=r,pa(yc,bc),bc|=n;return al(e,t,o,r),t.child}function ul(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function dl(e,t,r,n,o){var a=va(r)?ba:ha.current;return a=ya(t,a),mi(t,o),r=rs(e,t,r,n,a,o),n=ns(),null===e||ol?(qa&&n&&Ua(t),t.flags|=1,al(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,jl(e,t,o))}function gl(e,t,r,n,o){if(va(r)){var a=!0;Ca(t)}else a=!1;if(mi(t,o),null===t.stateNode)zl(e,t),Ws(t,r,n),Qs(t,r,n,o),n=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,c=r.contextType;"object"==typeof c&&null!==c?c=bi(c):c=ya(t,c=va(r)?ba:ha.current);var u=r.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==n||l!==c)&&Ks(t,i,n,c),xi=!1;var g=t.memoizedState;i.state=g,ji(t,n,i,o),l=t.memoizedState,s!==n||g!==l||ma.current||xi?("function"==typeof u&&($s(t,r,u,n),l=t.memoizedState),(s=xi||qs(t,r,s,n,g,l,c))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),i.props=n,i.state=l,i.context=c,n=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,Si(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Vs(t.type,s),i.props=c,d=t.pendingProps,g=i.context,"object"==typeof(l=r.contextType)&&null!==l?l=bi(l):l=ya(t,l=va(r)?ba:ha.current);var p=r.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||g!==l)&&Ks(t,i,n,l),xi=!1,g=t.memoizedState,i.state=g,ji(t,n,i,o);var f=t.memoizedState;s!==d||g!==f||ma.current||xi?("function"==typeof p&&($s(t,r,p,n),f=t.memoizedState),(c=xi||qs(t,r,c,n,g,f,l)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(n,f,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(n,f,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=f),i.props=n,i.state=f,i.context=l,n=c):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),n=!1)}return pl(e,t,r,n,a,o)}function pl(e,t,r,n,o,a){ul(e,t);var i=!!(128&t.flags);if(!n&&!i)return o&&Sa(t,r,!1),jl(e,t,a);n=t.stateNode,nl.current=t;var s=i&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&i?(t.child=si(t,e.child,null,a),t.child=si(t,null,s,a)):al(e,t,s,a),t.memoizedState=n.state,o&&Sa(t,r,!0),t.child}function fl(e){var t=e.stateNode;t.pendingContext?ka(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ka(0,t.context,!1),_i(e,t.containerInfo)}function hl(e,t,r,n,o){return ei(),ti(o),t.flags|=256,al(e,t,r,n),t.child}var ml,bl,yl,vl,wl={dehydrated:null,treeContext:null,retryLane:0};function kl(e){return{baseLanes:e,cachePool:null,transitions:null}}function xl(e,t,r){var n,o=t.pendingProps,a=Oi.current,i=!1,s=!!(128&t.flags);if((n=s)||(n=(null===e||null!==e.memoizedState)&&!!(2&a)),n?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),pa(Oi,1&a),null===e)return Ga(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=o.children,e=o.fallback,i?(o=t.mode,i=t.child,s={mode:"hidden",children:s},1&o||null===i?i=ku(s,o,0,null):(i.childLanes=0,i.pendingProps=s),e=wu(e,o,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=kl(r),t.memoizedState=wl,e):Cl(t,s));if(null!==(a=e.memoizedState)&&null!==(n=a.dehydrated))return function(e,t,r,n,o,a,i){if(r)return 256&t.flags?(t.flags&=-257,Sl(e,t,i,n=Gs(Error(q(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=n.fallback,o=t.mode,n=ku({mode:"visible",children:n.children},o,0,null),(a=wu(a,o,i,null)).flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,1&t.mode&&si(t,e.child,null,i),t.child.memoizedState=kl(i),t.memoizedState=wl,a);if(!(1&t.mode))return Sl(e,t,i,null);if("$!"===o.data){if(n=o.nextSibling&&o.nextSibling.dataset)var s=n.dgst;return n=s,Sl(e,t,i,n=Gs(a=Error(q(419)),n,void 0))}if(s=0!==(i&e.childLanes),ol||s){if(null!==(n=fc)){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(n.suspendedLanes|i))?0:o)&&o!==a.retryLane&&(a.retryLane=o,ki(e,o),Uc(n,e,o,-1))}return eu(),Sl(e,t,i,n=Gs(Error(q(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=gu.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,Ha=Go(o.nextSibling),$a=t,qa=!0,Wa=null,null!==e&&(Ra[Aa++]=Ia,Ra[Aa++]=Ba,Ra[Aa++]=_a,Ia=e.id,Ba=e.overflow,_a=t),t=Cl(t,n.children),t.flags|=4096,t)}(e,t,s,o,n,a,r);if(i){i=o.fallback,s=t.mode,n=(a=e.child).sibling;var l={mode:"hidden",children:o.children};return 1&s||t.child===a?(o=yu(a,l)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=l,t.deletions=null),null!==n?i=yu(n,i):(i=wu(i,s,r,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,s=null===(s=e.child.memoizedState)?kl(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~r,t.memoizedState=wl,o}return e=(i=e.child).sibling,o=yu(i,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Cl(e,t){return(t=ku({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Sl(e,t,r,n){return null!==n&&ti(n),si(t,e.child,null,r),(e=Cl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ml(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),hi(e.return,t,r)}function Tl(e,t,r,n,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=o)}function Pl(e,t,r){var n=t.pendingProps,o=n.revealOrder,a=n.tail;if(al(e,t,n.children,r),2&(n=Oi.current))n=1&n|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ml(e,r,t);else if(19===e.tag)Ml(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(pa(Oi,n),1&t.mode)switch(o){case"forwards":for(r=t.child,o=null;null!==r;)null!==(e=r.alternate)&&null===Ui(e)&&(o=r),r=r.sibling;null===(r=o)?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),Tl(t,!1,o,r,a);break;case"backwards":for(r=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Ui(e)){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}Tl(t,!0,r,null,a);break;case"together":Tl(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function zl(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function jl(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),kc|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(q(153));if(null!==t.child){for(r=yu(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=yu(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function El(e,t){if(!qa)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Fl(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=14680064&o.subtreeFlags,n|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Ll(e,t,r){var n=t.pendingProps;switch(Va(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fl(t),null;case 1:case 17:return va(t.type)&&wa(),Fl(t),null;case 3:return n=t.stateNode,Ii(),ga(ma),ga(ha),$i(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(Xa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==Wa&&(qc(Wa),Wa=null))),bl(e,t),Fl(t),null;case 5:Di(t);var o=Ai(Ri.current);if(r=t.type,null!==e&&null!=t.stateNode)yl(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(q(166));return Fl(t),null}if(e=Ai(Li.current),Xa(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[Zo]=t,n[ea]=a,e=!!(1&t.mode),r){case"dialog":To("cancel",n),To("close",n);break;case"iframe":case"object":case"embed":To("load",n);break;case"video":case"audio":for(o=0;o<xo.length;o++)To(xo[o],n);break;case"source":To("error",n);break;case"img":case"image":case"link":To("error",n),To("load",n);break;case"details":To("toggle",n);break;case"input":_e(n,a),To("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},To("invalid",n);break;case"textarea":He(n,a),To("invalid",n)}for(var i in ot(r,a),o=null,a)if(a.hasOwnProperty(i)){var s=a[i];"children"===i?"string"==typeof s?n.textContent!==s&&(!0!==a.suppressHydrationWarning&&Do(n.textContent,s,e),o=["children",s]):"number"==typeof s&&n.textContent!==""+s&&(!0!==a.suppressHydrationWarning&&Do(n.textContent,s,e),o=["children",""+s]):K.hasOwnProperty(i)&&null!=s&&"onScroll"===i&&To("scroll",n)}switch(r){case"input":Le(n),De(n,a,!0);break;case"textarea":Le(n),We(n);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(n.onclick=Oo)}n=o,t.updateQueue=n,null!==n&&(t.flags|=4)}else{i=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=Ke(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),"select"===r&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[Zo]=t,e[ea]=n,ml(e,t,!1,!1),t.stateNode=e;e:{switch(i=at(r,n),r){case"dialog":To("cancel",e),To("close",e),o=n;break;case"iframe":case"object":case"embed":To("load",e),o=n;break;case"video":case"audio":for(o=0;o<xo.length;o++)To(xo[o],e);o=n;break;case"source":To("error",e),o=n;break;case"img":case"image":case"link":To("error",e),To("load",e),o=n;break;case"details":To("toggle",e),o=n;break;case"input":_e(e,n),o=Ae(e,n),To("invalid",e);break;case"option":default:o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=Ce({},n,{value:void 0}),To("invalid",e);break;case"textarea":He(e,n),o=$e(e,n),To("invalid",e)}for(a in ot(r,o),s=o)if(s.hasOwnProperty(a)){var l=s[a];"style"===a?rt(e,l):"dangerouslySetInnerHTML"===a?null!=(l=l?l.__html:void 0)&&Je(e,l):"children"===a?"string"==typeof l?("textarea"!==r||""!==l)&&Xe(e,l):"number"==typeof l&&Xe(e,""+l):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(K.hasOwnProperty(a)?null!=l&&"onScroll"===a&&To("scroll",e):null!=l&&ae(e,a,l,i))}switch(r){case"input":Le(e),De(e,n,!1);break;case"textarea":Le(e),We(e);break;case"option":null!=n.value&&e.setAttribute("value",""+Ee(n.value));break;case"select":e.multiple=!!n.multiple,null!=(a=n.value)?Ve(e,!!n.multiple,a,!1):null!=n.defaultValue&&Ve(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Oo)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Fl(t),null;case 6:if(e&&null!=t.stateNode)vl(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(q(166));if(r=Ai(Ri.current),Ai(Li.current),Xa(t)){if(n=t.stateNode,r=t.memoizedProps,n[Zo]=t,(a=n.nodeValue!==r)&&null!==(e=$a))switch(e.tag){case 3:Do(n.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Do(n.nodeValue,r,!!(1&e.mode))}a&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[Zo]=t,t.stateNode=n}return Fl(t),null;case 13:if(ga(Oi),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(qa&&null!==Ha&&1&t.mode&&!(128&t.flags))Za(),ei(),t.flags|=98560,a=!1;else if(a=Xa(t),null!==n&&null!==n.dehydrated){if(null===e){if(!a)throw Error(q(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(q(317));a[Zo]=t}else ei(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Fl(t),a=!1}else null!==Wa&&(qc(Wa),Wa=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((n=null!==n)!==(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,1&t.mode&&(null===e||1&Oi.current?0===vc&&(vc=3):eu())),null!==t.updateQueue&&(t.flags|=4),Fl(t),null);case 4:return Ii(),bl(e,t),null===e&&jo(t.stateNode.containerInfo),Fl(t),null;case 10:return fi(t.type._context),Fl(t),null;case 19:if(ga(Oi),null===(a=t.memoizedState))return Fl(t),null;if(n=!!(128&t.flags),null===(i=a.rendering))if(n)El(a,!1);else{if(0!==vc||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(i=Ui(e))){for(t.flags|=128,El(a,!1),null!==(n=i.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(a=r).flags&=14680066,null===(i=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return pa(Oi,1&Oi.current|2),t.child}e=e.sibling}null!==a.tail&&It()>Pc&&(t.flags|=128,n=!0,El(a,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=Ui(i))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),El(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!qa)return Fl(t),null}else 2*It()-a.renderingStartTime>Pc&&1073741824!==r&&(t.flags|=128,n=!0,El(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(null!==(r=a.last)?r.sibling=i:t.child=i,a.last=i)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=It(),t.sibling=null,r=Oi.current,pa(Oi,n?1&r|2:1&r),t):(Fl(t),null);case 22:case 23:return Gc(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&1&t.mode?!!(1073741824&bc)&&(Fl(t),6&t.subtreeFlags&&(t.flags|=8192)):Fl(t),null;case 24:case 25:return null}throw Error(q(156,t.tag))}function Nl(e,t){switch(Va(t),t.tag){case 1:return va(t.type)&&wa(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ii(),ga(ma),ga(ha),$i(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Di(t),null;case 13:if(ga(Oi),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(q(340));ei()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ga(Oi),null;case 4:return Ii(),null;case 10:return fi(t.type._context),null;case 22:case 23:return Gc(),null;default:return null}}ml=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},bl=function(){},yl=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,Ai(Li.current);var a,i=null;switch(r){case"input":o=Ae(e,o),n=Ae(e,n),i=[];break;case"select":o=Ce({},o,{value:void 0}),n=Ce({},n,{value:void 0}),i=[];break;case"textarea":o=$e(e,o),n=$e(e,n),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof n.onClick&&(e.onclick=Oo)}for(c in ot(r,n),r=null,o)if(!n.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var s=o[c];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(K.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in n){var l=n[c];if(s=null!=o?o[c]:void 0,n.hasOwnProperty(c)&&l!==s&&(null!=l||null!=s))if("style"===c)if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(i||(i=[]),i.push(c,r)),r=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(i=i||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(i=i||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(K.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&To("scroll",e),i||s===l||(i=[])):(i=i||[]).push(c,l))}r&&(i=i||[]).push("style",r);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},vl=function(e,t,r,n){r!==n&&(t.flags|=4)};var Rl=!1,Al=!1,_l="function"==typeof WeakSet?WeakSet:Set,Il=null;function Bl(e,t){var r=e.ref;if(null!==r)if("function"==typeof r)try{r(null)}catch(r){cu(e,t,r)}else r.current=null}function Dl(e,t,r){try{r()}catch(r){cu(e,t,r)}}var Ol=!1;function Ul(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var o=n=n.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&Dl(t,r,a)}o=o.next}while(o!==n)}}function Vl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function $l(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"==typeof t?t(e):t.current=e}}function Hl(e){var t=e.alternate;null!==t&&(e.alternate=null,Hl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[Zo],delete t[ea],delete t[ra],delete t[na],delete t[oa])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ql(e){return 5===e.tag||3===e.tag||4===e.tag}function Wl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ql(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Kl(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=Oo));else if(4!==n&&null!==(e=e.child))for(Kl(e,t,r),e=e.sibling;null!==e;)Kl(e,t,r),e=e.sibling}function Ql(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(Ql(e,t,r),e=e.sibling;null!==e;)Ql(e,t,r),e=e.sibling}var Yl=null,Gl=!1;function Jl(e,t,r){for(r=r.child;null!==r;)Xl(e,t,r),r=r.sibling}function Xl(e,t,r){if(qt&&"function"==typeof qt.onCommitFiberUnmount)try{qt.onCommitFiberUnmount(Ht,r)}catch(e){}switch(r.tag){case 5:Al||Bl(r,t);case 6:var n=Yl,o=Gl;Yl=null,Jl(e,t,r),Gl=o,null!==(Yl=n)&&(Gl?(e=Yl,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):Yl.removeChild(r.stateNode));break;case 18:null!==Yl&&(Gl?(e=Yl,r=r.stateNode,8===e.nodeType?Yo(e.parentNode,r):1===e.nodeType&&Yo(e,r),zr(e)):Yo(Yl,r.stateNode));break;case 4:n=Yl,o=Gl,Yl=r.stateNode.containerInfo,Gl=!0,Jl(e,t,r),Yl=n,Gl=o;break;case 0:case 11:case 14:case 15:if(!Al&&(null!==(n=r.updateQueue)&&null!==(n=n.lastEffect))){o=n=n.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(2&a||4&a)&&Dl(r,t,i),o=o.next}while(o!==n)}Jl(e,t,r);break;case 1:if(!Al&&(Bl(r,t),"function"==typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(e){cu(r,t,e)}Jl(e,t,r);break;case 21:Jl(e,t,r);break;case 22:1&r.mode?(Al=(n=Al)||null!==r.memoizedState,Jl(e,t,r),Al=n):Jl(e,t,r);break;default:Jl(e,t,r)}}function Zl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new _l),t.forEach(function(t){var n=pu.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))})}}function ec(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var o=r[n];try{var a=e,i=t,s=i;e:for(;null!==s;){switch(s.tag){case 5:Yl=s.stateNode,Gl=!1;break e;case 3:case 4:Yl=s.stateNode.containerInfo,Gl=!0;break e}s=s.return}if(null===Yl)throw Error(q(160));Xl(a,i,o),Yl=null,Gl=!1;var l=o.alternate;null!==l&&(l.return=null),o.return=null}catch(e){cu(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)tc(t,e),t=t.sibling}function tc(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ec(t,e),rc(e),4&n){try{Ul(3,e,e.return),Vl(3,e)}catch(t){cu(e,e.return,t)}try{Ul(5,e,e.return)}catch(t){cu(e,e.return,t)}}break;case 1:ec(t,e),rc(e),512&n&&null!==r&&Bl(r,r.return);break;case 5:if(ec(t,e),rc(e),512&n&&null!==r&&Bl(r,r.return),32&e.flags){var o=e.stateNode;try{Xe(o,"")}catch(t){cu(e,e.return,t)}}if(4&n&&null!=(o=e.stateNode)){var a=e.memoizedProps,i=null!==r?r.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===a.type&&null!=a.name&&Ie(o,a),at(s,i);var c=at(s,a);for(i=0;i<l.length;i+=2){var u=l[i],d=l[i+1];"style"===u?rt(o,d):"dangerouslySetInnerHTML"===u?Je(o,d):"children"===u?Xe(o,d):ae(o,u,d,c)}switch(s){case"input":Be(o,a);break;case"textarea":qe(o,a);break;case"select":var g=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?Ve(o,!!a.multiple,p,!1):g!==!!a.multiple&&(null!=a.defaultValue?Ve(o,!!a.multiple,a.defaultValue,!0):Ve(o,!!a.multiple,a.multiple?[]:"",!1))}o[ea]=a}catch(t){cu(e,e.return,t)}}break;case 6:if(ec(t,e),rc(e),4&n){if(null===e.stateNode)throw Error(q(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){cu(e,e.return,t)}}break;case 3:if(ec(t,e),rc(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{zr(t.containerInfo)}catch(t){cu(e,e.return,t)}break;case 4:default:ec(t,e),rc(e);break;case 13:ec(t,e),rc(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Tc=It())),4&n&&Zl(e);break;case 22:if(u=null!==r&&null!==r.memoizedState,1&e.mode?(Al=(c=Al)||u,ec(t,e),Al=c):ec(t,e),rc(e),8192&n){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&1&e.mode)for(Il=e,u=e.child;null!==u;){for(d=Il=u;null!==Il;){switch(p=(g=Il).child,g.tag){case 0:case 11:case 14:case 15:Ul(4,g,g.return);break;case 1:Bl(g,g.return);var f=g.stateNode;if("function"==typeof f.componentWillUnmount){n=g,r=g.return;try{t=n,f.props=t.memoizedProps,f.state=t.memoizedState,f.componentWillUnmount()}catch(e){cu(n,r,e)}}break;case 5:Bl(g,g.return);break;case 22:if(null!==g.memoizedState){ic(d);continue}}null!==p?(p.return=g,Il=p):ic(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{o=d.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=d.stateNode,i=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=tt("display",i))}catch(t){cu(e,e.return,t)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){cu(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:ec(t,e),rc(e),4&n&&Zl(e);case 21:}}function rc(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(ql(r)){var n=r;break e}r=r.return}throw Error(q(160))}switch(n.tag){case 5:var o=n.stateNode;32&n.flags&&(Xe(o,""),n.flags&=-33),Ql(e,Wl(e),o);break;case 3:case 4:var a=n.stateNode.containerInfo;Kl(e,Wl(e),a);break;default:throw Error(q(161))}}catch(t){cu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function nc(e,t,r){Il=e,oc(e)}function oc(e,t,r){for(var n=!!(1&e.mode);null!==Il;){var o=Il,a=o.child;if(22===o.tag&&n){var i=null!==o.memoizedState||Rl;if(!i){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Al;s=Rl;var c=Al;if(Rl=i,(Al=l)&&!c)for(Il=o;null!==Il;)l=(i=Il).child,22===i.tag&&null!==i.memoizedState?sc(o):null!==l?(l.return=i,Il=l):sc(o);for(;null!==a;)Il=a,oc(a),a=a.sibling;Il=o,Rl=s,Al=c}ac(e)}else 8772&o.subtreeFlags&&null!==a?(a.return=o,Il=a):ac(e)}}function ac(e){for(;null!==Il;){var t=Il;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Al||Vl(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!Al)if(null===r)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:Vs(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Ei(t,a,n);break;case 3:var i=t.updateQueue;if(null!==i){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Ei(t,i,r)}break;case 5:var s=t.stateNode;if(null===r&&4&t.flags){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&zr(d)}}}break;default:throw Error(q(163))}Al||512&t.flags&&$l(t)}catch(e){cu(t,t.return,e)}}if(t===e){Il=null;break}if(null!==(r=t.sibling)){r.return=t.return,Il=r;break}Il=t.return}}function ic(e){for(;null!==Il;){var t=Il;if(t===e){Il=null;break}var r=t.sibling;if(null!==r){r.return=t.return,Il=r;break}Il=t.return}}function sc(e){for(;null!==Il;){var t=Il;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Vl(4,t)}catch(e){cu(t,r,e)}break;case 1:var n=t.stateNode;if("function"==typeof n.componentDidMount){var o=t.return;try{n.componentDidMount()}catch(e){cu(t,o,e)}}var a=t.return;try{$l(t)}catch(e){cu(t,a,e)}break;case 5:var i=t.return;try{$l(t)}catch(e){cu(t,i,e)}}}catch(e){cu(t,t.return,e)}if(t===e){Il=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Il=s;break}Il=t.return}}var lc,cc=Math.ceil,uc=ie.ReactCurrentDispatcher,dc=ie.ReactCurrentOwner,gc=ie.ReactCurrentBatchConfig,pc=0,fc=null,hc=null,mc=0,bc=0,yc=da(0),vc=0,wc=null,kc=0,xc=0,Cc=0,Sc=null,Mc=null,Tc=0,Pc=1/0,zc=null,jc=!1,Ec=null,Fc=null,Lc=!1,Nc=null,Rc=0,Ac=0,_c=null,Ic=-1,Bc=0;function Dc(){return 6&pc?It():-1!==Ic?Ic:Ic=It()}function Oc(e){return 1&e.mode?2&pc&&0!==mc?mc&-mc:null!==ri.transition?(0===Bc&&(Bc=tr()),Bc):0!==(e=ar)?e:e=void 0===(e=window.event)?16:_r(e.type):1}function Uc(e,t,r,n){if(50<Ac)throw Ac=0,_c=null,Error(q(185));nr(e,r,n),2&pc&&e===fc||(e===fc&&(!(2&pc)&&(xc|=r),4===vc&&Wc(e,mc)),Vc(e,n),1===r&&0===pc&&!(1&t.mode)&&(Pc=It()+500,Ta&&ja()))}function Vc(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-Wt(a),s=1<<i,l=o[i];-1===l?0!==(s&r)&&0===(s&n)||(o[i]=Zt(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var n=Xt(e,e===fc?mc:0);if(0===n)null!==r&&Rt(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&Rt(r),1===t)0===e.tag?function(e){Ta=!0,za(e)}(Kc.bind(null,e)):za(Kc.bind(null,e)),Ko(function(){!(6&pc)&&ja()}),r=null;else{switch(ir(n)){case 1:r=Dt;break;case 4:r=Ot;break;case 16:default:r=Ut;break;case 536870912:r=$t}r=fu(r,$c.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function $c(e,t){if(Ic=-1,Bc=0,6&pc)throw Error(q(327));var r=e.callbackNode;if(su()&&e.callbackNode!==r)return null;var n=Xt(e,e===fc?mc:0);if(0===n)return null;if(30&n||0!==(n&e.expiredLanes)||t)t=tu(e,n);else{t=n;var o=pc;pc|=2;var a=Zc();for(fc===e&&mc===t||(zc=null,Pc=It()+500,Jc(e,t));;)try{nu();break}catch(t){Xc(e,t)}pi(),uc.current=a,pc=o,null!==hc?t=0:(fc=null,mc=0,t=vc)}if(0!==t){if(2===t&&(0!==(o=er(e))&&(n=o,t=Hc(e,o))),1===t)throw r=wc,Jc(e,0),Wc(e,n),Vc(e,It()),r;if(6===t)Wc(e,n);else{if(o=e.current.alternate,!(30&n||function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var o=r[n],a=o.getSnapshot;o=o.value;try{if(!Kn(a(),o))return!1}catch(e){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=tu(e,n),2===t&&(a=er(e),0!==a&&(n=a,t=Hc(e,a))),1!==t)))throw r=wc,Jc(e,0),Wc(e,n),Vc(e,It()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(q(345));case 2:case 5:iu(e,Mc,zc);break;case 3:if(Wc(e,n),(130023424&n)===n&&10<(t=Tc+500-It())){if(0!==Xt(e,0))break;if(((o=e.suspendedLanes)&n)!==n){Dc(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ho(iu.bind(null,e,Mc,zc),t);break}iu(e,Mc,zc);break;case 4:if(Wc(e,n),(4194240&n)===n)break;for(t=e.eventTimes,o=-1;0<n;){var i=31-Wt(n);a=1<<i,(i=t[i])>o&&(o=i),n&=~a}if(n=o,10<(n=(120>(n=It()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*cc(n/1960))-n)){e.timeoutHandle=Ho(iu.bind(null,e,Mc,zc),n);break}iu(e,Mc,zc);break;default:throw Error(q(329))}}}return Vc(e,It()),e.callbackNode===r?$c.bind(null,e):null}function Hc(e,t){var r=Sc;return e.current.memoizedState.isDehydrated&&(Jc(e,t).flags|=256),2!==(e=tu(e,t))&&(t=Mc,Mc=r,null!==t&&qc(t)),e}function qc(e){null===Mc?Mc=e:Mc.push.apply(Mc,e)}function Wc(e,t){for(t&=~Cc,t&=~xc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Wt(t),n=1<<r;e[r]=-1,t&=~n}}function Kc(e){if(6&pc)throw Error(q(327));su();var t=Xt(e,0);if(!(1&t))return Vc(e,It()),null;var r=tu(e,t);if(0!==e.tag&&2===r){var n=er(e);0!==n&&(t=n,r=Hc(e,n))}if(1===r)throw r=wc,Jc(e,0),Wc(e,t),Vc(e,It()),r;if(6===r)throw Error(q(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,iu(e,Mc,zc),Vc(e,It()),null}function Qc(e,t){var r=pc;pc|=1;try{return e(t)}finally{0===(pc=r)&&(Pc=It()+500,Ta&&ja())}}function Yc(e){null!==Nc&&0===Nc.tag&&!(6&pc)&&su();var t=pc;pc|=1;var r=gc.transition,n=ar;try{if(gc.transition=null,ar=1,e)return e()}finally{ar=n,gc.transition=r,!(6&(pc=t))&&ja()}}function Gc(){bc=yc.current,ga(yc)}function Jc(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,qo(r)),null!==hc)for(r=hc.return;null!==r;){var n=r;switch(Va(n),n.tag){case 1:null!=(n=n.type.childContextTypes)&&wa();break;case 3:Ii(),ga(ma),ga(ha),$i();break;case 5:Di(n);break;case 4:Ii();break;case 13:case 19:ga(Oi);break;case 10:fi(n.type._context);break;case 22:case 23:Gc()}r=r.return}if(fc=e,hc=e=yu(e.current,null),mc=bc=t,vc=0,wc=null,Cc=xc=kc=0,Mc=Sc=null,null!==yi){for(t=0;t<yi.length;t++)if(null!==(n=(r=yi[t]).interleaved)){r.interleaved=null;var o=n.next,a=r.pending;if(null!==a){var i=a.next;a.next=o,n.next=i}r.pending=n}yi=null}return e}function Xc(e,t){for(;;){var r=hc;try{if(pi(),Hi.current=Bs,Gi){for(var n=Ki.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}Gi=!1}if(Wi=0,Yi=Qi=Ki=null,Ji=!1,Xi=0,dc.current=null,null===r||null===r.return){vc=1,wc=t,hc=null;break}e:{var a=e,i=r.return,s=r,l=t;if(t=mc,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,u=s,d=u.tag;if(!(1&u.mode||0!==d&&11!==d&&15!==d)){var g=u.alternate;g?(u.updateQueue=g.updateQueue,u.memoizedState=g.memoizedState,u.lanes=g.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=tl(i);if(null!==p){p.flags&=-257,rl(p,i,s,0,t),1&p.mode&&el(a,c,t),l=c;var f=(t=p).updateQueue;if(null===f){var h=new Set;h.add(l),t.updateQueue=h}else f.add(l);break e}if(!(1&t)){el(a,c,t),eu();break e}l=Error(q(426))}else if(qa&&1&s.mode){var m=tl(i);if(null!==m){!(65536&m.flags)&&(m.flags|=256),rl(m,i,s,0,t),ti(Ys(l,s));break e}}a=l=Ys(l,s),4!==vc&&(vc=2),null===Sc?Sc=[a]:Sc.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,zi(a,Xs(0,l,t));break e;case 1:s=l;var b=a.type,y=a.stateNode;if(!(128&a.flags||"function"!=typeof b.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==Fc&&Fc.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,zi(a,Zs(a,s,t));break e}}a=a.return}while(null!==a)}au(r)}catch(e){t=e,hc===r&&null!==r&&(hc=r=r.return);continue}break}}function Zc(){var e=uc.current;return uc.current=Bs,null===e?Bs:e}function eu(){0!==vc&&3!==vc&&2!==vc||(vc=4),null===fc||!(268435455&kc)&&!(268435455&xc)||Wc(fc,mc)}function tu(e,t){var r=pc;pc|=2;var n=Zc();for(fc===e&&mc===t||(zc=null,Jc(e,t));;)try{ru();break}catch(t){Xc(e,t)}if(pi(),pc=r,uc.current=n,null!==hc)throw Error(q(261));return fc=null,mc=0,vc}function ru(){for(;null!==hc;)ou(hc)}function nu(){for(;null!==hc&&!At();)ou(hc)}function ou(e){var t=lc(e.alternate,e,bc);e.memoizedProps=e.pendingProps,null===t?au(e):hc=t,dc.current=null}function au(e){var t=e;do{var r=t.alternate;if(e=t.return,32768&t.flags){if(null!==(r=Nl(r,t)))return r.flags&=32767,void(hc=r);if(null===e)return vc=6,void(hc=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(r=Ll(r,t,bc)))return void(hc=r);if(null!==(t=t.sibling))return void(hc=t);hc=t=e}while(null!==t);0===vc&&(vc=5)}function iu(e,t,r){var n=ar,o=gc.transition;try{gc.transition=null,ar=1,function(e,t,r,n){do{su()}while(null!==Nc);if(6&pc)throw Error(q(327));r=e.finishedWork;var o=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(q(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-Wt(r),a=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~a}}(e,a),e===fc&&(hc=fc=null,mc=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Lc||(Lc=!0,fu(Ut,function(){return su(),null})),a=!!(15990&r.flags),!!(15990&r.subtreeFlags)||a){a=gc.transition,gc.transition=null;var i=ar;ar=1;var s=pc;pc|=4,dc.current=null,function(e,t){if(Uo=Er,Zn(e=Xn())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var o=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var i=0,s=-1,l=-1,c=0,u=0,d=e,g=null;t:for(;;){for(var p;d!==r||0!==o&&3!==d.nodeType||(s=i+o),d!==a||0!==n&&3!==d.nodeType||(l=i+n),3===d.nodeType&&(i+=d.nodeValue.length),null!==(p=d.firstChild);)g=d,d=p;for(;;){if(d===e)break t;if(g===r&&++c===o&&(s=i),g===a&&++u===n&&(l=i),null!==(p=d.nextSibling))break;g=(d=g).parentNode}d=p}r=-1===s||-1===l?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Vo={focusedElem:e,selectionRange:r},Er=!1,Il=t;null!==Il;)if(e=(t=Il).child,1028&t.subtreeFlags&&null!==e)e.return=t,Il=e;else for(;null!==Il;){t=Il;try{var f=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==f){var h=f.memoizedProps,m=f.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?h:Vs(t.type,h),m);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var v=t.stateNode.containerInfo;1===v.nodeType?v.textContent="":9===v.nodeType&&v.documentElement&&v.removeChild(v.documentElement);break;default:throw Error(q(163))}}catch(e){cu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Il=e;break}Il=t.return}f=Ol,Ol=!1}(e,r),tc(r,e),eo(Vo),Er=!!Uo,Vo=Uo=null,e.current=r,nc(r),_t(),pc=s,ar=i,gc.transition=a}else e.current=r;if(Lc&&(Lc=!1,Nc=e,Rc=o),a=e.pendingLanes,0===a&&(Fc=null),function(e){if(qt&&"function"==typeof qt.onCommitFiberRoot)try{qt.onCommitFiberRoot(Ht,e,void 0,!(128&~e.current.flags))}catch(e){}}(r.stateNode),Vc(e,It()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(jc)throw jc=!1,e=Ec,Ec=null,e;!!(1&Rc)&&0!==e.tag&&su(),a=e.pendingLanes,1&a?e===_c?Ac++:(Ac=0,_c=e):Ac=0,ja()}(e,t,r,n)}finally{gc.transition=o,ar=n}return null}function su(){if(null!==Nc){var e=ir(Rc),t=gc.transition,r=ar;try{if(gc.transition=null,ar=16>e?16:e,null===Nc)var n=!1;else{if(e=Nc,Nc=null,Rc=0,6&pc)throw Error(q(331));var o=pc;for(pc|=4,Il=e.current;null!==Il;){var a=Il,i=a.child;if(16&Il.flags){var s=a.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for(Il=c;null!==Il;){var u=Il;switch(u.tag){case 0:case 11:case 15:Ul(8,u,a)}var d=u.child;if(null!==d)d.return=u,Il=d;else for(;null!==Il;){var g=(u=Il).sibling,p=u.return;if(Hl(u),u===c){Il=null;break}if(null!==g){g.return=p,Il=g;break}Il=p}}}var f=a.alternate;if(null!==f){var h=f.child;if(null!==h){f.child=null;do{var m=h.sibling;h.sibling=null,h=m}while(null!==h)}}Il=a}}if(2064&a.subtreeFlags&&null!==i)i.return=a,Il=i;else e:for(;null!==Il;){if(2048&(a=Il).flags)switch(a.tag){case 0:case 11:case 15:Ul(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,Il=b;break e}Il=a.return}}var y=e.current;for(Il=y;null!==Il;){var v=(i=Il).child;if(2064&i.subtreeFlags&&null!==v)v.return=i,Il=v;else e:for(i=y;null!==Il;){if(2048&(s=Il).flags)try{switch(s.tag){case 0:case 11:case 15:Vl(9,s)}}catch(e){cu(s,s.return,e)}if(s===i){Il=null;break e}var w=s.sibling;if(null!==w){w.return=s.return,Il=w;break e}Il=s.return}}if(pc=o,ja(),qt&&"function"==typeof qt.onPostCommitFiberRoot)try{qt.onPostCommitFiberRoot(Ht,e)}catch(e){}n=!0}return n}finally{ar=r,gc.transition=t}}return!1}function lu(e,t,r){e=Ti(e,t=Xs(0,t=Ys(r,t),1),1),t=Dc(),null!==e&&(nr(e,1,t),Vc(e,t))}function cu(e,t,r){if(3===e.tag)lu(e,e,r);else for(;null!==t;){if(3===t.tag){lu(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Fc||!Fc.has(n))){t=Ti(t,e=Zs(t,e=Ys(r,e),1),1),e=Dc(),null!==t&&(nr(t,1,e),Vc(t,e));break}}t=t.return}}function uu(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=Dc(),e.pingedLanes|=e.suspendedLanes&r,fc===e&&(mc&r)===r&&(4===vc||3===vc&&(130023424&mc)===mc&&500>It()-Tc?Jc(e,0):Cc|=r),Vc(e,t)}function du(e,t){0===t&&(1&e.mode?(t=Gt,!(130023424&(Gt<<=1))&&(Gt=4194304)):t=1);var r=Dc();null!==(e=ki(e,t))&&(nr(e,t,r),Vc(e,r))}function gu(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),du(e,r)}function pu(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(q(314))}null!==n&&n.delete(t),du(e,r)}function fu(e,t){return Nt(e,t)}function hu(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mu(e,t,r,n){return new hu(e,t,r,n)}function bu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function yu(e,t){var r=e.alternate;return null===r?((r=mu(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function vu(e,t,r,n,o,a){var i=2;if(n=e,"function"==typeof e)bu(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case ce:return wu(r.children,o,a,t);case ue:i=8,o|=8;break;case de:return(e=mu(12,r,t,2|o)).elementType=de,e.lanes=a,e;case he:return(e=mu(13,r,t,o)).elementType=he,e.lanes=a,e;case me:return(e=mu(19,r,t,o)).elementType=me,e.lanes=a,e;case ve:return ku(r,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ge:i=10;break e;case pe:i=9;break e;case fe:i=11;break e;case be:i=14;break e;case ye:i=16,n=null;break e}throw Error(q(130,null==e?e:typeof e,""))}return(t=mu(i,r,t,o)).elementType=e,t.type=n,t.lanes=a,t}function wu(e,t,r,n){return(e=mu(7,e,n,t)).lanes=r,e}function ku(e,t,r,n){return(e=mu(22,e,n,t)).elementType=ve,e.lanes=r,e.stateNode={isHidden:!1},e}function xu(e,t,r){return(e=mu(6,e,null,t)).lanes=r,e}function Cu(e,t,r){return(t=mu(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Su(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rr(0),this.expirationTimes=rr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rr(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Mu(e,t,r,n,o,a,i,s,l){return e=new Su(e,t,r,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=mu(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ci(a),e}function Tu(e){if(!e)return fa;e:{if(zt(e=e._reactInternals)!==e||1!==e.tag)throw Error(q(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(va(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(q(171))}if(1===e.tag){var r=e.type;if(va(r))return xa(e,r,t)}return t}function Pu(e,t,r,n,o,a,i,s,l){return(e=Mu(r,n,!0,e,0,a,0,s,l)).context=Tu(null),r=e.current,(a=Mi(n=Dc(),o=Oc(r))).callback=null!=t?t:null,Ti(r,a,o),e.current.lanes=o,nr(e,o,n),Vc(e,n),e}function zu(e,t,r,n){var o=t.current,a=Dc(),i=Oc(o);return r=Tu(r),null===t.context?t.context=r:t.pendingContext=r,(t=Mi(a,i)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=Ti(o,t,i))&&(Uc(e,o,i,a),Pi(e,o,i)),i}function ju(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Eu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Fu(e,t){Eu(e,t),(e=e.alternate)&&Eu(e,t)}lc=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||ma.current)ol=!0;else{if(0===(e.lanes&r)&&!(128&t.flags))return ol=!1,function(e,t,r){switch(t.tag){case 3:fl(t),ei();break;case 5:Bi(t);break;case 1:va(t.type)&&Ca(t);break;case 4:_i(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;pa(ci,n._currentValue),n._currentValue=o;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(pa(Oi,1&Oi.current),t.flags|=128,null):0!==(r&t.child.childLanes)?xl(e,t,r):(pa(Oi,1&Oi.current),null!==(e=jl(e,t,r))?e.sibling:null);pa(Oi,1&Oi.current);break;case 19:if(n=0!==(r&t.childLanes),128&e.flags){if(n)return Pl(e,t,r);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),pa(Oi,Oi.current),n)break;return null;case 22:case 23:return t.lanes=0,cl(e,t,r)}return jl(e,t,r)}(e,t,r);ol=!!(131072&e.flags)}else ol=!1,qa&&1048576&t.flags&&Oa(t,Na,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;zl(e,t),e=t.pendingProps;var o=ya(t,ha.current);mi(t,r),o=rs(null,t,n,e,o,r);var a=ns();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,va(n)?(a=!0,Ca(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ci(t),o.updater=Hs,t.stateNode=o,o._reactInternals=t,Qs(t,n,e,r),t=pl(null,t,n,!0,a,r)):(t.tag=0,qa&&a&&Ua(t),al(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(zl(e,t),e=t.pendingProps,n=(o=n._init)(n._payload),t.type=n,o=t.tag=function(e){if("function"==typeof e)return bu(e)?1:0;if(null!=e){if((e=e.$$typeof)===fe)return 11;if(e===be)return 14}return 2}(n),e=Vs(n,e),o){case 0:t=dl(null,t,n,e,r);break e;case 1:t=gl(null,t,n,e,r);break e;case 11:t=il(null,t,n,e,r);break e;case 14:t=sl(null,t,n,Vs(n.type,e),r);break e}throw Error(q(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,dl(e,t,n,o=t.elementType===n?o:Vs(n,o),r);case 1:return n=t.type,o=t.pendingProps,gl(e,t,n,o=t.elementType===n?o:Vs(n,o),r);case 3:e:{if(fl(t),null===e)throw Error(q(387));n=t.pendingProps,o=(a=t.memoizedState).element,Si(e,t),ji(t,n,null,r);var i=t.memoizedState;if(n=i.element,a.isDehydrated){if(a={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=hl(e,t,n,r,o=Ys(Error(q(423)),t));break e}if(n!==o){t=hl(e,t,n,r,o=Ys(Error(q(424)),t));break e}for(Ha=Go(t.stateNode.containerInfo.firstChild),$a=t,qa=!0,Wa=null,r=li(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(ei(),n===o){t=jl(e,t,r);break e}al(e,t,n,r)}t=t.child}return t;case 5:return Bi(t),null===e&&Ga(t),n=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,i=o.children,$o(n,o)?i=null:null!==a&&$o(n,a)&&(t.flags|=32),ul(e,t),al(e,t,i,r),t.child;case 6:return null===e&&Ga(t),null;case 13:return xl(e,t,r);case 4:return _i(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=si(t,null,n,r):al(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,il(e,t,n,o=t.elementType===n?o:Vs(n,o),r);case 7:return al(e,t,t.pendingProps,r),t.child;case 8:case 12:return al(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,pa(ci,n._currentValue),n._currentValue=i,null!==a)if(Kn(a.value,i)){if(a.children===o.children&&!ma.current){t=jl(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){i=a.child;for(var l=s.firstContext;null!==l;){if(l.context===n){if(1===a.tag){(l=Mi(-1,r&-r)).tag=2;var c=a.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=r,null!==(l=a.alternate)&&(l.lanes|=r),hi(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(10===a.tag)i=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(i=a.return))throw Error(q(341));i.lanes|=r,null!==(s=i.alternate)&&(s.lanes|=r),hi(i,r,t),i=a.sibling}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===t){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}al(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,mi(t,r),n=n(o=bi(o)),t.flags|=1,al(e,t,n,r),t.child;case 14:return o=Vs(n=t.type,t.pendingProps),sl(e,t,n,o=Vs(n.type,o),r);case 15:return ll(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Vs(n,o),zl(e,t),t.tag=1,va(n)?(e=!0,Ca(t)):e=!1,mi(t,r),Ws(t,n,o),Qs(t,n,o,r),pl(null,t,n,!0,e,r);case 19:return Pl(e,t,r);case 22:return cl(e,t,r)}throw Error(q(156,t.tag))};var Lu="function"==typeof reportError?reportError:function(e){};function Nu(e){this._internalRoot=e}function Ru(e){this._internalRoot=e}function Au(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function _u(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Iu(){}function Bu(e,t,r,n,o){var a=r._reactRootContainer;if(a){var i=a;if("function"==typeof o){var s=o;o=function(){var e=ju(i);s.call(e)}}zu(t,i,e,o)}else i=function(e,t,r,n,o){if(o){if("function"==typeof n){var a=n;n=function(){var e=ju(i);a.call(e)}}var i=Pu(t,n,e,0,null,!1,0,"",Iu);return e._reactRootContainer=i,e[ta]=i.current,jo(8===e.nodeType?e.parentNode:e),Yc(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof n){var s=n;n=function(){var e=ju(l);s.call(e)}}var l=Mu(e,0,!1,null,0,!1,0,"",Iu);return e._reactRootContainer=l,e[ta]=l.current,jo(8===e.nodeType?e.parentNode:e),Yc(function(){zu(t,l,r,n)}),l}(r,t,e,o,n);return ju(i)}Ru.prototype.render=Nu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(q(409));zu(e,t,null,null)},Ru.prototype.unmount=Nu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;Yc(function(){zu(null,e,null,null)}),t[ta]=null}},Ru.prototype.unstable_scheduleHydration=function(e){if(e){var t=ur();e={blockedOn:null,target:e,priority:t};for(var r=0;r<vr.length&&0!==t&&t<vr[r].priority;r++);vr.splice(r,0,e),0===r&&Cr(e)}},sr=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Jt(t.pendingLanes);0!==r&&(or(t,1|r),Vc(t,It()),!(6&pc)&&(Pc=It()+500,ja()))}break;case 13:Yc(function(){var t=ki(e,1);if(null!==t){var r=Dc();Uc(t,e,1,r)}}),Fu(e,1)}},lr=function(e){if(13===e.tag){var t=ki(e,134217728);if(null!==t)Uc(t,e,134217728,Dc());Fu(e,134217728)}},cr=function(e){if(13===e.tag){var t=Oc(e),r=ki(e,t);if(null!==r)Uc(r,e,t,Dc());Fu(e,t)}},ur=function(){return ar},dr=function(e,t){var r=ar;try{return ar=e,t()}finally{ar=r}},lt=function(e,t,r){switch(t){case"input":if(Be(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=la(n);if(!o)throw Error(q(90));Ne(n),Be(n,o)}}}break;case"textarea":qe(e,r);break;case"select":null!=(t=r.value)&&Ve(e,!!r.multiple,t,!1)}},ft=Qc,ht=Yc;var Du={usingClientEntryPoint:!1,Events:[ia,sa,la,gt,pt,Qc]},Ou={findFiberByHostInstance:aa,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Uu={bundleType:Ou.bundleType,version:Ou.version,rendererPackageName:Ou.rendererPackageName,rendererConfig:Ou.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ie.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ft(e))?null:e.stateNode},findFiberByHostInstance:Ou.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Vu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vu.isDisabled&&Vu.supportsFiber)try{Ht=Vu.inject(Uu),qt=Vu}catch(Ge){}}D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Du,D.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Au(t))throw Error(q(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:le,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},D.createRoot=function(e,t){if(!Au(e))throw Error(q(299));var r=!1,n="",o=Lu;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Mu(e,1,!1,null,0,r,0,n,o),e[ta]=t.current,jo(8===e.nodeType?e.parentNode:e),new Nu(t)},D.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(q(188));throw e=Object.keys(e).join(","),Error(q(268,e))}return e=null===(e=Ft(t))?null:e.stateNode},D.flushSync=function(e){return Yc(e)},D.hydrate=function(e,t,r){if(!_u(t))throw Error(q(200));return Bu(null,e,t,!0,r)},D.hydrateRoot=function(e,t,r){if(!Au(e))throw Error(q(405));var n=null!=r&&r.hydratedSources||null,o=!1,a="",i=Lu;if(null!=r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(i=r.onRecoverableError)),t=Pu(t,null,e,1,null!=r?r:null,o,0,a,i),e[ta]=t.current,jo(e),n)for(e=0;e<n.length;e++)o=(o=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Ru(t)},D.render=function(e,t,r){if(!_u(t))throw Error(q(200));return Bu(null,e,t,!1,r)},D.unmountComponentAtNode=function(e){if(!_u(e))throw Error(q(40));return!!e._reactRootContainer&&(Yc(function(){Bu(null,null,e,!1,function(){e._reactRootContainer=null,e[ta]=null})}),!0)},D.unstable_batchedUpdates=Qc,D.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!_u(r))throw Error(q(200));if(null==e||void 0===e._reactInternals)throw Error(q(38));return Bu(e,t,r,!1,n)},D.version="18.3.1-next-f1338f8080-20240426",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){}}(),B.exports=D;var $u,Hu=B.exports,qu=Hu;$u=qu.createRoot,qu.hydrateRoot;const Wu="processing_start",Ku="text_chunk",Qu="processing_end",Yu="complete",Gu="follow_up_prompts",Ju="error",Xu="human_decision_required",Zu=e=>{if(!e||"string"!=typeof e)return null;if("[DONE]"===e||"[PROCESSING]"===e)return null;try{const t=JSON.parse(e);if(!t||"object"!=typeof t)return null;const r=t.type||t.event_type;if(r===Ku||t.content){const e=t.content||t.choices?.[0]?.delta?.content||"";return{type:Ku,content:e,...t}}return r===Wu||"processing_start"===t.type?{type:Wu,...t}:r===Qu||"processing_end"===t.type?{type:Qu,...t}:r===Yu||"complete"===t.type?{type:Yu,finalContent:t.finalContent||t.content||"",...t}:r===Ju||"error"===t.type?{type:Ju,error:t.error||t.message||"Unknown error",...t}:r===Xu||"human_decision_required"===t.type?{type:Xu,decisionId:t.decisionId||t.decision_id,question:t.question||"",options:t.options||[],context:t.context||{},...t}:r?{type:r,...t}:t}catch(e){return null}};class ed extends Error{constructor(e="SSE stream ended before completion"){super(e),this.name="IncompleteStreamError"}}const td=410;class rd extends Error{constructor(e="This conversation was erased"){super(e),this.name="ConversationErasedError"}}const nd=async(e,t,r,n)=>{const o={"Content-Type":"application/json",Accept:"text/event-stream"};if("function"==typeof r){const e=await r();e&&(o.Authorization=`Bearer ${e}`)}const a=await fetch(`${t.replace(/\/$/,"")}/api/v1/support`,{method:"POST",headers:o,credentials:"include",body:JSON.stringify(e),...n?{signal:n}:{}});if(a.status===td)throw new rd;if(!a.ok)throw new Error(`HTTP error! status: ${a.status}`);if(!a.body)throw new Error("Response body is null");return a.body},od=()=>({id:`skeleton-${Date.now()}`,role:"assistant",content:"",timestamp:new Date,isProcessing:!0,processingStatus:""}),ad=e=>{if(!Array.isArray(e)||0===e.length)return;const t=e.map(e=>({type:e.type||"prompt",text:"string"==typeof e.text?e.text:"",submitText:"string"==typeof e.submitText?e.submitText:void 0,promptId:"string"==typeof e.promptId?e.promptId:void 0,confidence:"number"==typeof e.confidence?e.confidence:void 0})).filter(e=>e.text);return t.length?t:void 0},id=(e,t,r={})=>{e(e=>{const n=[...e||[]],o=n[n.length-1];if("assistant"===o?.role){const{prompts:e,...a}=r||{};n[n.length-1]={...o,...a,content:t,isProcessing:!1,...null!=e&&{prompts:ad(e)}}}return n})},sd=/model.candidates.failed|gateway|502|redis|litellm|openai.*error|Failed to initialize agent|Streaming error:/i,ld="I'm having a little trouble right now. Please try again in a moment.";function cd(e){return e&&"string"==typeof e?sd.test(e)?ld:e:ld}const ud=(e,t,r,n,o)=>{if(e&&e.type)switch(e.type){case Wu:{const r=e.choices?.[0]?.delta?.content||"";t(e=>{const t=[...e||[]],n=t[t.length-1];return n&&"assistant"===n.role&&n.isProcessing?t[t.length-1]={...n,processingStatus:r}:r&&t.push({...od(),processingStatus:r}),t});break}case Ku:o.current||(o.current=!0,t(e=>{const t=e[e.length-1];if(!t||"assistant"!==t.role||!t.isProcessing){return[...e||[],od()]}return e}));const a=e.content||e.choices?.[0]?.delta?.content||"";a&&(r.current+=a,n(r.current));break;case Qu:(e=>{e(e=>{const t=[...e||[]],r=t[t.length-1];return r?.isProcessing&&(t[t.length-1]={...r,isProcessing:!1}),t})})(t);break;case Yu:{const n=e.finalContent||r.current,o={};"boolean"==typeof e.conclusionDetected?o.conclusionDetected=e.conclusionDetected:"boolean"==typeof e.conclusion_detected&&(o.conclusionDetected=e.conclusion_detected);const a={...o,prompts:e.prompts};id(t,n,a);break}case Gu:{const r=Array.isArray(e.prompts)?e.prompts:[];r.length>0&&t(e=>{const t=[...e||[]],n=t[t.length-1];return n&&"assistant"===n.role&&(t[t.length-1]={...n,prompts:ad(r)}),t});break}case Ju:((e,t)=>{t=cd(t),e(e=>{const r=[...e||[]],n=r[r.length-1];return"assistant"===n?.role&&(r[r.length-1]={...n,content:(n.content||"")+`\n\nError: ${t}`,isProcessing:!1}),r})})(t,e.error||"Unknown error occurred");break;case Xu:{const r={id:`decision-${Date.now()}`,role:"assistant",content:e.question||"",timestamp:new Date,isProcessing:!1,requiresDecision:!0,decisionData:{decisionId:e.decisionId,question:e.question,options:e.options||[],context:e.context||{}}};t(e=>[...(e||[]).filter(e=>!e.isProcessing||e.content),r]);break}}},dd=e=>{const t=e.Sources??e.sources??[];return Array.isArray(t)?t.map(e=>({source_type:e.source_type??e.sourceType??"website",source_id:e.sourceid??e.source_id,source_name:e.source_name??e.sourceName??"",url:e.url,citation_indices:e.citation_indices??e.citationIndices,effective_date:e.effective_date??e.effectiveDate,stale:e.stale})).filter(e=>e.source_id||e.url||"database"===e.source_type):[]},gd=async(e,t,r,n)=>{const o=(e=>{let t=null,r=null,n=0;const o=a=>{if(a-n<16)r=requestAnimationFrame(o);else{if(null!==t){const r=t;t=null,n=a,e(e=>{const t=[...e||[]],n=t[t.length-1];return"assistant"===n?.role&&(t[t.length-1]={...n,content:r}),t})}r=null}},a=e=>{t=e,null===r&&(r=requestAnimationFrame(o))};return a.cancel=()=>{null!==r&&(cancelAnimationFrame(r),r=null,t=null)},a})(t),a=e.getReader(),i=new TextDecoder;let s="";const l={current:""},c={current:!1};let u=!1,d=null;const g=()=>{if(!u&&(u=!0,"function"==typeof r))try{r()}catch(e){}};try{for(;;){const{value:e,done:r}=await a.read();if(r)break;s+=i.decode(e,{stream:!0});const u=s.split(/\r?\n\r?\n/);s=u.pop()||"";for(const e of u){const r=e.split(/\r?\n/).map(e=>e.trim()).filter(Boolean);if(0===r.length)continue;const a=r.filter(e=>e.startsWith("data:")).map(e=>e.slice(5).trim());if(0===a.length)continue;const i=a.join("\n");if("[DONE]"===i)continue;let s;try{s=JSON.parse(i)}catch(e){continue}if(s){if(s.type){if("processing_start"===s.type){const e=s.choices?.[0]?.delta?.content||"";t(t=>{const r=[...t||[]],n=r[r.length-1];return n&&"assistant"===n.role&&n.isProcessing?r[r.length-1]={...n,processingStatus:e}:e&&r.push({...od(),processingStatus:e}),r});continue}if("processing_end"===s.type)continue;if("human_handoff"===s.type){g(),"function"==typeof n&&n();continue}if("duplicate_suppressed"===s.type){g();continue}if("follow_up_prompts"===s.type){const e=Array.isArray(s.prompts)?s.prompts:[];e.length>0&&t(t=>{const r=[...t||[]],n=r[r.length-1];return n&&"assistant"===n.role?null!=d&&n.id!==d?t:(r[r.length-1]={...n,prompts:ad(e)},r):t});continue}if("text_chunk"===s.type){c.current||(c.current=!0,t(e=>{const t=e[e.length-1];if(!t||"assistant"!==t.role||!t.isProcessing){return[...e||[],od()]}return e}));const e=s.choices?.[0]?.delta?.content||s.content;e&&(l.current+=e,o(l.current));continue}if("sources"===s.type){const e=dd(s);e.length>0&&t(t=>{const r=[...t||[]],n=r[r.length-1];return"assistant"===n?.role&&(r[r.length-1]={...n,sources:e,sourcesPreliminary:!0}),r});continue}if("complete"===s.type){const e=dd(s),r=s.finalContent||s.choices?.[0]?.delta?.content||l.current,n={};"boolean"==typeof s.conclusionDetected?n.conclusionDetected=s.conclusionDetected:"boolean"==typeof s.conclusion_detected&&(n.conclusionDetected=s.conclusion_detected);const a={...n,prompts:s.prompts};o.cancel(),id(t,r,a),t(t=>{const n=[...t||[]],o=n[n.length-1];if("assistant"===o?.role&&(d=o.id??null),"assistant"===o?.role&&(e.length>0||o.sourcesPreliminary)){const{sourcesPreliminary:t,...a}=o;n[n.length-1]={...a,sources:e,content:r,isProcessing:!1}}return n}),g();continue}if("error"===s.type){t(e=>{const t=[...e||[]],r=t[t.length-1];return"assistant"===r?.role&&(t[t.length-1]={...r,content:(r.content||"")+`\n\nError: ${cd(s.error||"Unknown error occurred")}`,isProcessing:!1}),t});continue}const e=Zu(i);if(e&&e.type){ud(e,t,l,o,c);continue}}if("chat.completion.chunk"===s.object&&s.choices?.[0]?.delta?.content)c.current||(c.current=!0,t(e=>{const t=e[e.length-1];if(!t||"assistant"!==t.role||!t.isProcessing){return[...e||[],od()]}return e})),l.current+=s.choices[0].delta.content,o(l.current);else if(s.choices?.[0]?.finish_reason&&null!==s.choices[0].finish_reason){const e={prompts:s.prompts};id(t,l.current,e),t(e=>{const t=(e||[])[(e||[]).length-1];return"assistant"===t?.role&&(d=t.id??null),e}),g()}}}}}catch(e){if(e&&"AbortError"===e.name)return void(l.current?id(t,l.current,{stoppedByUser:!0}):t(e=>(e||[]).filter(e=>!e.isProcessing)));throw e}finally{a.releaseLock()}if(!u)throw new ed(l.current?"Stream ended mid-response - partial content received":"Stream ended before any content was received")};const pd=.025,fd=200,hd=1e3,md=300;function bd(e,t){return null!=e?e:t}function yd(e,t){const r=e.sampleRate,n=bd(e.energyThreshold,pd),o=bd(e.speechStartMs,fd),a=bd(e.hangoverMs,hd),i=bd(e.preRollMs,md);let s=!1,l=0,c=0,u=[],d=0;return{process:function(e){const g=function(e){return e.byteLength/2/r*1e3}(e),p=function(e){const t=new Int16Array(e);if(0===t.length)return 0;let r=0;for(let e=0;e<t.length;e+=1){const n=t[e]/32768;r+=n*n}return Math.sqrt(r/t.length)}(e)>=n;if(s)t.onVoiceFrame(e),p?c=0:(c+=g,c>=a&&(s=!1,l=0,c=0,t.onSpeechEnd()));else{for(u.push({pcm:e,durationMs:g}),d+=g;d>i&&u.length>1;){const e=u.shift();d-=e?e.durationMs:0}if(p){if(l+=g,l>=o){s=!0,c=0,"function"==typeof t.onSpeechStart&&t.onSpeechStart();for(let e=0;e<u.length;e+=1)t.onVoiceFrame(u[e].pcm);u=[],d=0}}else l=0}},reset:function(){s=!1,l=0,c=0,u=[],d=0},isSpeaking:function(){return s}}}function vd(e){e&&e.getTracks().forEach(function(e){e.stop()})}async function wd(e){if("undefined"==typeof window)throw new Error("Audio recorder can only run in the browser");const t=new AudioContext({sampleRate:16e3}),r=new Blob(["\n class PCMRecorderProcessor extends AudioWorkletProcessor {\n process(inputs) {\n if (!inputs.length || !inputs[0].length) {\n return true;\n }\n const inputChannel = inputs[0][0];\n this.port.postMessage(new Float32Array(inputChannel));\n return true;\n }\n }\n registerProcessor('pcm-recorder-processor', PCMRecorderProcessor);\n "],{type:"application/javascript"}),n=URL.createObjectURL(r);await t.audioWorklet.addModule(n),URL.revokeObjectURL(n);const o=await navigator.mediaDevices.getUserMedia({audio:{channelCount:1,echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}}),a=t.createMediaStreamSource(o),i=new AudioWorkletNode(t,"pcm-recorder-processor");return i.port.onmessage=t=>{const r=function(e){const t=new Int16Array(e.length);for(let r=0;r<e.length;r+=1)t[r]=32767*Math.max(-1,Math.min(1,e[r]));return t.buffer}(t.data);e(r)},a.connect(i),[i,t,o]}const kd={connectionError:"Sorry, I'm having trouble connecting right now. Please try again.",micDenied:"We couldn't access your microphone. Please allow access and try again.",micNotFound:"No microphone found. Please connect one and try again.",voiceUnavailable:"Voice isn't available right now. Please try again.",categoryTopicsHeading:"Please ask your **{category}** question below.",quickQuestionsHeadingLabel:"Or ask a quick question:",chooseTopicLabel:"Choose a topic to get started:",typeYourMessage:"Type your message...",agentIsLoading:"Agent is loading...",conversationResolved:"Conversation resolved",howWasYourExperience:"How was your experience?",feedbackPrompt:"Please rate our support to help us improve.",feedbackPlaceholder:"Tell us more about your experience...",submitFeedback:"Submit Feedback",submitting:"Submitting...",selectRatingFirst:"Please select a rating first",pleaseSubmitRatingFirst:"Please submit your rating first.",completeOnboardingToEnableVoice:"Complete the onboarding to enable voice",sendMessageToCompleteOnboarding:"Send a message to complete onboarding and enable voice.",resolve:"Resolve",scrollLeft:"Scroll left",scrollRight:"Scroll right",sendMessage:"Send message",stopGenerating:"Stop generating",agentJoinedConversation:"{name} has joined the conversation",chatHere:"Chat here",chooseChannel:"Choose how to chat",sessionExpiringSoon:"Your session will expire soon due to inactivity.",startVoiceInput:"Start voice input",stopVoiceInput:"Stop voice input",voiceSessionLive:"Voice session live - speak or type to converse.",connectingVoice:"Connecting to voice session...",poweredBy:"Powered by",poweredByBefore:"Powered by",poweredByAfter:"",menu:"Menu",close:"Close",openChat:"Open chat",closeChat:"Close chat",lightMode:"Light Mode",nightMode:"Night Mode",refreshChat:"Refresh Chat",copyChat:"Copy Chat",startChat:"Start Chat",startingVoiceSession:"Starting voice session...",allowMicAccess:"Allow microphone access",emailRequired:"Please enter your email address",nameRequired:"Please enter your name",phoneRequired:"Please enter your phone number",fieldRequiredSuffix:"is required",emailInvalid:"Please enter a valid email address",nameInvalid:"Please enter a valid name",phoneInvalid:"Please enter a valid phone number",uploadFile:"Upload file",suggestedQuestions:"Suggested questions",agentIsTyping:"Agent is typing",rate:"Rate",rateExperience:"Rate your experience",thumbsUp:"Thumbs up",thumbsDown:"Thumbs down",submittingFeedback:"Submitting feedback...",cancel:"Cancel",submit:"Submit",messageNotDelivered:"Not delivered",retrySend:"Retry"},xd={en:kd,ar:{agentJoinedConversation:"انضم {name} إلى المحادثة",chatHere:"الدردشة هنا",chooseChannel:"اختر طريقة الدردشة",connectionError:"عذرًا، أواجه مشكلة في الاتصال حاليًا. يرجى المحاولة مرة أخرى.",micDenied:"لم نتمكن من الوصول إلى الميكروفون. يرجى السماح بالوصول والمحاولة مرة أخرى.",micNotFound:"لم يتم العثور على ميكروفون. يرجى توصيل ميكروفون والمحاولة مرة أخرى.",voiceUnavailable:"الميزة الصوتية غير متوفرة حاليًا. يرجى المحاولة مرة أخرى.",chooseTopicLabel:"اختر موضوعًا للبدء:",categoryTopicsHeading:"يرجى طرح سؤالك حول **{category}** أدناه.",quickQuestionsHeadingLabel:"أو اطرح سؤالًا سريعًا:",typeYourMessage:"اكتب رسالتك هنا...",agentIsLoading:"جارٍ تحميل الوكيل...",conversationResolved:"تم إنهاء المحادثة",howWasYourExperience:"كيف كانت تجربتك؟",feedbackPrompt:"يرجى تقييم خدمتنا لمساعدتنا على التحسن.",feedbackPlaceholder:"أخبرنا المزيد عن تجربتك...",submitFeedback:"إرسال التقييم",submitting:"جارٍ الإرسال...",selectRatingFirst:"يرجى تحديد التقييم أولاً",pleaseSubmitRatingFirst:"يرجى إرسال تقييمك أولاً.",completeOnboardingToEnableVoice:"أكمل التسجيل لتفعيل الصوت",sendMessageToCompleteOnboarding:"أرسل رسالة لإكمال التسجيل وتفعيل الصوت.",resolve:"إنهاء",scrollLeft:"تمرير لليسار",scrollRight:"تمرير لليمين",sendMessage:"إرسال رسالة",voiceSessionLive:"الجلسة الصوتية نشطة - تحدث أو اكتب للتواصل.",connectingVoice:"جارٍ الاتصال بالجلسة الصوتية...",poweredBy:"مدعوم من",menu:"القائمة",close:"إغلاق",openChat:"فتح المحادثة",closeChat:"إغلاق المحادثة",lightMode:"الوضع الفاتح",nightMode:"الوضع الداكن",refreshChat:"تحديث المحادثة",copyChat:"نسخ المحادثة",startChat:"بدء المحادثة",startingVoiceSession:"جارٍ بدء الجلسة الصوتية...",allowMicAccess:"السماح بالوصول إلى الميكروفون",uploadFile:"رفع ملف",suggestedQuestions:"أسئلة مقترحة",agentIsTyping:"الوكيل يكتب",rate:"تقييم",rateExperience:"قيّم تجربتك",thumbsUp:"إعجاب",thumbsDown:"عدم إعجاب",submittingFeedback:"جارٍ إرسال التقييم...",cancel:"إلغاء",submit:"إرسال",messageNotDelivered:"لم يتم الإرسال",retrySend:"إعادة المحاولة"},es:{connectionError:"Lo sentimos, estoy teniendo problemas de conexión en este momento. Inténtalo de nuevo.",micDenied:"No pudimos acceder a tu micrófono. Permite el acceso e inténtalo de nuevo.",micNotFound:"No se encontró ningún micrófono. Conecta uno e inténtalo de nuevo.",voiceUnavailable:"La voz no está disponible en este momento. Inténtalo de nuevo.",chooseTopicLabel:"Elige un tema para empezar:",categoryTopicsHeading:"Por favor, haz tu pregunta sobre **{category}** a continuación.",quickQuestionsHeadingLabel:"O haz una pregunta rápida:",typeYourMessage:"Escribe tu mensaje...",agentIsLoading:"El agente está cargando...",conversationResolved:"Conversación resuelta",howWasYourExperience:"¿Cómo fue tu experiencia?",feedbackPrompt:"Califica nuestro soporte para ayudarnos a mejorar.",feedbackPlaceholder:"Cuéntanos más sobre tu experiencia...",submitFeedback:"Enviar comentarios",submitting:"Enviando...",selectRatingFirst:"Primero selecciona una calificación",pleaseSubmitRatingFirst:"Por favor, envía tu calificación primero.",completeOnboardingToEnableVoice:"Completa la configuración para habilitar la voz",sendMessageToCompleteOnboarding:"Envía un mensaje para completar la configuración y habilitar la voz.",resolve:"Resolver",scrollLeft:"Desplazar a la izquierda",scrollRight:"Desplazar a la derecha",sendMessage:"Enviar mensaje",voiceSessionLive:"Sesión de voz activa - habla o escribe para conversar.",connectingVoice:"Conectando a la sesión de voz...",poweredBy:"Desarrollado por",menu:"Menú",close:"Cerrar",openChat:"Abrir chat",closeChat:"Cerrar chat",lightMode:"Modo claro",nightMode:"Modo oscuro",refreshChat:"Actualizar chat",copyChat:"Copiar chat",startChat:"Iniciar chat",startingVoiceSession:"Iniciando sesión de voz...",allowMicAccess:"Permitir acceso al micrófono"},be:{connectionError:"Прабачце, зараз узнікаюць праблемы з падключэннем. Паспрабуйце яшчэ раз.",micDenied:"Не ўдалося атрымаць доступ да мікрафона. Дазвольце доступ і паспрабуйце яшчэ раз.",micNotFound:"Мікрафон не знойдзены. Падключыце яго і паспрабуйце яшчэ раз.",voiceUnavailable:"Галасавая функцыя зараз недаступная. Паспрабуйце яшчэ раз.",chooseTopicLabel:"Выберыце тэму, каб пачаць:",categoryTopicsHeading:"Калі ласка, задайце сваё пытанне пра **{category}** ніжэй.",quickQuestionsHeadingLabel:"Або задайце хуткае пытанне:",typeYourMessage:"Увядзіце паведамленне...",agentIsLoading:"Агент загружаецца...",conversationResolved:"Размова завершана",howWasYourExperience:"Як прайшоў ваш досвед?",feedbackPrompt:"Калі ласка, ацаніце нашу падтрымку, каб дапамагчы нам стаць лепш.",feedbackPlaceholder:"Раскажыце нам больш пра свой досвед...",submitFeedback:"Адправіць водгук",submitting:"Адпраўка...",selectRatingFirst:"Спачатку абярыце ацэнку",pleaseSubmitRatingFirst:"Калі ласка, спачатку адпраўце сваю ацэнку.",completeOnboardingToEnableVoice:"Завяршыце ўводны этап, каб уключыць голас",sendMessageToCompleteOnboarding:"Адпраўце паведамленне, каб завяршыць уводны этап і ўключыць голас.",resolve:"Завяршыць",scrollLeft:"Пракруціць улева",scrollRight:"Пракруціць управа",sendMessage:"Адправіць паведамленне",voiceSessionLive:"Галасавая сесія актыўная - гаварыце або пішыце.",connectingVoice:"Злучэнне з галасавой сесіяй...",poweredBy:"Працуе на",menu:"Меню",close:"Закрыць",openChat:"Адкрыць чат",closeChat:"Закрыць чат",lightMode:"Светлы рэжым",nightMode:"Цёмны рэжым",refreshChat:"Абнавіць чат",copyChat:"Капіраваць чат",startChat:"Пачаць чат",startingVoiceSession:"Запуск галасавой сесіі...",allowMicAccess:"Дазволіць доступ да мікрафона"},bs:{connectionError:"Izvinite, trenutno imam problema s povezivanjem. Pokušajte ponovo.",micDenied:"Nismo mogli pristupiti vašem mikrofonu. Dozvolite pristup i pokušajte ponovo.",micNotFound:"Mikrofon nije pronađen. Priključite ga i pokušajte ponovo.",voiceUnavailable:"Glasovna funkcija trenutno nije dostupna. Pokušajte ponovo.",chooseTopicLabel:"Odaberite temu za početak:",categoryTopicsHeading:"Molimo postavite svoje pitanje o **{category}** ispod.",quickQuestionsHeadingLabel:"Ili postavite brzo pitanje:",typeYourMessage:"Upišite vašu poruku...",agentIsLoading:"Agent se učitava...",conversationResolved:"Razgovor je završen",howWasYourExperience:"Kakvo je bilo vaše iskustvo?",feedbackPrompt:"Molimo ocijenite našu podršku kako bismo se poboljšali.",feedbackPlaceholder:"Recite nam više o vašem iskustvu...",submitFeedback:"Pošalji povratnu informaciju",submitting:"Slanje...",selectRatingFirst:"Prvo odaberite ocjenu",pleaseSubmitRatingFirst:"Molimo prvo pošaljite vašu ocjenu.",completeOnboardingToEnableVoice:"Završite registraciju da omogućite glas",sendMessageToCompleteOnboarding:"Pošaljite poruku da završite registraciju i omogućite glas.",resolve:"Završi",scrollLeft:"Pomjeri lijevo",scrollRight:"Pomjeri desno",sendMessage:"Pošalji poruku",voiceSessionLive:"Glasovna sesija je aktivna - govorite ili pišite.",connectingVoice:"Povezivanje na glasovnu sesiju...",poweredBy:"Pokreće",menu:"Meni",close:"Zatvori",openChat:"Otvori chat",closeChat:"Zatvori chat",lightMode:"Svijetli način",nightMode:"Tamni način",refreshChat:"Osvježi chat",copyChat:"Kopiraj chat",startChat:"Započni chat",startingVoiceSession:"Pokretanje glasovne sesije...",allowMicAccess:"Dozvoli pristup mikrofonu"},bg:{connectionError:"Съжалявам, в момента имам проблеми с връзката. Опитайте отново.",micDenied:"Не успяхме да получим достъп до микрофона ви. Разрешете достъпа и опитайте отново.",micNotFound:"Не е намерен микрофон. Свържете микрофон и опитайте отново.",voiceUnavailable:"Гласовата функция не е достъпна в момента. Опитайте отново.",chooseTopicLabel:"Изберете тема, за да започнете:",categoryTopicsHeading:"Моля, задайте въпроса си за **{category}** по-долу.",quickQuestionsHeadingLabel:"Или задайте бърз въпрос:",typeYourMessage:"Въведете съобщението си...",agentIsLoading:"Агентът се зарежда...",conversationResolved:"Разговорът е приключен",howWasYourExperience:"Как беше вашето изживяване?",feedbackPrompt:"Моля, оценете нашата поддръжка, за да ни помогнете да се подобрим.",feedbackPlaceholder:"Разкажете ни повече за вашето изживяване...",submitFeedback:"Изпрати отзив",submitting:"Изпращане...",selectRatingFirst:"Първо изберете оценка",pleaseSubmitRatingFirst:"Моля, първо изпратете оценката си.",completeOnboardingToEnableVoice:"Завършете регистрацията, за да активирате гласа",sendMessageToCompleteOnboarding:"Изпратете съобщение, за да завършите регистрацията и активирате гласа.",resolve:"Приключи",scrollLeft:"Превърти наляво",scrollRight:"Превърти надясно",sendMessage:"Изпрати съобщение",voiceSessionLive:"Гласовата сесия е активна - говорете или пишете.",connectingVoice:"Свързване с гласова сесия...",poweredBy:"Задвижвано от",menu:"Меню",close:"Затвори",openChat:"Отвори чат",closeChat:"Затвори чат",lightMode:"Светъл режим",nightMode:"Тъмен режим",refreshChat:"Опресни чата",copyChat:"Копирай чата",startChat:"Започни чат",startingVoiceSession:"Стартиране на гласова сесия...",allowMicAccess:"Позволете достъп до микрофона"},my:{connectionError:"ဝမ်းနည်းပါသည်၊ ယခု ချိတ်ဆက်ရာတွင် အခက်အခဲရှိနေပါသည်။ ထပ်မံကြိုးစားပါ။",micDenied:"သင့်မိုက်ခရိုဖုန်းကို အသုံးပြုခွင့် မရနိုင်ပါ။ ခွင့်ပြုပြီး ထပ်မံကြိုးစားပါ။",micNotFound:"မိုက်ခရိုဖုန်း မတွေ့ပါ။ ချိတ်ဆက်ပြီး ထပ်မံကြိုးစားပါ။",voiceUnavailable:"အသံလုပ်ဆောင်ချက် ယခုအချိန် မရနိုင်ပါ။ ထပ်မံကြိုးစားပါ။",chooseTopicLabel:"စတင်ရန် ခေါင်းစဉ်တစ်ခု ရွေးချယ်ပါ:",categoryTopicsHeading:"ကျေးဇူးပြု၍ သင်၏ **{category}** မေးခွန်းကို အောက်တွင် မေးပါ။",quickQuestionsHeadingLabel:"သို့မဟုတ် မြန်ဆန်သော မေးခွန်းတစ်ခု မေးပါ:",typeYourMessage:"သင့်မက်ဆေ့ချ်ကို ရိုက်ထည့်ပါ...",agentIsLoading:"အေးဂျင့်ကို ဖွင့်နေသည်...",conversationResolved:"စကားဝိုင်း ပြီးစီးပြီ",howWasYourExperience:"သင့်အတွေ့အကြုံ မည်သို့ရှိခဲ့သနည်း?",feedbackPrompt:"ကျွန်ုပ်တို့၏ ဝန်ဆောင်မှုကို အဆင့်သတ်မှတ်ပေးပါ။",feedbackPlaceholder:"သင့်အတွေ့အကြုံအကြောင်း ပိုမိုပြောပြပါ...",submitFeedback:"တုံ့ပြန်ချက် ပေးပို့ရန်",submitting:"ပေးပို့နေသည်...",selectRatingFirst:"အရင်ဆုံး အဆင့်ရွေးပါ",pleaseSubmitRatingFirst:"ကျေးဇူးပြု၍ အဆင့်ကို အရင်ဆုံးပို့ပါ။",completeOnboardingToEnableVoice:"အသံကို ဖွင့်ရန် မိတ်ဆက်ခြင်းကို ပြီးဆုံးပါ",sendMessageToCompleteOnboarding:"မိတ်ဆက်ခြင်းကို ပြီးဆုံးပြီး အသံဖွင့်ရန် မက်ဆေ့ချ်ပို့ပါ။",resolve:"ပြီးဆုံး",scrollLeft:"ဘယ်ဘက်သို့ ရွှေ့ပါ",scrollRight:"ညာဘက်သို့ ရွှေ့ပါ",sendMessage:"မက်ဆေ့ချ်ပို့ရန်",voiceSessionLive:"အသံစီရင်ချက် တက်ကြွနေသည် - ပြောပါ သို့မဟုတ် ရိုက်ပါ။",connectingVoice:"အသံစီရင်ချက်သို့ ချိတ်ဆက်နေသည်...",poweredBy:"လုပ်ဆောင်ပေးသူ",menu:"မီနူး",close:"ပိတ်",openChat:"ချတ်ဖွင့်",closeChat:"ချတ်ပိတ်",lightMode:"အလင်းမုဒ်",nightMode:"အမှောင်မုဒ်",refreshChat:"ချတ်ပြန်လည်ရယူ",copyChat:"ချတ်ကူးယူ",startChat:"ချတ်စတင်",startingVoiceSession:"အသံစီရင်ချက် စတင်နေသည်...",allowMicAccess:"မိုက်ခရိုဖုန်း ဝင်ရောက်ခွင့်ပြုပါ"},ca:{connectionError:"Ho sentim, ara mateix tinc problemes de connexió. Torna-ho a provar.",micDenied:"No hem pogut accedir al teu micròfon. Permet l'accés i torna-ho a provar.",micNotFound:"No s'ha trobat cap micròfon. Connecta'n un i torna-ho a provar.",voiceUnavailable:"La veu no està disponible ara mateix. Torna-ho a provar.",chooseTopicLabel:"Tria un tema per començar:",categoryTopicsHeading:"Si us plau, fes la teva pregunta sobre **{category}** a continuació.",quickQuestionsHeadingLabel:"O fes una pregunta ràpida:",typeYourMessage:"Escriu el teu missatge...",agentIsLoading:"L'agent està carregant...",conversationResolved:"Conversa resolta",howWasYourExperience:"Com ha estat la teva experiència?",feedbackPrompt:"Si us plau, valora el nostre suport per ajudar-nos a millorar.",feedbackPlaceholder:"Explica'ns més sobre la teva experiència...",submitFeedback:"Enviar comentaris",submitting:"Enviant...",selectRatingFirst:"Primer selecciona una valoració",pleaseSubmitRatingFirst:"Si us plau, envia primer la teva valoració.",completeOnboardingToEnableVoice:"Completa la configuració per activar la veu",sendMessageToCompleteOnboarding:"Envia un missatge per completar la configuració i activar la veu.",resolve:"Resoldre",scrollLeft:"Desplaçar a l'esquerra",scrollRight:"Desplaçar a la dreta",sendMessage:"Enviar missatge",voiceSessionLive:"Sessió de veu activa - parla o escriu per conversar.",connectingVoice:"Connectant a la sessió de veu...",poweredBy:"Impulsat per",menu:"Menú",close:"Tancar",openChat:"Obrir xat",closeChat:"Tancar xat",lightMode:"Mode clar",nightMode:"Mode fosc",refreshChat:"Actualitzar xat",copyChat:"Copiar xat",startChat:"Iniciar xat",startingVoiceSession:"Iniciant sessió de veu...",allowMicAccess:"Permetre accés al micròfon"},zh:{connectionError:"抱歉,我现在连接遇到问题。请重试。",micDenied:"无法访问您的麦克风。请允许访问后重试。",micNotFound:"未检测到麦克风。请连接麦克风后重试。",voiceUnavailable:"语音功能当前不可用。请重试。",chooseTopicLabel:"选择一个主题开始:",categoryTopicsHeading:"请在下方提出您关于 **{category}** 的问题。",quickQuestionsHeadingLabel:"或者提一个快速问题:",typeYourMessage:"输入您的消息...",agentIsLoading:"客服正在加载...",conversationResolved:"对话已结束",howWasYourExperience:"您的体验如何?",feedbackPrompt:"请为我们的支持评分,帮助我们改进。",feedbackPlaceholder:"告诉我们更多关于您的体验...",submitFeedback:"提交反馈",submitting:"提交中...",selectRatingFirst:"请先选择评分",pleaseSubmitRatingFirst:"请先提交您的评分。",completeOnboardingToEnableVoice:"完成引导以启用语音",sendMessageToCompleteOnboarding:"发送消息完成引导并启用语音。",resolve:"结束",scrollLeft:"向左滚动",scrollRight:"向右滚动",sendMessage:"发送消息",voiceSessionLive:"语音会话进行中 - 请说话或输入。",connectingVoice:"正在连接语音会话...",poweredBy:"技术支持",menu:"菜单",close:"关闭",openChat:"打开聊天",closeChat:"关闭聊天",lightMode:"浅色模式",nightMode:"深色模式",refreshChat:"刷新聊天",copyChat:"复制聊天",startChat:"开始聊天",startingVoiceSession:"正在启动语音会话...",allowMicAccess:"允许访问麦克风"},hr:{connectionError:"Nažalost, trenutno imam problema s povezivanjem. Pokušajte ponovno.",micDenied:"Nismo mogli pristupiti vašem mikrofonu. Dopustite pristup i pokušajte ponovno.",micNotFound:"Mikrofon nije pronađen. Priključite ga i pokušajte ponovno.",voiceUnavailable:"Glasovna funkcija trenutačno nije dostupna. Pokušajte ponovno.",chooseTopicLabel:"Odaberite temu za početak:",categoryTopicsHeading:"Molimo postavite svoje pitanje o **{category}** u nastavku.",quickQuestionsHeadingLabel:"Ili postavite brzo pitanje:",typeYourMessage:"Upišite svoju poruku...",agentIsLoading:"Agent se učitava...",conversationResolved:"Razgovor je završen",howWasYourExperience:"Kakvo je bilo vaše iskustvo?",feedbackPrompt:"Molimo ocijenite našu podršku kako bismo se poboljšali.",feedbackPlaceholder:"Recite nam više o svom iskustvu...",submitFeedback:"Pošalji povratnu informaciju",submitting:"Slanje...",selectRatingFirst:"Prvo odaberite ocjenu",pleaseSubmitRatingFirst:"Molimo prvo pošaljite ocjenu.",completeOnboardingToEnableVoice:"Dovršite uvod za omogućavanje glasa",sendMessageToCompleteOnboarding:"Pošaljite poruku da dovršite uvod i omogućite glas.",resolve:"Završi",scrollLeft:"Pomakni lijevo",scrollRight:"Pomakni desno",sendMessage:"Pošalji poruku",voiceSessionLive:"Glasovna sesija je aktivna - govorite ili pišite.",connectingVoice:"Povezivanje na glasovnu sesiju...",poweredBy:"Pokreće",menu:"Izbornik",close:"Zatvori",openChat:"Otvori chat",closeChat:"Zatvori chat",lightMode:"Svijetli način",nightMode:"Tamni način",refreshChat:"Osvježi chat",copyChat:"Kopiraj chat",startChat:"Pokreni chat",startingVoiceSession:"Pokretanje glasovne sesije...",allowMicAccess:"Dopustite pristup mikrofonu"},cs:{connectionError:"Omlouváme se, momentálně mám problémy s připojením. Zkuste to prosím znovu.",micDenied:"Nepodařilo se získat přístup k mikrofonu. Povolte přístup a zkuste to znovu.",micNotFound:"Mikrofon nebyl nalezen. Připojte jej a zkuste to znovu.",voiceUnavailable:"Hlasová funkce není momentálně dostupná. Zkuste to znovu.",chooseTopicLabel:"Vyberte téma a začněte:",categoryTopicsHeading:"Prosím, položte svou otázku ohledně **{category}** níže.",quickQuestionsHeadingLabel:"Nebo položte rychlou otázku:",typeYourMessage:"Napište zprávu...",agentIsLoading:"Agent se načítá...",conversationResolved:"Konverzace ukončena",howWasYourExperience:"Jaká byla vaše zkušenost?",feedbackPrompt:"Ohodnoťte prosím naši podporu, abychom se mohli zlepšit.",feedbackPlaceholder:"Řekněte nám více o své zkušenosti...",submitFeedback:"Odeslat zpětnou vazbu",submitting:"Odesílání...",selectRatingFirst:"Nejprve vyberte hodnocení",pleaseSubmitRatingFirst:"Nejprve prosím odešlete své hodnocení.",completeOnboardingToEnableVoice:"Dokončete úvod pro povolení hlasu",sendMessageToCompleteOnboarding:"Odešlete zprávu pro dokončení úvodu a povolení hlasu.",resolve:"Dokončit",scrollLeft:"Posunout doleva",scrollRight:"Posunout doprava",sendMessage:"Odeslat zprávu",voiceSessionLive:"Hlasová relace je aktivní - mluvte nebo pište.",connectingVoice:"Připojování k hlasové relaci...",poweredBy:"Používá",menu:"Nabídka",close:"Zavřít",openChat:"Otevřít chat",closeChat:"Zavřít chat",lightMode:"Světlý režim",nightMode:"Tmavý režim",refreshChat:"Obnovit chat",copyChat:"Kopírovat chat",startChat:"Začít chat",startingVoiceSession:"Spouštění hlasové relace...",allowMicAccess:"Povolit přístup k mikrofonu"},da:{connectionError:"Beklager, jeg har problemer med at oprette forbindelse lige nu. Prøv igen.",micDenied:"Vi kunne ikke få adgang til din mikrofon. Tillad adgang og prøv igen.",micNotFound:"Der blev ikke fundet nogen mikrofon. Tilslut en og prøv igen.",voiceUnavailable:"Stemme er ikke tilgængelig lige nu. Prøv igen.",chooseTopicLabel:"Vælg et emne for at komme i gang:",categoryTopicsHeading:"Stil venligst dit spørgsmål om **{category}** nedenfor.",quickQuestionsHeadingLabel:"Eller stil et hurtigt spørgsmål:",typeYourMessage:"Skriv din besked...",agentIsLoading:"Agenten indlæses...",conversationResolved:"Samtale afsluttet",howWasYourExperience:"Hvordan var din oplevelse?",feedbackPrompt:"Bedøm venligst vores support for at hjælpe os med at blive bedre.",feedbackPlaceholder:"Fortæl os mere om din oplevelse...",submitFeedback:"Indsend feedback",submitting:"Sender...",selectRatingFirst:"Vælg først en vurdering",pleaseSubmitRatingFirst:"Indsend venligst din vurdering først.",completeOnboardingToEnableVoice:"Fuldfør onboarding for at aktivere stemme",sendMessageToCompleteOnboarding:"Send en besked for at fuldføre onboarding og aktivere stemme.",resolve:"Afslut",scrollLeft:"Rul til venstre",scrollRight:"Rul til højre",sendMessage:"Send besked",voiceSessionLive:"Stemmesession aktiv - tal eller skriv for at samtale.",connectingVoice:"Forbinder til stemmesession...",poweredBy:"Drevet af",menu:"Menu",close:"Luk",openChat:"Åbn chat",closeChat:"Luk chat",lightMode:"Lys tilstand",nightMode:"Mørk tilstand",refreshChat:"Opdater chat",copyChat:"Kopier chat",startChat:"Start chat",startingVoiceSession:"Starter stemmesession...",allowMicAccess:"Tillad mikrofonadgang"},nl:{connectionError:"Sorry, ik heb momenteel verbindingsproblemen. Probeer het opnieuw.",micDenied:"We konden geen toegang krijgen tot je microfoon. Geef toegang en probeer het opnieuw.",micNotFound:"Geen microfoon gevonden. Sluit een microfoon aan en probeer het opnieuw.",voiceUnavailable:"Spraak is momenteel niet beschikbaar. Probeer het opnieuw.",chooseTopicLabel:"Kies een onderwerp om te beginnen:",categoryTopicsHeading:"Stel hieronder uw vraag over **{category}**.",quickQuestionsHeadingLabel:"Of stel een snelle vraag:",typeYourMessage:"Typ je bericht...",agentIsLoading:"Agent wordt geladen...",conversationResolved:"Gesprek beëindigd",howWasYourExperience:"Hoe was je ervaring?",feedbackPrompt:"Beoordeel onze service om ons te helpen verbeteren.",feedbackPlaceholder:"Vertel ons meer over je ervaring...",submitFeedback:"Feedback versturen",submitting:"Versturen...",selectRatingFirst:"Selecteer eerst een beoordeling",pleaseSubmitRatingFirst:"Dien eerst je beoordeling in.",completeOnboardingToEnableVoice:"Voltooi de onboarding om spraak in te schakelen",sendMessageToCompleteOnboarding:"Verstuur een bericht om de onboarding te voltooien en spraak in te schakelen.",resolve:"Afronden",scrollLeft:"Naar links scrollen",scrollRight:"Naar rechts scrollen",sendMessage:"Bericht versturen",voiceSessionLive:"Spraaksessie actief - spreek of typ om te converseren.",connectingVoice:"Verbinden met spraaksessie...",poweredBy:"Mogelijk gemaakt door",menu:"Menu",close:"Sluiten",openChat:"Chat openen",closeChat:"Chat sluiten",lightMode:"Lichte modus",nightMode:"Donkere modus",refreshChat:"Chat vernieuwen",copyChat:"Chat kopiëren",startChat:"Chat starten",startingVoiceSession:"Spraaksessie starten...",allowMicAccess:"Toegang tot microfoon toestaan"},et:{connectionError:"Kahjuks on mul praegu ühendusprobleeme. Palun proovige uuesti.",micDenied:"Mikrofonile ei pääsenud ligi. Lubage juurdepääs ja proovige uuesti.",micNotFound:"Mikrofoni ei leitud. Ühendage mikrofon ja proovige uuesti.",voiceUnavailable:"Hääl ei ole praegu saadaval. Palun proovige uuesti.",chooseTopicLabel:"Vali alustamiseks teema:",categoryTopicsHeading:"Palun esita oma **{category}** küsimus allpool.",quickQuestionsHeadingLabel:"Või esita kiire küsimus:",typeYourMessage:"Sisesta oma sõnum...",agentIsLoading:"Agent laeb...",conversationResolved:"Vestlus lõpetatud",howWasYourExperience:"Kuidas oli teie kogemus?",feedbackPrompt:"Palun hinnake meie tuge, et aidata meil paremaks saada.",feedbackPlaceholder:"Rääkige meile oma kogemusest rohkem...",submitFeedback:"Saada tagasiside",submitting:"Saatmine...",selectRatingFirst:"Vali esmalt hinnang",pleaseSubmitRatingFirst:"Palun esita esmalt oma hinnang.",completeOnboardingToEnableVoice:"Häälefunktsiooni lubamiseks lõpeta sissejuhatus",sendMessageToCompleteOnboarding:"Saada sõnum, et lõpetada sissejuhatus ja lubada hääl.",resolve:"Lõpeta",scrollLeft:"Keri vasakule",scrollRight:"Keri paremale",sendMessage:"Saada sõnum",voiceSessionLive:"Häälseanss aktiivne - rääkige või kirjutage.",connectingVoice:"Ühendamine häälseansiga...",poweredBy:"Võimaldab",menu:"Menüü",close:"Sulge",openChat:"Ava vestlus",closeChat:"Sulge vestlus",lightMode:"Hele režiim",nightMode:"Tume režiim",refreshChat:"Värskenda vestlust",copyChat:"Kopeeri vestlus",startChat:"Alusta vestlust",startingVoiceSession:"Häälseansi käivitamine...",allowMicAccess:"Luba mikrofoni juurdepääs"},fi:{connectionError:"Pahoittelut, minulla on nyt yhteysongelmia. Yritä uudelleen.",micDenied:"Mikrofoniin ei saatu yhteyttä. Salli käyttöoikeus ja yritä uudelleen.",micNotFound:"Mikrofonia ei löytynyt. Liitä mikrofoni ja yritä uudelleen.",voiceUnavailable:"Ääni ei ole juuri nyt käytettävissä. Yritä uudelleen.",chooseTopicLabel:"Aloita valitsemalla aihe:",categoryTopicsHeading:"Esitä **{category}**-kysymyksesi alla.",quickQuestionsHeadingLabel:"Tai esitä nopea kysymys:",typeYourMessage:"Kirjoita viestisi...",agentIsLoading:"Agenttia ladataan...",conversationResolved:"Keskustelu päättynyt",howWasYourExperience:"Millainen kokemuksesi oli?",feedbackPrompt:"Arvioi tukipalveluamme auttaaksesi meitä kehittymään.",feedbackPlaceholder:"Kerro lisää kokemuksestasi...",submitFeedback:"Lähetä palaute",submitting:"Lähetetään...",selectRatingFirst:"Valitse ensin arvio",pleaseSubmitRatingFirst:"Lähetä arviosi ensin.",completeOnboardingToEnableVoice:"Suorita perehdytys ottaaksesi äänen käyttöön",sendMessageToCompleteOnboarding:"Lähetä viesti suorittaaksesi perehdytyksen ja ottaaksesi äänen käyttöön.",resolve:"Lopeta",scrollLeft:"Vieritä vasemmalle",scrollRight:"Vieritä oikealle",sendMessage:"Lähetä viesti",voiceSessionLive:"Ääni-istunto aktiivinen - puhu tai kirjoita.",connectingVoice:"Yhdistetään ääni-istuntoon...",poweredBy:"Toimittaa",menu:"Valikko",close:"Sulje",openChat:"Avaa chat",closeChat:"Sulje chat",lightMode:"Vaalea tila",nightMode:"Tumma tila",refreshChat:"Päivitä chat",copyChat:"Kopioi chat",startChat:"Aloita chat",startingVoiceSession:"Käynnistetään ääni-istuntoa...",allowMicAccess:"Salli mikrofonin käyttö"},fr:{connectionError:"Désolé, je rencontre des problèmes de connexion en ce moment. Veuillez réessayer.",micDenied:"Nous n'avons pas pu accéder à votre microphone. Autorisez l'accès et réessayez.",micNotFound:"Aucun microphone détecté. Connectez-en un et réessayez.",voiceUnavailable:"La voix n'est pas disponible pour le moment. Veuillez réessayer.",chooseTopicLabel:"Choisissez un sujet pour commencer :",categoryTopicsHeading:"Veuillez poser votre question sur **{category}** ci-dessous.",quickQuestionsHeadingLabel:"Ou posez une question rapide :",typeYourMessage:"Tapez votre message...",agentIsLoading:"L'agent est en cours de chargement...",conversationResolved:"Conversation terminée",howWasYourExperience:"Comment s'est passée votre expérience ?",feedbackPrompt:"Veuillez évaluer notre support pour nous aider à nous améliorer.",feedbackPlaceholder:"Dites-nous en plus sur votre expérience...",submitFeedback:"Envoyer les commentaires",submitting:"Envoi en cours...",selectRatingFirst:"Sélectionnez d'abord une note",pleaseSubmitRatingFirst:"Veuillez d'abord envoyer votre note.",completeOnboardingToEnableVoice:"Terminez l'intégration pour activer la voix",sendMessageToCompleteOnboarding:"Envoyez un message pour terminer l'intégration et activer la voix.",resolve:"Terminer",scrollLeft:"Faire défiler à gauche",scrollRight:"Faire défiler à droite",sendMessage:"Envoyer un message",voiceSessionLive:"Session vocale active - parlez ou tapez pour converser.",connectingVoice:"Connexion à la session vocale...",poweredBy:"Propulsé par",menu:"Menu",close:"Fermer",openChat:"Ouvrir le chat",closeChat:"Fermer le chat",lightMode:"Mode clair",nightMode:"Mode sombre",refreshChat:"Actualiser le chat",copyChat:"Copier le chat",startChat:"Commencer le chat",startingVoiceSession:"Démarrage de la session vocale...",allowMicAccess:"Autoriser l'accès au microphone"},de:{connectionError:"Entschuldigung, ich habe gerade Verbindungsprobleme. Bitte versuchen Sie es erneut.",micDenied:"Wir konnten nicht auf Ihr Mikrofon zugreifen. Bitte erlauben Sie den Zugriff und versuchen Sie es erneut.",micNotFound:"Kein Mikrofon gefunden. Bitte schließen Sie eines an und versuchen Sie es erneut.",voiceUnavailable:"Sprache ist derzeit nicht verfügbar. Bitte versuchen Sie es erneut.",chooseTopicLabel:"Wählen Sie ein Thema, um zu beginnen:",categoryTopicsHeading:"Bitte stellen Sie Ihre Frage zu **{category}** unten.",quickQuestionsHeadingLabel:"Oder stellen Sie eine schnelle Frage:",typeYourMessage:"Geben Sie Ihre Nachricht ein...",agentIsLoading:"Agent wird geladen...",conversationResolved:"Gespräch beendet",howWasYourExperience:"Wie war Ihre Erfahrung?",feedbackPrompt:"Bitte bewerten Sie unseren Support, um uns bei der Verbesserung zu helfen.",feedbackPlaceholder:"Erzählen Sie uns mehr über Ihre Erfahrung...",submitFeedback:"Feedback senden",submitting:"Wird gesendet...",selectRatingFirst:"Wählen Sie zuerst eine Bewertung aus",pleaseSubmitRatingFirst:"Bitte senden Sie zuerst Ihre Bewertung.",completeOnboardingToEnableVoice:"Schließen Sie das Onboarding ab, um die Sprache zu aktivieren",sendMessageToCompleteOnboarding:"Senden Sie eine Nachricht, um das Onboarding abzuschließen und die Sprache zu aktivieren.",resolve:"Beenden",scrollLeft:"Nach links scrollen",scrollRight:"Nach rechts scrollen",sendMessage:"Nachricht senden",voiceSessionLive:"Sprachsitzung aktiv - sprechen oder tippen Sie.",connectingVoice:"Verbindung zur Sprachsitzung...",poweredBy:"Bereitgestellt von",menu:"Menü",close:"Schließen",openChat:"Chat öffnen",closeChat:"Chat schließen",lightMode:"Heller Modus",nightMode:"Dunkler Modus",refreshChat:"Chat aktualisieren",copyChat:"Chat kopieren",startChat:"Chat starten",startingVoiceSession:"Sprachsitzung wird gestartet...",allowMicAccess:"Mikrofonzugriff erlauben"},el:{connectionError:"Συγγνώμη, αντιμετωπίζω πρόβλημα σύνδεσης αυτή τη στιγμή. Δοκιμάστε ξανά.",micDenied:"Δεν μπορέσαμε να αποκτήσουμε πρόσβαση στο μικρόφωνό σας. Επιτρέψτε την πρόσβαση και δοκιμάστε ξανά.",micNotFound:"Δεν βρέθηκε μικρόφωνο. Συνδέστε ένα και δοκιμάστε ξανά.",voiceUnavailable:"Η φωνή δεν είναι διαθέσιμη αυτή τη στιγμή. Δοκιμάστε ξανά.",chooseTopicLabel:"Επιλέξτε ένα θέμα για να ξεκινήσετε:",categoryTopicsHeading:"Παρακαλώ κάντε την ερώτησή σας σχετικά με το **{category}** παρακάτω.",quickQuestionsHeadingLabel:"Ή κάντε μια γρήγορη ερώτηση:",typeYourMessage:"Πληκτρολογήστε το μήνυμά σας...",agentIsLoading:"Ο πράκτορας φορτώνει...",conversationResolved:"Η συζήτηση ολοκληρώθηκε",howWasYourExperience:"Πώς ήταν η εμπειρία σας;",feedbackPrompt:"Παρακαλούμε αξιολογήστε την υποστήριξή μας για να βελτιωθούμε.",feedbackPlaceholder:"Πείτε μας περισσότερα για την εμπειρία σας...",submitFeedback:"Υποβολή σχολίων",submitting:"Υποβολή...",selectRatingFirst:"Επιλέξτε πρώτα μια βαθμολογία",pleaseSubmitRatingFirst:"Υποβάλετε πρώτα τη βαθμολογία σας.",completeOnboardingToEnableVoice:"Ολοκληρώστε την εισαγωγή για ενεργοποίηση φωνής",sendMessageToCompleteOnboarding:"Στείλτε ένα μήνυμα για ολοκλήρωση της εισαγωγής και ενεργοποίηση φωνής.",resolve:"Ολοκλήρωση",scrollLeft:"Κύλιση αριστερά",scrollRight:"Κύλιση δεξιά",sendMessage:"Αποστολή μηνύματος",voiceSessionLive:"Φωνητική συνεδρία ενεργή - μιλήστε ή πληκτρολογήστε.",connectingVoice:"Σύνδεση σε φωνητική συνεδρία...",poweredBy:"Υποστηρίζεται από",menu:"Μενού",close:"Κλείσιμο",openChat:"Άνοιγμα συνομιλίας",closeChat:"Κλείσιμο συνομιλίας",lightMode:"Φωτεινή λειτουργία",nightMode:"Σκοτεινή λειτουργία",refreshChat:"Ανανέωση συνομιλίας",copyChat:"Αντιγραφή συνομιλίας",startChat:"Έναρξη συνομιλίας",startingVoiceSession:"Εκκίνηση φωνητικής συνεδρίας...",allowMicAccess:"Επιτρέψτε πρόσβαση στο μικρόφωνο"},hi:{connectionError:"क्षमा करें, मुझे अभी कनेक्ट होने में समस्या हो रही है। कृपया पुनः प्रयास करें।",micDenied:"हम आपके माइक्रोफ़ोन का उपयोग नहीं कर सके। कृपया अनुमति दें और पुनः प्रयास करें।",micNotFound:"कोई माइक्रोफ़ोन नहीं मिला। कृपया एक कनेक्ट करें और पुनः प्रयास करें।",voiceUnavailable:"वॉइस अभी उपलब्ध नहीं है। कृपया पुनः प्रयास करें।",chooseTopicLabel:"शुरू करने के लिए एक विषय चुनें:",categoryTopicsHeading:"कृपया अपना **{category}** प्रश्न नीचे पूछें।",quickQuestionsHeadingLabel:"या एक त्वरित प्रश्न पूछें:",typeYourMessage:"अपना संदेश लिखें...",agentIsLoading:"एजेंट लोड हो रहा है...",conversationResolved:"बातचीत समाप्त हुई",howWasYourExperience:"आपका अनुभव कैसा रहा?",feedbackPrompt:"हमें बेहतर बनाने में मदद के लिए कृपया हमारे समर्थन को रेट करें।",feedbackPlaceholder:"अपने अनुभव के बारे में और बताएं...",submitFeedback:"फीडबैक भेजें",submitting:"भेजा जा रहा है...",selectRatingFirst:"पहले रेटिंग चुनें",pleaseSubmitRatingFirst:"कृपया पहले अपनी रेटिंग जमा करें।",completeOnboardingToEnableVoice:"वॉयस सक्षम करने के लिए ऑनबोर्डिंग पूरी करें",sendMessageToCompleteOnboarding:"ऑनबोर्डिंग पूरी करने और वॉयस सक्षम करने के लिए संदेश भेजें।",resolve:"समाप्त करें",scrollLeft:"बाएं स्क्रॉल करें",scrollRight:"दाएं स्क्रॉल करें",sendMessage:"संदेश भेजें",voiceSessionLive:"वॉयस सत्र सक्रिय - बात करने के लिए बोलें या टाइप करें।",connectingVoice:"वॉयस सत्र से कनेक्ट हो रहा है...",poweredBy:"Powered by",poweredByBefore:"",poweredByAfter:"द्वारा संचालित",menu:"मेनू",close:"बंद करें",openChat:"चैट खोलें",closeChat:"चैट बंद करें",lightMode:"लाइट मोड",nightMode:"डार्क मोड",refreshChat:"चैट रीफ्रेश करें",copyChat:"चैट कॉपी करें",startChat:"चैट शुरू करें",startingVoiceSession:"वॉयस सत्र शुरू हो रहा है...",allowMicAccess:"माइक्रोफ़ोन एक्सेस की अनुमति दें"},mr:{connectionError:"क्षमस्व, सध्या कनेक्ट होण्यात अडचण येत आहे. कृपया पुन्हा प्रयत्न करा.",micDenied:"आम्ही तुमचा मायक्रोफोन वापरू शकलो नाही. कृपया परवानगी द्या आणि पुन्हा प्रयत्न करा.",micNotFound:"मायक्रोफोन आढळला नाही. कृपया एक जोडा आणि पुन्हा प्रयत्न करा.",voiceUnavailable:"व्हॉइस सध्या उपलब्ध नाही. कृपया पुन्हा प्रयत्न करा.",chooseTopicLabel:"सुरू करण्यासाठी एक विषय निवडा:",categoryTopicsHeading:"कृपया तुमचा **{category}** प्रश्न खाली विचारा.",quickQuestionsHeadingLabel:"किंवा एक झटपट प्रश्न विचारा:",typeYourMessage:"तुमचा संदेश टाइप करा...",agentIsLoading:"एजंट लोड होत आहे...",conversationResolved:"संभाषण समाप्त",howWasYourExperience:"तुमचा अनुभव कसा होता?",feedbackPrompt:"आम्हाला सुधारण्यास मदत करण्यासाठी कृपया आमच्या समर्थनाला रेट करा.",feedbackPlaceholder:"तुमच्या अनुभवाबद्दल आम्हाला अधिक सांगा...",submitFeedback:"फीडबॅक सबमिट करा",submitting:"सबमिट करत आहे...",selectRatingFirst:"प्रथम रेटिंग निवडा",pleaseSubmitRatingFirst:"कृपया प्रथम आपले रेटिंग सबमिट करा.",completeOnboardingToEnableVoice:"व्हॉइस सक्षम करण्यासाठी ऑनबोर्डिंग पूर्ण करा",sendMessageToCompleteOnboarding:"ऑनबोर्डिंग पूर्ण करून व्हॉइस सक्षम करण्यासाठी संदेश पाठवा.",resolve:"समाप्त",scrollLeft:"डावीकडे स्क्रोल करा",scrollRight:"उजवीकडे स्क्रोल करा",sendMessage:"संदेश पाठवा",voiceSessionLive:"व्हॉइस सत्र सक्रिय - बोला किंवा टाइप करा.",connectingVoice:"व्हॉइस सत्रास जोडत आहे...",poweredBy:"Powered by",poweredByBefore:"",poweredByAfter:"द्वारे समर्थित",menu:"मेनू",close:"बंद करा",openChat:"चॅट उघडा",closeChat:"चॅट बंद करा",lightMode:"लाइट मोड",nightMode:"डार्क मोड",refreshChat:"चॅट रीफ्रेश करा",copyChat:"चॅट कॉपी करा",startChat:"चॅट सुरू करा",startingVoiceSession:"व्हॉइस सत्र सुरू होत आहे...",allowMicAccess:"मायक्रोफोन प्रवेशास परवानगी द्या"},hu:{connectionError:"Sajnáljuk, jelenleg kapcsolódási problémám van. Kérjük, próbálja újra.",micDenied:"Nem sikerült hozzáférni a mikrofonjához. Engedélyezze a hozzáférést, és próbálja újra.",micNotFound:"Nem található mikrofon. Csatlakoztasson egyet, és próbálja újra.",voiceUnavailable:"A hang jelenleg nem elérhető. Kérjük, próbálja újra.",chooseTopicLabel:"Válassz egy témát a kezdéshez:",categoryTopicsHeading:"Kérjük, tedd fel **{category}** kérdésedet alább.",quickQuestionsHeadingLabel:"Vagy tegyél fel egy gyors kérdést:",typeYourMessage:"Írja be az üzenetét...",agentIsLoading:"Az ügynök betöltődik...",conversationResolved:"Beszélgetés befejezve",howWasYourExperience:"Milyen volt az élménye?",feedbackPrompt:"Kérjük, értékelje támogatásunkat, hogy segítsen nekünk fejlődni.",feedbackPlaceholder:"Meséljen többet az élményéről...",submitFeedback:"Visszajelzés küldése",submitting:"Küldés...",selectRatingFirst:"Először válasszon értékelést",pleaseSubmitRatingFirst:"Kérjük, először küldje el értékelését.",completeOnboardingToEnableVoice:"Fejezze be a beállítást a hang engedélyezéséhez",sendMessageToCompleteOnboarding:"Küldjön üzenetet a beállítás befejezéséhez és a hang engedélyezéséhez.",resolve:"Befejezés",scrollLeft:"Balra görgetés",scrollRight:"Jobbra görgetés",sendMessage:"Üzenet küldése",voiceSessionLive:"Hangmenet aktív - beszéljen vagy írjon.",connectingVoice:"Csatlakozás hangmenet...",poweredBy:"Működteti",menu:"Menü",close:"Bezárás",openChat:"Csevegés megnyitása",closeChat:"Csevegés bezárása",lightMode:"Világos mód",nightMode:"Sötét mód",refreshChat:"Csevegés frissítése",copyChat:"Csevegés másolása",startChat:"Csevegés indítása",startingVoiceSession:"Hangmenet indítása...",allowMicAccess:"Mikrofon hozzáférés engedélyezése"},is:{connectionError:"Því miður næ ég ekki sambandi núna. Vinsamlegast prófaðu aftur.",micDenied:"Við fengum ekki aðgang að hljóðnemanum þínum. Leyfðu aðgang og prófaðu aftur.",micNotFound:"Enginn hljóðnemi fannst. Tengdu hljóðnema og prófaðu aftur.",voiceUnavailable:"Tal er ekki í boði núna. Vinsamlegast prófaðu aftur.",chooseTopicLabel:"Veldu efni til að byrja:",categoryTopicsHeading:"Vinsamlegast spurðu spurningu þinnar um **{category}** hér að neðan.",quickQuestionsHeadingLabel:"Eða spurðu fljótlegrar spurningar:",typeYourMessage:"Sláðu inn skilaboð...",agentIsLoading:"Fulltrúi hleðst...",conversationResolved:"Samtali lokið",howWasYourExperience:"Hvernig var upplifun þín?",feedbackPrompt:"Vinsamlegast metið þjónustu okkar til að hjálpa okkur að bæta okkur.",feedbackPlaceholder:"Segðu okkur meira um upplifun þína...",submitFeedback:"Senda umsögn",submitting:"Sendir...",selectRatingFirst:"Veldu fyrst einkunn",pleaseSubmitRatingFirst:"Vinsamlegast sendu inn einkunn þína fyrst.",completeOnboardingToEnableVoice:"Ljúktu kynningu til að virkja rödd",sendMessageToCompleteOnboarding:"Sendu skilaboð til að ljúka kynningu og virkja rödd.",resolve:"Ljúka",scrollLeft:"Skruna til vinstri",scrollRight:"Skruna til hægri",sendMessage:"Senda skilaboð",voiceSessionLive:"Raddsamtal virkt - talaðu eða skrifaðu.",connectingVoice:"Tengist raddsamtali...",poweredBy:"Knúið af",menu:"Valmynd",close:"Loka",openChat:"Opna spjall",closeChat:"Loka spjalli",lightMode:"Ljóst þema",nightMode:"Dökkt þema",refreshChat:"Endurnýja spjall",copyChat:"Afrita spjall",startChat:"Byrja spjall",startingVoiceSession:"Byrjar raddsamtal...",allowMicAccess:"Leyfa aðgang að hljóðnema"},id:{connectionError:"Maaf, saya sedang mengalami masalah koneksi. Silakan coba lagi.",micDenied:"Kami tidak dapat mengakses mikrofon Anda. Izinkan akses dan coba lagi.",micNotFound:"Mikrofon tidak ditemukan. Hubungkan mikrofon dan coba lagi.",voiceUnavailable:"Fitur suara tidak tersedia saat ini. Silakan coba lagi.",chooseTopicLabel:"Pilih topik untuk memulai:",categoryTopicsHeading:"Silakan ajukan pertanyaan **{category}** Anda di bawah.",quickQuestionsHeadingLabel:"Atau ajukan pertanyaan cepat:",typeYourMessage:"Ketik pesan Anda...",agentIsLoading:"Agen sedang dimuat...",conversationResolved:"Percakapan selesai",howWasYourExperience:"Bagaimana pengalaman Anda?",feedbackPrompt:"Silakan nilai dukungan kami untuk membantu kami berkembang.",feedbackPlaceholder:"Ceritakan lebih banyak tentang pengalaman Anda...",submitFeedback:"Kirim umpan balik",submitting:"Mengirim...",selectRatingFirst:"Pilih peringkat terlebih dahulu",pleaseSubmitRatingFirst:"Silakan kirim peringkat Anda terlebih dahulu.",completeOnboardingToEnableVoice:"Selesaikan pengenalan untuk mengaktifkan suara",sendMessageToCompleteOnboarding:"Kirim pesan untuk menyelesaikan pengenalan dan mengaktifkan suara.",resolve:"Selesai",scrollLeft:"Gulir kiri",scrollRight:"Gulir kanan",sendMessage:"Kirim pesan",voiceSessionLive:"Sesi suara aktif - bicara atau ketik untuk berbincang.",connectingVoice:"Menghubungkan ke sesi suara...",poweredBy:"Didukung oleh",menu:"Menu",close:"Tutup",openChat:"Buka obrolan",closeChat:"Tutup obrolan",lightMode:"Mode terang",nightMode:"Mode gelap",refreshChat:"Segarkan obrolan",copyChat:"Salin obrolan",startChat:"Mulai obrolan",startingVoiceSession:"Memulai sesi suara...",allowMicAccess:"Izinkan akses mikrofon"},it:{connectionError:"Spiacenti, al momento ho problemi di connessione. Riprova.",micDenied:"Non siamo riusciti ad accedere al tuo microfono. Consenti l'accesso e riprova.",micNotFound:"Nessun microfono rilevato. Collegane uno e riprova.",voiceUnavailable:"La voce non è disponibile al momento. Riprova.",chooseTopicLabel:"Scegli un argomento per iniziare:",categoryTopicsHeading:"Per favore, poni la tua domanda su **{category}** qui sotto.",quickQuestionsHeadingLabel:"Oppure fai una domanda rapida:",typeYourMessage:"Scrivi il tuo messaggio...",agentIsLoading:"L'agente sta caricando...",conversationResolved:"Conversazione conclusa",howWasYourExperience:"Com'è stata la tua esperienza?",feedbackPrompt:"Valuta il nostro supporto per aiutarci a migliorare.",feedbackPlaceholder:"Raccontaci di più sulla tua esperienza...",submitFeedback:"Invia feedback",submitting:"Invio in corso...",selectRatingFirst:"Seleziona prima una valutazione",pleaseSubmitRatingFirst:"Invia prima la tua valutazione.",completeOnboardingToEnableVoice:"Completa l'onboarding per abilitare la voce",sendMessageToCompleteOnboarding:"Invia un messaggio per completare l'onboarding e abilitare la voce.",resolve:"Concludi",scrollLeft:"Scorri a sinistra",scrollRight:"Scorri a destra",sendMessage:"Invia messaggio",voiceSessionLive:"Sessione vocale attiva - parla o scrivi per conversare.",connectingVoice:"Connessione alla sessione vocale...",poweredBy:"Fornito da",menu:"Menu",close:"Chiudi",openChat:"Apri chat",closeChat:"Chiudi chat",lightMode:"Modalità chiara",nightMode:"Modalità scura",refreshChat:"Aggiorna chat",copyChat:"Copia chat",startChat:"Inizia chat",startingVoiceSession:"Avvio sessione vocale...",allowMicAccess:"Consenti l'accesso al microfono"},ja:{connectionError:"申し訳ありません。現在接続に問題が発生しています。もう一度お試しください。",micDenied:"マイクにアクセスできませんでした。アクセスを許可してもう一度お試しください。",micNotFound:"マイクが見つかりません。マイクを接続してもう一度お試しください。",voiceUnavailable:"音声機能は現在利用できません。もう一度お試しください。",chooseTopicLabel:"始めるにはトピックを選択してください:",categoryTopicsHeading:"**{category}** に関するご質問を以下にお書きください。",quickQuestionsHeadingLabel:"または、簡単な質問をどうぞ:",typeYourMessage:"メッセージを入力してください...",agentIsLoading:"エージェントを読み込んでいます...",conversationResolved:"会話が終了しました",howWasYourExperience:"ご体験はいかがでしたか?",feedbackPrompt:"サポート向上のため、評価をお願いします。",feedbackPlaceholder:"体験について詳しく教えてください...",submitFeedback:"フィードバックを送信",submitting:"送信中...",selectRatingFirst:"最初に評価を選択してください",pleaseSubmitRatingFirst:"最初に評価を送信してください。",completeOnboardingToEnableVoice:"音声を有効にするにはオンボーディングを完了してください",sendMessageToCompleteOnboarding:"オンボーディングを完了して音声を有効にするにはメッセージを送信してください。",resolve:"終了",scrollLeft:"左へスクロール",scrollRight:"右へスクロール",sendMessage:"メッセージを送信",voiceSessionLive:"音声セッション中 - 話すか入力してください。",connectingVoice:"音声セッションに接続中...",poweredBy:"提供元",menu:"メニュー",close:"閉じる",openChat:"チャットを開く",closeChat:"チャットを閉じる",lightMode:"ライトモード",nightMode:"ダークモード",refreshChat:"チャットを更新",copyChat:"チャットをコピー",startChat:"チャットを開始",startingVoiceSession:"音声セッションを開始しています...",allowMicAccess:"マイクへのアクセスを許可"},ko:{connectionError:"죄송합니다. 현재 연결에 문제가 있습니다. 다시 시도해 주세요.",micDenied:"마이크에 접근할 수 없습니다. 접근을 허용한 후 다시 시도해 주세요.",micNotFound:"마이크를 찾을 수 없습니다. 마이크를 연결한 후 다시 시도해 주세요.",voiceUnavailable:"음성 기능을 현재 사용할 수 없습니다. 다시 시도해 주세요.",chooseTopicLabel:"시작하려면 주제를 선택하세요:",categoryTopicsHeading:"**{category}** 에 대한 질문을 아래에 작성해 주세요.",quickQuestionsHeadingLabel:"또는 간단한 질문을 해보세요:",typeYourMessage:"메시지를 입력하세요...",agentIsLoading:"상담원을 불러오는 중...",conversationResolved:"대화가 종료되었습니다",howWasYourExperience:"경험은 어떠셨나요?",feedbackPrompt:"개선을 위해 저희 지원 서비스를 평가해주세요.",feedbackPlaceholder:"경험에 대해 더 알려주세요...",submitFeedback:"피드백 제출",submitting:"제출 중...",selectRatingFirst:"먼저 평점을 선택해주세요",pleaseSubmitRatingFirst:"먼저 평점을 제출해주세요.",completeOnboardingToEnableVoice:"음성을 사용하려면 온보딩을 완료하세요",sendMessageToCompleteOnboarding:"온보딩을 완료하고 음성을 사용하려면 메시지를 보내세요.",resolve:"종료",scrollLeft:"왼쪽으로 스크롤",scrollRight:"오른쪽으로 스크롤",sendMessage:"메시지 보내기",voiceSessionLive:"음성 세션 활성화 - 말하거나 입력하세요.",connectingVoice:"음성 세션에 연결 중...",poweredBy:"제공",menu:"메뉴",close:"닫기",openChat:"채팅 열기",closeChat:"채팅 닫기",lightMode:"라이트 모드",nightMode:"다크 모드",refreshChat:"채팅 새로고침",copyChat:"채팅 복사",startChat:"채팅 시작",startingVoiceSession:"음성 세션 시작 중...",allowMicAccess:"마이크 액세스 허용"},lv:{connectionError:"Atvainojiet, šobrīd ir savienojuma problēmas. Lūdzu, mēģiniet vēlreiz.",micDenied:"Neizdevās piekļūt mikrofonam. Lūdzu, atļaujiet piekļuvi un mēģiniet vēlreiz.",micNotFound:"Mikrofons nav atrasts. Lūdzu, pievienojiet mikrofonu un mēģiniet vēlreiz.",voiceUnavailable:"Balss funkcija šobrīd nav pieejama. Lūdzu, mēģiniet vēlreiz.",chooseTopicLabel:"Izvēlieties tēmu, lai sāktu:",categoryTopicsHeading:"Lūdzu, uzdodiet savu jautājumu par **{category}** zemāk.",quickQuestionsHeadingLabel:"Vai uzdodiet ātru jautājumu:",typeYourMessage:"Ierakstiet savu ziņu...",agentIsLoading:"Aģents tiek ielādēts...",conversationResolved:"Saruna pabeigta",howWasYourExperience:"Kāda bija jūsu pieredze?",feedbackPrompt:"Lūdzu, novērtējiet mūsu atbalstu, lai palīdzētu mums uzlabot.",feedbackPlaceholder:"Pastāstiet mums vairāk par savu pieredzi...",submitFeedback:"Nosūtīt atsauksmes",submitting:"Sūta...",selectRatingFirst:"Vispirms izvēlieties vērtējumu",pleaseSubmitRatingFirst:"Lūdzu, vispirms nosūtiet savu vērtējumu.",completeOnboardingToEnableVoice:"Pabeidziet ievadu, lai iespējotu balsi",sendMessageToCompleteOnboarding:"Nosūtiet ziņu, lai pabeigtu ievadu un iespējotu balsi.",resolve:"Pabeigt",scrollLeft:"Ritināt pa kreisi",scrollRight:"Ritināt pa labi",sendMessage:"Nosūtīt ziņu",voiceSessionLive:"Balss sesija aktīva - runājiet vai rakstiet.",connectingVoice:"Pieslēdzas balss sesijai...",poweredBy:"Darbina",menu:"Izvēlne",close:"Aizvērt",openChat:"Atvērt tērzēšanu",closeChat:"Aizvērt tērzēšanu",lightMode:"Gaišais režīms",nightMode:"Tumšais režīms",refreshChat:"Atsvaidzināt tērzēšanu",copyChat:"Kopēt tērzēšanu",startChat:"Sākt tērzēšanu",startingVoiceSession:"Sāk balss sesiju...",allowMicAccess:"Atļaut piekļuvi mikrofonam"},lt:{connectionError:"Atsiprašome, šiuo metu kyla ryšio problemų. Bandykite dar kartą.",micDenied:"Nepavyko pasiekti jūsų mikrofono. Leiskite prieigą ir bandykite dar kartą.",micNotFound:"Mikrofonas nerastas. Prijunkite mikrofoną ir bandykite dar kartą.",voiceUnavailable:"Balso funkcija šiuo metu nepasiekiama. Bandykite dar kartą.",chooseTopicLabel:"Pasirinkite temą, kad pradėtumėte:",categoryTopicsHeading:"Prašome užduoti savo klausimą apie **{category}** žemiau.",quickQuestionsHeadingLabel:"Arba užduokite greitą klausimą:",typeYourMessage:"Įveskite pranešimą...",agentIsLoading:"Agentas kraunamas...",conversationResolved:"Pokalbis baigtas",howWasYourExperience:"Kokia buvo jūsų patirtis?",feedbackPrompt:"Įvertinkite mūsų pagalbą, kad padėtumėte mums tobulėti.",feedbackPlaceholder:"Papasakokite daugiau apie savo patirtį...",submitFeedback:"Pateikti atsiliepimą",submitting:"Siunčiama...",selectRatingFirst:"Pirmiausia pasirinkite įvertinimą",pleaseSubmitRatingFirst:"Pirmiausia pateikite įvertinimą.",completeOnboardingToEnableVoice:"Užbaikite įvadą, kad įjungtumėte balsą",sendMessageToCompleteOnboarding:"Išsiųskite pranešimą, kad užbaigtumėte įvadą ir įjungtumėte balsą.",resolve:"Baigti",scrollLeft:"Slinkti į kairę",scrollRight:"Slinkti į dešinę",sendMessage:"Siųsti pranešimą",voiceSessionLive:"Balso sesija aktyvi - kalbėkite arba rašykite.",connectingVoice:"Jungiamasi prie balso sesijos...",poweredBy:"Veikia",menu:"Meniu",close:"Uždaryti",openChat:"Atidaryti pokalbį",closeChat:"Uždaryti pokalbį",lightMode:"Šviesus režimas",nightMode:"Tamsus režimas",refreshChat:"Atnaujinti pokalbį",copyChat:"Kopijuoti pokalbį",startChat:"Pradėti pokalbį",startingVoiceSession:"Pradedama balso sesija...",allowMicAccess:"Leisti prieigą prie mikrofono"},mk:{connectionError:"Извинете, моментално имам проблеми со поврзувањето. Обидете се повторно.",micDenied:"Не можевме да пристапиме до вашиот микрофон. Дозволете пристап и обидете се повторно.",micNotFound:"Не е најден микрофон. Поврзете микрофон и обидете се повторно.",voiceUnavailable:"Гласовната функција моментално не е достапна. Обидете се повторно.",chooseTopicLabel:"Изберете тема за да започнете:",categoryTopicsHeading:"Ве молиме поставете го вашето прашање за **{category}** подолу.",quickQuestionsHeadingLabel:"Или поставете брзо прашање:",typeYourMessage:"Напишете ја вашата порака...",agentIsLoading:"Агентот се вчитува...",conversationResolved:"Разговорот е завршен",howWasYourExperience:"Какво беше вашето искуство?",feedbackPrompt:"Оценете ја нашата поддршка за да ни помогнете да се подобриме.",feedbackPlaceholder:"Кажете ни повеќе за вашето искуство...",submitFeedback:"Испрати повратна информација",submitting:"Испраќање...",selectRatingFirst:"Прво изберете оценка",pleaseSubmitRatingFirst:"Прво испратете ја вашата оценка.",completeOnboardingToEnableVoice:"Завршете го воведот за да овозможите глас",sendMessageToCompleteOnboarding:"Испратете порака за да го завршите воведот и овозможите глас.",resolve:"Заврши",scrollLeft:"Скролај лево",scrollRight:"Скролај десно",sendMessage:"Испрати порака",voiceSessionLive:"Гласовната сесија е активна - зборувајте или пишувајте.",connectingVoice:"Поврзување со гласовна сесија...",poweredBy:"Поддржано од",menu:"Мени",close:"Затвори",openChat:"Отвори разговор",closeChat:"Затвори разговор",lightMode:"Светол режим",nightMode:"Темен режим",refreshChat:"Освежи разговор",copyChat:"Копирај разговор",startChat:"Започни разговор",startingVoiceSession:"Започнува гласовна сесија...",allowMicAccess:"Дозволи пристап до микрофонот"},ms:{connectionError:"Maaf, saya menghadapi masalah sambungan sekarang. Sila cuba lagi.",micDenied:"Kami tidak dapat mengakses mikrofon anda. Sila benarkan akses dan cuba lagi.",micNotFound:"Tiada mikrofon ditemui. Sila sambungkan mikrofon dan cuba lagi.",voiceUnavailable:"Ciri suara tidak tersedia sekarang. Sila cuba lagi.",chooseTopicLabel:"Pilih topik untuk memulakan:",categoryTopicsHeading:"Sila ajukan soalan **{category}** anda di bawah.",quickQuestionsHeadingLabel:"Atau ajukan soalan ringkas:",typeYourMessage:"Taip mesej anda...",agentIsLoading:"Ejen sedang dimuatkan...",conversationResolved:"Perbualan selesai",howWasYourExperience:"Bagaimanakah pengalaman anda?",feedbackPrompt:"Sila nilaikan sokongan kami untuk membantu kami menambah baik.",feedbackPlaceholder:"Beritahu kami lebih lanjut tentang pengalaman anda...",submitFeedback:"Hantar maklum balas",submitting:"Menghantar...",selectRatingFirst:"Pilih penilaian dahulu",pleaseSubmitRatingFirst:"Sila hantar penilaian anda dahulu.",completeOnboardingToEnableVoice:"Lengkapkan pengenalan untuk mendayakan suara",sendMessageToCompleteOnboarding:"Hantar mesej untuk melengkapkan pengenalan dan mendayakan suara.",resolve:"Selesai",scrollLeft:"Tatal ke kiri",scrollRight:"Tatal ke kanan",sendMessage:"Hantar mesej",voiceSessionLive:"Sesi suara aktif - bercakap atau taip untuk berbual.",connectingVoice:"Menyambung ke sesi suara...",poweredBy:"Dikuasakan oleh",menu:"Menu",close:"Tutup",openChat:"Buka sembang",closeChat:"Tutup sembang",lightMode:"Mod terang",nightMode:"Mod gelap",refreshChat:"Muat semula sembang",copyChat:"Salin sembang",startChat:"Mula sembang",startingVoiceSession:"Memulakan sesi suara...",allowMicAccess:"Benarkan akses mikrofon"},no:{connectionError:"Beklager, jeg har problemer med tilkoblingen akkurat nå. Prøv igjen.",micDenied:"Vi fikk ikke tilgang til mikrofonen din. Gi tilgang og prøv igjen.",micNotFound:"Ingen mikrofon funnet. Koble til en mikrofon og prøv igjen.",voiceUnavailable:"Tale er ikke tilgjengelig akkurat nå. Prøv igjen.",chooseTopicLabel:"Velg et emne for å komme i gang:",categoryTopicsHeading:"Vennligst still spørsmålet ditt om **{category}** nedenfor.",quickQuestionsHeadingLabel:"Eller still et raskt spørsmål:",typeYourMessage:"Skriv meldingen din...",agentIsLoading:"Agenten laster...",conversationResolved:"Samtale avsluttet",howWasYourExperience:"Hvordan var opplevelsen din?",feedbackPrompt:"Vennligst vurder vår støtte for å hjelpe oss med å bli bedre.",feedbackPlaceholder:"Fortell oss mer om opplevelsen din...",submitFeedback:"Send tilbakemelding",submitting:"Sender...",selectRatingFirst:"Velg en vurdering først",pleaseSubmitRatingFirst:"Vennligst send inn vurderingen din først.",completeOnboardingToEnableVoice:"Fullfør introduksjonen for å aktivere tale",sendMessageToCompleteOnboarding:"Send en melding for å fullføre introduksjonen og aktivere tale.",resolve:"Avslutt",scrollLeft:"Bla til venstre",scrollRight:"Bla til høyre",sendMessage:"Send melding",voiceSessionLive:"Talesesjon aktiv - snakk eller skriv for å samtale.",connectingVoice:"Kobler til talesesjon...",poweredBy:"Drevet av",menu:"Meny",close:"Lukk",openChat:"Åpne chat",closeChat:"Lukk chat",lightMode:"Lys modus",nightMode:"Mørk modus",refreshChat:"Oppdater chat",copyChat:"Kopier chat",startChat:"Start chat",startingVoiceSession:"Starter talesesjon...",allowMicAccess:"Tillat mikrofontilgang"},fa:{connectionError:"متأسفیم، در حال حاضر در اتصال مشکل دارم. لطفاً دوباره تلاش کنید.",micDenied:"نتوانستیم به میکروفون شما دسترسی پیدا کنیم. لطفاً دسترسی را اجازه دهید و دوباره تلاش کنید.",micNotFound:"میکروفونی یافت نشد. لطفاً یک میکروفون وصل کنید و دوباره تلاش کنید.",voiceUnavailable:"قابلیت صدا در حال حاضر در دسترس نیست. لطفاً دوباره تلاش کنید.",chooseTopicLabel:"برای شروع، یک موضوع را انتخاب کنید:",categoryTopicsHeading:"لطفاً سؤال خود درباره **{category}** را در زیر مطرح کنید.",quickQuestionsHeadingLabel:"یا یک سؤال سریع بپرسید:",typeYourMessage:"پیام خود را تایپ کنید...",agentIsLoading:"در حال بارگذاری نماینده...",conversationResolved:"مکالمه به پایان رسید",howWasYourExperience:"تجربه شما چگونه بود؟",feedbackPrompt:"لطفاً برای کمک به بهبود ما، پشتیبانی ما را ارزیابی کنید.",feedbackPlaceholder:"درباره تجربه خود بیشتر به ما بگویید...",submitFeedback:"ارسال بازخورد",submitting:"در حال ارسال...",selectRatingFirst:"ابتدا یک امتیاز انتخاب کنید",pleaseSubmitRatingFirst:"لطفاً ابتدا امتیاز خود را ارسال کنید.",completeOnboardingToEnableVoice:"برای فعال‌سازی صدا، راه‌اندازی را تکمیل کنید",sendMessageToCompleteOnboarding:"برای تکمیل راه‌اندازی و فعال‌سازی صدا، پیام ارسال کنید.",resolve:"پایان",scrollLeft:"پیمایش به چپ",scrollRight:"پیمایش به راست",sendMessage:"ارسال پیام",voiceSessionLive:"جلسه صوتی فعال - صحبت کنید یا تایپ کنید.",connectingVoice:"اتصال به جلسه صوتی...",poweredBy:"قدرت گرفته از",menu:"منو",close:"بستن",openChat:"باز کردن چت",closeChat:"بستن چت",lightMode:"حالت روشن",nightMode:"حالت تاریک",refreshChat:"تازه‌سازی چت",copyChat:"کپی چت",startChat:"شروع چت",startingVoiceSession:"شروع جلسه صوتی...",allowMicAccess:"اجازه دسترسی به میکروفون"},pl:{connectionError:"Przepraszamy, mam teraz problem z połączeniem. Spróbuj ponownie.",micDenied:"Nie udało się uzyskać dostępu do mikrofonu. Zezwól na dostęp i spróbuj ponownie.",micNotFound:"Nie znaleziono mikrofonu. Podłącz mikrofon i spróbuj ponownie.",voiceUnavailable:"Funkcja głosowa jest obecnie niedostępna. Spróbuj ponownie.",chooseTopicLabel:"Wybierz temat, aby rozpocząć:",categoryTopicsHeading:"Proszę zadać pytanie dotyczące **{category}** poniżej.",quickQuestionsHeadingLabel:"Lub zadaj szybkie pytanie:",typeYourMessage:"Wpisz wiadomość...",agentIsLoading:"Agent się ładuje...",conversationResolved:"Rozmowa zakończona",howWasYourExperience:"Jakie było Twoje doświadczenie?",feedbackPrompt:"Oceń proszę naszą obsługę, aby pomóc nam się rozwijać.",feedbackPlaceholder:"Opowiedz nam więcej o swoim doświadczeniu...",submitFeedback:"Wyślij opinię",submitting:"Wysyłanie...",selectRatingFirst:"Najpierw wybierz ocenę",pleaseSubmitRatingFirst:"Najpierw prześlij swoją ocenę.",completeOnboardingToEnableVoice:"Zakończ wprowadzenie, aby włączyć głos",sendMessageToCompleteOnboarding:"Wyślij wiadomość, aby zakończyć wprowadzenie i włączyć głos.",resolve:"Zakończ",scrollLeft:"Przewiń w lewo",scrollRight:"Przewiń w prawo",sendMessage:"Wyślij wiadomość",voiceSessionLive:"Sesja głosowa aktywna - mów lub pisz.",connectingVoice:"Łączenie z sesją głosową...",poweredBy:"Napędzane przez",menu:"Menu",close:"Zamknij",openChat:"Otwórz czat",closeChat:"Zamknij czat",lightMode:"Tryb jasny",nightMode:"Tryb ciemny",refreshChat:"Odśwież czat",copyChat:"Kopiuj czat",startChat:"Rozpocznij czat",startingVoiceSession:"Uruchamianie sesji głosowej...",allowMicAccess:"Zezwól na dostęp do mikrofonu"},pt:{connectionError:"Desculpe, estou com problemas de conexão neste momento. Tente novamente.",micDenied:"Não foi possível acessar o seu microfone. Permita o acesso e tente novamente.",micNotFound:"Nenhum microfone encontrado. Conecte um e tente novamente.",voiceUnavailable:"A voz não está disponível neste momento. Tente novamente.",chooseTopicLabel:"Escolha um tópico para começar:",categoryTopicsHeading:"Por favor, faça sua pergunta sobre **{category}** abaixo.",quickQuestionsHeadingLabel:"Ou faça uma pergunta rápida:",typeYourMessage:"Digite sua mensagem...",agentIsLoading:"O agente está carregando...",conversationResolved:"Conversa encerrada",howWasYourExperience:"Como foi sua experiência?",feedbackPrompt:"Avalie nosso suporte para nos ajudar a melhorar.",feedbackPlaceholder:"Conte-nos mais sobre sua experiência...",submitFeedback:"Enviar feedback",submitting:"Enviando...",selectRatingFirst:"Selecione uma avaliação primeiro",pleaseSubmitRatingFirst:"Envie sua avaliação primeiro.",completeOnboardingToEnableVoice:"Complete a integração para ativar a voz",sendMessageToCompleteOnboarding:"Envie uma mensagem para completar a integração e ativar a voz.",resolve:"Encerrar",scrollLeft:"Rolar para a esquerda",scrollRight:"Rolar para a direita",sendMessage:"Enviar mensagem",voiceSessionLive:"Sessão de voz ativa - fale ou digite para conversar.",connectingVoice:"Conectando à sessão de voz...",poweredBy:"Desenvolvido por",menu:"Menu",close:"Fechar",openChat:"Abrir chat",closeChat:"Fechar chat",lightMode:"Modo claro",nightMode:"Modo escuro",refreshChat:"Atualizar chat",copyChat:"Copiar chat",startChat:"Iniciar chat",startingVoiceSession:"Iniciando sessão de voz...",allowMicAccess:"Permitir acesso ao microfone"},ro:{connectionError:"Ne pare rău, întâmpin probleme de conexiune în acest moment. Încercați din nou.",micDenied:"Nu am putut accesa microfonul. Permiteți accesul și încercați din nou.",micNotFound:"Nu a fost găsit niciun microfon. Conectați unul și încercați din nou.",voiceUnavailable:"Funcția vocală nu este disponibilă momentan. Încercați din nou.",chooseTopicLabel:"Alegeți un subiect pentru a începe:",categoryTopicsHeading:"Vă rugăm să adresați întrebarea dvs. despre **{category}** mai jos.",quickQuestionsHeadingLabel:"Sau puneți o întrebare rapidă:",typeYourMessage:"Scrieți mesajul dvs...",agentIsLoading:"Agentul se încarcă...",conversationResolved:"Conversație încheiată",howWasYourExperience:"Cum a fost experiența dvs.?",feedbackPrompt:"Vă rugăm să evaluați asistența noastră pentru a ne ajuta să ne îmbunătățim.",feedbackPlaceholder:"Spuneți-ne mai multe despre experiența dvs...",submitFeedback:"Trimite feedback",submitting:"Se trimite...",selectRatingFirst:"Selectați mai întâi o evaluare",pleaseSubmitRatingFirst:"Vă rugăm să trimiteți mai întâi evaluarea.",completeOnboardingToEnableVoice:"Finalizați procesul pentru a activa vocea",sendMessageToCompleteOnboarding:"Trimiteți un mesaj pentru a finaliza procesul și a activa vocea.",resolve:"Închide",scrollLeft:"Derulați la stânga",scrollRight:"Derulați la dreapta",sendMessage:"Trimite mesaj",voiceSessionLive:"Sesiune vocală activă - vorbiți sau tastați.",connectingVoice:"Se conectează la sesiunea vocală...",poweredBy:"Oferit de",menu:"Meniu",close:"Închide",openChat:"Deschide chat",closeChat:"Închide chat",lightMode:"Mod luminos",nightMode:"Mod întunecat",refreshChat:"Reîmprospătează chat",copyChat:"Copiază chat",startChat:"Începe chat",startingVoiceSession:"Începe sesiunea vocală...",allowMicAccess:"Permiteți accesul la microfon"},ru:{connectionError:"Извините, сейчас возникли проблемы с подключением. Попробуйте снова.",micDenied:"Не удалось получить доступ к микрофону. Разрешите доступ и попробуйте снова.",micNotFound:"Микрофон не найден. Подключите микрофон и попробуйте снова.",voiceUnavailable:"Голосовая функция сейчас недоступна. Попробуйте снова.",chooseTopicLabel:"Выберите тему, чтобы начать:",categoryTopicsHeading:"Пожалуйста, задайте свой вопрос о **{category}** ниже.",quickQuestionsHeadingLabel:"Или задайте быстрый вопрос:",typeYourMessage:"Введите ваше сообщение...",agentIsLoading:"Агент загружается...",conversationResolved:"Разговор завершен",howWasYourExperience:"Как прошел ваш опыт?",feedbackPrompt:"Пожалуйста, оцените нашу поддержку, чтобы помочь нам улучшиться.",feedbackPlaceholder:"Расскажите нам больше о вашем опыте...",submitFeedback:"Отправить отзыв",submitting:"Отправка...",selectRatingFirst:"Сначала выберите оценку",pleaseSubmitRatingFirst:"Пожалуйста, сначала отправьте свою оценку.",completeOnboardingToEnableVoice:"Завершите знакомство, чтобы включить голос",sendMessageToCompleteOnboarding:"Отправьте сообщение, чтобы завершить знакомство и включить голос.",resolve:"Завершить",scrollLeft:"Прокрутить влево",scrollRight:"Прокрутить вправо",sendMessage:"Отправить сообщение",voiceSessionLive:"Голосовая сессия активна - говорите или пишите.",connectingVoice:"Подключение к голосовой сессии...",poweredBy:"Работает на",menu:"Меню",close:"Закрыть",openChat:"Открыть чат",closeChat:"Закрыть чат",lightMode:"Светлый режим",nightMode:"Темный режим",refreshChat:"Обновить чат",copyChat:"Копировать чат",startChat:"Начать чат",startingVoiceSession:"Запуск голосовой сессии...",allowMicAccess:"Разрешить доступ к микрофону"},sr:{connectionError:"Извините, тренутно имам проблема са повезивањем. Пробајте поново.",micDenied:"Нисмо могли да приступимо вашем микрофону. Дозволите приступ и пробајте поново.",micNotFound:"Микрофон није пронађен. Прикључите микрофон и пробајте поново.",voiceUnavailable:"Гласовна функција тренутно није доступна. Пробајте поново.",chooseTopicLabel:"Изаберите тему да бисте започели:",categoryTopicsHeading:"Молимо поставите своје питање о **{category}** испод.",quickQuestionsHeadingLabel:"Или поставите брзо питање:",typeYourMessage:"Укуцајте вашу поруку...",agentIsLoading:"Агент се учитава...",conversationResolved:"Разговор је завршен",howWasYourExperience:"Какво је било ваше искуство?",feedbackPrompt:"Молимо оцените нашу подршку да бисмо се побољшали.",feedbackPlaceholder:"Реците нам више о свом искуству...",submitFeedback:"Пошаљи повратне информације",submitting:"Слање...",selectRatingFirst:"Прво одаберите оцену",pleaseSubmitRatingFirst:"Молимо прво пошаљите оцену.",completeOnboardingToEnableVoice:"Завршите увод да омогућите глас",sendMessageToCompleteOnboarding:"Пошаљите поруку да завршите увод и омогућите глас.",resolve:"Заврши",scrollLeft:"Скроловати лево",scrollRight:"Скроловати десно",sendMessage:"Пошаљи поруку",voiceSessionLive:"Гласовна сесија активна - говорите или куцајте.",connectingVoice:"Повезивање са гласовном сесијом...",poweredBy:"Покреће",menu:"Мени",close:"Затвори",openChat:"Отвори ћаскање",closeChat:"Затвори ћаскање",lightMode:"Светли режим",nightMode:"Тамни режим",refreshChat:"Освежи ћаскање",copyChat:"Копирај ћаскање",startChat:"Започни ћаскање",startingVoiceSession:"Покретање гласовне сесије...",allowMicAccess:"Дозволи приступ микрофону"},sk:{connectionError:"Ľutujeme, momentálne mám problém s pripojením. Skúste to znova.",micDenied:"Nepodarilo sa získať prístup k mikrofónu. Povoľte prístup a skúste to znova.",micNotFound:"Mikrofón sa nenašiel. Pripojte ho a skúste to znova.",voiceUnavailable:"Hlasová funkcia momentálne nie je dostupná. Skúste to znova.",chooseTopicLabel:"Vyberte tému, aby ste začali:",categoryTopicsHeading:"Prosím, položte svoju otázku o **{category}** nižšie.",quickQuestionsHeadingLabel:"Alebo položte rýchlu otázku:",typeYourMessage:"Napíšte svoju správu...",agentIsLoading:"Agent sa načítava...",conversationResolved:"Konverzácia ukončená",howWasYourExperience:"Aká bola vaša skúsenosť?",feedbackPrompt:"Ohodnoťte prosím našu podporu, aby sme sa mohli zlepšiť.",feedbackPlaceholder:"Povedzte nám viac o svojej skúsenosti...",submitFeedback:"Odoslať spätnú väzbu",submitting:"Odosielanie...",selectRatingFirst:"Najprv vyberte hodnotenie",pleaseSubmitRatingFirst:"Najprv odošlite svoje hodnotenie.",completeOnboardingToEnableVoice:"Dokončite úvod pre zapnutie hlasu",sendMessageToCompleteOnboarding:"Pošlite správu na dokončenie úvodu a zapnutie hlasu.",resolve:"Ukončiť",scrollLeft:"Posunúť doľava",scrollRight:"Posunúť doprava",sendMessage:"Odoslať správu",voiceSessionLive:"Hlasová relácia aktívna - hovorte alebo píšte.",connectingVoice:"Pripájanie k hlasovej relácii...",poweredBy:"Prevádzkuje",menu:"Ponuka",close:"Zavrieť",openChat:"Otvoriť chat",closeChat:"Zavrieť chat",lightMode:"Svetlý režim",nightMode:"Tmavý režim",refreshChat:"Obnoviť chat",copyChat:"Kopírovať chat",startChat:"Začať chat",startingVoiceSession:"Spúšťanie hlasovej relácie...",allowMicAccess:"Povoliť prístup k mikrofónu"},sl:{connectionError:"Oprostite, trenutno imam težave s povezavo. Poskusite znova.",micDenied:"Do mikrofona ni bilo mogoče dostopati. Dovolite dostop in poskusite znova.",micNotFound:"Mikrofona ni bilo mogoče najti. Priključite ga in poskusite znova.",voiceUnavailable:"Glasovna funkcija trenutno ni na voljo. Poskusite znova.",chooseTopicLabel:"Izberite temo za začetek:",categoryTopicsHeading:"Prosimo, postavite vprašanje o **{category}** spodaj.",quickQuestionsHeadingLabel:"Ali postavite hitro vprašanje:",typeYourMessage:"Vnesite svoje sporočilo...",agentIsLoading:"Agent se nalaga...",conversationResolved:"Pogovor je končan",howWasYourExperience:"Kakšna je bila vaša izkušnja?",feedbackPrompt:"Prosimo, ocenite našo podporo, da nam pomagate izboljšati.",feedbackPlaceholder:"Povejte nam več o svoji izkušnji...",submitFeedback:"Pošlji povratne informacije",submitting:"Pošiljanje...",selectRatingFirst:"Najprej izberite oceno",pleaseSubmitRatingFirst:"Prosimo, najprej pošljite svojo oceno.",completeOnboardingToEnableVoice:"Zaključite uvodne korake za omogočanje glasu",sendMessageToCompleteOnboarding:"Pošljite sporočilo, da zaključite uvod in omogočite glas.",resolve:"Končaj",scrollLeft:"Premakni levo",scrollRight:"Premakni desno",sendMessage:"Pošlji sporočilo",voiceSessionLive:"Glasovna seja aktivna - govorite ali tipkajte.",connectingVoice:"Povezovanje z glasovno sejo...",poweredBy:"Poganja",menu:"Meni",close:"Zapri",openChat:"Odpri klepet",closeChat:"Zapri klepet",lightMode:"Svetli način",nightMode:"Temni način",refreshChat:"Osveži klepet",copyChat:"Kopiraj klepet",startChat:"Začni klepet",startingVoiceSession:"Začetek glasovne seje...",allowMicAccess:"Dovoli dostop do mikrofona"},sv:{connectionError:"Ursäkta, jag har anslutningsproblem just nu. Försök igen.",micDenied:"Vi kunde inte komma åt din mikrofon. Tillåt åtkomst och försök igen.",micNotFound:"Ingen mikrofon hittades. Anslut en mikrofon och försök igen.",voiceUnavailable:"Röst är inte tillgängligt just nu. Försök igen.",chooseTopicLabel:"Välj ett ämne för att komma igång:",categoryTopicsHeading:"Ställ gärna din **{category}**-fråga nedan.",quickQuestionsHeadingLabel:"Eller ställ en snabb fråga:",typeYourMessage:"Skriv ditt meddelande...",agentIsLoading:"Agenten laddas...",conversationResolved:"Konversation avslutad",howWasYourExperience:"Hur var din upplevelse?",feedbackPrompt:"Betygsätt vår support för att hjälpa oss att bli bättre.",feedbackPlaceholder:"Berätta mer om din upplevelse...",submitFeedback:"Skicka feedback",submitting:"Skickar...",selectRatingFirst:"Välj först ett betyg",pleaseSubmitRatingFirst:"Vänligen skicka in ditt betyg först.",completeOnboardingToEnableVoice:"Slutför introduktionen för att aktivera röst",sendMessageToCompleteOnboarding:"Skicka ett meddelande för att slutföra introduktionen och aktivera röst.",resolve:"Avsluta",scrollLeft:"Bläddra åt vänster",scrollRight:"Bläddra åt höger",sendMessage:"Skicka meddelande",voiceSessionLive:"Röstsession aktiv - tala eller skriv för att samtala.",connectingVoice:"Ansluter till röstsession...",poweredBy:"Drivs av",menu:"Meny",close:"Stäng",openChat:"Öppna chatt",closeChat:"Stäng chatt",lightMode:"Ljust läge",nightMode:"Mörkt läge",refreshChat:"Uppdatera chatt",copyChat:"Kopiera chatt",startChat:"Starta chatt",startingVoiceSession:"Startar röstsession...",allowMicAccess:"Tillåt mikrofonåtkomst"},th:{connectionError:"ขออภัย ขณะนี้เกิดปัญหาในการเชื่อมต่อ โปรดลองอีกครั้ง",micDenied:"เราไม่สามารถเข้าถึงไมโครโฟนของคุณได้ โปรดอนุญาตการเข้าถึงแล้วลองอีกครั้ง",micNotFound:"ไม่พบไมโครโฟน โปรดเชื่อมต่อไมโครโฟนแล้วลองอีกครั้ง",voiceUnavailable:"ฟีเจอร์เสียงไม่พร้อมใช้งานในขณะนี้ โปรดลองอีกครั้ง",chooseTopicLabel:"เลือกหัวข้อเพื่อเริ่มต้น:",categoryTopicsHeading:"โปรดถามคำถามเกี่ยวกับ **{category}** ด้านล่าง",quickQuestionsHeadingLabel:"หรือถามคำถามด่วน:",typeYourMessage:"พิมพ์ข้อความของคุณ...",agentIsLoading:"กำลังโหลดตัวแทน...",conversationResolved:"การสนทนาสิ้นสุดลง",howWasYourExperience:"ประสบการณ์ของคุณเป็นอย่างไร?",feedbackPrompt:"โปรดให้คะแนนการสนับสนุนของเราเพื่อช่วยให้เราปรับปรุง",feedbackPlaceholder:"บอกเราเพิ่มเติมเกี่ยวกับประสบการณ์ของคุณ...",submitFeedback:"ส่งความคิดเห็น",submitting:"กำลังส่ง...",selectRatingFirst:"โปรดเลือกคะแนนก่อน",pleaseSubmitRatingFirst:"โปรดส่งคะแนนของคุณก่อน",completeOnboardingToEnableVoice:"ทำการเริ่มต้นให้เสร็จเพื่อเปิดใช้งานเสียง",sendMessageToCompleteOnboarding:"ส่งข้อความเพื่อทำการเริ่มต้นให้เสร็จและเปิดใช้งานเสียง",resolve:"สิ้นสุด",scrollLeft:"เลื่อนไปทางซ้าย",scrollRight:"เลื่อนไปทางขวา",sendMessage:"ส่งข้อความ",voiceSessionLive:"เซสชันเสียงใช้งานอยู่ - พูดหรือพิมพ์เพื่อสนทนา",connectingVoice:"กำลังเชื่อมต่อกับเซสชันเสียง...",poweredBy:"ขับเคลื่อนโดย",menu:"เมนู",close:"ปิด",openChat:"เปิดแชท",closeChat:"ปิดแชท",lightMode:"โหมดสว่าง",nightMode:"โหมดมืด",refreshChat:"รีเฟรชแชท",copyChat:"คัดลอกแชท",startChat:"เริ่มแชท",startingVoiceSession:"กำลังเริ่มเซสชันเสียง...",allowMicAccess:"อนุญาตการเข้าถึงไมโครโฟน"},tr:{connectionError:"Üzgünüz, şu anda bağlantı sorunu yaşıyorum. Lütfen tekrar deneyin.",micDenied:"Mikrofonunuza erişemedik. Lütfen erişime izin verin ve tekrar deneyin.",micNotFound:"Mikrofon bulunamadı. Lütfen bir mikrofon bağlayın ve tekrar deneyin.",voiceUnavailable:"Sesli özellik şu anda kullanılamıyor. Lütfen tekrar deneyin.",chooseTopicLabel:"Başlamak için bir konu seçin:",categoryTopicsHeading:"Lütfen **{category}** sorunuzu aşağıya yazın.",quickQuestionsHeadingLabel:"Veya hızlı bir soru sorun:",typeYourMessage:"Mesajınızı yazın...",agentIsLoading:"Temsilci yükleniyor...",conversationResolved:"Görüşme sonlandırıldı",howWasYourExperience:"Deneyiminiz nasıldı?",feedbackPrompt:"Gelişmemize yardımcı olmak için lütfen desteğimizi değerlendirin.",feedbackPlaceholder:"Deneyiminiz hakkında bize daha fazla bilgi verin...",submitFeedback:"Geri bildirim gönder",submitting:"Gönderiliyor...",selectRatingFirst:"Önce bir değerlendirme seçin",pleaseSubmitRatingFirst:"Lütfen önce değerlendirmenizi gönderin.",completeOnboardingToEnableVoice:"Sesi etkinleştirmek için tanıtımı tamamlayın",sendMessageToCompleteOnboarding:"Tanıtımı tamamlamak ve sesi etkinleştirmek için bir mesaj gönderin.",resolve:"Bitir",scrollLeft:"Sola kaydır",scrollRight:"Sağa kaydır",sendMessage:"Mesaj gönder",voiceSessionLive:"Sesli oturum aktif - konuşun veya yazın.",connectingVoice:"Sesli oturuma bağlanılıyor...",poweredBy:"Tarafından sağlandı",menu:"Menü",close:"Kapat",openChat:"Sohbeti aç",closeChat:"Sohbeti kapat",lightMode:"Açık mod",nightMode:"Karanlık mod",refreshChat:"Sohbeti yenile",copyChat:"Sohbeti kopyala",startChat:"Sohbete başla",startingVoiceSession:"Sesli oturum başlatılıyor...",allowMicAccess:"Mikrofon erişimine izin ver"},uk:{connectionError:"Вибачте, зараз виникли проблеми з підключенням. Спробуйте ще раз.",micDenied:"Не вдалося отримати доступ до мікрофона. Дозвольте доступ і спробуйте ще раз.",micNotFound:"Мікрофон не знайдено. Підключіть мікрофон і спробуйте ще раз.",voiceUnavailable:"Голосова функція зараз недоступна. Спробуйте ще раз.",chooseTopicLabel:"Виберіть тему, щоб почати:",categoryTopicsHeading:"Будь ласка, поставте своє запитання щодо **{category}** нижче.",quickQuestionsHeadingLabel:"Або поставте швидке запитання:",typeYourMessage:"Введіть ваше повідомлення...",agentIsLoading:"Агент завантажується...",conversationResolved:"Розмову завершено",howWasYourExperience:"Яким був ваш досвід?",feedbackPrompt:"Будь ласка, оцініть нашу підтримку, щоб допомогти нам вдосконалюватися.",feedbackPlaceholder:"Розкажіть нам більше про свій досвід...",submitFeedback:"Надіслати відгук",submitting:"Надсилання...",selectRatingFirst:"Спочатку оберіть оцінку",pleaseSubmitRatingFirst:"Будь ласка, спочатку надішліть оцінку.",completeOnboardingToEnableVoice:"Завершіть вступ, щоб увімкнути голос",sendMessageToCompleteOnboarding:"Надішліть повідомлення, щоб завершити вступ та увімкнути голос.",resolve:"Завершити",scrollLeft:"Прокрутити ліворуч",scrollRight:"Прокрутити праворуч",sendMessage:"Надіслати повідомлення",voiceSessionLive:"Голосовий сеанс активний - говоріть або пишіть.",connectingVoice:"Підключення до голосового сеансу...",poweredBy:"Працює на",menu:"Меню",close:"Закрити",openChat:"Відкрити чат",closeChat:"Закрити чат",lightMode:"Світлий режим",nightMode:"Темний режим",refreshChat:"Оновити чат",copyChat:"Копіювати чат",startChat:"Почати чат",startingVoiceSession:"Запуск голосового сеансу...",allowMicAccess:"Дозволити доступ до мікрофона"},ur:{connectionError:"معذرت، اس وقت رابطہ قائم کرنے میں دشواری ہو رہی ہے۔ براہ کرم دوبارہ کوشش کریں۔",micDenied:"ہم آپ کے مائیکروفون تک رسائی حاصل نہیں کر سکے۔ براہ کرم رسائی کی اجازت دیں اور دوبارہ کوشش کریں۔",micNotFound:"کوئی مائیکروفون نہیں ملا۔ براہ کرم ایک منسلک کریں اور دوبارہ کوشش کریں۔",voiceUnavailable:"صوتی سہولت اس وقت دستیاب نہیں ہے۔ براہ کرم دوبارہ کوشش کریں۔",chooseTopicLabel:"شروع کرنے کے لیے ایک موضوع منتخب کریں:",categoryTopicsHeading:"براہ کرم اپنا **{category}** سوال نیچے پوچھیں۔",quickQuestionsHeadingLabel:"یا کوئی فوری سوال پوچھیں:",typeYourMessage:"اپنا پیغام ٹائپ کریں...",agentIsLoading:"ایجنٹ لوڈ ہو رہا ہے...",conversationResolved:"گفتگو مکمل",howWasYourExperience:"آپ کا تجربہ کیسا تھا؟",feedbackPrompt:"براہ کرم ہماری بہتری میں مدد کے لیے ہماری معاونت کی درجہ بندی کریں۔",feedbackPlaceholder:"ہمیں اپنے تجربے کے بارے میں مزید بتائیں...",submitFeedback:"رائے جمع کروائیں",submitting:"جمع ہو رہا ہے...",selectRatingFirst:"پہلے درجہ بندی منتخب کریں",pleaseSubmitRatingFirst:"براہ کرم پہلے اپنی درجہ بندی جمع کروائیں۔",completeOnboardingToEnableVoice:"آواز کو فعال کرنے کے لیے ابتدائی مراحل مکمل کریں",sendMessageToCompleteOnboarding:"ابتدائی مراحل مکمل کرنے اور آواز فعال کرنے کے لیے پیغام بھیجیں۔",resolve:"مکمل کریں",scrollLeft:"بائیں اسکرول کریں",scrollRight:"دائیں اسکرول کریں",sendMessage:"پیغام بھیجیں",voiceSessionLive:"صوتی سیشن فعال - بات کریں یا ٹائپ کریں۔",connectingVoice:"صوتی سیشن سے جڑ رہا ہے...",poweredBy:"پاور بذریعہ",menu:"مینو",close:"بند کریں",openChat:"چیٹ کھولیں",closeChat:"چیٹ بند کریں",lightMode:"ہلکا موڈ",nightMode:"تاریک موڈ",refreshChat:"چیٹ ریفریش کریں",copyChat:"چیٹ کاپی کریں",startChat:"چیٹ شروع کریں",startingVoiceSession:"صوتی سیشن شروع ہو رہا ہے...",allowMicAccess:"مائیکروفون تک رسائی کی اجازت دیں"},vi:{connectionError:"Xin lỗi, hiện tôi đang gặp sự cố kết nối. Vui lòng thử lại.",micDenied:"Chúng tôi không thể truy cập micrô của bạn. Vui lòng cho phép truy cập và thử lại.",micNotFound:"Không tìm thấy micrô. Vui lòng kết nối micrô và thử lại.",voiceUnavailable:"Tính năng giọng nói hiện không khả dụng. Vui lòng thử lại.",chooseTopicLabel:"Chọn một chủ đề để bắt đầu:",categoryTopicsHeading:"Vui lòng đặt câu hỏi của bạn về **{category}** bên dưới.",quickQuestionsHeadingLabel:"Hoặc đặt một câu hỏi nhanh:",typeYourMessage:"Nhập tin nhắn của bạn...",agentIsLoading:"Đang tải trợ lý...",conversationResolved:"Cuộc trò chuyện đã kết thúc",howWasYourExperience:"Trải nghiệm của bạn như thế nào?",feedbackPrompt:"Vui lòng đánh giá hỗ trợ của chúng tôi để giúp chúng tôi cải thiện.",feedbackPlaceholder:"Hãy cho chúng tôi biết thêm về trải nghiệm của bạn...",submitFeedback:"Gửi phản hồi",submitting:"Đang gửi...",selectRatingFirst:"Vui lòng chọn đánh giá trước",pleaseSubmitRatingFirst:"Vui lòng gửi đánh giá của bạn trước.",completeOnboardingToEnableVoice:"Hoàn thành hướng dẫn để bật giọng nói",sendMessageToCompleteOnboarding:"Gửi tin nhắn để hoàn thành hướng dẫn và bật giọng nói.",resolve:"Kết thúc",scrollLeft:"Cuộn sang trái",scrollRight:"Cuộn sang phải",sendMessage:"Gửi tin nhắn",voiceSessionLive:"Phiên giọng nói đang hoạt động - hãy nói hoặc gõ.",connectingVoice:"Đang kết nối phiên giọng nói...",poweredBy:"Được cung cấp bởi",menu:"Menu",close:"Đóng",openChat:"Mở trò chuyện",closeChat:"Đóng trò chuyện",lightMode:"Chế độ sáng",nightMode:"Chế độ tối",refreshChat:"Làm mới trò chuyện",copyChat:"Sao chép trò chuyện",startChat:"Bắt đầu trò chuyện",startingVoiceSession:"Đang bắt đầu phiên giọng nói...",allowMicAccess:"Cho phép truy cập micrô"}},Cd={en:{removeAttachment:"Remove attachment",categoryFilter:"Category filter",filterByCategory:"Filter by category",scrollCategoriesLeft:"Scroll categories left",scrollCategoriesRight:"Scroll categories right",scrollTagsLeft:"Scroll tags left",scrollTagsRight:"Scroll tags right",copyMessage:"Copy message",copied:"Copied",like:"Like",dislike:"Dislike",sourcesCited:"{count} sources cited",moreSources:"+{count} more"},ar:{removeAttachment:"إزالة المرفق",categoryFilter:"تصفية الفئات",filterByCategory:"التصفية حسب الفئة",scrollCategoriesLeft:"تمرير الفئات لليسار",scrollCategoriesRight:"تمرير الفئات لليمين",scrollTagsLeft:"تمرير الوسوم لليسار",scrollTagsRight:"تمرير الوسوم لليمين",copyMessage:"نسخ الرسالة",copied:"تم النسخ",like:"أعجبني",dislike:"لم يعجبني",sourcesCited:"{count} مصادر مستشهد بها",moreSources:"+{count} أخرى"},es:{removeAttachment:"Quitar archivo adjunto",categoryFilter:"Filtro de categoría",filterByCategory:"Filtrar por categoría",scrollCategoriesLeft:"Desplazar categorías a la izquierda",scrollCategoriesRight:"Desplazar categorías a la derecha",scrollTagsLeft:"Desplazar etiquetas a la izquierda",scrollTagsRight:"Desplazar etiquetas a la derecha",copyMessage:"Copiar mensaje",copied:"Copiado",like:"Me gusta",dislike:"No me gusta",sourcesCited:"{count} fuentes citadas",moreSources:"+{count} más"},be:{removeAttachment:"Выдаліць улажэнне",categoryFilter:"Фільтр катэгорый",filterByCategory:"Фільтраваць па катэгорыі",scrollCategoriesLeft:"Пракруціць катэгорыі ўлева",scrollCategoriesRight:"Пракруціць катэгорыі ўправа",scrollTagsLeft:"Пракруціць тэгі ўлева",scrollTagsRight:"Пракруціць тэгі ўправа",copyMessage:"Капіраваць паведамленне",copied:"Скапіравана",like:"Падабаецца",dislike:"Не падабаецца",sourcesCited:"Цытаваныя крыніцы: {count}",moreSources:"+{count} яшчэ"},bs:{removeAttachment:"Ukloni prilog",categoryFilter:"Filter kategorija",filterByCategory:"Filtriraj po kategoriji",scrollCategoriesLeft:"Pomjeri kategorije lijevo",scrollCategoriesRight:"Pomjeri kategorije desno",scrollTagsLeft:"Pomjeri oznake lijevo",scrollTagsRight:"Pomjeri oznake desno",copyMessage:"Kopiraj poruku",copied:"Kopirano",like:"Sviđa mi se",dislike:"Ne sviđa mi se",sourcesCited:"Citirani izvori: {count}",moreSources:"+{count} više"},bg:{removeAttachment:"Премахване на прикачения файл",categoryFilter:"Филтър по категория",filterByCategory:"Филтриране по категория",scrollCategoriesLeft:"Превъртане на категориите наляво",scrollCategoriesRight:"Превъртане на категориите надясно",scrollTagsLeft:"Превъртане на етикетите наляво",scrollTagsRight:"Превъртане на етикетите надясно",copyMessage:"Копиране на съобщението",copied:"Копирано",like:"Харесва ми",dislike:"Не ми харесва",sourcesCited:"Цитирани източници: {count}",moreSources:"+{count} още"},my:{removeAttachment:"ပူးတွဲဖိုင်ကို ဖယ်ရှားပါ",categoryFilter:"အမျိုးအစား စစ်ထုတ်မှု",filterByCategory:"အမျိုးအစားအလိုက် စစ်ထုတ်ပါ",scrollCategoriesLeft:"အမျိုးအစားများကို ဘယ်ဘက်သို့ ရွှေ့ပါ",scrollCategoriesRight:"အမျိုးအစားများကို ညာဘက်သို့ ရွှေ့ပါ",scrollTagsLeft:"တဂ်များကို ဘယ်ဘက်သို့ ရွှေ့ပါ",scrollTagsRight:"တဂ်များကို ညာဘက်သို့ ရွှေ့ပါ",copyMessage:"မက်ဆေ့ချ်ကို ကူးယူပါ",copied:"ကူးယူပြီးပါပြီ",like:"နှစ်သက်သည်",dislike:"မနှစ်သက်ပါ",sourcesCited:"ကိုးကားထားသော ရင်းမြစ် {count} ခု",moreSources:"နောက်ထပ် +{count}"},ca:{removeAttachment:"Elimina el fitxer adjunt",categoryFilter:"Filtre de categoria",filterByCategory:"Filtra per categoria",scrollCategoriesLeft:"Desplaça les categories a l'esquerra",scrollCategoriesRight:"Desplaça les categories a la dreta",scrollTagsLeft:"Desplaça les etiquetes a l'esquerra",scrollTagsRight:"Desplaça les etiquetes a la dreta",copyMessage:"Copia el missatge",copied:"Copiat",like:"M'agrada",dislike:"No m'agrada",sourcesCited:"{count} fonts citades",moreSources:"+{count} més"},zh:{removeAttachment:"移除附件",categoryFilter:"类别筛选",filterByCategory:"按类别筛选",scrollCategoriesLeft:"向左滚动类别",scrollCategoriesRight:"向右滚动类别",scrollTagsLeft:"向左滚动标签",scrollTagsRight:"向右滚动标签",copyMessage:"复制消息",copied:"已复制",like:"赞",dislike:"踩",sourcesCited:"引用了 {count} 个来源",moreSources:"另外 {count} 个"},hr:{removeAttachment:"Ukloni privitak",categoryFilter:"Filtar kategorija",filterByCategory:"Filtriraj po kategoriji",scrollCategoriesLeft:"Pomakni kategorije ulijevo",scrollCategoriesRight:"Pomakni kategorije udesno",scrollTagsLeft:"Pomakni oznake ulijevo",scrollTagsRight:"Pomakni oznake udesno",copyMessage:"Kopiraj poruku",copied:"Kopirano",like:"Sviđa mi se",dislike:"Ne sviđa mi se",sourcesCited:"Citirani izvori: {count}",moreSources:"+{count} više"},cs:{removeAttachment:"Odebrat přílohu",categoryFilter:"Filtr kategorií",filterByCategory:"Filtrovat podle kategorie",scrollCategoriesLeft:"Posunout kategorie doleva",scrollCategoriesRight:"Posunout kategorie doprava",scrollTagsLeft:"Posunout štítky doleva",scrollTagsRight:"Posunout štítky doprava",copyMessage:"Kopírovat zprávu",copied:"Zkopírováno",like:"Líbí se mi",dislike:"Nelíbí se mi",sourcesCited:"Citované zdroje: {count}",moreSources:"+{count} další"},da:{removeAttachment:"Fjern vedhæftet fil",categoryFilter:"Kategorifilter",filterByCategory:"Filtrer efter kategori",scrollCategoriesLeft:"Rul kategorier til venstre",scrollCategoriesRight:"Rul kategorier til højre",scrollTagsLeft:"Rul tags til venstre",scrollTagsRight:"Rul tags til højre",copyMessage:"Kopiér besked",copied:"Kopieret",like:"Synes godt om",dislike:"Synes ikke om",sourcesCited:"{count} kilder citeret",moreSources:"+{count} mere"},nl:{removeAttachment:"Bijlage verwijderen",categoryFilter:"Categoriefilter",filterByCategory:"Filteren op categorie",scrollCategoriesLeft:"Categorieën naar links scrollen",scrollCategoriesRight:"Categorieën naar rechts scrollen",scrollTagsLeft:"Tags naar links scrollen",scrollTagsRight:"Tags naar rechts scrollen",copyMessage:"Bericht kopiëren",copied:"Gekopieerd",like:"Vind ik leuk",dislike:"Vind ik niet leuk",sourcesCited:"{count} bronnen geciteerd",moreSources:"+{count} meer"},et:{removeAttachment:"Eemalda manus",categoryFilter:"Kategooriafilter",filterByCategory:"Filtreeri kategooria järgi",scrollCategoriesLeft:"Keri kategooriaid vasakule",scrollCategoriesRight:"Keri kategooriaid paremale",scrollTagsLeft:"Keri silte vasakule",scrollTagsRight:"Keri silte paremale",copyMessage:"Kopeeri sõnum",copied:"Kopeeritud",like:"Meeldib",dislike:"Ei meeldi",sourcesCited:"Viidatud allikaid: {count}",moreSources:"+{count} veel"},fi:{removeAttachment:"Poista liite",categoryFilter:"Luokkasuodatin",filterByCategory:"Suodata luokan mukaan",scrollCategoriesLeft:"Vieritä luokkia vasemmalle",scrollCategoriesRight:"Vieritä luokkia oikealle",scrollTagsLeft:"Vieritä tunnisteita vasemmalle",scrollTagsRight:"Vieritä tunnisteita oikealle",copyMessage:"Kopioi viesti",copied:"Kopioitu",like:"Tykkää",dislike:"En tykkää",sourcesCited:"Lähteitä viitattu: {count}",moreSources:"+{count} lisää"},fr:{removeAttachment:"Supprimer la pièce jointe",categoryFilter:"Filtre de catégorie",filterByCategory:"Filtrer par catégorie",scrollCategoriesLeft:"Faire défiler les catégories vers la gauche",scrollCategoriesRight:"Faire défiler les catégories vers la droite",scrollTagsLeft:"Faire défiler les étiquettes vers la gauche",scrollTagsRight:"Faire défiler les étiquettes vers la droite",copyMessage:"Copier le message",copied:"Copié",like:"J'aime",dislike:"Je n'aime pas",sourcesCited:"{count} sources citées",moreSources:"+{count} de plus"},de:{removeAttachment:"Anhang entfernen",categoryFilter:"Kategoriefilter",filterByCategory:"Nach Kategorie filtern",scrollCategoriesLeft:"Kategorien nach links scrollen",scrollCategoriesRight:"Kategorien nach rechts scrollen",scrollTagsLeft:"Tags nach links scrollen",scrollTagsRight:"Tags nach rechts scrollen",copyMessage:"Nachricht kopieren",copied:"Kopiert",like:"Gefällt mir",dislike:"Gefällt mir nicht",sourcesCited:"{count} Quellen zitiert",moreSources:"+{count} weitere"},el:{removeAttachment:"Αφαίρεση συνημμένου",categoryFilter:"Φίλτρο κατηγορίας",filterByCategory:"Φιλτράρισμα κατά κατηγορία",scrollCategoriesLeft:"Κύλιση κατηγοριών αριστερά",scrollCategoriesRight:"Κύλιση κατηγοριών δεξιά",scrollTagsLeft:"Κύλιση ετικετών αριστερά",scrollTagsRight:"Κύλιση ετικετών δεξιά",copyMessage:"Αντιγραφή μηνύματος",copied:"Αντιγράφηκε",like:"Μου αρέσει",dislike:"Δεν μου αρέσει",sourcesCited:"{count} πηγές αναφέρονται",moreSources:"+{count} ακόμη"},hi:{removeAttachment:"अनुलग्नक हटाएँ",categoryFilter:"श्रेणी फ़िल्टर",filterByCategory:"श्रेणी के अनुसार फ़िल्टर करें",scrollCategoriesLeft:"श्रेणियों को बाईं ओर स्क्रॉल करें",scrollCategoriesRight:"श्रेणियों को दाईं ओर स्क्रॉल करें",scrollTagsLeft:"टैग को बाईं ओर स्क्रॉल करें",scrollTagsRight:"टैग को दाईं ओर स्क्रॉल करें",copyMessage:"संदेश कॉपी करें",copied:"कॉपी किया गया",like:"पसंद",dislike:"नापसंद",sourcesCited:"{count} स्रोत उद्धृत",moreSources:"+{count} और"},mr:{removeAttachment:"संलग्नक काढा",categoryFilter:"श्रेणी फिल्टर",filterByCategory:"श्रेणीनुसार फिल्टर करा",scrollCategoriesLeft:"श्रेण्या डावीकडे स्क्रोल करा",scrollCategoriesRight:"श्रेण्या उजवीकडे स्क्रोल करा",scrollTagsLeft:"टॅग डावीकडे स्क्रोल करा",scrollTagsRight:"टॅग उजवीकडे स्क्रोल करा",copyMessage:"संदेश कॉपी करा",copied:"कॉपी केले",like:"आवडले",dislike:"आवडले नाही",sourcesCited:"{count} स्रोत उद्धृत",moreSources:"+{count} अधिक"},hu:{removeAttachment:"Melléklet eltávolítása",categoryFilter:"Kategóriaszűrő",filterByCategory:"Szűrés kategória szerint",scrollCategoriesLeft:"Kategóriák görgetése balra",scrollCategoriesRight:"Kategóriák görgetése jobbra",scrollTagsLeft:"Címkék görgetése balra",scrollTagsRight:"Címkék görgetése jobbra",copyMessage:"Üzenet másolása",copied:"Másolva",like:"Tetszik",dislike:"Nem tetszik",sourcesCited:"{count} hivatkozott forrás",moreSources:"+{count} további"},is:{removeAttachment:"Fjarlægja viðhengi",categoryFilter:"Flokkasía",filterByCategory:"Sía eftir flokki",scrollCategoriesLeft:"Fletta flokkum til vinstri",scrollCategoriesRight:"Fletta flokkum til hægri",scrollTagsLeft:"Fletta merkjum til vinstri",scrollTagsRight:"Fletta merkjum til hægri",copyMessage:"Afrita skilaboð",copied:"Afritað",like:"Líkar",dislike:"Líkar ekki",sourcesCited:"Heimildir vísað í: {count}",moreSources:"+{count} í viðbót"},id:{removeAttachment:"Hapus lampiran",categoryFilter:"Filter kategori",filterByCategory:"Filter menurut kategori",scrollCategoriesLeft:"Gulir kategori ke kiri",scrollCategoriesRight:"Gulir kategori ke kanan",scrollTagsLeft:"Gulir tag ke kiri",scrollTagsRight:"Gulir tag ke kanan",copyMessage:"Salin pesan",copied:"Disalin",like:"Suka",dislike:"Tidak suka",sourcesCited:"{count} sumber dikutip",moreSources:"+{count} lainnya"},it:{removeAttachment:"Rimuovi allegato",categoryFilter:"Filtro categoria",filterByCategory:"Filtra per categoria",scrollCategoriesLeft:"Scorri le categorie a sinistra",scrollCategoriesRight:"Scorri le categorie a destra",scrollTagsLeft:"Scorri i tag a sinistra",scrollTagsRight:"Scorri i tag a destra",copyMessage:"Copia messaggio",copied:"Copiato",like:"Mi piace",dislike:"Non mi piace",sourcesCited:"{count} fonti citate",moreSources:"+{count} altre"},ja:{removeAttachment:"添付ファイルを削除",categoryFilter:"カテゴリフィルター",filterByCategory:"カテゴリで絞り込む",scrollCategoriesLeft:"カテゴリを左にスクロール",scrollCategoriesRight:"カテゴリを右にスクロール",scrollTagsLeft:"タグを左にスクロール",scrollTagsRight:"タグを右にスクロール",copyMessage:"メッセージをコピー",copied:"コピーしました",like:"いいね",dislike:"よくないね",sourcesCited:"{count} 件の出典",moreSources:"他 {count} 件"},ko:{removeAttachment:"첨부 파일 제거",categoryFilter:"카테고리 필터",filterByCategory:"카테고리별 필터",scrollCategoriesLeft:"카테고리를 왼쪽으로 스크롤",scrollCategoriesRight:"카테고리를 오른쪽으로 스크롤",scrollTagsLeft:"태그를 왼쪽으로 스크롤",scrollTagsRight:"태그를 오른쪽으로 스크롤",copyMessage:"메시지 복사",copied:"복사됨",like:"좋아요",dislike:"싫어요",sourcesCited:"인용된 출처 {count}개",moreSources:"외 {count}개"},lv:{removeAttachment:"Noņemt pielikumu",categoryFilter:"Kategoriju filtrs",filterByCategory:"Filtrēt pēc kategorijas",scrollCategoriesLeft:"Ritināt kategorijas pa kreisi",scrollCategoriesRight:"Ritināt kategorijas pa labi",scrollTagsLeft:"Ritināt birkas pa kreisi",scrollTagsRight:"Ritināt birkas pa labi",copyMessage:"Kopēt ziņojumu",copied:"Nokopēts",like:"Patīk",dislike:"Nepatīk",sourcesCited:"Citēti avoti: {count}",moreSources:"+{count} vēl"},lt:{removeAttachment:"Pašalinti priedą",categoryFilter:"Kategorijų filtras",filterByCategory:"Filtruoti pagal kategoriją",scrollCategoriesLeft:"Slinkti kategorijas į kairę",scrollCategoriesRight:"Slinkti kategorijas į dešinę",scrollTagsLeft:"Slinkti žymes į kairę",scrollTagsRight:"Slinkti žymes į dešinę",copyMessage:"Kopijuoti žinutę",copied:"Nukopijuota",like:"Patinka",dislike:"Nepatinka",sourcesCited:"Cituoti šaltiniai: {count}",moreSources:"+{count} daugiau"},mk:{removeAttachment:"Отстрани прилог",categoryFilter:"Филтер за категории",filterByCategory:"Филтрирај по категорија",scrollCategoriesLeft:"Лизгај ги категориите налево",scrollCategoriesRight:"Лизгај ги категориите надесно",scrollTagsLeft:"Лизгај ги ознаките налево",scrollTagsRight:"Лизгај ги ознаките надесно",copyMessage:"Копирај порака",copied:"Копирано",like:"Ми се допаѓа",dislike:"Не ми се допаѓа",sourcesCited:"Цитирани извори: {count}",moreSources:"+{count} уште"},ms:{removeAttachment:"Alih keluar lampiran",categoryFilter:"Penapis kategori",filterByCategory:"Tapis mengikut kategori",scrollCategoriesLeft:"Tatal kategori ke kiri",scrollCategoriesRight:"Tatal kategori ke kanan",scrollTagsLeft:"Tatal tag ke kiri",scrollTagsRight:"Tatal tag ke kanan",copyMessage:"Salin mesej",copied:"Disalin",like:"Suka",dislike:"Tidak suka",sourcesCited:"{count} sumber dipetik",moreSources:"+{count} lagi"},no:{removeAttachment:"Fjern vedlegg",categoryFilter:"Kategorifilter",filterByCategory:"Filtrer etter kategori",scrollCategoriesLeft:"Bla kategorier til venstre",scrollCategoriesRight:"Bla kategorier til høyre",scrollTagsLeft:"Bla emneknagger til venstre",scrollTagsRight:"Bla emneknagger til høyre",copyMessage:"Kopier melding",copied:"Kopiert",like:"Liker",dislike:"Liker ikke",sourcesCited:"{count} kilder sitert",moreSources:"+{count} til"},fa:{removeAttachment:"حذف پیوست",categoryFilter:"فیلتر دسته‌بندی",filterByCategory:"فیلتر بر اساس دسته‌بندی",scrollCategoriesLeft:"پیمایش دسته‌بندی‌ها به چپ",scrollCategoriesRight:"پیمایش دسته‌بندی‌ها به راست",scrollTagsLeft:"پیمایش برچسب‌ها به چپ",scrollTagsRight:"پیمایش برچسب‌ها به راست",copyMessage:"کپی پیام",copied:"کپی شد",like:"پسندیدم",dislike:"نپسندیدم",sourcesCited:"{count} منبع ذکر شده",moreSources:"+{count} مورد دیگر"},pl:{removeAttachment:"Usuń załącznik",categoryFilter:"Filtr kategorii",filterByCategory:"Filtruj według kategorii",scrollCategoriesLeft:"Przewiń kategorie w lewo",scrollCategoriesRight:"Przewiń kategorie w prawo",scrollTagsLeft:"Przewiń tagi w lewo",scrollTagsRight:"Przewiń tagi w prawo",copyMessage:"Kopiuj wiadomość",copied:"Skopiowano",like:"Lubię to",dislike:"Nie lubię tego",sourcesCited:"Cytowane źródła: {count}",moreSources:"+{count} więcej"},pt:{removeAttachment:"Remover anexo",categoryFilter:"Filtro de categoria",filterByCategory:"Filtrar por categoria",scrollCategoriesLeft:"Rolar categorias para a esquerda",scrollCategoriesRight:"Rolar categorias para a direita",scrollTagsLeft:"Rolar etiquetas para a esquerda",scrollTagsRight:"Rolar etiquetas para a direita",copyMessage:"Copiar mensagem",copied:"Copiado",like:"Gostei",dislike:"Não gostei",sourcesCited:"{count} fontes citadas",moreSources:"+{count} mais"},ro:{removeAttachment:"Elimină atașamentul",categoryFilter:"Filtru de categorie",filterByCategory:"Filtrează după categorie",scrollCategoriesLeft:"Derulează categoriile la stânga",scrollCategoriesRight:"Derulează categoriile la dreapta",scrollTagsLeft:"Derulează etichetele la stânga",scrollTagsRight:"Derulează etichetele la dreapta",copyMessage:"Copiază mesajul",copied:"Copiat",like:"Îmi place",dislike:"Nu îmi place",sourcesCited:"Surse citate: {count}",moreSources:"+{count} în plus"},ru:{removeAttachment:"Удалить вложение",categoryFilter:"Фильтр категорий",filterByCategory:"Фильтровать по категории",scrollCategoriesLeft:"Прокрутить категории влево",scrollCategoriesRight:"Прокрутить категории вправо",scrollTagsLeft:"Прокрутить теги влево",scrollTagsRight:"Прокрутить теги вправо",copyMessage:"Копировать сообщение",copied:"Скопировано",like:"Нравится",dislike:"Не нравится",sourcesCited:"Цитируемые источники: {count}",moreSources:"+{count} ещё"},sr:{removeAttachment:"Уклони прилог",categoryFilter:"Филтер категорија",filterByCategory:"Филтрирај по категорији",scrollCategoriesLeft:"Скролуј категорије лево",scrollCategoriesRight:"Скролуј категорије десно",scrollTagsLeft:"Скролуј ознаке лево",scrollTagsRight:"Скролуј ознаке десно",copyMessage:"Копирај поруку",copied:"Копирано",like:"Свиђа ми се",dislike:"Не свиђа ми се",sourcesCited:"Цитирани извори: {count}",moreSources:"+{count} још"},sk:{removeAttachment:"Odstrániť prílohu",categoryFilter:"Filter kategórií",filterByCategory:"Filtrovať podľa kategórie",scrollCategoriesLeft:"Posunúť kategórie doľava",scrollCategoriesRight:"Posunúť kategórie doprava",scrollTagsLeft:"Posunúť štítky doľava",scrollTagsRight:"Posunúť štítky doprava",copyMessage:"Kopírovať správu",copied:"Skopírované",like:"Páči sa mi",dislike:"Nepáči sa mi",sourcesCited:"Citované zdroje: {count}",moreSources:"+{count} ďalšie"},sl:{removeAttachment:"Odstrani prilogo",categoryFilter:"Filter kategorij",filterByCategory:"Filtriraj po kategoriji",scrollCategoriesLeft:"Pomakni kategorije levo",scrollCategoriesRight:"Pomakni kategorije desno",scrollTagsLeft:"Pomakni oznake levo",scrollTagsRight:"Pomakni oznake desno",copyMessage:"Kopiraj sporočilo",copied:"Kopirano",like:"Všeč mi je",dislike:"Ni mi všeč",sourcesCited:"Navedeni viri: {count}",moreSources:"+{count} več"},sv:{removeAttachment:"Ta bort bilaga",categoryFilter:"Kategorifilter",filterByCategory:"Filtrera efter kategori",scrollCategoriesLeft:"Bläddra kategorier åt vänster",scrollCategoriesRight:"Bläddra kategorier åt höger",scrollTagsLeft:"Bläddra taggar åt vänster",scrollTagsRight:"Bläddra taggar åt höger",copyMessage:"Kopiera meddelande",copied:"Kopierat",like:"Gilla",dislike:"Gilla inte",sourcesCited:"{count} källor citerade",moreSources:"+{count} till"},th:{removeAttachment:"นำไฟล์แนบออก",categoryFilter:"ตัวกรองหมวดหมู่",filterByCategory:"กรองตามหมวดหมู่",scrollCategoriesLeft:"เลื่อนหมวดหมู่ไปทางซ้าย",scrollCategoriesRight:"เลื่อนหมวดหมู่ไปทางขวา",scrollTagsLeft:"เลื่อนแท็กไปทางซ้าย",scrollTagsRight:"เลื่อนแท็กไปทางขวา",copyMessage:"คัดลอกข้อความ",copied:"คัดลอกแล้ว",like:"ถูกใจ",dislike:"ไม่ถูกใจ",sourcesCited:"อ้างอิง {count} แหล่ง",moreSources:"อีก +{count}"},tr:{removeAttachment:"Eki kaldır",categoryFilter:"Kategori filtresi",filterByCategory:"Kategoriye göre filtrele",scrollCategoriesLeft:"Kategorileri sola kaydır",scrollCategoriesRight:"Kategorileri sağa kaydır",scrollTagsLeft:"Etiketleri sola kaydır",scrollTagsRight:"Etiketleri sağa kaydır",copyMessage:"Mesajı kopyala",copied:"Kopyalandı",like:"Beğen",dislike:"Beğenme",sourcesCited:"{count} kaynak alıntılandı",moreSources:"+{count} daha"},uk:{removeAttachment:"Видалити вкладення",categoryFilter:"Фільтр категорій",filterByCategory:"Фільтрувати за категорією",scrollCategoriesLeft:"Прокрутити категорії ліворуч",scrollCategoriesRight:"Прокрутити категорії праворуч",scrollTagsLeft:"Прокрутити теги ліворуч",scrollTagsRight:"Прокрутити теги праворуч",copyMessage:"Копіювати повідомлення",copied:"Скопійовано",like:"Подобається",dislike:"Не подобається",sourcesCited:"Цитовані джерела: {count}",moreSources:"+{count} ще"},ur:{removeAttachment:"منسلکہ ہٹائیں",categoryFilter:"زمرہ فلٹر",filterByCategory:"زمرے کے لحاظ سے فلٹر کریں",scrollCategoriesLeft:"زمرے بائیں طرف اسکرول کریں",scrollCategoriesRight:"زمرے دائیں طرف اسکرول کریں",scrollTagsLeft:"ٹیگز بائیں طرف اسکرول کریں",scrollTagsRight:"ٹیگز دائیں طرف اسکرول کریں",copyMessage:"پیغام کاپی کریں",copied:"کاپی ہو گیا",like:"پسند",dislike:"ناپسند",sourcesCited:"{count} حوالہ جاتی ذرائع",moreSources:"+{count} مزید"},vi:{removeAttachment:"Xóa tệp đính kèm",categoryFilter:"Bộ lọc danh mục",filterByCategory:"Lọc theo danh mục",scrollCategoriesLeft:"Cuộn danh mục sang trái",scrollCategoriesRight:"Cuộn danh mục sang phải",scrollTagsLeft:"Cuộn thẻ sang trái",scrollTagsRight:"Cuộn thẻ sang phải",copyMessage:"Sao chép tin nhắn",copied:"Đã sao chép",like:"Thích",dislike:"Không thích",sourcesCited:"Đã trích dẫn {count} nguồn",moreSources:"+{count} nữa"}},Sd={en:{onboardingNamePlaceholder:"Please enter your name",onboardingEmailPlaceholder:"Please enter your email address",onboardingPhonePlaceholder:"Please enter your phone number"},ar:{onboardingNamePlaceholder:"الرجاء إدخال اسمك",onboardingEmailPlaceholder:"الرجاء إدخال بريدك الإلكتروني",onboardingPhonePlaceholder:"الرجاء إدخال رقم هاتفك"},es:{onboardingNamePlaceholder:"Introduce tu nombre",onboardingEmailPlaceholder:"Introduce tu correo electrónico",onboardingPhonePlaceholder:"Introduce tu número de teléfono"},be:{onboardingNamePlaceholder:"Калі ласка, увядзіце ваша імя",onboardingEmailPlaceholder:"Калі ласка, увядзіце адрас электроннай пошты",onboardingPhonePlaceholder:"Калі ласка, увядзіце нумар тэлефона"},bs:{onboardingNamePlaceholder:"Unesite svoje ime",onboardingEmailPlaceholder:"Unesite svoju email adresu",onboardingPhonePlaceholder:"Unesite svoj broj telefona"},bg:{onboardingNamePlaceholder:"Моля, въведете вашето име",onboardingEmailPlaceholder:"Моля, въведете имейл адреса си",onboardingPhonePlaceholder:"Моля, въведете телефонния си номер"},my:{onboardingNamePlaceholder:"ကျေးဇူးပြု၍ သင့်အမည်ကို ထည့်ပါ",onboardingEmailPlaceholder:"ကျေးဇူးပြု၍ သင့်အီးမေးလ်လိပ်စာကို ထည့်ပါ",onboardingPhonePlaceholder:"ကျေးဇူးပြု၍ သင့်ဖုန်းနံပါတ်ကို ထည့်ပါ"},ca:{onboardingNamePlaceholder:"Introdueix el teu nom",onboardingEmailPlaceholder:"Introdueix el teu correu electrònic",onboardingPhonePlaceholder:"Introdueix el teu número de telèfon"},zh:{onboardingNamePlaceholder:"请输入您的姓名",onboardingEmailPlaceholder:"请输入您的电子邮箱地址",onboardingPhonePlaceholder:"请输入您的电话号码"},hr:{onboardingNamePlaceholder:"Unesite svoje ime",onboardingEmailPlaceholder:"Unesite svoju adresu e-pošte",onboardingPhonePlaceholder:"Unesite svoj broj telefona"},cs:{onboardingNamePlaceholder:"Zadejte své jméno",onboardingEmailPlaceholder:"Zadejte svou e-mailovou adresu",onboardingPhonePlaceholder:"Zadejte své telefonní číslo"},da:{onboardingNamePlaceholder:"Indtast dit navn",onboardingEmailPlaceholder:"Indtast din e-mailadresse",onboardingPhonePlaceholder:"Indtast dit telefonnummer"},nl:{onboardingNamePlaceholder:"Voer uw naam in",onboardingEmailPlaceholder:"Voer uw e-mailadres in",onboardingPhonePlaceholder:"Voer uw telefoonnummer in"},et:{onboardingNamePlaceholder:"Sisestage oma nimi",onboardingEmailPlaceholder:"Sisestage oma e-posti aadress",onboardingPhonePlaceholder:"Sisestage oma telefoninumber"},fi:{onboardingNamePlaceholder:"Anna nimesi",onboardingEmailPlaceholder:"Anna sähköpostiosoitteesi",onboardingPhonePlaceholder:"Anna puhelinnumerosi"},fr:{onboardingNamePlaceholder:"Veuillez saisir votre nom",onboardingEmailPlaceholder:"Veuillez saisir votre adresse e-mail",onboardingPhonePlaceholder:"Veuillez saisir votre numéro de téléphone"},de:{onboardingNamePlaceholder:"Bitte geben Sie Ihren Namen ein",onboardingEmailPlaceholder:"Bitte geben Sie Ihre E-Mail-Adresse ein",onboardingPhonePlaceholder:"Bitte geben Sie Ihre Telefonnummer ein"},el:{onboardingNamePlaceholder:"Παρακαλώ εισαγάγετε το όνομά σας",onboardingEmailPlaceholder:"Παρακαλώ εισαγάγετε τη διεύθυνση email σας",onboardingPhonePlaceholder:"Παρακαλώ εισαγάγετε τον αριθμό τηλεφώνου σας"},hi:{onboardingNamePlaceholder:"कृपया अपना नाम दर्ज करें",onboardingEmailPlaceholder:"कृपया अपना ईमेल पता दर्ज करें",onboardingPhonePlaceholder:"कृपया अपना फ़ोन नंबर दर्ज करें"},mr:{onboardingNamePlaceholder:"कृपया आपले नाव प्रविष्ट करा",onboardingEmailPlaceholder:"कृपया आपला ईमेल पत्ता प्रविष्ट करा",onboardingPhonePlaceholder:"कृपया आपला फोन नंबर प्रविष्ट करा"},hu:{onboardingNamePlaceholder:"Adja meg a nevét",onboardingEmailPlaceholder:"Adja meg az e-mail-címét",onboardingPhonePlaceholder:"Adja meg a telefonszámát"},is:{onboardingNamePlaceholder:"Sláðu inn nafn þitt",onboardingEmailPlaceholder:"Sláðu inn netfangið þitt",onboardingPhonePlaceholder:"Sláðu inn símanúmerið þitt"},id:{onboardingNamePlaceholder:"Masukkan nama Anda",onboardingEmailPlaceholder:"Masukkan alamat email Anda",onboardingPhonePlaceholder:"Masukkan nomor telepon Anda"},it:{onboardingNamePlaceholder:"Inserisci il tuo nome",onboardingEmailPlaceholder:"Inserisci il tuo indirizzo email",onboardingPhonePlaceholder:"Inserisci il tuo numero di telefono"},ja:{onboardingNamePlaceholder:"お名前を入力してください",onboardingEmailPlaceholder:"メールアドレスを入力してください",onboardingPhonePlaceholder:"電話番号を入力してください"},ko:{onboardingNamePlaceholder:"이름을 입력해 주세요",onboardingEmailPlaceholder:"이메일 주소를 입력해 주세요",onboardingPhonePlaceholder:"전화번호를 입력해 주세요"},lv:{onboardingNamePlaceholder:"Lūdzu, ievadiet savu vārdu",onboardingEmailPlaceholder:"Lūdzu, ievadiet savu e-pasta adresi",onboardingPhonePlaceholder:"Lūdzu, ievadiet savu tālruņa numuru"},lt:{onboardingNamePlaceholder:"Įveskite savo vardą",onboardingEmailPlaceholder:"Įveskite savo el. pašto adresą",onboardingPhonePlaceholder:"Įveskite savo telefono numerį"},mk:{onboardingNamePlaceholder:"Внесете го вашето име",onboardingEmailPlaceholder:"Внесете ја вашата е-пошта",onboardingPhonePlaceholder:"Внесете го вашиот телефонски број"},ms:{onboardingNamePlaceholder:"Masukkan nama anda",onboardingEmailPlaceholder:"Masukkan alamat e-mel anda",onboardingPhonePlaceholder:"Masukkan nombor telefon anda"},no:{onboardingNamePlaceholder:"Skriv inn navnet ditt",onboardingEmailPlaceholder:"Skriv inn e-postadressen din",onboardingPhonePlaceholder:"Skriv inn telefonnummeret ditt"},fa:{onboardingNamePlaceholder:"لطفاً نام خود را وارد کنید",onboardingEmailPlaceholder:"لطفاً ایمیل خود را وارد کنید",onboardingPhonePlaceholder:"لطفاً شماره تلفن خود را وارد کنید"},pl:{onboardingNamePlaceholder:"Wpisz swoje imię",onboardingEmailPlaceholder:"Wpisz swój adres e-mail",onboardingPhonePlaceholder:"Wpisz swój numer telefonu"},pt:{onboardingNamePlaceholder:"Insira o seu nome",onboardingEmailPlaceholder:"Insira o seu endereço de e-mail",onboardingPhonePlaceholder:"Insira o seu número de telefone"},ro:{onboardingNamePlaceholder:"Introduceți numele dvs.",onboardingEmailPlaceholder:"Introduceți adresa dvs. de e-mail",onboardingPhonePlaceholder:"Introduceți numărul dvs. de telefon"},ru:{onboardingNamePlaceholder:"Введите ваше имя",onboardingEmailPlaceholder:"Введите адрес электронной почты",onboardingPhonePlaceholder:"Введите номер телефона"},sr:{onboardingNamePlaceholder:"Унесите своје име",onboardingEmailPlaceholder:"Унесите своју адресу е-поште",onboardingPhonePlaceholder:"Унесите свој број телефона"},sk:{onboardingNamePlaceholder:"Zadajte svoje meno",onboardingEmailPlaceholder:"Zadajte svoju e-mailovú adresu",onboardingPhonePlaceholder:"Zadajte svoje telefónne číslo"},sl:{onboardingNamePlaceholder:"Vnesite svoje ime",onboardingEmailPlaceholder:"Vnesite svoj e-poštni naslov",onboardingPhonePlaceholder:"Vnesite svojo telefonsko številko"},sv:{onboardingNamePlaceholder:"Ange ditt namn",onboardingEmailPlaceholder:"Ange din e-postadress",onboardingPhonePlaceholder:"Ange ditt telefonnummer"},th:{onboardingNamePlaceholder:"กรุณากรอกชื่อของคุณ",onboardingEmailPlaceholder:"กรุณากรอกอีเมลของคุณ",onboardingPhonePlaceholder:"กรุณากรอกหมายเลขโทรศัพท์ของคุณ"},tr:{onboardingNamePlaceholder:"Lütfen adınızı girin",onboardingEmailPlaceholder:"Lütfen e-posta adresinizi girin",onboardingPhonePlaceholder:"Lütfen telefon numaranızı girin"},uk:{onboardingNamePlaceholder:"Введіть ваше ім’я",onboardingEmailPlaceholder:"Введіть вашу адресу електронної пошти",onboardingPhonePlaceholder:"Введіть ваш номер телефону"},ur:{onboardingNamePlaceholder:"براہ کرم اپنا نام درج کریں",onboardingEmailPlaceholder:"براہ کرم اپنا ای میل پتہ درج کریں",onboardingPhonePlaceholder:"براہ کرم اپنا فون نمبر درج کریں"},vi:{onboardingNamePlaceholder:"Vui lòng nhập tên của bạn",onboardingEmailPlaceholder:"Vui lòng nhập địa chỉ email của bạn",onboardingPhonePlaceholder:"Vui lòng nhập số điện thoại của bạn"}},Md=new Set(["ar","fa","he","ur","iw","prs"]);function Td(e){if(!e||"string"!=typeof e)return"en";const t=e.toLowerCase().split(/[-_]/)[0];return xd[t]?t:"en"}function Pd(e){const t=(e||"").toLowerCase().split(/[-_]/)[0];return Md.has(t)}const zd=/[\u0590-\u05ff\u0600-\u06ff\u0700-\u074f\u0750-\u077f\u08a0-\u08ff\ufb1d-\ufb4f\ufb50-\ufdff\ufe70-\ufeff]/,jd=/[A-Za-z\u00c0-\u024f\u0370-\u03ff\u0400-\u04ff]/;function Ed(e,t=!1){if("string"!=typeof e||0===e.length)return t;for(const t of e){if(zd.test(t))return!0;if(jd.test(t))return!1}return t}function Fd(e,t){const r=Td(e),n=xd[r]||kd,o=Sd[r];return o?.[t]??n[t]??Cd[r]?.[t]??Sd.en[t]??Cd.en[t]??kd[t]??t}function Ld(e){const t=Td(e);return e=>Fd(t,e)}const Nd=new Set(["NotAllowedError","PermissionDeniedError","SecurityError"]),Rd=new Set(["NotFoundError","DevicesNotFoundError","OverconstrainedError"]);function Ad(e){try{const t="string"==typeof e?.name?e.name:"";if(Nd.has(t))return"micDenied";if(Rd.has(t))return"micNotFound";const r="string"==typeof e?.message?e.message.toLowerCase():"";if(r.includes("permission denied")||r.includes("permission dismissed"))return"micDenied";if(r.includes("device not found")||r.includes("no microphone"))return"micNotFound"}catch{}return"voiceUnavailable"}function _d(e){return"human_reply"===e?.contentType||"handoff_ack"===e?.contentType||!0===e?.staffTurn}const Id=e=>e.replace(/([\u3000-\u303f\u3040-\u30ff\u3400-\u4dbf\u4e00-\u9fff\uff00-\uffef])\s+([\u3000-\u303f\u3040-\u30ff\u3400-\u4dbf\u4e00-\u9fff\uff00-\uffef])/g,"$1$2"),Bd=/^(https?|mailto|tel):/i,Dd=e=>{const t=(e||"").trim();return t?/^https?:\/\//i.test(t)||Bd.test(t)?t:/^[a-z][a-z0-9+.-]*:/i.test(t)?"":`https://${t.replace(/^\/+/,"")}`:""},Od=(...e)=>e.filter(Boolean).join(" "),Ud={fullname:0,name:0,username:0,email:1,phone:2,mobileno:2},Vd=e=>{if(!e)return 99;const t=String(e).toLowerCase();return Ud[t]??99},$d="eshal_chat_session",Hd="eshal_chat_session_messages";function qd(e,t=200,r=50){if(!Array.isArray(e))return[];("number"!=typeof t||t<=0)&&(t=200),("number"!=typeof r||r<=0||r>=t)&&(r=Math.min(50,t-1));let n=e;for(;n.length>t;)n=n.slice(r);return n}const Wd=(e,t,r,n)=>{if(e&&t)try{const o=n?.cap,a=n?.trimBatch,i=function(e){return Array.isArray(e)?e.filter(e=>e&&!e.isWelcome&&(e.content||Array.isArray(e.sources)&&e.sources.length>0||Array.isArray(e.attachments)&&e.attachments.length>0)).map(e=>({id:e.id,role:e.role,content:e.content,timestamp:e.timestamp instanceof Date?e.timestamp.toISOString():"string"==typeof e.timestamp?e.timestamp:(new Date).toISOString(),type:e.type??null,...Array.isArray(e.sources)&&e.sources.length>0?{sources:e.sources}:{},...void 0!==e.feedback?{feedback:e.feedback}:{},...Array.isArray(e.prompts)&&e.prompts.length>0?{prompts:e.prompts}:{},...Array.isArray(e.attachments)&&e.attachments.length>0?{attachments:e.attachments.filter(e=>e&&(e.filename||e.storageKey)).map(e=>({filename:e.filename,mimeType:e.mimeType,size:e.size,storageKey:e.storageKey,url:e.url}))}:{}})):[]}(qd(r,o,a));localStorage.setItem(`${Hd}_${e}_${t}`,JSON.stringify(i))}catch{}},Kd=(e,t)=>{if(e&&t)try{localStorage.removeItem(`${Hd}_${e}_${t}`)}catch{}},Qd=(e,t)=>{if(null==e||!t)return null;const r={MINUTES:6e4,HOURS:36e5,DAYS:864e5}[t.toUpperCase()];return void 0===r?null:Number(e)*r},Yd=e=>{try{const t=localStorage.getItem(`${$d}_${e}`);return t?JSON.parse(t):null}catch{return null}},Gd=(e,t,r)=>{if(!e||!e.lastActivity)return!1;if(null==t||0===t)return!0;if(null!==t&&null!==r){const n=JSON.stringify({value:t,unit:r?.toUpperCase()});if(e.settingsSnapshot&&e.settingsSnapshot!==n)return!1}if(null===e.firstInteractionAt)return!0;const n=Qd(t,r);if(!n)return!0;const o=new Date(e.lastActivity).getTime(),a=Date.now()-o<n;return a},Jd=(e,t,r={})=>{try{const n=(new Date).toISOString();localStorage.setItem(`${$d}_${e}`,JSON.stringify({conversationId:t,lastActivity:n,createdAt:n,firstInteractionAt:null,...r}))}catch{}},Xd=e=>{try{const t=Yd(e);if(!t)return;const r=(new Date).toISOString();t.lastActivity=r,t.firstInteractionAt||(t.firstInteractionAt=r),localStorage.setItem(`${$d}_${e}`,JSON.stringify(t))}catch{}},Zd=e=>{try{return Yd(e)?.onboardingName??""}catch{return""}},eg=(e,t)=>{try{if(!e)return;if(!Array.isArray(t)||0===t.length)return void localStorage.removeItem(`${$d}_prompts_${e}`);localStorage.setItem(`${$d}_prompts_${e}`,JSON.stringify(t))}catch{}};function tg(e){return null==e?"":String(e)}function rg(e,t){const r=tg(e),n=tg(t).trim();if(!n||!r.trim())return r;const o=function(e){return tg(e).trim().split(/\s+/).filter(Boolean).map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join(" ")}(n);if(new RegExp("^\\s*(?:hi|hey|hello)\\s+"+o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"\\b","i").test(r))return r;const a=r.match(/^\s*(hi|hey|hello)(?:\s+there)?\s*([-,!.:;]+)?\s*/i);if(a){const e=a[1],t=void 0!==a[2]?a[2]:",",n=r.slice(a[0].length);return e+" "+o+t+(n?" "+n:"")}return"Hi "+o+", "+r}const ng=new Set(["fullname","name","username"]);const og=(e,t)=>{const r=(Array.isArray(t)?t:[]).filter(e=>e&&"string"==typeof e.url&&e.url).map(e=>`[${String(e.filename||"Attachment").replace(/[[\]]/g,"")}](${e.url})`);return 0===r.length?e:[String(e??"").trim(),...r].filter(Boolean).join("\n\n")},ag=({id:e,role:t,content:r,isProcessing:n=!1,isError:o=!1,metadata:a,attachments:i})=>({id:e,role:t,content:r,timestamp:new Date,isProcessing:n,...o?{isError:!0}:{},metadata:a,...Array.isArray(i)&&i.length>0?{attachments:i}:{}}),ig=(e,t)=>{const r=[...e.map(e=>({...e,metadata:e.metadata||{source:"sse"}})),...t];return Array.from(new Map(r.map(e=>[e.id,e])).values()).sort((e,t)=>(e.timestamp instanceof Date?e.timestamp.getTime():new Date(e.timestamp).getTime())-(t.timestamp instanceof Date?t.timestamp.getTime():new Date(t.timestamp).getTime()))};function sg(){return`widget-session-${"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():`${Date.now()}-${Math.random().toString(36).slice(2)}`}`}function lg(){return"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(16)}-${Math.random().toString(16).slice(2,14)}`}const cg=e=>e&&e.length>0?e:[],ug=({welcomeMessage:e,fallbackMessage:t,quickQuestions:r=[],apiBaseUrl:n,wsBaseUrl:o,apiKey:a,organizationId:i,getAuthToken:s,autoOpen:l,openDelay:c,darkMode:u,enableVoiceInteraction:d=!1,provideCitations:g=!0,onboardingQuestions:p=[],onboardingEnabled:f=!1,collectionPrompt:h,inactivityTimeoutValue:m,inactivityTimeoutUnit:b,messageLimits:y,locale:v="en"})=>{const w=I.useMemo(()=>Ld(v),[v]),k=I.useMemo(()=>({cap:"number"==typeof y?.cap&&y.cap>0?y.cap:200,trimBatch:"number"==typeof y?.trimBatch&&y.trimBatch>0?y.trimBatch:50}),[y?.cap,y?.trimBatch]),[x,C]=I.useState(l),[S,M]=I.useState(!1),[T,P]=I.useState(u),[z,j]=I.useState(()=>{try{const e=Yd(i);if(void 0!==m&&e&&Gd(e,m,b))return[]}catch{}if(!e)return[];let t=e;try{t=rg(e,Zd(i))}catch{}return[{...ag({id:Date.now().toString(),role:"assistant",content:t}),isWelcome:!0}]}),[E,F]=I.useState(""),L=I.useRef(""),N=I.useCallback(e=>{const t="function"==typeof e?e(L.current):e;L.current=t,F(t)},[]),[R,A]=I.useState(!1),_=I.useRef(null),B=I.useRef(null),D=I.useRef(1),[O,U]=I.useState(null),[V,$]=I.useState(null),H=I.useRef(null);I.useEffect(()=>{H.current=V},[V]);const[q,W]=I.useState(null),K=I.useRef(null);I.useEffect(()=>{K.current=q},[q]);const[Q,Y]=I.useState(!1),[G,J]=I.useState(()=>{try{const e=Yd(i);if(e&&e.onboardingCompleted)return!0}catch{}return!1}),[X,Z]=I.useState(()=>{try{return Zd(i)||""}catch{return""}}),ee=I.useMemo(()=>rg(e,X),[e,X]),[te,re]=I.useState(null),[ne,oe]=I.useState({}),ae=I.useRef(!1),ie=I.useRef(!1),se=I.useRef(0),[le,ce]=I.useState(!1),[ue,de]=I.useState(!1),[ge,pe]=I.useState([]),[fe,he]=I.useState("idle"),[me,be]=I.useState(null),[ye,ve]=I.useState(!1),[we,ke]=I.useState(()=>{try{const e=Yd(i);if(void 0!==m&&e&&Gd(e,m,b))return e.conversationId}catch{}return sg()}),xe=I.useRef(()=>{}),Ce=I.useRef(null),Se=I.useRef(null),[Me,Te]=I.useState(!1),[Pe,ze]=I.useState(null),je=I.useRef(!1),Ee=I.useCallback(()=>{je.current=!0,Te(!0)},[]),Fe=I.useCallback(()=>{je.current=!1,Te(!1)},[]),Le=I.useRef(null),Ne=I.useRef(null),Re=I.useRef(null),Ae=I.useRef(!1),_e=I.useRef(null),Ie=I.useCallback(e=>{_e.current&&clearTimeout(_e.current),_e.current=null,Ae.current&&(Ae.current=!1,Ne.current?.port.postMessage({command:"resume"===e?"resume":"endOfAudio"}))},[]),Be=I.useRef(null),De=I.useRef(null),Oe=I.useRef(null),Ue=I.useRef(null),Ve=I.useRef(null),$e=I.useRef(null),He=I.useRef(null),qe=I.useRef(null),We=I.useRef(!1),Ke=I.useRef(!1);I.useRef(null);const Qe=I.useRef(null);I.useRef(null);const Ye=I.useRef(!1),Ge=I.useRef(null),Je=I.useRef(!1),Xe=I.useRef(!1),Ze=I.useRef(null),et=I.useRef(null),tt=I.useRef(null),rt=I.useRef(null),nt=I.useRef(null),ot=I.useCallback(e=>{if(!e)return;const t=new Date(e).getTime();if(!Number.isFinite(t))return;t>(nt.current?new Date(nt.current).getTime():-1/0)&&(nt.current=new Date(t).toISOString())},[]),at=I.useCallback(e=>{if(Array.isArray(e)&&0!==e.length){for(const t of e)ot(t?.createdAt);j(t=>{const r=new Set(t.map(e=>e.id)),n=e.filter(e=>e&&e.id&&!r.has(e.id)).map(e=>({...ag({id:e.id,role:e.role||"assistant",content:og(e.content,e.attachments),isProcessing:!1,metadata:{senderName:e.senderName}}),timestamp:e.createdAt?new Date(e.createdAt):new Date}));if(0===n.length)return t;const o=e=>{const t=e.timestamp instanceof Date?e.timestamp.getTime():new Date(e.timestamp).getTime();return Number.isFinite(t)?t:0},a=[...t,...n];return a.sort((e,t)=>o(e)-o(t)),a})}},[ot]),it=I.useCallback(async()=>{if(n&&we)try{const e={};if("function"==typeof s){const t=await s();t&&(e.Authorization=`Bearer ${t}`)}const t=nt.current,r=`${n.replace(/\/$/,"")}/api/v1/widget/history/${encodeURIComponent(we)}`+(t?`?since=${encodeURIComponent(t)}`:""),o=await fetch(r,{headers:e,credentials:"include"});if(o.status===td)return void xe.current(null);if(!o.ok)return;const a=await o.json(),i=Array.isArray(a?.messages)?a.messages:[];at(i.filter(_d))}catch{}},[n,we,s,at]),st=I.useCallback(async e=>{if(Se.current)return void(e&&e());if(!n||!we)return;let t=`${n.replace(/\/$/,"")}/api/v1/widget/events/${encodeURIComponent(we)}`;if("function"==typeof s)try{const e=await s();e&&(t+=`${t.includes("?")?"&":"?"}token=${encodeURIComponent(e)}`)}catch{}if(Se.current)return void(e&&e());const r=new EventSource(t);r.onmessage=e=>{try{const t=JSON.parse(e.data);if("csat_request"===t.type&&t.csat)return void ze(t.csat);if("conversation_erased"===t.type)return r.close(),Se.current===r&&(Se.current=null),void xe.current(null);if("message_created"===t.type&&t.message){ot(t.message.createdAt);const e=function(e){return"ai"===e?.responder||"human"===e?.responder?e.responder:null}(t.message);"ai"===e?Fe():"human"===e&&Ee(),j(e=>e.some(e=>e.id===t.message.id)?e:[...e,ag({id:t.message.id,role:t.message.role||"assistant",content:og(t.message.content,t.message.attachments),isProcessing:!1,metadata:{senderName:t.message.senderName}})])}}catch{}},r.onopen=()=>{it(),e&&e()},r.onerror=()=>{},Se.current=r},[n,we,s,it,Fe,Ee]);I.useEffect(()=>()=>{Se.current&&(Se.current.close(),Se.current=null)},[]);const lt=I.useMemo(()=>{if(!i)return null;const e=((e,t)=>{if(t)return t.replace(/\/$/,"");if(!e)return"wss://dev.eshal.ai/voice/ws";try{const t=new URL(e);return t.protocol=t.protocol.replace(/^http/,"ws"),t.pathname="/voice/ws",t.toString().replace(/\/$/,"")}catch(e){return"wss://dev.eshal.ai/voice/ws"}})(n,o);return`${e}/${i}/${we}`},[n,o,i,we]),ct=I.useCallback(()=>{const e=`msg-${D.current}`;return D.current+=1,e},[]);I.useEffect(()=>{if(l&&c>0){const e=setTimeout(()=>C(!0),c);return()=>clearTimeout(e)}},[l,c]),I.useEffect(()=>{let e=!1;return(async()=>{try{const{default:t}=await Promise.resolve().then(function(){return Lh}),r=new t({cache:!0,geoFromBrowser:!1,preferredProvider:"ipwho.is",onError:()=>{}}),n=await r.init();if(e)return;if(n?.fingerprintId&&(tt.current=n.fingerprintId),n?.geo||n?.ip){const e=n.geo||{};rt.current={ip:n.ip||e.ip||null,country:e.country||null,countryCode:e.countryCode||null,region:e.region||null,city:e.city||null,timezone:e.timezone||null}}}catch{}})(),()=>{e=!0}},[]),I.useEffect(()=>{P(u)},[u]);const ut=I.useRef(!1),dt=I.useRef(!1),gt=I.useRef(!1),pt=I.useRef({value:null,unit:null}),[ft,ht]=I.useState(!1);I.useEffect(()=>{if(!i||!we||void 0===m)return;const t=Yd(i);if(t&&Gd(t,m,b)){if(we!==t.conversationId)return void ke(t.conversationId);if(!ut.current){ut.current=!0;const t=((e,t)=>{if(!e||!t)return[];try{const r=localStorage.getItem(`${Hd}_${e}_${t}`);if(!r)return[];const n=JSON.parse(r);return Array.isArray(n)?n.map(e=>({...e,timestamp:e.timestamp?new Date(e.timestamp):new Date})):[]}catch{return[]}})(i,we);if(t.length>0){if(dt.current=!0,e){const e=t[0]?.timestamp,r=e instanceof Date?e.getTime():e?new Date(e).getTime():Date.now(),n={...ag({id:"welcome-restored",role:"assistant",content:ee}),isWelcome:!0,timestamp:new Date(r-1)};j([n,...t])}else j(t);const r=t.some(e=>"assistant"===e.role&&Array.isArray(e.prompts)&&e.prompts.length>0);if(!r){const e=(e=>{try{const t=localStorage.getItem(`${$d}_prompts_${e}`);return t&&JSON.parse(t)||[]}catch{return[]}})(i);e.length>0&&j(t=>{const r=[...t];for(let t=r.length-1;t>=0;t-=1)if("assistant"===r[t].role){r[t]={...r[t],prompts:e};break}return r})}}}}else if(ut.current||(ut.current=!0),t&&we===t.conversationId){const e=sg();Kd(i,we),ke(e)}else t?.conversationId&&t.conversationId!==we&&Kd(i,t.conversationId),t&&t.conversationId===we||Jd(i,we,{settingsSnapshot:JSON.stringify({value:m,unit:b?.toUpperCase()})})},[i,we,n,m,b]);const mt=I.useRef(null);I.useEffect(()=>{if(!n||!i||!we)return;if(mt.current===we)return;mt.current=we;let e=!1;return(async()=>{try{const t={};if("function"==typeof s){const e=await s();e&&(t.Authorization=`Bearer ${e}`)}const r=await fetch(`${n.replace(/\/$/,"")}/api/v1/widget/history/${encodeURIComponent(we)}`,{headers:t,credentials:"include"});if(e)return;if(r.status===td)return void xe.current(null);if(!r.ok)return;const o=await r.json(),a=(Array.isArray(o?.messages)?o.messages:[]).filter(_d);!e&&o?.csatRequest&&ze(o.csatRequest),e||at(a),e||"human"!==o?.responder||(Ee(),st())}catch{}})(),()=>{e=!0}},[n,i,we,s,st,Ee,at]),I.useEffect(()=>{if(i&&z&&0!==z.length)for(let e=z.length-1;e>=0;e-=1){const t=z[e];if("assistant"===t?.role&&Array.isArray(t.prompts)&&t.prompts.length>0)return void eg(i,t.prompts)}},[z,i]),I.useEffect(()=>{le||R||z.length<=k.cap||j(e=>qd(e,k.cap,k.trimBatch))},[z.length,le,R,k.cap,k.trimBatch]),I.useEffect(()=>{i&&we&&(le||R||Wd(i,we,ig(z,ge),k))},[z,ge,i,we,le,R,k]),I.useEffect(()=>{if(!f||G)return;cg(p).length>0&&Y(!0)},[f,G,p]),I.useEffect(()=>{e&&!dt.current&&j(e=>{if(!e.length)return[{...ag({id:Date.now().toString(),role:"assistant",content:ee}),isWelcome:!0}];const[t,...r]=e;return t.isWelcome?[{...t,content:ee},...r]:e})},[e,ee]),I.useCallback(e=>{j(t=>t.map(t=>t.id===e.id?{...t,...e.update(t)}:t))},[]);const bt=I.useCallback((e,t={})=>{if(!e)return;const r=t.replaceMarker||null;j(t=>{const n=r?(t||[]).filter(e=>e?.metadata?.synthesizedKind!==r):t||[];return[...n,ag({id:ct(),role:"assistant",content:e,metadata:r?{synthesizedKind:r}:void 0})]})},[ct]),yt=I.useCallback(()=>{try{_.current&&_.current.abort()}catch{}},[]),vt=I.useCallback(async(e,r,o)=>{const a=String(e??"").trim(),l=Array.isArray(o?.attachments)?o.attachments:[],c=o?.userMessageId||lg(),u=o?.assistantMessageId||lg();if(!a&&0===l.length)return{success:!1,error:"Message cannot be empty"};if(ie.current)return{success:!1,error:"A message is already being sent"};ie.current=!0;const d=se.current+=1,p=()=>{se.current===d&&(A(!1),ie.current=!1)};if("Connect with a human representative"===a){const e=async()=>{if(n&&we){const e={"Content-Type":"application/json"};if("function"==typeof s){const t=await s();t&&(e.Authorization=`Bearer ${t}`)}fetch(`${n.replace(/\/$/,"")}/api/v1/widget/handoff/${encodeURIComponent(we)}`,{method:"POST",headers:e,credentials:"include",body:JSON.stringify({reason:"User clicked handoff button"})}).then(e=>{e.status===td&&xe.current(null)}).catch(()=>{})}};Ee(),st(e)}if(r&&!["inquiry","complaint","technical"].includes((r||"").toLowerCase())||(K.current=a,W(a)),!n)return ie.current=!1,j(e=>[...e||[],ag({id:ct(),role:"assistant",content:w("connectionError"),isProcessing:!1,isError:!0})]),{success:!1,error:"API base URL is required"};const f=["inquiry","complaint","technical","userName","email","phone","fullname","mobileno"];let h="inquiry";if(r){const e=r.toLowerCase();"fullname"===e||"name"===e?h="userName":"email"===e?h="email":"phone"===e||"mobileno"===e?h="phone":f.includes(e)&&(h=e)}let m=null;const b=(e,t)=>{null!=e&&j(r=>(r||[]).map(r=>r.id===e?{...r,status:t}:r))};if("inquiry"===h||"complaint"===h||"technical"===h){m=ct();const e={...ag({id:m,role:"user",content:a,...l.length?{attachments:l}:{}}),userMessageId:c,assistantMessageId:u};j(t=>{const r=(t||[]).map(e=>"assistant"===e.role&&e.prompts?.length?{...e,prompts:void 0}:e);return o&&o.skipUserAppend?r:[...r,e]}),N(""),je.current||A(!0)}else N("");try{const e={message:a,type:h,conversationId:we,userMessageId:c,assistantMessageId:u,enable_citation:g??!0,channel:"WIDGET",...tt.current?{fingerprintId:tt.current}:{},...rt.current?{visitor:rt.current}:{},...O&&(O.category||O.tags&&O.tags.length)?{filter:O}:{},...H.current?{routing:H.current}:{},...l.length?{attachments:l}:{},...o?.toolConfirmation?{tool_confirmation:o.toolConfirmation}:{},messageHistory:z.filter(e=>!e.isProcessing&&e.content&&e.content.trim()&&!["userName","email","phone"].includes(e.type)).map(e=>{let t;return t=e.timestamp instanceof Date?e.timestamp.toISOString():"string"==typeof e.timestamp?e.timestamp:e.timestamp?new Date(e.timestamp).toISOString():(new Date).toISOString(),{id:e.id,role:e.role,content:e.content,timestamp:t,isProcessing:!1}})},t=[500,1500];if("userName"===h||"email"===h||"phone"===h){const t=(await nd(e,n,s)).getReader(),r=new TextDecoder;for(;;){const{done:e,value:n}=await t.read();if(e)break;r.decode(n)}return{success:!0}}if(je.current&&("inquiry"===h||"complaint"===h||"technical"===h)){try{const t=(await nd(e,n,s)).getReader();for(;;){const{done:e}=await t.read();if(e)break}}catch(e){if(e instanceof rd)throw e;return b(m,"failed"),{success:!1,error:e instanceof Error?e.message:"Failed to send message"}}return b(m,"sent"),Xd(i),{success:!0}}if("inquiry"===h||"complaint"===h||"technical"===h){let r;for(let o=0;o<=t.length;o+=1)try{_.current=new AbortController;const t=await nd(e,n,s,_.current.signal);return await gd(t,j,p,()=>{Ee(),st()}),b(m,"sent"),Xd(i),{success:!0}}catch(e){if(r=e,e&&"AbortError"===e.name)return j(e=>(e||[]).filter(e=>!e.isProcessing)),b(m,"sent"),{success:!0,stopped:!0};if(e instanceof ed&&o<t.length){j(e=>(e||[]).filter(e=>!e.isProcessing));const e=t[o];await new Promise(t=>setTimeout(t,e));continue}throw e}throw r}return await nd(e,n,s),Xd(i),{success:!0}}catch(e){if(e instanceof rd){const e="inquiry"===h||"complaint"===h||"technical"===h;return xe.current(e?{text:a,attachments:l,sessionId:we}:null),{success:!1,error:"conversation_erased",erased:!0}}return"inquiry"!==h&&"complaint"!==h&&"technical"!==h||(A(!1),b(m,"failed"),j(e=>[...(e||[]).filter(e=>!e.isProcessing),ag({id:ct(),role:"assistant",content:t?.trim()||w("connectionError"),isProcessing:!1,isError:!0})])),{success:!1,error:e instanceof Error?e.message:"Failed to send message"}}finally{p()}},[n,a,ct,s,z,we,V,O,g]);I.useEffect(()=>{const e=Ce.current;e&&e.sessionId!==we&&(Ce.current=null,vt(e.text,void 0,{attachments:e.attachments}))},[we,vt]);const wt=I.useCallback(e=>e&&"failed"===e.status?(j(t=>(t||[]).filter(t=>t.id!==e.id)),vt(e.content,void 0,{attachments:e.attachments,userMessageId:e.userMessageId,assistantMessageId:e.assistantMessageId})):Promise.resolve({success:!1,error:"Nothing to retry"}),[vt]),kt=I.useCallback(async e=>{const t=cg(p);if(0===t.length)return;const r=function(e,t){if(!Array.isArray(e)||!t)return"";for(let r=0;r<e.length;r+=1){const n=e[r],o=n?n.fieldType:void 0,a=tg(o).toLowerCase();if(!ng.has(a))continue;const i=t[null==o?"":o];if("string"!=typeof i)continue;const s=i.trim();if(s)return s}return""}(t,e);Y(!1),J(!0),((e,t)=>{try{const r=Yd(e);if(!r)return;r.onboardingCompleted=!0;const n=(t??"").trim();n&&(r.onboardingName=n),localStorage.setItem(`${$d}_${e}`,JSON.stringify(r))}catch{}})(i,r),r&&Z(r),oe(t=>({...t,...e})),te&&!ae.current&&(ae.current=!0,N(te),re(null));const o=[...t].sort((e,t)=>Vd(e.fieldType)-Vd(t.fieldType)),a={};for(const t of o){const r=t.fieldType||"question",n=(e[r]??"").trim();n&&(a[r]=n)}if(Object.keys(a).length>0&&n&&we)try{await(async(e,{conversationId:t,organizationId:r},n,o)=>{const a={"Content-Type":"application/json"};if("function"==typeof o){const e=await o();e&&(a.Authorization=`Bearer ${e}`)}const i=await fetch(`${n.replace(/\/$/,"")}/api/v1/support/onboarding`,{method:"POST",headers:a,credentials:"include",body:JSON.stringify({conversationId:t,organizationId:r,answers:e})});if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);return i.json()})(a,{conversationId:we,organizationId:i},n,s)}catch(e){}},[p,te,i,n,we,s]),xt=I.useRef(null);I.useEffect(()=>{if(R||ie.current||!xt.current)return;const{text:e,attachments:t}=xt.current;xt.current=null;const r=Array.isArray(t)&&t.length>0;vt(e,void 0,r?{attachments:t}:void 0)},[R,vt]);const Ct=I.useCallback(async(e,t)=>{const r=String(e??L.current).trim(),n=Array.isArray(t)&&t.length>0;if(r||n)return ie.current?(xt.current={text:r,attachments:n?t:void 0},void N("")):void await vt(r,void 0,n?{attachments:t}:void 0)},[vt,N]),St=I.useCallback(async(e,t)=>{await Ct(e,t)},[Ct]),Mt=I.useCallback(async e=>{const t=e?.trim();t&&await vt(t)},[vt]),Tt=I.useCallback(async(e,t,r)=>{if(j(t=>t.filter(t=>t.decisionData?.decisionId!==e)),"routing-clarification"===e){const e=String(r||"").toLowerCase(),n="database"===t||"knowledge"===t?t:"database"===e||"knowledge"===e?e:null;if(n){H.current=n,$(n);const e=K.current;K.current=null,W(null),e&&e.trim()&&setTimeout(()=>{vt(e,"inquiry",{skipUserAppend:!0}).catch(e=>{})},0)}return}if("connect_agent"===r){const e=ag({id:ct(),role:"assistant",content:"Great! I'm setting up a connection with a live customer service agent. Please hold on for a moment while I transfer you."});j(t=>[...t,e])}else if("decline"===r){const e=ag({id:ct(),role:"assistant",content:"I understand. I apologize that I don't have specific information about your query in my knowledge base. Is there anything else I can help you with?"});j(t=>[...t,e])}},[ct,vt,q]);I.useCallback(()=>{He.current&&(pe(e=>e.map(e=>e.id===He.current?{...e,isProcessing:!1}:e)),He.current=null)},[]);const Pt=I.useCallback((e,t=!1)=>{if(Je.current=!0,!e||"string"==typeof e&&!e.trim())return void(t&&He.current&&(pe(e=>e.map(e=>e.id===He.current?{...e,isProcessing:!1}:e)),He.current=null));const r=Id(e);pe(e=>{const n=e.length;let o=[...e];if(He.current){const e=o.some(e=>e.id===He.current);if(e)o=o.map(e=>{if(e.id!==He.current)return e;const n=Id(`${e.content||""}${r}`);return{...e,content:n,isProcessing:!t,metadata:{...e.metadata,transcriptionType:"input"}}});else{const e=`bidi-input-${Date.now()}`;He.current=e;const n=ag({id:e,role:"user",content:r,isProcessing:!t,metadata:{source:"bidi",transcriptionType:"input"}});o=[...o,n]}}else{const n=`bidi-input-${Date.now()}`,a=e.filter(e=>"assistant"===e.role&&"bidi"===e.metadata?.source).sort((e,t)=>{const r=e.timestamp instanceof Date?e.timestamp.getTime():new Date(e.timestamp).getTime();return(t.timestamp instanceof Date?t.timestamp.getTime():new Date(t.timestamp).getTime())-r})[0];a&&(a.timestamp instanceof Date?a.timestamp.getTime():new Date(a.timestamp).getTime());const i=ag({id:n,role:"user",content:r,isProcessing:!t,metadata:{source:"bidi",transcriptionType:"input"}}),s=o.some(e=>e.id===n);s?(He.current=n,o=o.map(e=>e.id===n?{...e,content:`${e.content||""}${r}`,isProcessing:!t}:e)):(o=[...o,i],He.current=n)}return o.length<n?e:o}),t&&(He.current=null,A(!0))},[]),zt=I.useCallback((e,t=!1)=>{if(A(!1),!e||"string"==typeof e&&!e.trim())return void(t&&qe.current&&(pe(e=>e.map(e=>e.id!==qe.current?e:{...e,isProcessing:!1})),qe.current=null,Qe.current=null));const r=`${qe.current||"new"}-${e.substring(0,100)}-${t}`;if(Ye.current&&Ge.current===r)return;Ye.current=!0,Ge.current=r;const n=He.current;if(pe(r=>{const o=r.length;let a=[...r];if(n){const e=a.some(e=>e.id===n);e&&(a=a.map(e=>e.id===n?{...e,isProcessing:!1}:e))}if(qe.current){const r=a.some(e=>e.id===qe.current);if(r)a=a.map(r=>{if(r.id!==qe.current)return r;const n=`${r.content||""}${e}`;return{...r,content:n,isProcessing:!t,...Array.isArray(et.current)&&et.current.length>0?{sources:et.current}:{}}}),Array.isArray(et.current)&&et.current.length>0&&(et.current=null);else{const r=`bidi-assistant-${Date.now()}`;qe.current=r;const n=ag({id:r,role:"assistant",content:e,isProcessing:!t,metadata:{source:"bidi"}});Array.isArray(et.current)&&et.current.length>0&&(n.sources=et.current,et.current=null),a=[...a,n]}}else{const r=`bidi-assistant-${Date.now()}`,n=ag({id:r,role:"assistant",content:e,isProcessing:!t,metadata:{source:"bidi"}});Array.isArray(et.current)&&et.current.length>0&&(n.sources=et.current,et.current=null);const o=a.some(e=>e.id===r);o?(a=a.map(n=>n.id===r?{...n,content:`${n.content||""}${e}`,isProcessing:!t,...Array.isArray(et.current)&&et.current.length>0?{sources:et.current}:{}}:n),Array.isArray(et.current)&&et.current.length>0&&(et.current=null),qe.current=r):(a=[...a,n],qe.current=r)}return a.length<o?r:a}),n&&(He.current=null),t)qe.current=null,Qe.current=null;else{const e=updateKey;Promise.resolve().then(()=>{Qe.current===e&&(Qe.current=null)})}},[]),jt=I.useCallback((e,t=!1,r=!1)=>{if(!e||!Array.isArray(e))return;let n="";e.forEach((e,t)=>{e.inlineData?.data&&e.inlineData.mimeType?.startsWith("audio/pcm")&&Ne.current&&Ne.current.port.postMessage((e=>{if("undefined"==typeof window)return new ArrayBuffer(0);let t=e.replace(/-/g,"+").replace(/_/g,"/");for(;t.length%4!=0;)t+="=";const r=window.atob(t),n=r.length,o=new Uint8Array(n);for(let e=0;e<n;e+=1)o[e]=r.charCodeAt(e);return o.buffer})(e.inlineData.data)),!r&&e.text&&(n+=e.text)}),n&&zt(n,t)},[zt]),Et=I.useCallback(()=>{A(!1),pe(e=>e.map(e=>"bidi"===e.metadata?.source&&e.isProcessing?{...e,isProcessing:!1}:e)),qe.current=null,He.current=null,Xe.current=!1,et.current=null},[]),Ft=I.useCallback(()=>{A(!1),Ne.current&&Ne.current.port.postMessage({command:"endOfAudio"}),qe.current=null,He.current=null,et.current=null,pe(e=>e.map(e=>"bidi"===e.metadata?.source?{...e,isProcessing:!1,metadata:{...e.metadata,interrupted:!0}}:e))},[]),Lt=I.useCallback(()=>{de(!1),A(!1),Ke.current=!1,he("idle"),be(null),Je.current=!1,et.current=null,_e.current&&clearTimeout(_e.current),_e.current=null,Ae.current=!1,Ve.current&&(clearTimeout(Ve.current),Ve.current=null);const e=Le.current;if(Le.current=null,e&&e.readyState!==WebSocket.CLOSED)try{e.close()}catch{}Ne.current?.disconnect(),Re.current?.close(),Ne.current=null,Re.current=null,Be.current?.disconnect(),De.current?.close(),Be.current=null,De.current=null,vd(Oe.current),Oe.current=null,Ue.current?.reset(),Ue.current=null,We.current=!1},[]),Nt=I.useCallback(e=>{if(!e)return;e.error&&be("voiceUnavailable");const t=function(e){if(!e)return null;if(e.interrupted)return"discard";const t=e.inputTranscription;return t?String(t.text??"").trim()?"discard":t.finished?"resume":null:null}(e);t&&Ie(t);const r=e.conclusion_detected??e.conclusionDetected;if("boolean"==typeof r&&r&&(Ze.current?.(),ve(!0)),"boolean"==typeof r&&r)return Lt(),void pe(e=>{const t=[...e];for(let e=t.length-1;e>=0;e--)if("assistant"===t[e].role){t[e]={...t[e],conclusionDetected:!0};break}return t});if(e.interrupted)return void Ft();if(e.inputTranscription){const t=e.inputTranscription.text||"",r=Boolean(e.inputTranscription.finished);(t||r)&&(Xd(i),Pt(t,r))}const n=e.sources??e.Sources;if(Array.isArray(n)&&n.length>0){const e=n.map(e=>({source_type:e.source_type??e.sourceType??"file",source_id:e.source_id??e.sourceid??e.sourceId,source_name:e.source_name??e.sourceName??"",url:e.url,citation_indices:e.citation_indices??e.citationIndices})).filter(e=>e.source_id||e.url||"database"===e.source_type);if(0===e.length)return;pe(t=>{const r=[...t];let n=!1;for(let t=r.length-1;t>=0;t--)if("assistant"===r[t].role){r[t]={...r[t],sources:e},n=!0;break}return n||(et.current=e),r})}const o=e.finalTranscript??e.finaltranscript;if(o&&"string"==typeof o.text){const e=o.text;return void(e&&pe(t=>{const r=[...t];for(let t=r.length-1;t>=0;t--)if("assistant"===r[t].role){r[t]={...r[t],content:e,isProcessing:!1};break}return r}))}if(Je.current||!e.outputTranscription?.text&&!e.content?.parts){if(e.outputTranscription?.text&&(Xe.current=!0,zt(e.outputTranscription.text,Boolean(e.outputTranscription.finished))),e.content?.parts){const t=e.content?.finished||e.finished||!1;jt(e.content.parts,t,Xe.current)}if(e.prompts&&Array.isArray(e.prompts)&&e.prompts.length>0){pe(t=>{const r=[...t];for(let t=r.length-1;t>=0;t--)if("assistant"===r[t].role){r[t]={...r[t],prompts:e.prompts};break}return r});try{eg(i,e.prompts)}catch(e){}}e.turnComplete?Et():e.interrupted||e.inputTranscription||e.outputTranscription||e.content||e.prompts}else e.turnComplete&&Et()},[zt,Pt,jt,Ft,Et,Lt,Ie]),Rt=I.useCallback(e=>{if(!Ke.current)return;const t=Ue.current;if(t)return void t.process(e);const r=Le.current;r&&r.readyState===WebSocket.OPEN&&r.send(e)},[]),At=I.useCallback(async()=>{if(!We.current&&"undefined"!=typeof window)try{const[e,t]=await async function(){if("undefined"==typeof window)throw new Error("Audio player can only be initialized in the browser");const e=new AudioContext({sampleRate:24e3}),t=new Blob(["\n class PCMPlayerProcessor extends AudioWorkletProcessor {\n constructor() {\n super();\n this.bufferSize = 24000 * 180;\n this.buffer = new Float32Array(this.bufferSize);\n this.writeIndex = 0;\n this.readIndex = 0;\n // Paused while the caller may be speaking over the reply (lib/audio/bargeIn.js).\n this.paused = false;\n this.port.onmessage = (event) => {\n const command = event.data?.command;\n if (command === 'endOfAudio') {\n this.readIndex = this.writeIndex;\n this.paused = false;\n return;\n }\n if (command === 'pause') {\n this.paused = true;\n return;\n }\n if (command === 'resume') {\n this.paused = false;\n return;\n }\n const int16Samples = new Int16Array(event.data);\n this.enqueue(int16Samples);\n };\n }\n\n enqueue(samples) {\n for (let i = 0; i < samples.length; i += 1) {\n const floatVal = samples[i] / 32768;\n this.buffer[this.writeIndex] = floatVal;\n this.writeIndex = (this.writeIndex + 1) % this.bufferSize;\n if (this.writeIndex === this.readIndex) {\n this.readIndex = (this.readIndex + 1) % this.bufferSize;\n }\n }\n }\n\n process(inputs, outputs) {\n const output = outputs[0];\n const framesPerBlock = output[0].length;\n for (let frame = 0; frame < framesPerBlock; frame += 1) {\n // Silence when paused or with nothing buffered.\n const playing = !this.paused && this.readIndex !== this.writeIndex;\n const sample = playing ? this.buffer[this.readIndex] : 0;\n output[0][frame] = sample;\n if (output.length > 1) {\n output[1][frame] = sample;\n }\n if (playing) {\n this.readIndex = (this.readIndex + 1) % this.bufferSize;\n }\n }\n return true;\n }\n }\n\n registerProcessor('pcm-player-processor', PCMPlayerProcessor);\n "],{type:"application/javascript"}),r=URL.createObjectURL(t);await e.audioWorklet.addModule(r);const n=new AudioWorkletNode(e,"pcm-player-processor");return n.connect(e.destination),URL.revokeObjectURL(r),[n,e]}();Ne.current=e,Re.current=t,await t.resume();const r=e=>{const t=Le.current;t&&t.readyState===WebSocket.OPEN&&t.send(e)};Ue.current=yd({sampleRate:16e3},{onSpeechStart:()=>{Ne.current?.port.postMessage({command:"pause"}),Ae.current=!0,_e.current&&clearTimeout(_e.current),_e.current=null;const e=Le.current;e&&e.readyState===WebSocket.OPEN&&e.send(JSON.stringify({type:"interrupt"}))},onVoiceFrame:r,onSpeechEnd:()=>{const e=Le.current;e&&e.readyState===WebSocket.OPEN&&e.send(JSON.stringify({type:"audio_end"})),Ae.current&&(_e.current&&clearTimeout(_e.current),_e.current=setTimeout(()=>Ie("resume"),4e3))}});const[n,o,a]=await wd(Rt);Be.current=n,De.current=o,Oe.current=a,await o.resume(),We.current=!0}catch(e){throw e}},[Rt,Ie]),_t=I.useCallback(async()=>{if("undefined"==typeof window||!lt)return;if(Le.current&&Le.current.readyState===WebSocket.OPEN)return;let e;he("connecting"),be(null);try{const t={"Content-Type":"application/json"};if("function"==typeof s){const e=await s();e&&(t.Authorization=`Bearer ${e}`)}const r=await fetch(`${n.replace(/\/$/,"")}/api/v1/widget/voice-ticket`,{method:"POST",headers:t,credentials:"include",body:JSON.stringify({sessionId:we})});if(!r.ok)throw new Error(`voice-ticket ${r.status}`);if(e=(await r.json())?.ticket,!e)throw new Error("voice-ticket returned no ticket")}catch(e){return he("error"),void be(Ad(e))}try{const t=new WebSocket(`${lt}?ticket=${encodeURIComponent(e)}`);Le.current=t,t.onopen=()=>{he("connected")},t.onmessage=e=>{try{"string"==typeof e.data&&e.data.substring(0,200);const t=JSON.parse(e.data);t&&"AI_CREDITS_EXHAUSTED"===t.code&&"string"==typeof t.fallbackMessage&&t.fallbackMessage.trim()&&($e.current=t.fallbackMessage.trim()),Nt(t)}catch(e){}},t.onerror=()=>{he("error"),be("voiceUnavailable"),A(!1)},t.onclose=e=>{if(Le.current===t){if(Le.current=null,he("idle"),A(!1),e&&1008===e.code)return Ke.current=!1,de(!1),he("error"),be("voiceUnavailable"),void(()=>{const e=$e.current;$e.current=null,e&&j(t=>{const r=[...t].reverse().find(e=>"assistant"===e.role);return r&&"string"==typeof r.content&&r.content.trim()===e?t:[...t,ag({id:ct(),role:"assistant",content:e})]})})();Ke.current&&(Ve.current&&clearTimeout(Ve.current),Ve.current=setTimeout(()=>{Ve.current=null,_t()},5e3))}}}catch(e){he("error"),be(Ad(e))}},[Nt,lt,n,we,s]),It=I.useCallback(async()=>{if(d&&i){be(null),he(e=>"connected"===e?e:"connecting"),de(!0),Ke.current=!0,ve(!1),Je.current=!1,pe(t=>{if(t.length>0||z.length>0)return t;if(!e||""===e.trim())return[];return[ag({id:`bidi-welcome-${Date.now()}`,role:"assistant",content:ee,metadata:{source:"bidi"}})]}),_t();try{await At()}catch(e){be(Ad(e)),he("error")}}},[d,i,e,ee,_t,At,z]),Bt=I.useCallback(()=>{ue?Lt():"connecting"!==fe&&It()},[ue,It,Lt,fe]),Dt=I.useCallback(e=>{const t=e.trim();if(!t)return;Je.current=!0;const r=Le.current;if(!r||r.readyState!==WebSocket.OPEN)return void be("voiceUnavailable");r.send(JSON.stringify({type:"text",text:t})),Xd(i),A(!0);const n=ag({id:`bidi-user-${Date.now()}`,role:"user",content:t,metadata:{source:"bidi"}});pe(e=>[...e,n]),N("")},[]);I.useEffect(()=>{Ke.current=ue},[ue]),I.useEffect(()=>()=>{Ke.current=!1,Ve.current&&(clearTimeout(Ve.current),Ve.current=null);const e=Le.current;if(Le.current=null,e&&e.readyState!==WebSocket.CLOSED)try{e.close()}catch{}Ue.current?.reset(),Ue.current=null,Ne.current?.disconnect(),Re.current?.close(),Be.current?.disconnect(),De.current?.close(),vd(Oe.current),Oe.current=null,We.current=!1},[]);const Ot=I.useCallback(()=>{(e=>{try{const t=Yd(e);localStorage.removeItem(`${$d}_${e}`),t?.conversationId&&Kd(e,t.conversationId)}catch{}})(i),eg(i,[]),U(null),$(null),W(null),H.current=null,K.current=null,j([]),pe([]),ze(null),Kd(i,we),Y(!1),J(!1),oe({}),Z(""),re(null),ae.current=!1,Je.current=!1,ut.current=!1,dt.current=!1,je.current=!1,Te(!1),mt.current=null,nt.current=null,Se.current&&(Se.current.close(),Se.current=null);const t=sg();if(Jd(i,t,{settingsSnapshot:JSON.stringify({value:m,unit:b?.toUpperCase()})}),ke(t),e&&""!==e.trim()&&j([{...ag({id:Date.now().toString(),role:"assistant",content:e}),isWelcome:!0}]),f){cg(p).length>0&&Y(!0)}},[i,we,e,f,p,m,b]),Ut=I.useRef(Ot);I.useEffect(()=>{Ut.current=Ot},[Ot]);const Vt=I.useRef(null);I.useEffect(()=>{xe.current=e=>{if(Vt.current===we)return;Vt.current=we;const t=f&&cg(p).length>0;Ce.current=e&&!t?e:null,Ut.current()}},[we,f,p]),I.useEffect(()=>{gt.current=!1,pt.current={value:null,unit:null}},[i]),I.useEffect(()=>{if(!i||!m)return;const e=Qd(m,b);if(!e)return;const t=pt.current,r=gt.current&&(t.value!==m||t.unit!==b);if(gt.current=!0,pt.current={value:m,unit:b},r)return ht(!1),void Ut.current();let n=null;const o=()=>{const t=Yd(i);if(!t)return;if(!t.firstInteractionAt)return void(n=setTimeout(o,e));const r=new Date(t.lastActivity).getTime(),a=Date.now()-r,s=e-a;if(s<=0)return ht(!1),void Ut.current();const l=Math.max(1e4,Math.min(12e4,.1*e));ht(s<=l);n=setTimeout(o,s<=l?1e3:s-l)};return o(),()=>{n&&clearTimeout(n)}},[i,m,b,we]);const $t=I.useMemo(()=>r,[r]),Ht=I.useMemo(()=>ig(z,ge),[ge,z]);I.useEffect(()=>{},[ge,ue]);const qt=I.useCallback((e,t)=>{j(r=>r.map(r=>"assistant"===r.role&&r.content===e?{...r,feedback:t}:r))},[]);return{conversationId:we,isOpen:x,isMinimized:S,isDark:T,messages:Ht,inputValue:E,isLoading:R,isConversationLoading:le,widgetRef:B,quickQuestions:$t,isVoiceSessionActive:ue,voiceStatus:fe,voiceError:me,voiceConclusionForCsat:ye,onboardingQuestions:p,onboardingActive:Q,onboardingCompleted:G,handleOnboardingFormSubmit:kt,widgetFilter:O,setWidgetFilter:U,addAssistantMessage:bt,setInputValue:N,handleSend:St,stopGeneration:yt,handleQuickQuestion:Mt,sendMessage:vt,retryMessage:wt,toggleChat:()=>{C(e=>!e),M(!1)},toggleTheme:()=>{P(e=>!e)},toggleMinimize:()=>{M(e=>!e)},closeChat:()=>{C(!1)},handleDecision:Tt,handleVoiceToggle:Bt,sendBidiTextMessage:Dt,sessionExpiringSoon:ft,resetConversation:Ot,updateMessageFeedback:qt,csatRequest:Pe}},dg=(...e)=>e.filter((e,t,r)=>Boolean(e)&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),gg=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)};
20
+ */function q(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var W=new Set,K={};function Q(e,t){Y(e,t),Y(e+"Capture",t)}function Y(e,t){for(K[e]=t,e=0;e<t.length;e++)W.add(t[e])}var G=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),J=Object.prototype.hasOwnProperty,X=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Z={},ee={};function te(e,t,r,n,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){re[e]=new te(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];re[t]=new te(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){re[e]=new te(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){re[e]=new te(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){re[e]=new te(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){re[e]=new te(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){re[e]=new te(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){re[e]=new te(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){re[e]=new te(e,5,!1,e.toLowerCase(),null,!1,!1)});var ne=/[\-:]([a-z])/g;function oe(e){return e[1].toUpperCase()}function ae(e,t,r,n){var o=re.hasOwnProperty(t)?re[t]:null;(null!==o?0!==o.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,o,n)&&(r=null),n||null===o?function(e){return!!J.call(ee,e)||!J.call(Z,e)&&(X.test(e)?ee[e]=!0:(Z[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=null===r?3!==o.type&&"":r:(t=o.attributeName,n=o.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(o=o.type)||4===o&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ne,oe);re[t]=new te(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ne,oe);re[t]=new te(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ne,oe);re[t]=new te(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){re[e]=new te(e,1,!1,e.toLowerCase(),null,!1,!1)}),re.xlinkHref=new te("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){re[e]=new te(e,1,!1,e.toLowerCase(),null,!0,!0)});var ie=$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,se=Symbol.for("react.element"),le=Symbol.for("react.portal"),ce=Symbol.for("react.fragment"),ue=Symbol.for("react.strict_mode"),de=Symbol.for("react.profiler"),ge=Symbol.for("react.provider"),pe=Symbol.for("react.context"),fe=Symbol.for("react.forward_ref"),he=Symbol.for("react.suspense"),me=Symbol.for("react.suspense_list"),be=Symbol.for("react.memo"),ye=Symbol.for("react.lazy"),ve=Symbol.for("react.offscreen"),we=Symbol.iterator;function ke(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=we&&e[we]||e["@@iterator"])?e:null}var xe,Ce=Object.assign;function Se(e){if(void 0===xe)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);xe=t&&t[1]||""}return"\n"+xe+e}var Me=!1;function Te(e,t){if(!e||Me)return"";Me=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=n.stack.split("\n"),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(1!==i||1!==s)do{if(i--,0>--s||o[i]!==a[s]){var l="\n"+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=i&&0<=s);break}}}finally{Me=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Se(e):""}function Pe(e){switch(e.tag){case 5:return Se(e.type);case 16:return Se("Lazy");case 13:return Se("Suspense");case 19:return Se("SuspenseList");case 0:case 2:case 15:return e=Te(e.type,!1);case 11:return e=Te(e.type.render,!1);case 1:return e=Te(e.type,!0);default:return""}}function ze(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ce:return"Fragment";case le:return"Portal";case de:return"Profiler";case ue:return"StrictMode";case he:return"Suspense";case me:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case pe:return(e.displayName||"Context")+".Consumer";case ge:return(e._context.displayName||"Context")+".Provider";case fe:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case be:return null!==(t=e.displayName||null)?t:ze(e.type)||"Memo";case ye:t=e._payload,e=e._init;try{return ze(e(t))}catch(e){}}return null}function je(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ze(t);case 8:return t===ue?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Ee(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Fe(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Le(e){e._valueTracker||(e._valueTracker=function(e){var t=Fe(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var o=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Ne(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Fe(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function Re(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Ae(e,t){var r=t.checked;return Ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function _e(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=Ee(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ie(e,t){null!=(t=t.checked)&&ae(e,"checked",t,!1)}function Be(e,t){Ie(e,t);var r=Ee(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?Oe(e,t.type,r):t.hasOwnProperty("defaultValue")&&Oe(e,t.type,Ee(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function De(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function Oe(e,t,r){"number"===t&&Re(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ue=Array.isArray;function Ve(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Ee(r),t=null,o=0;o<e.length;o++){if(e[o].value===r)return e[o].selected=!0,void(n&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function $e(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(q(91));return Ce({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function He(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(q(92));if(Ue(r)){if(1<r.length)throw Error(q(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:Ee(r)}}function qe(e,t){var r=Ee(t.value),n=Ee(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function We(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Ke(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Qe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ke(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ye,Ge,Je=(Ge=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Ye=Ye||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ye.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction(function(){return Ge(e,t)})}:Ge);function Xe(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var Ze={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},et=["Webkit","ms","Moz","O"];function tt(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||Ze.hasOwnProperty(e)&&Ze[e]?(""+t).trim():t+"px"}function rt(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),o=tt(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}Object.keys(Ze).forEach(function(e){et.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ze[t]=Ze[e]})});var nt=Ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ot(e,t){if(t){if(nt[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(q(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(q(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(q(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(q(62))}}function at(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var it=null;function st(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var lt=null,ct=null,ut=null;function dt(e){if(e=ia(e)){if("function"!=typeof lt)throw Error(q(280));var t=e.stateNode;t&&(t=la(t),lt(e.stateNode,e.type,t))}}function gt(e){ct?ut?ut.push(e):ut=[e]:ct=e}function pt(){if(ct){var e=ct,t=ut;if(ut=ct=null,dt(e),t)for(e=0;e<t.length;e++)dt(t[e])}}function ft(e,t){return e(t)}function ht(){}var mt=!1;function bt(e,t,r){if(mt)return e(t,r);mt=!0;try{return ft(e,t,r)}finally{mt=!1,(null!==ct||null!==ut)&&(ht(),pt())}}function yt(e,t){var r=e.stateNode;if(null===r)return null;var n=la(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(q(231,t,typeof r));return r}var vt=!1;if(G)try{var wt={};Object.defineProperty(wt,"passive",{get:function(){vt=!0}}),window.addEventListener("test",wt,wt),window.removeEventListener("test",wt,wt)}catch(Ge){vt=!1}function kt(e,t,r,n,o,a,i,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(e){this.onError(e)}}var xt=!1,Ct=null,St=!1,Mt=null,Tt={onError:function(e){xt=!0,Ct=e}};function Pt(e,t,r,n,o,a,i,s,l){xt=!1,Ct=null,kt.apply(Tt,arguments)}function zt(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function jt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Et(e){if(zt(e)!==e)throw Error(q(188))}function Ft(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=zt(e)))throw Error(q(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(n=o.return)){r=n;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===r)return Et(o),e;if(a===n)return Et(o),t;a=a.sibling}throw Error(q(188))}if(r.return!==n.return)r=o,n=a;else{for(var i=!1,s=o.child;s;){if(s===r){i=!0,r=o,n=a;break}if(s===n){i=!0,n=o,r=a;break}s=s.sibling}if(!i){for(s=a.child;s;){if(s===r){i=!0,r=a,n=o;break}if(s===n){i=!0,n=a,r=o;break}s=s.sibling}if(!i)throw Error(q(189))}}if(r.alternate!==n)throw Error(q(190))}if(3!==r.tag)throw Error(q(188));return r.stateNode.current===r?e:t}(e),null!==e?Lt(e):null}function Lt(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Lt(e);if(null!==t)return t;e=e.sibling}return null}var Nt=H.unstable_scheduleCallback,Rt=H.unstable_cancelCallback,At=H.unstable_shouldYield,_t=H.unstable_requestPaint,It=H.unstable_now,Bt=H.unstable_getCurrentPriorityLevel,Dt=H.unstable_ImmediatePriority,Ot=H.unstable_UserBlockingPriority,Ut=H.unstable_NormalPriority,Vt=H.unstable_LowPriority,$t=H.unstable_IdlePriority,Ht=null,qt=null;var Wt=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(Kt(e)/Qt|0)|0},Kt=Math.log,Qt=Math.LN2;var Yt=64,Gt=4194304;function Jt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Xt(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&r;if(0!==i){var s=i&~o;0!==s?n=Jt(s):0!==(a&=i)&&(n=Jt(a))}else 0!==(i=r&~o)?n=Jt(i):0!==a&&(n=Jt(a));if(0===n)return 0;if(0!==t&&t!==n&&0===(t&o)&&((o=n&-n)>=(a=t&-t)||16===o&&4194240&a))return t;if(4&n&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)o=1<<(r=31-Wt(t)),n|=e[r],t&=~o;return n}function Zt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function er(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function tr(){var e=Yt;return!(4194240&(Yt<<=1))&&(Yt=64),e}function rr(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function nr(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-Wt(t)]=r}function or(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Wt(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var ar=0;function ir(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var sr,lr,cr,ur,dr,gr=!1,pr=[],fr=null,hr=null,mr=null,br=new Map,yr=new Map,vr=[],wr="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function kr(e,t){switch(e){case"focusin":case"focusout":fr=null;break;case"dragenter":case"dragleave":hr=null;break;case"mouseover":case"mouseout":mr=null;break;case"pointerover":case"pointerout":br.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":yr.delete(t.pointerId)}}function xr(e,t,r,n,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=ia(t))&&lr(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Cr(e){var t=aa(e.target);if(null!==t){var r=zt(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=jt(r)))return e.blockedOn=t,void dr(e.priority,function(){cr(r)})}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Sr(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Ar(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=ia(r))&&lr(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);it=n,r.target.dispatchEvent(n),it=null,t.shift()}return!0}function Mr(e,t,r){Sr(e)&&r.delete(t)}function Tr(){gr=!1,null!==fr&&Sr(fr)&&(fr=null),null!==hr&&Sr(hr)&&(hr=null),null!==mr&&Sr(mr)&&(mr=null),br.forEach(Mr),yr.forEach(Mr)}function Pr(e,t){e.blockedOn===t&&(e.blockedOn=null,gr||(gr=!0,H.unstable_scheduleCallback(H.unstable_NormalPriority,Tr)))}function zr(e){function t(t){return Pr(t,e)}if(0<pr.length){Pr(pr[0],e);for(var r=1;r<pr.length;r++){var n=pr[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==fr&&Pr(fr,e),null!==hr&&Pr(hr,e),null!==mr&&Pr(mr,e),br.forEach(t),yr.forEach(t),r=0;r<vr.length;r++)(n=vr[r]).blockedOn===e&&(n.blockedOn=null);for(;0<vr.length&&null===(r=vr[0]).blockedOn;)Cr(r),null===r.blockedOn&&vr.shift()}var jr=ie.ReactCurrentBatchConfig,Er=!0;function Fr(e,t,r,n){var o=ar,a=jr.transition;jr.transition=null;try{ar=1,Nr(e,t,r,n)}finally{ar=o,jr.transition=a}}function Lr(e,t,r,n){var o=ar,a=jr.transition;jr.transition=null;try{ar=4,Nr(e,t,r,n)}finally{ar=o,jr.transition=a}}function Nr(e,t,r,n){if(Er){var o=Ar(e,t,r,n);if(null===o)Fo(e,t,n,Rr,r),kr(e,n);else if(function(e,t,r,n,o){switch(t){case"focusin":return fr=xr(fr,e,t,r,n,o),!0;case"dragenter":return hr=xr(hr,e,t,r,n,o),!0;case"mouseover":return mr=xr(mr,e,t,r,n,o),!0;case"pointerover":var a=o.pointerId;return br.set(a,xr(br.get(a)||null,e,t,r,n,o)),!0;case"gotpointercapture":return a=o.pointerId,yr.set(a,xr(yr.get(a)||null,e,t,r,n,o)),!0}return!1}(o,e,t,r,n))n.stopPropagation();else if(kr(e,n),4&t&&-1<wr.indexOf(e)){for(;null!==o;){var a=ia(o);if(null!==a&&sr(a),null===(a=Ar(e,t,r,n))&&Fo(e,t,n,Rr,r),a===o)break;o=a}null!==o&&n.stopPropagation()}else Fo(e,t,n,null,r)}}var Rr=null;function Ar(e,t,r,n){if(Rr=null,null!==(e=aa(e=st(n))))if(null===(t=zt(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=jt(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Rr=e,null}function _r(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Bt()){case Dt:return 1;case Ot:return 4;case Ut:case Vt:return 16;case $t:return 536870912;default:return 16}default:return 16}}var Ir=null,Br=null,Dr=null;function Or(){if(Dr)return Dr;var e,t,r=Br,n=r.length,o="value"in Ir?Ir.value:Ir.textContent,a=o.length;for(e=0;e<n&&r[e]===o[e];e++);var i=n-e;for(t=1;t<=i&&r[n-t]===o[a-t];t++);return Dr=o.slice(e,1<t?1-t:void 0)}function Ur(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Vr(){return!0}function $r(){return!1}function Hr(e){function t(t,r,n,o,a){for(var i in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Vr:$r,this.isPropagationStopped=$r,this}return Ce(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Vr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Vr)},persist:function(){},isPersistent:Vr}),t}var qr,Wr,Kr,Qr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Yr=Hr(Qr),Gr=Ce({},Qr,{view:0,detail:0}),Jr=Hr(Gr),Xr=Ce({},Gr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Kr&&(Kr&&"mousemove"===e.type?(qr=e.screenX-Kr.screenX,Wr=e.screenY-Kr.screenY):Wr=qr=0,Kr=e),qr)},movementY:function(e){return"movementY"in e?e.movementY:Wr}}),Zr=Hr(Xr),en=Hr(Ce({},Xr,{dataTransfer:0})),tn=Hr(Ce({},Gr,{relatedTarget:0})),rn=Hr(Ce({},Qr,{animationName:0,elapsedTime:0,pseudoElement:0})),nn=Ce({},Qr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),on=Hr(nn),an=Hr(Ce({},Qr,{data:0})),sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ln={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function un(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=cn[e])&&!!t[e]}function dn(){return un}var gn=Ce({},Gr,{key:function(e){if(e.key){var t=sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Ur(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?ln[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dn,charCode:function(e){return"keypress"===e.type?Ur(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Ur(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),pn=Hr(gn),fn=Hr(Ce({},Xr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),hn=Hr(Ce({},Gr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dn})),mn=Hr(Ce({},Qr,{propertyName:0,elapsedTime:0,pseudoElement:0})),bn=Ce({},Xr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),yn=Hr(bn),vn=[9,13,27,32],wn=G&&"CompositionEvent"in window,kn=null;G&&"documentMode"in document&&(kn=document.documentMode);var xn=G&&"TextEvent"in window&&!kn,Cn=G&&(!wn||kn&&8<kn&&11>=kn),Sn=String.fromCharCode(32),Mn=!1;function Tn(e,t){switch(e){case"keyup":return-1!==vn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!1;var jn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function En(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!jn[e.type]:"textarea"===t}function Fn(e,t,r,n){gt(n),0<(t=No(t,"onChange")).length&&(r=new Yr("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Ln=null,Nn=null;function Rn(e){Mo(e,0)}function An(e){if(Ne(sa(e)))return e}function _n(e,t){if("change"===e)return t}var In=!1;if(G){var Bn;if(G){var Dn="oninput"in document;if(!Dn){var On=document.createElement("div");On.setAttribute("oninput","return;"),Dn="function"==typeof On.oninput}Bn=Dn}else Bn=!1;In=Bn&&(!document.documentMode||9<document.documentMode)}function Un(){Ln&&(Ln.detachEvent("onpropertychange",Vn),Nn=Ln=null)}function Vn(e){if("value"===e.propertyName&&An(Nn)){var t=[];Fn(t,Nn,e,st(e)),bt(Rn,t)}}function $n(e,t,r){"focusin"===e?(Un(),Nn=r,(Ln=t).attachEvent("onpropertychange",Vn)):"focusout"===e&&Un()}function Hn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return An(Nn)}function qn(e,t){if("click"===e)return An(t)}function Wn(e,t){if("input"===e||"change"===e)return An(t)}var Kn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Qn(e,t){if(Kn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!J.call(t,o)||!Kn(e[o],t[o]))return!1}return!0}function Yn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gn(e,t){var r,n=Yn(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Yn(n)}}function Jn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Jn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Xn(){for(var e=window,t=Re();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=Re((e=t.contentWindow).document)}return t}function Zn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function eo(e){var t=Xn(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Jn(r.ownerDocument.documentElement,r)){if(null!==n&&Zn(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=r.textContent.length,a=Math.min(n.start,o);n=void 0===n.end?a:Math.min(n.end,o),!e.extend&&a>n&&(o=n,n=a,a=o),o=Gn(r,a);var i=Gn(r,n);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var to=G&&"documentMode"in document&&11>=document.documentMode,ro=null,no=null,oo=null,ao=!1;function io(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;ao||null==ro||ro!==Re(n)||("selectionStart"in(n=ro)&&Zn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},oo&&Qn(oo,n)||(oo=n,0<(n=No(no,"onSelect")).length&&(t=new Yr("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=ro)))}function so(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var lo={animationend:so("Animation","AnimationEnd"),animationiteration:so("Animation","AnimationIteration"),animationstart:so("Animation","AnimationStart"),transitionend:so("Transition","TransitionEnd")},co={},uo={};function go(e){if(co[e])return co[e];if(!lo[e])return e;var t,r=lo[e];for(t in r)if(r.hasOwnProperty(t)&&t in uo)return co[e]=r[t];return e}G&&(uo=document.createElement("div").style,"AnimationEvent"in window||(delete lo.animationend.animation,delete lo.animationiteration.animation,delete lo.animationstart.animation),"TransitionEvent"in window||delete lo.transitionend.transition);var po=go("animationend"),fo=go("animationiteration"),ho=go("animationstart"),mo=go("transitionend"),bo=new Map,yo="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function vo(e,t){bo.set(e,t),Q(t,[e])}for(var wo=0;wo<yo.length;wo++){var ko=yo[wo];vo(ko.toLowerCase(),"on"+(ko[0].toUpperCase()+ko.slice(1)))}vo(po,"onAnimationEnd"),vo(fo,"onAnimationIteration"),vo(ho,"onAnimationStart"),vo("dblclick","onDoubleClick"),vo("focusin","onFocus"),vo("focusout","onBlur"),vo(mo,"onTransitionEnd"),Y("onMouseEnter",["mouseout","mouseover"]),Y("onMouseLeave",["mouseout","mouseover"]),Y("onPointerEnter",["pointerout","pointerover"]),Y("onPointerLeave",["pointerout","pointerover"]),Q("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Q("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Q("onBeforeInput",["compositionend","keypress","textInput","paste"]),Q("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Q("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Q("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Co=new Set("cancel close invalid load scroll toggle".split(" ").concat(xo));function So(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,o,a,i,s,l){if(Pt.apply(this,arguments),xt){if(!xt)throw Error(q(198));var c=Ct;xt=!1,Ct=null,St||(St=!0,Mt=c)}}(n,t,void 0,e),e.currentTarget=null}function Mo(e,t){t=!!(4&t);for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var i=n.length-1;0<=i;i--){var s=n[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&o.isPropagationStopped())break e;So(o,s,c),a=l}else for(i=0;i<n.length;i++){if(l=(s=n[i]).instance,c=s.currentTarget,s=s.listener,l!==a&&o.isPropagationStopped())break e;So(o,s,c),a=l}}}if(St)throw e=Mt,St=!1,Mt=null,e}function To(e,t){var r=t[ra];void 0===r&&(r=t[ra]=new Set);var n=e+"__bubble";r.has(n)||(Eo(t,e,2,!1),r.add(n))}function Po(e,t,r){var n=0;t&&(n|=4),Eo(r,e,n,t)}var zo="_reactListening"+Math.random().toString(36).slice(2);function jo(e){if(!e[zo]){e[zo]=!0,W.forEach(function(t){"selectionchange"!==t&&(Co.has(t)||Po(t,!1,e),Po(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zo]||(t[zo]=!0,Po("selectionchange",!1,t))}}function Eo(e,t,r,n){switch(_r(t)){case 1:var o=Fr;break;case 4:o=Lr;break;default:o=Nr}r=o.bind(null,t,r,e),o=void 0,!vt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),n?void 0!==o?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):void 0!==o?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Fo(e,t,r,n,o){var a=n;if(!(1&t||2&t||null===n))e:for(;;){if(null===n)return;var i=n.tag;if(3===i||4===i){var s=n.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===i)for(i=n.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;i=i.return}for(;null!==s;){if(null===(i=aa(s)))return;if(5===(l=i.tag)||6===l){n=a=i;continue e}s=s.parentNode}}n=n.return}bt(function(){var n=a,o=st(r),i=[];e:{var s=bo.get(e);if(void 0!==s){var l=Yr,c=e;switch(e){case"keypress":if(0===Ur(r))break e;case"keydown":case"keyup":l=pn;break;case"focusin":c="focus",l=tn;break;case"focusout":c="blur",l=tn;break;case"beforeblur":case"afterblur":l=tn;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=Zr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=en;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=hn;break;case po:case fo:case ho:l=rn;break;case mo:l=mn;break;case"scroll":l=Jr;break;case"wheel":l=yn;break;case"copy":case"cut":case"paste":l=on;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=fn}var u=!!(4&t),d=!u&&"scroll"===e,g=u?null!==s?s+"Capture":null:s;u=[];for(var p,f=n;null!==f;){var h=(p=f).stateNode;if(5===p.tag&&null!==h&&(p=h,null!==g&&(null!=(h=yt(f,g))&&u.push(Lo(f,h,p)))),d)break;f=f.return}0<u.length&&(s=new l(s,c,null,r,o),i.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||r===it||!(c=r.relatedTarget||r.fromElement)||!aa(c)&&!c[ta])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=n,null!==(c=(c=r.relatedTarget||r.toElement)?aa(c):null)&&(c!==(d=zt(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=n),l!==c)){if(u=Zr,h="onMouseLeave",g="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(u=fn,h="onPointerLeave",g="onPointerEnter",f="pointer"),d=null==l?s:sa(l),p=null==c?s:sa(c),(s=new u(h,f+"leave",l,r,o)).target=d,s.relatedTarget=p,h=null,aa(o)===n&&((u=new u(g,f+"enter",c,r,o)).target=p,u.relatedTarget=d,h=u),d=h,l&&c)e:{for(g=c,f=0,p=u=l;p;p=Ro(p))f++;for(p=0,h=g;h;h=Ro(h))p++;for(;0<f-p;)u=Ro(u),f--;for(;0<p-f;)g=Ro(g),p--;for(;f--;){if(u===g||null!==g&&u===g.alternate)break e;u=Ro(u),g=Ro(g)}u=null}else u=null;null!==l&&Ao(i,s,l,u,!1),null!==c&&null!==d&&Ao(i,d,c,u,!0)}if("select"===(l=(s=n?sa(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=_n;else if(En(s))if(In)m=Wn;else{m=Hn;var b=$n}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=qn);switch(m&&(m=m(e,n))?Fn(i,m,r,o):(b&&b(e,s,n),"focusout"===e&&(b=s._wrapperState)&&b.controlled&&"number"===s.type&&Oe(s,"number",s.value)),b=n?sa(n):window,e){case"focusin":(En(b)||"true"===b.contentEditable)&&(ro=b,no=n,oo=null);break;case"focusout":oo=no=ro=null;break;case"mousedown":ao=!0;break;case"contextmenu":case"mouseup":case"dragend":ao=!1,io(i,r,o);break;case"selectionchange":if(to)break;case"keydown":case"keyup":io(i,r,o)}var y;if(wn)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else zn?Tn(e,r)&&(v="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(v="onCompositionStart");v&&(Cn&&"ko"!==r.locale&&(zn||"onCompositionStart"!==v?"onCompositionEnd"===v&&zn&&(y=Or()):(Br="value"in(Ir=o)?Ir.value:Ir.textContent,zn=!0)),0<(b=No(n,v)).length&&(v=new an(v,e,null,r,o),i.push({event:v,listeners:b}),y?v.data=y:null!==(y=Pn(r))&&(v.data=y))),(y=xn?function(e,t){switch(e){case"compositionend":return Pn(t);case"keypress":return 32!==t.which?null:(Mn=!0,Sn);case"textInput":return(e=t.data)===Sn&&Mn?null:e;default:return null}}(e,r):function(e,t){if(zn)return"compositionend"===e||!wn&&Tn(e,t)?(e=Or(),Dr=Br=Ir=null,zn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Cn&&"ko"!==t.locale?null:t.data}}(e,r))&&(0<(n=No(n,"onBeforeInput")).length&&(o=new an("onBeforeInput","beforeinput",null,r,o),i.push({event:o,listeners:n}),o.data=y))}Mo(i,t)})}function Lo(e,t,r){return{instance:e,listener:t,currentTarget:r}}function No(e,t){for(var r=t+"Capture",n=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=yt(e,r))&&n.unshift(Lo(e,a,o)),null!=(a=yt(e,t))&&n.push(Lo(e,a,o))),e=e.return}return n}function Ro(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Ao(e,t,r,n,o){for(var a=t._reactName,i=[];null!==r&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(null!==l&&l===n)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=yt(r,a))&&i.unshift(Lo(r,l,s)):o||null!=(l=yt(r,a))&&i.push(Lo(r,l,s))),r=r.return}0!==i.length&&e.push({event:t,listeners:i})}var _o=/\r\n?/g,Io=/\u0000|\uFFFD/g;function Bo(e){return("string"==typeof e?e:""+e).replace(_o,"\n").replace(Io,"")}function Do(e,t,r){if(t=Bo(t),Bo(e)!==t&&r)throw Error(q(425))}function Oo(){}var Uo=null,Vo=null;function $o(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Ho="function"==typeof setTimeout?setTimeout:void 0,qo="function"==typeof clearTimeout?clearTimeout:void 0,Wo="function"==typeof Promise?Promise:void 0,Ko="function"==typeof queueMicrotask?queueMicrotask:void 0!==Wo?function(e){return Wo.resolve(null).then(e).catch(Qo)}:Ho;function Qo(e){setTimeout(function(){throw e})}function Yo(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&8===o.nodeType)if("/$"===(r=o.data)){if(0===n)return e.removeChild(o),void zr(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=o}while(r);zr(t)}function Go(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function Jo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var Xo=Math.random().toString(36).slice(2),Zo="__reactFiber$"+Xo,ea="__reactProps$"+Xo,ta="__reactContainer$"+Xo,ra="__reactEvents$"+Xo,na="__reactListeners$"+Xo,oa="__reactHandles$"+Xo;function aa(e){var t=e[Zo];if(t)return t;for(var r=e.parentNode;r;){if(t=r[ta]||r[Zo]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=Jo(e);null!==e;){if(r=e[Zo])return r;e=Jo(e)}return t}r=(e=r).parentNode}return null}function ia(e){return!(e=e[Zo]||e[ta])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function sa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(q(33))}function la(e){return e[ea]||null}var ca=[],ua=-1;function da(e){return{current:e}}function ga(e){0>ua||(e.current=ca[ua],ca[ua]=null,ua--)}function pa(e,t){ua++,ca[ua]=e.current,e.current=t}var fa={},ha=da(fa),ma=da(!1),ba=fa;function ya(e,t){var r=e.type.contextTypes;if(!r)return fa;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in r)a[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function va(e){return null!=(e=e.childContextTypes)}function wa(){ga(ma),ga(ha)}function ka(e,t,r){if(ha.current!==fa)throw Error(q(168));pa(ha,t),pa(ma,r)}function xa(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in t))throw Error(q(108,je(e)||"Unknown",o));return Ce({},r,n)}function Ca(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fa,ba=ha.current,pa(ha,e),pa(ma,ma.current),!0}function Sa(e,t,r){var n=e.stateNode;if(!n)throw Error(q(169));r?(e=xa(e,t,ba),n.__reactInternalMemoizedMergedChildContext=e,ga(ma),ga(ha),pa(ha,e)):ga(ma),pa(ma,r)}var Ma=null,Ta=!1,Pa=!1;function za(e){null===Ma?Ma=[e]:Ma.push(e)}function ja(){if(!Pa&&null!==Ma){Pa=!0;var e=0,t=ar;try{var r=Ma;for(ar=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}Ma=null,Ta=!1}catch(t){throw null!==Ma&&(Ma=Ma.slice(e+1)),Nt(Dt,ja),t}finally{ar=t,Pa=!1}}return null}var Ea=[],Fa=0,La=null,Na=0,Ra=[],Aa=0,_a=null,Ia=1,Ba="";function Da(e,t){Ea[Fa++]=Na,Ea[Fa++]=La,La=e,Na=t}function Oa(e,t,r){Ra[Aa++]=Ia,Ra[Aa++]=Ba,Ra[Aa++]=_a,_a=e;var n=Ia;e=Ba;var o=32-Wt(n)-1;n&=~(1<<o),r+=1;var a=32-Wt(t)+o;if(30<a){var i=o-o%5;a=(n&(1<<i)-1).toString(32),n>>=i,o-=i,Ia=1<<32-Wt(t)+o|r<<o|n,Ba=a+e}else Ia=1<<a|r<<o|n,Ba=e}function Ua(e){null!==e.return&&(Da(e,1),Oa(e,1,0))}function Va(e){for(;e===La;)La=Ea[--Fa],Ea[Fa]=null,Na=Ea[--Fa],Ea[Fa]=null;for(;e===_a;)_a=Ra[--Aa],Ra[Aa]=null,Ba=Ra[--Aa],Ra[Aa]=null,Ia=Ra[--Aa],Ra[Aa]=null}var $a=null,Ha=null,qa=!1,Wa=null;function Ka(e,t){var r=mu(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function Qa(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,$a=e,Ha=Go(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,$a=e,Ha=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==_a?{id:Ia,overflow:Ba}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=mu(18,null,null,0)).stateNode=t,r.return=e,e.child=r,$a=e,Ha=null,!0);default:return!1}}function Ya(e){return!(!(1&e.mode)||128&e.flags)}function Ga(e){if(qa){var t=Ha;if(t){var r=t;if(!Qa(e,t)){if(Ya(e))throw Error(q(418));t=Go(r.nextSibling);var n=$a;t&&Qa(e,t)?Ka(n,r):(e.flags=-4097&e.flags|2,qa=!1,$a=e)}}else{if(Ya(e))throw Error(q(418));e.flags=-4097&e.flags|2,qa=!1,$a=e}}}function Ja(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;$a=e}function Xa(e){if(e!==$a)return!1;if(!qa)return Ja(e),qa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!$o(e.type,e.memoizedProps)),t&&(t=Ha)){if(Ya(e))throw Za(),Error(q(418));for(;t;)Ka(e,t),t=Go(t.nextSibling)}if(Ja(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(q(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){Ha=Go(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}Ha=null}}else Ha=$a?Go(e.stateNode.nextSibling):null;return!0}function Za(){for(var e=Ha;e;)e=Go(e.nextSibling)}function ei(){Ha=$a=null,qa=!1}function ti(e){null===Wa?Wa=[e]:Wa.push(e)}var ri=ie.ReactCurrentBatchConfig;function ni(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(q(309));var n=r.stateNode}if(!n)throw Error(q(147,e));var o=n,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(q(284));if(!r._owner)throw Error(q(290,e))}return e}function oi(e,t){throw e=Object.prototype.toString.call(t),Error(q(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ai(e){return(0,e._init)(e._payload)}function ii(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=yu(e,t)).index=0,e.sibling=null,e}function a(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,r,n){return null===t||6!==t.tag?((t=xu(r,e.mode,n)).return=e,t):((t=o(t,r)).return=e,t)}function l(e,t,r,n){var a=r.type;return a===ce?u(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===ye&&ai(a)===t.type)?((n=o(t,r.props)).ref=ni(e,t,r),n.return=e,n):((n=vu(r.type,r.key,r.props,null,e.mode,n)).ref=ni(e,t,r),n.return=e,n)}function c(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Cu(r,e.mode,n)).return=e,t):((t=o(t,r.children||[])).return=e,t)}function u(e,t,r,n,a){return null===t||7!==t.tag?((t=wu(r,e.mode,n,a)).return=e,t):((t=o(t,r)).return=e,t)}function d(e,t,r){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=xu(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case se:return(r=vu(t.type,t.key,t.props,null,e.mode,r)).ref=ni(e,null,t),r.return=e,r;case le:return(t=Cu(t,e.mode,r)).return=e,t;case ye:return d(e,(0,t._init)(t._payload),r)}if(Ue(t)||ke(t))return(t=wu(t,e.mode,r,null)).return=e,t;oi(e,t)}return null}function g(e,t,r,n){var o=null!==t?t.key:null;if("string"==typeof r&&""!==r||"number"==typeof r)return null!==o?null:s(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case se:return r.key===o?l(e,t,r,n):null;case le:return r.key===o?c(e,t,r,n):null;case ye:return g(e,t,(o=r._init)(r._payload),n)}if(Ue(r)||ke(r))return null!==o?null:u(e,t,r,n,null);oi(e,r)}return null}function p(e,t,r,n,o){if("string"==typeof n&&""!==n||"number"==typeof n)return s(t,e=e.get(r)||null,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case se:return l(t,e=e.get(null===n.key?r:n.key)||null,n,o);case le:return c(t,e=e.get(null===n.key?r:n.key)||null,n,o);case ye:return p(e,t,r,(0,n._init)(n._payload),o)}if(Ue(n)||ke(n))return u(t,e=e.get(r)||null,n,o,null);oi(t,n)}return null}function f(o,i,s,l){for(var c=null,u=null,f=i,h=i=0,m=null;null!==f&&h<s.length;h++){f.index>h?(m=f,f=null):m=f.sibling;var b=g(o,f,s[h],l);if(null===b){null===f&&(f=m);break}e&&f&&null===b.alternate&&t(o,f),i=a(b,i,h),null===u?c=b:u.sibling=b,u=b,f=m}if(h===s.length)return r(o,f),qa&&Da(o,h),c;if(null===f){for(;h<s.length;h++)null!==(f=d(o,s[h],l))&&(i=a(f,i,h),null===u?c=f:u.sibling=f,u=f);return qa&&Da(o,h),c}for(f=n(o,f);h<s.length;h++)null!==(m=p(f,o,h,s[h],l))&&(e&&null!==m.alternate&&f.delete(null===m.key?h:m.key),i=a(m,i,h),null===u?c=m:u.sibling=m,u=m);return e&&f.forEach(function(e){return t(o,e)}),qa&&Da(o,h),c}function h(o,i,s,l){var c=ke(s);if("function"!=typeof c)throw Error(q(150));if(null==(s=c.call(s)))throw Error(q(151));for(var u=c=null,f=i,h=i=0,m=null,b=s.next();null!==f&&!b.done;h++,b=s.next()){f.index>h?(m=f,f=null):m=f.sibling;var y=g(o,f,b.value,l);if(null===y){null===f&&(f=m);break}e&&f&&null===y.alternate&&t(o,f),i=a(y,i,h),null===u?c=y:u.sibling=y,u=y,f=m}if(b.done)return r(o,f),qa&&Da(o,h),c;if(null===f){for(;!b.done;h++,b=s.next())null!==(b=d(o,b.value,l))&&(i=a(b,i,h),null===u?c=b:u.sibling=b,u=b);return qa&&Da(o,h),c}for(f=n(o,f);!b.done;h++,b=s.next())null!==(b=p(f,o,h,b.value,l))&&(e&&null!==b.alternate&&f.delete(null===b.key?h:b.key),i=a(b,i,h),null===u?c=b:u.sibling=b,u=b);return e&&f.forEach(function(e){return t(o,e)}),qa&&Da(o,h),c}return function e(n,a,s,l){if("object"==typeof s&&null!==s&&s.type===ce&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case se:e:{for(var c=s.key,u=a;null!==u;){if(u.key===c){if((c=s.type)===ce){if(7===u.tag){r(n,u.sibling),(a=o(u,s.props.children)).return=n,n=a;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===ye&&ai(c)===u.type){r(n,u.sibling),(a=o(u,s.props)).ref=ni(n,u,s),a.return=n,n=a;break e}r(n,u);break}t(n,u),u=u.sibling}s.type===ce?((a=wu(s.props.children,n.mode,l,s.key)).return=n,n=a):((l=vu(s.type,s.key,s.props,null,n.mode,l)).ref=ni(n,a,s),l.return=n,n=l)}return i(n);case le:e:{for(u=s.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===s.containerInfo&&a.stateNode.implementation===s.implementation){r(n,a.sibling),(a=o(a,s.children||[])).return=n,n=a;break e}r(n,a);break}t(n,a),a=a.sibling}(a=Cu(s,n.mode,l)).return=n,n=a}return i(n);case ye:return e(n,a,(u=s._init)(s._payload),l)}if(Ue(s))return f(n,a,s,l);if(ke(s))return h(n,a,s,l);oi(n,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==a&&6===a.tag?(r(n,a.sibling),(a=o(a,s)).return=n,n=a):(r(n,a),(a=xu(s,n.mode,l)).return=n,n=a),i(n)):r(n,a)}}var si=ii(!0),li=ii(!1),ci=da(null),ui=null,di=null,gi=null;function pi(){gi=di=ui=null}function fi(e){var t=ci.current;ga(ci),e._currentValue=t}function hi(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function mi(e,t){ui=e,gi=di=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ol=!0),e.firstContext=null)}function bi(e){var t=e._currentValue;if(gi!==e)if(e={context:e,memoizedValue:t,next:null},null===di){if(null===ui)throw Error(q(308));di=e,ui.dependencies={lanes:0,firstContext:e}}else di=di.next=e;return t}var yi=null;function vi(e){null===yi?yi=[e]:yi.push(e)}function wi(e,t,r,n){var o=t.interleaved;return null===o?(r.next=r,vi(t)):(r.next=o.next,o.next=r),t.interleaved=r,ki(e,n)}function ki(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var xi=!1;function Ci(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Si(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Mi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ti(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,2&pc){var o=n.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),n.pending=t,ki(e,r)}return null===(o=n.interleaved)?(t.next=t,vi(n)):(t.next=o.next,o.next=t),n.interleaved=t,ki(e,r)}function Pi(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,or(e,r)}}function zi(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var o=null,a=null;if(null!==(r=r.firstBaseUpdate)){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===a?o=a=i:a=a.next=i,r=r.next}while(null!==r);null===a?o=a=t:a=a.next=t}else o=a=t;return r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function ji(e,t,r,n){var o=e.updateQueue;xi=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===i?a=c:i.next=c,i=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==a){var d=o.baseState;for(i=0,u=c=l=null,s=a;;){var g=s.lane,p=s.eventTime;if((n&g)===g){null!==u&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,h=s;switch(g=t,p=r,h.tag){case 1:if("function"==typeof(f=h.payload)){d=f.call(p,d,g);break e}d=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(g="function"==typeof(f=h.payload)?f.call(p,d,g):f))break e;d=Ce({},d,g);break e;case 2:xi=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(g=o.effects)?o.effects=[s]:g.push(s))}else p={eventTime:p,lane:g,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=p,l=d):u=u.next=p,i|=g;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(g=s).next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);kc|=i,e.lanes=i,e.memoizedState=d}}function Ei(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(null!==o){if(n.callback=null,n=r,"function"!=typeof o)throw Error(q(191,o));o.call(n)}}}var Fi={},Li=da(Fi),Ni=da(Fi),Ri=da(Fi);function Ai(e){if(e===Fi)throw Error(q(174));return e}function _i(e,t){switch(pa(Ri,t),pa(Ni,e),pa(Li,Fi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Qe(null,"");break;default:t=Qe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ga(Li),pa(Li,t)}function Ii(){ga(Li),ga(Ni),ga(Ri)}function Bi(e){Ai(Ri.current);var t=Ai(Li.current),r=Qe(t,e.type);t!==r&&(pa(Ni,e),pa(Li,r))}function Di(e){Ni.current===e&&(ga(Li),ga(Ni))}var Oi=da(0);function Ui(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Vi=[];function $i(){for(var e=0;e<Vi.length;e++)Vi[e]._workInProgressVersionPrimary=null;Vi.length=0}var Hi=ie.ReactCurrentDispatcher,qi=ie.ReactCurrentBatchConfig,Wi=0,Ki=null,Qi=null,Yi=null,Gi=!1,Ji=!1,Xi=0,Zi=0;function es(){throw Error(q(321))}function ts(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Kn(e[r],t[r]))return!1;return!0}function rs(e,t,r,n,o,a){if(Wi=a,Ki=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Hi.current=null===e||null===e.memoizedState?Ds:Os,e=r(n,o),Ji){a=0;do{if(Ji=!1,Xi=0,25<=a)throw Error(q(301));a+=1,Yi=Qi=null,t.updateQueue=null,Hi.current=Us,e=r(n,o)}while(Ji)}if(Hi.current=Bs,t=null!==Qi&&null!==Qi.next,Wi=0,Yi=Qi=Ki=null,Gi=!1,t)throw Error(q(300));return e}function ns(){var e=0!==Xi;return Xi=0,e}function os(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Yi?Ki.memoizedState=Yi=e:Yi=Yi.next=e,Yi}function as(){if(null===Qi){var e=Ki.alternate;e=null!==e?e.memoizedState:null}else e=Qi.next;var t=null===Yi?Ki.memoizedState:Yi.next;if(null!==t)Yi=t,Qi=e;else{if(null===e)throw Error(q(310));e={memoizedState:(Qi=e).memoizedState,baseState:Qi.baseState,baseQueue:Qi.baseQueue,queue:Qi.queue,next:null},null===Yi?Ki.memoizedState=Yi=e:Yi=Yi.next=e}return Yi}function is(e,t){return"function"==typeof t?t(e):t}function ss(e){var t=as(),r=t.queue;if(null===r)throw Error(q(311));r.lastRenderedReducer=e;var n=Qi,o=n.baseQueue,a=r.pending;if(null!==a){if(null!==o){var i=o.next;o.next=a.next,a.next=i}n.baseQueue=o=a,r.pending=null}if(null!==o){a=o.next,n=n.baseState;var s=i=null,l=null,c=a;do{var u=c.lane;if((Wi&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(s=l=d,i=n):l=l.next=d,Ki.lanes|=u,kc|=u}c=c.next}while(null!==c&&c!==a);null===l?i=n:l.next=s,Kn(n,t.memoizedState)||(ol=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=l,r.lastRenderedState=n}if(null!==(e=r.interleaved)){o=e;do{a=o.lane,Ki.lanes|=a,kc|=a,o=o.next}while(o!==e)}else null===o&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function ls(e){var t=as(),r=t.queue;if(null===r)throw Error(q(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,a=t.memoizedState;if(null!==o){r.pending=null;var i=o=o.next;do{a=e(a,i.action),i=i.next}while(i!==o);Kn(a,t.memoizedState)||(ol=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function cs(){}function us(e,t){var r=Ki,n=as(),o=t(),a=!Kn(n.memoizedState,o);if(a&&(n.memoizedState=o,ol=!0),n=n.queue,xs(ps.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||null!==Yi&&1&Yi.memoizedState.tag){if(r.flags|=2048,bs(9,gs.bind(null,r,n,o,t),void 0,null),null===fc)throw Error(q(349));30&Wi||ds(r,t,o)}return o}function ds(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=Ki.updateQueue)?(t={lastEffect:null,stores:null},Ki.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function gs(e,t,r,n){t.value=r,t.getSnapshot=n,fs(t)&&hs(e)}function ps(e,t,r){return r(function(){fs(t)&&hs(e)})}function fs(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Kn(e,r)}catch(e){return!0}}function hs(e){var t=ki(e,1);null!==t&&Uc(t,e,1,-1)}function ms(e){var t=os();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:is,lastRenderedState:e},t.queue=e,e=e.dispatch=Rs.bind(null,Ki,e),[t.memoizedState,e]}function bs(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=Ki.updateQueue)?(t={lastEffect:null,stores:null},Ki.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function ys(){return as().memoizedState}function vs(e,t,r,n){var o=os();Ki.flags|=e,o.memoizedState=bs(1|t,r,void 0,void 0===n?null:n)}function ws(e,t,r,n){var o=as();n=void 0===n?null:n;var a=void 0;if(null!==Qi){var i=Qi.memoizedState;if(a=i.destroy,null!==n&&ts(n,i.deps))return void(o.memoizedState=bs(t,r,a,n))}Ki.flags|=e,o.memoizedState=bs(1|t,r,a,n)}function ks(e,t){return vs(8390656,8,e,t)}function xs(e,t){return ws(2048,8,e,t)}function Cs(e,t){return ws(4,2,e,t)}function Ss(e,t){return ws(4,4,e,t)}function Ms(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ts(e,t,r){return r=null!=r?r.concat([e]):null,ws(4,4,Ms.bind(null,t,e),r)}function Ps(){}function zs(e,t){var r=as();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ts(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function js(e,t){var r=as();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ts(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Es(e,t,r){return 21&Wi?(Kn(r,t)||(r=tr(),Ki.lanes|=r,kc|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ol=!0),e.memoizedState=r)}function Fs(e,t){var r=ar;ar=0!==r&&4>r?r:4,e(!0);var n=qi.transition;qi.transition={};try{e(!1),t()}finally{ar=r,qi.transition=n}}function Ls(){return as().memoizedState}function Ns(e,t,r){var n=Oc(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},As(e))_s(t,r);else if(null!==(r=wi(e,t,r,n))){Uc(r,e,n,Dc()),Is(r,t,n)}}function Rs(e,t,r){var n=Oc(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(As(e))_s(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=a(i,r);if(o.hasEagerState=!0,o.eagerState=s,Kn(s,i)){var l=t.interleaved;return null===l?(o.next=o,vi(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(r=wi(e,t,o,n))&&(Uc(r,e,n,o=Dc()),Is(r,t,n))}}function As(e){var t=e.alternate;return e===Ki||null!==t&&t===Ki}function _s(e,t){Ji=Gi=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Is(e,t,r){if(4194240&r){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,or(e,r)}}var Bs={readContext:bi,useCallback:es,useContext:es,useEffect:es,useImperativeHandle:es,useInsertionEffect:es,useLayoutEffect:es,useMemo:es,useReducer:es,useRef:es,useState:es,useDebugValue:es,useDeferredValue:es,useTransition:es,useMutableSource:es,useSyncExternalStore:es,useId:es,unstable_isNewReconciler:!1},Ds={readContext:bi,useCallback:function(e,t){return os().memoizedState=[e,void 0===t?null:t],e},useContext:bi,useEffect:ks,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,vs(4194308,4,Ms.bind(null,t,e),r)},useLayoutEffect:function(e,t){return vs(4194308,4,e,t)},useInsertionEffect:function(e,t){return vs(4,2,e,t)},useMemo:function(e,t){var r=os();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=os();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Ns.bind(null,Ki,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},os().memoizedState=e},useState:ms,useDebugValue:Ps,useDeferredValue:function(e){return os().memoizedState=e},useTransition:function(){var e=ms(!1),t=e[0];return e=Fs.bind(null,e[1]),os().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Ki,o=os();if(qa){if(void 0===r)throw Error(q(407));r=r()}else{if(r=t(),null===fc)throw Error(q(349));30&Wi||ds(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,ks(ps.bind(null,n,a,e),[e]),n.flags|=2048,bs(9,gs.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=os(),t=fc.identifierPrefix;if(qa){var r=Ba;t=":"+t+"R"+(r=(Ia&~(1<<32-Wt(Ia)-1)).toString(32)+r),0<(r=Xi++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=Zi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Os={readContext:bi,useCallback:zs,useContext:bi,useEffect:xs,useImperativeHandle:Ts,useInsertionEffect:Cs,useLayoutEffect:Ss,useMemo:js,useReducer:ss,useRef:ys,useState:function(){return ss(is)},useDebugValue:Ps,useDeferredValue:function(e){return Es(as(),Qi.memoizedState,e)},useTransition:function(){return[ss(is)[0],as().memoizedState]},useMutableSource:cs,useSyncExternalStore:us,useId:Ls,unstable_isNewReconciler:!1},Us={readContext:bi,useCallback:zs,useContext:bi,useEffect:xs,useImperativeHandle:Ts,useInsertionEffect:Cs,useLayoutEffect:Ss,useMemo:js,useReducer:ls,useRef:ys,useState:function(){return ls(is)},useDebugValue:Ps,useDeferredValue:function(e){var t=as();return null===Qi?t.memoizedState=e:Es(t,Qi.memoizedState,e)},useTransition:function(){return[ls(is)[0],as().memoizedState]},useMutableSource:cs,useSyncExternalStore:us,useId:Ls,unstable_isNewReconciler:!1};function Vs(e,t){if(e&&e.defaultProps){for(var r in t=Ce({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}function $s(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:Ce({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var Hs={isMounted:function(e){return!!(e=e._reactInternals)&&zt(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Dc(),o=Oc(e),a=Mi(n,o);a.payload=t,null!=r&&(a.callback=r),null!==(t=Ti(e,a,o))&&(Uc(t,e,o,n),Pi(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Dc(),o=Oc(e),a=Mi(n,o);a.tag=1,a.payload=t,null!=r&&(a.callback=r),null!==(t=Ti(e,a,o))&&(Uc(t,e,o,n),Pi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Dc(),n=Oc(e),o=Mi(r,n);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ti(e,o,n))&&(Uc(t,e,n,r),Pi(t,e,n))}};function qs(e,t,r,n,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!Qn(r,n)||!Qn(o,a))}function Ws(e,t,r){var n=!1,o=fa,a=t.contextType;return"object"==typeof a&&null!==a?a=bi(a):(o=va(t)?ba:ha.current,a=(n=null!=(n=t.contextTypes))?ya(e,o):fa),t=new t(r,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Hs,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ks(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Hs.enqueueReplaceState(t,t.state,null)}function Qs(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs={},Ci(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=bi(a):(a=va(t)?ba:ha.current,o.context=ya(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&($s(e,t,a,r),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Hs.enqueueReplaceState(o,o.state,null),ji(e,r,o,n),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Ys(e,t){try{var r="",n=t;do{r+=Pe(n),n=n.return}while(n);var o=r}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function Gs(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}var Js="function"==typeof WeakMap?WeakMap:Map;function Xs(e,t,r){(r=Mi(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){jc||(jc=!0,Ec=n)},r}function Zs(e,t,r){(r=Mi(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(r.callback=function(){"function"!=typeof n&&(null===Fc?Fc=new Set([this]):Fc.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function el(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new Js;var o=new Set;n.set(t,o)}else void 0===(o=n.get(t))&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=uu.bind(null,e,t,r),t.then(e,e))}function tl(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function rl(e,t,r,n,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=Mi(-1,1)).tag=2,Ti(r,t,1))),r.lanes|=1),e)}var nl=ie.ReactCurrentOwner,ol=!1;function al(e,t,r,n){t.child=null===e?li(t,null,r,n):si(t,e.child,r,n)}function il(e,t,r,n,o){r=r.render;var a=t.ref;return mi(t,o),n=rs(e,t,r,n,a,o),r=ns(),null===e||ol?(qa&&r&&Ua(t),t.flags|=1,al(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,jl(e,t,o))}function sl(e,t,r,n,o){if(null===e){var a=r.type;return"function"!=typeof a||bu(a)||void 0!==a.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=vu(r.type,null,n,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,ll(e,t,a,n,o))}if(a=e.child,0===(e.lanes&o)){var i=a.memoizedProps;if((r=null!==(r=r.compare)?r:Qn)(i,n)&&e.ref===t.ref)return jl(e,t,o)}return t.flags|=1,(e=yu(a,n)).ref=t.ref,e.return=t,t.child=e}function ll(e,t,r,n,o){if(null!==e){var a=e.memoizedProps;if(Qn(a,n)&&e.ref===t.ref){if(ol=!1,t.pendingProps=n=a,0===(e.lanes&o))return t.lanes=e.lanes,jl(e,t,o);131072&e.flags&&(ol=!0)}}return dl(e,t,r,n,o)}function cl(e,t,r){var n=t.pendingProps,o=n.children,a=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(1&t.mode){if(!(1073741824&r))return e=null!==a?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,pa(yc,bc),bc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==a?a.baseLanes:r,pa(yc,bc),bc|=n}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},pa(yc,bc),bc|=r;else null!==a?(n=a.baseLanes|r,t.memoizedState=null):n=r,pa(yc,bc),bc|=n;return al(e,t,o,r),t.child}function ul(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function dl(e,t,r,n,o){var a=va(r)?ba:ha.current;return a=ya(t,a),mi(t,o),r=rs(e,t,r,n,a,o),n=ns(),null===e||ol?(qa&&n&&Ua(t),t.flags|=1,al(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,jl(e,t,o))}function gl(e,t,r,n,o){if(va(r)){var a=!0;Ca(t)}else a=!1;if(mi(t,o),null===t.stateNode)zl(e,t),Ws(t,r,n),Qs(t,r,n,o),n=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,c=r.contextType;"object"==typeof c&&null!==c?c=bi(c):c=ya(t,c=va(r)?ba:ha.current);var u=r.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==n||l!==c)&&Ks(t,i,n,c),xi=!1;var g=t.memoizedState;i.state=g,ji(t,n,i,o),l=t.memoizedState,s!==n||g!==l||ma.current||xi?("function"==typeof u&&($s(t,r,u,n),l=t.memoizedState),(s=xi||qs(t,r,s,n,g,l,c))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),i.props=n,i.state=l,i.context=c,n=s):("function"==typeof i.componentDidMount&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,Si(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Vs(t.type,s),i.props=c,d=t.pendingProps,g=i.context,"object"==typeof(l=r.contextType)&&null!==l?l=bi(l):l=ya(t,l=va(r)?ba:ha.current);var p=r.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s!==d||g!==l)&&Ks(t,i,n,l),xi=!1,g=t.memoizedState,i.state=g,ji(t,n,i,o);var f=t.memoizedState;s!==d||g!==f||ma.current||xi?("function"==typeof p&&($s(t,r,p,n),f=t.memoizedState),(c=xi||qs(t,r,c,n,g,f,l)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(n,f,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(n,f,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=f),i.props=n,i.state=f,i.context=l,n=c):("function"!=typeof i.componentDidUpdate||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),n=!1)}return pl(e,t,r,n,a,o)}function pl(e,t,r,n,o,a){ul(e,t);var i=!!(128&t.flags);if(!n&&!i)return o&&Sa(t,r,!1),jl(e,t,a);n=t.stateNode,nl.current=t;var s=i&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&i?(t.child=si(t,e.child,null,a),t.child=si(t,null,s,a)):al(e,t,s,a),t.memoizedState=n.state,o&&Sa(t,r,!0),t.child}function fl(e){var t=e.stateNode;t.pendingContext?ka(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ka(0,t.context,!1),_i(e,t.containerInfo)}function hl(e,t,r,n,o){return ei(),ti(o),t.flags|=256,al(e,t,r,n),t.child}var ml,bl,yl,vl,wl={dehydrated:null,treeContext:null,retryLane:0};function kl(e){return{baseLanes:e,cachePool:null,transitions:null}}function xl(e,t,r){var n,o=t.pendingProps,a=Oi.current,i=!1,s=!!(128&t.flags);if((n=s)||(n=(null===e||null!==e.memoizedState)&&!!(2&a)),n?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),pa(Oi,1&a),null===e)return Ga(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=o.children,e=o.fallback,i?(o=t.mode,i=t.child,s={mode:"hidden",children:s},1&o||null===i?i=ku(s,o,0,null):(i.childLanes=0,i.pendingProps=s),e=wu(e,o,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=kl(r),t.memoizedState=wl,e):Cl(t,s));if(null!==(a=e.memoizedState)&&null!==(n=a.dehydrated))return function(e,t,r,n,o,a,i){if(r)return 256&t.flags?(t.flags&=-257,Sl(e,t,i,n=Gs(Error(q(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=n.fallback,o=t.mode,n=ku({mode:"visible",children:n.children},o,0,null),(a=wu(a,o,i,null)).flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,1&t.mode&&si(t,e.child,null,i),t.child.memoizedState=kl(i),t.memoizedState=wl,a);if(!(1&t.mode))return Sl(e,t,i,null);if("$!"===o.data){if(n=o.nextSibling&&o.nextSibling.dataset)var s=n.dgst;return n=s,Sl(e,t,i,n=Gs(a=Error(q(419)),n,void 0))}if(s=0!==(i&e.childLanes),ol||s){if(null!==(n=fc)){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(n.suspendedLanes|i))?0:o)&&o!==a.retryLane&&(a.retryLane=o,ki(e,o),Uc(n,e,o,-1))}return eu(),Sl(e,t,i,n=Gs(Error(q(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=gu.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,Ha=Go(o.nextSibling),$a=t,qa=!0,Wa=null,null!==e&&(Ra[Aa++]=Ia,Ra[Aa++]=Ba,Ra[Aa++]=_a,Ia=e.id,Ba=e.overflow,_a=t),t=Cl(t,n.children),t.flags|=4096,t)}(e,t,s,o,n,a,r);if(i){i=o.fallback,s=t.mode,n=(a=e.child).sibling;var l={mode:"hidden",children:o.children};return 1&s||t.child===a?(o=yu(a,l)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=l,t.deletions=null),null!==n?i=yu(n,i):(i=wu(i,s,r,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,s=null===(s=e.child.memoizedState)?kl(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~r,t.memoizedState=wl,o}return e=(i=e.child).sibling,o=yu(i,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Cl(e,t){return(t=ku({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Sl(e,t,r,n){return null!==n&&ti(n),si(t,e.child,null,r),(e=Cl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ml(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),hi(e.return,t,r)}function Tl(e,t,r,n,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=o)}function Pl(e,t,r){var n=t.pendingProps,o=n.revealOrder,a=n.tail;if(al(e,t,n.children,r),2&(n=Oi.current))n=1&n|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ml(e,r,t);else if(19===e.tag)Ml(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(pa(Oi,n),1&t.mode)switch(o){case"forwards":for(r=t.child,o=null;null!==r;)null!==(e=r.alternate)&&null===Ui(e)&&(o=r),r=r.sibling;null===(r=o)?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),Tl(t,!1,o,r,a);break;case"backwards":for(r=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Ui(e)){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}Tl(t,!0,r,null,a);break;case"together":Tl(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function zl(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function jl(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),kc|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(q(153));if(null!==t.child){for(r=yu(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=yu(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function El(e,t){if(!qa)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Fl(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=14680064&o.subtreeFlags,n|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Ll(e,t,r){var n=t.pendingProps;switch(Va(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fl(t),null;case 1:case 17:return va(t.type)&&wa(),Fl(t),null;case 3:return n=t.stateNode,Ii(),ga(ma),ga(ha),$i(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(Xa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==Wa&&(qc(Wa),Wa=null))),bl(e,t),Fl(t),null;case 5:Di(t);var o=Ai(Ri.current);if(r=t.type,null!==e&&null!=t.stateNode)yl(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(q(166));return Fl(t),null}if(e=Ai(Li.current),Xa(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[Zo]=t,n[ea]=a,e=!!(1&t.mode),r){case"dialog":To("cancel",n),To("close",n);break;case"iframe":case"object":case"embed":To("load",n);break;case"video":case"audio":for(o=0;o<xo.length;o++)To(xo[o],n);break;case"source":To("error",n);break;case"img":case"image":case"link":To("error",n),To("load",n);break;case"details":To("toggle",n);break;case"input":_e(n,a),To("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},To("invalid",n);break;case"textarea":He(n,a),To("invalid",n)}for(var i in ot(r,a),o=null,a)if(a.hasOwnProperty(i)){var s=a[i];"children"===i?"string"==typeof s?n.textContent!==s&&(!0!==a.suppressHydrationWarning&&Do(n.textContent,s,e),o=["children",s]):"number"==typeof s&&n.textContent!==""+s&&(!0!==a.suppressHydrationWarning&&Do(n.textContent,s,e),o=["children",""+s]):K.hasOwnProperty(i)&&null!=s&&"onScroll"===i&&To("scroll",n)}switch(r){case"input":Le(n),De(n,a,!0);break;case"textarea":Le(n),We(n);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(n.onclick=Oo)}n=o,t.updateQueue=n,null!==n&&(t.flags|=4)}else{i=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=Ke(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=i.createElement(r,{is:n.is}):(e=i.createElement(r),"select"===r&&(i=e,n.multiple?i.multiple=!0:n.size&&(i.size=n.size))):e=i.createElementNS(e,r),e[Zo]=t,e[ea]=n,ml(e,t,!1,!1),t.stateNode=e;e:{switch(i=at(r,n),r){case"dialog":To("cancel",e),To("close",e),o=n;break;case"iframe":case"object":case"embed":To("load",e),o=n;break;case"video":case"audio":for(o=0;o<xo.length;o++)To(xo[o],e);o=n;break;case"source":To("error",e),o=n;break;case"img":case"image":case"link":To("error",e),To("load",e),o=n;break;case"details":To("toggle",e),o=n;break;case"input":_e(e,n),o=Ae(e,n),To("invalid",e);break;case"option":default:o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=Ce({},n,{value:void 0}),To("invalid",e);break;case"textarea":He(e,n),o=$e(e,n),To("invalid",e)}for(a in ot(r,o),s=o)if(s.hasOwnProperty(a)){var l=s[a];"style"===a?rt(e,l):"dangerouslySetInnerHTML"===a?null!=(l=l?l.__html:void 0)&&Je(e,l):"children"===a?"string"==typeof l?("textarea"!==r||""!==l)&&Xe(e,l):"number"==typeof l&&Xe(e,""+l):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(K.hasOwnProperty(a)?null!=l&&"onScroll"===a&&To("scroll",e):null!=l&&ae(e,a,l,i))}switch(r){case"input":Le(e),De(e,n,!1);break;case"textarea":Le(e),We(e);break;case"option":null!=n.value&&e.setAttribute("value",""+Ee(n.value));break;case"select":e.multiple=!!n.multiple,null!=(a=n.value)?Ve(e,!!n.multiple,a,!1):null!=n.defaultValue&&Ve(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Oo)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Fl(t),null;case 6:if(e&&null!=t.stateNode)vl(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(q(166));if(r=Ai(Ri.current),Ai(Li.current),Xa(t)){if(n=t.stateNode,r=t.memoizedProps,n[Zo]=t,(a=n.nodeValue!==r)&&null!==(e=$a))switch(e.tag){case 3:Do(n.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Do(n.nodeValue,r,!!(1&e.mode))}a&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[Zo]=t,t.stateNode=n}return Fl(t),null;case 13:if(ga(Oi),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(qa&&null!==Ha&&1&t.mode&&!(128&t.flags))Za(),ei(),t.flags|=98560,a=!1;else if(a=Xa(t),null!==n&&null!==n.dehydrated){if(null===e){if(!a)throw Error(q(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(q(317));a[Zo]=t}else ei(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Fl(t),a=!1}else null!==Wa&&(qc(Wa),Wa=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((n=null!==n)!==(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,1&t.mode&&(null===e||1&Oi.current?0===vc&&(vc=3):eu())),null!==t.updateQueue&&(t.flags|=4),Fl(t),null);case 4:return Ii(),bl(e,t),null===e&&jo(t.stateNode.containerInfo),Fl(t),null;case 10:return fi(t.type._context),Fl(t),null;case 19:if(ga(Oi),null===(a=t.memoizedState))return Fl(t),null;if(n=!!(128&t.flags),null===(i=a.rendering))if(n)El(a,!1);else{if(0!==vc||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(i=Ui(e))){for(t.flags|=128,El(a,!1),null!==(n=i.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(a=r).flags&=14680066,null===(i=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return pa(Oi,1&Oi.current|2),t.child}e=e.sibling}null!==a.tail&&It()>Pc&&(t.flags|=128,n=!0,El(a,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=Ui(i))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),El(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!qa)return Fl(t),null}else 2*It()-a.renderingStartTime>Pc&&1073741824!==r&&(t.flags|=128,n=!0,El(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(null!==(r=a.last)?r.sibling=i:t.child=i,a.last=i)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=It(),t.sibling=null,r=Oi.current,pa(Oi,n?1&r|2:1&r),t):(Fl(t),null);case 22:case 23:return Gc(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&1&t.mode?!!(1073741824&bc)&&(Fl(t),6&t.subtreeFlags&&(t.flags|=8192)):Fl(t),null;case 24:case 25:return null}throw Error(q(156,t.tag))}function Nl(e,t){switch(Va(t),t.tag){case 1:return va(t.type)&&wa(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ii(),ga(ma),ga(ha),$i(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Di(t),null;case 13:if(ga(Oi),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(q(340));ei()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ga(Oi),null;case 4:return Ii(),null;case 10:return fi(t.type._context),null;case 22:case 23:return Gc(),null;default:return null}}ml=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},bl=function(){},yl=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,Ai(Li.current);var a,i=null;switch(r){case"input":o=Ae(e,o),n=Ae(e,n),i=[];break;case"select":o=Ce({},o,{value:void 0}),n=Ce({},n,{value:void 0}),i=[];break;case"textarea":o=$e(e,o),n=$e(e,n),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof n.onClick&&(e.onclick=Oo)}for(c in ot(r,n),r=null,o)if(!n.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var s=o[c];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(K.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in n){var l=n[c];if(s=null!=o?o[c]:void 0,n.hasOwnProperty(c)&&l!==s&&(null!=l||null!=s))if("style"===c)if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(i||(i=[]),i.push(c,r)),r=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(i=i||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(i=i||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(K.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&To("scroll",e),i||s===l||(i=[])):(i=i||[]).push(c,l))}r&&(i=i||[]).push("style",r);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},vl=function(e,t,r,n){r!==n&&(t.flags|=4)};var Rl=!1,Al=!1,_l="function"==typeof WeakSet?WeakSet:Set,Il=null;function Bl(e,t){var r=e.ref;if(null!==r)if("function"==typeof r)try{r(null)}catch(r){cu(e,t,r)}else r.current=null}function Dl(e,t,r){try{r()}catch(r){cu(e,t,r)}}var Ol=!1;function Ul(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var o=n=n.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&Dl(t,r,a)}o=o.next}while(o!==n)}}function Vl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function $l(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"==typeof t?t(e):t.current=e}}function Hl(e){var t=e.alternate;null!==t&&(e.alternate=null,Hl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[Zo],delete t[ea],delete t[ra],delete t[na],delete t[oa])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ql(e){return 5===e.tag||3===e.tag||4===e.tag}function Wl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ql(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Kl(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=Oo));else if(4!==n&&null!==(e=e.child))for(Kl(e,t,r),e=e.sibling;null!==e;)Kl(e,t,r),e=e.sibling}function Ql(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(Ql(e,t,r),e=e.sibling;null!==e;)Ql(e,t,r),e=e.sibling}var Yl=null,Gl=!1;function Jl(e,t,r){for(r=r.child;null!==r;)Xl(e,t,r),r=r.sibling}function Xl(e,t,r){if(qt&&"function"==typeof qt.onCommitFiberUnmount)try{qt.onCommitFiberUnmount(Ht,r)}catch(e){}switch(r.tag){case 5:Al||Bl(r,t);case 6:var n=Yl,o=Gl;Yl=null,Jl(e,t,r),Gl=o,null!==(Yl=n)&&(Gl?(e=Yl,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):Yl.removeChild(r.stateNode));break;case 18:null!==Yl&&(Gl?(e=Yl,r=r.stateNode,8===e.nodeType?Yo(e.parentNode,r):1===e.nodeType&&Yo(e,r),zr(e)):Yo(Yl,r.stateNode));break;case 4:n=Yl,o=Gl,Yl=r.stateNode.containerInfo,Gl=!0,Jl(e,t,r),Yl=n,Gl=o;break;case 0:case 11:case 14:case 15:if(!Al&&(null!==(n=r.updateQueue)&&null!==(n=n.lastEffect))){o=n=n.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(2&a||4&a)&&Dl(r,t,i),o=o.next}while(o!==n)}Jl(e,t,r);break;case 1:if(!Al&&(Bl(r,t),"function"==typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(e){cu(r,t,e)}Jl(e,t,r);break;case 21:Jl(e,t,r);break;case 22:1&r.mode?(Al=(n=Al)||null!==r.memoizedState,Jl(e,t,r),Al=n):Jl(e,t,r);break;default:Jl(e,t,r)}}function Zl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new _l),t.forEach(function(t){var n=pu.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))})}}function ec(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var o=r[n];try{var a=e,i=t,s=i;e:for(;null!==s;){switch(s.tag){case 5:Yl=s.stateNode,Gl=!1;break e;case 3:case 4:Yl=s.stateNode.containerInfo,Gl=!0;break e}s=s.return}if(null===Yl)throw Error(q(160));Xl(a,i,o),Yl=null,Gl=!1;var l=o.alternate;null!==l&&(l.return=null),o.return=null}catch(e){cu(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)tc(t,e),t=t.sibling}function tc(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ec(t,e),rc(e),4&n){try{Ul(3,e,e.return),Vl(3,e)}catch(t){cu(e,e.return,t)}try{Ul(5,e,e.return)}catch(t){cu(e,e.return,t)}}break;case 1:ec(t,e),rc(e),512&n&&null!==r&&Bl(r,r.return);break;case 5:if(ec(t,e),rc(e),512&n&&null!==r&&Bl(r,r.return),32&e.flags){var o=e.stateNode;try{Xe(o,"")}catch(t){cu(e,e.return,t)}}if(4&n&&null!=(o=e.stateNode)){var a=e.memoizedProps,i=null!==r?r.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===a.type&&null!=a.name&&Ie(o,a),at(s,i);var c=at(s,a);for(i=0;i<l.length;i+=2){var u=l[i],d=l[i+1];"style"===u?rt(o,d):"dangerouslySetInnerHTML"===u?Je(o,d):"children"===u?Xe(o,d):ae(o,u,d,c)}switch(s){case"input":Be(o,a);break;case"textarea":qe(o,a);break;case"select":var g=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?Ve(o,!!a.multiple,p,!1):g!==!!a.multiple&&(null!=a.defaultValue?Ve(o,!!a.multiple,a.defaultValue,!0):Ve(o,!!a.multiple,a.multiple?[]:"",!1))}o[ea]=a}catch(t){cu(e,e.return,t)}}break;case 6:if(ec(t,e),rc(e),4&n){if(null===e.stateNode)throw Error(q(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){cu(e,e.return,t)}}break;case 3:if(ec(t,e),rc(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{zr(t.containerInfo)}catch(t){cu(e,e.return,t)}break;case 4:default:ec(t,e),rc(e);break;case 13:ec(t,e),rc(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Tc=It())),4&n&&Zl(e);break;case 22:if(u=null!==r&&null!==r.memoizedState,1&e.mode?(Al=(c=Al)||u,ec(t,e),Al=c):ec(t,e),rc(e),8192&n){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&1&e.mode)for(Il=e,u=e.child;null!==u;){for(d=Il=u;null!==Il;){switch(p=(g=Il).child,g.tag){case 0:case 11:case 14:case 15:Ul(4,g,g.return);break;case 1:Bl(g,g.return);var f=g.stateNode;if("function"==typeof f.componentWillUnmount){n=g,r=g.return;try{t=n,f.props=t.memoizedProps,f.state=t.memoizedState,f.componentWillUnmount()}catch(e){cu(n,r,e)}}break;case 5:Bl(g,g.return);break;case 22:if(null!==g.memoizedState){ic(d);continue}}null!==p?(p.return=g,Il=p):ic(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{o=d.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(s=d.stateNode,i=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=tt("display",i))}catch(t){cu(e,e.return,t)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){cu(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:ec(t,e),rc(e),4&n&&Zl(e);case 21:}}function rc(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(ql(r)){var n=r;break e}r=r.return}throw Error(q(160))}switch(n.tag){case 5:var o=n.stateNode;32&n.flags&&(Xe(o,""),n.flags&=-33),Ql(e,Wl(e),o);break;case 3:case 4:var a=n.stateNode.containerInfo;Kl(e,Wl(e),a);break;default:throw Error(q(161))}}catch(t){cu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function nc(e,t,r){Il=e,oc(e)}function oc(e,t,r){for(var n=!!(1&e.mode);null!==Il;){var o=Il,a=o.child;if(22===o.tag&&n){var i=null!==o.memoizedState||Rl;if(!i){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Al;s=Rl;var c=Al;if(Rl=i,(Al=l)&&!c)for(Il=o;null!==Il;)l=(i=Il).child,22===i.tag&&null!==i.memoizedState?sc(o):null!==l?(l.return=i,Il=l):sc(o);for(;null!==a;)Il=a,oc(a),a=a.sibling;Il=o,Rl=s,Al=c}ac(e)}else 8772&o.subtreeFlags&&null!==a?(a.return=o,Il=a):ac(e)}}function ac(e){for(;null!==Il;){var t=Il;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Al||Vl(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!Al)if(null===r)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:Vs(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Ei(t,a,n);break;case 3:var i=t.updateQueue;if(null!==i){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Ei(t,i,r)}break;case 5:var s=t.stateNode;if(null===r&&4&t.flags){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&zr(d)}}}break;default:throw Error(q(163))}Al||512&t.flags&&$l(t)}catch(e){cu(t,t.return,e)}}if(t===e){Il=null;break}if(null!==(r=t.sibling)){r.return=t.return,Il=r;break}Il=t.return}}function ic(e){for(;null!==Il;){var t=Il;if(t===e){Il=null;break}var r=t.sibling;if(null!==r){r.return=t.return,Il=r;break}Il=t.return}}function sc(e){for(;null!==Il;){var t=Il;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Vl(4,t)}catch(e){cu(t,r,e)}break;case 1:var n=t.stateNode;if("function"==typeof n.componentDidMount){var o=t.return;try{n.componentDidMount()}catch(e){cu(t,o,e)}}var a=t.return;try{$l(t)}catch(e){cu(t,a,e)}break;case 5:var i=t.return;try{$l(t)}catch(e){cu(t,i,e)}}}catch(e){cu(t,t.return,e)}if(t===e){Il=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Il=s;break}Il=t.return}}var lc,cc=Math.ceil,uc=ie.ReactCurrentDispatcher,dc=ie.ReactCurrentOwner,gc=ie.ReactCurrentBatchConfig,pc=0,fc=null,hc=null,mc=0,bc=0,yc=da(0),vc=0,wc=null,kc=0,xc=0,Cc=0,Sc=null,Mc=null,Tc=0,Pc=1/0,zc=null,jc=!1,Ec=null,Fc=null,Lc=!1,Nc=null,Rc=0,Ac=0,_c=null,Ic=-1,Bc=0;function Dc(){return 6&pc?It():-1!==Ic?Ic:Ic=It()}function Oc(e){return 1&e.mode?2&pc&&0!==mc?mc&-mc:null!==ri.transition?(0===Bc&&(Bc=tr()),Bc):0!==(e=ar)?e:e=void 0===(e=window.event)?16:_r(e.type):1}function Uc(e,t,r,n){if(50<Ac)throw Ac=0,_c=null,Error(q(185));nr(e,r,n),2&pc&&e===fc||(e===fc&&(!(2&pc)&&(xc|=r),4===vc&&Wc(e,mc)),Vc(e,n),1===r&&0===pc&&!(1&t.mode)&&(Pc=It()+500,Ta&&ja()))}function Vc(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-Wt(a),s=1<<i,l=o[i];-1===l?0!==(s&r)&&0===(s&n)||(o[i]=Zt(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var n=Xt(e,e===fc?mc:0);if(0===n)null!==r&&Rt(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&Rt(r),1===t)0===e.tag?function(e){Ta=!0,za(e)}(Kc.bind(null,e)):za(Kc.bind(null,e)),Ko(function(){!(6&pc)&&ja()}),r=null;else{switch(ir(n)){case 1:r=Dt;break;case 4:r=Ot;break;case 16:default:r=Ut;break;case 536870912:r=$t}r=fu(r,$c.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function $c(e,t){if(Ic=-1,Bc=0,6&pc)throw Error(q(327));var r=e.callbackNode;if(su()&&e.callbackNode!==r)return null;var n=Xt(e,e===fc?mc:0);if(0===n)return null;if(30&n||0!==(n&e.expiredLanes)||t)t=tu(e,n);else{t=n;var o=pc;pc|=2;var a=Zc();for(fc===e&&mc===t||(zc=null,Pc=It()+500,Jc(e,t));;)try{nu();break}catch(t){Xc(e,t)}pi(),uc.current=a,pc=o,null!==hc?t=0:(fc=null,mc=0,t=vc)}if(0!==t){if(2===t&&(0!==(o=er(e))&&(n=o,t=Hc(e,o))),1===t)throw r=wc,Jc(e,0),Wc(e,n),Vc(e,It()),r;if(6===t)Wc(e,n);else{if(o=e.current.alternate,!(30&n||function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var o=r[n],a=o.getSnapshot;o=o.value;try{if(!Kn(a(),o))return!1}catch(e){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=tu(e,n),2===t&&(a=er(e),0!==a&&(n=a,t=Hc(e,a))),1!==t)))throw r=wc,Jc(e,0),Wc(e,n),Vc(e,It()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(q(345));case 2:case 5:iu(e,Mc,zc);break;case 3:if(Wc(e,n),(130023424&n)===n&&10<(t=Tc+500-It())){if(0!==Xt(e,0))break;if(((o=e.suspendedLanes)&n)!==n){Dc(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ho(iu.bind(null,e,Mc,zc),t);break}iu(e,Mc,zc);break;case 4:if(Wc(e,n),(4194240&n)===n)break;for(t=e.eventTimes,o=-1;0<n;){var i=31-Wt(n);a=1<<i,(i=t[i])>o&&(o=i),n&=~a}if(n=o,10<(n=(120>(n=It()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*cc(n/1960))-n)){e.timeoutHandle=Ho(iu.bind(null,e,Mc,zc),n);break}iu(e,Mc,zc);break;default:throw Error(q(329))}}}return Vc(e,It()),e.callbackNode===r?$c.bind(null,e):null}function Hc(e,t){var r=Sc;return e.current.memoizedState.isDehydrated&&(Jc(e,t).flags|=256),2!==(e=tu(e,t))&&(t=Mc,Mc=r,null!==t&&qc(t)),e}function qc(e){null===Mc?Mc=e:Mc.push.apply(Mc,e)}function Wc(e,t){for(t&=~Cc,t&=~xc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Wt(t),n=1<<r;e[r]=-1,t&=~n}}function Kc(e){if(6&pc)throw Error(q(327));su();var t=Xt(e,0);if(!(1&t))return Vc(e,It()),null;var r=tu(e,t);if(0!==e.tag&&2===r){var n=er(e);0!==n&&(t=n,r=Hc(e,n))}if(1===r)throw r=wc,Jc(e,0),Wc(e,t),Vc(e,It()),r;if(6===r)throw Error(q(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,iu(e,Mc,zc),Vc(e,It()),null}function Qc(e,t){var r=pc;pc|=1;try{return e(t)}finally{0===(pc=r)&&(Pc=It()+500,Ta&&ja())}}function Yc(e){null!==Nc&&0===Nc.tag&&!(6&pc)&&su();var t=pc;pc|=1;var r=gc.transition,n=ar;try{if(gc.transition=null,ar=1,e)return e()}finally{ar=n,gc.transition=r,!(6&(pc=t))&&ja()}}function Gc(){bc=yc.current,ga(yc)}function Jc(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,qo(r)),null!==hc)for(r=hc.return;null!==r;){var n=r;switch(Va(n),n.tag){case 1:null!=(n=n.type.childContextTypes)&&wa();break;case 3:Ii(),ga(ma),ga(ha),$i();break;case 5:Di(n);break;case 4:Ii();break;case 13:case 19:ga(Oi);break;case 10:fi(n.type._context);break;case 22:case 23:Gc()}r=r.return}if(fc=e,hc=e=yu(e.current,null),mc=bc=t,vc=0,wc=null,Cc=xc=kc=0,Mc=Sc=null,null!==yi){for(t=0;t<yi.length;t++)if(null!==(n=(r=yi[t]).interleaved)){r.interleaved=null;var o=n.next,a=r.pending;if(null!==a){var i=a.next;a.next=o,n.next=i}r.pending=n}yi=null}return e}function Xc(e,t){for(;;){var r=hc;try{if(pi(),Hi.current=Bs,Gi){for(var n=Ki.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}Gi=!1}if(Wi=0,Yi=Qi=Ki=null,Ji=!1,Xi=0,dc.current=null,null===r||null===r.return){vc=1,wc=t,hc=null;break}e:{var a=e,i=r.return,s=r,l=t;if(t=mc,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,u=s,d=u.tag;if(!(1&u.mode||0!==d&&11!==d&&15!==d)){var g=u.alternate;g?(u.updateQueue=g.updateQueue,u.memoizedState=g.memoizedState,u.lanes=g.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=tl(i);if(null!==p){p.flags&=-257,rl(p,i,s,0,t),1&p.mode&&el(a,c,t),l=c;var f=(t=p).updateQueue;if(null===f){var h=new Set;h.add(l),t.updateQueue=h}else f.add(l);break e}if(!(1&t)){el(a,c,t),eu();break e}l=Error(q(426))}else if(qa&&1&s.mode){var m=tl(i);if(null!==m){!(65536&m.flags)&&(m.flags|=256),rl(m,i,s,0,t),ti(Ys(l,s));break e}}a=l=Ys(l,s),4!==vc&&(vc=2),null===Sc?Sc=[a]:Sc.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,zi(a,Xs(0,l,t));break e;case 1:s=l;var b=a.type,y=a.stateNode;if(!(128&a.flags||"function"!=typeof b.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==Fc&&Fc.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t,zi(a,Zs(a,s,t));break e}}a=a.return}while(null!==a)}au(r)}catch(e){t=e,hc===r&&null!==r&&(hc=r=r.return);continue}break}}function Zc(){var e=uc.current;return uc.current=Bs,null===e?Bs:e}function eu(){0!==vc&&3!==vc&&2!==vc||(vc=4),null===fc||!(268435455&kc)&&!(268435455&xc)||Wc(fc,mc)}function tu(e,t){var r=pc;pc|=2;var n=Zc();for(fc===e&&mc===t||(zc=null,Jc(e,t));;)try{ru();break}catch(t){Xc(e,t)}if(pi(),pc=r,uc.current=n,null!==hc)throw Error(q(261));return fc=null,mc=0,vc}function ru(){for(;null!==hc;)ou(hc)}function nu(){for(;null!==hc&&!At();)ou(hc)}function ou(e){var t=lc(e.alternate,e,bc);e.memoizedProps=e.pendingProps,null===t?au(e):hc=t,dc.current=null}function au(e){var t=e;do{var r=t.alternate;if(e=t.return,32768&t.flags){if(null!==(r=Nl(r,t)))return r.flags&=32767,void(hc=r);if(null===e)return vc=6,void(hc=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(r=Ll(r,t,bc)))return void(hc=r);if(null!==(t=t.sibling))return void(hc=t);hc=t=e}while(null!==t);0===vc&&(vc=5)}function iu(e,t,r){var n=ar,o=gc.transition;try{gc.transition=null,ar=1,function(e,t,r,n){do{su()}while(null!==Nc);if(6&pc)throw Error(q(327));r=e.finishedWork;var o=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(q(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-Wt(r),a=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~a}}(e,a),e===fc&&(hc=fc=null,mc=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Lc||(Lc=!0,fu(Ut,function(){return su(),null})),a=!!(15990&r.flags),!!(15990&r.subtreeFlags)||a){a=gc.transition,gc.transition=null;var i=ar;ar=1;var s=pc;pc|=4,dc.current=null,function(e,t){if(Uo=Er,Zn(e=Xn())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var o=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch(e){r=null;break e}var i=0,s=-1,l=-1,c=0,u=0,d=e,g=null;t:for(;;){for(var p;d!==r||0!==o&&3!==d.nodeType||(s=i+o),d!==a||0!==n&&3!==d.nodeType||(l=i+n),3===d.nodeType&&(i+=d.nodeValue.length),null!==(p=d.firstChild);)g=d,d=p;for(;;){if(d===e)break t;if(g===r&&++c===o&&(s=i),g===a&&++u===n&&(l=i),null!==(p=d.nextSibling))break;g=(d=g).parentNode}d=p}r=-1===s||-1===l?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Vo={focusedElem:e,selectionRange:r},Er=!1,Il=t;null!==Il;)if(e=(t=Il).child,1028&t.subtreeFlags&&null!==e)e.return=t,Il=e;else for(;null!==Il;){t=Il;try{var f=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==f){var h=f.memoizedProps,m=f.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?h:Vs(t.type,h),m);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var v=t.stateNode.containerInfo;1===v.nodeType?v.textContent="":9===v.nodeType&&v.documentElement&&v.removeChild(v.documentElement);break;default:throw Error(q(163))}}catch(e){cu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Il=e;break}Il=t.return}f=Ol,Ol=!1}(e,r),tc(r,e),eo(Vo),Er=!!Uo,Vo=Uo=null,e.current=r,nc(r),_t(),pc=s,ar=i,gc.transition=a}else e.current=r;if(Lc&&(Lc=!1,Nc=e,Rc=o),a=e.pendingLanes,0===a&&(Fc=null),function(e){if(qt&&"function"==typeof qt.onCommitFiberRoot)try{qt.onCommitFiberRoot(Ht,e,void 0,!(128&~e.current.flags))}catch(e){}}(r.stateNode),Vc(e,It()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(jc)throw jc=!1,e=Ec,Ec=null,e;!!(1&Rc)&&0!==e.tag&&su(),a=e.pendingLanes,1&a?e===_c?Ac++:(Ac=0,_c=e):Ac=0,ja()}(e,t,r,n)}finally{gc.transition=o,ar=n}return null}function su(){if(null!==Nc){var e=ir(Rc),t=gc.transition,r=ar;try{if(gc.transition=null,ar=16>e?16:e,null===Nc)var n=!1;else{if(e=Nc,Nc=null,Rc=0,6&pc)throw Error(q(331));var o=pc;for(pc|=4,Il=e.current;null!==Il;){var a=Il,i=a.child;if(16&Il.flags){var s=a.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for(Il=c;null!==Il;){var u=Il;switch(u.tag){case 0:case 11:case 15:Ul(8,u,a)}var d=u.child;if(null!==d)d.return=u,Il=d;else for(;null!==Il;){var g=(u=Il).sibling,p=u.return;if(Hl(u),u===c){Il=null;break}if(null!==g){g.return=p,Il=g;break}Il=p}}}var f=a.alternate;if(null!==f){var h=f.child;if(null!==h){f.child=null;do{var m=h.sibling;h.sibling=null,h=m}while(null!==h)}}Il=a}}if(2064&a.subtreeFlags&&null!==i)i.return=a,Il=i;else e:for(;null!==Il;){if(2048&(a=Il).flags)switch(a.tag){case 0:case 11:case 15:Ul(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,Il=b;break e}Il=a.return}}var y=e.current;for(Il=y;null!==Il;){var v=(i=Il).child;if(2064&i.subtreeFlags&&null!==v)v.return=i,Il=v;else e:for(i=y;null!==Il;){if(2048&(s=Il).flags)try{switch(s.tag){case 0:case 11:case 15:Vl(9,s)}}catch(e){cu(s,s.return,e)}if(s===i){Il=null;break e}var w=s.sibling;if(null!==w){w.return=s.return,Il=w;break e}Il=s.return}}if(pc=o,ja(),qt&&"function"==typeof qt.onPostCommitFiberRoot)try{qt.onPostCommitFiberRoot(Ht,e)}catch(e){}n=!0}return n}finally{ar=r,gc.transition=t}}return!1}function lu(e,t,r){e=Ti(e,t=Xs(0,t=Ys(r,t),1),1),t=Dc(),null!==e&&(nr(e,1,t),Vc(e,t))}function cu(e,t,r){if(3===e.tag)lu(e,e,r);else for(;null!==t;){if(3===t.tag){lu(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Fc||!Fc.has(n))){t=Ti(t,e=Zs(t,e=Ys(r,e),1),1),e=Dc(),null!==t&&(nr(t,1,e),Vc(t,e));break}}t=t.return}}function uu(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=Dc(),e.pingedLanes|=e.suspendedLanes&r,fc===e&&(mc&r)===r&&(4===vc||3===vc&&(130023424&mc)===mc&&500>It()-Tc?Jc(e,0):Cc|=r),Vc(e,t)}function du(e,t){0===t&&(1&e.mode?(t=Gt,!(130023424&(Gt<<=1))&&(Gt=4194304)):t=1);var r=Dc();null!==(e=ki(e,t))&&(nr(e,t,r),Vc(e,r))}function gu(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),du(e,r)}function pu(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(q(314))}null!==n&&n.delete(t),du(e,r)}function fu(e,t){return Nt(e,t)}function hu(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mu(e,t,r,n){return new hu(e,t,r,n)}function bu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function yu(e,t){var r=e.alternate;return null===r?((r=mu(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function vu(e,t,r,n,o,a){var i=2;if(n=e,"function"==typeof e)bu(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case ce:return wu(r.children,o,a,t);case ue:i=8,o|=8;break;case de:return(e=mu(12,r,t,2|o)).elementType=de,e.lanes=a,e;case he:return(e=mu(13,r,t,o)).elementType=he,e.lanes=a,e;case me:return(e=mu(19,r,t,o)).elementType=me,e.lanes=a,e;case ve:return ku(r,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ge:i=10;break e;case pe:i=9;break e;case fe:i=11;break e;case be:i=14;break e;case ye:i=16,n=null;break e}throw Error(q(130,null==e?e:typeof e,""))}return(t=mu(i,r,t,o)).elementType=e,t.type=n,t.lanes=a,t}function wu(e,t,r,n){return(e=mu(7,e,n,t)).lanes=r,e}function ku(e,t,r,n){return(e=mu(22,e,n,t)).elementType=ve,e.lanes=r,e.stateNode={isHidden:!1},e}function xu(e,t,r){return(e=mu(6,e,null,t)).lanes=r,e}function Cu(e,t,r){return(t=mu(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Su(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rr(0),this.expirationTimes=rr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rr(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Mu(e,t,r,n,o,a,i,s,l){return e=new Su(e,t,r,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=mu(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ci(a),e}function Tu(e){if(!e)return fa;e:{if(zt(e=e._reactInternals)!==e||1!==e.tag)throw Error(q(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(va(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(q(171))}if(1===e.tag){var r=e.type;if(va(r))return xa(e,r,t)}return t}function Pu(e,t,r,n,o,a,i,s,l){return(e=Mu(r,n,!0,e,0,a,0,s,l)).context=Tu(null),r=e.current,(a=Mi(n=Dc(),o=Oc(r))).callback=null!=t?t:null,Ti(r,a,o),e.current.lanes=o,nr(e,o,n),Vc(e,n),e}function zu(e,t,r,n){var o=t.current,a=Dc(),i=Oc(o);return r=Tu(r),null===t.context?t.context=r:t.pendingContext=r,(t=Mi(a,i)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=Ti(o,t,i))&&(Uc(e,o,i,a),Pi(e,o,i)),i}function ju(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Eu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Fu(e,t){Eu(e,t),(e=e.alternate)&&Eu(e,t)}lc=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||ma.current)ol=!0;else{if(0===(e.lanes&r)&&!(128&t.flags))return ol=!1,function(e,t,r){switch(t.tag){case 3:fl(t),ei();break;case 5:Bi(t);break;case 1:va(t.type)&&Ca(t);break;case 4:_i(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;pa(ci,n._currentValue),n._currentValue=o;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(pa(Oi,1&Oi.current),t.flags|=128,null):0!==(r&t.child.childLanes)?xl(e,t,r):(pa(Oi,1&Oi.current),null!==(e=jl(e,t,r))?e.sibling:null);pa(Oi,1&Oi.current);break;case 19:if(n=0!==(r&t.childLanes),128&e.flags){if(n)return Pl(e,t,r);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),pa(Oi,Oi.current),n)break;return null;case 22:case 23:return t.lanes=0,cl(e,t,r)}return jl(e,t,r)}(e,t,r);ol=!!(131072&e.flags)}else ol=!1,qa&&1048576&t.flags&&Oa(t,Na,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;zl(e,t),e=t.pendingProps;var o=ya(t,ha.current);mi(t,r),o=rs(null,t,n,e,o,r);var a=ns();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,va(n)?(a=!0,Ca(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ci(t),o.updater=Hs,t.stateNode=o,o._reactInternals=t,Qs(t,n,e,r),t=pl(null,t,n,!0,a,r)):(t.tag=0,qa&&a&&Ua(t),al(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(zl(e,t),e=t.pendingProps,n=(o=n._init)(n._payload),t.type=n,o=t.tag=function(e){if("function"==typeof e)return bu(e)?1:0;if(null!=e){if((e=e.$$typeof)===fe)return 11;if(e===be)return 14}return 2}(n),e=Vs(n,e),o){case 0:t=dl(null,t,n,e,r);break e;case 1:t=gl(null,t,n,e,r);break e;case 11:t=il(null,t,n,e,r);break e;case 14:t=sl(null,t,n,Vs(n.type,e),r);break e}throw Error(q(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,dl(e,t,n,o=t.elementType===n?o:Vs(n,o),r);case 1:return n=t.type,o=t.pendingProps,gl(e,t,n,o=t.elementType===n?o:Vs(n,o),r);case 3:e:{if(fl(t),null===e)throw Error(q(387));n=t.pendingProps,o=(a=t.memoizedState).element,Si(e,t),ji(t,n,null,r);var i=t.memoizedState;if(n=i.element,a.isDehydrated){if(a={element:n,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=hl(e,t,n,r,o=Ys(Error(q(423)),t));break e}if(n!==o){t=hl(e,t,n,r,o=Ys(Error(q(424)),t));break e}for(Ha=Go(t.stateNode.containerInfo.firstChild),$a=t,qa=!0,Wa=null,r=li(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(ei(),n===o){t=jl(e,t,r);break e}al(e,t,n,r)}t=t.child}return t;case 5:return Bi(t),null===e&&Ga(t),n=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,i=o.children,$o(n,o)?i=null:null!==a&&$o(n,a)&&(t.flags|=32),ul(e,t),al(e,t,i,r),t.child;case 6:return null===e&&Ga(t),null;case 13:return xl(e,t,r);case 4:return _i(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=si(t,null,n,r):al(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,il(e,t,n,o=t.elementType===n?o:Vs(n,o),r);case 7:return al(e,t,t.pendingProps,r),t.child;case 8:case 12:return al(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,pa(ci,n._currentValue),n._currentValue=i,null!==a)if(Kn(a.value,i)){if(a.children===o.children&&!ma.current){t=jl(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){i=a.child;for(var l=s.firstContext;null!==l;){if(l.context===n){if(1===a.tag){(l=Mi(-1,r&-r)).tag=2;var c=a.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=r,null!==(l=a.alternate)&&(l.lanes|=r),hi(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(10===a.tag)i=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(i=a.return))throw Error(q(341));i.lanes|=r,null!==(s=i.alternate)&&(s.lanes|=r),hi(i,r,t),i=a.sibling}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===t){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}al(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,mi(t,r),n=n(o=bi(o)),t.flags|=1,al(e,t,n,r),t.child;case 14:return o=Vs(n=t.type,t.pendingProps),sl(e,t,n,o=Vs(n.type,o),r);case 15:return ll(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Vs(n,o),zl(e,t),t.tag=1,va(n)?(e=!0,Ca(t)):e=!1,mi(t,r),Ws(t,n,o),Qs(t,n,o,r),pl(null,t,n,!0,e,r);case 19:return Pl(e,t,r);case 22:return cl(e,t,r)}throw Error(q(156,t.tag))};var Lu="function"==typeof reportError?reportError:function(e){};function Nu(e){this._internalRoot=e}function Ru(e){this._internalRoot=e}function Au(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function _u(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Iu(){}function Bu(e,t,r,n,o){var a=r._reactRootContainer;if(a){var i=a;if("function"==typeof o){var s=o;o=function(){var e=ju(i);s.call(e)}}zu(t,i,e,o)}else i=function(e,t,r,n,o){if(o){if("function"==typeof n){var a=n;n=function(){var e=ju(i);a.call(e)}}var i=Pu(t,n,e,0,null,!1,0,"",Iu);return e._reactRootContainer=i,e[ta]=i.current,jo(8===e.nodeType?e.parentNode:e),Yc(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof n){var s=n;n=function(){var e=ju(l);s.call(e)}}var l=Mu(e,0,!1,null,0,!1,0,"",Iu);return e._reactRootContainer=l,e[ta]=l.current,jo(8===e.nodeType?e.parentNode:e),Yc(function(){zu(t,l,r,n)}),l}(r,t,e,o,n);return ju(i)}Ru.prototype.render=Nu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(q(409));zu(e,t,null,null)},Ru.prototype.unmount=Nu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;Yc(function(){zu(null,e,null,null)}),t[ta]=null}},Ru.prototype.unstable_scheduleHydration=function(e){if(e){var t=ur();e={blockedOn:null,target:e,priority:t};for(var r=0;r<vr.length&&0!==t&&t<vr[r].priority;r++);vr.splice(r,0,e),0===r&&Cr(e)}},sr=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Jt(t.pendingLanes);0!==r&&(or(t,1|r),Vc(t,It()),!(6&pc)&&(Pc=It()+500,ja()))}break;case 13:Yc(function(){var t=ki(e,1);if(null!==t){var r=Dc();Uc(t,e,1,r)}}),Fu(e,1)}},lr=function(e){if(13===e.tag){var t=ki(e,134217728);if(null!==t)Uc(t,e,134217728,Dc());Fu(e,134217728)}},cr=function(e){if(13===e.tag){var t=Oc(e),r=ki(e,t);if(null!==r)Uc(r,e,t,Dc());Fu(e,t)}},ur=function(){return ar},dr=function(e,t){var r=ar;try{return ar=e,t()}finally{ar=r}},lt=function(e,t,r){switch(t){case"input":if(Be(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=la(n);if(!o)throw Error(q(90));Ne(n),Be(n,o)}}}break;case"textarea":qe(e,r);break;case"select":null!=(t=r.value)&&Ve(e,!!r.multiple,t,!1)}},ft=Qc,ht=Yc;var Du={usingClientEntryPoint:!1,Events:[ia,sa,la,gt,pt,Qc]},Ou={findFiberByHostInstance:aa,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Uu={bundleType:Ou.bundleType,version:Ou.version,rendererPackageName:Ou.rendererPackageName,rendererConfig:Ou.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ie.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ft(e))?null:e.stateNode},findFiberByHostInstance:Ou.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Vu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vu.isDisabled&&Vu.supportsFiber)try{Ht=Vu.inject(Uu),qt=Vu}catch(Ge){}}D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Du,D.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Au(t))throw Error(q(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:le,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},D.createRoot=function(e,t){if(!Au(e))throw Error(q(299));var r=!1,n="",o=Lu;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Mu(e,1,!1,null,0,r,0,n,o),e[ta]=t.current,jo(8===e.nodeType?e.parentNode:e),new Nu(t)},D.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(q(188));throw e=Object.keys(e).join(","),Error(q(268,e))}return e=null===(e=Ft(t))?null:e.stateNode},D.flushSync=function(e){return Yc(e)},D.hydrate=function(e,t,r){if(!_u(t))throw Error(q(200));return Bu(null,e,t,!0,r)},D.hydrateRoot=function(e,t,r){if(!Au(e))throw Error(q(405));var n=null!=r&&r.hydratedSources||null,o=!1,a="",i=Lu;if(null!=r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(i=r.onRecoverableError)),t=Pu(t,null,e,1,null!=r?r:null,o,0,a,i),e[ta]=t.current,jo(e),n)for(e=0;e<n.length;e++)o=(o=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Ru(t)},D.render=function(e,t,r){if(!_u(t))throw Error(q(200));return Bu(null,e,t,!1,r)},D.unmountComponentAtNode=function(e){if(!_u(e))throw Error(q(40));return!!e._reactRootContainer&&(Yc(function(){Bu(null,null,e,!1,function(){e._reactRootContainer=null,e[ta]=null})}),!0)},D.unstable_batchedUpdates=Qc,D.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!_u(r))throw Error(q(200));if(null==e||void 0===e._reactInternals)throw Error(q(38));return Bu(e,t,r,!1,n)},D.version="18.3.1-next-f1338f8080-20240426",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){}}(),B.exports=D;var $u,Hu=B.exports,qu=Hu;$u=qu.createRoot,qu.hydrateRoot;const Wu="processing_start",Ku="text_chunk",Qu="processing_end",Yu="complete",Gu="follow_up_prompts",Ju="error",Xu="human_decision_required",Zu=e=>{if(!e||"string"!=typeof e)return null;if("[DONE]"===e||"[PROCESSING]"===e)return null;try{const t=JSON.parse(e);if(!t||"object"!=typeof t)return null;const r=t.type||t.event_type;if(r===Ku||t.content){const e=t.content||t.choices?.[0]?.delta?.content||"";return{type:Ku,content:e,...t}}return r===Wu||"processing_start"===t.type?{type:Wu,...t}:r===Qu||"processing_end"===t.type?{type:Qu,...t}:r===Yu||"complete"===t.type?{type:Yu,finalContent:t.finalContent||t.content||"",...t}:r===Ju||"error"===t.type?{type:Ju,error:t.error||t.message||"Unknown error",...t}:r===Xu||"human_decision_required"===t.type?{type:Xu,decisionId:t.decisionId||t.decision_id,question:t.question||"",options:t.options||[],context:t.context||{},...t}:r?{type:r,...t}:t}catch(e){return null}};class ed extends Error{constructor(e="SSE stream ended before completion"){super(e),this.name="IncompleteStreamError"}}const td=410;class rd extends Error{constructor(e="This conversation was erased"){super(e),this.name="ConversationErasedError"}}const nd=async(e,t,r,n)=>{const o={"Content-Type":"application/json",Accept:"text/event-stream"};if("function"==typeof r){const e=await r();e&&(o.Authorization=`Bearer ${e}`)}const a=await fetch(`${t.replace(/\/$/,"")}/api/v1/support`,{method:"POST",headers:o,credentials:"include",body:JSON.stringify(e),...n?{signal:n}:{}});if(a.status===td)throw new rd;if(!a.ok)throw new Error(`HTTP error! status: ${a.status}`);if(!a.body)throw new Error("Response body is null");return a.body},od=()=>({id:`skeleton-${Date.now()}`,role:"assistant",content:"",timestamp:new Date,isProcessing:!0,processingStatus:""}),ad=e=>{if(!Array.isArray(e)||0===e.length)return;const t=e.map(e=>({type:e.type||"prompt",text:"string"==typeof e.text?e.text:"",submitText:"string"==typeof e.submitText?e.submitText:void 0,promptId:"string"==typeof e.promptId?e.promptId:void 0,confidence:"number"==typeof e.confidence?e.confidence:void 0})).filter(e=>e.text);return t.length?t:void 0},id=(e,t,r={})=>{e(e=>{const n=[...e||[]],o=n[n.length-1];if("assistant"===o?.role){const{prompts:e,...a}=r||{};n[n.length-1]={...o,...a,content:t,isProcessing:!1,...null!=e&&{prompts:ad(e)}}}return n})},sd=/model.candidates.failed|gateway|502|redis|litellm|openai.*error|Failed to initialize agent|Streaming error:/i,ld="I'm having a little trouble right now. Please try again in a moment.";function cd(e){return e&&"string"==typeof e?sd.test(e)?ld:e:ld}const ud=(e,t,r,n,o)=>{if(e&&e.type)switch(e.type){case Wu:{const r=e.choices?.[0]?.delta?.content||"";t(e=>{const t=[...e||[]],n=t[t.length-1];return n&&"assistant"===n.role&&n.isProcessing?t[t.length-1]={...n,processingStatus:r}:r&&t.push({...od(),processingStatus:r}),t});break}case Ku:o.current||(o.current=!0,t(e=>{const t=e[e.length-1];if(!t||"assistant"!==t.role||!t.isProcessing){return[...e||[],od()]}return e}));const a=e.content||e.choices?.[0]?.delta?.content||"";a&&(r.current+=a,n(r.current));break;case Qu:(e=>{e(e=>{const t=[...e||[]],r=t[t.length-1];return r?.isProcessing&&(t[t.length-1]={...r,isProcessing:!1}),t})})(t);break;case Yu:{const n=e.finalContent||r.current,o={};"boolean"==typeof e.conclusionDetected?o.conclusionDetected=e.conclusionDetected:"boolean"==typeof e.conclusion_detected&&(o.conclusionDetected=e.conclusion_detected);const a={...o,prompts:e.prompts};id(t,n,a);break}case Gu:{const r=Array.isArray(e.prompts)?e.prompts:[];r.length>0&&t(e=>{const t=[...e||[]],n=t[t.length-1];return n&&"assistant"===n.role&&(t[t.length-1]={...n,prompts:ad(r)}),t});break}case Ju:((e,t)=>{t=cd(t),e(e=>{const r=[...e||[]],n=r[r.length-1];return"assistant"===n?.role&&(r[r.length-1]={...n,content:(n.content||"")+`\n\nError: ${t}`,isProcessing:!1}),r})})(t,e.error||"Unknown error occurred");break;case Xu:{const r={id:`decision-${Date.now()}`,role:"assistant",content:e.question||"",timestamp:new Date,isProcessing:!1,requiresDecision:!0,decisionData:{decisionId:e.decisionId,question:e.question,options:e.options||[],context:e.context||{}}};t(e=>[...(e||[]).filter(e=>!e.isProcessing||e.content),r]);break}}},dd=e=>{const t=e.Sources??e.sources??[];return Array.isArray(t)?t.map(e=>({source_type:e.source_type??e.sourceType??"website",source_id:e.sourceid??e.source_id,source_name:e.source_name??e.sourceName??"",url:e.url,citation_indices:e.citation_indices??e.citationIndices,effective_date:e.effective_date??e.effectiveDate,stale:e.stale})).filter(e=>e.source_id||e.url||"database"===e.source_type):[]},gd=async(e,t,r,n)=>{const o=(e=>{let t=null,r=null,n=0;const o=a=>{if(a-n<16)r=requestAnimationFrame(o);else{if(null!==t){const r=t;t=null,n=a,e(e=>{const t=[...e||[]],n=t[t.length-1];return"assistant"===n?.role&&(t[t.length-1]={...n,content:r}),t})}r=null}},a=e=>{t=e,null===r&&(r=requestAnimationFrame(o))};return a.cancel=()=>{null!==r&&(cancelAnimationFrame(r),r=null,t=null)},a})(t),a=e.getReader(),i=new TextDecoder;let s="";const l={current:""},c={current:!1};let u=!1,d=null;const g=()=>{if(!u&&(u=!0,"function"==typeof r))try{r()}catch(e){}};try{for(;;){const{value:e,done:r}=await a.read();if(r)break;s+=i.decode(e,{stream:!0});const u=s.split(/\r?\n\r?\n/);s=u.pop()||"";for(const e of u){const r=e.split(/\r?\n/).map(e=>e.trim()).filter(Boolean);if(0===r.length)continue;const a=r.filter(e=>e.startsWith("data:")).map(e=>e.slice(5).trim());if(0===a.length)continue;const i=a.join("\n");if("[DONE]"===i)continue;let s;try{s=JSON.parse(i)}catch(e){continue}if(s){if(s.type){if("processing_start"===s.type){const e=s.choices?.[0]?.delta?.content||"";t(t=>{const r=[...t||[]],n=r[r.length-1];return n&&"assistant"===n.role&&n.isProcessing?r[r.length-1]={...n,processingStatus:e}:e&&r.push({...od(),processingStatus:e}),r});continue}if("processing_end"===s.type)continue;if("human_handoff"===s.type){g(),"function"==typeof n&&n();continue}if("duplicate_suppressed"===s.type){g();continue}if("follow_up_prompts"===s.type){const e=Array.isArray(s.prompts)?s.prompts:[];e.length>0&&t(t=>{const r=[...t||[]],n=r[r.length-1];return n&&"assistant"===n.role?null!=d&&n.id!==d?t:(r[r.length-1]={...n,prompts:ad(e)},r):t});continue}if("text_chunk"===s.type){c.current||(c.current=!0,t(e=>{const t=e[e.length-1];if(!t||"assistant"!==t.role||!t.isProcessing){return[...e||[],od()]}return e}));const e=s.choices?.[0]?.delta?.content||s.content;e&&(l.current+=e,o(l.current));continue}if("sources"===s.type){const e=dd(s);e.length>0&&t(t=>{const r=[...t||[]],n=r[r.length-1];return"assistant"===n?.role&&(r[r.length-1]={...n,sources:e,sourcesPreliminary:!0}),r});continue}if("complete"===s.type){const e=dd(s),r=s.finalContent||s.choices?.[0]?.delta?.content||l.current,n={};"boolean"==typeof s.conclusionDetected?n.conclusionDetected=s.conclusionDetected:"boolean"==typeof s.conclusion_detected&&(n.conclusionDetected=s.conclusion_detected);const a={...n,prompts:s.prompts};o.cancel(),id(t,r,a),t(t=>{const n=[...t||[]],o=n[n.length-1];if("assistant"===o?.role&&(d=o.id??null),"assistant"===o?.role&&(e.length>0||o.sourcesPreliminary)){const{sourcesPreliminary:t,...a}=o;n[n.length-1]={...a,sources:e,content:r,isProcessing:!1}}return n}),g();continue}if("error"===s.type){t(e=>{const t=[...e||[]],r=t[t.length-1];return"assistant"===r?.role&&(t[t.length-1]={...r,content:(r.content||"")+`\n\nError: ${cd(s.error||"Unknown error occurred")}`,isProcessing:!1}),t});continue}const e=Zu(i);if(e&&e.type){ud(e,t,l,o,c);continue}}if("chat.completion.chunk"===s.object&&s.choices?.[0]?.delta?.content)c.current||(c.current=!0,t(e=>{const t=e[e.length-1];if(!t||"assistant"!==t.role||!t.isProcessing){return[...e||[],od()]}return e})),l.current+=s.choices[0].delta.content,o(l.current);else if(s.choices?.[0]?.finish_reason&&null!==s.choices[0].finish_reason){const e={prompts:s.prompts};id(t,l.current,e),t(e=>{const t=(e||[])[(e||[]).length-1];return"assistant"===t?.role&&(d=t.id??null),e}),g()}}}}}catch(e){if(e&&"AbortError"===e.name)return void(l.current?id(t,l.current,{stoppedByUser:!0}):t(e=>(e||[]).filter(e=>!e.isProcessing)));throw e}finally{a.releaseLock()}if(!u)throw new ed(l.current?"Stream ended mid-response - partial content received":"Stream ended before any content was received")};const pd=.025,fd=200,hd=1e3,md=300;function bd(e,t){return null!=e?e:t}function yd(e,t){const r=e.sampleRate,n=bd(e.energyThreshold,pd),o=bd(e.speechStartMs,fd),a=bd(e.hangoverMs,hd),i=bd(e.preRollMs,md);let s=!1,l=0,c=0,u=[],d=0;return{process:function(e){const g=function(e){return e.byteLength/2/r*1e3}(e),p=function(e){const t=new Int16Array(e);if(0===t.length)return 0;let r=0;for(let e=0;e<t.length;e+=1){const n=t[e]/32768;r+=n*n}return Math.sqrt(r/t.length)}(e)>=n;if(s)t.onVoiceFrame(e),p?c=0:(c+=g,c>=a&&(s=!1,l=0,c=0,t.onSpeechEnd()));else{for(u.push({pcm:e,durationMs:g}),d+=g;d>i&&u.length>1;){const e=u.shift();d-=e?e.durationMs:0}if(p){if(l+=g,l>=o){s=!0,c=0,"function"==typeof t.onSpeechStart&&t.onSpeechStart();for(let e=0;e<u.length;e+=1)t.onVoiceFrame(u[e].pcm);u=[],d=0}}else l=0}},reset:function(){s=!1,l=0,c=0,u=[],d=0},isSpeaking:function(){return s}}}function vd(e){e&&e.getTracks().forEach(function(e){e.stop()})}async function wd(e){if("undefined"==typeof window)throw new Error("Audio recorder can only run in the browser");const t=new AudioContext({sampleRate:16e3}),r=new Blob(["\n class PCMRecorderProcessor extends AudioWorkletProcessor {\n process(inputs) {\n if (!inputs.length || !inputs[0].length) {\n return true;\n }\n const inputChannel = inputs[0][0];\n this.port.postMessage(new Float32Array(inputChannel));\n return true;\n }\n }\n registerProcessor('pcm-recorder-processor', PCMRecorderProcessor);\n "],{type:"application/javascript"}),n=URL.createObjectURL(r);await t.audioWorklet.addModule(n),URL.revokeObjectURL(n);const o=await navigator.mediaDevices.getUserMedia({audio:{channelCount:1,echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}}),a=t.createMediaStreamSource(o),i=new AudioWorkletNode(t,"pcm-recorder-processor");return i.port.onmessage=t=>{const r=function(e){const t=new Int16Array(e.length);for(let r=0;r<e.length;r+=1)t[r]=32767*Math.max(-1,Math.min(1,e[r]));return t.buffer}(t.data);e(r)},a.connect(i),[i,t,o]}const kd={connectionError:"Sorry, I'm having trouble connecting right now. Please try again.",micDenied:"We couldn't access your microphone. Please allow access and try again.",micNotFound:"No microphone found. Please connect one and try again.",voiceUnavailable:"Voice isn't available right now. Please try again.",categoryTopicsHeading:"Please ask your **{category}** question below.",quickQuestionsHeadingLabel:"Or ask a quick question:",chooseTopicLabel:"Choose a topic to get started:",typeYourMessage:"Type your message...",agentIsLoading:"Agent is loading...",conversationResolved:"Conversation resolved",howWasYourExperience:"How was your experience?",feedbackPrompt:"Please rate our support to help us improve.",feedbackPlaceholder:"Tell us more about your experience...",submitFeedback:"Submit Feedback",submitting:"Submitting...",selectRatingFirst:"Please select a rating first",pleaseSubmitRatingFirst:"Please submit your rating first.",completeOnboardingToEnableVoice:"Complete the onboarding to enable voice",sendMessageToCompleteOnboarding:"Send a message to complete onboarding and enable voice.",resolve:"Resolve",scrollLeft:"Scroll left",scrollRight:"Scroll right",sendMessage:"Send message",stopGenerating:"Stop generating",agentJoinedConversation:"{name} has joined the conversation",chatHere:"Chat here",chooseChannel:"Choose how to chat",sessionExpiringSoon:"Your session will expire soon due to inactivity.",startVoiceInput:"Start voice input",stopVoiceInput:"Stop voice input",voiceSessionLive:"Voice session live - speak or type to converse.",connectingVoice:"Connecting to voice session...",poweredBy:"Powered by",poweredByBefore:"Powered by",poweredByAfter:"",menu:"Menu",close:"Close",openChat:"Open chat",closeChat:"Close chat",lightMode:"Light Mode",nightMode:"Night Mode",refreshChat:"Refresh Chat",copyChat:"Copy Chat",startChat:"Start Chat",startingVoiceSession:"Starting voice session...",allowMicAccess:"Allow microphone access",emailRequired:"Please enter your email address",nameRequired:"Please enter your name",phoneRequired:"Please enter your phone number",fieldRequiredSuffix:"is required",emailInvalid:"Please enter a valid email address",nameInvalid:"Please enter a valid name",phoneInvalid:"Please enter a valid phone number",uploadFile:"Upload file",suggestedQuestions:"Suggested questions",agentIsTyping:"Agent is typing",rate:"Rate",rateExperience:"Rate your experience",thumbsUp:"Thumbs up",thumbsDown:"Thumbs down",submittingFeedback:"Submitting feedback...",cancel:"Cancel",submit:"Submit",messageNotDelivered:"Not delivered",retrySend:"Retry"},xd={en:kd,ar:{agentJoinedConversation:"انضم {name} إلى المحادثة",chatHere:"الدردشة هنا",chooseChannel:"اختر طريقة الدردشة",connectionError:"عذرًا، أواجه مشكلة في الاتصال حاليًا. يرجى المحاولة مرة أخرى.",micDenied:"لم نتمكن من الوصول إلى الميكروفون. يرجى السماح بالوصول والمحاولة مرة أخرى.",micNotFound:"لم يتم العثور على ميكروفون. يرجى توصيل ميكروفون والمحاولة مرة أخرى.",voiceUnavailable:"الميزة الصوتية غير متوفرة حاليًا. يرجى المحاولة مرة أخرى.",chooseTopicLabel:"اختر موضوعًا للبدء:",categoryTopicsHeading:"يرجى طرح سؤالك حول **{category}** أدناه.",quickQuestionsHeadingLabel:"أو اطرح سؤالًا سريعًا:",typeYourMessage:"اكتب رسالتك هنا...",agentIsLoading:"جارٍ تحميل الوكيل...",conversationResolved:"تم إنهاء المحادثة",howWasYourExperience:"كيف كانت تجربتك؟",feedbackPrompt:"يرجى تقييم خدمتنا لمساعدتنا على التحسن.",feedbackPlaceholder:"أخبرنا المزيد عن تجربتك...",submitFeedback:"إرسال التقييم",submitting:"جارٍ الإرسال...",selectRatingFirst:"يرجى تحديد التقييم أولاً",pleaseSubmitRatingFirst:"يرجى إرسال تقييمك أولاً.",completeOnboardingToEnableVoice:"أكمل التسجيل لتفعيل الصوت",sendMessageToCompleteOnboarding:"أرسل رسالة لإكمال التسجيل وتفعيل الصوت.",resolve:"إنهاء",scrollLeft:"تمرير لليسار",scrollRight:"تمرير لليمين",sendMessage:"إرسال رسالة",voiceSessionLive:"الجلسة الصوتية نشطة - تحدث أو اكتب للتواصل.",connectingVoice:"جارٍ الاتصال بالجلسة الصوتية...",poweredBy:"مدعوم من",menu:"القائمة",close:"إغلاق",openChat:"فتح المحادثة",closeChat:"إغلاق المحادثة",lightMode:"الوضع الفاتح",nightMode:"الوضع الداكن",refreshChat:"تحديث المحادثة",copyChat:"نسخ المحادثة",startChat:"بدء المحادثة",startingVoiceSession:"جارٍ بدء الجلسة الصوتية...",allowMicAccess:"السماح بالوصول إلى الميكروفون",uploadFile:"رفع ملف",suggestedQuestions:"أسئلة مقترحة",agentIsTyping:"الوكيل يكتب",rate:"تقييم",rateExperience:"قيّم تجربتك",thumbsUp:"إعجاب",thumbsDown:"عدم إعجاب",submittingFeedback:"جارٍ إرسال التقييم...",cancel:"إلغاء",submit:"إرسال",messageNotDelivered:"لم يتم الإرسال",retrySend:"إعادة المحاولة"},es:{connectionError:"Lo sentimos, estoy teniendo problemas de conexión en este momento. Inténtalo de nuevo.",micDenied:"No pudimos acceder a tu micrófono. Permite el acceso e inténtalo de nuevo.",micNotFound:"No se encontró ningún micrófono. Conecta uno e inténtalo de nuevo.",voiceUnavailable:"La voz no está disponible en este momento. Inténtalo de nuevo.",chooseTopicLabel:"Elige un tema para empezar:",categoryTopicsHeading:"Por favor, haz tu pregunta sobre **{category}** a continuación.",quickQuestionsHeadingLabel:"O haz una pregunta rápida:",typeYourMessage:"Escribe tu mensaje...",agentIsLoading:"El agente está cargando...",conversationResolved:"Conversación resuelta",howWasYourExperience:"¿Cómo fue tu experiencia?",feedbackPrompt:"Califica nuestro soporte para ayudarnos a mejorar.",feedbackPlaceholder:"Cuéntanos más sobre tu experiencia...",submitFeedback:"Enviar comentarios",submitting:"Enviando...",selectRatingFirst:"Primero selecciona una calificación",pleaseSubmitRatingFirst:"Por favor, envía tu calificación primero.",completeOnboardingToEnableVoice:"Completa la configuración para habilitar la voz",sendMessageToCompleteOnboarding:"Envía un mensaje para completar la configuración y habilitar la voz.",resolve:"Resolver",scrollLeft:"Desplazar a la izquierda",scrollRight:"Desplazar a la derecha",sendMessage:"Enviar mensaje",voiceSessionLive:"Sesión de voz activa - habla o escribe para conversar.",connectingVoice:"Conectando a la sesión de voz...",poweredBy:"Desarrollado por",menu:"Menú",close:"Cerrar",openChat:"Abrir chat",closeChat:"Cerrar chat",lightMode:"Modo claro",nightMode:"Modo oscuro",refreshChat:"Actualizar chat",copyChat:"Copiar chat",startChat:"Iniciar chat",startingVoiceSession:"Iniciando sesión de voz...",allowMicAccess:"Permitir acceso al micrófono"},be:{connectionError:"Прабачце, зараз узнікаюць праблемы з падключэннем. Паспрабуйце яшчэ раз.",micDenied:"Не ўдалося атрымаць доступ да мікрафона. Дазвольце доступ і паспрабуйце яшчэ раз.",micNotFound:"Мікрафон не знойдзены. Падключыце яго і паспрабуйце яшчэ раз.",voiceUnavailable:"Галасавая функцыя зараз недаступная. Паспрабуйце яшчэ раз.",chooseTopicLabel:"Выберыце тэму, каб пачаць:",categoryTopicsHeading:"Калі ласка, задайце сваё пытанне пра **{category}** ніжэй.",quickQuestionsHeadingLabel:"Або задайце хуткае пытанне:",typeYourMessage:"Увядзіце паведамленне...",agentIsLoading:"Агент загружаецца...",conversationResolved:"Размова завершана",howWasYourExperience:"Як прайшоў ваш досвед?",feedbackPrompt:"Калі ласка, ацаніце нашу падтрымку, каб дапамагчы нам стаць лепш.",feedbackPlaceholder:"Раскажыце нам больш пра свой досвед...",submitFeedback:"Адправіць водгук",submitting:"Адпраўка...",selectRatingFirst:"Спачатку абярыце ацэнку",pleaseSubmitRatingFirst:"Калі ласка, спачатку адпраўце сваю ацэнку.",completeOnboardingToEnableVoice:"Завяршыце ўводны этап, каб уключыць голас",sendMessageToCompleteOnboarding:"Адпраўце паведамленне, каб завяршыць уводны этап і ўключыць голас.",resolve:"Завяршыць",scrollLeft:"Пракруціць улева",scrollRight:"Пракруціць управа",sendMessage:"Адправіць паведамленне",voiceSessionLive:"Галасавая сесія актыўная - гаварыце або пішыце.",connectingVoice:"Злучэнне з галасавой сесіяй...",poweredBy:"Працуе на",menu:"Меню",close:"Закрыць",openChat:"Адкрыць чат",closeChat:"Закрыць чат",lightMode:"Светлы рэжым",nightMode:"Цёмны рэжым",refreshChat:"Абнавіць чат",copyChat:"Капіраваць чат",startChat:"Пачаць чат",startingVoiceSession:"Запуск галасавой сесіі...",allowMicAccess:"Дазволіць доступ да мікрафона"},bs:{connectionError:"Izvinite, trenutno imam problema s povezivanjem. Pokušajte ponovo.",micDenied:"Nismo mogli pristupiti vašem mikrofonu. Dozvolite pristup i pokušajte ponovo.",micNotFound:"Mikrofon nije pronađen. Priključite ga i pokušajte ponovo.",voiceUnavailable:"Glasovna funkcija trenutno nije dostupna. Pokušajte ponovo.",chooseTopicLabel:"Odaberite temu za početak:",categoryTopicsHeading:"Molimo postavite svoje pitanje o **{category}** ispod.",quickQuestionsHeadingLabel:"Ili postavite brzo pitanje:",typeYourMessage:"Upišite vašu poruku...",agentIsLoading:"Agent se učitava...",conversationResolved:"Razgovor je završen",howWasYourExperience:"Kakvo je bilo vaše iskustvo?",feedbackPrompt:"Molimo ocijenite našu podršku kako bismo se poboljšali.",feedbackPlaceholder:"Recite nam više o vašem iskustvu...",submitFeedback:"Pošalji povratnu informaciju",submitting:"Slanje...",selectRatingFirst:"Prvo odaberite ocjenu",pleaseSubmitRatingFirst:"Molimo prvo pošaljite vašu ocjenu.",completeOnboardingToEnableVoice:"Završite registraciju da omogućite glas",sendMessageToCompleteOnboarding:"Pošaljite poruku da završite registraciju i omogućite glas.",resolve:"Završi",scrollLeft:"Pomjeri lijevo",scrollRight:"Pomjeri desno",sendMessage:"Pošalji poruku",voiceSessionLive:"Glasovna sesija je aktivna - govorite ili pišite.",connectingVoice:"Povezivanje na glasovnu sesiju...",poweredBy:"Pokreće",menu:"Meni",close:"Zatvori",openChat:"Otvori chat",closeChat:"Zatvori chat",lightMode:"Svijetli način",nightMode:"Tamni način",refreshChat:"Osvježi chat",copyChat:"Kopiraj chat",startChat:"Započni chat",startingVoiceSession:"Pokretanje glasovne sesije...",allowMicAccess:"Dozvoli pristup mikrofonu"},bg:{connectionError:"Съжалявам, в момента имам проблеми с връзката. Опитайте отново.",micDenied:"Не успяхме да получим достъп до микрофона ви. Разрешете достъпа и опитайте отново.",micNotFound:"Не е намерен микрофон. Свържете микрофон и опитайте отново.",voiceUnavailable:"Гласовата функция не е достъпна в момента. Опитайте отново.",chooseTopicLabel:"Изберете тема, за да започнете:",categoryTopicsHeading:"Моля, задайте въпроса си за **{category}** по-долу.",quickQuestionsHeadingLabel:"Или задайте бърз въпрос:",typeYourMessage:"Въведете съобщението си...",agentIsLoading:"Агентът се зарежда...",conversationResolved:"Разговорът е приключен",howWasYourExperience:"Как беше вашето изживяване?",feedbackPrompt:"Моля, оценете нашата поддръжка, за да ни помогнете да се подобрим.",feedbackPlaceholder:"Разкажете ни повече за вашето изживяване...",submitFeedback:"Изпрати отзив",submitting:"Изпращане...",selectRatingFirst:"Първо изберете оценка",pleaseSubmitRatingFirst:"Моля, първо изпратете оценката си.",completeOnboardingToEnableVoice:"Завършете регистрацията, за да активирате гласа",sendMessageToCompleteOnboarding:"Изпратете съобщение, за да завършите регистрацията и активирате гласа.",resolve:"Приключи",scrollLeft:"Превърти наляво",scrollRight:"Превърти надясно",sendMessage:"Изпрати съобщение",voiceSessionLive:"Гласовата сесия е активна - говорете или пишете.",connectingVoice:"Свързване с гласова сесия...",poweredBy:"Задвижвано от",menu:"Меню",close:"Затвори",openChat:"Отвори чат",closeChat:"Затвори чат",lightMode:"Светъл режим",nightMode:"Тъмен режим",refreshChat:"Опресни чата",copyChat:"Копирай чата",startChat:"Започни чат",startingVoiceSession:"Стартиране на гласова сесия...",allowMicAccess:"Позволете достъп до микрофона"},my:{connectionError:"ဝမ်းနည်းပါသည်၊ ယခု ချိတ်ဆက်ရာတွင် အခက်အခဲရှိနေပါသည်။ ထပ်မံကြိုးစားပါ။",micDenied:"သင့်မိုက်ခရိုဖုန်းကို အသုံးပြုခွင့် မရနိုင်ပါ။ ခွင့်ပြုပြီး ထပ်မံကြိုးစားပါ။",micNotFound:"မိုက်ခရိုဖုန်း မတွေ့ပါ။ ချိတ်ဆက်ပြီး ထပ်မံကြိုးစားပါ။",voiceUnavailable:"အသံလုပ်ဆောင်ချက် ယခုအချိန် မရနိုင်ပါ။ ထပ်မံကြိုးစားပါ။",chooseTopicLabel:"စတင်ရန် ခေါင်းစဉ်တစ်ခု ရွေးချယ်ပါ:",categoryTopicsHeading:"ကျေးဇူးပြု၍ သင်၏ **{category}** မေးခွန်းကို အောက်တွင် မေးပါ။",quickQuestionsHeadingLabel:"သို့မဟုတ် မြန်ဆန်သော မေးခွန်းတစ်ခု မေးပါ:",typeYourMessage:"သင့်မက်ဆေ့ချ်ကို ရိုက်ထည့်ပါ...",agentIsLoading:"အေးဂျင့်ကို ဖွင့်နေသည်...",conversationResolved:"စကားဝိုင်း ပြီးစီးပြီ",howWasYourExperience:"သင့်အတွေ့အကြုံ မည်သို့ရှိခဲ့သနည်း?",feedbackPrompt:"ကျွန်ုပ်တို့၏ ဝန်ဆောင်မှုကို အဆင့်သတ်မှတ်ပေးပါ။",feedbackPlaceholder:"သင့်အတွေ့အကြုံအကြောင်း ပိုမိုပြောပြပါ...",submitFeedback:"တုံ့ပြန်ချက် ပေးပို့ရန်",submitting:"ပေးပို့နေသည်...",selectRatingFirst:"အရင်ဆုံး အဆင့်ရွေးပါ",pleaseSubmitRatingFirst:"ကျေးဇူးပြု၍ အဆင့်ကို အရင်ဆုံးပို့ပါ။",completeOnboardingToEnableVoice:"အသံကို ဖွင့်ရန် မိတ်ဆက်ခြင်းကို ပြီးဆုံးပါ",sendMessageToCompleteOnboarding:"မိတ်ဆက်ခြင်းကို ပြီးဆုံးပြီး အသံဖွင့်ရန် မက်ဆေ့ချ်ပို့ပါ။",resolve:"ပြီးဆုံး",scrollLeft:"ဘယ်ဘက်သို့ ရွှေ့ပါ",scrollRight:"ညာဘက်သို့ ရွှေ့ပါ",sendMessage:"မက်ဆေ့ချ်ပို့ရန်",voiceSessionLive:"အသံစီရင်ချက် တက်ကြွနေသည် - ပြောပါ သို့မဟုတ် ရိုက်ပါ။",connectingVoice:"အသံစီရင်ချက်သို့ ချိတ်ဆက်နေသည်...",poweredBy:"လုပ်ဆောင်ပေးသူ",menu:"မီနူး",close:"ပိတ်",openChat:"ချတ်ဖွင့်",closeChat:"ချတ်ပိတ်",lightMode:"အလင်းမုဒ်",nightMode:"အမှောင်မုဒ်",refreshChat:"ချတ်ပြန်လည်ရယူ",copyChat:"ချတ်ကူးယူ",startChat:"ချတ်စတင်",startingVoiceSession:"အသံစီရင်ချက် စတင်နေသည်...",allowMicAccess:"မိုက်ခရိုဖုန်း ဝင်ရောက်ခွင့်ပြုပါ"},ca:{connectionError:"Ho sentim, ara mateix tinc problemes de connexió. Torna-ho a provar.",micDenied:"No hem pogut accedir al teu micròfon. Permet l'accés i torna-ho a provar.",micNotFound:"No s'ha trobat cap micròfon. Connecta'n un i torna-ho a provar.",voiceUnavailable:"La veu no està disponible ara mateix. Torna-ho a provar.",chooseTopicLabel:"Tria un tema per començar:",categoryTopicsHeading:"Si us plau, fes la teva pregunta sobre **{category}** a continuació.",quickQuestionsHeadingLabel:"O fes una pregunta ràpida:",typeYourMessage:"Escriu el teu missatge...",agentIsLoading:"L'agent està carregant...",conversationResolved:"Conversa resolta",howWasYourExperience:"Com ha estat la teva experiència?",feedbackPrompt:"Si us plau, valora el nostre suport per ajudar-nos a millorar.",feedbackPlaceholder:"Explica'ns més sobre la teva experiència...",submitFeedback:"Enviar comentaris",submitting:"Enviant...",selectRatingFirst:"Primer selecciona una valoració",pleaseSubmitRatingFirst:"Si us plau, envia primer la teva valoració.",completeOnboardingToEnableVoice:"Completa la configuració per activar la veu",sendMessageToCompleteOnboarding:"Envia un missatge per completar la configuració i activar la veu.",resolve:"Resoldre",scrollLeft:"Desplaçar a l'esquerra",scrollRight:"Desplaçar a la dreta",sendMessage:"Enviar missatge",voiceSessionLive:"Sessió de veu activa - parla o escriu per conversar.",connectingVoice:"Connectant a la sessió de veu...",poweredBy:"Impulsat per",menu:"Menú",close:"Tancar",openChat:"Obrir xat",closeChat:"Tancar xat",lightMode:"Mode clar",nightMode:"Mode fosc",refreshChat:"Actualitzar xat",copyChat:"Copiar xat",startChat:"Iniciar xat",startingVoiceSession:"Iniciant sessió de veu...",allowMicAccess:"Permetre accés al micròfon"},zh:{connectionError:"抱歉,我现在连接遇到问题。请重试。",micDenied:"无法访问您的麦克风。请允许访问后重试。",micNotFound:"未检测到麦克风。请连接麦克风后重试。",voiceUnavailable:"语音功能当前不可用。请重试。",chooseTopicLabel:"选择一个主题开始:",categoryTopicsHeading:"请在下方提出您关于 **{category}** 的问题。",quickQuestionsHeadingLabel:"或者提一个快速问题:",typeYourMessage:"输入您的消息...",agentIsLoading:"客服正在加载...",conversationResolved:"对话已结束",howWasYourExperience:"您的体验如何?",feedbackPrompt:"请为我们的支持评分,帮助我们改进。",feedbackPlaceholder:"告诉我们更多关于您的体验...",submitFeedback:"提交反馈",submitting:"提交中...",selectRatingFirst:"请先选择评分",pleaseSubmitRatingFirst:"请先提交您的评分。",completeOnboardingToEnableVoice:"完成引导以启用语音",sendMessageToCompleteOnboarding:"发送消息完成引导并启用语音。",resolve:"结束",scrollLeft:"向左滚动",scrollRight:"向右滚动",sendMessage:"发送消息",voiceSessionLive:"语音会话进行中 - 请说话或输入。",connectingVoice:"正在连接语音会话...",poweredBy:"技术支持",menu:"菜单",close:"关闭",openChat:"打开聊天",closeChat:"关闭聊天",lightMode:"浅色模式",nightMode:"深色模式",refreshChat:"刷新聊天",copyChat:"复制聊天",startChat:"开始聊天",startingVoiceSession:"正在启动语音会话...",allowMicAccess:"允许访问麦克风"},hr:{connectionError:"Nažalost, trenutno imam problema s povezivanjem. Pokušajte ponovno.",micDenied:"Nismo mogli pristupiti vašem mikrofonu. Dopustite pristup i pokušajte ponovno.",micNotFound:"Mikrofon nije pronađen. Priključite ga i pokušajte ponovno.",voiceUnavailable:"Glasovna funkcija trenutačno nije dostupna. Pokušajte ponovno.",chooseTopicLabel:"Odaberite temu za početak:",categoryTopicsHeading:"Molimo postavite svoje pitanje o **{category}** u nastavku.",quickQuestionsHeadingLabel:"Ili postavite brzo pitanje:",typeYourMessage:"Upišite svoju poruku...",agentIsLoading:"Agent se učitava...",conversationResolved:"Razgovor je završen",howWasYourExperience:"Kakvo je bilo vaše iskustvo?",feedbackPrompt:"Molimo ocijenite našu podršku kako bismo se poboljšali.",feedbackPlaceholder:"Recite nam više o svom iskustvu...",submitFeedback:"Pošalji povratnu informaciju",submitting:"Slanje...",selectRatingFirst:"Prvo odaberite ocjenu",pleaseSubmitRatingFirst:"Molimo prvo pošaljite ocjenu.",completeOnboardingToEnableVoice:"Dovršite uvod za omogućavanje glasa",sendMessageToCompleteOnboarding:"Pošaljite poruku da dovršite uvod i omogućite glas.",resolve:"Završi",scrollLeft:"Pomakni lijevo",scrollRight:"Pomakni desno",sendMessage:"Pošalji poruku",voiceSessionLive:"Glasovna sesija je aktivna - govorite ili pišite.",connectingVoice:"Povezivanje na glasovnu sesiju...",poweredBy:"Pokreće",menu:"Izbornik",close:"Zatvori",openChat:"Otvori chat",closeChat:"Zatvori chat",lightMode:"Svijetli način",nightMode:"Tamni način",refreshChat:"Osvježi chat",copyChat:"Kopiraj chat",startChat:"Pokreni chat",startingVoiceSession:"Pokretanje glasovne sesije...",allowMicAccess:"Dopustite pristup mikrofonu"},cs:{connectionError:"Omlouváme se, momentálně mám problémy s připojením. Zkuste to prosím znovu.",micDenied:"Nepodařilo se získat přístup k mikrofonu. Povolte přístup a zkuste to znovu.",micNotFound:"Mikrofon nebyl nalezen. Připojte jej a zkuste to znovu.",voiceUnavailable:"Hlasová funkce není momentálně dostupná. Zkuste to znovu.",chooseTopicLabel:"Vyberte téma a začněte:",categoryTopicsHeading:"Prosím, položte svou otázku ohledně **{category}** níže.",quickQuestionsHeadingLabel:"Nebo položte rychlou otázku:",typeYourMessage:"Napište zprávu...",agentIsLoading:"Agent se načítá...",conversationResolved:"Konverzace ukončena",howWasYourExperience:"Jaká byla vaše zkušenost?",feedbackPrompt:"Ohodnoťte prosím naši podporu, abychom se mohli zlepšit.",feedbackPlaceholder:"Řekněte nám více o své zkušenosti...",submitFeedback:"Odeslat zpětnou vazbu",submitting:"Odesílání...",selectRatingFirst:"Nejprve vyberte hodnocení",pleaseSubmitRatingFirst:"Nejprve prosím odešlete své hodnocení.",completeOnboardingToEnableVoice:"Dokončete úvod pro povolení hlasu",sendMessageToCompleteOnboarding:"Odešlete zprávu pro dokončení úvodu a povolení hlasu.",resolve:"Dokončit",scrollLeft:"Posunout doleva",scrollRight:"Posunout doprava",sendMessage:"Odeslat zprávu",voiceSessionLive:"Hlasová relace je aktivní - mluvte nebo pište.",connectingVoice:"Připojování k hlasové relaci...",poweredBy:"Používá",menu:"Nabídka",close:"Zavřít",openChat:"Otevřít chat",closeChat:"Zavřít chat",lightMode:"Světlý režim",nightMode:"Tmavý režim",refreshChat:"Obnovit chat",copyChat:"Kopírovat chat",startChat:"Začít chat",startingVoiceSession:"Spouštění hlasové relace...",allowMicAccess:"Povolit přístup k mikrofonu"},da:{connectionError:"Beklager, jeg har problemer med at oprette forbindelse lige nu. Prøv igen.",micDenied:"Vi kunne ikke få adgang til din mikrofon. Tillad adgang og prøv igen.",micNotFound:"Der blev ikke fundet nogen mikrofon. Tilslut en og prøv igen.",voiceUnavailable:"Stemme er ikke tilgængelig lige nu. Prøv igen.",chooseTopicLabel:"Vælg et emne for at komme i gang:",categoryTopicsHeading:"Stil venligst dit spørgsmål om **{category}** nedenfor.",quickQuestionsHeadingLabel:"Eller stil et hurtigt spørgsmål:",typeYourMessage:"Skriv din besked...",agentIsLoading:"Agenten indlæses...",conversationResolved:"Samtale afsluttet",howWasYourExperience:"Hvordan var din oplevelse?",feedbackPrompt:"Bedøm venligst vores support for at hjælpe os med at blive bedre.",feedbackPlaceholder:"Fortæl os mere om din oplevelse...",submitFeedback:"Indsend feedback",submitting:"Sender...",selectRatingFirst:"Vælg først en vurdering",pleaseSubmitRatingFirst:"Indsend venligst din vurdering først.",completeOnboardingToEnableVoice:"Fuldfør onboarding for at aktivere stemme",sendMessageToCompleteOnboarding:"Send en besked for at fuldføre onboarding og aktivere stemme.",resolve:"Afslut",scrollLeft:"Rul til venstre",scrollRight:"Rul til højre",sendMessage:"Send besked",voiceSessionLive:"Stemmesession aktiv - tal eller skriv for at samtale.",connectingVoice:"Forbinder til stemmesession...",poweredBy:"Drevet af",menu:"Menu",close:"Luk",openChat:"Åbn chat",closeChat:"Luk chat",lightMode:"Lys tilstand",nightMode:"Mørk tilstand",refreshChat:"Opdater chat",copyChat:"Kopier chat",startChat:"Start chat",startingVoiceSession:"Starter stemmesession...",allowMicAccess:"Tillad mikrofonadgang"},nl:{connectionError:"Sorry, ik heb momenteel verbindingsproblemen. Probeer het opnieuw.",micDenied:"We konden geen toegang krijgen tot je microfoon. Geef toegang en probeer het opnieuw.",micNotFound:"Geen microfoon gevonden. Sluit een microfoon aan en probeer het opnieuw.",voiceUnavailable:"Spraak is momenteel niet beschikbaar. Probeer het opnieuw.",chooseTopicLabel:"Kies een onderwerp om te beginnen:",categoryTopicsHeading:"Stel hieronder uw vraag over **{category}**.",quickQuestionsHeadingLabel:"Of stel een snelle vraag:",typeYourMessage:"Typ je bericht...",agentIsLoading:"Agent wordt geladen...",conversationResolved:"Gesprek beëindigd",howWasYourExperience:"Hoe was je ervaring?",feedbackPrompt:"Beoordeel onze service om ons te helpen verbeteren.",feedbackPlaceholder:"Vertel ons meer over je ervaring...",submitFeedback:"Feedback versturen",submitting:"Versturen...",selectRatingFirst:"Selecteer eerst een beoordeling",pleaseSubmitRatingFirst:"Dien eerst je beoordeling in.",completeOnboardingToEnableVoice:"Voltooi de onboarding om spraak in te schakelen",sendMessageToCompleteOnboarding:"Verstuur een bericht om de onboarding te voltooien en spraak in te schakelen.",resolve:"Afronden",scrollLeft:"Naar links scrollen",scrollRight:"Naar rechts scrollen",sendMessage:"Bericht versturen",voiceSessionLive:"Spraaksessie actief - spreek of typ om te converseren.",connectingVoice:"Verbinden met spraaksessie...",poweredBy:"Mogelijk gemaakt door",menu:"Menu",close:"Sluiten",openChat:"Chat openen",closeChat:"Chat sluiten",lightMode:"Lichte modus",nightMode:"Donkere modus",refreshChat:"Chat vernieuwen",copyChat:"Chat kopiëren",startChat:"Chat starten",startingVoiceSession:"Spraaksessie starten...",allowMicAccess:"Toegang tot microfoon toestaan"},et:{connectionError:"Kahjuks on mul praegu ühendusprobleeme. Palun proovige uuesti.",micDenied:"Mikrofonile ei pääsenud ligi. Lubage juurdepääs ja proovige uuesti.",micNotFound:"Mikrofoni ei leitud. Ühendage mikrofon ja proovige uuesti.",voiceUnavailable:"Hääl ei ole praegu saadaval. Palun proovige uuesti.",chooseTopicLabel:"Vali alustamiseks teema:",categoryTopicsHeading:"Palun esita oma **{category}** küsimus allpool.",quickQuestionsHeadingLabel:"Või esita kiire küsimus:",typeYourMessage:"Sisesta oma sõnum...",agentIsLoading:"Agent laeb...",conversationResolved:"Vestlus lõpetatud",howWasYourExperience:"Kuidas oli teie kogemus?",feedbackPrompt:"Palun hinnake meie tuge, et aidata meil paremaks saada.",feedbackPlaceholder:"Rääkige meile oma kogemusest rohkem...",submitFeedback:"Saada tagasiside",submitting:"Saatmine...",selectRatingFirst:"Vali esmalt hinnang",pleaseSubmitRatingFirst:"Palun esita esmalt oma hinnang.",completeOnboardingToEnableVoice:"Häälefunktsiooni lubamiseks lõpeta sissejuhatus",sendMessageToCompleteOnboarding:"Saada sõnum, et lõpetada sissejuhatus ja lubada hääl.",resolve:"Lõpeta",scrollLeft:"Keri vasakule",scrollRight:"Keri paremale",sendMessage:"Saada sõnum",voiceSessionLive:"Häälseanss aktiivne - rääkige või kirjutage.",connectingVoice:"Ühendamine häälseansiga...",poweredBy:"Võimaldab",menu:"Menüü",close:"Sulge",openChat:"Ava vestlus",closeChat:"Sulge vestlus",lightMode:"Hele režiim",nightMode:"Tume režiim",refreshChat:"Värskenda vestlust",copyChat:"Kopeeri vestlus",startChat:"Alusta vestlust",startingVoiceSession:"Häälseansi käivitamine...",allowMicAccess:"Luba mikrofoni juurdepääs"},fi:{connectionError:"Pahoittelut, minulla on nyt yhteysongelmia. Yritä uudelleen.",micDenied:"Mikrofoniin ei saatu yhteyttä. Salli käyttöoikeus ja yritä uudelleen.",micNotFound:"Mikrofonia ei löytynyt. Liitä mikrofoni ja yritä uudelleen.",voiceUnavailable:"Ääni ei ole juuri nyt käytettävissä. Yritä uudelleen.",chooseTopicLabel:"Aloita valitsemalla aihe:",categoryTopicsHeading:"Esitä **{category}**-kysymyksesi alla.",quickQuestionsHeadingLabel:"Tai esitä nopea kysymys:",typeYourMessage:"Kirjoita viestisi...",agentIsLoading:"Agenttia ladataan...",conversationResolved:"Keskustelu päättynyt",howWasYourExperience:"Millainen kokemuksesi oli?",feedbackPrompt:"Arvioi tukipalveluamme auttaaksesi meitä kehittymään.",feedbackPlaceholder:"Kerro lisää kokemuksestasi...",submitFeedback:"Lähetä palaute",submitting:"Lähetetään...",selectRatingFirst:"Valitse ensin arvio",pleaseSubmitRatingFirst:"Lähetä arviosi ensin.",completeOnboardingToEnableVoice:"Suorita perehdytys ottaaksesi äänen käyttöön",sendMessageToCompleteOnboarding:"Lähetä viesti suorittaaksesi perehdytyksen ja ottaaksesi äänen käyttöön.",resolve:"Lopeta",scrollLeft:"Vieritä vasemmalle",scrollRight:"Vieritä oikealle",sendMessage:"Lähetä viesti",voiceSessionLive:"Ääni-istunto aktiivinen - puhu tai kirjoita.",connectingVoice:"Yhdistetään ääni-istuntoon...",poweredBy:"Toimittaa",menu:"Valikko",close:"Sulje",openChat:"Avaa chat",closeChat:"Sulje chat",lightMode:"Vaalea tila",nightMode:"Tumma tila",refreshChat:"Päivitä chat",copyChat:"Kopioi chat",startChat:"Aloita chat",startingVoiceSession:"Käynnistetään ääni-istuntoa...",allowMicAccess:"Salli mikrofonin käyttö"},fr:{connectionError:"Désolé, je rencontre des problèmes de connexion en ce moment. Veuillez réessayer.",micDenied:"Nous n'avons pas pu accéder à votre microphone. Autorisez l'accès et réessayez.",micNotFound:"Aucun microphone détecté. Connectez-en un et réessayez.",voiceUnavailable:"La voix n'est pas disponible pour le moment. Veuillez réessayer.",chooseTopicLabel:"Choisissez un sujet pour commencer :",categoryTopicsHeading:"Veuillez poser votre question sur **{category}** ci-dessous.",quickQuestionsHeadingLabel:"Ou posez une question rapide :",typeYourMessage:"Tapez votre message...",agentIsLoading:"L'agent est en cours de chargement...",conversationResolved:"Conversation terminée",howWasYourExperience:"Comment s'est passée votre expérience ?",feedbackPrompt:"Veuillez évaluer notre support pour nous aider à nous améliorer.",feedbackPlaceholder:"Dites-nous en plus sur votre expérience...",submitFeedback:"Envoyer les commentaires",submitting:"Envoi en cours...",selectRatingFirst:"Sélectionnez d'abord une note",pleaseSubmitRatingFirst:"Veuillez d'abord envoyer votre note.",completeOnboardingToEnableVoice:"Terminez l'intégration pour activer la voix",sendMessageToCompleteOnboarding:"Envoyez un message pour terminer l'intégration et activer la voix.",resolve:"Terminer",scrollLeft:"Faire défiler à gauche",scrollRight:"Faire défiler à droite",sendMessage:"Envoyer un message",voiceSessionLive:"Session vocale active - parlez ou tapez pour converser.",connectingVoice:"Connexion à la session vocale...",poweredBy:"Propulsé par",menu:"Menu",close:"Fermer",openChat:"Ouvrir le chat",closeChat:"Fermer le chat",lightMode:"Mode clair",nightMode:"Mode sombre",refreshChat:"Actualiser le chat",copyChat:"Copier le chat",startChat:"Commencer le chat",startingVoiceSession:"Démarrage de la session vocale...",allowMicAccess:"Autoriser l'accès au microphone"},de:{connectionError:"Entschuldigung, ich habe gerade Verbindungsprobleme. Bitte versuchen Sie es erneut.",micDenied:"Wir konnten nicht auf Ihr Mikrofon zugreifen. Bitte erlauben Sie den Zugriff und versuchen Sie es erneut.",micNotFound:"Kein Mikrofon gefunden. Bitte schließen Sie eines an und versuchen Sie es erneut.",voiceUnavailable:"Sprache ist derzeit nicht verfügbar. Bitte versuchen Sie es erneut.",chooseTopicLabel:"Wählen Sie ein Thema, um zu beginnen:",categoryTopicsHeading:"Bitte stellen Sie Ihre Frage zu **{category}** unten.",quickQuestionsHeadingLabel:"Oder stellen Sie eine schnelle Frage:",typeYourMessage:"Geben Sie Ihre Nachricht ein...",agentIsLoading:"Agent wird geladen...",conversationResolved:"Gespräch beendet",howWasYourExperience:"Wie war Ihre Erfahrung?",feedbackPrompt:"Bitte bewerten Sie unseren Support, um uns bei der Verbesserung zu helfen.",feedbackPlaceholder:"Erzählen Sie uns mehr über Ihre Erfahrung...",submitFeedback:"Feedback senden",submitting:"Wird gesendet...",selectRatingFirst:"Wählen Sie zuerst eine Bewertung aus",pleaseSubmitRatingFirst:"Bitte senden Sie zuerst Ihre Bewertung.",completeOnboardingToEnableVoice:"Schließen Sie das Onboarding ab, um die Sprache zu aktivieren",sendMessageToCompleteOnboarding:"Senden Sie eine Nachricht, um das Onboarding abzuschließen und die Sprache zu aktivieren.",resolve:"Beenden",scrollLeft:"Nach links scrollen",scrollRight:"Nach rechts scrollen",sendMessage:"Nachricht senden",voiceSessionLive:"Sprachsitzung aktiv - sprechen oder tippen Sie.",connectingVoice:"Verbindung zur Sprachsitzung...",poweredBy:"Bereitgestellt von",menu:"Menü",close:"Schließen",openChat:"Chat öffnen",closeChat:"Chat schließen",lightMode:"Heller Modus",nightMode:"Dunkler Modus",refreshChat:"Chat aktualisieren",copyChat:"Chat kopieren",startChat:"Chat starten",startingVoiceSession:"Sprachsitzung wird gestartet...",allowMicAccess:"Mikrofonzugriff erlauben"},el:{connectionError:"Συγγνώμη, αντιμετωπίζω πρόβλημα σύνδεσης αυτή τη στιγμή. Δοκιμάστε ξανά.",micDenied:"Δεν μπορέσαμε να αποκτήσουμε πρόσβαση στο μικρόφωνό σας. Επιτρέψτε την πρόσβαση και δοκιμάστε ξανά.",micNotFound:"Δεν βρέθηκε μικρόφωνο. Συνδέστε ένα και δοκιμάστε ξανά.",voiceUnavailable:"Η φωνή δεν είναι διαθέσιμη αυτή τη στιγμή. Δοκιμάστε ξανά.",chooseTopicLabel:"Επιλέξτε ένα θέμα για να ξεκινήσετε:",categoryTopicsHeading:"Παρακαλώ κάντε την ερώτησή σας σχετικά με το **{category}** παρακάτω.",quickQuestionsHeadingLabel:"Ή κάντε μια γρήγορη ερώτηση:",typeYourMessage:"Πληκτρολογήστε το μήνυμά σας...",agentIsLoading:"Ο πράκτορας φορτώνει...",conversationResolved:"Η συζήτηση ολοκληρώθηκε",howWasYourExperience:"Πώς ήταν η εμπειρία σας;",feedbackPrompt:"Παρακαλούμε αξιολογήστε την υποστήριξή μας για να βελτιωθούμε.",feedbackPlaceholder:"Πείτε μας περισσότερα για την εμπειρία σας...",submitFeedback:"Υποβολή σχολίων",submitting:"Υποβολή...",selectRatingFirst:"Επιλέξτε πρώτα μια βαθμολογία",pleaseSubmitRatingFirst:"Υποβάλετε πρώτα τη βαθμολογία σας.",completeOnboardingToEnableVoice:"Ολοκληρώστε την εισαγωγή για ενεργοποίηση φωνής",sendMessageToCompleteOnboarding:"Στείλτε ένα μήνυμα για ολοκλήρωση της εισαγωγής και ενεργοποίηση φωνής.",resolve:"Ολοκλήρωση",scrollLeft:"Κύλιση αριστερά",scrollRight:"Κύλιση δεξιά",sendMessage:"Αποστολή μηνύματος",voiceSessionLive:"Φωνητική συνεδρία ενεργή - μιλήστε ή πληκτρολογήστε.",connectingVoice:"Σύνδεση σε φωνητική συνεδρία...",poweredBy:"Υποστηρίζεται από",menu:"Μενού",close:"Κλείσιμο",openChat:"Άνοιγμα συνομιλίας",closeChat:"Κλείσιμο συνομιλίας",lightMode:"Φωτεινή λειτουργία",nightMode:"Σκοτεινή λειτουργία",refreshChat:"Ανανέωση συνομιλίας",copyChat:"Αντιγραφή συνομιλίας",startChat:"Έναρξη συνομιλίας",startingVoiceSession:"Εκκίνηση φωνητικής συνεδρίας...",allowMicAccess:"Επιτρέψτε πρόσβαση στο μικρόφωνο"},hi:{connectionError:"क्षमा करें, मुझे अभी कनेक्ट होने में समस्या हो रही है। कृपया पुनः प्रयास करें।",micDenied:"हम आपके माइक्रोफ़ोन का उपयोग नहीं कर सके। कृपया अनुमति दें और पुनः प्रयास करें।",micNotFound:"कोई माइक्रोफ़ोन नहीं मिला। कृपया एक कनेक्ट करें और पुनः प्रयास करें।",voiceUnavailable:"वॉइस अभी उपलब्ध नहीं है। कृपया पुनः प्रयास करें।",chooseTopicLabel:"शुरू करने के लिए एक विषय चुनें:",categoryTopicsHeading:"कृपया अपना **{category}** प्रश्न नीचे पूछें।",quickQuestionsHeadingLabel:"या एक त्वरित प्रश्न पूछें:",typeYourMessage:"अपना संदेश लिखें...",agentIsLoading:"एजेंट लोड हो रहा है...",conversationResolved:"बातचीत समाप्त हुई",howWasYourExperience:"आपका अनुभव कैसा रहा?",feedbackPrompt:"हमें बेहतर बनाने में मदद के लिए कृपया हमारे समर्थन को रेट करें।",feedbackPlaceholder:"अपने अनुभव के बारे में और बताएं...",submitFeedback:"फीडबैक भेजें",submitting:"भेजा जा रहा है...",selectRatingFirst:"पहले रेटिंग चुनें",pleaseSubmitRatingFirst:"कृपया पहले अपनी रेटिंग जमा करें।",completeOnboardingToEnableVoice:"वॉयस सक्षम करने के लिए ऑनबोर्डिंग पूरी करें",sendMessageToCompleteOnboarding:"ऑनबोर्डिंग पूरी करने और वॉयस सक्षम करने के लिए संदेश भेजें।",resolve:"समाप्त करें",scrollLeft:"बाएं स्क्रॉल करें",scrollRight:"दाएं स्क्रॉल करें",sendMessage:"संदेश भेजें",voiceSessionLive:"वॉयस सत्र सक्रिय - बात करने के लिए बोलें या टाइप करें।",connectingVoice:"वॉयस सत्र से कनेक्ट हो रहा है...",poweredBy:"Powered by",poweredByBefore:"",poweredByAfter:"द्वारा संचालित",menu:"मेनू",close:"बंद करें",openChat:"चैट खोलें",closeChat:"चैट बंद करें",lightMode:"लाइट मोड",nightMode:"डार्क मोड",refreshChat:"चैट रीफ्रेश करें",copyChat:"चैट कॉपी करें",startChat:"चैट शुरू करें",startingVoiceSession:"वॉयस सत्र शुरू हो रहा है...",allowMicAccess:"माइक्रोफ़ोन एक्सेस की अनुमति दें"},mr:{connectionError:"क्षमस्व, सध्या कनेक्ट होण्यात अडचण येत आहे. कृपया पुन्हा प्रयत्न करा.",micDenied:"आम्ही तुमचा मायक्रोफोन वापरू शकलो नाही. कृपया परवानगी द्या आणि पुन्हा प्रयत्न करा.",micNotFound:"मायक्रोफोन आढळला नाही. कृपया एक जोडा आणि पुन्हा प्रयत्न करा.",voiceUnavailable:"व्हॉइस सध्या उपलब्ध नाही. कृपया पुन्हा प्रयत्न करा.",chooseTopicLabel:"सुरू करण्यासाठी एक विषय निवडा:",categoryTopicsHeading:"कृपया तुमचा **{category}** प्रश्न खाली विचारा.",quickQuestionsHeadingLabel:"किंवा एक झटपट प्रश्न विचारा:",typeYourMessage:"तुमचा संदेश टाइप करा...",agentIsLoading:"एजंट लोड होत आहे...",conversationResolved:"संभाषण समाप्त",howWasYourExperience:"तुमचा अनुभव कसा होता?",feedbackPrompt:"आम्हाला सुधारण्यास मदत करण्यासाठी कृपया आमच्या समर्थनाला रेट करा.",feedbackPlaceholder:"तुमच्या अनुभवाबद्दल आम्हाला अधिक सांगा...",submitFeedback:"फीडबॅक सबमिट करा",submitting:"सबमिट करत आहे...",selectRatingFirst:"प्रथम रेटिंग निवडा",pleaseSubmitRatingFirst:"कृपया प्रथम आपले रेटिंग सबमिट करा.",completeOnboardingToEnableVoice:"व्हॉइस सक्षम करण्यासाठी ऑनबोर्डिंग पूर्ण करा",sendMessageToCompleteOnboarding:"ऑनबोर्डिंग पूर्ण करून व्हॉइस सक्षम करण्यासाठी संदेश पाठवा.",resolve:"समाप्त",scrollLeft:"डावीकडे स्क्रोल करा",scrollRight:"उजवीकडे स्क्रोल करा",sendMessage:"संदेश पाठवा",voiceSessionLive:"व्हॉइस सत्र सक्रिय - बोला किंवा टाइप करा.",connectingVoice:"व्हॉइस सत्रास जोडत आहे...",poweredBy:"Powered by",poweredByBefore:"",poweredByAfter:"द्वारे समर्थित",menu:"मेनू",close:"बंद करा",openChat:"चॅट उघडा",closeChat:"चॅट बंद करा",lightMode:"लाइट मोड",nightMode:"डार्क मोड",refreshChat:"चॅट रीफ्रेश करा",copyChat:"चॅट कॉपी करा",startChat:"चॅट सुरू करा",startingVoiceSession:"व्हॉइस सत्र सुरू होत आहे...",allowMicAccess:"मायक्रोफोन प्रवेशास परवानगी द्या"},hu:{connectionError:"Sajnáljuk, jelenleg kapcsolódási problémám van. Kérjük, próbálja újra.",micDenied:"Nem sikerült hozzáférni a mikrofonjához. Engedélyezze a hozzáférést, és próbálja újra.",micNotFound:"Nem található mikrofon. Csatlakoztasson egyet, és próbálja újra.",voiceUnavailable:"A hang jelenleg nem elérhető. Kérjük, próbálja újra.",chooseTopicLabel:"Válassz egy témát a kezdéshez:",categoryTopicsHeading:"Kérjük, tedd fel **{category}** kérdésedet alább.",quickQuestionsHeadingLabel:"Vagy tegyél fel egy gyors kérdést:",typeYourMessage:"Írja be az üzenetét...",agentIsLoading:"Az ügynök betöltődik...",conversationResolved:"Beszélgetés befejezve",howWasYourExperience:"Milyen volt az élménye?",feedbackPrompt:"Kérjük, értékelje támogatásunkat, hogy segítsen nekünk fejlődni.",feedbackPlaceholder:"Meséljen többet az élményéről...",submitFeedback:"Visszajelzés küldése",submitting:"Küldés...",selectRatingFirst:"Először válasszon értékelést",pleaseSubmitRatingFirst:"Kérjük, először küldje el értékelését.",completeOnboardingToEnableVoice:"Fejezze be a beállítást a hang engedélyezéséhez",sendMessageToCompleteOnboarding:"Küldjön üzenetet a beállítás befejezéséhez és a hang engedélyezéséhez.",resolve:"Befejezés",scrollLeft:"Balra görgetés",scrollRight:"Jobbra görgetés",sendMessage:"Üzenet küldése",voiceSessionLive:"Hangmenet aktív - beszéljen vagy írjon.",connectingVoice:"Csatlakozás hangmenet...",poweredBy:"Működteti",menu:"Menü",close:"Bezárás",openChat:"Csevegés megnyitása",closeChat:"Csevegés bezárása",lightMode:"Világos mód",nightMode:"Sötét mód",refreshChat:"Csevegés frissítése",copyChat:"Csevegés másolása",startChat:"Csevegés indítása",startingVoiceSession:"Hangmenet indítása...",allowMicAccess:"Mikrofon hozzáférés engedélyezése"},is:{connectionError:"Því miður næ ég ekki sambandi núna. Vinsamlegast prófaðu aftur.",micDenied:"Við fengum ekki aðgang að hljóðnemanum þínum. Leyfðu aðgang og prófaðu aftur.",micNotFound:"Enginn hljóðnemi fannst. Tengdu hljóðnema og prófaðu aftur.",voiceUnavailable:"Tal er ekki í boði núna. Vinsamlegast prófaðu aftur.",chooseTopicLabel:"Veldu efni til að byrja:",categoryTopicsHeading:"Vinsamlegast spurðu spurningu þinnar um **{category}** hér að neðan.",quickQuestionsHeadingLabel:"Eða spurðu fljótlegrar spurningar:",typeYourMessage:"Sláðu inn skilaboð...",agentIsLoading:"Fulltrúi hleðst...",conversationResolved:"Samtali lokið",howWasYourExperience:"Hvernig var upplifun þín?",feedbackPrompt:"Vinsamlegast metið þjónustu okkar til að hjálpa okkur að bæta okkur.",feedbackPlaceholder:"Segðu okkur meira um upplifun þína...",submitFeedback:"Senda umsögn",submitting:"Sendir...",selectRatingFirst:"Veldu fyrst einkunn",pleaseSubmitRatingFirst:"Vinsamlegast sendu inn einkunn þína fyrst.",completeOnboardingToEnableVoice:"Ljúktu kynningu til að virkja rödd",sendMessageToCompleteOnboarding:"Sendu skilaboð til að ljúka kynningu og virkja rödd.",resolve:"Ljúka",scrollLeft:"Skruna til vinstri",scrollRight:"Skruna til hægri",sendMessage:"Senda skilaboð",voiceSessionLive:"Raddsamtal virkt - talaðu eða skrifaðu.",connectingVoice:"Tengist raddsamtali...",poweredBy:"Knúið af",menu:"Valmynd",close:"Loka",openChat:"Opna spjall",closeChat:"Loka spjalli",lightMode:"Ljóst þema",nightMode:"Dökkt þema",refreshChat:"Endurnýja spjall",copyChat:"Afrita spjall",startChat:"Byrja spjall",startingVoiceSession:"Byrjar raddsamtal...",allowMicAccess:"Leyfa aðgang að hljóðnema"},id:{connectionError:"Maaf, saya sedang mengalami masalah koneksi. Silakan coba lagi.",micDenied:"Kami tidak dapat mengakses mikrofon Anda. Izinkan akses dan coba lagi.",micNotFound:"Mikrofon tidak ditemukan. Hubungkan mikrofon dan coba lagi.",voiceUnavailable:"Fitur suara tidak tersedia saat ini. Silakan coba lagi.",chooseTopicLabel:"Pilih topik untuk memulai:",categoryTopicsHeading:"Silakan ajukan pertanyaan **{category}** Anda di bawah.",quickQuestionsHeadingLabel:"Atau ajukan pertanyaan cepat:",typeYourMessage:"Ketik pesan Anda...",agentIsLoading:"Agen sedang dimuat...",conversationResolved:"Percakapan selesai",howWasYourExperience:"Bagaimana pengalaman Anda?",feedbackPrompt:"Silakan nilai dukungan kami untuk membantu kami berkembang.",feedbackPlaceholder:"Ceritakan lebih banyak tentang pengalaman Anda...",submitFeedback:"Kirim umpan balik",submitting:"Mengirim...",selectRatingFirst:"Pilih peringkat terlebih dahulu",pleaseSubmitRatingFirst:"Silakan kirim peringkat Anda terlebih dahulu.",completeOnboardingToEnableVoice:"Selesaikan pengenalan untuk mengaktifkan suara",sendMessageToCompleteOnboarding:"Kirim pesan untuk menyelesaikan pengenalan dan mengaktifkan suara.",resolve:"Selesai",scrollLeft:"Gulir kiri",scrollRight:"Gulir kanan",sendMessage:"Kirim pesan",voiceSessionLive:"Sesi suara aktif - bicara atau ketik untuk berbincang.",connectingVoice:"Menghubungkan ke sesi suara...",poweredBy:"Didukung oleh",menu:"Menu",close:"Tutup",openChat:"Buka obrolan",closeChat:"Tutup obrolan",lightMode:"Mode terang",nightMode:"Mode gelap",refreshChat:"Segarkan obrolan",copyChat:"Salin obrolan",startChat:"Mulai obrolan",startingVoiceSession:"Memulai sesi suara...",allowMicAccess:"Izinkan akses mikrofon"},it:{connectionError:"Spiacenti, al momento ho problemi di connessione. Riprova.",micDenied:"Non siamo riusciti ad accedere al tuo microfono. Consenti l'accesso e riprova.",micNotFound:"Nessun microfono rilevato. Collegane uno e riprova.",voiceUnavailable:"La voce non è disponibile al momento. Riprova.",chooseTopicLabel:"Scegli un argomento per iniziare:",categoryTopicsHeading:"Per favore, poni la tua domanda su **{category}** qui sotto.",quickQuestionsHeadingLabel:"Oppure fai una domanda rapida:",typeYourMessage:"Scrivi il tuo messaggio...",agentIsLoading:"L'agente sta caricando...",conversationResolved:"Conversazione conclusa",howWasYourExperience:"Com'è stata la tua esperienza?",feedbackPrompt:"Valuta il nostro supporto per aiutarci a migliorare.",feedbackPlaceholder:"Raccontaci di più sulla tua esperienza...",submitFeedback:"Invia feedback",submitting:"Invio in corso...",selectRatingFirst:"Seleziona prima una valutazione",pleaseSubmitRatingFirst:"Invia prima la tua valutazione.",completeOnboardingToEnableVoice:"Completa l'onboarding per abilitare la voce",sendMessageToCompleteOnboarding:"Invia un messaggio per completare l'onboarding e abilitare la voce.",resolve:"Concludi",scrollLeft:"Scorri a sinistra",scrollRight:"Scorri a destra",sendMessage:"Invia messaggio",voiceSessionLive:"Sessione vocale attiva - parla o scrivi per conversare.",connectingVoice:"Connessione alla sessione vocale...",poweredBy:"Fornito da",menu:"Menu",close:"Chiudi",openChat:"Apri chat",closeChat:"Chiudi chat",lightMode:"Modalità chiara",nightMode:"Modalità scura",refreshChat:"Aggiorna chat",copyChat:"Copia chat",startChat:"Inizia chat",startingVoiceSession:"Avvio sessione vocale...",allowMicAccess:"Consenti l'accesso al microfono"},ja:{connectionError:"申し訳ありません。現在接続に問題が発生しています。もう一度お試しください。",micDenied:"マイクにアクセスできませんでした。アクセスを許可してもう一度お試しください。",micNotFound:"マイクが見つかりません。マイクを接続してもう一度お試しください。",voiceUnavailable:"音声機能は現在利用できません。もう一度お試しください。",chooseTopicLabel:"始めるにはトピックを選択してください:",categoryTopicsHeading:"**{category}** に関するご質問を以下にお書きください。",quickQuestionsHeadingLabel:"または、簡単な質問をどうぞ:",typeYourMessage:"メッセージを入力してください...",agentIsLoading:"エージェントを読み込んでいます...",conversationResolved:"会話が終了しました",howWasYourExperience:"ご体験はいかがでしたか?",feedbackPrompt:"サポート向上のため、評価をお願いします。",feedbackPlaceholder:"体験について詳しく教えてください...",submitFeedback:"フィードバックを送信",submitting:"送信中...",selectRatingFirst:"最初に評価を選択してください",pleaseSubmitRatingFirst:"最初に評価を送信してください。",completeOnboardingToEnableVoice:"音声を有効にするにはオンボーディングを完了してください",sendMessageToCompleteOnboarding:"オンボーディングを完了して音声を有効にするにはメッセージを送信してください。",resolve:"終了",scrollLeft:"左へスクロール",scrollRight:"右へスクロール",sendMessage:"メッセージを送信",voiceSessionLive:"音声セッション中 - 話すか入力してください。",connectingVoice:"音声セッションに接続中...",poweredBy:"提供元",menu:"メニュー",close:"閉じる",openChat:"チャットを開く",closeChat:"チャットを閉じる",lightMode:"ライトモード",nightMode:"ダークモード",refreshChat:"チャットを更新",copyChat:"チャットをコピー",startChat:"チャットを開始",startingVoiceSession:"音声セッションを開始しています...",allowMicAccess:"マイクへのアクセスを許可"},ko:{connectionError:"죄송합니다. 현재 연결에 문제가 있습니다. 다시 시도해 주세요.",micDenied:"마이크에 접근할 수 없습니다. 접근을 허용한 후 다시 시도해 주세요.",micNotFound:"마이크를 찾을 수 없습니다. 마이크를 연결한 후 다시 시도해 주세요.",voiceUnavailable:"음성 기능을 현재 사용할 수 없습니다. 다시 시도해 주세요.",chooseTopicLabel:"시작하려면 주제를 선택하세요:",categoryTopicsHeading:"**{category}** 에 대한 질문을 아래에 작성해 주세요.",quickQuestionsHeadingLabel:"또는 간단한 질문을 해보세요:",typeYourMessage:"메시지를 입력하세요...",agentIsLoading:"상담원을 불러오는 중...",conversationResolved:"대화가 종료되었습니다",howWasYourExperience:"경험은 어떠셨나요?",feedbackPrompt:"개선을 위해 저희 지원 서비스를 평가해주세요.",feedbackPlaceholder:"경험에 대해 더 알려주세요...",submitFeedback:"피드백 제출",submitting:"제출 중...",selectRatingFirst:"먼저 평점을 선택해주세요",pleaseSubmitRatingFirst:"먼저 평점을 제출해주세요.",completeOnboardingToEnableVoice:"음성을 사용하려면 온보딩을 완료하세요",sendMessageToCompleteOnboarding:"온보딩을 완료하고 음성을 사용하려면 메시지를 보내세요.",resolve:"종료",scrollLeft:"왼쪽으로 스크롤",scrollRight:"오른쪽으로 스크롤",sendMessage:"메시지 보내기",voiceSessionLive:"음성 세션 활성화 - 말하거나 입력하세요.",connectingVoice:"음성 세션에 연결 중...",poweredBy:"제공",menu:"메뉴",close:"닫기",openChat:"채팅 열기",closeChat:"채팅 닫기",lightMode:"라이트 모드",nightMode:"다크 모드",refreshChat:"채팅 새로고침",copyChat:"채팅 복사",startChat:"채팅 시작",startingVoiceSession:"음성 세션 시작 중...",allowMicAccess:"마이크 액세스 허용"},lv:{connectionError:"Atvainojiet, šobrīd ir savienojuma problēmas. Lūdzu, mēģiniet vēlreiz.",micDenied:"Neizdevās piekļūt mikrofonam. Lūdzu, atļaujiet piekļuvi un mēģiniet vēlreiz.",micNotFound:"Mikrofons nav atrasts. Lūdzu, pievienojiet mikrofonu un mēģiniet vēlreiz.",voiceUnavailable:"Balss funkcija šobrīd nav pieejama. Lūdzu, mēģiniet vēlreiz.",chooseTopicLabel:"Izvēlieties tēmu, lai sāktu:",categoryTopicsHeading:"Lūdzu, uzdodiet savu jautājumu par **{category}** zemāk.",quickQuestionsHeadingLabel:"Vai uzdodiet ātru jautājumu:",typeYourMessage:"Ierakstiet savu ziņu...",agentIsLoading:"Aģents tiek ielādēts...",conversationResolved:"Saruna pabeigta",howWasYourExperience:"Kāda bija jūsu pieredze?",feedbackPrompt:"Lūdzu, novērtējiet mūsu atbalstu, lai palīdzētu mums uzlabot.",feedbackPlaceholder:"Pastāstiet mums vairāk par savu pieredzi...",submitFeedback:"Nosūtīt atsauksmes",submitting:"Sūta...",selectRatingFirst:"Vispirms izvēlieties vērtējumu",pleaseSubmitRatingFirst:"Lūdzu, vispirms nosūtiet savu vērtējumu.",completeOnboardingToEnableVoice:"Pabeidziet ievadu, lai iespējotu balsi",sendMessageToCompleteOnboarding:"Nosūtiet ziņu, lai pabeigtu ievadu un iespējotu balsi.",resolve:"Pabeigt",scrollLeft:"Ritināt pa kreisi",scrollRight:"Ritināt pa labi",sendMessage:"Nosūtīt ziņu",voiceSessionLive:"Balss sesija aktīva - runājiet vai rakstiet.",connectingVoice:"Pieslēdzas balss sesijai...",poweredBy:"Darbina",menu:"Izvēlne",close:"Aizvērt",openChat:"Atvērt tērzēšanu",closeChat:"Aizvērt tērzēšanu",lightMode:"Gaišais režīms",nightMode:"Tumšais režīms",refreshChat:"Atsvaidzināt tērzēšanu",copyChat:"Kopēt tērzēšanu",startChat:"Sākt tērzēšanu",startingVoiceSession:"Sāk balss sesiju...",allowMicAccess:"Atļaut piekļuvi mikrofonam"},lt:{connectionError:"Atsiprašome, šiuo metu kyla ryšio problemų. Bandykite dar kartą.",micDenied:"Nepavyko pasiekti jūsų mikrofono. Leiskite prieigą ir bandykite dar kartą.",micNotFound:"Mikrofonas nerastas. Prijunkite mikrofoną ir bandykite dar kartą.",voiceUnavailable:"Balso funkcija šiuo metu nepasiekiama. Bandykite dar kartą.",chooseTopicLabel:"Pasirinkite temą, kad pradėtumėte:",categoryTopicsHeading:"Prašome užduoti savo klausimą apie **{category}** žemiau.",quickQuestionsHeadingLabel:"Arba užduokite greitą klausimą:",typeYourMessage:"Įveskite pranešimą...",agentIsLoading:"Agentas kraunamas...",conversationResolved:"Pokalbis baigtas",howWasYourExperience:"Kokia buvo jūsų patirtis?",feedbackPrompt:"Įvertinkite mūsų pagalbą, kad padėtumėte mums tobulėti.",feedbackPlaceholder:"Papasakokite daugiau apie savo patirtį...",submitFeedback:"Pateikti atsiliepimą",submitting:"Siunčiama...",selectRatingFirst:"Pirmiausia pasirinkite įvertinimą",pleaseSubmitRatingFirst:"Pirmiausia pateikite įvertinimą.",completeOnboardingToEnableVoice:"Užbaikite įvadą, kad įjungtumėte balsą",sendMessageToCompleteOnboarding:"Išsiųskite pranešimą, kad užbaigtumėte įvadą ir įjungtumėte balsą.",resolve:"Baigti",scrollLeft:"Slinkti į kairę",scrollRight:"Slinkti į dešinę",sendMessage:"Siųsti pranešimą",voiceSessionLive:"Balso sesija aktyvi - kalbėkite arba rašykite.",connectingVoice:"Jungiamasi prie balso sesijos...",poweredBy:"Veikia",menu:"Meniu",close:"Uždaryti",openChat:"Atidaryti pokalbį",closeChat:"Uždaryti pokalbį",lightMode:"Šviesus režimas",nightMode:"Tamsus režimas",refreshChat:"Atnaujinti pokalbį",copyChat:"Kopijuoti pokalbį",startChat:"Pradėti pokalbį",startingVoiceSession:"Pradedama balso sesija...",allowMicAccess:"Leisti prieigą prie mikrofono"},mk:{connectionError:"Извинете, моментално имам проблеми со поврзувањето. Обидете се повторно.",micDenied:"Не можевме да пристапиме до вашиот микрофон. Дозволете пристап и обидете се повторно.",micNotFound:"Не е најден микрофон. Поврзете микрофон и обидете се повторно.",voiceUnavailable:"Гласовната функција моментално не е достапна. Обидете се повторно.",chooseTopicLabel:"Изберете тема за да започнете:",categoryTopicsHeading:"Ве молиме поставете го вашето прашање за **{category}** подолу.",quickQuestionsHeadingLabel:"Или поставете брзо прашање:",typeYourMessage:"Напишете ја вашата порака...",agentIsLoading:"Агентот се вчитува...",conversationResolved:"Разговорот е завршен",howWasYourExperience:"Какво беше вашето искуство?",feedbackPrompt:"Оценете ја нашата поддршка за да ни помогнете да се подобриме.",feedbackPlaceholder:"Кажете ни повеќе за вашето искуство...",submitFeedback:"Испрати повратна информација",submitting:"Испраќање...",selectRatingFirst:"Прво изберете оценка",pleaseSubmitRatingFirst:"Прво испратете ја вашата оценка.",completeOnboardingToEnableVoice:"Завршете го воведот за да овозможите глас",sendMessageToCompleteOnboarding:"Испратете порака за да го завршите воведот и овозможите глас.",resolve:"Заврши",scrollLeft:"Скролај лево",scrollRight:"Скролај десно",sendMessage:"Испрати порака",voiceSessionLive:"Гласовната сесија е активна - зборувајте или пишувајте.",connectingVoice:"Поврзување со гласовна сесија...",poweredBy:"Поддржано од",menu:"Мени",close:"Затвори",openChat:"Отвори разговор",closeChat:"Затвори разговор",lightMode:"Светол режим",nightMode:"Темен режим",refreshChat:"Освежи разговор",copyChat:"Копирај разговор",startChat:"Започни разговор",startingVoiceSession:"Започнува гласовна сесија...",allowMicAccess:"Дозволи пристап до микрофонот"},ms:{connectionError:"Maaf, saya menghadapi masalah sambungan sekarang. Sila cuba lagi.",micDenied:"Kami tidak dapat mengakses mikrofon anda. Sila benarkan akses dan cuba lagi.",micNotFound:"Tiada mikrofon ditemui. Sila sambungkan mikrofon dan cuba lagi.",voiceUnavailable:"Ciri suara tidak tersedia sekarang. Sila cuba lagi.",chooseTopicLabel:"Pilih topik untuk memulakan:",categoryTopicsHeading:"Sila ajukan soalan **{category}** anda di bawah.",quickQuestionsHeadingLabel:"Atau ajukan soalan ringkas:",typeYourMessage:"Taip mesej anda...",agentIsLoading:"Ejen sedang dimuatkan...",conversationResolved:"Perbualan selesai",howWasYourExperience:"Bagaimanakah pengalaman anda?",feedbackPrompt:"Sila nilaikan sokongan kami untuk membantu kami menambah baik.",feedbackPlaceholder:"Beritahu kami lebih lanjut tentang pengalaman anda...",submitFeedback:"Hantar maklum balas",submitting:"Menghantar...",selectRatingFirst:"Pilih penilaian dahulu",pleaseSubmitRatingFirst:"Sila hantar penilaian anda dahulu.",completeOnboardingToEnableVoice:"Lengkapkan pengenalan untuk mendayakan suara",sendMessageToCompleteOnboarding:"Hantar mesej untuk melengkapkan pengenalan dan mendayakan suara.",resolve:"Selesai",scrollLeft:"Tatal ke kiri",scrollRight:"Tatal ke kanan",sendMessage:"Hantar mesej",voiceSessionLive:"Sesi suara aktif - bercakap atau taip untuk berbual.",connectingVoice:"Menyambung ke sesi suara...",poweredBy:"Dikuasakan oleh",menu:"Menu",close:"Tutup",openChat:"Buka sembang",closeChat:"Tutup sembang",lightMode:"Mod terang",nightMode:"Mod gelap",refreshChat:"Muat semula sembang",copyChat:"Salin sembang",startChat:"Mula sembang",startingVoiceSession:"Memulakan sesi suara...",allowMicAccess:"Benarkan akses mikrofon"},no:{connectionError:"Beklager, jeg har problemer med tilkoblingen akkurat nå. Prøv igjen.",micDenied:"Vi fikk ikke tilgang til mikrofonen din. Gi tilgang og prøv igjen.",micNotFound:"Ingen mikrofon funnet. Koble til en mikrofon og prøv igjen.",voiceUnavailable:"Tale er ikke tilgjengelig akkurat nå. Prøv igjen.",chooseTopicLabel:"Velg et emne for å komme i gang:",categoryTopicsHeading:"Vennligst still spørsmålet ditt om **{category}** nedenfor.",quickQuestionsHeadingLabel:"Eller still et raskt spørsmål:",typeYourMessage:"Skriv meldingen din...",agentIsLoading:"Agenten laster...",conversationResolved:"Samtale avsluttet",howWasYourExperience:"Hvordan var opplevelsen din?",feedbackPrompt:"Vennligst vurder vår støtte for å hjelpe oss med å bli bedre.",feedbackPlaceholder:"Fortell oss mer om opplevelsen din...",submitFeedback:"Send tilbakemelding",submitting:"Sender...",selectRatingFirst:"Velg en vurdering først",pleaseSubmitRatingFirst:"Vennligst send inn vurderingen din først.",completeOnboardingToEnableVoice:"Fullfør introduksjonen for å aktivere tale",sendMessageToCompleteOnboarding:"Send en melding for å fullføre introduksjonen og aktivere tale.",resolve:"Avslutt",scrollLeft:"Bla til venstre",scrollRight:"Bla til høyre",sendMessage:"Send melding",voiceSessionLive:"Talesesjon aktiv - snakk eller skriv for å samtale.",connectingVoice:"Kobler til talesesjon...",poweredBy:"Drevet av",menu:"Meny",close:"Lukk",openChat:"Åpne chat",closeChat:"Lukk chat",lightMode:"Lys modus",nightMode:"Mørk modus",refreshChat:"Oppdater chat",copyChat:"Kopier chat",startChat:"Start chat",startingVoiceSession:"Starter talesesjon...",allowMicAccess:"Tillat mikrofontilgang"},fa:{connectionError:"متأسفیم، در حال حاضر در اتصال مشکل دارم. لطفاً دوباره تلاش کنید.",micDenied:"نتوانستیم به میکروفون شما دسترسی پیدا کنیم. لطفاً دسترسی را اجازه دهید و دوباره تلاش کنید.",micNotFound:"میکروفونی یافت نشد. لطفاً یک میکروفون وصل کنید و دوباره تلاش کنید.",voiceUnavailable:"قابلیت صدا در حال حاضر در دسترس نیست. لطفاً دوباره تلاش کنید.",chooseTopicLabel:"برای شروع، یک موضوع را انتخاب کنید:",categoryTopicsHeading:"لطفاً سؤال خود درباره **{category}** را در زیر مطرح کنید.",quickQuestionsHeadingLabel:"یا یک سؤال سریع بپرسید:",typeYourMessage:"پیام خود را تایپ کنید...",agentIsLoading:"در حال بارگذاری نماینده...",conversationResolved:"مکالمه به پایان رسید",howWasYourExperience:"تجربه شما چگونه بود؟",feedbackPrompt:"لطفاً برای کمک به بهبود ما، پشتیبانی ما را ارزیابی کنید.",feedbackPlaceholder:"درباره تجربه خود بیشتر به ما بگویید...",submitFeedback:"ارسال بازخورد",submitting:"در حال ارسال...",selectRatingFirst:"ابتدا یک امتیاز انتخاب کنید",pleaseSubmitRatingFirst:"لطفاً ابتدا امتیاز خود را ارسال کنید.",completeOnboardingToEnableVoice:"برای فعال‌سازی صدا، راه‌اندازی را تکمیل کنید",sendMessageToCompleteOnboarding:"برای تکمیل راه‌اندازی و فعال‌سازی صدا، پیام ارسال کنید.",resolve:"پایان",scrollLeft:"پیمایش به چپ",scrollRight:"پیمایش به راست",sendMessage:"ارسال پیام",voiceSessionLive:"جلسه صوتی فعال - صحبت کنید یا تایپ کنید.",connectingVoice:"اتصال به جلسه صوتی...",poweredBy:"قدرت گرفته از",menu:"منو",close:"بستن",openChat:"باز کردن چت",closeChat:"بستن چت",lightMode:"حالت روشن",nightMode:"حالت تاریک",refreshChat:"تازه‌سازی چت",copyChat:"کپی چت",startChat:"شروع چت",startingVoiceSession:"شروع جلسه صوتی...",allowMicAccess:"اجازه دسترسی به میکروفون"},pl:{connectionError:"Przepraszamy, mam teraz problem z połączeniem. Spróbuj ponownie.",micDenied:"Nie udało się uzyskać dostępu do mikrofonu. Zezwól na dostęp i spróbuj ponownie.",micNotFound:"Nie znaleziono mikrofonu. Podłącz mikrofon i spróbuj ponownie.",voiceUnavailable:"Funkcja głosowa jest obecnie niedostępna. Spróbuj ponownie.",chooseTopicLabel:"Wybierz temat, aby rozpocząć:",categoryTopicsHeading:"Proszę zadać pytanie dotyczące **{category}** poniżej.",quickQuestionsHeadingLabel:"Lub zadaj szybkie pytanie:",typeYourMessage:"Wpisz wiadomość...",agentIsLoading:"Agent się ładuje...",conversationResolved:"Rozmowa zakończona",howWasYourExperience:"Jakie było Twoje doświadczenie?",feedbackPrompt:"Oceń proszę naszą obsługę, aby pomóc nam się rozwijać.",feedbackPlaceholder:"Opowiedz nam więcej o swoim doświadczeniu...",submitFeedback:"Wyślij opinię",submitting:"Wysyłanie...",selectRatingFirst:"Najpierw wybierz ocenę",pleaseSubmitRatingFirst:"Najpierw prześlij swoją ocenę.",completeOnboardingToEnableVoice:"Zakończ wprowadzenie, aby włączyć głos",sendMessageToCompleteOnboarding:"Wyślij wiadomość, aby zakończyć wprowadzenie i włączyć głos.",resolve:"Zakończ",scrollLeft:"Przewiń w lewo",scrollRight:"Przewiń w prawo",sendMessage:"Wyślij wiadomość",voiceSessionLive:"Sesja głosowa aktywna - mów lub pisz.",connectingVoice:"Łączenie z sesją głosową...",poweredBy:"Napędzane przez",menu:"Menu",close:"Zamknij",openChat:"Otwórz czat",closeChat:"Zamknij czat",lightMode:"Tryb jasny",nightMode:"Tryb ciemny",refreshChat:"Odśwież czat",copyChat:"Kopiuj czat",startChat:"Rozpocznij czat",startingVoiceSession:"Uruchamianie sesji głosowej...",allowMicAccess:"Zezwól na dostęp do mikrofonu"},pt:{connectionError:"Desculpe, estou com problemas de conexão neste momento. Tente novamente.",micDenied:"Não foi possível acessar o seu microfone. Permita o acesso e tente novamente.",micNotFound:"Nenhum microfone encontrado. Conecte um e tente novamente.",voiceUnavailable:"A voz não está disponível neste momento. Tente novamente.",chooseTopicLabel:"Escolha um tópico para começar:",categoryTopicsHeading:"Por favor, faça sua pergunta sobre **{category}** abaixo.",quickQuestionsHeadingLabel:"Ou faça uma pergunta rápida:",typeYourMessage:"Digite sua mensagem...",agentIsLoading:"O agente está carregando...",conversationResolved:"Conversa encerrada",howWasYourExperience:"Como foi sua experiência?",feedbackPrompt:"Avalie nosso suporte para nos ajudar a melhorar.",feedbackPlaceholder:"Conte-nos mais sobre sua experiência...",submitFeedback:"Enviar feedback",submitting:"Enviando...",selectRatingFirst:"Selecione uma avaliação primeiro",pleaseSubmitRatingFirst:"Envie sua avaliação primeiro.",completeOnboardingToEnableVoice:"Complete a integração para ativar a voz",sendMessageToCompleteOnboarding:"Envie uma mensagem para completar a integração e ativar a voz.",resolve:"Encerrar",scrollLeft:"Rolar para a esquerda",scrollRight:"Rolar para a direita",sendMessage:"Enviar mensagem",voiceSessionLive:"Sessão de voz ativa - fale ou digite para conversar.",connectingVoice:"Conectando à sessão de voz...",poweredBy:"Desenvolvido por",menu:"Menu",close:"Fechar",openChat:"Abrir chat",closeChat:"Fechar chat",lightMode:"Modo claro",nightMode:"Modo escuro",refreshChat:"Atualizar chat",copyChat:"Copiar chat",startChat:"Iniciar chat",startingVoiceSession:"Iniciando sessão de voz...",allowMicAccess:"Permitir acesso ao microfone"},ro:{connectionError:"Ne pare rău, întâmpin probleme de conexiune în acest moment. Încercați din nou.",micDenied:"Nu am putut accesa microfonul. Permiteți accesul și încercați din nou.",micNotFound:"Nu a fost găsit niciun microfon. Conectați unul și încercați din nou.",voiceUnavailable:"Funcția vocală nu este disponibilă momentan. Încercați din nou.",chooseTopicLabel:"Alegeți un subiect pentru a începe:",categoryTopicsHeading:"Vă rugăm să adresați întrebarea dvs. despre **{category}** mai jos.",quickQuestionsHeadingLabel:"Sau puneți o întrebare rapidă:",typeYourMessage:"Scrieți mesajul dvs...",agentIsLoading:"Agentul se încarcă...",conversationResolved:"Conversație încheiată",howWasYourExperience:"Cum a fost experiența dvs.?",feedbackPrompt:"Vă rugăm să evaluați asistența noastră pentru a ne ajuta să ne îmbunătățim.",feedbackPlaceholder:"Spuneți-ne mai multe despre experiența dvs...",submitFeedback:"Trimite feedback",submitting:"Se trimite...",selectRatingFirst:"Selectați mai întâi o evaluare",pleaseSubmitRatingFirst:"Vă rugăm să trimiteți mai întâi evaluarea.",completeOnboardingToEnableVoice:"Finalizați procesul pentru a activa vocea",sendMessageToCompleteOnboarding:"Trimiteți un mesaj pentru a finaliza procesul și a activa vocea.",resolve:"Închide",scrollLeft:"Derulați la stânga",scrollRight:"Derulați la dreapta",sendMessage:"Trimite mesaj",voiceSessionLive:"Sesiune vocală activă - vorbiți sau tastați.",connectingVoice:"Se conectează la sesiunea vocală...",poweredBy:"Oferit de",menu:"Meniu",close:"Închide",openChat:"Deschide chat",closeChat:"Închide chat",lightMode:"Mod luminos",nightMode:"Mod întunecat",refreshChat:"Reîmprospătează chat",copyChat:"Copiază chat",startChat:"Începe chat",startingVoiceSession:"Începe sesiunea vocală...",allowMicAccess:"Permiteți accesul la microfon"},ru:{connectionError:"Извините, сейчас возникли проблемы с подключением. Попробуйте снова.",micDenied:"Не удалось получить доступ к микрофону. Разрешите доступ и попробуйте снова.",micNotFound:"Микрофон не найден. Подключите микрофон и попробуйте снова.",voiceUnavailable:"Голосовая функция сейчас недоступна. Попробуйте снова.",chooseTopicLabel:"Выберите тему, чтобы начать:",categoryTopicsHeading:"Пожалуйста, задайте свой вопрос о **{category}** ниже.",quickQuestionsHeadingLabel:"Или задайте быстрый вопрос:",typeYourMessage:"Введите ваше сообщение...",agentIsLoading:"Агент загружается...",conversationResolved:"Разговор завершен",howWasYourExperience:"Как прошел ваш опыт?",feedbackPrompt:"Пожалуйста, оцените нашу поддержку, чтобы помочь нам улучшиться.",feedbackPlaceholder:"Расскажите нам больше о вашем опыте...",submitFeedback:"Отправить отзыв",submitting:"Отправка...",selectRatingFirst:"Сначала выберите оценку",pleaseSubmitRatingFirst:"Пожалуйста, сначала отправьте свою оценку.",completeOnboardingToEnableVoice:"Завершите знакомство, чтобы включить голос",sendMessageToCompleteOnboarding:"Отправьте сообщение, чтобы завершить знакомство и включить голос.",resolve:"Завершить",scrollLeft:"Прокрутить влево",scrollRight:"Прокрутить вправо",sendMessage:"Отправить сообщение",voiceSessionLive:"Голосовая сессия активна - говорите или пишите.",connectingVoice:"Подключение к голосовой сессии...",poweredBy:"Работает на",menu:"Меню",close:"Закрыть",openChat:"Открыть чат",closeChat:"Закрыть чат",lightMode:"Светлый режим",nightMode:"Темный режим",refreshChat:"Обновить чат",copyChat:"Копировать чат",startChat:"Начать чат",startingVoiceSession:"Запуск голосовой сессии...",allowMicAccess:"Разрешить доступ к микрофону"},sr:{connectionError:"Извините, тренутно имам проблема са повезивањем. Пробајте поново.",micDenied:"Нисмо могли да приступимо вашем микрофону. Дозволите приступ и пробајте поново.",micNotFound:"Микрофон није пронађен. Прикључите микрофон и пробајте поново.",voiceUnavailable:"Гласовна функција тренутно није доступна. Пробајте поново.",chooseTopicLabel:"Изаберите тему да бисте започели:",categoryTopicsHeading:"Молимо поставите своје питање о **{category}** испод.",quickQuestionsHeadingLabel:"Или поставите брзо питање:",typeYourMessage:"Укуцајте вашу поруку...",agentIsLoading:"Агент се учитава...",conversationResolved:"Разговор је завршен",howWasYourExperience:"Какво је било ваше искуство?",feedbackPrompt:"Молимо оцените нашу подршку да бисмо се побољшали.",feedbackPlaceholder:"Реците нам више о свом искуству...",submitFeedback:"Пошаљи повратне информације",submitting:"Слање...",selectRatingFirst:"Прво одаберите оцену",pleaseSubmitRatingFirst:"Молимо прво пошаљите оцену.",completeOnboardingToEnableVoice:"Завршите увод да омогућите глас",sendMessageToCompleteOnboarding:"Пошаљите поруку да завршите увод и омогућите глас.",resolve:"Заврши",scrollLeft:"Скроловати лево",scrollRight:"Скроловати десно",sendMessage:"Пошаљи поруку",voiceSessionLive:"Гласовна сесија активна - говорите или куцајте.",connectingVoice:"Повезивање са гласовном сесијом...",poweredBy:"Покреће",menu:"Мени",close:"Затвори",openChat:"Отвори ћаскање",closeChat:"Затвори ћаскање",lightMode:"Светли режим",nightMode:"Тамни режим",refreshChat:"Освежи ћаскање",copyChat:"Копирај ћаскање",startChat:"Започни ћаскање",startingVoiceSession:"Покретање гласовне сесије...",allowMicAccess:"Дозволи приступ микрофону"},sk:{connectionError:"Ľutujeme, momentálne mám problém s pripojením. Skúste to znova.",micDenied:"Nepodarilo sa získať prístup k mikrofónu. Povoľte prístup a skúste to znova.",micNotFound:"Mikrofón sa nenašiel. Pripojte ho a skúste to znova.",voiceUnavailable:"Hlasová funkcia momentálne nie je dostupná. Skúste to znova.",chooseTopicLabel:"Vyberte tému, aby ste začali:",categoryTopicsHeading:"Prosím, položte svoju otázku o **{category}** nižšie.",quickQuestionsHeadingLabel:"Alebo položte rýchlu otázku:",typeYourMessage:"Napíšte svoju správu...",agentIsLoading:"Agent sa načítava...",conversationResolved:"Konverzácia ukončená",howWasYourExperience:"Aká bola vaša skúsenosť?",feedbackPrompt:"Ohodnoťte prosím našu podporu, aby sme sa mohli zlepšiť.",feedbackPlaceholder:"Povedzte nám viac o svojej skúsenosti...",submitFeedback:"Odoslať spätnú väzbu",submitting:"Odosielanie...",selectRatingFirst:"Najprv vyberte hodnotenie",pleaseSubmitRatingFirst:"Najprv odošlite svoje hodnotenie.",completeOnboardingToEnableVoice:"Dokončite úvod pre zapnutie hlasu",sendMessageToCompleteOnboarding:"Pošlite správu na dokončenie úvodu a zapnutie hlasu.",resolve:"Ukončiť",scrollLeft:"Posunúť doľava",scrollRight:"Posunúť doprava",sendMessage:"Odoslať správu",voiceSessionLive:"Hlasová relácia aktívna - hovorte alebo píšte.",connectingVoice:"Pripájanie k hlasovej relácii...",poweredBy:"Prevádzkuje",menu:"Ponuka",close:"Zavrieť",openChat:"Otvoriť chat",closeChat:"Zavrieť chat",lightMode:"Svetlý režim",nightMode:"Tmavý režim",refreshChat:"Obnoviť chat",copyChat:"Kopírovať chat",startChat:"Začať chat",startingVoiceSession:"Spúšťanie hlasovej relácie...",allowMicAccess:"Povoliť prístup k mikrofónu"},sl:{connectionError:"Oprostite, trenutno imam težave s povezavo. Poskusite znova.",micDenied:"Do mikrofona ni bilo mogoče dostopati. Dovolite dostop in poskusite znova.",micNotFound:"Mikrofona ni bilo mogoče najti. Priključite ga in poskusite znova.",voiceUnavailable:"Glasovna funkcija trenutno ni na voljo. Poskusite znova.",chooseTopicLabel:"Izberite temo za začetek:",categoryTopicsHeading:"Prosimo, postavite vprašanje o **{category}** spodaj.",quickQuestionsHeadingLabel:"Ali postavite hitro vprašanje:",typeYourMessage:"Vnesite svoje sporočilo...",agentIsLoading:"Agent se nalaga...",conversationResolved:"Pogovor je končan",howWasYourExperience:"Kakšna je bila vaša izkušnja?",feedbackPrompt:"Prosimo, ocenite našo podporo, da nam pomagate izboljšati.",feedbackPlaceholder:"Povejte nam več o svoji izkušnji...",submitFeedback:"Pošlji povratne informacije",submitting:"Pošiljanje...",selectRatingFirst:"Najprej izberite oceno",pleaseSubmitRatingFirst:"Prosimo, najprej pošljite svojo oceno.",completeOnboardingToEnableVoice:"Zaključite uvodne korake za omogočanje glasu",sendMessageToCompleteOnboarding:"Pošljite sporočilo, da zaključite uvod in omogočite glas.",resolve:"Končaj",scrollLeft:"Premakni levo",scrollRight:"Premakni desno",sendMessage:"Pošlji sporočilo",voiceSessionLive:"Glasovna seja aktivna - govorite ali tipkajte.",connectingVoice:"Povezovanje z glasovno sejo...",poweredBy:"Poganja",menu:"Meni",close:"Zapri",openChat:"Odpri klepet",closeChat:"Zapri klepet",lightMode:"Svetli način",nightMode:"Temni način",refreshChat:"Osveži klepet",copyChat:"Kopiraj klepet",startChat:"Začni klepet",startingVoiceSession:"Začetek glasovne seje...",allowMicAccess:"Dovoli dostop do mikrofona"},sv:{connectionError:"Ursäkta, jag har anslutningsproblem just nu. Försök igen.",micDenied:"Vi kunde inte komma åt din mikrofon. Tillåt åtkomst och försök igen.",micNotFound:"Ingen mikrofon hittades. Anslut en mikrofon och försök igen.",voiceUnavailable:"Röst är inte tillgängligt just nu. Försök igen.",chooseTopicLabel:"Välj ett ämne för att komma igång:",categoryTopicsHeading:"Ställ gärna din **{category}**-fråga nedan.",quickQuestionsHeadingLabel:"Eller ställ en snabb fråga:",typeYourMessage:"Skriv ditt meddelande...",agentIsLoading:"Agenten laddas...",conversationResolved:"Konversation avslutad",howWasYourExperience:"Hur var din upplevelse?",feedbackPrompt:"Betygsätt vår support för att hjälpa oss att bli bättre.",feedbackPlaceholder:"Berätta mer om din upplevelse...",submitFeedback:"Skicka feedback",submitting:"Skickar...",selectRatingFirst:"Välj först ett betyg",pleaseSubmitRatingFirst:"Vänligen skicka in ditt betyg först.",completeOnboardingToEnableVoice:"Slutför introduktionen för att aktivera röst",sendMessageToCompleteOnboarding:"Skicka ett meddelande för att slutföra introduktionen och aktivera röst.",resolve:"Avsluta",scrollLeft:"Bläddra åt vänster",scrollRight:"Bläddra åt höger",sendMessage:"Skicka meddelande",voiceSessionLive:"Röstsession aktiv - tala eller skriv för att samtala.",connectingVoice:"Ansluter till röstsession...",poweredBy:"Drivs av",menu:"Meny",close:"Stäng",openChat:"Öppna chatt",closeChat:"Stäng chatt",lightMode:"Ljust läge",nightMode:"Mörkt läge",refreshChat:"Uppdatera chatt",copyChat:"Kopiera chatt",startChat:"Starta chatt",startingVoiceSession:"Startar röstsession...",allowMicAccess:"Tillåt mikrofonåtkomst"},th:{connectionError:"ขออภัย ขณะนี้เกิดปัญหาในการเชื่อมต่อ โปรดลองอีกครั้ง",micDenied:"เราไม่สามารถเข้าถึงไมโครโฟนของคุณได้ โปรดอนุญาตการเข้าถึงแล้วลองอีกครั้ง",micNotFound:"ไม่พบไมโครโฟน โปรดเชื่อมต่อไมโครโฟนแล้วลองอีกครั้ง",voiceUnavailable:"ฟีเจอร์เสียงไม่พร้อมใช้งานในขณะนี้ โปรดลองอีกครั้ง",chooseTopicLabel:"เลือกหัวข้อเพื่อเริ่มต้น:",categoryTopicsHeading:"โปรดถามคำถามเกี่ยวกับ **{category}** ด้านล่าง",quickQuestionsHeadingLabel:"หรือถามคำถามด่วน:",typeYourMessage:"พิมพ์ข้อความของคุณ...",agentIsLoading:"กำลังโหลดตัวแทน...",conversationResolved:"การสนทนาสิ้นสุดลง",howWasYourExperience:"ประสบการณ์ของคุณเป็นอย่างไร?",feedbackPrompt:"โปรดให้คะแนนการสนับสนุนของเราเพื่อช่วยให้เราปรับปรุง",feedbackPlaceholder:"บอกเราเพิ่มเติมเกี่ยวกับประสบการณ์ของคุณ...",submitFeedback:"ส่งความคิดเห็น",submitting:"กำลังส่ง...",selectRatingFirst:"โปรดเลือกคะแนนก่อน",pleaseSubmitRatingFirst:"โปรดส่งคะแนนของคุณก่อน",completeOnboardingToEnableVoice:"ทำการเริ่มต้นให้เสร็จเพื่อเปิดใช้งานเสียง",sendMessageToCompleteOnboarding:"ส่งข้อความเพื่อทำการเริ่มต้นให้เสร็จและเปิดใช้งานเสียง",resolve:"สิ้นสุด",scrollLeft:"เลื่อนไปทางซ้าย",scrollRight:"เลื่อนไปทางขวา",sendMessage:"ส่งข้อความ",voiceSessionLive:"เซสชันเสียงใช้งานอยู่ - พูดหรือพิมพ์เพื่อสนทนา",connectingVoice:"กำลังเชื่อมต่อกับเซสชันเสียง...",poweredBy:"ขับเคลื่อนโดย",menu:"เมนู",close:"ปิด",openChat:"เปิดแชท",closeChat:"ปิดแชท",lightMode:"โหมดสว่าง",nightMode:"โหมดมืด",refreshChat:"รีเฟรชแชท",copyChat:"คัดลอกแชท",startChat:"เริ่มแชท",startingVoiceSession:"กำลังเริ่มเซสชันเสียง...",allowMicAccess:"อนุญาตการเข้าถึงไมโครโฟน"},tr:{connectionError:"Üzgünüz, şu anda bağlantı sorunu yaşıyorum. Lütfen tekrar deneyin.",micDenied:"Mikrofonunuza erişemedik. Lütfen erişime izin verin ve tekrar deneyin.",micNotFound:"Mikrofon bulunamadı. Lütfen bir mikrofon bağlayın ve tekrar deneyin.",voiceUnavailable:"Sesli özellik şu anda kullanılamıyor. Lütfen tekrar deneyin.",chooseTopicLabel:"Başlamak için bir konu seçin:",categoryTopicsHeading:"Lütfen **{category}** sorunuzu aşağıya yazın.",quickQuestionsHeadingLabel:"Veya hızlı bir soru sorun:",typeYourMessage:"Mesajınızı yazın...",agentIsLoading:"Temsilci yükleniyor...",conversationResolved:"Görüşme sonlandırıldı",howWasYourExperience:"Deneyiminiz nasıldı?",feedbackPrompt:"Gelişmemize yardımcı olmak için lütfen desteğimizi değerlendirin.",feedbackPlaceholder:"Deneyiminiz hakkında bize daha fazla bilgi verin...",submitFeedback:"Geri bildirim gönder",submitting:"Gönderiliyor...",selectRatingFirst:"Önce bir değerlendirme seçin",pleaseSubmitRatingFirst:"Lütfen önce değerlendirmenizi gönderin.",completeOnboardingToEnableVoice:"Sesi etkinleştirmek için tanıtımı tamamlayın",sendMessageToCompleteOnboarding:"Tanıtımı tamamlamak ve sesi etkinleştirmek için bir mesaj gönderin.",resolve:"Bitir",scrollLeft:"Sola kaydır",scrollRight:"Sağa kaydır",sendMessage:"Mesaj gönder",voiceSessionLive:"Sesli oturum aktif - konuşun veya yazın.",connectingVoice:"Sesli oturuma bağlanılıyor...",poweredBy:"Tarafından sağlandı",menu:"Menü",close:"Kapat",openChat:"Sohbeti aç",closeChat:"Sohbeti kapat",lightMode:"Açık mod",nightMode:"Karanlık mod",refreshChat:"Sohbeti yenile",copyChat:"Sohbeti kopyala",startChat:"Sohbete başla",startingVoiceSession:"Sesli oturum başlatılıyor...",allowMicAccess:"Mikrofon erişimine izin ver"},uk:{connectionError:"Вибачте, зараз виникли проблеми з підключенням. Спробуйте ще раз.",micDenied:"Не вдалося отримати доступ до мікрофона. Дозвольте доступ і спробуйте ще раз.",micNotFound:"Мікрофон не знайдено. Підключіть мікрофон і спробуйте ще раз.",voiceUnavailable:"Голосова функція зараз недоступна. Спробуйте ще раз.",chooseTopicLabel:"Виберіть тему, щоб почати:",categoryTopicsHeading:"Будь ласка, поставте своє запитання щодо **{category}** нижче.",quickQuestionsHeadingLabel:"Або поставте швидке запитання:",typeYourMessage:"Введіть ваше повідомлення...",agentIsLoading:"Агент завантажується...",conversationResolved:"Розмову завершено",howWasYourExperience:"Яким був ваш досвід?",feedbackPrompt:"Будь ласка, оцініть нашу підтримку, щоб допомогти нам вдосконалюватися.",feedbackPlaceholder:"Розкажіть нам більше про свій досвід...",submitFeedback:"Надіслати відгук",submitting:"Надсилання...",selectRatingFirst:"Спочатку оберіть оцінку",pleaseSubmitRatingFirst:"Будь ласка, спочатку надішліть оцінку.",completeOnboardingToEnableVoice:"Завершіть вступ, щоб увімкнути голос",sendMessageToCompleteOnboarding:"Надішліть повідомлення, щоб завершити вступ та увімкнути голос.",resolve:"Завершити",scrollLeft:"Прокрутити ліворуч",scrollRight:"Прокрутити праворуч",sendMessage:"Надіслати повідомлення",voiceSessionLive:"Голосовий сеанс активний - говоріть або пишіть.",connectingVoice:"Підключення до голосового сеансу...",poweredBy:"Працює на",menu:"Меню",close:"Закрити",openChat:"Відкрити чат",closeChat:"Закрити чат",lightMode:"Світлий режим",nightMode:"Темний режим",refreshChat:"Оновити чат",copyChat:"Копіювати чат",startChat:"Почати чат",startingVoiceSession:"Запуск голосового сеансу...",allowMicAccess:"Дозволити доступ до мікрофона"},ur:{connectionError:"معذرت، اس وقت رابطہ قائم کرنے میں دشواری ہو رہی ہے۔ براہ کرم دوبارہ کوشش کریں۔",micDenied:"ہم آپ کے مائیکروفون تک رسائی حاصل نہیں کر سکے۔ براہ کرم رسائی کی اجازت دیں اور دوبارہ کوشش کریں۔",micNotFound:"کوئی مائیکروفون نہیں ملا۔ براہ کرم ایک منسلک کریں اور دوبارہ کوشش کریں۔",voiceUnavailable:"صوتی سہولت اس وقت دستیاب نہیں ہے۔ براہ کرم دوبارہ کوشش کریں۔",chooseTopicLabel:"شروع کرنے کے لیے ایک موضوع منتخب کریں:",categoryTopicsHeading:"براہ کرم اپنا **{category}** سوال نیچے پوچھیں۔",quickQuestionsHeadingLabel:"یا کوئی فوری سوال پوچھیں:",typeYourMessage:"اپنا پیغام ٹائپ کریں...",agentIsLoading:"ایجنٹ لوڈ ہو رہا ہے...",conversationResolved:"گفتگو مکمل",howWasYourExperience:"آپ کا تجربہ کیسا تھا؟",feedbackPrompt:"براہ کرم ہماری بہتری میں مدد کے لیے ہماری معاونت کی درجہ بندی کریں۔",feedbackPlaceholder:"ہمیں اپنے تجربے کے بارے میں مزید بتائیں...",submitFeedback:"رائے جمع کروائیں",submitting:"جمع ہو رہا ہے...",selectRatingFirst:"پہلے درجہ بندی منتخب کریں",pleaseSubmitRatingFirst:"براہ کرم پہلے اپنی درجہ بندی جمع کروائیں۔",completeOnboardingToEnableVoice:"آواز کو فعال کرنے کے لیے ابتدائی مراحل مکمل کریں",sendMessageToCompleteOnboarding:"ابتدائی مراحل مکمل کرنے اور آواز فعال کرنے کے لیے پیغام بھیجیں۔",resolve:"مکمل کریں",scrollLeft:"بائیں اسکرول کریں",scrollRight:"دائیں اسکرول کریں",sendMessage:"پیغام بھیجیں",voiceSessionLive:"صوتی سیشن فعال - بات کریں یا ٹائپ کریں۔",connectingVoice:"صوتی سیشن سے جڑ رہا ہے...",poweredBy:"پاور بذریعہ",menu:"مینو",close:"بند کریں",openChat:"چیٹ کھولیں",closeChat:"چیٹ بند کریں",lightMode:"ہلکا موڈ",nightMode:"تاریک موڈ",refreshChat:"چیٹ ریفریش کریں",copyChat:"چیٹ کاپی کریں",startChat:"چیٹ شروع کریں",startingVoiceSession:"صوتی سیشن شروع ہو رہا ہے...",allowMicAccess:"مائیکروفون تک رسائی کی اجازت دیں"},vi:{connectionError:"Xin lỗi, hiện tôi đang gặp sự cố kết nối. Vui lòng thử lại.",micDenied:"Chúng tôi không thể truy cập micrô của bạn. Vui lòng cho phép truy cập và thử lại.",micNotFound:"Không tìm thấy micrô. Vui lòng kết nối micrô và thử lại.",voiceUnavailable:"Tính năng giọng nói hiện không khả dụng. Vui lòng thử lại.",chooseTopicLabel:"Chọn một chủ đề để bắt đầu:",categoryTopicsHeading:"Vui lòng đặt câu hỏi của bạn về **{category}** bên dưới.",quickQuestionsHeadingLabel:"Hoặc đặt một câu hỏi nhanh:",typeYourMessage:"Nhập tin nhắn của bạn...",agentIsLoading:"Đang tải trợ lý...",conversationResolved:"Cuộc trò chuyện đã kết thúc",howWasYourExperience:"Trải nghiệm của bạn như thế nào?",feedbackPrompt:"Vui lòng đánh giá hỗ trợ của chúng tôi để giúp chúng tôi cải thiện.",feedbackPlaceholder:"Hãy cho chúng tôi biết thêm về trải nghiệm của bạn...",submitFeedback:"Gửi phản hồi",submitting:"Đang gửi...",selectRatingFirst:"Vui lòng chọn đánh giá trước",pleaseSubmitRatingFirst:"Vui lòng gửi đánh giá của bạn trước.",completeOnboardingToEnableVoice:"Hoàn thành hướng dẫn để bật giọng nói",sendMessageToCompleteOnboarding:"Gửi tin nhắn để hoàn thành hướng dẫn và bật giọng nói.",resolve:"Kết thúc",scrollLeft:"Cuộn sang trái",scrollRight:"Cuộn sang phải",sendMessage:"Gửi tin nhắn",voiceSessionLive:"Phiên giọng nói đang hoạt động - hãy nói hoặc gõ.",connectingVoice:"Đang kết nối phiên giọng nói...",poweredBy:"Được cung cấp bởi",menu:"Menu",close:"Đóng",openChat:"Mở trò chuyện",closeChat:"Đóng trò chuyện",lightMode:"Chế độ sáng",nightMode:"Chế độ tối",refreshChat:"Làm mới trò chuyện",copyChat:"Sao chép trò chuyện",startChat:"Bắt đầu trò chuyện",startingVoiceSession:"Đang bắt đầu phiên giọng nói...",allowMicAccess:"Cho phép truy cập micrô"}},Cd={en:{removeAttachment:"Remove attachment",categoryFilter:"Category filter",filterByCategory:"Filter by category",scrollCategoriesLeft:"Scroll categories left",scrollCategoriesRight:"Scroll categories right",scrollTagsLeft:"Scroll tags left",scrollTagsRight:"Scroll tags right",copyMessage:"Copy message",copied:"Copied",like:"Like",dislike:"Dislike",sourcesCited:"{count} sources cited",moreSources:"+{count} more"},ar:{removeAttachment:"إزالة المرفق",categoryFilter:"تصفية الفئات",filterByCategory:"التصفية حسب الفئة",scrollCategoriesLeft:"تمرير الفئات لليسار",scrollCategoriesRight:"تمرير الفئات لليمين",scrollTagsLeft:"تمرير الوسوم لليسار",scrollTagsRight:"تمرير الوسوم لليمين",copyMessage:"نسخ الرسالة",copied:"تم النسخ",like:"أعجبني",dislike:"لم يعجبني",sourcesCited:"{count} مصادر مستشهد بها",moreSources:"+{count} أخرى"},es:{removeAttachment:"Quitar archivo adjunto",categoryFilter:"Filtro de categoría",filterByCategory:"Filtrar por categoría",scrollCategoriesLeft:"Desplazar categorías a la izquierda",scrollCategoriesRight:"Desplazar categorías a la derecha",scrollTagsLeft:"Desplazar etiquetas a la izquierda",scrollTagsRight:"Desplazar etiquetas a la derecha",copyMessage:"Copiar mensaje",copied:"Copiado",like:"Me gusta",dislike:"No me gusta",sourcesCited:"{count} fuentes citadas",moreSources:"+{count} más"},be:{removeAttachment:"Выдаліць улажэнне",categoryFilter:"Фільтр катэгорый",filterByCategory:"Фільтраваць па катэгорыі",scrollCategoriesLeft:"Пракруціць катэгорыі ўлева",scrollCategoriesRight:"Пракруціць катэгорыі ўправа",scrollTagsLeft:"Пракруціць тэгі ўлева",scrollTagsRight:"Пракруціць тэгі ўправа",copyMessage:"Капіраваць паведамленне",copied:"Скапіравана",like:"Падабаецца",dislike:"Не падабаецца",sourcesCited:"Цытаваныя крыніцы: {count}",moreSources:"+{count} яшчэ"},bs:{removeAttachment:"Ukloni prilog",categoryFilter:"Filter kategorija",filterByCategory:"Filtriraj po kategoriji",scrollCategoriesLeft:"Pomjeri kategorije lijevo",scrollCategoriesRight:"Pomjeri kategorije desno",scrollTagsLeft:"Pomjeri oznake lijevo",scrollTagsRight:"Pomjeri oznake desno",copyMessage:"Kopiraj poruku",copied:"Kopirano",like:"Sviđa mi se",dislike:"Ne sviđa mi se",sourcesCited:"Citirani izvori: {count}",moreSources:"+{count} više"},bg:{removeAttachment:"Премахване на прикачения файл",categoryFilter:"Филтър по категория",filterByCategory:"Филтриране по категория",scrollCategoriesLeft:"Превъртане на категориите наляво",scrollCategoriesRight:"Превъртане на категориите надясно",scrollTagsLeft:"Превъртане на етикетите наляво",scrollTagsRight:"Превъртане на етикетите надясно",copyMessage:"Копиране на съобщението",copied:"Копирано",like:"Харесва ми",dislike:"Не ми харесва",sourcesCited:"Цитирани източници: {count}",moreSources:"+{count} още"},my:{removeAttachment:"ပူးတွဲဖိုင်ကို ဖယ်ရှားပါ",categoryFilter:"အမျိုးအစား စစ်ထုတ်မှု",filterByCategory:"အမျိုးအစားအလိုက် စစ်ထုတ်ပါ",scrollCategoriesLeft:"အမျိုးအစားများကို ဘယ်ဘက်သို့ ရွှေ့ပါ",scrollCategoriesRight:"အမျိုးအစားများကို ညာဘက်သို့ ရွှေ့ပါ",scrollTagsLeft:"တဂ်များကို ဘယ်ဘက်သို့ ရွှေ့ပါ",scrollTagsRight:"တဂ်များကို ညာဘက်သို့ ရွှေ့ပါ",copyMessage:"မက်ဆေ့ချ်ကို ကူးယူပါ",copied:"ကူးယူပြီးပါပြီ",like:"နှစ်သက်သည်",dislike:"မနှစ်သက်ပါ",sourcesCited:"ကိုးကားထားသော ရင်းမြစ် {count} ခု",moreSources:"နောက်ထပ် +{count}"},ca:{removeAttachment:"Elimina el fitxer adjunt",categoryFilter:"Filtre de categoria",filterByCategory:"Filtra per categoria",scrollCategoriesLeft:"Desplaça les categories a l'esquerra",scrollCategoriesRight:"Desplaça les categories a la dreta",scrollTagsLeft:"Desplaça les etiquetes a l'esquerra",scrollTagsRight:"Desplaça les etiquetes a la dreta",copyMessage:"Copia el missatge",copied:"Copiat",like:"M'agrada",dislike:"No m'agrada",sourcesCited:"{count} fonts citades",moreSources:"+{count} més"},zh:{removeAttachment:"移除附件",categoryFilter:"类别筛选",filterByCategory:"按类别筛选",scrollCategoriesLeft:"向左滚动类别",scrollCategoriesRight:"向右滚动类别",scrollTagsLeft:"向左滚动标签",scrollTagsRight:"向右滚动标签",copyMessage:"复制消息",copied:"已复制",like:"赞",dislike:"踩",sourcesCited:"引用了 {count} 个来源",moreSources:"另外 {count} 个"},hr:{removeAttachment:"Ukloni privitak",categoryFilter:"Filtar kategorija",filterByCategory:"Filtriraj po kategoriji",scrollCategoriesLeft:"Pomakni kategorije ulijevo",scrollCategoriesRight:"Pomakni kategorije udesno",scrollTagsLeft:"Pomakni oznake ulijevo",scrollTagsRight:"Pomakni oznake udesno",copyMessage:"Kopiraj poruku",copied:"Kopirano",like:"Sviđa mi se",dislike:"Ne sviđa mi se",sourcesCited:"Citirani izvori: {count}",moreSources:"+{count} više"},cs:{removeAttachment:"Odebrat přílohu",categoryFilter:"Filtr kategorií",filterByCategory:"Filtrovat podle kategorie",scrollCategoriesLeft:"Posunout kategorie doleva",scrollCategoriesRight:"Posunout kategorie doprava",scrollTagsLeft:"Posunout štítky doleva",scrollTagsRight:"Posunout štítky doprava",copyMessage:"Kopírovat zprávu",copied:"Zkopírováno",like:"Líbí se mi",dislike:"Nelíbí se mi",sourcesCited:"Citované zdroje: {count}",moreSources:"+{count} další"},da:{removeAttachment:"Fjern vedhæftet fil",categoryFilter:"Kategorifilter",filterByCategory:"Filtrer efter kategori",scrollCategoriesLeft:"Rul kategorier til venstre",scrollCategoriesRight:"Rul kategorier til højre",scrollTagsLeft:"Rul tags til venstre",scrollTagsRight:"Rul tags til højre",copyMessage:"Kopiér besked",copied:"Kopieret",like:"Synes godt om",dislike:"Synes ikke om",sourcesCited:"{count} kilder citeret",moreSources:"+{count} mere"},nl:{removeAttachment:"Bijlage verwijderen",categoryFilter:"Categoriefilter",filterByCategory:"Filteren op categorie",scrollCategoriesLeft:"Categorieën naar links scrollen",scrollCategoriesRight:"Categorieën naar rechts scrollen",scrollTagsLeft:"Tags naar links scrollen",scrollTagsRight:"Tags naar rechts scrollen",copyMessage:"Bericht kopiëren",copied:"Gekopieerd",like:"Vind ik leuk",dislike:"Vind ik niet leuk",sourcesCited:"{count} bronnen geciteerd",moreSources:"+{count} meer"},et:{removeAttachment:"Eemalda manus",categoryFilter:"Kategooriafilter",filterByCategory:"Filtreeri kategooria järgi",scrollCategoriesLeft:"Keri kategooriaid vasakule",scrollCategoriesRight:"Keri kategooriaid paremale",scrollTagsLeft:"Keri silte vasakule",scrollTagsRight:"Keri silte paremale",copyMessage:"Kopeeri sõnum",copied:"Kopeeritud",like:"Meeldib",dislike:"Ei meeldi",sourcesCited:"Viidatud allikaid: {count}",moreSources:"+{count} veel"},fi:{removeAttachment:"Poista liite",categoryFilter:"Luokkasuodatin",filterByCategory:"Suodata luokan mukaan",scrollCategoriesLeft:"Vieritä luokkia vasemmalle",scrollCategoriesRight:"Vieritä luokkia oikealle",scrollTagsLeft:"Vieritä tunnisteita vasemmalle",scrollTagsRight:"Vieritä tunnisteita oikealle",copyMessage:"Kopioi viesti",copied:"Kopioitu",like:"Tykkää",dislike:"En tykkää",sourcesCited:"Lähteitä viitattu: {count}",moreSources:"+{count} lisää"},fr:{removeAttachment:"Supprimer la pièce jointe",categoryFilter:"Filtre de catégorie",filterByCategory:"Filtrer par catégorie",scrollCategoriesLeft:"Faire défiler les catégories vers la gauche",scrollCategoriesRight:"Faire défiler les catégories vers la droite",scrollTagsLeft:"Faire défiler les étiquettes vers la gauche",scrollTagsRight:"Faire défiler les étiquettes vers la droite",copyMessage:"Copier le message",copied:"Copié",like:"J'aime",dislike:"Je n'aime pas",sourcesCited:"{count} sources citées",moreSources:"+{count} de plus"},de:{removeAttachment:"Anhang entfernen",categoryFilter:"Kategoriefilter",filterByCategory:"Nach Kategorie filtern",scrollCategoriesLeft:"Kategorien nach links scrollen",scrollCategoriesRight:"Kategorien nach rechts scrollen",scrollTagsLeft:"Tags nach links scrollen",scrollTagsRight:"Tags nach rechts scrollen",copyMessage:"Nachricht kopieren",copied:"Kopiert",like:"Gefällt mir",dislike:"Gefällt mir nicht",sourcesCited:"{count} Quellen zitiert",moreSources:"+{count} weitere"},el:{removeAttachment:"Αφαίρεση συνημμένου",categoryFilter:"Φίλτρο κατηγορίας",filterByCategory:"Φιλτράρισμα κατά κατηγορία",scrollCategoriesLeft:"Κύλιση κατηγοριών αριστερά",scrollCategoriesRight:"Κύλιση κατηγοριών δεξιά",scrollTagsLeft:"Κύλιση ετικετών αριστερά",scrollTagsRight:"Κύλιση ετικετών δεξιά",copyMessage:"Αντιγραφή μηνύματος",copied:"Αντιγράφηκε",like:"Μου αρέσει",dislike:"Δεν μου αρέσει",sourcesCited:"{count} πηγές αναφέρονται",moreSources:"+{count} ακόμη"},hi:{removeAttachment:"अनुलग्नक हटाएँ",categoryFilter:"श्रेणी फ़िल्टर",filterByCategory:"श्रेणी के अनुसार फ़िल्टर करें",scrollCategoriesLeft:"श्रेणियों को बाईं ओर स्क्रॉल करें",scrollCategoriesRight:"श्रेणियों को दाईं ओर स्क्रॉल करें",scrollTagsLeft:"टैग को बाईं ओर स्क्रॉल करें",scrollTagsRight:"टैग को दाईं ओर स्क्रॉल करें",copyMessage:"संदेश कॉपी करें",copied:"कॉपी किया गया",like:"पसंद",dislike:"नापसंद",sourcesCited:"{count} स्रोत उद्धृत",moreSources:"+{count} और"},mr:{removeAttachment:"संलग्नक काढा",categoryFilter:"श्रेणी फिल्टर",filterByCategory:"श्रेणीनुसार फिल्टर करा",scrollCategoriesLeft:"श्रेण्या डावीकडे स्क्रोल करा",scrollCategoriesRight:"श्रेण्या उजवीकडे स्क्रोल करा",scrollTagsLeft:"टॅग डावीकडे स्क्रोल करा",scrollTagsRight:"टॅग उजवीकडे स्क्रोल करा",copyMessage:"संदेश कॉपी करा",copied:"कॉपी केले",like:"आवडले",dislike:"आवडले नाही",sourcesCited:"{count} स्रोत उद्धृत",moreSources:"+{count} अधिक"},hu:{removeAttachment:"Melléklet eltávolítása",categoryFilter:"Kategóriaszűrő",filterByCategory:"Szűrés kategória szerint",scrollCategoriesLeft:"Kategóriák görgetése balra",scrollCategoriesRight:"Kategóriák görgetése jobbra",scrollTagsLeft:"Címkék görgetése balra",scrollTagsRight:"Címkék görgetése jobbra",copyMessage:"Üzenet másolása",copied:"Másolva",like:"Tetszik",dislike:"Nem tetszik",sourcesCited:"{count} hivatkozott forrás",moreSources:"+{count} további"},is:{removeAttachment:"Fjarlægja viðhengi",categoryFilter:"Flokkasía",filterByCategory:"Sía eftir flokki",scrollCategoriesLeft:"Fletta flokkum til vinstri",scrollCategoriesRight:"Fletta flokkum til hægri",scrollTagsLeft:"Fletta merkjum til vinstri",scrollTagsRight:"Fletta merkjum til hægri",copyMessage:"Afrita skilaboð",copied:"Afritað",like:"Líkar",dislike:"Líkar ekki",sourcesCited:"Heimildir vísað í: {count}",moreSources:"+{count} í viðbót"},id:{removeAttachment:"Hapus lampiran",categoryFilter:"Filter kategori",filterByCategory:"Filter menurut kategori",scrollCategoriesLeft:"Gulir kategori ke kiri",scrollCategoriesRight:"Gulir kategori ke kanan",scrollTagsLeft:"Gulir tag ke kiri",scrollTagsRight:"Gulir tag ke kanan",copyMessage:"Salin pesan",copied:"Disalin",like:"Suka",dislike:"Tidak suka",sourcesCited:"{count} sumber dikutip",moreSources:"+{count} lainnya"},it:{removeAttachment:"Rimuovi allegato",categoryFilter:"Filtro categoria",filterByCategory:"Filtra per categoria",scrollCategoriesLeft:"Scorri le categorie a sinistra",scrollCategoriesRight:"Scorri le categorie a destra",scrollTagsLeft:"Scorri i tag a sinistra",scrollTagsRight:"Scorri i tag a destra",copyMessage:"Copia messaggio",copied:"Copiato",like:"Mi piace",dislike:"Non mi piace",sourcesCited:"{count} fonti citate",moreSources:"+{count} altre"},ja:{removeAttachment:"添付ファイルを削除",categoryFilter:"カテゴリフィルター",filterByCategory:"カテゴリで絞り込む",scrollCategoriesLeft:"カテゴリを左にスクロール",scrollCategoriesRight:"カテゴリを右にスクロール",scrollTagsLeft:"タグを左にスクロール",scrollTagsRight:"タグを右にスクロール",copyMessage:"メッセージをコピー",copied:"コピーしました",like:"いいね",dislike:"よくないね",sourcesCited:"{count} 件の出典",moreSources:"他 {count} 件"},ko:{removeAttachment:"첨부 파일 제거",categoryFilter:"카테고리 필터",filterByCategory:"카테고리별 필터",scrollCategoriesLeft:"카테고리를 왼쪽으로 스크롤",scrollCategoriesRight:"카테고리를 오른쪽으로 스크롤",scrollTagsLeft:"태그를 왼쪽으로 스크롤",scrollTagsRight:"태그를 오른쪽으로 스크롤",copyMessage:"메시지 복사",copied:"복사됨",like:"좋아요",dislike:"싫어요",sourcesCited:"인용된 출처 {count}개",moreSources:"외 {count}개"},lv:{removeAttachment:"Noņemt pielikumu",categoryFilter:"Kategoriju filtrs",filterByCategory:"Filtrēt pēc kategorijas",scrollCategoriesLeft:"Ritināt kategorijas pa kreisi",scrollCategoriesRight:"Ritināt kategorijas pa labi",scrollTagsLeft:"Ritināt birkas pa kreisi",scrollTagsRight:"Ritināt birkas pa labi",copyMessage:"Kopēt ziņojumu",copied:"Nokopēts",like:"Patīk",dislike:"Nepatīk",sourcesCited:"Citēti avoti: {count}",moreSources:"+{count} vēl"},lt:{removeAttachment:"Pašalinti priedą",categoryFilter:"Kategorijų filtras",filterByCategory:"Filtruoti pagal kategoriją",scrollCategoriesLeft:"Slinkti kategorijas į kairę",scrollCategoriesRight:"Slinkti kategorijas į dešinę",scrollTagsLeft:"Slinkti žymes į kairę",scrollTagsRight:"Slinkti žymes į dešinę",copyMessage:"Kopijuoti žinutę",copied:"Nukopijuota",like:"Patinka",dislike:"Nepatinka",sourcesCited:"Cituoti šaltiniai: {count}",moreSources:"+{count} daugiau"},mk:{removeAttachment:"Отстрани прилог",categoryFilter:"Филтер за категории",filterByCategory:"Филтрирај по категорија",scrollCategoriesLeft:"Лизгај ги категориите налево",scrollCategoriesRight:"Лизгај ги категориите надесно",scrollTagsLeft:"Лизгај ги ознаките налево",scrollTagsRight:"Лизгај ги ознаките надесно",copyMessage:"Копирај порака",copied:"Копирано",like:"Ми се допаѓа",dislike:"Не ми се допаѓа",sourcesCited:"Цитирани извори: {count}",moreSources:"+{count} уште"},ms:{removeAttachment:"Alih keluar lampiran",categoryFilter:"Penapis kategori",filterByCategory:"Tapis mengikut kategori",scrollCategoriesLeft:"Tatal kategori ke kiri",scrollCategoriesRight:"Tatal kategori ke kanan",scrollTagsLeft:"Tatal tag ke kiri",scrollTagsRight:"Tatal tag ke kanan",copyMessage:"Salin mesej",copied:"Disalin",like:"Suka",dislike:"Tidak suka",sourcesCited:"{count} sumber dipetik",moreSources:"+{count} lagi"},no:{removeAttachment:"Fjern vedlegg",categoryFilter:"Kategorifilter",filterByCategory:"Filtrer etter kategori",scrollCategoriesLeft:"Bla kategorier til venstre",scrollCategoriesRight:"Bla kategorier til høyre",scrollTagsLeft:"Bla emneknagger til venstre",scrollTagsRight:"Bla emneknagger til høyre",copyMessage:"Kopier melding",copied:"Kopiert",like:"Liker",dislike:"Liker ikke",sourcesCited:"{count} kilder sitert",moreSources:"+{count} til"},fa:{removeAttachment:"حذف پیوست",categoryFilter:"فیلتر دسته‌بندی",filterByCategory:"فیلتر بر اساس دسته‌بندی",scrollCategoriesLeft:"پیمایش دسته‌بندی‌ها به چپ",scrollCategoriesRight:"پیمایش دسته‌بندی‌ها به راست",scrollTagsLeft:"پیمایش برچسب‌ها به چپ",scrollTagsRight:"پیمایش برچسب‌ها به راست",copyMessage:"کپی پیام",copied:"کپی شد",like:"پسندیدم",dislike:"نپسندیدم",sourcesCited:"{count} منبع ذکر شده",moreSources:"+{count} مورد دیگر"},pl:{removeAttachment:"Usuń załącznik",categoryFilter:"Filtr kategorii",filterByCategory:"Filtruj według kategorii",scrollCategoriesLeft:"Przewiń kategorie w lewo",scrollCategoriesRight:"Przewiń kategorie w prawo",scrollTagsLeft:"Przewiń tagi w lewo",scrollTagsRight:"Przewiń tagi w prawo",copyMessage:"Kopiuj wiadomość",copied:"Skopiowano",like:"Lubię to",dislike:"Nie lubię tego",sourcesCited:"Cytowane źródła: {count}",moreSources:"+{count} więcej"},pt:{removeAttachment:"Remover anexo",categoryFilter:"Filtro de categoria",filterByCategory:"Filtrar por categoria",scrollCategoriesLeft:"Rolar categorias para a esquerda",scrollCategoriesRight:"Rolar categorias para a direita",scrollTagsLeft:"Rolar etiquetas para a esquerda",scrollTagsRight:"Rolar etiquetas para a direita",copyMessage:"Copiar mensagem",copied:"Copiado",like:"Gostei",dislike:"Não gostei",sourcesCited:"{count} fontes citadas",moreSources:"+{count} mais"},ro:{removeAttachment:"Elimină atașamentul",categoryFilter:"Filtru de categorie",filterByCategory:"Filtrează după categorie",scrollCategoriesLeft:"Derulează categoriile la stânga",scrollCategoriesRight:"Derulează categoriile la dreapta",scrollTagsLeft:"Derulează etichetele la stânga",scrollTagsRight:"Derulează etichetele la dreapta",copyMessage:"Copiază mesajul",copied:"Copiat",like:"Îmi place",dislike:"Nu îmi place",sourcesCited:"Surse citate: {count}",moreSources:"+{count} în plus"},ru:{removeAttachment:"Удалить вложение",categoryFilter:"Фильтр категорий",filterByCategory:"Фильтровать по категории",scrollCategoriesLeft:"Прокрутить категории влево",scrollCategoriesRight:"Прокрутить категории вправо",scrollTagsLeft:"Прокрутить теги влево",scrollTagsRight:"Прокрутить теги вправо",copyMessage:"Копировать сообщение",copied:"Скопировано",like:"Нравится",dislike:"Не нравится",sourcesCited:"Цитируемые источники: {count}",moreSources:"+{count} ещё"},sr:{removeAttachment:"Уклони прилог",categoryFilter:"Филтер категорија",filterByCategory:"Филтрирај по категорији",scrollCategoriesLeft:"Скролуј категорије лево",scrollCategoriesRight:"Скролуј категорије десно",scrollTagsLeft:"Скролуј ознаке лево",scrollTagsRight:"Скролуј ознаке десно",copyMessage:"Копирај поруку",copied:"Копирано",like:"Свиђа ми се",dislike:"Не свиђа ми се",sourcesCited:"Цитирани извори: {count}",moreSources:"+{count} још"},sk:{removeAttachment:"Odstrániť prílohu",categoryFilter:"Filter kategórií",filterByCategory:"Filtrovať podľa kategórie",scrollCategoriesLeft:"Posunúť kategórie doľava",scrollCategoriesRight:"Posunúť kategórie doprava",scrollTagsLeft:"Posunúť štítky doľava",scrollTagsRight:"Posunúť štítky doprava",copyMessage:"Kopírovať správu",copied:"Skopírované",like:"Páči sa mi",dislike:"Nepáči sa mi",sourcesCited:"Citované zdroje: {count}",moreSources:"+{count} ďalšie"},sl:{removeAttachment:"Odstrani prilogo",categoryFilter:"Filter kategorij",filterByCategory:"Filtriraj po kategoriji",scrollCategoriesLeft:"Pomakni kategorije levo",scrollCategoriesRight:"Pomakni kategorije desno",scrollTagsLeft:"Pomakni oznake levo",scrollTagsRight:"Pomakni oznake desno",copyMessage:"Kopiraj sporočilo",copied:"Kopirano",like:"Všeč mi je",dislike:"Ni mi všeč",sourcesCited:"Navedeni viri: {count}",moreSources:"+{count} več"},sv:{removeAttachment:"Ta bort bilaga",categoryFilter:"Kategorifilter",filterByCategory:"Filtrera efter kategori",scrollCategoriesLeft:"Bläddra kategorier åt vänster",scrollCategoriesRight:"Bläddra kategorier åt höger",scrollTagsLeft:"Bläddra taggar åt vänster",scrollTagsRight:"Bläddra taggar åt höger",copyMessage:"Kopiera meddelande",copied:"Kopierat",like:"Gilla",dislike:"Gilla inte",sourcesCited:"{count} källor citerade",moreSources:"+{count} till"},th:{removeAttachment:"นำไฟล์แนบออก",categoryFilter:"ตัวกรองหมวดหมู่",filterByCategory:"กรองตามหมวดหมู่",scrollCategoriesLeft:"เลื่อนหมวดหมู่ไปทางซ้าย",scrollCategoriesRight:"เลื่อนหมวดหมู่ไปทางขวา",scrollTagsLeft:"เลื่อนแท็กไปทางซ้าย",scrollTagsRight:"เลื่อนแท็กไปทางขวา",copyMessage:"คัดลอกข้อความ",copied:"คัดลอกแล้ว",like:"ถูกใจ",dislike:"ไม่ถูกใจ",sourcesCited:"อ้างอิง {count} แหล่ง",moreSources:"อีก +{count}"},tr:{removeAttachment:"Eki kaldır",categoryFilter:"Kategori filtresi",filterByCategory:"Kategoriye göre filtrele",scrollCategoriesLeft:"Kategorileri sola kaydır",scrollCategoriesRight:"Kategorileri sağa kaydır",scrollTagsLeft:"Etiketleri sola kaydır",scrollTagsRight:"Etiketleri sağa kaydır",copyMessage:"Mesajı kopyala",copied:"Kopyalandı",like:"Beğen",dislike:"Beğenme",sourcesCited:"{count} kaynak alıntılandı",moreSources:"+{count} daha"},uk:{removeAttachment:"Видалити вкладення",categoryFilter:"Фільтр категорій",filterByCategory:"Фільтрувати за категорією",scrollCategoriesLeft:"Прокрутити категорії ліворуч",scrollCategoriesRight:"Прокрутити категорії праворуч",scrollTagsLeft:"Прокрутити теги ліворуч",scrollTagsRight:"Прокрутити теги праворуч",copyMessage:"Копіювати повідомлення",copied:"Скопійовано",like:"Подобається",dislike:"Не подобається",sourcesCited:"Цитовані джерела: {count}",moreSources:"+{count} ще"},ur:{removeAttachment:"منسلکہ ہٹائیں",categoryFilter:"زمرہ فلٹر",filterByCategory:"زمرے کے لحاظ سے فلٹر کریں",scrollCategoriesLeft:"زمرے بائیں طرف اسکرول کریں",scrollCategoriesRight:"زمرے دائیں طرف اسکرول کریں",scrollTagsLeft:"ٹیگز بائیں طرف اسکرول کریں",scrollTagsRight:"ٹیگز دائیں طرف اسکرول کریں",copyMessage:"پیغام کاپی کریں",copied:"کاپی ہو گیا",like:"پسند",dislike:"ناپسند",sourcesCited:"{count} حوالہ جاتی ذرائع",moreSources:"+{count} مزید"},vi:{removeAttachment:"Xóa tệp đính kèm",categoryFilter:"Bộ lọc danh mục",filterByCategory:"Lọc theo danh mục",scrollCategoriesLeft:"Cuộn danh mục sang trái",scrollCategoriesRight:"Cuộn danh mục sang phải",scrollTagsLeft:"Cuộn thẻ sang trái",scrollTagsRight:"Cuộn thẻ sang phải",copyMessage:"Sao chép tin nhắn",copied:"Đã sao chép",like:"Thích",dislike:"Không thích",sourcesCited:"Đã trích dẫn {count} nguồn",moreSources:"+{count} nữa"}},Sd={en:{onboardingNamePlaceholder:"Please enter your name",onboardingEmailPlaceholder:"Please enter your email address",onboardingPhonePlaceholder:"Please enter your phone number"},ar:{onboardingNamePlaceholder:"الرجاء إدخال اسمك",onboardingEmailPlaceholder:"الرجاء إدخال بريدك الإلكتروني",onboardingPhonePlaceholder:"الرجاء إدخال رقم هاتفك"},es:{onboardingNamePlaceholder:"Introduce tu nombre",onboardingEmailPlaceholder:"Introduce tu correo electrónico",onboardingPhonePlaceholder:"Introduce tu número de teléfono"},be:{onboardingNamePlaceholder:"Калі ласка, увядзіце ваша імя",onboardingEmailPlaceholder:"Калі ласка, увядзіце адрас электроннай пошты",onboardingPhonePlaceholder:"Калі ласка, увядзіце нумар тэлефона"},bs:{onboardingNamePlaceholder:"Unesite svoje ime",onboardingEmailPlaceholder:"Unesite svoju email adresu",onboardingPhonePlaceholder:"Unesite svoj broj telefona"},bg:{onboardingNamePlaceholder:"Моля, въведете вашето име",onboardingEmailPlaceholder:"Моля, въведете имейл адреса си",onboardingPhonePlaceholder:"Моля, въведете телефонния си номер"},my:{onboardingNamePlaceholder:"ကျေးဇူးပြု၍ သင့်အမည်ကို ထည့်ပါ",onboardingEmailPlaceholder:"ကျေးဇူးပြု၍ သင့်အီးမေးလ်လိပ်စာကို ထည့်ပါ",onboardingPhonePlaceholder:"ကျေးဇူးပြု၍ သင့်ဖုန်းနံပါတ်ကို ထည့်ပါ"},ca:{onboardingNamePlaceholder:"Introdueix el teu nom",onboardingEmailPlaceholder:"Introdueix el teu correu electrònic",onboardingPhonePlaceholder:"Introdueix el teu número de telèfon"},zh:{onboardingNamePlaceholder:"请输入您的姓名",onboardingEmailPlaceholder:"请输入您的电子邮箱地址",onboardingPhonePlaceholder:"请输入您的电话号码"},hr:{onboardingNamePlaceholder:"Unesite svoje ime",onboardingEmailPlaceholder:"Unesite svoju adresu e-pošte",onboardingPhonePlaceholder:"Unesite svoj broj telefona"},cs:{onboardingNamePlaceholder:"Zadejte své jméno",onboardingEmailPlaceholder:"Zadejte svou e-mailovou adresu",onboardingPhonePlaceholder:"Zadejte své telefonní číslo"},da:{onboardingNamePlaceholder:"Indtast dit navn",onboardingEmailPlaceholder:"Indtast din e-mailadresse",onboardingPhonePlaceholder:"Indtast dit telefonnummer"},nl:{onboardingNamePlaceholder:"Voer uw naam in",onboardingEmailPlaceholder:"Voer uw e-mailadres in",onboardingPhonePlaceholder:"Voer uw telefoonnummer in"},et:{onboardingNamePlaceholder:"Sisestage oma nimi",onboardingEmailPlaceholder:"Sisestage oma e-posti aadress",onboardingPhonePlaceholder:"Sisestage oma telefoninumber"},fi:{onboardingNamePlaceholder:"Anna nimesi",onboardingEmailPlaceholder:"Anna sähköpostiosoitteesi",onboardingPhonePlaceholder:"Anna puhelinnumerosi"},fr:{onboardingNamePlaceholder:"Veuillez saisir votre nom",onboardingEmailPlaceholder:"Veuillez saisir votre adresse e-mail",onboardingPhonePlaceholder:"Veuillez saisir votre numéro de téléphone"},de:{onboardingNamePlaceholder:"Bitte geben Sie Ihren Namen ein",onboardingEmailPlaceholder:"Bitte geben Sie Ihre E-Mail-Adresse ein",onboardingPhonePlaceholder:"Bitte geben Sie Ihre Telefonnummer ein"},el:{onboardingNamePlaceholder:"Παρακαλώ εισαγάγετε το όνομά σας",onboardingEmailPlaceholder:"Παρακαλώ εισαγάγετε τη διεύθυνση email σας",onboardingPhonePlaceholder:"Παρακαλώ εισαγάγετε τον αριθμό τηλεφώνου σας"},hi:{onboardingNamePlaceholder:"कृपया अपना नाम दर्ज करें",onboardingEmailPlaceholder:"कृपया अपना ईमेल पता दर्ज करें",onboardingPhonePlaceholder:"कृपया अपना फ़ोन नंबर दर्ज करें"},mr:{onboardingNamePlaceholder:"कृपया आपले नाव प्रविष्ट करा",onboardingEmailPlaceholder:"कृपया आपला ईमेल पत्ता प्रविष्ट करा",onboardingPhonePlaceholder:"कृपया आपला फोन नंबर प्रविष्ट करा"},hu:{onboardingNamePlaceholder:"Adja meg a nevét",onboardingEmailPlaceholder:"Adja meg az e-mail-címét",onboardingPhonePlaceholder:"Adja meg a telefonszámát"},is:{onboardingNamePlaceholder:"Sláðu inn nafn þitt",onboardingEmailPlaceholder:"Sláðu inn netfangið þitt",onboardingPhonePlaceholder:"Sláðu inn símanúmerið þitt"},id:{onboardingNamePlaceholder:"Masukkan nama Anda",onboardingEmailPlaceholder:"Masukkan alamat email Anda",onboardingPhonePlaceholder:"Masukkan nomor telepon Anda"},it:{onboardingNamePlaceholder:"Inserisci il tuo nome",onboardingEmailPlaceholder:"Inserisci il tuo indirizzo email",onboardingPhonePlaceholder:"Inserisci il tuo numero di telefono"},ja:{onboardingNamePlaceholder:"お名前を入力してください",onboardingEmailPlaceholder:"メールアドレスを入力してください",onboardingPhonePlaceholder:"電話番号を入力してください"},ko:{onboardingNamePlaceholder:"이름을 입력해 주세요",onboardingEmailPlaceholder:"이메일 주소를 입력해 주세요",onboardingPhonePlaceholder:"전화번호를 입력해 주세요"},lv:{onboardingNamePlaceholder:"Lūdzu, ievadiet savu vārdu",onboardingEmailPlaceholder:"Lūdzu, ievadiet savu e-pasta adresi",onboardingPhonePlaceholder:"Lūdzu, ievadiet savu tālruņa numuru"},lt:{onboardingNamePlaceholder:"Įveskite savo vardą",onboardingEmailPlaceholder:"Įveskite savo el. pašto adresą",onboardingPhonePlaceholder:"Įveskite savo telefono numerį"},mk:{onboardingNamePlaceholder:"Внесете го вашето име",onboardingEmailPlaceholder:"Внесете ја вашата е-пошта",onboardingPhonePlaceholder:"Внесете го вашиот телефонски број"},ms:{onboardingNamePlaceholder:"Masukkan nama anda",onboardingEmailPlaceholder:"Masukkan alamat e-mel anda",onboardingPhonePlaceholder:"Masukkan nombor telefon anda"},no:{onboardingNamePlaceholder:"Skriv inn navnet ditt",onboardingEmailPlaceholder:"Skriv inn e-postadressen din",onboardingPhonePlaceholder:"Skriv inn telefonnummeret ditt"},fa:{onboardingNamePlaceholder:"لطفاً نام خود را وارد کنید",onboardingEmailPlaceholder:"لطفاً ایمیل خود را وارد کنید",onboardingPhonePlaceholder:"لطفاً شماره تلفن خود را وارد کنید"},pl:{onboardingNamePlaceholder:"Wpisz swoje imię",onboardingEmailPlaceholder:"Wpisz swój adres e-mail",onboardingPhonePlaceholder:"Wpisz swój numer telefonu"},pt:{onboardingNamePlaceholder:"Insira o seu nome",onboardingEmailPlaceholder:"Insira o seu endereço de e-mail",onboardingPhonePlaceholder:"Insira o seu número de telefone"},ro:{onboardingNamePlaceholder:"Introduceți numele dvs.",onboardingEmailPlaceholder:"Introduceți adresa dvs. de e-mail",onboardingPhonePlaceholder:"Introduceți numărul dvs. de telefon"},ru:{onboardingNamePlaceholder:"Введите ваше имя",onboardingEmailPlaceholder:"Введите адрес электронной почты",onboardingPhonePlaceholder:"Введите номер телефона"},sr:{onboardingNamePlaceholder:"Унесите своје име",onboardingEmailPlaceholder:"Унесите своју адресу е-поште",onboardingPhonePlaceholder:"Унесите свој број телефона"},sk:{onboardingNamePlaceholder:"Zadajte svoje meno",onboardingEmailPlaceholder:"Zadajte svoju e-mailovú adresu",onboardingPhonePlaceholder:"Zadajte svoje telefónne číslo"},sl:{onboardingNamePlaceholder:"Vnesite svoje ime",onboardingEmailPlaceholder:"Vnesite svoj e-poštni naslov",onboardingPhonePlaceholder:"Vnesite svojo telefonsko številko"},sv:{onboardingNamePlaceholder:"Ange ditt namn",onboardingEmailPlaceholder:"Ange din e-postadress",onboardingPhonePlaceholder:"Ange ditt telefonnummer"},th:{onboardingNamePlaceholder:"กรุณากรอกชื่อของคุณ",onboardingEmailPlaceholder:"กรุณากรอกอีเมลของคุณ",onboardingPhonePlaceholder:"กรุณากรอกหมายเลขโทรศัพท์ของคุณ"},tr:{onboardingNamePlaceholder:"Lütfen adınızı girin",onboardingEmailPlaceholder:"Lütfen e-posta adresinizi girin",onboardingPhonePlaceholder:"Lütfen telefon numaranızı girin"},uk:{onboardingNamePlaceholder:"Введіть ваше ім’я",onboardingEmailPlaceholder:"Введіть вашу адресу електронної пошти",onboardingPhonePlaceholder:"Введіть ваш номер телефону"},ur:{onboardingNamePlaceholder:"براہ کرم اپنا نام درج کریں",onboardingEmailPlaceholder:"براہ کرم اپنا ای میل پتہ درج کریں",onboardingPhonePlaceholder:"براہ کرم اپنا فون نمبر درج کریں"},vi:{onboardingNamePlaceholder:"Vui lòng nhập tên của bạn",onboardingEmailPlaceholder:"Vui lòng nhập địa chỉ email của bạn",onboardingPhonePlaceholder:"Vui lòng nhập số điện thoại của bạn"}},Md=new Set(["ar","fa","he","ur","iw","prs"]);function Td(e){if(!e||"string"!=typeof e)return"en";const t=e.toLowerCase().split(/[-_]/)[0];return xd[t]?t:"en"}function Pd(e){const t=(e||"").toLowerCase().split(/[-_]/)[0];return Md.has(t)}const zd=/[\u0590-\u05ff\u0600-\u06ff\u0700-\u074f\u0750-\u077f\u08a0-\u08ff\ufb1d-\ufb4f\ufb50-\ufdff\ufe70-\ufeff]/,jd=/[A-Za-z\u00c0-\u024f\u0370-\u03ff\u0400-\u04ff]/;function Ed(e,t=!1){if("string"!=typeof e||0===e.length)return t;for(const t of e){if(zd.test(t))return!0;if(jd.test(t))return!1}return t}function Fd(e,t){const r=Td(e),n=xd[r]||kd,o=Sd[r];return o?.[t]??n[t]??Cd[r]?.[t]??Sd.en[t]??Cd.en[t]??kd[t]??t}function Ld(e){const t=Td(e);return e=>Fd(t,e)}const Nd=new Set(["NotAllowedError","PermissionDeniedError","SecurityError"]),Rd=new Set(["NotFoundError","DevicesNotFoundError","OverconstrainedError"]);function Ad(e){try{const t="string"==typeof e?.name?e.name:"";if(Nd.has(t))return"micDenied";if(Rd.has(t))return"micNotFound";const r="string"==typeof e?.message?e.message.toLowerCase():"";if(r.includes("permission denied")||r.includes("permission dismissed"))return"micDenied";if(r.includes("device not found")||r.includes("no microphone"))return"micNotFound"}catch{}return"voiceUnavailable"}function _d(e){return"human_reply"===e?.contentType||"handoff_ack"===e?.contentType||!0===e?.staffTurn}const Id=e=>e.replace(/([\u3000-\u303f\u3040-\u30ff\u3400-\u4dbf\u4e00-\u9fff\uff00-\uffef])\s+([\u3000-\u303f\u3040-\u30ff\u3400-\u4dbf\u4e00-\u9fff\uff00-\uffef])/g,"$1$2"),Bd=/^(https?|mailto|tel):/i,Dd=e=>{const t=(e||"").trim();return t?/^https?:\/\//i.test(t)||Bd.test(t)?t:/^[a-z][a-z0-9+.-]*:/i.test(t)?"":`https://${t.replace(/^\/+/,"")}`:""},Od=(...e)=>e.filter(Boolean).join(" "),Ud={fullname:0,name:0,username:0,email:1,phone:2,mobileno:2},Vd=e=>{if(!e)return 99;const t=String(e).toLowerCase();return Ud[t]??99},$d="eshal_chat_session",Hd="eshal_chat_session_messages";function qd(e,t=200,r=50){if(!Array.isArray(e))return[];("number"!=typeof t||t<=0)&&(t=200),("number"!=typeof r||r<=0||r>=t)&&(r=Math.min(50,t-1));let n=e;for(;n.length>t;)n=n.slice(r);return n}const Wd=(e,t,r,n)=>{if(e&&t)try{const o=n?.cap,a=n?.trimBatch,i=function(e){return Array.isArray(e)?e.filter(e=>e&&!e.isWelcome&&(e.content||Array.isArray(e.sources)&&e.sources.length>0||Array.isArray(e.attachments)&&e.attachments.length>0)).map(e=>({id:e.id,role:e.role,content:e.content,timestamp:e.timestamp instanceof Date?e.timestamp.toISOString():"string"==typeof e.timestamp?e.timestamp:(new Date).toISOString(),type:e.type??null,...Array.isArray(e.sources)&&e.sources.length>0?{sources:e.sources}:{},...void 0!==e.feedback?{feedback:e.feedback}:{},...Array.isArray(e.prompts)&&e.prompts.length>0?{prompts:e.prompts}:{},...Array.isArray(e.attachments)&&e.attachments.length>0?{attachments:e.attachments.filter(e=>e&&(e.filename||e.storageKey)).map(e=>({filename:e.filename,mimeType:e.mimeType,size:e.size,storageKey:e.storageKey,url:e.url}))}:{}})):[]}(qd(r,o,a));localStorage.setItem(`${Hd}_${e}_${t}`,JSON.stringify(i))}catch{}},Kd=(e,t)=>{if(e&&t)try{localStorage.removeItem(`${Hd}_${e}_${t}`)}catch{}},Qd=(e,t)=>{if(null==e||!t)return null;const r={MINUTES:6e4,HOURS:36e5,DAYS:864e5}[t.toUpperCase()];return void 0===r?null:Number(e)*r},Yd=e=>{try{const t=localStorage.getItem(`${$d}_${e}`);return t?JSON.parse(t):null}catch{return null}},Gd=(e,t,r)=>{if(!e||!e.lastActivity)return!1;if(null==t||0===t)return!0;if(null!==t&&null!==r){const n=JSON.stringify({value:t,unit:r?.toUpperCase()});if(e.settingsSnapshot&&e.settingsSnapshot!==n)return!1}if(null===e.firstInteractionAt)return!0;const n=Qd(t,r);if(!n)return!0;const o=new Date(e.lastActivity).getTime(),a=Date.now()-o<n;return a},Jd=(e,t,r={})=>{try{const n=(new Date).toISOString();localStorage.setItem(`${$d}_${e}`,JSON.stringify({conversationId:t,lastActivity:n,createdAt:n,firstInteractionAt:null,...r}))}catch{}},Xd=e=>{try{const t=Yd(e);if(!t)return;const r=(new Date).toISOString();t.lastActivity=r,t.firstInteractionAt||(t.firstInteractionAt=r),localStorage.setItem(`${$d}_${e}`,JSON.stringify(t))}catch{}},Zd=e=>{try{return Yd(e)?.onboardingName??""}catch{return""}},eg=(e,t)=>{try{if(!e)return;if(!Array.isArray(t)||0===t.length)return void localStorage.removeItem(`${$d}_prompts_${e}`);localStorage.setItem(`${$d}_prompts_${e}`,JSON.stringify(t))}catch{}};function tg(e){return null==e?"":String(e)}function rg(e,t){const r=tg(e),n=tg(t).trim();if(!n||!r.trim())return r;const o=function(e){return tg(e).trim().split(/\s+/).filter(Boolean).map(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}).join(" ")}(n);if(new RegExp("^\\s*(?:hi|hey|hello)\\s+"+o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"\\b","i").test(r))return r;const a=r.match(/^\s*(hi|hey|hello)(?:\s+there)?\s*([-,!.:;]+)?\s*/i);if(a){const e=a[1],t=void 0!==a[2]?a[2]:",",n=r.slice(a[0].length);return e+" "+o+t+(n?" "+n:"")}return"Hi "+o+", "+r}const ng=new Set(["fullname","name","username"]);const og=(e,t)=>{const r=(Array.isArray(t)?t:[]).filter(e=>e&&"string"==typeof e.url&&e.url).map(e=>`[${String(e.filename||"Attachment").replace(/[[\]]/g,"")}](${e.url})`);return 0===r.length?e:[String(e??"").trim(),...r].filter(Boolean).join("\n\n")},ag=({id:e,role:t,content:r,isProcessing:n=!1,isError:o=!1,metadata:a,attachments:i})=>({id:e,role:t,content:r,timestamp:new Date,isProcessing:n,...o?{isError:!0}:{},metadata:a,...Array.isArray(i)&&i.length>0?{attachments:i}:{}}),ig=(e,t)=>{const r=[...e.map(e=>({...e,metadata:e.metadata||{source:"sse"}})),...t];return Array.from(new Map(r.map(e=>[e.id,e])).values()).sort((e,t)=>(e.timestamp instanceof Date?e.timestamp.getTime():new Date(e.timestamp).getTime())-(t.timestamp instanceof Date?t.timestamp.getTime():new Date(t.timestamp).getTime()))};function sg(){return`widget-session-${"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():`${Date.now()}-${Math.random().toString(36).slice(2)}`}`}function lg(){return"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(16)}-${Math.random().toString(16).slice(2,14)}`}const cg=e=>e&&e.length>0?e:[],ug=({welcomeMessage:e,fallbackMessage:t,quickQuestions:r=[],apiBaseUrl:n,wsBaseUrl:o,apiKey:a,organizationId:i,getAuthToken:s,autoOpen:l,openDelay:c,darkMode:u,enableVoiceInteraction:d=!1,provideCitations:g=!0,onboardingQuestions:p=[],onboardingEnabled:f=!1,collectionPrompt:h,inactivityTimeoutValue:m,inactivityTimeoutUnit:b,messageLimits:y,locale:v="en"})=>{const w=I.useMemo(()=>Ld(v),[v]),k=I.useMemo(()=>({cap:"number"==typeof y?.cap&&y.cap>0?y.cap:200,trimBatch:"number"==typeof y?.trimBatch&&y.trimBatch>0?y.trimBatch:50}),[y?.cap,y?.trimBatch]),[x,C]=I.useState(l),[S,M]=I.useState(!1),[T,P]=I.useState(u),[z,j]=I.useState(()=>{try{const e=Yd(i);if(void 0!==m&&e&&Gd(e,m,b))return[]}catch{}if(!e)return[];let t=e;try{t=rg(e,Zd(i))}catch{}return[{...ag({id:Date.now().toString(),role:"assistant",content:t}),isWelcome:!0}]}),[E,F]=I.useState(""),L=I.useRef(""),N=I.useCallback(e=>{const t="function"==typeof e?e(L.current):e;L.current=t,F(t)},[]),[R,A]=I.useState(!1),_=I.useRef(null),B=I.useRef(null),D=I.useRef(1),[O,U]=I.useState(null),[V,$]=I.useState(null),H=I.useRef(null);I.useEffect(()=>{H.current=V},[V]);const[q,W]=I.useState(null),K=I.useRef(null);I.useEffect(()=>{K.current=q},[q]);const[Q,Y]=I.useState(!1),[G,J]=I.useState(()=>{try{const e=Yd(i);if(e&&e.onboardingCompleted)return!0}catch{}return!1}),[X,Z]=I.useState(()=>{try{return Zd(i)||""}catch{return""}}),ee=I.useMemo(()=>rg(e,X),[e,X]),[te,re]=I.useState(null),[ne,oe]=I.useState({}),ae=I.useRef(!1),ie=I.useRef(!1),se=I.useRef(0),[le,ce]=I.useState(!1),[ue,de]=I.useState(!1),[ge,pe]=I.useState([]),[fe,he]=I.useState("idle"),[me,be]=I.useState(null),[ye,ve]=I.useState(!1),[we,ke]=I.useState(()=>{try{const e=Yd(i);if(void 0!==m&&e&&Gd(e,m,b))return e.conversationId}catch{}return sg()}),xe=I.useRef(()=>{}),Ce=I.useRef(null),Se=I.useRef(null),[Me,Te]=I.useState(!1),[Pe,ze]=I.useState(null),je=I.useRef(!1),Ee=I.useCallback(()=>{je.current=!0,Te(!0)},[]),Fe=I.useCallback(()=>{je.current=!1,Te(!1)},[]),Le=I.useRef(null),Ne=I.useRef(null),Re=I.useRef(null),Ae=I.useRef(!1),_e=I.useRef(null),Ie=I.useCallback(e=>{_e.current&&clearTimeout(_e.current),_e.current=null,Ae.current&&(Ae.current=!1,Ne.current?.port.postMessage({command:"resume"===e?"resume":"endOfAudio"}))},[]),Be=I.useRef(null),De=I.useRef(null),Oe=I.useRef(null),Ue=I.useRef(null),Ve=I.useRef(null),$e=I.useRef(null),He=I.useRef(null),qe=I.useRef(null),We=I.useRef(!1),Ke=I.useRef(!1);I.useRef(null);const Qe=I.useRef(null);I.useRef(null);const Ye=I.useRef(!1),Ge=I.useRef(null),Je=I.useRef(!1),Xe=I.useRef(!1),Ze=I.useRef(null),et=I.useRef(null),tt=I.useRef(null),rt=I.useRef(null),nt=I.useRef(null),ot=I.useCallback(e=>{if(!e)return;const t=new Date(e).getTime();if(!Number.isFinite(t))return;t>(nt.current?new Date(nt.current).getTime():-1/0)&&(nt.current=new Date(t).toISOString())},[]),at=I.useCallback(e=>{if(Array.isArray(e)&&0!==e.length){for(const t of e)ot(t?.createdAt);j(t=>{const r=new Set(t.map(e=>e.id)),n=e.filter(e=>e&&e.id&&!r.has(e.id)).map(e=>({...ag({id:e.id,role:e.role||"assistant",content:og(e.content,e.attachments),isProcessing:!1,metadata:{senderName:e.senderName}}),timestamp:e.createdAt?new Date(e.createdAt):new Date}));if(0===n.length)return t;const o=e=>{const t=e.timestamp instanceof Date?e.timestamp.getTime():new Date(e.timestamp).getTime();return Number.isFinite(t)?t:0},a=[...t,...n];return a.sort((e,t)=>o(e)-o(t)),a})}},[ot]),it=I.useCallback(async()=>{if(n&&we)try{const e={};if("function"==typeof s){const t=await s();t&&(e.Authorization=`Bearer ${t}`)}const t=nt.current,r=`${n.replace(/\/$/,"")}/api/v1/widget/history/${encodeURIComponent(we)}`+(t?`?since=${encodeURIComponent(t)}`:""),o=await fetch(r,{headers:e,credentials:"include"});if(o.status===td)return void xe.current(null);if(!o.ok)return;const a=await o.json(),i=Array.isArray(a?.messages)?a.messages:[];at(i.filter(_d)),a?.csatRequest&&ze(a.csatRequest)}catch{}},[n,we,s,at]),st=I.useCallback(async e=>{if(Se.current)return void(e&&e());if(!n||!we)return;let t=`${n.replace(/\/$/,"")}/api/v1/widget/events/${encodeURIComponent(we)}`;if("function"==typeof s)try{const e=await s();e&&(t+=`${t.includes("?")?"&":"?"}token=${encodeURIComponent(e)}`)}catch{}if(Se.current)return void(e&&e());const r=new EventSource(t);r.onmessage=e=>{try{const t=JSON.parse(e.data);if("csat_request"===t.type&&t.csat)return void ze(t.csat);if("conversation_erased"===t.type)return r.close(),Se.current===r&&(Se.current=null),void xe.current(null);if("message_created"===t.type&&t.message){ot(t.message.createdAt);const e=function(e){return"ai"===e?.responder||"human"===e?.responder?e.responder:null}(t.message);"ai"===e?Fe():"human"===e&&Ee(),j(e=>e.some(e=>e.id===t.message.id)?e:[...e,ag({id:t.message.id,role:t.message.role||"assistant",content:og(t.message.content,t.message.attachments),isProcessing:!1,metadata:{senderName:t.message.senderName}})])}}catch{}},r.onopen=()=>{it(),e&&e()},r.onerror=()=>{},Se.current=r},[n,we,s,it,Fe,Ee]);I.useEffect(()=>()=>{Se.current&&(Se.current.close(),Se.current=null)},[]);const lt=I.useMemo(()=>{if(!i)return null;const e=((e,t)=>{if(t)return t.replace(/\/$/,"");if(!e)return"wss://dev.eshal.ai/voice/ws";try{const t=new URL(e);return t.protocol=t.protocol.replace(/^http/,"ws"),t.pathname="/voice/ws",t.toString().replace(/\/$/,"")}catch(e){return"wss://dev.eshal.ai/voice/ws"}})(n,o);return`${e}/${i}/${we}`},[n,o,i,we]),ct=I.useCallback(()=>{const e=`msg-${D.current}`;return D.current+=1,e},[]);I.useEffect(()=>{if(l&&c>0){const e=setTimeout(()=>C(!0),c);return()=>clearTimeout(e)}},[l,c]),I.useEffect(()=>{let e=!1;return(async()=>{try{const{default:t}=await Promise.resolve().then(function(){return Lh}),r=new t({cache:!0,geoFromBrowser:!1,preferredProvider:"ipwho.is",onError:()=>{}}),n=await r.init();if(e)return;if(n?.fingerprintId&&(tt.current=n.fingerprintId),n?.geo||n?.ip){const e=n.geo||{};rt.current={ip:n.ip||e.ip||null,country:e.country||null,countryCode:e.countryCode||null,region:e.region||null,city:e.city||null,timezone:e.timezone||null}}}catch{}})(),()=>{e=!0}},[]),I.useEffect(()=>{P(u)},[u]);const ut=I.useRef(!1),dt=I.useRef(!1),gt=I.useRef(!1),pt=I.useRef({value:null,unit:null}),[ft,ht]=I.useState(!1);I.useEffect(()=>{if(!i||!we||void 0===m)return;const t=Yd(i);if(t&&Gd(t,m,b)){if(we!==t.conversationId)return void ke(t.conversationId);if(!ut.current){ut.current=!0;const t=((e,t)=>{if(!e||!t)return[];try{const r=localStorage.getItem(`${Hd}_${e}_${t}`);if(!r)return[];const n=JSON.parse(r);return Array.isArray(n)?n.map(e=>({...e,timestamp:e.timestamp?new Date(e.timestamp):new Date})):[]}catch{return[]}})(i,we);if(t.length>0){if(dt.current=!0,e){const e=t[0]?.timestamp,r=e instanceof Date?e.getTime():e?new Date(e).getTime():Date.now(),n={...ag({id:"welcome-restored",role:"assistant",content:ee}),isWelcome:!0,timestamp:new Date(r-1)};j([n,...t])}else j(t);const r=t.some(e=>"assistant"===e.role&&Array.isArray(e.prompts)&&e.prompts.length>0);if(!r){const e=(e=>{try{const t=localStorage.getItem(`${$d}_prompts_${e}`);return t&&JSON.parse(t)||[]}catch{return[]}})(i);e.length>0&&j(t=>{const r=[...t];for(let t=r.length-1;t>=0;t-=1)if("assistant"===r[t].role){r[t]={...r[t],prompts:e};break}return r})}}}}else if(ut.current||(ut.current=!0),t&&we===t.conversationId){const e=sg();Kd(i,we),ke(e)}else t?.conversationId&&t.conversationId!==we&&Kd(i,t.conversationId),t&&t.conversationId===we||Jd(i,we,{settingsSnapshot:JSON.stringify({value:m,unit:b?.toUpperCase()})})},[i,we,n,m,b]);const mt=I.useRef(null);I.useEffect(()=>{if(!n||!i||!we)return;if(mt.current===we)return;mt.current=we;let e=!1;return(async()=>{try{const t={};if("function"==typeof s){const e=await s();e&&(t.Authorization=`Bearer ${e}`)}const r=await fetch(`${n.replace(/\/$/,"")}/api/v1/widget/history/${encodeURIComponent(we)}`,{headers:t,credentials:"include"});if(e)return;if(r.status===td)return void xe.current(null);if(!r.ok)return;const o=await r.json(),a=(Array.isArray(o?.messages)?o.messages:[]).filter(_d);!e&&o?.csatRequest&&ze(o.csatRequest),e||at(a),e||"human"!==o?.responder||(Ee(),st())}catch{}})(),()=>{e=!0}},[n,i,we,s,st,Ee,at]),I.useEffect(()=>{if(i&&z&&0!==z.length)for(let e=z.length-1;e>=0;e-=1){const t=z[e];if("assistant"===t?.role&&Array.isArray(t.prompts)&&t.prompts.length>0)return void eg(i,t.prompts)}},[z,i]),I.useEffect(()=>{le||R||z.length<=k.cap||j(e=>qd(e,k.cap,k.trimBatch))},[z.length,le,R,k.cap,k.trimBatch]),I.useEffect(()=>{i&&we&&(le||R||Wd(i,we,ig(z,ge),k))},[z,ge,i,we,le,R,k]),I.useEffect(()=>{if(!f||G)return;cg(p).length>0&&Y(!0)},[f,G,p]),I.useEffect(()=>{e&&!dt.current&&j(e=>{if(!e.length)return[{...ag({id:Date.now().toString(),role:"assistant",content:ee}),isWelcome:!0}];const[t,...r]=e;return t.isWelcome?[{...t,content:ee},...r]:e})},[e,ee]),I.useCallback(e=>{j(t=>t.map(t=>t.id===e.id?{...t,...e.update(t)}:t))},[]);const bt=I.useCallback((e,t={})=>{if(!e)return;const r=t.replaceMarker||null;j(t=>{const n=r?(t||[]).filter(e=>e?.metadata?.synthesizedKind!==r):t||[];return[...n,ag({id:ct(),role:"assistant",content:e,metadata:r?{synthesizedKind:r}:void 0})]})},[ct]),yt=I.useCallback(()=>{try{_.current&&_.current.abort()}catch{}},[]),vt=I.useCallback(async(e,r,o)=>{const a=String(e??"").trim(),l=Array.isArray(o?.attachments)?o.attachments:[],c=o?.userMessageId||lg(),u=o?.assistantMessageId||lg();if(!a&&0===l.length)return{success:!1,error:"Message cannot be empty"};if(ie.current)return{success:!1,error:"A message is already being sent"};ie.current=!0;const d=se.current+=1,p=()=>{se.current===d&&(A(!1),ie.current=!1)};if("Connect with a human representative"===a){const e=async()=>{if(n&&we){const e={"Content-Type":"application/json"};if("function"==typeof s){const t=await s();t&&(e.Authorization=`Bearer ${t}`)}fetch(`${n.replace(/\/$/,"")}/api/v1/widget/handoff/${encodeURIComponent(we)}`,{method:"POST",headers:e,credentials:"include",body:JSON.stringify({reason:"User clicked handoff button"})}).then(e=>{e.status===td&&xe.current(null)}).catch(()=>{})}};Ee(),st(e)}if(r&&!["inquiry","complaint","technical"].includes((r||"").toLowerCase())||(K.current=a,W(a)),!n)return ie.current=!1,j(e=>[...e||[],ag({id:ct(),role:"assistant",content:w("connectionError"),isProcessing:!1,isError:!0})]),{success:!1,error:"API base URL is required"};const f=["inquiry","complaint","technical","userName","email","phone","fullname","mobileno"];let h="inquiry";if(r){const e=r.toLowerCase();"fullname"===e||"name"===e?h="userName":"email"===e?h="email":"phone"===e||"mobileno"===e?h="phone":f.includes(e)&&(h=e)}let m=null;const b=(e,t)=>{null!=e&&j(r=>(r||[]).map(r=>r.id===e?{...r,status:t}:r))};if("inquiry"===h||"complaint"===h||"technical"===h){m=ct();const e={...ag({id:m,role:"user",content:a,...l.length?{attachments:l}:{}}),userMessageId:c,assistantMessageId:u};j(t=>{const r=(t||[]).map(e=>"assistant"===e.role&&e.prompts?.length?{...e,prompts:void 0}:e);return o&&o.skipUserAppend?r:[...r,e]}),N(""),je.current||A(!0)}else N("");try{const e={message:a,type:h,conversationId:we,userMessageId:c,assistantMessageId:u,enable_citation:g??!0,channel:"WIDGET",...tt.current?{fingerprintId:tt.current}:{},...rt.current?{visitor:rt.current}:{},...O&&(O.category||O.tags&&O.tags.length)?{filter:O}:{},...H.current?{routing:H.current}:{},...l.length?{attachments:l}:{},...o?.toolConfirmation?{tool_confirmation:o.toolConfirmation}:{},messageHistory:z.filter(e=>!e.isProcessing&&e.content&&e.content.trim()&&!["userName","email","phone"].includes(e.type)).map(e=>{let t;return t=e.timestamp instanceof Date?e.timestamp.toISOString():"string"==typeof e.timestamp?e.timestamp:e.timestamp?new Date(e.timestamp).toISOString():(new Date).toISOString(),{id:e.id,role:e.role,content:e.content,timestamp:t,isProcessing:!1}})},t=[500,1500];if("userName"===h||"email"===h||"phone"===h){const t=(await nd(e,n,s)).getReader(),r=new TextDecoder;for(;;){const{done:e,value:n}=await t.read();if(e)break;r.decode(n)}return{success:!0}}if(je.current&&("inquiry"===h||"complaint"===h||"technical"===h)){try{const t=(await nd(e,n,s)).getReader();for(;;){const{done:e}=await t.read();if(e)break}}catch(e){if(e instanceof rd)throw e;return b(m,"failed"),{success:!1,error:e instanceof Error?e.message:"Failed to send message"}}return b(m,"sent"),Xd(i),{success:!0}}if("inquiry"===h||"complaint"===h||"technical"===h){let r;for(let o=0;o<=t.length;o+=1)try{_.current=new AbortController;const t=await nd(e,n,s,_.current.signal);return await gd(t,j,p,()=>{Ee(),st()}),b(m,"sent"),Xd(i),{success:!0}}catch(e){if(r=e,e&&"AbortError"===e.name)return j(e=>(e||[]).filter(e=>!e.isProcessing)),b(m,"sent"),{success:!0,stopped:!0};if(e instanceof ed&&o<t.length){j(e=>(e||[]).filter(e=>!e.isProcessing));const e=t[o];await new Promise(t=>setTimeout(t,e));continue}throw e}throw r}return await nd(e,n,s),Xd(i),{success:!0}}catch(e){if(e instanceof rd){const e="inquiry"===h||"complaint"===h||"technical"===h;return xe.current(e?{text:a,attachments:l,sessionId:we}:null),{success:!1,error:"conversation_erased",erased:!0}}return"inquiry"!==h&&"complaint"!==h&&"technical"!==h||(A(!1),b(m,"failed"),j(e=>[...(e||[]).filter(e=>!e.isProcessing),ag({id:ct(),role:"assistant",content:t?.trim()||w("connectionError"),isProcessing:!1,isError:!0})])),{success:!1,error:e instanceof Error?e.message:"Failed to send message"}}finally{p()}},[n,a,ct,s,z,we,V,O,g]);I.useEffect(()=>{const e=Ce.current;e&&e.sessionId!==we&&(Ce.current=null,vt(e.text,void 0,{attachments:e.attachments}))},[we,vt]);const wt=I.useCallback(e=>e&&"failed"===e.status?(j(t=>(t||[]).filter(t=>t.id!==e.id)),vt(e.content,void 0,{attachments:e.attachments,userMessageId:e.userMessageId,assistantMessageId:e.assistantMessageId})):Promise.resolve({success:!1,error:"Nothing to retry"}),[vt]),kt=I.useCallback(async e=>{const t=cg(p);if(0===t.length)return;const r=function(e,t){if(!Array.isArray(e)||!t)return"";for(let r=0;r<e.length;r+=1){const n=e[r],o=n?n.fieldType:void 0,a=tg(o).toLowerCase();if(!ng.has(a))continue;const i=t[null==o?"":o];if("string"!=typeof i)continue;const s=i.trim();if(s)return s}return""}(t,e);Y(!1),J(!0),((e,t)=>{try{const r=Yd(e);if(!r)return;r.onboardingCompleted=!0;const n=(t??"").trim();n&&(r.onboardingName=n),localStorage.setItem(`${$d}_${e}`,JSON.stringify(r))}catch{}})(i,r),r&&Z(r),oe(t=>({...t,...e})),te&&!ae.current&&(ae.current=!0,N(te),re(null));const o=[...t].sort((e,t)=>Vd(e.fieldType)-Vd(t.fieldType)),a={};for(const t of o){const r=t.fieldType||"question",n=(e[r]??"").trim();n&&(a[r]=n)}if(Object.keys(a).length>0&&n&&we)try{await(async(e,{conversationId:t,organizationId:r},n,o)=>{const a={"Content-Type":"application/json"};if("function"==typeof o){const e=await o();e&&(a.Authorization=`Bearer ${e}`)}const i=await fetch(`${n.replace(/\/$/,"")}/api/v1/support/onboarding`,{method:"POST",headers:a,credentials:"include",body:JSON.stringify({conversationId:t,organizationId:r,answers:e})});if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);return i.json()})(a,{conversationId:we,organizationId:i},n,s)}catch(e){}},[p,te,i,n,we,s]),xt=I.useRef(null);I.useEffect(()=>{if(R||ie.current||!xt.current)return;const{text:e,attachments:t}=xt.current;xt.current=null;const r=Array.isArray(t)&&t.length>0;vt(e,void 0,r?{attachments:t}:void 0)},[R,vt]);const Ct=I.useCallback(async(e,t)=>{const r=String(e??L.current).trim(),n=Array.isArray(t)&&t.length>0;if(r||n)return ie.current?(xt.current={text:r,attachments:n?t:void 0},void N("")):void await vt(r,void 0,n?{attachments:t}:void 0)},[vt,N]),St=I.useCallback(async(e,t)=>{await Ct(e,t)},[Ct]),Mt=I.useCallback(async e=>{const t=e?.trim();t&&await vt(t)},[vt]),Tt=I.useCallback(async(e,t,r)=>{if(j(t=>t.filter(t=>t.decisionData?.decisionId!==e)),"routing-clarification"===e){const e=String(r||"").toLowerCase(),n="database"===t||"knowledge"===t?t:"database"===e||"knowledge"===e?e:null;if(n){H.current=n,$(n);const e=K.current;K.current=null,W(null),e&&e.trim()&&setTimeout(()=>{vt(e,"inquiry",{skipUserAppend:!0}).catch(e=>{})},0)}return}if("connect_agent"===r){const e=ag({id:ct(),role:"assistant",content:"Great! I'm setting up a connection with a live customer service agent. Please hold on for a moment while I transfer you."});j(t=>[...t,e])}else if("decline"===r){const e=ag({id:ct(),role:"assistant",content:"I understand. I apologize that I don't have specific information about your query in my knowledge base. Is there anything else I can help you with?"});j(t=>[...t,e])}},[ct,vt,q]);I.useCallback(()=>{He.current&&(pe(e=>e.map(e=>e.id===He.current?{...e,isProcessing:!1}:e)),He.current=null)},[]);const Pt=I.useCallback((e,t=!1)=>{if(Je.current=!0,!e||"string"==typeof e&&!e.trim())return void(t&&He.current&&(pe(e=>e.map(e=>e.id===He.current?{...e,isProcessing:!1}:e)),He.current=null));const r=Id(e);pe(e=>{const n=e.length;let o=[...e];if(He.current){const e=o.some(e=>e.id===He.current);if(e)o=o.map(e=>{if(e.id!==He.current)return e;const n=Id(`${e.content||""}${r}`);return{...e,content:n,isProcessing:!t,metadata:{...e.metadata,transcriptionType:"input"}}});else{const e=`bidi-input-${Date.now()}`;He.current=e;const n=ag({id:e,role:"user",content:r,isProcessing:!t,metadata:{source:"bidi",transcriptionType:"input"}});o=[...o,n]}}else{const n=`bidi-input-${Date.now()}`,a=e.filter(e=>"assistant"===e.role&&"bidi"===e.metadata?.source).sort((e,t)=>{const r=e.timestamp instanceof Date?e.timestamp.getTime():new Date(e.timestamp).getTime();return(t.timestamp instanceof Date?t.timestamp.getTime():new Date(t.timestamp).getTime())-r})[0];a&&(a.timestamp instanceof Date?a.timestamp.getTime():new Date(a.timestamp).getTime());const i=ag({id:n,role:"user",content:r,isProcessing:!t,metadata:{source:"bidi",transcriptionType:"input"}}),s=o.some(e=>e.id===n);s?(He.current=n,o=o.map(e=>e.id===n?{...e,content:`${e.content||""}${r}`,isProcessing:!t}:e)):(o=[...o,i],He.current=n)}return o.length<n?e:o}),t&&(He.current=null,A(!0))},[]),zt=I.useCallback((e,t=!1)=>{if(A(!1),!e||"string"==typeof e&&!e.trim())return void(t&&qe.current&&(pe(e=>e.map(e=>e.id!==qe.current?e:{...e,isProcessing:!1})),qe.current=null,Qe.current=null));const r=`${qe.current||"new"}-${e.substring(0,100)}-${t}`;if(Ye.current&&Ge.current===r)return;Ye.current=!0,Ge.current=r;const n=He.current;if(pe(r=>{const o=r.length;let a=[...r];if(n){const e=a.some(e=>e.id===n);e&&(a=a.map(e=>e.id===n?{...e,isProcessing:!1}:e))}if(qe.current){const r=a.some(e=>e.id===qe.current);if(r)a=a.map(r=>{if(r.id!==qe.current)return r;const n=`${r.content||""}${e}`;return{...r,content:n,isProcessing:!t,...Array.isArray(et.current)&&et.current.length>0?{sources:et.current}:{}}}),Array.isArray(et.current)&&et.current.length>0&&(et.current=null);else{const r=`bidi-assistant-${Date.now()}`;qe.current=r;const n=ag({id:r,role:"assistant",content:e,isProcessing:!t,metadata:{source:"bidi"}});Array.isArray(et.current)&&et.current.length>0&&(n.sources=et.current,et.current=null),a=[...a,n]}}else{const r=`bidi-assistant-${Date.now()}`,n=ag({id:r,role:"assistant",content:e,isProcessing:!t,metadata:{source:"bidi"}});Array.isArray(et.current)&&et.current.length>0&&(n.sources=et.current,et.current=null);const o=a.some(e=>e.id===r);o?(a=a.map(n=>n.id===r?{...n,content:`${n.content||""}${e}`,isProcessing:!t,...Array.isArray(et.current)&&et.current.length>0?{sources:et.current}:{}}:n),Array.isArray(et.current)&&et.current.length>0&&(et.current=null),qe.current=r):(a=[...a,n],qe.current=r)}return a.length<o?r:a}),n&&(He.current=null),t)qe.current=null,Qe.current=null;else{const e=updateKey;Promise.resolve().then(()=>{Qe.current===e&&(Qe.current=null)})}},[]),jt=I.useCallback((e,t=!1,r=!1)=>{if(!e||!Array.isArray(e))return;let n="";e.forEach((e,t)=>{e.inlineData?.data&&e.inlineData.mimeType?.startsWith("audio/pcm")&&Ne.current&&Ne.current.port.postMessage((e=>{if("undefined"==typeof window)return new ArrayBuffer(0);let t=e.replace(/-/g,"+").replace(/_/g,"/");for(;t.length%4!=0;)t+="=";const r=window.atob(t),n=r.length,o=new Uint8Array(n);for(let e=0;e<n;e+=1)o[e]=r.charCodeAt(e);return o.buffer})(e.inlineData.data)),!r&&e.text&&(n+=e.text)}),n&&zt(n,t)},[zt]),Et=I.useCallback(()=>{A(!1),pe(e=>e.map(e=>"bidi"===e.metadata?.source&&e.isProcessing?{...e,isProcessing:!1}:e)),qe.current=null,He.current=null,Xe.current=!1,et.current=null},[]),Ft=I.useCallback(()=>{A(!1),Ne.current&&Ne.current.port.postMessage({command:"endOfAudio"}),qe.current=null,He.current=null,et.current=null,pe(e=>e.map(e=>"bidi"===e.metadata?.source?{...e,isProcessing:!1,metadata:{...e.metadata,interrupted:!0}}:e))},[]),Lt=I.useCallback(()=>{de(!1),A(!1),Ke.current=!1,he("idle"),be(null),Je.current=!1,et.current=null,_e.current&&clearTimeout(_e.current),_e.current=null,Ae.current=!1,Ve.current&&(clearTimeout(Ve.current),Ve.current=null);const e=Le.current;if(Le.current=null,e&&e.readyState!==WebSocket.CLOSED)try{e.close()}catch{}Ne.current?.disconnect(),Re.current?.close(),Ne.current=null,Re.current=null,Be.current?.disconnect(),De.current?.close(),Be.current=null,De.current=null,vd(Oe.current),Oe.current=null,Ue.current?.reset(),Ue.current=null,We.current=!1},[]),Nt=I.useCallback(e=>{if(!e)return;e.error&&be("voiceUnavailable");const t=function(e){if(!e)return null;if(e.interrupted)return"discard";const t=e.inputTranscription;return t?String(t.text??"").trim()?"discard":t.finished?"resume":null:null}(e);t&&Ie(t);const r=e.conclusion_detected??e.conclusionDetected;if("boolean"==typeof r&&r&&(Ze.current?.(),ve(!0)),"boolean"==typeof r&&r)return Lt(),void pe(e=>{const t=[...e];for(let e=t.length-1;e>=0;e--)if("assistant"===t[e].role){t[e]={...t[e],conclusionDetected:!0};break}return t});if(e.interrupted)return void Ft();if(e.inputTranscription){const t=e.inputTranscription.text||"",r=Boolean(e.inputTranscription.finished);(t||r)&&(Xd(i),Pt(t,r))}const n=e.sources??e.Sources;if(Array.isArray(n)&&n.length>0){const e=n.map(e=>({source_type:e.source_type??e.sourceType??"file",source_id:e.source_id??e.sourceid??e.sourceId,source_name:e.source_name??e.sourceName??"",url:e.url,citation_indices:e.citation_indices??e.citationIndices})).filter(e=>e.source_id||e.url||"database"===e.source_type);if(0===e.length)return;pe(t=>{const r=[...t];let n=!1;for(let t=r.length-1;t>=0;t--)if("assistant"===r[t].role){r[t]={...r[t],sources:e},n=!0;break}return n||(et.current=e),r})}const o=e.finalTranscript??e.finaltranscript;if(o&&"string"==typeof o.text){const e=o.text;return void(e&&pe(t=>{const r=[...t];for(let t=r.length-1;t>=0;t--)if("assistant"===r[t].role){r[t]={...r[t],content:e,isProcessing:!1};break}return r}))}if(Je.current||!e.outputTranscription?.text&&!e.content?.parts){if(e.outputTranscription?.text&&(Xe.current=!0,zt(e.outputTranscription.text,Boolean(e.outputTranscription.finished))),e.content?.parts){const t=e.content?.finished||e.finished||!1;jt(e.content.parts,t,Xe.current)}if(e.prompts&&Array.isArray(e.prompts)&&e.prompts.length>0){pe(t=>{const r=[...t];for(let t=r.length-1;t>=0;t--)if("assistant"===r[t].role){r[t]={...r[t],prompts:e.prompts};break}return r});try{eg(i,e.prompts)}catch(e){}}e.turnComplete?Et():e.interrupted||e.inputTranscription||e.outputTranscription||e.content||e.prompts}else e.turnComplete&&Et()},[zt,Pt,jt,Ft,Et,Lt,Ie]),Rt=I.useCallback(e=>{if(!Ke.current)return;const t=Ue.current;if(t)return void t.process(e);const r=Le.current;r&&r.readyState===WebSocket.OPEN&&r.send(e)},[]),At=I.useCallback(async()=>{if(!We.current&&"undefined"!=typeof window)try{const[e,t]=await async function(){if("undefined"==typeof window)throw new Error("Audio player can only be initialized in the browser");const e=new AudioContext({sampleRate:24e3}),t=new Blob(["\n class PCMPlayerProcessor extends AudioWorkletProcessor {\n constructor() {\n super();\n this.bufferSize = 24000 * 180;\n this.buffer = new Float32Array(this.bufferSize);\n this.writeIndex = 0;\n this.readIndex = 0;\n // Paused while the caller may be speaking over the reply (lib/audio/bargeIn.js).\n this.paused = false;\n this.port.onmessage = (event) => {\n const command = event.data?.command;\n if (command === 'endOfAudio') {\n this.readIndex = this.writeIndex;\n this.paused = false;\n return;\n }\n if (command === 'pause') {\n this.paused = true;\n return;\n }\n if (command === 'resume') {\n this.paused = false;\n return;\n }\n const int16Samples = new Int16Array(event.data);\n this.enqueue(int16Samples);\n };\n }\n\n enqueue(samples) {\n for (let i = 0; i < samples.length; i += 1) {\n const floatVal = samples[i] / 32768;\n this.buffer[this.writeIndex] = floatVal;\n this.writeIndex = (this.writeIndex + 1) % this.bufferSize;\n if (this.writeIndex === this.readIndex) {\n this.readIndex = (this.readIndex + 1) % this.bufferSize;\n }\n }\n }\n\n process(inputs, outputs) {\n const output = outputs[0];\n const framesPerBlock = output[0].length;\n for (let frame = 0; frame < framesPerBlock; frame += 1) {\n // Silence when paused or with nothing buffered.\n const playing = !this.paused && this.readIndex !== this.writeIndex;\n const sample = playing ? this.buffer[this.readIndex] : 0;\n output[0][frame] = sample;\n if (output.length > 1) {\n output[1][frame] = sample;\n }\n if (playing) {\n this.readIndex = (this.readIndex + 1) % this.bufferSize;\n }\n }\n return true;\n }\n }\n\n registerProcessor('pcm-player-processor', PCMPlayerProcessor);\n "],{type:"application/javascript"}),r=URL.createObjectURL(t);await e.audioWorklet.addModule(r);const n=new AudioWorkletNode(e,"pcm-player-processor");return n.connect(e.destination),URL.revokeObjectURL(r),[n,e]}();Ne.current=e,Re.current=t,await t.resume();const r=e=>{const t=Le.current;t&&t.readyState===WebSocket.OPEN&&t.send(e)};Ue.current=yd({sampleRate:16e3},{onSpeechStart:()=>{Ne.current?.port.postMessage({command:"pause"}),Ae.current=!0,_e.current&&clearTimeout(_e.current),_e.current=null;const e=Le.current;e&&e.readyState===WebSocket.OPEN&&e.send(JSON.stringify({type:"interrupt"}))},onVoiceFrame:r,onSpeechEnd:()=>{const e=Le.current;e&&e.readyState===WebSocket.OPEN&&e.send(JSON.stringify({type:"audio_end"})),Ae.current&&(_e.current&&clearTimeout(_e.current),_e.current=setTimeout(()=>Ie("resume"),4e3))}});const[n,o,a]=await wd(Rt);Be.current=n,De.current=o,Oe.current=a,await o.resume(),We.current=!0}catch(e){throw e}},[Rt,Ie]),_t=I.useCallback(async()=>{if("undefined"==typeof window||!lt)return;if(Le.current&&Le.current.readyState===WebSocket.OPEN)return;let e;he("connecting"),be(null);try{const t={"Content-Type":"application/json"};if("function"==typeof s){const e=await s();e&&(t.Authorization=`Bearer ${e}`)}const r=await fetch(`${n.replace(/\/$/,"")}/api/v1/widget/voice-ticket`,{method:"POST",headers:t,credentials:"include",body:JSON.stringify({sessionId:we})});if(!r.ok)throw new Error(`voice-ticket ${r.status}`);if(e=(await r.json())?.ticket,!e)throw new Error("voice-ticket returned no ticket")}catch(e){return he("error"),void be(Ad(e))}try{const t=new WebSocket(`${lt}?ticket=${encodeURIComponent(e)}`);Le.current=t,t.onopen=()=>{he("connected")},t.onmessage=e=>{try{"string"==typeof e.data&&e.data.substring(0,200);const t=JSON.parse(e.data);t&&"AI_CREDITS_EXHAUSTED"===t.code&&"string"==typeof t.fallbackMessage&&t.fallbackMessage.trim()&&($e.current=t.fallbackMessage.trim()),Nt(t)}catch(e){}},t.onerror=()=>{he("error"),be("voiceUnavailable"),A(!1)},t.onclose=e=>{if(Le.current===t){if(Le.current=null,he("idle"),A(!1),e&&1008===e.code)return Ke.current=!1,de(!1),he("error"),be("voiceUnavailable"),void(()=>{const e=$e.current;$e.current=null,e&&j(t=>{const r=[...t].reverse().find(e=>"assistant"===e.role);return r&&"string"==typeof r.content&&r.content.trim()===e?t:[...t,ag({id:ct(),role:"assistant",content:e})]})})();Ke.current&&(Ve.current&&clearTimeout(Ve.current),Ve.current=setTimeout(()=>{Ve.current=null,_t()},5e3))}}}catch(e){he("error"),be(Ad(e))}},[Nt,lt,n,we,s]),It=I.useCallback(async()=>{if(d&&i){be(null),he(e=>"connected"===e?e:"connecting"),de(!0),Ke.current=!0,ve(!1),Je.current=!1,pe(t=>{if(t.length>0||z.length>0)return t;if(!e||""===e.trim())return[];return[ag({id:`bidi-welcome-${Date.now()}`,role:"assistant",content:ee,metadata:{source:"bidi"}})]}),_t();try{await At()}catch(e){be(Ad(e)),he("error")}}},[d,i,e,ee,_t,At,z]),Bt=I.useCallback(()=>{ue?Lt():"connecting"!==fe&&It()},[ue,It,Lt,fe]),Dt=I.useCallback(e=>{const t=e.trim();if(!t)return;Je.current=!0;const r=Le.current;if(!r||r.readyState!==WebSocket.OPEN)return void be("voiceUnavailable");r.send(JSON.stringify({type:"text",text:t})),Xd(i),A(!0);const n=ag({id:`bidi-user-${Date.now()}`,role:"user",content:t,metadata:{source:"bidi"}});pe(e=>[...e,n]),N("")},[]);I.useEffect(()=>{Ke.current=ue},[ue]),I.useEffect(()=>()=>{Ke.current=!1,Ve.current&&(clearTimeout(Ve.current),Ve.current=null);const e=Le.current;if(Le.current=null,e&&e.readyState!==WebSocket.CLOSED)try{e.close()}catch{}Ue.current?.reset(),Ue.current=null,Ne.current?.disconnect(),Re.current?.close(),Be.current?.disconnect(),De.current?.close(),vd(Oe.current),Oe.current=null,We.current=!1},[]);const Ot=I.useCallback(()=>{(e=>{try{const t=Yd(e);localStorage.removeItem(`${$d}_${e}`),t?.conversationId&&Kd(e,t.conversationId)}catch{}})(i),eg(i,[]),U(null),$(null),W(null),H.current=null,K.current=null,j([]),pe([]),ze(null),Kd(i,we),Y(!1),J(!1),oe({}),Z(""),re(null),ae.current=!1,Je.current=!1,ut.current=!1,dt.current=!1,je.current=!1,Te(!1),mt.current=null,nt.current=null,Se.current&&(Se.current.close(),Se.current=null);const t=sg();if(Jd(i,t,{settingsSnapshot:JSON.stringify({value:m,unit:b?.toUpperCase()})}),ke(t),e&&""!==e.trim()&&j([{...ag({id:Date.now().toString(),role:"assistant",content:e}),isWelcome:!0}]),f){cg(p).length>0&&Y(!0)}},[i,we,e,f,p,m,b]),Ut=I.useRef(Ot);I.useEffect(()=>{Ut.current=Ot},[Ot]);const Vt=I.useRef(null);I.useEffect(()=>{xe.current=e=>{if(Vt.current===we)return;Vt.current=we;const t=f&&cg(p).length>0;Ce.current=e&&!t?e:null,Ut.current()}},[we,f,p]),I.useEffect(()=>{gt.current=!1,pt.current={value:null,unit:null}},[i]),I.useEffect(()=>{if(!i||!m)return;const e=Qd(m,b);if(!e)return;const t=pt.current,r=gt.current&&(t.value!==m||t.unit!==b);if(gt.current=!0,pt.current={value:m,unit:b},r)return ht(!1),void Ut.current();let n=null;const o=()=>{const t=Yd(i);if(!t)return;if(!t.firstInteractionAt)return void(n=setTimeout(o,e));const r=new Date(t.lastActivity).getTime(),a=Date.now()-r,s=e-a;if(s<=0)return ht(!1),void Ut.current();const l=Math.max(1e4,Math.min(12e4,.1*e));ht(s<=l);n=setTimeout(o,s<=l?1e3:s-l)};return o(),()=>{n&&clearTimeout(n)}},[i,m,b,we]);const $t=I.useMemo(()=>r,[r]),Ht=I.useMemo(()=>ig(z,ge),[ge,z]);I.useEffect(()=>{},[ge,ue]);const qt=I.useCallback((e,t)=>{j(r=>r.map(r=>"assistant"===r.role&&r.content===e?{...r,feedback:t}:r))},[]);return{conversationId:we,isOpen:x,isMinimized:S,isDark:T,messages:Ht,inputValue:E,isLoading:R,isConversationLoading:le,widgetRef:B,quickQuestions:$t,isVoiceSessionActive:ue,voiceStatus:fe,voiceError:me,voiceConclusionForCsat:ye,onboardingQuestions:p,onboardingActive:Q,onboardingCompleted:G,handleOnboardingFormSubmit:kt,widgetFilter:O,setWidgetFilter:U,addAssistantMessage:bt,setInputValue:N,handleSend:St,stopGeneration:yt,handleQuickQuestion:Mt,sendMessage:vt,retryMessage:wt,toggleChat:()=>{C(e=>!e),M(!1)},toggleTheme:()=>{P(e=>!e)},toggleMinimize:()=>{M(e=>!e)},closeChat:()=>{C(!1)},handleDecision:Tt,handleVoiceToggle:Bt,sendBidiTextMessage:Dt,sessionExpiringSoon:ft,resetConversation:Ot,updateMessageFeedback:qt,csatRequest:Pe}},dg=(...e)=>e.filter((e,t,r)=>Boolean(e)&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),gg=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)};
21
21
  /**
22
22
  * @license lucide-react v0.575.0 - ISC
23
23
  *
@@ -36,4 +36,4 @@ var pg={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24
36
36
  *
37
37
  * This source code is licensed under the ISC license.
38
38
  * See the LICENSE file in the root directory of this source tree.
39
- */let Ug=null;function Vg(e){I.useEffect(()=>{if(!Ig||!e)return;const t=e.split(",")[0]?.trim();if(!t||Og.has(t))return;if((e=>{const t=e.trim().toLowerCase();return!t||!!Bg.has(t)||Dg.some(e=>t.includes(e))})(t))return void Og.add(t);let r=!0;return(async()=>{try{Ug||(Ug=Promise.resolve().then(function(){return Ah}));const e=await Ug,n=e&&"default"in e?e.default:e,o=(e=>e.trim().replace(/\s+/g,"+"))(t);n.load({google:{families:[`${o}:300,400,500,600,700`]},fontactive:e=>{r&&Og.add(e)},fontinactive:e=>{r&&Og.add(e)}})}catch(e){}})(),()=>{r=!1}},[e])}const $g="__eshalChatWidgetCitationContext",Hg="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:void 0,qg=Hg?Hg[$g]||(Hg[$g]=I.createContext(null)):I.createContext(null);function Wg(e,t){return"string"!=typeof e||""===e?"":/^https?:\/\//i.test(e)?e:t?`${String(t).replace(/\/$/,"")}${e.startsWith("/")?"":"/"}${e}`:e}function Kg(e){if(!/%[0-9a-f]{2}/i.test(e))return e;try{return decodeURIComponent(e)}catch{return e}}function Qg(e){if(!e)return null;const t=/(?:^|;)\s*filename\*\s*=\s*([^;]+)/i.exec(e);if(t){const e=/^\s*"?([^']*)'[^']*'([^"]*)"?\s*$/.exec(t[1]),r=e?function(e,t){try{return/^utf-8$/i.test(e)?decodeURIComponent(t):t.replace(/%([0-9a-f]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)))}catch{return null}}(e[1],e[2]):null;if(r)return r}const r=/(?:^|;)\s*filename\s*=\s*"((?:[^"\\]|\\.)*)"/i.exec(e);if(r)return Kg(r[1].replace(/\\(.)/g,"$1"))||null;const n=/(?:^|;)\s*filename\s*=\s*([^;]+)/i.exec(e);return n&&Kg(n[1].trim())||null}const Yg="chat-widget-markdown-chunk.min.js",Gg="undefined"!=typeof document?document.currentScript?.src:void 0;let Jg=null;function Xg(){return"undefined"!=typeof window&&window.__eshalChatWidgetChunks?.MarkdownRenderer?Promise.resolve({default:window.__eshalChatWidgetChunks.MarkdownRenderer}):Jg||(Jg=new Promise((e,t)=>{const r=document.createElement("script");r.src=function(){if(Gg)return new URL(Yg,Gg).toString();const e=Array.from(document.getElementsByTagName("script")).find(e=>/chat-widget(\.min)?\.js(\?.*)?$/.test(e.src));return e?new URL(Yg,e.src).toString():Yg}(),r.async=!0,r.onload=()=>{window.__eshalChatWidgetChunks?.MarkdownRenderer?e({default:window.__eshalChatWidgetChunks.MarkdownRenderer}):(Jg=null,t(new Error("[widget] markdown chunk loaded but did not register itself")))},r.onerror=()=>{Jg=null,t(new Error(`[widget] failed to load markdown chunk from ${r.src}`))},document.head.appendChild(r)}),Jg)}function Zg(){return Xg()}var ep={exports:{}},tp={},rp=I,np=Symbol.for("react.element"),op=Symbol.for("react.fragment"),ap=Object.prototype.hasOwnProperty,ip=rp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,sp={key:!0,ref:!0,__self:!0,__source:!0};function lp(e,t,r){var n,o={},a=null,i=null;for(n in void 0!==r&&(a=""+r),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(i=t.ref),t)ap.call(t,n)&&!sp.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:np,type:e,key:a,ref:i,props:o,_owner:ip.current}}tp.Fragment=op,tp.jsx=lp,tp.jsxs=lp,ep.exports=tp;var cp=ep.exports;const up=I.lazy(Zg);class dp extends I.Component{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(e){}render(){return this.state.failed?this.props.fallback:this.props.children}}const gp=/(```|`[^`]+`|(^|\n)\s{0,3}#{1,6}\s|(^|\n)\s*[-*+]\s|(^|\n)\s*\d+\.\s|(^|\n)\s*>\s|\[[^\]]*\]\([^)]*\)|\*\*|__|~~|(^|\n)\s*\||\[\d+\])/;const pp=({content:e,isDark:t,textColor:r,fontFamily:n,fontSize:o})=>cp.jsx("p",{className:"leading-relaxed [&:first-child]:!mt-0 whitespace-pre-wrap break-words",style:{color:r||(t?"#f3f4f6":"#1A1A1A"),fontFamily:n||"Inter",fontSize:o||"14px",margin:0,lineHeight:"1.6",padding:0,overflowWrap:"break-word"},children:e}),fp=({content:e,isStreaming:t,isDark:r=!1,isRtl:n=!1,textColor:o,fontFamily:a,fontSize:i,onButtonClick:s,provideCitations:l=!0})=>{const[c,u]=I.useState(""),[d,g]=I.useState(!1),p=I.useRef(e),f=I.useRef(0),h=I.useRef(null),m=I.useRef(0);I.useEffect(()=>{if(e!==p.current){if(p.current=e,f.current>=e.length)return u(e),void g(!1);e.length<c.length&&(f.current=0,u(""))}if(!t)return u(e),g(!1),void(h.current&&cancelAnimationFrame(h.current));g(!0);const r=t=>{if(t-m.current<16)h.current=requestAnimationFrame(r);else if(m.current=t,f.current<e.length){const t=Math.max(2,Math.floor(4*Math.random())),n=Math.min(f.current+t,e.length);u(e.slice(0,n)),f.current=n,h.current=requestAnimationFrame(r)}else g(!1)};return h.current=requestAnimationFrame(r),()=>{h.current&&cancelAnimationFrame(h.current)}},[e,t]);const b="string"==typeof(y=c)&&0!==y.length&&gp.test(y);var y;return cp.jsxs("div",{className:"relative",dir:"auto",style:{textAlign:n?"right":"left",color:o||(r?"#f3f4f6":"#1A1A1A"),fontFamily:a||"Inter",fontSize:i||"14px",margin:0,padding:0},children:[b?cp.jsx(dp,{fallback:cp.jsx(pp,{content:c,isDark:r,textColor:o,fontFamily:a,fontSize:i}),children:cp.jsx(I.Suspense,{fallback:cp.jsx(pp,{content:c,isDark:r,textColor:o,fontFamily:a,fontSize:i}),children:cp.jsx(up,{content:c,isStreaming:t,isDark:r,isRtl:n,textColor:o,fontFamily:a,fontSize:i,onButtonClick:s,provideCitations:l})})}):cp.jsx(pp,{content:c,isDark:r,textColor:o,fontFamily:a,fontSize:i}),d&&cp.jsx("span",{className:"inline-block w-1.5 h-4 bg-blue-500 ms-0.5 animate-pulse align-text-bottom",style:{animationDuration:"0.8s"}})]})},hp=({isDark:e,t:t})=>cp.jsxs("div",{className:"flex gap-1.5",role:"status","aria-label":t("agentIsTyping"),children:[cp.jsx("div",{className:`w-2 h-2 rounded-full ${e?"bg-gray-500":"bg-gray-400"} animate-bounce`,style:{animationDelay:"0ms"},"aria-hidden":"true"}),cp.jsx("div",{className:`w-2 h-2 rounded-full ${e?"bg-gray-500":"bg-gray-400"} animate-bounce`,style:{animationDelay:"150ms"},"aria-hidden":"true"}),cp.jsx("div",{className:`w-2 h-2 rounded-full ${e?"bg-gray-500":"bg-gray-400"} animate-bounce`,style:{animationDelay:"300ms"},"aria-hidden":"true"})]}),mp=({question:e,options:t,onDecision:r,disabled:n,isDark:o=!1})=>cp.jsxs("div",{className:"mt-3 p-3 rounded-lg border "+(o?"bg-blue-900/30 border-blue-700/50":"bg-blue-50 border-blue-200"),children:[cp.jsx("p",{className:"text-sm font-medium mb-2 "+(o?"text-gray-100":"text-gray-900"),children:e}),cp.jsx("div",{className:"space-y-2",children:t.map(e=>cp.jsx("button",{onClick:()=>r(e.id,e.label),disabled:n,className:"w-full text-left px-3 py-2 text-sm rounded transition-all "+(o?"bg-gray-800 border border-gray-700 hover:bg-blue-900/50 hover:border-blue-600 disabled:opacity-50 disabled:cursor-not-allowed":"bg-white border border-gray-300 hover:bg-blue-50 hover:border-blue-400 disabled:opacity-50 disabled:cursor-not-allowed"),children:e.label},e.id))})]});function bp({content:e,isDark:t,t:r}){const n=r?r("copyMessage"):"Copy message",o=r?r("copied"):"Copied",[a,i]=I.useState(!1),s=I.useCallback(()=>{e&&(navigator.clipboard?.writeText(e).catch(()=>{}),i(!0),setTimeout(()=>i(!1),1500))},[e]);return cp.jsx("button",{type:"button",onClick:s,className:"p-0.5 rounded transition-colors "+(t?"text-gray-500 hover:text-gray-300":"text-gray-400 hover:text-gray-600"),style:{border:"none",background:"transparent",appearance:"none",WebkitAppearance:"none",cursor:"pointer"},"aria-label":a?o:n,title:a?o:n,children:a?cp.jsx(yg,{className:"w-3 h-3 text-green-500"}):cp.jsx(xg,{className:"w-3 h-3"})})}const yp=({message:e,formatTime:t,isDark:r,primaryColor:n,agentMessageBubbleColor:o,resolvedAgentBubbleColor:a,textColor:i,assistantTextColor:s,fontFamily:l,agentMessageBubbleFontFamily:c,agentMessageBubbleFontSize:u,fontSize:d,isRtl:g,onDecision:p,companyLogo:f,conciergeName:h,companyName:m,apiBaseUrl:b,getAuthToken:y,onPromptSuggestionClick:v,allowFeedback:w=!0,provideCitations:k=!0,onFeedback:x,headerTextColor:C,t:S})=>{const M="string"==typeof e.content?e.content:"",T=e.isProcessing&&(!M||0===M.length),P=Ed(M,g),[z,j]=I.useState(()=>e?.feedback??null),[E,F]=I.useState(!1),[L,N]=I.useState(null),[R,A]=I.useState(""),_=I.useRef(null),B=I.useCallback(e=>{if(x&&M){if(z===e)return j(null),F(!1),N(null),A(""),void x(M,null);if("like"===e)return j("like"),F(!1),N(null),A(""),void x(M,"like");j(null),N("dislike"),F(!0),A(""),setTimeout(()=>_.current?.focus(),100)}},[z,x,M]),D=I.useCallback(()=>{x&&M&&L&&(j(L),x(M,L,R.trim()||void 0),F(!1),A(""),N(null))},[x,M,L,R]),O=I.useCallback(()=>{F(!1),A(""),N(null)},[]),U=!0===e?.isError,V=U?r?"rgba(239,68,68,0.15)":"#fee2e2":null!=a?a:null!=o?o:r?"#1f2937":"#FFFFFF",$=null!=o&&"#ffffff"!==o&&"#FFFFFF"!==o&&"#1f2937"!==o,H=U?r?"#fca5a5":"#991b1b":null!=s?s:null!=i?i:r?"#f3f4f6":"#1A1A1A",q=null!=c?c:null!=l?l:"Inter",W=null!=u?u:null!=d?d:"14px";Vg(q);const{onSourceActivate:K,downloadingKey:Q}=function({apiBaseUrl:e,getAuthToken:t}){const[r,n]=I.useState(null),o=I.useCallback(async r=>{if(!r)return;const o=r.url||r.source_id||r.sourceid||r.source_name||"",a=String(r.source_id||r.sourceid||"").startsWith("attachment:"),i="string"==typeof r.url&&r.url.includes("/api/v1/sharepoint/file/");if(!("file"===r.source_type||i||a||(r.source_id||r.sourceid)&&!r.url)){const e=function(e){return"string"==typeof e&&/^https?:\/\//i.test(e)?e:void 0}(r.url);if(e)try{window.open(e,"_blank","noopener,noreferrer")}catch{}return}if(e||a){n(o);try{let n;if(a){if(!r.url)throw new Error("attachment has no URL");const o={};if("function"==typeof t){const e=await t();e&&(o.Authorization=`Bearer ${e}`)}n=await fetch(Wg(r.url,e),{method:"GET",headers:o,credentials:"include"})}else if(i){const o=Wg(r.url,e),a={};if("function"==typeof t){const e=await t();e&&(a.Authorization=`Bearer ${e}`)}n=await fetch(o,{method:"GET",headers:a,credentials:"include"})}else{const o=`${e.replace(/\/$/,"")}/api/v1/support/file-download`,a={"Content-Type":"application/json"};if("function"==typeof t){const e=await t();e&&(a.Authorization=`Bearer ${e}`)}n=await fetch(o,{method:"POST",headers:a,credentials:"include",body:JSON.stringify({source_id:r.source_id||r.sourceid,file_name:r.url||"",source_name:r.source_name||""})})}if(!n.ok){const e=await n.json().catch(()=>({}));throw new Error(e.details||e.error||n.statusText)}const o=await n.blob(),s=n.headers.get("content-disposition");let l=r.source_name||"download";a||(l=Qg(s)||l);const c=document.createElement("a"),u=URL.createObjectURL(o);c.href=u,c.download=l,document.body.appendChild(c),c.click(),c.remove(),URL.revokeObjectURL(u)}catch(e){}finally{n(null)}}},[e,t]);return{onSourceActivate:o,downloadingKey:r}}({apiBaseUrl:b,getAuthToken:y}),Y=I.useMemo(()=>({sources:e.sources||[],sourcesPreliminary:!!e.sourcesPreliminary,onSourceActivate:K,downloadingKey:Q,textColor:H,t:S}),[e.sources,e.sourcesPreliminary,K,Q,H,S]);return cp.jsx(qg.Provider,{value:Y,children:cp.jsxs("div",{className:"flex gap-3 flex-row animate-in min-w-0",children:[cp.jsx("div",{className:"flex-shrink-0 mt-1",children:cp.jsx("div",{className:"w-8 h-8 rounded-full overflow-hidden flex items-center justify-center",style:{backgroundColor:n||"#2563eb"},children:f?cp.jsx("div",{className:"w-full h-full bg-white/10 flex items-center justify-center",children:cp.jsx("img",{src:f,alt:h||m||"Assistant avatar",className:"object-contain rounded-full",style:{width:"100%",height:"100%"}})}):cp.jsx("div",{className:"w-full h-full flex items-center justify-center",style:{fontSize:"18px",fontFamily:l||"Inter",color:C||"#FFFFFF"},children:(h||"A").charAt(0).toUpperCase()})})}),cp.jsxs("div",{className:"flex flex-col items-start min-w-0 max-w-[75%]",children:[cp.jsx("div",{className:"rounded-2xl px-4 py-2.5 shadow-sm border rounded-tl-sm rtl:rounded-tl-2xl rtl:rounded-tr-sm min-w-0 max-w-full overflow-hidden "+($?"border-transparent":r?"border-gray-700":"border-gray-200"),style:{backgroundColor:V,color:H,fontFamily:q,fontSize:W,direction:P?"rtl":"ltr",textAlign:P?"right":"left",...$?{borderColor:`${V}33`}:{}},children:T?cp.jsx(hp,{isDark:r,t:S}):cp.jsx(cp.Fragment,{children:e.requiresDecision&&e.decisionData&&p?cp.jsxs("div",{children:[M&&cp.jsx("div",{className:"mb-3",children:cp.jsx(fp,{content:M,isStreaming:e.isProcessing,isDark:r,isRtl:P,textColor:H,fontFamily:q,fontSize:W,onButtonClick:v,provideCitations:k})}),cp.jsx(mp,{question:e.decisionData.question,options:e.decisionData.options,onDecision:(t,r)=>p(e.decisionData.decisionId,t,r),disabled:!!e.decisionResponse,isDark:r}),e.decisionResponse&&cp.jsxs("div",{className:"mt-2 text-xs "+(r?"text-gray-400":"text-gray-500"),children:["Selected: ",e.decisionResponse.selectedOption]})]}):M?cp.jsx(cp.Fragment,{children:cp.jsx(fp,{content:M,isStreaming:e.isProcessing,isDark:r,isRtl:P,textColor:H,fontFamily:q,fontSize:W,onButtonClick:v,provideCitations:k})}):null})}),cp.jsxs("div",{className:"flex items-center gap-1.5 mt-1.5 px-1",children:[cp.jsx("p",{className:"text-xs leading-none "+(r?"text-gray-400":"text-gray-500"),dir:"auto",children:t(e.timestamp)}),!T&&!e.isProcessing&&M&&cp.jsx(bp,{content:M,isDark:r,t:S}),!1!==w&&x&&!T&&!e.isProcessing&&M&&"welcome"!==e.type&&!e.isWelcome&&cp.jsxs("div",{className:"flex items-center gap-0.5 ms-0.5",children:[cp.jsx("button",{type:"button",onClick:()=>B("like"),className:"p-0.5 rounded transition-colors "+("like"===z||"like"===L?"text-green-500":r?"text-gray-500 hover:text-gray-300":"text-gray-400 hover:text-gray-600"),style:{border:"none",background:"transparent",appearance:"none",WebkitAppearance:"none",cursor:"pointer"},"aria-label":S("like"),"aria-pressed":"like"===z,children:cp.jsx(Ag,{className:"w-3 h-3"})}),cp.jsx("button",{type:"button",onClick:()=>B("dislike"),className:"p-0.5 rounded transition-colors "+("dislike"===z||"dislike"===L?"text-red-500":r?"text-gray-500 hover:text-gray-300":"text-gray-400 hover:text-gray-600"),style:{border:"none",background:"transparent",appearance:"none",WebkitAppearance:"none",cursor:"pointer"},"aria-label":S("dislike"),"aria-pressed":"dislike"===z,children:cp.jsx(Rg,{className:"w-3 h-3"})})]})]}),E&&"dislike"===L&&cp.jsxs("div",{className:"mt-2 w-full rounded-xl border p-3 shadow "+(r?"bg-gray-800 border-gray-700":"bg-white border-gray-200"),style:{direction:g?"rtl":"ltr"},children:[cp.jsx("textarea",{ref:_,value:R,onChange:e=>A(e.target.value),onKeyDown:e=>{(e.metaKey||e.ctrlKey)&&"Enter"===e.key?(e.preventDefault(),D()):"Escape"===e.key&&(e.preventDefault(),O())},placeholder:S("feedbackPlaceholder"),"aria-label":S("feedbackPlaceholder"),rows:2,className:"w-full resize-none rounded-lg border px-2 py-1.5 text-xs focus:outline-none focus:ring-1 "+(r?"bg-gray-900 border-gray-700 text-gray-100 placeholder-gray-500 focus:ring-gray-600":"bg-white border-gray-200 text-gray-900 placeholder-gray-400 focus:ring-gray-300"),style:{fontFamily:q,textAlign:g?"right":"left"}}),cp.jsxs("div",{className:"flex items-center justify-end gap-1.5 mt-1.5",children:[cp.jsx("button",{type:"button",onClick:O,className:"text-xs px-2 py-1 rounded transition-colors "+(r?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700"),style:{border:"none",background:"transparent",cursor:"pointer"},children:S("cancel")}),cp.jsx("button",{type:"button",onClick:D,className:"text-xs px-2.5 py-1 rounded text-white transition-opacity hover:opacity-90",style:{backgroundColor:n||"#2563eb",border:"none",cursor:"pointer"},children:S("submit")})]})]})]})]})})},vp=({message:e,formatTime:t,userMessageBoxColor:r,primaryColor:n,resolvedUserMessageColor:o,textColor:a,userTextColor:i,fontFamily:s,userMessageBubbleFontFamily:l,userMessageBubbleFontSize:c,fontSize:u,isDark:d,isRtl:g,t:p,onRetryMessage:f})=>{const h=null!=o?o:null!=r?r:null!=n?n:"#2563eb",m=null!=i?i:null!=a?a:"#FFFFFF",b=null!=l?l:null!=s?s:"Inter",y=null!=c?c:null!=u?u:"14px",v=Ed("string"==typeof e?.content?e.content:"",g);Vg(b);const w=Array.isArray(e.attachments)?e.attachments:[];return cp.jsx("div",{className:"flex gap-3 flex-row-reverse animate-in",children:cp.jsxs("div",{className:"flex flex-col items-end max-w-[75%]",children:[w.length>0&&cp.jsx("div",{className:"mb-1.5 flex flex-wrap justify-end gap-1.5",children:w.map((e,t)=>String(e.mimeType||"").startsWith("image/")&&e.url?cp.jsx("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"block rounded-md overflow-hidden",style:{maxWidth:160},title:e.filename,children:cp.jsx("img",{src:e.url,alt:e.filename||"attachment",style:{maxWidth:160,maxHeight:160,display:"block"}})},e.storageKey||t):cp.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full px-2.5 py-1 text-xs",style:{backgroundColor:d?"#1f2937":"#f3f4f6",color:d?"#e5e7eb":"#374151",border:"1px solid "+(d?"#374151":"#e5e7eb"),maxWidth:200},title:e.filename,children:[cp.jsx(Sg,{size:12}),cp.jsx("span",{className:"truncate",style:{maxWidth:140,direction:"ltr"},children:e.filename})]},e.storageKey||t))}),e.content&&""!==e.content.trim()&&cp.jsx("div",{className:"rounded-2xl px-4 py-2.5 shadow-lg "+(v?"rounded-tl-sm":"rounded-tr-sm"),dir:"auto",style:{background:`linear-gradient(135deg, ${h} 0%, ${h}dd 100%)`,fontFamily:b,direction:v?"rtl":"ltr",textAlign:v?"right":"left"},children:cp.jsx("p",{className:"whitespace-pre-wrap break-words",dir:"auto",style:{color:m,fontFamily:b,fontSize:y,lineHeight:"1.5",textAlign:v?"right":"left",overflowWrap:"break-word",margin:0,padding:0},children:e.content})}),cp.jsxs("div",{className:"flex items-center gap-1.5 mt-1.5 px-1",children:[cp.jsx("p",{className:"text-xs leading-none "+(d?"text-gray-400":"text-gray-500"),dir:"auto",children:t(e.timestamp)}),e.content&&""!==e.content.trim()&&cp.jsx(bp,{content:e.content,isDark:d,t:p})]}),"failed"===e.status&&cp.jsxs("div",{className:"flex items-center gap-1.5 mt-1 px-1","data-testid":"message-failed-state",children:[cp.jsx("span",{className:"text-xs leading-none",style:{color:"#dc2626"},dir:"auto",children:p("messageNotDelivered")}),"function"==typeof f&&cp.jsx("button",{type:"button",onClick:()=>f(e),className:"text-xs leading-none font-medium underline",style:{color:"#dc2626"},dir:"auto",children:p("retrySend")})]})]})})},wp=({message:e,isDark:t,primaryColor:r,agentMessageBubbleColor:n,userMessageBoxColor:o,resolvedUserMessageColor:a,resolvedAgentBubbleColor:i,textColor:s,assistantTextColor:l,userTextColor:c,fontFamily:u,agentMessageBubbleFontFamily:d,agentMessageBubbleFontSize:g,userMessageBubbleFontFamily:p,userMessageBubbleFontSize:f,fontSize:h,formatTime:m,isRtl:b,onDecision:y,companyLogo:v,conciergeName:w,companyName:k,apiBaseUrl:x,getAuthToken:C,onPromptSuggestionClick:S,allowFeedback:M,provideCitations:T,onFeedback:P,headerTextColor:z,onRetryMessage:j,defaultLanguage:E="en"})=>{const F=I.useMemo(()=>Ld(E),[E]);return e?"user"===e.role?cp.jsx(vp,{message:e,formatTime:m,userMessageBoxColor:o,primaryColor:r,resolvedUserMessageColor:a,textColor:s,userTextColor:c,fontFamily:u,userMessageBubbleFontFamily:p,userMessageBubbleFontSize:f,fontSize:h,isDark:t,isRtl:b,t:F,onRetryMessage:j}):cp.jsx(yp,{message:e,formatTime:m,isDark:t,primaryColor:r,agentMessageBubbleColor:n,resolvedAgentBubbleColor:i,textColor:s,assistantTextColor:l,fontFamily:u,agentMessageBubbleFontFamily:d,agentMessageBubbleFontSize:g,fontSize:h,isRtl:b,onDecision:y,companyLogo:v,conciergeName:w,companyName:k,apiBaseUrl:x,getAuthToken:C,onPromptSuggestionClick:S,allowFeedback:M,provideCitations:T,onFeedback:P,headerTextColor:z,t:F}):null};var kp=I.memo(wp);const xp=(e,t,r)=>Number.isNaN(e)?t:Math.min(Math.max(e,t),r),Cp=e=>{if(!e)return null;const t=(e=>e?.trim().toLowerCase()??"")(e),r=(e=>{const t=e.match(/^#?([0-9a-f]{3}|[0-9a-f]{6})$/i);if(!t)return null;let r=t[1];3===r.length&&(r=r.split("").map(e=>`${e}${e}`).join(""));const n=parseInt(r.slice(0,2),16),o=parseInt(r.slice(2,4),16),a=parseInt(r.slice(4,6),16);return[n,o,a].some(e=>Number.isNaN(e))?null:{r:n,g:o,b:a}})(t);if(r)return r;const n=(e=>{const t=e.match(/^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})(?:\s*,\s*(\d*\.?\d+))?\s*\)$/i);return t?{r:xp(Number.parseInt(t[1],10),0,255),g:xp(Number.parseInt(t[2],10),0,255),b:xp(Number.parseInt(t[3],10),0,255)}:null})(t);return n||null},Sp=({r:e,g:t,b:r})=>{const n=e=>{const t=xp(Math.round(e),0,255).toString(16);return 1===t.length?`0${t}`:t};return`#${n(e)}${n(t)}${n(r)}`},Mp=(e,t,r)=>{const n=xp(r,0,1);return{r:Math.round(e.r+(t.r-e.r)*n),g:Math.round(e.g+(t.g-e.g)*n),b:Math.round(e.b+(t.b-e.b)*n)}},Tp=(e,t)=>{const r=xp(t,0,1);return`rgba(${xp(Math.round(e.r),0,255)}, ${xp(Math.round(e.g),0,255)}, ${xp(Math.round(e.b),0,255)}, ${r})`},Pp={background:"#f8fafc",hoverBackground:"#f1f5f9",border:"#e2e8f0",hoverBorder:"#cbd5f5",shadow:"0 4px 12px rgba(15, 23, 42, 0.08)",hoverShadow:"0 6px 20px rgba(15, 23, 42, 0.14)"},zp={background:"#1f2937",hoverBackground:"#27364a",border:"#334155",hoverBorder:"#3b4c63",shadow:"0 4px 12px rgba(15, 23, 42, 0.45)",hoverShadow:"0 6px 20px rgba(15, 23, 42, 0.55)"},jp=(e,t)=>{const r=Cp(e);if(!r)return(e=>e?zp:Pp)(t);const n=(({r:e,g:t,b:r})=>{const n=[e,t,r].map(e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return.2126*n[0]+.7152*n[1]+.0722*n[2]})(r),o=Cp("#0f172a")??{r:15,g:23,b:42},a=Cp(t?"#f8fafc":"#f9fafb")??{r:249,g:250,b:251},i=Cp(t?"#334155":"#e2e8f0")??{r:226,g:232,b:240};let s,l;if(n>=.6){const e=t?.5:.7,n=Math.min(1,e+.15);s=Mp(r,o,e),l=Mp(r,o,n)}else if(n<=.35){const e=t?.9:.8,n=Math.min(1,e+(t?.05:.12));s=Mp(r,a,e),l=Mp(r,a,n)}else{const e=t?.45:.6,n=Math.min(1,e+.1);s=Mp(r,i,e),l=Mp(r,i,n)}const c=Mp(r,s,.65),u=Mp(r,l,.7),d=`0 4px 12px ${Tp(r,t?.28:.12)}`,g=`0 6px 20px ${Tp(r,t?.35:.18)}`;return{background:Sp(s),hoverBackground:Sp(l),border:Sp(c),hoverBorder:Sp(u),shadow:d,hoverShadow:g}},Ep=({questions:e,isDark:t,palette:r,resolvedTextColor:n,fontFamily:o,fontSize:a,isRtl:i,onQuestionClick:s,applyHoverState:l,headingLabel:c,defaultLanguage:u})=>{const d=I.useRef(null),[g,p]=I.useState(!1),[f,h]=I.useState(!1),m=I.useCallback(()=>{const e=d.current;if(!e)return;const{scrollLeft:t,scrollWidth:r,clientWidth:n}=e;p(Math.abs(t)>1),h(Math.abs(t)+n<r-1)},[]);I.useEffect(()=>{m();const e=d.current;if(!e)return;const t=new ResizeObserver(m);return t.observe(e),()=>t.disconnect()},[m,e]);const b=I.useCallback(e=>{const t=d.current;if(!t)return;const r="left"===e?-150:150;t.scrollBy({left:i?-r:r,behavior:"smooth"})},[i]),y=t?"rgba(31,41,55,0.85)":"rgba(255,255,255,0.85)",v=t?"#e5e7eb":"#374151",w=t?"#4b5563":"#d1d5db";return cp.jsxs("div",{className:"px-4 py-4 border-t "+(t?"border-gray-700/50":"border-gray-200/60"),children:[cp.jsxs("div",{className:"text-xs mb-3 font-semibold tracking-wide uppercase "+(t?"text-gray-400":"text-gray-500"),children:[c||"Quick questions",":"]}),cp.jsxs("div",{className:"flex items-center gap-1.5",children:[cp.jsx("button",{onClick:()=>b("left"),disabled:!g,"aria-label":Fd(u,"scrollLeft"),className:"flex-shrink-0 flex items-center justify-center w-7 h-7 rounded-full shadow-sm transition-all duration-200 hover:shadow-md active:scale-95",style:{backgroundColor:y,border:`1px solid ${w}`,color:v,backdropFilter:"blur(4px)",opacity:g?1:.35,cursor:g?"pointer":"default"},children:cp.jsx(vg,{size:16})}),cp.jsx("div",{ref:d,onScroll:m,className:"flex-1 flex gap-3 overflow-x-auto pb-2",style:{scrollBehavior:"smooth",WebkitOverflowScrolling:"touch",scrollbarWidth:"none",msOverflowStyle:"none"},children:e.map((e,t)=>{const c=Ed(e,i);return cp.jsxs("button",{onClick:()=>s?.(e),className:"group relative text-sm px-5 py-2.5 rounded-full font-medium transition-all duration-300 hover:scale-105 active:scale-95 whitespace-nowrap flex-shrink-0 overflow-hidden backdrop-blur-sm "+(c?"text-right":"text-left"),style:{direction:c?"rtl":"ltr",backgroundColor:r.background,border:`1.5px solid ${r.border}`,boxShadow:r.shadow},onMouseEnter:e=>{l(e.currentTarget,!0),e.currentTarget.style.transform="translateY(-2px)"},onMouseLeave:e=>{l(e.currentTarget,!1),e.currentTarget.style.transform="translateY(0)"},children:[cp.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-white/0 via-white/5 to-white/10 opacity-0 group-hover:opacity-100 transition-opacity duration-300 rounded-xl"}),cp.jsx("span",{className:"relative z-10",style:{direction:c?"rtl":"ltr",color:n,fontFamily:o,fontSize:a,textAlign:c?"right":"left"},children:e})]},t)})}),cp.jsx("button",{onClick:()=>b("right"),disabled:!f,"aria-label":Fd(u,"scrollRight"),className:"flex-shrink-0 flex items-center justify-center w-7 h-7 rounded-full shadow-sm transition-all duration-200 hover:shadow-md active:scale-95",style:{backgroundColor:y,border:`1px solid ${w}`,color:v,backdropFilter:"blur(4px)",opacity:f?1:.35,cursor:f?"pointer":"default"},children:cp.jsx(wg,{size:16})})]})]})},Fp=({questions:e=[],isDark:t=!1,primaryColor:r="#2563eb",onQuestionClick:n,isTyping:o=!1,layout:a="vertical",fontFamily:i="Inter",fontSize:s="14px",textColor:l,isRtl:c=!1,questionTextColor:u,questionBoxColor:d,resolvedUserMessageColor:g,userMessageBoxColor:p,userTextColor:f,headingLabel:h,defaultLanguage:m="en"})=>{if(!e.length||o)return null;const b=u??l??(t?"#f3f4f6":"#111827"),y=I.useMemo(()=>jp(b,t),[b,t]),v=(e,t)=>{e.style.backgroundColor=t?y.hoverBackground:y.background,e.style.borderColor=t?y.hoverBorder:y.border,e.style.boxShadow=t?y.hoverShadow:y.shadow};if("horizontal"===a)return cp.jsx(Ep,{questions:e,isDark:t,palette:y,resolvedTextColor:b,fontFamily:i,fontSize:s,isRtl:c,onQuestionClick:n,applyHoverState:v,headingLabel:h,defaultLanguage:m});const w=g??p??r??"#2563eb",k=f??l??"#FFFFFF";return cp.jsxs("div",{style:{paddingInlineStart:"50px"},children:[h?cp.jsx("div",{className:"mb-2",style:{color:t?"#9ca3af":"#6b7280",fontFamily:i,fontSize:`calc(${s} - 1px)`},children:h}):null,cp.jsx("div",{className:"flex flex-wrap gap-2",children:e.map((e,t)=>{const r=Ed(e,c);return cp.jsx("button",{onClick:()=>n?.(e),className:"transition-all duration-200 active:scale-[0.97]",style:{direction:r?"rtl":"ltr",fontFamily:i,fontSize:s,color:k,backgroundColor:w,border:"none",borderRadius:"9999px",padding:"5px 14px",fontWeight:500,lineHeight:"1.4",whiteSpace:"normal",textAlign:r?"right":"left"},children:e},t)})})]})},Lp=({active:e=!1,processing:t=!1,deviceId:r,barWidth:n=3,barGap:o=1,barRadius:a=1.5,barColor:i,fadeEdges:s=!0,fadeWidth:l=24,barHeight:c=4,height:u=64,sensitivity:d=1,smoothingTimeConstant:g=.8,fftSize:p=256,historySize:f=60,updateRate:h=30,mode:m="static",onError:b,onStreamReady:y,onStreamEnd:v,className:w,...k})=>{const x=I.useRef(null),C=I.useRef(null),S=I.useRef([]),M=I.useRef(null),T=I.useRef(null),P=I.useRef(null),z=I.useRef(0),j=I.useRef(0),E=I.useRef(null),F=I.useRef([]),L=I.useRef(0),N=I.useRef([]),R=I.useRef(!0),A=I.useRef(null),_=I.useRef(0),B="number"==typeof u?`${u}px`:u;return I.useEffect(()=>{const e=x.current,t=C.current;if(!e||!t)return;const r=new ResizeObserver(()=>{const r=t.getBoundingClientRect(),n=window.devicePixelRatio||1;e.width=r.width*n,e.height=r.height*n,e.style.width=`${r.width}px`,e.style.height=`${r.height}px`;const o=e.getContext("2d");o&&o.scale(n,n),A.current=null,_.current=r.width,R.current=!0});return r.observe(t),()=>r.disconnect()},[]),I.useEffect(()=>{if(t&&!e){let e=0;L.current=0;const t=()=>{e+=.03,L.current=Math.min(1,L.current+.02);const r=[],a=Math.floor((C.current?.getBoundingClientRect().width||200)/(n+o));if("static"===m){const t=Math.floor(a/2);for(let n=0;n<a;n++){const o=(n-t)/t,a=1-.4*Math.abs(o),i=(.2+(.25*Math.sin(1.5*e+3*o)+.2*Math.sin(.8*e-2*o)+.15*Math.cos(2*e+o)))*a;let s=i;if(F.current.length>0&&L.current<1){const e=Math.min(n,F.current.length-1);s=(F.current[e]||0)*(1-L.current)+i*L.current}r.push(Math.max(.05,Math.min(1,s)))}}else for(let t=0;t<a;t++){const n=(t-a/2)/(a/2),o=1-.4*Math.abs(n),i=(.2+(.25*Math.sin(1.5*e+.15*t)+.2*Math.sin(.8*e-.1*t)+.15*Math.cos(2*e+.05*t)))*o;let s=i;if(F.current.length>0&&L.current<1){const e=Math.floor(t/a*F.current.length);s=(F.current[e]||0)*(1-L.current)+i*L.current}r.push(Math.max(.05,Math.min(1,s)))}"static"===m?N.current=r:S.current=r,R.current=!0,E.current=requestAnimationFrame(t)};return t(),()=>{E.current&&cancelAnimationFrame(E.current)}}if(!e&&!t){if("static"===m?N.current.length>0:S.current.length>0){let e=0;const t=()=>{e+=.03,e<1?("static"===m?N.current=N.current.map(t=>t*(1-e)):S.current=S.current.map(t=>t*(1-e)),R.current=!0,requestAnimationFrame(t)):"static"===m?N.current=[]:S.current=[]};t()}}},[t,e,n,o,m]),I.useEffect(()=>{if(!e)return P.current&&(P.current.getTracks().forEach(e=>e.stop()),P.current=null,v?.()),T.current&&"closed"!==T.current.state&&(T.current.close(),T.current=null),void(z.current&&(cancelAnimationFrame(z.current),z.current=0));return(async()=>{try{const e=await navigator.mediaDevices.getUserMedia({audio:r?{deviceId:{exact:r},echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}});P.current=e,y?.(e);const t=new(window.AudioContext||window.webkitAudioContext),n=t.createAnalyser();n.fftSize=p,n.smoothingTimeConstant=g;t.createMediaStreamSource(e).connect(n),T.current=t,M.current=n,S.current=[]}catch(e){b?.(e)}})(),()=>{P.current&&(P.current.getTracks().forEach(e=>e.stop()),P.current=null,v?.()),T.current&&"closed"!==T.current.state&&(T.current.close(),T.current=null),z.current&&(cancelAnimationFrame(z.current),z.current=0)}},[e,r,p,g,b,y,v]),I.useEffect(()=>{const r=x.current;if(!r)return;const u=r.getContext("2d");if(!u)return;let g;const p=b=>{const y=r.getBoundingClientRect();if(e&&b-j.current>h&&(j.current=b,M.current)){const e=new Uint8Array(M.current.frequencyBinCount);if(M.current.getByteFrequencyData(e),"static"===m){const t=Math.floor(.05*e.length),r=Math.floor(.4*e.length),a=e.slice(t,r),i=Math.floor(y.width/(n+o)),s=Math.floor(i/2),l=[];for(let e=s-1;e>=0;e--){const t=Math.floor(e/s*a.length),r=Math.min(1,a[t]/255*d);l.push(Math.max(.05,r))}for(let e=0;e<s;e++){const t=Math.floor(e/s*a.length),r=Math.min(1,a[t]/255*d);l.push(Math.max(.05,r))}N.current=l,F.current=l}else{let t=0;const r=Math.floor(.05*e.length),n=Math.floor(.4*e.length),o=e.slice(r,n);for(let e=0;e<o.length;e++)t+=o[e];const a=t/o.length/255*d;S.current.push(Math.min(1,Math.max(.05,a))),F.current=[...S.current],S.current.length>f&&S.current.shift()}R.current=!0}if(!R.current&&!e)return void(g=requestAnimationFrame(p));R.current=e,u.clearRect(0,0,y.width,y.height);const v=i||getComputedStyle(r).color||"#000",w=n+o,k=Math.floor(y.width/w),x=y.height/2;if("static"===m){const r=t||e||N.current.length>0?N.current:[];for(let e=0;e<k&&e<r.length;e++){const t=r[e]||.1,o=e*w,i=Math.max(c,t*y.height*.8),s=x-i/2;u.fillStyle=v,u.globalAlpha=.4+.6*t,a>0?(u.beginPath(),u.roundRect(o,s,n,i,a),u.fill()):u.fillRect(o,s,n,i)}}else for(let e=0;e<k&&e<S.current.length;e++){const t=S.current.length-1-e,r=S.current[t]||.1,o=y.width-(e+1)*w,i=Math.max(c,r*y.height*.8),s=x-i/2;u.fillStyle=v,u.globalAlpha=.4+.6*r,a>0?(u.beginPath(),u.roundRect(o,s,n,i,a),u.fill()):u.fillRect(o,s,n,i)}if(s&&l>0&&y.width>0){if(!A.current||_.current!==y.width){const e=u.createLinearGradient(0,0,y.width,0),t=Math.min(.3,l/y.width);e.addColorStop(0,"rgba(255,255,255,1)"),e.addColorStop(t,"rgba(255,255,255,0)"),e.addColorStop(1-t,"rgba(255,255,255,0)"),e.addColorStop(1,"rgba(255,255,255,1)"),A.current=e,_.current=y.width}u.globalCompositeOperation="destination-out",u.fillStyle=A.current,u.fillRect(0,0,y.width,y.height),u.globalCompositeOperation="source-over"}u.globalAlpha=1,g=requestAnimationFrame(p)};return g=requestAnimationFrame(p),()=>{g&&cancelAnimationFrame(g)}},[e,t,d,h,f,n,c,o,a,i,s,l,m]),cp.jsxs("div",{className:Od("relative h-full w-full",w),ref:C,style:{height:B},"aria-label":e?"Live audio waveform":t?"Processing audio":"Audio waveform idle",role:"img",...k,children:[!e&&!t&&cp.jsx("div",{className:"border-muted-foreground/20 absolute top-1/2 right-0 left-0 -translate-y-1/2 border-t-2 border-dotted"}),cp.jsx("canvas",{className:"block h-full w-full",ref:x,"aria-hidden":"true"})]})};function Np(e){if(!e||"user"===e.role)return null;const t=e.metadata?.senderName;return"string"==typeof t&&t.trim()?t.trim():null}function Rp(e,t){return null!=e?e:t}function Ap(e,t){const r=e||[];for(let e=t+1;e<r.length;e+=1){const t=r[e];if(t&&"user"===t.role&&!t.sendFailed)return"string"==typeof t.content?t.content:String(Rp(t.content,""))}}const _p=I.createContext(void 0),Ip=({messages:e=[],isDark:t,primaryColor:r,isLoading:n,agentMessageBubbleColor:o,userMessageBoxColor:a,textColor:i,assistantTextColor:s,userTextColor:l,fontFamily:c,agentMessageBubbleFontFamily:u,agentMessageBubbleFontSize:d,userMessageBubbleFontFamily:g,userMessageBubbleFontSize:p,fontSize:f,formatTime:h,isRtl:m=!1,defaultLanguage:b="en",quickQuestions:y=[],shouldShowQuickQuestions:v=!1,onQuickQuestion:w,quickQuestionsLayout:k="vertical",onDecision:x,disclaimerEnabled:C=!1,disclaimerText:S,disclaimerPosition:M="top",disclaimerLinkUrl:T,disclaimerLinkLabel:P,resolvedAgentBubbleColor:z,resolvedUserMessageColor:j,resolvedTextColor:E,isVoiceSessionActive:F=!1,voiceStatus:L="idle",messagesContainerRef:N,companyLogo:R,chatbotAvatarEnabled:A,chatbotAvatar:_,conciergeName:B,companyName:D,apiBaseUrl:O,getAuthToken:U,onPromptSuggestionClick:V,conversationResetKey:$,allowFeedback:H,provideCitations:q,onFeedback:W,headerTextColor:K,onRetryMessage:Q,beforePromptsSlot:Y=null,promptsSlot:G=null,quickQuestionsHeadingLabel:J})=>{const X=I.useRef(null),Z=I.useRef(!0),ee=I.useRef(!1),te=I.useMemo(()=>e.map(e=>`${e.id}:${e.content?.length??0}:${e.isProcessing?1:0}`).join("|"),[e]),re=I.useCallback(()=>{const e=N?.current;if(!e)return;const t=e.scrollHeight-e.scrollTop-e.clientHeight;Z.current=t<160},[N]);I.useEffect(()=>{const e=N?.current;if(e)return e.addEventListener("scroll",re,{passive:!0}),re(),()=>{e.removeEventListener("scroll",re)}},[re,N]),I.useEffect(()=>{$&&(Z.current=!0,ee.current=!1)},[$]),I.useEffect(()=>{if(ee.current||0===e.length||"undefined"==typeof window)return;ee.current=!0;let t,r=!1;const n=window.requestAnimationFrame(()=>{r||(t=window.requestAnimationFrame(()=>{r||(X.current?.scrollIntoView({behavior:"instant",block:"end"}),Z.current=!0)}))});return()=>{r=!0,window.cancelAnimationFrame(n),window.cancelAnimationFrame(t)}},[0===e.length]),I.useEffect(()=>{if(!Z.current)return;if("undefined"==typeof window)return;let e=!1;const t=window.requestAnimationFrame(()=>{e||X.current?.scrollIntoView({behavior:"smooth",block:"end"})});return()=>{e=!0,window.cancelAnimationFrame(t)}},[te,n]),I.useEffect(()=>{if(!F||"connected"!==L)return;if("undefined"==typeof window)return;let e=!1;const t=window.requestAnimationFrame(()=>{e||X.current?.scrollIntoView({behavior:"smooth",block:"end"})});return()=>{e=!0,window.cancelAnimationFrame(t)}},[F,L]);const ne=I.useMemo(()=>Dd(T),[T]),oe=I.useMemo(()=>function(e){const t=new Map;if(!Array.isArray(e))return t;const r=new Set;for(const n of e){const e=Np(n);if(!e||!n.id)continue;const o=!r.has(e);r.add(e),t.set(n.id,{name:e,joined:o})}return t}(e),[e]),ae=I.useMemo(()=>Ed(S,m),[S,m]);return cp.jsxs(cp.Fragment,{children:[C&&S&&"top"===M&&cp.jsx("div",{className:"flex justify-center",children:cp.jsx("div",{className:"rounded-lg px-2 py-1 ",style:{color:t?"#d1d5db":"#6b7280",fontFamily:null!=c?c:"Inter",fontSize:null!=f?`calc(${f} - 2px)`:"12px",direction:ae?"rtl":"ltr",textAlign:"center",borderColor:t?"#374151":"#e5e7eb"},children:cp.jsxs("p",{className:"leading-relaxed whitespace-pre-wrap break-words inline",dir:ae?"rtl":"ltr",style:{color:t?"#d1d5db":"#6b7280",fontFamily:null!=c?c:"Inter",fontSize:null!=f?`calc(${f} - 2px)`:"12px"},children:[S,ne&&P&&cp.jsx("a",{href:ne,target:"_blank",rel:"noopener noreferrer",title:ne,style:{color:t?"#93c5fd":"#2563eb",marginInlineStart:"4px",verticalAlign:"middle",display:"inline-flex",alignItems:"center"},children:P})]})})}),e.map((n,y)=>{const v=oe.get(n.id);return cp.jsxs(_p.Provider,{value:"assistant"===n.role?Ap(e,y):void 0,children:[v?.joined&&cp.jsx("div",{role:"status","data-testid":"agent-joined-line",style:{textAlign:"center",fontSize:"12px",opacity:.7,margin:"8px 0"},children:Fd(b,"agentJoinedConversation").replace("{name}",v.name)}),v&&cp.jsx("div",{"data-testid":"agent-sender-name",style:{fontSize:"12px",fontWeight:600,opacity:.8,margin:"0 0 2px 4px",textAlign:m?"right":"left"},children:v.name}),cp.jsx(kp,{message:n,isDark:t,primaryColor:r,agentMessageBubbleColor:o,userMessageBoxColor:a,resolvedUserMessageColor:j,resolvedAgentBubbleColor:z,textColor:i,assistantTextColor:s,userTextColor:l,fontFamily:c,agentMessageBubbleFontFamily:u,agentMessageBubbleFontSize:d,userMessageBubbleFontFamily:g,userMessageBubbleFontSize:p,fontSize:f,formatTime:h,isRtl:Ed(n.content,m),onDecision:x,onPromptSuggestionClick:V,companyLogo:A&&_?_:R,conciergeName:B,companyName:D,apiBaseUrl:O,getAuthToken:U,allowFeedback:H,provideCitations:q,onFeedback:W,headerTextColor:K,onRetryMessage:Q,defaultLanguage:b})]},n.id)}),(()=>{const y=e[e.length-1],v=n&&"user"===y?.role,w=e.some(e=>"assistant"===e.role&&(e.isProcessing||!e.content));return v&&!w?cp.jsx(kp,{message:od(),isDark:t,primaryColor:r,agentMessageBubbleColor:o,resolvedAgentBubbleColor:z,userMessageBoxColor:a,textColor:i,assistantTextColor:s,userTextColor:l,fontFamily:c,agentMessageBubbleFontFamily:u,agentMessageBubbleFontSize:d,userMessageBubbleFontFamily:g,userMessageBubbleFontSize:p,fontSize:f,formatTime:h,isRtl:m,onDecision:x,companyLogo:A&&_?_:R,conciergeName:B,companyName:D,apiBaseUrl:O,getAuthToken:U,headerTextColor:K,defaultLanguage:b},"skeleton-waiting"):null})(),Y,G?cp.jsx("div",{className:"pt-1",children:G}):v&&y.length>0&&cp.jsx("div",{className:"pt-1",children:cp.jsx(Fp,{questions:y,isDark:t,primaryColor:r,onQuestionClick:w,isTyping:n,layout:k,fontFamily:c,fontSize:f,textColor:i,isRtl:m,questionTextColor:s,questionBoxColor:o,resolvedUserMessageColor:j,userMessageBoxColor:a,userTextColor:l,headingLabel:J,defaultLanguage:b})}),F&&"connected"===L&&!n&&cp.jsx("div",{className:"flex gap-3 flex-row-reverse animate-in",children:cp.jsx("div",{className:"flex flex-col items-end max-w-[75%] w-full",children:cp.jsxs("div",{className:"rounded-2xl px-4 py-2.5 shadow-lg rounded-tr-sm w-full",style:{background:`linear-gradient(135deg, ${j||r||"#2563eb"} 0%, ${j||r||"#2563eb"}dd 100%)`,width:"100px"},children:[cp.jsx("span",{className:"sr-only",children:"Listening for voice input"}),cp.jsx(Lp,{active:!0,barWidth:2,barHeight:4,barGap:2,barColor:l||E||"#FFFFFF",height:20,fadeEdges:!0,className:"min-w-[60px]","aria-hidden":"true"})]})})}),cp.jsx("div",{ref:X,className:"h-px"})]})};function Bp(e,t){return String(e||"").replace(/\/+$/,"")+(t.startsWith("/")?t:`/${t}`)}function Dp({apiEndpoint:e,conversationId:t,size:r,authHeader:n}){fetch(Bp(e,"/api/v1/chat-attachments/release"),{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({conversationId:t,size:r})}).catch(()=>{})}function Op({orgId:e,conversationId:t,config:r,apiEndpoint:n,authHeader:o,onError:a}){const[i,s]=I.useState([]),l=I.useRef(new Map),c=I.useRef(0),u=I.useRef(i);u.current=i;const d=I.useRef({conversationId:t,bytes:0});d.current.conversationId!==t&&(d.current={conversationId:t,bytes:0});const g=I.useCallback(()=>(c.current+=1,`att-${Date.now()}-${c.current}`),[]),p=I.useCallback((e,t)=>{s(r=>r.map(r=>r.id===e?{...r,...t}:r))},[]),f=I.useCallback((e,t,r)=>{const n={status:"error",error:{code:t,message:r}};s(t=>{const r=t.map(t=>t.id===e?{...t,...n}:t),o=r.find(t=>t.id===e);return o&&a&&a(o),r})},[a]),h=I.useCallback((e,t)=>{if(!r?.fileUploadEnabled)return{ok:!1,code:"feature_disabled",message:"File uploads are not enabled for this organization."};if(t>=r.fileUploadMaxFiles)return{ok:!1,code:"too_many_files",message:`Max ${r.fileUploadMaxFiles} files per message.`};const n=1024*r.fileUploadMaxSizeMB*1024;if(d.current.bytes+e.size>n){return{ok:!1,code:"size_exceeded",message:`This conversation has already used ${(d.current.bytes/1048576).toFixed(1)} MB of its ${r.fileUploadMaxSizeMB} MB upload limit - this file won't fit.`}}const o=(e.type||"").toLowerCase(),a=new Set((r.fileUploadAllowedMimes||[]).map(e=>String(e).toLowerCase()));return a.size>0&&!a.has(o)?{ok:!1,code:"mime_not_allowed",message:`File type "${e.type||"unknown"}" is not allowed.`}:{ok:!0}},[r]),m=I.useCallback(async(e,r)=>{let a;try{a=await fetch(Bp(n,"/api/v1/chat-attachments/presign"),{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",...o?{Authorization:o}:{}},body:JSON.stringify({filename:r.name,mimeType:r.type,size:r.size,conversationId:t})})}catch(t){return d.current.bytes=Math.max(0,d.current.bytes-r.size),void f(e,"network","Network error while requesting upload.")}if(!a.ok){let t="Upload rejected by the server.",n="unknown";try{const e=await a.json();e?.error&&(t=e.error),e?.code&&(n=function(e){switch(e){case"feature_disabled":case"size_exceeded":case"mime_not_allowed":case"storage_unavailable":return e;default:return"unknown"}}(e.code))}catch{}return d.current.bytes=Math.max(0,d.current.bytes-r.size),void f(e,n,t)}let i=0;const s=()=>{i>0&&(Dp({apiEndpoint:n,conversationId:t,size:i,authHeader:o}),i=0,p(e,{reservedBytes:0}))},c=()=>{d.current.bytes=Math.max(0,d.current.bytes-r.size)};let u;try{u=await a.json()}catch{return Dp({apiEndpoint:n,conversationId:t,size:r.size,authHeader:o}),c(),p(e,{reservedBytes:0}),void f(e,"unknown","Malformed presign response.")}let g,h;("boolean"==typeof u.reserved?u.reserved:!u.useMultipart)&&(i=r.size,p(e,{reservedBytes:r.size}));try{if(u.useMultipart){const a=await function({url:e,file:t,conversationId:r,authHeader:n,onProgress:o,registerXhr:a}){return new Promise((n,i)=>{const s=new XMLHttpRequest;a(s),s.open("POST",e,!0),s.withCredentials=!0;const l=new FormData;l.append("conversationId",r),l.append("file",t,t.name),s.upload.onprogress=e=>{e.lengthComputable&&o(Math.round(e.loaded/e.total*100))},s.onload=()=>{if(s.status>=200&&s.status<300)try{const e=JSON.parse(s.responseText);n({url:"string"==typeof e?.url?e.url:void 0,storageKey:"string"==typeof e?.storageKey?e.storageKey:void 0})}catch{n({})}else i(new Error(`upload_status_${s.status}`))},s.onerror=()=>i(new Error("network")),s.onabort=()=>i({aborted:!0}),s.send(l)})}({url:Bp(n,"/api/v1/chat-attachments/multipart"),file:r,conversationId:t,authHeader:o,onProgress:t=>p(e,{progress:t}),registerXhr:t=>l.current.set(e,t)});g=a.url,h=a.storageKey,i=r.size,p(e,{reservedBytes:r.size})}else{if(!u.uploadUrl)throw new Error("presign_missing_target");{await function({url:e,file:t,onProgress:r,registerXhr:n}){return new Promise((o,a)=>{const i=new XMLHttpRequest;n(i),i.open("PUT",e,!0),i.setRequestHeader("x-ms-blob-type","BlockBlob"),t.type&&i.setRequestHeader("Content-Type",t.type),i.upload.onprogress=e=>{e.lengthComputable&&r(Math.round(e.loaded/e.total*100))},i.onload=()=>{i.status>=200&&i.status<300?o():a(new Error(`upload_status_${i.status}`))},i.onerror=()=>a(new Error("network")),i.onabort=()=>a({aborted:!0}),i.send(t)})}({url:u.uploadUrl,file:r,onProgress:t=>p(e,{progress:t}),registerXhr:t=>l.current.set(e,t)});const t=await async function({apiEndpoint:e,storageKey:t,filename:r,mimeType:n,authHeader:o}){let a;try{a=await fetch(Bp(e,"/api/v1/chat-attachments/confirm"),{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",...o?{Authorization:o}:{}},body:JSON.stringify({storageKey:t,filename:r,mimeType:n})})}catch{return{ok:!1,code:"network",message:"Network error while verifying upload."}}if(a.ok)return{ok:!0};let i="Upload rejected - file content did not match its declared type.",s="content_mismatch";try{const e=await a.json();e?.error&&(i=e.error),"password_protected"===e?.code&&(s="password_protected")}catch{}return{ok:!1,code:s,message:i}}({apiEndpoint:n,storageKey:u.storageKey,filename:r.name,mimeType:r.type,authHeader:o});if(!t.ok)return l.current.delete(e),s(),c(),void f(e,t.code,t.message)}}}catch(t){if(l.current.delete(e),t&&t.aborted)return;return s(),c(),void f(e,"network","Upload failed. Please retry.")}l.current.delete(e),p(e,{status:"ready",progress:100,storageKey:h||u.storageKey,...g?{url:g}:{}})},[n,o,t,f,p]),b=I.useCallback(async e=>{const t=Array.from(e);for(const e of t){const t=u.current.filter(e=>"error"!==e.status).length,r=h(e,t),n=g();if(!r.ok){const t={id:n,filename:e.name,size:e.size,mimeType:e.type,status:"error",error:{code:r.code,message:r.message}};s(e=>(a&&a(t),[...e,t]));continue}const o={id:n,filename:e.name,size:e.size,mimeType:e.type,status:"uploading",progress:0,reservedBytes:0};s(e=>[...e,o]),d.current.bytes+=e.size,m(n,e)}},[h,m,g,a]),y=I.useCallback(e=>{const r=l.current.get(e);r&&(r.abort(),l.current.delete(e));const a=u.current.find(t=>t.id===e);a&&a.reservedBytes>0&&(Dp({apiEndpoint:n,conversationId:t,size:a.reservedBytes,authHeader:o}),d.current.bytes=Math.max(0,d.current.bytes-a.reservedBytes)),s(t=>t.filter(t=>t.id!==e))},[n,o,t]),v=I.useCallback(()=>{for(const e of l.current.values())e.abort();l.current.clear(),s([])},[]),w=I.useMemo(()=>i.some(e=>"validating"===e.status||"uploading"===e.status),[i]),k=I.useCallback(()=>i.filter(e=>"ready"===e.status&&"string"==typeof e.storageKey).map(e=>({filename:e.filename,mimeType:e.mimeType,size:e.size,storageKey:e.storageKey,url:e.url})),[i]);return{attachments:i,addFiles:b,removeAttachment:y,clearAll:v,isBusy:w,toSendPayload:k}}function Up(e){if(!e||e<1024)return`${e||0} B`;const t=["KB","MB","GB"];let r=e/1024,n=0;for(;r>=1024&&n<t.length-1;)r/=1024,n+=1;return`${r.toFixed(r>=10?0:1)} ${t[n]}`}function Vp({attachment:e,onRemove:t,isDark:r,removeLabel:n="Remove attachment"}){const o="error"===e.status,a="uploading"===e.status,i="ready"===e.status,s=o?r?"rgba(239,68,68,0.15)":"#fee2e2":r?"#1f2937":"#f3f4f6",l=o?r?"#b91c1c":"#fca5a5":r?"#374151":"#e5e7eb",c=o?r?"#fca5a5":"#b91c1c":r?"#e5e7eb":"#374151",u=o?`${e.filename} - ${e.error?.message||"error"}`:a?`${e.filename} - uploading`:`${e.filename} - ready`;return cp.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full pl-2 pr-1 py-1 text-xs",style:{backgroundColor:s,border:`1px solid ${l}`,color:c,maxWidth:240},role:"group",title:o?e.error?.message:e.filename,"aria-label":u,children:[o?cp.jsx(kg,{size:12,"aria-hidden":"true"}):a?cp.jsx(Mg,{size:12,className:"animate-spin","aria-hidden":"true"}):cp.jsx(Sg,{size:12,"aria-hidden":"true"}),cp.jsx("span",{className:"truncate",style:{maxWidth:140,direction:"ltr"},children:e.filename}),i&&cp.jsx("span",{className:"opacity-70 text-chip",children:Up(e.size)}),a&&"number"==typeof e.progress&&cp.jsxs("span",{className:"opacity-70 text-chip",children:[e.progress,"%"]}),cp.jsx("button",{type:"button",onClick:()=>t(e.id),className:"w-4 h-4 rounded-full inline-flex items-center justify-center",style:{backgroundColor:"transparent",border:"none",color:c,cursor:"pointer"},"aria-label":n,children:cp.jsx(_g,{size:12})})]})}function $p({prompts:e,getDisplayText:t,detectDirection:r,ambientIsRtl:n,wrapperProps:o,stackProps:a,getKey:i,getChipProps:s,onChipClick:l,onSelect:c,before:u,after:d}){const g=I.createElement("div",a,e.map((e,o)=>{const a=t(e),u=r(a,n);return I.createElement("button",{key:i(e,o),type:"button",...s({prompt:e,index:o,displayText:a,chipIsRtl:u}),onClick:t=>{l&&l(e,o),c(e,o,t)}},a)}));return null==u&&null==d?I.createElement("div",o,g):I.createElement("div",o,u,g,d)}const Hp=({suggestions:e,onSuggestionClick:t,promptPrimary:r,promptTextColor:n,promptFontFamily:o,promptFontSize:a,isRtl:i,t:s,questionDisplay:l=!0})=>cp.jsx($p,{prompts:e,getDisplayText:e=>((e,t=!0)=>{if(!e||"string"==typeof e)return e||"";const r="string"==typeof e.text?e.text:"";if(!t)return r;const n="string"==typeof e.submitText?e.submitText.trim():"";return n&&n!==r?n:r})(e,l),detectDirection:Ed,ambientIsRtl:i,wrapperProps:{className:"mb-2 px-5"},stackProps:{className:"flex flex-col gap-2",role:"group","aria-label":s("suggestedQuestions")},getKey:(e,t)=>`${e.text||e}-${t}`,getChipProps:({chipIsRtl:e})=>({dir:e?"rtl":"ltr",className:"block w-full rounded-2xl px-4 py-2 border-0 transition-transform duration-150 active:scale-[0.99] "+(e?"text-right":"text-left"),style:{direction:e?"rtl":"ltr",textAlign:e?"right":"left",background:`linear-gradient(135deg, ${r} 0%, ${r}dd 100%)`,color:n,fontFamily:o,fontSize:a}}),onSelect:(e,r)=>t(e.submitText||e.text||e,e,r)}),qp=({onStopGeneration:e,inputValue:t,setInputValue:r,onSend:n,isDark:o,primaryColor:a,isOpen:i,isMinimized:s,isLoading:l,isConversationLoading:c=!1,placeholder:u,textColor:d,fontFamily:g,fontSize:p,isRtl:f=!1,csatVisible:h=!1,enableVoiceInteraction:m=!1,isVoiceSessionActive:b=!1,voiceStatus:y="idle",voiceError:v=null,onVoiceToggle:w,onBidiSubmit:k,disclaimerEnabled:x=!1,disclaimerText:C,disclaimerPosition:S="top",disclaimerLinkUrl:M,disclaimerLinkLabel:T,showPoweredBy:P=!0,onboardingQuestions:z=[],onboardingActive:j=!1,onboardingCompleted:E=!1,userMessageBubbleFontFamily:F,onboardingEnabled:L=!1,userMessageBubbleFontSize:N,userMessageBoxColor:R,resolvedUserMessageColor:A,userTextColor:_,promptSuggestions:B,onPromptSuggestionClick:D,autoPromptQuestionDisplay:O=!0,tagSelectorNode:U=null,showResolveButton:V=!1,onResolve:$,defaultLanguage:H="en",chatFeatures:q,apiEndpoint:W,organizationId:K,conversationId:Q})=>{const Y=I.useMemo(()=>Ld(H),[H]),G=I.useMemo(()=>function(e){const t=Td(e),r=xd[t]||kd;return{beforeBrand:r.poweredByBefore??r.poweredBy??kd.poweredByBefore,afterBrand:r.poweredByAfter??""}}(H),[H]),J=I.useMemo(()=>Ed(t,f),[t,f]),[X,Z]=I.useState(!1),[ee,te]=I.useState(!1),re=I.useMemo(()=>({fileUploadEnabled:q?.fileUploadEnabled??!1,fileUploadMaxSizeMB:q?.fileUploadMaxSizeMB??10,fileUploadMaxFiles:q?.fileUploadMaxFiles??3,fileUploadAllowedMimes:q?.fileUploadAllowedMimes??[]}),[q]),{attachments:ne,addFiles:oe,removeAttachment:ae,clearAll:ie,isBusy:se,toSendPayload:le}=Op({orgId:K,conversationId:Q,config:re,apiEndpoint:W,authHeader:void 0}),ce=I.useRef(null),ue=I.useRef(new Set);I.useEffect(()=>{if(!b||!Q||!W)return;const e=le().filter(e=>e.storageKey&&!ue.current.has(e.storageKey));e.length&&(e.forEach(e=>ue.current.add(e.storageKey)),fetch(`${String(W).replace(/\/$/,"")}/api/v1/chat-attachments/ingest`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({conversationId:Q,attachments:e.map(e=>({storageKey:e.storageKey}))})}).catch(()=>{}))},[b,Q,W,ne,le]);const de=!!re.fileUploadEnabled&&!!W,ge=ne.length>=re.fileUploadMaxFiles,pe=`Max ${re.fileUploadMaxFiles} files per message.`,fe=I.useMemo(()=>re.fileUploadAllowedMimes.length>0?re.fileUploadAllowedMimes.join(","):void 0,[re.fileUploadAllowedMimes]),[he,me]=I.useState({top:0,left:0,placement:"top",arrowOffset:0}),[be,ye]=I.useState(!1),ve=I.useRef(null),we=I.useRef(null),ke=I.useRef(null),xe=I.useRef(null);Vg(g),Vg(F),I.useEffect(()=>{i&&!s&&we.current?.focus()},[i,s]),I.useEffect(()=>{const e=we.current;if(e){e.style.height="auto";const r=e.scrollHeight,n=t.trim().length>0?20:48,o=Math.max(n,Math.min(r,120));e.style.height=`${o}px`}},[t]);const Ce=I.useCallback(()=>{const e=le();e.length>0?(n(void 0,e),ie()):n()},[le,ie,n]),Se=ne.some(e=>"ready"===e.status),Me=!t.trim()&&!Se||l||c||se,Te=o?"#374151":"#e5e7eb",Pe=z&&z.length>0,ze=h||c||L&&(Pe&&!E)||"connecting"===y,je=h?Y("pleaseSubmitRatingFirst"):Pe?j?Y("completeOnboardingToEnableVoice"):E?"":Y("sendMessageToCompleteOnboarding"):"",Ee=()=>{if(!ke.current)return;const e=ke.current.getBoundingClientRect(),t=220,r=e.top,n=window.innerHeight-e.bottom;let o="top",a=0,i=0;r>=73?(o="top",a=e.top-60-5-8,i=e.right-t,i<10&&(i=10),i+t>window.innerWidth-10&&(i=window.innerWidth-t-10)):n>=68?(o="bottom",a=e.bottom+8,i=e.right-t,i<10&&(i=10),i+t>window.innerWidth-10&&(i=window.innerWidth-t-10)):(o="top",a=Math.max(10,e.top-60-5-8),i=e.right-t,i<10&&(i=10),i+t>window.innerWidth-10&&(i=window.innerWidth-t-10));return{top:a,left:i,placement:o,arrowOffset:e.left+e.width/2-i}};I.useEffect(()=>{if(ee&&je){const e=()=>{const e=Ee();me(e)};return window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}}},[ee,je]),I.useEffect(()=>()=>{ve.current&&clearTimeout(ve.current)},[]);const Fe=null!=A?A:null!=R?R:null!=a?a:"#2563eb",Le=null!=_?_:null!=d?d:"#FFFFFF",Ne=null!=F?F:null!=g?g:"Inter",Re=null!=N?N:null!=p?p:null,Ae=Re?`calc(${Re} - 2px)`:"12px",_e=Dd(M);return cp.jsxs("div",{className:"py-4 flex-shrink-0 relative "+(o?"bg-gray-900":"bg-white"),style:{overflow:"visible"},children:[U||B.length>0&&D&&cp.jsx(Hp,{suggestions:B,onSuggestionClick:D,questionDisplay:O,promptPrimary:Fe,promptTextColor:Le,promptFontFamily:Ne,promptFontSize:Ae,isRtl:f,t:Y}),cp.jsx("div",{className:"my-4",style:{height:"1px",backgroundColor:Te}}),de&&ne.length>0&&cp.jsx("div",{className:"px-5 mb-2 flex flex-wrap gap-1.5",children:ne.map(e=>cp.jsx(Vp,{attachment:e,onRemove:ae,isDark:o,removeLabel:Y("removeAttachment")},e.id))}),cp.jsxs("div",{className:"flex items-center px-5 gap-1.5",children:[de&&cp.jsx("input",{ref:ce,type:"file",multiple:!0,accept:fe,"aria-label":Y("uploadFile"),className:"hidden",style:{display:"none"},onChange:e=>{const t=e.target.files;t&&t.length&&!ge&&oe(t),e.currentTarget.value=""}}),cp.jsxs("div",{className:`flex-1 flex items-center gap-1 px-1 min-h-[48px] ${o?"bg-gray-800":"bg-gray-50"} rounded-2xl transition-all duration-200`,style:{borderStyle:"solid",borderColor:t&&t.trim().length>0?a||"#2563eb":Te,borderWidth:t&&t.trim().length>0?"2px":"1px"},children:[de&&cp.jsxs("div",{className:"relative group shrink-0",children:[cp.jsx("button",{type:"button",onClick:()=>ce.current&&ce.current.click(),disabled:h||c||l||ge,"aria-label":ge?pe:"Attach file",title:ge?pe:"Attach file",className:`h-8 w-8 rounded-lg flex items-center justify-center transition-colors duration-200 ${o?"text-gray-300 hover:bg-gray-700":"text-gray-500 hover:bg-gray-200"} disabled:opacity-40 disabled:cursor-not-allowed`,style:{border:"none"},children:cp.jsx(zg,{className:"w-4 h-4"})}),ge&&cp.jsx("div",{role:"tooltip",className:"pointer-events-none absolute bottom-full left-1/2 -translate-x-1/2 mb-2 opacity-0 group-hover:opacity-100 transition-opacity px-3 py-1.5 text-xs rounded-lg whitespace-nowrap shadow-lg "+(o?"bg-gray-700 text-gray-100":"bg-gray-800 text-white"),children:pe})]}),cp.jsx("div",{className:"relative flex-1 flex items-center min-w-0",children:cp.jsx("textarea",{id:"chat-widget-input",ref:we,"aria-label":u||Y("typeYourMessage"),value:t,onChange:e=>{r(e.target.value)},onFocus:()=>Z(!0),onBlur:()=>Z(!1),onKeyDown:e=>{if("Enter"===e.key&&!e.shiftKey){if(e.preventDefault(),b&&k&&!Se)return void k();if(Me)return;Ce()}},placeholder:c?Y("agentIsLoading"):u||Y("typeYourMessage"),rows:1,disabled:h||c||l||b&&"connected"!==y,dir:J?"rtl":"ltr",className:`w-full px-3 bg-transparent rounded-xl leading-normal ${o?"text-gray-100":"text-gray-900"} placeholder-gray-400 resize-none outline-none scrollbar-hide break-words`,style:{height:"auto",maxHeight:"120px",minHeight:"48px",paddingTop:t.trim().length>0?"12px":"0px",paddingBottom:t.trim().length>0?"12px":"0px",lineHeight:t.trim().length>0?"1.4":"48px",fontFamily:F||g||"Inter",fontSize:p||"14px",color:o?"#F3F4F6":"#1F2937",textAlign:J?"right":"left",direction:J?"rtl":"ltr",wordSpacing:"0",letterSpacing:"0"}})}),m&&cp.jsxs("div",{className:"relative shrink-0",onMouseEnter:()=>{if(ze&&je){ve.current&&(clearTimeout(ve.current),ve.current=null);const e=Ee();me(e),te(!0)}},onMouseLeave:()=>{ve.current&&(clearTimeout(ve.current),ve.current=null),te(!1)},children:[cp.jsx("button",{style:{border:"none"},ref:ke,type:"button",onClick:w,"aria-label":Y(b?"stopVoiceInput":"startVoiceInput"),className:`h-8 w-8 rounded-lg flex items-center justify-center transition-colors duration-200 ${b?"bg-red-500 text-white hover:bg-red-600":o?"text-gray-300 hover:bg-gray-700":"text-gray-500 hover:bg-gray-200"} ${ze?"opacity-60 cursor-not-allowed":""}`,disabled:ze,children:"connecting"===y?cp.jsx(Mg,{className:"w-4 h-4 animate-spin"}):cp.jsx(bg,{className:"w-4 h-4"})}),ee&&je&&"undefined"!=typeof document&&Hu.createPortal(cp.jsxs("div",{ref:xe,className:"px-3 py-1.5 text-xs shadow-md pointer-events-none",style:{position:"fixed",top:`${he.top}px`,left:`${he.left}px`,maxWidth:"220px",whiteSpace:"normal",wordWrap:"break-word",minWidth:"180px",zIndex:999999,backgroundColor:o?"#1f2937":"#ffffff",color:o?"#f3f4f6":"#111827",border:o?"1px solid #374151":"1px solid #e5e7eb",borderRadius:"top"===he.placement?"6px 6px 6px 6px":"6px",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",overflow:"visible"},children:[cp.jsx("div",{className:"text-left leading-relaxed",children:je}),"top"===he.placement&&cp.jsxs(cp.Fragment,{children:[cp.jsx("div",{style:{position:"absolute",top:"100%",left:`${he.arrowOffset}px`,transform:"translateX(-50%)",width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:o?"6px solid #374151":"6px solid #e5e7eb",pointerEvents:"none"}}),cp.jsx("div",{style:{position:"absolute",top:"100%",left:`${he.arrowOffset}px`,transform:"translateX(-50%)",marginTop:"-1px",width:0,height:0,borderLeft:"5px solid transparent",borderRight:"5px solid transparent",borderTop:o?"5px solid #1f2937":"5px solid #ffffff",pointerEvents:"none"}})]}),"bottom"===he.placement&&cp.jsxs(cp.Fragment,{children:[cp.jsx("div",{className:"absolute bottom-full",style:{left:`${he.arrowOffset}px`,transform:"translateX(-50%)",width:0,height:0,borderLeft:"5px solid transparent",borderRight:"5px solid transparent",borderBottom:o?"5px solid #374151":"5px solid #e5e7eb"}}),cp.jsx("div",{className:"absolute bottom-full -mb-px",style:{left:`${he.arrowOffset}px`,transform:"translateX(-50%)",width:0,height:0,borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderBottom:o?"4px solid #1f2937":"4px solid #ffffff"}})]})]}),document.body)]})]}),l&&!b&&"function"==typeof e?cp.jsx("button",{onClick:e,className:"h-10 w-10 flex-shrink-0 rounded-xl transition-all duration-200 flex items-center justify-center shadow-md scale-100",style:{backgroundColor:a,color:"white",border:"none"},"aria-label":Y("stopGenerating"),children:cp.jsx(Fg,{className:"w-3.5 h-3.5",fill:"currentColor"})}):cp.jsx("button",{onClick:b&&k&&!Se?k:Ce,disabled:h||Me||b&&"connected"!==y,className:"h-10 w-10 flex-shrink-0 rounded-xl transition-all duration-200 flex items-center justify-center shadow-md disabled:opacity-40 disabled:cursor-not-allowed disabled:shadow-none "+(t.trim()?"scale-100":"scale-95"),style:{backgroundColor:t.trim()?a:o?"#374151":"#e5e7eb",color:t.trim()?"white":"#9ca3af",border:"none"},"aria-label":Y("sendMessage"),children:cp.jsx(Eg,{className:"w-4 h-4 transition-transform",style:f?{transform:"rotate(-90deg)"}:void 0})})]}),b&&cp.jsxs("p",{"aria-live":"polite",className:`text-xs mt-2 px-5 ${"connected"===y?"text-status-success":"text-gray-500"} flex items-center gap-1`,children:[cp.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-current inline-flex"}),Y("connected"===y?"voiceSessionLive":"connectingVoice")]}),v&&cp.jsx("p",{role:"alert",className:"text-xs mt-1 px-5 text-status-error",children:Y(v)===v?Y("voiceUnavailable"):Y(v)}),x&&C&&"footer"===S&&cp.jsxs("p",{className:"text-xs mt-2 px-5 text-center",style:{color:o?"#d1d5db":"#6b7280",fontFamily:g||"Inter",fontSize:p?`calc(${p} - 2px)`:"12px",direction:f?"rtl":"ltr"},dir:f?"rtl":"ltr",children:[C,_e&&T&&cp.jsx("a",{href:_e,target:"_blank",rel:"noopener noreferrer",title:_e,style:{color:o?"#93c5fd":"#2563eb",marginInlineStart:"4px",verticalAlign:"middle",display:"inline-flex",alignItems:"center"},children:T})]}),P&&cp.jsx("div",{className:"mt-1.5 flex justify-center",children:cp.jsx("a",{href:"https://eshal.ai",target:"_blank",rel:"noopener noreferrer",className:"no-underline",children:cp.jsxs("span",{dir:"ltr",className:"inline-flex items-center gap-1.5 py-1.5 px-3",children:[G.beforeBrand&&cp.jsx("span",{className:Od("font-sans text-[10px] font-medium",o?"text-gray-400":"text-gray-500"),children:G.beforeBrand}),be?cp.jsx("span",{className:Od("font-sans text-[10px] font-semibold",o?"text-gray-300":"text-gray-600"),children:"ESHAL"}):cp.jsx("img",{src:o?"data:image/svg+xml,%3csvg width='219' height='54' xmlns='http://www.w3.org/2000/svg' version='1.0'%3e%3cg class='layer'%3e%3ctitle%3eEshal Logo%3c/title%3e%3cg clip-path='url(%23a)' transform='translate(-.708 -1.076)'%3e%3cg clip-path='url(%23b)'%3e%3cpath d='M21.79 54.75h4.5l3.93-.56 4.49-1.4 3.38-1.97 2.81-2.25 2.24-2.81 2.25-3.93 1.13-3.09v-.85l-3.65-1.12h-.57l-1.96 4.5-1.97 3.09-2.81 2.53-3.93 1.96-3.38.85-2.81.28h-2.81l-4.21-.57-3.94-1.4-2.81-1.97-2.25-2.24-1.96-3.38-1.41-4.21-.56-3.37-.28-3.1v-3.65l.56-5.06 1.12-4.21 1.97-3.94 2.53-2.81 2.25-1.68 2.81-1.41 3.37-.84 2.25-.28H26l4.78.84 4.5 2.25 2.53 2.53 1.4 2.53.56 2.53-.28 3.65-1.12 2.25-1.41 1.69-1.4.55-1.13-4.21-1.68-2.81-1.97-1.97-3.09-1.4-1.12-.28h-5.34l-3.09 1.12-2.25 1.69-1.41 1.97-.84 3.09.28 3.08 1.4 2.82 1.97 1.96 2.81 1.41 2.25.56 4.78.28 3.09-.28.84-.28-1.12 3.09-1.69 1.97-2.25.84h-3.65l-2.81-1.12-1.68-1.41-3.38 2.25.56 1.13 1.13 1.4 2.81 1.69 2.81.84h4.78l2.81-.84 2.53-1.69 1.96-2.25L35 34.8l.84-4.5 3.65-2.24 2.53-2.53 1.69-3.09.56-2.25.28-2.81-.56-3.93-1.12-2.82-2.25-3.09-3.09-2.81-4.22-2.25-4.5-1.12-2.52-.28h-4.5l-3.93.56-4.5 1.41-3.38 1.96-3.37 3.1-2.52 3.65-1.97 4.49-1.13 4.78-.28 2.25v9.27l.84 5.06 1.69 4.78 1.69 3.09 2.25 2.81 2.8 2.53 2.82 1.69 5.06 1.68zm1.12-27.54-2.53-.84-1.4-1.12-.84-1.69.28-2.53 1.12-1.4 2.25-1.13H26l2.81 1.41 1.41 1.97.84 2.8v2.25l-1.12.28zm0 0' fill='white'/%3e%3c/g%3e%3c/g%3e%3cpath d='M82.381 38.435v6.48h-27.06V9.965h26.41v6.5h-18.36v7.57h16.22v6.3h-16.22v8.1zm16.432 7.07c-2.77 0-5.44-.37-8.02-1.11-2.57-.75-4.65-1.72-6.22-2.92l2.75-6.09c1.5 1.09 3.28 1.98 5.34 2.64 2.07.67 4.13 1 6.19 1q3.45 0 5.1-1.02t1.65-2.73c0-.83-.33-1.52-.98-2.06-.65-.55-1.48-1-2.5-1.33-1.01-.33-2.39-.7-4.11-1.1-2.67-.63-4.85-1.26-6.55-1.89s-3.15-1.64-4.37-3.04c-1.21-1.41-1.82-3.27-1.82-5.6 0-2.03.55-3.86 1.64-5.51 1.11-1.66 2.76-2.96 4.97-3.92 2.22-.97 4.93-1.46 8.13-1.46 2.22 0 4.4.27 6.53.8s4 1.3 5.59 2.3l-2.5 6.14c-3.23-1.82-6.45-2.74-9.67-2.74-2.27 0-3.95.37-5.03 1.1-1.07.73-1.61 1.69-1.61 2.89q0 1.8 1.86 2.67c1.25.59 3.16 1.16 5.72 1.72 2.66.63 4.85 1.27 6.55 1.9 1.69.63 3.14 1.63 4.36 2.99 1.21 1.37 1.82 3.21 1.82 5.55 0 2-.56 3.82-1.67 5.46q-1.68 2.475-5.01 3.93c-2.23.95-4.95 1.43-8.14 1.43m50.913-35.54v34.95h-8.08v-14.33h-15.88v14.33h-8.09V9.965h8.09v13.78h15.88V9.965zm29.811 27.47h-16.22l-3.1 7.48h-8.29l15.58-34.95h7.98l15.62 34.95h-8.48zm-2.55-6.15-5.55-13.37-5.53 13.37zm16.274-21.32h8.09v28.36h17.52v6.59h-25.61zm0 0' fill='white'/%3e%3c/g%3e%3c/svg%3e":"data:image/svg+xml,%3csvg width='219' height='54' xmlns='http://www.w3.org/2000/svg' version='1.0'%3e%3cg class='layer'%3e%3ctitle%3eEshal Logo%3c/title%3e%3cg clip-path='url(%23a)' transform='translate(-.708 -1.076)'%3e%3cg clip-path='url(%23b)'%3e%3cpath d='M21.79 54.75h4.5l3.93-.56 4.49-1.4 3.38-1.97 2.81-2.25 2.24-2.81 2.25-3.93 1.13-3.09v-.85l-3.65-1.12h-.57l-1.96 4.5-1.97 3.09-2.81 2.53-3.93 1.96-3.38.85-2.81.28h-2.81l-4.21-.57-3.94-1.4-2.81-1.97-2.25-2.24-1.96-3.38-1.41-4.21-.56-3.37-.28-3.1v-3.65l.56-5.06 1.12-4.21 1.97-3.94 2.53-2.81 2.25-1.68 2.81-1.41 3.37-.84 2.25-.28H26l4.78.84 4.5 2.25 2.53 2.53 1.4 2.53.56 2.53-.28 3.65-1.12 2.25-1.41 1.69-1.4.55-1.13-4.21-1.68-2.81-1.97-1.97-3.09-1.4-1.12-.28h-5.34l-3.09 1.12-2.25 1.69-1.41 1.97-.84 3.09.28 3.08 1.4 2.82 1.97 1.96 2.81 1.41 2.25.56 4.78.28 3.09-.28.84-.28-1.12 3.09-1.69 1.97-2.25.84h-3.65l-2.81-1.12-1.68-1.41-3.38 2.25.56 1.13 1.13 1.4 2.81 1.69 2.81.84h4.78l2.81-.84 2.53-1.69 1.96-2.25L35 34.8l.84-4.5 3.65-2.24 2.53-2.53 1.69-3.09.56-2.25.28-2.81-.56-3.93-1.12-2.82-2.25-3.09-3.09-2.81-4.22-2.25-4.5-1.12-2.52-.28h-4.5l-3.93.56-4.5 1.41-3.38 1.96-3.37 3.1-2.52 3.65-1.97 4.49-1.13 4.78-.28 2.25v9.27l.84 5.06 1.69 4.78 1.69 3.09 2.25 2.81 2.8 2.53 2.82 1.69 5.06 1.68zm1.12-27.54-2.53-.84-1.4-1.12-.84-1.69.28-2.53 1.12-1.4 2.25-1.13H26l2.81 1.41 1.41 1.97.84 2.8v2.25l-1.12.28zm0 0' fill='black'/%3e%3c/g%3e%3c/g%3e%3cpath d='M82.381 38.435v6.48h-27.06V9.965h26.41v6.5h-18.36v7.57h16.22v6.3h-16.22v8.1zm16.432 7.07c-2.77 0-5.44-.37-8.02-1.11-2.57-.75-4.65-1.72-6.22-2.92l2.75-6.09c1.5 1.09 3.28 1.98 5.34 2.64 2.07.67 4.13 1 6.19 1q3.45 0 5.1-1.02t1.65-2.73c0-.83-.33-1.52-.98-2.06-.65-.55-1.48-1-2.5-1.33-1.01-.33-2.39-.7-4.11-1.1-2.67-.63-4.85-1.26-6.55-1.89s-3.15-1.64-4.37-3.04c-1.21-1.41-1.82-3.27-1.82-5.6 0-2.03.55-3.86 1.64-5.51 1.11-1.66 2.76-2.96 4.97-3.92 2.22-.97 4.93-1.46 8.13-1.46 2.22 0 4.4.27 6.53.8s4 1.3 5.59 2.3l-2.5 6.14c-3.23-1.82-6.45-2.74-9.67-2.74-2.27 0-3.95.37-5.03 1.1-1.07.73-1.61 1.69-1.61 2.89q0 1.8 1.86 2.67c1.25.59 3.16 1.16 5.72 1.72 2.66.63 4.85 1.27 6.55 1.9 1.69.63 3.14 1.63 4.36 2.99 1.21 1.37 1.82 3.21 1.82 5.55 0 2-.56 3.82-1.67 5.46q-1.68 2.475-5.01 3.93c-2.23.95-4.95 1.43-8.14 1.43m50.913-35.54v34.95h-8.08v-14.33h-15.88v14.33h-8.09V9.965h8.09v13.78h15.88V9.965zm29.811 27.47h-16.22l-3.1 7.48h-8.29l15.58-34.95h7.98l15.62 34.95h-8.48zm-2.55-6.15-5.55-13.37-5.53 13.37zm16.274-21.32h8.09v28.36h17.52v6.59h-25.61zm0 0' fill='black'/%3e%3c/g%3e%3c/svg%3e",alt:"ESHAL",className:Od("h-3",o?"opacity-60":"opacity-50"),onError:()=>ye(!0)}),G.afterBrand&&cp.jsx("span",{className:Od("font-sans text-[10px] font-medium",o?"text-gray-400":"text-gray-500"),children:G.afterBrand})]})})})]})},Wp=["sun","mon","tue","wed","thu","fri","sat"];function Kp(e){if(!e||"string"!=typeof e)return null;const t=e.match(/^(\d{1,2}):(\d{2})/);if(!t)return null;const r=parseInt(t[1],10),n=parseInt(t[2],10);return Number.isNaN(r)||Number.isNaN(n)?null:60*r+n}function Qp(e,t=new Date,r={}){if(!e||!e.showStatus)return null;const n=r.online||"Online now",o=r.officeOpen||"Online now",a=r.offlineFallback||"Offline";if("officeHours"!==e.statusMode)return{online:!0,label:n};const i=e.officeHours||{},{dayKey:s,minutes:l}=function(e,t){try{const r=new Intl.DateTimeFormat("en-US",{timeZone:e||void 0,weekday:"short",hour:"2-digit",minute:"2-digit",hour12:!1}).formatToParts(t),n=(r.find(e=>"weekday"===e.type)||{}).value||"";let o=parseInt((r.find(e=>"hour"===e.type)||{}).value||"0",10);const a=parseInt((r.find(e=>"minute"===e.type)||{}).value||"0",10);return 24===o&&(o=0),{dayKey:n.slice(0,3).toLowerCase(),minutes:60*o+a}}catch{return{dayKey:Wp[t.getDay()],minutes:60*t.getHours()+t.getMinutes()}}}(i.timezone,t),c=Array.isArray(i.days)?i.days.map(e=>String(e).slice(0,3).toLowerCase()):[],u=Kp(i.open),d=Kp(i.close);if(c.includes(s)&&(null!=u&&null!=d&&(u<=d?l>=u&&l<d:l>=u||l<d))){return{online:!0,label:(i.onlineMessage||"").trim()||o}}return{online:!1,label:(i.offlineMessage||"").trim()||a}}const Yp='[role="menuitem"]';function Gp(e){const t=e&&"function"==typeof e.getRootNode?e.getRootNode():null;return t&&t.activeElement||document.activeElement}function Jp(e,t){return e?Array.from(e.querySelectorAll(t)).filter(e=>!e.disabled&&"true"!==e.getAttribute("aria-disabled")):[]}function Xp(e,t,r=Yp){const{key:n}=e;if("ArrowDown"!==n&&"ArrowUp"!==n&&"Home"!==n&&"End"!==n)return!1;const o=Jp(t,r);if(0===o.length)return!1;e.preventDefault();const a=o.indexOf(Gp(t));let i;return i="Home"===n?0:"End"===n?o.length-1:"ArrowDown"===n?a<0?0:(a+1)%o.length:a<0?o.length-1:(a-1+o.length)%o.length,o[i].focus(),!0}const Zp=({conciergeName:e,companyName:t,companyLogo:r,primaryColor:n,isDark:o,isMinimized:a=!1,textColor:i,fontFamily:s,fontSize:l,onToggleTheme:c,onMinimize:u,onClose:d,headerTextBold:g=!1,headerTextItalic:p=!1,headerTextColor:f,headerFontFamily:h,headerFontSize:m,subtitle:b=null,showStatus:y=!1,statusMode:v="always",officeHours:w=null,onRefreshChat:k,onCopyChat:x,defaultLanguage:C="en"})=>{const S=n,M=f||"#FFFFFF",T=h||s||"Inter",P=m||l;Vg(T);const z=I.useMemo(()=>Ld(C),[C]),j=Pd(C),E=I.useMemo(()=>Ed(b,j),[b,j]),F=I.useMemo(()=>Qp({showStatus:y,statusMode:v,officeHours:w}),[y,v,w]),[L,N]=I.useState(!1),R=I.useRef(null),A=I.useRef(null);I.useEffect(()=>{if(!L)return;const e=e=>{R.current&&!e.composedPath().includes(R.current)&&N(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[L]);const _=I.useRef(!1);I.useEffect(()=>{if(L){_.current=!0;const e=R.current?.querySelector('[role="menuitem"]');e?.focus()}else _.current&&(_.current=!1,A.current?.focus())},[L]);const B=M;return cp.jsxs("div",{className:`text-white ${a?"px-4 py-2.5":"px-3 py-4"} flex items-center justify-between relative overflow-visible rounded-t-2xl z-[60]`,style:{background:S,fontFamily:T},children:[cp.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0 pl-1",children:[cp.jsxs("div",{className:"relative w-11 h-11 flex-shrink-0",children:[cp.jsx("div",{className:"w-full h-full rounded-full overflow-hidden flex items-center justify-center bg-white/20",children:r?cp.jsx("img",{src:r,alt:"Logo",style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},loading:"lazy"}):cp.jsx("span",{className:"text-lg font-semibold leading-none",style:{color:B},children:(e||t||"")?.charAt(0)?.toUpperCase()})}),F?cp.jsx("span",{title:F.label,className:Od("absolute bottom-0 h-3 w-3 rounded-full ring-2 ring-white",j?"left-0":"right-0"),style:{backgroundColor:F.online?"#22c55e":"#9ca3af",boxShadow:F.online?"0 0 0 3px rgba(34,197,94,0.25)":"none"},"aria-hidden":"true"}):null]}),cp.jsxs("div",{className:"flex flex-col justify-center min-w-0",style:{fontFamily:T},children:[cp.jsx("h3",{title:e,className:Od("font-semibold leading-snug truncate",g&&"font-bold",p&&"italic"),style:{fontSize:P?`calc(${P} + 2px)`:"15px",color:B},children:e}),b?cp.jsx("p",{title:b,className:"leading-snug truncate opacity-75",dir:E?"rtl":"ltr",style:{fontSize:"12px",color:B,textAlign:E?"right":"left"},children:b}):null]})]}),cp.jsxs("div",{className:"flex items-center gap-0 relative z-10 text-white flex-shrink-0 ml-1",children:[cp.jsxs("div",{className:"relative",ref:R,children:[cp.jsx("button",{type:"button",ref:A,"aria-label":z("menu"),"aria-expanded":L,"aria-haspopup":"true",onClick:()=>N(e=>!e),onKeyDown:e=>{"Escape"===e.key&&L&&(e.preventDefault(),N(!1))},className:"inline-flex h-7 w-7 items-center justify-center cursor-pointer transition-opacity duration-200 hover:opacity-80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/40 rounded-full border-0 bg-transparent p-0",style:{color:B},children:cp.jsx(Cg,{className:"w-4 h-4",strokeWidth:1.6})}),L&&cp.jsxs("div",{role:"menu","aria-label":z("menu"),tabIndex:-1,dir:j?"rtl":"ltr",onKeyDown:e=>{if("Escape"===e.key)return e.preventDefault(),void N(!1);Xp(e,R.current)||function(e,t,r=Yp){if("Tab"!==e.key)return!1;const n=Jp(t,r);if(0===n.length)return!1;const o=n[0],a=n[n.length-1],i=Gp(t);e.shiftKey&&i===o?(e.preventDefault(),a.focus()):!e.shiftKey&&i===a&&(e.preventDefault(),o.focus())}(e,R.current)},className:`absolute top-full mt-1 w-44 rounded-xl border shadow-lg py-1 z-[9999] animate-in fade-in slide-in-from-top-1 duration-150 ${j?"left-0":"right-0"} ${o?"bg-gray-800 border-gray-700":"bg-white border-gray-200"}`,style:{fontFamily:T},children:[cp.jsxs("button",{role:"menuitem",onClick:()=>{N(!1),k?.()},className:"flex items-center gap-2.5 w-full px-3 py-2 text-sm leading-5 transition-colors cursor-pointer "+(o?"text-gray-200 hover:bg-gray-700":"text-gray-700 hover:bg-gray-50"),style:{fontFamily:T,fontSize:"14px",border:"none",background:"transparent",appearance:"none",WebkitAppearance:"none",textAlign:j?"right":"left"},children:[cp.jsx(jg,{className:"w-3.5 h-3.5 flex-shrink-0"}),z("refreshChat")]}),cp.jsxs("button",{role:"menuitem",onClick:()=>{N(!1),x?.()},className:"flex items-center gap-2.5 w-full px-3 py-2 text-sm leading-5 transition-colors cursor-pointer "+(o?"text-gray-200 hover:bg-gray-700":"text-gray-700 hover:bg-gray-50"),style:{fontFamily:T,fontSize:"14px",border:"none",background:"transparent",appearance:"none",WebkitAppearance:"none",textAlign:j?"right":"left"},children:[cp.jsx(xg,{className:"w-3.5 h-3.5 flex-shrink-0"}),z("copyChat")]}),cp.jsxs("button",{role:"menuitem",onClick:()=>{N(!1),c?.()},className:"flex items-center gap-2.5 w-full px-3 py-2 text-sm leading-5 transition-colors cursor-pointer "+(o?"text-gray-200 hover:bg-gray-700":"text-gray-700 hover:bg-gray-50"),style:{fontFamily:T,fontSize:"14px",border:"none",background:"transparent",appearance:"none",WebkitAppearance:"none",textAlign:j?"right":"left"},children:[o?cp.jsx(Ng,{className:"w-3.5 h-3.5 flex-shrink-0"}):cp.jsx(Pg,{className:"w-3.5 h-3.5 flex-shrink-0"}),z(o?"lightMode":"nightMode")]})]})]}),cp.jsx("button",{type:"button","aria-label":z("close"),onClick:d,className:"inline-flex h-7 w-7 items-center justify-center cursor-pointer transition-opacity duration-200 hover:opacity-80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/40 rounded-full border-0 bg-transparent p-0",style:{color:B},children:cp.jsx(_g,{className:"w-3.5 h-3.5",strokeWidth:1.6})})]})]})},ef=({questions:e=[],collapsiblePrompt:t,onSubmit:r,primaryColor:n="#2563eb",isRtl:o=!1,isDark:a=!1,defaultLanguage:i="en",fontFamily:s})=>{const l=I.useMemo(()=>Ld(i),[i]),[c,u]=I.useState({}),[d,g]=I.useState({}),[p,f]=I.useState(!1),h=I.useRef({}),m=[...e].sort((e,t)=>Vd(e.fieldType)-Vd(t.fieldType));return cp.jsx("div",{className:"flex flex-col items-center justify-center p-6 h-full min-h-0 z-50 relative ",style:{...s?{fontFamily:s}:{},...a?{backgroundColor:"#10141C"}:{}},children:cp.jsxs("div",{className:"w-full max-w-sm rounded-2xl shadow-xl border p-8 transition-colors duration-300 bg-white border-gray-100",style:a?{backgroundColor:"#1E232B",border:"1px solid #2A303C"}:void 0,children:[t&&cp.jsx("div",{className:"mb-4 text-start",children:cp.jsx("h3",{className:"transition-colors duration-300 text-sm font-semibold mb-1 "+(a?"text-white":"text-[#4A5568]"),children:t})}),cp.jsxs("form",{onSubmit:async e=>{e.preventDefault();const t=(()=>{const e={};return m.forEach(t=>{const r=t.fieldType||"question",n=(c[r]??"").trim(),o=t.collectionPrompt||t.askToType||t.question||t.label||r,a=!0===t.required||"true"===t.required;n?("fullName"!==r&&"name"!==r||n.length<2&&(e[r]=l("nameInvalid")),"email"!==r||/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)||(e[r]=l("emailInvalid")),"phone"!==r&&"mobileno"!==r||/^[+]?[\d\s-]{8,15}$/.test(n)||(e[r]=l("phoneInvalid"))):a&&(e[r]="email"===r?l("emailRequired"):"fullName"===r||"name"===r?l("nameRequired"):"phone"===r||"mobileno"===r?l("phoneRequired"):`${o} ${l("fieldRequiredSuffix")}`)}),g(e),e})();if(Object.keys(t).length>0){const e=m.map((e,t)=>e.fieldType||`question_${t}`).find(e=>t[e]);return void h.current[e]?.focus()}f(!0);try{await r(c)}finally{f(!1)}},className:"space-y-4",noValidate:!0,children:[m.map((e,t)=>{const r=e.fieldType||`question_${t}`,n=e.collectionPrompt||e.askToType||e.question||e.label;if(!n?.trim())return null;let i="text";"email"===r&&(i="email"),"phone"!==r&&"mobileno"!==r||(i="tel");const s=(r||"").toLowerCase(),p="fullname"===s||"name"===s||"username"===s,f="phone"===s||"mobileno"===s,m="email"===s?l("onboardingEmailPlaceholder"):p?l("onboardingNamePlaceholder"):f?l("onboardingPhonePlaceholder"):n,b=d[r],y="w-full h-12 rounded-xl text-base md:text-sm px-3 py-1 outline-none border transition-colors focus:ring-0 "+(a?"text-white placeholder:text-[#A2A9B2] focus:border-[#5A6069]":"bg-gray-50/30 focus:bg-white text-gray-900 placeholder:text-gray-500 focus:border-[#B0B0B0]"),v=b?"!border-status-error focus:!border-status-error":"",w=`onboarding-field-${r}`,k=`${w}-error`;return cp.jsxs("div",{children:[cp.jsx("label",{htmlFor:w,className:"sr-only",children:n}),cp.jsx("input",{id:w,ref:e=>{h.current[r]=e},placeholder:m,type:i,value:c[r]??"",onChange:e=>((e,t)=>{u(r=>({...r,[e]:t})),d[e]&&g(t=>{const r={...t};return delete r[e],r})})(r,e.target.value),className:`${y} ${v}`,"aria-invalid":b?"true":"false","aria-describedby":b?k:void 0,style:{direction:o?"rtl":"ltr",fontFamily:"inherit",...a?{backgroundColor:"#272C35",borderWidth:"1px",borderStyle:"solid",borderColor:b?void 0:"#3F444C"}:{borderWidth:"1px",borderStyle:"solid",borderColor:b?void 0:"#E0E0E0"}}}),b&&cp.jsx("p",{id:k,role:"alert",className:"mt-1 text-xs text-status-error px-1",children:d[r]})]},r)}),cp.jsx("button",{type:"submit",disabled:p,"aria-busy":p,"aria-label":p?l("submitting"):void 0,className:"w-full h-12 inline-flex items-center justify-center text-sm border-none font-semibold shadow-xl hover:shadow-xl hover:scale-[1.02] active:scale-[0.98] transition-all rounded-xl mt-4 text-white",style:{backgroundColor:n,fontFamily:"inherit"},children:p?cp.jsx(Mg,{className:"w-5 h-5 animate-spin","aria-hidden":"true"}):l("startChat")})]})]})})},tf=({categories:e=[],selectedCategoryId:t=null,onSelect:r,isDark:n=!1,primaryColor:o="#2563eb",fontFamily:a="Inter",isRtl:i=!1,defaultLanguage:s="en"})=>{const l=I.useMemo(()=>Ld(s),[s]),c=I.useRef(null),[u,d]=I.useState(!1),[g,p]=I.useState(!1),f=I.useCallback(()=>{const e=c.current;if(!e)return;const{scrollLeft:t,scrollWidth:r,clientWidth:n}=e;d(Math.abs(t)>1),p(Math.abs(t)+n<r-1)},[]);I.useEffect(()=>{f();const e=c.current;if(!e)return;const t=new ResizeObserver(f);return t.observe(e),()=>t.disconnect()},[f,e]);const h=I.useCallback(e=>{const t=c.current;if(!t)return;const r="left"===e?-150:150;t.scrollBy({left:i?-r:r,behavior:"smooth"})},[i]);if(!Array.isArray(e)||0===e.length)return null;const m=n?"rgba(31,41,55,0.85)":"rgba(255,255,255,0.95)",b=n?"#e5e7eb":"#374151",y=n?"#4b5563":"#d1d5db",v=n?"#111827":"#ffffff",w=n?"#374151":"#e5e7eb";return cp.jsxs("div",{className:"flex-shrink-0 px-2 py-2 border-b flex items-center gap-1",style:{backgroundColor:v,borderColor:w,fontFamily:a,direction:i?"rtl":"ltr"},role:"region","aria-label":l("filterByCategory"),children:[cp.jsx("button",{type:"button",onClick:()=>h("left"),disabled:!u,"aria-label":l("scrollCategoriesLeft"),className:"flex-shrink-0 flex items-center justify-center w-6 h-6 rounded-full transition-all duration-200",style:{backgroundColor:m,border:`1px solid ${y}`,color:b,opacity:u?1:.3,cursor:u?"pointer":"default"},children:cp.jsx(vg,{size:14})}),cp.jsx("div",{ref:c,onScroll:f,className:"flex-1 flex gap-2 overflow-x-auto",style:{scrollBehavior:"smooth",WebkitOverflowScrolling:"touch",scrollbarWidth:"none",msOverflowStyle:"none"},children:e.map(e=>{const i=t===e.id;return cp.jsx("button",{type:"button",onClick:()=>r?.(i?null:e.id),"aria-pressed":i,className:"flex-shrink-0 inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-medium transition-all duration-150 whitespace-nowrap",style:{backgroundColor:n?"#1f2937":"#ffffff",border:i?`1.5px solid ${o}`:"1px solid "+(n?"#374151":"#e5e7eb"),color:i?o:n?"#e5e7eb":"#374151",fontFamily:a},children:cp.jsx("span",{children:e.label})},e.id)})}),cp.jsx("button",{type:"button",onClick:()=>h("right"),disabled:!g,"aria-label":l("scrollCategoriesRight"),className:"flex-shrink-0 flex items-center justify-center w-6 h-6 rounded-full transition-all duration-200",style:{backgroundColor:m,border:`1px solid ${y}`,color:b,opacity:g?1:.3,cursor:g?"pointer":"default"},children:cp.jsx(wg,{size:14})})]})},rf=({categories:e=[],selectedCategoryId:t=null,onSelect:r,isDark:n=!1,primaryColor:o="#2563eb",fontFamily:a="Inter",fontSize:i="14px",isRtl:s=!1,label:l="Choose a topic to get started:",regionLabel:c="Category filter"})=>{if(!Array.isArray(e)||0===e.length)return null;const u=n?"#9ca3af":"#6b7280";return cp.jsxs("div",{className:"pl-[50px] pt-1",style:{direction:s?"rtl":"ltr",paddingLeft:s?0:50,paddingRight:s?50:void 0},role:"region","aria-label":c,children:[cp.jsx("div",{className:"mb-2",style:{color:u,fontFamily:a,fontSize:`calc(${i} - 1px)`},children:l}),cp.jsx("div",{className:"flex flex-wrap gap-2",children:e.map(e=>{const s=t===e.id;return cp.jsx("button",{type:"button",onClick:()=>r?.(s?null:e.id),"aria-pressed":s,className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full transition-all duration-150 hover:scale-[1.02] active:scale-[0.98]",style:{backgroundColor:n?"#1f2937":"#ffffff",border:s?`1.5px solid ${o}`:"1px solid "+(n?"#374151":"#e5e7eb"),color:s?o:n?"#e5e7eb":"#374151",fontFamily:a,fontSize:`calc(${i} - 1px)`,fontWeight:500},children:e.label},e.id)})})]})};const nf=[{value:"😡",label:"😡",bg:"bg-red-200"},{value:"😕",label:"😕",bg:"bg-orange-200"},{value:"😐",label:"😐",bg:"bg-yellow-200"},{value:"😊",label:"😊",bg:"bg-green-200"},{value:"😍",label:"😍",bg:"bg-pink-200"}],of=[{value:"positive",label:"👍"},{value:"negative",label:"👎"}],af=[{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"}],sf=[{value:"1",label:"⭐"},{value:"2",label:"⭐"},{value:"3",label:"⭐"},{value:"4",label:"⭐"},{value:"5",label:"⭐"}],lf=({format:e="EMOJI",prompt:t="How was your experience?",onRating:r,disabled:n=!1,isDark:o=!1,primaryColor:a="#2563eb",defaultLanguage:i="en"})=>{const s=I.useMemo(()=>Ld(i),[i]),[l,c]=I.useState(null),[u,d]=I.useState(null),[g,p]=I.useState(!1),f=async t=>{if(!n&&!g){c(t),p(!0);try{r&&r(t,e)}finally{p(!1)}}},h=(()=>{switch(e){case"THUMBS":return of;case"NUMERIC":return af;case"STARS":return sf;default:return nf}})();return cp.jsxs("div",{className:Od("transition-all duration-200 rounded-xl px-4",o?"bg-slate-800/50":"bg-slate-50/50"),children:[cp.jsx("p",{className:Od("text-sm font-semibold text-center mb-3",o?"text-gray-300":"text-gray-500/80"),children:t}),cp.jsxs("div",{className:"flex justify-center items-center",children:["EMOJI"===e&&cp.jsx("div",{className:"flex gap-2 justify-center items-center",children:h.map(e=>cp.jsx("button",{onClick:()=>f(e.value),disabled:n||g,className:Od("flex items-center justify-center text-2xl transition-transform","bg-transparent border-0 p-0 cursor-pointer","hover:scale-110 active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed","focus:outline-none focus:ring-0","rounded-md focus-visible:ring-2 focus-visible:ring-blue-700",l===e.value?"":"opacity-80"),children:cp.jsx("span",{role:"img","aria-label":`${s("rate")} ${e.value}`,children:e.label})},e.value))}),"THUMBS"===e&&cp.jsx("div",{className:"flex gap-6 justify-center items-center",role:"group","aria-label":s("rateExperience"),children:h.map(e=>cp.jsx("button",{"aria-label":1===e.value?s("thumbsUp"):s("thumbsDown"),onClick:()=>f(e.value),disabled:n||g,className:Od("w-10 h-10 rounded-xl border flex items-center justify-center shadow-md text-2xl transition-all","hover:scale-105 active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed","drop-shadow-md",o?"bg-gray-700 border-gray-600 hover:bg-gray-600":"bg-white border-gray-100 hover:bg-gray-50",l===e.value&&"ring-2 ring-primary/40 scale-110"),style:{borderColor:l===e.value?a:void 0},children:cp.jsx("span",{className:"drop-shadow-md","aria-hidden":"true",children:e.label})},e.value))}),"NUMERIC"===e&&cp.jsx("div",{className:"flex gap-2 justify-center items-center",role:"group","aria-label":s("rateExperience"),children:h.map(e=>cp.jsx("button",{"aria-label":`${s("rate")} ${e.value}`,onClick:()=>f(e.value),disabled:n||g,className:Od("w-10 h-10 rounded-lg flex items-center justify-center text-sm font-semibold transition-all","hover:scale-105 active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed",l===e.value?"ring-2 ring-primary/40 scale-110 shadow-md text-white":o?"bg-gray-700 border border-gray-600 text-gray-300 hover:bg-gray-600":"bg-white border border-gray-200 text-gray-700 hover:bg-gray-50"),style:{backgroundColor:l===e.value?a:void 0,borderColor:l===e.value?a:void 0},children:e.label},e.value))}),"STARS"===e&&cp.jsx("div",{className:"flex gap-2 justify-center items-center",onMouseLeave:()=>d(null),children:h.map(e=>{const t=u===e.value;return cp.jsx("button",{onClick:()=>f(e.value),onMouseEnter:()=>d(e.value),disabled:n||g,className:Od("flex items-center justify-center text-2xl","bg-transparent border-0 p-0 cursor-pointer focus:outline-none","rounded-md focus-visible:ring-2 focus-visible:ring-blue-700","disabled:opacity-50 disabled:cursor-not-allowed"),style:{transform:t?"scale(1.25)":"scale(1)",filter:t?"brightness(1.1) drop-shadow(0 2px 4px rgba(0,0,0,0.15))":"none",opacity:t?1:.6,transition:"all 0.2s ease"},"aria-label":`${s("rate")} ${e.value}`,children:cp.jsx("span",{"aria-hidden":"true",children:e.label})},e.value)})})]}),g&&cp.jsx("p",{"aria-live":"polite",className:Od("text-xs mt-3 text-center",o?"text-slate-400":"text-slate-500"),children:s("submittingFeedback")})]})};async function cf({apiBaseUrl:e,conversationId:t,chip:r,submitText:n,position:o,source:a="widget",getAuthToken:i,enabled:s=!0}={}){try{if(!1===s)return!1;if(!e||"string"!=typeof e)return!1;if(!t||"string"!=typeof t)return!1;const l=function({chip:e,submitText:t,position:r,conversationId:n,source:o="widget"}={}){const a=e&&"object"==typeof e,i=a&&"string"==typeof e.text?e.text:"",s="string"==typeof t&&t?t:a&&"string"==typeof e.submitText?e.submitText:"string"==typeof e?e:"",l=i||s;if(!l)return null;const c={conversationId:n,chipText:l,submitText:s||void 0,position:Number.isInteger(r)?r:void 0,source:o},u=a?e?.promptId:void 0;return"string"==typeof u&&u&&(c.promptId=u),c}({chip:r,submitText:n,position:o,conversationId:t,source:a});if(!l)return!1;const c=`${e.replace(/\/$/,"")}/api/v1/support/chip-click`,u=JSON.stringify(l);let d;if("function"==typeof i)try{d=await i()}catch{d=void 0}if(!d&&"undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon&&"undefined"!=typeof Blob)try{if(navigator.sendBeacon(c,new Blob([u],{type:"application/json"})))return!0}catch{}if("function"!=typeof fetch)return!1;const g={"Content-Type":"application/json"};return d&&(g.Authorization=`Bearer ${d}`),await fetch(c,{method:"POST",headers:g,credentials:"include",keepalive:!0,body:u}),!0}catch{return!1}}const uf="#ffffff",df="#f5f5f5",gf="#000000",pf="#1f2937",ff="#f3f4f6",hf="#2563eb",mf="eshal:widget:size",bf=(e,t)=>!e||(e=>e?.trim().toLowerCase())(e)===t,yf=e=>(e instanceof Date?e:new Date(e)).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}).replace(/am|pm/i,e=>e.toUpperCase()),vf=e=>{const t=(e||"EMOJI").toString().trim().toUpperCase();return"THUMBS"===t||"THUMB"===t?"THUMBS":"STARS"===t||"STAR"===t?"STARS":"NUMERIC"===t||"NUMBER"===t?"NUMERIC":"EMOJI"},wf=({isOpen:e,isMinimized:t,isDark:r,onStopGeneration:n,primaryColor:o,textColor:a,conciergeName:i,companyName:s,companyLogo:l,chatbotAvatarEnabled:c,chatbotAvatar:u,messages:d,isLoading:g,isConversationLoading:p=!1,inputValue:f,setInputValue:h,onSend:m,onDirectSend:b,onToggleTheme:y,onMinimize:v,onClose:w,quickQuestions:k=[],quickQuestionsEnabled:x,onQuickQuestion:C,quickQuestionsLayout:S="vertical",agentMessageBubbleColor:M,userMessageBoxColor:T,assistantTextColor:P,userTextColor:z,fontFamily:j="Inter",agentMessageBubbleFontFamily:E,agentMessageBubbleFontSize:F,userMessageBubbleFontFamily:L,userMessageBubbleFontSize:N,fontSize:R="14px",defaultLanguage:A="en",onDecision:_,headerTextBold:B=!1,headerTextItalic:D=!1,headerTextColor:O,headerFontFamily:U,headerFontSize:V,subtitle:$=null,showStatus:H=!1,statusMode:q="always",officeHours:W=null,enableVoiceInteraction:K=!1,isVoiceSessionActive:Q=!1,voiceStatus:Y="idle",voiceError:G=null,voiceConclusionForCsat:J=!1,onVoiceToggle:X,onBidiSubmit:Z,disclaimerEnabled:ee=!1,disclaimerText:te,disclaimerPosition:re="top",disclaimerLinkUrl:ne,disclaimerLinkLabel:oe,showPoweredBy:ae=!0,apiBaseUrl:ie,apiKey:se,getAuthToken:le,conversationId:ce,conciergeId:ue,onboardingQuestions:de=[],onboardingActive:ge=!1,onboardingCompleted:pe=!1,onOnboardingFormSubmit:fe,collectionPrompt:he,csatEnabled:me=!1,csatFormat:be="EMOJI",csatPrompt:ye="How was your experience?",csatRequest:ve=null,onPromptSuggestionClick:we,onboardingEnabled:ke=!1,onResetConversation:xe,sessionExpiringSoon:Ce=!1,autoPromptEnabled:Se=!0,autoPromptQuestionDisplay:Me=!0,autoPromptClickTelemetry:Te=!0,allowFeedback:Pe=!0,provideCitations:ze=!0,onFeedback:je,onRetryMessage:Ee,onRefreshChat:Fe,onCopyChat:Le,filterCategories:Ne=[],showFilterStep:Re=!1,widgetFilter:Ae=null,onWidgetFilterChange:_e,onSynthesizeAssistantMessage:Ie,launcherPosition:Be="bottom-right",chatFeatures:De,organizationId:Oe})=>{Vg(j);const Ue=I.useRef(null),Ve=I.useRef(null),$e=I.useMemo(()=>Ld(A),[A]);I.useEffect(()=>{Ve.current?.focus()},[]);const He=I.useCallback((e,t,r)=>{cf({apiBaseUrl:ie,conversationId:ce,chip:t,submitText:null==e?void 0:String(e),position:r,source:"widget",getAuthToken:le,enabled:Te})},[ie,le,ce,Te]),qe=I.useCallback((e,t,r)=>{t&&"object"==typeof t&&He(e,t,r);const n=r&&"object"==typeof r&&r.toolConfirmation?r.toolConfirmation:null;we?we(e):n?b?.(e,void 0,{toolConfirmation:n}):b?.(e)},[we,b,He]),We=Be.includes("right"),Ke=Be.includes("bottom"),[Qe,Ye]=I.useState(()=>{if("undefined"==typeof window)return null;try{const e=window.localStorage.getItem(mf);if(!e)return null;const t=JSON.parse(e);if("number"==typeof t?.width&&"number"==typeof t?.height&&t.width>=320&&t.height>=400)return t}catch{}return null}),Ge=I.useRef(null),Je=I.useRef({x:0,y:0}),Xe=I.useRef({width:380,height:650});I.useEffect(()=>{const e=e=>{const t=Ge.current;if(!t)return;const r=e.clientX-Je.current.x,n=e.clientY-Je.current.y,o={...Xe.current},a=.92*window.innerWidth,i=.85*window.innerHeight;if("corner"===t||"horizontal"===t){const e=We?Xe.current.width-r:Xe.current.width+r;o.width=Math.min(Math.max(320,e),a)}if("corner"===t||"vertical"===t){const e=Ke?Xe.current.height-n:Xe.current.height+n;o.height=Math.min(Math.max(400,e),i)}Ye(o)},t=()=>{Ge.current&&(Ge.current=null,document.body.style.cursor="",document.body.style.userSelect="")};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}},[We,Ke]),I.useEffect(()=>{if(Qe)try{window.localStorage.setItem(mf,JSON.stringify(Qe))}catch{}},[Qe]);const Ze=(e,t)=>{t.preventDefault(),t.stopPropagation(),Ge.current=e,Je.current={x:t.clientX,y:t.clientY},Xe.current=Qe??{width:380,height:650};const r={corner:We===Ke?"nwse-resize":"nesw-resize",horizontal:"ew-resize",vertical:"ns-resize"};document.body.style.cursor=r[e],document.body.style.userSelect="none"},[et,tt]=I.useState(!1),[rt,nt]=I.useState(()=>{try{return Yd(Oe)?.csatSubmitted??!1}catch{return!1}}),[ot,at]=I.useState(!1),[it,st]=I.useState(!1),[lt,ct]=I.useState(0),[ut,dt]=I.useState(""),[gt,pt]=I.useState(!1);I.useEffect(()=>{try{const e=Yd(Oe)?.csatSubmitted??!1;nt(e),e&&tt(!1)}catch{}},[ce]),function(e,t=[],r={}){const{enabled:n=!0,threshold:o=30,behavior:a="smooth",delay:i=0}=r,s=I.useRef(!0);I.useRef(0),I.useEffect(()=>{if(!n||!e.current)return;const t=e.current,r=()=>{const e=t.scrollHeight-t.scrollTop-t.clientHeight;s.current=e<o},l=()=>{r()};t.addEventListener("scroll",l,{passive:!0}),r();const c=setTimeout(()=>{s.current&&t&&t.scrollTo({top:t.scrollHeight,behavior:a})},i);return()=>{t.removeEventListener("scroll",l),clearTimeout(c)}},[e,n,o,a,i,...t])}(Ue,[d,g],{enabled:!0,threshold:30,behavior:"smooth",delay:0});const ft=Pd(A),ht=I.useMemo(()=>r?bf(M,uf)?pf:M||pf:M||uf,[M,r]),mt=I.useMemo(()=>r?bf(a,gf)?ff:a||ff:a||gf,[r,a]),bt=I.useMemo(()=>r?bf(T,df)?o||hf:T||o||hf:T||df,[r,o,T]),yt=$e(it?"conversationResolved":"typeYourMessage"),vt=d?.some?.(e=>"user"===e.role),wt=I.useMemo(()=>(d||[]).filter(e=>"user"===e.role).length,[d]),[kt,xt]=I.useState(0),Ct=Ae?.category?(Ne||[]).find(e=>e.id===Ae.category):null,St=I.useCallback(e=>{if(!_e)return;const t=Ae?.category||null;if(e){if(_e({category:e,tags:[]}),xt(wt),!vt&&e!==t&&Ie){const t=(Ne||[]).find(t=>t.id===e),r=t?.label||e,n=$e("categoryTopicsHeading").replace("{category}",r);Ie(n,{replaceMarker:"category-intro"})}}else _e(null)},[_e,Ae,wt,Ne,vt,Ie,$e]);I.useCallback(e=>{const t=Ae?.category||Ct?.id;t&&_e&&_e({category:t,tags:[e]}),b&&b(e)},[Ae,Ct,_e,b]);const Mt=Array.isArray(Ne)&&Ne.length>0,Tt=Mt&&!vt&&!Ae?.category,Pt=!vt&&k.length>0&&x&&!Ae?.category,zt=de&&de.length>0,jt=Boolean(me),Et=ke&&zt&&!pe,Ft=I.useCallback(async()=>{if(jt&&!gt&&!it&&0!==lt){pt(!0);try{const e={"Content-Type":"application/json"};if("function"==typeof le){const t=await le();t&&(e.Authorization=`Bearer ${t}`)}const t=vf(be);(await fetch(`${ie.replace(/\/$/,"")}/api/v1/support/csat`,{method:"POST",headers:e,credentials:"include",body:JSON.stringify({conversationId:ce,rating:String(lt),ratingFormat:t,conciergeId:ue,feedback:ut||void 0})})).ok&&(at(!1),ct(0),dt(""),_e&&_e(null),Fe?Fe():xe&&xe())}catch(e){}finally{pt(!1)}}},[jt,gt,it,lt,ut,ce,le,ue,ie,be,xe,Fe,_e]),Lt=I.useCallback(()=>{if(!jt||!ce||!vt)return _e&&_e(null),Fe?Fe():xe&&xe(),void w?.();ot?(at(!1),w?.()):it?w?.():at(!0)},[jt,ce,vt,ot,it,w,_e,Fe,xe]);I.useEffect(()=>{jt||(ot&&at(!1),it&&st(!1),0!==lt&&ct(0),ut&&dt(""))},[jt,ot,it,lt,ut]);const Nt=I.useMemo(()=>{if(!d||!Array.isArray(d))return[];for(let e=d.length-1;e>=0;e-=1)if("assistant"===d[e]?.role){const t=d[e].prompts;return Array.isArray(t)?t:[]}return[]},[d]),Rt=I.useRef([]);I.useEffect(()=>{Nt.length>0?Rt.current=Nt:d&&0!==d.length&&d.some(e=>"user"===e.role)||(Rt.current=[])},[Nt,d]);const At=I.useRef(wt);I.useEffect(()=>{wt!==At.current&&(At.current=wt,Rt.current=[])},[wt]);const _t=Array.isArray(d)&&d.some(e=>"user"===e?.role),It=Nt.length>0?Nt:_t?Rt.current:[];I.useEffect(()=>{if(!me)return;if(!et)return;if(rt)return;const e=Ue.current;if(!e)return;const t=window.requestAnimationFrame(()=>{e.scrollTo({top:e.scrollHeight,behavior:"smooth"})});return()=>{window.cancelAnimationFrame(t)}},[et,me,rt]);const Bt=()=>{const e=vf(be);if("STARS"===e)return cp.jsx("div",{className:"flex justify-center gap-2 mb-5",role:"group","aria-label":$e("rateExperience"),children:[1,2,3,4,5].map(e=>cp.jsx("button",{"aria-label":`${$e("rate")} ${e}`,onClick:()=>ct(e),className:"transition-all duration-150 hover:scale-110 active:scale-95 bg-transparent border-0 p-0 cursor-pointer",disabled:gt,children:cp.jsx(Lg,{className:Od("w-8 h-8 transition-colors",e<=lt?"text-yellow-400 drop-shadow-sm":r?"text-gray-600":"text-gray-300"),fill:e<=lt?"#FBBF24":"none"})},e))});if("THUMBS"===e)return cp.jsx("div",{className:"flex gap-4 justify-center mb-5",role:"group","aria-label":$e("rateExperience"),children:[{value:"positive",emoji:"👍"},{value:"negative",emoji:"👎"}].map(e=>cp.jsx("button",{"aria-label":"positive"===e.value?$e("thumbsUp"):$e("thumbsDown"),onClick:()=>ct(e.value),disabled:gt,className:Od("w-12 h-12 rounded-xl border flex items-center justify-center text-2xl transition-all hover:scale-105 active:scale-95",lt===e.value?"ring-2 ring-blue-300 scale-110 shadow-lg":"",r?"bg-gray-700 border-gray-600 hover:bg-gray-600":"bg-white border-gray-200 hover:bg-gray-50"),children:cp.jsx("span",{className:"drop-shadow-md",children:e.emoji})},e.value))});return cp.jsx("div",{className:"flex gap-2 justify-center items-center mb-5",role:"group","aria-label":$e("rateExperience"),children:[{value:1,emoji:"😡"},{value:2,emoji:"😕"},{value:3,emoji:"😐"},{value:4,emoji:"😊"},{value:5,emoji:"😍"}].map(e=>cp.jsx("button",{"aria-label":`${$e("rate")} ${e.value}`,onClick:()=>ct(e.value),disabled:gt,className:Od("rounded-full w-10 h-10 flex items-center justify-center text-xl transition-all hover:scale-110 active:scale-95 bg-transparent border-0 p-0 cursor-pointer",lt===e.value?"ring-2 ring-blue-100 scale-125 bg-gradient-to-b from-yellow-200 to-yellow-400 shadow-md":"grayscale-[0.3] opacity-80 hover:grayscale-0"),children:cp.jsx("span",{role:"img","aria-label":`${$e("rate")} ${e.value}`,className:"drop-shadow-sm filter",children:e.emoji})},e.value))})};if(!e)return null;const Dt=!t&&Qe?{width:Qe.width,height:Qe.height,maxWidth:"92vw",maxHeight:"85vh"}:void 0;return cp.jsxs("div",{dir:ft?"rtl":"ltr",className:"relative flex-shrink-0 z-50 "+(t?"w-80 h-auto":""),style:Dt,children:[!t&&cp.jsxs(cp.Fragment,{children:[cp.jsx("div",{onMouseDown:e=>Ze("horizontal",e),className:"absolute top-0 h-full w-1.5 cursor-ew-resize hover:bg-blue-500/20 transition-colors z-[70] "+(We?"left-0":"right-0"),"aria-hidden":!0}),cp.jsx("div",{onMouseDown:e=>Ze("vertical",e),className:"absolute left-0 w-full h-1.5 cursor-ns-resize hover:bg-blue-500/20 transition-colors z-[70] "+(Ke?"top-0":"bottom-0"),"aria-hidden":!0})]}),cp.jsxs("div",{id:"chat-window-panel",ref:Ve,role:"dialog","aria-modal":"true","aria-label":$e("openChat"),tabIndex:-1,className:`relative focus:outline-none ${Qe||t?"":"w-[380px]"} ${Qe||t?"":"h-[650px]"} ${t?"w-80 h-auto":""} ${Qe&&!t?"w-full h-full":""} max-w-[92vw] border rounded-2xl shadow-2xl bg-white border-gray-200 flex flex-col ${t?"":"max-h-[85vh]"} overflow-hidden ${r?"bg-gray-900 border-gray-700":""}`,children:[!t&&cp.jsx("div",{onMouseDown:e=>Ze("corner",e),"aria-hidden":"true",className:`absolute w-4 h-4 ${We===Ke?"cursor-nwse-resize":"cursor-nesw-resize"} text-gray-400 hover:text-blue-500 transition-colors z-[71] flex p-0.5 ${Ke?"top-0 items-start":"bottom-0 items-end"} ${We?"left-0 justify-start":"right-0 justify-end"}`,children:cp.jsx("svg",{viewBox:"0 0 12 12",className:"w-3 h-3 "+(Ke&&We?"rotate-180":Ke?"-rotate-90":We?"rotate-90":""),"aria-hidden":!0,children:cp.jsx("path",{d:"M11 1 L1 11 M11 5 L5 11 M11 9 L9 11",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinecap:"round"})})}),cp.jsx(Zp,{conciergeName:i,companyName:s,companyLogo:l,primaryColor:o,isDark:r,isMinimized:t,textColor:mt,fontFamily:j,fontSize:R,onToggleTheme:y,onMinimize:v,onClose:Lt,headerTextBold:B,headerTextItalic:D,headerTextColor:O,headerFontFamily:U,headerFontSize:V,subtitle:$,showStatus:H,statusMode:q,officeHours:W,onRefreshChat:Fe,onCopyChat:Le,defaultLanguage:A}),!t&&Mt&&!Tt&&!(ot&&!it)&&!(ge&&!pe)&&cp.jsx(tf,{categories:Ne,selectedCategoryId:Ae?.category||null,onSelect:St,isDark:r,primaryColor:o,fontFamily:j,isRtl:ft,defaultLanguage:A}),!t&&cp.jsxs(cp.Fragment,{children:[cp.jsx("div",{ref:Ue,role:"log","aria-live":"polite",className:`chat-messages flex-1 overflow-y-auto px-3 py-4 space-y-4 ${r?"bg-gray-900":"bg-gradient-to-b from-gray-50/50 to-white"} break-words`,children:ot&&!it?cp.jsx("div",{className:"animate-in slide-in-from-top-4 fade-in duration-300 mt-4 mx-2",children:cp.jsxs("div",{className:Od("w-full rounded-3xl p-6 shadow-lg",r?"bg-gray-800 shadow-black/20":"bg-white shadow-gray-200/80"),children:[cp.jsx("p",{className:Od("text-sm font-medium text-center mb-5 [font-family:inherit]",r?"text-gray-300":"text-gray-500"),children:ye||$e("feedbackPrompt")}),Bt(),cp.jsx("textarea",{"aria-label":$e("feedbackPlaceholder"),value:ut,onChange:e=>{e.target.value.length<=1e3&&dt(e.target.value)},maxLength:1e3,placeholder:$e("feedbackPlaceholder"),rows:4,disabled:gt,className:Od("w-full rounded-xl border px-4 py-3 text-sm [font-family:inherit] resize-none outline-none transition-colors mb-5",r?"bg-gray-700 border-gray-600 text-gray-100 placeholder-gray-400":"bg-gray-50 border-gray-200 text-gray-900 placeholder-gray-400")}),cp.jsxs("div",{className:"relative group",children:[cp.jsx("button",{onClick:Ft,disabled:0===lt||gt,"aria-describedby":0===lt?"resolve-rating-hint":void 0,className:Od("w-full py-3.5 rounded-xl text-sm font-semibold [font-family:inherit] transition-all duration-200 border-none outline-none focus:outline-none active:outline-none focus:ring-0 active:ring-0","disabled:opacity-50 disabled:cursor-not-allowed","focus-visible:ring-2 focus-visible:ring-blue-700",r?"bg-gray-700 text-gray-100 hover:bg-gray-600":"bg-gray-100 text-gray-700 hover:bg-gray-200"),children:$e(gt?"submitting":"submitFeedback")}),0===lt&&!gt&&cp.jsx("div",{id:"resolve-rating-hint",role:"tooltip",className:"absolute -top-8 left-1/2 -translate-x-1/2 whitespace-nowrap px-2 py-1 rounded-md text-xs bg-gray-800 text-white opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none",children:$e("selectRatingFirst")})]})]})}):ge&&!pe&&fe?cp.jsx(ef,{questions:de,onPromptSuggestionClick:qe,collapsiblePrompt:he,onSubmit:fe,primaryColor:o,isRtl:ft,isDark:r,defaultLanguage:A,fontFamily:j}):cp.jsxs(cp.Fragment,{children:[Ce&&cp.jsx("div",{role:"status",className:"mx-3 mt-1 mb-2 rounded-lg px-3 py-2 text-xs font-medium "+(r?"bg-amber-900/40 text-amber-200 border border-amber-700/50":"bg-amber-50 text-amber-800 border border-amber-200"),children:$e("sessionExpiringSoon")}),cp.jsx(Ip,{messages:d,isDark:r,primaryColor:o,isLoading:g,agentMessageBubbleColor:M,userMessageBoxColor:T,textColor:a,assistantTextColor:P,userTextColor:z,fontFamily:j,agentMessageBubbleFontFamily:E,agentMessageBubbleFontSize:F,userMessageBubbleFontFamily:L,userMessageBubbleFontSize:N,fontSize:R,formatTime:yf,isRtl:ft,defaultLanguage:A,quickQuestions:k,shouldShowQuickQuestions:Pt,onQuickQuestion:C??b,quickQuestionsLayout:S,onDecision:_,disclaimerEnabled:ee,disclaimerText:te,disclaimerPosition:re,disclaimerLinkUrl:ne,disclaimerLinkLabel:oe,resolvedAgentBubbleColor:ht,resolvedUserMessageColor:bt,resolvedTextColor:mt,isVoiceSessionActive:Q,voiceStatus:Y,messagesContainerRef:Ue,companyLogo:l,chatbotAvatarEnabled:c,chatbotAvatar:u,conciergeName:i,companyName:s,apiBaseUrl:ie,getAuthToken:le,onPromptSuggestionClick:qe,conversationResetKey:ce,allowFeedback:Pe,provideCitations:ze,onFeedback:je,onRetryMessage:Ee,headerTextColor:O,beforePromptsSlot:Tt?cp.jsx(rf,{categories:Ne,selectedCategoryId:Ae?.category||null,onSelect:St,isDark:r,primaryColor:o,fontFamily:j,fontSize:R,isRtl:ft,label:$e("chooseTopicLabel"),regionLabel:$e("categoryFilter")}):null,quickQuestionsHeadingLabel:Mt?$e("quickQuestionsHeadingLabel"):void 0}),(et&&me||ve)&&!rt&&cp.jsx("div",{className:"","data-testid":"widget-csat-card",children:cp.jsx(lf,{format:vf(ve?.format||be),prompt:ve?.prompt||ye||$e("howWasYourExperience"),onRating:async(e,t)=>{nt(!0),tt(!1),(e=>{try{const t=Yd(e);if(!t)return;t.csatSubmitted=!0,localStorage.setItem(`${$d}_${e}`,JSON.stringify(t))}catch{}})(Oe);try{const r={"Content-Type":"application/json"};if("function"==typeof le){const e=await le();e&&(r.Authorization=`Bearer ${e}`)}(await fetch(`${ie.replace(/\/$/,"")}/api/v1/support/csat`,{method:"POST",headers:r,credentials:"include",body:JSON.stringify({conversationId:ce,rating:e,ratingFormat:t,conciergeId:ue})})).ok}catch(e){}},disabled:!1,isDark:r,primaryColor:o,defaultLanguage:A})})]})}),!(ge&&!pe)&&cp.jsx(qp,{onStopGeneration:n,inputValue:f,setInputValue:h,onSend:m,isDark:r,primaryColor:o,isOpen:e,isMinimized:t,isLoading:g,isConversationLoading:p,placeholder:yt,textColor:mt,fontFamily:j,userMessageBubbleFontFamily:L,userMessageBubbleFontSize:N,fontSize:R,isRtl:ft,csatVisible:et&&me&&!rt||jt&&(ot||it),enableVoiceInteraction:K,isVoiceSessionActive:Q,voiceStatus:Y,voiceError:G,onVoiceToggle:X,onBidiSubmit:Z,disclaimerEnabled:ee,disclaimerText:te,disclaimerPosition:re,disclaimerLinkUrl:ne,disclaimerLinkLabel:oe,showPoweredBy:ae,defaultLanguage:A,onboardingQuestions:de,onboardingActive:ge,onboardingCompleted:pe,onboardingEnabled:ke,userMessageBoxColor:T,resolvedUserMessageColor:bt,userTextColor:z,promptSuggestions:ot||it||!1===Se||g?[]:It,onPromptSuggestionClick:qe,autoPromptQuestionDisplay:Me,tagSelectorNode:null,showResolveButton:jt&&vt&&!it&&!ot&&!et&&!Et,onResolve:()=>{jt&&at(!0)},chatFeatures:De,apiEndpoint:ie,organizationId:Oe,conversationId:ce})]})]})]})},kf=new Map;const xf={whatsapp:["wa.me","api.whatsapp.com"],telegram:["t.me"],messenger:["m.me"],instagram:["ig.me","instagram.com","www.instagram.com"]},Cf={whatsapp:"WhatsApp",telegram:"Telegram",messenger:"Messenger",instagram:"Instagram"};const Sf=I.forwardRef(({isDark:e,primaryColor:t,onToggle:r,textColor:n,headerTextColor:o,defaultLanguage:a="en",isOpen:i=!1,className:s,channelLinks:l},c)=>{const u=I.useMemo(()=>Ld(a),[a]),d=I.useMemo(()=>function(e){if(!Array.isArray(e))return[];const t=[];for(let r=0;r<e.length;r+=1){const n=e[r];if(!n||"object"!=typeof n)continue;const o="string"==typeof n.type?n.type.toLowerCase():"",a=Object.prototype.hasOwnProperty.call(xf,o)?xf[o]:void 0;if(!a||"string"!=typeof n.url)continue;let i;try{i=new URL(n.url)}catch(e){continue}"https:"===i.protocol&&-1!==a.indexOf(i.hostname.toLowerCase())&&t.push({type:o,url:i.toString(),label:"string"==typeof n.label&&n.label.trim()?n.label.trim():Cf[o]})}return t}(l),[l]),[g,p]=I.useState(!1),f=d.length>0,h=I.useRef(null),m=I.useRef(null),b=I.useCallback(e=>{m.current=e,"function"==typeof c?c(e):c&&(c.current=e)},[c]),y=f&&g&&!i;I.useEffect(()=>{y&&function(e,t=Yp){const[r]=Jp(e,t);r?.focus()}(h.current)},[y]);const v=t,w=o||"#FFFFFF",k={display:"block",width:"100%",padding:"8px 12px",textAlign:"start",fontSize:"14px",color:e?"#F1F5F9":"#0F172A",background:"transparent",border:"none",borderRadius:"6px",textDecoration:"none",cursor:"pointer"};return cp.jsxs("div",{className:`relative ${s||""}`,children:[y&&cp.jsxs("div",{ref:h,role:"menu","aria-label":u("chooseChannel"),tabIndex:-1,onKeyDown:e=>{if("Escape"===e.key)return e.preventDefault(),p(!1),void m.current?.focus();Xp(e,h.current)},"data-testid":"channel-picker",style:{position:"absolute",bottom:"76px",right:0,minWidth:"180px",padding:"6px",borderRadius:"8px",border:"1px solid "+(e?"#334155":"#E2E8F0"),background:e?"#1E293B":"#FFFFFF",boxShadow:"0 10px 30px rgba(15, 23, 42, 0.15)"},children:[cp.jsx("button",{type:"button",role:"menuitem",style:k,onClick:()=>{p(!1),r?.()},children:u("chatHere")}),d.map(e=>cp.jsx("a",{role:"menuitem",href:e.url,target:"_blank",rel:"noopener noreferrer",style:k,onClick:()=>p(!1),children:e.label},`${e.type}-${e.url}`))]}),cp.jsxs("button",{ref:b,onClick:()=>{!f||i?r?.():p(e=>!e)},className:"group relative w-16 h-16 rounded-full shadow-2xl transition-all duration-300 flex items-center justify-center text-white overflow-hidden hover:scale-110",style:{background:`linear-gradient(135deg, ${v} 0%, ${v}dd 100%)`,boxShadow:`0 10px 30px ${v}40`,border:"none"},"aria-label":u(i?"closeChat":"openChat"),"aria-expanded":f&&g||i,"aria-haspopup":f?"menu":void 0,"aria-controls":"chat-window-panel",children:[cp.jsx("div",{className:"absolute inset-0 rounded-full bg-white/20 scale-0 group-hover:scale-100 transition-transform duration-500"}),cp.jsx("div",{className:"relative z-10 transition-transform duration-300",children:cp.jsx(Tg,{className:"w-7 h-7",style:{color:w}})})]})]})});Sf.displayName="ToggleButton";const Mf="0.2.29";const Tf=({getAuthToken:e,apiBaseUrl:t,darkMode:r,primaryColor:n,position:o,companyName:a,conciergeName:i,companyLogo:s,welcomeMessage:l,quickQuestions:c,quickQuestionsEnabled:u,quickQuestionsLayout:d="vertical",textColor:g,agentMessageBubbleColor:p,userMessageBoxColor:f,assistantTextColor:h,userTextColor:m,fontFamily:b,fontSize:y,defaultLanguage:v,apiKey:w,agentMessageBubbleFontFamily:k,agentMessageBubbleFontSize:x,userMessageBubbleFontFamily:C,userMessageBubbleFontSize:S,autoOpen:M=!1,openDelay:T=0,locale:P,className:z="",headerTextBold:j,headerTextItalic:E,enableVoiceInteraction:F,disclaimerEnabled:L,disclaimerText:N,disclaimerPosition:R,disclaimerLinkUrl:A,disclaimerLinkLabel:_,showPoweredBy:B,onboardingQuestions:D,collectionPrompt:O,allowedDomains:U,onboardingEnabled:V,wsBaseUrl:$,channelLinks:H})=>{const[q,W]=I.useState(null),[K,Q]=I.useState(!0),[Y,G]=I.useState(null),[J,X]=I.useState(!1),Z=I.useRef(!1);I.useEffect(()=>{if(Z.current)return;(async()=>{if(!t)return G("apiBaseUrl is required"),void Q(!1);try{Q(!0);const r=await(async(e,t)=>{if(!e)throw new Error("apiBaseUrl is required");try{const r=e.replace(/\/$/,""),n=Mf?`${r}/api/v1/deploy-agent?wv=${encodeURIComponent(Mf)}`:`${r}/api/v1/deploy-agent`,o={"Content-Type":"application/json"};if("function"==typeof t){const e=await t();e&&(o.Authorization=`Bearer ${e}`)}const a=await fetch(n,{method:"GET",headers:o,credentials:"include"});if(404===a.status)return null;if(!a.ok)throw new Error(`HTTP error! status: ${a.status}`);return await a.json()}catch(e){throw e}})(t,e);if(null===r)return Z.current=!0,X(!0),W(null),void G(null);!function(e,t){if(!e||"report"!==e.mode&&"enforce"!==e.mode)return;let r="";try{r=new URL(t).origin}catch{r=""}e.mode,new Set((Array.isArray(e.hosts)?e.hosts:[]).map(e=>String(e).toLowerCase()))}(r.chatImagePolicy,t),W(r),G(null)}catch(e){G(e.message||"Failed to load configuration")}finally{Q(!1)}})()},[t,e]);const ee=I.useMemo(()=>{if(!q)return null;const e=q.config??{},t=e.identity??{},d=e.branding??{},w=e.typography??{},M=e.messages??{},T=e.voice??{},P=e.onboarding??{},z=e.disclaimer??{},I=e.csat??{},$=e.inactivity??{},W=e.behavior??{},K=e.security??{},Q=e.layout??{},Y=v??M.defaultLocale??"en",G=M.bundles?.[Y]??{},J=M.bundles?.en??{},X={welcome:G.welcome||J.welcome,fallback:G.fallback||J.fallback,quickQuestions:Array.isArray(G.quickQuestions)&&G.quickQuestions.length>0?G.quickQuestions:J.quickQuestions},Z=U??K.allowedDomains??(K.domains??[]).map(e=>"string"==typeof e?e:e.domain).filter(Boolean)??[];return{darkMode:r??!1,primaryColor:n??d.brandColor??"#2563eb",companyName:a??t.companyName??"Support Team",conciergeName:i??t.conciergeName,companyLogo:s??d.avatar??null,chatbotAvatarEnabled:d.chatbotAvatarEnabled??!1,chatbotAvatar:d.chatbotAvatar??null,welcomeMessage:l??X.welcome??"Hi! How can we help?",fallbackMessage:X.fallback,quickQuestions:c??X.quickQuestions??[],quickQuestionsEnabled:u??M.quickQuestionsEnabled,textColor:g??"#000000",agentMessageBubbleColor:p??w.agentMessageBubbleColor,userMessageBoxColor:f??w.userMessageBoxColor,assistantTextColor:h??w.assistantTextColor??"#000000",userTextColor:m??w.userTextColor??"#000000",fontFamily:b??w.agentMessageBubbleFontFamily??"Inter",fontSize:y??w.agentMessageBubbleFontSize??"14px",defaultLanguage:Y,headerTextBold:j??w.headerTextBold??!1,headerTextItalic:E??w.headerTextItalic??!1,headerTextColor:w.headerTextColor??"#FFFFFF",headerFontFamily:w.headerFontFamily,headerFontSize:w.headerFontSize,subtitle:t.subtitle??null,showStatus:t.showStatus??!1,statusMode:t.statusMode??"always",officeHours:t.officeHours??null,enableVoiceInteraction:F??T.enableVoiceInteraction??!1,disclaimerEnabled:L??z.enabled??!1,disclaimerText:N??z.text,disclaimerPosition:R??(ee=z.position,ee?ee.toLowerCase():"top"),disclaimerLinkUrl:Dd(A??z.linkUrl),disclaimerLinkLabel:_??z.linkLabel,showPoweredBy:B??d.showPoweredBy??!0,onboardingQuestions:D??P.questions??[],collectionPrompt:O??P.collapsiblePrompt??"Before we begin, I need to verify your details.",allowedDomains:Z,launcherPosition:o??(e=>e?e.toLowerCase().replace(/_/g,"-"):"bottom-right")(Q.launcherPosition),onboardingEnabled:V??P.enabled??!1,inactivityTimeoutValue:$.timeoutValue??null,inactivityTimeoutUnit:$.timeoutUnit??null,agentMessageBubbleFontFamily:k??w.agentMessageBubbleFontFamily??b??"Inter",agentMessageBubbleFontSize:x??w.agentMessageBubbleFontSize??y??"14px",userMessageBubbleFontFamily:C??w.userMessageBubbleFontFamily??b??"Inter",userMessageBubbleFontSize:S??w.userMessageBubbleFontSize??y??"14px",csatEnabled:I.enabled??!1,csatFormat:I.format??"EMOJI",csatPrompt:I.prompt??"How was your experience?",autoPromptEnabled:W.autoPromptEnabled??!0,autoPromptQuestionDisplay:W.autoPromptQuestionDisplay??!0,autoPromptClickTelemetry:W.autoPromptClickTelemetry??!0,allowFeedback:W.allowFeedback??!0,provideCitations:W.provideCitations??!0,organizationId:q.organizationId??null,chatFeatures:e.chatFeatures??null,channelLinks:H??e.channelLinks??null};var ee},[H,q,r,n,o,a,i,s,l,c,u,g,p,f,h,m,b,y,v,j,E,F,L,N,R,_,A,B,D,V,O,U,k,x,C,S]),te=I.useMemo(()=>!ee||((e=[])=>{if("undefined"==typeof window)return!1;const t=window.location.hostname.toLowerCase(),r=window.location.host.toLowerCase();return!(!e||0===e.length)&&e.some(e=>{const n=e.toLowerCase().trim();return n.includes(":")?r===n:t===n||t.endsWith("."+n)})})(ee.allowedDomains),[ee]),re=I.useMemo(()=>({welcomeMessage:"Hi! How can we help?",quickQuestions:[],apiBaseUrl:t||"",apiKey:w||"",getAuthToken:e,autoOpen:!1,openDelay:0,darkMode:!1,enableVoiceInteraction:!1,onboardingQuestions:[],onboardingEnabled:!1,collectionPrompt:void 0}),[t,w,e]),{isOpen:ne,isMinimized:oe,isDark:ae,messages:ie,inputValue:se,isLoading:le,widgetRef:ce,setInputValue:ue,handleSend:de,stopGeneration:ge,handleQuickQuestion:pe,sendMessage:fe,retryMessage:he,toggleChat:me,toggleTheme:be,toggleMinimize:ye,closeChat:ve,handleDecision:we,isVoiceSessionActive:ke,voiceStatus:xe,voiceError:Ce,voiceConclusionForCsat:Se,handleVoiceToggle:Me,sendBidiTextMessage:Te,onboardingActive:Pe,onboardingCompleted:ze,handleOnboardingFormSubmit:je,conversationId:Ee,resetConversation:Fe,sessionExpiringSoon:Le,updateMessageFeedback:Ne,widgetFilter:Re,setWidgetFilter:Ae,addAssistantMessage:_e,csatRequest:Ie}=ug(ee?{welcomeMessage:ee.welcomeMessage,fallbackMessage:ee.fallbackMessage,quickQuestions:ee.quickQuestions,apiBaseUrl:t,wsBaseUrl:$??q?.wsBaseUrl,apiKey:w,locale:ee.defaultLanguage||P,organizationId:ee.organizationId,getAuthToken:e,autoOpen:M,openDelay:T,darkMode:ee.darkMode,enableVoiceInteraction:ee.enableVoiceInteraction,onboardingQuestions:ee.onboardingQuestions,onboardingEnabled:ee.onboardingEnabled,collectionPrompt:ee.collectionPrompt,provideCitations:ee.provideCitations,inactivityTimeoutValue:ee.inactivityTimeoutValue,inactivityTimeoutUnit:ee.inactivityTimeoutUnit,messageLimits:q?.messageLimits}:re),Be=I.useRef(null),De=I.useRef(ne);I.useEffect(()=>{De.current&&!ne&&Be.current?.focus(),De.current=ne},[ne]);const Oe=I.useCallback((r,n,o)=>{if(Ne(r,n),!Ee||!t)return;const a=t.replace(/\/$/,"");(async()=>{try{const t={"Content-Type":"application/json"};if("function"==typeof e){const r=await e();r&&(t.Authorization=`Bearer ${r}`)}await fetch(`${a}/api/v1/support/feedback`,{method:"POST",headers:t,credentials:"include",body:JSON.stringify({messageContent:r,conversationId:Ee,feedback:n,feedbackText:o})})}catch(e){}})()},[Ee,t,e,Ne]),Ue=I.useCallback(()=>{Fe&&Fe()},[Fe]),{categories:Ve,hasFilters:$e}=function(e,t){const r=!!e,[n,o]=I.useState({categories:[],loading:r,error:null});I.useEffect(()=>{if(!e)return void o({categories:[],loading:!1,error:null});const r=t?`${e}|__session__`:`${e}|__proxy__`,n=kf.get(r);if(n)return void o({categories:n,loading:!1,error:null});let a=!1;o(e=>({...e,loading:!0,error:null}));const i=`${e.replace(/\/$/,"")}/api/v1/widget/filters`;return(async()=>{try{const e={Accept:"application/json"};if("function"==typeof t){const r=await t();r&&(e.Authorization=`Bearer ${r}`)}const n=await fetch(i,{method:"GET",headers:e});if(!n.ok)throw new Error(`filter catalog HTTP ${n.status}`);const s=await n.json(),l=Array.isArray(s?.categories)?s.categories:[];if(a)return;kf.set(r,l),o({categories:l,loading:!1,error:null})}catch(e){if(a)return;o({categories:[],loading:!1,error:e})}})(),()=>{a=!0}},[e,t]);const a=I.useMemo(()=>Array.isArray(n.categories)&&n.categories.length>0,[n.categories]);return{...n,hasFilters:a}}(t,e),He=I.useCallback(()=>{const e=ie.filter(e=>e.content&&""!==e.content.trim()).map(e=>`${"user"===e.role?"You":ee?.conciergeName||"Assistant"}: ${e.content}`).join("\n\n");e&&navigator.clipboard.writeText(e).catch(()=>{})},[ie,ee?.conciergeName]);if(I.useEffect(()=>{ce.current&&ee&&(ce.current.style.setProperty("--cw-primary",ee.primaryColor),ee.fontFamily&&ce.current.style.setProperty("--cw-font-family",ee.fontFamily),ee.textColor&&ce.current.style.setProperty("--cw-text-color",ee.textColor))},[ee,ce]),K)return null;if(J)return null;if(Y||!ee)return null;if(!te)return null;const qe={"bottom-right":"bottom-5 right-5","bottom-left":"bottom-5 left-5","top-right":"top-5 right-5","top-left":"top-5 left-5"};return cp.jsx("div",{id:"chat-widget-root",children:cp.jsxs("div",{ref:ce,className:`chat-widget-root fixed flex flex-col ${ee.launcherPosition?.includes("left")?"items-start":"items-end"} z-[999999] ${ae?"dark":""} ${z} ${qe[ee.launcherPosition]||qe["bottom-right"]}`,children:[cp.jsx(wf,{isOpen:ne,isMinimized:oe,isDark:ae,launcherPosition:ee.launcherPosition,primaryColor:ee.primaryColor,textColor:ee.textColor,companyName:ee.companyName,conciergeName:ee.conciergeName,companyLogo:ee.companyLogo,chatbotAvatarEnabled:ee.chatbotAvatarEnabled,chatbotAvatar:ee.chatbotAvatar,messages:ie,isLoading:le,inputValue:se,setInputValue:ue,onSend:de,onStopGeneration:ge,onDirectSend:fe,onToggleTheme:be,onMinimize:ye,onClose:ve,quickQuestions:ee.quickQuestions,quickQuestionsEnabled:ee.quickQuestionsEnabled,onQuickQuestion:pe,quickQuestionsLayout:d,agentMessageBubbleColor:ee.agentMessageBubbleColor,userMessageBoxColor:ee.userMessageBoxColor,assistantTextColor:ee.assistantTextColor,userTextColor:ee.userTextColor,fontFamily:ee.fontFamily,agentMessageBubbleFontFamily:ee.agentMessageBubbleFontFamily,agentMessageBubbleFontSize:ee.agentMessageBubbleFontSize,userMessageBubbleFontFamily:ee.userMessageBubbleFontFamily,userMessageBubbleFontSize:ee.userMessageBubbleFontSize,fontSize:ee.fontSize,defaultLanguage:ee.defaultLanguage||P,onDecision:we,headerTextBold:ee.headerTextBold,headerTextItalic:ee.headerTextItalic,headerTextColor:ee.headerTextColor,headerFontFamily:ee.headerFontFamily,headerFontSize:ee.headerFontSize,subtitle:ee.subtitle,showStatus:ee.showStatus,statusMode:ee.statusMode,officeHours:ee.officeHours,enableVoiceInteraction:ee.enableVoiceInteraction,isVoiceSessionActive:ke,voiceStatus:xe,voiceError:Ce,voiceConclusionForCsat:Se,onVoiceToggle:Me,onBidiSubmit:()=>Te(se),disclaimerEnabled:ee.disclaimerEnabled,disclaimerText:ee.disclaimerText,disclaimerPosition:ee.disclaimerPosition,disclaimerLinkUrl:ee.disclaimerLinkUrl,disclaimerLinkLabel:ee.disclaimerLinkLabel,showPoweredBy:ee.showPoweredBy,apiBaseUrl:t,apiKey:w,getAuthToken:e,conversationId:Ee,conciergeId:q?.conciergeId??q?.id,onboardingQuestions:ee.onboardingQuestions,onboardingActive:Pe,onboardingCompleted:ze,onOnboardingFormSubmit:je,collectionPrompt:ee.collectionPrompt,csatEnabled:ee.csatEnabled,csatFormat:ee.csatFormat,csatPrompt:ee.csatPrompt,csatRequest:Ie,onboardingEnabled:ee.onboardingEnabled,onResetConversation:Fe,sessionExpiringSoon:Le,autoPromptEnabled:ee.autoPromptEnabled,autoPromptQuestionDisplay:ee.autoPromptQuestionDisplay,autoPromptClickTelemetry:ee.autoPromptClickTelemetry,allowFeedback:ee.allowFeedback,provideCitations:ee.provideCitations,onFeedback:Oe,onRetryMessage:he,onRefreshChat:Ue,onCopyChat:He,filterCategories:Ve,showFilterStep:$e,widgetFilter:Re,onWidgetFilterChange:Ae,onSynthesizeAssistantMessage:_e,chatFeatures:ee.chatFeatures,organizationId:ee.organizationId}),cp.jsx(Sf,{ref:Be,isDark:ae,primaryColor:ee.primaryColor,onToggle:me,textColor:ee.textColor,headerTextColor:ee.headerTextColor,defaultLanguage:ee.defaultLanguage||P,isOpen:ne,className:ne?"hidden":void 0,channelLinks:ee.channelLinks})]})})};class Pf extends I.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){}render(){return this.state.hasError?cp.jsx("div",{role:"alert",style:{position:"fixed",bottom:"20px",right:"20px",maxWidth:"280px",padding:"10px 14px",borderRadius:"10px",background:"#1f2937",color:"#f3f4f6",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif',fontSize:"13px",lineHeight:1.4,boxShadow:"0 4px 12px rgba(0,0,0,0.15)",zIndex:2147483647},children:"Chat is temporarily unavailable. Please refresh the page to try again."}):this.props.children}}"undefined"!=typeof window&&(window.__eshalChatWidgetReact=I),function(){let e=null,t=null,r=null,n={},o=null;const a={darkMode:!1,primaryColor:"#2563eb",position:"bottom-right",companyName:"Support Team",conciergeName:null,companyLogo:null,welcomeMessage:"Hi! How can we help?",quickQuestions:[],quickQuestionsLayout:"vertical",textColor:"#fcfcfc",agentMessageBubbleColor:void 0,userMessageBoxColor:void 0,assistantTextColor:void 0,userTextColor:void 0,fontFamily:"Inter",fontSize:"14px",defaultLanguage:"en",autoOpen:!1,openDelay:0,apiBaseUrl:null,wsBaseUrl:null,apiKey:null,organizationId:null,sessionUrl:null,userId:null,userName:null,userEmail:null,locale:"en",headerTextBold:!1,headerTextItalic:!1,enableVoiceInteraction:!1,disclaimerEnabled:!1,disclaimerText:void 0,disclaimerPosition:"top",showPoweredBy:!0,onboardingQuestions:[],onboardingEnabled:!1,collectionPrompt:void 0,allowedDomains:[],onOpen:null,onClose:null},i={init:async function(s={}){if(n={...a,...s},n.sessionUrl&&!o&&(o=await(async e=>{if(e.sessionUrl)try{const t=await fetch(e.sessionUrl,{method:"POST",headers:{"Content-Type":"application/json",...e.apiKey&&{Authorization:`Bearer ${e.apiKey}`}},body:JSON.stringify({userId:e.userId,userName:e.userName,userEmail:e.userEmail}),credentials:"include"});return(await t.json()).sessionId}catch(e){return null}return null})(n)),r||(r=document.createElement("div"),r.id="chat-widget-host",document.body.appendChild(r)),!r.shadowRoot){const e=r.attachShadow({mode:"open"}),n=document.createElement("style");n.textContent=":host { all: initial; display: block; }",e.appendChild(n);const o=document.createElement("style");o.textContent='*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.chat-widget-root{--cw-primary:#1d4ed8;--cw-primary-hover:#1e40af;--cw-status-success:160 84% 39%;--cw-status-success-bg:152 81% 96%;--cw-status-warning:35 100% 50%;--cw-status-warning-bg:34 100% 95%;--cw-status-error:350 89% 60%;--cw-status-error-bg:356 100% 97%;--cw-status-info:199 89% 48%;--cw-status-info-bg:204 100% 97%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}.chat-widget-root.dark{--cw-status-success:158 64% 52%;--cw-status-success-bg:152 36% 14%;--cw-status-warning:38 92% 60%;--cw-status-warning-bg:36 33% 14%;--cw-status-error:350 89% 65%;--cw-status-error-bg:356 33% 16%;--cw-status-info:199 89% 58%;--cw-status-info-bg:204 33% 14%}.\\!container{width:100%!important}.container{width:100%}@media (min-width:640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width:768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width:1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width:1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width:1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}#chat-widget-root .chat-widget-root *{box-sizing:border-box;margin:0;padding:0}#chat-widget-root .chat-messages::-webkit-scrollbar{width:6px}#chat-widget-root .chat-messages::-webkit-scrollbar-track{background:transparent}#chat-widget-root .chat-messages::-webkit-scrollbar-thumb{background:rgba(156,163,175,.5);border-radius:10px}#chat-widget-root .chat-messages::-webkit-scrollbar-thumb:hover{background:rgba(156,163,175,.7)}#chat-widget-root .dark .chat-messages::-webkit-scrollbar-thumb{background:rgba(75,85,99,.5)}#chat-widget-root .dark .chat-messages::-webkit-scrollbar-thumb:hover{background:rgba(75,85,99,.7)}#chat-widget-root .sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}#chat-widget-root .pointer-events-none{pointer-events:none}#chat-widget-root .visible{visibility:visible}#chat-widget-root .invisible{visibility:hidden}#chat-widget-root .collapse{visibility:collapse}#chat-widget-root .static{position:static}#chat-widget-root .fixed{position:fixed}#chat-widget-root .absolute{position:absolute}#chat-widget-root .relative{position:relative}#chat-widget-root .sticky{position:sticky}#chat-widget-root .inset-0{inset:0}#chat-widget-root .-top-8{top:-2rem}#chat-widget-root .bottom-0{bottom:0}#chat-widget-root .bottom-5{bottom:1.25rem}#chat-widget-root .bottom-full{bottom:100%}#chat-widget-root .left-0{left:0}#chat-widget-root .left-1\\/2{left:50%}#chat-widget-root .left-5{left:1.25rem}#chat-widget-root .right-0{right:0}#chat-widget-root .right-5{right:1.25rem}#chat-widget-root .top-0{top:0}#chat-widget-root .top-1\\/2{top:50%}#chat-widget-root .top-5{top:1.25rem}#chat-widget-root .top-full{top:100%}#chat-widget-root .isolate{isolation:isolate}#chat-widget-root .z-10{z-index:10}#chat-widget-root .z-50{z-index:50}#chat-widget-root .z-\\[60\\]{z-index:60}#chat-widget-root .z-\\[70\\]{z-index:70}#chat-widget-root .z-\\[71\\]{z-index:71}#chat-widget-root .z-\\[999999\\]{z-index:999999}#chat-widget-root .z-\\[9999\\]{z-index:9999}#chat-widget-root .m-0{margin:0}#chat-widget-root .mx-2{margin-left:.5rem;margin-right:.5rem}#chat-widget-root .mx-3{margin-left:.75rem;margin-right:.75rem}#chat-widget-root .my-3{margin-bottom:.75rem;margin-top:.75rem}#chat-widget-root .my-4{margin-bottom:1rem;margin-top:1rem}#chat-widget-root .-mb-px{margin-bottom:-1px}#chat-widget-root .mb-1{margin-bottom:.25rem}#chat-widget-root .mb-1\\.5{margin-bottom:.375rem}#chat-widget-root .mb-2{margin-bottom:.5rem}#chat-widget-root .mb-3{margin-bottom:.75rem}#chat-widget-root .mb-4{margin-bottom:1rem}#chat-widget-root .mb-5{margin-bottom:1.25rem}#chat-widget-root .ml-1{margin-left:.25rem}#chat-widget-root .ms-0\\.5{margin-inline-start:.125rem}#chat-widget-root .mt-0\\.5{margin-top:.125rem}#chat-widget-root .mt-1{margin-top:.25rem}#chat-widget-root .mt-1\\.5{margin-top:.375rem}#chat-widget-root .mt-2{margin-top:.5rem}#chat-widget-root .mt-3{margin-top:.75rem}#chat-widget-root .mt-4{margin-top:1rem}#chat-widget-root .block{display:block}#chat-widget-root .inline-block{display:inline-block}#chat-widget-root .inline{display:inline}#chat-widget-root .flex{display:flex}#chat-widget-root .inline-flex{display:inline-flex}#chat-widget-root .table{display:table}#chat-widget-root .grid{display:grid}#chat-widget-root .hidden{display:none}#chat-widget-root .h-1\\.5{height:.375rem}#chat-widget-root .h-10{height:2.5rem}#chat-widget-root .h-11{height:2.75rem}#chat-widget-root .h-12{height:3rem}#chat-widget-root .h-16{height:4rem}#chat-widget-root .h-2{height:.5rem}#chat-widget-root .h-3{height:.75rem}#chat-widget-root .h-3\\.5{height:.875rem}#chat-widget-root .h-4{height:1rem}#chat-widget-root .h-5{height:1.25rem}#chat-widget-root .h-6{height:1.5rem}#chat-widget-root .h-7{height:1.75rem}#chat-widget-root .h-8{height:2rem}#chat-widget-root .h-\\[650px\\]{height:650px}#chat-widget-root .h-auto{height:auto}#chat-widget-root .h-full{height:100%}#chat-widget-root .h-px{height:1px}#chat-widget-root .max-h-\\[85vh\\]{max-height:85vh}#chat-widget-root .min-h-0{min-height:0}#chat-widget-root .min-h-\\[48px\\]{min-height:48px}#chat-widget-root .w-1\\.5{width:.375rem}#chat-widget-root .w-10{width:2.5rem}#chat-widget-root .w-11{width:2.75rem}#chat-widget-root .w-12{width:3rem}#chat-widget-root .w-16{width:4rem}#chat-widget-root .w-2{width:.5rem}#chat-widget-root .w-3{width:.75rem}#chat-widget-root .w-3\\.5{width:.875rem}#chat-widget-root .w-4{width:1rem}#chat-widget-root .w-44{width:11rem}#chat-widget-root .w-5{width:1.25rem}#chat-widget-root .w-6{width:1.5rem}#chat-widget-root .w-7{width:1.75rem}#chat-widget-root .w-8{width:2rem}#chat-widget-root .w-80{width:20rem}#chat-widget-root .w-96{width:24rem}#chat-widget-root .w-\\[380px\\]{width:380px}#chat-widget-root .w-full{width:100%}#chat-widget-root .min-w-0{min-width:0}#chat-widget-root .min-w-\\[60px\\]{min-width:60px}#chat-widget-root .min-w-full{min-width:100%}#chat-widget-root .max-w-\\[75\\%\\]{max-width:75%}#chat-widget-root .max-w-\\[92vw\\]{max-width:92vw}#chat-widget-root .max-w-full{max-width:100%}#chat-widget-root .max-w-none{max-width:none}#chat-widget-root .max-w-sm{max-width:24rem}#chat-widget-root .max-w-xs{max-width:20rem}#chat-widget-root .flex-1{flex:1 1 0%}#chat-widget-root .flex-shrink-0,#chat-widget-root .shrink-0{flex-shrink:0}#chat-widget-root .grow{flex-grow:1}#chat-widget-root .border-collapse{border-collapse:collapse}#chat-widget-root .-translate-x-1\\/2{--tw-translate-x:-50%}#chat-widget-root .-translate-x-1\\/2,#chat-widget-root .-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#chat-widget-root .-translate-y-1\\/2{--tw-translate-y:-50%}#chat-widget-root .-rotate-90{--tw-rotate:-90deg}#chat-widget-root .-rotate-90,#chat-widget-root .rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#chat-widget-root .rotate-180{--tw-rotate:180deg}#chat-widget-root .rotate-90{--tw-rotate:90deg}#chat-widget-root .rotate-90,#chat-widget-root .scale-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#chat-widget-root .scale-0{--tw-scale-x:0;--tw-scale-y:0}#chat-widget-root .scale-100{--tw-scale-x:1;--tw-scale-y:1}#chat-widget-root .scale-100,#chat-widget-root .scale-110{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#chat-widget-root .scale-110{--tw-scale-x:1.1;--tw-scale-y:1.1}#chat-widget-root .scale-125{--tw-scale-x:1.25;--tw-scale-y:1.25}#chat-widget-root .scale-125,#chat-widget-root .scale-95{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#chat-widget-root .scale-95{--tw-scale-x:.95;--tw-scale-y:.95}#chat-widget-root .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}#chat-widget-root .animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}#chat-widget-root .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}#chat-widget-root .animate-spin{animation:spin 1s linear infinite}#chat-widget-root .cursor-ew-resize{cursor:ew-resize}#chat-widget-root .cursor-nesw-resize{cursor:nesw-resize}#chat-widget-root .cursor-not-allowed{cursor:not-allowed}#chat-widget-root .cursor-ns-resize{cursor:ns-resize}#chat-widget-root .cursor-nwse-resize{cursor:nwse-resize}#chat-widget-root .cursor-pointer{cursor:pointer}#chat-widget-root .resize-none{resize:none}#chat-widget-root .resize{resize:both}#chat-widget-root .list-decimal{list-style-type:decimal}#chat-widget-root .list-disc{list-style-type:disc}#chat-widget-root .list-none{list-style-type:none}#chat-widget-root .flex-row{flex-direction:row}#chat-widget-root .flex-row-reverse{flex-direction:row-reverse}#chat-widget-root .flex-col{flex-direction:column}#chat-widget-root .flex-wrap{flex-wrap:wrap}#chat-widget-root .items-start{align-items:flex-start}#chat-widget-root .items-end{align-items:flex-end}#chat-widget-root .items-center{align-items:center}#chat-widget-root .justify-start{justify-content:flex-start}#chat-widget-root .justify-end{justify-content:flex-end}#chat-widget-root .justify-center{justify-content:center}#chat-widget-root .justify-between{justify-content:space-between}#chat-widget-root .gap-0{gap:0}#chat-widget-root .gap-0\\.5{gap:.125rem}#chat-widget-root .gap-1{gap:.25rem}#chat-widget-root .gap-1\\.5{gap:.375rem}#chat-widget-root .gap-2{gap:.5rem}#chat-widget-root .gap-2\\.5{gap:.625rem}#chat-widget-root .gap-3{gap:.75rem}#chat-widget-root .gap-4{gap:1rem}#chat-widget-root .gap-6{gap:1.5rem}#chat-widget-root :is(.space-y-2>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}#chat-widget-root :is(.space-y-4>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}#chat-widget-root .overflow-hidden{overflow:hidden}#chat-widget-root .overflow-visible{overflow:visible}#chat-widget-root .overflow-x-auto{overflow-x:auto}#chat-widget-root .overflow-y-auto{overflow-y:auto}#chat-widget-root .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#chat-widget-root .whitespace-nowrap{white-space:nowrap}#chat-widget-root .whitespace-pre-wrap{white-space:pre-wrap}#chat-widget-root .break-words{overflow-wrap:break-word}#chat-widget-root .break-all{word-break:break-all}#chat-widget-root .rounded{border-radius:.25rem}#chat-widget-root .rounded-2xl{border-radius:1rem}#chat-widget-root .rounded-3xl{border-radius:1.5rem}#chat-widget-root .rounded-full{border-radius:9999px}#chat-widget-root .rounded-lg{border-radius:.5rem}#chat-widget-root .rounded-md{border-radius:.375rem}#chat-widget-root .rounded-xl{border-radius:.75rem}#chat-widget-root .rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}#chat-widget-root .rounded-tl-sm{border-top-left-radius:.125rem}#chat-widget-root .rounded-tr-sm{border-top-right-radius:.125rem}#chat-widget-root .border{border-width:1px}#chat-widget-root .border-0{border-width:0}#chat-widget-root .border-b{border-bottom-width:1px}#chat-widget-root .border-l-4{border-left-width:4px}#chat-widget-root .border-t{border-top-width:1px}#chat-widget-root .border-t-2{border-top-width:2px}#chat-widget-root .border-dotted{border-style:dotted}#chat-widget-root .border-none{border-style:none}#chat-widget-root .\\!border-status-error{border-color:hsl(var(--cw-status-error))!important}#chat-widget-root .border-amber-200{--tw-border-opacity:1;border-color:rgb(253 230 138/var(--tw-border-opacity,1))}#chat-widget-root .border-amber-700\\/50{border-color:rgba(180,83,9,.5)}#chat-widget-root .border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity,1))}#chat-widget-root .border-blue-700\\/50{border-color:rgba(29,78,216,.5)}#chat-widget-root .border-gray-100{--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity,1))}#chat-widget-root .border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}#chat-widget-root .border-gray-200\\/60{border-color:rgba(229,231,235,.6)}#chat-widget-root .border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}#chat-widget-root .border-gray-600{--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity,1))}#chat-widget-root .border-gray-700{--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity,1))}#chat-widget-root .border-gray-700\\/50{border-color:rgba(55,65,81,.5)}#chat-widget-root .border-transparent{border-color:transparent}#chat-widget-root .bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 251 235/var(--tw-bg-opacity,1))}#chat-widget-root .bg-amber-900\\/40{background-color:rgba(120,53,15,.4)}#chat-widget-root .bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}#chat-widget-root .bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}#chat-widget-root .bg-blue-900\\/30{background-color:rgba(30,58,138,.3)}#chat-widget-root .bg-current{background-color:currentColor}#chat-widget-root .bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}#chat-widget-root .bg-gray-400{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity,1))}#chat-widget-root .bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}#chat-widget-root .bg-gray-50\\/30{background-color:rgba(249,250,251,.3)}#chat-widget-root .bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity,1))}#chat-widget-root .bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}#chat-widget-root .bg-gray-700\\/50{background-color:rgba(55,65,81,.5)}#chat-widget-root .bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}#chat-widget-root .bg-gray-800\\/50{background-color:rgba(31,41,55,.5)}#chat-widget-root .bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}#chat-widget-root .bg-green-200{--tw-bg-opacity:1;background-color:rgb(187 247 208/var(--tw-bg-opacity,1))}#chat-widget-root .bg-orange-200{--tw-bg-opacity:1;background-color:rgb(254 215 170/var(--tw-bg-opacity,1))}#chat-widget-root .bg-pink-200{--tw-bg-opacity:1;background-color:rgb(251 207 232/var(--tw-bg-opacity,1))}#chat-widget-root .bg-red-200{--tw-bg-opacity:1;background-color:rgb(254 202 202/var(--tw-bg-opacity,1))}#chat-widget-root .bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}#chat-widget-root .bg-slate-50\\/50{background-color:rgba(248,250,252,.5)}#chat-widget-root .bg-slate-800\\/50{background-color:rgba(30,41,59,.5)}#chat-widget-root .bg-transparent{background-color:transparent}#chat-widget-root .bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}#chat-widget-root .bg-white\\/10{background-color:hsla(0,0%,100%,.1)}#chat-widget-root .bg-white\\/20{background-color:hsla(0,0%,100%,.2)}#chat-widget-root .bg-yellow-200{--tw-bg-opacity:1;background-color:rgb(254 240 138/var(--tw-bg-opacity,1))}#chat-widget-root .bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}#chat-widget-root .bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}#chat-widget-root .from-gray-50\\/50{--tw-gradient-from:rgba(249,250,251,.5) var(--tw-gradient-from-position);--tw-gradient-to:rgba(249,250,251,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}#chat-widget-root .from-white\\/0{--tw-gradient-from:hsla(0,0%,100%,0) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}#chat-widget-root .from-white\\/10{--tw-gradient-from:hsla(0,0%,100%,.1) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}#chat-widget-root .from-yellow-200{--tw-gradient-from:#fef08a var(--tw-gradient-from-position);--tw-gradient-to:hsla(53,98%,77%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}#chat-widget-root .via-white\\/5{--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),hsla(0,0%,100%,.05) var(--tw-gradient-via-position),var(--tw-gradient-to)}#chat-widget-root .to-white{--tw-gradient-to:#fff var(--tw-gradient-to-position)}#chat-widget-root .to-white\\/10{--tw-gradient-to:hsla(0,0%,100%,.1) var(--tw-gradient-to-position)}#chat-widget-root .to-yellow-400{--tw-gradient-to:#facc15 var(--tw-gradient-to-position)}#chat-widget-root .object-contain{-o-object-fit:contain;object-fit:contain}#chat-widget-root .p-0{padding:0}#chat-widget-root .p-0\\.5{padding:.125rem}#chat-widget-root .p-3{padding:.75rem}#chat-widget-root .p-5{padding:1.25rem}#chat-widget-root .p-6{padding:1.5rem}#chat-widget-root .p-8{padding:2rem}#chat-widget-root .px-1{padding-left:.25rem;padding-right:.25rem}#chat-widget-root .px-2{padding-left:.5rem;padding-right:.5rem}#chat-widget-root .px-2\\.5{padding-left:.625rem;padding-right:.625rem}#chat-widget-root .px-3{padding-left:.75rem;padding-right:.75rem}#chat-widget-root .px-4{padding-left:1rem;padding-right:1rem}#chat-widget-root .px-5{padding-left:1.25rem;padding-right:1.25rem}#chat-widget-root .py-1{padding-bottom:.25rem;padding-top:.25rem}#chat-widget-root .py-1\\.5{padding-bottom:.375rem;padding-top:.375rem}#chat-widget-root .py-12{padding-bottom:3rem;padding-top:3rem}#chat-widget-root .py-2{padding-bottom:.5rem;padding-top:.5rem}#chat-widget-root .py-2\\.5{padding-bottom:.625rem;padding-top:.625rem}#chat-widget-root .py-3{padding-bottom:.75rem;padding-top:.75rem}#chat-widget-root .py-3\\.5{padding-bottom:.875rem;padding-top:.875rem}#chat-widget-root .py-4{padding-bottom:1rem;padding-top:1rem}#chat-widget-root .pb-1{padding-bottom:.25rem}#chat-widget-root .pb-2{padding-bottom:.5rem}#chat-widget-root .pl-1{padding-left:.25rem}#chat-widget-root .pl-2{padding-left:.5rem}#chat-widget-root .pl-4{padding-left:1rem}#chat-widget-root .pl-\\[50px\\]{padding-left:50px}#chat-widget-root .pr-1{padding-right:.25rem}#chat-widget-root .pt-1{padding-top:.25rem}#chat-widget-root .text-left{text-align:left}#chat-widget-root .text-center{text-align:center}#chat-widget-root .text-right{text-align:right}#chat-widget-root .text-start{text-align:start}#chat-widget-root .align-text-bottom{vertical-align:text-bottom}#chat-widget-root .font-sans{font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}#chat-widget-root .text-2xl{font-size:1.5rem;line-height:2rem}#chat-widget-root .text-\\[10px\\]{font-size:10px}#chat-widget-root .text-base{font-size:1rem;line-height:1.5rem}#chat-widget-root .text-chip{font-size:11px;letter-spacing:0;line-height:1.4}#chat-widget-root .text-h4{font-size:18px;letter-spacing:0;line-height:1.3}#chat-widget-root .text-lg{font-size:1.125rem;line-height:1.75rem}#chat-widget-root .text-sm{font-size:.875rem;line-height:1.25rem}#chat-widget-root .text-xl{font-size:1.25rem;line-height:1.75rem}#chat-widget-root .text-xs{font-size:.75rem;line-height:1rem}#chat-widget-root .font-bold{font-weight:700}#chat-widget-root .font-medium{font-weight:500}#chat-widget-root .font-semibold{font-weight:600}#chat-widget-root .uppercase{text-transform:uppercase}#chat-widget-root .lowercase{text-transform:lowercase}#chat-widget-root .italic{font-style:italic}#chat-widget-root .tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}#chat-widget-root .leading-5{line-height:1.25rem}#chat-widget-root .leading-none{line-height:1}#chat-widget-root .leading-normal{line-height:1.5}#chat-widget-root .leading-relaxed{line-height:1.625}#chat-widget-root .leading-snug{line-height:1.375}#chat-widget-root .tracking-wide{letter-spacing:.025em}#chat-widget-root .text-\\[\\#4A5568\\]{--tw-text-opacity:1;color:rgb(74 85 104/var(--tw-text-opacity,1))}#chat-widget-root .text-amber-200{--tw-text-opacity:1;color:rgb(253 230 138/var(--tw-text-opacity,1))}#chat-widget-root .text-amber-800{--tw-text-opacity:1;color:rgb(146 64 14/var(--tw-text-opacity,1))}#chat-widget-root .text-current{color:currentColor}#chat-widget-root .text-gray-100{--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity,1))}#chat-widget-root .text-gray-200{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity,1))}#chat-widget-root .text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}#chat-widget-root .text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}#chat-widget-root .text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}#chat-widget-root .text-gray-500\\/80{color:hsla(220,9%,46%,.8)}#chat-widget-root .text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}#chat-widget-root .text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}#chat-widget-root .text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity,1))}#chat-widget-root .text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}#chat-widget-root .text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}#chat-widget-root .text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}#chat-widget-root .text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}#chat-widget-root .text-slate-500{--tw-text-opacity:1;color:rgb(100 116 139/var(--tw-text-opacity,1))}#chat-widget-root .text-status-error{color:hsl(var(--cw-status-error))}#chat-widget-root .text-status-success{color:hsl(var(--cw-status-success))}#chat-widget-root .text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}#chat-widget-root .text-yellow-400{--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity,1))}#chat-widget-root .underline{text-decoration-line:underline}#chat-widget-root .no-underline{text-decoration-line:none}#chat-widget-root .placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity,1))}#chat-widget-root .placeholder-gray-400::placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity,1))}#chat-widget-root .placeholder-gray-500::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(107 114 128/var(--tw-placeholder-opacity,1))}#chat-widget-root .placeholder-gray-500::placeholder{--tw-placeholder-opacity:1;color:rgb(107 114 128/var(--tw-placeholder-opacity,1))}#chat-widget-root .opacity-0{opacity:0}#chat-widget-root .opacity-50{opacity:.5}#chat-widget-root .opacity-60{opacity:.6}#chat-widget-root .opacity-70{opacity:.7}#chat-widget-root .opacity-75{opacity:.75}#chat-widget-root .opacity-80{opacity:.8}#chat-widget-root .shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}#chat-widget-root .shadow,#chat-widget-root .shadow-2xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}#chat-widget-root .shadow-2xl{--tw-shadow:0 25px 50px -12px rgba(0,0,0,.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color)}#chat-widget-root .shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}#chat-widget-root .shadow-lg,#chat-widget-root .shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}#chat-widget-root .shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}#chat-widget-root .shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}#chat-widget-root .shadow-sm,#chat-widget-root .shadow-xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}#chat-widget-root .shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}#chat-widget-root .shadow-black\\/20{--tw-shadow-color:rgba(0,0,0,.2);--tw-shadow:var(--tw-shadow-colored)}#chat-widget-root .shadow-gray-200\\/80{--tw-shadow-color:rgba(229,231,235,.8);--tw-shadow:var(--tw-shadow-colored)}#chat-widget-root .outline-none{outline:2px solid transparent;outline-offset:2px}#chat-widget-root .outline{outline-style:solid}#chat-widget-root .ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}#chat-widget-root .ring,#chat-widget-root .ring-2{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}#chat-widget-root .ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}#chat-widget-root .ring-blue-100{--tw-ring-opacity:1;--tw-ring-color:rgb(219 234 254/var(--tw-ring-opacity,1))}#chat-widget-root .ring-blue-300{--tw-ring-opacity:1;--tw-ring-color:rgb(147 197 253/var(--tw-ring-opacity,1))}#chat-widget-root .ring-white{--tw-ring-opacity:1;--tw-ring-color:rgb(255 255 255/var(--tw-ring-opacity,1))}#chat-widget-root .blur{--tw-blur:blur(8px)}#chat-widget-root .blur,#chat-widget-root .drop-shadow{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#chat-widget-root .drop-shadow{--tw-drop-shadow:drop-shadow(0 1px 2px rgba(0,0,0,.1)) drop-shadow(0 1px 1px rgba(0,0,0,.06))}#chat-widget-root .drop-shadow-md{--tw-drop-shadow:drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06))}#chat-widget-root .drop-shadow-md,#chat-widget-root .drop-shadow-sm{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#chat-widget-root .drop-shadow-sm{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,0,0,.05))}#chat-widget-root .grayscale-\\[0\\.3\\]{--tw-grayscale:grayscale(0.3)}#chat-widget-root .filter,#chat-widget-root .grayscale-\\[0\\.3\\]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#chat-widget-root .backdrop-blur-sm{--tw-backdrop-blur:blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}#chat-widget-root .transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}#chat-widget-root .transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}#chat-widget-root .transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}#chat-widget-root .transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}#chat-widget-root .transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}#chat-widget-root .duration-150{transition-duration:.15s}#chat-widget-root .duration-200{transition-duration:.2s}#chat-widget-root .duration-300{transition-duration:.3s}#chat-widget-root .duration-500{transition-duration:.5s}#chat-widget-root :is(#chat-widget-root .animate-in){animation:slideIn .3s ease-out}#chat-widget-root :is(#chat-widget-root .transition-all){transition-duration:.3s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}#chat-widget-root .\\[font-family\\:inherit\\]{font-family:inherit}#chat-widget-root .placeholder\\:text-\\[\\#A2A9B2\\]::-moz-placeholder{--tw-text-opacity:1;color:rgb(162 169 178/var(--tw-text-opacity,1))}#chat-widget-root .placeholder\\:text-\\[\\#A2A9B2\\]::placeholder{--tw-text-opacity:1;color:rgb(162 169 178/var(--tw-text-opacity,1))}#chat-widget-root .placeholder\\:text-gray-500::-moz-placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}#chat-widget-root .placeholder\\:text-gray-500::placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}#chat-widget-root .hover\\:scale-105:hover{--tw-scale-x:1.05;--tw-scale-y:1.05}#chat-widget-root .hover\\:scale-105:hover,#chat-widget-root .hover\\:scale-110:hover{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#chat-widget-root .hover\\:scale-110:hover{--tw-scale-x:1.1;--tw-scale-y:1.1}#chat-widget-root .hover\\:scale-\\[1\\.02\\]:hover{--tw-scale-x:1.02;--tw-scale-y:1.02;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#chat-widget-root .hover\\:border-blue-400:hover{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity,1))}#chat-widget-root .hover\\:border-blue-600:hover{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}#chat-widget-root .hover\\:bg-blue-50:hover{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}#chat-widget-root .hover\\:bg-blue-500\\/20:hover{background-color:rgba(59,130,246,.2)}#chat-widget-root .hover\\:bg-blue-900\\/50:hover{background-color:rgba(30,58,138,.5)}#chat-widget-root .hover\\:bg-gray-200:hover{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}#chat-widget-root .hover\\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}#chat-widget-root .hover\\:bg-gray-600:hover{--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity,1))}#chat-widget-root .hover\\:bg-gray-700:hover{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}#chat-widget-root .hover\\:bg-red-600:hover{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}#chat-widget-root .hover\\:bg-transparent:hover{background-color:transparent}#chat-widget-root .hover\\:text-blue-500:hover{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}#chat-widget-root .hover\\:text-gray-200:hover{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity,1))}#chat-widget-root .hover\\:text-gray-300:hover{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}#chat-widget-root .hover\\:text-gray-600:hover{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}#chat-widget-root .hover\\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}#chat-widget-root .hover\\:underline:hover{text-decoration-line:underline}#chat-widget-root .hover\\:opacity-80:hover{opacity:.8}#chat-widget-root .hover\\:opacity-90:hover{opacity:.9}#chat-widget-root .hover\\:shadow-md:hover{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}#chat-widget-root .hover\\:shadow-md:hover,#chat-widget-root .hover\\:shadow-xl:hover{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}#chat-widget-root .hover\\:shadow-xl:hover{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}#chat-widget-root .hover\\:grayscale-0:hover{--tw-grayscale:grayscale(0);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#chat-widget-root .focus\\:\\!border-status-error:focus{border-color:hsl(var(--cw-status-error))!important}#chat-widget-root .focus\\:border-\\[\\#5A6069\\]:focus{--tw-border-opacity:1;border-color:rgb(90 96 105/var(--tw-border-opacity,1))}#chat-widget-root .focus\\:border-\\[\\#B0B0B0\\]:focus{--tw-border-opacity:1;border-color:rgb(176 176 176/var(--tw-border-opacity,1))}#chat-widget-root .focus\\:bg-white:focus{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}#chat-widget-root .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}#chat-widget-root .focus\\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}#chat-widget-root .focus\\:ring-0:focus,#chat-widget-root .focus\\:ring-1:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}#chat-widget-root .focus\\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}#chat-widget-root .focus\\:ring-gray-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity,1))}#chat-widget-root .focus\\:ring-gray-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(75 85 99/var(--tw-ring-opacity,1))}#chat-widget-root .focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}#chat-widget-root .focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}#chat-widget-root .focus-visible\\:ring-blue-700:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(29 78 216/var(--tw-ring-opacity,1))}#chat-widget-root .focus-visible\\:ring-white\\/40:focus-visible{--tw-ring-color:hsla(0,0%,100%,.4)}#chat-widget-root .active\\:scale-95:active{--tw-scale-x:.95;--tw-scale-y:.95}#chat-widget-root .active\\:scale-95:active,#chat-widget-root .active\\:scale-\\[0\\.97\\]:active{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#chat-widget-root .active\\:scale-\\[0\\.97\\]:active{--tw-scale-x:0.97;--tw-scale-y:0.97}#chat-widget-root .active\\:scale-\\[0\\.98\\]:active{--tw-scale-x:0.98;--tw-scale-y:0.98}#chat-widget-root .active\\:scale-\\[0\\.98\\]:active,#chat-widget-root .active\\:scale-\\[0\\.99\\]:active{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#chat-widget-root .active\\:scale-\\[0\\.99\\]:active{--tw-scale-x:0.99;--tw-scale-y:0.99}#chat-widget-root .active\\:outline-none:active{outline:2px solid transparent;outline-offset:2px}#chat-widget-root .active\\:ring-0:active{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}#chat-widget-root .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}#chat-widget-root .disabled\\:opacity-40:disabled{opacity:.4}#chat-widget-root .disabled\\:opacity-50:disabled{opacity:.5}#chat-widget-root .disabled\\:shadow-none:disabled{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}#chat-widget-root :is(.group:hover .group-hover\\:scale-100){--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#chat-widget-root :is(.group:hover .group-hover\\:opacity-100){opacity:1}#chat-widget-root .dark\\:text-gray-300:is(.dark *){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}#chat-widget-root .dark\\:text-gray-400:is(.dark *){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}@media (min-width:768px){#chat-widget-root .md\\:text-sm{font-size:.875rem;line-height:1.25rem}}#chat-widget-root .rtl\\:rounded-tl-2xl:where([dir=rtl],[dir=rtl] *){border-top-left-radius:1rem}#chat-widget-root .rtl\\:rounded-tr-sm:where([dir=rtl],[dir=rtl] *){border-top-right-radius:.125rem}#chat-widget-root .\\[\\&\\:first-child\\]\\:\\!mt-0:first-child{margin-top:0!important}#chat-widget-root :is(.\\[\\&\\>\\*\\:first-child\\]\\:\\!mt-0>:first-child){margin-top:0!important}#chat-widget-root :is(.\\[\\&\\>\\*\\:last-child\\]\\:\\!mb-0>:last-child){margin-bottom:0!important}\n.chat-widget-root{position:fixed;z-index:999999}.chat-widget-container{color:var(--cw-text-color,inherit);font-family:var(\n --cw-font-family,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif\n )}#chat-widget-root .chat-messages p{overflow-wrap:anywhere;word-break:break-word}textarea#chat-widget-input::-moz-placeholder{border:none;line-height:48px;outline:none}textarea#chat-widget-input::placeholder{border:none;line-height:48px;outline:none}textarea#chat-widget-input{border:none;line-height:48px;outline:none}@keyframes slideIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-5px)}}#chat-widget-root .scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}#chat-widget-root .scrollbar-hide::-webkit-scrollbar{display:none}#chat-widget-root .slim-scrollbar-x{scrollbar-width:thin}#chat-widget-root .slim-scrollbar-x::-webkit-scrollbar{height:3px!important}#chat-widget-root .slim-scrollbar-x::-webkit-scrollbar-track{background:transparent!important}#chat-widget-root .slim-scrollbar-x::-webkit-scrollbar-thumb{background:#d1d5db!important;border-radius:2px!important}#chat-widget-root .slim-scrollbar-x::-webkit-scrollbar-thumb:hover{background:#9ca3af!important}@media print{.chat-widget-root{display:none!important}}',e.appendChild(o),t=document.createElement("div"),t.id="chat-widget-mount",e.appendChild(t)}e||(e=$u(t)),void 0===s.darkMode&&(n.darkMode=window.matchMedia("(prefers-color-scheme: dark)").matches);const l=n.apiBaseUrl?{apiBaseUrl:n.apiBaseUrl,...void 0!==s.wsBaseUrl&&{wsBaseUrl:n.wsBaseUrl},...void 0!==s.position&&{position:n.position},...void 0!==s.quickQuestionsLayout&&{quickQuestionsLayout:n.quickQuestionsLayout},...void 0!==s.darkMode&&{darkMode:n.darkMode},...void 0!==s.primaryColor&&{primaryColor:n.primaryColor},...void 0!==s.companyName&&{companyName:n.companyName},...void 0!==s.conciergeName&&{conciergeName:n.conciergeName},...void 0!==s.companyLogo&&{companyLogo:n.companyLogo},...void 0!==s.welcomeMessage&&{welcomeMessage:n.welcomeMessage},...void 0!==s.quickQuestions&&{quickQuestions:n.quickQuestions},...void 0!==s.channelLinks&&{channelLinks:n.channelLinks},...void 0!==s.textColor&&{textColor:n.textColor},...void 0!==s.agentMessageBubbleColor&&{agentMessageBubbleColor:n.agentMessageBubbleColor},...void 0!==s.userMessageBoxColor&&{userMessageBoxColor:n.userMessageBoxColor},...void 0!==s.assistantTextColor&&{assistantTextColor:n.assistantTextColor},...void 0!==s.userTextColor&&{userTextColor:n.userTextColor},...void 0!==s.fontFamily&&{fontFamily:n.fontFamily},...void 0!==s.fontSize&&{fontSize:n.fontSize},...void 0!==s.defaultLanguage&&{defaultLanguage:n.defaultLanguage},...void 0!==s.locale&&{locale:n.locale},...void 0!==s.headerTextBold&&{headerTextBold:n.headerTextBold},...void 0!==s.headerTextItalic&&{headerTextItalic:n.headerTextItalic},...void 0!==s.enableVoiceInteraction&&{enableVoiceInteraction:n.enableVoiceInteraction},...void 0!==s.disclaimerEnabled&&{disclaimerEnabled:n.disclaimerEnabled},...void 0!==s.disclaimerText&&{disclaimerText:n.disclaimerText},...void 0!==s.disclaimerPosition&&{disclaimerPosition:n.disclaimerPosition},...void 0!==s.onboardingQuestions&&{onboardingQuestions:n.onboardingQuestions},...void 0!==s.onboardingEnabled&&{onboardingEnabled:n.onboardingEnabled},...void 0!==s.showPoweredBy&&{showPoweredBy:n.showPoweredBy},...void 0!==s.collectionPrompt&&{collectionPrompt:n.collectionPrompt},...void 0!==s.allowedDomains&&s.allowedDomains.length>0&&{allowedDomains:n.allowedDomains},...void 0!==s.autoOpen&&{autoOpen:n.autoOpen},...void 0!==s.openDelay&&{openDelay:n.openDelay},...void 0!==s.apiKey&&{apiKey:n.apiKey},...void 0!==s.className&&{className:n.className}}:{...n,apiBaseUrl:n.apiBaseUrl,wsBaseUrl:n.wsBaseUrl,organizationId:n.organizationId};try{e.render(I.createElement(Pf,null,I.createElement(Tf,l)))}catch(e){t&&(t.innerHTML='<div role="alert" style="position:fixed;bottom:20px;right:20px;max-width:280px;padding:10px 14px;border-radius:10px;background:#1f2937;color:#f3f4f6;font-family:-apple-system,BlinkMacSystemFont,\'Segoe UI\',Roboto,Arial,sans-serif;font-size:13px;line-height:1.4;box-shadow:0 4px 12px rgba(0,0,0,0.15);z-index:2147483647;">Chat is temporarily unavailable. Please refresh the page to try again.</div>')}return n.onOpen&&n.autoOpen&&setTimeout(()=>n.onOpen(),n.openDelay),i},updateConfig:function(e){return n={...n,...e},this.init(n),i},open:function(){return this.updateConfig({autoOpen:!0,openDelay:0}),n.onOpen&&n.onOpen(),i},close:function(){return this.updateConfig({autoOpen:!1}),n.onClose&&n.onClose(),i},toggleTheme:function(){return n.darkMode=!n.darkMode,this.updateConfig({darkMode:n.darkMode}),i},destroy:function(){return e&&(e.unmount(),e=null),r&&r.parentNode&&(r.parentNode.removeChild(r),r=null),t=null,o=null,n={},i},getConfig:function(){return{...n}}};"undefined"!=typeof window&&(window.ChatWidget=i,window.ChatWidget.version=Mf,window.ChatWidgetConfig&&document.addEventListener("DOMContentLoaded",()=>{i.init(window.ChatWidgetConfig)}),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",e=>{(void 0===n.darkMode||n.autoTheme)&&i.updateConfig({darkMode:e.matches})})),"undefined"!=typeof module&&module.exports&&(module.exports=i)}();var zf={exports:{}};function jf(e){try{const t=window[e];return t.setItem("__ft__","1"),t.removeItem("__ft__"),"1"}catch{return"0"}}function Ef(){try{return Array.from(navigator.plugins||[]).map(e=>`${e.name}::${e.filename}`).sort().join("|")}catch{return""}}function Ff(){try{return Array.from(navigator.mimeTypes||[]).map(e=>e.type).sort().join("|")}catch{return""}}function Lf(){try{const e=document.createElement("canvas");e.width=240,e.height=60;const t=e.getContext("2d");return t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(125,1,62,20),t.fillStyle="#069",t.font="11pt no-real-font-abc",t.fillText("user-trace:canvas,🔍<canvas>",2,15),t.fillStyle="rgba(102,204,0,0.7)",t.font="18pt Arial",t.fillText("user-trace:canvas,🔍<canvas>",4,45),e.toDataURL().slice(-50)}catch{return"nocanvas"}}function Nf(){try{const e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");if(!t)return"nowebgl";const r=t.getExtension("WEBGL_debug_renderer_info"),n=r?t.getParameter(r.UNMASKED_VENDOR_WEBGL):t.getParameter(t.VENDOR);return`${n}::${r?t.getParameter(r.UNMASKED_RENDERER_WEBGL):t.getParameter(t.RENDERER)}`}catch{return"nowebgl"}}function Rf(){const e=["Arial","Courier New","Georgia","Times New Roman","Verdana","Helvetica","Comic Sans MS","Impact","Tahoma","Trebuchet MS","Palatino Linotype","Lucida Console","Lucida Sans Unicode","MS Sans Serif","MS Serif","Symbol","Wingdings","Franklin Gothic Medium","Book Antiqua","Garamond","Calibri","Cambria","Consolas","Candara","Optima","Segoe UI","Gill Sans","Century Gothic","Futura"];try{const t=document.createElement("canvas").getContext("2d"),r="monospace",n="mmmmmmmmmmlli",o="72px";t.font=`${o} ${r}`;const a=t.measureText(n).width;return e.filter(e=>(t.font=`${o} '${e}', ${r}`,t.measureText(n).width!==a)).join(",")}catch{return""}}function Af(){try{return window.OfflineAudioContext||window.webkitOfflineAudioContext?"audio-supported":"noaudio"}catch{return"noaudio"}}var _f={generateFingerprint:function(){const e=function(){const e=navigator||{},t=screen||{};return{userAgent:e.userAgent||"",language:e.language||"",languages:(e.languages||[]).join(","),platform:e.platform||"",hardwareConcurrency:e.hardwareConcurrency||0,deviceMemory:e.deviceMemory||0,maxTouchPoints:e.maxTouchPoints||0,cookieEnabled:e.cookieEnabled?"1":"0",doNotTrack:e.doNotTrack||"unknown",screenWidth:t.width||0,screenHeight:t.height||0,colorDepth:t.colorDepth||0,pixelDepth:t.pixelDepth||0,devicePixelRatio:"undefined"!=typeof devicePixelRatio?devicePixelRatio:1,timezoneOffset:(new Date).getTimezoneOffset(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"",sessionStorage:jf("sessionStorage"),localStorage:jf("localStorage"),indexedDB:"undefined"!=typeof indexedDB?"1":"0",cpuClass:e.cpuClass||"unknown",oscpu:e.oscpu||"unknown",vendor:e.vendor||"",vendorSub:e.vendorSub||"",productSub:e.productSub||"",plugins:Ef(),mimeTypes:Ff(),canvas:Lf(),webgl:Nf(),fonts:Rf(),audioContext:Af()}}(),t=function(e){let t=5381;for(let r=0;r<e.length;r++)t=(t<<5)+t^e.charCodeAt(r),t&=t;return(t>>>0).toString(16).padStart(8,"0")}(Object.values(e).join("|||")),r=["nocanvas"!==e.canvas,"nowebgl"!==e.webgl&&""!==e.webgl,""!==e.fonts,""!==e.plugins,e.hardwareConcurrency>0,""!==e.timezone];return{id:t,signals:e,confidence:Math.round(r.filter(Boolean).length/r.length*100)}}};const If=[{url:"https://api.ipify.org?format=json",parse:e=>e.ip},{url:"https://api64.ipify.org?format=json",parse:e=>e.ip},{url:"https://api.my-ip.io/v2/ip.json",parse:e=>e.ip},{url:"https://ipapi.co/json/",parse:e=>e.ip}];async function Bf(e,t=4e3){const r=new AbortController,n=setTimeout(()=>r.abort(),t);try{const t=await fetch(e,{signal:r.signal});if(!t.ok)throw new Error(`HTTP ${t.status}`);return await t.json()}finally{clearTimeout(n)}}function Df(e){return/^(\d{1,3}\.){3}\d{1,3}$/.test(e)||/^[0-9a-f:]{2,39}$/i.test(e)}var Of={detectIP:async function(){for(const e of If)try{const t=await Bf(e.url),r=e.parse(t);if(r&&Df(r))return{ip:r,source:new URL(e.url).hostname}}catch{}return null},getIPVersion:function(e){return e?/^(\d{1,3}\.){3}\d{1,3}$/.test(e)?"v4":/^[0-9a-f:]{2,39}$/i.test(e)?"v6":"unknown":"unknown"}};let Uf={apiKeys:{},preferredProvider:null,timeoutMs:5e3};function Vf(e={}){const t=[e.ipinfo&&{name:"ipinfo.io",tier:"free-with-key",freeLimit:"50,000 req/month",signup:"https://ipinfo.io/signup",buildUrl:t=>`https://ipinfo.io/${t}/json?token=${e.ipinfo}`,parse:e=>{if(e.error)throw new Error(e.error.message||"Failed");const[t,r]=(e.loc||"0,0").split(",").map(Number);return{ip:e.ip||"",country:e.country||"",countryCode:e.country||"",region:e.region||"",regionCode:"",city:e.city||"",zip:e.postal||"",latitude:t,longitude:r,timezone:e.timezone||"",isp:e.org||"",org:e.org||"",proxy:!1,hosting:!1}}},e.ipgeolocation&&{name:"ipgeolocation.io",tier:"free-with-key",freeLimit:"1,000 req/day",signup:"https://ipgeolocation.io/signup.html",buildUrl:t=>`https://api.ipgeolocation.io/ipgeo?apiKey=${e.ipgeolocation}&ip=${t}`,parse:e=>{if(e.message)throw new Error(e.message);return{ip:e.ip||"",country:e.country_name||"",countryCode:e.country_code2||"",region:e.state_prov||"",regionCode:e.state_code||"",city:e.city||"",zip:e.zipcode||"",latitude:parseFloat(e.latitude)||0,longitude:parseFloat(e.longitude)||0,timezone:e.time_zone?.name||"",isp:e.isp||"",org:e.organization||"",proxy:e.security?.is_proxy||!1,hosting:e.security?.is_hosting||!1}}},e.abstractapi&&{name:"abstractapi.com",tier:"free-with-key",freeLimit:"20,000 req/month",signup:"https://app.abstractapi.com/users/signup?target=/api/ip-geolocation",buildUrl:t=>`https://ipgeolocation.abstractapi.com/v1/?api_key=${e.abstractapi}&ip_address=${t}`,parse:e=>{if(e.error)throw new Error(e.error.message||"Failed");return{ip:e.ip_address||"",country:e.country||"",countryCode:e.country_code||"",region:e.region||"",regionCode:e.region_iso_code||"",city:e.city||"",zip:e.postal_code||"",latitude:e.latitude||0,longitude:e.longitude||0,timezone:e.timezone?.name||"",isp:e.connection?.isp_name||"",org:e.connection?.org_name||"",proxy:e.security?.is_vpn||!1,hosting:e.security?.is_hosting||!1}}},e.ip2location&&{name:"ip2location.io",tier:"free-with-key",freeLimit:"30,000 req/month",signup:"https://www.ip2location.io/sign-up",buildUrl:t=>`https://api.ip2location.io/?key=${e.ip2location}&ip=${t}&format=json`,parse:e=>{if(e.error)throw new Error(e.error.error_message||"Failed");return{ip:e.ip||"",country:e.country_name||"",countryCode:e.country_code||"",region:e.region_name||"",regionCode:"",city:e.city_name||"",zip:e.zip_code||"",latitude:e.latitude||0,longitude:e.longitude||0,timezone:e.time_zone||"",isp:e.isp||"",org:e.domain||"",proxy:e.is_proxy||!1,hosting:!1}}},e.ipstack&&{name:"ipstack.com",tier:"free-with-key",freeLimit:"100 req/month",signup:"https://ipstack.com/product",buildUrl:t=>`https://api.ipstack.com/${t}?access_key=${e.ipstack}`,parse:e=>{if(e.error)throw new Error(e.error.info||"Failed");return{ip:e.ip||"",country:e.country_name||"",countryCode:e.country_code||"",region:e.region_name||"",regionCode:e.region_code||"",city:e.city||"",zip:e.zip||"",latitude:e.latitude||0,longitude:e.longitude||0,timezone:e.time_zone?.id||"",isp:e.connection?.isp||"",org:"",proxy:!1,hosting:!1}}}].filter(Boolean),r=[{name:"ip-api.com",tier:"free",freeLimit:"45 req/min (no key needed)",buildUrl:e=>`https://ip-api.com/json/${e}?fields=status,message,country,countryCode,region,regionName,city,zip,lat,lon,timezone,isp,org,proxy,hosting,query`,parse:e=>{if("success"!==e.status)throw new Error(e.message||"Failed");return{ip:e.query||"",country:e.country||"",countryCode:e.countryCode||"",region:e.regionName||"",regionCode:e.region||"",city:e.city||"",zip:e.zip||"",latitude:e.lat||0,longitude:e.lon||0,timezone:e.timezone||"",isp:e.isp||"",org:e.org||"",proxy:e.proxy||!1,hosting:e.hosting||!1}}},{name:"ipwho.is",tier:"free",freeLimit:"unlimited (fair use, no key needed)",buildUrl:e=>`https://ipwho.is/${e}`,parse:e=>{if(!e.success)throw new Error(e.message||"Failed");return{ip:e.ip||"",country:e.country||"",countryCode:e.country_code||"",region:e.region||"",regionCode:e.region_code||"",city:e.city||"",zip:e.postal||"",latitude:e.latitude||0,longitude:e.longitude||0,timezone:e.timezone?.id||"",isp:e.connection?.isp||"",org:e.connection?.org||"",proxy:!1,hosting:!1}}},{name:"ipapi.co",tier:"free",freeLimit:"1,000 req/day (no key needed)",buildUrl:e=>`https://ipapi.co/${e}/json/`,parse:e=>{if(e.error)throw new Error(e.reason||"Failed");return{ip:e.ip||"",country:e.country_name||"",countryCode:e.country_code||"",region:e.region||"",regionCode:e.region_code||"",city:e.city||"",zip:e.postal||"",latitude:e.latitude||0,longitude:e.longitude||0,timezone:e.timezone||"",isp:e.org||"",org:e.org||"",proxy:!1,hosting:!1}}},{name:"freeipapi.com",tier:"free",freeLimit:"unlimited (fair use, no key needed)",buildUrl:e=>`https://freeipapi.com/api/json/${e}`,parse:e=>({ip:e.ipAddress||"",country:e.countryName||"",countryCode:e.countryCode||"",region:e.regionName||"",regionCode:e.regionCode||"",city:e.cityName||"",zip:e.zipCode||"",latitude:e.latitude||0,longitude:e.longitude||0,timezone:e.timeZone||"",isp:"",org:"",proxy:!1,hosting:!1})}],n=["freeipapi.com","ipwho.is","ipapi.co","ip-api.com"];return r.sort((e,t)=>n.indexOf(e.name)-n.indexOf(t.name)),[...t,...r]}async function $f(e,t=5e3){const r=new AbortController,n=setTimeout(()=>r.abort(),t);try{const t=await fetch(e,{signal:r.signal});if(!t.ok)throw new Error(`HTTP ${t.status}`);return await t.json()}finally{clearTimeout(n)}}const Hf={enableHighAccuracy:!0,timeout:8e3,maximumAge:3e5};function qf(e={}){return new Promise(t=>"undefined"!=typeof navigator&&navigator.geolocation?"undefined"!=typeof window&&!1===window.isSecureContext?t(null):void navigator.geolocation.getCurrentPosition(e=>t({latitude:e.coords.latitude,longitude:e.coords.longitude,accuracy:e.coords.accuracy}),()=>t(null),{...Hf,...e}):t(null))}async function Wf(e,t,r={}){if("number"!=typeof e||"number"!=typeof t)return null;const n=r.timeoutMs||Uf.timeoutMs||5e3,o=`https://api.bigdatacloud.net/data/reverse-geocode-client?latitude=${e}&longitude=${t}&localityLanguage=${r.localityLanguage||"en"}`;try{const r=await $f(o,n),a=r.city||r.locality||"";return a||r.countryName?{city:a,region:r.principalSubdivision||"",regionCode:(r.principalSubdivisionCode||"").split("-").pop()||"",country:r.countryName||"",countryCode:r.countryCode||"",latitude:e,longitude:t}:null}catch{return null}}var Kf={configureGeo:function(e={}){e.apiKeys&&(Uf.apiKeys={...Uf.apiKeys,...e.apiKeys}),void 0!==e.preferredProvider&&(Uf.preferredProvider=e.preferredProvider),void 0!==e.timeoutMs&&(Uf.timeoutMs=e.timeoutMs)},resolveLocation:async function(e,t={}){const r={apiKeys:{...Uf.apiKeys,...t.apiKeys||{}},preferredProvider:t.preferredProvider||Uf.preferredProvider,timeoutMs:t.timeoutMs||Uf.timeoutMs};let n=Vf(r.apiKeys);if(r.preferredProvider){const e=n.findIndex(e=>e.name===r.preferredProvider);if(e>0){const[t]=n.splice(e,1);n.unshift(t)}}for(const t of n)try{const n=await $f(t.buildUrl(e),r.timeoutMs);return{...t.parse(n),source:t.name,tier:t.tier}}catch{}return null},listProviders:function(e={}){return Vf({...Uf.apiKeys,...e}).map(({name:e,tier:t,freeLimit:r,signup:n})=>({name:e,tier:t,freeLimit:r,signup:n||"—"}))},getBrowserGeolocation:qf,getGeolocationPermission:async function(){try{if("undefined"==typeof navigator||!navigator.permissions||!navigator.permissions.query)return"unsupported";return(await navigator.permissions.query({name:"geolocation"})).state}catch{return"unsupported"}},reverseGeocode:Wf,getBrowserLocation:async function(e={}){const t=await qf(e);if(!t)return null;const r=await Wf(t.latitude,t.longitude,e),n=!(!r||!r.city&&!r.country);return{...n?r:{},latitude:t.latitude,longitude:t.longitude,accuracy:t.accuracy,...n?{source:"gps"}:{}}},toMapsUrl:function(e,t){return`https://www.google.com/maps?q=${e},${t}`}};const Qf="__ut_sid__",Yf="__ut_uid__",Gf="__ut_meta__";function Jf(){const e=new Uint8Array(16);crypto.getRandomValues(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128;const t=Array.from(e).map(e=>e.toString(16).padStart(2,"0")).join("");return[t.slice(0,8),t.slice(8,12),t.slice(12,16),t.slice(16,20),t.slice(20)].join("-")}function Xf(e,t){try{return e.getItem(t)}catch{return null}}function Zf(e,t,r){try{return e.setItem(t,r),!0}catch{return!1}}var eh={getOrCreateUserID:function(){let e=Xf(localStorage,Yf),t=!1;return e||(e=Jf(),t=!0,Zf(localStorage,Yf,e)),{uid:e,isNew:t}},getOrCreateSessionID:function(){let e=Xf(sessionStorage,Qf),t=!1;return e||(e=Jf(),t=!0,Zf(sessionStorage,Qf,e)),{sid:e,isNew:t}},saveSessionMeta:function(e){try{const t=JSON.stringify({...e,savedAt:(new Date).toISOString()});Zf(localStorage,Gf,t)}catch{}},loadSessionMeta:function(){try{const e=Xf(localStorage,Gf);return e?JSON.parse(e):null}catch{return null}},clearSession:function(){try{localStorage.removeItem(Yf)}catch{}try{localStorage.removeItem(Gf)}catch{}try{sessionStorage.removeItem(Qf)}catch{}},getBrowserContext:function(){return{userAgent:navigator.userAgent,platform:navigator.platform||"unknown",language:navigator.language||"unknown",timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,screenRes:`${screen.width}x${screen.height}`,viewportRes:`${window.innerWidth}x${window.innerHeight}`,colorDepth:screen.colorDepth,touchSupport:navigator.maxTouchPoints>0,cookieEnabled:navigator.cookieEnabled,referrer:document.referrer||null,currentUrl:window.location.href,loadedAt:(new Date).toISOString()}}};const{generateFingerprint:th}=_f,{detectIP:rh,getIPVersion:nh}=Of,{configureGeo:oh,resolveLocation:ah,listProviders:ih,getBrowserGeolocation:sh,getGeolocationPermission:lh,reverseGeocode:ch,getBrowserLocation:uh,toMapsUrl:dh}=Kf,{getOrCreateUserID:gh,getOrCreateSessionID:ph,saveSessionMeta:fh,loadSessionMeta:hh,clearSession:mh,getBrowserContext:bh}=eh;zf.exports=class{constructor(e={}){this._options={onReady:e.onReady||null,onError:e.onError||null,geoFromBrowser:void 0===e.geoFromBrowser||e.geoFromBrowser,geoApiKeys:e.geoApiKeys||null,geoOptions:e.geoOptions||null,cache:!1!==e.cache,maxAgeMs:e.maxAgeMs||3e5,autoInit:e.autoInit||!1,webhookUrl:e.webhookUrl||null},this.profile=null,this._ready=!1,this._options.autoInit&&this.init().catch(()=>{})}async init(){if(this._options.cache){const e=hh();if(e&&e.savedAt){if(Date.now()-new Date(e.savedAt).getTime()<this._options.maxAgeMs)return this.profile=e,this._ready=!0,this._options.onReady&&this._options.onReady(this.profile),this.profile}}try{const{uid:e,isNew:t}=gh(),{sid:r,isNew:n}=ph(),{id:o,signals:a,confidence:i}=th(),s=this._options.geoApiKeys?{apiKeys:this._options.geoApiKeys}:{},[l,c]=await Promise.all([(async()=>{const e=await rh(),t=e?.ip||"unknown",r="unknown"!==t?await ah(t,s):null;return{ip:t,ipVersion:e?nh(t):"unknown",geo:r}})(),this._collectBrowserLocation()]),{ip:u,ipVersion:d}=l;let g=l.geo,p=null;c&&(p={latitude:c.latitude,longitude:c.longitude,accuracy:c.accuracy},"gps"===c.source&&(g={...g||{},...c}));const f=bh();return this.profile={uid:e,sid:r,isNewUser:t,isNewSession:n,fingerprintId:o,fingerprintConfidence:i,ip:u,ipVersion:d,geo:g||null,browserGeo:p||null,browser:f,raw:a,createdAt:(new Date).toISOString(),...g?{mapsUrl:dh(g.latitude,g.longitude)}:{}},fh(this.profile),this._options.webhookUrl&&this._sendToWebhook(this.profile),this._ready=!0,this._options.onReady&&this._options.onReady(this.profile),this.profile}catch(e){throw this._options.onError&&this._options.onError(e),e}}async _collectBrowserLocation(){const e=this._options.geoFromBrowser;if(!e)return null;if("auto"===e){if("granted"!==await lh())return null}return uh(this._options.geoOptions||{})}async captureBrowserLocation(e={}){const t=await uh({...this._options.geoOptions||{},...e});return t&&this.profile?(this.profile.browserGeo={latitude:t.latitude,longitude:t.longitude,accuracy:t.accuracy},this.profile.mapsUrl=dh(t.latitude,t.longitude),"gps"===t.source&&(this.profile.geo={...this.profile.geo||{},...t}),fh(this.profile),this._options.onReady&&this._options.onReady(this.profile),this.profile):this.profile}getProfile(){return this.profile}isKnownUser(e){return this.profile?.uid===e}async refresh(){return mh(),this.profile=null,this._ready=!1,this.init()}clear(){mh(),this.profile=null,this._ready=!1}getSummary(){if(!this.profile)return null;const{uid:e,sid:t,fingerprintId:r,ip:n,geo:o,browser:a,createdAt:i}=this.profile;return{uid:e,sid:t,fingerprintId:r,ip:n,country:o?.country||"unknown",city:o?.city||"unknown",isp:o?.isp||"unknown",proxy:o?.proxy||!1,timezone:o?.timezone||a.timezone,userAgent:a.userAgent,language:a.language,createdAt:i}}async _sendToWebhook(e){try{await fetch(this._options.webhookUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}catch{}}};var yh=zf.exports.generateFingerprint=th,vh=zf.exports.detectIP=rh,wh=zf.exports.configureGeo=oh,kh=zf.exports.resolveLocation=ah,xh=zf.exports.listProviders=ih,Ch=zf.exports.getBrowserGeolocation=sh,Sh=zf.exports.getGeolocationPermission=lh,Mh=zf.exports.reverseGeocode=ch,Th=zf.exports.getBrowserLocation=uh,Ph=zf.exports.getOrCreateUserID=gh,zh=zf.exports.getOrCreateSessionID=ph,jh=zf.exports.clearSession=mh,Eh=zf.exports.getBrowserContext=bh,Fh=zf.exports,Lh=e({__proto__:null,clearSession:jh,configureGeo:wh,default:Fh,detectIP:vh,generateFingerprint:yh,getBrowserContext:Eh,getBrowserGeolocation:Ch,getBrowserLocation:Th,getGeolocationPermission:Sh,getOrCreateSessionID:zh,getOrCreateUserID:Ph,listProviders:xh,resolveLocation:kh,reverseGeocode:Mh},[Fh]),Nh={exports:{}};!function(e){!function(){function t(e,t,r){return e.call.apply(e.bind,arguments)}function r(e,t,r){if(!e)throw Error();if(2<arguments.length){var n=Array.prototype.slice.call(arguments,2);return function(){var r=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(r,n),e.apply(t,r)}}return function(){return e.apply(t,arguments)}}function n(e,o,a){return(n=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?t:r).apply(null,arguments)}var o=Date.now||function(){return+new Date};function a(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var i=!!window.FontFace;function s(e,t,r,n){if(t=e.c.createElement(t),r)for(var o in r)r.hasOwnProperty(o)&&("style"==o?t.style.cssText=r[o]:t.setAttribute(o,r[o]));return n&&t.appendChild(e.c.createTextNode(n)),t}function l(e,t,r){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(r,e.lastChild)}function c(e){e.parentNode&&e.parentNode.removeChild(e)}function u(e,t,r){t=t||[],r=r||[];for(var n=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var a=!1,i=0;i<n.length;i+=1)if(t[o]===n[i]){a=!0;break}a||n.push(t[o])}for(t=[],o=0;o<n.length;o+=1){for(a=!1,i=0;i<r.length;i+=1)if(n[o]===r[i]){a=!0;break}a||t.push(n[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function d(e,t){for(var r=e.className.split(/\s+/),n=0,o=r.length;n<o;n++)if(r[n]==t)return!0;return!1}function g(e,t,r){function n(){u&&o&&a&&(u(c),u=null)}t=s(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,a=!0,c=null,u=r||null;i?(t.onload=function(){o=!0,n()},t.onerror=function(){o=!0,c=Error("Stylesheet failed to load"),n()}):setTimeout(function(){o=!0,n()},0),l(e,"head",t)}function p(e,t,r,n){var o=e.c.getElementsByTagName("head")[0];if(o){var a=s(e,"script",{src:t}),i=!1;return a.onload=a.onreadystatechange=function(){i||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(i=!0,r&&r(null),a.onload=a.onreadystatechange=null,"HEAD"==a.parentNode.tagName&&o.removeChild(a))},o.appendChild(a),setTimeout(function(){i||(i=!0,r&&r(Error("Script load timeout")))},n||5e3),a}return null}function f(){this.a=0,this.c=null}function h(e){return e.a++,function(){e.a--,b(e)}}function m(e,t){e.c=t,b(e)}function b(e){0==e.a&&e.c&&(e.c(),e.c=null)}function y(e){this.a=e||"-"}function v(e,t){this.c=e,this.f=4,this.a="n";var r=(t||"n4").match(/^([nio])([1-9])$/i);r&&(this.a=r[1],this.f=parseInt(r[2],10))}function w(e){var t=[];e=e.split(/,\s*/);for(var r=0;r<e.length;r++){var n=e[r].replace(/['"]/g,"");-1!=n.indexOf(" ")||/^\d/.test(n)?t.push("'"+n+"'"):t.push(n)}return t.join(",")}function k(e){return e.a+e.f}function x(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function C(e){var t=4,r="n",n=null;return e&&((n=e.match(/(normal|oblique|italic)/i))&&n[1]&&(r=n[1].substr(0,1).toLowerCase()),(n=e.match(/([1-9]00|normal|bold)/i))&&n[1]&&(/bold/i.test(n[1])?t=7:/[1-9]00/.test(n[1])&&(t=parseInt(n[1].substr(0,1),10)))),r+t}function S(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new y("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function M(e){if(e.g){var t=d(e.f,e.a.c("wf","active")),r=[],n=[e.a.c("wf","loading")];t||r.push(e.a.c("wf","inactive")),u(e.f,r,n)}T(e,"inactive")}function T(e,t,r){e.j&&e.h[t]&&(r?e.h[t](r.c,k(r)):e.h[t]())}function P(){this.c={}}function z(e,t){this.c=e,this.f=t,this.a=s(this.c,"span",{"aria-hidden":"true"},this.f)}function j(e){l(e.c,"body",e.a)}function E(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+w(e.c)+";font-style:"+x(e)+";font-weight:"+e.f+"00;"}function F(e,t,r,n,o,a){this.g=e,this.j=t,this.a=n,this.c=r,this.f=o||3e3,this.h=a||void 0}function L(e,t,r,n,o,a,i){this.v=e,this.B=t,this.c=r,this.a=n,this.s=i||"BESbswy",this.f={},this.w=o||3e3,this.u=a||null,this.m=this.j=this.h=this.g=null,this.g=new z(this.c,this.s),this.h=new z(this.c,this.s),this.j=new z(this.c,this.s),this.m=new z(this.c,this.s),e=E(e=new v(this.a.c+",serif",k(this.a))),this.g.a.style.cssText=e,e=E(e=new v(this.a.c+",sans-serif",k(this.a))),this.h.a.style.cssText=e,e=E(e=new v("serif",k(this.a))),this.j.a.style.cssText=e,e=E(e=new v("sans-serif",k(this.a))),this.m.a.style.cssText=e,j(this.g),j(this.h),j(this.j),j(this.m)}y.prototype.c=function(e){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},F.prototype.start=function(){var e=this.c.o.document,t=this,r=o(),n=new Promise(function(n,a){!function i(){o()-r>=t.f?a():e.fonts.load(function(e){return x(e)+" "+e.f+"00 300px "+w(e.c)}(t.a),t.h).then(function(e){1<=e.length?n():setTimeout(i,25)},function(){a()})}()}),a=null,i=new Promise(function(e,r){a=setTimeout(r,t.f)});Promise.race([i,n]).then(function(){a&&(clearTimeout(a),a=null),t.g(t.a)},function(){t.j(t.a)})};var N={D:"serif",C:"sans-serif"},R=null;function A(){if(null===R){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);R=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return R}function _(e,t,r){for(var n in N)if(N.hasOwnProperty(n)&&t===e.f[N[n]]&&r===e.f[N[n]])return!0;return!1}function I(e){var t,r=e.g.a.offsetWidth,a=e.h.a.offsetWidth;(t=r===e.f.serif&&a===e.f["sans-serif"])||(t=A()&&_(e,r,a)),t?o()-e.A>=e.w?A()&&_(e,r,a)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?B(e,e.v):B(e,e.B):function(e){setTimeout(n(function(){I(this)},e),50)}(e):B(e,e.v)}function B(e,t){setTimeout(n(function(){c(this.g.a),c(this.h.a),c(this.j.a),c(this.m.a),t(this.a)},e),0)}function D(e,t,r){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=r}L.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=o(),I(this)};var O=null;function U(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&u(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),T(e,"active")):M(e.a))}function V(e){this.j=e,this.a=new P,this.h=0,this.f=this.g=!0}function $(e,t,r,o,a){var i=0==--e.h;(e.f||e.g)&&setTimeout(function(){var e=a||null,s=o||{};if(0===r.length&&i)M(t.a);else{t.f+=r.length,i&&(t.j=i);var l,c=[];for(l=0;l<r.length;l++){var d=r[l],g=s[d.c],p=t.a,f=d;if(p.g&&u(p.f,[p.a.c("wf",f.c,k(f).toString(),"loading")]),T(p,"fontloading",f),p=null,null===O)if(window.FontFace){f=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var h=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);O=f?42<parseInt(f[1],10):!h}else O=!1;p=O?new F(n(t.g,t),n(t.h,t),t.c,d,t.s,g):new L(n(t.g,t),n(t.h,t),t.c,d,t.s,e,g),c.push(p)}for(l=0;l<c.length;l++)c[l].start()}},0)}function H(e,t){this.c=e,this.a=t}function q(e,t){this.c=e,this.a=t}function W(e,t){this.c=e||K,this.a=[],this.f=[],this.g=t||""}D.prototype.g=function(e){var t=this.a;t.g&&u(t.f,[t.a.c("wf",e.c,k(e).toString(),"active")],[t.a.c("wf",e.c,k(e).toString(),"loading"),t.a.c("wf",e.c,k(e).toString(),"inactive")]),T(t,"fontactive",e),this.m=!0,U(this)},D.prototype.h=function(e){var t=this.a;if(t.g){var r=d(t.f,t.a.c("wf",e.c,k(e).toString(),"active")),n=[],o=[t.a.c("wf",e.c,k(e).toString(),"loading")];r||n.push(t.a.c("wf",e.c,k(e).toString(),"inactive")),u(t.f,n,o)}T(t,"fontinactive",e),U(this)},V.prototype.load=function(e){this.c=new a(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,r){var n=[],o=r.timeout;!function(e){e.g&&u(e.f,[e.a.c("wf","loading")]),T(e,"loading")}(t);n=function(e,t,r){var n,o=[];for(n in t)if(t.hasOwnProperty(n)){var a=e.c[n];a&&o.push(a(t[n],r))}return o}(e.a,r,e.c);var a=new D(e.c,t,o);for(e.h=n.length,t=0,r=n.length;t<r;t++)n[t].load(function(t,r,n){$(e,a,t,r,n)})}(this,new S(this.c,e),e)},H.prototype.load=function(e){function t(){if(a["__mti_fntLst"+n]){var r,o=a["__mti_fntLst"+n](),i=[];if(o)for(var s=0;s<o.length;s++){var l=o[s].fontfamily;null!=o[s].fontStyle&&null!=o[s].fontWeight?(r=o[s].fontStyle+o[s].fontWeight,i.push(new v(l,r))):i.push(new v(l))}e(i)}else setTimeout(function(){t()},50)}var r=this,n=r.a.projectId,o=r.a.version;if(n){var a=r.c.o;p(this.c,(r.a.api||"https://fast.fonts.net/jsapi")+"/"+n+".js"+(o?"?v="+o:""),function(o){o?e([]):(a["__MonotypeConfiguration__"+n]=function(){return r.a},t())}).id="__MonotypeAPIScript__"+n}else e([])},q.prototype.load=function(e){var t,r,n=this.a.urls||[],o=this.a.families||[],a=this.a.testStrings||{},i=new f;for(t=0,r=n.length;t<r;t++)g(this.c,n[t],h(i));var s=[];for(t=0,r=o.length;t<r;t++)if((n=o[t].split(":"))[1])for(var l=n[1].split(","),c=0;c<l.length;c+=1)s.push(new v(n[0],l[c]));else s.push(new v(n[0]));m(i,function(){e(s,a)})};var K="https://fonts.googleapis.com/css";function Q(e){this.f=e,this.a=[],this.c={}}var Y={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},G={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},J={i:"i",italic:"i",n:"n",normal:"n"},X=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function Z(e,t){this.c=e,this.a=t}var ee={Arimo:!0,Cousine:!0,Tinos:!0};function te(e,t){this.c=e,this.a=t}function re(e,t){this.c=e,this.f=t,this.a=[]}Z.prototype.load=function(e){var t=new f,r=this.c,n=new W(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var r=t.length,n=0;n<r;n++){var o=t[n].split(":");3==o.length&&e.f.push(o.pop());var a="";2==o.length&&""!=o[1]&&(a=":"),e.a.push(o.join(a))}}(n,o);var a=new Q(o);!function(e){for(var t=e.f.length,r=0;r<t;r++){var n=e.f[r].split(":"),o=n[0].replace(/\+/g," "),a=["n4"];if(2<=n.length){var i;if(i=[],s=n[1])for(var s,l=(s=s.split(",")).length,c=0;c<l;c++){var u;if((u=s[c]).match(/^[\w-]+$/))if(null==(d=X.exec(u.toLowerCase())))u="";else{if(u=null==(u=d[2])||""==u?"n":J[u],null==(d=d[1])||""==d)d="4";else var d=G[d]||(isNaN(d)?"4":d.substr(0,1));u=[u,d].join("")}else u="";u&&i.push(u)}0<i.length&&(a=i),3==n.length&&(i=[],0<(n=(n=n[2])?n.split(","):i).length&&(n=Y[n[0]])&&(e.c[o]=n))}for(e.c[o]||(n=Y[o])&&(e.c[o]=n),n=0;n<a.length;n+=1)e.a.push(new v(o,a[n]))}}(a),g(r,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,r=[],n=0;n<t;n++)r.push(e.a[n].replace(/ /g,"+"));return t=e.c+"?family="+r.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(n),h(t)),m(t,function(){e(a.a,a.c,ee)})},te.prototype.load=function(e){var t=this.a.id,r=this.c.o;t?p(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",function(t){if(t)e([]);else if(r.Typekit&&r.Typekit.config&&r.Typekit.config.fn){t=r.Typekit.config.fn;for(var n=[],o=0;o<t.length;o+=2)for(var a=t[o],i=t[o+1],s=0;s<i.length;s++)n.push(new v(a,i[s]));try{r.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(n)}},2e3):e([])},re.prototype.load=function(e){var t=this.f.id,r=this.c.o,n=this;t?(r.__webfontfontdeckmodule__||(r.__webfontfontdeckmodule__={}),r.__webfontfontdeckmodule__[t]=function(t,r){for(var o=0,a=r.fonts.length;o<a;++o){var i=r.fonts[o];n.a.push(new v(i.name,C("font-weight:"+i.weight+";font-style:"+i.style)))}e(n.a)},p(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",function(t){t&&e([])})):e([])};var ne=new V(window);ne.a.c.custom=function(e,t){return new q(t,e)},ne.a.c.fontdeck=function(e,t){return new re(t,e)},ne.a.c.monotype=function(e,t){return new H(t,e)},ne.a.c.typekit=function(e,t){return new te(t,e)},ne.a.c.google=function(e,t){return new Z(t,e)};var oe={load:n(ne.load,ne)};e.exports?e.exports=oe:(window.WebFont=oe,window.WebFontConfig&&ne.load(window.WebFontConfig))}()}(Nh);var Rh=Nh.exports,Ah=e({__proto__:null,default:Rh},[Rh])}();
39
+ */let Ug=null;function Vg(e){I.useEffect(()=>{if(!Ig||!e)return;const t=e.split(",")[0]?.trim();if(!t||Og.has(t))return;if((e=>{const t=e.trim().toLowerCase();return!t||!!Bg.has(t)||Dg.some(e=>t.includes(e))})(t))return void Og.add(t);let r=!0;return(async()=>{try{Ug||(Ug=Promise.resolve().then(function(){return Ah}));const e=await Ug,n=e&&"default"in e?e.default:e,o=(e=>e.trim().replace(/\s+/g,"+"))(t);n.load({google:{families:[`${o}:300,400,500,600,700`]},fontactive:e=>{r&&Og.add(e)},fontinactive:e=>{r&&Og.add(e)}})}catch(e){}})(),()=>{r=!1}},[e])}const $g="__eshalChatWidgetCitationContext",Hg="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:void 0,qg=Hg?Hg[$g]||(Hg[$g]=I.createContext(null)):I.createContext(null);function Wg(e,t){return"string"!=typeof e||""===e?"":/^https?:\/\//i.test(e)?e:t?`${String(t).replace(/\/$/,"")}${e.startsWith("/")?"":"/"}${e}`:e}function Kg(e){if(!/%[0-9a-f]{2}/i.test(e))return e;try{return decodeURIComponent(e)}catch{return e}}function Qg(e){if(!e)return null;const t=/(?:^|;)\s*filename\*\s*=\s*([^;]+)/i.exec(e);if(t){const e=/^\s*"?([^']*)'[^']*'([^"]*)"?\s*$/.exec(t[1]),r=e?function(e,t){try{return/^utf-8$/i.test(e)?decodeURIComponent(t):t.replace(/%([0-9a-f]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)))}catch{return null}}(e[1],e[2]):null;if(r)return r}const r=/(?:^|;)\s*filename\s*=\s*"((?:[^"\\]|\\.)*)"/i.exec(e);if(r)return Kg(r[1].replace(/\\(.)/g,"$1"))||null;const n=/(?:^|;)\s*filename\s*=\s*([^;]+)/i.exec(e);return n&&Kg(n[1].trim())||null}const Yg="chat-widget-markdown-chunk.min.js",Gg="undefined"!=typeof document?document.currentScript?.src:void 0;let Jg=null;function Xg(){return"undefined"!=typeof window&&window.__eshalChatWidgetChunks?.MarkdownRenderer?Promise.resolve({default:window.__eshalChatWidgetChunks.MarkdownRenderer}):Jg||(Jg=new Promise((e,t)=>{const r=document.createElement("script");r.src=function(){if(Gg)return new URL(Yg,Gg).toString();const e=Array.from(document.getElementsByTagName("script")).find(e=>/chat-widget(\.min)?\.js(\?.*)?$/.test(e.src));return e?new URL(Yg,e.src).toString():Yg}(),r.async=!0,r.onload=()=>{window.__eshalChatWidgetChunks?.MarkdownRenderer?e({default:window.__eshalChatWidgetChunks.MarkdownRenderer}):(Jg=null,t(new Error("[widget] markdown chunk loaded but did not register itself")))},r.onerror=()=>{Jg=null,t(new Error(`[widget] failed to load markdown chunk from ${r.src}`))},document.head.appendChild(r)}),Jg)}function Zg(){return Xg()}var ep={exports:{}},tp={},rp=I,np=Symbol.for("react.element"),op=Symbol.for("react.fragment"),ap=Object.prototype.hasOwnProperty,ip=rp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,sp={key:!0,ref:!0,__self:!0,__source:!0};function lp(e,t,r){var n,o={},a=null,i=null;for(n in void 0!==r&&(a=""+r),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(i=t.ref),t)ap.call(t,n)&&!sp.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:np,type:e,key:a,ref:i,props:o,_owner:ip.current}}tp.Fragment=op,tp.jsx=lp,tp.jsxs=lp,ep.exports=tp;var cp=ep.exports;const up=I.lazy(Zg);class dp extends I.Component{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(e){}render(){return this.state.failed?this.props.fallback:this.props.children}}const gp=/(```|`[^`]+`|(^|\n)\s{0,3}#{1,6}\s|(^|\n)\s*[-*+]\s|(^|\n)\s*\d+\.\s|(^|\n)\s*>\s|\[[^\]]*\]\([^)]*\)|\*\*|__|~~|(^|\n)\s*\||\[\d+\])/;const pp=({content:e,isDark:t,textColor:r,fontFamily:n,fontSize:o})=>cp.jsx("p",{className:"leading-relaxed [&:first-child]:!mt-0 whitespace-pre-wrap break-words",style:{color:r||(t?"#f3f4f6":"#1A1A1A"),fontFamily:n||"Inter",fontSize:o||"14px",margin:0,lineHeight:"1.6",padding:0,overflowWrap:"break-word"},children:e}),fp=({content:e,isStreaming:t,isDark:r=!1,isRtl:n=!1,textColor:o,fontFamily:a,fontSize:i,onButtonClick:s,provideCitations:l=!0})=>{const[c,u]=I.useState(""),[d,g]=I.useState(!1),p=I.useRef(e),f=I.useRef(0),h=I.useRef(null),m=I.useRef(0);I.useEffect(()=>{if(e!==p.current){if(p.current=e,f.current>=e.length)return u(e),void g(!1);e.length<c.length&&(f.current=0,u(""))}if(!t)return u(e),g(!1),void(h.current&&cancelAnimationFrame(h.current));g(!0);const r=t=>{if(t-m.current<16)h.current=requestAnimationFrame(r);else if(m.current=t,f.current<e.length){const t=Math.max(2,Math.floor(4*Math.random())),n=Math.min(f.current+t,e.length);u(e.slice(0,n)),f.current=n,h.current=requestAnimationFrame(r)}else g(!1)};return h.current=requestAnimationFrame(r),()=>{h.current&&cancelAnimationFrame(h.current)}},[e,t]);const b="string"==typeof(y=c)&&0!==y.length&&gp.test(y);var y;return cp.jsxs("div",{className:"relative",dir:"auto",style:{textAlign:n?"right":"left",color:o||(r?"#f3f4f6":"#1A1A1A"),fontFamily:a||"Inter",fontSize:i||"14px",margin:0,padding:0},children:[b?cp.jsx(dp,{fallback:cp.jsx(pp,{content:c,isDark:r,textColor:o,fontFamily:a,fontSize:i}),children:cp.jsx(I.Suspense,{fallback:cp.jsx(pp,{content:c,isDark:r,textColor:o,fontFamily:a,fontSize:i}),children:cp.jsx(up,{content:c,isStreaming:t,isDark:r,isRtl:n,textColor:o,fontFamily:a,fontSize:i,onButtonClick:s,provideCitations:l})})}):cp.jsx(pp,{content:c,isDark:r,textColor:o,fontFamily:a,fontSize:i}),d&&cp.jsx("span",{className:"inline-block w-1.5 h-4 bg-blue-500 ms-0.5 animate-pulse align-text-bottom",style:{animationDuration:"0.8s"}})]})},hp=({isDark:e,t:t})=>cp.jsxs("div",{className:"flex gap-1.5",role:"status","aria-label":t("agentIsTyping"),children:[cp.jsx("div",{className:`w-2 h-2 rounded-full ${e?"bg-gray-500":"bg-gray-400"} animate-bounce`,style:{animationDelay:"0ms"},"aria-hidden":"true"}),cp.jsx("div",{className:`w-2 h-2 rounded-full ${e?"bg-gray-500":"bg-gray-400"} animate-bounce`,style:{animationDelay:"150ms"},"aria-hidden":"true"}),cp.jsx("div",{className:`w-2 h-2 rounded-full ${e?"bg-gray-500":"bg-gray-400"} animate-bounce`,style:{animationDelay:"300ms"},"aria-hidden":"true"})]}),mp=({question:e,options:t,onDecision:r,disabled:n,isDark:o=!1})=>cp.jsxs("div",{className:"mt-3 p-3 rounded-lg border "+(o?"bg-blue-900/30 border-blue-700/50":"bg-blue-50 border-blue-200"),children:[cp.jsx("p",{className:"text-sm font-medium mb-2 "+(o?"text-gray-100":"text-gray-900"),children:e}),cp.jsx("div",{className:"space-y-2",children:t.map(e=>cp.jsx("button",{onClick:()=>r(e.id,e.label),disabled:n,className:"w-full text-left px-3 py-2 text-sm rounded transition-all "+(o?"bg-gray-800 border border-gray-700 hover:bg-blue-900/50 hover:border-blue-600 disabled:opacity-50 disabled:cursor-not-allowed":"bg-white border border-gray-300 hover:bg-blue-50 hover:border-blue-400 disabled:opacity-50 disabled:cursor-not-allowed"),children:e.label},e.id))})]});function bp({content:e,isDark:t,t:r}){const n=r?r("copyMessage"):"Copy message",o=r?r("copied"):"Copied",[a,i]=I.useState(!1),s=I.useCallback(()=>{e&&(navigator.clipboard?.writeText(e).catch(()=>{}),i(!0),setTimeout(()=>i(!1),1500))},[e]);return cp.jsx("button",{type:"button",onClick:s,className:"p-0.5 rounded transition-colors "+(t?"text-gray-500 hover:text-gray-300":"text-gray-400 hover:text-gray-600"),style:{border:"none",background:"transparent",appearance:"none",WebkitAppearance:"none",cursor:"pointer"},"aria-label":a?o:n,title:a?o:n,children:a?cp.jsx(yg,{className:"w-3 h-3 text-green-500"}):cp.jsx(xg,{className:"w-3 h-3"})})}const yp=({message:e,formatTime:t,isDark:r,primaryColor:n,agentMessageBubbleColor:o,resolvedAgentBubbleColor:a,textColor:i,assistantTextColor:s,fontFamily:l,agentMessageBubbleFontFamily:c,agentMessageBubbleFontSize:u,fontSize:d,isRtl:g,onDecision:p,companyLogo:f,conciergeName:h,companyName:m,apiBaseUrl:b,getAuthToken:y,onPromptSuggestionClick:v,allowFeedback:w=!0,provideCitations:k=!0,onFeedback:x,headerTextColor:C,t:S})=>{const M="string"==typeof e.content?e.content:"",T=e.isProcessing&&(!M||0===M.length),P=Ed(M,g),[z,j]=I.useState(()=>e?.feedback??null),[E,F]=I.useState(!1),[L,N]=I.useState(null),[R,A]=I.useState(""),_=I.useRef(null),B=I.useCallback(e=>{if(x&&M){if(z===e)return j(null),F(!1),N(null),A(""),void x(M,null);if("like"===e)return j("like"),F(!1),N(null),A(""),void x(M,"like");j(null),N("dislike"),F(!0),A(""),setTimeout(()=>_.current?.focus(),100)}},[z,x,M]),D=I.useCallback(()=>{x&&M&&L&&(j(L),x(M,L,R.trim()||void 0),F(!1),A(""),N(null))},[x,M,L,R]),O=I.useCallback(()=>{F(!1),A(""),N(null)},[]),U=!0===e?.isError,V=U?r?"rgba(239,68,68,0.15)":"#fee2e2":null!=a?a:null!=o?o:r?"#1f2937":"#FFFFFF",$=null!=o&&"#ffffff"!==o&&"#FFFFFF"!==o&&"#1f2937"!==o,H=U?r?"#fca5a5":"#991b1b":null!=s?s:null!=i?i:r?"#f3f4f6":"#1A1A1A",q=null!=c?c:null!=l?l:"Inter",W=null!=u?u:null!=d?d:"14px";Vg(q);const{onSourceActivate:K,downloadingKey:Q}=function({apiBaseUrl:e,getAuthToken:t}){const[r,n]=I.useState(null),o=I.useCallback(async r=>{if(!r)return;const o=r.url||r.source_id||r.sourceid||r.source_name||"",a=String(r.source_id||r.sourceid||"").startsWith("attachment:"),i="string"==typeof r.url&&r.url.includes("/api/v1/sharepoint/file/");if(!("file"===r.source_type||i||a||(r.source_id||r.sourceid)&&!r.url)){const e=function(e){return"string"==typeof e&&/^https?:\/\//i.test(e)?e:void 0}(r.url);if(e)try{window.open(e,"_blank","noopener,noreferrer")}catch{}return}if(e||a){n(o);try{let n;if(a){if(!r.url)throw new Error("attachment has no URL");const o={};if("function"==typeof t){const e=await t();e&&(o.Authorization=`Bearer ${e}`)}n=await fetch(Wg(r.url,e),{method:"GET",headers:o,credentials:"include"})}else if(i){const o=Wg(r.url,e),a={};if("function"==typeof t){const e=await t();e&&(a.Authorization=`Bearer ${e}`)}n=await fetch(o,{method:"GET",headers:a,credentials:"include"})}else{const o=`${e.replace(/\/$/,"")}/api/v1/support/file-download`,a={"Content-Type":"application/json"};if("function"==typeof t){const e=await t();e&&(a.Authorization=`Bearer ${e}`)}n=await fetch(o,{method:"POST",headers:a,credentials:"include",body:JSON.stringify({source_id:r.source_id||r.sourceid,file_name:r.url||"",source_name:r.source_name||""})})}if(!n.ok){const e=await n.json().catch(()=>({}));throw new Error(e.details||e.error||n.statusText)}const o=await n.blob(),s=n.headers.get("content-disposition");let l=r.source_name||"download";a||(l=Qg(s)||l);const c=document.createElement("a"),u=URL.createObjectURL(o);c.href=u,c.download=l,document.body.appendChild(c),c.click(),c.remove(),URL.revokeObjectURL(u)}catch(e){}finally{n(null)}}},[e,t]);return{onSourceActivate:o,downloadingKey:r}}({apiBaseUrl:b,getAuthToken:y}),Y=I.useMemo(()=>({sources:e.sources||[],sourcesPreliminary:!!e.sourcesPreliminary,onSourceActivate:K,downloadingKey:Q,textColor:H,t:S}),[e.sources,e.sourcesPreliminary,K,Q,H,S]);return cp.jsx(qg.Provider,{value:Y,children:cp.jsxs("div",{className:"flex gap-3 flex-row animate-in min-w-0",children:[cp.jsx("div",{className:"flex-shrink-0 mt-1",children:cp.jsx("div",{className:"w-8 h-8 rounded-full overflow-hidden flex items-center justify-center",style:{backgroundColor:n||"#2563eb"},children:f?cp.jsx("div",{className:"w-full h-full bg-white/10 flex items-center justify-center",children:cp.jsx("img",{src:f,alt:h||m||"Assistant avatar",className:"object-contain rounded-full",style:{width:"100%",height:"100%"}})}):cp.jsx("div",{className:"w-full h-full flex items-center justify-center",style:{fontSize:"18px",fontFamily:l||"Inter",color:C||"#FFFFFF"},children:(h||"A").charAt(0).toUpperCase()})})}),cp.jsxs("div",{className:"flex flex-col items-start min-w-0 max-w-[75%]",children:[cp.jsx("div",{className:"rounded-2xl px-4 py-2.5 shadow-sm border rounded-tl-sm rtl:rounded-tl-2xl rtl:rounded-tr-sm min-w-0 max-w-full overflow-hidden "+($?"border-transparent":r?"border-gray-700":"border-gray-200"),style:{backgroundColor:V,color:H,fontFamily:q,fontSize:W,direction:P?"rtl":"ltr",textAlign:P?"right":"left",...$?{borderColor:`${V}33`}:{}},children:T?cp.jsx(hp,{isDark:r,t:S}):cp.jsx(cp.Fragment,{children:e.requiresDecision&&e.decisionData&&p?cp.jsxs("div",{children:[M&&cp.jsx("div",{className:"mb-3",children:cp.jsx(fp,{content:M,isStreaming:e.isProcessing,isDark:r,isRtl:P,textColor:H,fontFamily:q,fontSize:W,onButtonClick:v,provideCitations:k})}),cp.jsx(mp,{question:e.decisionData.question,options:e.decisionData.options,onDecision:(t,r)=>p(e.decisionData.decisionId,t,r),disabled:!!e.decisionResponse,isDark:r}),e.decisionResponse&&cp.jsxs("div",{className:"mt-2 text-xs "+(r?"text-gray-400":"text-gray-500"),children:["Selected: ",e.decisionResponse.selectedOption]})]}):M?cp.jsx(cp.Fragment,{children:cp.jsx(fp,{content:M,isStreaming:e.isProcessing,isDark:r,isRtl:P,textColor:H,fontFamily:q,fontSize:W,onButtonClick:v,provideCitations:k})}):null})}),cp.jsxs("div",{className:"flex items-center gap-1.5 mt-1.5 px-1",children:[cp.jsx("p",{className:"text-xs leading-none "+(r?"text-gray-400":"text-gray-500"),dir:"auto",children:t(e.timestamp)}),!T&&!e.isProcessing&&M&&cp.jsx(bp,{content:M,isDark:r,t:S}),!1!==w&&x&&!T&&!e.isProcessing&&M&&"welcome"!==e.type&&!e.isWelcome&&cp.jsxs("div",{className:"flex items-center gap-0.5 ms-0.5",children:[cp.jsx("button",{type:"button",onClick:()=>B("like"),className:"p-0.5 rounded transition-colors "+("like"===z||"like"===L?"text-green-500":r?"text-gray-500 hover:text-gray-300":"text-gray-400 hover:text-gray-600"),style:{border:"none",background:"transparent",appearance:"none",WebkitAppearance:"none",cursor:"pointer"},"aria-label":S("like"),"aria-pressed":"like"===z,children:cp.jsx(Ag,{className:"w-3 h-3"})}),cp.jsx("button",{type:"button",onClick:()=>B("dislike"),className:"p-0.5 rounded transition-colors "+("dislike"===z||"dislike"===L?"text-red-500":r?"text-gray-500 hover:text-gray-300":"text-gray-400 hover:text-gray-600"),style:{border:"none",background:"transparent",appearance:"none",WebkitAppearance:"none",cursor:"pointer"},"aria-label":S("dislike"),"aria-pressed":"dislike"===z,children:cp.jsx(Rg,{className:"w-3 h-3"})})]})]}),E&&"dislike"===L&&cp.jsxs("div",{className:"mt-2 w-full rounded-xl border p-3 shadow "+(r?"bg-gray-800 border-gray-700":"bg-white border-gray-200"),style:{direction:g?"rtl":"ltr"},children:[cp.jsx("textarea",{ref:_,value:R,onChange:e=>A(e.target.value),onKeyDown:e=>{(e.metaKey||e.ctrlKey)&&"Enter"===e.key?(e.preventDefault(),D()):"Escape"===e.key&&(e.preventDefault(),O())},placeholder:S("feedbackPlaceholder"),"aria-label":S("feedbackPlaceholder"),rows:2,className:"w-full resize-none rounded-lg border px-2 py-1.5 text-xs focus:outline-none focus:ring-1 "+(r?"bg-gray-900 border-gray-700 text-gray-100 placeholder-gray-500 focus:ring-gray-600":"bg-white border-gray-200 text-gray-900 placeholder-gray-400 focus:ring-gray-300"),style:{fontFamily:q,textAlign:g?"right":"left"}}),cp.jsxs("div",{className:"flex items-center justify-end gap-1.5 mt-1.5",children:[cp.jsx("button",{type:"button",onClick:O,className:"text-xs px-2 py-1 rounded transition-colors "+(r?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700"),style:{border:"none",background:"transparent",cursor:"pointer"},children:S("cancel")}),cp.jsx("button",{type:"button",onClick:D,className:"text-xs px-2.5 py-1 rounded text-white transition-opacity hover:opacity-90",style:{backgroundColor:n||"#2563eb",border:"none",cursor:"pointer"},children:S("submit")})]})]})]})]})})},vp=({message:e,formatTime:t,userMessageBoxColor:r,primaryColor:n,resolvedUserMessageColor:o,textColor:a,userTextColor:i,fontFamily:s,userMessageBubbleFontFamily:l,userMessageBubbleFontSize:c,fontSize:u,isDark:d,isRtl:g,t:p,onRetryMessage:f})=>{const h=null!=o?o:null!=r?r:null!=n?n:"#2563eb",m=null!=i?i:null!=a?a:"#FFFFFF",b=null!=l?l:null!=s?s:"Inter",y=null!=c?c:null!=u?u:"14px",v=Ed("string"==typeof e?.content?e.content:"",g);Vg(b);const w=Array.isArray(e.attachments)?e.attachments:[];return cp.jsx("div",{className:"flex gap-3 flex-row-reverse animate-in",children:cp.jsxs("div",{className:"flex flex-col items-end max-w-[75%]",children:[w.length>0&&cp.jsx("div",{className:"mb-1.5 flex flex-wrap justify-end gap-1.5",children:w.map((e,t)=>String(e.mimeType||"").startsWith("image/")&&e.url?cp.jsx("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"block rounded-md overflow-hidden",style:{maxWidth:160},title:e.filename,children:cp.jsx("img",{src:e.url,alt:e.filename||"attachment",style:{maxWidth:160,maxHeight:160,display:"block"}})},e.storageKey||t):cp.jsxs("span",{className:"inline-flex items-center gap-1.5 rounded-full px-2.5 py-1 text-xs",style:{backgroundColor:d?"#1f2937":"#f3f4f6",color:d?"#e5e7eb":"#374151",border:"1px solid "+(d?"#374151":"#e5e7eb"),maxWidth:200},title:e.filename,children:[cp.jsx(Sg,{size:12}),cp.jsx("span",{className:"truncate",style:{maxWidth:140,direction:"ltr"},children:e.filename})]},e.storageKey||t))}),e.content&&""!==e.content.trim()&&cp.jsx("div",{className:"rounded-2xl px-4 py-2.5 shadow-lg "+(v?"rounded-tl-sm":"rounded-tr-sm"),dir:"auto",style:{background:`linear-gradient(135deg, ${h} 0%, ${h}dd 100%)`,fontFamily:b,direction:v?"rtl":"ltr",textAlign:v?"right":"left"},children:cp.jsx("p",{className:"whitespace-pre-wrap break-words",dir:"auto",style:{color:m,fontFamily:b,fontSize:y,lineHeight:"1.5",textAlign:v?"right":"left",overflowWrap:"break-word",margin:0,padding:0},children:e.content})}),cp.jsxs("div",{className:"flex items-center gap-1.5 mt-1.5 px-1",children:[cp.jsx("p",{className:"text-xs leading-none "+(d?"text-gray-400":"text-gray-500"),dir:"auto",children:t(e.timestamp)}),e.content&&""!==e.content.trim()&&cp.jsx(bp,{content:e.content,isDark:d,t:p})]}),"failed"===e.status&&cp.jsxs("div",{className:"flex items-center gap-1.5 mt-1 px-1","data-testid":"message-failed-state",children:[cp.jsx("span",{className:"text-xs leading-none",style:{color:"#dc2626"},dir:"auto",children:p("messageNotDelivered")}),"function"==typeof f&&cp.jsx("button",{type:"button",onClick:()=>f(e),className:"text-xs leading-none font-medium underline",style:{color:"#dc2626"},dir:"auto",children:p("retrySend")})]})]})})},wp=({message:e,isDark:t,primaryColor:r,agentMessageBubbleColor:n,userMessageBoxColor:o,resolvedUserMessageColor:a,resolvedAgentBubbleColor:i,textColor:s,assistantTextColor:l,userTextColor:c,fontFamily:u,agentMessageBubbleFontFamily:d,agentMessageBubbleFontSize:g,userMessageBubbleFontFamily:p,userMessageBubbleFontSize:f,fontSize:h,formatTime:m,isRtl:b,onDecision:y,companyLogo:v,conciergeName:w,companyName:k,apiBaseUrl:x,getAuthToken:C,onPromptSuggestionClick:S,allowFeedback:M,provideCitations:T,onFeedback:P,headerTextColor:z,onRetryMessage:j,defaultLanguage:E="en"})=>{const F=I.useMemo(()=>Ld(E),[E]);return e?"user"===e.role?cp.jsx(vp,{message:e,formatTime:m,userMessageBoxColor:o,primaryColor:r,resolvedUserMessageColor:a,textColor:s,userTextColor:c,fontFamily:u,userMessageBubbleFontFamily:p,userMessageBubbleFontSize:f,fontSize:h,isDark:t,isRtl:b,t:F,onRetryMessage:j}):cp.jsx(yp,{message:e,formatTime:m,isDark:t,primaryColor:r,agentMessageBubbleColor:n,resolvedAgentBubbleColor:i,textColor:s,assistantTextColor:l,fontFamily:u,agentMessageBubbleFontFamily:d,agentMessageBubbleFontSize:g,fontSize:h,isRtl:b,onDecision:y,companyLogo:v,conciergeName:w,companyName:k,apiBaseUrl:x,getAuthToken:C,onPromptSuggestionClick:S,allowFeedback:M,provideCitations:T,onFeedback:P,headerTextColor:z,t:F}):null};var kp=I.memo(wp);const xp=(e,t,r)=>Number.isNaN(e)?t:Math.min(Math.max(e,t),r),Cp=e=>{if(!e)return null;const t=(e=>e?.trim().toLowerCase()??"")(e),r=(e=>{const t=e.match(/^#?([0-9a-f]{3}|[0-9a-f]{6})$/i);if(!t)return null;let r=t[1];3===r.length&&(r=r.split("").map(e=>`${e}${e}`).join(""));const n=parseInt(r.slice(0,2),16),o=parseInt(r.slice(2,4),16),a=parseInt(r.slice(4,6),16);return[n,o,a].some(e=>Number.isNaN(e))?null:{r:n,g:o,b:a}})(t);if(r)return r;const n=(e=>{const t=e.match(/^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})(?:\s*,\s*(\d*\.?\d+))?\s*\)$/i);return t?{r:xp(Number.parseInt(t[1],10),0,255),g:xp(Number.parseInt(t[2],10),0,255),b:xp(Number.parseInt(t[3],10),0,255)}:null})(t);return n||null},Sp=({r:e,g:t,b:r})=>{const n=e=>{const t=xp(Math.round(e),0,255).toString(16);return 1===t.length?`0${t}`:t};return`#${n(e)}${n(t)}${n(r)}`},Mp=(e,t,r)=>{const n=xp(r,0,1);return{r:Math.round(e.r+(t.r-e.r)*n),g:Math.round(e.g+(t.g-e.g)*n),b:Math.round(e.b+(t.b-e.b)*n)}},Tp=(e,t)=>{const r=xp(t,0,1);return`rgba(${xp(Math.round(e.r),0,255)}, ${xp(Math.round(e.g),0,255)}, ${xp(Math.round(e.b),0,255)}, ${r})`},Pp={background:"#f8fafc",hoverBackground:"#f1f5f9",border:"#e2e8f0",hoverBorder:"#cbd5f5",shadow:"0 4px 12px rgba(15, 23, 42, 0.08)",hoverShadow:"0 6px 20px rgba(15, 23, 42, 0.14)"},zp={background:"#1f2937",hoverBackground:"#27364a",border:"#334155",hoverBorder:"#3b4c63",shadow:"0 4px 12px rgba(15, 23, 42, 0.45)",hoverShadow:"0 6px 20px rgba(15, 23, 42, 0.55)"},jp=(e,t)=>{const r=Cp(e);if(!r)return(e=>e?zp:Pp)(t);const n=(({r:e,g:t,b:r})=>{const n=[e,t,r].map(e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return.2126*n[0]+.7152*n[1]+.0722*n[2]})(r),o=Cp("#0f172a")??{r:15,g:23,b:42},a=Cp(t?"#f8fafc":"#f9fafb")??{r:249,g:250,b:251},i=Cp(t?"#334155":"#e2e8f0")??{r:226,g:232,b:240};let s,l;if(n>=.6){const e=t?.5:.7,n=Math.min(1,e+.15);s=Mp(r,o,e),l=Mp(r,o,n)}else if(n<=.35){const e=t?.9:.8,n=Math.min(1,e+(t?.05:.12));s=Mp(r,a,e),l=Mp(r,a,n)}else{const e=t?.45:.6,n=Math.min(1,e+.1);s=Mp(r,i,e),l=Mp(r,i,n)}const c=Mp(r,s,.65),u=Mp(r,l,.7),d=`0 4px 12px ${Tp(r,t?.28:.12)}`,g=`0 6px 20px ${Tp(r,t?.35:.18)}`;return{background:Sp(s),hoverBackground:Sp(l),border:Sp(c),hoverBorder:Sp(u),shadow:d,hoverShadow:g}},Ep=({questions:e,isDark:t,palette:r,resolvedTextColor:n,fontFamily:o,fontSize:a,isRtl:i,onQuestionClick:s,applyHoverState:l,headingLabel:c,defaultLanguage:u})=>{const d=I.useRef(null),[g,p]=I.useState(!1),[f,h]=I.useState(!1),m=I.useCallback(()=>{const e=d.current;if(!e)return;const{scrollLeft:t,scrollWidth:r,clientWidth:n}=e;p(Math.abs(t)>1),h(Math.abs(t)+n<r-1)},[]);I.useEffect(()=>{m();const e=d.current;if(!e)return;const t=new ResizeObserver(m);return t.observe(e),()=>t.disconnect()},[m,e]);const b=I.useCallback(e=>{const t=d.current;if(!t)return;const r="left"===e?-150:150;t.scrollBy({left:i?-r:r,behavior:"smooth"})},[i]),y=t?"rgba(31,41,55,0.85)":"rgba(255,255,255,0.85)",v=t?"#e5e7eb":"#374151",w=t?"#4b5563":"#d1d5db";return cp.jsxs("div",{className:"px-4 py-4 border-t "+(t?"border-gray-700/50":"border-gray-200/60"),children:[cp.jsxs("div",{className:"text-xs mb-3 font-semibold tracking-wide uppercase "+(t?"text-gray-400":"text-gray-500"),children:[c||"Quick questions",":"]}),cp.jsxs("div",{className:"flex items-center gap-1.5",children:[cp.jsx("button",{onClick:()=>b("left"),disabled:!g,"aria-label":Fd(u,"scrollLeft"),className:"flex-shrink-0 flex items-center justify-center w-7 h-7 rounded-full shadow-sm transition-all duration-200 hover:shadow-md active:scale-95",style:{backgroundColor:y,border:`1px solid ${w}`,color:v,backdropFilter:"blur(4px)",opacity:g?1:.35,cursor:g?"pointer":"default"},children:cp.jsx(vg,{size:16})}),cp.jsx("div",{ref:d,onScroll:m,className:"flex-1 flex gap-3 overflow-x-auto pb-2",style:{scrollBehavior:"smooth",WebkitOverflowScrolling:"touch",scrollbarWidth:"none",msOverflowStyle:"none"},children:e.map((e,t)=>{const c=Ed(e,i);return cp.jsxs("button",{onClick:()=>s?.(e),className:"group relative text-sm px-5 py-2.5 rounded-full font-medium transition-all duration-300 hover:scale-105 active:scale-95 whitespace-nowrap flex-shrink-0 overflow-hidden backdrop-blur-sm "+(c?"text-right":"text-left"),style:{direction:c?"rtl":"ltr",backgroundColor:r.background,border:`1.5px solid ${r.border}`,boxShadow:r.shadow},onMouseEnter:e=>{l(e.currentTarget,!0),e.currentTarget.style.transform="translateY(-2px)"},onMouseLeave:e=>{l(e.currentTarget,!1),e.currentTarget.style.transform="translateY(0)"},children:[cp.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-white/0 via-white/5 to-white/10 opacity-0 group-hover:opacity-100 transition-opacity duration-300 rounded-xl"}),cp.jsx("span",{className:"relative z-10",style:{direction:c?"rtl":"ltr",color:n,fontFamily:o,fontSize:a,textAlign:c?"right":"left"},children:e})]},t)})}),cp.jsx("button",{onClick:()=>b("right"),disabled:!f,"aria-label":Fd(u,"scrollRight"),className:"flex-shrink-0 flex items-center justify-center w-7 h-7 rounded-full shadow-sm transition-all duration-200 hover:shadow-md active:scale-95",style:{backgroundColor:y,border:`1px solid ${w}`,color:v,backdropFilter:"blur(4px)",opacity:f?1:.35,cursor:f?"pointer":"default"},children:cp.jsx(wg,{size:16})})]})]})},Fp=({questions:e=[],isDark:t=!1,primaryColor:r="#2563eb",onQuestionClick:n,isTyping:o=!1,layout:a="vertical",fontFamily:i="Inter",fontSize:s="14px",textColor:l,isRtl:c=!1,questionTextColor:u,questionBoxColor:d,resolvedUserMessageColor:g,userMessageBoxColor:p,userTextColor:f,headingLabel:h,defaultLanguage:m="en"})=>{if(!e.length||o)return null;const b=u??l??(t?"#f3f4f6":"#111827"),y=I.useMemo(()=>jp(b,t),[b,t]),v=(e,t)=>{e.style.backgroundColor=t?y.hoverBackground:y.background,e.style.borderColor=t?y.hoverBorder:y.border,e.style.boxShadow=t?y.hoverShadow:y.shadow};if("horizontal"===a)return cp.jsx(Ep,{questions:e,isDark:t,palette:y,resolvedTextColor:b,fontFamily:i,fontSize:s,isRtl:c,onQuestionClick:n,applyHoverState:v,headingLabel:h,defaultLanguage:m});const w=g??p??r??"#2563eb",k=f??l??"#FFFFFF";return cp.jsxs("div",{style:{paddingInlineStart:"50px"},children:[h?cp.jsx("div",{className:"mb-2",style:{color:t?"#9ca3af":"#6b7280",fontFamily:i,fontSize:`calc(${s} - 1px)`},children:h}):null,cp.jsx("div",{className:"flex flex-wrap gap-2",children:e.map((e,t)=>{const r=Ed(e,c);return cp.jsx("button",{onClick:()=>n?.(e),className:"transition-all duration-200 active:scale-[0.97]",style:{direction:r?"rtl":"ltr",fontFamily:i,fontSize:s,color:k,backgroundColor:w,border:"none",borderRadius:"9999px",padding:"5px 14px",fontWeight:500,lineHeight:"1.4",whiteSpace:"normal",textAlign:r?"right":"left"},children:e},t)})})]})},Lp=({active:e=!1,processing:t=!1,deviceId:r,barWidth:n=3,barGap:o=1,barRadius:a=1.5,barColor:i,fadeEdges:s=!0,fadeWidth:l=24,barHeight:c=4,height:u=64,sensitivity:d=1,smoothingTimeConstant:g=.8,fftSize:p=256,historySize:f=60,updateRate:h=30,mode:m="static",onError:b,onStreamReady:y,onStreamEnd:v,className:w,...k})=>{const x=I.useRef(null),C=I.useRef(null),S=I.useRef([]),M=I.useRef(null),T=I.useRef(null),P=I.useRef(null),z=I.useRef(0),j=I.useRef(0),E=I.useRef(null),F=I.useRef([]),L=I.useRef(0),N=I.useRef([]),R=I.useRef(!0),A=I.useRef(null),_=I.useRef(0),B="number"==typeof u?`${u}px`:u;return I.useEffect(()=>{const e=x.current,t=C.current;if(!e||!t)return;const r=new ResizeObserver(()=>{const r=t.getBoundingClientRect(),n=window.devicePixelRatio||1;e.width=r.width*n,e.height=r.height*n,e.style.width=`${r.width}px`,e.style.height=`${r.height}px`;const o=e.getContext("2d");o&&o.scale(n,n),A.current=null,_.current=r.width,R.current=!0});return r.observe(t),()=>r.disconnect()},[]),I.useEffect(()=>{if(t&&!e){let e=0;L.current=0;const t=()=>{e+=.03,L.current=Math.min(1,L.current+.02);const r=[],a=Math.floor((C.current?.getBoundingClientRect().width||200)/(n+o));if("static"===m){const t=Math.floor(a/2);for(let n=0;n<a;n++){const o=(n-t)/t,a=1-.4*Math.abs(o),i=(.2+(.25*Math.sin(1.5*e+3*o)+.2*Math.sin(.8*e-2*o)+.15*Math.cos(2*e+o)))*a;let s=i;if(F.current.length>0&&L.current<1){const e=Math.min(n,F.current.length-1);s=(F.current[e]||0)*(1-L.current)+i*L.current}r.push(Math.max(.05,Math.min(1,s)))}}else for(let t=0;t<a;t++){const n=(t-a/2)/(a/2),o=1-.4*Math.abs(n),i=(.2+(.25*Math.sin(1.5*e+.15*t)+.2*Math.sin(.8*e-.1*t)+.15*Math.cos(2*e+.05*t)))*o;let s=i;if(F.current.length>0&&L.current<1){const e=Math.floor(t/a*F.current.length);s=(F.current[e]||0)*(1-L.current)+i*L.current}r.push(Math.max(.05,Math.min(1,s)))}"static"===m?N.current=r:S.current=r,R.current=!0,E.current=requestAnimationFrame(t)};return t(),()=>{E.current&&cancelAnimationFrame(E.current)}}if(!e&&!t){if("static"===m?N.current.length>0:S.current.length>0){let e=0;const t=()=>{e+=.03,e<1?("static"===m?N.current=N.current.map(t=>t*(1-e)):S.current=S.current.map(t=>t*(1-e)),R.current=!0,requestAnimationFrame(t)):"static"===m?N.current=[]:S.current=[]};t()}}},[t,e,n,o,m]),I.useEffect(()=>{if(!e)return P.current&&(P.current.getTracks().forEach(e=>e.stop()),P.current=null,v?.()),T.current&&"closed"!==T.current.state&&(T.current.close(),T.current=null),void(z.current&&(cancelAnimationFrame(z.current),z.current=0));return(async()=>{try{const e=await navigator.mediaDevices.getUserMedia({audio:r?{deviceId:{exact:r},echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}});P.current=e,y?.(e);const t=new(window.AudioContext||window.webkitAudioContext),n=t.createAnalyser();n.fftSize=p,n.smoothingTimeConstant=g;t.createMediaStreamSource(e).connect(n),T.current=t,M.current=n,S.current=[]}catch(e){b?.(e)}})(),()=>{P.current&&(P.current.getTracks().forEach(e=>e.stop()),P.current=null,v?.()),T.current&&"closed"!==T.current.state&&(T.current.close(),T.current=null),z.current&&(cancelAnimationFrame(z.current),z.current=0)}},[e,r,p,g,b,y,v]),I.useEffect(()=>{const r=x.current;if(!r)return;const u=r.getContext("2d");if(!u)return;let g;const p=b=>{const y=r.getBoundingClientRect();if(e&&b-j.current>h&&(j.current=b,M.current)){const e=new Uint8Array(M.current.frequencyBinCount);if(M.current.getByteFrequencyData(e),"static"===m){const t=Math.floor(.05*e.length),r=Math.floor(.4*e.length),a=e.slice(t,r),i=Math.floor(y.width/(n+o)),s=Math.floor(i/2),l=[];for(let e=s-1;e>=0;e--){const t=Math.floor(e/s*a.length),r=Math.min(1,a[t]/255*d);l.push(Math.max(.05,r))}for(let e=0;e<s;e++){const t=Math.floor(e/s*a.length),r=Math.min(1,a[t]/255*d);l.push(Math.max(.05,r))}N.current=l,F.current=l}else{let t=0;const r=Math.floor(.05*e.length),n=Math.floor(.4*e.length),o=e.slice(r,n);for(let e=0;e<o.length;e++)t+=o[e];const a=t/o.length/255*d;S.current.push(Math.min(1,Math.max(.05,a))),F.current=[...S.current],S.current.length>f&&S.current.shift()}R.current=!0}if(!R.current&&!e)return void(g=requestAnimationFrame(p));R.current=e,u.clearRect(0,0,y.width,y.height);const v=i||getComputedStyle(r).color||"#000",w=n+o,k=Math.floor(y.width/w),x=y.height/2;if("static"===m){const r=t||e||N.current.length>0?N.current:[];for(let e=0;e<k&&e<r.length;e++){const t=r[e]||.1,o=e*w,i=Math.max(c,t*y.height*.8),s=x-i/2;u.fillStyle=v,u.globalAlpha=.4+.6*t,a>0?(u.beginPath(),u.roundRect(o,s,n,i,a),u.fill()):u.fillRect(o,s,n,i)}}else for(let e=0;e<k&&e<S.current.length;e++){const t=S.current.length-1-e,r=S.current[t]||.1,o=y.width-(e+1)*w,i=Math.max(c,r*y.height*.8),s=x-i/2;u.fillStyle=v,u.globalAlpha=.4+.6*r,a>0?(u.beginPath(),u.roundRect(o,s,n,i,a),u.fill()):u.fillRect(o,s,n,i)}if(s&&l>0&&y.width>0){if(!A.current||_.current!==y.width){const e=u.createLinearGradient(0,0,y.width,0),t=Math.min(.3,l/y.width);e.addColorStop(0,"rgba(255,255,255,1)"),e.addColorStop(t,"rgba(255,255,255,0)"),e.addColorStop(1-t,"rgba(255,255,255,0)"),e.addColorStop(1,"rgba(255,255,255,1)"),A.current=e,_.current=y.width}u.globalCompositeOperation="destination-out",u.fillStyle=A.current,u.fillRect(0,0,y.width,y.height),u.globalCompositeOperation="source-over"}u.globalAlpha=1,g=requestAnimationFrame(p)};return g=requestAnimationFrame(p),()=>{g&&cancelAnimationFrame(g)}},[e,t,d,h,f,n,c,o,a,i,s,l,m]),cp.jsxs("div",{className:Od("relative h-full w-full",w),ref:C,style:{height:B},"aria-label":e?"Live audio waveform":t?"Processing audio":"Audio waveform idle",role:"img",...k,children:[!e&&!t&&cp.jsx("div",{className:"border-muted-foreground/20 absolute top-1/2 right-0 left-0 -translate-y-1/2 border-t-2 border-dotted"}),cp.jsx("canvas",{className:"block h-full w-full",ref:x,"aria-hidden":"true"})]})};function Np(e){if(!e||"user"===e.role)return null;const t=e.metadata?.senderName;return"string"==typeof t&&t.trim()?t.trim():null}function Rp(e,t){return null!=e?e:t}function Ap(e,t){const r=e||[];for(let e=t+1;e<r.length;e+=1){const t=r[e];if(t&&"user"===t.role&&!t.sendFailed)return"string"==typeof t.content?t.content:String(Rp(t.content,""))}}const _p=I.createContext(void 0),Ip=({messages:e=[],isDark:t,primaryColor:r,isLoading:n,agentMessageBubbleColor:o,userMessageBoxColor:a,textColor:i,assistantTextColor:s,userTextColor:l,fontFamily:c,agentMessageBubbleFontFamily:u,agentMessageBubbleFontSize:d,userMessageBubbleFontFamily:g,userMessageBubbleFontSize:p,fontSize:f,formatTime:h,isRtl:m=!1,defaultLanguage:b="en",quickQuestions:y=[],shouldShowQuickQuestions:v=!1,onQuickQuestion:w,quickQuestionsLayout:k="vertical",onDecision:x,disclaimerEnabled:C=!1,disclaimerText:S,disclaimerPosition:M="top",disclaimerLinkUrl:T,disclaimerLinkLabel:P,resolvedAgentBubbleColor:z,resolvedUserMessageColor:j,resolvedTextColor:E,isVoiceSessionActive:F=!1,voiceStatus:L="idle",messagesContainerRef:N,companyLogo:R,chatbotAvatarEnabled:A,chatbotAvatar:_,conciergeName:B,companyName:D,apiBaseUrl:O,getAuthToken:U,onPromptSuggestionClick:V,conversationResetKey:$,allowFeedback:H,provideCitations:q,onFeedback:W,headerTextColor:K,onRetryMessage:Q,beforePromptsSlot:Y=null,promptsSlot:G=null,quickQuestionsHeadingLabel:J})=>{const X=I.useRef(null),Z=I.useRef(!0),ee=I.useRef(!1),te=I.useMemo(()=>e.map(e=>`${e.id}:${e.content?.length??0}:${e.isProcessing?1:0}`).join("|"),[e]),re=I.useCallback(()=>{const e=N?.current;if(!e)return;const t=e.scrollHeight-e.scrollTop-e.clientHeight;Z.current=t<160},[N]);I.useEffect(()=>{const e=N?.current;if(e)return e.addEventListener("scroll",re,{passive:!0}),re(),()=>{e.removeEventListener("scroll",re)}},[re,N]),I.useEffect(()=>{$&&(Z.current=!0,ee.current=!1)},[$]),I.useEffect(()=>{if(ee.current||0===e.length||"undefined"==typeof window)return;ee.current=!0;let t,r=!1;const n=window.requestAnimationFrame(()=>{r||(t=window.requestAnimationFrame(()=>{r||(X.current?.scrollIntoView({behavior:"instant",block:"end"}),Z.current=!0)}))});return()=>{r=!0,window.cancelAnimationFrame(n),window.cancelAnimationFrame(t)}},[0===e.length]),I.useEffect(()=>{if(!Z.current)return;if("undefined"==typeof window)return;let e=!1;const t=window.requestAnimationFrame(()=>{e||X.current?.scrollIntoView({behavior:"smooth",block:"end"})});return()=>{e=!0,window.cancelAnimationFrame(t)}},[te,n]),I.useEffect(()=>{if(!F||"connected"!==L)return;if("undefined"==typeof window)return;let e=!1;const t=window.requestAnimationFrame(()=>{e||X.current?.scrollIntoView({behavior:"smooth",block:"end"})});return()=>{e=!0,window.cancelAnimationFrame(t)}},[F,L]);const ne=I.useMemo(()=>Dd(T),[T]),oe=I.useMemo(()=>function(e){const t=new Map;if(!Array.isArray(e))return t;const r=new Set;for(const n of e){const e=Np(n);if(!e||!n.id)continue;const o=!r.has(e);r.add(e),t.set(n.id,{name:e,joined:o})}return t}(e),[e]),ae=I.useMemo(()=>Ed(S,m),[S,m]);return cp.jsxs(cp.Fragment,{children:[C&&S&&"top"===M&&cp.jsx("div",{className:"flex justify-center",children:cp.jsx("div",{className:"rounded-lg px-2 py-1 ",style:{color:t?"#d1d5db":"#6b7280",fontFamily:null!=c?c:"Inter",fontSize:null!=f?`calc(${f} - 2px)`:"12px",direction:ae?"rtl":"ltr",textAlign:"center",borderColor:t?"#374151":"#e5e7eb"},children:cp.jsxs("p",{className:"leading-relaxed whitespace-pre-wrap break-words inline",dir:ae?"rtl":"ltr",style:{color:t?"#d1d5db":"#6b7280",fontFamily:null!=c?c:"Inter",fontSize:null!=f?`calc(${f} - 2px)`:"12px"},children:[S,ne&&P&&cp.jsx("a",{href:ne,target:"_blank",rel:"noopener noreferrer",title:ne,style:{color:t?"#93c5fd":"#2563eb",marginInlineStart:"4px",verticalAlign:"middle",display:"inline-flex",alignItems:"center"},children:P})]})})}),e.map((n,y)=>{const v=oe.get(n.id);return cp.jsxs(_p.Provider,{value:"assistant"===n.role?Ap(e,y):void 0,children:[v?.joined&&cp.jsx("div",{role:"status","data-testid":"agent-joined-line",style:{textAlign:"center",fontSize:"12px",opacity:.7,margin:"8px 0"},children:Fd(b,"agentJoinedConversation").replace("{name}",v.name)}),v&&cp.jsx("div",{"data-testid":"agent-sender-name",style:{fontSize:"12px",fontWeight:600,opacity:.8,margin:"0 0 2px 4px",textAlign:m?"right":"left"},children:v.name}),cp.jsx(kp,{message:n,isDark:t,primaryColor:r,agentMessageBubbleColor:o,userMessageBoxColor:a,resolvedUserMessageColor:j,resolvedAgentBubbleColor:z,textColor:i,assistantTextColor:s,userTextColor:l,fontFamily:c,agentMessageBubbleFontFamily:u,agentMessageBubbleFontSize:d,userMessageBubbleFontFamily:g,userMessageBubbleFontSize:p,fontSize:f,formatTime:h,isRtl:Ed(n.content,m),onDecision:x,onPromptSuggestionClick:V,companyLogo:A&&_?_:R,conciergeName:B,companyName:D,apiBaseUrl:O,getAuthToken:U,allowFeedback:H,provideCitations:q,onFeedback:W,headerTextColor:K,onRetryMessage:Q,defaultLanguage:b})]},n.id)}),(()=>{const y=e[e.length-1],v=n&&"user"===y?.role,w=e.some(e=>"assistant"===e.role&&(e.isProcessing||!e.content));return v&&!w?cp.jsx(kp,{message:od(),isDark:t,primaryColor:r,agentMessageBubbleColor:o,resolvedAgentBubbleColor:z,userMessageBoxColor:a,textColor:i,assistantTextColor:s,userTextColor:l,fontFamily:c,agentMessageBubbleFontFamily:u,agentMessageBubbleFontSize:d,userMessageBubbleFontFamily:g,userMessageBubbleFontSize:p,fontSize:f,formatTime:h,isRtl:m,onDecision:x,companyLogo:A&&_?_:R,conciergeName:B,companyName:D,apiBaseUrl:O,getAuthToken:U,headerTextColor:K,defaultLanguage:b},"skeleton-waiting"):null})(),Y,G?cp.jsx("div",{className:"pt-1",children:G}):v&&y.length>0&&cp.jsx("div",{className:"pt-1",children:cp.jsx(Fp,{questions:y,isDark:t,primaryColor:r,onQuestionClick:w,isTyping:n,layout:k,fontFamily:c,fontSize:f,textColor:i,isRtl:m,questionTextColor:s,questionBoxColor:o,resolvedUserMessageColor:j,userMessageBoxColor:a,userTextColor:l,headingLabel:J,defaultLanguage:b})}),F&&"connected"===L&&!n&&cp.jsx("div",{className:"flex gap-3 flex-row-reverse animate-in",children:cp.jsx("div",{className:"flex flex-col items-end max-w-[75%] w-full",children:cp.jsxs("div",{className:"rounded-2xl px-4 py-2.5 shadow-lg rounded-tr-sm w-full",style:{background:`linear-gradient(135deg, ${j||r||"#2563eb"} 0%, ${j||r||"#2563eb"}dd 100%)`,width:"100px"},children:[cp.jsx("span",{className:"sr-only",children:"Listening for voice input"}),cp.jsx(Lp,{active:!0,barWidth:2,barHeight:4,barGap:2,barColor:l||E||"#FFFFFF",height:20,fadeEdges:!0,className:"min-w-[60px]","aria-hidden":"true"})]})})}),cp.jsx("div",{ref:X,className:"h-px"})]})};function Bp(e,t){return String(e||"").replace(/\/+$/,"")+(t.startsWith("/")?t:`/${t}`)}function Dp({apiEndpoint:e,conversationId:t,size:r,authHeader:n}){fetch(Bp(e,"/api/v1/chat-attachments/release"),{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({conversationId:t,size:r})}).catch(()=>{})}function Op({orgId:e,conversationId:t,config:r,apiEndpoint:n,authHeader:o,onError:a}){const[i,s]=I.useState([]),l=I.useRef(new Map),c=I.useRef(0),u=I.useRef(i);u.current=i;const d=I.useRef({conversationId:t,bytes:0});d.current.conversationId!==t&&(d.current={conversationId:t,bytes:0});const g=I.useCallback(()=>(c.current+=1,`att-${Date.now()}-${c.current}`),[]),p=I.useCallback((e,t)=>{s(r=>r.map(r=>r.id===e?{...r,...t}:r))},[]),f=I.useCallback((e,t,r)=>{const n={status:"error",error:{code:t,message:r}};s(t=>{const r=t.map(t=>t.id===e?{...t,...n}:t),o=r.find(t=>t.id===e);return o&&a&&a(o),r})},[a]),h=I.useCallback((e,t)=>{if(!r?.fileUploadEnabled)return{ok:!1,code:"feature_disabled",message:"File uploads are not enabled for this organization."};if(t>=r.fileUploadMaxFiles)return{ok:!1,code:"too_many_files",message:`Max ${r.fileUploadMaxFiles} files per message.`};const n=1024*r.fileUploadMaxSizeMB*1024;if(d.current.bytes+e.size>n){return{ok:!1,code:"size_exceeded",message:`This conversation has already used ${(d.current.bytes/1048576).toFixed(1)} MB of its ${r.fileUploadMaxSizeMB} MB upload limit - this file won't fit.`}}const o=(e.type||"").toLowerCase(),a=new Set((r.fileUploadAllowedMimes||[]).map(e=>String(e).toLowerCase()));return a.size>0&&!a.has(o)?{ok:!1,code:"mime_not_allowed",message:`File type "${e.type||"unknown"}" is not allowed.`}:{ok:!0}},[r]),m=I.useCallback(async(e,r)=>{let a;try{a=await fetch(Bp(n,"/api/v1/chat-attachments/presign"),{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",...o?{Authorization:o}:{}},body:JSON.stringify({filename:r.name,mimeType:r.type,size:r.size,conversationId:t})})}catch(t){return d.current.bytes=Math.max(0,d.current.bytes-r.size),void f(e,"network","Network error while requesting upload.")}if(!a.ok){let t="Upload rejected by the server.",n="unknown";try{const e=await a.json();e?.error&&(t=e.error),e?.code&&(n=function(e){switch(e){case"feature_disabled":case"size_exceeded":case"mime_not_allowed":case"storage_unavailable":return e;default:return"unknown"}}(e.code))}catch{}return d.current.bytes=Math.max(0,d.current.bytes-r.size),void f(e,n,t)}let i=0;const s=()=>{i>0&&(Dp({apiEndpoint:n,conversationId:t,size:i,authHeader:o}),i=0,p(e,{reservedBytes:0}))},c=()=>{d.current.bytes=Math.max(0,d.current.bytes-r.size)};let u;try{u=await a.json()}catch{return Dp({apiEndpoint:n,conversationId:t,size:r.size,authHeader:o}),c(),p(e,{reservedBytes:0}),void f(e,"unknown","Malformed presign response.")}let g,h;("boolean"==typeof u.reserved?u.reserved:!u.useMultipart)&&(i=r.size,p(e,{reservedBytes:r.size}));try{if(u.useMultipart){const a=await function({url:e,file:t,conversationId:r,authHeader:n,onProgress:o,registerXhr:a}){return new Promise((n,i)=>{const s=new XMLHttpRequest;a(s),s.open("POST",e,!0),s.withCredentials=!0;const l=new FormData;l.append("conversationId",r),l.append("file",t,t.name),s.upload.onprogress=e=>{e.lengthComputable&&o(Math.round(e.loaded/e.total*100))},s.onload=()=>{if(s.status>=200&&s.status<300)try{const e=JSON.parse(s.responseText);n({url:"string"==typeof e?.url?e.url:void 0,storageKey:"string"==typeof e?.storageKey?e.storageKey:void 0})}catch{n({})}else i(new Error(`upload_status_${s.status}`))},s.onerror=()=>i(new Error("network")),s.onabort=()=>i({aborted:!0}),s.send(l)})}({url:Bp(n,"/api/v1/chat-attachments/multipart"),file:r,conversationId:t,authHeader:o,onProgress:t=>p(e,{progress:t}),registerXhr:t=>l.current.set(e,t)});g=a.url,h=a.storageKey,i=r.size,p(e,{reservedBytes:r.size})}else{if(!u.uploadUrl)throw new Error("presign_missing_target");{await function({url:e,file:t,onProgress:r,registerXhr:n}){return new Promise((o,a)=>{const i=new XMLHttpRequest;n(i),i.open("PUT",e,!0),i.setRequestHeader("x-ms-blob-type","BlockBlob"),t.type&&i.setRequestHeader("Content-Type",t.type),i.upload.onprogress=e=>{e.lengthComputable&&r(Math.round(e.loaded/e.total*100))},i.onload=()=>{i.status>=200&&i.status<300?o():a(new Error(`upload_status_${i.status}`))},i.onerror=()=>a(new Error("network")),i.onabort=()=>a({aborted:!0}),i.send(t)})}({url:u.uploadUrl,file:r,onProgress:t=>p(e,{progress:t}),registerXhr:t=>l.current.set(e,t)});const t=await async function({apiEndpoint:e,storageKey:t,filename:r,mimeType:n,authHeader:o}){let a;try{a=await fetch(Bp(e,"/api/v1/chat-attachments/confirm"),{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",...o?{Authorization:o}:{}},body:JSON.stringify({storageKey:t,filename:r,mimeType:n})})}catch{return{ok:!1,code:"network",message:"Network error while verifying upload."}}if(a.ok)return{ok:!0};let i="Upload rejected - file content did not match its declared type.",s="content_mismatch";try{const e=await a.json();e?.error&&(i=e.error),"password_protected"===e?.code&&(s="password_protected")}catch{}return{ok:!1,code:s,message:i}}({apiEndpoint:n,storageKey:u.storageKey,filename:r.name,mimeType:r.type,authHeader:o});if(!t.ok)return l.current.delete(e),s(),c(),void f(e,t.code,t.message)}}}catch(t){if(l.current.delete(e),t&&t.aborted)return;return s(),c(),void f(e,"network","Upload failed. Please retry.")}l.current.delete(e),p(e,{status:"ready",progress:100,storageKey:h||u.storageKey,...g?{url:g}:{}})},[n,o,t,f,p]),b=I.useCallback(async e=>{const t=Array.from(e);for(const e of t){const t=u.current.filter(e=>"error"!==e.status).length,r=h(e,t),n=g();if(!r.ok){const t={id:n,filename:e.name,size:e.size,mimeType:e.type,status:"error",error:{code:r.code,message:r.message}};s(e=>(a&&a(t),[...e,t]));continue}const o={id:n,filename:e.name,size:e.size,mimeType:e.type,status:"uploading",progress:0,reservedBytes:0};s(e=>[...e,o]),d.current.bytes+=e.size,m(n,e)}},[h,m,g,a]),y=I.useCallback(e=>{const r=l.current.get(e);r&&(r.abort(),l.current.delete(e));const a=u.current.find(t=>t.id===e);a&&a.reservedBytes>0&&(Dp({apiEndpoint:n,conversationId:t,size:a.reservedBytes,authHeader:o}),d.current.bytes=Math.max(0,d.current.bytes-a.reservedBytes)),s(t=>t.filter(t=>t.id!==e))},[n,o,t]),v=I.useCallback(()=>{for(const e of l.current.values())e.abort();l.current.clear(),s([])},[]),w=I.useMemo(()=>i.some(e=>"validating"===e.status||"uploading"===e.status),[i]),k=I.useCallback(()=>i.filter(e=>"ready"===e.status&&"string"==typeof e.storageKey).map(e=>({filename:e.filename,mimeType:e.mimeType,size:e.size,storageKey:e.storageKey,url:e.url})),[i]);return{attachments:i,addFiles:b,removeAttachment:y,clearAll:v,isBusy:w,toSendPayload:k}}function Up(e){if(!e||e<1024)return`${e||0} B`;const t=["KB","MB","GB"];let r=e/1024,n=0;for(;r>=1024&&n<t.length-1;)r/=1024,n+=1;return`${r.toFixed(r>=10?0:1)} ${t[n]}`}function Vp({attachment:e,onRemove:t,isDark:r,removeLabel:n="Remove attachment"}){const o="error"===e.status,a="uploading"===e.status,i="ready"===e.status,s=o?r?"rgba(239,68,68,0.15)":"#fee2e2":r?"#1f2937":"#f3f4f6",l=o?r?"#b91c1c":"#fca5a5":r?"#374151":"#e5e7eb",c=o?r?"#fca5a5":"#b91c1c":r?"#e5e7eb":"#374151",u=o?`${e.filename} - ${e.error?.message||"error"}`:a?`${e.filename} - uploading`:`${e.filename} - ready`;return cp.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full pl-2 pr-1 py-1 text-xs",style:{backgroundColor:s,border:`1px solid ${l}`,color:c,maxWidth:240},role:"group",title:o?e.error?.message:e.filename,"aria-label":u,children:[o?cp.jsx(kg,{size:12,"aria-hidden":"true"}):a?cp.jsx(Mg,{size:12,className:"animate-spin","aria-hidden":"true"}):cp.jsx(Sg,{size:12,"aria-hidden":"true"}),cp.jsx("span",{className:"truncate",style:{maxWidth:140,direction:"ltr"},children:e.filename}),i&&cp.jsx("span",{className:"opacity-70 text-chip",children:Up(e.size)}),a&&"number"==typeof e.progress&&cp.jsxs("span",{className:"opacity-70 text-chip",children:[e.progress,"%"]}),cp.jsx("button",{type:"button",onClick:()=>t(e.id),className:"w-4 h-4 rounded-full inline-flex items-center justify-center",style:{backgroundColor:"transparent",border:"none",color:c,cursor:"pointer"},"aria-label":n,children:cp.jsx(_g,{size:12})})]})}function $p({prompts:e,getDisplayText:t,detectDirection:r,ambientIsRtl:n,wrapperProps:o,stackProps:a,getKey:i,getChipProps:s,onChipClick:l,onSelect:c,before:u,after:d}){const g=I.createElement("div",a,e.map((e,o)=>{const a=t(e),u=r(a,n);return I.createElement("button",{key:i(e,o),type:"button",...s({prompt:e,index:o,displayText:a,chipIsRtl:u}),onClick:t=>{l&&l(e,o),c(e,o,t)}},a)}));return null==u&&null==d?I.createElement("div",o,g):I.createElement("div",o,u,g,d)}const Hp=({suggestions:e,onSuggestionClick:t,promptPrimary:r,promptTextColor:n,promptFontFamily:o,promptFontSize:a,isRtl:i,t:s,questionDisplay:l=!0})=>cp.jsx($p,{prompts:e,getDisplayText:e=>((e,t=!0)=>{if(!e||"string"==typeof e)return e||"";const r="string"==typeof e.text?e.text:"";if(!t)return r;const n="string"==typeof e.submitText?e.submitText.trim():"";return n&&n!==r?n:r})(e,l),detectDirection:Ed,ambientIsRtl:i,wrapperProps:{className:"mb-2 px-5"},stackProps:{className:"flex flex-col gap-2",role:"group","aria-label":s("suggestedQuestions")},getKey:(e,t)=>`${e.text||e}-${t}`,getChipProps:({chipIsRtl:e})=>({dir:e?"rtl":"ltr",className:"block w-full rounded-2xl px-4 py-2 border-0 transition-transform duration-150 active:scale-[0.99] "+(e?"text-right":"text-left"),style:{direction:e?"rtl":"ltr",textAlign:e?"right":"left",background:`linear-gradient(135deg, ${r} 0%, ${r}dd 100%)`,color:n,fontFamily:o,fontSize:a}}),onSelect:(e,r)=>t(e.submitText||e.text||e,e,r)}),qp=({onStopGeneration:e,inputValue:t,setInputValue:r,onSend:n,isDark:o,primaryColor:a,isOpen:i,isMinimized:s,isLoading:l,isConversationLoading:c=!1,placeholder:u,textColor:d,fontFamily:g,fontSize:p,isRtl:f=!1,csatVisible:h=!1,enableVoiceInteraction:m=!1,isVoiceSessionActive:b=!1,voiceStatus:y="idle",voiceError:v=null,onVoiceToggle:w,onBidiSubmit:k,disclaimerEnabled:x=!1,disclaimerText:C,disclaimerPosition:S="top",disclaimerLinkUrl:M,disclaimerLinkLabel:T,showPoweredBy:P=!0,onboardingQuestions:z=[],onboardingActive:j=!1,onboardingCompleted:E=!1,userMessageBubbleFontFamily:F,onboardingEnabled:L=!1,userMessageBubbleFontSize:N,userMessageBoxColor:R,resolvedUserMessageColor:A,userTextColor:_,promptSuggestions:B,onPromptSuggestionClick:D,autoPromptQuestionDisplay:O=!0,tagSelectorNode:U=null,showResolveButton:V=!1,onResolve:$,defaultLanguage:H="en",chatFeatures:q,apiEndpoint:W,organizationId:K,conversationId:Q})=>{const Y=I.useMemo(()=>Ld(H),[H]),G=I.useMemo(()=>function(e){const t=Td(e),r=xd[t]||kd;return{beforeBrand:r.poweredByBefore??r.poweredBy??kd.poweredByBefore,afterBrand:r.poweredByAfter??""}}(H),[H]),J=I.useMemo(()=>Ed(t,f),[t,f]),[X,Z]=I.useState(!1),[ee,te]=I.useState(!1),re=I.useMemo(()=>({fileUploadEnabled:q?.fileUploadEnabled??!1,fileUploadMaxSizeMB:q?.fileUploadMaxSizeMB??10,fileUploadMaxFiles:q?.fileUploadMaxFiles??3,fileUploadAllowedMimes:q?.fileUploadAllowedMimes??[]}),[q]),{attachments:ne,addFiles:oe,removeAttachment:ae,clearAll:ie,isBusy:se,toSendPayload:le}=Op({orgId:K,conversationId:Q,config:re,apiEndpoint:W,authHeader:void 0}),ce=I.useRef(null),ue=I.useRef(new Set);I.useEffect(()=>{if(!b||!Q||!W)return;const e=le().filter(e=>e.storageKey&&!ue.current.has(e.storageKey));e.length&&(e.forEach(e=>ue.current.add(e.storageKey)),fetch(`${String(W).replace(/\/$/,"")}/api/v1/chat-attachments/ingest`,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({conversationId:Q,attachments:e.map(e=>({storageKey:e.storageKey}))})}).catch(()=>{}))},[b,Q,W,ne,le]);const de=!!re.fileUploadEnabled&&!!W,ge=ne.length>=re.fileUploadMaxFiles,pe=`Max ${re.fileUploadMaxFiles} files per message.`,fe=I.useMemo(()=>re.fileUploadAllowedMimes.length>0?re.fileUploadAllowedMimes.join(","):void 0,[re.fileUploadAllowedMimes]),[he,me]=I.useState({top:0,left:0,placement:"top",arrowOffset:0}),[be,ye]=I.useState(!1),ve=I.useRef(null),we=I.useRef(null),ke=I.useRef(null),xe=I.useRef(null);Vg(g),Vg(F),I.useEffect(()=>{i&&!s&&we.current?.focus()},[i,s]),I.useEffect(()=>{const e=we.current;if(e){e.style.height="auto";const r=e.scrollHeight,n=t.trim().length>0?20:48,o=Math.max(n,Math.min(r,120));e.style.height=`${o}px`}},[t]);const Ce=I.useCallback(()=>{const e=le();e.length>0?(n(void 0,e),ie()):n()},[le,ie,n]),Se=ne.some(e=>"ready"===e.status),Me=!t.trim()&&!Se||l||c||se,Te=o?"#374151":"#e5e7eb",Pe=z&&z.length>0,ze=h||c||L&&(Pe&&!E)||"connecting"===y,je=h?Y("pleaseSubmitRatingFirst"):Pe?j?Y("completeOnboardingToEnableVoice"):E?"":Y("sendMessageToCompleteOnboarding"):"",Ee=()=>{if(!ke.current)return;const e=ke.current.getBoundingClientRect(),t=220,r=e.top,n=window.innerHeight-e.bottom;let o="top",a=0,i=0;r>=73?(o="top",a=e.top-60-5-8,i=e.right-t,i<10&&(i=10),i+t>window.innerWidth-10&&(i=window.innerWidth-t-10)):n>=68?(o="bottom",a=e.bottom+8,i=e.right-t,i<10&&(i=10),i+t>window.innerWidth-10&&(i=window.innerWidth-t-10)):(o="top",a=Math.max(10,e.top-60-5-8),i=e.right-t,i<10&&(i=10),i+t>window.innerWidth-10&&(i=window.innerWidth-t-10));return{top:a,left:i,placement:o,arrowOffset:e.left+e.width/2-i}};I.useEffect(()=>{if(ee&&je){const e=()=>{const e=Ee();me(e)};return window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}}},[ee,je]),I.useEffect(()=>()=>{ve.current&&clearTimeout(ve.current)},[]);const Fe=null!=A?A:null!=R?R:null!=a?a:"#2563eb",Le=null!=_?_:null!=d?d:"#FFFFFF",Ne=null!=F?F:null!=g?g:"Inter",Re=null!=N?N:null!=p?p:null,Ae=Re?`calc(${Re} - 2px)`:"12px",_e=Dd(M);return cp.jsxs("div",{className:"py-4 flex-shrink-0 relative "+(o?"bg-gray-900":"bg-white"),style:{overflow:"visible"},children:[U||B.length>0&&D&&cp.jsx(Hp,{suggestions:B,onSuggestionClick:D,questionDisplay:O,promptPrimary:Fe,promptTextColor:Le,promptFontFamily:Ne,promptFontSize:Ae,isRtl:f,t:Y}),cp.jsx("div",{className:"my-4",style:{height:"1px",backgroundColor:Te}}),de&&ne.length>0&&cp.jsx("div",{className:"px-5 mb-2 flex flex-wrap gap-1.5",children:ne.map(e=>cp.jsx(Vp,{attachment:e,onRemove:ae,isDark:o,removeLabel:Y("removeAttachment")},e.id))}),cp.jsxs("div",{className:"flex items-center px-5 gap-1.5",children:[de&&cp.jsx("input",{ref:ce,type:"file",multiple:!0,accept:fe,"aria-label":Y("uploadFile"),className:"hidden",style:{display:"none"},onChange:e=>{const t=e.target.files;t&&t.length&&!ge&&oe(t),e.currentTarget.value=""}}),cp.jsxs("div",{className:`flex-1 flex items-center gap-1 px-1 min-h-[48px] ${o?"bg-gray-800":"bg-gray-50"} rounded-2xl transition-all duration-200`,style:{borderStyle:"solid",borderColor:t&&t.trim().length>0?a||"#2563eb":Te,borderWidth:t&&t.trim().length>0?"2px":"1px"},children:[de&&cp.jsxs("div",{className:"relative group shrink-0",children:[cp.jsx("button",{type:"button",onClick:()=>ce.current&&ce.current.click(),disabled:h||c||l||ge,"aria-label":ge?pe:"Attach file",title:ge?pe:"Attach file",className:`h-8 w-8 rounded-lg flex items-center justify-center transition-colors duration-200 ${o?"text-gray-300 hover:bg-gray-700":"text-gray-500 hover:bg-gray-200"} disabled:opacity-40 disabled:cursor-not-allowed`,style:{border:"none"},children:cp.jsx(zg,{className:"w-4 h-4"})}),ge&&cp.jsx("div",{role:"tooltip",className:"pointer-events-none absolute bottom-full left-1/2 -translate-x-1/2 mb-2 opacity-0 group-hover:opacity-100 transition-opacity px-3 py-1.5 text-xs rounded-lg whitespace-nowrap shadow-lg "+(o?"bg-gray-700 text-gray-100":"bg-gray-800 text-white"),children:pe})]}),cp.jsx("div",{className:"relative flex-1 flex items-center min-w-0",children:cp.jsx("textarea",{id:"chat-widget-input",ref:we,"aria-label":u||Y("typeYourMessage"),value:t,onChange:e=>{r(e.target.value)},onFocus:()=>Z(!0),onBlur:()=>Z(!1),onKeyDown:e=>{if("Enter"===e.key&&!e.shiftKey){if(e.preventDefault(),b&&k&&!Se)return void k();if(Me)return;Ce()}},placeholder:c?Y("agentIsLoading"):u||Y("typeYourMessage"),rows:1,disabled:h||c||l||b&&"connected"!==y,dir:J?"rtl":"ltr",className:`w-full px-3 bg-transparent rounded-xl leading-normal ${o?"text-gray-100":"text-gray-900"} placeholder-gray-400 resize-none outline-none scrollbar-hide break-words`,style:{height:"auto",maxHeight:"120px",minHeight:"48px",paddingTop:t.trim().length>0?"12px":"0px",paddingBottom:t.trim().length>0?"12px":"0px",lineHeight:t.trim().length>0?"1.4":"48px",fontFamily:F||g||"Inter",fontSize:p||"14px",color:o?"#F3F4F6":"#1F2937",textAlign:J?"right":"left",direction:J?"rtl":"ltr",wordSpacing:"0",letterSpacing:"0"}})}),m&&cp.jsxs("div",{className:"relative shrink-0",onMouseEnter:()=>{if(ze&&je){ve.current&&(clearTimeout(ve.current),ve.current=null);const e=Ee();me(e),te(!0)}},onMouseLeave:()=>{ve.current&&(clearTimeout(ve.current),ve.current=null),te(!1)},children:[cp.jsx("button",{style:{border:"none"},ref:ke,type:"button",onClick:w,"aria-label":Y(b?"stopVoiceInput":"startVoiceInput"),className:`h-8 w-8 rounded-lg flex items-center justify-center transition-colors duration-200 ${b?"bg-red-500 text-white hover:bg-red-600":o?"text-gray-300 hover:bg-gray-700":"text-gray-500 hover:bg-gray-200"} ${ze?"opacity-60 cursor-not-allowed":""}`,disabled:ze,children:"connecting"===y?cp.jsx(Mg,{className:"w-4 h-4 animate-spin"}):cp.jsx(bg,{className:"w-4 h-4"})}),ee&&je&&"undefined"!=typeof document&&Hu.createPortal(cp.jsxs("div",{ref:xe,className:"px-3 py-1.5 text-xs shadow-md pointer-events-none",style:{position:"fixed",top:`${he.top}px`,left:`${he.left}px`,maxWidth:"220px",whiteSpace:"normal",wordWrap:"break-word",minWidth:"180px",zIndex:999999,backgroundColor:o?"#1f2937":"#ffffff",color:o?"#f3f4f6":"#111827",border:o?"1px solid #374151":"1px solid #e5e7eb",borderRadius:"top"===he.placement?"6px 6px 6px 6px":"6px",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",overflow:"visible"},children:[cp.jsx("div",{className:"text-left leading-relaxed",children:je}),"top"===he.placement&&cp.jsxs(cp.Fragment,{children:[cp.jsx("div",{style:{position:"absolute",top:"100%",left:`${he.arrowOffset}px`,transform:"translateX(-50%)",width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:o?"6px solid #374151":"6px solid #e5e7eb",pointerEvents:"none"}}),cp.jsx("div",{style:{position:"absolute",top:"100%",left:`${he.arrowOffset}px`,transform:"translateX(-50%)",marginTop:"-1px",width:0,height:0,borderLeft:"5px solid transparent",borderRight:"5px solid transparent",borderTop:o?"5px solid #1f2937":"5px solid #ffffff",pointerEvents:"none"}})]}),"bottom"===he.placement&&cp.jsxs(cp.Fragment,{children:[cp.jsx("div",{className:"absolute bottom-full",style:{left:`${he.arrowOffset}px`,transform:"translateX(-50%)",width:0,height:0,borderLeft:"5px solid transparent",borderRight:"5px solid transparent",borderBottom:o?"5px solid #374151":"5px solid #e5e7eb"}}),cp.jsx("div",{className:"absolute bottom-full -mb-px",style:{left:`${he.arrowOffset}px`,transform:"translateX(-50%)",width:0,height:0,borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderBottom:o?"4px solid #1f2937":"4px solid #ffffff"}})]})]}),document.body)]})]}),l&&!b&&"function"==typeof e?cp.jsx("button",{onClick:e,className:"h-10 w-10 flex-shrink-0 rounded-xl transition-all duration-200 flex items-center justify-center shadow-md scale-100",style:{backgroundColor:a,color:"white",border:"none"},"aria-label":Y("stopGenerating"),children:cp.jsx(Fg,{className:"w-3.5 h-3.5",fill:"currentColor"})}):cp.jsx("button",{onClick:b&&k&&!Se?k:Ce,disabled:h||Me||b&&"connected"!==y,className:"h-10 w-10 flex-shrink-0 rounded-xl transition-all duration-200 flex items-center justify-center shadow-md disabled:opacity-40 disabled:cursor-not-allowed disabled:shadow-none "+(t.trim()?"scale-100":"scale-95"),style:{backgroundColor:t.trim()?a:o?"#374151":"#e5e7eb",color:t.trim()?"white":"#9ca3af",border:"none"},"aria-label":Y("sendMessage"),children:cp.jsx(Eg,{className:"w-4 h-4 transition-transform",style:f?{transform:"rotate(-90deg)"}:void 0})})]}),b&&cp.jsxs("p",{"aria-live":"polite",className:`text-xs mt-2 px-5 ${"connected"===y?"text-status-success":"text-gray-500"} flex items-center gap-1`,children:[cp.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-current inline-flex"}),Y("connected"===y?"voiceSessionLive":"connectingVoice")]}),v&&cp.jsx("p",{role:"alert",className:"text-xs mt-1 px-5 text-status-error",children:Y(v)===v?Y("voiceUnavailable"):Y(v)}),x&&C&&"footer"===S&&cp.jsxs("p",{className:"text-xs mt-2 px-5 text-center",style:{color:o?"#d1d5db":"#6b7280",fontFamily:g||"Inter",fontSize:p?`calc(${p} - 2px)`:"12px",direction:f?"rtl":"ltr"},dir:f?"rtl":"ltr",children:[C,_e&&T&&cp.jsx("a",{href:_e,target:"_blank",rel:"noopener noreferrer",title:_e,style:{color:o?"#93c5fd":"#2563eb",marginInlineStart:"4px",verticalAlign:"middle",display:"inline-flex",alignItems:"center"},children:T})]}),P&&cp.jsx("div",{className:"mt-1.5 flex justify-center",children:cp.jsx("a",{href:"https://eshal.ai",target:"_blank",rel:"noopener noreferrer",className:"no-underline",children:cp.jsxs("span",{dir:"ltr",className:"inline-flex items-center gap-1.5 py-1.5 px-3",children:[G.beforeBrand&&cp.jsx("span",{className:Od("font-sans text-[10px] font-medium",o?"text-gray-400":"text-gray-500"),children:G.beforeBrand}),be?cp.jsx("span",{className:Od("font-sans text-[10px] font-semibold",o?"text-gray-300":"text-gray-600"),children:"ESHAL"}):cp.jsx("img",{src:o?"data:image/svg+xml,%3csvg width='219' height='54' xmlns='http://www.w3.org/2000/svg' version='1.0'%3e%3cg class='layer'%3e%3ctitle%3eEshal Logo%3c/title%3e%3cg clip-path='url(%23a)' transform='translate(-.708 -1.076)'%3e%3cg clip-path='url(%23b)'%3e%3cpath d='M21.79 54.75h4.5l3.93-.56 4.49-1.4 3.38-1.97 2.81-2.25 2.24-2.81 2.25-3.93 1.13-3.09v-.85l-3.65-1.12h-.57l-1.96 4.5-1.97 3.09-2.81 2.53-3.93 1.96-3.38.85-2.81.28h-2.81l-4.21-.57-3.94-1.4-2.81-1.97-2.25-2.24-1.96-3.38-1.41-4.21-.56-3.37-.28-3.1v-3.65l.56-5.06 1.12-4.21 1.97-3.94 2.53-2.81 2.25-1.68 2.81-1.41 3.37-.84 2.25-.28H26l4.78.84 4.5 2.25 2.53 2.53 1.4 2.53.56 2.53-.28 3.65-1.12 2.25-1.41 1.69-1.4.55-1.13-4.21-1.68-2.81-1.97-1.97-3.09-1.4-1.12-.28h-5.34l-3.09 1.12-2.25 1.69-1.41 1.97-.84 3.09.28 3.08 1.4 2.82 1.97 1.96 2.81 1.41 2.25.56 4.78.28 3.09-.28.84-.28-1.12 3.09-1.69 1.97-2.25.84h-3.65l-2.81-1.12-1.68-1.41-3.38 2.25.56 1.13 1.13 1.4 2.81 1.69 2.81.84h4.78l2.81-.84 2.53-1.69 1.96-2.25L35 34.8l.84-4.5 3.65-2.24 2.53-2.53 1.69-3.09.56-2.25.28-2.81-.56-3.93-1.12-2.82-2.25-3.09-3.09-2.81-4.22-2.25-4.5-1.12-2.52-.28h-4.5l-3.93.56-4.5 1.41-3.38 1.96-3.37 3.1-2.52 3.65-1.97 4.49-1.13 4.78-.28 2.25v9.27l.84 5.06 1.69 4.78 1.69 3.09 2.25 2.81 2.8 2.53 2.82 1.69 5.06 1.68zm1.12-27.54-2.53-.84-1.4-1.12-.84-1.69.28-2.53 1.12-1.4 2.25-1.13H26l2.81 1.41 1.41 1.97.84 2.8v2.25l-1.12.28zm0 0' fill='white'/%3e%3c/g%3e%3c/g%3e%3cpath d='M82.381 38.435v6.48h-27.06V9.965h26.41v6.5h-18.36v7.57h16.22v6.3h-16.22v8.1zm16.432 7.07c-2.77 0-5.44-.37-8.02-1.11-2.57-.75-4.65-1.72-6.22-2.92l2.75-6.09c1.5 1.09 3.28 1.98 5.34 2.64 2.07.67 4.13 1 6.19 1q3.45 0 5.1-1.02t1.65-2.73c0-.83-.33-1.52-.98-2.06-.65-.55-1.48-1-2.5-1.33-1.01-.33-2.39-.7-4.11-1.1-2.67-.63-4.85-1.26-6.55-1.89s-3.15-1.64-4.37-3.04c-1.21-1.41-1.82-3.27-1.82-5.6 0-2.03.55-3.86 1.64-5.51 1.11-1.66 2.76-2.96 4.97-3.92 2.22-.97 4.93-1.46 8.13-1.46 2.22 0 4.4.27 6.53.8s4 1.3 5.59 2.3l-2.5 6.14c-3.23-1.82-6.45-2.74-9.67-2.74-2.27 0-3.95.37-5.03 1.1-1.07.73-1.61 1.69-1.61 2.89q0 1.8 1.86 2.67c1.25.59 3.16 1.16 5.72 1.72 2.66.63 4.85 1.27 6.55 1.9 1.69.63 3.14 1.63 4.36 2.99 1.21 1.37 1.82 3.21 1.82 5.55 0 2-.56 3.82-1.67 5.46q-1.68 2.475-5.01 3.93c-2.23.95-4.95 1.43-8.14 1.43m50.913-35.54v34.95h-8.08v-14.33h-15.88v14.33h-8.09V9.965h8.09v13.78h15.88V9.965zm29.811 27.47h-16.22l-3.1 7.48h-8.29l15.58-34.95h7.98l15.62 34.95h-8.48zm-2.55-6.15-5.55-13.37-5.53 13.37zm16.274-21.32h8.09v28.36h17.52v6.59h-25.61zm0 0' fill='white'/%3e%3c/g%3e%3c/svg%3e":"data:image/svg+xml,%3csvg width='219' height='54' xmlns='http://www.w3.org/2000/svg' version='1.0'%3e%3cg class='layer'%3e%3ctitle%3eEshal Logo%3c/title%3e%3cg clip-path='url(%23a)' transform='translate(-.708 -1.076)'%3e%3cg clip-path='url(%23b)'%3e%3cpath d='M21.79 54.75h4.5l3.93-.56 4.49-1.4 3.38-1.97 2.81-2.25 2.24-2.81 2.25-3.93 1.13-3.09v-.85l-3.65-1.12h-.57l-1.96 4.5-1.97 3.09-2.81 2.53-3.93 1.96-3.38.85-2.81.28h-2.81l-4.21-.57-3.94-1.4-2.81-1.97-2.25-2.24-1.96-3.38-1.41-4.21-.56-3.37-.28-3.1v-3.65l.56-5.06 1.12-4.21 1.97-3.94 2.53-2.81 2.25-1.68 2.81-1.41 3.37-.84 2.25-.28H26l4.78.84 4.5 2.25 2.53 2.53 1.4 2.53.56 2.53-.28 3.65-1.12 2.25-1.41 1.69-1.4.55-1.13-4.21-1.68-2.81-1.97-1.97-3.09-1.4-1.12-.28h-5.34l-3.09 1.12-2.25 1.69-1.41 1.97-.84 3.09.28 3.08 1.4 2.82 1.97 1.96 2.81 1.41 2.25.56 4.78.28 3.09-.28.84-.28-1.12 3.09-1.69 1.97-2.25.84h-3.65l-2.81-1.12-1.68-1.41-3.38 2.25.56 1.13 1.13 1.4 2.81 1.69 2.81.84h4.78l2.81-.84 2.53-1.69 1.96-2.25L35 34.8l.84-4.5 3.65-2.24 2.53-2.53 1.69-3.09.56-2.25.28-2.81-.56-3.93-1.12-2.82-2.25-3.09-3.09-2.81-4.22-2.25-4.5-1.12-2.52-.28h-4.5l-3.93.56-4.5 1.41-3.38 1.96-3.37 3.1-2.52 3.65-1.97 4.49-1.13 4.78-.28 2.25v9.27l.84 5.06 1.69 4.78 1.69 3.09 2.25 2.81 2.8 2.53 2.82 1.69 5.06 1.68zm1.12-27.54-2.53-.84-1.4-1.12-.84-1.69.28-2.53 1.12-1.4 2.25-1.13H26l2.81 1.41 1.41 1.97.84 2.8v2.25l-1.12.28zm0 0' fill='black'/%3e%3c/g%3e%3c/g%3e%3cpath d='M82.381 38.435v6.48h-27.06V9.965h26.41v6.5h-18.36v7.57h16.22v6.3h-16.22v8.1zm16.432 7.07c-2.77 0-5.44-.37-8.02-1.11-2.57-.75-4.65-1.72-6.22-2.92l2.75-6.09c1.5 1.09 3.28 1.98 5.34 2.64 2.07.67 4.13 1 6.19 1q3.45 0 5.1-1.02t1.65-2.73c0-.83-.33-1.52-.98-2.06-.65-.55-1.48-1-2.5-1.33-1.01-.33-2.39-.7-4.11-1.1-2.67-.63-4.85-1.26-6.55-1.89s-3.15-1.64-4.37-3.04c-1.21-1.41-1.82-3.27-1.82-5.6 0-2.03.55-3.86 1.64-5.51 1.11-1.66 2.76-2.96 4.97-3.92 2.22-.97 4.93-1.46 8.13-1.46 2.22 0 4.4.27 6.53.8s4 1.3 5.59 2.3l-2.5 6.14c-3.23-1.82-6.45-2.74-9.67-2.74-2.27 0-3.95.37-5.03 1.1-1.07.73-1.61 1.69-1.61 2.89q0 1.8 1.86 2.67c1.25.59 3.16 1.16 5.72 1.72 2.66.63 4.85 1.27 6.55 1.9 1.69.63 3.14 1.63 4.36 2.99 1.21 1.37 1.82 3.21 1.82 5.55 0 2-.56 3.82-1.67 5.46q-1.68 2.475-5.01 3.93c-2.23.95-4.95 1.43-8.14 1.43m50.913-35.54v34.95h-8.08v-14.33h-15.88v14.33h-8.09V9.965h8.09v13.78h15.88V9.965zm29.811 27.47h-16.22l-3.1 7.48h-8.29l15.58-34.95h7.98l15.62 34.95h-8.48zm-2.55-6.15-5.55-13.37-5.53 13.37zm16.274-21.32h8.09v28.36h17.52v6.59h-25.61zm0 0' fill='black'/%3e%3c/g%3e%3c/svg%3e",alt:"ESHAL",className:Od("h-3",o?"opacity-60":"opacity-50"),onError:()=>ye(!0)}),G.afterBrand&&cp.jsx("span",{className:Od("font-sans text-[10px] font-medium",o?"text-gray-400":"text-gray-500"),children:G.afterBrand})]})})})]})},Wp=["sun","mon","tue","wed","thu","fri","sat"];function Kp(e){if(!e||"string"!=typeof e)return null;const t=e.match(/^(\d{1,2}):(\d{2})/);if(!t)return null;const r=parseInt(t[1],10),n=parseInt(t[2],10);return Number.isNaN(r)||Number.isNaN(n)?null:60*r+n}function Qp(e,t=new Date,r={}){if(!e||!e.showStatus)return null;const n=r.online||"Online now",o=r.officeOpen||"Online now",a=r.offlineFallback||"Offline";if("officeHours"!==e.statusMode)return{online:!0,label:n};const i=e.officeHours||{},{dayKey:s,minutes:l}=function(e,t){try{const r=new Intl.DateTimeFormat("en-US",{timeZone:e||void 0,weekday:"short",hour:"2-digit",minute:"2-digit",hour12:!1}).formatToParts(t),n=(r.find(e=>"weekday"===e.type)||{}).value||"";let o=parseInt((r.find(e=>"hour"===e.type)||{}).value||"0",10);const a=parseInt((r.find(e=>"minute"===e.type)||{}).value||"0",10);return 24===o&&(o=0),{dayKey:n.slice(0,3).toLowerCase(),minutes:60*o+a}}catch{return{dayKey:Wp[t.getDay()],minutes:60*t.getHours()+t.getMinutes()}}}(i.timezone,t),c=Array.isArray(i.days)?i.days.map(e=>String(e).slice(0,3).toLowerCase()):[],u=Kp(i.open),d=Kp(i.close);if(c.includes(s)&&(null!=u&&null!=d&&(u<=d?l>=u&&l<d:l>=u||l<d))){return{online:!0,label:(i.onlineMessage||"").trim()||o}}return{online:!1,label:(i.offlineMessage||"").trim()||a}}const Yp='[role="menuitem"]';function Gp(e){const t=e&&"function"==typeof e.getRootNode?e.getRootNode():null;return t&&t.activeElement||document.activeElement}function Jp(e,t){return e?Array.from(e.querySelectorAll(t)).filter(e=>!e.disabled&&"true"!==e.getAttribute("aria-disabled")):[]}function Xp(e,t,r=Yp){const{key:n}=e;if("ArrowDown"!==n&&"ArrowUp"!==n&&"Home"!==n&&"End"!==n)return!1;const o=Jp(t,r);if(0===o.length)return!1;e.preventDefault();const a=o.indexOf(Gp(t));let i;return i="Home"===n?0:"End"===n?o.length-1:"ArrowDown"===n?a<0?0:(a+1)%o.length:a<0?o.length-1:(a-1+o.length)%o.length,o[i].focus(),!0}const Zp=({conciergeName:e,companyName:t,companyLogo:r,primaryColor:n,isDark:o,isMinimized:a=!1,textColor:i,fontFamily:s,fontSize:l,onToggleTheme:c,onMinimize:u,onClose:d,headerTextBold:g=!1,headerTextItalic:p=!1,headerTextColor:f,headerFontFamily:h,headerFontSize:m,subtitle:b=null,showStatus:y=!1,statusMode:v="always",officeHours:w=null,onRefreshChat:k,onCopyChat:x,defaultLanguage:C="en"})=>{const S=n,M=f||"#FFFFFF",T=h||s||"Inter",P=m||l;Vg(T);const z=I.useMemo(()=>Ld(C),[C]),j=Pd(C),E=I.useMemo(()=>Ed(b,j),[b,j]),F=I.useMemo(()=>Qp({showStatus:y,statusMode:v,officeHours:w}),[y,v,w]),[L,N]=I.useState(!1),R=I.useRef(null),A=I.useRef(null);I.useEffect(()=>{if(!L)return;const e=e=>{R.current&&!e.composedPath().includes(R.current)&&N(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[L]);const _=I.useRef(!1);I.useEffect(()=>{if(L){_.current=!0;const e=R.current?.querySelector('[role="menuitem"]');e?.focus()}else _.current&&(_.current=!1,A.current?.focus())},[L]);const B=M;return cp.jsxs("div",{className:`text-white ${a?"px-4 py-2.5":"px-3 py-4"} flex items-center justify-between relative overflow-visible rounded-t-2xl z-[60]`,style:{background:S,fontFamily:T},children:[cp.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0 pl-1",children:[cp.jsxs("div",{className:"relative w-11 h-11 flex-shrink-0",children:[cp.jsx("div",{className:"w-full h-full rounded-full overflow-hidden flex items-center justify-center bg-white/20",children:r?cp.jsx("img",{src:r,alt:"Logo",style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},loading:"lazy"}):cp.jsx("span",{className:"text-lg font-semibold leading-none",style:{color:B},children:(e||t||"")?.charAt(0)?.toUpperCase()})}),F?cp.jsx("span",{title:F.label,className:Od("absolute bottom-0 h-3 w-3 rounded-full ring-2 ring-white",j?"left-0":"right-0"),style:{backgroundColor:F.online?"#22c55e":"#9ca3af",boxShadow:F.online?"0 0 0 3px rgba(34,197,94,0.25)":"none"},"aria-hidden":"true"}):null]}),cp.jsxs("div",{className:"flex flex-col justify-center min-w-0",style:{fontFamily:T},children:[cp.jsx("h3",{title:e,className:Od("font-semibold leading-snug truncate",g&&"font-bold",p&&"italic"),style:{fontSize:P?`calc(${P} + 2px)`:"15px",color:B},children:e}),b?cp.jsx("p",{title:b,className:"leading-snug truncate opacity-75",dir:E?"rtl":"ltr",style:{fontSize:"12px",color:B,textAlign:E?"right":"left"},children:b}):null]})]}),cp.jsxs("div",{className:"flex items-center gap-0 relative z-10 text-white flex-shrink-0 ml-1",children:[cp.jsxs("div",{className:"relative",ref:R,children:[cp.jsx("button",{type:"button",ref:A,"aria-label":z("menu"),"aria-expanded":L,"aria-haspopup":"true",onClick:()=>N(e=>!e),onKeyDown:e=>{"Escape"===e.key&&L&&(e.preventDefault(),N(!1))},className:"inline-flex h-7 w-7 items-center justify-center cursor-pointer transition-opacity duration-200 hover:opacity-80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/40 rounded-full border-0 bg-transparent p-0",style:{color:B},children:cp.jsx(Cg,{className:"w-4 h-4",strokeWidth:1.6})}),L&&cp.jsxs("div",{role:"menu","aria-label":z("menu"),tabIndex:-1,dir:j?"rtl":"ltr",onKeyDown:e=>{if("Escape"===e.key)return e.preventDefault(),void N(!1);Xp(e,R.current)||function(e,t,r=Yp){if("Tab"!==e.key)return!1;const n=Jp(t,r);if(0===n.length)return!1;const o=n[0],a=n[n.length-1],i=Gp(t);e.shiftKey&&i===o?(e.preventDefault(),a.focus()):!e.shiftKey&&i===a&&(e.preventDefault(),o.focus())}(e,R.current)},className:`absolute top-full mt-1 w-44 rounded-xl border shadow-lg py-1 z-[9999] animate-in fade-in slide-in-from-top-1 duration-150 ${j?"left-0":"right-0"} ${o?"bg-gray-800 border-gray-700":"bg-white border-gray-200"}`,style:{fontFamily:T},children:[cp.jsxs("button",{role:"menuitem",onClick:()=>{N(!1),k?.()},className:"flex items-center gap-2.5 w-full px-3 py-2 text-sm leading-5 transition-colors cursor-pointer "+(o?"text-gray-200 hover:bg-gray-700":"text-gray-700 hover:bg-gray-50"),style:{fontFamily:T,fontSize:"14px",border:"none",background:"transparent",appearance:"none",WebkitAppearance:"none",textAlign:j?"right":"left"},children:[cp.jsx(jg,{className:"w-3.5 h-3.5 flex-shrink-0"}),z("refreshChat")]}),cp.jsxs("button",{role:"menuitem",onClick:()=>{N(!1),x?.()},className:"flex items-center gap-2.5 w-full px-3 py-2 text-sm leading-5 transition-colors cursor-pointer "+(o?"text-gray-200 hover:bg-gray-700":"text-gray-700 hover:bg-gray-50"),style:{fontFamily:T,fontSize:"14px",border:"none",background:"transparent",appearance:"none",WebkitAppearance:"none",textAlign:j?"right":"left"},children:[cp.jsx(xg,{className:"w-3.5 h-3.5 flex-shrink-0"}),z("copyChat")]}),cp.jsxs("button",{role:"menuitem",onClick:()=>{N(!1),c?.()},className:"flex items-center gap-2.5 w-full px-3 py-2 text-sm leading-5 transition-colors cursor-pointer "+(o?"text-gray-200 hover:bg-gray-700":"text-gray-700 hover:bg-gray-50"),style:{fontFamily:T,fontSize:"14px",border:"none",background:"transparent",appearance:"none",WebkitAppearance:"none",textAlign:j?"right":"left"},children:[o?cp.jsx(Ng,{className:"w-3.5 h-3.5 flex-shrink-0"}):cp.jsx(Pg,{className:"w-3.5 h-3.5 flex-shrink-0"}),z(o?"lightMode":"nightMode")]})]})]}),cp.jsx("button",{type:"button","aria-label":z("close"),onClick:d,className:"inline-flex h-7 w-7 items-center justify-center cursor-pointer transition-opacity duration-200 hover:opacity-80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white/40 rounded-full border-0 bg-transparent p-0",style:{color:B},children:cp.jsx(_g,{className:"w-3.5 h-3.5",strokeWidth:1.6})})]})]})},ef=({questions:e=[],collapsiblePrompt:t,onSubmit:r,primaryColor:n="#2563eb",isRtl:o=!1,isDark:a=!1,defaultLanguage:i="en",fontFamily:s})=>{const l=I.useMemo(()=>Ld(i),[i]),[c,u]=I.useState({}),[d,g]=I.useState({}),[p,f]=I.useState(!1),h=I.useRef({}),m=[...e].sort((e,t)=>Vd(e.fieldType)-Vd(t.fieldType));return cp.jsx("div",{className:"flex flex-col items-center justify-center p-6 h-full min-h-0 z-50 relative ",style:{...s?{fontFamily:s}:{},...a?{backgroundColor:"#10141C"}:{}},children:cp.jsxs("div",{className:"w-full max-w-sm rounded-2xl shadow-xl border p-8 transition-colors duration-300 bg-white border-gray-100",style:a?{backgroundColor:"#1E232B",border:"1px solid #2A303C"}:void 0,children:[t&&cp.jsx("div",{className:"mb-4 text-start",children:cp.jsx("h3",{className:"transition-colors duration-300 text-sm font-semibold mb-1 "+(a?"text-white":"text-[#4A5568]"),children:t})}),cp.jsxs("form",{onSubmit:async e=>{e.preventDefault();const t=(()=>{const e={};return m.forEach(t=>{const r=t.fieldType||"question",n=(c[r]??"").trim(),o=t.collectionPrompt||t.askToType||t.question||t.label||r,a=!0===t.required||"true"===t.required;n?("fullName"!==r&&"name"!==r||n.length<2&&(e[r]=l("nameInvalid")),"email"!==r||/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)||(e[r]=l("emailInvalid")),"phone"!==r&&"mobileno"!==r||/^[+]?[\d\s-]{8,15}$/.test(n)||(e[r]=l("phoneInvalid"))):a&&(e[r]="email"===r?l("emailRequired"):"fullName"===r||"name"===r?l("nameRequired"):"phone"===r||"mobileno"===r?l("phoneRequired"):`${o} ${l("fieldRequiredSuffix")}`)}),g(e),e})();if(Object.keys(t).length>0){const e=m.map((e,t)=>e.fieldType||`question_${t}`).find(e=>t[e]);return void h.current[e]?.focus()}f(!0);try{await r(c)}finally{f(!1)}},className:"space-y-4",noValidate:!0,children:[m.map((e,t)=>{const r=e.fieldType||`question_${t}`,n=e.collectionPrompt||e.askToType||e.question||e.label;if(!n?.trim())return null;let i="text";"email"===r&&(i="email"),"phone"!==r&&"mobileno"!==r||(i="tel");const s=(r||"").toLowerCase(),p="fullname"===s||"name"===s||"username"===s,f="phone"===s||"mobileno"===s,m="email"===s?l("onboardingEmailPlaceholder"):p?l("onboardingNamePlaceholder"):f?l("onboardingPhonePlaceholder"):n,b=d[r],y="w-full h-12 rounded-xl text-base md:text-sm px-3 py-1 outline-none border transition-colors focus:ring-0 "+(a?"text-white placeholder:text-[#A2A9B2] focus:border-[#5A6069]":"bg-gray-50/30 focus:bg-white text-gray-900 placeholder:text-gray-500 focus:border-[#B0B0B0]"),v=b?"!border-status-error focus:!border-status-error":"",w=`onboarding-field-${r}`,k=`${w}-error`;return cp.jsxs("div",{children:[cp.jsx("label",{htmlFor:w,className:"sr-only",children:n}),cp.jsx("input",{id:w,ref:e=>{h.current[r]=e},placeholder:m,type:i,value:c[r]??"",onChange:e=>((e,t)=>{u(r=>({...r,[e]:t})),d[e]&&g(t=>{const r={...t};return delete r[e],r})})(r,e.target.value),className:`${y} ${v}`,"aria-invalid":b?"true":"false","aria-describedby":b?k:void 0,style:{direction:o?"rtl":"ltr",fontFamily:"inherit",...a?{backgroundColor:"#272C35",borderWidth:"1px",borderStyle:"solid",borderColor:b?void 0:"#3F444C"}:{borderWidth:"1px",borderStyle:"solid",borderColor:b?void 0:"#E0E0E0"}}}),b&&cp.jsx("p",{id:k,role:"alert",className:"mt-1 text-xs text-status-error px-1",children:d[r]})]},r)}),cp.jsx("button",{type:"submit",disabled:p,"aria-busy":p,"aria-label":p?l("submitting"):void 0,className:"w-full h-12 inline-flex items-center justify-center text-sm border-none font-semibold shadow-xl hover:shadow-xl hover:scale-[1.02] active:scale-[0.98] transition-all rounded-xl mt-4 text-white",style:{backgroundColor:n,fontFamily:"inherit"},children:p?cp.jsx(Mg,{className:"w-5 h-5 animate-spin","aria-hidden":"true"}):l("startChat")})]})]})})},tf=({categories:e=[],selectedCategoryId:t=null,onSelect:r,isDark:n=!1,primaryColor:o="#2563eb",fontFamily:a="Inter",isRtl:i=!1,defaultLanguage:s="en"})=>{const l=I.useMemo(()=>Ld(s),[s]),c=I.useRef(null),[u,d]=I.useState(!1),[g,p]=I.useState(!1),f=I.useCallback(()=>{const e=c.current;if(!e)return;const{scrollLeft:t,scrollWidth:r,clientWidth:n}=e;d(Math.abs(t)>1),p(Math.abs(t)+n<r-1)},[]);I.useEffect(()=>{f();const e=c.current;if(!e)return;const t=new ResizeObserver(f);return t.observe(e),()=>t.disconnect()},[f,e]);const h=I.useCallback(e=>{const t=c.current;if(!t)return;const r="left"===e?-150:150;t.scrollBy({left:i?-r:r,behavior:"smooth"})},[i]);if(!Array.isArray(e)||0===e.length)return null;const m=n?"rgba(31,41,55,0.85)":"rgba(255,255,255,0.95)",b=n?"#e5e7eb":"#374151",y=n?"#4b5563":"#d1d5db",v=n?"#111827":"#ffffff",w=n?"#374151":"#e5e7eb";return cp.jsxs("div",{className:"flex-shrink-0 px-2 py-2 border-b flex items-center gap-1",style:{backgroundColor:v,borderColor:w,fontFamily:a,direction:i?"rtl":"ltr"},role:"region","aria-label":l("filterByCategory"),children:[cp.jsx("button",{type:"button",onClick:()=>h("left"),disabled:!u,"aria-label":l("scrollCategoriesLeft"),className:"flex-shrink-0 flex items-center justify-center w-6 h-6 rounded-full transition-all duration-200",style:{backgroundColor:m,border:`1px solid ${y}`,color:b,opacity:u?1:.3,cursor:u?"pointer":"default"},children:cp.jsx(vg,{size:14})}),cp.jsx("div",{ref:c,onScroll:f,className:"flex-1 flex gap-2 overflow-x-auto",style:{scrollBehavior:"smooth",WebkitOverflowScrolling:"touch",scrollbarWidth:"none",msOverflowStyle:"none"},children:e.map(e=>{const i=t===e.id;return cp.jsx("button",{type:"button",onClick:()=>r?.(i?null:e.id),"aria-pressed":i,className:"flex-shrink-0 inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-medium transition-all duration-150 whitespace-nowrap",style:{backgroundColor:n?"#1f2937":"#ffffff",border:i?`1.5px solid ${o}`:"1px solid "+(n?"#374151":"#e5e7eb"),color:i?o:n?"#e5e7eb":"#374151",fontFamily:a},children:cp.jsx("span",{children:e.label})},e.id)})}),cp.jsx("button",{type:"button",onClick:()=>h("right"),disabled:!g,"aria-label":l("scrollCategoriesRight"),className:"flex-shrink-0 flex items-center justify-center w-6 h-6 rounded-full transition-all duration-200",style:{backgroundColor:m,border:`1px solid ${y}`,color:b,opacity:g?1:.3,cursor:g?"pointer":"default"},children:cp.jsx(wg,{size:14})})]})},rf=({categories:e=[],selectedCategoryId:t=null,onSelect:r,isDark:n=!1,primaryColor:o="#2563eb",fontFamily:a="Inter",fontSize:i="14px",isRtl:s=!1,label:l="Choose a topic to get started:",regionLabel:c="Category filter"})=>{if(!Array.isArray(e)||0===e.length)return null;const u=n?"#9ca3af":"#6b7280";return cp.jsxs("div",{className:"pl-[50px] pt-1",style:{direction:s?"rtl":"ltr",paddingLeft:s?0:50,paddingRight:s?50:void 0},role:"region","aria-label":c,children:[cp.jsx("div",{className:"mb-2",style:{color:u,fontFamily:a,fontSize:`calc(${i} - 1px)`},children:l}),cp.jsx("div",{className:"flex flex-wrap gap-2",children:e.map(e=>{const s=t===e.id;return cp.jsx("button",{type:"button",onClick:()=>r?.(s?null:e.id),"aria-pressed":s,className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full transition-all duration-150 hover:scale-[1.02] active:scale-[0.98]",style:{backgroundColor:n?"#1f2937":"#ffffff",border:s?`1.5px solid ${o}`:"1px solid "+(n?"#374151":"#e5e7eb"),color:s?o:n?"#e5e7eb":"#374151",fontFamily:a,fontSize:`calc(${i} - 1px)`,fontWeight:500},children:e.label},e.id)})})]})};const nf=[{value:"😡",label:"😡",bg:"bg-red-200"},{value:"😕",label:"😕",bg:"bg-orange-200"},{value:"😐",label:"😐",bg:"bg-yellow-200"},{value:"😊",label:"😊",bg:"bg-green-200"},{value:"😍",label:"😍",bg:"bg-pink-200"}],of=[{value:"positive",label:"👍"},{value:"negative",label:"👎"}],af=[{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"},{value:"5",label:"5"}],sf=[{value:"1",label:"⭐"},{value:"2",label:"⭐"},{value:"3",label:"⭐"},{value:"4",label:"⭐"},{value:"5",label:"⭐"}],lf=({format:e="EMOJI",prompt:t="How was your experience?",onRating:r,disabled:n=!1,isDark:o=!1,primaryColor:a="#2563eb",defaultLanguage:i="en"})=>{const s=I.useMemo(()=>Ld(i),[i]),[l,c]=I.useState(null),[u,d]=I.useState(null),[g,p]=I.useState(!1),f=async t=>{if(!n&&!g){c(t),p(!0);try{r&&r(t,e)}finally{p(!1)}}},h=(()=>{switch(e){case"THUMBS":return of;case"NUMERIC":return af;case"STARS":return sf;default:return nf}})();return cp.jsxs("div",{className:Od("transition-all duration-200 rounded-xl px-4",o?"bg-slate-800/50":"bg-slate-50/50"),children:[cp.jsx("p",{className:Od("text-sm font-semibold text-center mb-3",o?"text-gray-300":"text-gray-500/80"),children:t}),cp.jsxs("div",{className:"flex justify-center items-center",children:["EMOJI"===e&&cp.jsx("div",{className:"flex gap-2 justify-center items-center",children:h.map(e=>cp.jsx("button",{onClick:()=>f(e.value),disabled:n||g,className:Od("flex items-center justify-center text-2xl transition-transform","bg-transparent border-0 p-0 cursor-pointer","hover:scale-110 active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed","focus:outline-none focus:ring-0","rounded-md focus-visible:ring-2 focus-visible:ring-blue-700",l===e.value?"":"opacity-80"),children:cp.jsx("span",{role:"img","aria-label":`${s("rate")} ${e.value}`,children:e.label})},e.value))}),"THUMBS"===e&&cp.jsx("div",{className:"flex gap-6 justify-center items-center",role:"group","aria-label":s("rateExperience"),children:h.map(e=>cp.jsx("button",{"aria-label":1===e.value?s("thumbsUp"):s("thumbsDown"),onClick:()=>f(e.value),disabled:n||g,className:Od("w-10 h-10 rounded-xl border flex items-center justify-center shadow-md text-2xl transition-all","hover:scale-105 active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed","drop-shadow-md",o?"bg-gray-700 border-gray-600 hover:bg-gray-600":"bg-white border-gray-100 hover:bg-gray-50",l===e.value&&"ring-2 ring-primary/40 scale-110"),style:{borderColor:l===e.value?a:void 0},children:cp.jsx("span",{className:"drop-shadow-md","aria-hidden":"true",children:e.label})},e.value))}),"NUMERIC"===e&&cp.jsx("div",{className:"flex gap-2 justify-center items-center",role:"group","aria-label":s("rateExperience"),children:h.map(e=>cp.jsx("button",{"aria-label":`${s("rate")} ${e.value}`,onClick:()=>f(e.value),disabled:n||g,className:Od("w-10 h-10 rounded-lg flex items-center justify-center text-sm font-semibold transition-all","hover:scale-105 active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed",l===e.value?"ring-2 ring-primary/40 scale-110 shadow-md text-white":o?"bg-gray-700 border border-gray-600 text-gray-300 hover:bg-gray-600":"bg-white border border-gray-200 text-gray-700 hover:bg-gray-50"),style:{backgroundColor:l===e.value?a:void 0,borderColor:l===e.value?a:void 0},children:e.label},e.value))}),"STARS"===e&&cp.jsx("div",{className:"flex gap-2 justify-center items-center",onMouseLeave:()=>d(null),children:h.map(e=>{const t=u===e.value;return cp.jsx("button",{onClick:()=>f(e.value),onMouseEnter:()=>d(e.value),disabled:n||g,className:Od("flex items-center justify-center text-2xl","bg-transparent border-0 p-0 cursor-pointer focus:outline-none","rounded-md focus-visible:ring-2 focus-visible:ring-blue-700","disabled:opacity-50 disabled:cursor-not-allowed"),style:{transform:t?"scale(1.25)":"scale(1)",filter:t?"brightness(1.1) drop-shadow(0 2px 4px rgba(0,0,0,0.15))":"none",opacity:t?1:.6,transition:"all 0.2s ease"},"aria-label":`${s("rate")} ${e.value}`,children:cp.jsx("span",{"aria-hidden":"true",children:e.label})},e.value)})})]}),g&&cp.jsx("p",{"aria-live":"polite",className:Od("text-xs mt-3 text-center",o?"text-slate-400":"text-slate-500"),children:s("submittingFeedback")})]})};async function cf({apiBaseUrl:e,conversationId:t,chip:r,submitText:n,position:o,source:a="widget",getAuthToken:i,enabled:s=!0}={}){try{if(!1===s)return!1;if(!e||"string"!=typeof e)return!1;if(!t||"string"!=typeof t)return!1;const l=function({chip:e,submitText:t,position:r,conversationId:n,source:o="widget"}={}){const a=e&&"object"==typeof e,i=a&&"string"==typeof e.text?e.text:"",s="string"==typeof t&&t?t:a&&"string"==typeof e.submitText?e.submitText:"string"==typeof e?e:"",l=i||s;if(!l)return null;const c={conversationId:n,chipText:l,submitText:s||void 0,position:Number.isInteger(r)?r:void 0,source:o},u=a?e?.promptId:void 0;return"string"==typeof u&&u&&(c.promptId=u),c}({chip:r,submitText:n,position:o,conversationId:t,source:a});if(!l)return!1;const c=`${e.replace(/\/$/,"")}/api/v1/support/chip-click`,u=JSON.stringify(l);let d;if("function"==typeof i)try{d=await i()}catch{d=void 0}if(!d&&"undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon&&"undefined"!=typeof Blob)try{if(navigator.sendBeacon(c,new Blob([u],{type:"application/json"})))return!0}catch{}if("function"!=typeof fetch)return!1;const g={"Content-Type":"application/json"};return d&&(g.Authorization=`Bearer ${d}`),await fetch(c,{method:"POST",headers:g,credentials:"include",keepalive:!0,body:u}),!0}catch{return!1}}const uf="#ffffff",df="#f5f5f5",gf="#000000",pf="#1f2937",ff="#f3f4f6",hf="#2563eb",mf="eshal:widget:size",bf=(e,t)=>!e||(e=>e?.trim().toLowerCase())(e)===t,yf=e=>(e instanceof Date?e:new Date(e)).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}).replace(/am|pm/i,e=>e.toUpperCase()),vf=e=>{const t=(e||"EMOJI").toString().trim().toUpperCase();return"THUMBS"===t||"THUMB"===t?"THUMBS":"STARS"===t||"STAR"===t?"STARS":"NUMERIC"===t||"NUMBER"===t?"NUMERIC":"EMOJI"},wf=({isOpen:e,isMinimized:t,isDark:r,onStopGeneration:n,primaryColor:o,textColor:a,conciergeName:i,companyName:s,companyLogo:l,chatbotAvatarEnabled:c,chatbotAvatar:u,messages:d,isLoading:g,isConversationLoading:p=!1,inputValue:f,setInputValue:h,onSend:m,onDirectSend:b,onToggleTheme:y,onMinimize:v,onClose:w,quickQuestions:k=[],quickQuestionsEnabled:x,onQuickQuestion:C,quickQuestionsLayout:S="vertical",agentMessageBubbleColor:M,userMessageBoxColor:T,assistantTextColor:P,userTextColor:z,fontFamily:j="Inter",agentMessageBubbleFontFamily:E,agentMessageBubbleFontSize:F,userMessageBubbleFontFamily:L,userMessageBubbleFontSize:N,fontSize:R="14px",defaultLanguage:A="en",onDecision:_,headerTextBold:B=!1,headerTextItalic:D=!1,headerTextColor:O,headerFontFamily:U,headerFontSize:V,subtitle:$=null,showStatus:H=!1,statusMode:q="always",officeHours:W=null,enableVoiceInteraction:K=!1,isVoiceSessionActive:Q=!1,voiceStatus:Y="idle",voiceError:G=null,voiceConclusionForCsat:J=!1,onVoiceToggle:X,onBidiSubmit:Z,disclaimerEnabled:ee=!1,disclaimerText:te,disclaimerPosition:re="top",disclaimerLinkUrl:ne,disclaimerLinkLabel:oe,showPoweredBy:ae=!0,apiBaseUrl:ie,apiKey:se,getAuthToken:le,conversationId:ce,conciergeId:ue,onboardingQuestions:de=[],onboardingActive:ge=!1,onboardingCompleted:pe=!1,onOnboardingFormSubmit:fe,collectionPrompt:he,csatEnabled:me=!1,csatFormat:be="EMOJI",csatPrompt:ye="How was your experience?",csatRequest:ve=null,onPromptSuggestionClick:we,onboardingEnabled:ke=!1,onResetConversation:xe,sessionExpiringSoon:Ce=!1,autoPromptEnabled:Se=!0,autoPromptQuestionDisplay:Me=!0,autoPromptClickTelemetry:Te=!0,allowFeedback:Pe=!0,provideCitations:ze=!0,onFeedback:je,onRetryMessage:Ee,onRefreshChat:Fe,onCopyChat:Le,filterCategories:Ne=[],showFilterStep:Re=!1,widgetFilter:Ae=null,onWidgetFilterChange:_e,onSynthesizeAssistantMessage:Ie,launcherPosition:Be="bottom-right",chatFeatures:De,organizationId:Oe})=>{Vg(j);const Ue=I.useRef(null),Ve=I.useRef(null),$e=I.useMemo(()=>Ld(A),[A]);I.useEffect(()=>{Ve.current?.focus()},[]);const He=I.useCallback((e,t,r)=>{cf({apiBaseUrl:ie,conversationId:ce,chip:t,submitText:null==e?void 0:String(e),position:r,source:"widget",getAuthToken:le,enabled:Te})},[ie,le,ce,Te]),qe=I.useCallback((e,t,r)=>{t&&"object"==typeof t&&He(e,t,r);const n=r&&"object"==typeof r&&r.toolConfirmation?r.toolConfirmation:null;we?we(e):n?b?.(e,void 0,{toolConfirmation:n}):b?.(e)},[we,b,He]),We=Be.includes("right"),Ke=Be.includes("bottom"),[Qe,Ye]=I.useState(()=>{if("undefined"==typeof window)return null;try{const e=window.localStorage.getItem(mf);if(!e)return null;const t=JSON.parse(e);if("number"==typeof t?.width&&"number"==typeof t?.height&&t.width>=320&&t.height>=400)return t}catch{}return null}),Ge=I.useRef(null),Je=I.useRef({x:0,y:0}),Xe=I.useRef({width:380,height:650});I.useEffect(()=>{const e=e=>{const t=Ge.current;if(!t)return;const r=e.clientX-Je.current.x,n=e.clientY-Je.current.y,o={...Xe.current},a=.92*window.innerWidth,i=.85*window.innerHeight;if("corner"===t||"horizontal"===t){const e=We?Xe.current.width-r:Xe.current.width+r;o.width=Math.min(Math.max(320,e),a)}if("corner"===t||"vertical"===t){const e=Ke?Xe.current.height-n:Xe.current.height+n;o.height=Math.min(Math.max(400,e),i)}Ye(o)},t=()=>{Ge.current&&(Ge.current=null,document.body.style.cursor="",document.body.style.userSelect="")};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}},[We,Ke]),I.useEffect(()=>{if(Qe)try{window.localStorage.setItem(mf,JSON.stringify(Qe))}catch{}},[Qe]);const Ze=(e,t)=>{t.preventDefault(),t.stopPropagation(),Ge.current=e,Je.current={x:t.clientX,y:t.clientY},Xe.current=Qe??{width:380,height:650};const r={corner:We===Ke?"nwse-resize":"nesw-resize",horizontal:"ew-resize",vertical:"ns-resize"};document.body.style.cursor=r[e],document.body.style.userSelect="none"},[et,tt]=I.useState(!1),[rt,nt]=I.useState(()=>{try{return Yd(Oe)?.csatSubmitted??!1}catch{return!1}}),[ot,at]=I.useState(!1),[it,st]=I.useState(!1),[lt,ct]=I.useState(0),[ut,dt]=I.useState(""),[gt,pt]=I.useState(!1);I.useEffect(()=>{try{const e=Yd(Oe)?.csatSubmitted??!1;nt(e),e&&tt(!1)}catch{}},[ce]),function(e,t=[],r={}){const{enabled:n=!0,threshold:o=30,behavior:a="smooth",delay:i=0}=r,s=I.useRef(!0);I.useRef(0),I.useEffect(()=>{if(!n||!e.current)return;const t=e.current,r=()=>{const e=t.scrollHeight-t.scrollTop-t.clientHeight;s.current=e<o},l=()=>{r()};t.addEventListener("scroll",l,{passive:!0}),r();const c=setTimeout(()=>{s.current&&t&&t.scrollTo({top:t.scrollHeight,behavior:a})},i);return()=>{t.removeEventListener("scroll",l),clearTimeout(c)}},[e,n,o,a,i,...t])}(Ue,[d,g],{enabled:!0,threshold:30,behavior:"smooth",delay:0});const ft=Pd(A),ht=I.useMemo(()=>r?bf(M,uf)?pf:M||pf:M||uf,[M,r]),mt=I.useMemo(()=>r?bf(a,gf)?ff:a||ff:a||gf,[r,a]),bt=I.useMemo(()=>r?bf(T,df)?o||hf:T||o||hf:T||df,[r,o,T]),yt=$e(it?"conversationResolved":"typeYourMessage"),vt=d?.some?.(e=>"user"===e.role),wt=I.useMemo(()=>(d||[]).filter(e=>"user"===e.role).length,[d]),[kt,xt]=I.useState(0),Ct=Ae?.category?(Ne||[]).find(e=>e.id===Ae.category):null,St=I.useCallback(e=>{if(!_e)return;const t=Ae?.category||null;if(e){if(_e({category:e,tags:[]}),xt(wt),!vt&&e!==t&&Ie){const t=(Ne||[]).find(t=>t.id===e),r=t?.label||e,n=$e("categoryTopicsHeading").replace("{category}",r);Ie(n,{replaceMarker:"category-intro"})}}else _e(null)},[_e,Ae,wt,Ne,vt,Ie,$e]);I.useCallback(e=>{const t=Ae?.category||Ct?.id;t&&_e&&_e({category:t,tags:[e]}),b&&b(e)},[Ae,Ct,_e,b]);const Mt=Array.isArray(Ne)&&Ne.length>0,Tt=Mt&&!vt&&!Ae?.category,Pt=!vt&&k.length>0&&x&&!Ae?.category,zt=de&&de.length>0,jt=Boolean(me),Et=ke&&zt&&!pe,Ft=I.useCallback(async()=>{if(jt&&!gt&&!it&&0!==lt){pt(!0);try{const e={"Content-Type":"application/json"};if("function"==typeof le){const t=await le();t&&(e.Authorization=`Bearer ${t}`)}const t=vf(be);(await fetch(`${ie.replace(/\/$/,"")}/api/v1/support/csat`,{method:"POST",headers:e,credentials:"include",body:JSON.stringify({conversationId:ce,rating:String(lt),ratingFormat:t,conciergeId:ue,feedback:ut||void 0})})).ok&&(at(!1),ct(0),dt(""),_e&&_e(null),Fe?Fe():xe&&xe())}catch(e){}finally{pt(!1)}}},[jt,gt,it,lt,ut,ce,le,ue,ie,be,xe,Fe,_e]),Lt=I.useCallback(()=>{if(!jt||!ce||!vt)return _e&&_e(null),Fe?Fe():xe&&xe(),void w?.();ot?(at(!1),w?.()):it?w?.():at(!0)},[jt,ce,vt,ot,it,w,_e,Fe,xe]);I.useEffect(()=>{jt||(ot&&at(!1),it&&st(!1),0!==lt&&ct(0),ut&&dt(""))},[jt,ot,it,lt,ut]);const Nt=I.useMemo(()=>{if(!d||!Array.isArray(d))return[];for(let e=d.length-1;e>=0;e-=1)if("assistant"===d[e]?.role){const t=d[e].prompts;return Array.isArray(t)?t:[]}return[]},[d]),Rt=I.useRef([]);I.useEffect(()=>{Nt.length>0?Rt.current=Nt:d&&0!==d.length&&d.some(e=>"user"===e.role)||(Rt.current=[])},[Nt,d]);const At=I.useRef(wt);I.useEffect(()=>{wt!==At.current&&(At.current=wt,Rt.current=[])},[wt]);const _t=Array.isArray(d)&&d.some(e=>"user"===e?.role),It=Nt.length>0?Nt:_t?Rt.current:[];I.useEffect(()=>{if(!me)return;if(!et)return;if(rt)return;const e=Ue.current;if(!e)return;const t=window.requestAnimationFrame(()=>{e.scrollTo({top:e.scrollHeight,behavior:"smooth"})});return()=>{window.cancelAnimationFrame(t)}},[et,me,rt]);const Bt=()=>{const e=vf(be);if("STARS"===e)return cp.jsx("div",{className:"flex justify-center gap-2 mb-5",role:"group","aria-label":$e("rateExperience"),children:[1,2,3,4,5].map(e=>cp.jsx("button",{"aria-label":`${$e("rate")} ${e}`,onClick:()=>ct(e),className:"transition-all duration-150 hover:scale-110 active:scale-95 bg-transparent border-0 p-0 cursor-pointer",disabled:gt,children:cp.jsx(Lg,{className:Od("w-8 h-8 transition-colors",e<=lt?"text-yellow-400 drop-shadow-sm":r?"text-gray-600":"text-gray-300"),fill:e<=lt?"#FBBF24":"none"})},e))});if("THUMBS"===e)return cp.jsx("div",{className:"flex gap-4 justify-center mb-5",role:"group","aria-label":$e("rateExperience"),children:[{value:"positive",emoji:"👍"},{value:"negative",emoji:"👎"}].map(e=>cp.jsx("button",{"aria-label":"positive"===e.value?$e("thumbsUp"):$e("thumbsDown"),onClick:()=>ct(e.value),disabled:gt,className:Od("w-12 h-12 rounded-xl border flex items-center justify-center text-2xl transition-all hover:scale-105 active:scale-95",lt===e.value?"ring-2 ring-blue-300 scale-110 shadow-lg":"",r?"bg-gray-700 border-gray-600 hover:bg-gray-600":"bg-white border-gray-200 hover:bg-gray-50"),children:cp.jsx("span",{className:"drop-shadow-md",children:e.emoji})},e.value))});return cp.jsx("div",{className:"flex gap-2 justify-center items-center mb-5",role:"group","aria-label":$e("rateExperience"),children:[{value:1,emoji:"😡"},{value:2,emoji:"😕"},{value:3,emoji:"😐"},{value:4,emoji:"😊"},{value:5,emoji:"😍"}].map(e=>cp.jsx("button",{"aria-label":`${$e("rate")} ${e.value}`,onClick:()=>ct(e.value),disabled:gt,className:Od("rounded-full w-10 h-10 flex items-center justify-center text-xl transition-all hover:scale-110 active:scale-95 bg-transparent border-0 p-0 cursor-pointer",lt===e.value?"ring-2 ring-blue-100 scale-125 bg-gradient-to-b from-yellow-200 to-yellow-400 shadow-md":"grayscale-[0.3] opacity-80 hover:grayscale-0"),children:cp.jsx("span",{role:"img","aria-label":`${$e("rate")} ${e.value}`,className:"drop-shadow-sm filter",children:e.emoji})},e.value))})};if(!e)return null;const Dt=!t&&Qe?{width:Qe.width,height:Qe.height,maxWidth:"92vw",maxHeight:"85vh"}:void 0;return cp.jsxs("div",{dir:ft?"rtl":"ltr",className:"relative flex-shrink-0 z-50 "+(t?"w-80 h-auto":""),style:Dt,children:[!t&&cp.jsxs(cp.Fragment,{children:[cp.jsx("div",{onMouseDown:e=>Ze("horizontal",e),className:"absolute top-0 h-full w-1.5 cursor-ew-resize hover:bg-blue-500/20 transition-colors z-[70] "+(We?"left-0":"right-0"),"aria-hidden":!0}),cp.jsx("div",{onMouseDown:e=>Ze("vertical",e),className:"absolute left-0 w-full h-1.5 cursor-ns-resize hover:bg-blue-500/20 transition-colors z-[70] "+(Ke?"top-0":"bottom-0"),"aria-hidden":!0})]}),cp.jsxs("div",{id:"chat-window-panel",ref:Ve,role:"dialog","aria-modal":"true","aria-label":$e("openChat"),tabIndex:-1,className:`relative focus:outline-none ${Qe||t?"":"w-[380px]"} ${Qe||t?"":"h-[650px]"} ${t?"w-80 h-auto":""} ${Qe&&!t?"w-full h-full":""} max-w-[92vw] border rounded-2xl shadow-2xl bg-white border-gray-200 flex flex-col ${t?"":"max-h-[85vh]"} overflow-hidden ${r?"bg-gray-900 border-gray-700":""}`,children:[!t&&cp.jsx("div",{onMouseDown:e=>Ze("corner",e),"aria-hidden":"true",className:`absolute w-4 h-4 ${We===Ke?"cursor-nwse-resize":"cursor-nesw-resize"} text-gray-400 hover:text-blue-500 transition-colors z-[71] flex p-0.5 ${Ke?"top-0 items-start":"bottom-0 items-end"} ${We?"left-0 justify-start":"right-0 justify-end"}`,children:cp.jsx("svg",{viewBox:"0 0 12 12",className:"w-3 h-3 "+(Ke&&We?"rotate-180":Ke?"-rotate-90":We?"rotate-90":""),"aria-hidden":!0,children:cp.jsx("path",{d:"M11 1 L1 11 M11 5 L5 11 M11 9 L9 11",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinecap:"round"})})}),cp.jsx(Zp,{conciergeName:i,companyName:s,companyLogo:l,primaryColor:o,isDark:r,isMinimized:t,textColor:mt,fontFamily:j,fontSize:R,onToggleTheme:y,onMinimize:v,onClose:Lt,headerTextBold:B,headerTextItalic:D,headerTextColor:O,headerFontFamily:U,headerFontSize:V,subtitle:$,showStatus:H,statusMode:q,officeHours:W,onRefreshChat:Fe,onCopyChat:Le,defaultLanguage:A}),!t&&Mt&&!Tt&&!(ot&&!it)&&!(ge&&!pe)&&cp.jsx(tf,{categories:Ne,selectedCategoryId:Ae?.category||null,onSelect:St,isDark:r,primaryColor:o,fontFamily:j,isRtl:ft,defaultLanguage:A}),!t&&cp.jsxs(cp.Fragment,{children:[cp.jsx("div",{ref:Ue,role:"log","aria-live":"polite",className:`chat-messages flex-1 overflow-y-auto px-3 py-4 space-y-4 ${r?"bg-gray-900":"bg-gradient-to-b from-gray-50/50 to-white"} break-words`,children:ot&&!it?cp.jsx("div",{className:"animate-in slide-in-from-top-4 fade-in duration-300 mt-4 mx-2",children:cp.jsxs("div",{className:Od("w-full rounded-3xl p-6 shadow-lg",r?"bg-gray-800 shadow-black/20":"bg-white shadow-gray-200/80"),children:[cp.jsx("p",{className:Od("text-sm font-medium text-center mb-5 [font-family:inherit]",r?"text-gray-300":"text-gray-500"),children:ye||$e("feedbackPrompt")}),Bt(),cp.jsx("textarea",{"aria-label":$e("feedbackPlaceholder"),value:ut,onChange:e=>{e.target.value.length<=1e3&&dt(e.target.value)},maxLength:1e3,placeholder:$e("feedbackPlaceholder"),rows:4,disabled:gt,className:Od("w-full rounded-xl border px-4 py-3 text-sm [font-family:inherit] resize-none outline-none transition-colors mb-5",r?"bg-gray-700 border-gray-600 text-gray-100 placeholder-gray-400":"bg-gray-50 border-gray-200 text-gray-900 placeholder-gray-400")}),cp.jsxs("div",{className:"relative group",children:[cp.jsx("button",{onClick:Ft,disabled:0===lt||gt,"aria-describedby":0===lt?"resolve-rating-hint":void 0,className:Od("w-full py-3.5 rounded-xl text-sm font-semibold [font-family:inherit] transition-all duration-200 border-none outline-none focus:outline-none active:outline-none focus:ring-0 active:ring-0","disabled:opacity-50 disabled:cursor-not-allowed","focus-visible:ring-2 focus-visible:ring-blue-700",r?"bg-gray-700 text-gray-100 hover:bg-gray-600":"bg-gray-100 text-gray-700 hover:bg-gray-200"),children:$e(gt?"submitting":"submitFeedback")}),0===lt&&!gt&&cp.jsx("div",{id:"resolve-rating-hint",role:"tooltip",className:"absolute -top-8 left-1/2 -translate-x-1/2 whitespace-nowrap px-2 py-1 rounded-md text-xs bg-gray-800 text-white opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none",children:$e("selectRatingFirst")})]})]})}):ge&&!pe&&fe?cp.jsx(ef,{questions:de,onPromptSuggestionClick:qe,collapsiblePrompt:he,onSubmit:fe,primaryColor:o,isRtl:ft,isDark:r,defaultLanguage:A,fontFamily:j}):cp.jsxs(cp.Fragment,{children:[Ce&&cp.jsx("div",{role:"status",className:"mx-3 mt-1 mb-2 rounded-lg px-3 py-2 text-xs font-medium "+(r?"bg-amber-900/40 text-amber-200 border border-amber-700/50":"bg-amber-50 text-amber-800 border border-amber-200"),children:$e("sessionExpiringSoon")}),cp.jsx(Ip,{messages:d,isDark:r,primaryColor:o,isLoading:g,agentMessageBubbleColor:M,userMessageBoxColor:T,textColor:a,assistantTextColor:P,userTextColor:z,fontFamily:j,agentMessageBubbleFontFamily:E,agentMessageBubbleFontSize:F,userMessageBubbleFontFamily:L,userMessageBubbleFontSize:N,fontSize:R,formatTime:yf,isRtl:ft,defaultLanguage:A,quickQuestions:k,shouldShowQuickQuestions:Pt,onQuickQuestion:C??b,quickQuestionsLayout:S,onDecision:_,disclaimerEnabled:ee,disclaimerText:te,disclaimerPosition:re,disclaimerLinkUrl:ne,disclaimerLinkLabel:oe,resolvedAgentBubbleColor:ht,resolvedUserMessageColor:bt,resolvedTextColor:mt,isVoiceSessionActive:Q,voiceStatus:Y,messagesContainerRef:Ue,companyLogo:l,chatbotAvatarEnabled:c,chatbotAvatar:u,conciergeName:i,companyName:s,apiBaseUrl:ie,getAuthToken:le,onPromptSuggestionClick:qe,conversationResetKey:ce,allowFeedback:Pe,provideCitations:ze,onFeedback:je,onRetryMessage:Ee,headerTextColor:O,beforePromptsSlot:Tt?cp.jsx(rf,{categories:Ne,selectedCategoryId:Ae?.category||null,onSelect:St,isDark:r,primaryColor:o,fontFamily:j,fontSize:R,isRtl:ft,label:$e("chooseTopicLabel"),regionLabel:$e("categoryFilter")}):null,quickQuestionsHeadingLabel:Mt?$e("quickQuestionsHeadingLabel"):void 0}),(et&&me||ve)&&!rt&&cp.jsx("div",{className:"","data-testid":"widget-csat-card",children:cp.jsx(lf,{format:vf(ve?.format||be),prompt:ve?.prompt||ye||$e("howWasYourExperience"),onRating:async(e,t)=>{nt(!0),tt(!1),(e=>{try{const t=Yd(e);if(!t)return;t.csatSubmitted=!0,localStorage.setItem(`${$d}_${e}`,JSON.stringify(t))}catch{}})(Oe);try{const r={"Content-Type":"application/json"};if("function"==typeof le){const e=await le();e&&(r.Authorization=`Bearer ${e}`)}(await fetch(`${ie.replace(/\/$/,"")}/api/v1/support/csat`,{method:"POST",headers:r,credentials:"include",body:JSON.stringify({conversationId:ce,rating:e,ratingFormat:t,conciergeId:ue})})).ok}catch(e){}},disabled:!1,isDark:r,primaryColor:o,defaultLanguage:A})})]})}),!(ge&&!pe)&&cp.jsx(qp,{onStopGeneration:n,inputValue:f,setInputValue:h,onSend:m,isDark:r,primaryColor:o,isOpen:e,isMinimized:t,isLoading:g,isConversationLoading:p,placeholder:yt,textColor:mt,fontFamily:j,userMessageBubbleFontFamily:L,userMessageBubbleFontSize:N,fontSize:R,isRtl:ft,csatVisible:et&&me&&!rt||jt&&(ot||it),enableVoiceInteraction:K,isVoiceSessionActive:Q,voiceStatus:Y,voiceError:G,onVoiceToggle:X,onBidiSubmit:Z,disclaimerEnabled:ee,disclaimerText:te,disclaimerPosition:re,disclaimerLinkUrl:ne,disclaimerLinkLabel:oe,showPoweredBy:ae,defaultLanguage:A,onboardingQuestions:de,onboardingActive:ge,onboardingCompleted:pe,onboardingEnabled:ke,userMessageBoxColor:T,resolvedUserMessageColor:bt,userTextColor:z,promptSuggestions:ot||it||!1===Se||g?[]:It,onPromptSuggestionClick:qe,autoPromptQuestionDisplay:Me,tagSelectorNode:null,showResolveButton:jt&&vt&&!it&&!ot&&!et&&!Et,onResolve:()=>{jt&&at(!0)},chatFeatures:De,apiEndpoint:ie,organizationId:Oe,conversationId:ce})]})]})]})},kf=new Map;const xf={whatsapp:["wa.me","api.whatsapp.com"],telegram:["t.me"],messenger:["m.me"],instagram:["ig.me","instagram.com","www.instagram.com"]},Cf={whatsapp:"WhatsApp",telegram:"Telegram",messenger:"Messenger",instagram:"Instagram"};const Sf=I.forwardRef(({isDark:e,primaryColor:t,onToggle:r,textColor:n,headerTextColor:o,defaultLanguage:a="en",isOpen:i=!1,className:s,channelLinks:l},c)=>{const u=I.useMemo(()=>Ld(a),[a]),d=I.useMemo(()=>function(e){if(!Array.isArray(e))return[];const t=[];for(let r=0;r<e.length;r+=1){const n=e[r];if(!n||"object"!=typeof n)continue;const o="string"==typeof n.type?n.type.toLowerCase():"",a=Object.prototype.hasOwnProperty.call(xf,o)?xf[o]:void 0;if(!a||"string"!=typeof n.url)continue;let i;try{i=new URL(n.url)}catch(e){continue}"https:"===i.protocol&&-1!==a.indexOf(i.hostname.toLowerCase())&&t.push({type:o,url:i.toString(),label:"string"==typeof n.label&&n.label.trim()?n.label.trim():Cf[o]})}return t}(l),[l]),[g,p]=I.useState(!1),f=d.length>0,h=I.useRef(null),m=I.useRef(null),b=I.useCallback(e=>{m.current=e,"function"==typeof c?c(e):c&&(c.current=e)},[c]),y=f&&g&&!i;I.useEffect(()=>{y&&function(e,t=Yp){const[r]=Jp(e,t);r?.focus()}(h.current)},[y]);const v=t,w=o||"#FFFFFF",k={display:"block",width:"100%",padding:"8px 12px",textAlign:"start",fontSize:"14px",color:e?"#F1F5F9":"#0F172A",background:"transparent",border:"none",borderRadius:"6px",textDecoration:"none",cursor:"pointer"};return cp.jsxs("div",{className:`relative ${s||""}`,children:[y&&cp.jsxs("div",{ref:h,role:"menu","aria-label":u("chooseChannel"),tabIndex:-1,onKeyDown:e=>{if("Escape"===e.key)return e.preventDefault(),p(!1),void m.current?.focus();Xp(e,h.current)},"data-testid":"channel-picker",style:{position:"absolute",bottom:"76px",right:0,minWidth:"180px",padding:"6px",borderRadius:"8px",border:"1px solid "+(e?"#334155":"#E2E8F0"),background:e?"#1E293B":"#FFFFFF",boxShadow:"0 10px 30px rgba(15, 23, 42, 0.15)"},children:[cp.jsx("button",{type:"button",role:"menuitem",style:k,onClick:()=>{p(!1),r?.()},children:u("chatHere")}),d.map(e=>cp.jsx("a",{role:"menuitem",href:e.url,target:"_blank",rel:"noopener noreferrer",style:k,onClick:()=>p(!1),children:e.label},`${e.type}-${e.url}`))]}),cp.jsxs("button",{ref:b,onClick:()=>{!f||i?r?.():p(e=>!e)},className:"group relative w-16 h-16 rounded-full shadow-2xl transition-all duration-300 flex items-center justify-center text-white overflow-hidden hover:scale-110",style:{background:`linear-gradient(135deg, ${v} 0%, ${v}dd 100%)`,boxShadow:`0 10px 30px ${v}40`,border:"none"},"aria-label":u(i?"closeChat":"openChat"),"aria-expanded":f&&g||i,"aria-haspopup":f?"menu":void 0,"aria-controls":"chat-window-panel",children:[cp.jsx("div",{className:"absolute inset-0 rounded-full bg-white/20 scale-0 group-hover:scale-100 transition-transform duration-500"}),cp.jsx("div",{className:"relative z-10 transition-transform duration-300",children:cp.jsx(Tg,{className:"w-7 h-7",style:{color:w}})})]})]})});Sf.displayName="ToggleButton";const Mf="0.2.30";const Tf=({getAuthToken:e,apiBaseUrl:t,darkMode:r,primaryColor:n,position:o,companyName:a,conciergeName:i,companyLogo:s,welcomeMessage:l,quickQuestions:c,quickQuestionsEnabled:u,quickQuestionsLayout:d="vertical",textColor:g,agentMessageBubbleColor:p,userMessageBoxColor:f,assistantTextColor:h,userTextColor:m,fontFamily:b,fontSize:y,defaultLanguage:v,apiKey:w,agentMessageBubbleFontFamily:k,agentMessageBubbleFontSize:x,userMessageBubbleFontFamily:C,userMessageBubbleFontSize:S,autoOpen:M=!1,openDelay:T=0,locale:P,className:z="",headerTextBold:j,headerTextItalic:E,enableVoiceInteraction:F,disclaimerEnabled:L,disclaimerText:N,disclaimerPosition:R,disclaimerLinkUrl:A,disclaimerLinkLabel:_,showPoweredBy:B,onboardingQuestions:D,collectionPrompt:O,allowedDomains:U,onboardingEnabled:V,wsBaseUrl:$,channelLinks:H})=>{const[q,W]=I.useState(null),[K,Q]=I.useState(!0),[Y,G]=I.useState(null),[J,X]=I.useState(!1),Z=I.useRef(!1);I.useEffect(()=>{if(Z.current)return;(async()=>{if(!t)return G("apiBaseUrl is required"),void Q(!1);try{Q(!0);const r=await(async(e,t)=>{if(!e)throw new Error("apiBaseUrl is required");try{const r=e.replace(/\/$/,""),n=Mf?`${r}/api/v1/deploy-agent?wv=${encodeURIComponent(Mf)}`:`${r}/api/v1/deploy-agent`,o={"Content-Type":"application/json"};if("function"==typeof t){const e=await t();e&&(o.Authorization=`Bearer ${e}`)}const a=await fetch(n,{method:"GET",headers:o,credentials:"include"});if(404===a.status)return null;if(!a.ok)throw new Error(`HTTP error! status: ${a.status}`);return await a.json()}catch(e){throw e}})(t,e);if(null===r)return Z.current=!0,X(!0),W(null),void G(null);!function(e,t){if(!e||"report"!==e.mode&&"enforce"!==e.mode)return;let r="";try{r=new URL(t).origin}catch{r=""}e.mode,new Set((Array.isArray(e.hosts)?e.hosts:[]).map(e=>String(e).toLowerCase()))}(r.chatImagePolicy,t),W(r),G(null)}catch(e){G(e.message||"Failed to load configuration")}finally{Q(!1)}})()},[t,e]);const ee=I.useMemo(()=>{if(!q)return null;const e=q.config??{},t=e.identity??{},d=e.branding??{},w=e.typography??{},M=e.messages??{},T=e.voice??{},P=e.onboarding??{},z=e.disclaimer??{},I=e.csat??{},$=e.inactivity??{},W=e.behavior??{},K=e.security??{},Q=e.layout??{},Y=v??M.defaultLocale??"en",G=M.bundles?.[Y]??{},J=M.bundles?.en??{},X={welcome:G.welcome||J.welcome,fallback:G.fallback||J.fallback,quickQuestions:Array.isArray(G.quickQuestions)&&G.quickQuestions.length>0?G.quickQuestions:J.quickQuestions},Z=U??K.allowedDomains??(K.domains??[]).map(e=>"string"==typeof e?e:e.domain).filter(Boolean)??[];return{darkMode:r??!1,primaryColor:n??d.brandColor??"#2563eb",companyName:a??t.companyName??"Support Team",conciergeName:i??t.conciergeName,companyLogo:s??d.avatar??null,chatbotAvatarEnabled:d.chatbotAvatarEnabled??!1,chatbotAvatar:d.chatbotAvatar??null,welcomeMessage:l??X.welcome??"Hi! How can we help?",fallbackMessage:X.fallback,quickQuestions:c??X.quickQuestions??[],quickQuestionsEnabled:u??M.quickQuestionsEnabled,textColor:g??"#000000",agentMessageBubbleColor:p??w.agentMessageBubbleColor,userMessageBoxColor:f??w.userMessageBoxColor,assistantTextColor:h??w.assistantTextColor??"#000000",userTextColor:m??w.userTextColor??"#000000",fontFamily:b??w.agentMessageBubbleFontFamily??"Inter",fontSize:y??w.agentMessageBubbleFontSize??"14px",defaultLanguage:Y,headerTextBold:j??w.headerTextBold??!1,headerTextItalic:E??w.headerTextItalic??!1,headerTextColor:w.headerTextColor??"#FFFFFF",headerFontFamily:w.headerFontFamily,headerFontSize:w.headerFontSize,subtitle:t.subtitle??null,showStatus:t.showStatus??!1,statusMode:t.statusMode??"always",officeHours:t.officeHours??null,enableVoiceInteraction:F??T.enableVoiceInteraction??!1,disclaimerEnabled:L??z.enabled??!1,disclaimerText:N??z.text,disclaimerPosition:R??(ee=z.position,ee?ee.toLowerCase():"top"),disclaimerLinkUrl:Dd(A??z.linkUrl),disclaimerLinkLabel:_??z.linkLabel,showPoweredBy:B??d.showPoweredBy??!0,onboardingQuestions:D??P.questions??[],collectionPrompt:O??P.collapsiblePrompt??"Before we begin, I need to verify your details.",allowedDomains:Z,launcherPosition:o??(e=>e?e.toLowerCase().replace(/_/g,"-"):"bottom-right")(Q.launcherPosition),onboardingEnabled:V??P.enabled??!1,inactivityTimeoutValue:$.timeoutValue??null,inactivityTimeoutUnit:$.timeoutUnit??null,agentMessageBubbleFontFamily:k??w.agentMessageBubbleFontFamily??b??"Inter",agentMessageBubbleFontSize:x??w.agentMessageBubbleFontSize??y??"14px",userMessageBubbleFontFamily:C??w.userMessageBubbleFontFamily??b??"Inter",userMessageBubbleFontSize:S??w.userMessageBubbleFontSize??y??"14px",csatEnabled:I.enabled??!1,csatFormat:I.format??"EMOJI",csatPrompt:I.prompt??"How was your experience?",autoPromptEnabled:W.autoPromptEnabled??!0,autoPromptQuestionDisplay:W.autoPromptQuestionDisplay??!0,autoPromptClickTelemetry:W.autoPromptClickTelemetry??!0,allowFeedback:W.allowFeedback??!0,provideCitations:W.provideCitations??!0,organizationId:q.organizationId??null,chatFeatures:e.chatFeatures??null,channelLinks:H??e.channelLinks??null};var ee},[H,q,r,n,o,a,i,s,l,c,u,g,p,f,h,m,b,y,v,j,E,F,L,N,R,_,A,B,D,V,O,U,k,x,C,S]),te=I.useMemo(()=>!ee||((e=[])=>{if("undefined"==typeof window)return!1;const t=window.location.hostname.toLowerCase(),r=window.location.host.toLowerCase();return!(!e||0===e.length)&&e.some(e=>{const n=e.toLowerCase().trim();return n.includes(":")?r===n:t===n||t.endsWith("."+n)})})(ee.allowedDomains),[ee]),re=I.useMemo(()=>({welcomeMessage:"Hi! How can we help?",quickQuestions:[],apiBaseUrl:t||"",apiKey:w||"",getAuthToken:e,autoOpen:!1,openDelay:0,darkMode:!1,enableVoiceInteraction:!1,onboardingQuestions:[],onboardingEnabled:!1,collectionPrompt:void 0}),[t,w,e]),{isOpen:ne,isMinimized:oe,isDark:ae,messages:ie,inputValue:se,isLoading:le,widgetRef:ce,setInputValue:ue,handleSend:de,stopGeneration:ge,handleQuickQuestion:pe,sendMessage:fe,retryMessage:he,toggleChat:me,toggleTheme:be,toggleMinimize:ye,closeChat:ve,handleDecision:we,isVoiceSessionActive:ke,voiceStatus:xe,voiceError:Ce,voiceConclusionForCsat:Se,handleVoiceToggle:Me,sendBidiTextMessage:Te,onboardingActive:Pe,onboardingCompleted:ze,handleOnboardingFormSubmit:je,conversationId:Ee,resetConversation:Fe,sessionExpiringSoon:Le,updateMessageFeedback:Ne,widgetFilter:Re,setWidgetFilter:Ae,addAssistantMessage:_e,csatRequest:Ie}=ug(ee?{welcomeMessage:ee.welcomeMessage,fallbackMessage:ee.fallbackMessage,quickQuestions:ee.quickQuestions,apiBaseUrl:t,wsBaseUrl:$??q?.wsBaseUrl,apiKey:w,locale:ee.defaultLanguage||P,organizationId:ee.organizationId,getAuthToken:e,autoOpen:M,openDelay:T,darkMode:ee.darkMode,enableVoiceInteraction:ee.enableVoiceInteraction,onboardingQuestions:ee.onboardingQuestions,onboardingEnabled:ee.onboardingEnabled,collectionPrompt:ee.collectionPrompt,provideCitations:ee.provideCitations,inactivityTimeoutValue:ee.inactivityTimeoutValue,inactivityTimeoutUnit:ee.inactivityTimeoutUnit,messageLimits:q?.messageLimits}:re),Be=I.useRef(null),De=I.useRef(ne);I.useEffect(()=>{De.current&&!ne&&Be.current?.focus(),De.current=ne},[ne]);const Oe=I.useCallback((r,n,o)=>{if(Ne(r,n),!Ee||!t)return;const a=t.replace(/\/$/,"");(async()=>{try{const t={"Content-Type":"application/json"};if("function"==typeof e){const r=await e();r&&(t.Authorization=`Bearer ${r}`)}await fetch(`${a}/api/v1/support/feedback`,{method:"POST",headers:t,credentials:"include",body:JSON.stringify({messageContent:r,conversationId:Ee,feedback:n,feedbackText:o})})}catch(e){}})()},[Ee,t,e,Ne]),Ue=I.useCallback(()=>{Fe&&Fe()},[Fe]),{categories:Ve,hasFilters:$e}=function(e,t){const r=!!e,[n,o]=I.useState({categories:[],loading:r,error:null});I.useEffect(()=>{if(!e)return void o({categories:[],loading:!1,error:null});const r=t?`${e}|__session__`:`${e}|__proxy__`,n=kf.get(r);if(n)return void o({categories:n,loading:!1,error:null});let a=!1;o(e=>({...e,loading:!0,error:null}));const i=`${e.replace(/\/$/,"")}/api/v1/widget/filters`;return(async()=>{try{const e={Accept:"application/json"};if("function"==typeof t){const r=await t();r&&(e.Authorization=`Bearer ${r}`)}const n=await fetch(i,{method:"GET",headers:e});if(!n.ok)throw new Error(`filter catalog HTTP ${n.status}`);const s=await n.json(),l=Array.isArray(s?.categories)?s.categories:[];if(a)return;kf.set(r,l),o({categories:l,loading:!1,error:null})}catch(e){if(a)return;o({categories:[],loading:!1,error:e})}})(),()=>{a=!0}},[e,t]);const a=I.useMemo(()=>Array.isArray(n.categories)&&n.categories.length>0,[n.categories]);return{...n,hasFilters:a}}(t,e),He=I.useCallback(()=>{const e=ie.filter(e=>e.content&&""!==e.content.trim()).map(e=>`${"user"===e.role?"You":ee?.conciergeName||"Assistant"}: ${e.content}`).join("\n\n");e&&navigator.clipboard.writeText(e).catch(()=>{})},[ie,ee?.conciergeName]);if(I.useEffect(()=>{ce.current&&ee&&(ce.current.style.setProperty("--cw-primary",ee.primaryColor),ee.fontFamily&&ce.current.style.setProperty("--cw-font-family",ee.fontFamily),ee.textColor&&ce.current.style.setProperty("--cw-text-color",ee.textColor))},[ee,ce]),K)return null;if(J)return null;if(Y||!ee)return null;if(!te)return null;const qe={"bottom-right":"bottom-5 right-5","bottom-left":"bottom-5 left-5","top-right":"top-5 right-5","top-left":"top-5 left-5"};return cp.jsx("div",{id:"chat-widget-root",children:cp.jsxs("div",{ref:ce,className:`chat-widget-root fixed flex flex-col ${ee.launcherPosition?.includes("left")?"items-start":"items-end"} z-[999999] ${ae?"dark":""} ${z} ${qe[ee.launcherPosition]||qe["bottom-right"]}`,children:[cp.jsx(wf,{isOpen:ne,isMinimized:oe,isDark:ae,launcherPosition:ee.launcherPosition,primaryColor:ee.primaryColor,textColor:ee.textColor,companyName:ee.companyName,conciergeName:ee.conciergeName,companyLogo:ee.companyLogo,chatbotAvatarEnabled:ee.chatbotAvatarEnabled,chatbotAvatar:ee.chatbotAvatar,messages:ie,isLoading:le,inputValue:se,setInputValue:ue,onSend:de,onStopGeneration:ge,onDirectSend:fe,onToggleTheme:be,onMinimize:ye,onClose:ve,quickQuestions:ee.quickQuestions,quickQuestionsEnabled:ee.quickQuestionsEnabled,onQuickQuestion:pe,quickQuestionsLayout:d,agentMessageBubbleColor:ee.agentMessageBubbleColor,userMessageBoxColor:ee.userMessageBoxColor,assistantTextColor:ee.assistantTextColor,userTextColor:ee.userTextColor,fontFamily:ee.fontFamily,agentMessageBubbleFontFamily:ee.agentMessageBubbleFontFamily,agentMessageBubbleFontSize:ee.agentMessageBubbleFontSize,userMessageBubbleFontFamily:ee.userMessageBubbleFontFamily,userMessageBubbleFontSize:ee.userMessageBubbleFontSize,fontSize:ee.fontSize,defaultLanguage:ee.defaultLanguage||P,onDecision:we,headerTextBold:ee.headerTextBold,headerTextItalic:ee.headerTextItalic,headerTextColor:ee.headerTextColor,headerFontFamily:ee.headerFontFamily,headerFontSize:ee.headerFontSize,subtitle:ee.subtitle,showStatus:ee.showStatus,statusMode:ee.statusMode,officeHours:ee.officeHours,enableVoiceInteraction:ee.enableVoiceInteraction,isVoiceSessionActive:ke,voiceStatus:xe,voiceError:Ce,voiceConclusionForCsat:Se,onVoiceToggle:Me,onBidiSubmit:()=>Te(se),disclaimerEnabled:ee.disclaimerEnabled,disclaimerText:ee.disclaimerText,disclaimerPosition:ee.disclaimerPosition,disclaimerLinkUrl:ee.disclaimerLinkUrl,disclaimerLinkLabel:ee.disclaimerLinkLabel,showPoweredBy:ee.showPoweredBy,apiBaseUrl:t,apiKey:w,getAuthToken:e,conversationId:Ee,conciergeId:q?.conciergeId??q?.id,onboardingQuestions:ee.onboardingQuestions,onboardingActive:Pe,onboardingCompleted:ze,onOnboardingFormSubmit:je,collectionPrompt:ee.collectionPrompt,csatEnabled:ee.csatEnabled,csatFormat:ee.csatFormat,csatPrompt:ee.csatPrompt,csatRequest:Ie,onboardingEnabled:ee.onboardingEnabled,onResetConversation:Fe,sessionExpiringSoon:Le,autoPromptEnabled:ee.autoPromptEnabled,autoPromptQuestionDisplay:ee.autoPromptQuestionDisplay,autoPromptClickTelemetry:ee.autoPromptClickTelemetry,allowFeedback:ee.allowFeedback,provideCitations:ee.provideCitations,onFeedback:Oe,onRetryMessage:he,onRefreshChat:Ue,onCopyChat:He,filterCategories:Ve,showFilterStep:$e,widgetFilter:Re,onWidgetFilterChange:Ae,onSynthesizeAssistantMessage:_e,chatFeatures:ee.chatFeatures,organizationId:ee.organizationId}),cp.jsx(Sf,{ref:Be,isDark:ae,primaryColor:ee.primaryColor,onToggle:me,textColor:ee.textColor,headerTextColor:ee.headerTextColor,defaultLanguage:ee.defaultLanguage||P,isOpen:ne,className:ne?"hidden":void 0,channelLinks:ee.channelLinks})]})})};class Pf extends I.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){}render(){return this.state.hasError?cp.jsx("div",{role:"alert",style:{position:"fixed",bottom:"20px",right:"20px",maxWidth:"280px",padding:"10px 14px",borderRadius:"10px",background:"#1f2937",color:"#f3f4f6",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif',fontSize:"13px",lineHeight:1.4,boxShadow:"0 4px 12px rgba(0,0,0,0.15)",zIndex:2147483647},children:"Chat is temporarily unavailable. Please refresh the page to try again."}):this.props.children}}"undefined"!=typeof window&&(window.__eshalChatWidgetReact=I),function(){let e=null,t=null,r=null,n={},o=null;const a={darkMode:!1,primaryColor:"#2563eb",position:"bottom-right",companyName:"Support Team",conciergeName:null,companyLogo:null,welcomeMessage:"Hi! How can we help?",quickQuestions:[],quickQuestionsLayout:"vertical",textColor:"#fcfcfc",agentMessageBubbleColor:void 0,userMessageBoxColor:void 0,assistantTextColor:void 0,userTextColor:void 0,fontFamily:"Inter",fontSize:"14px",defaultLanguage:"en",autoOpen:!1,openDelay:0,apiBaseUrl:null,wsBaseUrl:null,apiKey:null,organizationId:null,sessionUrl:null,userId:null,userName:null,userEmail:null,locale:"en",headerTextBold:!1,headerTextItalic:!1,enableVoiceInteraction:!1,disclaimerEnabled:!1,disclaimerText:void 0,disclaimerPosition:"top",showPoweredBy:!0,onboardingQuestions:[],onboardingEnabled:!1,collectionPrompt:void 0,allowedDomains:[],onOpen:null,onClose:null},i={init:async function(s={}){if(n={...a,...s},n.sessionUrl&&!o&&(o=await(async e=>{if(e.sessionUrl)try{const t=await fetch(e.sessionUrl,{method:"POST",headers:{"Content-Type":"application/json",...e.apiKey&&{Authorization:`Bearer ${e.apiKey}`}},body:JSON.stringify({userId:e.userId,userName:e.userName,userEmail:e.userEmail}),credentials:"include"});return(await t.json()).sessionId}catch(e){return null}return null})(n)),r||(r=document.createElement("div"),r.id="chat-widget-host",document.body.appendChild(r)),!r.shadowRoot){const e=r.attachShadow({mode:"open"}),n=document.createElement("style");n.textContent=":host { all: initial; display: block; }",e.appendChild(n);const o=document.createElement("style");o.textContent='*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.chat-widget-root{--cw-primary:#1d4ed8;--cw-primary-hover:#1e40af;--cw-status-success:160 84% 39%;--cw-status-success-bg:152 81% 96%;--cw-status-warning:35 100% 50%;--cw-status-warning-bg:34 100% 95%;--cw-status-error:350 89% 60%;--cw-status-error-bg:356 100% 97%;--cw-status-info:199 89% 48%;--cw-status-info-bg:204 100% 97%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}.chat-widget-root.dark{--cw-status-success:158 64% 52%;--cw-status-success-bg:152 36% 14%;--cw-status-warning:38 92% 60%;--cw-status-warning-bg:36 33% 14%;--cw-status-error:350 89% 65%;--cw-status-error-bg:356 33% 16%;--cw-status-info:199 89% 58%;--cw-status-info-bg:204 33% 14%}.\\!container{width:100%!important}.container{width:100%}@media (min-width:640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width:768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width:1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width:1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width:1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}#chat-widget-root .chat-widget-root *{box-sizing:border-box;margin:0;padding:0}#chat-widget-root .chat-messages::-webkit-scrollbar{width:6px}#chat-widget-root .chat-messages::-webkit-scrollbar-track{background:transparent}#chat-widget-root .chat-messages::-webkit-scrollbar-thumb{background:rgba(156,163,175,.5);border-radius:10px}#chat-widget-root .chat-messages::-webkit-scrollbar-thumb:hover{background:rgba(156,163,175,.7)}#chat-widget-root .dark .chat-messages::-webkit-scrollbar-thumb{background:rgba(75,85,99,.5)}#chat-widget-root .dark .chat-messages::-webkit-scrollbar-thumb:hover{background:rgba(75,85,99,.7)}#chat-widget-root .sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}#chat-widget-root .pointer-events-none{pointer-events:none}#chat-widget-root .visible{visibility:visible}#chat-widget-root .invisible{visibility:hidden}#chat-widget-root .collapse{visibility:collapse}#chat-widget-root .static{position:static}#chat-widget-root .fixed{position:fixed}#chat-widget-root .absolute{position:absolute}#chat-widget-root .relative{position:relative}#chat-widget-root .sticky{position:sticky}#chat-widget-root .inset-0{inset:0}#chat-widget-root .-top-8{top:-2rem}#chat-widget-root .bottom-0{bottom:0}#chat-widget-root .bottom-5{bottom:1.25rem}#chat-widget-root .bottom-full{bottom:100%}#chat-widget-root .left-0{left:0}#chat-widget-root .left-1\\/2{left:50%}#chat-widget-root .left-5{left:1.25rem}#chat-widget-root .right-0{right:0}#chat-widget-root .right-5{right:1.25rem}#chat-widget-root .top-0{top:0}#chat-widget-root .top-1\\/2{top:50%}#chat-widget-root .top-5{top:1.25rem}#chat-widget-root .top-full{top:100%}#chat-widget-root .isolate{isolation:isolate}#chat-widget-root .z-10{z-index:10}#chat-widget-root .z-50{z-index:50}#chat-widget-root .z-\\[60\\]{z-index:60}#chat-widget-root .z-\\[70\\]{z-index:70}#chat-widget-root .z-\\[71\\]{z-index:71}#chat-widget-root .z-\\[999999\\]{z-index:999999}#chat-widget-root .z-\\[9999\\]{z-index:9999}#chat-widget-root .m-0{margin:0}#chat-widget-root .mx-2{margin-left:.5rem;margin-right:.5rem}#chat-widget-root .mx-3{margin-left:.75rem;margin-right:.75rem}#chat-widget-root .my-3{margin-bottom:.75rem;margin-top:.75rem}#chat-widget-root .my-4{margin-bottom:1rem;margin-top:1rem}#chat-widget-root .-mb-px{margin-bottom:-1px}#chat-widget-root .mb-1{margin-bottom:.25rem}#chat-widget-root .mb-1\\.5{margin-bottom:.375rem}#chat-widget-root .mb-2{margin-bottom:.5rem}#chat-widget-root .mb-3{margin-bottom:.75rem}#chat-widget-root .mb-4{margin-bottom:1rem}#chat-widget-root .mb-5{margin-bottom:1.25rem}#chat-widget-root .ml-1{margin-left:.25rem}#chat-widget-root .ms-0\\.5{margin-inline-start:.125rem}#chat-widget-root .mt-0\\.5{margin-top:.125rem}#chat-widget-root .mt-1{margin-top:.25rem}#chat-widget-root .mt-1\\.5{margin-top:.375rem}#chat-widget-root .mt-2{margin-top:.5rem}#chat-widget-root .mt-3{margin-top:.75rem}#chat-widget-root .mt-4{margin-top:1rem}#chat-widget-root .block{display:block}#chat-widget-root .inline-block{display:inline-block}#chat-widget-root .inline{display:inline}#chat-widget-root .flex{display:flex}#chat-widget-root .inline-flex{display:inline-flex}#chat-widget-root .table{display:table}#chat-widget-root .grid{display:grid}#chat-widget-root .hidden{display:none}#chat-widget-root .h-1\\.5{height:.375rem}#chat-widget-root .h-10{height:2.5rem}#chat-widget-root .h-11{height:2.75rem}#chat-widget-root .h-12{height:3rem}#chat-widget-root .h-16{height:4rem}#chat-widget-root .h-2{height:.5rem}#chat-widget-root .h-3{height:.75rem}#chat-widget-root .h-3\\.5{height:.875rem}#chat-widget-root .h-4{height:1rem}#chat-widget-root .h-5{height:1.25rem}#chat-widget-root .h-6{height:1.5rem}#chat-widget-root .h-7{height:1.75rem}#chat-widget-root .h-8{height:2rem}#chat-widget-root .h-\\[650px\\]{height:650px}#chat-widget-root .h-auto{height:auto}#chat-widget-root .h-full{height:100%}#chat-widget-root .h-px{height:1px}#chat-widget-root .max-h-\\[85vh\\]{max-height:85vh}#chat-widget-root .min-h-0{min-height:0}#chat-widget-root .min-h-\\[48px\\]{min-height:48px}#chat-widget-root .w-1\\.5{width:.375rem}#chat-widget-root .w-10{width:2.5rem}#chat-widget-root .w-11{width:2.75rem}#chat-widget-root .w-12{width:3rem}#chat-widget-root .w-16{width:4rem}#chat-widget-root .w-2{width:.5rem}#chat-widget-root .w-3{width:.75rem}#chat-widget-root .w-3\\.5{width:.875rem}#chat-widget-root .w-4{width:1rem}#chat-widget-root .w-44{width:11rem}#chat-widget-root .w-5{width:1.25rem}#chat-widget-root .w-6{width:1.5rem}#chat-widget-root .w-7{width:1.75rem}#chat-widget-root .w-8{width:2rem}#chat-widget-root .w-80{width:20rem}#chat-widget-root .w-96{width:24rem}#chat-widget-root .w-\\[380px\\]{width:380px}#chat-widget-root .w-full{width:100%}#chat-widget-root .min-w-0{min-width:0}#chat-widget-root .min-w-\\[60px\\]{min-width:60px}#chat-widget-root .min-w-full{min-width:100%}#chat-widget-root .max-w-\\[75\\%\\]{max-width:75%}#chat-widget-root .max-w-\\[92vw\\]{max-width:92vw}#chat-widget-root .max-w-full{max-width:100%}#chat-widget-root .max-w-none{max-width:none}#chat-widget-root .max-w-sm{max-width:24rem}#chat-widget-root .max-w-xs{max-width:20rem}#chat-widget-root .flex-1{flex:1 1 0%}#chat-widget-root .flex-shrink-0,#chat-widget-root .shrink-0{flex-shrink:0}#chat-widget-root .grow{flex-grow:1}#chat-widget-root .border-collapse{border-collapse:collapse}#chat-widget-root .-translate-x-1\\/2{--tw-translate-x:-50%}#chat-widget-root .-translate-x-1\\/2,#chat-widget-root .-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#chat-widget-root .-translate-y-1\\/2{--tw-translate-y:-50%}#chat-widget-root .-rotate-90{--tw-rotate:-90deg}#chat-widget-root .-rotate-90,#chat-widget-root .rotate-180{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#chat-widget-root .rotate-180{--tw-rotate:180deg}#chat-widget-root .rotate-90{--tw-rotate:90deg}#chat-widget-root .rotate-90,#chat-widget-root .scale-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#chat-widget-root .scale-0{--tw-scale-x:0;--tw-scale-y:0}#chat-widget-root .scale-100{--tw-scale-x:1;--tw-scale-y:1}#chat-widget-root .scale-100,#chat-widget-root .scale-110{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#chat-widget-root .scale-110{--tw-scale-x:1.1;--tw-scale-y:1.1}#chat-widget-root .scale-125{--tw-scale-x:1.25;--tw-scale-y:1.25}#chat-widget-root .scale-125,#chat-widget-root .scale-95{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#chat-widget-root .scale-95{--tw-scale-x:.95;--tw-scale-y:.95}#chat-widget-root .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}#chat-widget-root .animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}#chat-widget-root .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}#chat-widget-root .animate-spin{animation:spin 1s linear infinite}#chat-widget-root .cursor-ew-resize{cursor:ew-resize}#chat-widget-root .cursor-nesw-resize{cursor:nesw-resize}#chat-widget-root .cursor-not-allowed{cursor:not-allowed}#chat-widget-root .cursor-ns-resize{cursor:ns-resize}#chat-widget-root .cursor-nwse-resize{cursor:nwse-resize}#chat-widget-root .cursor-pointer{cursor:pointer}#chat-widget-root .resize-none{resize:none}#chat-widget-root .resize{resize:both}#chat-widget-root .list-decimal{list-style-type:decimal}#chat-widget-root .list-disc{list-style-type:disc}#chat-widget-root .list-none{list-style-type:none}#chat-widget-root .flex-row{flex-direction:row}#chat-widget-root .flex-row-reverse{flex-direction:row-reverse}#chat-widget-root .flex-col{flex-direction:column}#chat-widget-root .flex-wrap{flex-wrap:wrap}#chat-widget-root .items-start{align-items:flex-start}#chat-widget-root .items-end{align-items:flex-end}#chat-widget-root .items-center{align-items:center}#chat-widget-root .justify-start{justify-content:flex-start}#chat-widget-root .justify-end{justify-content:flex-end}#chat-widget-root .justify-center{justify-content:center}#chat-widget-root .justify-between{justify-content:space-between}#chat-widget-root .gap-0{gap:0}#chat-widget-root .gap-0\\.5{gap:.125rem}#chat-widget-root .gap-1{gap:.25rem}#chat-widget-root .gap-1\\.5{gap:.375rem}#chat-widget-root .gap-2{gap:.5rem}#chat-widget-root .gap-2\\.5{gap:.625rem}#chat-widget-root .gap-3{gap:.75rem}#chat-widget-root .gap-4{gap:1rem}#chat-widget-root .gap-6{gap:1.5rem}#chat-widget-root :is(.space-y-2>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}#chat-widget-root :is(.space-y-4>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}#chat-widget-root .overflow-hidden{overflow:hidden}#chat-widget-root .overflow-visible{overflow:visible}#chat-widget-root .overflow-x-auto{overflow-x:auto}#chat-widget-root .overflow-y-auto{overflow-y:auto}#chat-widget-root .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#chat-widget-root .whitespace-nowrap{white-space:nowrap}#chat-widget-root .whitespace-pre-wrap{white-space:pre-wrap}#chat-widget-root .break-words{overflow-wrap:break-word}#chat-widget-root .break-all{word-break:break-all}#chat-widget-root .rounded{border-radius:.25rem}#chat-widget-root .rounded-2xl{border-radius:1rem}#chat-widget-root .rounded-3xl{border-radius:1.5rem}#chat-widget-root .rounded-full{border-radius:9999px}#chat-widget-root .rounded-lg{border-radius:.5rem}#chat-widget-root .rounded-md{border-radius:.375rem}#chat-widget-root .rounded-xl{border-radius:.75rem}#chat-widget-root .rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}#chat-widget-root .rounded-tl-sm{border-top-left-radius:.125rem}#chat-widget-root .rounded-tr-sm{border-top-right-radius:.125rem}#chat-widget-root .border{border-width:1px}#chat-widget-root .border-0{border-width:0}#chat-widget-root .border-b{border-bottom-width:1px}#chat-widget-root .border-l-4{border-left-width:4px}#chat-widget-root .border-t{border-top-width:1px}#chat-widget-root .border-t-2{border-top-width:2px}#chat-widget-root .border-dotted{border-style:dotted}#chat-widget-root .border-none{border-style:none}#chat-widget-root .\\!border-status-error{border-color:hsl(var(--cw-status-error))!important}#chat-widget-root .border-amber-200{--tw-border-opacity:1;border-color:rgb(253 230 138/var(--tw-border-opacity,1))}#chat-widget-root .border-amber-700\\/50{border-color:rgba(180,83,9,.5)}#chat-widget-root .border-blue-200{--tw-border-opacity:1;border-color:rgb(191 219 254/var(--tw-border-opacity,1))}#chat-widget-root .border-blue-700\\/50{border-color:rgba(29,78,216,.5)}#chat-widget-root .border-gray-100{--tw-border-opacity:1;border-color:rgb(243 244 246/var(--tw-border-opacity,1))}#chat-widget-root .border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity,1))}#chat-widget-root .border-gray-200\\/60{border-color:rgba(229,231,235,.6)}#chat-widget-root .border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}#chat-widget-root .border-gray-600{--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity,1))}#chat-widget-root .border-gray-700{--tw-border-opacity:1;border-color:rgb(55 65 81/var(--tw-border-opacity,1))}#chat-widget-root .border-gray-700\\/50{border-color:rgba(55,65,81,.5)}#chat-widget-root .border-transparent{border-color:transparent}#chat-widget-root .bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 251 235/var(--tw-bg-opacity,1))}#chat-widget-root .bg-amber-900\\/40{background-color:rgba(120,53,15,.4)}#chat-widget-root .bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}#chat-widget-root .bg-blue-500{--tw-bg-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity,1))}#chat-widget-root .bg-blue-900\\/30{background-color:rgba(30,58,138,.3)}#chat-widget-root .bg-current{background-color:currentColor}#chat-widget-root .bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}#chat-widget-root .bg-gray-400{--tw-bg-opacity:1;background-color:rgb(156 163 175/var(--tw-bg-opacity,1))}#chat-widget-root .bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}#chat-widget-root .bg-gray-50\\/30{background-color:rgba(249,250,251,.3)}#chat-widget-root .bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity,1))}#chat-widget-root .bg-gray-700{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}#chat-widget-root .bg-gray-700\\/50{background-color:rgba(55,65,81,.5)}#chat-widget-root .bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}#chat-widget-root .bg-gray-800\\/50{background-color:rgba(31,41,55,.5)}#chat-widget-root .bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity,1))}#chat-widget-root .bg-green-200{--tw-bg-opacity:1;background-color:rgb(187 247 208/var(--tw-bg-opacity,1))}#chat-widget-root .bg-orange-200{--tw-bg-opacity:1;background-color:rgb(254 215 170/var(--tw-bg-opacity,1))}#chat-widget-root .bg-pink-200{--tw-bg-opacity:1;background-color:rgb(251 207 232/var(--tw-bg-opacity,1))}#chat-widget-root .bg-red-200{--tw-bg-opacity:1;background-color:rgb(254 202 202/var(--tw-bg-opacity,1))}#chat-widget-root .bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity,1))}#chat-widget-root .bg-slate-50\\/50{background-color:rgba(248,250,252,.5)}#chat-widget-root .bg-slate-800\\/50{background-color:rgba(30,41,59,.5)}#chat-widget-root .bg-transparent{background-color:transparent}#chat-widget-root .bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}#chat-widget-root .bg-white\\/10{background-color:hsla(0,0%,100%,.1)}#chat-widget-root .bg-white\\/20{background-color:hsla(0,0%,100%,.2)}#chat-widget-root .bg-yellow-200{--tw-bg-opacity:1;background-color:rgb(254 240 138/var(--tw-bg-opacity,1))}#chat-widget-root .bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}#chat-widget-root .bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}#chat-widget-root .from-gray-50\\/50{--tw-gradient-from:rgba(249,250,251,.5) var(--tw-gradient-from-position);--tw-gradient-to:rgba(249,250,251,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}#chat-widget-root .from-white\\/0{--tw-gradient-from:hsla(0,0%,100%,0) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}#chat-widget-root .from-white\\/10{--tw-gradient-from:hsla(0,0%,100%,.1) var(--tw-gradient-from-position);--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}#chat-widget-root .from-yellow-200{--tw-gradient-from:#fef08a var(--tw-gradient-from-position);--tw-gradient-to:hsla(53,98%,77%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}#chat-widget-root .via-white\\/5{--tw-gradient-to:hsla(0,0%,100%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),hsla(0,0%,100%,.05) var(--tw-gradient-via-position),var(--tw-gradient-to)}#chat-widget-root .to-white{--tw-gradient-to:#fff var(--tw-gradient-to-position)}#chat-widget-root .to-white\\/10{--tw-gradient-to:hsla(0,0%,100%,.1) var(--tw-gradient-to-position)}#chat-widget-root .to-yellow-400{--tw-gradient-to:#facc15 var(--tw-gradient-to-position)}#chat-widget-root .object-contain{-o-object-fit:contain;object-fit:contain}#chat-widget-root .p-0{padding:0}#chat-widget-root .p-0\\.5{padding:.125rem}#chat-widget-root .p-3{padding:.75rem}#chat-widget-root .p-5{padding:1.25rem}#chat-widget-root .p-6{padding:1.5rem}#chat-widget-root .p-8{padding:2rem}#chat-widget-root .px-1{padding-left:.25rem;padding-right:.25rem}#chat-widget-root .px-2{padding-left:.5rem;padding-right:.5rem}#chat-widget-root .px-2\\.5{padding-left:.625rem;padding-right:.625rem}#chat-widget-root .px-3{padding-left:.75rem;padding-right:.75rem}#chat-widget-root .px-4{padding-left:1rem;padding-right:1rem}#chat-widget-root .px-5{padding-left:1.25rem;padding-right:1.25rem}#chat-widget-root .py-1{padding-bottom:.25rem;padding-top:.25rem}#chat-widget-root .py-1\\.5{padding-bottom:.375rem;padding-top:.375rem}#chat-widget-root .py-12{padding-bottom:3rem;padding-top:3rem}#chat-widget-root .py-2{padding-bottom:.5rem;padding-top:.5rem}#chat-widget-root .py-2\\.5{padding-bottom:.625rem;padding-top:.625rem}#chat-widget-root .py-3{padding-bottom:.75rem;padding-top:.75rem}#chat-widget-root .py-3\\.5{padding-bottom:.875rem;padding-top:.875rem}#chat-widget-root .py-4{padding-bottom:1rem;padding-top:1rem}#chat-widget-root .pb-1{padding-bottom:.25rem}#chat-widget-root .pb-2{padding-bottom:.5rem}#chat-widget-root .pl-1{padding-left:.25rem}#chat-widget-root .pl-2{padding-left:.5rem}#chat-widget-root .pl-4{padding-left:1rem}#chat-widget-root .pl-\\[50px\\]{padding-left:50px}#chat-widget-root .pr-1{padding-right:.25rem}#chat-widget-root .pt-1{padding-top:.25rem}#chat-widget-root .text-left{text-align:left}#chat-widget-root .text-center{text-align:center}#chat-widget-root .text-right{text-align:right}#chat-widget-root .text-start{text-align:start}#chat-widget-root .align-text-bottom{vertical-align:text-bottom}#chat-widget-root .font-sans{font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}#chat-widget-root .text-2xl{font-size:1.5rem;line-height:2rem}#chat-widget-root .text-\\[10px\\]{font-size:10px}#chat-widget-root .text-base{font-size:1rem;line-height:1.5rem}#chat-widget-root .text-chip{font-size:11px;letter-spacing:0;line-height:1.4}#chat-widget-root .text-h4{font-size:18px;letter-spacing:0;line-height:1.3}#chat-widget-root .text-lg{font-size:1.125rem;line-height:1.75rem}#chat-widget-root .text-sm{font-size:.875rem;line-height:1.25rem}#chat-widget-root .text-xl{font-size:1.25rem;line-height:1.75rem}#chat-widget-root .text-xs{font-size:.75rem;line-height:1rem}#chat-widget-root .font-bold{font-weight:700}#chat-widget-root .font-medium{font-weight:500}#chat-widget-root .font-semibold{font-weight:600}#chat-widget-root .uppercase{text-transform:uppercase}#chat-widget-root .lowercase{text-transform:lowercase}#chat-widget-root .italic{font-style:italic}#chat-widget-root .tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}#chat-widget-root .leading-5{line-height:1.25rem}#chat-widget-root .leading-none{line-height:1}#chat-widget-root .leading-normal{line-height:1.5}#chat-widget-root .leading-relaxed{line-height:1.625}#chat-widget-root .leading-snug{line-height:1.375}#chat-widget-root .tracking-wide{letter-spacing:.025em}#chat-widget-root .text-\\[\\#4A5568\\]{--tw-text-opacity:1;color:rgb(74 85 104/var(--tw-text-opacity,1))}#chat-widget-root .text-amber-200{--tw-text-opacity:1;color:rgb(253 230 138/var(--tw-text-opacity,1))}#chat-widget-root .text-amber-800{--tw-text-opacity:1;color:rgb(146 64 14/var(--tw-text-opacity,1))}#chat-widget-root .text-current{color:currentColor}#chat-widget-root .text-gray-100{--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity,1))}#chat-widget-root .text-gray-200{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity,1))}#chat-widget-root .text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}#chat-widget-root .text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}#chat-widget-root .text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}#chat-widget-root .text-gray-500\\/80{color:hsla(220,9%,46%,.8)}#chat-widget-root .text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}#chat-widget-root .text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}#chat-widget-root .text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity,1))}#chat-widget-root .text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}#chat-widget-root .text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}#chat-widget-root .text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}#chat-widget-root .text-slate-400{--tw-text-opacity:1;color:rgb(148 163 184/var(--tw-text-opacity,1))}#chat-widget-root .text-slate-500{--tw-text-opacity:1;color:rgb(100 116 139/var(--tw-text-opacity,1))}#chat-widget-root .text-status-error{color:hsl(var(--cw-status-error))}#chat-widget-root .text-status-success{color:hsl(var(--cw-status-success))}#chat-widget-root .text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}#chat-widget-root .text-yellow-400{--tw-text-opacity:1;color:rgb(250 204 21/var(--tw-text-opacity,1))}#chat-widget-root .underline{text-decoration-line:underline}#chat-widget-root .no-underline{text-decoration-line:none}#chat-widget-root .placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity,1))}#chat-widget-root .placeholder-gray-400::placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity,1))}#chat-widget-root .placeholder-gray-500::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(107 114 128/var(--tw-placeholder-opacity,1))}#chat-widget-root .placeholder-gray-500::placeholder{--tw-placeholder-opacity:1;color:rgb(107 114 128/var(--tw-placeholder-opacity,1))}#chat-widget-root .opacity-0{opacity:0}#chat-widget-root .opacity-50{opacity:.5}#chat-widget-root .opacity-60{opacity:.6}#chat-widget-root .opacity-70{opacity:.7}#chat-widget-root .opacity-75{opacity:.75}#chat-widget-root .opacity-80{opacity:.8}#chat-widget-root .shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}#chat-widget-root .shadow,#chat-widget-root .shadow-2xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}#chat-widget-root .shadow-2xl{--tw-shadow:0 25px 50px -12px rgba(0,0,0,.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color)}#chat-widget-root .shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}#chat-widget-root .shadow-lg,#chat-widget-root .shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}#chat-widget-root .shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}#chat-widget-root .shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}#chat-widget-root .shadow-sm,#chat-widget-root .shadow-xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}#chat-widget-root .shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}#chat-widget-root .shadow-black\\/20{--tw-shadow-color:rgba(0,0,0,.2);--tw-shadow:var(--tw-shadow-colored)}#chat-widget-root .shadow-gray-200\\/80{--tw-shadow-color:rgba(229,231,235,.8);--tw-shadow:var(--tw-shadow-colored)}#chat-widget-root .outline-none{outline:2px solid transparent;outline-offset:2px}#chat-widget-root .outline{outline-style:solid}#chat-widget-root .ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}#chat-widget-root .ring,#chat-widget-root .ring-2{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}#chat-widget-root .ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}#chat-widget-root .ring-blue-100{--tw-ring-opacity:1;--tw-ring-color:rgb(219 234 254/var(--tw-ring-opacity,1))}#chat-widget-root .ring-blue-300{--tw-ring-opacity:1;--tw-ring-color:rgb(147 197 253/var(--tw-ring-opacity,1))}#chat-widget-root .ring-white{--tw-ring-opacity:1;--tw-ring-color:rgb(255 255 255/var(--tw-ring-opacity,1))}#chat-widget-root .blur{--tw-blur:blur(8px)}#chat-widget-root .blur,#chat-widget-root .drop-shadow{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#chat-widget-root .drop-shadow{--tw-drop-shadow:drop-shadow(0 1px 2px rgba(0,0,0,.1)) drop-shadow(0 1px 1px rgba(0,0,0,.06))}#chat-widget-root .drop-shadow-md{--tw-drop-shadow:drop-shadow(0 4px 3px rgba(0,0,0,.07)) drop-shadow(0 2px 2px rgba(0,0,0,.06))}#chat-widget-root .drop-shadow-md,#chat-widget-root .drop-shadow-sm{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#chat-widget-root .drop-shadow-sm{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,0,0,.05))}#chat-widget-root .grayscale-\\[0\\.3\\]{--tw-grayscale:grayscale(0.3)}#chat-widget-root .filter,#chat-widget-root .grayscale-\\[0\\.3\\]{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#chat-widget-root .backdrop-blur-sm{--tw-backdrop-blur:blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}#chat-widget-root .transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}#chat-widget-root .transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}#chat-widget-root .transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}#chat-widget-root .transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}#chat-widget-root .transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}#chat-widget-root .duration-150{transition-duration:.15s}#chat-widget-root .duration-200{transition-duration:.2s}#chat-widget-root .duration-300{transition-duration:.3s}#chat-widget-root .duration-500{transition-duration:.5s}#chat-widget-root :is(#chat-widget-root .animate-in){animation:slideIn .3s ease-out}#chat-widget-root :is(#chat-widget-root .transition-all){transition-duration:.3s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}#chat-widget-root .\\[font-family\\:inherit\\]{font-family:inherit}#chat-widget-root .placeholder\\:text-\\[\\#A2A9B2\\]::-moz-placeholder{--tw-text-opacity:1;color:rgb(162 169 178/var(--tw-text-opacity,1))}#chat-widget-root .placeholder\\:text-\\[\\#A2A9B2\\]::placeholder{--tw-text-opacity:1;color:rgb(162 169 178/var(--tw-text-opacity,1))}#chat-widget-root .placeholder\\:text-gray-500::-moz-placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}#chat-widget-root .placeholder\\:text-gray-500::placeholder{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}#chat-widget-root .hover\\:scale-105:hover{--tw-scale-x:1.05;--tw-scale-y:1.05}#chat-widget-root .hover\\:scale-105:hover,#chat-widget-root .hover\\:scale-110:hover{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#chat-widget-root .hover\\:scale-110:hover{--tw-scale-x:1.1;--tw-scale-y:1.1}#chat-widget-root .hover\\:scale-\\[1\\.02\\]:hover{--tw-scale-x:1.02;--tw-scale-y:1.02;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#chat-widget-root .hover\\:border-blue-400:hover{--tw-border-opacity:1;border-color:rgb(96 165 250/var(--tw-border-opacity,1))}#chat-widget-root .hover\\:border-blue-600:hover{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}#chat-widget-root .hover\\:bg-blue-50:hover{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}#chat-widget-root .hover\\:bg-blue-500\\/20:hover{background-color:rgba(59,130,246,.2)}#chat-widget-root .hover\\:bg-blue-900\\/50:hover{background-color:rgba(30,58,138,.5)}#chat-widget-root .hover\\:bg-gray-200:hover{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity,1))}#chat-widget-root .hover\\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}#chat-widget-root .hover\\:bg-gray-600:hover{--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity,1))}#chat-widget-root .hover\\:bg-gray-700:hover{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}#chat-widget-root .hover\\:bg-red-600:hover{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}#chat-widget-root .hover\\:bg-transparent:hover{background-color:transparent}#chat-widget-root .hover\\:text-blue-500:hover{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity,1))}#chat-widget-root .hover\\:text-gray-200:hover{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity,1))}#chat-widget-root .hover\\:text-gray-300:hover{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}#chat-widget-root .hover\\:text-gray-600:hover{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}#chat-widget-root .hover\\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}#chat-widget-root .hover\\:underline:hover{text-decoration-line:underline}#chat-widget-root .hover\\:opacity-80:hover{opacity:.8}#chat-widget-root .hover\\:opacity-90:hover{opacity:.9}#chat-widget-root .hover\\:shadow-md:hover{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}#chat-widget-root .hover\\:shadow-md:hover,#chat-widget-root .hover\\:shadow-xl:hover{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}#chat-widget-root .hover\\:shadow-xl:hover{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}#chat-widget-root .hover\\:grayscale-0:hover{--tw-grayscale:grayscale(0);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}#chat-widget-root .focus\\:\\!border-status-error:focus{border-color:hsl(var(--cw-status-error))!important}#chat-widget-root .focus\\:border-\\[\\#5A6069\\]:focus{--tw-border-opacity:1;border-color:rgb(90 96 105/var(--tw-border-opacity,1))}#chat-widget-root .focus\\:border-\\[\\#B0B0B0\\]:focus{--tw-border-opacity:1;border-color:rgb(176 176 176/var(--tw-border-opacity,1))}#chat-widget-root .focus\\:bg-white:focus{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}#chat-widget-root .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}#chat-widget-root .focus\\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}#chat-widget-root .focus\\:ring-0:focus,#chat-widget-root .focus\\:ring-1:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}#chat-widget-root .focus\\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}#chat-widget-root .focus\\:ring-gray-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity,1))}#chat-widget-root .focus\\:ring-gray-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(75 85 99/var(--tw-ring-opacity,1))}#chat-widget-root .focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}#chat-widget-root .focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}#chat-widget-root .focus-visible\\:ring-blue-700:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(29 78 216/var(--tw-ring-opacity,1))}#chat-widget-root .focus-visible\\:ring-white\\/40:focus-visible{--tw-ring-color:hsla(0,0%,100%,.4)}#chat-widget-root .active\\:scale-95:active{--tw-scale-x:.95;--tw-scale-y:.95}#chat-widget-root .active\\:scale-95:active,#chat-widget-root .active\\:scale-\\[0\\.97\\]:active{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#chat-widget-root .active\\:scale-\\[0\\.97\\]:active{--tw-scale-x:0.97;--tw-scale-y:0.97}#chat-widget-root .active\\:scale-\\[0\\.98\\]:active{--tw-scale-x:0.98;--tw-scale-y:0.98}#chat-widget-root .active\\:scale-\\[0\\.98\\]:active,#chat-widget-root .active\\:scale-\\[0\\.99\\]:active{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#chat-widget-root .active\\:scale-\\[0\\.99\\]:active{--tw-scale-x:0.99;--tw-scale-y:0.99}#chat-widget-root .active\\:outline-none:active{outline:2px solid transparent;outline-offset:2px}#chat-widget-root .active\\:ring-0:active{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}#chat-widget-root .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}#chat-widget-root .disabled\\:opacity-40:disabled{opacity:.4}#chat-widget-root .disabled\\:opacity-50:disabled{opacity:.5}#chat-widget-root .disabled\\:shadow-none:disabled{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}#chat-widget-root :is(.group:hover .group-hover\\:scale-100){--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}#chat-widget-root :is(.group:hover .group-hover\\:opacity-100){opacity:1}#chat-widget-root .dark\\:text-gray-300:is(.dark *){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}#chat-widget-root .dark\\:text-gray-400:is(.dark *){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}@media (min-width:768px){#chat-widget-root .md\\:text-sm{font-size:.875rem;line-height:1.25rem}}#chat-widget-root .rtl\\:rounded-tl-2xl:where([dir=rtl],[dir=rtl] *){border-top-left-radius:1rem}#chat-widget-root .rtl\\:rounded-tr-sm:where([dir=rtl],[dir=rtl] *){border-top-right-radius:.125rem}#chat-widget-root .\\[\\&\\:first-child\\]\\:\\!mt-0:first-child{margin-top:0!important}#chat-widget-root :is(.\\[\\&\\>\\*\\:first-child\\]\\:\\!mt-0>:first-child){margin-top:0!important}#chat-widget-root :is(.\\[\\&\\>\\*\\:last-child\\]\\:\\!mb-0>:last-child){margin-bottom:0!important}\n.chat-widget-root{position:fixed;z-index:999999}.chat-widget-container{color:var(--cw-text-color,inherit);font-family:var(\n --cw-font-family,-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif\n )}#chat-widget-root .chat-messages p{overflow-wrap:anywhere;word-break:break-word}textarea#chat-widget-input::-moz-placeholder{border:none;line-height:48px;outline:none}textarea#chat-widget-input::placeholder{border:none;line-height:48px;outline:none}textarea#chat-widget-input{border:none;line-height:48px;outline:none}@keyframes slideIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-5px)}}#chat-widget-root .scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}#chat-widget-root .scrollbar-hide::-webkit-scrollbar{display:none}#chat-widget-root .slim-scrollbar-x{scrollbar-width:thin}#chat-widget-root .slim-scrollbar-x::-webkit-scrollbar{height:3px!important}#chat-widget-root .slim-scrollbar-x::-webkit-scrollbar-track{background:transparent!important}#chat-widget-root .slim-scrollbar-x::-webkit-scrollbar-thumb{background:#d1d5db!important;border-radius:2px!important}#chat-widget-root .slim-scrollbar-x::-webkit-scrollbar-thumb:hover{background:#9ca3af!important}@media print{.chat-widget-root{display:none!important}}',e.appendChild(o),t=document.createElement("div"),t.id="chat-widget-mount",e.appendChild(t)}e||(e=$u(t)),void 0===s.darkMode&&(n.darkMode=window.matchMedia("(prefers-color-scheme: dark)").matches);const l=n.apiBaseUrl?{apiBaseUrl:n.apiBaseUrl,...void 0!==s.wsBaseUrl&&{wsBaseUrl:n.wsBaseUrl},...void 0!==s.position&&{position:n.position},...void 0!==s.quickQuestionsLayout&&{quickQuestionsLayout:n.quickQuestionsLayout},...void 0!==s.darkMode&&{darkMode:n.darkMode},...void 0!==s.primaryColor&&{primaryColor:n.primaryColor},...void 0!==s.companyName&&{companyName:n.companyName},...void 0!==s.conciergeName&&{conciergeName:n.conciergeName},...void 0!==s.companyLogo&&{companyLogo:n.companyLogo},...void 0!==s.welcomeMessage&&{welcomeMessage:n.welcomeMessage},...void 0!==s.quickQuestions&&{quickQuestions:n.quickQuestions},...void 0!==s.channelLinks&&{channelLinks:n.channelLinks},...void 0!==s.textColor&&{textColor:n.textColor},...void 0!==s.agentMessageBubbleColor&&{agentMessageBubbleColor:n.agentMessageBubbleColor},...void 0!==s.userMessageBoxColor&&{userMessageBoxColor:n.userMessageBoxColor},...void 0!==s.assistantTextColor&&{assistantTextColor:n.assistantTextColor},...void 0!==s.userTextColor&&{userTextColor:n.userTextColor},...void 0!==s.fontFamily&&{fontFamily:n.fontFamily},...void 0!==s.fontSize&&{fontSize:n.fontSize},...void 0!==s.defaultLanguage&&{defaultLanguage:n.defaultLanguage},...void 0!==s.locale&&{locale:n.locale},...void 0!==s.headerTextBold&&{headerTextBold:n.headerTextBold},...void 0!==s.headerTextItalic&&{headerTextItalic:n.headerTextItalic},...void 0!==s.enableVoiceInteraction&&{enableVoiceInteraction:n.enableVoiceInteraction},...void 0!==s.disclaimerEnabled&&{disclaimerEnabled:n.disclaimerEnabled},...void 0!==s.disclaimerText&&{disclaimerText:n.disclaimerText},...void 0!==s.disclaimerPosition&&{disclaimerPosition:n.disclaimerPosition},...void 0!==s.onboardingQuestions&&{onboardingQuestions:n.onboardingQuestions},...void 0!==s.onboardingEnabled&&{onboardingEnabled:n.onboardingEnabled},...void 0!==s.showPoweredBy&&{showPoweredBy:n.showPoweredBy},...void 0!==s.collectionPrompt&&{collectionPrompt:n.collectionPrompt},...void 0!==s.allowedDomains&&s.allowedDomains.length>0&&{allowedDomains:n.allowedDomains},...void 0!==s.autoOpen&&{autoOpen:n.autoOpen},...void 0!==s.openDelay&&{openDelay:n.openDelay},...void 0!==s.apiKey&&{apiKey:n.apiKey},...void 0!==s.className&&{className:n.className}}:{...n,apiBaseUrl:n.apiBaseUrl,wsBaseUrl:n.wsBaseUrl,organizationId:n.organizationId};try{e.render(I.createElement(Pf,null,I.createElement(Tf,l)))}catch(e){t&&(t.innerHTML='<div role="alert" style="position:fixed;bottom:20px;right:20px;max-width:280px;padding:10px 14px;border-radius:10px;background:#1f2937;color:#f3f4f6;font-family:-apple-system,BlinkMacSystemFont,\'Segoe UI\',Roboto,Arial,sans-serif;font-size:13px;line-height:1.4;box-shadow:0 4px 12px rgba(0,0,0,0.15);z-index:2147483647;">Chat is temporarily unavailable. Please refresh the page to try again.</div>')}return n.onOpen&&n.autoOpen&&setTimeout(()=>n.onOpen(),n.openDelay),i},updateConfig:function(e){return n={...n,...e},this.init(n),i},open:function(){return this.updateConfig({autoOpen:!0,openDelay:0}),n.onOpen&&n.onOpen(),i},close:function(){return this.updateConfig({autoOpen:!1}),n.onClose&&n.onClose(),i},toggleTheme:function(){return n.darkMode=!n.darkMode,this.updateConfig({darkMode:n.darkMode}),i},destroy:function(){return e&&(e.unmount(),e=null),r&&r.parentNode&&(r.parentNode.removeChild(r),r=null),t=null,o=null,n={},i},getConfig:function(){return{...n}}};"undefined"!=typeof window&&(window.ChatWidget=i,window.ChatWidget.version=Mf,window.ChatWidgetConfig&&document.addEventListener("DOMContentLoaded",()=>{i.init(window.ChatWidgetConfig)}),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",e=>{(void 0===n.darkMode||n.autoTheme)&&i.updateConfig({darkMode:e.matches})})),"undefined"!=typeof module&&module.exports&&(module.exports=i)}();var zf={exports:{}};function jf(e){try{const t=window[e];return t.setItem("__ft__","1"),t.removeItem("__ft__"),"1"}catch{return"0"}}function Ef(){try{return Array.from(navigator.plugins||[]).map(e=>`${e.name}::${e.filename}`).sort().join("|")}catch{return""}}function Ff(){try{return Array.from(navigator.mimeTypes||[]).map(e=>e.type).sort().join("|")}catch{return""}}function Lf(){try{const e=document.createElement("canvas");e.width=240,e.height=60;const t=e.getContext("2d");return t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(125,1,62,20),t.fillStyle="#069",t.font="11pt no-real-font-abc",t.fillText("user-trace:canvas,🔍<canvas>",2,15),t.fillStyle="rgba(102,204,0,0.7)",t.font="18pt Arial",t.fillText("user-trace:canvas,🔍<canvas>",4,45),e.toDataURL().slice(-50)}catch{return"nocanvas"}}function Nf(){try{const e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");if(!t)return"nowebgl";const r=t.getExtension("WEBGL_debug_renderer_info"),n=r?t.getParameter(r.UNMASKED_VENDOR_WEBGL):t.getParameter(t.VENDOR);return`${n}::${r?t.getParameter(r.UNMASKED_RENDERER_WEBGL):t.getParameter(t.RENDERER)}`}catch{return"nowebgl"}}function Rf(){const e=["Arial","Courier New","Georgia","Times New Roman","Verdana","Helvetica","Comic Sans MS","Impact","Tahoma","Trebuchet MS","Palatino Linotype","Lucida Console","Lucida Sans Unicode","MS Sans Serif","MS Serif","Symbol","Wingdings","Franklin Gothic Medium","Book Antiqua","Garamond","Calibri","Cambria","Consolas","Candara","Optima","Segoe UI","Gill Sans","Century Gothic","Futura"];try{const t=document.createElement("canvas").getContext("2d"),r="monospace",n="mmmmmmmmmmlli",o="72px";t.font=`${o} ${r}`;const a=t.measureText(n).width;return e.filter(e=>(t.font=`${o} '${e}', ${r}`,t.measureText(n).width!==a)).join(",")}catch{return""}}function Af(){try{return window.OfflineAudioContext||window.webkitOfflineAudioContext?"audio-supported":"noaudio"}catch{return"noaudio"}}var _f={generateFingerprint:function(){const e=function(){const e=navigator||{},t=screen||{};return{userAgent:e.userAgent||"",language:e.language||"",languages:(e.languages||[]).join(","),platform:e.platform||"",hardwareConcurrency:e.hardwareConcurrency||0,deviceMemory:e.deviceMemory||0,maxTouchPoints:e.maxTouchPoints||0,cookieEnabled:e.cookieEnabled?"1":"0",doNotTrack:e.doNotTrack||"unknown",screenWidth:t.width||0,screenHeight:t.height||0,colorDepth:t.colorDepth||0,pixelDepth:t.pixelDepth||0,devicePixelRatio:"undefined"!=typeof devicePixelRatio?devicePixelRatio:1,timezoneOffset:(new Date).getTimezoneOffset(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone||"",sessionStorage:jf("sessionStorage"),localStorage:jf("localStorage"),indexedDB:"undefined"!=typeof indexedDB?"1":"0",cpuClass:e.cpuClass||"unknown",oscpu:e.oscpu||"unknown",vendor:e.vendor||"",vendorSub:e.vendorSub||"",productSub:e.productSub||"",plugins:Ef(),mimeTypes:Ff(),canvas:Lf(),webgl:Nf(),fonts:Rf(),audioContext:Af()}}(),t=function(e){let t=5381;for(let r=0;r<e.length;r++)t=(t<<5)+t^e.charCodeAt(r),t&=t;return(t>>>0).toString(16).padStart(8,"0")}(Object.values(e).join("|||")),r=["nocanvas"!==e.canvas,"nowebgl"!==e.webgl&&""!==e.webgl,""!==e.fonts,""!==e.plugins,e.hardwareConcurrency>0,""!==e.timezone];return{id:t,signals:e,confidence:Math.round(r.filter(Boolean).length/r.length*100)}}};const If=[{url:"https://api.ipify.org?format=json",parse:e=>e.ip},{url:"https://api64.ipify.org?format=json",parse:e=>e.ip},{url:"https://api.my-ip.io/v2/ip.json",parse:e=>e.ip},{url:"https://ipapi.co/json/",parse:e=>e.ip}];async function Bf(e,t=4e3){const r=new AbortController,n=setTimeout(()=>r.abort(),t);try{const t=await fetch(e,{signal:r.signal});if(!t.ok)throw new Error(`HTTP ${t.status}`);return await t.json()}finally{clearTimeout(n)}}function Df(e){return/^(\d{1,3}\.){3}\d{1,3}$/.test(e)||/^[0-9a-f:]{2,39}$/i.test(e)}var Of={detectIP:async function(){for(const e of If)try{const t=await Bf(e.url),r=e.parse(t);if(r&&Df(r))return{ip:r,source:new URL(e.url).hostname}}catch{}return null},getIPVersion:function(e){return e?/^(\d{1,3}\.){3}\d{1,3}$/.test(e)?"v4":/^[0-9a-f:]{2,39}$/i.test(e)?"v6":"unknown":"unknown"}};let Uf={apiKeys:{},preferredProvider:null,timeoutMs:5e3};function Vf(e={}){const t=[e.ipinfo&&{name:"ipinfo.io",tier:"free-with-key",freeLimit:"50,000 req/month",signup:"https://ipinfo.io/signup",buildUrl:t=>`https://ipinfo.io/${t}/json?token=${e.ipinfo}`,parse:e=>{if(e.error)throw new Error(e.error.message||"Failed");const[t,r]=(e.loc||"0,0").split(",").map(Number);return{ip:e.ip||"",country:e.country||"",countryCode:e.country||"",region:e.region||"",regionCode:"",city:e.city||"",zip:e.postal||"",latitude:t,longitude:r,timezone:e.timezone||"",isp:e.org||"",org:e.org||"",proxy:!1,hosting:!1}}},e.ipgeolocation&&{name:"ipgeolocation.io",tier:"free-with-key",freeLimit:"1,000 req/day",signup:"https://ipgeolocation.io/signup.html",buildUrl:t=>`https://api.ipgeolocation.io/ipgeo?apiKey=${e.ipgeolocation}&ip=${t}`,parse:e=>{if(e.message)throw new Error(e.message);return{ip:e.ip||"",country:e.country_name||"",countryCode:e.country_code2||"",region:e.state_prov||"",regionCode:e.state_code||"",city:e.city||"",zip:e.zipcode||"",latitude:parseFloat(e.latitude)||0,longitude:parseFloat(e.longitude)||0,timezone:e.time_zone?.name||"",isp:e.isp||"",org:e.organization||"",proxy:e.security?.is_proxy||!1,hosting:e.security?.is_hosting||!1}}},e.abstractapi&&{name:"abstractapi.com",tier:"free-with-key",freeLimit:"20,000 req/month",signup:"https://app.abstractapi.com/users/signup?target=/api/ip-geolocation",buildUrl:t=>`https://ipgeolocation.abstractapi.com/v1/?api_key=${e.abstractapi}&ip_address=${t}`,parse:e=>{if(e.error)throw new Error(e.error.message||"Failed");return{ip:e.ip_address||"",country:e.country||"",countryCode:e.country_code||"",region:e.region||"",regionCode:e.region_iso_code||"",city:e.city||"",zip:e.postal_code||"",latitude:e.latitude||0,longitude:e.longitude||0,timezone:e.timezone?.name||"",isp:e.connection?.isp_name||"",org:e.connection?.org_name||"",proxy:e.security?.is_vpn||!1,hosting:e.security?.is_hosting||!1}}},e.ip2location&&{name:"ip2location.io",tier:"free-with-key",freeLimit:"30,000 req/month",signup:"https://www.ip2location.io/sign-up",buildUrl:t=>`https://api.ip2location.io/?key=${e.ip2location}&ip=${t}&format=json`,parse:e=>{if(e.error)throw new Error(e.error.error_message||"Failed");return{ip:e.ip||"",country:e.country_name||"",countryCode:e.country_code||"",region:e.region_name||"",regionCode:"",city:e.city_name||"",zip:e.zip_code||"",latitude:e.latitude||0,longitude:e.longitude||0,timezone:e.time_zone||"",isp:e.isp||"",org:e.domain||"",proxy:e.is_proxy||!1,hosting:!1}}},e.ipstack&&{name:"ipstack.com",tier:"free-with-key",freeLimit:"100 req/month",signup:"https://ipstack.com/product",buildUrl:t=>`https://api.ipstack.com/${t}?access_key=${e.ipstack}`,parse:e=>{if(e.error)throw new Error(e.error.info||"Failed");return{ip:e.ip||"",country:e.country_name||"",countryCode:e.country_code||"",region:e.region_name||"",regionCode:e.region_code||"",city:e.city||"",zip:e.zip||"",latitude:e.latitude||0,longitude:e.longitude||0,timezone:e.time_zone?.id||"",isp:e.connection?.isp||"",org:"",proxy:!1,hosting:!1}}}].filter(Boolean),r=[{name:"ip-api.com",tier:"free",freeLimit:"45 req/min (no key needed)",buildUrl:e=>`https://ip-api.com/json/${e}?fields=status,message,country,countryCode,region,regionName,city,zip,lat,lon,timezone,isp,org,proxy,hosting,query`,parse:e=>{if("success"!==e.status)throw new Error(e.message||"Failed");return{ip:e.query||"",country:e.country||"",countryCode:e.countryCode||"",region:e.regionName||"",regionCode:e.region||"",city:e.city||"",zip:e.zip||"",latitude:e.lat||0,longitude:e.lon||0,timezone:e.timezone||"",isp:e.isp||"",org:e.org||"",proxy:e.proxy||!1,hosting:e.hosting||!1}}},{name:"ipwho.is",tier:"free",freeLimit:"unlimited (fair use, no key needed)",buildUrl:e=>`https://ipwho.is/${e}`,parse:e=>{if(!e.success)throw new Error(e.message||"Failed");return{ip:e.ip||"",country:e.country||"",countryCode:e.country_code||"",region:e.region||"",regionCode:e.region_code||"",city:e.city||"",zip:e.postal||"",latitude:e.latitude||0,longitude:e.longitude||0,timezone:e.timezone?.id||"",isp:e.connection?.isp||"",org:e.connection?.org||"",proxy:!1,hosting:!1}}},{name:"ipapi.co",tier:"free",freeLimit:"1,000 req/day (no key needed)",buildUrl:e=>`https://ipapi.co/${e}/json/`,parse:e=>{if(e.error)throw new Error(e.reason||"Failed");return{ip:e.ip||"",country:e.country_name||"",countryCode:e.country_code||"",region:e.region||"",regionCode:e.region_code||"",city:e.city||"",zip:e.postal||"",latitude:e.latitude||0,longitude:e.longitude||0,timezone:e.timezone||"",isp:e.org||"",org:e.org||"",proxy:!1,hosting:!1}}},{name:"freeipapi.com",tier:"free",freeLimit:"unlimited (fair use, no key needed)",buildUrl:e=>`https://freeipapi.com/api/json/${e}`,parse:e=>({ip:e.ipAddress||"",country:e.countryName||"",countryCode:e.countryCode||"",region:e.regionName||"",regionCode:e.regionCode||"",city:e.cityName||"",zip:e.zipCode||"",latitude:e.latitude||0,longitude:e.longitude||0,timezone:e.timeZone||"",isp:"",org:"",proxy:!1,hosting:!1})}],n=["freeipapi.com","ipwho.is","ipapi.co","ip-api.com"];return r.sort((e,t)=>n.indexOf(e.name)-n.indexOf(t.name)),[...t,...r]}async function $f(e,t=5e3){const r=new AbortController,n=setTimeout(()=>r.abort(),t);try{const t=await fetch(e,{signal:r.signal});if(!t.ok)throw new Error(`HTTP ${t.status}`);return await t.json()}finally{clearTimeout(n)}}const Hf={enableHighAccuracy:!0,timeout:8e3,maximumAge:3e5};function qf(e={}){return new Promise(t=>"undefined"!=typeof navigator&&navigator.geolocation?"undefined"!=typeof window&&!1===window.isSecureContext?t(null):void navigator.geolocation.getCurrentPosition(e=>t({latitude:e.coords.latitude,longitude:e.coords.longitude,accuracy:e.coords.accuracy}),()=>t(null),{...Hf,...e}):t(null))}async function Wf(e,t,r={}){if("number"!=typeof e||"number"!=typeof t)return null;const n=r.timeoutMs||Uf.timeoutMs||5e3,o=`https://api.bigdatacloud.net/data/reverse-geocode-client?latitude=${e}&longitude=${t}&localityLanguage=${r.localityLanguage||"en"}`;try{const r=await $f(o,n),a=r.city||r.locality||"";return a||r.countryName?{city:a,region:r.principalSubdivision||"",regionCode:(r.principalSubdivisionCode||"").split("-").pop()||"",country:r.countryName||"",countryCode:r.countryCode||"",latitude:e,longitude:t}:null}catch{return null}}var Kf={configureGeo:function(e={}){e.apiKeys&&(Uf.apiKeys={...Uf.apiKeys,...e.apiKeys}),void 0!==e.preferredProvider&&(Uf.preferredProvider=e.preferredProvider),void 0!==e.timeoutMs&&(Uf.timeoutMs=e.timeoutMs)},resolveLocation:async function(e,t={}){const r={apiKeys:{...Uf.apiKeys,...t.apiKeys||{}},preferredProvider:t.preferredProvider||Uf.preferredProvider,timeoutMs:t.timeoutMs||Uf.timeoutMs};let n=Vf(r.apiKeys);if(r.preferredProvider){const e=n.findIndex(e=>e.name===r.preferredProvider);if(e>0){const[t]=n.splice(e,1);n.unshift(t)}}for(const t of n)try{const n=await $f(t.buildUrl(e),r.timeoutMs);return{...t.parse(n),source:t.name,tier:t.tier}}catch{}return null},listProviders:function(e={}){return Vf({...Uf.apiKeys,...e}).map(({name:e,tier:t,freeLimit:r,signup:n})=>({name:e,tier:t,freeLimit:r,signup:n||"—"}))},getBrowserGeolocation:qf,getGeolocationPermission:async function(){try{if("undefined"==typeof navigator||!navigator.permissions||!navigator.permissions.query)return"unsupported";return(await navigator.permissions.query({name:"geolocation"})).state}catch{return"unsupported"}},reverseGeocode:Wf,getBrowserLocation:async function(e={}){const t=await qf(e);if(!t)return null;const r=await Wf(t.latitude,t.longitude,e),n=!(!r||!r.city&&!r.country);return{...n?r:{},latitude:t.latitude,longitude:t.longitude,accuracy:t.accuracy,...n?{source:"gps"}:{}}},toMapsUrl:function(e,t){return`https://www.google.com/maps?q=${e},${t}`}};const Qf="__ut_sid__",Yf="__ut_uid__",Gf="__ut_meta__";function Jf(){const e=new Uint8Array(16);crypto.getRandomValues(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128;const t=Array.from(e).map(e=>e.toString(16).padStart(2,"0")).join("");return[t.slice(0,8),t.slice(8,12),t.slice(12,16),t.slice(16,20),t.slice(20)].join("-")}function Xf(e,t){try{return e.getItem(t)}catch{return null}}function Zf(e,t,r){try{return e.setItem(t,r),!0}catch{return!1}}var eh={getOrCreateUserID:function(){let e=Xf(localStorage,Yf),t=!1;return e||(e=Jf(),t=!0,Zf(localStorage,Yf,e)),{uid:e,isNew:t}},getOrCreateSessionID:function(){let e=Xf(sessionStorage,Qf),t=!1;return e||(e=Jf(),t=!0,Zf(sessionStorage,Qf,e)),{sid:e,isNew:t}},saveSessionMeta:function(e){try{const t=JSON.stringify({...e,savedAt:(new Date).toISOString()});Zf(localStorage,Gf,t)}catch{}},loadSessionMeta:function(){try{const e=Xf(localStorage,Gf);return e?JSON.parse(e):null}catch{return null}},clearSession:function(){try{localStorage.removeItem(Yf)}catch{}try{localStorage.removeItem(Gf)}catch{}try{sessionStorage.removeItem(Qf)}catch{}},getBrowserContext:function(){return{userAgent:navigator.userAgent,platform:navigator.platform||"unknown",language:navigator.language||"unknown",timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,screenRes:`${screen.width}x${screen.height}`,viewportRes:`${window.innerWidth}x${window.innerHeight}`,colorDepth:screen.colorDepth,touchSupport:navigator.maxTouchPoints>0,cookieEnabled:navigator.cookieEnabled,referrer:document.referrer||null,currentUrl:window.location.href,loadedAt:(new Date).toISOString()}}};const{generateFingerprint:th}=_f,{detectIP:rh,getIPVersion:nh}=Of,{configureGeo:oh,resolveLocation:ah,listProviders:ih,getBrowserGeolocation:sh,getGeolocationPermission:lh,reverseGeocode:ch,getBrowserLocation:uh,toMapsUrl:dh}=Kf,{getOrCreateUserID:gh,getOrCreateSessionID:ph,saveSessionMeta:fh,loadSessionMeta:hh,clearSession:mh,getBrowserContext:bh}=eh;zf.exports=class{constructor(e={}){this._options={onReady:e.onReady||null,onError:e.onError||null,geoFromBrowser:void 0===e.geoFromBrowser||e.geoFromBrowser,geoApiKeys:e.geoApiKeys||null,geoOptions:e.geoOptions||null,cache:!1!==e.cache,maxAgeMs:e.maxAgeMs||3e5,autoInit:e.autoInit||!1,webhookUrl:e.webhookUrl||null},this.profile=null,this._ready=!1,this._options.autoInit&&this.init().catch(()=>{})}async init(){if(this._options.cache){const e=hh();if(e&&e.savedAt){if(Date.now()-new Date(e.savedAt).getTime()<this._options.maxAgeMs)return this.profile=e,this._ready=!0,this._options.onReady&&this._options.onReady(this.profile),this.profile}}try{const{uid:e,isNew:t}=gh(),{sid:r,isNew:n}=ph(),{id:o,signals:a,confidence:i}=th(),s=this._options.geoApiKeys?{apiKeys:this._options.geoApiKeys}:{},[l,c]=await Promise.all([(async()=>{const e=await rh(),t=e?.ip||"unknown",r="unknown"!==t?await ah(t,s):null;return{ip:t,ipVersion:e?nh(t):"unknown",geo:r}})(),this._collectBrowserLocation()]),{ip:u,ipVersion:d}=l;let g=l.geo,p=null;c&&(p={latitude:c.latitude,longitude:c.longitude,accuracy:c.accuracy},"gps"===c.source&&(g={...g||{},...c}));const f=bh();return this.profile={uid:e,sid:r,isNewUser:t,isNewSession:n,fingerprintId:o,fingerprintConfidence:i,ip:u,ipVersion:d,geo:g||null,browserGeo:p||null,browser:f,raw:a,createdAt:(new Date).toISOString(),...g?{mapsUrl:dh(g.latitude,g.longitude)}:{}},fh(this.profile),this._options.webhookUrl&&this._sendToWebhook(this.profile),this._ready=!0,this._options.onReady&&this._options.onReady(this.profile),this.profile}catch(e){throw this._options.onError&&this._options.onError(e),e}}async _collectBrowserLocation(){const e=this._options.geoFromBrowser;if(!e)return null;if("auto"===e){if("granted"!==await lh())return null}return uh(this._options.geoOptions||{})}async captureBrowserLocation(e={}){const t=await uh({...this._options.geoOptions||{},...e});return t&&this.profile?(this.profile.browserGeo={latitude:t.latitude,longitude:t.longitude,accuracy:t.accuracy},this.profile.mapsUrl=dh(t.latitude,t.longitude),"gps"===t.source&&(this.profile.geo={...this.profile.geo||{},...t}),fh(this.profile),this._options.onReady&&this._options.onReady(this.profile),this.profile):this.profile}getProfile(){return this.profile}isKnownUser(e){return this.profile?.uid===e}async refresh(){return mh(),this.profile=null,this._ready=!1,this.init()}clear(){mh(),this.profile=null,this._ready=!1}getSummary(){if(!this.profile)return null;const{uid:e,sid:t,fingerprintId:r,ip:n,geo:o,browser:a,createdAt:i}=this.profile;return{uid:e,sid:t,fingerprintId:r,ip:n,country:o?.country||"unknown",city:o?.city||"unknown",isp:o?.isp||"unknown",proxy:o?.proxy||!1,timezone:o?.timezone||a.timezone,userAgent:a.userAgent,language:a.language,createdAt:i}}async _sendToWebhook(e){try{await fetch(this._options.webhookUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}catch{}}};var yh=zf.exports.generateFingerprint=th,vh=zf.exports.detectIP=rh,wh=zf.exports.configureGeo=oh,kh=zf.exports.resolveLocation=ah,xh=zf.exports.listProviders=ih,Ch=zf.exports.getBrowserGeolocation=sh,Sh=zf.exports.getGeolocationPermission=lh,Mh=zf.exports.reverseGeocode=ch,Th=zf.exports.getBrowserLocation=uh,Ph=zf.exports.getOrCreateUserID=gh,zh=zf.exports.getOrCreateSessionID=ph,jh=zf.exports.clearSession=mh,Eh=zf.exports.getBrowserContext=bh,Fh=zf.exports,Lh=e({__proto__:null,clearSession:jh,configureGeo:wh,default:Fh,detectIP:vh,generateFingerprint:yh,getBrowserContext:Eh,getBrowserGeolocation:Ch,getBrowserLocation:Th,getGeolocationPermission:Sh,getOrCreateSessionID:zh,getOrCreateUserID:Ph,listProviders:xh,resolveLocation:kh,reverseGeocode:Mh},[Fh]),Nh={exports:{}};!function(e){!function(){function t(e,t,r){return e.call.apply(e.bind,arguments)}function r(e,t,r){if(!e)throw Error();if(2<arguments.length){var n=Array.prototype.slice.call(arguments,2);return function(){var r=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(r,n),e.apply(t,r)}}return function(){return e.apply(t,arguments)}}function n(e,o,a){return(n=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?t:r).apply(null,arguments)}var o=Date.now||function(){return+new Date};function a(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var i=!!window.FontFace;function s(e,t,r,n){if(t=e.c.createElement(t),r)for(var o in r)r.hasOwnProperty(o)&&("style"==o?t.style.cssText=r[o]:t.setAttribute(o,r[o]));return n&&t.appendChild(e.c.createTextNode(n)),t}function l(e,t,r){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(r,e.lastChild)}function c(e){e.parentNode&&e.parentNode.removeChild(e)}function u(e,t,r){t=t||[],r=r||[];for(var n=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var a=!1,i=0;i<n.length;i+=1)if(t[o]===n[i]){a=!0;break}a||n.push(t[o])}for(t=[],o=0;o<n.length;o+=1){for(a=!1,i=0;i<r.length;i+=1)if(n[o]===r[i]){a=!0;break}a||t.push(n[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function d(e,t){for(var r=e.className.split(/\s+/),n=0,o=r.length;n<o;n++)if(r[n]==t)return!0;return!1}function g(e,t,r){function n(){u&&o&&a&&(u(c),u=null)}t=s(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,a=!0,c=null,u=r||null;i?(t.onload=function(){o=!0,n()},t.onerror=function(){o=!0,c=Error("Stylesheet failed to load"),n()}):setTimeout(function(){o=!0,n()},0),l(e,"head",t)}function p(e,t,r,n){var o=e.c.getElementsByTagName("head")[0];if(o){var a=s(e,"script",{src:t}),i=!1;return a.onload=a.onreadystatechange=function(){i||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(i=!0,r&&r(null),a.onload=a.onreadystatechange=null,"HEAD"==a.parentNode.tagName&&o.removeChild(a))},o.appendChild(a),setTimeout(function(){i||(i=!0,r&&r(Error("Script load timeout")))},n||5e3),a}return null}function f(){this.a=0,this.c=null}function h(e){return e.a++,function(){e.a--,b(e)}}function m(e,t){e.c=t,b(e)}function b(e){0==e.a&&e.c&&(e.c(),e.c=null)}function y(e){this.a=e||"-"}function v(e,t){this.c=e,this.f=4,this.a="n";var r=(t||"n4").match(/^([nio])([1-9])$/i);r&&(this.a=r[1],this.f=parseInt(r[2],10))}function w(e){var t=[];e=e.split(/,\s*/);for(var r=0;r<e.length;r++){var n=e[r].replace(/['"]/g,"");-1!=n.indexOf(" ")||/^\d/.test(n)?t.push("'"+n+"'"):t.push(n)}return t.join(",")}function k(e){return e.a+e.f}function x(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function C(e){var t=4,r="n",n=null;return e&&((n=e.match(/(normal|oblique|italic)/i))&&n[1]&&(r=n[1].substr(0,1).toLowerCase()),(n=e.match(/([1-9]00|normal|bold)/i))&&n[1]&&(/bold/i.test(n[1])?t=7:/[1-9]00/.test(n[1])&&(t=parseInt(n[1].substr(0,1),10)))),r+t}function S(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new y("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function M(e){if(e.g){var t=d(e.f,e.a.c("wf","active")),r=[],n=[e.a.c("wf","loading")];t||r.push(e.a.c("wf","inactive")),u(e.f,r,n)}T(e,"inactive")}function T(e,t,r){e.j&&e.h[t]&&(r?e.h[t](r.c,k(r)):e.h[t]())}function P(){this.c={}}function z(e,t){this.c=e,this.f=t,this.a=s(this.c,"span",{"aria-hidden":"true"},this.f)}function j(e){l(e.c,"body",e.a)}function E(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+w(e.c)+";font-style:"+x(e)+";font-weight:"+e.f+"00;"}function F(e,t,r,n,o,a){this.g=e,this.j=t,this.a=n,this.c=r,this.f=o||3e3,this.h=a||void 0}function L(e,t,r,n,o,a,i){this.v=e,this.B=t,this.c=r,this.a=n,this.s=i||"BESbswy",this.f={},this.w=o||3e3,this.u=a||null,this.m=this.j=this.h=this.g=null,this.g=new z(this.c,this.s),this.h=new z(this.c,this.s),this.j=new z(this.c,this.s),this.m=new z(this.c,this.s),e=E(e=new v(this.a.c+",serif",k(this.a))),this.g.a.style.cssText=e,e=E(e=new v(this.a.c+",sans-serif",k(this.a))),this.h.a.style.cssText=e,e=E(e=new v("serif",k(this.a))),this.j.a.style.cssText=e,e=E(e=new v("sans-serif",k(this.a))),this.m.a.style.cssText=e,j(this.g),j(this.h),j(this.j),j(this.m)}y.prototype.c=function(e){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},F.prototype.start=function(){var e=this.c.o.document,t=this,r=o(),n=new Promise(function(n,a){!function i(){o()-r>=t.f?a():e.fonts.load(function(e){return x(e)+" "+e.f+"00 300px "+w(e.c)}(t.a),t.h).then(function(e){1<=e.length?n():setTimeout(i,25)},function(){a()})}()}),a=null,i=new Promise(function(e,r){a=setTimeout(r,t.f)});Promise.race([i,n]).then(function(){a&&(clearTimeout(a),a=null),t.g(t.a)},function(){t.j(t.a)})};var N={D:"serif",C:"sans-serif"},R=null;function A(){if(null===R){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);R=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return R}function _(e,t,r){for(var n in N)if(N.hasOwnProperty(n)&&t===e.f[N[n]]&&r===e.f[N[n]])return!0;return!1}function I(e){var t,r=e.g.a.offsetWidth,a=e.h.a.offsetWidth;(t=r===e.f.serif&&a===e.f["sans-serif"])||(t=A()&&_(e,r,a)),t?o()-e.A>=e.w?A()&&_(e,r,a)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?B(e,e.v):B(e,e.B):function(e){setTimeout(n(function(){I(this)},e),50)}(e):B(e,e.v)}function B(e,t){setTimeout(n(function(){c(this.g.a),c(this.h.a),c(this.j.a),c(this.m.a),t(this.a)},e),0)}function D(e,t,r){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=r}L.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=o(),I(this)};var O=null;function U(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&u(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),T(e,"active")):M(e.a))}function V(e){this.j=e,this.a=new P,this.h=0,this.f=this.g=!0}function $(e,t,r,o,a){var i=0==--e.h;(e.f||e.g)&&setTimeout(function(){var e=a||null,s=o||{};if(0===r.length&&i)M(t.a);else{t.f+=r.length,i&&(t.j=i);var l,c=[];for(l=0;l<r.length;l++){var d=r[l],g=s[d.c],p=t.a,f=d;if(p.g&&u(p.f,[p.a.c("wf",f.c,k(f).toString(),"loading")]),T(p,"fontloading",f),p=null,null===O)if(window.FontFace){f=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var h=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);O=f?42<parseInt(f[1],10):!h}else O=!1;p=O?new F(n(t.g,t),n(t.h,t),t.c,d,t.s,g):new L(n(t.g,t),n(t.h,t),t.c,d,t.s,e,g),c.push(p)}for(l=0;l<c.length;l++)c[l].start()}},0)}function H(e,t){this.c=e,this.a=t}function q(e,t){this.c=e,this.a=t}function W(e,t){this.c=e||K,this.a=[],this.f=[],this.g=t||""}D.prototype.g=function(e){var t=this.a;t.g&&u(t.f,[t.a.c("wf",e.c,k(e).toString(),"active")],[t.a.c("wf",e.c,k(e).toString(),"loading"),t.a.c("wf",e.c,k(e).toString(),"inactive")]),T(t,"fontactive",e),this.m=!0,U(this)},D.prototype.h=function(e){var t=this.a;if(t.g){var r=d(t.f,t.a.c("wf",e.c,k(e).toString(),"active")),n=[],o=[t.a.c("wf",e.c,k(e).toString(),"loading")];r||n.push(t.a.c("wf",e.c,k(e).toString(),"inactive")),u(t.f,n,o)}T(t,"fontinactive",e),U(this)},V.prototype.load=function(e){this.c=new a(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,r){var n=[],o=r.timeout;!function(e){e.g&&u(e.f,[e.a.c("wf","loading")]),T(e,"loading")}(t);n=function(e,t,r){var n,o=[];for(n in t)if(t.hasOwnProperty(n)){var a=e.c[n];a&&o.push(a(t[n],r))}return o}(e.a,r,e.c);var a=new D(e.c,t,o);for(e.h=n.length,t=0,r=n.length;t<r;t++)n[t].load(function(t,r,n){$(e,a,t,r,n)})}(this,new S(this.c,e),e)},H.prototype.load=function(e){function t(){if(a["__mti_fntLst"+n]){var r,o=a["__mti_fntLst"+n](),i=[];if(o)for(var s=0;s<o.length;s++){var l=o[s].fontfamily;null!=o[s].fontStyle&&null!=o[s].fontWeight?(r=o[s].fontStyle+o[s].fontWeight,i.push(new v(l,r))):i.push(new v(l))}e(i)}else setTimeout(function(){t()},50)}var r=this,n=r.a.projectId,o=r.a.version;if(n){var a=r.c.o;p(this.c,(r.a.api||"https://fast.fonts.net/jsapi")+"/"+n+".js"+(o?"?v="+o:""),function(o){o?e([]):(a["__MonotypeConfiguration__"+n]=function(){return r.a},t())}).id="__MonotypeAPIScript__"+n}else e([])},q.prototype.load=function(e){var t,r,n=this.a.urls||[],o=this.a.families||[],a=this.a.testStrings||{},i=new f;for(t=0,r=n.length;t<r;t++)g(this.c,n[t],h(i));var s=[];for(t=0,r=o.length;t<r;t++)if((n=o[t].split(":"))[1])for(var l=n[1].split(","),c=0;c<l.length;c+=1)s.push(new v(n[0],l[c]));else s.push(new v(n[0]));m(i,function(){e(s,a)})};var K="https://fonts.googleapis.com/css";function Q(e){this.f=e,this.a=[],this.c={}}var Y={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},G={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},J={i:"i",italic:"i",n:"n",normal:"n"},X=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function Z(e,t){this.c=e,this.a=t}var ee={Arimo:!0,Cousine:!0,Tinos:!0};function te(e,t){this.c=e,this.a=t}function re(e,t){this.c=e,this.f=t,this.a=[]}Z.prototype.load=function(e){var t=new f,r=this.c,n=new W(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var r=t.length,n=0;n<r;n++){var o=t[n].split(":");3==o.length&&e.f.push(o.pop());var a="";2==o.length&&""!=o[1]&&(a=":"),e.a.push(o.join(a))}}(n,o);var a=new Q(o);!function(e){for(var t=e.f.length,r=0;r<t;r++){var n=e.f[r].split(":"),o=n[0].replace(/\+/g," "),a=["n4"];if(2<=n.length){var i;if(i=[],s=n[1])for(var s,l=(s=s.split(",")).length,c=0;c<l;c++){var u;if((u=s[c]).match(/^[\w-]+$/))if(null==(d=X.exec(u.toLowerCase())))u="";else{if(u=null==(u=d[2])||""==u?"n":J[u],null==(d=d[1])||""==d)d="4";else var d=G[d]||(isNaN(d)?"4":d.substr(0,1));u=[u,d].join("")}else u="";u&&i.push(u)}0<i.length&&(a=i),3==n.length&&(i=[],0<(n=(n=n[2])?n.split(","):i).length&&(n=Y[n[0]])&&(e.c[o]=n))}for(e.c[o]||(n=Y[o])&&(e.c[o]=n),n=0;n<a.length;n+=1)e.a.push(new v(o,a[n]))}}(a),g(r,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,r=[],n=0;n<t;n++)r.push(e.a[n].replace(/ /g,"+"));return t=e.c+"?family="+r.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(n),h(t)),m(t,function(){e(a.a,a.c,ee)})},te.prototype.load=function(e){var t=this.a.id,r=this.c.o;t?p(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",function(t){if(t)e([]);else if(r.Typekit&&r.Typekit.config&&r.Typekit.config.fn){t=r.Typekit.config.fn;for(var n=[],o=0;o<t.length;o+=2)for(var a=t[o],i=t[o+1],s=0;s<i.length;s++)n.push(new v(a,i[s]));try{r.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(n)}},2e3):e([])},re.prototype.load=function(e){var t=this.f.id,r=this.c.o,n=this;t?(r.__webfontfontdeckmodule__||(r.__webfontfontdeckmodule__={}),r.__webfontfontdeckmodule__[t]=function(t,r){for(var o=0,a=r.fonts.length;o<a;++o){var i=r.fonts[o];n.a.push(new v(i.name,C("font-weight:"+i.weight+";font-style:"+i.style)))}e(n.a)},p(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",function(t){t&&e([])})):e([])};var ne=new V(window);ne.a.c.custom=function(e,t){return new q(t,e)},ne.a.c.fontdeck=function(e,t){return new re(t,e)},ne.a.c.monotype=function(e,t){return new H(t,e)},ne.a.c.typekit=function(e,t){return new te(t,e)},ne.a.c.google=function(e,t){return new Z(t,e)};var oe={load:n(ne.load,ne)};e.exports?e.exports=oe:(window.WebFont=oe,window.WebFontConfig&&ne.load(window.WebFontConfig))}()}(Nh);var Rh=Nh.exports,Ah=e({__proto__:null,default:Rh},[Rh])}();