@memori.ai/memori-webcomponent 8.2.2 → 8.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,7 +49,7 @@ var i,r,o,a,s,l,c,u,d,h,p,m,f,g,v,y,_,b,x,w,S,E,A;if(e(t.exports,"unstable_now",
49
49
  * This source code is licensed under the MIT license found in the
50
50
  * LICENSE file in the root directory of this source tree.
51
51
  */
52
- e.exports=function(t){var n={},i=o("kyWRD"),r=o("85Hg2"),a=o("kMsGZ");function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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 l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,c=60103,u=60106,d=60107,h=60108,p=60114,m=60109,f=60110,g=60112,v=60113,y=60120,_=60115,b=60116,x=60121,w=60129,S=60130,E=60131;if("function"==typeof Symbol&&Symbol.for){var A=Symbol.for;c=A("react.element"),u=A("react.portal"),d=A("react.fragment"),h=A("react.strict_mode"),p=A("react.profiler"),m=A("react.provider"),f=A("react.context"),g=A("react.forward_ref"),v=A("react.suspense"),y=A("react.suspense_list"),_=A("react.memo"),b=A("react.lazy"),x=A("react.block"),A("react.scope"),w=A("react.debug_trace_mode"),S=A("react.offscreen"),E=A("react.legacy_hidden")}var T="function"==typeof Symbol&&Symbol.iterator;function I(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=T&&e[T]||e["@@iterator"])?e:null}function M(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 d:return"Fragment";case u:return"Portal";case p:return"Profiler";case h:return"StrictMode";case v:return"Suspense";case y:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case f:return(e.displayName||"Context")+".Consumer";case m:return(e._context.displayName||"Context")+".Provider";case g:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case _:return M(e.type);case x:return M(e._render);case b:t=e._payload,e=e._init;try{return M(e(t))}catch(e){}}return null}function C(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function N(e){if(C(e)!==e)throw Error(s(188))}function O(e){var t=e.alternate;if(!t){if(null===(t=C(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,i=t;;){var r=n.return;if(null===r)break;var o=r.alternate;if(null===o){if(null!==(i=r.return)){n=i;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return N(r),e;if(o===i)return N(r),t;o=o.sibling}throw Error(s(188))}if(n.return!==i.return)n=r,i=o;else{for(var a=!1,l=r.child;l;){if(l===n){a=!0,n=r,i=o;break}if(l===i){a=!0,i=r,n=o;break}l=l.sibling}if(!a){for(l=o.child;l;){if(l===n){a=!0,n=o,i=r;break}if(l===i){a=!0,i=o,n=r;break}l=l.sibling}if(!a)throw Error(s(189))}}if(n.alternate!==i)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?e:t}function R(e){if(!(e=O(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function L(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var P,D=t.getPublicInstance,k=t.getRootHostContext,B=t.getChildHostContext,F=t.prepareForCommit,U=t.resetAfterCommit,z=t.createInstance,G=t.appendInitialChild,j=t.finalizeInitialChildren,H=t.prepareUpdate,V=t.shouldSetTextContent,W=t.createTextInstance,q=t.scheduleTimeout,$=t.cancelTimeout,Y=t.noTimeout,J=t.isPrimaryRenderer,Z=t.supportsMutation,X=t.supportsPersistence,K=t.supportsHydration,Q=t.getInstanceFromNode,ee=t.makeOpaqueHydratingObject,te=t.makeClientId,ne=t.beforeActiveInstanceBlur,ie=t.afterActiveInstanceBlur,re=t.preparePortalMount,oe=t.supportsTestSelectors,ae=t.findFiberRoot,se=t.getBoundingRect,le=t.getTextContent,ce=t.isHiddenSubtree,ue=t.matchAccessibilityRole,de=t.setFocusIfFocusable,he=t.setupIntersectionObserver,pe=t.appendChild,me=t.appendChildToContainer,fe=t.commitTextUpdate,ge=t.commitMount,ve=t.commitUpdate,ye=t.insertBefore,_e=t.insertInContainerBefore,be=t.removeChild,xe=t.removeChildFromContainer,we=t.resetTextContent,Se=t.hideInstance,Ee=t.hideTextInstance,Ae=t.unhideInstance,Te=t.unhideTextInstance,Ie=t.clearContainer,Me=t.cloneInstance,Ce=t.createContainerChildSet,Ne=t.appendChildToContainerChildSet,Oe=t.finalizeContainerChildren,Re=t.replaceContainerChildren,Le=t.cloneHiddenInstance,Pe=t.cloneHiddenTextInstance,De=t.canHydrateInstance,ke=t.canHydrateTextInstance,Be=t.isSuspenseInstancePending,Fe=t.isSuspenseInstanceFallback,Ue=t.getNextHydratableSibling,ze=t.getFirstHydratableChild,Ge=t.hydrateInstance,je=t.hydrateTextInstance,He=t.getNextHydratableInstanceAfterSuspenseInstance,Ve=t.commitHydratedContainer,We=t.commitHydratedSuspenseInstance;function qe(e){if(void 0===P)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);P=t&&t[1]||""}return"\n"+P+e}var $e=!1;function Ye(e,t){if(!e||$e)return"";$e=!0;var n=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 i=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){i=e}e.call(t.prototype)}else{try{throw Error()}catch(e){i=e}e()}}catch(e){if(e&&i&&"string"==typeof e.stack){for(var r=e.stack.split("\n"),o=i.stack.split("\n"),a=r.length-1,s=o.length-1;1<=a&&0<=s&&r[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(r[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||r[a]!==o[s])return"\n"+r[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{$e=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qe(e):""}var Je=[],Ze=-1;function Xe(e){return{current:e}}function Ke(e){0>Ze||(e.current=Je[Ze],Je[Ze]=null,Ze--)}function Qe(e,t){Ze++,Je[Ze]=e.current,e.current=t}var et={},tt=Xe(et),nt=Xe(!1),it=et;function rt(e,t){var n=e.type.contextTypes;if(!n)return et;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r,o={};for(r in n)o[r]=t[r];return i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ot(e){return null!=(e=e.childContextTypes)}function at(){Ke(nt),Ke(tt)}function st(e,t,n){if(tt.current!==et)throw Error(s(168));Qe(tt,t),Qe(nt,n)}function lt(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(s(108,M(t)||"Unknown",o));return i({},n,r)}function ct(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||et,it=tt.current,Qe(tt,e),Qe(nt,nt.current),!0}function ut(e,t,n){var i=e.stateNode;if(!i)throw Error(s(169));n?(e=lt(e,t,it),i.__reactInternalMemoizedMergedChildContext=e,Ke(nt),Ke(tt),Qe(tt,e)):Ke(nt),Qe(nt,n)}var dt=null,ht=null;(0,a.unstable_now)();var pt=0,mt=8;function ft(e){if(0!=(1&e))return mt=15,1;if(0!=(2&e))return mt=14,2;if(0!=(4&e))return mt=13,4;var t=24&e;return 0!==t?(mt=12,t):0!=(32&e)?(mt=11,32):0!==(t=192&e)?(mt=10,t):0!=(256&e)?(mt=9,256):0!==(t=3584&e)?(mt=8,t):0!=(4096&e)?(mt=7,4096):0!==(t=4186112&e)?(mt=6,t):0!==(t=62914560&e)?(mt=5,t):67108864&e?(mt=4,67108864):0!=(134217728&e)?(mt=3,134217728):0!==(t=805306368&e)?(mt=2,t):0!=(1073741824&e)?(mt=1,1073741824):(mt=8,e)}function gt(e,t){var n=e.pendingLanes;if(0===n)return mt=0;var i=0,r=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==o)i=o,r=mt=15;else if(0!==(o=134217727&n)){var l=o&~a;0!==l?(i=ft(l),r=mt):0!==(s&=o)&&(i=ft(s),r=mt)}else 0!==(o=n&~a)?(i=ft(o),r=mt):0!==s&&(i=ft(s),r=mt);if(0===i)return 0;if(i=n&((0>(i=31-wt(i))?0:1<<i)<<1)-1,0!==t&&t!==i&&0==(t&a)){if(ft(t),r<=mt)return t;mt=r}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=i;0<t;)r=1<<(n=31-wt(t)),i|=e[n],t&=~r;return i}function vt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function yt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=_t(24&~t))?yt(10,t):e;case 10:return 0===(e=_t(192&~t))?yt(8,t):e;case 8:return 0===(e=_t(3584&~t))&&(0===(e=_t(4186112&~t))&&(e=512)),e;case 2:return 0===(t=_t(805306368&~t))&&(t=268435456),t}throw Error(s(358,e))}function _t(e){return e&-e}function bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function xt(e,t,n){e.pendingLanes|=t;var i=t-1;e.suspendedLanes&=i,e.pingedLanes&=i,(e=e.eventTimes)[t=31-wt(t)]=n}var wt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(St(e)/Et|0)|0},St=Math.log,Et=Math.LN2;var At=a.unstable_runWithPriority,Tt=a.unstable_scheduleCallback,It=a.unstable_cancelCallback,Mt=a.unstable_shouldYield,Ct=a.unstable_requestPaint,Nt=a.unstable_now,Ot=a.unstable_getCurrentPriorityLevel,Rt=a.unstable_ImmediatePriority,Lt=a.unstable_UserBlockingPriority,Pt=a.unstable_NormalPriority,Dt=a.unstable_LowPriority,kt=a.unstable_IdlePriority,Bt={},Ft=void 0!==Ct?Ct:function(){},Ut=null,zt=null,Gt=!1,jt=Nt(),Ht=1e4>jt?Nt:function(){return Nt()-jt};function Vt(){switch(Ot()){case Rt:return 99;case Lt:return 98;case Pt:return 97;case Dt:return 96;case kt:return 95;default:throw Error(s(332))}}function Wt(e){switch(e){case 99:return Rt;case 98:return Lt;case 97:return Pt;case 96:return Dt;case 95:return kt;default:throw Error(s(332))}}function qt(e,t){return e=Wt(e),At(e,t)}function $t(e,t,n){return e=Wt(e),Tt(e,t,n)}function Yt(){if(null!==zt){var e=zt;zt=null,It(e)}Jt()}function Jt(){if(!Gt&&null!==Ut){Gt=!0;var e=0;try{var t=Ut;qt(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ut=null}catch(t){throw null!==Ut&&(Ut=Ut.slice(e+1)),Tt(Rt,Yt),t}finally{Gt=!1}}}var Zt=l.ReactCurrentBatchConfig;var Xt="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Kt=Object.prototype.hasOwnProperty;function Qt(e,t){if(Xt(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++)if(!Kt.call(t,n[i])||!Xt(e[n[i]],t[n[i]]))return!1;return!0}function en(e){switch(e.tag){case 5:return qe(e.type);case 16:return qe("Lazy");case 13:return qe("Suspense");case 19:return qe("SuspenseList");case 0:case 2:case 15:return e=Ye(e.type,!1);case 11:return e=Ye(e.type.render,!1);case 22:return e=Ye(e.type._render,!1);case 1:return e=Ye(e.type,!0);default:return""}}function tn(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var nn=Xe(null),rn=null,on=null,an=null;function sn(){an=on=rn=null}function ln(e,t){e=e.type._context,J?(Qe(nn,e._currentValue),e._currentValue=t):(Qe(nn,e._currentValue2),e._currentValue2=t)}function cn(e){var t=nn.current;Ke(nn),e=e.type._context,J?e._currentValue=t:e._currentValue2=t}function un(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function dn(e,t){rn=e,an=on=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(ji=!0),e.firstContext=null)}function hn(e,t){if(an!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(an=e,t=1073741823),t={context:e,observedBits:t,next:null},null===on){if(null===rn)throw Error(s(308));on=t,rn.dependencies={lanes:0,firstContext:t,responders:null}}else on=on.next=t;return J?e._currentValue:e._currentValue2}var pn=!1;function mn(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function fn(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 gn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function vn(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function yn(e,t){var n=e.updateQueue,i=e.alternate;if(null!==i&&n===(i=i.updateQueue)){var r=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?r=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?r=o=t:o=o.next=t}else r=o=t;return n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:i.shared,effects:i.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function _n(e,t,n,r){var o=e.updateQueue;pn=!1;var a=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var c=l,u=c.next;c.next=null,null===s?a=u:s.next=u,s=c;var d=e.alternate;if(null!==d){var h=(d=d.updateQueue).lastBaseUpdate;h!==s&&(null===h?d.firstBaseUpdate=u:h.next=u,d.lastBaseUpdate=c)}}if(null!==a){for(h=o.baseState,s=0,d=u=c=null;;){l=a.lane;var p=a.eventTime;if((r&l)===l){null!==d&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,f=a;switch(l=t,p=n,f.tag){case 1:if("function"==typeof(m=f.payload)){h=m.call(p,h,l);break e}h=m;break e;case 3:m.flags=-4097&m.flags|64;case 0:if(null==(l="function"==typeof(m=f.payload)?m.call(p,h,l):m))break e;h=i({},h,l);break e;case 2:pn=!0}}null!==a.callback&&(e.flags|=32,null===(l=o.effects)?o.effects=[a]:l.push(a))}else p={eventTime:p,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===d?(u=d=p,c=h):d=d.next=p,s|=l;if(null===(a=a.next)){if(null===(l=o.shared.pending))break;a=l.next,l.next=null,o.lastBaseUpdate=l,o.shared.pending=null}}null===d&&(c=h),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=d,ho|=s,e.lanes=s,e.memoizedState=h}}function bn(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var i=e[t],r=i.callback;if(null!==r){if(i.callback=null,i=n,"function"!=typeof r)throw Error(s(191,r));r.call(i)}}}var xn=(new r.Component).refs;function wn(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Sn={isMounted:function(e){return!!(e=e._reactInternals)&&C(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var i=Bo(),r=Fo(e),o=gn(i,r);o.payload=t,null!=n&&(o.callback=n),vn(e,o),Uo(e,r,i)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=Bo(),r=Fo(e),o=gn(i,r);o.tag=1,o.payload=t,null!=n&&(o.callback=n),vn(e,o),Uo(e,r,i)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Bo(),i=Fo(e),r=gn(n,i);r.tag=2,null!=t&&(r.callback=t),vn(e,r),Uo(e,i,n)}};function En(e,t,n,i,r,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(i,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!Qt(n,i)||!Qt(r,o))}function An(e,t,n){var i=!1,r=et,o=t.contextType;return"object"==typeof o&&null!==o?o=hn(o):(r=ot(t)?it:tt.current,o=(i=null!=(i=t.contextTypes))?rt(e,r):et),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Sn,e.stateNode=t,t._reactInternals=e,i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=o),t}function Tn(e,t,n,i){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,i),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&Sn.enqueueReplaceState(t,t.state,null)}function In(e,t,n,i){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=xn,mn(e);var o=t.contextType;"object"==typeof o&&null!==o?r.context=hn(o):(o=ot(t)?it:tt.current,r.context=rt(e,o)),_n(e,n,r,i),r.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(wn(e,t,o,n),r.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(t=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&Sn.enqueueReplaceState(r,r.state,null),_n(e,n,r,i),r.state=e.memoizedState),"function"==typeof r.componentDidMount&&(e.flags|=4)}var Mn=Array.isArray;function Cn(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(s(309));var i=n.stateNode}if(!i)throw Error(s(147,e));var r=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===r?t.ref:(t=function(e){var t=i.refs;t===xn&&(t=i.refs={}),null===e?delete t[r]:t[r]=e},t._stringRef=r,t)}if("string"!=typeof e)throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function Nn(e,t){if("textarea"!==e.type)throw Error(s(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function On(e){function t(t,n){if(e){var i=t.lastEffect;null!==i?(i.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,i){if(!e)return null;for(;null!==i;)t(n,i),i=i.sibling;return null}function i(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 r(e,t){return(e=Ea(e,t)).index=0,e.sibling=null,e}function o(t,n,i){return t.index=i,e?null!==(i=t.alternate)?(i=i.index)<n?(t.flags=2,n):i:(t.flags=2,n):n}function a(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,i){return null===t||6!==t.tag?((t=Ma(n,e.mode,i)).return=e,t):((t=r(t,n)).return=e,t)}function h(e,t,n,i){return null!==t&&t.elementType===n.type?((i=r(t,n.props)).ref=Cn(e,t,n),i.return=e,i):((i=Aa(n.type,n.key,n.props,null,e.mode,i)).ref=Cn(e,t,n),i.return=e,i)}function p(e,t,n,i){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ca(n,e.mode,i)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function m(e,t,n,i,o){return null===t||7!==t.tag?((t=Ta(n,e.mode,i,o)).return=e,t):((t=r(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ma(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case c:return(n=Aa(t.type,t.key,t.props,null,e.mode,n)).ref=Cn(e,null,t),n.return=e,n;case u:return(t=Ca(t,e.mode,n)).return=e,t}if(Mn(t)||I(t))return(t=Ta(t,e.mode,n,null)).return=e,t;Nn(e,t)}return null}function g(e,t,n,i){var r=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==r?null:l(e,t,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case c:return n.key===r?n.type===d?m(e,t,n.props.children,i,r):h(e,t,n,i):null;case u:return n.key===r?p(e,t,n,i):null}if(Mn(n)||I(n))return null!==r?null:m(e,t,n,i,null);Nn(e,n)}return null}function v(e,t,n,i,r){if("string"==typeof i||"number"==typeof i)return l(t,e=e.get(n)||null,""+i,r);if("object"==typeof i&&null!==i){switch(i.$$typeof){case c:return e=e.get(null===i.key?n:i.key)||null,i.type===d?m(t,e,i.props.children,r,i.key):h(t,e,i,r);case u:return p(t,e=e.get(null===i.key?n:i.key)||null,i,r)}if(Mn(i)||I(i))return m(t,e=e.get(n)||null,i,r,null);Nn(t,i)}return null}function y(r,a,s,l){for(var c=null,u=null,d=a,h=a=0,p=null;null!==d&&h<s.length;h++){d.index>h?(p=d,d=null):p=d.sibling;var m=g(r,d,s[h],l);if(null===m){null===d&&(d=p);break}e&&d&&null===m.alternate&&t(r,d),a=o(m,a,h),null===u?c=m:u.sibling=m,u=m,d=p}if(h===s.length)return n(r,d),c;if(null===d){for(;h<s.length;h++)null!==(d=f(r,s[h],l))&&(a=o(d,a,h),null===u?c=d:u.sibling=d,u=d);return c}for(d=i(r,d);h<s.length;h++)null!==(p=v(d,r,h,s[h],l))&&(e&&null!==p.alternate&&d.delete(null===p.key?h:p.key),a=o(p,a,h),null===u?c=p:u.sibling=p,u=p);return e&&d.forEach((function(e){return t(r,e)})),c}function _(r,a,l,c){var u=I(l);if("function"!=typeof u)throw Error(s(150));if(null==(l=u.call(l)))throw Error(s(151));for(var d=u=null,h=a,p=a=0,m=null,y=l.next();null!==h&&!y.done;p++,y=l.next()){h.index>p?(m=h,h=null):m=h.sibling;var _=g(r,h,y.value,c);if(null===_){null===h&&(h=m);break}e&&h&&null===_.alternate&&t(r,h),a=o(_,a,p),null===d?u=_:d.sibling=_,d=_,h=m}if(y.done)return n(r,h),u;if(null===h){for(;!y.done;p++,y=l.next())null!==(y=f(r,y.value,c))&&(a=o(y,a,p),null===d?u=y:d.sibling=y,d=y);return u}for(h=i(r,h);!y.done;p++,y=l.next())null!==(y=v(h,r,p,y.value,c))&&(e&&null!==y.alternate&&h.delete(null===y.key?p:y.key),a=o(y,a,p),null===d?u=y:d.sibling=y,d=y);return e&&h.forEach((function(e){return t(r,e)})),u}return function(e,i,o,l){var h="object"==typeof o&&null!==o&&o.type===d&&null===o.key;h&&(o=o.props.children);var p="object"==typeof o&&null!==o;if(p)switch(o.$$typeof){case c:e:{for(p=o.key,h=i;null!==h;){if(h.key===p){if(7===h.tag){if(o.type===d){n(e,h.sibling),(i=r(h,o.props.children)).return=e,e=i;break e}}else if(h.elementType===o.type){n(e,h.sibling),(i=r(h,o.props)).ref=Cn(e,h,o),i.return=e,e=i;break e}n(e,h);break}t(e,h),h=h.sibling}o.type===d?((i=Ta(o.props.children,e.mode,l,o.key)).return=e,e=i):((l=Aa(o.type,o.key,o.props,null,e.mode,l)).ref=Cn(e,i,o),l.return=e,e=l)}return a(e);case u:e:{for(h=o.key;null!==i;){if(i.key===h){if(4===i.tag&&i.stateNode.containerInfo===o.containerInfo&&i.stateNode.implementation===o.implementation){n(e,i.sibling),(i=r(i,o.children||[])).return=e,e=i;break e}n(e,i);break}t(e,i),i=i.sibling}(i=Ca(o,e.mode,l)).return=e,e=i}return a(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==i&&6===i.tag?(n(e,i.sibling),(i=r(i,o)).return=e,e=i):(n(e,i),(i=Ma(o,e.mode,l)).return=e,e=i),a(e);if(Mn(o))return y(e,i,o,l);if(I(o))return _(e,i,o,l);if(p&&Nn(e,o),void 0===o&&!h)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(s(152,M(e.type)||"Component"))}return n(e,i)}}var Rn=On(!0),Ln=On(!1),Pn={},Dn=Xe(Pn),kn=Xe(Pn),Bn=Xe(Pn);function Fn(e){if(e===Pn)throw Error(s(174));return e}function Un(e,t){Qe(Bn,t),Qe(kn,e),Qe(Dn,Pn),e=k(t),Ke(Dn),Qe(Dn,e)}function zn(){Ke(Dn),Ke(kn),Ke(Bn)}function Gn(e){var t=Fn(Bn.current),n=Fn(Dn.current);n!==(t=B(n,e.type,t))&&(Qe(kn,e),Qe(Dn,t))}function jn(e){kn.current===e&&(Ke(Dn),Ke(kn))}var Hn=Xe(0);function Vn(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Be(n)||Fe(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&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 Wn=null,qn=null,$n=!1;function Yn(e,t){var n=wa(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Jn(e,t){switch(e.tag){case 5:return null!==(t=De(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=ke(t,e.pendingProps))&&(e.stateNode=t,!0);default:return!1}}function Zn(e){if($n){var t=qn;if(t){var n=t;if(!Jn(e,t)){if(!(t=Ue(n))||!Jn(e,t))return e.flags=-1025&e.flags|2,$n=!1,void(Wn=e);Yn(Wn,n)}Wn=e,qn=ze(t)}else e.flags=-1025&e.flags|2,$n=!1,Wn=e}}function Xn(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Wn=e}function Kn(e){if(!K||e!==Wn)return!1;if(!$n)return Xn(e),$n=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!V(t,e.memoizedProps))for(t=qn;t;)Yn(e,t),t=Ue(t);if(Xn(e),13===e.tag){if(!K)throw Error(s(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));qn=He(e)}else qn=Wn?Ue(e.stateNode):null;return!0}function Qn(){K&&(qn=Wn=null,$n=!1)}var ei=[];function ti(){for(var e=0;e<ei.length;e++){var t=ei[e];J?t._workInProgressVersionPrimary=null:t._workInProgressVersionSecondary=null}ei.length=0}var ni=l.ReactCurrentDispatcher,ii=l.ReactCurrentBatchConfig,ri=0,oi=null,ai=null,si=null,li=!1,ci=!1;function ui(){throw Error(s(321))}function di(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Xt(e[n],t[n]))return!1;return!0}function hi(e,t,n,i,r,o){if(ri=o,oi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ni.current=null===e||null===e.memoizedState?Fi:Ui,e=n(i,r),ci){o=0;do{if(ci=!1,!(25>o))throw Error(s(301));o+=1,si=ai=null,t.updateQueue=null,ni.current=zi,e=n(i,r)}while(ci)}if(ni.current=Bi,t=null!==ai&&null!==ai.next,ri=0,si=ai=oi=null,li=!1,t)throw Error(s(300));return e}function pi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===si?oi.memoizedState=si=e:si=si.next=e,si}function mi(){if(null===ai){var e=oi.alternate;e=null!==e?e.memoizedState:null}else e=ai.next;var t=null===si?oi.memoizedState:si.next;if(null!==t)si=t,ai=e;else{if(null===e)throw Error(s(310));e={memoizedState:(ai=e).memoizedState,baseState:ai.baseState,baseQueue:ai.baseQueue,queue:ai.queue,next:null},null===si?oi.memoizedState=si=e:si=si.next=e}return si}function fi(e,t){return"function"==typeof t?t(e):t}function gi(e){var t=mi(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var i=ai,r=i.baseQueue,o=n.pending;if(null!==o){if(null!==r){var a=r.next;r.next=o.next,o.next=a}i.baseQueue=r=o,n.pending=null}if(null!==r){r=r.next,i=i.baseState;var l=a=o=null,c=r;do{var u=c.lane;if((ri&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),i=c.eagerReducer===e?c.eagerState:e(i,c.action);else{var d={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(a=l=d,o=i):l=l.next=d,oi.lanes|=u,ho|=u}c=c.next}while(null!==c&&c!==r);null===l?o=i:l.next=a,Xt(i,t.memoizedState)||(ji=!0),t.memoizedState=i,t.baseState=o,t.baseQueue=l,n.lastRenderedState=i}return[t.memoizedState,n.dispatch]}function vi(e){var t=mi(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var i=n.dispatch,r=n.pending,o=t.memoizedState;if(null!==r){n.pending=null;var a=r=r.next;do{o=e(o,a.action),a=a.next}while(a!==r);Xt(o,t.memoizedState)||(ji=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function yi(e,t,n){var i=t._getVersion;i=i(t._source);var r=J?t._workInProgressVersionPrimary:t._workInProgressVersionSecondary;if(null!==r?e=r===i:(e=e.mutableReadLanes,(e=(ri&e)===e)&&(J?t._workInProgressVersionPrimary=i:t._workInProgressVersionSecondary=i,ei.push(t))),e)return n(t._source);throw ei.push(t),Error(s(350))}function _i(e,t,n,i){var r=io;if(null===r)throw Error(s(349));var o=t._getVersion,a=o(t._source),l=ni.current,c=l.useState((function(){return yi(r,t,n)})),u=c[1],d=c[0];c=si;var h=e.memoizedState,p=h.refs,m=p.getSnapshot,f=h.source;h=h.subscribe;var g=oi;return e.memoizedState={refs:p,source:t,subscribe:i},l.useEffect((function(){p.getSnapshot=n,p.setSnapshot=u;var e=o(t._source);if(!Xt(a,e)){e=n(t._source),Xt(d,e)||(u(e),e=Fo(g),r.mutableReadLanes|=e&r.pendingLanes),e=r.mutableReadLanes,r.entangledLanes|=e;for(var i=r.entanglements,s=e;0<s;){var l=31-wt(s),c=1<<l;i[l]|=e,s&=~c}}}),[n,t,i]),l.useEffect((function(){return i(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var i=Fo(g);r.mutableReadLanes|=i&r.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,i]),Xt(m,n)&&Xt(f,t)&&Xt(h,i)||((e={pending:null,dispatch:null,lastRenderedReducer:fi,lastRenderedState:d}).dispatch=u=ki.bind(null,oi,e),c.queue=e,c.baseQueue=null,d=yi(r,t,n),c.memoizedState=c.baseState=d),d}function bi(e,t,n){return _i(mi(),e,t,n)}function xi(e){var t=pi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:fi,lastRenderedState:e}).dispatch=ki.bind(null,oi,e),[t.memoizedState,e]}function wi(e,t,n,i){return e={tag:e,create:t,destroy:n,deps:i,next:null},null===(t=oi.updateQueue)?(t={lastEffect:null},oi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function Si(e){return e={current:e},pi().memoizedState=e}function Ei(){return mi().memoizedState}function Ai(e,t,n,i){var r=pi();oi.flags|=e,r.memoizedState=wi(1|t,n,void 0,void 0===i?null:i)}function Ti(e,t,n,i){var r=mi();i=void 0===i?null:i;var o=void 0;if(null!==ai){var a=ai.memoizedState;if(o=a.destroy,null!==i&&di(i,a.deps))return void wi(t,n,o,i)}oi.flags|=e,r.memoizedState=wi(1|t,n,o,i)}function Ii(e,t){return Ai(516,4,e,t)}function Mi(e,t){return Ti(516,4,e,t)}function Ci(e,t){return Ti(4,2,e,t)}function Ni(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 Oi(e,t,n){return n=null!=n?n.concat([e]):null,Ti(4,2,Ni.bind(null,t,e),n)}function Ri(){}function Li(e,t){var n=mi();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&di(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function Pi(e,t){var n=mi();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&di(t,i[1])?i[0]:(e=e(),n.memoizedState=[e,t],e)}function Di(e,t){var n=Vt();qt(98>n?98:n,(function(){e(!0)})),qt(97<n?97:n,(function(){var n=ii.transition;ii.transition=1;try{e(!1),t()}finally{ii.transition=n}}))}function ki(e,t,n){var i=Bo(),r=Fo(e),o={lane:r,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===oi||null!==a&&a===oi)ci=li=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=a(s,n);if(o.eagerReducer=a,o.eagerState=l,Xt(l,s))return}catch(e){}Uo(e,r,i)}}var Bi={readContext:hn,useCallback:ui,useContext:ui,useEffect:ui,useImperativeHandle:ui,useLayoutEffect:ui,useMemo:ui,useReducer:ui,useRef:ui,useState:ui,useDebugValue:ui,useDeferredValue:ui,useTransition:ui,useMutableSource:ui,useOpaqueIdentifier:ui,unstable_isNewReconciler:!1},Fi={readContext:hn,useCallback:function(e,t){return pi().memoizedState=[e,void 0===t?null:t],e},useContext:hn,useEffect:Ii,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ai(4,2,Ni.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ai(4,2,e,t)},useMemo:function(e,t){var n=pi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=pi();return t=void 0!==n?n(t):t,i.memoizedState=i.baseState=t,e=(e=i.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ki.bind(null,oi,e),[i.memoizedState,e]},useRef:Si,useState:xi,useDebugValue:Ri,useDeferredValue:function(e){var t=xi(e),n=t[0],i=t[1];return Ii((function(){var t=ii.transition;ii.transition=1;try{i(e)}finally{ii.transition=t}}),[e]),n},useTransition:function(){var e=xi(!1),t=e[0];return Si(e=Di.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var i=pi();return i.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},_i(i,e,t,n)},useOpaqueIdentifier:function(){if($n){var e=!1,t=ee((function(){throw e||(e=!0,n(te())),Error(s(355))})),n=xi(t)[1];return 0==(2&oi.mode)&&(oi.flags|=516,wi(5,(function(){n(te())}),void 0,null)),t}return xi(t=te()),t},unstable_isNewReconciler:!1},Ui={readContext:hn,useCallback:Li,useContext:hn,useEffect:Mi,useImperativeHandle:Oi,useLayoutEffect:Ci,useMemo:Pi,useReducer:gi,useRef:Ei,useState:function(){return gi(fi)},useDebugValue:Ri,useDeferredValue:function(e){var t=gi(fi),n=t[0],i=t[1];return Mi((function(){var t=ii.transition;ii.transition=1;try{i(e)}finally{ii.transition=t}}),[e]),n},useTransition:function(){var e=gi(fi)[0];return[Ei().current,e]},useMutableSource:bi,useOpaqueIdentifier:function(){return gi(fi)[0]},unstable_isNewReconciler:!1},zi={readContext:hn,useCallback:Li,useContext:hn,useEffect:Mi,useImperativeHandle:Oi,useLayoutEffect:Ci,useMemo:Pi,useReducer:vi,useRef:Ei,useState:function(){return vi(fi)},useDebugValue:Ri,useDeferredValue:function(e){var t=vi(fi),n=t[0],i=t[1];return Mi((function(){var t=ii.transition;ii.transition=1;try{i(e)}finally{ii.transition=t}}),[e]),n},useTransition:function(){var e=vi(fi)[0];return[Ei().current,e]},useMutableSource:bi,useOpaqueIdentifier:function(){return vi(fi)[0]},unstable_isNewReconciler:!1},Gi=l.ReactCurrentOwner,ji=!1;function Hi(e,t,n,i){t.child=null===e?Ln(t,null,n,i):Rn(t,e.child,n,i)}function Vi(e,t,n,i,r){n=n.render;var o=t.ref;return dn(t,r),i=hi(e,t,n,i,o,r),null===e||ji?(t.flags|=1,Hi(e,t,i,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~r,dr(e,t,r))}function Wi(e,t,n,i,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Sa(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Aa(n.type,null,i,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,qi(e,t,a,i,r,o))}return a=e.child,0==(r&o)&&(r=a.memoizedProps,(n=null!==(n=n.compare)?n:Qt)(r,i)&&e.ref===t.ref)?dr(e,t,o):(t.flags|=1,(e=Ea(a,i)).ref=t.ref,e.return=t,t.child=e)}function qi(e,t,n,i,r,o){if(null!==e&&Qt(e.memoizedProps,i)&&e.ref===t.ref){if(ji=!1,0==(o&r))return t.lanes=e.lanes,dr(e,t,o);0!=(16384&e.flags)&&(ji=!0)}return Ji(e,t,n,i,o)}function $i(e,t,n){var i=t.pendingProps,r=i.children,o=null!==e?e.memoizedState:null;if("hidden"===i.mode||"unstable-defer-without-hiding"===i.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},$o(t,n);else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},$o(t,e),null;t.memoizedState={baseLanes:0},$o(t,null!==o?o.baseLanes:n)}else null!==o?(i=o.baseLanes|n,t.memoizedState=null):i=n,$o(t,i);return Hi(e,t,r,n),t.child}function Yi(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ji(e,t,n,i,r){var o=ot(n)?it:tt.current;return o=rt(t,o),dn(t,r),n=hi(e,t,n,i,o,r),null===e||ji?(t.flags|=1,Hi(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~r,dr(e,t,r))}function Zi(e,t,n,i,r){if(ot(n)){var o=!0;ct(t)}else o=!1;if(dn(t,r),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),An(t,n,i),In(t,n,i,r),i=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=hn(c):c=rt(t,c=ot(n)?it:tt.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==i||l!==c)&&Tn(t,a,i,c),pn=!1;var h=t.memoizedState;a.state=h,_n(t,i,a,r),l=t.memoizedState,s!==i||h!==l||nt.current||pn?("function"==typeof u&&(wn(t,n,u,i),l=t.memoizedState),(s=pn||En(t,n,s,i,h,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=i,t.memoizedState=l),a.props=i,a.state=l,a.context=c,i=s):("function"==typeof a.componentDidMount&&(t.flags|=4),i=!1)}else{a=t.stateNode,fn(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:tn(t.type,s),a.props=c,d=t.pendingProps,h=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=hn(l):l=rt(t,l=ot(n)?it:tt.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||h!==l)&&Tn(t,a,i,l),pn=!1,h=t.memoizedState,a.state=h,_n(t,i,a,r);var m=t.memoizedState;s!==d||h!==m||nt.current||pn?("function"==typeof p&&(wn(t,n,p,i),m=t.memoizedState),(c=pn||En(t,n,c,i,h,m,l))?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(i,m,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(i,m,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),t.memoizedProps=i,t.memoizedState=m),a.props=i,a.state=m,a.context=l,i=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),i=!1)}return Xi(e,t,n,i,o,r)}function Xi(e,t,n,i,r,o){Yi(e,t);var a=0!=(64&t.flags);if(!i&&!a)return r&&ut(t,n,!1),dr(e,t,o);i=t.stateNode,Gi.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:i.render();return t.flags|=1,null!==e&&a?(t.child=Rn(t,e.child,null,o),t.child=Rn(t,null,s,o)):Hi(e,t,s,o),t.memoizedState=i.state,r&&ut(t,n,!0),t.child}function Ki(e){var t=e.stateNode;t.pendingContext?st(0,t.pendingContext,t.pendingContext!==t.context):t.context&&st(0,t.context,!1),Un(e,t.containerInfo)}var Qi,er,tr,nr,ir={dehydrated:null,retryLane:0};function rr(e,t,n){var i,r=t.pendingProps,o=Hn.current,a=!1;return(i=0!=(64&t.flags))||(i=(null===e||null!==e.memoizedState)&&0!=(2&o)),i?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===r.fallback||!0===r.unstable_avoidThisFallback||(o|=1),Qe(Hn,1&o),null===e?(void 0!==r.fallback&&Zn(t),e=r.children,o=r.fallback,a?(e=or(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=ir,e):"number"==typeof r.unstable_expectedLoadTime?(e=or(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=ir,t.lanes=33554432,e):((n=Ia({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(r=sr(e,t,r.children,r.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=ir,r):(n=ar(e,t,r.children,n),t.memoizedState=null,n))}function or(e,t,n,i){var r=e.mode,o=e.child;return t={mode:"hidden",children:t},0==(2&r)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=Ia(t,r,0,null),n=Ta(n,r,i,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function ar(e,t,n,i){var r=e.child;return e=r.sibling,n=Ea(r,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=i),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function sr(e,t,n,i,r){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0==(2&o)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Ea(a,s),null!==e?i=Ea(e,i):(i=Ta(i,o,r,null)).flags|=2,i.return=t,n.return=t,n.sibling=i,t.child=n,i}function lr(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),un(e.return,t)}function cr(e,t,n,i,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=i,a.tail=n,a.tailMode=r,a.lastEffect=o)}function ur(e,t,n){var i=t.pendingProps,r=i.revealOrder,o=i.tail;if(Hi(e,t,i.children,n),0!=(2&(i=Hn.current)))i=1&i|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&lr(e,n);else if(19===e.tag)lr(e,n);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}i&=1}if(Qe(Hn,i),0==(2&t.mode))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===Vn(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),cr(t,!1,r,n,o,t.lastEffect);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===Vn(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}cr(t,!0,n,null,o,t.lastEffect);break;case"together":cr(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function dr(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),ho|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=Ea(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ea(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function hr(e){e.flags|=4}if(Z)Qi=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)G(e,n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},er=function(){},tr=function(e,t,n,i,r){if((e=e.memoizedProps)!==i){var o=t.stateNode,a=Fn(Dn.current);n=H(o,n,e,i,r,a),(t.updateQueue=n)&&hr(t)}},nr=function(e,t,n,i){n!==i&&hr(t)};else if(X){Qi=function(e,t,n,i){for(var r=t.child;null!==r;){if(5===r.tag){var o=r.stateNode;n&&i&&(o=Le(o,r.type,r.memoizedProps,r)),G(e,o)}else if(6===r.tag)o=r.stateNode,n&&i&&(o=Pe(o,r.memoizedProps,r)),G(e,o);else if(4!==r.tag){if(13===r.tag&&0!=(4&r.flags)&&(o=null!==r.memoizedState)){var a=r.child;if(null!==a&&(null!==a.child&&(a.child.return=a,Qi(e,a,!0,o)),null!==(o=a.sibling))){o.return=r,r=o;continue}}if(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}};var pr=function(e,t,n,i){for(var r=t.child;null!==r;){if(5===r.tag){var o=r.stateNode;n&&i&&(o=Le(o,r.type,r.memoizedProps,r)),Ne(e,o)}else if(6===r.tag)o=r.stateNode,n&&i&&(o=Pe(o,r.memoizedProps,r)),Ne(e,o);else if(4!==r.tag){if(13===r.tag&&0!=(4&r.flags)&&(o=null!==r.memoizedState)){var a=r.child;if(null!==a&&(null!==a.child&&(a.child.return=a,pr(e,a,!0,o)),null!==(o=a.sibling))){o.return=r,r=o;continue}}if(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}};er=function(e){var t=e.stateNode;if(null!==e.firstEffect){var n=t.containerInfo,i=Ce(n);pr(i,e,!1,!1),t.pendingChildren=i,hr(e),Oe(n,i)}},tr=function(e,t,n,i,r){var o=e.stateNode,a=e.memoizedProps;if((e=null===t.firstEffect)&&a===i)t.stateNode=o;else{var s=t.stateNode,l=Fn(Dn.current),c=null;a!==i&&(c=H(s,n,a,i,r,l)),e&&null===c?t.stateNode=o:(o=Me(o,c,n,a,i,t,e,s),j(o,n,i,r,l)&&hr(t),t.stateNode=o,e?hr(t):Qi(o,t,!1,!1))}},nr=function(e,t,n,i){n!==i?(e=Fn(Bn.current),n=Fn(Dn.current),t.stateNode=W(i,e,n,t),hr(t)):t.stateNode=e.stateNode}}else er=function(){},tr=function(){},nr=function(){};function mr(e,t){if(!$n)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;null!==n;)null!==n.alternate&&(i=n),n=n.sibling;null===i?t||null===e.tail?e.tail=null:e.tail.sibling=null:i.sibling=null}}function fr(e,t,n){var i=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return ot(t.type)&&at(),null;case 3:return zn(),Ke(nt),Ke(tt),ti(),(i=t.stateNode).pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(Kn(t)?hr(t):i.hydrate||(t.flags|=256)),er(t),null;case 5:jn(t);var r=Fn(Bn.current);if(n=t.type,null!==e&&null!=t.stateNode)tr(e,t,n,i,r),e.ref!==t.ref&&(t.flags|=128);else{if(!i){if(null===t.stateNode)throw Error(s(166));return null}if(e=Fn(Dn.current),Kn(t)){if(!K)throw Error(s(175));e=Ge(t.stateNode,t.type,t.memoizedProps,r,e,t),t.updateQueue=e,null!==e&&hr(t)}else{var o=z(n,i,r,e,t);Qi(o,t,!1,!1),t.stateNode=o,j(o,n,i,r,e)&&hr(t)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)nr(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(s(166));if(e=Fn(Bn.current),r=Fn(Dn.current),Kn(t)){if(!K)throw Error(s(176));je(t.stateNode,t.memoizedProps,t)&&hr(t)}else t.stateNode=W(i,e,r,t)}return null;case 13:return Ke(Hn),i=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(i=null!==i,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Kn(t):r=null!==e.memoizedState,i&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Hn.current)?0===lo&&(lo=3):(0!==lo&&3!==lo||(lo=4),null===io||0==(134217727&ho)&&0==(134217727&po)||Ho(io,oo))),X&&i&&(t.flags|=4),Z&&(i||r)&&(t.flags|=4),null);case 4:return zn(),er(t),null===e&&re(t.stateNode.containerInfo),null;case 10:return cn(t),null;case 19:if(Ke(Hn),null===(i=t.memoizedState))return null;if(r=0!=(64&t.flags),null===(o=i.rendering))if(r)mr(i,!1);else{if(0!==lo||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(o=Vn(e))){for(t.flags|=64,mr(i,!1),null!==(e=o.updateQueue)&&(t.updateQueue=e,t.flags|=4),null===i.lastEffect&&(t.firstEffect=null),t.lastEffect=i.lastEffect,e=n,i=t.child;null!==i;)n=e,(r=i).flags&=2,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null,null===(o=r.alternate)?(r.childLanes=0,r.lanes=n,r.child=null,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=o.childLanes,r.lanes=o.lanes,r.child=o.child,r.memoizedProps=o.memoizedProps,r.memoizedState=o.memoizedState,r.updateQueue=o.updateQueue,r.type=o.type,n=o.dependencies,r.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext}),i=i.sibling;return Qe(Hn,1&Hn.current|2),t.child}e=e.sibling}null!==i.tail&&Ht()>vo&&(t.flags|=64,r=!0,mr(i,!1),t.lanes=33554432)}else{if(!r)if(null!==(e=Vn(o))){if(t.flags|=64,r=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),mr(i,!0),null===i.tail&&"hidden"===i.tailMode&&!o.alternate&&!$n)return null!==(t=t.lastEffect=i.lastEffect)&&(t.nextEffect=null),null}else 2*Ht()-i.renderingStartTime>vo&&1073741824!==n&&(t.flags|=64,r=!0,mr(i,!1),t.lanes=33554432);i.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=i.last)?e.sibling=o:t.child=o,i.last=o)}return null!==i.tail?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.lastEffect=t.lastEffect,i.renderingStartTime=Ht(),e.sibling=null,t=Hn.current,Qe(Hn,r?1&t|2:1&t),e):null;case 23:case 24:return Yo(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==i.mode&&(t.flags|=4),null}throw Error(s(156,t.tag))}function gr(e){switch(e.tag){case 1:ot(e.type)&&at();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(zn(),Ke(nt),Ke(tt),ti(),0!=(64&(t=e.flags)))throw Error(s(285));return e.flags=-4097&t|64,e;case 5:return jn(e),null;case 13:return Ke(Hn),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return Ke(Hn),null;case 4:return zn(),null;case 10:return cn(e),null;case 23:case 24:return Yo(),null;default:return null}}function vr(e,t){try{var n="",i=t;do{n+=en(i),i=i.return}while(i);var r=n}catch(e){r="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:r}}function yr(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var _r="function"==typeof WeakMap?WeakMap:Map;function br(e,t,n){(n=gn(-1,n)).tag=3,n.payload={element:null};var i=t.value;return n.callback=function(){xo||(xo=!0,wo=i),yr(0,t)},n}function xr(e,t,n){(n=gn(-1,n)).tag=3;var i=e.type.getDerivedStateFromError;if("function"==typeof i){var r=t.value;n.payload=function(){return yr(0,t),i(r)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof i&&(null===So?So=new Set([this]):So.add(this),yr(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var wr="function"==typeof WeakSet?WeakSet:Set;function Sr(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){da(e,t)}else t.current=null}function Er(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,i=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:tn(t.type,n),i),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(Z&&256&t.flags&&Ie(t.stateNode.containerInfo))}throw Error(s(163))}function Ar(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var i=n.destroy;n.destroy=void 0,void 0!==i&&i()}n=n.next}while(n!==t)}}function Tr(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var i=e.create;e.destroy=i()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var r=e;i=r.next,0!=(4&(r=r.tag))&&0!=(1&r)&&(la(n,e),sa(n,e)),e=i}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(i=n.elementType===n.type?t.memoizedProps:tn(n.type,t.memoizedProps),e.componentDidUpdate(i,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&bn(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=D(n.child.stateNode);break;case 1:e=n.child.stateNode}bn(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&ge(e,n.type,n.memoizedProps,n));case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(K&&null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&We(n)))))}throw Error(s(163))}function Ir(e,t){if(Z)for(var n=e;;){if(5===n.tag){var i=n.stateNode;t?Se(i):Ae(n.stateNode,n.memoizedProps)}else if(6===n.tag)i=n.stateNode,t?Ee(i):Te(i,n.memoizedProps);else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Mr(e,t){if(ht&&"function"==typeof ht.onCommitFiberUnmount)try{ht.onCommitFiberUnmount(dt,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var i=n,r=i.destroy;if(i=i.tag,void 0!==r)if(0!=(4&i))la(t,n);else{i=t;try{r()}catch(e){da(i,e)}}n=n.next}while(n!==e)}break;case 1:if(Sr(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){da(t,e)}break;case 5:Sr(t);break;case 4:Z?Dr(e,t):X&&X&&(t=t.stateNode.containerInfo,e=Ce(t),Re(t,e))}}function Cr(e,t){for(var n=t;;)if(Mr(e,n),null===n.child||Z&&4===n.tag){if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}else n.child.return=n,n=n.child}function Nr(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Or(e){return 5===e.tag||3===e.tag||4===e.tag}function Rr(e){if(Z){e:{for(var t=e.return;null!==t;){if(Or(t))break e;t=t.return}throw Error(s(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var i=!1;break;case 3:case 4:t=t.containerInfo,i=!0;break;default:throw Error(s(161))}16&n.flags&&(we(t),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Or(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}i?Lr(e,n,t):Pr(e,n,t)}}function Lr(e,t,n){var i=e.tag,r=5===i||6===i;if(r)e=r?e.stateNode:e.stateNode.instance,t?_e(n,e,t):me(n,e);else if(4!==i&&null!==(e=e.child))for(Lr(e,t,n),e=e.sibling;null!==e;)Lr(e,t,n),e=e.sibling}function Pr(e,t,n){var i=e.tag,r=5===i||6===i;if(r)e=r?e.stateNode:e.stateNode.instance,t?ye(n,e,t):pe(n,e);else if(4!==i&&null!==(e=e.child))for(Pr(e,t,n),e=e.sibling;null!==e;)Pr(e,t,n),e=e.sibling}function Dr(e,t){for(var n,i,r=t,o=!1;;){if(!o){o=r.return;e:for(;;){if(null===o)throw Error(s(160));switch(n=o.stateNode,o.tag){case 5:i=!1;break e;case 3:case 4:n=n.containerInfo,i=!0;break e}o=o.return}o=!0}if(5===r.tag||6===r.tag)Cr(e,r),i?xe(n,r.stateNode):be(n,r.stateNode);else if(4===r.tag){if(null!==r.child){n=r.stateNode.containerInfo,i=!0,r.child.return=r,r=r.child;continue}}else if(Mr(e,r),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;4===(r=r.return).tag&&(o=!1)}r.sibling.return=r.return,r=r.sibling}}function kr(e,t){if(Z){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Ar(3,t);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var i=t.memoizedProps;e=null!==e?e.memoizedProps:i;var r=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&ve(n,o,r,e,i,t)}return;case 6:if(null===t.stateNode)throw Error(s(162));return n=t.memoizedProps,void fe(t.stateNode,null!==e?e.memoizedProps:n,n);case 3:return void(K&&(t=t.stateNode,t.hydrate&&(t.hydrate=!1,Ve(t.containerInfo))));case 13:return Br(t),void Fr(t);case 19:return void Fr(t);case 23:case 24:return void Ir(t,null!==t.memoizedState)}throw Error(s(163))}switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Ar(3,t);case 12:case 23:case 24:return;case 13:return Br(t),void Fr(t);case 19:return void Fr(t);case 3:K&&((n=t.stateNode).hydrate&&(n.hydrate=!1,Ve(n.containerInfo)))}e:if(X){switch(t.tag){case 1:case 5:case 6:case 20:break e;case 3:case 4:t=t.stateNode,Re(t.containerInfo,t.pendingChildren);break e}throw Error(s(163))}}function Br(e){null!==e.memoizedState&&(go=Ht(),Z&&Ir(e.child,!0))}function Fr(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new wr),t.forEach((function(t){var i=pa.bind(null,e,t);n.has(t)||(n.add(t),t.then(i,i))}))}}function Ur(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var zr=0,Gr=1,jr=2,Hr=3,Vr=4;if("function"==typeof Symbol&&Symbol.for){var Wr=Symbol.for;zr=Wr("selector.component"),Gr=Wr("selector.has_pseudo_class"),jr=Wr("selector.role"),Hr=Wr("selector.test_id"),Vr=Wr("selector.text")}function qr(e){var t=Q(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw Error(s(364));return t}if(null===(e=ae(e)))throw Error(s(362));return e.stateNode.current}function $r(e,t){switch(t.$$typeof){case zr:if(e.type===t.value)return!0;break;case Gr:e:{t=t.value,e=[e,0];for(var n=0;n<e.length;){var i=e[n++],r=e[n++],o=t[r];if(5!==i.tag||!ce(i)){for(;null!=o&&$r(i,o);)o=t[++r];if(r===t.length){t=!0;break e}for(i=i.child;null!==i;)e.push(i,r),i=i.sibling}}t=!1}return t;case jr:if(5===e.tag&&ue(e.stateNode,t.value))return!0;break;case Vr:if((5===e.tag||6===e.tag)&&null!==(e=le(e))&&0<=e.indexOf(t.value))return!0;break;case Hr:if(5===e.tag&&("string"==typeof(e=e.memoizedProps["data-testname"])&&e.toLowerCase()===t.value.toLowerCase()))return!0;break;default:throw Error(s(365,t))}return!1}function Yr(e){switch(e.$$typeof){case zr:return"<"+(M(e.value)||"Unknown")+">";case Gr:return":has("+(Yr(e)||"")+")";case jr:return'[role="'+e.value+'"]';case Vr:return'"'+e.value+'"';case Hr:return'[data-testname="'+e.value+'"]';default:throw Error(s(365,e))}}function Jr(e,t){var n=[];e=[e,0];for(var i=0;i<e.length;){var r=e[i++],o=e[i++],a=t[o];if(5!==r.tag||!ce(r)){for(;null!=a&&$r(r,a);)a=t[++o];if(o===t.length)n.push(r);else for(r=r.child;null!==r;)e.push(r,o),r=r.sibling}}return n}function Zr(e,t){if(!oe)throw Error(s(363));e=Jr(e=qr(e),t),t=[],e=Array.from(e);for(var n=0;n<e.length;){var i=e[n++];if(5===i.tag)ce(i)||t.push(i.stateNode);else for(i=i.child;null!==i;)e.push(i),i=i.sibling}return t}var Xr=null;var Kr=Math.ceil,Qr=l.ReactCurrentDispatcher,eo=l.ReactCurrentOwner,to=l.IsSomeRendererActing,no=0,io=null,ro=null,oo=0,ao=0,so=Xe(0),lo=0,co=null,uo=0,ho=0,po=0,mo=0,fo=null,go=0,vo=1/0;function yo(){vo=Ht()+500}var _o,bo=null,xo=!1,wo=null,So=null,Eo=!1,Ao=null,To=90,Io=[],Mo=[],Co=null,No=0,Oo=null,Ro=-1,Lo=0,Po=0,Do=null,ko=!1;function Bo(){return 0!=(48&no)?Ht():-1!==Ro?Ro:Ro=Ht()}function Fo(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Vt()?1:2;if(0===Lo&&(Lo=uo),0!==Zt.transition){0!==Po&&(Po=null!==fo?fo.pendingLanes:0),e=Lo;var t=4186112&~Po;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Vt(),0!=(4&no)&&98===e?e=yt(12,Lo):e=yt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),Lo),e}function Uo(e,t,n){if(50<No)throw No=0,Oo=null,Error(s(185));if(null===(e=zo(e,t)))return null;xt(e,t,n),e===io&&(po|=t,4===lo&&Ho(e,oo));var i=Vt();1===t?0!=(8&no)&&0==(48&no)?Vo(e):(Go(e,n),0===no&&(yo(),Yt())):(0==(4&no)||98!==i&&99!==i||(null===Co?Co=new Set([e]):Co.add(e)),Go(e,n)),fo=e}function zo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function Go(e,t){for(var n=e.callbackNode,i=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var l=31-wt(a),c=1<<l,u=o[l];if(-1===u){if(0==(c&i)||0!=(c&r)){u=t,ft(c);var d=mt;o[l]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);a&=~c}if(i=gt(e,e===io?oo:0),t=mt,0===i)null!==n&&(n!==Bt&&It(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Bt&&It(n)}15===t?(n=Vo.bind(null,e),null===Ut?(Ut=[n],zt=Tt(Rt,Jt)):Ut.push(n),n=Bt):14===t?n=$t(99,Vo.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(s(358,e))}}(t),n=$t(n,jo.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function jo(e){if(Ro=-1,Po=Lo=0,0!=(48&no))throw Error(s(327));var t=e.callbackNode;if(aa()&&e.callbackNode!==t)return null;var n=gt(e,e===io?oo:0);if(0===n)return null;var i=n,r=no;no|=16;var o=Xo();for(io===e&&oo===i||(yo(),Jo(e,i));;)try{ea();break}catch(t){Zo(e,t)}if(sn(),Qr.current=o,no=r,null!==ro?i=0:(io=null,oo=0,i=lo),0!=(uo&po))Jo(e,0);else if(0!==i){if(2===i&&(no|=64,e.hydrate&&(e.hydrate=!1,Ie(e.containerInfo)),0!==(n=vt(e))&&(i=Ko(e,n))),1===i)throw t=co,Jo(e,0),Ho(e,n),Go(e,Ht()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,i){case 0:case 1:throw Error(s(345));case 2:case 5:ia(e);break;case 3:if(Ho(e,n),(62914560&n)===n&&10<(i=go+500-Ht())){if(0!==gt(e,0))break;if(((r=e.suspendedLanes)&n)!==n){Bo(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=q(ia.bind(null,e),i);break}ia(e);break;case 4:if(Ho(e,n),(4186112&n)===n)break;for(i=e.eventTimes,r=-1;0<n;){var a=31-wt(n);o=1<<a,(a=i[a])>r&&(r=a),n&=~o}if(n=r,10<(n=(120>(n=Ht()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Kr(n/1960))-n)){e.timeoutHandle=q(ia.bind(null,e),n);break}ia(e);break;default:throw Error(s(329))}}return Go(e,Ht()),e.callbackNode===t?jo.bind(null,e):null}function Ho(e,t){for(t&=~mo,t&=~po,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-wt(t),i=1<<n;e[n]=-1,t&=~i}}function Vo(e){if(0!=(48&no))throw Error(s(327));if(aa(),e===io&&0!=(e.expiredLanes&oo)){var t=oo,n=Ko(e,t);0!=(uo&po)&&(n=Ko(e,t=gt(e,t)))}else n=Ko(e,t=gt(e,0));if(0!==e.tag&&2===n&&(no|=64,e.hydrate&&(e.hydrate=!1,Ie(e.containerInfo)),0!==(t=vt(e))&&(n=Ko(e,t))),1===n)throw n=co,Jo(e,0),Ho(e,t),Go(e,Ht()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,ia(e),Go(e,Ht()),null}function Wo(e,t){var n=no;no|=1;try{return e(t)}finally{0===(no=n)&&(yo(),Yt())}}function qo(e,t){var n=no;if(0!=(48&n))return e(t);no|=1;try{if(e)return qt(99,e.bind(null,t))}finally{no=n,Yt()}}function $o(e,t){Qe(so,ao),ao|=t,uo|=t}function Yo(){ao=so.current,Ke(so)}function Jo(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==Y&&(e.timeoutHandle=Y,$(n)),null!==ro)for(n=ro.return;null!==n;){var i=n;switch(i.tag){case 1:null!=(i=i.type.childContextTypes)&&at();break;case 3:zn(),Ke(nt),Ke(tt),ti();break;case 5:jn(i);break;case 4:zn();break;case 13:case 19:Ke(Hn);break;case 10:cn(i);break;case 23:case 24:Yo()}n=n.return}io=e,ro=Ea(e.current,null),oo=ao=uo=t,lo=0,co=null,mo=po=ho=0}function Zo(e,t){for(;;){var n=ro;try{if(sn(),ni.current=Bi,li){for(var i=oi.memoizedState;null!==i;){var r=i.queue;null!==r&&(r.pending=null),i=i.next}li=!1}if(ri=0,si=ai=oi=null,ci=!1,eo.current=null,null===n||null===n.return){lo=1,co=t,ro=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=oo,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l;if(0==(2&s.mode)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=0!=(1&Hn.current),h=a;do{var p;if(p=13===h.tag){var m=h.memoizedState;if(null!==m)p=null!==m.dehydrated;else{var f=h.memoizedProps;p=void 0!==f.fallback&&(!0!==f.unstable_avoidThisFallback||!d)}}if(p){var g=h.updateQueue;if(null===g){var v=new Set;v.add(c),h.updateQueue=v}else g.add(c);if(0==(2&h.mode)){if(h.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=gn(-1,1);y.tag=2,vn(s,y)}s.lanes|=1;break e}l=void 0,s=t;var _=o.pingCache;if(null===_?(_=o.pingCache=new _r,l=new Set,_.set(c,l)):void 0===(l=_.get(c))&&(l=new Set,_.set(c,l)),!l.has(s)){l.add(s);var b=ha.bind(null,o,c,s);c.then(b,b)}h.flags|=4096,h.lanes=t;break e}h=h.return}while(null!==h);l=Error((M(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==lo&&(lo=2),l=vr(l,s),h=a;do{switch(h.tag){case 3:o=l,h.flags|=4096,t&=-t,h.lanes|=t,yn(h,br(0,o,t));break e;case 1:o=l;var x=h.type,w=h.stateNode;if(0==(64&h.flags)&&("function"==typeof x.getDerivedStateFromError||null!==w&&"function"==typeof w.componentDidCatch&&(null===So||!So.has(w)))){h.flags|=4096,t&=-t,h.lanes|=t,yn(h,xr(h,o,t));break e}}h=h.return}while(null!==h)}na(n)}catch(e){t=e,ro===n&&null!==n&&(ro=n=n.return);continue}break}}function Xo(){var e=Qr.current;return Qr.current=Bi,null===e?Bi:e}function Ko(e,t){var n=no;no|=16;var i=Xo();for(io===e&&oo===t||Jo(e,t);;)try{Qo();break}catch(t){Zo(e,t)}if(sn(),no=n,Qr.current=i,null!==ro)throw Error(s(261));return io=null,oo=0,lo}function Qo(){for(;null!==ro;)ta(ro)}function ea(){for(;null!==ro&&!Mt();)ta(ro)}function ta(e){var t=_o(e.alternate,e,ao);e.memoizedProps=e.pendingProps,null===t?na(e):ro=t,eo.current=null}function na(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=fr(n,t,ao)))return void(ro=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&ao)||0==(4&n.mode)){for(var i=0,r=n.child;null!==r;)i|=r.lanes|r.childLanes,r=r.sibling;n.childLanes=i}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=gr(t)))return n.flags&=2047,void(ro=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(ro=t);ro=t=e}while(null!==t);0===lo&&(lo=5)}function ia(e){var t=Vt();return qt(99,ra.bind(null,e,t)),null}function ra(e,t){do{aa()}while(null!==Ao);if(0!=(48&no))throw Error(s(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(s(177));e.callbackNode=null;var i=n.lanes|n.childLanes,r=i,o=e.pendingLanes&~r;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=r,e.mutableReadLanes&=r,e.entangledLanes&=r,r=e.entanglements;for(var a=e.eventTimes,l=e.expirationTimes;0<o;){var c=31-wt(o),u=1<<c;r[c]=0,a[c]=-1,l[c]=-1,o&=~u}if(null!==Co&&0==(24&i)&&Co.has(e)&&Co.delete(e),e===io&&(ro=io=null,oo=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){r=no,no|=32,eo.current=null,Do=F(e.containerInfo),ko=!1,bo=i;do{try{oa()}catch(e){if(null===bo)throw Error(s(330));da(bo,e),bo=bo.nextEffect}}while(null!==bo);Do=null,bo=i;do{try{for(a=e;null!==bo;){var d=bo.flags;if(16&d&&Z&&we(bo.stateNode),128&d){var h=bo.alternate;if(null!==h){var p=h.ref;null!==p&&("function"==typeof p?p(null):p.current=null)}}switch(1038&d){case 2:Rr(bo),bo.flags&=-3;break;case 6:Rr(bo),bo.flags&=-3,kr(bo.alternate,bo);break;case 1024:bo.flags&=-1025;break;case 1028:bo.flags&=-1025,kr(bo.alternate,bo);break;case 4:kr(bo.alternate,bo);break;case 8:l=a,o=bo,Z?Dr(l,o):Cr(l,o);var m=o.alternate;Nr(o),null!==m&&Nr(m)}bo=bo.nextEffect}}catch(e){if(null===bo)throw Error(s(330));da(bo,e),bo=bo.nextEffect}}while(null!==bo);ko&&ie(),U(e.containerInfo),e.current=n,bo=i;do{try{for(d=e;null!==bo;){var f=bo.flags;if(36&f&&Tr(d,bo.alternate,bo),128&f){h=void 0;var g=bo.ref;if(null!==g){var v=bo.stateNode;if(5===bo.tag)h=D(v);else h=v;"function"==typeof g?g(h):g.current=h}}bo=bo.nextEffect}}catch(e){if(null===bo)throw Error(s(330));da(bo,e),bo=bo.nextEffect}}while(null!==bo);bo=null,Ft(),no=r}else e.current=n;if(Eo)Eo=!1,Ao=e,To=t;else for(bo=i;null!==bo;)t=bo.nextEffect,bo.nextEffect=null,8&bo.flags&&((f=bo).sibling=null,f.stateNode=null),bo=t;if(0===(i=e.pendingLanes)&&(So=null),1===i?e===Oo?No++:(No=0,Oo=e):No=0,n=n.stateNode,ht&&"function"==typeof ht.onCommitFiberRoot)try{ht.onCommitFiberRoot(dt,n,void 0,64==(64&n.current.flags))}catch(e){}if(Go(e,Ht()),xo)throw xo=!1,e=wo,wo=null,e;return 0!=(8&no)||Yt(),null}function oa(){for(;null!==bo;){var e=bo.alternate;ko||null===Do||(0!=(8&bo.flags)?L(bo,Do)&&(ko=!0,ne()):13===bo.tag&&Ur(e,bo)&&L(bo,Do)&&(ko=!0,ne()));var t=bo.flags;0!=(256&t)&&Er(e,bo),0==(512&t)||Eo||(Eo=!0,$t(97,(function(){return aa(),null}))),bo=bo.nextEffect}}function aa(){if(90!==To){var e=97<To?97:To;return To=90,qt(e,ca)}return!1}function sa(e,t){Io.push(t,e),Eo||(Eo=!0,$t(97,(function(){return aa(),null})))}function la(e,t){Mo.push(t,e),Eo||(Eo=!0,$t(97,(function(){return aa(),null})))}function ca(){if(null===Ao)return!1;var e=Ao;if(Ao=null,0!=(48&no))throw Error(s(331));var t=no;no|=32;var n=Mo;Mo=[];for(var i=0;i<n.length;i+=2){var r=n[i],o=n[i+1],a=r.destroy;if(r.destroy=void 0,"function"==typeof a)try{a()}catch(e){if(null===o)throw Error(s(330));da(o,e)}}for(n=Io,Io=[],i=0;i<n.length;i+=2){r=n[i],o=n[i+1];try{var l=r.create;r.destroy=l()}catch(e){if(null===o)throw Error(s(330));da(o,e)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return no=t,Yt(),!0}function ua(e,t,n){vn(e,t=br(0,t=vr(n,t),1)),t=Bo(),null!==(e=zo(e,1))&&(xt(e,1,t),Go(e,t))}function da(e,t){if(3===e.tag)ua(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){ua(n,e,t);break}if(1===n.tag){var i=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof i.componentDidCatch&&(null===So||!So.has(i))){var r=xr(n,e=vr(t,e),1);if(vn(n,r),r=Bo(),null!==(n=zo(n,1)))xt(n,1,r),Go(n,r);else if("function"==typeof i.componentDidCatch&&(null===So||!So.has(i)))try{i.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function ha(e,t,n){var i=e.pingCache;null!==i&&i.delete(t),t=Bo(),e.pingedLanes|=e.suspendedLanes&n,io===e&&(oo&n)===n&&(4===lo||3===lo&&(62914560&oo)===oo&&500>Ht()-go?Jo(e,0):mo|=n),Go(e,t)}function pa(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Vt()?1:2:(0===Lo&&(Lo=uo),0===(t=_t(62914560&~Lo))&&(t=4194304))),n=Bo(),null!==(e=zo(e,t))&&(xt(e,t,n),Go(e,n))}_o=function(e,t,n){var i=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||nt.current)ji=!0;else{if(0==(n&i)){switch(ji=!1,t.tag){case 3:Ki(t),Qn();break;case 5:Gn(t);break;case 1:ot(t.type)&&ct(t);break;case 4:Un(t,t.stateNode.containerInfo);break;case 10:ln(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?rr(e,t,n):(Qe(Hn,1&Hn.current),null!==(t=dr(e,t,n))?t.sibling:null);Qe(Hn,1&Hn.current);break;case 19:if(i=0!=(n&t.childLanes),0!=(64&e.flags)){if(i)return ur(e,t,n);t.flags|=64}var r=t.memoizedState;if(null!==r&&(r.rendering=null,r.tail=null,r.lastEffect=null),Qe(Hn,Hn.current),i)break;return null;case 23:case 24:return t.lanes=0,$i(e,t,n)}return dr(e,t,n)}ji=0!=(16384&e.flags)}else ji=!1;switch(t.lanes=0,t.tag){case 2:if(i=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,r=rt(t,tt.current),dn(t,n),r=hi(null,t,i,e,r,n),t.flags|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ot(i)){var o=!0;ct(t)}else o=!1;t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,mn(t);var a=i.getDerivedStateFromProps;"function"==typeof a&&wn(t,i,a,e),r.updater=Sn,t.stateNode=r,r._reactInternals=t,In(t,i,e,n),t=Xi(null,t,i,!0,o,n)}else t.tag=0,Hi(null,t,r,n),t=t.child;return t;case 16:r=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Sa(e)?1:0;if(null!=e){if((e=e.$$typeof)===g)return 11;if(e===_)return 14}return 2}(r),e=tn(r,e),o){case 0:t=Ji(null,t,r,e,n);break e;case 1:t=Zi(null,t,r,e,n);break e;case 11:t=Vi(null,t,r,e,n);break e;case 14:t=Wi(null,t,r,tn(r.type,e),i,n);break e}throw Error(s(306,r,""))}return t;case 0:return i=t.type,r=t.pendingProps,Ji(e,t,i,r=t.elementType===i?r:tn(i,r),n);case 1:return i=t.type,r=t.pendingProps,Zi(e,t,i,r=t.elementType===i?r:tn(i,r),n);case 3:if(Ki(t),i=t.updateQueue,null===e||null===i)throw Error(s(282));if(i=t.pendingProps,r=null!==(r=t.memoizedState)?r.element:null,fn(e,t),_n(t,i,null,n),(i=t.memoizedState.element)===r)Qn(),t=dr(e,t,n);else{if((o=(r=t.stateNode).hydrate)&&(K?(qn=ze(t.stateNode.containerInfo),Wn=t,o=$n=!0):o=!1),o){if(K&&null!=(e=r.mutableSourceEagerHydrationData))for(r=0;r<e.length;r+=2)o=e[r],a=e[r+1],J?o._workInProgressVersionPrimary=a:o._workInProgressVersionSecondary=a,ei.push(o);for(n=Ln(t,null,i,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Hi(e,t,i,n),Qn();t=t.child}return t;case 5:return Gn(t),null===e&&Zn(t),i=t.type,r=t.pendingProps,o=null!==e?e.memoizedProps:null,a=r.children,V(i,r)?a=null:null!==o&&V(i,o)&&(t.flags|=16),Yi(e,t),Hi(e,t,a,n),t.child;case 6:return null===e&&Zn(t),null;case 13:return rr(e,t,n);case 4:return Un(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=Rn(t,null,i,n):Hi(e,t,i,n),t.child;case 11:return i=t.type,r=t.pendingProps,Vi(e,t,i,r=t.elementType===i?r:tn(i,r),n);case 7:return Hi(e,t,t.pendingProps,n),t.child;case 8:case 12:return Hi(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,r=t.pendingProps,a=t.memoizedProps,ln(t,o=r.value),null!==a){var l=a.value;if(0===(o=Xt(l,o)?0:0|("function"==typeof i._calculateChangedBits?i._calculateChangedBits(l,o):1073741823))){if(a.children===r.children&&!nt.current){t=dr(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){a=l.child;for(var u=c.firstContext;null!==u;){if(u.context===i&&0!=(u.observedBits&o)){1===l.tag&&((u=gn(-1,n&-n)).tag=2,vn(l,u)),l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),un(l.return,n),c.lanes|=n;break}u=u.next}}else a=10===l.tag&&l.type===t.type?null:l.child;if(null!==a)a.return=l;else for(a=l;null!==a;){if(a===t){a=null;break}if(null!==(l=a.sibling)){l.return=a.return,a=l;break}a=a.return}l=a}}Hi(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,i=(o=t.pendingProps).children,dn(t,n),i=i(r=hn(r,o.unstable_observedBits)),t.flags|=1,Hi(e,t,i,n),t.child;case 14:return o=tn(r=t.type,t.pendingProps),Wi(e,t,r,o=tn(r.type,o),i,n);case 15:return qi(e,t,t.type,t.pendingProps,i,n);case 17:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:tn(i,r),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ot(i)?(e=!0,ct(t)):e=!1,dn(t,n),An(t,i,r),In(t,i,r,n),Xi(null,t,i,!0,e,n);case 19:return ur(e,t,n);case 23:case 24:return $i(e,t,n)}throw Error(s(156,t.tag))};var ma={current:!1},fa=a.unstable_flushAllWithoutAsserting,ga="function"==typeof fa;function va(){if(void 0!==fa)return fa();for(var e=!1;aa();)e=!0;return e}function ya(t){try{va(),function(t){if(null===Xr)try{var n=("require"+Math.random()).slice(0,7);Xr=(e&&e[n]).call(e,"timers").setImmediate}catch(e){Xr=function(e){var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}Xr(t)}((function(){va()?ya(t):t()}))}catch(e){t(e)}}var _a=0,ba=!1;function xa(e,t,n,i){this.tag=e,this.key=n,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=i,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function wa(e,t,n,i){return new xa(e,t,n,i)}function Sa(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ea(e,t){var n=e.alternate;return null===n?((n=wa(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Aa(e,t,n,i,r,o){var a=2;if(i=e,"function"==typeof e)Sa(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case d:return Ta(n.children,r,o,t);case w:a=8,r|=16;break;case h:a=8,r|=1;break;case p:return(e=wa(12,n,t,8|r)).elementType=p,e.type=p,e.lanes=o,e;case v:return(e=wa(13,n,t,r)).type=v,e.elementType=v,e.lanes=o,e;case y:return(e=wa(19,n,t,r)).elementType=y,e.lanes=o,e;case S:return Ia(n,r,o,t);case E:return(e=wa(24,n,t,r)).elementType=E,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case m:a=10;break e;case f:a=9;break e;case g:a=11;break e;case _:a=14;break e;case b:a=16,i=null;break e;case x:a=22;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=wa(a,n,t,r)).elementType=e,t.type=i,t.lanes=o,t}function Ta(e,t,n,i){return(e=wa(7,e,i,t)).lanes=n,e}function Ia(e,t,n,i){return(e=wa(23,e,i,t)).elementType=S,e.lanes=n,e}function Ma(e,t,n){return(e=wa(6,e,null,t)).lanes=n,e}function Ca(e,t,n){return(t=wa(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Na(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Y,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=bt(0),this.expirationTimes=bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bt(0),K&&(this.mutableSourceEagerHydrationData=null)}function Oa(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(s(188));throw Error(s(268,Object.keys(e)))}return null===(e=R(t))?null:e.stateNode}function Ra(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function La(e,t){Ra(e,t),(e=e.alternate)&&Ra(e,t)}function Pa(e){return null===(e=R(e))?null:e.stateNode}function Da(){return null}return n.IsThisRendererActing=ma,n.act=function(e){function t(){_a--,to.current=n,ma.current=i}!1===ba&&(ba=!0,console.error("act(...) is not supported in production builds of React, and might not behave as expected.")),_a++;var n=to.current,i=ma.current;to.current=!0,ma.current=!0;try{var r=Wo(e)}catch(e){throw t(),e}if(null!==r&&"object"==typeof r&&"function"==typeof r.then)return{then:function(e,i){r.then((function(){1<_a||!0===ga&&!0===n?(t(),e()):ya((function(n){t(),n?i(n):e()}))}),(function(e){t(),i(e)}))}};try{1!==_a||!1!==ga&&!1!==n||va(),t()}catch(e){throw t(),e}return{then:function(e){e()}}},n.attemptContinuousHydration=function(e){13===e.tag&&(Uo(e,67108864,Bo()),La(e,67108864))},n.attemptHydrationAtCurrentPriority=function(e){if(13===e.tag){var t=Bo(),n=Fo(e);Uo(e,n,t),La(e,n)}},n.attemptSynchronousHydration=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.hydrate){var n=ft(t.pendingLanes);t.expiredLanes|=n&t.pendingLanes,Go(t,Ht()),0==(48&no)&&(yo(),Yt())}break;case 13:var i=Bo();qo((function(){return Uo(e,1,i)})),La(e,4)}},n.attemptUserBlockingHydration=function(e){13===e.tag&&(Uo(e,4,Bo()),La(e,4))},n.batchedEventUpdates=function(e,t){var n=no;no|=2;try{return e(t)}finally{0===(no=n)&&(yo(),Yt())}},n.batchedUpdates=Wo,n.createComponentSelector=function(e){return{$$typeof:zr,value:e}},n.createContainer=function(e,t,n){return e=new Na(e,t,n),t=wa(3,null,null,2===t?7:1===t?3:0),e.current=t,t.stateNode=e,mn(t),e},n.createHasPsuedoClassSelector=function(e){return{$$typeof:Gr,value:e}},n.createPortal=function(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:u,key:null==i?null:""+i,children:e,containerInfo:t,implementation:n}},n.createRoleSelector=function(e){return{$$typeof:jr,value:e}},n.createTestNameSelector=function(e){return{$$typeof:Hr,value:e}},n.createTextSelector=function(e){return{$$typeof:Vr,value:e}},n.deferredUpdates=function(e){return qt(97,e)},n.discreteUpdates=function(e,t,n,i,r){var o=no;no|=4;try{return qt(98,e.bind(null,t,n,i,r))}finally{0===(no=o)&&(yo(),Yt())}},n.findAllNodes=Zr,n.findBoundingRects=function(e,t){if(!oe)throw Error(s(363));t=Zr(e,t),e=[];for(var n=0;n<t.length;n++)e.push(se(t[n]));for(t=e.length-1;0<t;t--)for(var i=(n=e[t]).x,r=i+n.width,o=n.y,a=o+n.height,l=t-1;0<=l;l--)if(t!==l){var c=e[l],u=c.x,d=u+c.width,h=c.y,p=h+c.height;if(i>=u&&o>=h&&r<=d&&a<=p){e.splice(t,1);break}if(!(i!==u||n.width!==c.width||p<o||h>a)){h>o&&(c.height+=h-o,c.y=o),p<a&&(c.height=a-h),e.splice(t,1);break}if(!(o!==h||n.height!==c.height||d<i||u>r)){u>i&&(c.width+=u-i,c.x=i),d<r&&(c.width=r-u),e.splice(t,1);break}}return e},n.findHostInstance=Oa,n.findHostInstanceWithNoPortals=function(e){return null===(e=function(e){if(!(e=O(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child&&4!==t.tag)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}(e))?null:20===e.tag?e.stateNode.instance:e.stateNode},n.findHostInstanceWithWarning=function(e){return Oa(e)},n.flushControlled=function(e){var t=no;no|=1;try{qt(99,e)}finally{0===(no=t)&&(yo(),Yt())}},n.flushDiscreteUpdates=function(){0==(49&no)&&(function(){if(null!==Co){var e=Co;Co=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,Go(e,Ht())}))}Yt()}(),aa())},n.flushPassiveEffects=aa,n.flushSync=qo,n.focusWithin=function(e,t){if(!oe)throw Error(s(363));for(t=Jr(e=qr(e),t),t=Array.from(t),e=0;e<t.length;){var n=t[e++];if(!ce(n)){if(5===n.tag&&de(n.stateNode))return!0;for(n=n.child;null!==n;)t.push(n),n=n.sibling}}return!1},n.getCurrentUpdateLanePriority=function(){return pt},n.getFindAllNodesFailureDescription=function(e,t){if(!oe)throw Error(s(363));var n=0,i=[];e=[qr(e),0];for(var r=0;r<e.length;){var o=e[r++],a=e[r++],l=t[a];if((5!==o.tag||!ce(o))&&($r(o,l)&&(i.push(Yr(l)),++a>n&&(n=a)),a<t.length))for(o=o.child;null!==o;)e.push(o,a),o=o.sibling}if(n<t.length){for(e=[];n<t.length;n++)e.push(Yr(t[n]));return"findAllNodes was able to match part of the selector:\n "+i.join(" > ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},n.getPublicRootInstance=function(e){return(e=e.current).child?5===e.child.tag?D(e.child.stateNode):e.child.stateNode:null},n.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:l.ReactCurrentDispatcher,findHostInstanceByFiber:Pa,findFiberByHostInstance:e.findFiberByHostInstance||Da,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null},"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t.isDisabled&&t.supportsFiber)try{dt=t.inject(e),ht=t}catch(e){}e=!0}return e},n.observeVisibleRects=function(e,t,n,i){if(!oe)throw Error(s(363));e=Zr(e,t);var r=he(e,n,i).disconnect;return{disconnect:function(){r()}}},n.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},n.runWithPriority=function(e,t){var n=pt;try{return pt=e,t()}finally{pt=n}},n.shouldSuspend=function(){return!1},n.unbatchedUpdates=function(e,t){var n=no;no&=-2,no|=8;try{return e(t)}finally{0===(no=n)&&(yo(),Yt())}},n.updateContainer=function(e,t,n,i){var r=t.current,o=Bo(),a=Fo(r);e:if(n){t:{if(C(n=n._reactInternals)!==n||1!==n.tag)throw Error(s(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(ot(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(s(171))}if(1===n.tag){var c=n.type;if(ot(c)){n=lt(n,c,l);break e}}n=l}else n=et;return null===t.context?t.context=n:t.pendingContext=n,(t=gn(o,a)).payload={element:e},null!==(i=void 0===i?null:i)&&(t.callback=i),vn(r,t),Uo(r,a,o),a},n}}));var a;a=o("9Hk4c");var s={};!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){console.error(e)}}(),s=o("bU6y3");var l,c=o("85Hg2");l=o("bG9xl")();const u=e=>e?new URL(e.startsWith("http")?e:`https://${e}`).origin:"https://engine.memori.ai";var d=o("dCyaf");const h=(e,n)=>t(d)(`${n.apiUrl}${e}`,{...n,body:(null==n?void 0:n.body)?JSON.stringify(n.body):void 0,mode:"cors",credentials:"include",headers:{"Content-Type":"application/json",...null==n?void 0:n.headers}}).then((e=>(null==n?void 0:n.text)?e.text():e.json())),p=async(e,n)=>{const i=(null==n?void 0:n.responseType)||"arrayBuffer";return t(d)(`${n.apiUrl}${e}`,{method:n.method||"GET",body:(null==n?void 0:n.body)?JSON.stringify(n.body):void 0,mode:"cors",credentials:"include",headers:{"Content-Type":"application/json",Accept:"application/octet-stream, application/zip",...null==n?void 0:n.headers}}).then((async e=>{if(!e.ok)throw new Error(`API responded with status: ${e.status}`);return"blob"===i?e.blob():e.arrayBuffer()}))};var m=e=>({getTenantPublicMemoriList:t=>h(`/TenantPublicMemori/${encodeURIComponent(t)}`,{apiUrl:e}),getTenantMetaverseMemoriList:t=>h(`/TenantMetaverseMemori/${encodeURIComponent(t)}`,{apiUrl:e}),getPublicMemoriList:t=>h(`/PublicMemori/${t}`,{apiUrl:e}),getAllMemori:t=>h(`/AllMemori/${t}`,{apiUrl:e}),getUserByIDMemoriList:(t,n,i)=>h(`/UserMemoriByID/${t}/${n}${i?`/${i}`:""}`,{apiUrl:e}),getUserMemoriList:(t,n,i)=>h(`/UserMemori/${t}/${n}${i?`/${i}`:""}`,{apiUrl:e}),getMemoriList:t=>h(`/Memori/${t}`,{apiUrl:e}),getSharedMemoriList:t=>h(`/SharedMemori/${t}`,{apiUrl:e}),getTenantCategories:t=>h(`/TenantMemoriCategories/${encodeURIComponent(t)}`,{apiUrl:e}),getMemoriConfigs:t=>h(`/MemoriConfigs/${t}`,{apiUrl:e}),createMemori:(t,n)=>h(`/Memori/${t}`,{apiUrl:e,body:n,method:"POST"}),updateMemori:(t,n)=>h(`/Memori/${t}/${n.memoriID}`,{apiUrl:e,body:n,method:"PATCH"}),deleteMemori:(t,n)=>h(`/Memori/${t}`,{apiUrl:e,body:n,method:"DELETE"}),getMemoriById:(t,n)=>h(`/Memori/${t}/${n}`,{apiUrl:e}),getMemoriByUserAndId:(t,n,i,r)=>h(`/MemoriById/${t}/${n}/${i}${r?`/${r}`:""}`,{apiUrl:e}),getMemori:(t,n,i,r)=>h(`/Memori/${encodeURIComponent(t)}/${encodeURIComponent(n)}/${encodeURIComponent(i)}/${null!=r?r:""}`,{apiUrl:e}),getMemoriSessions:(t,n,i,r)=>h(`/MemoriSessions/${t}/${n}${i?`/${i}`:""}${i&&r?`/${r}`:""}`,{apiUrl:e}),transferMemori:(t,n)=>h(`/TransferMemori/${t}`,{apiUrl:e,body:n,method:"POST"}),blockMemori:(t,n)=>h(`/MemoriBlock/${t}`,{apiUrl:e,body:n,method:"POST"}),unblockMemori:(t,n)=>h(`/MemoriBlock/${t}`,{apiUrl:e,body:n,method:"DELETE"}),getTenantPublicMemoriFiltered:(t,n)=>h(`/TenantPublicMemoriFiltered/${encodeURIComponent(t)}`,{apiUrl:e,body:n,method:"POST"}),getPublicMemoriFiltered:(t,n)=>h(`/PublicMemoriFiltered/${t}`,{apiUrl:e,body:n,method:"POST"}),getMemoriFiltered:(t,n)=>h(`/MemoriFiltered/${t}`,{apiUrl:e,body:n,method:"POST"}),getSharedMemoriFiltered:(t,n)=>h(`/SharedMemoriFiltered/${t}`,{apiUrl:e,body:n,method:"POST"}),getUserMemoriFiltered:(t,n,i,r)=>h(`/UserMemoriFiltered/${encodeURIComponent(t)}/${encodeURIComponent(n)}/${i}`,{apiUrl:e,body:r,method:"POST"}),getUserMemoriByIDFiltered:(t,n,i,r)=>h(`/UserMemoriByIDFiltered/${encodeURIComponent(t)}/${encodeURIComponent(n)}/${i}`,{apiUrl:e,body:r,method:"POST"}),getAllMemoriFiltered:(t,n)=>h(`/AllMemoriFiltered/${t}`,{apiUrl:e,body:n,method:"POST"})}),f=e=>({pwlUserLogin:t=>h("/PwlLogin",{apiUrl:e,body:{...t},method:"POST"}),pwlUserLogout:t=>h(`/PwlLogout/${t}`,{apiUrl:e,method:"POST"}),pwlGetCurrentUser:t=>h(`/PwlUser/${t}`,{apiUrl:e}),pwlGetUser:(t,n)=>h(`/PwlUser/${t}/${n}`,{apiUrl:e}),pwlGetUsersList:t=>h(`/PwlUsers/${t}`,{apiUrl:e}),pwlGetUsersListPaginated:(t,n)=>h(`/FilterPwlUsers/${t}`,{apiUrl:e,body:n,method:"POST"}),pwlDeleteUser:(t,n)=>h(`/PwlUser/${t}/${n}`,{apiUrl:e,method:"DELETE"}),pwlUpdateUser:(t,n,i)=>h(`/PwlUser/${t}/${n}`,{apiUrl:e,method:"PATCH",body:i}),pwlRecoverUsername:t=>h("/RecoverPwlUserName",{apiUrl:e,body:t,method:"POST"}),pwlCreateUser:(t,n)=>h(`/PwlUser/${t}`,{apiUrl:e,body:n,method:"POST"}),pwlLoginWithJWT:(t,n,i)=>h("/LoginWithJWT",{apiUrl:e,body:{jwtToken:t,tenant:n},headers:{"X-Memori-Trusted-App":i},method:"POST"}),loginWithOTP:t=>h("/LoginWithOTP",{apiUrl:e,method:"POST",body:{...t}}),validateOTPCode:(t,n,i,r)=>h("/ValidateOTPCode",{apiUrl:e,method:"POST",body:{userName:i,eMail:r,otpCode:t,tenant:n}}),refreshTemporarySession:t=>h("/RefreshTemporarySession",{apiUrl:e,body:t,method:"POST"})}),g=e=>({getMemoriIntegrationsList:(t,n)=>h(`/Integrations/${t}/${n}`,{apiUrl:e}),getAllIntegrationsList:t=>h(`/AllIntegrations/${t}`,{apiUrl:e}),getIntegration:(t,n)=>h(`/Integration/${t}/${n}`,{apiUrl:e}),deleteIntegration:(t,n)=>h(`/Integration/${t}/${n}`,{apiUrl:e,method:"DELETE"}),createIntegration:(t,n)=>h(`/Integration/${t}`,{apiUrl:e,method:"POST",body:n}),updateIntegration:(t,n,i)=>h(`/Integration/${t}/${n}`,{apiUrl:e,method:"PATCH",body:i})}),v=e=>({getUploadAssetURL:(t,n,i)=>`${e}/Asset/${t}${n?`/${n}`:""}${i?`/${i}`:""}`,uploadAsset:async(t,n,i,r,o)=>{const a=new FormData,s=await fetch(n),l=await s.blob();a.append(t,l,t);const c=await fetch(`${e}/Asset/${i}${r?`/${r}`:""}${o?`/${o}`:""}`,{method:"POST",body:a});return await c.json()},uploadAssetUnlogged:async(t,n,i,r)=>{const o=new FormData,a=await fetch(n),s=await a.blob();o.append(t,s,t);const l=await fetch(`${e}/Asset/unlogged/${i}/${r}`,{method:"POST",body:o});return await l.json()},getAsset:(t,n)=>h(`/Asset/${t}/${n}`,{apiUrl:e,method:"GET"}),getAssetList:t=>h(`/Assets/${t}`,{apiUrl:e,method:"GET"}),updateAsset:(t,n,i,r)=>h(`/Asset/${t}/${n.split("/").reverse()[0]}`,{apiUrl:e,method:"PATCH",body:{...i,remoteSessionCheck:null!=r&&r}}),deleteAsset:(t,n)=>h(`/Asset/${t}/${n.split("/").reverse()[0]}`,{apiUrl:e,method:"DELETE"})}),y=e=>({getSentInvitations:t=>h(`/SentInvitations/${t}`,{apiUrl:e}),getMemoriInvitations:(t,n)=>h(`/MemoriInvitations/${t}/${n}`,{apiUrl:e}),getReceivedInvitations:t=>h(`/ReceivedInvitations/${t}`,{apiUrl:e}),getAllInvitations:t=>h(`/AllInvitations/${t}`,{apiUrl:e}),getInvitation:(t,n)=>h(`/Invitation/${t}/${n}`,{apiUrl:e}),updateInvitation:(t,n)=>h(`/Invitation/${t}/${n.invitationID}`,{apiUrl:e,method:"PATCH",body:n}),deleteInvitation:(t,n)=>h(`/Invitation/${t}/${n}`,{apiUrl:e,method:"DELETE"}),acceptInvitation:(t,n)=>h(`/AcceptInvitation/${t}/${n}`,{apiUrl:e,method:"POST"}),rejectInvitation:(t,n)=>h(`/RejectInvitation/${t}/${n}`,{apiUrl:e,method:"POST"}),sendInvitation:(t,n)=>h(`/SendInvitation/${t}`,{apiUrl:e,method:"POST",body:n})}),_=e=>({getTenantConsumptionLogs:(t,n,i,r,o)=>h(`/TenantConsumptionLogs/${t}/${n}/${i}${r?`/${r}`:""}${r&&o?`/${o}`:""}`,{apiUrl:e}),getUserConsumptionLogs:(t,n,i,r,o)=>h(`/UserConsumptionLogs/${t}/${n}/${i}${r?`/${r}`:""}${r&&o?`/${o}`:""}`,{apiUrl:e}),getMemoriConsumptionLogs:(t,n,i,r,o)=>h(`/MemoriConsumptionLogs/${t}/${n}/${i}${r?`/${r}`:""}${r&&o?`/${o}`:""}`,{apiUrl:e})}),b=e=>({getTenantNotifications:t=>h(`/TenantNotifications/${t}`,{apiUrl:e}),getUserNotifications:t=>h(`/UserNotifications/${t}`,{apiUrl:e}),getChangelogNotifications:t=>h(`/ChangelogNotifications/${t}`,{apiUrl:e}),createNotification:(t,n)=>h(`/Notifications/${t}`,{apiUrl:e,method:"POST",body:n}),getNotification:(t,n)=>h(`/Notifications/${t}/${n}`,{apiUrl:e}),deleteNotification:(t,n)=>h(`/Notifications/${t}/${n}`,{apiUrl:e,method:"DELETE"}),listAllNotifications:(t,n="ACTIVE_AND_FUTURE")=>h(`/ListAllNotifications/${t}/${n}`,{apiUrl:e}),updateNotification:(t,n,i)=>h(`/Notifications/${t}/${n}`,{apiUrl:e,method:"PATCH",body:i})}),x=e=>({importCSV:async(t,n,i,r)=>h(`/ImportExport/ImportCSV/${t}/${n}`,{apiUrl:e,method:"POST",body:{rows:i,...r}}),importTXT:async(t,n,i,r)=>h(`/ImportExport/ImportTXT/${t}/${n}`,{apiUrl:e,method:"POST",body:{rows:i,...r}}),importDictionary:async(t,n,i,r)=>h(`/ImportExport/ImportDictionary/${t}/${n}`,{apiUrl:e,method:"POST",body:{rows:i,...r}}),importFunctionsIntents:async(t,n,i,r)=>h(`/ImportExport/ImportFunctionsIntents/${t}/${n}`,{apiUrl:e,method:"POST",body:{rows:i,...r}}),importMemori:async(t,n,i)=>h(`/ImportExport/ImportMemori/${t}`,{apiUrl:e,method:"POST",body:{rows:n,...i}}),exportCSV:async(t,n,i,r)=>h(`/ImportExport/ExportCSV/${t}/${n}`,{apiUrl:e,method:"POST",body:{csvSpecs:i,password:r},text:!0}),exportJSONL:async(t,n,i,r)=>h(`/ImportExport/ExportJSONL/${t}/${n}`,{apiUrl:e,method:"POST",body:{jsonlSpecs:i,password:r},text:!0}),exportMemori:async(t,n,i)=>p(`/ImportExport/ExportMemori/${t}/${n}`,{apiUrl:e,method:"POST",body:{password:i||""},responseType:"arrayBuffer"})}),w=e=>({getProcesses:async(t,n)=>h(`/Processes/${t}${n?`/${n}`:""}`,{apiUrl:e,method:"GET"}),getMemoriProcesses:async(t,n,i)=>h(`/MemoriProcesses/${t}/${n}${i?`/${i}`:""}`,{apiUrl:e,method:"GET"}),getProcessStatus:async(t,n)=>h(`/ProcessStatus/${t}/${n}`,{apiUrl:e,method:"GET"}),stopProcess:async(t,n)=>h(`/StopProcess/${t}/${n}`,{apiUrl:e,method:"POST"})}),S=e=>({analyzeUserQuery:async(t,n,i)=>h(`/Analysis/AnalyzeUserQuery/${t}/${n}`,{apiUrl:e,method:"POST",body:{...i}}),getUserQueryMatches:async(t,n,i,r,o)=>h(`/Analysis/UserQueryMatches/${t}/${n}/${i}/${r}${o?`/${o}`:""}`,{apiUrl:e,method:"GET"})}),E=e=>({getCompletionConfigs:(t,n)=>h(`/CompletionConfigs/${t}${n?`/${n}`:""}`,{apiUrl:e,method:"GET"}),getCompletionConfig:(t,n)=>h(`/CompletionConfig/${t}/${n}`,{apiUrl:e,method:"GET"}),updateCompletionConfig:(t,n)=>h(`/CompletionConfig/${t}/${n.completionConfigID}`,{apiUrl:e,method:"PATCH",body:n}),deleteCompletionConfig:(t,n)=>h(`/CompletionConfig/${t}/${n}`,{apiUrl:e,method:"DELETE"}),createCompletionConfig:(t,n)=>h(`/CompletionConfig/${t}`,{apiUrl:e,method:"POST",body:n})}),A=e=>({postOutcome:(t,n)=>h(`/Outcome/${t}/${n}`,{apiUrl:e,method:"POST"}),getUserBadges:t=>h(`/Badges/${t}`,{apiUrl:e}),getBadge:(t,n)=>h(`/Badge/${t}/${n}`,{apiUrl:e})}),T=e=>({healthCheck:()=>h("/HealthCheck",{apiUrl:e,method:"GET"}),getTenant:t=>h(`/Tenant/${t}`,{apiUrl:e}),getTenantAuthenticated:(t,n)=>h(`/Tenant/${n}/${t}`,{apiUrl:e}),getTenantList:t=>h(`/Tenants/${t}`,{apiUrl:e,method:"GET"}),createTenant:(t,n,i)=>h(`/Tenant/${t}/${n}`,{apiUrl:e,method:"POST",body:i}),patchTenant:(t,n,i)=>h(`/Tenant/${t}/${n}`,{apiUrl:e,method:"PATCH",body:i})}),I=e=>({createTrustedApplication:(t,n)=>h(`/TrustedApplication/${t}`,{apiUrl:e,body:n,method:"POST"}),getTrustedApplication:(t,n)=>h(`/TrustedApplication/${t}/${n}`,{apiUrl:e}),updateTrustedApplication:(t,n,i)=>h(`/TrustedApplication/${t}/${n}`,{apiUrl:e,method:"PATCH",body:i}),deleteTrustedApplication:(t,n)=>h(`/TrustedApplication/${t}/${n}`,{apiUrl:e,method:"DELETE"}),getTrustedApplicationsList:t=>h(`/TrustedApplications/${t}`,{apiUrl:e})});var M=e=>({asset:v(e),memori:m(e),user:f(e),userPwl:f(e),integration:g(e),invitation:y(e),consumptionLogs:_(e),notifications:b(e),importExport:x(e),process:w(e),analysis:S(e),completionConfig:E(e),badge:A(e),tenant:T(e),trustedApplication:I(e),...v(e),...m(e),...f(e),...g(e),...y(e),..._(e),...b(e),...x(e),...w(e),...S(e),...E(e),...A(e),...T(e),...I(e)}),C=e=>({getCorrelationPairs:async(t,n,i)=>h(`/CorrelationPairs/${t}${n?`/${n}${i?`/${i}`:""}`:""}`,{method:"GET",apiUrl:e}),postCorrelationPair:async(t,n)=>h(`/CorrelationPair/${t}`,{method:"POST",apiUrl:e,body:n}),deleteCorrelationPair:async(t,n)=>h(`/CorrelationPair/${t}/${n}`,{method:"DELETE",apiUrl:e})}),N=e=>({postTextEnteredEvent:async({sessionId:t,text:n})=>h(`/TextEnteredEvent/${t}`,{method:"POST",apiUrl:e,body:{text:n}}),postTextEnteredEventExtended:async({sessionId:t,text:n,questionsAndAnswersHistory:i})=>h(`/ExtendedTextEnteredEvent/${t}`,{method:"POST",apiUrl:e,body:{text:n,questionsAndAnswersHistory:i}}),postPlaceChangedEvent:async({sessionId:t,placeName:n,latitude:i,longitude:r,uncertaintyKm:o})=>h(`/PlaceChangedEvent/${t}`,{method:"POST",apiUrl:e,body:{placeName:n,latitude:i,longitude:r,uncertaintyKm:o}}),postDateChangedEvent:async(t,n)=>h(`/DateChangedEvent/${t}`,{method:"POST",apiUrl:e,body:{date:n}}),postTagChangedEvent:async(t,n)=>h(`/TagChangedEvent/${t}`,{method:"POST",apiUrl:e,body:{tag:n}}),postTimeoutEvent:async t=>h(`/TimeoutEvent/${t}`,{method:"POST",apiUrl:e}),postMediumSelectedEvent:async(t,n)=>h(`/MediumSelectedEvent/${t}`,{method:"POST",apiUrl:e,body:{medium:n}}),postMediumDeselectedEvent:async(t,n)=>h(`/MediumDeselectedEvent/${t}`,{method:"POST",apiUrl:e,body:{mediumID:n}}),postDateSelectedEvent:async t=>h(`/DateSelectedEvent/${t}`,{method:"GET",apiUrl:e}),postPlaceSelectedEvent:async t=>h(`/PlaceSelectedEvent/${t}`,{method:"GET",apiUrl:e}),postTagSelectedEvent:async t=>h(`/TagSelectedEvent/${t}`,{method:"GET",apiUrl:e})}),O=e=>({getIntents:async t=>h(`/Intents/${t}`,{method:"GET",apiUrl:e}),getIntent:async(t,n)=>h(`/Intent/${t}/${n}`,{method:"GET",apiUrl:e}),patchIntent:async(t,n)=>h(`/Intent/${t}/${n.intentID}`,{method:"PATCH",apiUrl:e,body:n}),deleteIntent:async(t,n)=>h(`/Intent/${t}/${n}`,{method:"DELETE",apiUrl:e}),createIntent:async(t,n)=>h(`/Intent/${t}`,{method:"POST",apiUrl:e,body:n}),getIntentSlots:async t=>h(`/IntentSlots/${t}`,{method:"GET",apiUrl:e}),getIntentSlot:async(t,n)=>h(`/IntentSlot/${t}/${n}`,{method:"GET",apiUrl:e}),patchIntentSlot:async(t,n)=>h(`/IntentSlot/${t}/${n.intentSlotID}`,{method:"PATCH",apiUrl:e,body:n}),deleteIntentSlot:async(t,n)=>h(`/IntentSlot/${t}/${n}`,{method:"DELETE",apiUrl:e}),createIntentSlot:async(t,n)=>h(`/IntentSlot/${t}`,{method:"POST",apiUrl:e,body:n})}),R=e=>({getLocalizationKeys:async t=>h(`/LocalizationKeys/${t}`,{method:"GET",apiUrl:e}),getLocalizationKey:async(t,n)=>h(`/LocalizationKey/${t}/${n}`,{method:"GET",apiUrl:e}),deleteLocalizationKey:async(t,n)=>h(`/LocalizationKey/${t}/${n}`,{method:"DELETE",apiUrl:e}),postLocalizationKey:async(t,n)=>h(`/LocalizationKey/${t}`,{method:"POST",apiUrl:e,body:n}),patchLocalizationKey:async(t,n)=>h(`/LocalizationKey/${t}`,{method:"PATCH",apiUrl:e,body:n})}),P=e=>({getMedia:async(t,n)=>h(`/Media/${t}/${n}`,{method:"GET",apiUrl:e}),deleteMedia:async(t,n)=>h(`/Media/${t}/${n}`,{method:"DELETE",apiUrl:e}),getMedium:async(t,n,i)=>h(`/Medium/${t}/${n}/${i}`,{method:"GET",apiUrl:e}),patchMedium:async(t,n,i)=>h(`/Medium/${t}/${n}/${i}`,{method:"GET",apiUrl:e}),deleteMedium:(t,n,i)=>h(`/Medium/${t}/${n}/${i}`,{method:"GET",apiUrl:e}),postMedium:async(t,n)=>h(`/Medium/${t}/${n}`,{method:"GET",apiUrl:e})}),D=e=>({getMemories:async(t,n)=>h(`/Memories/${t}${n?`/${n}`:""}`,{method:"GET",apiUrl:e}),getMemoriesPaginated:async(t,n,i,r)=>h(`/Memories/${t}/${n}/${i}${r?`/${r}`:""}`,{method:"GET",apiUrl:e}),getMemory:async(t,n)=>h(`/Memory/${t}/${n}`,{method:"GET",apiUrl:e}),patchMemory:async(t,n)=>h(`/Memory/${t}/${n.memoryID}`,{method:"PATCH",apiUrl:e,body:n}),deleteMemory:async(t,n)=>h(`/Memory/${t}/${n}`,{method:"DELETE",apiUrl:e}),postMemory:async(t,n)=>h(`/Memory/${t}`,{method:"POST",apiUrl:e,body:n}),getMemoryAccess:async(t,n)=>h(`/MemoryAccess/${t}/${n}`,{method:"GET",apiUrl:e})}),k=e=>({getWordVector:async(t,n)=>h(`/WordVector/${t}/${n}`,{method:"GET",apiUrl:e}),getSimilarWords:async(t,n)=>h(`/SimilarWords/${t}/${n}`,{method:"GET",apiUrl:e}),guessLanguage:async(t,n)=>h(`/GuessLanguage/${t}`,{method:"POST",apiUrl:e,body:{text:n}}),computeSimilarity:async(t,n,i,r,o)=>h(`/ComputeSimilarity/${t}`,{method:"POST",apiUrl:e,body:{referenceText:n,referenceTextType:i,comparisonText:r,comparisonTextType:o}}),checkWords:async(t,n)=>h(`/CheckWords/${t}`,{method:"POST",apiUrl:e,body:{text:n}}),suggestAnswer:async(t,n)=>h(`/SuggestAnswer/${t}`,{method:"POST",apiUrl:e,body:{text:n}}),suggestTags:async(t,n,i,r)=>h(`/SuggestTags/${t}`,{method:"POST",apiUrl:e,body:{question:n,answer:i,questionVariants:r}}),suggestQuestions:async(t,n)=>h(`/SuggestQuestions/${t}`,{method:"POST",apiUrl:e,body:{text:n}})}),B=e=>({getPeople:async t=>h(`/People/${t}`,{method:"GET",apiUrl:e}),getPerson:async(t,n)=>h(`/Person/${t}/${n}`,{method:"GET",apiUrl:e}),patchPerson:async(t,n)=>h(`/Person/${t}/${n.personID}`,{method:"PATCH",body:n,apiUrl:e}),deletePerson:async(t,n)=>h(`/Person/${t}/${n}`,{method:"DELETE",apiUrl:e}),postPerson:async(t,n)=>h(`/Person/${t}`,{method:"POST",body:n,apiUrl:e})}),F=e=>({searchMemory:async(t,n)=>h(`/Search/${t}`,{method:"POST",body:n,apiUrl:e}),searchMemoryPaginated:async(t,n,i,r)=>h(`/Search/${t}/${n}/${i}`,{method:"POST",body:r,apiUrl:e}),filterMemories:async(t,n)=>h(`/FilterMemories/${t}`,{method:"POST",body:n,apiUrl:e}),filterMemoriesPaginated:async(t,n,i,r)=>h(`/FilterMemories/${t}/${n}/${i}`,{method:"POST",body:r,apiUrl:e}),getRandomMemory:async(t,n)=>h(`/Random/${t}`,{method:"POST",body:n,apiUrl:e}),getHints:async(t,n)=>h(`/Hints/${t}`,{method:"POST",body:n,apiUrl:e}),getMemoryTags:async t=>h(`/MemoryTags/${t}`,{method:"GET",apiUrl:e})}),U=e=>({initSession:async(t,n)=>h("/Session",{method:"POST",body:t,headers:n?{"User-Agent":n}:void 0,apiUrl:e}),getSession:async t=>h(`/Session/${t}`,{method:"GET",apiUrl:e}),deleteSession:async t=>h(`/Session/${t}`,{method:"DELETE",apiUrl:e})}),z=e=>({getTextQualityIndexes:async(t,n)=>h(`/TextQualityIndexes/${t}${n?`/${n}`:""}`,{method:"GET",apiUrl:e}),getEventLogs:async(t,n,i)=>h(`/EventLogs/${t}/${n}/${i}`,{method:"GET",apiUrl:e}),getMemoryEventLogs:async(t,n,i,r)=>h(`/EventLogs/${t}/${n}/${i}/${r}`,{method:"GET",apiUrl:e}),getIntentEventLogs:async(t,n,i,r)=>h(`/EventLogs/${t}/${n}/${i}/${r}`,{method:"GET",apiUrl:e}),getSessionEventLogs:async(t,n)=>h(`/SessionEventLogs/${t}/${n}`,{method:"GET",apiUrl:e})}),G=e=>({getUnansweredQuestions:async t=>h(`/UnansweredQuestions/${t}`,{method:"GET",apiUrl:e}),getUnansweredQuestionsPaginated:async(t,n,i)=>h(`/UnansweredQuestions/${t}/${n}/${i}`,{method:"GET",apiUrl:e}),postUnansweredQuestion:async(t,n)=>h(`/UnansweredQuestion/${t}`,{method:"POST",apiUrl:e,body:n}),deleteUnansweredQuestion:async(t,n)=>h(`/UnansweredQuestion/${t}/${n}`,{method:"DELETE",apiUrl:e})}),j=e=>({getContextVars:async t=>h(`/ContextVars/${t}`,{method:"GET",apiUrl:e}),getContextVarNames:async t=>h(`/ContextVarNames/${t}`,{method:"GET",apiUrl:e}),getContextVarValues:async(t,n)=>h(`/ContextVarValues/${t}/${n}`,{method:"GET",apiUrl:e})}),H=e=>({getCustomWords:async t=>h(`/CustomWords/${t}`,{method:"GET",apiUrl:e}),getCustomWord:async(t,n)=>h(`/CustomWord/${t}/${n}`,{method:"GET",apiUrl:e}),deleteCustomWord:async(t,n)=>h(`/CustomWord/${t}/${n}`,{method:"DELETE",apiUrl:e}),postCustomWord:async(t,n)=>h(`/CustomWord/${t}`,{method:"POST",apiUrl:e,body:n}),patchCustomWord:async(t,n)=>h(`/CustomWord/${t}/${n.customWordID}`,{method:"PATCH",apiUrl:e,body:n})}),V=e=>({getChatLogs:async(t,n,i)=>h(`/ChatLogs/${t}${n?`/${n}`:""}${n&&i?`/${i}`:""}`,{method:"GET",apiUrl:e}),getChatLogsPaged:async(t,n)=>h(`/ChatLogsPaged/${t}`,{method:"POST",apiUrl:e,body:n}),getChatLogsByUser:async(t,n,i)=>h(`/CurrentUserChatLogs/${t}${n?`/${n}`:""}${n&&i?`/${i}`:""}`,{method:"GET",apiUrl:e}),getSessionChatLogs:async(t,n)=>h(`/SessionChatLogs/${t}/${n}`,{method:"GET",apiUrl:e}),getUserChatLogs:async(t,n,i,r)=>h(`/UserChatLogs/${t}/${n}${i?`/${i}`:""}${i&&r?`/${r}`:""}`,{method:"GET",apiUrl:e}),deleteChatLogs:async(t,n,i)=>h(`/ChatLogs/${t}${n?`/${n}`:""}${n&&i?`/${i}`:""}`,{method:"DELETE",apiUrl:e}),deleteChatLog:async(t,n)=>h(`/ChatLog/${t}/${n}`,{method:"DELETE",apiUrl:e}),getUserChatLogsByToken:async(t,n,i,r)=>h(`/UserChatLogsByToken/${t}/${n}${i?`/${i}`:""}${i&&r?`/${r}`:""}`,{method:"GET",apiUrl:e}),getUserChatLogsByTokenPaged:async t=>h("/UserChatLogsByTokenPaged",{method:"POST",apiUrl:e,body:{...t}})}),W=e=>({getExpertReferences:async t=>h(`/ExpertReferences/${t}`,{method:"GET",apiUrl:e}),getExpertReferencesPaginated:async(t,n,i)=>h(`/ExpertReferences/${t}/${n}/${i}`,{method:"GET",apiUrl:e}),getExpertReference:async(t,n)=>h(`/ExpertReference/${t}/${n}`,{method:"GET",apiUrl:e}),updateExpertReference:async(t,n)=>h(`/ExpertReference/${t}/${n.expertID}`,{method:"PATCH",apiUrl:e,body:n}),createExpertReference:async(t,n)=>h(`/ExpertReference/${t}`,{method:"POST",apiUrl:e,body:n}),deleteExpertReference:async(t,n)=>h(`/ExpertReference/${t}/${n}`,{method:"DELETE",apiUrl:e})}),q=e=>({getKnownFacts:async t=>h(`/KnownFacts/${t}`,{method:"GET",apiUrl:e}),getKnownFactsPaginated:async(t,n,i)=>h(`/KnownFacts/${t}/${n}/${i}`,{method:"GET",apiUrl:e}),getKnownFact:async(t,n)=>h(`/KnownFact/${t}/${n}`,{method:"GET",apiUrl:e}),deleteKnownFact:async(t,n)=>h(`/KnownFact/${t}/${n}`,{method:"DELETE",apiUrl:e})}),$=e=>({getMemoriUsers:async t=>h(`/Users/${t}`,{method:"GET",apiUrl:e}),getMemoriUsersPaginated:async(t,n,i)=>h(`/Users/${t}/${n}/${i}`,{method:"GET",apiUrl:e}),getMemoriUser:async(t,n)=>h(`/User/${t}/${n}`,{method:"GET",apiUrl:e}),getMemoriUserTopics:async(t,n)=>h(`/UserTopics/${t}/${n}`,{method:"GET",apiUrl:e}),getMemoriUserTopicsPaginated:async(t,n,i,r)=>h(`/UserTopics/${t}/${n}/${i}/${r}`,{method:"GET",apiUrl:e})}),Y=e=>({getTopics:async t=>h(`/Topics/${t}`,{method:"GET",apiUrl:e}),getTopicsPaginated:async(t,n,i)=>h(`/Topics/${t}/${n}/${i}`,{method:"GET",apiUrl:e}),getTopic:async(t,n)=>h(`/Topic/${t}/${n}`,{method:"GET",apiUrl:e}),getTopicUsers:async(t,n)=>h(`/TopicUsers/${t}/${n}`,{method:"GET",apiUrl:e}),getTopicUsersPaginated:async(t,n,i,r)=>h(`/TopicUsers/${t}/${n}/${i}/${r}`,{method:"GET",apiUrl:e})}),J=e=>({getAllFunctions:async t=>h(`/Functions/${t}`,{method:"GET",apiUrl:e}),getFunctionsPaginated:async(t,n,i)=>h(`/Functions/${t}/${n}/${i}`,{method:"GET",apiUrl:e}),getFunction:async(t,n)=>h(`/Function/${t}/${n}`,{method:"GET",apiUrl:e}),patchFunction:async(t,n)=>h(`/Function/${t}/${n.functionID}`,{method:"PATCH",apiUrl:e,body:n}),deleteFunction:async(t,n)=>h(`/Function/${t}/${n}`,{method:"DELETE",apiUrl:e}),createFunction:async(t,n)=>h(`/Function/${t}`,{method:"POST",apiUrl:e,body:n}),getMacroFunctions:async t=>h(`/MacroFunctions/${t}`,{method:"GET",apiUrl:e})}),Z=e=>({correlationPairs:C(e),...C(e),dialog:N(e),...N(e),intents:O(e),...O(e),localizationKeys:R(e),...R(e),media:P(e),...P(e),memories:D(e),...D(e),nlp:k(e),...k(e),people:B(e),...B(e),search:F(e),...F(e),session:U(e),...U(e),stats:z(e),...z(e),unansweredQuestions:G(e),...G(e),contextVars:j(e),...j(e),customDictionary:H(e),...H(e),chatLogs:V(e),...V(e),expertReferences:W(e),...W(e),knownFacts:q(e),...q(e),user:$(e),...$(e),topics:Y(e),...Y(e),functions:J(e),...J(e)}),X={};e(X,"allowedMediaTypes",(()=>K)),e(X,"anonTag",(()=>Q));const K=["image/jpeg","image/png","image/jpg","image/gif","text/plain","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/pdf","video/mp4","video/avi","audio/mpeg3","audio/wav","audio/mpeg","video/mpeg","model/gltf-binary"],Q="👤";var ee=e=>({getResourceUrl:({type:t,resourceURI:n,sessionID:i,baseURL:r="https://aisuru.com"})=>{let o="cover"===t?`${r}/images/memoriCover.png`:`${r}/images/memoriAvatar.png`;return n&&0!==n.length?n.includes("memoriai/memory")?`${n}?memori-ai-session-id=${i}`:n.startsWith("https://")||n.startsWith("http://")?`${n}${i?`/${i}`:""}`:n.startsWith("cloud://")?`${e.replace(/v2/,"v1")}/CloudAsset/${n.replace("cloud://","")}`:n.startsWith("guid://")?`${e.replace(/v2/,"v1")}/GuidAsset/${n.replace("guid://","")}`:o:o}});var te=(e,t)=>{var n;const i=`${(n=e)?new URL(n.startsWith("http")?n:`https://${n}`).origin:"https://backend.memori.ai"}/api/v2`,r=`${u(t)}/memori/v2`;return{backend:M(i),...Z(r),constants:{...X,BACKEND_URL:i,ENGINE_URL:r},asset:ee(i)}};c=o("85Hg2");const ne=(0,(c=o("85Hg2")).createContext)(null),ie=({children:e})=>{const[t,n]=(0,c.useState)({currentArtifact:null,isDrawerOpen:!1,isFullscreen:!1}),i=(0,c.useCallback)((e=>{n((()=>({currentArtifact:e,isDrawerOpen:!0,isFullscreen:!1})))}),[]),r=(0,c.useCallback)((()=>{n((e=>({...e,currentArtifact:null,isDrawerOpen:!1,isFullscreen:!1})))}),[]),o=(0,c.useCallback)((()=>{n((e=>({...e,isFullscreen:!e.isFullscreen})))}),[]),s=(0,c.useMemo)((()=>({state:t,openArtifact:i,closeArtifact:r,toggleFullscreen:o})),[t,i,r,o]);return(0,a.jsx)(ne.Provider,{value:s,children:e})},re=()=>{const e=(0,c.useContext)(ne);if(!e)throw new Error("useArtifact must be used within ArtifactProvider");return e},oe=[];let ae=!1;"undefined"!=typeof window&&(window.MemoriArtifactAPI||(window.MemoriArtifactAPI={_isReady:()=>ae,_setReady:e=>{ae=e},_getPendingCalls:()=>oe,_clearPendingCalls:()=>{oe.length=0},openArtifact:e=>{ae||oe.push({method:"openArtifact",args:[e]})},createAndOpenArtifact:(e,t,n)=>{ae||oe.push({method:"createAndOpenArtifact",args:[e,t,n]})},createFromOutputElement:e=>ae?"not-ready":(oe.push({method:"createFromOutputElement",args:[e]}),"pending"),closeArtifact:()=>{ae||oe.push({method:"closeArtifact",args:[]})},toggleFullscreen:()=>{ae||oe.push({method:"toggleFullscreen",args:[]})},getState:()=>({currentArtifact:null,isDrawerOpen:!1,isFullscreen:!1})}));const se=({pushMessage:e})=>{const{openArtifact:t,closeArtifact:n,toggleFullscreen:i,state:r}=re(),o=(0,c.useRef)(null);return(0,c.useEffect)((()=>{if("undefined"!=typeof window){const a=window.MemoriArtifactAPI;if(o.current={openArtifact:e=>{t(e)},createAndOpenArtifact:(n,i="html",r)=>{const o=r||le(i),a={id:`artifact-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,content:n,mimeType:i,title:o,timestamp:new Date,size:n.length};let s=n;s.includes('<output class="memori-artifact">')||(s=`<output class="memori-artifact" data-mimetype="${i}" data-title="${o}">${n}</output>`),e({text:s,timestamp:(new Date).toISOString(),fromUser:!1,media:[],initial:!1,translatedText:void 0,questionAnswered:void 0,generatedByAI:!1,contextVars:void 0,date:void 0,placeName:void 0,placeLatitude:void 0,placeLongitude:void 0,placeUncertaintyKm:void 0}),t(a)},createFromOutputElement:n=>{const i=n.innerHTML,r=n.getAttribute("data-mimetype")||"html",o=n.getAttribute("data-title")||le(r);n.style.display="none",n.setAttribute("data-memori-processed","true");const a={id:`artifact-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,content:i,mimeType:r,title:o,timestamp:new Date,size:i.length};let s=i;return s.includes('<output class="memori-artifact">')||(s=`<output class="memori-artifact" data-mimetype="${r}" data-title="${o}">${i}</output>`),e({text:s,timestamp:(new Date).toISOString(),fromUser:!1,media:[],initial:!1,translatedText:void 0,questionAnswered:void 0,generatedByAI:!1,contextVars:void 0,date:void 0,placeName:void 0,placeLatitude:void 0,placeLongitude:void 0,placeUncertaintyKm:void 0}),t(a),a.id},closeArtifact:()=>{n()},toggleFullscreen:()=>{i()},getState:()=>({currentArtifact:r.currentArtifact,isDrawerOpen:r.isDrawerOpen,isFullscreen:r.isFullscreen})},a){a.openArtifact=o.current.openArtifact,a.createAndOpenArtifact=o.current.createAndOpenArtifact,a.createFromOutputElement=o.current.createFromOutputElement,a.closeArtifact=o.current.closeArtifact,a.toggleFullscreen=o.current.toggleFullscreen,a.getState=o.current.getState,a._setReady(!0);const e=a._getPendingCalls();e.length>0&&(e.forEach((e=>{try{const t=o.current[e.method];t&&t(...e.args)}catch(e){}})),a._clearPendingCalls())}else window.MemoriArtifactAPI={...o.current,_isReady:!0,_pendingCalls:[],_setReady:e=>{window.MemoriArtifactAPI._isReady=e},_getPendingCalls:()=>window.MemoriArtifactAPI._pendingCalls,_clearPendingCalls:()=>{window.MemoriArtifactAPI._pendingCalls=[]}}}return()=>{"undefined"!=typeof window&&delete window.MemoriArtifactAPI}}),[t,n,i,r,e]),null};function le(e){return e.includes("html")?"HTML Document":e.includes("markdown")?"Markdown Document":e.includes("javascript")?"JavaScript Code":e.includes("python")?"Python Code":e.includes("json")?"JSON Data":e.includes("css")?"CSS Stylesheet":e.includes("typescript")?"TypeScript Code":e.includes("xml")?"XML Document":e.includes("svg")?"SVG Image":"Document"}function ce(e,t,n){var i,r,o,a;if(!e||"object"!=typeof e)return n;return null!==(a=null!==(o=null!==(r=null!==(i=e[(null==t?void 0:t.toLowerCase())||"en"])&&void 0!==i?i:e.en)&&void 0!==r?r:e.en)&&void 0!==o?o:Object.values(e)[0])&&void 0!==a?a:n}function ue(e,t,n){if(!(null==t?void 0:t.enabled)||!Array.isArray(t.rules)||0===t.rules.length)return{matched:!1};const i=(null==n?void 0:n.toLowerCase())||"en",r=new Map;for(const n of t.rules)if(n.pattern&&n.pattern.trim())try{new RegExp(n.pattern).test(e)&&(r.has(n.id)||r.set(n.id,n))}catch(e){console.warn("[PII] Invalid regex for rule:",n.id,n.pattern,e)}if(0===r.size)return{matched:!1};return{matched:!0,errorText:[ce(t.errorMessage,i,"The message contains personal or sensitive data."),...Array.from(r.values()).map((e=>ce(e.message,i,e.label)))].join("\n")}}c=o("85Hg2");var de={},he={};(he=function(e){if(Array.isArray(e))return e}).__esModule=!0,he.default=he;var pe={};(pe=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}).__esModule=!0,pe.default=pe;var me={},fe={};(fe=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}).__esModule=!0,fe.default=fe,me=function(e,t){if(e){if("string"==typeof e)return fe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fe(e,t):void 0}},me.__esModule=!0,me.default=me;var ge={};(ge=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}).__esModule=!0,ge.default=ge,(de=function(e,t){return he(e)||pe(e,t)||me(e,t)||ge()}).__esModule=!0,de.default=de;var ve={},ye={},_e={};function be(e){return _e=be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e.__esModule=!0,_e.default=_e,be(e)}(_e=be).__esModule=!0,_e.default=_e;var xe=_e.default,we={},Se=_e.default;(we=function(e,t){if("object"!==Se(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Se(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}).__esModule=!0,we.default=we,(ye=function(e){var t=we(e,"string");return"symbol"===xe(t)?t:String(t)}).__esModule=!0,ye.default=ye,(ve=function(e,t,n){return(t=ye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}).__esModule=!0,ve.default=ve;c=o("85Hg2");var Ee={};(Ee=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}).__esModule=!0,Ee.default=Ee;var Ae={};function Te(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,ye(i.key),i)}}(Ae=function(e,t,n){return t&&Te(e.prototype,t),n&&Te(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}).__esModule=!0,Ae.default=Ae;c=o("85Hg2");var Ie=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Me={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Ce=function(e){return Me[e]};var Ne,Oe={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(Ie,Ce)}},Re=(0,c.createContext)();function Le(){return Oe}var Pe=function(){function e(){t(Ee)(this,e),this.usedNamespaces={}}return t(Ae)(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function De(){return Ne}function ke(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var Be={};function Fe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&Be[t[0]]||("string"==typeof t[0]&&(Be[t[0]]=new Date),ke.apply(void 0,t))}function Ue(e,t,n){e.loadNamespaces(t,(function(){if(e.isInitialized)n();else{e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),n()}))}}))}function ze(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.languages[0],r=!!t.options&&t.options.fallbackLng,o=t.languages[t.languages.length-1];if("cimode"===i.toLowerCase())return!0;var a=function(e,n){var i=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===i||2===i};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(i,e)||(!(t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages))||!(!a(i,e)||r&&!a(o,e))))}function Ge(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return Fe("i18n.languages were undefined or empty",t.languages),!0;var i=void 0!==t.options.ignoreJSONStructure;return i?t.hasLoadedNamespace(e,{precheck:function(t,i){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!i(t.isLanguageChangingTo,e))return!1}}):ze(e,t,n)}function je(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}function He(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Ve(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?He(Object(i),!0).forEach((function(n){t(ve)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):He(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var We=function(e,t){var n=(0,c.useRef)();return(0,c.useEffect)((function(){n.current=t?n.current:e}),[e,t]),n.current};function qe(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.i18n,r=(0,c.useContext)(Re)||{},o=r.i18n,a=r.defaultNS,s=i||o||De();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new Pe),!s){Fe("You will need to pass in an i18next instance by using initReactI18next");var l=function(e){return Array.isArray(e)?e[e.length-1]:e},u=[l,{},!1];return u.t=l,u.i18n={},u.ready=!1,u}s.options.react&&void 0!==s.options.react.wait&&Fe("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var d=Ve(Ve(Ve({},Le()),s.options.react),n),h=d.useSuspense,p=d.keyPrefix,m=e||a||s.options&&s.options.defaultNS;m="string"==typeof m?[m]:m||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(m);var f=(s.isInitialized||s.initializedStoreOnce)&&m.every((function(e){return Ge(e,s,d)}));function g(){return s.getFixedT(null,"fallback"===d.nsMode?m:m[0],p)}var v=(0,c.useState)(g),y=t(de)(v,2),_=y[0],b=y[1],x=m.join(),w=We(x),S=(0,c.useRef)(!0);(0,c.useEffect)((function(){var e=d.bindI18n,t=d.bindI18nStore;function n(){S.current&&b(g)}return S.current=!0,f||h||Ue(s,m,(function(){S.current&&b(g)})),f&&w&&w!==x&&S.current&&b(g),e&&s&&s.on(e,n),t&&s&&s.store.on(t,n),function(){S.current=!1,e&&s&&e.split(" ").forEach((function(e){return s.off(e,n)})),t&&s&&t.split(" ").forEach((function(e){return s.store.off(e,n)}))}}),[s,x]);var E=(0,c.useRef)(!0);(0,c.useEffect)((function(){S.current&&!E.current&&b(g),E.current=!1}),[s,p]);var A=[_,s,f];if(A.t=_,A.i18n=s,A.ready=f,f)return A;if(!f&&!h)return A;throw new Promise((function(e){Ue(s,m,(function(){e()}))}))}var $e={};
52
+ e.exports=function(t){var n={},i=o("kyWRD"),r=o("85Hg2"),a=o("kMsGZ");function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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 l=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,c=60103,u=60106,d=60107,h=60108,p=60114,m=60109,f=60110,g=60112,v=60113,y=60120,_=60115,b=60116,x=60121,w=60129,S=60130,E=60131;if("function"==typeof Symbol&&Symbol.for){var A=Symbol.for;c=A("react.element"),u=A("react.portal"),d=A("react.fragment"),h=A("react.strict_mode"),p=A("react.profiler"),m=A("react.provider"),f=A("react.context"),g=A("react.forward_ref"),v=A("react.suspense"),y=A("react.suspense_list"),_=A("react.memo"),b=A("react.lazy"),x=A("react.block"),A("react.scope"),w=A("react.debug_trace_mode"),S=A("react.offscreen"),E=A("react.legacy_hidden")}var T="function"==typeof Symbol&&Symbol.iterator;function I(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=T&&e[T]||e["@@iterator"])?e:null}function M(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 d:return"Fragment";case u:return"Portal";case p:return"Profiler";case h:return"StrictMode";case v:return"Suspense";case y:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case f:return(e.displayName||"Context")+".Consumer";case m:return(e._context.displayName||"Context")+".Provider";case g:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case _:return M(e.type);case x:return M(e._render);case b:t=e._payload,e=e._init;try{return M(e(t))}catch(e){}}return null}function C(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function N(e){if(C(e)!==e)throw Error(s(188))}function O(e){var t=e.alternate;if(!t){if(null===(t=C(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,i=t;;){var r=n.return;if(null===r)break;var o=r.alternate;if(null===o){if(null!==(i=r.return)){n=i;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return N(r),e;if(o===i)return N(r),t;o=o.sibling}throw Error(s(188))}if(n.return!==i.return)n=r,i=o;else{for(var a=!1,l=r.child;l;){if(l===n){a=!0,n=r,i=o;break}if(l===i){a=!0,i=r,n=o;break}l=l.sibling}if(!a){for(l=o.child;l;){if(l===n){a=!0,n=o,i=r;break}if(l===i){a=!0,i=o,n=r;break}l=l.sibling}if(!a)throw Error(s(189))}}if(n.alternate!==i)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?e:t}function R(e){if(!(e=O(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function L(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var P,D=t.getPublicInstance,k=t.getRootHostContext,B=t.getChildHostContext,F=t.prepareForCommit,U=t.resetAfterCommit,z=t.createInstance,G=t.appendInitialChild,j=t.finalizeInitialChildren,H=t.prepareUpdate,V=t.shouldSetTextContent,W=t.createTextInstance,q=t.scheduleTimeout,$=t.cancelTimeout,Y=t.noTimeout,J=t.isPrimaryRenderer,Z=t.supportsMutation,X=t.supportsPersistence,K=t.supportsHydration,Q=t.getInstanceFromNode,ee=t.makeOpaqueHydratingObject,te=t.makeClientId,ne=t.beforeActiveInstanceBlur,ie=t.afterActiveInstanceBlur,re=t.preparePortalMount,oe=t.supportsTestSelectors,ae=t.findFiberRoot,se=t.getBoundingRect,le=t.getTextContent,ce=t.isHiddenSubtree,ue=t.matchAccessibilityRole,de=t.setFocusIfFocusable,he=t.setupIntersectionObserver,pe=t.appendChild,me=t.appendChildToContainer,fe=t.commitTextUpdate,ge=t.commitMount,ve=t.commitUpdate,ye=t.insertBefore,_e=t.insertInContainerBefore,be=t.removeChild,xe=t.removeChildFromContainer,we=t.resetTextContent,Se=t.hideInstance,Ee=t.hideTextInstance,Ae=t.unhideInstance,Te=t.unhideTextInstance,Ie=t.clearContainer,Me=t.cloneInstance,Ce=t.createContainerChildSet,Ne=t.appendChildToContainerChildSet,Oe=t.finalizeContainerChildren,Re=t.replaceContainerChildren,Le=t.cloneHiddenInstance,Pe=t.cloneHiddenTextInstance,De=t.canHydrateInstance,ke=t.canHydrateTextInstance,Be=t.isSuspenseInstancePending,Fe=t.isSuspenseInstanceFallback,Ue=t.getNextHydratableSibling,ze=t.getFirstHydratableChild,Ge=t.hydrateInstance,je=t.hydrateTextInstance,He=t.getNextHydratableInstanceAfterSuspenseInstance,Ve=t.commitHydratedContainer,We=t.commitHydratedSuspenseInstance;function qe(e){if(void 0===P)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);P=t&&t[1]||""}return"\n"+P+e}var $e=!1;function Ye(e,t){if(!e||$e)return"";$e=!0;var n=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 i=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){i=e}e.call(t.prototype)}else{try{throw Error()}catch(e){i=e}e()}}catch(e){if(e&&i&&"string"==typeof e.stack){for(var r=e.stack.split("\n"),o=i.stack.split("\n"),a=r.length-1,s=o.length-1;1<=a&&0<=s&&r[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(r[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||r[a]!==o[s])return"\n"+r[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{$e=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qe(e):""}var Je=[],Ze=-1;function Xe(e){return{current:e}}function Ke(e){0>Ze||(e.current=Je[Ze],Je[Ze]=null,Ze--)}function Qe(e,t){Ze++,Je[Ze]=e.current,e.current=t}var et={},tt=Xe(et),nt=Xe(!1),it=et;function rt(e,t){var n=e.type.contextTypes;if(!n)return et;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r,o={};for(r in n)o[r]=t[r];return i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ot(e){return null!=(e=e.childContextTypes)}function at(){Ke(nt),Ke(tt)}function st(e,t,n){if(tt.current!==et)throw Error(s(168));Qe(tt,t),Qe(nt,n)}function lt(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(s(108,M(t)||"Unknown",o));return i({},n,r)}function ct(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||et,it=tt.current,Qe(tt,e),Qe(nt,nt.current),!0}function ut(e,t,n){var i=e.stateNode;if(!i)throw Error(s(169));n?(e=lt(e,t,it),i.__reactInternalMemoizedMergedChildContext=e,Ke(nt),Ke(tt),Qe(tt,e)):Ke(nt),Qe(nt,n)}var dt=null,ht=null;(0,a.unstable_now)();var pt=0,mt=8;function ft(e){if(0!=(1&e))return mt=15,1;if(0!=(2&e))return mt=14,2;if(0!=(4&e))return mt=13,4;var t=24&e;return 0!==t?(mt=12,t):0!=(32&e)?(mt=11,32):0!==(t=192&e)?(mt=10,t):0!=(256&e)?(mt=9,256):0!==(t=3584&e)?(mt=8,t):0!=(4096&e)?(mt=7,4096):0!==(t=4186112&e)?(mt=6,t):0!==(t=62914560&e)?(mt=5,t):67108864&e?(mt=4,67108864):0!=(134217728&e)?(mt=3,134217728):0!==(t=805306368&e)?(mt=2,t):0!=(1073741824&e)?(mt=1,1073741824):(mt=8,e)}function gt(e,t){var n=e.pendingLanes;if(0===n)return mt=0;var i=0,r=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==o)i=o,r=mt=15;else if(0!==(o=134217727&n)){var l=o&~a;0!==l?(i=ft(l),r=mt):0!==(s&=o)&&(i=ft(s),r=mt)}else 0!==(o=n&~a)?(i=ft(o),r=mt):0!==s&&(i=ft(s),r=mt);if(0===i)return 0;if(i=n&((0>(i=31-wt(i))?0:1<<i)<<1)-1,0!==t&&t!==i&&0==(t&a)){if(ft(t),r<=mt)return t;mt=r}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=i;0<t;)r=1<<(n=31-wt(t)),i|=e[n],t&=~r;return i}function vt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function yt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=_t(24&~t))?yt(10,t):e;case 10:return 0===(e=_t(192&~t))?yt(8,t):e;case 8:return 0===(e=_t(3584&~t))&&(0===(e=_t(4186112&~t))&&(e=512)),e;case 2:return 0===(t=_t(805306368&~t))&&(t=268435456),t}throw Error(s(358,e))}function _t(e){return e&-e}function bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function xt(e,t,n){e.pendingLanes|=t;var i=t-1;e.suspendedLanes&=i,e.pingedLanes&=i,(e=e.eventTimes)[t=31-wt(t)]=n}var wt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(St(e)/Et|0)|0},St=Math.log,Et=Math.LN2;var At=a.unstable_runWithPriority,Tt=a.unstable_scheduleCallback,It=a.unstable_cancelCallback,Mt=a.unstable_shouldYield,Ct=a.unstable_requestPaint,Nt=a.unstable_now,Ot=a.unstable_getCurrentPriorityLevel,Rt=a.unstable_ImmediatePriority,Lt=a.unstable_UserBlockingPriority,Pt=a.unstable_NormalPriority,Dt=a.unstable_LowPriority,kt=a.unstable_IdlePriority,Bt={},Ft=void 0!==Ct?Ct:function(){},Ut=null,zt=null,Gt=!1,jt=Nt(),Ht=1e4>jt?Nt:function(){return Nt()-jt};function Vt(){switch(Ot()){case Rt:return 99;case Lt:return 98;case Pt:return 97;case Dt:return 96;case kt:return 95;default:throw Error(s(332))}}function Wt(e){switch(e){case 99:return Rt;case 98:return Lt;case 97:return Pt;case 96:return Dt;case 95:return kt;default:throw Error(s(332))}}function qt(e,t){return e=Wt(e),At(e,t)}function $t(e,t,n){return e=Wt(e),Tt(e,t,n)}function Yt(){if(null!==zt){var e=zt;zt=null,It(e)}Jt()}function Jt(){if(!Gt&&null!==Ut){Gt=!0;var e=0;try{var t=Ut;qt(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ut=null}catch(t){throw null!==Ut&&(Ut=Ut.slice(e+1)),Tt(Rt,Yt),t}finally{Gt=!1}}}var Zt=l.ReactCurrentBatchConfig;var Xt="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Kt=Object.prototype.hasOwnProperty;function Qt(e,t){if(Xt(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++)if(!Kt.call(t,n[i])||!Xt(e[n[i]],t[n[i]]))return!1;return!0}function en(e){switch(e.tag){case 5:return qe(e.type);case 16:return qe("Lazy");case 13:return qe("Suspense");case 19:return qe("SuspenseList");case 0:case 2:case 15:return e=Ye(e.type,!1);case 11:return e=Ye(e.type.render,!1);case 22:return e=Ye(e.type._render,!1);case 1:return e=Ye(e.type,!0);default:return""}}function tn(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var nn=Xe(null),rn=null,on=null,an=null;function sn(){an=on=rn=null}function ln(e,t){e=e.type._context,J?(Qe(nn,e._currentValue),e._currentValue=t):(Qe(nn,e._currentValue2),e._currentValue2=t)}function cn(e){var t=nn.current;Ke(nn),e=e.type._context,J?e._currentValue=t:e._currentValue2=t}function un(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function dn(e,t){rn=e,an=on=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(ji=!0),e.firstContext=null)}function hn(e,t){if(an!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(an=e,t=1073741823),t={context:e,observedBits:t,next:null},null===on){if(null===rn)throw Error(s(308));on=t,rn.dependencies={lanes:0,firstContext:t,responders:null}}else on=on.next=t;return J?e._currentValue:e._currentValue2}var pn=!1;function mn(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function fn(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 gn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function vn(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function yn(e,t){var n=e.updateQueue,i=e.alternate;if(null!==i&&n===(i=i.updateQueue)){var r=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?r=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?r=o=t:o=o.next=t}else r=o=t;return n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:i.shared,effects:i.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function _n(e,t,n,r){var o=e.updateQueue;pn=!1;var a=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var c=l,u=c.next;c.next=null,null===s?a=u:s.next=u,s=c;var d=e.alternate;if(null!==d){var h=(d=d.updateQueue).lastBaseUpdate;h!==s&&(null===h?d.firstBaseUpdate=u:h.next=u,d.lastBaseUpdate=c)}}if(null!==a){for(h=o.baseState,s=0,d=u=c=null;;){l=a.lane;var p=a.eventTime;if((r&l)===l){null!==d&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,f=a;switch(l=t,p=n,f.tag){case 1:if("function"==typeof(m=f.payload)){h=m.call(p,h,l);break e}h=m;break e;case 3:m.flags=-4097&m.flags|64;case 0:if(null==(l="function"==typeof(m=f.payload)?m.call(p,h,l):m))break e;h=i({},h,l);break e;case 2:pn=!0}}null!==a.callback&&(e.flags|=32,null===(l=o.effects)?o.effects=[a]:l.push(a))}else p={eventTime:p,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===d?(u=d=p,c=h):d=d.next=p,s|=l;if(null===(a=a.next)){if(null===(l=o.shared.pending))break;a=l.next,l.next=null,o.lastBaseUpdate=l,o.shared.pending=null}}null===d&&(c=h),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=d,ho|=s,e.lanes=s,e.memoizedState=h}}function bn(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var i=e[t],r=i.callback;if(null!==r){if(i.callback=null,i=n,"function"!=typeof r)throw Error(s(191,r));r.call(i)}}}var xn=(new r.Component).refs;function wn(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Sn={isMounted:function(e){return!!(e=e._reactInternals)&&C(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var i=Bo(),r=Fo(e),o=gn(i,r);o.payload=t,null!=n&&(o.callback=n),vn(e,o),Uo(e,r,i)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=Bo(),r=Fo(e),o=gn(i,r);o.tag=1,o.payload=t,null!=n&&(o.callback=n),vn(e,o),Uo(e,r,i)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Bo(),i=Fo(e),r=gn(n,i);r.tag=2,null!=t&&(r.callback=t),vn(e,r),Uo(e,i,n)}};function En(e,t,n,i,r,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(i,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!Qt(n,i)||!Qt(r,o))}function An(e,t,n){var i=!1,r=et,o=t.contextType;return"object"==typeof o&&null!==o?o=hn(o):(r=ot(t)?it:tt.current,o=(i=null!=(i=t.contextTypes))?rt(e,r):et),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Sn,e.stateNode=t,t._reactInternals=e,i&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=o),t}function Tn(e,t,n,i){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,i),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&Sn.enqueueReplaceState(t,t.state,null)}function In(e,t,n,i){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=xn,mn(e);var o=t.contextType;"object"==typeof o&&null!==o?r.context=hn(o):(o=ot(t)?it:tt.current,r.context=rt(e,o)),_n(e,n,r,i),r.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(wn(e,t,o,n),r.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(t=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&Sn.enqueueReplaceState(r,r.state,null),_n(e,n,r,i),r.state=e.memoizedState),"function"==typeof r.componentDidMount&&(e.flags|=4)}var Mn=Array.isArray;function Cn(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(s(309));var i=n.stateNode}if(!i)throw Error(s(147,e));var r=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===r?t.ref:(t=function(e){var t=i.refs;t===xn&&(t=i.refs={}),null===e?delete t[r]:t[r]=e},t._stringRef=r,t)}if("string"!=typeof e)throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function Nn(e,t){if("textarea"!==e.type)throw Error(s(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function On(e){function t(t,n){if(e){var i=t.lastEffect;null!==i?(i.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,i){if(!e)return null;for(;null!==i;)t(n,i),i=i.sibling;return null}function i(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 r(e,t){return(e=Ea(e,t)).index=0,e.sibling=null,e}function o(t,n,i){return t.index=i,e?null!==(i=t.alternate)?(i=i.index)<n?(t.flags=2,n):i:(t.flags=2,n):n}function a(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,i){return null===t||6!==t.tag?((t=Ma(n,e.mode,i)).return=e,t):((t=r(t,n)).return=e,t)}function h(e,t,n,i){return null!==t&&t.elementType===n.type?((i=r(t,n.props)).ref=Cn(e,t,n),i.return=e,i):((i=Aa(n.type,n.key,n.props,null,e.mode,i)).ref=Cn(e,t,n),i.return=e,i)}function p(e,t,n,i){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ca(n,e.mode,i)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function m(e,t,n,i,o){return null===t||7!==t.tag?((t=Ta(n,e.mode,i,o)).return=e,t):((t=r(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ma(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case c:return(n=Aa(t.type,t.key,t.props,null,e.mode,n)).ref=Cn(e,null,t),n.return=e,n;case u:return(t=Ca(t,e.mode,n)).return=e,t}if(Mn(t)||I(t))return(t=Ta(t,e.mode,n,null)).return=e,t;Nn(e,t)}return null}function g(e,t,n,i){var r=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==r?null:l(e,t,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case c:return n.key===r?n.type===d?m(e,t,n.props.children,i,r):h(e,t,n,i):null;case u:return n.key===r?p(e,t,n,i):null}if(Mn(n)||I(n))return null!==r?null:m(e,t,n,i,null);Nn(e,n)}return null}function v(e,t,n,i,r){if("string"==typeof i||"number"==typeof i)return l(t,e=e.get(n)||null,""+i,r);if("object"==typeof i&&null!==i){switch(i.$$typeof){case c:return e=e.get(null===i.key?n:i.key)||null,i.type===d?m(t,e,i.props.children,r,i.key):h(t,e,i,r);case u:return p(t,e=e.get(null===i.key?n:i.key)||null,i,r)}if(Mn(i)||I(i))return m(t,e=e.get(n)||null,i,r,null);Nn(t,i)}return null}function y(r,a,s,l){for(var c=null,u=null,d=a,h=a=0,p=null;null!==d&&h<s.length;h++){d.index>h?(p=d,d=null):p=d.sibling;var m=g(r,d,s[h],l);if(null===m){null===d&&(d=p);break}e&&d&&null===m.alternate&&t(r,d),a=o(m,a,h),null===u?c=m:u.sibling=m,u=m,d=p}if(h===s.length)return n(r,d),c;if(null===d){for(;h<s.length;h++)null!==(d=f(r,s[h],l))&&(a=o(d,a,h),null===u?c=d:u.sibling=d,u=d);return c}for(d=i(r,d);h<s.length;h++)null!==(p=v(d,r,h,s[h],l))&&(e&&null!==p.alternate&&d.delete(null===p.key?h:p.key),a=o(p,a,h),null===u?c=p:u.sibling=p,u=p);return e&&d.forEach((function(e){return t(r,e)})),c}function _(r,a,l,c){var u=I(l);if("function"!=typeof u)throw Error(s(150));if(null==(l=u.call(l)))throw Error(s(151));for(var d=u=null,h=a,p=a=0,m=null,y=l.next();null!==h&&!y.done;p++,y=l.next()){h.index>p?(m=h,h=null):m=h.sibling;var _=g(r,h,y.value,c);if(null===_){null===h&&(h=m);break}e&&h&&null===_.alternate&&t(r,h),a=o(_,a,p),null===d?u=_:d.sibling=_,d=_,h=m}if(y.done)return n(r,h),u;if(null===h){for(;!y.done;p++,y=l.next())null!==(y=f(r,y.value,c))&&(a=o(y,a,p),null===d?u=y:d.sibling=y,d=y);return u}for(h=i(r,h);!y.done;p++,y=l.next())null!==(y=v(h,r,p,y.value,c))&&(e&&null!==y.alternate&&h.delete(null===y.key?p:y.key),a=o(y,a,p),null===d?u=y:d.sibling=y,d=y);return e&&h.forEach((function(e){return t(r,e)})),u}return function(e,i,o,l){var h="object"==typeof o&&null!==o&&o.type===d&&null===o.key;h&&(o=o.props.children);var p="object"==typeof o&&null!==o;if(p)switch(o.$$typeof){case c:e:{for(p=o.key,h=i;null!==h;){if(h.key===p){if(7===h.tag){if(o.type===d){n(e,h.sibling),(i=r(h,o.props.children)).return=e,e=i;break e}}else if(h.elementType===o.type){n(e,h.sibling),(i=r(h,o.props)).ref=Cn(e,h,o),i.return=e,e=i;break e}n(e,h);break}t(e,h),h=h.sibling}o.type===d?((i=Ta(o.props.children,e.mode,l,o.key)).return=e,e=i):((l=Aa(o.type,o.key,o.props,null,e.mode,l)).ref=Cn(e,i,o),l.return=e,e=l)}return a(e);case u:e:{for(h=o.key;null!==i;){if(i.key===h){if(4===i.tag&&i.stateNode.containerInfo===o.containerInfo&&i.stateNode.implementation===o.implementation){n(e,i.sibling),(i=r(i,o.children||[])).return=e,e=i;break e}n(e,i);break}t(e,i),i=i.sibling}(i=Ca(o,e.mode,l)).return=e,e=i}return a(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==i&&6===i.tag?(n(e,i.sibling),(i=r(i,o)).return=e,e=i):(n(e,i),(i=Ma(o,e.mode,l)).return=e,e=i),a(e);if(Mn(o))return y(e,i,o,l);if(I(o))return _(e,i,o,l);if(p&&Nn(e,o),void 0===o&&!h)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(s(152,M(e.type)||"Component"))}return n(e,i)}}var Rn=On(!0),Ln=On(!1),Pn={},Dn=Xe(Pn),kn=Xe(Pn),Bn=Xe(Pn);function Fn(e){if(e===Pn)throw Error(s(174));return e}function Un(e,t){Qe(Bn,t),Qe(kn,e),Qe(Dn,Pn),e=k(t),Ke(Dn),Qe(Dn,e)}function zn(){Ke(Dn),Ke(kn),Ke(Bn)}function Gn(e){var t=Fn(Bn.current),n=Fn(Dn.current);n!==(t=B(n,e.type,t))&&(Qe(kn,e),Qe(Dn,t))}function jn(e){kn.current===e&&(Ke(Dn),Ke(kn))}var Hn=Xe(0);function Vn(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Be(n)||Fe(n)))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&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 Wn=null,qn=null,$n=!1;function Yn(e,t){var n=wa(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Jn(e,t){switch(e.tag){case 5:return null!==(t=De(t,e.type,e.pendingProps))&&(e.stateNode=t,!0);case 6:return null!==(t=ke(t,e.pendingProps))&&(e.stateNode=t,!0);default:return!1}}function Zn(e){if($n){var t=qn;if(t){var n=t;if(!Jn(e,t)){if(!(t=Ue(n))||!Jn(e,t))return e.flags=-1025&e.flags|2,$n=!1,void(Wn=e);Yn(Wn,n)}Wn=e,qn=ze(t)}else e.flags=-1025&e.flags|2,$n=!1,Wn=e}}function Xn(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Wn=e}function Kn(e){if(!K||e!==Wn)return!1;if(!$n)return Xn(e),$n=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!V(t,e.memoizedProps))for(t=qn;t;)Yn(e,t),t=Ue(t);if(Xn(e),13===e.tag){if(!K)throw Error(s(316));if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));qn=He(e)}else qn=Wn?Ue(e.stateNode):null;return!0}function Qn(){K&&(qn=Wn=null,$n=!1)}var ei=[];function ti(){for(var e=0;e<ei.length;e++){var t=ei[e];J?t._workInProgressVersionPrimary=null:t._workInProgressVersionSecondary=null}ei.length=0}var ni=l.ReactCurrentDispatcher,ii=l.ReactCurrentBatchConfig,ri=0,oi=null,ai=null,si=null,li=!1,ci=!1;function ui(){throw Error(s(321))}function di(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Xt(e[n],t[n]))return!1;return!0}function hi(e,t,n,i,r,o){if(ri=o,oi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ni.current=null===e||null===e.memoizedState?Fi:Ui,e=n(i,r),ci){o=0;do{if(ci=!1,!(25>o))throw Error(s(301));o+=1,si=ai=null,t.updateQueue=null,ni.current=zi,e=n(i,r)}while(ci)}if(ni.current=Bi,t=null!==ai&&null!==ai.next,ri=0,si=ai=oi=null,li=!1,t)throw Error(s(300));return e}function pi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===si?oi.memoizedState=si=e:si=si.next=e,si}function mi(){if(null===ai){var e=oi.alternate;e=null!==e?e.memoizedState:null}else e=ai.next;var t=null===si?oi.memoizedState:si.next;if(null!==t)si=t,ai=e;else{if(null===e)throw Error(s(310));e={memoizedState:(ai=e).memoizedState,baseState:ai.baseState,baseQueue:ai.baseQueue,queue:ai.queue,next:null},null===si?oi.memoizedState=si=e:si=si.next=e}return si}function fi(e,t){return"function"==typeof t?t(e):t}function gi(e){var t=mi(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var i=ai,r=i.baseQueue,o=n.pending;if(null!==o){if(null!==r){var a=r.next;r.next=o.next,o.next=a}i.baseQueue=r=o,n.pending=null}if(null!==r){r=r.next,i=i.baseState;var l=a=o=null,c=r;do{var u=c.lane;if((ri&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),i=c.eagerReducer===e?c.eagerState:e(i,c.action);else{var d={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(a=l=d,o=i):l=l.next=d,oi.lanes|=u,ho|=u}c=c.next}while(null!==c&&c!==r);null===l?o=i:l.next=a,Xt(i,t.memoizedState)||(ji=!0),t.memoizedState=i,t.baseState=o,t.baseQueue=l,n.lastRenderedState=i}return[t.memoizedState,n.dispatch]}function vi(e){var t=mi(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var i=n.dispatch,r=n.pending,o=t.memoizedState;if(null!==r){n.pending=null;var a=r=r.next;do{o=e(o,a.action),a=a.next}while(a!==r);Xt(o,t.memoizedState)||(ji=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function yi(e,t,n){var i=t._getVersion;i=i(t._source);var r=J?t._workInProgressVersionPrimary:t._workInProgressVersionSecondary;if(null!==r?e=r===i:(e=e.mutableReadLanes,(e=(ri&e)===e)&&(J?t._workInProgressVersionPrimary=i:t._workInProgressVersionSecondary=i,ei.push(t))),e)return n(t._source);throw ei.push(t),Error(s(350))}function _i(e,t,n,i){var r=io;if(null===r)throw Error(s(349));var o=t._getVersion,a=o(t._source),l=ni.current,c=l.useState((function(){return yi(r,t,n)})),u=c[1],d=c[0];c=si;var h=e.memoizedState,p=h.refs,m=p.getSnapshot,f=h.source;h=h.subscribe;var g=oi;return e.memoizedState={refs:p,source:t,subscribe:i},l.useEffect((function(){p.getSnapshot=n,p.setSnapshot=u;var e=o(t._source);if(!Xt(a,e)){e=n(t._source),Xt(d,e)||(u(e),e=Fo(g),r.mutableReadLanes|=e&r.pendingLanes),e=r.mutableReadLanes,r.entangledLanes|=e;for(var i=r.entanglements,s=e;0<s;){var l=31-wt(s),c=1<<l;i[l]|=e,s&=~c}}}),[n,t,i]),l.useEffect((function(){return i(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var i=Fo(g);r.mutableReadLanes|=i&r.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,i]),Xt(m,n)&&Xt(f,t)&&Xt(h,i)||((e={pending:null,dispatch:null,lastRenderedReducer:fi,lastRenderedState:d}).dispatch=u=ki.bind(null,oi,e),c.queue=e,c.baseQueue=null,d=yi(r,t,n),c.memoizedState=c.baseState=d),d}function bi(e,t,n){return _i(mi(),e,t,n)}function xi(e){var t=pi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:fi,lastRenderedState:e}).dispatch=ki.bind(null,oi,e),[t.memoizedState,e]}function wi(e,t,n,i){return e={tag:e,create:t,destroy:n,deps:i,next:null},null===(t=oi.updateQueue)?(t={lastEffect:null},oi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function Si(e){return e={current:e},pi().memoizedState=e}function Ei(){return mi().memoizedState}function Ai(e,t,n,i){var r=pi();oi.flags|=e,r.memoizedState=wi(1|t,n,void 0,void 0===i?null:i)}function Ti(e,t,n,i){var r=mi();i=void 0===i?null:i;var o=void 0;if(null!==ai){var a=ai.memoizedState;if(o=a.destroy,null!==i&&di(i,a.deps))return void wi(t,n,o,i)}oi.flags|=e,r.memoizedState=wi(1|t,n,o,i)}function Ii(e,t){return Ai(516,4,e,t)}function Mi(e,t){return Ti(516,4,e,t)}function Ci(e,t){return Ti(4,2,e,t)}function Ni(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 Oi(e,t,n){return n=null!=n?n.concat([e]):null,Ti(4,2,Ni.bind(null,t,e),n)}function Ri(){}function Li(e,t){var n=mi();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&di(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function Pi(e,t){var n=mi();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&di(t,i[1])?i[0]:(e=e(),n.memoizedState=[e,t],e)}function Di(e,t){var n=Vt();qt(98>n?98:n,(function(){e(!0)})),qt(97<n?97:n,(function(){var n=ii.transition;ii.transition=1;try{e(!1),t()}finally{ii.transition=n}}))}function ki(e,t,n){var i=Bo(),r=Fo(e),o={lane:r,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===oi||null!==a&&a===oi)ci=li=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=a(s,n);if(o.eagerReducer=a,o.eagerState=l,Xt(l,s))return}catch(e){}Uo(e,r,i)}}var Bi={readContext:hn,useCallback:ui,useContext:ui,useEffect:ui,useImperativeHandle:ui,useLayoutEffect:ui,useMemo:ui,useReducer:ui,useRef:ui,useState:ui,useDebugValue:ui,useDeferredValue:ui,useTransition:ui,useMutableSource:ui,useOpaqueIdentifier:ui,unstable_isNewReconciler:!1},Fi={readContext:hn,useCallback:function(e,t){return pi().memoizedState=[e,void 0===t?null:t],e},useContext:hn,useEffect:Ii,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ai(4,2,Ni.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ai(4,2,e,t)},useMemo:function(e,t){var n=pi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=pi();return t=void 0!==n?n(t):t,i.memoizedState=i.baseState=t,e=(e=i.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ki.bind(null,oi,e),[i.memoizedState,e]},useRef:Si,useState:xi,useDebugValue:Ri,useDeferredValue:function(e){var t=xi(e),n=t[0],i=t[1];return Ii((function(){var t=ii.transition;ii.transition=1;try{i(e)}finally{ii.transition=t}}),[e]),n},useTransition:function(){var e=xi(!1),t=e[0];return Si(e=Di.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var i=pi();return i.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},_i(i,e,t,n)},useOpaqueIdentifier:function(){if($n){var e=!1,t=ee((function(){throw e||(e=!0,n(te())),Error(s(355))})),n=xi(t)[1];return 0==(2&oi.mode)&&(oi.flags|=516,wi(5,(function(){n(te())}),void 0,null)),t}return xi(t=te()),t},unstable_isNewReconciler:!1},Ui={readContext:hn,useCallback:Li,useContext:hn,useEffect:Mi,useImperativeHandle:Oi,useLayoutEffect:Ci,useMemo:Pi,useReducer:gi,useRef:Ei,useState:function(){return gi(fi)},useDebugValue:Ri,useDeferredValue:function(e){var t=gi(fi),n=t[0],i=t[1];return Mi((function(){var t=ii.transition;ii.transition=1;try{i(e)}finally{ii.transition=t}}),[e]),n},useTransition:function(){var e=gi(fi)[0];return[Ei().current,e]},useMutableSource:bi,useOpaqueIdentifier:function(){return gi(fi)[0]},unstable_isNewReconciler:!1},zi={readContext:hn,useCallback:Li,useContext:hn,useEffect:Mi,useImperativeHandle:Oi,useLayoutEffect:Ci,useMemo:Pi,useReducer:vi,useRef:Ei,useState:function(){return vi(fi)},useDebugValue:Ri,useDeferredValue:function(e){var t=vi(fi),n=t[0],i=t[1];return Mi((function(){var t=ii.transition;ii.transition=1;try{i(e)}finally{ii.transition=t}}),[e]),n},useTransition:function(){var e=vi(fi)[0];return[Ei().current,e]},useMutableSource:bi,useOpaqueIdentifier:function(){return vi(fi)[0]},unstable_isNewReconciler:!1},Gi=l.ReactCurrentOwner,ji=!1;function Hi(e,t,n,i){t.child=null===e?Ln(t,null,n,i):Rn(t,e.child,n,i)}function Vi(e,t,n,i,r){n=n.render;var o=t.ref;return dn(t,r),i=hi(e,t,n,i,o,r),null===e||ji?(t.flags|=1,Hi(e,t,i,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~r,dr(e,t,r))}function Wi(e,t,n,i,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Sa(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Aa(n.type,null,i,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,qi(e,t,a,i,r,o))}return a=e.child,0==(r&o)&&(r=a.memoizedProps,(n=null!==(n=n.compare)?n:Qt)(r,i)&&e.ref===t.ref)?dr(e,t,o):(t.flags|=1,(e=Ea(a,i)).ref=t.ref,e.return=t,t.child=e)}function qi(e,t,n,i,r,o){if(null!==e&&Qt(e.memoizedProps,i)&&e.ref===t.ref){if(ji=!1,0==(o&r))return t.lanes=e.lanes,dr(e,t,o);0!=(16384&e.flags)&&(ji=!0)}return Ji(e,t,n,i,o)}function $i(e,t,n){var i=t.pendingProps,r=i.children,o=null!==e?e.memoizedState:null;if("hidden"===i.mode||"unstable-defer-without-hiding"===i.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},$o(t,n);else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},$o(t,e),null;t.memoizedState={baseLanes:0},$o(t,null!==o?o.baseLanes:n)}else null!==o?(i=o.baseLanes|n,t.memoizedState=null):i=n,$o(t,i);return Hi(e,t,r,n),t.child}function Yi(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ji(e,t,n,i,r){var o=ot(n)?it:tt.current;return o=rt(t,o),dn(t,r),n=hi(e,t,n,i,o,r),null===e||ji?(t.flags|=1,Hi(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~r,dr(e,t,r))}function Zi(e,t,n,i,r){if(ot(n)){var o=!0;ct(t)}else o=!1;if(dn(t,r),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),An(t,n,i),In(t,n,i,r),i=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=hn(c):c=rt(t,c=ot(n)?it:tt.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==i||l!==c)&&Tn(t,a,i,c),pn=!1;var h=t.memoizedState;a.state=h,_n(t,i,a,r),l=t.memoizedState,s!==i||h!==l||nt.current||pn?("function"==typeof u&&(wn(t,n,u,i),l=t.memoizedState),(s=pn||En(t,n,s,i,h,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=i,t.memoizedState=l),a.props=i,a.state=l,a.context=c,i=s):("function"==typeof a.componentDidMount&&(t.flags|=4),i=!1)}else{a=t.stateNode,fn(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:tn(t.type,s),a.props=c,d=t.pendingProps,h=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=hn(l):l=rt(t,l=ot(n)?it:tt.current);var p=n.getDerivedStateFromProps;(u="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||h!==l)&&Tn(t,a,i,l),pn=!1,h=t.memoizedState,a.state=h,_n(t,i,a,r);var m=t.memoizedState;s!==d||h!==m||nt.current||pn?("function"==typeof p&&(wn(t,n,p,i),m=t.memoizedState),(c=pn||En(t,n,c,i,h,m,l))?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(i,m,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(i,m,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),t.memoizedProps=i,t.memoizedState=m),a.props=i,a.state=m,a.context=l,i=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),i=!1)}return Xi(e,t,n,i,o,r)}function Xi(e,t,n,i,r,o){Yi(e,t);var a=0!=(64&t.flags);if(!i&&!a)return r&&ut(t,n,!1),dr(e,t,o);i=t.stateNode,Gi.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:i.render();return t.flags|=1,null!==e&&a?(t.child=Rn(t,e.child,null,o),t.child=Rn(t,null,s,o)):Hi(e,t,s,o),t.memoizedState=i.state,r&&ut(t,n,!0),t.child}function Ki(e){var t=e.stateNode;t.pendingContext?st(0,t.pendingContext,t.pendingContext!==t.context):t.context&&st(0,t.context,!1),Un(e,t.containerInfo)}var Qi,er,tr,nr,ir={dehydrated:null,retryLane:0};function rr(e,t,n){var i,r=t.pendingProps,o=Hn.current,a=!1;return(i=0!=(64&t.flags))||(i=(null===e||null!==e.memoizedState)&&0!=(2&o)),i?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===r.fallback||!0===r.unstable_avoidThisFallback||(o|=1),Qe(Hn,1&o),null===e?(void 0!==r.fallback&&Zn(t),e=r.children,o=r.fallback,a?(e=or(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=ir,e):"number"==typeof r.unstable_expectedLoadTime?(e=or(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=ir,t.lanes=33554432,e):((n=Ia({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(r=sr(e,t,r.children,r.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=ir,r):(n=ar(e,t,r.children,n),t.memoizedState=null,n))}function or(e,t,n,i){var r=e.mode,o=e.child;return t={mode:"hidden",children:t},0==(2&r)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=Ia(t,r,0,null),n=Ta(n,r,i,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function ar(e,t,n,i){var r=e.child;return e=r.sibling,n=Ea(r,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=i),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function sr(e,t,n,i,r){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0==(2&o)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Ea(a,s),null!==e?i=Ea(e,i):(i=Ta(i,o,r,null)).flags|=2,i.return=t,n.return=t,n.sibling=i,t.child=n,i}function lr(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),un(e.return,t)}function cr(e,t,n,i,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=i,a.tail=n,a.tailMode=r,a.lastEffect=o)}function ur(e,t,n){var i=t.pendingProps,r=i.revealOrder,o=i.tail;if(Hi(e,t,i.children,n),0!=(2&(i=Hn.current)))i=1&i|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&lr(e,n);else if(19===e.tag)lr(e,n);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}i&=1}if(Qe(Hn,i),0==(2&t.mode))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===Vn(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),cr(t,!1,r,n,o,t.lastEffect);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===Vn(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}cr(t,!0,n,null,o,t.lastEffect);break;case"together":cr(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function dr(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),ho|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=Ea(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ea(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function hr(e){e.flags|=4}if(Z)Qi=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)G(e,n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},er=function(){},tr=function(e,t,n,i,r){if((e=e.memoizedProps)!==i){var o=t.stateNode,a=Fn(Dn.current);n=H(o,n,e,i,r,a),(t.updateQueue=n)&&hr(t)}},nr=function(e,t,n,i){n!==i&&hr(t)};else if(X){Qi=function(e,t,n,i){for(var r=t.child;null!==r;){if(5===r.tag){var o=r.stateNode;n&&i&&(o=Le(o,r.type,r.memoizedProps,r)),G(e,o)}else if(6===r.tag)o=r.stateNode,n&&i&&(o=Pe(o,r.memoizedProps,r)),G(e,o);else if(4!==r.tag){if(13===r.tag&&0!=(4&r.flags)&&(o=null!==r.memoizedState)){var a=r.child;if(null!==a&&(null!==a.child&&(a.child.return=a,Qi(e,a,!0,o)),null!==(o=a.sibling))){o.return=r,r=o;continue}}if(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}};var pr=function(e,t,n,i){for(var r=t.child;null!==r;){if(5===r.tag){var o=r.stateNode;n&&i&&(o=Le(o,r.type,r.memoizedProps,r)),Ne(e,o)}else if(6===r.tag)o=r.stateNode,n&&i&&(o=Pe(o,r.memoizedProps,r)),Ne(e,o);else if(4!==r.tag){if(13===r.tag&&0!=(4&r.flags)&&(o=null!==r.memoizedState)){var a=r.child;if(null!==a&&(null!==a.child&&(a.child.return=a,pr(e,a,!0,o)),null!==(o=a.sibling))){o.return=r,r=o;continue}}if(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}};er=function(e){var t=e.stateNode;if(null!==e.firstEffect){var n=t.containerInfo,i=Ce(n);pr(i,e,!1,!1),t.pendingChildren=i,hr(e),Oe(n,i)}},tr=function(e,t,n,i,r){var o=e.stateNode,a=e.memoizedProps;if((e=null===t.firstEffect)&&a===i)t.stateNode=o;else{var s=t.stateNode,l=Fn(Dn.current),c=null;a!==i&&(c=H(s,n,a,i,r,l)),e&&null===c?t.stateNode=o:(o=Me(o,c,n,a,i,t,e,s),j(o,n,i,r,l)&&hr(t),t.stateNode=o,e?hr(t):Qi(o,t,!1,!1))}},nr=function(e,t,n,i){n!==i?(e=Fn(Bn.current),n=Fn(Dn.current),t.stateNode=W(i,e,n,t),hr(t)):t.stateNode=e.stateNode}}else er=function(){},tr=function(){},nr=function(){};function mr(e,t){if(!$n)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;null!==n;)null!==n.alternate&&(i=n),n=n.sibling;null===i?t||null===e.tail?e.tail=null:e.tail.sibling=null:i.sibling=null}}function fr(e,t,n){var i=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return ot(t.type)&&at(),null;case 3:return zn(),Ke(nt),Ke(tt),ti(),(i=t.stateNode).pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(Kn(t)?hr(t):i.hydrate||(t.flags|=256)),er(t),null;case 5:jn(t);var r=Fn(Bn.current);if(n=t.type,null!==e&&null!=t.stateNode)tr(e,t,n,i,r),e.ref!==t.ref&&(t.flags|=128);else{if(!i){if(null===t.stateNode)throw Error(s(166));return null}if(e=Fn(Dn.current),Kn(t)){if(!K)throw Error(s(175));e=Ge(t.stateNode,t.type,t.memoizedProps,r,e,t),t.updateQueue=e,null!==e&&hr(t)}else{var o=z(n,i,r,e,t);Qi(o,t,!1,!1),t.stateNode=o,j(o,n,i,r,e)&&hr(t)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)nr(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(s(166));if(e=Fn(Bn.current),r=Fn(Dn.current),Kn(t)){if(!K)throw Error(s(176));je(t.stateNode,t.memoizedProps,t)&&hr(t)}else t.stateNode=W(i,e,r,t)}return null;case 13:return Ke(Hn),i=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(i=null!==i,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Kn(t):r=null!==e.memoizedState,i&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Hn.current)?0===lo&&(lo=3):(0!==lo&&3!==lo||(lo=4),null===io||0==(134217727&ho)&&0==(134217727&po)||Ho(io,oo))),X&&i&&(t.flags|=4),Z&&(i||r)&&(t.flags|=4),null);case 4:return zn(),er(t),null===e&&re(t.stateNode.containerInfo),null;case 10:return cn(t),null;case 19:if(Ke(Hn),null===(i=t.memoizedState))return null;if(r=0!=(64&t.flags),null===(o=i.rendering))if(r)mr(i,!1);else{if(0!==lo||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(o=Vn(e))){for(t.flags|=64,mr(i,!1),null!==(e=o.updateQueue)&&(t.updateQueue=e,t.flags|=4),null===i.lastEffect&&(t.firstEffect=null),t.lastEffect=i.lastEffect,e=n,i=t.child;null!==i;)n=e,(r=i).flags&=2,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null,null===(o=r.alternate)?(r.childLanes=0,r.lanes=n,r.child=null,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=o.childLanes,r.lanes=o.lanes,r.child=o.child,r.memoizedProps=o.memoizedProps,r.memoizedState=o.memoizedState,r.updateQueue=o.updateQueue,r.type=o.type,n=o.dependencies,r.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext}),i=i.sibling;return Qe(Hn,1&Hn.current|2),t.child}e=e.sibling}null!==i.tail&&Ht()>vo&&(t.flags|=64,r=!0,mr(i,!1),t.lanes=33554432)}else{if(!r)if(null!==(e=Vn(o))){if(t.flags|=64,r=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),mr(i,!0),null===i.tail&&"hidden"===i.tailMode&&!o.alternate&&!$n)return null!==(t=t.lastEffect=i.lastEffect)&&(t.nextEffect=null),null}else 2*Ht()-i.renderingStartTime>vo&&1073741824!==n&&(t.flags|=64,r=!0,mr(i,!1),t.lanes=33554432);i.isBackwards?(o.sibling=t.child,t.child=o):(null!==(e=i.last)?e.sibling=o:t.child=o,i.last=o)}return null!==i.tail?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.lastEffect=t.lastEffect,i.renderingStartTime=Ht(),e.sibling=null,t=Hn.current,Qe(Hn,r?1&t|2:1&t),e):null;case 23:case 24:return Yo(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==i.mode&&(t.flags|=4),null}throw Error(s(156,t.tag))}function gr(e){switch(e.tag){case 1:ot(e.type)&&at();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(zn(),Ke(nt),Ke(tt),ti(),0!=(64&(t=e.flags)))throw Error(s(285));return e.flags=-4097&t|64,e;case 5:return jn(e),null;case 13:return Ke(Hn),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return Ke(Hn),null;case 4:return zn(),null;case 10:return cn(e),null;case 23:case 24:return Yo(),null;default:return null}}function vr(e,t){try{var n="",i=t;do{n+=en(i),i=i.return}while(i);var r=n}catch(e){r="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:r}}function yr(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var _r="function"==typeof WeakMap?WeakMap:Map;function br(e,t,n){(n=gn(-1,n)).tag=3,n.payload={element:null};var i=t.value;return n.callback=function(){xo||(xo=!0,wo=i),yr(0,t)},n}function xr(e,t,n){(n=gn(-1,n)).tag=3;var i=e.type.getDerivedStateFromError;if("function"==typeof i){var r=t.value;n.payload=function(){return yr(0,t),i(r)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof i&&(null===So?So=new Set([this]):So.add(this),yr(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var wr="function"==typeof WeakSet?WeakSet:Set;function Sr(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){da(e,t)}else t.current=null}function Er(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,i=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:tn(t.type,n),i),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(Z&&256&t.flags&&Ie(t.stateNode.containerInfo))}throw Error(s(163))}function Ar(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var i=n.destroy;n.destroy=void 0,void 0!==i&&i()}n=n.next}while(n!==t)}}function Tr(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var i=e.create;e.destroy=i()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var r=e;i=r.next,0!=(4&(r=r.tag))&&0!=(1&r)&&(la(n,e),sa(n,e)),e=i}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(i=n.elementType===n.type?t.memoizedProps:tn(n.type,t.memoizedProps),e.componentDidUpdate(i,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&bn(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=D(n.child.stateNode);break;case 1:e=n.child.stateNode}bn(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&ge(e,n.type,n.memoizedProps,n));case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(K&&null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&We(n)))))}throw Error(s(163))}function Ir(e,t){if(Z)for(var n=e;;){if(5===n.tag){var i=n.stateNode;t?Se(i):Ae(n.stateNode,n.memoizedProps)}else if(6===n.tag)i=n.stateNode,t?Ee(i):Te(i,n.memoizedProps);else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Mr(e,t){if(ht&&"function"==typeof ht.onCommitFiberUnmount)try{ht.onCommitFiberUnmount(dt,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var i=n,r=i.destroy;if(i=i.tag,void 0!==r)if(0!=(4&i))la(t,n);else{i=t;try{r()}catch(e){da(i,e)}}n=n.next}while(n!==e)}break;case 1:if(Sr(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){da(t,e)}break;case 5:Sr(t);break;case 4:Z?Dr(e,t):X&&X&&(t=t.stateNode.containerInfo,e=Ce(t),Re(t,e))}}function Cr(e,t){for(var n=t;;)if(Mr(e,n),null===n.child||Z&&4===n.tag){if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}else n.child.return=n,n=n.child}function Nr(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Or(e){return 5===e.tag||3===e.tag||4===e.tag}function Rr(e){if(Z){e:{for(var t=e.return;null!==t;){if(Or(t))break e;t=t.return}throw Error(s(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var i=!1;break;case 3:case 4:t=t.containerInfo,i=!0;break;default:throw Error(s(161))}16&n.flags&&(we(t),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Or(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}i?Lr(e,n,t):Pr(e,n,t)}}function Lr(e,t,n){var i=e.tag,r=5===i||6===i;if(r)e=r?e.stateNode:e.stateNode.instance,t?_e(n,e,t):me(n,e);else if(4!==i&&null!==(e=e.child))for(Lr(e,t,n),e=e.sibling;null!==e;)Lr(e,t,n),e=e.sibling}function Pr(e,t,n){var i=e.tag,r=5===i||6===i;if(r)e=r?e.stateNode:e.stateNode.instance,t?ye(n,e,t):pe(n,e);else if(4!==i&&null!==(e=e.child))for(Pr(e,t,n),e=e.sibling;null!==e;)Pr(e,t,n),e=e.sibling}function Dr(e,t){for(var n,i,r=t,o=!1;;){if(!o){o=r.return;e:for(;;){if(null===o)throw Error(s(160));switch(n=o.stateNode,o.tag){case 5:i=!1;break e;case 3:case 4:n=n.containerInfo,i=!0;break e}o=o.return}o=!0}if(5===r.tag||6===r.tag)Cr(e,r),i?xe(n,r.stateNode):be(n,r.stateNode);else if(4===r.tag){if(null!==r.child){n=r.stateNode.containerInfo,i=!0,r.child.return=r,r=r.child;continue}}else if(Mr(e,r),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;4===(r=r.return).tag&&(o=!1)}r.sibling.return=r.return,r=r.sibling}}function kr(e,t){if(Z){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Ar(3,t);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var i=t.memoizedProps;e=null!==e?e.memoizedProps:i;var r=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&ve(n,o,r,e,i,t)}return;case 6:if(null===t.stateNode)throw Error(s(162));return n=t.memoizedProps,void fe(t.stateNode,null!==e?e.memoizedProps:n,n);case 3:return void(K&&(t=t.stateNode,t.hydrate&&(t.hydrate=!1,Ve(t.containerInfo))));case 13:return Br(t),void Fr(t);case 19:return void Fr(t);case 23:case 24:return void Ir(t,null!==t.memoizedState)}throw Error(s(163))}switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void Ar(3,t);case 12:case 23:case 24:return;case 13:return Br(t),void Fr(t);case 19:return void Fr(t);case 3:K&&((n=t.stateNode).hydrate&&(n.hydrate=!1,Ve(n.containerInfo)))}e:if(X){switch(t.tag){case 1:case 5:case 6:case 20:break e;case 3:case 4:t=t.stateNode,Re(t.containerInfo,t.pendingChildren);break e}throw Error(s(163))}}function Br(e){null!==e.memoizedState&&(go=Ht(),Z&&Ir(e.child,!0))}function Fr(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new wr),t.forEach((function(t){var i=pa.bind(null,e,t);n.has(t)||(n.add(t),t.then(i,i))}))}}function Ur(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var zr=0,Gr=1,jr=2,Hr=3,Vr=4;if("function"==typeof Symbol&&Symbol.for){var Wr=Symbol.for;zr=Wr("selector.component"),Gr=Wr("selector.has_pseudo_class"),jr=Wr("selector.role"),Hr=Wr("selector.test_id"),Vr=Wr("selector.text")}function qr(e){var t=Q(e);if(null!=t){if("string"!=typeof t.memoizedProps["data-testname"])throw Error(s(364));return t}if(null===(e=ae(e)))throw Error(s(362));return e.stateNode.current}function $r(e,t){switch(t.$$typeof){case zr:if(e.type===t.value)return!0;break;case Gr:e:{t=t.value,e=[e,0];for(var n=0;n<e.length;){var i=e[n++],r=e[n++],o=t[r];if(5!==i.tag||!ce(i)){for(;null!=o&&$r(i,o);)o=t[++r];if(r===t.length){t=!0;break e}for(i=i.child;null!==i;)e.push(i,r),i=i.sibling}}t=!1}return t;case jr:if(5===e.tag&&ue(e.stateNode,t.value))return!0;break;case Vr:if((5===e.tag||6===e.tag)&&null!==(e=le(e))&&0<=e.indexOf(t.value))return!0;break;case Hr:if(5===e.tag&&("string"==typeof(e=e.memoizedProps["data-testname"])&&e.toLowerCase()===t.value.toLowerCase()))return!0;break;default:throw Error(s(365,t))}return!1}function Yr(e){switch(e.$$typeof){case zr:return"<"+(M(e.value)||"Unknown")+">";case Gr:return":has("+(Yr(e)||"")+")";case jr:return'[role="'+e.value+'"]';case Vr:return'"'+e.value+'"';case Hr:return'[data-testname="'+e.value+'"]';default:throw Error(s(365,e))}}function Jr(e,t){var n=[];e=[e,0];for(var i=0;i<e.length;){var r=e[i++],o=e[i++],a=t[o];if(5!==r.tag||!ce(r)){for(;null!=a&&$r(r,a);)a=t[++o];if(o===t.length)n.push(r);else for(r=r.child;null!==r;)e.push(r,o),r=r.sibling}}return n}function Zr(e,t){if(!oe)throw Error(s(363));e=Jr(e=qr(e),t),t=[],e=Array.from(e);for(var n=0;n<e.length;){var i=e[n++];if(5===i.tag)ce(i)||t.push(i.stateNode);else for(i=i.child;null!==i;)e.push(i),i=i.sibling}return t}var Xr=null;var Kr=Math.ceil,Qr=l.ReactCurrentDispatcher,eo=l.ReactCurrentOwner,to=l.IsSomeRendererActing,no=0,io=null,ro=null,oo=0,ao=0,so=Xe(0),lo=0,co=null,uo=0,ho=0,po=0,mo=0,fo=null,go=0,vo=1/0;function yo(){vo=Ht()+500}var _o,bo=null,xo=!1,wo=null,So=null,Eo=!1,Ao=null,To=90,Io=[],Mo=[],Co=null,No=0,Oo=null,Ro=-1,Lo=0,Po=0,Do=null,ko=!1;function Bo(){return 0!=(48&no)?Ht():-1!==Ro?Ro:Ro=Ht()}function Fo(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Vt()?1:2;if(0===Lo&&(Lo=uo),0!==Zt.transition){0!==Po&&(Po=null!==fo?fo.pendingLanes:0),e=Lo;var t=4186112&~Po;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Vt(),0!=(4&no)&&98===e?e=yt(12,Lo):e=yt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),Lo),e}function Uo(e,t,n){if(50<No)throw No=0,Oo=null,Error(s(185));if(null===(e=zo(e,t)))return null;xt(e,t,n),e===io&&(po|=t,4===lo&&Ho(e,oo));var i=Vt();1===t?0!=(8&no)&&0==(48&no)?Vo(e):(Go(e,n),0===no&&(yo(),Yt())):(0==(4&no)||98!==i&&99!==i||(null===Co?Co=new Set([e]):Co.add(e)),Go(e,n)),fo=e}function zo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function Go(e,t){for(var n=e.callbackNode,i=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var l=31-wt(a),c=1<<l,u=o[l];if(-1===u){if(0==(c&i)||0!=(c&r)){u=t,ft(c);var d=mt;o[l]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);a&=~c}if(i=gt(e,e===io?oo:0),t=mt,0===i)null!==n&&(n!==Bt&&It(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Bt&&It(n)}15===t?(n=Vo.bind(null,e),null===Ut?(Ut=[n],zt=Tt(Rt,Jt)):Ut.push(n),n=Bt):14===t?n=$t(99,Vo.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(s(358,e))}}(t),n=$t(n,jo.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function jo(e){if(Ro=-1,Po=Lo=0,0!=(48&no))throw Error(s(327));var t=e.callbackNode;if(aa()&&e.callbackNode!==t)return null;var n=gt(e,e===io?oo:0);if(0===n)return null;var i=n,r=no;no|=16;var o=Xo();for(io===e&&oo===i||(yo(),Jo(e,i));;)try{ea();break}catch(t){Zo(e,t)}if(sn(),Qr.current=o,no=r,null!==ro?i=0:(io=null,oo=0,i=lo),0!=(uo&po))Jo(e,0);else if(0!==i){if(2===i&&(no|=64,e.hydrate&&(e.hydrate=!1,Ie(e.containerInfo)),0!==(n=vt(e))&&(i=Ko(e,n))),1===i)throw t=co,Jo(e,0),Ho(e,n),Go(e,Ht()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,i){case 0:case 1:throw Error(s(345));case 2:case 5:ia(e);break;case 3:if(Ho(e,n),(62914560&n)===n&&10<(i=go+500-Ht())){if(0!==gt(e,0))break;if(((r=e.suspendedLanes)&n)!==n){Bo(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=q(ia.bind(null,e),i);break}ia(e);break;case 4:if(Ho(e,n),(4186112&n)===n)break;for(i=e.eventTimes,r=-1;0<n;){var a=31-wt(n);o=1<<a,(a=i[a])>r&&(r=a),n&=~o}if(n=r,10<(n=(120>(n=Ht()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Kr(n/1960))-n)){e.timeoutHandle=q(ia.bind(null,e),n);break}ia(e);break;default:throw Error(s(329))}}return Go(e,Ht()),e.callbackNode===t?jo.bind(null,e):null}function Ho(e,t){for(t&=~mo,t&=~po,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-wt(t),i=1<<n;e[n]=-1,t&=~i}}function Vo(e){if(0!=(48&no))throw Error(s(327));if(aa(),e===io&&0!=(e.expiredLanes&oo)){var t=oo,n=Ko(e,t);0!=(uo&po)&&(n=Ko(e,t=gt(e,t)))}else n=Ko(e,t=gt(e,0));if(0!==e.tag&&2===n&&(no|=64,e.hydrate&&(e.hydrate=!1,Ie(e.containerInfo)),0!==(t=vt(e))&&(n=Ko(e,t))),1===n)throw n=co,Jo(e,0),Ho(e,t),Go(e,Ht()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,ia(e),Go(e,Ht()),null}function Wo(e,t){var n=no;no|=1;try{return e(t)}finally{0===(no=n)&&(yo(),Yt())}}function qo(e,t){var n=no;if(0!=(48&n))return e(t);no|=1;try{if(e)return qt(99,e.bind(null,t))}finally{no=n,Yt()}}function $o(e,t){Qe(so,ao),ao|=t,uo|=t}function Yo(){ao=so.current,Ke(so)}function Jo(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==Y&&(e.timeoutHandle=Y,$(n)),null!==ro)for(n=ro.return;null!==n;){var i=n;switch(i.tag){case 1:null!=(i=i.type.childContextTypes)&&at();break;case 3:zn(),Ke(nt),Ke(tt),ti();break;case 5:jn(i);break;case 4:zn();break;case 13:case 19:Ke(Hn);break;case 10:cn(i);break;case 23:case 24:Yo()}n=n.return}io=e,ro=Ea(e.current,null),oo=ao=uo=t,lo=0,co=null,mo=po=ho=0}function Zo(e,t){for(;;){var n=ro;try{if(sn(),ni.current=Bi,li){for(var i=oi.memoizedState;null!==i;){var r=i.queue;null!==r&&(r.pending=null),i=i.next}li=!1}if(ri=0,si=ai=oi=null,ci=!1,eo.current=null,null===n||null===n.return){lo=1,co=t,ro=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=oo,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l;if(0==(2&s.mode)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=0!=(1&Hn.current),h=a;do{var p;if(p=13===h.tag){var m=h.memoizedState;if(null!==m)p=null!==m.dehydrated;else{var f=h.memoizedProps;p=void 0!==f.fallback&&(!0!==f.unstable_avoidThisFallback||!d)}}if(p){var g=h.updateQueue;if(null===g){var v=new Set;v.add(c),h.updateQueue=v}else g.add(c);if(0==(2&h.mode)){if(h.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=gn(-1,1);y.tag=2,vn(s,y)}s.lanes|=1;break e}l=void 0,s=t;var _=o.pingCache;if(null===_?(_=o.pingCache=new _r,l=new Set,_.set(c,l)):void 0===(l=_.get(c))&&(l=new Set,_.set(c,l)),!l.has(s)){l.add(s);var b=ha.bind(null,o,c,s);c.then(b,b)}h.flags|=4096,h.lanes=t;break e}h=h.return}while(null!==h);l=Error((M(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==lo&&(lo=2),l=vr(l,s),h=a;do{switch(h.tag){case 3:o=l,h.flags|=4096,t&=-t,h.lanes|=t,yn(h,br(0,o,t));break e;case 1:o=l;var x=h.type,w=h.stateNode;if(0==(64&h.flags)&&("function"==typeof x.getDerivedStateFromError||null!==w&&"function"==typeof w.componentDidCatch&&(null===So||!So.has(w)))){h.flags|=4096,t&=-t,h.lanes|=t,yn(h,xr(h,o,t));break e}}h=h.return}while(null!==h)}na(n)}catch(e){t=e,ro===n&&null!==n&&(ro=n=n.return);continue}break}}function Xo(){var e=Qr.current;return Qr.current=Bi,null===e?Bi:e}function Ko(e,t){var n=no;no|=16;var i=Xo();for(io===e&&oo===t||Jo(e,t);;)try{Qo();break}catch(t){Zo(e,t)}if(sn(),no=n,Qr.current=i,null!==ro)throw Error(s(261));return io=null,oo=0,lo}function Qo(){for(;null!==ro;)ta(ro)}function ea(){for(;null!==ro&&!Mt();)ta(ro)}function ta(e){var t=_o(e.alternate,e,ao);e.memoizedProps=e.pendingProps,null===t?na(e):ro=t,eo.current=null}function na(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=fr(n,t,ao)))return void(ro=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&ao)||0==(4&n.mode)){for(var i=0,r=n.child;null!==r;)i|=r.lanes|r.childLanes,r=r.sibling;n.childLanes=i}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=gr(t)))return n.flags&=2047,void(ro=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(ro=t);ro=t=e}while(null!==t);0===lo&&(lo=5)}function ia(e){var t=Vt();return qt(99,ra.bind(null,e,t)),null}function ra(e,t){do{aa()}while(null!==Ao);if(0!=(48&no))throw Error(s(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(s(177));e.callbackNode=null;var i=n.lanes|n.childLanes,r=i,o=e.pendingLanes&~r;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=r,e.mutableReadLanes&=r,e.entangledLanes&=r,r=e.entanglements;for(var a=e.eventTimes,l=e.expirationTimes;0<o;){var c=31-wt(o),u=1<<c;r[c]=0,a[c]=-1,l[c]=-1,o&=~u}if(null!==Co&&0==(24&i)&&Co.has(e)&&Co.delete(e),e===io&&(ro=io=null,oo=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){r=no,no|=32,eo.current=null,Do=F(e.containerInfo),ko=!1,bo=i;do{try{oa()}catch(e){if(null===bo)throw Error(s(330));da(bo,e),bo=bo.nextEffect}}while(null!==bo);Do=null,bo=i;do{try{for(a=e;null!==bo;){var d=bo.flags;if(16&d&&Z&&we(bo.stateNode),128&d){var h=bo.alternate;if(null!==h){var p=h.ref;null!==p&&("function"==typeof p?p(null):p.current=null)}}switch(1038&d){case 2:Rr(bo),bo.flags&=-3;break;case 6:Rr(bo),bo.flags&=-3,kr(bo.alternate,bo);break;case 1024:bo.flags&=-1025;break;case 1028:bo.flags&=-1025,kr(bo.alternate,bo);break;case 4:kr(bo.alternate,bo);break;case 8:l=a,o=bo,Z?Dr(l,o):Cr(l,o);var m=o.alternate;Nr(o),null!==m&&Nr(m)}bo=bo.nextEffect}}catch(e){if(null===bo)throw Error(s(330));da(bo,e),bo=bo.nextEffect}}while(null!==bo);ko&&ie(),U(e.containerInfo),e.current=n,bo=i;do{try{for(d=e;null!==bo;){var f=bo.flags;if(36&f&&Tr(d,bo.alternate,bo),128&f){h=void 0;var g=bo.ref;if(null!==g){var v=bo.stateNode;if(5===bo.tag)h=D(v);else h=v;"function"==typeof g?g(h):g.current=h}}bo=bo.nextEffect}}catch(e){if(null===bo)throw Error(s(330));da(bo,e),bo=bo.nextEffect}}while(null!==bo);bo=null,Ft(),no=r}else e.current=n;if(Eo)Eo=!1,Ao=e,To=t;else for(bo=i;null!==bo;)t=bo.nextEffect,bo.nextEffect=null,8&bo.flags&&((f=bo).sibling=null,f.stateNode=null),bo=t;if(0===(i=e.pendingLanes)&&(So=null),1===i?e===Oo?No++:(No=0,Oo=e):No=0,n=n.stateNode,ht&&"function"==typeof ht.onCommitFiberRoot)try{ht.onCommitFiberRoot(dt,n,void 0,64==(64&n.current.flags))}catch(e){}if(Go(e,Ht()),xo)throw xo=!1,e=wo,wo=null,e;return 0!=(8&no)||Yt(),null}function oa(){for(;null!==bo;){var e=bo.alternate;ko||null===Do||(0!=(8&bo.flags)?L(bo,Do)&&(ko=!0,ne()):13===bo.tag&&Ur(e,bo)&&L(bo,Do)&&(ko=!0,ne()));var t=bo.flags;0!=(256&t)&&Er(e,bo),0==(512&t)||Eo||(Eo=!0,$t(97,(function(){return aa(),null}))),bo=bo.nextEffect}}function aa(){if(90!==To){var e=97<To?97:To;return To=90,qt(e,ca)}return!1}function sa(e,t){Io.push(t,e),Eo||(Eo=!0,$t(97,(function(){return aa(),null})))}function la(e,t){Mo.push(t,e),Eo||(Eo=!0,$t(97,(function(){return aa(),null})))}function ca(){if(null===Ao)return!1;var e=Ao;if(Ao=null,0!=(48&no))throw Error(s(331));var t=no;no|=32;var n=Mo;Mo=[];for(var i=0;i<n.length;i+=2){var r=n[i],o=n[i+1],a=r.destroy;if(r.destroy=void 0,"function"==typeof a)try{a()}catch(e){if(null===o)throw Error(s(330));da(o,e)}}for(n=Io,Io=[],i=0;i<n.length;i+=2){r=n[i],o=n[i+1];try{var l=r.create;r.destroy=l()}catch(e){if(null===o)throw Error(s(330));da(o,e)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return no=t,Yt(),!0}function ua(e,t,n){vn(e,t=br(0,t=vr(n,t),1)),t=Bo(),null!==(e=zo(e,1))&&(xt(e,1,t),Go(e,t))}function da(e,t){if(3===e.tag)ua(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){ua(n,e,t);break}if(1===n.tag){var i=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof i.componentDidCatch&&(null===So||!So.has(i))){var r=xr(n,e=vr(t,e),1);if(vn(n,r),r=Bo(),null!==(n=zo(n,1)))xt(n,1,r),Go(n,r);else if("function"==typeof i.componentDidCatch&&(null===So||!So.has(i)))try{i.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function ha(e,t,n){var i=e.pingCache;null!==i&&i.delete(t),t=Bo(),e.pingedLanes|=e.suspendedLanes&n,io===e&&(oo&n)===n&&(4===lo||3===lo&&(62914560&oo)===oo&&500>Ht()-go?Jo(e,0):mo|=n),Go(e,t)}function pa(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Vt()?1:2:(0===Lo&&(Lo=uo),0===(t=_t(62914560&~Lo))&&(t=4194304))),n=Bo(),null!==(e=zo(e,t))&&(xt(e,t,n),Go(e,n))}_o=function(e,t,n){var i=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||nt.current)ji=!0;else{if(0==(n&i)){switch(ji=!1,t.tag){case 3:Ki(t),Qn();break;case 5:Gn(t);break;case 1:ot(t.type)&&ct(t);break;case 4:Un(t,t.stateNode.containerInfo);break;case 10:ln(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?rr(e,t,n):(Qe(Hn,1&Hn.current),null!==(t=dr(e,t,n))?t.sibling:null);Qe(Hn,1&Hn.current);break;case 19:if(i=0!=(n&t.childLanes),0!=(64&e.flags)){if(i)return ur(e,t,n);t.flags|=64}var r=t.memoizedState;if(null!==r&&(r.rendering=null,r.tail=null,r.lastEffect=null),Qe(Hn,Hn.current),i)break;return null;case 23:case 24:return t.lanes=0,$i(e,t,n)}return dr(e,t,n)}ji=0!=(16384&e.flags)}else ji=!1;switch(t.lanes=0,t.tag){case 2:if(i=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,r=rt(t,tt.current),dn(t,n),r=hi(null,t,i,e,r,n),t.flags|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ot(i)){var o=!0;ct(t)}else o=!1;t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,mn(t);var a=i.getDerivedStateFromProps;"function"==typeof a&&wn(t,i,a,e),r.updater=Sn,t.stateNode=r,r._reactInternals=t,In(t,i,e,n),t=Xi(null,t,i,!0,o,n)}else t.tag=0,Hi(null,t,r,n),t=t.child;return t;case 16:r=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Sa(e)?1:0;if(null!=e){if((e=e.$$typeof)===g)return 11;if(e===_)return 14}return 2}(r),e=tn(r,e),o){case 0:t=Ji(null,t,r,e,n);break e;case 1:t=Zi(null,t,r,e,n);break e;case 11:t=Vi(null,t,r,e,n);break e;case 14:t=Wi(null,t,r,tn(r.type,e),i,n);break e}throw Error(s(306,r,""))}return t;case 0:return i=t.type,r=t.pendingProps,Ji(e,t,i,r=t.elementType===i?r:tn(i,r),n);case 1:return i=t.type,r=t.pendingProps,Zi(e,t,i,r=t.elementType===i?r:tn(i,r),n);case 3:if(Ki(t),i=t.updateQueue,null===e||null===i)throw Error(s(282));if(i=t.pendingProps,r=null!==(r=t.memoizedState)?r.element:null,fn(e,t),_n(t,i,null,n),(i=t.memoizedState.element)===r)Qn(),t=dr(e,t,n);else{if((o=(r=t.stateNode).hydrate)&&(K?(qn=ze(t.stateNode.containerInfo),Wn=t,o=$n=!0):o=!1),o){if(K&&null!=(e=r.mutableSourceEagerHydrationData))for(r=0;r<e.length;r+=2)o=e[r],a=e[r+1],J?o._workInProgressVersionPrimary=a:o._workInProgressVersionSecondary=a,ei.push(o);for(n=Ln(t,null,i,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Hi(e,t,i,n),Qn();t=t.child}return t;case 5:return Gn(t),null===e&&Zn(t),i=t.type,r=t.pendingProps,o=null!==e?e.memoizedProps:null,a=r.children,V(i,r)?a=null:null!==o&&V(i,o)&&(t.flags|=16),Yi(e,t),Hi(e,t,a,n),t.child;case 6:return null===e&&Zn(t),null;case 13:return rr(e,t,n);case 4:return Un(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=Rn(t,null,i,n):Hi(e,t,i,n),t.child;case 11:return i=t.type,r=t.pendingProps,Vi(e,t,i,r=t.elementType===i?r:tn(i,r),n);case 7:return Hi(e,t,t.pendingProps,n),t.child;case 8:case 12:return Hi(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,r=t.pendingProps,a=t.memoizedProps,ln(t,o=r.value),null!==a){var l=a.value;if(0===(o=Xt(l,o)?0:0|("function"==typeof i._calculateChangedBits?i._calculateChangedBits(l,o):1073741823))){if(a.children===r.children&&!nt.current){t=dr(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){a=l.child;for(var u=c.firstContext;null!==u;){if(u.context===i&&0!=(u.observedBits&o)){1===l.tag&&((u=gn(-1,n&-n)).tag=2,vn(l,u)),l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),un(l.return,n),c.lanes|=n;break}u=u.next}}else a=10===l.tag&&l.type===t.type?null:l.child;if(null!==a)a.return=l;else for(a=l;null!==a;){if(a===t){a=null;break}if(null!==(l=a.sibling)){l.return=a.return,a=l;break}a=a.return}l=a}}Hi(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,i=(o=t.pendingProps).children,dn(t,n),i=i(r=hn(r,o.unstable_observedBits)),t.flags|=1,Hi(e,t,i,n),t.child;case 14:return o=tn(r=t.type,t.pendingProps),Wi(e,t,r,o=tn(r.type,o),i,n);case 15:return qi(e,t,t.type,t.pendingProps,i,n);case 17:return i=t.type,r=t.pendingProps,r=t.elementType===i?r:tn(i,r),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ot(i)?(e=!0,ct(t)):e=!1,dn(t,n),An(t,i,r),In(t,i,r,n),Xi(null,t,i,!0,e,n);case 19:return ur(e,t,n);case 23:case 24:return $i(e,t,n)}throw Error(s(156,t.tag))};var ma={current:!1},fa=a.unstable_flushAllWithoutAsserting,ga="function"==typeof fa;function va(){if(void 0!==fa)return fa();for(var e=!1;aa();)e=!0;return e}function ya(t){try{va(),function(t){if(null===Xr)try{var n=("require"+Math.random()).slice(0,7);Xr=(e&&e[n]).call(e,"timers").setImmediate}catch(e){Xr=function(e){var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}Xr(t)}((function(){va()?ya(t):t()}))}catch(e){t(e)}}var _a=0,ba=!1;function xa(e,t,n,i){this.tag=e,this.key=n,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=i,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function wa(e,t,n,i){return new xa(e,t,n,i)}function Sa(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ea(e,t){var n=e.alternate;return null===n?((n=wa(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Aa(e,t,n,i,r,o){var a=2;if(i=e,"function"==typeof e)Sa(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case d:return Ta(n.children,r,o,t);case w:a=8,r|=16;break;case h:a=8,r|=1;break;case p:return(e=wa(12,n,t,8|r)).elementType=p,e.type=p,e.lanes=o,e;case v:return(e=wa(13,n,t,r)).type=v,e.elementType=v,e.lanes=o,e;case y:return(e=wa(19,n,t,r)).elementType=y,e.lanes=o,e;case S:return Ia(n,r,o,t);case E:return(e=wa(24,n,t,r)).elementType=E,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case m:a=10;break e;case f:a=9;break e;case g:a=11;break e;case _:a=14;break e;case b:a=16,i=null;break e;case x:a=22;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=wa(a,n,t,r)).elementType=e,t.type=i,t.lanes=o,t}function Ta(e,t,n,i){return(e=wa(7,e,i,t)).lanes=n,e}function Ia(e,t,n,i){return(e=wa(23,e,i,t)).elementType=S,e.lanes=n,e}function Ma(e,t,n){return(e=wa(6,e,null,t)).lanes=n,e}function Ca(e,t,n){return(t=wa(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Na(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Y,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=bt(0),this.expirationTimes=bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bt(0),K&&(this.mutableSourceEagerHydrationData=null)}function Oa(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(s(188));throw Error(s(268,Object.keys(e)))}return null===(e=R(t))?null:e.stateNode}function Ra(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function La(e,t){Ra(e,t),(e=e.alternate)&&Ra(e,t)}function Pa(e){return null===(e=R(e))?null:e.stateNode}function Da(){return null}return n.IsThisRendererActing=ma,n.act=function(e){function t(){_a--,to.current=n,ma.current=i}!1===ba&&(ba=!0,console.error("act(...) is not supported in production builds of React, and might not behave as expected.")),_a++;var n=to.current,i=ma.current;to.current=!0,ma.current=!0;try{var r=Wo(e)}catch(e){throw t(),e}if(null!==r&&"object"==typeof r&&"function"==typeof r.then)return{then:function(e,i){r.then((function(){1<_a||!0===ga&&!0===n?(t(),e()):ya((function(n){t(),n?i(n):e()}))}),(function(e){t(),i(e)}))}};try{1!==_a||!1!==ga&&!1!==n||va(),t()}catch(e){throw t(),e}return{then:function(e){e()}}},n.attemptContinuousHydration=function(e){13===e.tag&&(Uo(e,67108864,Bo()),La(e,67108864))},n.attemptHydrationAtCurrentPriority=function(e){if(13===e.tag){var t=Bo(),n=Fo(e);Uo(e,n,t),La(e,n)}},n.attemptSynchronousHydration=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.hydrate){var n=ft(t.pendingLanes);t.expiredLanes|=n&t.pendingLanes,Go(t,Ht()),0==(48&no)&&(yo(),Yt())}break;case 13:var i=Bo();qo((function(){return Uo(e,1,i)})),La(e,4)}},n.attemptUserBlockingHydration=function(e){13===e.tag&&(Uo(e,4,Bo()),La(e,4))},n.batchedEventUpdates=function(e,t){var n=no;no|=2;try{return e(t)}finally{0===(no=n)&&(yo(),Yt())}},n.batchedUpdates=Wo,n.createComponentSelector=function(e){return{$$typeof:zr,value:e}},n.createContainer=function(e,t,n){return e=new Na(e,t,n),t=wa(3,null,null,2===t?7:1===t?3:0),e.current=t,t.stateNode=e,mn(t),e},n.createHasPsuedoClassSelector=function(e){return{$$typeof:Gr,value:e}},n.createPortal=function(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:u,key:null==i?null:""+i,children:e,containerInfo:t,implementation:n}},n.createRoleSelector=function(e){return{$$typeof:jr,value:e}},n.createTestNameSelector=function(e){return{$$typeof:Hr,value:e}},n.createTextSelector=function(e){return{$$typeof:Vr,value:e}},n.deferredUpdates=function(e){return qt(97,e)},n.discreteUpdates=function(e,t,n,i,r){var o=no;no|=4;try{return qt(98,e.bind(null,t,n,i,r))}finally{0===(no=o)&&(yo(),Yt())}},n.findAllNodes=Zr,n.findBoundingRects=function(e,t){if(!oe)throw Error(s(363));t=Zr(e,t),e=[];for(var n=0;n<t.length;n++)e.push(se(t[n]));for(t=e.length-1;0<t;t--)for(var i=(n=e[t]).x,r=i+n.width,o=n.y,a=o+n.height,l=t-1;0<=l;l--)if(t!==l){var c=e[l],u=c.x,d=u+c.width,h=c.y,p=h+c.height;if(i>=u&&o>=h&&r<=d&&a<=p){e.splice(t,1);break}if(!(i!==u||n.width!==c.width||p<o||h>a)){h>o&&(c.height+=h-o,c.y=o),p<a&&(c.height=a-h),e.splice(t,1);break}if(!(o!==h||n.height!==c.height||d<i||u>r)){u>i&&(c.width+=u-i,c.x=i),d<r&&(c.width=r-u),e.splice(t,1);break}}return e},n.findHostInstance=Oa,n.findHostInstanceWithNoPortals=function(e){return null===(e=function(e){if(!(e=O(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child&&4!==t.tag)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}(e))?null:20===e.tag?e.stateNode.instance:e.stateNode},n.findHostInstanceWithWarning=function(e){return Oa(e)},n.flushControlled=function(e){var t=no;no|=1;try{qt(99,e)}finally{0===(no=t)&&(yo(),Yt())}},n.flushDiscreteUpdates=function(){0==(49&no)&&(function(){if(null!==Co){var e=Co;Co=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,Go(e,Ht())}))}Yt()}(),aa())},n.flushPassiveEffects=aa,n.flushSync=qo,n.focusWithin=function(e,t){if(!oe)throw Error(s(363));for(t=Jr(e=qr(e),t),t=Array.from(t),e=0;e<t.length;){var n=t[e++];if(!ce(n)){if(5===n.tag&&de(n.stateNode))return!0;for(n=n.child;null!==n;)t.push(n),n=n.sibling}}return!1},n.getCurrentUpdateLanePriority=function(){return pt},n.getFindAllNodesFailureDescription=function(e,t){if(!oe)throw Error(s(363));var n=0,i=[];e=[qr(e),0];for(var r=0;r<e.length;){var o=e[r++],a=e[r++],l=t[a];if((5!==o.tag||!ce(o))&&($r(o,l)&&(i.push(Yr(l)),++a>n&&(n=a)),a<t.length))for(o=o.child;null!==o;)e.push(o,a),o=o.sibling}if(n<t.length){for(e=[];n<t.length;n++)e.push(Yr(t[n]));return"findAllNodes was able to match part of the selector:\n "+i.join(" > ")+"\n\nNo matching component was found for:\n "+e.join(" > ")}return null},n.getPublicRootInstance=function(e){return(e=e.current).child?5===e.child.tag?D(e.child.stateNode):e.child.stateNode:null},n.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:l.ReactCurrentDispatcher,findHostInstanceByFiber:Pa,findFiberByHostInstance:e.findFiberByHostInstance||Da,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null},"undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!t.isDisabled&&t.supportsFiber)try{dt=t.inject(e),ht=t}catch(e){}e=!0}return e},n.observeVisibleRects=function(e,t,n,i){if(!oe)throw Error(s(363));e=Zr(e,t);var r=he(e,n,i).disconnect;return{disconnect:function(){r()}}},n.registerMutableSourceForHydration=function(e,t){var n=t._getVersion;n=n(t._source),null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)},n.runWithPriority=function(e,t){var n=pt;try{return pt=e,t()}finally{pt=n}},n.shouldSuspend=function(){return!1},n.unbatchedUpdates=function(e,t){var n=no;no&=-2,no|=8;try{return e(t)}finally{0===(no=n)&&(yo(),Yt())}},n.updateContainer=function(e,t,n,i){var r=t.current,o=Bo(),a=Fo(r);e:if(n){t:{if(C(n=n._reactInternals)!==n||1!==n.tag)throw Error(s(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(ot(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(s(171))}if(1===n.tag){var c=n.type;if(ot(c)){n=lt(n,c,l);break e}}n=l}else n=et;return null===t.context?t.context=n:t.pendingContext=n,(t=gn(o,a)).payload={element:e},null!==(i=void 0===i?null:i)&&(t.callback=i),vn(r,t),Uo(r,a,o),a},n}}));var a;a=o("9Hk4c");var s={};!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){console.error(e)}}(),s=o("bU6y3");var l,c=o("85Hg2");l=o("bG9xl")();const u=e=>e?new URL(e.startsWith("http")?e:`https://${e}`).origin:"https://engine.memori.ai";var d=o("dCyaf");const h=(e,n)=>t(d)(`${n.apiUrl}${e}`,{...n,body:(null==n?void 0:n.body)?JSON.stringify(n.body):void 0,mode:"cors",credentials:"include",headers:{"Content-Type":"application/json",...null==n?void 0:n.headers}}).then((e=>(null==n?void 0:n.text)?e.text():e.json())),p=async(e,n)=>{const i=(null==n?void 0:n.responseType)||"arrayBuffer";return t(d)(`${n.apiUrl}${e}`,{method:n.method||"GET",body:(null==n?void 0:n.body)?JSON.stringify(n.body):void 0,mode:"cors",credentials:"include",headers:{"Content-Type":"application/json",Accept:"application/octet-stream, application/zip",...null==n?void 0:n.headers}}).then((async e=>{if(!e.ok)throw new Error(`API responded with status: ${e.status}`);return"blob"===i?e.blob():e.arrayBuffer()}))};var m=e=>({getTenantPublicMemoriList:t=>h(`/TenantPublicMemori/${encodeURIComponent(t)}`,{apiUrl:e}),getTenantMetaverseMemoriList:t=>h(`/TenantMetaverseMemori/${encodeURIComponent(t)}`,{apiUrl:e}),getPublicMemoriList:t=>h(`/PublicMemori/${t}`,{apiUrl:e}),getAllMemori:t=>h(`/AllMemori/${t}`,{apiUrl:e}),getUserByIDMemoriList:(t,n,i)=>h(`/UserMemoriByID/${t}/${n}${i?`/${i}`:""}`,{apiUrl:e}),getUserMemoriList:(t,n,i)=>h(`/UserMemori/${t}/${n}${i?`/${i}`:""}`,{apiUrl:e}),getMemoriList:t=>h(`/Memori/${t}`,{apiUrl:e}),getSharedMemoriList:t=>h(`/SharedMemori/${t}`,{apiUrl:e}),getTenantCategories:t=>h(`/TenantMemoriCategories/${encodeURIComponent(t)}`,{apiUrl:e}),getMemoriConfigs:t=>h(`/MemoriConfigs/${t}`,{apiUrl:e}),createMemori:(t,n)=>h(`/Memori/${t}`,{apiUrl:e,body:n,method:"POST"}),updateMemori:(t,n)=>h(`/Memori/${t}/${n.memoriID}`,{apiUrl:e,body:n,method:"PATCH"}),deleteMemori:(t,n)=>h(`/Memori/${t}`,{apiUrl:e,body:n,method:"DELETE"}),getMemoriById:(t,n)=>h(`/Memori/${t}/${n}`,{apiUrl:e}),getMemoriByUserAndId:(t,n,i,r)=>h(`/MemoriById/${t}/${n}/${i}${r?`/${r}`:""}`,{apiUrl:e}),getMemori:(t,n,i,r)=>h(`/Memori/${encodeURIComponent(t)}/${encodeURIComponent(n)}/${encodeURIComponent(i)}/${null!=r?r:""}`,{apiUrl:e}),getMemoriSessions:(t,n,i,r)=>h(`/MemoriSessions/${t}/${n}${i?`/${i}`:""}${i&&r?`/${r}`:""}`,{apiUrl:e}),transferMemori:(t,n)=>h(`/TransferMemori/${t}`,{apiUrl:e,body:n,method:"POST"}),blockMemori:(t,n)=>h(`/MemoriBlock/${t}`,{apiUrl:e,body:n,method:"POST"}),unblockMemori:(t,n)=>h(`/MemoriBlock/${t}`,{apiUrl:e,body:n,method:"DELETE"}),getTenantPublicMemoriFiltered:(t,n)=>h(`/TenantPublicMemoriFiltered/${encodeURIComponent(t)}`,{apiUrl:e,body:n,method:"POST"}),getPublicMemoriFiltered:(t,n)=>h(`/PublicMemoriFiltered/${t}`,{apiUrl:e,body:n,method:"POST"}),getMemoriFiltered:(t,n)=>h(`/MemoriFiltered/${t}`,{apiUrl:e,body:n,method:"POST"}),getSharedMemoriFiltered:(t,n)=>h(`/SharedMemoriFiltered/${t}`,{apiUrl:e,body:n,method:"POST"}),getUserMemoriFiltered:(t,n,i,r)=>h(`/UserMemoriFiltered/${encodeURIComponent(t)}/${encodeURIComponent(n)}/${i}`,{apiUrl:e,body:r,method:"POST"}),getUserMemoriByIDFiltered:(t,n,i,r)=>h(`/UserMemoriByIDFiltered/${encodeURIComponent(t)}/${encodeURIComponent(n)}/${i}`,{apiUrl:e,body:r,method:"POST"}),getAllMemoriFiltered:(t,n)=>h(`/AllMemoriFiltered/${t}`,{apiUrl:e,body:n,method:"POST"})}),f=e=>({pwlUserLogin:t=>h("/PwlLogin",{apiUrl:e,body:{...t},method:"POST"}),pwlUserLogout:t=>h(`/PwlLogout/${t}`,{apiUrl:e,method:"POST"}),pwlGetCurrentUser:t=>h(`/PwlUser/${t}`,{apiUrl:e}),pwlGetUser:(t,n)=>h(`/PwlUser/${t}/${n}`,{apiUrl:e}),pwlGetUsersList:t=>h(`/PwlUsers/${t}`,{apiUrl:e}),pwlGetUsersListPaginated:(t,n)=>h(`/FilterPwlUsers/${t}`,{apiUrl:e,body:n,method:"POST"}),pwlDeleteUser:(t,n)=>h(`/PwlUser/${t}/${n}`,{apiUrl:e,method:"DELETE"}),pwlUpdateUser:(t,n,i)=>h(`/PwlUser/${t}/${n}`,{apiUrl:e,method:"PATCH",body:i}),pwlRecoverUsername:t=>h("/RecoverPwlUserName",{apiUrl:e,body:t,method:"POST"}),pwlCreateUser:(t,n)=>h(`/PwlUser/${t}`,{apiUrl:e,body:n,method:"POST"}),pwlLoginWithJWT:(t,n,i)=>h("/LoginWithJWT",{apiUrl:e,body:{jwtToken:t,tenant:n},headers:{"X-Memori-Trusted-App":i},method:"POST"}),loginWithOTP:t=>h("/LoginWithOTP",{apiUrl:e,method:"POST",body:{...t}}),validateOTPCode:(t,n,i,r)=>h("/ValidateOTPCode",{apiUrl:e,method:"POST",body:{userName:i,eMail:r,otpCode:t,tenant:n}}),refreshTemporarySession:t=>h("/RefreshTemporarySession",{apiUrl:e,body:t,method:"POST"})}),g=e=>({getMemoriIntegrationsList:(t,n)=>h(`/Integrations/${t}/${n}`,{apiUrl:e}),getAllIntegrationsList:t=>h(`/AllIntegrations/${t}`,{apiUrl:e}),getIntegration:(t,n)=>h(`/Integration/${t}/${n}`,{apiUrl:e}),deleteIntegration:(t,n)=>h(`/Integration/${t}/${n}`,{apiUrl:e,method:"DELETE"}),createIntegration:(t,n)=>h(`/Integration/${t}`,{apiUrl:e,method:"POST",body:n}),updateIntegration:(t,n,i)=>h(`/Integration/${t}/${n}`,{apiUrl:e,method:"PATCH",body:i})}),v=e=>({getUploadAssetURL:(t,n,i)=>`${e}/Asset/${t}${n?`/${n}`:""}${i?`/${i}`:""}`,uploadAsset:async(t,n,i,r,o)=>{const a=new FormData,s=await fetch(n),l=await s.blob();a.append(t,l,t);const c=await fetch(`${e}/Asset/${i}${r?`/${r}`:""}${o?`/${o}`:""}`,{method:"POST",body:a});return await c.json()},uploadAssetUnlogged:async(t,n,i,r)=>{const o=new FormData,a=await fetch(n),s=await a.blob();o.append(t,s,t);const l=await fetch(`${e}/Asset/unlogged/${i}/${r}`,{method:"POST",body:o});return await l.json()},getAsset:(t,n)=>h(`/Asset/${t}/${n}`,{apiUrl:e,method:"GET"}),getAssetList:t=>h(`/Assets/${t}`,{apiUrl:e,method:"GET"}),updateAsset:(t,n,i,r)=>h(`/Asset/${t}/${n.split("/").reverse()[0]}`,{apiUrl:e,method:"PATCH",body:{...i,remoteSessionCheck:null!=r&&r}}),deleteAsset:(t,n)=>h(`/Asset/${t}/${n.split("/").reverse()[0]}`,{apiUrl:e,method:"DELETE"})}),y=e=>({getSentInvitations:t=>h(`/SentInvitations/${t}`,{apiUrl:e}),getMemoriInvitations:(t,n)=>h(`/MemoriInvitations/${t}/${n}`,{apiUrl:e}),getReceivedInvitations:t=>h(`/ReceivedInvitations/${t}`,{apiUrl:e}),getAllInvitations:t=>h(`/AllInvitations/${t}`,{apiUrl:e}),getInvitation:(t,n)=>h(`/Invitation/${t}/${n}`,{apiUrl:e}),updateInvitation:(t,n)=>h(`/Invitation/${t}/${n.invitationID}`,{apiUrl:e,method:"PATCH",body:n}),deleteInvitation:(t,n)=>h(`/Invitation/${t}/${n}`,{apiUrl:e,method:"DELETE"}),acceptInvitation:(t,n)=>h(`/AcceptInvitation/${t}/${n}`,{apiUrl:e,method:"POST"}),rejectInvitation:(t,n)=>h(`/RejectInvitation/${t}/${n}`,{apiUrl:e,method:"POST"}),sendInvitation:(t,n)=>h(`/SendInvitation/${t}`,{apiUrl:e,method:"POST",body:n})}),_=e=>({getTenantConsumptionLogs:(t,n,i,r,o)=>h(`/TenantConsumptionLogs/${t}/${n}/${i}${r?`/${r}`:""}${r&&o?`/${o}`:""}`,{apiUrl:e}),getUserConsumptionLogs:(t,n,i,r,o)=>h(`/UserConsumptionLogs/${t}/${n}/${i}${r?`/${r}`:""}${r&&o?`/${o}`:""}`,{apiUrl:e}),getMemoriConsumptionLogs:(t,n,i,r,o)=>h(`/MemoriConsumptionLogs/${t}/${n}/${i}${r?`/${r}`:""}${r&&o?`/${o}`:""}`,{apiUrl:e})}),b=e=>({getTenantNotifications:t=>h(`/TenantNotifications/${t}`,{apiUrl:e}),getUserNotifications:t=>h(`/UserNotifications/${t}`,{apiUrl:e}),getChangelogNotifications:t=>h(`/ChangelogNotifications/${t}`,{apiUrl:e}),createNotification:(t,n)=>h(`/Notifications/${t}`,{apiUrl:e,method:"POST",body:n}),getNotification:(t,n)=>h(`/Notifications/${t}/${n}`,{apiUrl:e}),deleteNotification:(t,n)=>h(`/Notifications/${t}/${n}`,{apiUrl:e,method:"DELETE"}),listAllNotifications:(t,n="ACTIVE_AND_FUTURE")=>h(`/ListAllNotifications/${t}/${n}`,{apiUrl:e}),updateNotification:(t,n,i)=>h(`/Notifications/${t}/${n}`,{apiUrl:e,method:"PATCH",body:i})}),x=e=>({importCSV:async(t,n,i,r)=>h(`/ImportExport/ImportCSV/${t}/${n}`,{apiUrl:e,method:"POST",body:{rows:i,...r}}),importTXT:async(t,n,i,r)=>h(`/ImportExport/ImportTXT/${t}/${n}`,{apiUrl:e,method:"POST",body:{rows:i,...r}}),importDictionary:async(t,n,i,r)=>h(`/ImportExport/ImportDictionary/${t}/${n}`,{apiUrl:e,method:"POST",body:{rows:i,...r}}),importFunctionsIntents:async(t,n,i,r)=>h(`/ImportExport/ImportFunctionsIntents/${t}/${n}`,{apiUrl:e,method:"POST",body:{rows:i,...r}}),importMemori:async(t,n,i)=>h(`/ImportExport/ImportMemori/${t}`,{apiUrl:e,method:"POST",body:{rows:n,...i}}),exportCSV:async(t,n,i,r)=>h(`/ImportExport/ExportCSV/${t}/${n}`,{apiUrl:e,method:"POST",body:{csvSpecs:i,password:r},text:!0}),exportJSONL:async(t,n,i,r)=>h(`/ImportExport/ExportJSONL/${t}/${n}`,{apiUrl:e,method:"POST",body:{jsonlSpecs:i,password:r},text:!0}),exportMemori:async(t,n,i)=>p(`/ImportExport/ExportMemori/${t}/${n}`,{apiUrl:e,method:"POST",body:{password:i||""},responseType:"arrayBuffer"})}),w=e=>({getProcesses:async(t,n)=>h(`/Processes/${t}${n?`/${n}`:""}`,{apiUrl:e,method:"GET"}),getMemoriProcesses:async(t,n,i)=>h(`/MemoriProcesses/${t}/${n}${i?`/${i}`:""}`,{apiUrl:e,method:"GET"}),getProcessStatus:async(t,n)=>h(`/ProcessStatus/${t}/${n}`,{apiUrl:e,method:"GET"}),stopProcess:async(t,n)=>h(`/StopProcess/${t}/${n}`,{apiUrl:e,method:"POST"})}),S=e=>({analyzeUserQuery:async(t,n,i)=>h(`/Analysis/AnalyzeUserQuery/${t}/${n}`,{apiUrl:e,method:"POST",body:{...i}}),getUserQueryMatches:async(t,n,i,r,o)=>h(`/Analysis/UserQueryMatches/${t}/${n}/${i}/${r}${o?`/${o}`:""}`,{apiUrl:e,method:"GET"})}),E=e=>({getCompletionConfigs:(t,n)=>h(`/CompletionConfigs/${t}${n?`/${n}`:""}`,{apiUrl:e,method:"GET"}),getCompletionConfig:(t,n)=>h(`/CompletionConfig/${t}/${n}`,{apiUrl:e,method:"GET"}),updateCompletionConfig:(t,n)=>h(`/CompletionConfig/${t}/${n.completionConfigID}`,{apiUrl:e,method:"PATCH",body:n}),deleteCompletionConfig:(t,n)=>h(`/CompletionConfig/${t}/${n}`,{apiUrl:e,method:"DELETE"}),createCompletionConfig:(t,n)=>h(`/CompletionConfig/${t}`,{apiUrl:e,method:"POST",body:n})}),A=e=>({postOutcome:(t,n)=>h(`/Outcome/${t}/${n}`,{apiUrl:e,method:"POST"}),getUserBadges:t=>h(`/Badges/${t}`,{apiUrl:e}),getBadge:(t,n)=>h(`/Badge/${t}/${n}`,{apiUrl:e})}),T=e=>({healthCheck:()=>h("/HealthCheck",{apiUrl:e,method:"GET"}),getTenant:t=>h(`/Tenant/${t}`,{apiUrl:e}),getTenantAuthenticated:(t,n)=>h(`/Tenant/${n}/${t}`,{apiUrl:e}),getTenantList:t=>h(`/Tenants/${t}`,{apiUrl:e,method:"GET"}),createTenant:(t,n,i)=>h(`/Tenant/${t}/${n}`,{apiUrl:e,method:"POST",body:i}),patchTenant:(t,n,i)=>h(`/Tenant/${t}/${n}`,{apiUrl:e,method:"PATCH",body:i})}),I=e=>({createTrustedApplication:(t,n)=>h(`/TrustedApplication/${t}`,{apiUrl:e,body:n,method:"POST"}),getTrustedApplication:(t,n)=>h(`/TrustedApplication/${t}/${n}`,{apiUrl:e}),updateTrustedApplication:(t,n,i)=>h(`/TrustedApplication/${t}/${n}`,{apiUrl:e,method:"PATCH",body:i}),deleteTrustedApplication:(t,n)=>h(`/TrustedApplication/${t}/${n}`,{apiUrl:e,method:"DELETE"}),getTrustedApplicationsList:t=>h(`/TrustedApplications/${t}`,{apiUrl:e})});var M=e=>({asset:v(e),memori:m(e),user:f(e),userPwl:f(e),integration:g(e),invitation:y(e),consumptionLogs:_(e),notifications:b(e),importExport:x(e),process:w(e),analysis:S(e),completionConfig:E(e),badge:A(e),tenant:T(e),trustedApplication:I(e),...v(e),...m(e),...f(e),...g(e),...y(e),..._(e),...b(e),...x(e),...w(e),...S(e),...E(e),...A(e),...T(e),...I(e)}),C=e=>({getCorrelationPairs:async(t,n,i)=>h(`/CorrelationPairs/${t}${n?`/${n}${i?`/${i}`:""}`:""}`,{method:"GET",apiUrl:e}),postCorrelationPair:async(t,n)=>h(`/CorrelationPair/${t}`,{method:"POST",apiUrl:e,body:n}),deleteCorrelationPair:async(t,n)=>h(`/CorrelationPair/${t}/${n}`,{method:"DELETE",apiUrl:e})}),N=e=>({postTextEnteredEvent:async({sessionId:t,text:n})=>h(`/TextEnteredEvent/${t}`,{method:"POST",apiUrl:e,body:{text:n}}),postTextEnteredEventExtended:async({sessionId:t,text:n,questionsAndAnswersHistory:i})=>h(`/ExtendedTextEnteredEvent/${t}`,{method:"POST",apiUrl:e,body:{text:n,questionsAndAnswersHistory:i}}),postPlaceChangedEvent:async({sessionId:t,placeName:n,latitude:i,longitude:r,uncertaintyKm:o})=>h(`/PlaceChangedEvent/${t}`,{method:"POST",apiUrl:e,body:{placeName:n,latitude:i,longitude:r,uncertaintyKm:o}}),postDateChangedEvent:async(t,n)=>h(`/DateChangedEvent/${t}`,{method:"POST",apiUrl:e,body:{date:n}}),postTagChangedEvent:async(t,n)=>h(`/TagChangedEvent/${t}`,{method:"POST",apiUrl:e,body:{tag:n}}),postTimeoutEvent:async t=>h(`/TimeoutEvent/${t}`,{method:"POST",apiUrl:e}),postMediumSelectedEvent:async(t,n)=>h(`/MediumSelectedEvent/${t}`,{method:"POST",apiUrl:e,body:{medium:n}}),postMediumDeselectedEvent:async(t,n)=>h(`/MediumDeselectedEvent/${t}`,{method:"POST",apiUrl:e,body:{mediumID:n}}),postDateSelectedEvent:async t=>h(`/DateSelectedEvent/${t}`,{method:"GET",apiUrl:e}),postPlaceSelectedEvent:async t=>h(`/PlaceSelectedEvent/${t}`,{method:"GET",apiUrl:e}),postTagSelectedEvent:async t=>h(`/TagSelectedEvent/${t}`,{method:"GET",apiUrl:e})}),O=e=>({getIntents:async t=>h(`/Intents/${t}`,{method:"GET",apiUrl:e}),getIntent:async(t,n)=>h(`/Intent/${t}/${n}`,{method:"GET",apiUrl:e}),patchIntent:async(t,n)=>h(`/Intent/${t}/${n.intentID}`,{method:"PATCH",apiUrl:e,body:n}),deleteIntent:async(t,n)=>h(`/Intent/${t}/${n}`,{method:"DELETE",apiUrl:e}),createIntent:async(t,n)=>h(`/Intent/${t}`,{method:"POST",apiUrl:e,body:n}),getIntentSlots:async t=>h(`/IntentSlots/${t}`,{method:"GET",apiUrl:e}),getIntentSlot:async(t,n)=>h(`/IntentSlot/${t}/${n}`,{method:"GET",apiUrl:e}),patchIntentSlot:async(t,n)=>h(`/IntentSlot/${t}/${n.intentSlotID}`,{method:"PATCH",apiUrl:e,body:n}),deleteIntentSlot:async(t,n)=>h(`/IntentSlot/${t}/${n}`,{method:"DELETE",apiUrl:e}),createIntentSlot:async(t,n)=>h(`/IntentSlot/${t}`,{method:"POST",apiUrl:e,body:n})}),R=e=>({getLocalizationKeys:async t=>h(`/LocalizationKeys/${t}`,{method:"GET",apiUrl:e}),getLocalizationKey:async(t,n)=>h(`/LocalizationKey/${t}/${n}`,{method:"GET",apiUrl:e}),deleteLocalizationKey:async(t,n)=>h(`/LocalizationKey/${t}/${n}`,{method:"DELETE",apiUrl:e}),postLocalizationKey:async(t,n)=>h(`/LocalizationKey/${t}`,{method:"POST",apiUrl:e,body:n}),patchLocalizationKey:async(t,n)=>h(`/LocalizationKey/${t}`,{method:"PATCH",apiUrl:e,body:n})}),P=e=>({getMedia:async(t,n)=>h(`/Media/${t}/${n}`,{method:"GET",apiUrl:e}),deleteMedia:async(t,n)=>h(`/Media/${t}/${n}`,{method:"DELETE",apiUrl:e}),getMedium:async(t,n,i)=>h(`/Medium/${t}/${n}/${i}`,{method:"GET",apiUrl:e}),patchMedium:async(t,n,i)=>h(`/Medium/${t}/${n}/${i}`,{method:"GET",apiUrl:e}),deleteMedium:(t,n,i)=>h(`/Medium/${t}/${n}/${i}`,{method:"GET",apiUrl:e}),postMedium:async(t,n)=>h(`/Medium/${t}/${n}`,{method:"GET",apiUrl:e})}),D=e=>({getMemories:async(t,n)=>h(`/Memories/${t}${n?`/${n}`:""}`,{method:"GET",apiUrl:e}),getMemoriesPaginated:async(t,n,i,r)=>h(`/Memories/${t}/${n}/${i}${r?`/${r}`:""}`,{method:"GET",apiUrl:e}),getMemory:async(t,n)=>h(`/Memory/${t}/${n}`,{method:"GET",apiUrl:e}),patchMemory:async(t,n)=>h(`/Memory/${t}/${n.memoryID}`,{method:"PATCH",apiUrl:e,body:n}),deleteMemory:async(t,n)=>h(`/Memory/${t}/${n}`,{method:"DELETE",apiUrl:e}),postMemory:async(t,n)=>h(`/Memory/${t}`,{method:"POST",apiUrl:e,body:n}),getMemoryAccess:async(t,n)=>h(`/MemoryAccess/${t}/${n}`,{method:"GET",apiUrl:e})}),k=e=>({getWordVector:async(t,n)=>h(`/WordVector/${t}/${n}`,{method:"GET",apiUrl:e}),getSimilarWords:async(t,n)=>h(`/SimilarWords/${t}/${n}`,{method:"GET",apiUrl:e}),guessLanguage:async(t,n)=>h(`/GuessLanguage/${t}`,{method:"POST",apiUrl:e,body:{text:n}}),computeSimilarity:async(t,n,i,r,o)=>h(`/ComputeSimilarity/${t}`,{method:"POST",apiUrl:e,body:{referenceText:n,referenceTextType:i,comparisonText:r,comparisonTextType:o}}),checkWords:async(t,n)=>h(`/CheckWords/${t}`,{method:"POST",apiUrl:e,body:{text:n}}),suggestAnswer:async(t,n)=>h(`/SuggestAnswer/${t}`,{method:"POST",apiUrl:e,body:{text:n}}),suggestTags:async(t,n,i,r)=>h(`/SuggestTags/${t}`,{method:"POST",apiUrl:e,body:{question:n,answer:i,questionVariants:r}}),suggestQuestions:async(t,n)=>h(`/SuggestQuestions/${t}`,{method:"POST",apiUrl:e,body:{text:n}})}),B=e=>({getPeople:async t=>h(`/People/${t}`,{method:"GET",apiUrl:e}),getPerson:async(t,n)=>h(`/Person/${t}/${n}`,{method:"GET",apiUrl:e}),patchPerson:async(t,n)=>h(`/Person/${t}/${n.personID}`,{method:"PATCH",body:n,apiUrl:e}),deletePerson:async(t,n)=>h(`/Person/${t}/${n}`,{method:"DELETE",apiUrl:e}),postPerson:async(t,n)=>h(`/Person/${t}`,{method:"POST",body:n,apiUrl:e})}),F=e=>({searchMemory:async(t,n)=>h(`/Search/${t}`,{method:"POST",body:n,apiUrl:e}),searchMemoryPaginated:async(t,n,i,r)=>h(`/Search/${t}/${n}/${i}`,{method:"POST",body:r,apiUrl:e}),filterMemories:async(t,n)=>h(`/FilterMemories/${t}`,{method:"POST",body:n,apiUrl:e}),filterMemoriesPaginated:async(t,n,i,r)=>h(`/FilterMemories/${t}/${n}/${i}`,{method:"POST",body:r,apiUrl:e}),getRandomMemory:async(t,n)=>h(`/Random/${t}`,{method:"POST",body:n,apiUrl:e}),getHints:async(t,n)=>h(`/Hints/${t}`,{method:"POST",body:n,apiUrl:e}),getMemoryTags:async t=>h(`/MemoryTags/${t}`,{method:"GET",apiUrl:e})}),U=e=>({initSession:async(t,n)=>h("/Session",{method:"POST",body:t,headers:n?{"User-Agent":n}:void 0,apiUrl:e}),getSession:async t=>h(`/Session/${t}`,{method:"GET",apiUrl:e}),deleteSession:async t=>h(`/Session/${t}`,{method:"DELETE",apiUrl:e})}),z=e=>({getTextQualityIndexes:async(t,n)=>h(`/TextQualityIndexes/${t}${n?`/${n}`:""}`,{method:"GET",apiUrl:e}),getEventLogs:async(t,n,i)=>h(`/EventLogs/${t}/${n}/${i}`,{method:"GET",apiUrl:e}),getMemoryEventLogs:async(t,n,i,r)=>h(`/EventLogs/${t}/${n}/${i}/${r}`,{method:"GET",apiUrl:e}),getIntentEventLogs:async(t,n,i,r)=>h(`/EventLogs/${t}/${n}/${i}/${r}`,{method:"GET",apiUrl:e}),getSessionEventLogs:async(t,n)=>h(`/SessionEventLogs/${t}/${n}`,{method:"GET",apiUrl:e})}),G=e=>({getUnansweredQuestions:async t=>h(`/UnansweredQuestions/${t}`,{method:"GET",apiUrl:e}),getUnansweredQuestionsPaginated:async(t,n,i)=>h(`/UnansweredQuestions/${t}/${n}/${i}`,{method:"GET",apiUrl:e}),postUnansweredQuestion:async(t,n)=>h(`/UnansweredQuestion/${t}`,{method:"POST",apiUrl:e,body:n}),deleteUnansweredQuestion:async(t,n)=>h(`/UnansweredQuestion/${t}/${n}`,{method:"DELETE",apiUrl:e})}),j=e=>({getContextVars:async t=>h(`/ContextVars/${t}`,{method:"GET",apiUrl:e}),getContextVarNames:async t=>h(`/ContextVarNames/${t}`,{method:"GET",apiUrl:e}),getContextVarValues:async(t,n)=>h(`/ContextVarValues/${t}/${n}`,{method:"GET",apiUrl:e})}),H=e=>({getCustomWords:async t=>h(`/CustomWords/${t}`,{method:"GET",apiUrl:e}),getCustomWord:async(t,n)=>h(`/CustomWord/${t}/${n}`,{method:"GET",apiUrl:e}),deleteCustomWord:async(t,n)=>h(`/CustomWord/${t}/${n}`,{method:"DELETE",apiUrl:e}),postCustomWord:async(t,n)=>h(`/CustomWord/${t}`,{method:"POST",apiUrl:e,body:n}),patchCustomWord:async(t,n)=>h(`/CustomWord/${t}/${n.customWordID}`,{method:"PATCH",apiUrl:e,body:n})}),V=e=>({getChatLogs:async(t,n,i)=>h(`/ChatLogs/${t}${n?`/${n}`:""}${n&&i?`/${i}`:""}`,{method:"GET",apiUrl:e}),getChatLogsPaged:async(t,n)=>h(`/ChatLogsPaged/${t}`,{method:"POST",apiUrl:e,body:n}),getChatLogsByUser:async(t,n,i)=>h(`/CurrentUserChatLogs/${t}${n?`/${n}`:""}${n&&i?`/${i}`:""}`,{method:"GET",apiUrl:e}),getSessionChatLogs:async(t,n)=>h(`/SessionChatLogs/${t}/${n}`,{method:"GET",apiUrl:e}),getUserChatLogs:async(t,n,i,r)=>h(`/UserChatLogs/${t}/${n}${i?`/${i}`:""}${i&&r?`/${r}`:""}`,{method:"GET",apiUrl:e}),deleteChatLogs:async(t,n,i)=>h(`/ChatLogs/${t}${n?`/${n}`:""}${n&&i?`/${i}`:""}`,{method:"DELETE",apiUrl:e}),deleteChatLog:async(t,n)=>h(`/ChatLog/${t}/${n}`,{method:"DELETE",apiUrl:e}),getUserChatLogsByToken:async(t,n,i,r)=>h(`/UserChatLogsByToken/${t}/${n}${i?`/${i}`:""}${i&&r?`/${r}`:""}`,{method:"GET",apiUrl:e}),getUserChatLogsByTokenPaged:async t=>h("/UserChatLogsByTokenPaged",{method:"POST",apiUrl:e,body:{...t}})}),W=e=>({getExpertReferences:async t=>h(`/ExpertReferences/${t}`,{method:"GET",apiUrl:e}),getExpertReferencesPaginated:async(t,n,i)=>h(`/ExpertReferences/${t}/${n}/${i}`,{method:"GET",apiUrl:e}),getExpertReference:async(t,n)=>h(`/ExpertReference/${t}/${n}`,{method:"GET",apiUrl:e}),updateExpertReference:async(t,n)=>h(`/ExpertReference/${t}/${n.expertID}`,{method:"PATCH",apiUrl:e,body:n}),createExpertReference:async(t,n)=>h(`/ExpertReference/${t}`,{method:"POST",apiUrl:e,body:n}),deleteExpertReference:async(t,n)=>h(`/ExpertReference/${t}/${n}`,{method:"DELETE",apiUrl:e})}),q=e=>({getKnownFacts:async t=>h(`/KnownFacts/${t}`,{method:"GET",apiUrl:e}),getKnownFactsPaginated:async(t,n,i)=>h(`/KnownFacts/${t}/${n}/${i}`,{method:"GET",apiUrl:e}),getKnownFact:async(t,n)=>h(`/KnownFact/${t}/${n}`,{method:"GET",apiUrl:e}),deleteKnownFact:async(t,n)=>h(`/KnownFact/${t}/${n}`,{method:"DELETE",apiUrl:e})}),$=e=>({getMemoriUsers:async t=>h(`/Users/${t}`,{method:"GET",apiUrl:e}),getMemoriUsersPaginated:async(t,n,i)=>h(`/Users/${t}/${n}/${i}`,{method:"GET",apiUrl:e}),getMemoriUser:async(t,n)=>h(`/User/${t}/${n}`,{method:"GET",apiUrl:e}),getMemoriUserTopics:async(t,n)=>h(`/UserTopics/${t}/${n}`,{method:"GET",apiUrl:e}),getMemoriUserTopicsPaginated:async(t,n,i,r)=>h(`/UserTopics/${t}/${n}/${i}/${r}`,{method:"GET",apiUrl:e})}),Y=e=>({getTopics:async t=>h(`/Topics/${t}`,{method:"GET",apiUrl:e}),getTopicsPaginated:async(t,n,i)=>h(`/Topics/${t}/${n}/${i}`,{method:"GET",apiUrl:e}),getTopic:async(t,n)=>h(`/Topic/${t}/${n}`,{method:"GET",apiUrl:e}),getTopicUsers:async(t,n)=>h(`/TopicUsers/${t}/${n}`,{method:"GET",apiUrl:e}),getTopicUsersPaginated:async(t,n,i,r)=>h(`/TopicUsers/${t}/${n}/${i}/${r}`,{method:"GET",apiUrl:e})}),J=e=>({getAllFunctions:async t=>h(`/Functions/${t}`,{method:"GET",apiUrl:e}),getFunctionsPaginated:async(t,n,i)=>h(`/Functions/${t}/${n}/${i}`,{method:"GET",apiUrl:e}),getFunction:async(t,n)=>h(`/Function/${t}/${n}`,{method:"GET",apiUrl:e}),patchFunction:async(t,n)=>h(`/Function/${t}/${n.functionID}`,{method:"PATCH",apiUrl:e,body:n}),deleteFunction:async(t,n)=>h(`/Function/${t}/${n}`,{method:"DELETE",apiUrl:e}),createFunction:async(t,n)=>h(`/Function/${t}`,{method:"POST",apiUrl:e,body:n}),getMacroFunctions:async t=>h(`/MacroFunctions/${t}`,{method:"GET",apiUrl:e})}),Z=e=>({correlationPairs:C(e),...C(e),dialog:N(e),...N(e),intents:O(e),...O(e),localizationKeys:R(e),...R(e),media:P(e),...P(e),memories:D(e),...D(e),nlp:k(e),...k(e),people:B(e),...B(e),search:F(e),...F(e),session:U(e),...U(e),stats:z(e),...z(e),unansweredQuestions:G(e),...G(e),contextVars:j(e),...j(e),customDictionary:H(e),...H(e),chatLogs:V(e),...V(e),expertReferences:W(e),...W(e),knownFacts:q(e),...q(e),user:$(e),...$(e),topics:Y(e),...Y(e),functions:J(e),...J(e)}),X={};e(X,"allowedMediaTypes",(()=>K)),e(X,"anonTag",(()=>Q));const K=["image/jpeg","image/png","image/jpg","image/gif","text/plain","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/pdf","video/mp4","video/avi","audio/mpeg3","audio/wav","audio/mpeg","video/mpeg","model/gltf-binary"],Q="👤";var ee=e=>({getResourceUrl:({type:t,resourceURI:n,sessionID:i,baseURL:r="https://aisuru.com"})=>{let o="cover"===t?`${r}/images/memoriCover.png`:`${r}/images/memoriAvatar.png`;return n&&0!==n.length?n.includes("memoriai/memory")?`${n}?memori-ai-session-id=${i}`:n.startsWith("https://")||n.startsWith("http://")?`${n}${i?`/${i}`:""}`:n.startsWith("cloud://")?`${e.replace(/v2/,"v1")}/CloudAsset/${n.replace("cloud://","")}`:n.startsWith("guid://")?`${e.replace(/v2/,"v1")}/GuidAsset/${n.replace("guid://","")}`:o:o}});var te=(e,t)=>{var n;const i=`${(n=e)?new URL(n.startsWith("http")?n:`https://${n}`).origin:"https://backend.memori.ai"}/api/v2`,r=`${u(t)}/memori/v2`;return{backend:M(i),...Z(r),constants:{...X,BACKEND_URL:i,ENGINE_URL:r},asset:ee(i)}};c=o("85Hg2");const ne=(0,(c=o("85Hg2")).createContext)(null),ie=({children:e})=>{const[t,n]=(0,c.useState)({currentArtifact:null,isDrawerOpen:!1,isFullscreen:!1}),i=(0,c.useCallback)((e=>{n((()=>({currentArtifact:e,isDrawerOpen:!0,isFullscreen:!1})))}),[]),r=(0,c.useCallback)((()=>{n((e=>({...e,currentArtifact:null,isDrawerOpen:!1,isFullscreen:!1})))}),[]),o=(0,c.useCallback)((()=>{n((e=>({...e,isFullscreen:!e.isFullscreen})))}),[]),s=(0,c.useMemo)((()=>({state:t,openArtifact:i,closeArtifact:r,toggleFullscreen:o})),[t,i,r,o]);return(0,a.jsx)(ne.Provider,{value:s,children:e})},re=()=>{const e=(0,c.useContext)(ne);if(!e)throw new Error("useArtifact must be used within ArtifactProvider");return e},oe=[];let ae=!1;"undefined"!=typeof window&&(window.MemoriArtifactAPI||(window.MemoriArtifactAPI={_isReady:()=>ae,_setReady:e=>{ae=e},_getPendingCalls:()=>oe,_clearPendingCalls:()=>{oe.length=0},openArtifact:e=>{ae||oe.push({method:"openArtifact",args:[e]})},createAndOpenArtifact:(e,t,n)=>{ae||oe.push({method:"createAndOpenArtifact",args:[e,t,n]})},createFromOutputElement:e=>ae?"not-ready":(oe.push({method:"createFromOutputElement",args:[e]}),"pending"),closeArtifact:()=>{ae||oe.push({method:"closeArtifact",args:[]})},toggleFullscreen:()=>{ae||oe.push({method:"toggleFullscreen",args:[]})},getState:()=>({currentArtifact:null,isDrawerOpen:!1,isFullscreen:!1})}));const se=({pushMessage:e})=>{const{openArtifact:t,closeArtifact:n,toggleFullscreen:i,state:r}=re(),o=(0,c.useRef)(null);return(0,c.useEffect)((()=>{if("undefined"!=typeof window){const a=window.MemoriArtifactAPI;if(o.current={openArtifact:e=>{t(e)},createAndOpenArtifact:(n,i="html",r)=>{const o=r||le(i),a={id:`artifact-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,content:n,mimeType:i,title:o,timestamp:new Date,size:n.length};let s=n;s.includes('<output class="memori-artifact">')||(s=`<output class="memori-artifact" data-mimetype="${i}" data-title="${o}">${n}</output>`),e({text:s,timestamp:(new Date).toISOString(),fromUser:!1,media:[],initial:!1,translatedText:void 0,questionAnswered:void 0,generatedByAI:!1,contextVars:void 0,date:void 0,placeName:void 0,placeLatitude:void 0,placeLongitude:void 0,placeUncertaintyKm:void 0}),t(a)},createFromOutputElement:n=>{const i=n.innerHTML,r=n.getAttribute("data-mimetype")||"html",o=n.getAttribute("data-title")||le(r);n.style.display="none",n.setAttribute("data-memori-processed","true");const a={id:`artifact-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,content:i,mimeType:r,title:o,timestamp:new Date,size:i.length};let s=i;return s.includes('<output class="memori-artifact">')||(s=`<output class="memori-artifact" data-mimetype="${r}" data-title="${o}">${i}</output>`),e({text:s,timestamp:(new Date).toISOString(),fromUser:!1,media:[],initial:!1,translatedText:void 0,questionAnswered:void 0,generatedByAI:!1,contextVars:void 0,date:void 0,placeName:void 0,placeLatitude:void 0,placeLongitude:void 0,placeUncertaintyKm:void 0}),t(a),a.id},closeArtifact:()=>{n()},toggleFullscreen:()=>{i()},getState:()=>({currentArtifact:r.currentArtifact,isDrawerOpen:r.isDrawerOpen,isFullscreen:r.isFullscreen})},a){a.openArtifact=o.current.openArtifact,a.createAndOpenArtifact=o.current.createAndOpenArtifact,a.createFromOutputElement=o.current.createFromOutputElement,a.closeArtifact=o.current.closeArtifact,a.toggleFullscreen=o.current.toggleFullscreen,a.getState=o.current.getState,a._setReady(!0);const e=a._getPendingCalls();e.length>0&&(e.forEach((e=>{try{const t=o.current[e.method];t&&t(...e.args)}catch(e){}})),a._clearPendingCalls())}else window.MemoriArtifactAPI={...o.current,_isReady:!0,_pendingCalls:[],_setReady:e=>{window.MemoriArtifactAPI._isReady=e},_getPendingCalls:()=>window.MemoriArtifactAPI._pendingCalls,_clearPendingCalls:()=>{window.MemoriArtifactAPI._pendingCalls=[]}}}return()=>{"undefined"!=typeof window&&delete window.MemoriArtifactAPI}}),[t,n,i,r,e]),null};function le(e){return e.includes("html")?"HTML Document":e.includes("markdown")?"Markdown Document":e.includes("javascript")?"JavaScript Code":e.includes("python")?"Python Code":e.includes("json")?"JSON Data":e.includes("css")?"CSS Stylesheet":e.includes("typescript")?"TypeScript Code":e.includes("xml")?"XML Document":e.includes("svg")?"SVG Image":"Document"}function ce(e,t,n){var i,r,o,a;if(!e||"object"!=typeof e)return n;return null!==(a=null!==(o=null!==(r=null!==(i=e[(null==t?void 0:t.toLowerCase())||"en"])&&void 0!==i?i:e.en)&&void 0!==r?r:e.en)&&void 0!==o?o:Object.values(e)[0])&&void 0!==a?a:n}function ue(e,t,n){if(!(null==t?void 0:t.enabled)||!Array.isArray(t.rules)||0===t.rules.length)return{matched:!1};const i=(null==n?void 0:n.toLowerCase())||"en",r=new Map;for(const n of t.rules)if(n.pattern&&n.pattern.trim())try{new RegExp(n.pattern).test(e)&&(r.has(n.id)||r.set(n.id,n))}catch(e){console.warn("[PII] Invalid regex for rule:",n.id,n.pattern,e)}if(0===r.size)return{matched:!1};return{matched:!0,errorText:[ce(t.errorMessage,i,"The message contains personal or sensitive data."),...Array.from(r.values()).map((e=>{const t=ce(e.label,i,e.id);return ce(e.message,i,t)}))].join("\n")}}c=o("85Hg2");var de={},he={};(he=function(e){if(Array.isArray(e))return e}).__esModule=!0,he.default=he;var pe={};(pe=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}).__esModule=!0,pe.default=pe;var me={},fe={};(fe=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}).__esModule=!0,fe.default=fe,me=function(e,t){if(e){if("string"==typeof e)return fe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fe(e,t):void 0}},me.__esModule=!0,me.default=me;var ge={};(ge=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}).__esModule=!0,ge.default=ge,(de=function(e,t){return he(e)||pe(e,t)||me(e,t)||ge()}).__esModule=!0,de.default=de;var ve={},ye={},_e={};function be(e){return _e=be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e.__esModule=!0,_e.default=_e,be(e)}(_e=be).__esModule=!0,_e.default=_e;var xe=_e.default,we={},Se=_e.default;(we=function(e,t){if("object"!==Se(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Se(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}).__esModule=!0,we.default=we,(ye=function(e){var t=we(e,"string");return"symbol"===xe(t)?t:String(t)}).__esModule=!0,ye.default=ye,(ve=function(e,t,n){return(t=ye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}).__esModule=!0,ve.default=ve;c=o("85Hg2");var Ee={};(Ee=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}).__esModule=!0,Ee.default=Ee;var Ae={};function Te(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,ye(i.key),i)}}(Ae=function(e,t,n){return t&&Te(e.prototype,t),n&&Te(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}).__esModule=!0,Ae.default=Ae;c=o("85Hg2");var Ie=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Me={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Ce=function(e){return Me[e]};var Ne,Oe={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(Ie,Ce)}},Re=(0,c.createContext)();function Le(){return Oe}var Pe=function(){function e(){t(Ee)(this,e),this.usedNamespaces={}}return t(Ae)(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function De(){return Ne}function ke(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var Be={};function Fe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&Be[t[0]]||("string"==typeof t[0]&&(Be[t[0]]=new Date),ke.apply(void 0,t))}function Ue(e,t,n){e.loadNamespaces(t,(function(){if(e.isInitialized)n();else{e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),n()}))}}))}function ze(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.languages[0],r=!!t.options&&t.options.fallbackLng,o=t.languages[t.languages.length-1];if("cimode"===i.toLowerCase())return!0;var a=function(e,n){var i=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===i||2===i};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(i,e)||(!(t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages))||!(!a(i,e)||r&&!a(o,e))))}function Ge(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return Fe("i18n.languages were undefined or empty",t.languages),!0;var i=void 0!==t.options.ignoreJSONStructure;return i?t.hasLoadedNamespace(e,{precheck:function(t,i){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!i(t.isLanguageChangingTo,e))return!1}}):ze(e,t,n)}function je(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}function He(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Ve(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?He(Object(i),!0).forEach((function(n){t(ve)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):He(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var We=function(e,t){var n=(0,c.useRef)();return(0,c.useEffect)((function(){n.current=t?n.current:e}),[e,t]),n.current};function qe(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.i18n,r=(0,c.useContext)(Re)||{},o=r.i18n,a=r.defaultNS,s=i||o||De();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new Pe),!s){Fe("You will need to pass in an i18next instance by using initReactI18next");var l=function(e){return Array.isArray(e)?e[e.length-1]:e},u=[l,{},!1];return u.t=l,u.i18n={},u.ready=!1,u}s.options.react&&void 0!==s.options.react.wait&&Fe("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var d=Ve(Ve(Ve({},Le()),s.options.react),n),h=d.useSuspense,p=d.keyPrefix,m=e||a||s.options&&s.options.defaultNS;m="string"==typeof m?[m]:m||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(m);var f=(s.isInitialized||s.initializedStoreOnce)&&m.every((function(e){return Ge(e,s,d)}));function g(){return s.getFixedT(null,"fallback"===d.nsMode?m:m[0],p)}var v=(0,c.useState)(g),y=t(de)(v,2),_=y[0],b=y[1],x=m.join(),w=We(x),S=(0,c.useRef)(!0);(0,c.useEffect)((function(){var e=d.bindI18n,t=d.bindI18nStore;function n(){S.current&&b(g)}return S.current=!0,f||h||Ue(s,m,(function(){S.current&&b(g)})),f&&w&&w!==x&&S.current&&b(g),e&&s&&s.on(e,n),t&&s&&s.store.on(t,n),function(){S.current=!1,e&&s&&e.split(" ").forEach((function(e){return s.off(e,n)})),t&&s&&t.split(" ").forEach((function(e){return s.store.off(e,n)}))}}),[s,x]);var E=(0,c.useRef)(!0);(0,c.useEffect)((function(){S.current&&!E.current&&b(g),E.current=!1}),[s,p]);var A=[_,s,f];if(A.t=_,A.i18n=s,A.ready=f,f)return A;if(!f&&!h)return A;throw new Promise((function(e){Ue(s,m,(function(){e()}))}))}var $e={};
53
53
  /*!
54
54
  Copyright (c) 2018 Jed Watson.
55
55
  Licensed under the MIT License (MIT), see
@@ -240,4 +240,4 @@ const Cc="144",Nc={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},Oc={ROTATE:0,
240
240
  * @license qrcode.react
241
241
  * Copyright (c) Paul O'Shannessy
242
242
  * SPDX-License-Identifier: ISC
243
- */function vP(e,t=0){const n=[];return e.forEach((function(e,i){let r=null;e.forEach((function(o,a){if(!o&&null!==r)return n.push(`M${r+t} ${i+t}h${a-r}v1H${r+t}z`),void(r=null);if(a!==e.length-1)o&&null===r&&(r=a);else{if(!o)return;null===r?n.push(`M${a+t},${i+t} h1v1H${a+t}z`):n.push(`M${r+t},${i+t} h${a+1-r}v1H${r+t}z`)}}))})),n.join("")}function yP(e,t){return e.slice().map(((e,n)=>n<t.y||n>=t.y+t.h?e:e.map(((e,n)=>(n<t.x||n>=t.x+t.w)&&e))))}function _P(e,t,n,i){if(null==i)return null;const r=n?4:0,o=e.length+2*r,a=Math.floor(.1*t),s=o/t,l=(i.width||a)*s,c=(i.height||a)*s,u=null==i.x?e.length/2-l/2:i.x*s,d=null==i.y?e.length/2-c/2:i.y*s;let h=null;if(i.excavate){let e=Math.floor(u),t=Math.floor(d);h={x:e,y:t,w:Math.ceil(l+u-e),h:Math.ceil(c+d-t)}}return{x:u,y:d,h:c,w:l,excavation:h}}var bP=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function xP(e){const n=e,{value:i,size:r=hP,level:o=pP,bgColor:a=mP,fgColor:s=fP,includeMargin:l=gP,style:u,imageSettings:d}=n,h=cP(n,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),p=null==d?void 0:d.src,m=(0,c.useRef)(null),f=(0,c.useRef)(null),[g,v]=(0,c.useState)(!1);(0,c.useEffect)((()=>{if(null!=m.current){const e=m.current,t=e.getContext("2d");if(!t)return;let n=uP.QrCode.encodeText(i,dP[o]).getModules();const c=l?4:0,u=n.length+2*c,h=_P(n,r,l,d),p=f.current,g=null!=h&&null!==p&&p.complete&&0!==p.naturalHeight&&0!==p.naturalWidth;g&&null!=h.excavation&&(n=yP(n,h.excavation));const v=window.devicePixelRatio||1;e.height=e.width=r*v;const y=r/u*v;t.scale(y,y),t.fillStyle=a,t.fillRect(0,0,u,u),t.fillStyle=s,bP?t.fill(new Path2D(vP(n,c))):n.forEach((function(e,n){e.forEach((function(e,i){e&&t.fillRect(i+c,n+c,1,1)}))})),g&&t.drawImage(p,h.x+c,h.y+c,h.w,h.h)}})),(0,c.useEffect)((()=>{v(!1)}),[p]);const y=lP({height:r,width:r},u);let _=null;return null!=p&&(_=t(c).createElement("img",{src:p,key:p,style:{display:"none"},onLoad:()=>{v(!0)},ref:f})),t(c).createElement(t(c).Fragment,null,t(c).createElement("canvas",lP({style:y,height:r,width:r,ref:m},h)),_)}const wP=e=>`\n :root {\n --memori-primary-rgb: ${e||"130, 70, 175"};\n }\n\n .chat-export-header {\n margin-bottom: 2em;\n padding-bottom: 1em;\n border-bottom: 2px solid #e5e7eb;\n }\n\n .chat-export-date {\n margin-top: 0.5em;\n color: #6b7280;\n font-size: 0.9em;\n }\n\n .chat-bubble-container {\n display: flex;\n align-items: flex-end;\n margin-bottom: 1em;\n page-break-inside: avoid;\n }\n\n .chat-bubble {\n display: inline-flex;\n max-width: 75%;\n flex-direction: column;\n padding: 10px 16px;\n border-radius: 12px;\n margin-bottom: 5px;\n box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.08);\n font-size: 0.9em;\n line-height: 1.5;\n word-wrap: break-word;\n overflow-wrap: break-word;\n }\n\n .chat-bubble-assistant {\n border-radius: 12px 12px 12px 0;\n margin-left: 0;\n margin-right: auto;\n background: #ffffff;\n color: #141515;\n border: 1px solid #e5e7eb;\n }\n\n .chat-bubble-user {\n border-radius: 12px 12px 0 12px;\n margin-left: auto;\n margin-right: 0;\n background: rgb(var(--memori-primary-rgb));\n color: #ffffff;\n }\n\n .chat-bubble-content {\n margin: 0;\n }\n\n .chat-bubble-content p {\n margin: 0 0 0.5em 0;\n }\n\n .chat-bubble-content p:last-child {\n margin-bottom: 0;\n }\n\n .chat-bubble-content ul,\n .chat-bubble-content ol {\n padding-left: 1.5em;\n margin: 0.5em 0;\n }\n\n .chat-bubble-content a {\n color: inherit;\n text-decoration: underline;\n }\n\n .chat-bubble-user .chat-bubble-content a {\n color: #ffffff;\n text-decoration: underline;\n }\n\n .chat-bubble-assistant .chat-bubble-content a {\n color:rgb(var(--memori-primary-rgb));\n text-decoration: underline;\n }\n\n .chat-bubble-timestamp {\n margin-top: 0.25em;\n font-size: 0.75em;\n opacity: 0.7;\n text-align: right;\n }\n\n .chat-bubble-assistant .chat-bubble-timestamp {\n text-align: left;\n }\n\n .chat-bubble-media {\n margin: 0.5em 0 0 0;\n padding-left: 1.5em;\n list-style-type: disc;\n }\n\n .chat-bubble-media li {\n margin: 0.25em 0;\n }\n\n .chat-bubble-content code {\n background-color: rgba(0, 0, 0, 0.1);\n padding: 0.2em 0.4em;\n border-radius: 3px;\n font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n font-size: 0.9em;\n }\n\n .chat-bubble-user .chat-bubble-content code {\n background-color: rgba(255, 255, 255, 0.2);\n }\n\n .chat-bubble-content pre {\n background-color: rgba(0, 0, 0, 0.05);\n padding: 1em;\n border-radius: 5px;\n overflow-x: auto;\n margin: 0.5em 0;\n border: 1px solid rgba(0, 0, 0, 0.1);\n }\n\n .chat-bubble-user .chat-bubble-content pre {\n background-color: rgba(255, 255, 255, 0.15);\n border-color: rgba(255, 255, 255, 0.2);\n }\n\n .chat-bubble-content pre code {\n background: none;\n padding: 0;\n }\n\n .chat-bubble-content table {\n width: 100%;\n border-collapse: collapse;\n margin: 0.5em 0;\n }\n\n .chat-bubble-content table th,\n .chat-bubble-content table td {\n border: 1px solid rgba(0, 0, 0, 0.1);\n padding: 0.5em;\n text-align: left;\n }\n\n .chat-bubble-user .chat-bubble-content table th,\n .chat-bubble-user .chat-bubble-content table td {\n border-color: rgba(255, 255, 255, 0.2);\n }\n\n .chat-bubble-content table th {\n background-color: rgba(0, 0, 0, 0.05);\n font-weight: 600;\n }\n\n .chat-bubble-user .chat-bubble-content table th {\n background-color: rgba(255, 255, 255, 0.1);\n }\n\n .chat-bubble-content blockquote {\n margin: 0.5em 0;\n padding-left: 1em;\n border-left: 3px solid rgba(0, 0, 0, 0.2);\n font-style: italic;\n }\n\n .chat-bubble-user .chat-bubble-content blockquote {\n border-left-color: rgba(255, 255, 255, 0.3);\n }\n\n .chat-bubble-content img {\n max-width: 100%;\n height: auto;\n border-radius: 5px;\n margin: 0.5em 0;\n }\n\n .chat-bubble-content h1,\n .chat-bubble-content h2,\n .chat-bubble-content h3,\n .chat-bubble-content h4,\n .chat-bubble-content h5,\n .chat-bubble-content h6 {\n margin: 0.5em 0 0.25em 0;\n font-weight: 600;\n }\n\n .chat-bubble-content h1 { font-size: 1.5em; }\n .chat-bubble-content h2 { font-size: 1.3em; }\n .chat-bubble-content h3 { font-size: 1.1em; }\n `,SP=e=>{const{messages:t,memori:n,conversationStartedLabel:i,language:r="en"}=e;if(!t||0===t.length)return"";let o=((e,t,n)=>`\n <div class="chat-export-header">\n <h1>${e} - Chat Export</h1>\n <p class="chat-export-date">\n <strong>${n}</strong>: ${t}\n </p>\n </div>\n `)((null==n?void 0:n.name)||"Assistant",new Intl.DateTimeFormat(r,{dateStyle:"long",timeStyle:"short"}).format(new Date),i);return t.forEach((e=>{o+=((e,t="en")=>{const n=e.timestamp?new Intl.DateTimeFormat(t,{dateStyle:"short",timeStyle:"short"}).format(new Date(e.timestamp.endsWith("Z")?e.timestamp:`${e.timestamp}Z`)):"",i=(e.text||"").replace(/<document_attachment filename="([^"]+)" type="([^"]+)">([\s\S]*?)<\/document_attachment>/g,""),{text:r}=YI(i,!1,"Reasoning...",!1),o=e.fromUser?r:UE(r),a=e.fromUser?"chat-bubble chat-bubble-user":"chat-bubble chat-bubble-assistant";let s='<div class="chat-bubble-container">';return s+=`<div class="${a}">`,o.trim()&&(s+=`<div class="chat-bubble-content">${o}</div>`),e.media&&e.media.length>0&&(s+='<ul class="chat-bubble-media">',e.media.forEach((e=>{e.title?s+=`<li><a href="${e.url||"#"}">${e.title}</a></li>`:e.url&&(s+=`<li><a href="${e.url}">${e.url}</a></li>`)})),s+="</ul>"),n&&(s+=`<div class="chat-bubble-timestamp">${n}</div>`),s+="</div>",s+="</div>",s})(e,r)})),o},EP=(e,t,n={})=>{const i=((e={})=>{const{fontSize:t="12pt",fontFamily:n="system-ui, -apple-system, sans-serif",lineHeight:i="1.6",color:r="#333",backgroundColor:o="#fff"}=e;return`<style>\n @page {\n margin: 1in;\n size: A4;\n }\n\n @media print {\n * {\n -webkit-print-color-adjust: exact !important;\n color-adjust: exact !important;\n }\n\n body {\n font-family: ${n};\n font-size: ${t};\n line-height: ${i};\n color: ${r};\n background-color: ${o};\n margin: 0;\n padding: 0;\n max-width: none;\n word-wrap: break-word;\n overflow-wrap: break-word;\n }\n\n h1, h2, h3, h4, h5, h6 {\n page-break-after: avoid;\n margin-top: 1.5em;\n margin-bottom: 0.5em;\n font-weight: 600;\n }\n\n h1 { font-size: 1.8em; }\n h2 { font-size: 1.5em; }\n h3 { font-size: 1.3em; }\n\n p {\n margin: 0 0 1em 0;\n orphans: 3;\n widows: 3;\n }\n\n pre, code {\n font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n font-size: 0.9em;\n background-color: #f5f5f5;\n border: 1px solid #ddd;\n border-radius: 3px;\n padding: 0.2em 0.4em;\n page-break-inside: avoid;\n }\n\n pre {\n padding: 1em;\n overflow-x: auto;\n white-space: pre;\n margin: 1em 0;\n }\n\n pre code {\n background: none;\n border: none;\n padding: 0;\n }\n\n blockquote {\n margin: 1em 0;\n padding-left: 1em;\n border-left: 3px solid #ddd;\n font-style: italic;\n page-break-inside: avoid;\n }\n\n ul, ol {\n margin: 1em 0;\n padding-left: 2em;\n }\n\n li {\n margin: 0.25em 0;\n page-break-inside: avoid;\n }\n\n table {\n border-collapse: collapse;\n width: 100%;\n margin: 1em 0;\n page-break-inside: avoid;\n }\n\n th, td {\n border: 1px solid #ddd;\n padding: 0.5em;\n text-align: left;\n }\n\n th {\n background-color: #f5f5f5;\n font-weight: 600;\n }\n\n a {\n color: #0066cc;\n text-decoration: none;\n }\n\n a:hover {\n text-decoration: underline;\n }\n\n img {\n max-width: 100%;\n height: auto;\n page-break-inside: avoid;\n }\n\n hr {\n margin: 2em 0;\n border: none;\n border-top: 1px solid #ddd;\n }\n\n .page-break {\n page-break-before: always;\n }\n\n .no-print {\n display: none !important;\n }\n }\n\n @media screen {\n body {\n font-family: ${n};\n font-size: ${t};\n line-height: ${i};\n color: ${r};\n background-color: ${o};\n margin: 20px;\n padding: 20px;\n max-width: 800px;\n margin: 0 auto;\n }\n }\n ${wP(e.primaryColorRgb)}</style>`})(n);return`\n <!DOCTYPE html>\n <html lang="en">\n <head>\n <meta charset="UTF-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <title>${t}</title>\n ${i}\n </head>\n <body>\n <div class="content">\n ${e}\n </div>\n </body>\n </html>\n `};var AP=({tenant:e,memori:n,sessionID:i,url:r,title:o="",className:s,baseUrl:l,primary:u=!0,showQrCode:d=!0,align:h="right",history:p=[]})=>{const{t:m,i18n:f}=qe(),[g,v]=(0,c.useState)(r),[y,_]=(0,c.useState)(!1),b=(0,c.useMemo)((()=>(null==e?void 0:e.theme)?`${null!=l?l:"https://aisuru.com"}/images/${e.theme}/square_logo.png`:`${null!=l?l:"https://aisuru.com"}/images/memori_logo.png`),[e,l]);(0,c.useEffect)((()=>{r||v(window.location.href)}),[r]);const x=[{id:"facebook",title:"Facebook",url:`https://www.facebook.com/sharer/sharer.php?u=${g}`,icon:YL},{id:"twitter",title:"Twitter",url:`https://twitter.com/intent/tweet?url=${g}`,icon:JL},{id:"linkedin",title:"LinkedIn",url:`https://www.linkedin.com/shareArticle?mini=true&title=${o}&url=${g}`,icon:ZL},{id:"whatsapp",title:"Whatsapp",url:`https://api.whatsapp.com/send?phone=&text=${g}`,icon:XL},{id:"telegram",title:"Telegram",url:`https://t.me/share/url?text=${o}&url=${g}`,icon:eP},{id:"email",title:"Email",url:`mailto:?subject=${(null==o?void 0:o.length)>0?o:r}&body=${g}`,icon:KL}],w=(0,c.useMemo)((()=>{if(n&&i)return n.ownerUserID?`${null!=l?l:"https://www.aisuru.com"}/${"it"===f.language?"it":"en"}/shared/${n.ownerUserID}/${n.memoriID}/${i}`:n.exposed?`${null!=l?l:"https://www.aisuru.com"}/${"it"===f.language?"it":"en"}/shared/${n.ownerUserName}/${n.name}/${i}`:void 0}),[n,i,l,f.language]);return(0,a.jsxs)(xI,{as:"div",className:t($e)("memori-share-button",{"memori-share-button--align-left":"left"===h}),children:[(0,a.jsx)(xI.Button,{className:t($e)("memori-button","memori-button--circle","memori-button--icon-only","memori-share-button--button",s,{"memori-button--primary":u}),title:m("widget.share")||void 0,children:(0,a.jsx)("div",{className:"memori-button--icon",children:(0,a.jsx)(QL,{})})}),(0,a.jsxs)(xI.Items,{className:"memori-share-button--overlay",as:"ul",children:[n&&i&&w&&(0,a.jsx)(xI.Item,{as:"li",className:"memori-share-button--li memori-share-button--li-shared",children:(0,a.jsxs)("a",{className:t($e)("memori-button","memori-button--with-icon","memori-button--ghost","memori-button--padded","memori-share-button--link"),href:w,target:"_blank",rel:"noopener noreferrer",children:[(0,a.jsx)("div",{className:"memori-button--icon",children:(0,a.jsx)(QL,{})}),m("widget.shareChat")||"Share chat"]})},"shared"),p&&p.length>0&&(0,a.jsx)(xI.Item,{as:"li",className:"memori-share-button--li",children:(0,a.jsx)(Xl,{className:"memori-share-button--link",ghost:!0,icon:(0,a.jsx)(nP,{}),onClick:async()=>{if(p&&0!==p.length)if(uC.isSupported()){_(!0);try{const e=`${(null==n?void 0:n.name)||"Chat"} - Chat Export`;if(!n)throw new Error("Memori is required for PDF export");const i=SP({messages:p,memori:n,conversationStartedLabel:m("write_and_speak.conversationStartedLabel")||"Conversation started",language:navigator.language});let r;try{const e=document.querySelector(".memori-widget")||document.querySelector("memori-client")||document.documentElement;r=getComputedStyle(e).getPropertyValue("--memori-primary-rgb").trim(),r||(r=getComputedStyle(document.documentElement).getPropertyValue("--memori-primary-rgb").trim())}catch(e){console.warn("Could not read --memori-primary-rgb CSS variable:",e)}const o=EP(i,e,{fontSize:"12pt",fontFamily:"system-ui, -apple-system, sans-serif",lineHeight:"1.6",color:"#333",backgroundColor:"#fff",primaryColorRgb:r||void 0}),a=window.open("","_blank","width=800,height=600,scrollbars=yes,resizable=yes");if(!a)throw new Error("Popup blocked! Please enable popups to export PDF.");a.document.write(o),a.document.close(),a.document.title=e,setTimeout((()=>{a&&!a.closed&&(a.focus(),a.print(),setTimeout((()=>{a&&!a.closed&&a.close()}),1e3))}),500),t(Ao).success(m("exportChatHistory.success")||"Chat exported to PDF successfully")}catch(e){console.error("PDF export error:",e),t(Ao).error(m("exportChatHistory.error")||"Failed to export chat to PDF. Please try again.")}finally{_(!1)}}else t(Ao).error(m("exportChatHistory.pdfNotSupported")||"PDF export is not supported in this browser");else t(Ao).error(m("exportChatHistory.empty")||"No chat history to export")},disabled:y,children:y?m("exportChatHistory.exporting")||"Exporting...":m("exportChatHistory.exportPDF")||"Export chat as PDF"})},"export-pdf"),(0,a.jsx)(xI.Item,{as:"li",className:"memori-share-button--li",children:(0,a.jsx)(Xl,{className:"memori-share-button--link",ghost:!0,icon:(0,a.jsx)(aM,{}),onClick:()=>{g&&navigator.clipboard.writeText(g)},children:m("copyToClipboard")||void 0})},"copy"),x.map((e=>{var n;return(0,a.jsx)(xI.Item,{as:"li",className:"memori-share-button--li",children:(0,a.jsxs)("a",{className:t($e)("memori-button","memori-button--with-icon","memori-button--ghost","memori-button--padded","memori-share-button--link"),href:null!==(n=e.url)&&void 0!==n?n:"",target:"_blank",rel:"noopener noreferrer",children:[(0,a.jsx)("div",{className:"memori-button--icon",children:(0,a.jsx)(e.icon,{})}),e.title]})},e.id)})),d&&(0,a.jsxs)(xI.Item,{as:"li",className:"memori-share-button--li-qr-code",children:[(0,a.jsx)(xP,{id:"qr-canvas",value:null!=g?g:"",size:128,bgColor:"#ffffff",fgColor:"#000000",level:"H",includeMargin:!1,imageSettings:{src:b,x:void 0,y:void 0,height:32,width:32,excavate:!0}}),(0,a.jsx)("div",{children:(0,a.jsx)(Xl,{onClick:()=>{const e=document.getElementById("qr-canvas");if(!e)return;const t=document.createElement("a");t.href=e.toDataURL(),t.download=`memori-${o}-share.png`,document.body.appendChild(t),t.click(),document.body.removeChild(t)},icon:(0,a.jsx)(hC,{}),title:"Download QR",children:"Download"})})]},"qrcode")]})]})};var TP=({className:e,title:t})=>(0,a.jsx)("svg",{...t?{}:{"aria-hidden":"true"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",focusable:"false",role:"img",className:e,"aria-label":t,children:(0,a.jsx)("path",{d:"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 0 0 0 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 0 0 391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 0 0-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"})});var IP=({className:e,title:t})=>(0,a.jsx)("svg",{...t?{}:{"aria-hidden":"true"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",focusable:"false",role:"img",className:e,"aria-label":t,children:(0,a.jsx)("path",{d:"M290 236.4l43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0 0 13.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 0 0 0 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 0 0-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z"})});var MP=({className:e,title:t})=>(0,a.jsxs)("svg",{...t?{}:{"aria-hidden":"true"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",focusable:"false",role:"img",className:e,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2","aria-label":t,children:[(0,a.jsx)("path",{d:"M23 4L23 10 17 10"}),(0,a.jsx)("path",{d:"M1 20L1 14 7 14"}),(0,a.jsx)("path",{d:"M3.51 9a9 9 0 0114.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0020.49 15"})]});var CP=({className:e,title:t})=>(0,a.jsx)("svg",{...t?{}:{"aria-hidden":"true"},focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",className:e,"aria-label":t,children:(0,a.jsx)("path",{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6c-.3 1.5-.4 3-.4 4.4 0 14.4 11.6 26 26 26h723c1.5 0 3-.1 4.4-.4 14.2-2.4 23.7-15.9 21.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"})});var NP=({className:e,title:t})=>(0,a.jsx)("svg",{...t?{}:{"aria-hidden":"true"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",focusable:"false",role:"img",className:e,"aria-label":t,children:(0,a.jsx)("path",{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"})});var OP=({className:e,title:t})=>(0,a.jsxs)("svg",{width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,"aria-label":t,children:[(0,a.jsx)("path",{d:"M15 12L2 12M2 12L5.5 9M2 12L5.5 15",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M9.00195 7C9.01406 4.82497 9.11051 3.64706 9.87889 2.87868C10.7576 2 12.1718 2 15.0002 2L16.0002 2C18.8286 2 20.2429 2 21.1215 2.87868C22.0002 3.75736 22.0002 5.17157 22.0002 8L22.0002 16C22.0002 18.8284 22.0002 20.2426 21.1215 21.1213C20.3531 21.8897 19.1752 21.9862 17 21.9983M9.00195 17C9.01406 19.175 9.11051 20.3529 9.87889 21.1213C10.5202 21.7626 11.4467 21.9359 13 21.9827",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"})]});const RP=["image/jpeg","image/png","image/jpg","image/gif"];var LP=({className:e,memori:n,tenant:i,history:r,position:o,setShowPositionDrawer:s,setShowSettingsDrawer:l,setShowChatHistoryDrawer:u,setShowKnownFactsDrawer:d,setShowExpertsDrawer:h,enableAudio:p=!0,speakerMuted:m,setSpeakerMuted:f,hasUserActivatedSpeak:g=!1,showShare:v=!0,showSettings:y=!0,showReload:_=!1,showClear:b=!1,showLogin:x=!0,setShowLoginDrawer:w,clearHistory:S,loginToken:E,user:A,sessionID:T,showChatHistory:I=!0,fullScreenHandler:M,baseUrl:C,onLogout:N,apiClient:O,layout:R,additionalSettings:L})=>{const{t:P}=qe(),{uploadAsset:D,pwlUpdateUser:k}=O.backend,[B,F]=(0,c.useState)(!1),[U,z]=(0,c.useState)(!1);(0,c.useEffect)((()=>{document.fullscreenEnabled&&F(!0)}),[]);const G=(0,c.useCallback)(((e,t)=>"TOTEM"===e||t&&Object.keys(t).length>0||!1),[R,L]),j=async e=>{if(e&&E){const n=new FileReader;n.onload=async n=>{var i,r,o;try{const{asset:a,...s}=await D(null!==(i=e.name)&&void 0!==i?i:"avatar",null===(r=n.target)||void 0===r?void 0:r.result,null!=E?E:"");if(0!==s.resultCode)console.error("[updateAvatar] Upload failed:",s),t(Ao).error(P(XI(s.resultCode)));else if(a){let e={userID:null==A?void 0:A.userID,avatarURL:a.assetURL};const{user:t,...n}=await k(null!=E?E:"",null!==(o=null==A?void 0:A.userID)&&void 0!==o?o:"",e)}}catch(e){let n=e;console.error("[updateAvatar] Error:",n),(null==n?void 0:n.message)&&t(Ao).error(n.message)}},n.readAsDataURL(e)}else console.error("[updateAvatar] Missing avatar or login token",{avatar:e,loginToken:E}),t(Ao).error(P("login.avatarUploadError"))};return(0,a.jsxs)("div",{className:t($e)("memori-header",e),children:[n.needsPosition&&o&&(0,a.jsxs)("div",{className:"memori-header--position",children:[0!==o.latitude&&0!==o.longitude&&(0,a.jsx)("span",{className:"memori-header--position-placeName",children:o.placeName}),(0,a.jsx)(Xl,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button--position",title:P("widget.position")||"Position",icon:(0,a.jsx)(kC,{}),onClick:()=>s(!0)})]}),_&&(0,a.jsx)(Xl,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button--reload",title:P("reload")||"Reload",icon:(0,a.jsx)(MP,{}),onClick:()=>{window.location.reload()}}),b&&(0,a.jsx)(Xl,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button--clear",title:P("clearHistory")||"Clear chat",icon:(0,a.jsx)(CP,{}),onClick:S}),I&&!!E&&(0,a.jsx)(Xl,{primary:!0,disabled:!E,shape:"circle",className:"memori-header--button memori-header--button--chat-history",title:P("write_and_speak.chatHistory")||"Chat history",icon:(0,a.jsx)(NP,{}),onClick:()=>u(!0)}),B&&(0,a.jsx)(Xl,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button--fullscreen",title:U?P("fullscreenExit")||"Exit fullscreen":P("fullscreenEnter")||"Enter fullscreen",icon:U?(0,a.jsx)(TP,{}):(0,a.jsx)(IP,{}),onClick:M||(()=>{if(document.fullscreenElement)document.exitFullscreen&&document.exitFullscreen().then((()=>z(!1))).catch((e=>{console.warn("Error attempting to exit fullscreen:",e)}));else{const e="HIDDEN_CHAT"!==R&&"WEBSITE_ASSISTANT"!==R?document.body:document.querySelector(".memori-widget");if(e){const t=document.querySelector(".memori-widget");t&&(t.style.backgroundColor="#FFFFFF"),e.requestFullscreen().then((()=>z(!0))).catch((e=>{console.warn("Error attempting to enable fullscreen:",e)}))}}})}),n.enableDeepThought&&!!E&&(null==A?void 0:A.pAndCUAccepted)&&(0,a.jsx)(Xl,{primary:!!T&&!!g,shape:"circle",icon:(0,a.jsx)(RC,{}),className:"memori-header--button memori-header--button--knownfacts",disabled:!g||!T,onClick:()=>d(!0),title:P("knownFacts.title")||"Known facts"}),n.enableBoardOfExperts&&(0,a.jsx)(Xl,{primary:!0,shape:"circle",icon:(0,a.jsx)(OC,{}),className:"memori-header--button memori-header--button--experts",disabled:!g||!T,onClick:()=>h(!0),title:P("widget.showExpertsInTheBoard")||"Experts in this board"}),p&&(0,a.jsx)(Xl,{primary:!0,shape:"circle",className:t($e)("memori-header--button memori-header--button--speaker",{"memori-header--button--speaker-muted":m}),icon:m?(0,a.jsx)(qL,{}):(0,a.jsx)(rM,{}),onClick:()=>f(!m),title:P("widget.sound")||"Sound"}),y&&G(R,L)&&(0,a.jsx)(Xl,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button-settings",icon:(0,a.jsx)($L,{}),onClick:()=>l(!0),title:P("widget.settings")||"Settings"}),v&&(0,a.jsx)(AP,{className:"memori-header--button memori-header--button-share",title:n.name,memori:n,sessionID:T,tenant:i,showQrCode:!0,align:"left",baseUrl:C,history:r}),x&&(0,a.jsx)(a.Fragment,{children:E&&A?(0,a.jsxs)(WL,{placement:"bottom-right",trigger:(0,a.jsx)(Xl,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button-login",icon:(0,a.jsx)(nI,{}),title:P("login.user")||"User"}),children:[(0,a.jsx)("div",{className:"memori-dropdown--user-profile",children:(0,a.jsxs)("div",{className:"memori-dropdown--user-info",children:[A.avatarURL?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{src:A.avatarURL,alt:A.userName||A.eMail,className:"memori-dropdown--avatar"}),(0,a.jsx)("input",{type:"file",name:"avatar",id:"avatar",className:"memori-dropdown--avatar-input",onChange:e=>{var t,n;return j(null!==(n=null===(t=e.target.files)||void 0===t?void 0:t[0])&&void 0!==n?n:null)},accept:RP.join(", ")})]}):(0,a.jsxs)("div",{className:"memori-dropdown--avatar-placeholder",children:[(0,a.jsx)("span",{children:(A.userName||A.eMail||"U").charAt(0).toUpperCase()}),(0,a.jsx)("input",{type:"file",name:"avatar",id:"avatar",className:"memori-dropdown--avatar-input",onChange:e=>{var t,n;return j(null!==(n=null===(t=e.target.files)||void 0===t?void 0:t[0])&&void 0!==n?n:null)},accept:RP.join(", ")})]}),(0,a.jsxs)("div",{className:"memori-dropdown--user-details",children:[(0,a.jsx)("h3",{className:"memori-dropdown--user-name",children:A.userName||P("login.welcomeUser")}),(0,a.jsx)("p",{className:"memori-dropdown--user-email",children:A.eMail}),(0,a.jsx)("div",{className:"memori-dropdown--user-badge",children:A.birthDate?new Date(A.birthDate).toLocaleDateString():P("login.notSet")})]})]})}),(0,a.jsx)("div",{className:"memori-dropdown--actions",children:(0,a.jsxs)("button",{className:"memori-dropdown--action-button memori-dropdown--action-button--logout",onClick:N,children:[(0,a.jsx)(OP,{className:"memori-dropdown--action-icon"}),P("login.logout")||"Logout"]})})]}):(0,a.jsx)(Xl,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button-login",icon:(0,a.jsx)(nI,{}),onClick:()=>w(!0),title:P("login.login")||"Login"})})]})};var PP=({tenant:e,userLang:t="en",integrationID:n,memoriHash:i})=>{const r="memorytwin"===(null==e?void 0:e.theme)?"memorytwin":"twincreator"===(null==e?void 0:e.theme)?"twincreator":"aisuru";return(0,a.jsxs)("div",{className:"memori--powered-by",children:[(0,a.jsx)("img",{src:`https://aisuru.com/images/${r}/logo.png`,alt:""}),(0,a.jsxs)("p",{children:[(0,a.jsx)("span",{className:"sr-only",children:"Powered by"}),(0,a.jsx)("a",{href:`https://memori.ai/${"it"===(null==t?void 0:t.toLowerCase())?"it":"en"}${n?`?integrationID=${n}`:""}${i?`${n?"&":"?"}memori=${i}`:""}`,target:"_blank",rel:"noopener noreferrer",children:"Memori.AI"})]})]})};const DP=(0,(c=o("85Hg2")).memo)((({defaultDate:e,onChange:t,disabled:n=!1})=>{const{t:i}=qe(),r=(0,c.useMemo)((()=>Ye.DateTime.now().minus({years:18})),[]),o=(0,c.useMemo)((()=>Ye.DateTime.fromObject({year:1900,month:1,day:1})),[]),[s,l]=(0,c.useState)(""),[u,d]=(0,c.useState)(""),[h,p]=(0,c.useState)("");(0,c.useEffect)((()=>{if(e){const t="string"==typeof e?Ye.DateTime.fromISO(e):Ye.DateTime.fromJSDate(e);t.isValid&&(l(t.day.toString()),d(t.month.toString()),p(t.year.toString()))}}),[e]);const[m,f]=(0,c.useState)(!1),g=(0,c.useRef)(null),v=(0,c.useRef)(null),y=(0,c.useRef)(null);(0,c.useEffect)((()=>{const e=()=>{f(window.innerWidth<768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),(0,c.useEffect)((()=>{if(!s||!u||!h)return void t(void 0);const e=parseInt(s),n=parseInt(u),i=parseInt(h);if(isNaN(e)||isNaN(n)||isNaN(i))return void t(void 0);const a=Ye.DateTime.fromObject({year:i,month:n,day:e});a.isValid&&a>=o&&a<=r?t(a):t(void 0)}),[s,u,h,t,o,r]);const _=e=>{const t=e.target.value;if(t){const e=Ye.DateTime.fromISO(t);e.isValid&&(l(e.day.toString()),d(e.month.toString()),p(e.year.toString()))}else l(""),d(""),p("")};if(m){const e=s&&u&&h?Ye.DateTime.fromObject({year:parseInt(h),month:parseInt(u),day:parseInt(s)}):null;return(0,a.jsxs)("div",{className:"memori--date-selector memori--date-selector--mobile",children:[(0,a.jsxs)("label",{className:"memori--date-selector__mobile-label",children:[i("birthDate")||"Birth Date",":"]}),(0,a.jsx)("input",{type:"date",className:"memori--date-selector__mobile-input",value:(null==e?void 0:e.isValid)&&e.toISODate()||"",onChange:_,disabled:n,min:o.toISODate()||"1900-01-01",max:r.toISODate()||"","aria-label":String(i("dateOfBirth")||i("date"))})]})}return(0,a.jsxs)("div",{className:"memori--date-selector memori--date-selector--desktop",children:[(0,a.jsxs)("div",{className:"memori--date-selector__input-group",children:[(0,a.jsx)("label",{className:"memori--date-selector__label",children:i("day")||"Day"}),(0,a.jsx)("input",{ref:g,type:"number",className:"memori--date-selector__input",value:s,onChange:e=>{var t;const n=e.target.value;if(""===n||/^\d+$/.test(n)){if(n.length>2)return;if(parseInt(n)>31)return;l(n),n.length>=2&&(null===(t=v.current)||void 0===t||t.focus())}},placeholder:i("dayPlaceholder")||"DD",min:1,max:31,disabled:n})]}),(0,a.jsxs)("div",{className:"memori--date-selector__input-group",children:[(0,a.jsx)("label",{className:"memori--date-selector__label",children:i("month")||"Month"}),(0,a.jsx)("input",{ref:v,type:"number",className:"memori--date-selector__input",value:u,onChange:e=>{var t;const n=e.target.value;if(""===n||/^\d+$/.test(n)){if(n.length>2)return;if(parseInt(n)>12)return;d(n),n.length>=2&&(null===(t=y.current)||void 0===t||t.focus())}},placeholder:i("monthPlaceholder")||"MM",min:1,max:12,disabled:n})]}),(0,a.jsxs)("div",{className:"memori--date-selector__input-group memori--date-selector__input-group--year",children:[(0,a.jsx)("label",{className:"memori--date-selector__label",children:i("year")||"Year"}),(0,a.jsx)("input",{ref:y,type:"number",className:"memori--date-selector__input",value:h,onChange:e=>{const t=e.target.value;if(""===t||/^\d+$/.test(t)){if(t.length>4)return;p(t)}},placeholder:i("yearPlaceholder")||"YYYY",min:o.year,max:r.year,disabled:n})]})]})}));DP.displayName="DateSelector";var kP=DP;c=o("85Hg2");var BP=({visible:e=!1,onClose:n,minAge:i})=>{const{t:r}=qe(),[o,s]=(0,c.useState)(),[l,u]=(0,c.useState)(),[d,h]=(0,c.useState)(!1),p=(0,c.useCallback)((()=>{if(h(!0),!o)return t(Ao).error(r("requiredField")),u(r("requiredField")||"Required field"),void h(!1);if(Ye.DateTime.now().diff(o,"years").years<i)return t(Ao).error(r("underageTwinSession",{age:i})),u(r("underageTwinSession",{age:i})||`You must be at least ${i} years old to interact with this Agent`),void h(!1);n(o.toJSDate().toISOString())}),[o,i,n,r]);return(0,a.jsxs)(RA,{open:e,width:"600px",widthMd:"600px",title:r("ageVerification"),className:"age-verification-modal",closable:!0,onClose:()=>n(),children:[(0,a.jsx)("p",{children:r("ageVerificationText",{minAge:i})}),(0,a.jsxs)("form",{className:"age-verification-form",onSubmit:e=>{e.preventDefault(),p()},children:[(0,a.jsx)("div",{className:"form-item",children:(0,a.jsxs)("fieldset",{name:"birthDate",children:[(0,a.jsx)("legend",{className:"sr-only",children:r("birthDate")}),(0,a.jsx)(kP,{onChange:e=>{s(e)}}),(0,a.jsx)("p",{className:"form-item-help",children:r("birthDateHelper")}),l&&(0,a.jsx)("p",{className:"form-item-error",children:l})]})}),(0,a.jsx)("div",{className:"form-item form-submit",children:(0,a.jsx)(Xl,{primary:!0,htmlType:"submit",className:"age-verification-submit",loading:d,disabled:!o,children:r("confirm")})})]})]})};c=o("85Hg2");var FP=({label:e,className:n,disabled:i=!1,indeterminate:r=!1,checked:o,children:s,onChange:l,name:u,...d})=>{const h=(0,c.useRef)(null);return(0,c.useEffect)((()=>{h.current&&(h.current.indeterminate=r)}),[h,r]),(0,a.jsxs)("label",{className:t($e)("memori-checkbox",n,{"memori-checkbox--disabled":i,"memori-checkbox--indeterminate":r}),children:[(0,a.jsxs)("span",{className:"memori-checkbox--input-wrapper",children:[(0,a.jsx)("input",{ref:h,type:"checkbox",...d,name:u,disabled:i,checked:o||r,className:"memori-checkbox--input",onChange:l}),(0,a.jsx)("span",{className:"memori-checkbox--inner"})]}),!!(null==e?void 0:e.length)&&(0,a.jsx)("span",{className:"memori-checkbox--text",children:e})]})};c=o("85Hg2"),c=o("85Hg2");function UP(e=0){let[t,n]=(0,c.useState)(e),i=(0,c.useCallback)((e=>n((t=>t|e))),[t]),r=(0,c.useCallback)((e=>Boolean(t&e)),[t]),o=(0,c.useCallback)((e=>n((t=>t&~e))),[n]),a=(0,c.useCallback)((e=>n((t=>t^e))),[n]);return{addFlag:i,hasFlag:r,removeFlag:o,toggleFlag:a}}let zP=(0,(c=o("85Hg2")).createContext)(null);function GP(){let e=(0,c.useContext)(zP);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,GP),e}return e}function jP(){let[e,n]=(0,c.useState)([]);return[e.length>0?e.join(" "):void 0,(0,c.useMemo)((()=>function(e){let i=Ka((e=>(n((t=>[...t,e])),()=>n((t=>{let n=t.slice(),i=n.indexOf(e);return-1!==i&&n.splice(i,1),n}))))),r=(0,c.useMemo)((()=>({register:i,slot:e.slot,name:e.name,props:e.props})),[i,e.slot,e.name,e.props]);return t(c).createElement(zP.Provider,{value:r},e.children)}),[n])]}let HP=qa((function(e,t){let{passive:n=!1,...i}=e,r=GP(),o=`headlessui-label-${us()}`,a=ts(t);Za((()=>r.register(o)),[o,r.register]);let s={ref:a,...r.props,id:o};return n&&("onClick"in s&&delete s.onClick,"onClick"in i&&delete i.onClick),Ha({ourProps:s,theirProps:i,slot:r.slot||{},defaultTag:"label",name:r.name||"Label"})}));var VP,WP=((VP=WP||{})[VP.RegisterOption=0]="RegisterOption",VP[VP.UnregisterOption=1]="UnregisterOption",VP);let qP={0(e,t){let n=[...e.options,{id:t.id,element:t.element,propsRef:t.propsRef}];return{...e,options:Ms(n,(e=>e.element.current))}},1(e,t){let n=e.options.slice(),i=e.options.findIndex((e=>e.id===t.id));return-1===i?e:(n.splice(i,1),{...e,options:n})}},$P=(0,c.createContext)(null);function YP(e){let t=(0,c.useContext)($P);if(null===t){let t=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,YP),t}return t}function JP(e,t){return Ua(t.type,qP,e,t)}$P.displayName="RadioGroupContext";let ZP=qa((function(e,n){let{value:i,defaultValue:r,name:o,onChange:a,by:s=((e,t)=>e===t),disabled:l=!1,...u}=e,d=Ka("string"==typeof s?(e,t)=>{let n=s;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:s),[h,p]=(0,c.useReducer)(JP,{options:[]}),m=h.options,[f,g]=jP(),[v,y]=nl(),_=`headlessui-radiogroup-${us()}`,b=(0,c.useRef)(null),x=ts(b,n),[w,S]=oA(i,a,r),E=(0,c.useMemo)((()=>m.find((e=>!e.propsRef.current.disabled))),[m]),A=(0,c.useMemo)((()=>m.some((e=>d(e.propsRef.current.value,w)))),[m,w]),T=Ka((e=>{var t;if(l||d(e,w))return!1;let n=null==(t=m.find((t=>d(t.propsRef.current.value,e))))?void 0:t.propsRef.current;return(null==n||!n.disabled)&&(null==S||S(e),!0)}));KE({container:b.current,accept:e=>"radio"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let I=Ka((e=>{let t=b.current;if(!t)return;let n=fs(t),i=m.filter((e=>!1===e.propsRef.current.disabled)).map((e=>e.element.current));switch(e.key){case is.Enter:rA(e.currentTarget);break;case is.ArrowLeft:case is.ArrowUp:if(e.preventDefault(),e.stopPropagation(),Ns(i,_s.Previous|_s.WrapAround)===bs.Success){let e=m.find((e=>e.element.current===(null==n?void 0:n.activeElement)));e&&T(e.propsRef.current.value)}break;case is.ArrowRight:case is.ArrowDown:if(e.preventDefault(),e.stopPropagation(),Ns(i,_s.Next|_s.WrapAround)===bs.Success){let e=m.find((e=>e.element.current===(null==n?void 0:n.activeElement)));e&&T(e.propsRef.current.value)}break;case is.Space:{e.preventDefault(),e.stopPropagation();let t=m.find((e=>e.element.current===(null==n?void 0:n.activeElement)));t&&T(t.propsRef.current.value)}}})),M=Ka((e=>(p({type:0,...e}),()=>p({type:1,id:e.id})))),C=(0,c.useMemo)((()=>({registerOption:M,firstOption:E,containsCheckedOption:A,change:T,disabled:l,value:w,compare:d})),[M,E,A,T,l,w,d]),N={ref:x,id:_,role:"radiogroup","aria-labelledby":f,"aria-describedby":v,onKeyDown:I},O=(0,c.useMemo)((()=>({value:w})),[w]);return t(c).createElement(y,{name:"RadioGroup.Description"},t(c).createElement(g,{name:"RadioGroup.Label"},t(c).createElement($P.Provider,{value:C},null!=o&&null!=w&&tA({[o]:w}).map((([e,n])=>t(c).createElement(hs,{features:ds.Hidden,...$a({key:e,as:"input",type:"radio",checked:null!=n,hidden:!0,readOnly:!0,name:e,value:n})}))),Ha({ourProps:N,theirProps:u,slot:O,defaultTag:"div",name:"RadioGroup"}))))}));var XP=(e=>(e[e.Empty=1]="Empty",e[e.Active=2]="Active",e))(XP||{});let KP=qa((function(e,n){let i=(0,c.useRef)(null),r=ts(i,n),o=`headlessui-radiogroup-option-${us()}`,[a,s]=jP(),[l,u]=nl(),{addFlag:d,removeFlag:h,hasFlag:p}=UP(1),{value:m,disabled:f=!1,...g}=e,v=(0,c.useRef)({value:m,disabled:f});Za((()=>{v.current.value=m}),[m,v]),Za((()=>{v.current.disabled=f}),[f,v]);let{registerOption:y,disabled:_,change:b,firstOption:x,containsCheckedOption:w,value:S,compare:E}=YP("RadioGroup.Option");Za((()=>y({id:o,element:i,propsRef:v})),[o,y,i,e]);let A=Ka((e=>{var t;if(rs(e.currentTarget))return e.preventDefault();!b(m)||(d(2),null==(t=i.current)||t.focus())})),T=Ka((e=>{if(rs(e.currentTarget))return e.preventDefault();d(2)})),I=Ka((()=>h(2))),M=(null==x?void 0:x.id)===o,C=_||f,N=E(S,m),O={ref:r,id:o,role:"radio","aria-checked":N?"true":"false","aria-labelledby":a,"aria-describedby":l,"aria-disabled":!!C||void 0,tabIndex:C?-1:N||!w&&M?0:-1,onClick:C?void 0:A,onFocus:C?void 0:T,onBlur:C?void 0:I},R=(0,c.useMemo)((()=>({checked:N,disabled:C,active:p(2)})),[N,C,p]);return t(c).createElement(u,{name:"RadioGroup.Description"},t(c).createElement(s,{name:"RadioGroup.Label"},Ha({ourProps:O,theirProps:g,slot:R,defaultTag:"div",name:"RadioGroup.Option"})))})),QP=Object.assign(ZP,{Option:KP,Label:HP,Description:il});var eD=({open:e,layout:t="DEFAULT",onClose:n,controlsPosition:i,setControlsPosition:r,hideEmissions:o,setHideEmissions:s,additionalSettings:l,avatarType:c,setAvatarType:u,enablePositionControls:d,setEnablePositionControls:h,isAvatar3d:p})=>{const{t:m}=qe();return(0,a.jsxs)(tc,{className:"memori-settings-drawer",open:e,onClose:n,title:m("widget.settings")||"Settings",description:m("write_and_speak.settingsHeaderLabel"),children:["TOTEM"===t&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"memori-settings-drawer--field controls",children:[(0,a.jsxs)("label",{htmlFor:"#controlsPosition",children:[m("write_and_speak.controlsPosition")||"Controls",":"]}),(0,a.jsxs)(QP,{id:"controlsPosition",name:"controlsPosition",value:i,defaultValue:i,className:"memori-settings-drawer--controlsposition-radio",onChange:e=>{r(e),WR("controlsPosition",e)},children:[(0,a.jsx)(QP.Option,{value:"center",className:"memori-settings-drawer--controlsposition-radio-button",children:({checked:e})=>(0,a.jsx)(Xl,{primary:e,outlined:!e,children:m("center")||"Center"})}),(0,a.jsx)(QP.Option,{value:"bottom",className:"memori-settings-drawer--controlsposition-radio-button",children:({checked:e})=>(0,a.jsx)(Xl,{primary:e,outlined:!e,children:m("bottom")||"Bottom"})})]})]}),p&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"memori-settings-drawer--field controls",children:[(0,a.jsxs)("label",{htmlFor:"avatarType",className:"memori-settings-drawer-label",children:[m("write_and_speak.avatarType")||"Avatar type",":"]}),(0,a.jsxs)(QP,{id:"avatarType",name:"avatarType",value:c,defaultValue:c,className:"memori-settings-drawer--avatarType-radio",onChange:e=>{u&&u(e),WR("avatarType",e)},children:[(0,a.jsx)(QP.Option,{value:"blob",className:"memori-settings-drawer--avatarType-radio-button",children:({checked:e})=>(0,a.jsx)(Xl,{primary:e,outlined:!e,children:m("write_and_speak.blob")||"Blob"})}),(0,a.jsx)(QP.Option,{value:"avatar3d",className:"memori-settings-drawer--avatarType-radio-button",children:({checked:e})=>(0,a.jsx)(Xl,{primary:e,outlined:!e,children:m("write_and_speak.avatar3d")||"Avatar 3D"})})]})]}),(0,a.jsx)("div",{className:"memori-settings-drawer--field",children:(0,a.jsx)(FP,{label:m("write_and_speak.enablePositionControls")||"Enable position controls",name:"enablePositionControls",checked:d,onChange:e=>{h(e.target.checked)}})})]}),(0,a.jsx)("div",{className:"memori-settings-drawer--field",children:(0,a.jsx)(FP,{label:m("write_and_speak.hideEmissionsLabel")||"Hide emissions",name:"hideControls",checked:o,onChange:e=>{s(e.target.checked),WR("hideEmissions",e.target.checked)}})})]}),l&&(0,a.jsx)("div",{className:"memori-settings-drawer--field controls",children:l})]})};c=o("85Hg2");var tD=({className:e,title:t})=>(0,a.jsx)("svg",{...t?{}:{"aria-hidden":"true"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",focusable:"false",role:"img",className:e,"aria-label":t,children:(0,a.jsx)("path",{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"})});c=o("85Hg2");var nD=({className:e,title:t})=>(0,a.jsx)("svg",{...t?{}:{"aria-hidden":"true"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",focusable:"false",role:"img",className:e,fill:"currentColor","aria-label":t,children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M10 3a.75.75 0 01.55.24l3.25 3.5a.75.75 0 11-1.1 1.02L10 4.852 7.3 7.76a.75.75 0 01-1.1-1.02l3.25-3.5A.75.75 0 0110 3zm-3.76 9.2a.75.75 0 011.06.04l2.7 2.908 2.7-2.908a.75.75 0 111.1 1.02l-3.25 3.5a.75.75 0 01-1.1 0l-3.25-3.5a.75.75 0 01.04-1.06z",clipRule:"evenodd"})});var iD=({className:e,value:n,name:i,displayValue:r,options:o,onChange:s,disabled:l=!1,label:u,placeholder:d})=>(0,a.jsx)("div",{className:t($e)("memori-select",e),children:(0,a.jsxs)(cL,{value:n,onChange:e=>{s(e)},disabled:l,name:i,children:[u&&(0,a.jsxs)(cL.Label,{className:"memori-select--label",children:[u,":"]}),(0,a.jsxs)(cL.Button,{"aria-label":u,className:"memori-select--button",children:[(0,a.jsx)("span",{className:t($e)("memori-select--value",{"memori-select--value-placeholder":!n}),children:n?r||n:d}),(0,a.jsx)("span",{className:"memori-select--icon",children:(0,a.jsx)(nD,{})})]}),(0,a.jsx)(Yl,{as:c.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)(cL.Options,{className:"memori-select--options",children:o.map((e=>(0,a.jsx)(cL.Option,{value:e.value,className:"memori-select--option",children:e.label},e.value)))})})]})});var rD=({apiClient:e,sessionID:n,memori:i,visible:r=!0,initialKnownFacts:o=[],closeDrawer:s})=>{var l;const{t:u}=qe(),{getKnownFactsPaginated:d,deleteKnownFact:h}=e.knownFacts,[p,m]=(0,c.useState)(o),[f,g]=(0,c.useState)(25),[v,y]=(0,c.useState)(0),[_,b]=(0,c.useState)(null!==(l=null==o?void 0:o.length)&&void 0!==l?l:0),[x,w]=(0,c.useState)(!1),S=async(e,i,r)=>{if(n||e){w(!0);try{const{knownFacts:a,count:s,...l}=await d(null!=e?e:n,null!=i?i:v,null!=r?r:f);m(null!=a?a:o),b(null!=s?s:0),0!==l.resultCode&&(console.error(l),t(Ao).error(u(XI(l.resultCode))))}catch(e){console.error("KNOWN_FACTS/FETCH",e),m(null!=o?o:[])}w(!1)}};(0,c.useEffect)((()=>{S()}),[]);const[E,A]=(0,c.useState)(!1),[T,I]=(0,c.useState)(),[M,C]=(0,c.useState)([]);return(0,a.jsxs)(tc,{open:r,width:"80%",className:"memori-known-facts-drawer",onClose:()=>s(),title:u("knownFacts.title"),children:[(0,a.jsx)("p",{children:u("knownFacts.description",{memoriName:i.name})}),(0,a.jsxs)(Zl,{spinning:x,children:[(0,a.jsxs)("div",{className:"memori-known-facts-actions",children:[(0,a.jsxs)(Xl,{primary:!0,danger:!0,onClick:()=>{A(!0)},className:"memori-known-facts-delete-selected",disabled:0===(null==M?void 0:M.length),icon:(0,a.jsx)(tD,{}),loading:x,children:[u("selected")," (",null==M?void 0:M.length,")"]}),(0,a.jsx)(RA,{className:"memori-known-facts-modal",open:E,closable:!0,title:M.length>1?u("knownFacts.deleteSelectedConfirmTitle"):u("knownFacts.deleteConfirmTitle"),description:M.length>1?u("knownFacts.deleteSelectedConfirmMessage",{number:M.length}):u("knownFacts.deleteConfirmMessage"),onClose:()=>{A(!1)},footer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Xl,{ghost:!0,onClick:()=>{A(!1)},children:u("cancel")}),(0,a.jsx)(Xl,{primary:!0,danger:!0,onClick:async()=>{try{const e=M.map((e=>h(n,e)));Promise.all(e).then((e=>{if(e.every((e=>0===e.resultCode)))t(Ao).success(u("knownFacts.deleteSuccess")),C([]),S(),A(!1);else{let n=e.find((e=>0!==e.resultCode));console.error(n),void 0!==(null==n?void 0:n.resultCode)&&t(Ao).error(u(XI(null==n?void 0:n.resultCode)))}}))}catch(e){let n=e;t(Ao).error(u("Error")+n.message)}},children:u("confirm")})]})})]}),_>25&&(0,a.jsxs)("nav",{className:"memori--table--pagination",children:[_>f&&(0,a.jsxs)("div",{className:"memori--table--pagination--pages",children:[(0,a.jsx)(Xl,{shape:"circle",disabled:0===v||v<f,padded:!1,title:u("previous")||"Previous",icon:(0,a.jsx)(EC,{}),onClick:()=>{let e=(v/f-1)*f;y(e),S(void 0,e,f)}}),(0,a.jsxs)("span",{className:"memori--table--pagination--pages--current",children:[Math.ceil(v/f)+1," /"," ",Math.ceil(_/f)]}),(0,a.jsx)(Xl,{shape:"circle",padded:!1,title:u("next")||"Next",icon:(0,a.jsx)(sC,{}),disabled:(v/f+1)*f>=_,onClick:()=>{let e=(v/f+1)*f;y(e),S(void 0,e,f)}})]}),(0,a.jsx)(iD,{options:[{label:`25 / ${u("page")||"page"}`,value:25},{label:`50 / ${u("page")||"page"}`,value:50},{label:`100 / ${u("page")||"page"}`,value:100}],value:f,displayValue:`${f} / ${u("page")||"page"}`,onChange:e=>{g(e),y(0),S(void 0,0,e)}})]}),(0,a.jsxs)("table",{className:"memori--table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"memori--table--column-centered",children:(0,a.jsx)(FP,{checked:!!(null==p?void 0:p.length)&&(null==M?void 0:M.length)===p.length,indeterminate:!!(null==p?void 0:p.length)&&!!(null==M?void 0:M.length)&&(null==M?void 0:M.length)!==(null==p?void 0:p.length),onChange:e=>{e.target.checked?C(p.map((e=>e.knownFactID))):C([])}})}),(0,a.jsx)("th",{children:u("knownFacts.text")}),(0,a.jsx)("th",{className:"mobile-hidden",children:u("createdAt")}),(0,a.jsx)("th",{className:"memori--table--column-right",children:u("actions")})]})}),(0,a.jsx)("tbody",{children:p.map((e=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"memori--table--column-centered",children:(0,a.jsx)(FP,{checked:null==M?void 0:M.includes(e.knownFactID),onChange:t=>{t.target.checked?C((t=>[...new Set([...t,e.knownFactID])])):C((t=>t.filter((t=>t!==e.knownFactID))))}})}),(0,a.jsx)("td",{children:e.text}),(0,a.jsx)("td",{className:"mobile-hidden",children:(0,a.jsx)("span",{className:"memori--table--date",children:e.creationTimestamp?new Intl.DateTimeFormat("it",{dateStyle:"short",timeStyle:"short"}).format(new Date(e.creationTimestamp)):"-"})}),(0,a.jsx)("td",{className:"memori--table--column-right",children:(0,a.jsxs)("div",{className:"memori--table--action-column",children:[(0,a.jsx)(Xl,{danger:!0,ghost:!0,shape:"circle",icon:(0,a.jsx)(tD,{}),disabled:(null==M?void 0:M.length)>0,title:u("delete")||"Delete",onClick:()=>I(e.knownFactID)}),(0,a.jsx)(RA,{className:"memori-known-facts-modal",open:T===e.knownFactID,closable:!0,title:u("knownFacts.deleteConfirmTitle"),description:u("knownFacts.deleteConfirmMessage"),onClose:()=>{I(void 0)},footer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Xl,{ghost:!0,onClick:()=>{I(void 0)},children:u("cancel")}),(0,a.jsx)(Xl,{primary:!0,danger:!0,onClick:async()=>{try{const i=await h(n,e.knownFactID);0===i.resultCode?(t(Ao).success(u("knownFacts.deleteSuccess")),C([]),S(),I(void 0)):(console.error(i),t(Ao).error(u(XI(i.resultCode),{ns:"common"})))}catch(e){let n=e;t(Ao).error(u("Error")+n.message)}},children:u("confirm")})]})})]})})]},e.knownFactID)))})]})]})]})};var oD=({open:e=!1,baseUrl:t,apiUrl:n,tenant:i,experts:r,onClose:o})=>{const{t:s}=qe();return(0,a.jsx)(tc,{open:e,onClose:o,className:"memori--experts-drawer",title:(0,a.jsx)("h2",{className:"memori--experts-drawer--title",children:s("widget.expertsInTheBoard")}),children:(0,a.jsx)("ul",{className:"memori--experts-drawer--list",children:r.map((e=>(0,a.jsxs)("li",{className:"memori--experts-drawer--item",children:[(0,a.jsx)("figure",{className:"memori--experts-drawer--avatar",children:(0,a.jsx)("img",{src:`${new URL(n).origin}/api/v1/memoriai/memori/avatar/${e.expertMemoriID}`,alt:e.name,onError:e=>{e.currentTarget.src=tI({tenantID:null==i?void 0:i.name,type:"avatar",baseURL:t}),e.currentTarget.onerror=null}})}),(0,a.jsx)("div",{className:"memori--experts-drawer--content",children:(0,a.jsx)("h3",{className:"memori--experts-drawer--name",children:e.name})})]},e.expertID)))})})};c=o("85Hg2");var aD=({open:e=!1,onClose:n,onLogin:i,user:r,loginToken:o,setUser:s,tenant:l,apiClient:u,__TEST__signup:d=!1,__TEST__needMissingData:h=!1})=>{var p;const{t:m,i18n:f}=qe(),g="it"===f.language?"it":"en",{pwlUpdateUser:v,loginWithOTP:y,validateOTPCode:_,pwlGetCurrentUser:b,uploadAsset:x}=u.backend,w=(null==r?void 0:r.userID)&&o,[S,E]=(0,c.useState)(!1),[A,T]=(0,c.useState)(null),[I,M]=(0,c.useState)(""),[C,N]=(0,c.useState)(""),[O,R]=(0,c.useState)(null),[L,P]=(0,c.useState)(!0),[D,k]=(0,c.useState)(!1),[B,F]=(0,c.useState)(null),[U,z]=(0,c.useState)(!1),[G,j]=(0,c.useState)(null),[H,V]=(0,c.useState)(!1),[W,q]=(0,c.useState)(!1),[$,Y]=(0,c.useState)(!1),[J,Z]=(0,c.useState)(""),[X,K]=(0,c.useState)(!1),[Q,ee]=(0,c.useState)(!1),[te,ne]=(0,c.useState)(d),[ie,re]=(0,c.useState)(h?{token:"token",birthDate:!0,tnCAndPPAccepted:!0}:{});(0,c.useEffect)((()=>{let e;return B&&B>0&&(e=setInterval((()=>{F((e=>e&&e>0?e-1:0))}),1e3)),()=>{e&&clearInterval(e)}}),[B]);const oe=async(e,n=!1)=>{if(e&&LE.test(e)){n?V(!0):E(!0),R(null);try{const i=await y({tenant:l.name,eMail:e.trim()});0===i.resultCode?(t(Ao).success(m(n?"login.otpResent":"login.otpSent")),N(e.trim()),z(!0),k(!0),se(),q(!1)):R(i.resultMessage||m("login.otpSendError"))}catch(e){console.error("[OTP SEND]",e),R(m("login.otpSendError"))}finally{E(!1),V(!1)}}else R(m("login.emailInvalid"))},ae=e=>{const n=e.replace(/\D/g,"").slice(0,4);M(n),R(null),4===n.length&&C.trim().length>0&&(async e=>{if(e&&4===e.length)if(C&&0!==C.trim().length){E(!0),R(null);try{const n=await _(e,l.name,void 0,C.trim());0===n.resultCode?(q(!0),t(Ao).success(m("login.otpSuccess")),setTimeout((async()=>{var e,r,o;try{const{user:t,...a}=await b(n.newSessionToken);t.age&&t.tnCAndPPAccepted?i(t,n.newSessionToken):(s(t),Z(null!==(e=null==t?void 0:t.birthDate)&&void 0!==e?e:""),K(null!==(r=null==t?void 0:t.tnCAndPPAccepted)&&void 0!==r&&r),ee(null!==(o=null==t?void 0:t.pAndCUAccepted)&&void 0!==o&&o),re({token:n.newSessionToken,birthDate:!t.age,tnCAndPPAccepted:!t.tnCAndPPAccepted}))}catch(e){console.error("[GET USER]",e),t(Ao).error(m("login.userFetchError"))}}),1e3),setTimeout((()=>{P(!1),k(!1),M(""),N(""),z(!1),q(!1)}),2e3)):-107===n.resultCode?R(m("login.otpNotFound")):-108===n.resultCode?R(m("login.otpExpired")):-109===n.resultCode?R(m("login.otpMissing")):R(n.resultMessage||m("login.otpInvalid"))}catch(e){console.error("[OTP VALIDATION]",e),R(m("login.otpError"))}finally{E(!1)}}else R(m("login.emailRequired"));else R(m("login.otpInvalidFormat"))})(n)},se=()=>{F(60)};return(0,a.jsx)(tc,{open:e,onClose:n,className:t($e)("memori--login-drawer",{"memori--login-drawer--logged":w,"memori--login-drawer--signup":te}),children:(null===(p=null==ie?void 0:ie.token)||void 0===p?void 0:p.length)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{children:m("login.missingData")}),(0,a.jsx)("p",{children:m("login.missingDataHelper")}),(0,a.jsxs)("form",{className:"memori--login-drawer--form",onSubmit:async e=>{if(e.preventDefault(),!(null==r?void 0:r.userID)||!(null==ie?void 0:ie.token))return void T(m("login.userNotFound"));if(!J||!X)return void T(m("missingData"));let n={userID:r.userID,birthDate:(null==r?void 0:r.birthDate)||!ie.birthDate?void 0:J,tnCAndPPAccepted:X||(null==r?void 0:r.tnCAndPPAccepted),tnCAndPPAcceptanceDate:X?(new Date).toISOString():void 0,pAndCUAccepted:Q||(null==r?void 0:r.pAndCUAccepted),pAndCUAcceptanceDate:Q?(new Date).toISOString():void 0};const{user:o,...a}=await v(ie.token,r.userID,n);0!==a.resultCode?(console.error(a),t(Ao).error(m(XI(a.resultCode))),T(a.resultMessage)):(t(Ao).success(m("success")),i(o||n,ie.token))},children:[ie.birthDate&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("label",{htmlFor:"#birthDate",children:[m("login.birthDate"),(0,a.jsx)("input",{id:"birthDate",name:"birthDate",type:"date",required:!0,onChange:e=>Z(e.target.value),value:J,autoComplete:"bday"})]}),(0,a.jsx)("p",{children:(0,a.jsx)("small",{children:m("login.birthDateHelper")})})]}),(null==ie?void 0:ie.tnCAndPPAccepted)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("label",{className:"memori-checkbox",children:[(0,a.jsxs)("span",{className:"memori-checkbox--input-wrapper",children:[(0,a.jsx)("input",{type:"checkbox",name:"tnCAndPPAccepted",className:"memori-checkbox--input",onChange:e=>K(e.target.checked),checked:X}),(0,a.jsx)("span",{className:"memori-checkbox--inner"})]}),(0,a.jsxs)("span",{className:"memori-checkbox--text",children:[m("login.privacyLabel")," ",(0,a.jsx)("a",{href:`https://memori.ai/${g}/privacy_and_cookie`,target:"_blank",rel:"noopener noreferrer",children:m("login.privacyAndCookiePolicy")})," ",m("login.and")," ",(0,a.jsx)("a",{href:`https://memori.ai/${g}/tos`,target:"_blank",rel:"noopener noreferrer",children:m("login.termsOfService")})]})]}),(0,a.jsxs)("label",{className:"memori-checkbox",children:[(0,a.jsxs)("span",{className:"memori-checkbox--input-wrapper",children:[(0,a.jsx)("input",{type:"checkbox",name:"pAndCUAccepted",onChange:e=>ee(e.target.checked),checked:Q,className:"memori-checkbox--input"}),(0,a.jsx)("span",{className:"memori-checkbox--inner"})]}),(0,a.jsxs)("span",{className:"memori-checkbox--text",children:[m("login.pAndCUAccepted")," ",(0,a.jsx)("small",{children:(0,a.jsxs)("em",{children:["(",m("login.optional"),")"]})})]})]}),(0,a.jsx)("p",{children:(0,a.jsx)("small",{children:m("login.goToAccountToChangeYourPreferences")})}),(0,a.jsx)("p",{children:(0,a.jsx)("small",{children:m("login.deepThoughtExplaination")})})]}),A&&(0,a.jsx)("p",{className:"memori--login-drawer--inline-error",children:A}),(0,a.jsx)(Xl,{htmlType:"submit",primary:!0,loading:S,children:m("login.save")})]})]}):D?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"memori--login-drawer--otp-container",children:[(0,a.jsxs)("div",{className:"memori--login-drawer--otp-header",children:[W&&(0,a.jsx)("div",{className:"memori--login-drawer--otp-icon",children:"✅"}),(0,a.jsx)("h3",{children:m("login.otpTitle")}),(0,a.jsx)("p",{className:"memori--login-drawer--otp-description",children:W?m("login.otpSuccessMessage"):m("login.otpCodeDescription",{email:C})})]}),!W&&(0,a.jsx)("div",{className:t($e)("memori--login-drawer--otp-form",{loading:S}),children:(0,a.jsxs)("label",{htmlFor:"otp-code",className:"memori--login-drawer--otp-label",children:[(0,a.jsx)("span",{className:"memori--login-drawer--otp-label-text",style:{textAlign:"center"},children:m("login.otpCode")}),(0,a.jsxs)("div",{className:"memori--login-drawer--otp-input-container",children:[(0,a.jsx)("input",{id:"otp-code",type:"text",className:t($e)("memori--login-drawer--otp-input",{success:4===I.length&&!O,error:O,loading:S}),value:I,onChange:e=>ae(e.target.value),placeholder:"0000",maxLength:4,autoComplete:"one-time-code",required:!0,disabled:S,"aria-describedby":"otp-help"}),S&&(0,a.jsx)("div",{className:"memori--login-drawer--otp-loading",children:(0,a.jsx)("div",{className:"memori--login-drawer--otp-spinner"})})]}),(0,a.jsx)("small",{id:"otp-help",className:"memori--login-drawer--otp-help",children:m("login.otpHelp")})]})}),B&&B>0&&!W&&(0,a.jsx)("div",{className:"memori--login-drawer--otp-timer",children:(0,a.jsx)("span",{children:m("login.otpTimer",{seconds:B})})}),!W&&(0,a.jsxs)("div",{className:"memori--login-drawer--otp-actions",children:[(0,a.jsx)(Xl,{outlined:!0,onClick:()=>{k(!1),M(""),R(null)},disabled:S,children:m("login.backToEmail")}),(0,a.jsx)(Xl,{outlined:!0,onClick:()=>{C&&LE.test(C)&&oe(C,!0)},disabled:S||H||B&&B>0||!C,loading:H,children:m(H?"login.resending":"login.resendOtp")})]}),O&&(0,a.jsxs)("div",{role:"alert",className:"memori--login-drawer--otp-error",children:[(0,a.jsx)("span",{className:"memori--login-drawer--otp-error-icon",children:"⚠️"}),(0,a.jsx)("span",{children:O})]})]})}):L?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"memori--login-drawer--otp-container",children:[(0,a.jsxs)("div",{className:"memori--login-drawer--otp-header",children:[(0,a.jsx)("h3",{children:m("login.otpEmailTitle")}),(0,a.jsx)("p",{className:"memori--login-drawer--otp-description",children:m("login.otpEmailDescription")})]}),(0,a.jsx)("div",{className:t($e)("memori--login-drawer--otp-form",{loading:S}),children:(0,a.jsxs)("label",{htmlFor:"otp-email",className:"memori--login-drawer--otp-label",children:[(0,a.jsx)("span",{className:"memori--login-drawer--otp-label-text",children:m("login.email")}),(0,a.jsxs)("div",{className:"memori--login-drawer--otp-input-container",children:[(0,a.jsx)("input",{id:"otp-email",type:"email",className:t($e)("memori--login-drawer--otp-email-input",{error:O&&!LE.test(C),valid:$&&!O,loading:S}),value:C,onChange:e=>{return t=e.target.value,N(t),R(null),void Y(LE.test(t));var t},placeholder:m("login.emailPlaceholder")||"Enter your email",autoComplete:"email",required:!0,disabled:S,"aria-describedby":"email-help"}),$&&!S&&(0,a.jsx)("div",{className:"memori--login-drawer--otp-valid-icon",children:"✓"}),S&&(0,a.jsx)("div",{className:"memori--login-drawer--otp-loading",children:(0,a.jsx)("div",{className:"memori--login-drawer--otp-spinner"})})]})]})}),(0,a.jsxs)("div",{className:"memori--login-drawer--otp-actions",children:[D&&(0,a.jsx)(Xl,{outlined:!0,onClick:()=>{P(!1),N(""),R(null),Y(!1)},disabled:S,children:m("login.backToLogin")}),(0,a.jsx)(Xl,{primary:!0,onClick:()=>{oe(C)},disabled:S||!$,loading:S,children:m("login.sendOtp")})]}),O&&(0,a.jsxs)("div",{role:"alert",className:"memori--login-drawer--otp-error",children:[(0,a.jsx)("span",{className:"memori--login-drawer--otp-error-icon",children:"⚠️"}),(0,a.jsx)("span",{children:O})]})]})}):null})};var sD=({Header:e,headerProps:t,Avatar:n,avatarProps:i,Chat:r,chatProps:o,StartPanel:s,startPanelProps:l,integrationStyle:c,integrationBackground:u,sessionId:d,hasUserActivatedSpeak:h,loading:p=!1,poweredBy:m})=>{const{state:f}=re(),g=f.currentArtifact;return(0,a.jsxs)(a.Fragment,{children:[c,u,(0,a.jsxs)(Zl,{spinning:p,children:[(0,a.jsx)("div",{className:"memori-chat-layout--header "+(f.isDrawerOpen?"memori-chat-layout--header-with-artifact":""),children:e&&t&&(0,a.jsx)(e,{...t})}),(0,a.jsxs)("div",{className:"memori--grid",children:[!f.isDrawerOpen&&(0,a.jsxs)("div",{className:"memori--grid-column memori--grid-column-left",children:[n&&i&&(0,a.jsx)(n,{chatProps:o,...i}),(0,a.jsx)("div",{id:"extension"})]}),(0,a.jsx)("div",{className:"memori-chat-layout--main "+(g?"memori-chat-layout--main-with-artifact":""),children:(0,a.jsx)("div",{className:f.isFullscreen?"memori-chat-layout-controls-hide":"memori-chat-layout--controls "+(f.isDrawerOpen?"memori-chat-layout--controls-with-artifact":""),children:d&&h&&r&&o?(0,a.jsx)(r,{...o}):l?(0,a.jsx)(s,{...l}):null})}),m]})]})]})};var lD=({Header:e,headerProps:t,Avatar:n,avatarProps:i,Chat:r,chatProps:o,StartPanel:s,startPanelProps:l,integrationStyle:c,integrationBackground:u,sessionId:d,hasUserActivatedSpeak:h,loading:p=!1,poweredBy:m})=>(0,a.jsxs)(a.Fragment,{children:[c,u,(0,a.jsxs)(Zl,{spinning:p,className:"memori-totem-layout",children:[m,(0,a.jsx)("div",{className:"memori-totem-layout--header",children:e&&t&&(0,a.jsx)(e,{...t})}),(0,a.jsx)("div",{className:"memori-totem-layout--avatar",children:n&&i&&(0,a.jsx)(n,{chatProps:o,...i,isTotem:!0})}),(0,a.jsx)("div",{id:"extension"}),(0,a.jsx)("div",{className:"memori-totem-layout--controls",children:d&&h&&r&&o?(0,a.jsx)(r,{...o}):l?(0,a.jsx)(s,{...l}):null})]})]});var cD=({Header:e,headerProps:t,Chat:n,chatProps:i,StartPanel:r,startPanelProps:o,integrationStyle:s,integrationBackground:l,sessionId:c,hasUserActivatedSpeak:u,loading:d=!1,poweredBy:h})=>{const{state:p}=re();return(0,a.jsxs)(a.Fragment,{children:[s,l,(0,a.jsxs)(Zl,{spinning:d,className:"memori-chat-layout",children:[h,(0,a.jsx)("div",{className:"memori-chat-layout--header "+(p.isDrawerOpen?"memori-chat-layout--header-with-artifact":""),children:e&&t&&(0,a.jsx)(e,{...t})}),(0,a.jsx)("div",{id:"extension"}),(0,a.jsx)("div",{className:"memori-chat-layout--main "+(p.isDrawerOpen?"memori-chat-layout--main-with-artifact":""),children:(0,a.jsx)("div",{className:p.isFullscreen?"memori-chat-layout-controls-hide":"memori-chat-layout--controls "+(p.isDrawerOpen?"memori-chat-layout--controls-with-artifact":""),children:c&&u&&n&&i?(0,a.jsx)(n,{...i}):o?(0,a.jsx)(r,{...o}):null})})]})]})};c=o("85Hg2"),c=o("85Hg2");var uD=({Header:e,headerProps:t,Avatar:n,avatarProps:i,Chat:r,chatProps:o,StartPanel:s,startPanelProps:l,integrationStyle:u,sessionId:d,hasUserActivatedSpeak:h,loading:p=!1,poweredBy:m})=>{var f,g;const{t:v}=qe(),[y,_]=(0,c.useState)(!0),[b,x]=(0,c.useState)(),w=(0,c.useMemo)((()=>null==o?void 0:o.stopAudio),[null==o?void 0:o.stopAudio]),S=e=>{_(e),x(e?void 0:(new Date).toISOString());try{null==w||w()}catch(e){console.log(e)}};return(0,a.jsxs)(a.Fragment,{children:[y&&(0,a.jsx)("div",{className:"memori-website_assistant--trigger",children:(0,a.jsx)(Xl,{className:"memori-website_assistant--trigger-button",ghost:!0,shape:"circle",onClick:()=>S(!1),title:v("expand")||"Expand",children:(0,a.jsx)(WC,{avatar:null==i?void 0:i.memori.avatarURL})})}),(0,a.jsx)("div",{className:"memori-website_assistant--"+(y?"collapsed":"expanded"),children:!y&&(0,a.jsxs)(a.Fragment,{children:[u,(0,a.jsxs)(Zl,{spinning:p,className:"memori-website_assistant-layout",children:[m,(0,a.jsx)("div",{className:"memori-website_assistant--close-button-wrapper",children:(0,a.jsx)(Xl,{className:"memori-website_assistant--close-button",primary:!0,shape:"circle",onClick:()=>S(!0),icon:(0,a.jsx)(Kl,{}),title:v("close")||"Close"})}),e&&t&&(0,a.jsx)(e,{...t,showSettings:!1,showReload:!1}),(0,a.jsx)("div",{className:"memori-website_assistant-layout--avatar",children:n&&i&&(0,c.createElement)(n,{...i,integrationConfig:i.integrationConfig?{...i.integrationConfig,avatarURL:(null===(f=i.integrationConfig)||void 0===f?void 0:f.avatarURL)?`${null===(g=i.integrationConfig)||void 0===g?void 0:g.avatarURL.split("#")[0]}#${b}`:void 0}:{},key:b})}),(0,a.jsx)("div",{id:"extension"}),(0,a.jsx)("div",{className:"memori-website_assistant-layout--controls",children:d&&h&&r&&o?(0,a.jsx)(r,{...o}):l?(0,a.jsx)(s,{...l}):null})]})]})})]})};c=o("85Hg2");var dD=({Header:e,headerProps:t,Chat:n,chatProps:i,startPanelProps:r,sessionId:o,hasUserActivatedSpeak:s,autoStart:l,StartPanel:u,onSidebarToggle:d})=>{const{t:h}=qe(),[p,m]=(0,c.useState)(!1),[f,g]=(0,c.useState)(!1),[v,y]=(0,c.useState)(!1),{state:_,closeArtifact:b}=re(),{onClickStart:x,hasInitialSession:w}=r||{},S=(0,c.useRef)({right:"",width:"",backgroundColor:""});(0,c.useEffect)((()=>{const e=()=>{!document.fullscreenElement&&f&&E()};return document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e)}}),[f]),(0,c.useEffect)((()=>{const e=document.body;p?f?(e.style.width="100%",e.style.marginLeft="0"):(e.style.width="calc(100% - 350px)",e.style.marginRight="300px",e.style.transition="all 0.5s"):(e.style.width="100%",e.style.marginRight="0",e.style.marginLeft="0",b())}),[p,f]);const E=()=>{const e=document.querySelector(".memori-sidebar");if(e){const t=document.querySelector(".memori-close-label");t&&(t.style.display="flex");const n=e;n.style.right=S.current.right,n.style.width=S.current.width,n.style.backgroundColor=S.current.backgroundColor,n.classList.remove("memori-sidebar-fullscreen")}g(!1)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",{type:"checkbox",id:"memori-sidebar-toggle",className:"memori-sidebar-toggle "+(_.isDrawerOpen?"memori-sidebar-toggle-artifact":""),checked:p,onChange:()=>{p||v||!l&&void 0!==l||o&&!w||(y(!0),null==x||x()),f&&p&&(document.fullscreenElement&&document.exitFullscreen().catch((e=>{console.warn("[HiddenChatLayout] Error exiting fullscreen:",e)})),E());const e=!p;m(e),d&&d(e)}}),(0,a.jsxs)("div",{className:"memori-sidebar-container",children:[(0,a.jsx)("label",{htmlFor:"memori-sidebar-toggle",className:"memori-sidebar-toggle-label memori-open-label",children:(0,a.jsx)(II,{className:"memori-icon","aria-label":h("expand")})}),(0,a.jsxs)("aside",{className:"memori-sidebar "+(f?"memori-sidebar-fullscreen":""),children:[(0,a.jsx)("label",{htmlFor:"memori-sidebar-toggle",className:"memori-sidebar-toggle-label memori-close-label",children:(0,a.jsx)("span",{children:(0,a.jsx)(Kl,{className:"memori-icon-close","aria-label":h("collapse")})})}),(0,a.jsx)("div",{className:"memori-sidebar-content",children:(0,a.jsx)("div",{className:"memori-hidden-chat-layout--header",children:e&&t&&(0,a.jsx)(e,{position:{latitude:0,longitude:0,placeName:""},...t,className:"memori-hidden-chat-layout-header--layout",fullScreenHandler:()=>{if(document.fullscreenElement)document.exitFullscreen&&document.exitFullscreen().catch((e=>{console.warn("[HiddenChatLayout] Error exiting fullscreen:",e)})),E();else{const e=document.querySelector(".memori-sidebar");if(e){const t=e,n=document.querySelector(".memori-close-label");n&&(n.style.display="none"),S.current={right:t.style.right,width:t.style.width,backgroundColor:t.style.backgroundColor},t.style.right="0",t.style.width="100%",t.style.backgroundColor="#FFFFFF",t.requestFullscreen().catch((e=>{console.warn("[HiddenChatLayout] Error enabling fullscreen:",e)}))}g(!0)}}})})}),(0,a.jsx)("div",{id:"extension"}),(0,a.jsx)("div",{className:"memori-hidden-chat-layout--controls",children:o&&s&&n&&i?(0,a.jsx)(n,{...i}):!l&&r?(0,a.jsx)("div",{className:"memori-loading",children:(0,a.jsx)(u,{...r})}):(0,a.jsx)("div",{className:"memori-loading",children:(0,a.jsx)(Zl,{})})})]})]})]})};var hD=({Header:e,headerProps:t,Avatar:n,avatarProps:i,Chat:r,chatProps:o,StartPanel:s,startPanelProps:l,integrationStyle:c,integrationBackground:u,sessionId:d,hasUserActivatedSpeak:h,loading:p=!1,poweredBy:m})=>{const{state:f}=re(),g=f.currentArtifact;return(0,a.jsxs)(a.Fragment,{children:[c,u,(0,a.jsxs)(Zl,{className:"memori-spin--zoomed-full-body",spinning:p,children:[(0,a.jsx)("div",{className:"memori-chat-layout--header "+(f.isDrawerOpen?"memori-chat-layout--header-with-artifact":""),children:e&&t&&(0,a.jsx)(e,{...t})}),(0,a.jsxs)("div",{className:"memori--grid",children:[!f.isDrawerOpen&&(0,a.jsxs)("div",{className:"memori--grid-column memori--grid-column-left",children:[n&&i&&(0,a.jsx)(n,{chatProps:o,isZoomed:!0,...i}),(0,a.jsx)("div",{id:"extension"})]}),(0,a.jsx)("div",{className:"memori-chat-layout--main "+(g?"memori-chat-layout--main-with-artifact":""),children:(0,a.jsx)("div",{className:f.isFullscreen?"memori-chat-layout-controls-hide":"memori-chat-layout--controls "+(f.isDrawerOpen?"memori-chat-layout--controls-with-artifact":""),children:d&&h&&r&&o?(0,a.jsx)(r,{...o}):l?(0,a.jsx)(s,{...l}):null})}),m]})]})]})};const pD={IT:{MALE:"it-IT-DiegoNeural",FEMALE:"it-IT-ElsaNeural"},DE:{MALE:"de-DE-ConradNeural",FEMALE:"de-DE-KatjaNeural"},EN:{MALE:"en-GB-RyanNeural",FEMALE:"en-GB-SoniaNeural"},ES:{MALE:"es-ES-AlvaroNeural",FEMALE:"es-ES-ElviraNeural"},FR:{MALE:"fr-FR-HenriNeural",FEMALE:"fr-FR-DeniseNeural"},PT:{MALE:"pt-PT-DuarteNeural",FEMALE:"pt-PT-RaquelNeural"},UK:{MALE:"uk-UA-OstapNeural",FEMALE:"uk-UA-PolinaNeural"},RU:{MALE:"ru-RU-DmitryNeural",FEMALE:"ru-RU-SvetlanaNeural"},PL:{MALE:"pl-PL-MarekNeural",FEMALE:"pl-PL-AgnieszkaNeural"},FI:{MALE:"fi-FI-HarriNeural",FEMALE:"fi-FI-SelmaNeural"},EL:{MALE:"el-GR-NestorasNeural",FEMALE:"el-GR-AthinaNeural"},AR:{MALE:"ar-SA-HamedNeural",FEMALE:"ar-SA-ZariyahNeural"},ZH:{MALE:"zh-CN-YunxiNeural",FEMALE:"zh-CN-XiaoxiaoNeural"},JA:{MALE:"ja-JP-KeitaNeural",FEMALE:"ja-JP-NanamiNeural"}},mD={MALE:"en-US-GuyNeural",FEMALE:"en-US-JennyNeural"},fD={ALL:["alloy","echo","fable","onyx","nova","shimmer"],CHARACTERISTICS:{alloy:{gender:"NEUTRAL",tone:"BALANCED"},echo:{gender:"MALE",tone:"DEEP"},fable:{gender:"FEMALE",tone:"EXPRESSIVE"},onyx:{gender:"MALE",tone:"AUTHORITATIVE"},nova:{gender:"FEMALE",tone:"FRIENDLY"},shimmer:{gender:"FEMALE",tone:"BRIGHT"}},RECOMMENDED:{DEFAULT:{MALE:"onyx",FEMALE:"nova",NEUTRAL:"alloy"},IT:{MALE:"echo",FEMALE:"nova"},ES:{MALE:"echo",FEMALE:"shimmer"},FR:{MALE:"echo",FEMALE:"fable"},PT:{MALE:"onyx",FEMALE:"shimmer"},DE:{MALE:"onyx",FEMALE:"fable"},EN:{MALE:"echo",FEMALE:"nova"},ZH:{MALE:"echo",FEMALE:"shimmer"},JA:{MALE:"echo",FEMALE:"nova"},RU:{MALE:"onyx",FEMALE:"fable"}}},gD="alloy";fD.ALL;function vD(e,t="azure",n="FEMALE"){const i=(e||"EN").toUpperCase();if("openai"===t.toLowerCase()){return(fD.RECOMMENDED[i]||fD.RECOMMENDED.DEFAULT)[n]||fD.RECOMMENDED.DEFAULT[n]||gD}{const e=pD[i]||mD;return e[n]||e.FEMALE||mD.FEMALE}}const yD=async({operation:e="session_creation",baseUrl:t,userID:n,userName:i,tenant:r})=>{if(!n&&!i)throw new Error("Either userID or userName must be provided");const o=await fetch(`${t}/api/verify-tokens`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({operation:e,userID:n,userName:i,tenant:r})});if(!o.ok)throw new Error("Failed to fetch credits");return o.json()};function _D(e){return jE(BE(kE(GE(zE(UE(e))))))}c=o("85Hg2");function bD(e,t={},n=!1,i=!0,r=!0){const[o,a]=(0,c.useState)(!1),[s,l]=(0,c.useState)(VR("muteSpeaker",!i||!r||n)),{addViseme:u,resetVisemeQueue:d,startProcessing:h,stopProcessing:p}=HL(),[m,f]=(0,c.useState)(!1),g=e=>{const n=VR("muteSpeaker",!i);return e&&e.trim()&&!t.preview&&!n&&i},v=(0,c.useRef)(null),y=(0,c.useRef)(null),_=(0,c.useRef)(null),b=(0,c.useRef)(!1),x=(0,c.useRef)(!1),w=(0,c.useRef)(null),S=(0,c.useRef)(!0),E=(0,c.useRef)(null),A=(t.apiUrl,(0,c.useCallback)((e=>(d(),b.current=!1,!!(e&&e.length>0)&&(e.forEach((e=>{u(e.visemeId,e.audioOffset)})),b.current=!0,!0))),[u,d])),T=(0,c.useCallback)((()=>{if(!v.current)return null;const e={state:"running",onstatechange:null,get currentTime(){return v.current?v.current.currentTime:0}},t=()=>{e.state="suspended",e.onstatechange&&e.onstatechange.call(null,new Event("statechange"))},n=()=>{e.state="running",e.onstatechange&&e.onstatechange.call(null,new Event("statechange"))},i=()=>{e.state="closed",e.onstatechange&&e.onstatechange.call(null,new Event("statechange"))};v.current.addEventListener("pause",t),v.current.addEventListener("play",n),v.current.addEventListener("ended",i);return e.cleanup=()=>{v.current&&(v.current.removeEventListener("pause",t),v.current.removeEventListener("play",n),v.current.removeEventListener("ended",i))},e}),[]),I=(0,c.useCallback)((()=>{var e;w.current&&(clearTimeout(w.current),w.current=null),y.current&&y.current.cleanup&&y.current.cleanup(),y.current=null,p(),d(),(null===(e=v.current)||void 0===e?void 0:e.src)&&(URL.revokeObjectURL(v.current.src),v.current=null),E.current&&(E.current=null),b.current=!1}),[p,d]),M=(0,c.useCallback)((()=>{v.current&&(v.current.pause(),v.current.currentTime=0),E.current&&(E.current.pause(),E.current.currentTime=0,E.current=null),a(!1),I(),x.current=!1;const e=new CustomEvent("MemoriAudioEnded");document.dispatchEvent(e)}),[I]),C=(0,c.useCallback)((()=>{const e=new CustomEvent("MemoriEndSpeak");document.dispatchEvent(e),t.continuousSpeech&&t.onEndSpeakStartListen&&t.onEndSpeakStartListen()}),[t.continuousSpeech,t.onEndSpeakStartListen]),N=(0,c.useCallback)(((e,t=800)=>{if(e.length<=t)return[e];const n=e.split(/[.!?]+/).filter((e=>e.trim().length>0)),i=[];let r="";for(const e of n){const n=e.trim()+".";(r+n).length>t&&r.length>0?(i.push(r.trim()),r=n):r+=n+" "}return r.trim().length>0&&i.push(r.trim()),i}),[]),O=(0,c.useCallback)((async n=>{const i=await fetch(t.apiUrl||"/api/tts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:n,tenant:e.tenant||"www.aisuru.com",voice:e.voice,model:e.model||"tts-1",region:e.region,provider:e.provider,includeVisemes:"ZOOMED_FULL_BODY"===e.layout||"FULLPAGE"===e.layout||"DEFAULT"===e.layout||"TOTEM"===e.layout})});if(!i.ok){const e=await i.json().catch((()=>({})));throw new Error(e.error||`API error: ${i.status}`)}const r=await i.blob(),o=URL.createObjectURL(r);if(!g(n))return void URL.revokeObjectURL(o);if(!x.current||!S.current)return void URL.revokeObjectURL(o);let a=!1;const s=i.headers.get("X-Viseme-Data");if(s)try{const e=JSON.parse(s);a=A(e)}catch(e){console.error("[useTTS] Error parsing viseme data:",e)}if(!x.current||!S.current)return void URL.revokeObjectURL(o);const l=new Audio;return l.preload="auto",l.src=o,v.current=l,E.current=l,y.current&&y.current.cleanup&&(y.current.cleanup(),y.current=null),a&&(y.current=T()),new Promise(((e,t)=>{var n;if(!v.current)return void t(new Error("Audio element not found"));v.current.addEventListener("canplaythrough",(async()=>{var n,i;try{if(!x.current||!S.current)return URL.revokeObjectURL(o),void e();try{a&&y.current&&h(y.current),await(null===(n=v.current)||void 0===n?void 0:n.play())}catch(e){await new Promise((e=>setTimeout(e,100))),a&&y.current&&h(y.current),await(null===(i=v.current)||void 0===i?void 0:i.play())}}catch(e){URL.revokeObjectURL(o),t(e)}}),{once:!0}),v.current.onended=()=>{URL.revokeObjectURL(o),E.current===l&&(E.current=null),e()},v.current.onerror=()=>{URL.revokeObjectURL(o),E.current===l&&(E.current=null),t(new Error("Audio playback failed"))},null===(n=v.current)||void 0===n||n.load()}))}),[e,t,A,T,h,x,S,s,i]),R=(0,c.useCallback)((async e=>{if(S.current){if(!g(e))return m||f(!0),void C();if(o&&M(),!x.current){x.current=!0,m||f(!0);try{a(!0);const t=N(e,500);for(let e=0;e<t.length&&(x.current&&S.current);e++)await O(t[e]),e<t.length-1&&x.current&&S.current&&await new Promise((e=>setTimeout(e,300)));a(!1),x.current=!1,C();const n=new CustomEvent("MemoriAudioEnded");document.dispatchEvent(n)}catch(e){console.error("[speak] Error during playback:",e),a(!1),x.current=!1,w.current&&(clearTimeout(w.current),w.current=null),I(),C();const t=new CustomEvent("MemoriAudioEnded");document.dispatchEvent(t)}}}}),[e,s,t.preview,m,M,I,N,O,C,o,i]),L=(0,c.useCallback)((e=>{const t=void 0!==e?e:!s;l(t),WR("muteSpeaker",t),t&&o&&M()}),[s,o,M,d,p]);return(0,c.useEffect)((()=>{"undefined"!=typeof window&&(window.memoriSpeaking=o)}),[o]),(0,c.useEffect)((()=>{if("undefined"!=typeof window)return _.current=window.speak,window.speak=R,()=>{window.speak=_.current}}),[R]),(0,c.useEffect)((()=>()=>{x.current=!1,S.current=!1,M()}),[M]),{speak:R,stop:M,isPlaying:o,speakerMuted:s,toggleMute:L,hasUserActivatedSpeak:m,setHasUserActivatedSpeak:f}}c=o("85Hg2");var xD,wD=({className:e,title:t})=>(0,a.jsx)("svg",{...t?{}:{"aria-hidden":"true"},focusable:"false",width:"24",height:"24",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",className:e,"aria-label":t,children:(0,a.jsx)("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 13.5997 2.37562 15.1116 3.04346 16.4525C3.22094 16.8088 3.28001 17.2161 3.17712 17.6006L2.58151 19.8267C2.32295 20.793 3.20701 21.677 4.17335 21.4185L6.39939 20.8229C6.78393 20.72 7.19121 20.7791 7.54753 20.9565C8.88837 21.6244 10.4003 22 12 22Z",stroke:"currentColor","stroke-width":"1.5"})}),SD={};SD=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var ED,AD={},TD={};ED="object"==typeof n&&n&&n.Object===Object&&n;var ID="object"==typeof self&&self&&self.Object===Object&&self,MD=ED||ID||Function("return this")();AD=function(){return TD.Date.now()};var CD={},ND={},OD={},RD=/\s/;OD=function(e){for(var t=e.length;t--&&RD.test(e.charAt(t)););return t};var LD=/^\s+/;ND=function(e){return e?e.slice(0,OD(e)+1).replace(LD,""):e};var PD,DD={},kD={};PD=(TD=MD).Symbol;var BD={},FD=Object.prototype,UD=FD.hasOwnProperty,zD=FD.toString,GD=PD?PD.toStringTag:void 0;BD=function(e){var t=UD.call(e,GD),n=e[GD];try{e[GD]=void 0;var i=!0}catch(e){}var r=zD.call(e);return i&&(t?e[GD]=n:delete e[GD]),r};var jD={},HD=Object.prototype.toString;jD=function(e){return HD.call(e)};var VD=PD?PD.toStringTag:void 0;kD=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":VD&&VD in Object(e)?BD(e):jD(e)};var WD={};WD=function(e){return null!=e&&"object"==typeof e};DD=function(e){return"symbol"==typeof e||WD(e)&&"[object Symbol]"==kD(e)};var qD=/^[-+]0x[0-9a-f]+$/i,$D=/^0b[01]+$/i,YD=/^0o[0-7]+$/i,JD=parseInt;CD=function(e){if("number"==typeof e)return e;if(DD(e))return NaN;if(SD(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=SD(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=ND(e);var n=$D.test(e);return n||YD.test(e)?JD(e.slice(2),n?2:8):qD.test(e)?NaN:+e};var ZD=Math.max,XD=Math.min;xD=function(e,t,n){var i,r,o,a,s,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=i,o=r;return i=r=void 0,c=t,a=e.apply(o,n)}function m(e){return c=e,s=setTimeout(g,t),u?p(e):a}function f(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function g(){var e=AD();if(f(e))return v(e);s=setTimeout(g,function(e){var n=t-(e-l);return d?XD(n,o-(e-c)):n}(e))}function v(e){return s=void 0,h&&i?p(e):(i=r=void 0,a)}function y(){var e=AD(),n=f(e);if(i=arguments,r=this,l=e,n){if(void 0===s)return m(l);if(d)return clearTimeout(s),s=setTimeout(g,t),p(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=CD(t)||0,SD(n)&&(u=!!n.leading,o=(d="maxWait"in n)?ZD(CD(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==s&&clearTimeout(s),c=0,i=l=r=s=void 0},y.flush=function(){return void 0===s?a:v(AD())},y};const KD=e=>{const t=e.filter((e=>e.inbound));if(0===t.length)return"";const n=["hello","hi","hey","good morning","good afternoon","good evening","thanks","thank you","thx","tnx","ty","thanks!","thank you!","ok","okay","k","yes","no","yep","nope","yeah","nah","good","great","nice","cool","awesome","perfect","excellent","bye","goodbye","see you","see ya","later","good night","how are you","how are you doing","what's up","sup","please","pls","sorry","excuse me","pardon","i see","i understand","got it","gotcha","understood","continue","go on","tell me more","more","next","start","begin","let's start","let's begin","help","can you help","i need help","test","testing","test message","?","??","???","!","!!","!!!","...","..",".","a","an","the","and","or","but","in","on","at","to","for","of","with","by","ciao","salve","buongiorno","buonasera","buonanotte","grazie","grazie mille","grazie!","grazie mille!","thx","tnx","ok","va bene","va bene così","perfetto","ottimo","bene","sì","si","no","certo","certamente","assolutamente","arrivederci","a presto","a dopo","ci vediamo","addio","come stai","come va","tutto bene","che succede","per favore","per piacere","scusa","scusami","mi dispiace","capisco","ho capito","capito","perfetto","continua","vai avanti","dimmi di più","altro","altro ancora","inizia","iniziamo","comincia","cominciamo","aiuto","puoi aiutarmi","ho bisogno di aiuto","test","prova","messaggio di prova","?","??","???","!","!!","!!!","...","..",".","un","una","il","la","gli","le","e","o","ma","in","su","a","per","di","con","da"],i=t.map(((e,t)=>{const i=GE(e.text||"");return{text:i,score:(e=>{const t=e.toLowerCase().trim();if(n.includes(t))return 0;const i=t.split(/\s+/).filter((e=>e.length>0)).length;if(i<3)return.1;if(t.length<5)return.1;let r=.5;return(/\?$/.test(t)||/^(what|how|why|when|where|who|which|can|could|would|will|do|does|did|is|are|was|were)/.test(t)||/^(cosa|come|perché|perche|quando|dove|chi|quale|quali|può|puo|potrebbe|vorrebbe|sarà|sara|fa|fai|fanno|è|e|sono|era|erano)/.test(t))&&(r+=.3),i>5&&(r+=.2),i>10&&(r+=.2),i>20&&(r-=.1),/\d/.test(t)&&(r+=.1),/[A-ZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞŸ][a-zàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ]+/.test(e)&&(r+=.1),Math.min(r,1)})(i),index:t,originalIndex:t}}));i.sort(((e,t)=>Math.abs(e.score-t.score)<.1?e.index-t.index:t.score-e.score));let r=i[0];if(r.score<.3){const e=i.find((e=>e.score>.1));e&&(r=e)}if(r.score<.2){const e=i.filter((e=>e.score>.1)).slice(0,3).sort(((e,t)=>e.index-t.index));if(e.length>1){const t=e.map((e=>e.text)).join(" - ").substring(0,80);return t.length>80?`${t}...`:t}}const o=r.text;if(o.length>100){const e=o.substring(0,100),t=e.lastIndexOf(" ");return t>70?`${e.substring(0,t)}...`:`${e}...`}return o},QD=(e,t)=>{const n=new Blob([e],{type:"text/plain"}),i=URL.createObjectURL(n),r=document.createElement("a");r.setAttribute("href",i),r.setAttribute("download",t),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)};var ek=({open:e,onClose:n,apiClient:i,sessionId:r,memori:o,resumeSession:s,baseUrl:l,apiUrl:u,history:d,loginToken:h,language:p,userLang:m,isMultilanguageEnabled:f=!1})=>{var g,v,y,_;const{t:b}=qe(),{getUserChatLogsByTokenPaged:x}=i.chatLogs,[w,S]=(`${b("write_and_speak.conversationStartedLabel")} ${new Intl.DateTimeFormat("it",{dateStyle:"short",timeStyle:"short"}).format(new Date)}\n\n`.concat(d.map((e=>`${e.fromUser?"YOU":o.name}: ${e.text}`)).join("\n")),(0,c.useState)([])),[E,A]=(0,c.useState)(null),[T,I]=(0,c.useState)(1),[M,C]=(0,c.useState)(0),[N,O]=(0,c.useState)(""),[R,L]=(0,c.useState)(!1),[P,D]=(0,c.useState)(null),[k,B]=(0,c.useState)("desc"),[F,U]=(0,c.useState)("all"),[z,G]=(0,c.useState)(0),[j,H]=(0,c.useState)(0),[V,W]=(0,c.useState)(!1),[q,$]=(0,c.useState)(!1),[Y,J]=(0,c.useState)(3),[Z,X]=(0,c.useState)(1),K=e=>`${e.getFullYear()}${String(e.getMonth()+1).padStart(2,"0")}${String(e.getDate()).padStart(2,"0")}${String(e.getHours()).padStart(2,"0")}${String(e.getMinutes()).padStart(2,"0")}${String(e.getSeconds()).padStart(2,"0")}${String(e.getMilliseconds()).padStart(3,"0")}`,Q=(0,c.useCallback)((async(e="all")=>{var t;if(!h)return void D(b("errorFetchingSession")||"Login token required to fetch chat history");const n=8*(T-1);let i;C(n),L(!0),D(null);let r={loginToken:h,memoriID:o.engineMemoriID,dateFrom:void 0,dateTo:void 0,from:n,howMany:8,minimumMessagesPerChat:0===Y?Z:Y};try{if("all"===e)i=await x(r);else{const{dateFrom:n,dateTo:o}=null!==(t=(e=>{if("today"===e){const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate()-1);return{dateFrom:K(t),dateTo:K(e)}}if("yesterday"===e){const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate()-1),n=new Date(t.getFullYear(),t.getMonth(),t.getDate()-2);return{dateFrom:K(n),dateTo:K(t)}}if("last_7_days"===e){const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate()-7);return{dateFrom:K(t),dateTo:K(e)}}if("last_30_days"===e){const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate()-30);return{dateFrom:K(t),dateTo:K(e)}}})(e))&&void 0!==t?t:{};i=await x({...r,dateFrom:null!=n?n:void 0,dateTo:null!=o?o:void 0})}const n=i;let o=n.chatLogs.sort(((e,t)=>{const n=Math.max(...e.lines.map((e=>new Date(e.timestamp).getTime()))),i=Math.max(...t.lines.map((e=>new Date(e.timestamp).getTime())));return"desc"===k?i-n:n-i}));p.toUpperCase()!==m.toUpperCase()&&f&&(o=await(async(e,t,n,i)=>{try{const i=await Promise.all(e.map((async e=>{const i=await Promise.all(e.lines.map((async e=>{if(!e.text)return e;try{const i=await eM(e.text,n,t);return{...e,originalText:e.text,text:i.text}}catch(t){return console.error("Error translating line:",t),e}})));return{...e,lines:i}})));return i}catch(t){return console.error("Error translating chat logs:",t),e}})(o,p,m)),S(o),G(n.count||o.length),H(Math.ceil((n.count||o.length)/8))}catch(e){D(b("errorFetchingSession")||"Error loading chat history"),console.error("Error fetching chat logs:",e)}finally{L(!1)}}),[h,o.engineMemoriID,T,k,u,Y,Z]);(0,c.useEffect)((()=>{const e=()=>{W(window.innerWidth<=768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),(0,c.useEffect)((()=>{e&&(I(1),C(0),$(!1),A(null))}),[e]),(0,c.useEffect)((()=>{e&&(I(1),C(0))}),[k,F,Y,Z,e]),(0,c.useEffect)((()=>{e&&T>0&&Q(F)}),[T,F,Y,Z,Q,e]);(0,c.useMemo)((()=>t(xD)((e=>O(e)),300)),[]);const ee=w,te=async()=>{E&&(s(E),n())},ne=e=>new Intl.DateTimeFormat(navigator.language,{dateStyle:"medium",timeStyle:"short"}).format(new Date(e));return(0,a.jsx)(tc,{className:"memori-chat-history-drawer",open:e,onClose:n,titleWithClosable:{title:b("write_and_speak.chatHistory")||"Chat History",actions:[{icon:(0,a.jsx)(hC,{}),visible:q,onClick:()=>{const e=`${o.name.replace(/\W+/g,"-")}-chat-${(new Date).toISOString().split("T")[0]}.txt`,t=(null==E?void 0:E.lines.map((e=>`${e.inbound?"YOU":o.name}: ${e.text}`)).join("\n").replaceAll(/<think.*?>(.*?)<\/think>/gs,"").replaceAll(/<document_attachment filename="([^"]+)" type="([^"]+)">([\s\S]*?)<\/document_attachment>/g,"").replaceAll(/<output.*?<\/output>/gis,"").replaceAll(/```markdown([^```]+)```/g,"$1").replaceAll("($","( $").replaceAll(":$",": $").replaceAll("\frac","\\frac").replaceAll("\beta","\\beta").replaceAll("cdot","\\cdot"))||"No chat history available";QD(t,e)}}],showClosable:!0},title:(0,a.jsx)("div",{className:"memori-chat-history-drawer--title-wrapper",style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},children:(0,a.jsx)("span",{children:b("write_and_speak.chatHistory")||"Chat History"})}),description:q?void 0:b("write_and_speak.chatHistoryDescription"),children:q?(()=>{if(!E)return null;const e=Math.max(...E.lines.map((e=>new Date(e.timestamp).getTime()))),t=ne(new Date(e).toISOString());return(0,a.jsxs)("div",{className:"memori-chat-history-drawer--detail-view",children:[(0,a.jsxs)("div",{className:"memori-chat-history-drawer--detail-view--header",children:[(0,a.jsx)(Xl,{className:"memori-chat-history-drawer--detail-view--back-button",onClick:()=>{$(!1),A(null)},icon:(0,a.jsx)(EC,{})}),(0,a.jsxs)("div",{className:"memori-chat-history-drawer--detail-view--header--title-wrapper",children:[(0,a.jsx)("div",{className:"memori-chat-history-drawer--detail-view--header--title",children:KD(E.lines)||"Chat-"+E.chatLogID.substring(0,4)}),(0,a.jsx)("div",{className:"memori-chat-history-drawer--detail-view--header--date",children:t})]})]}),(0,a.jsxs)("div",{className:"memori-chat-history-drawer--detail-view--content",children:[(0,a.jsx)("div",{className:"memori-chat-history-drawer--detail-view--messages",children:(0,a.jsx)(MC,{baseUrl:l,apiUrl:u,memoriTyping:!1,showTypingText:!1,showAIicon:!0,showTranslationOriginal:!1,showWhyThisAnswer:!1,showCopyButton:!1,isChatlogPanel:!0,showInputs:!1,history:E.lines.map((e=>({text:e.text,contextVars:e.contextVars,media:e.media,fromUser:e.inbound,timestamp:e.timestamp}))),memori:o,sessionID:r,pushMessage:()=>{},simulateUserPrompt:()=>{},setSendOnEnter:()=>{},attachmentsMenuOpen:void 0,setAttachmentsMenuOpen:()=>{},userMessage:"",onChangeUserMessage:()=>{},sendMessage:()=>{},startListening:()=>{},stopListening:()=>{},listening:!1,setEnableFocusChatInput:()=>{},stopAudio:()=>{},isHistoryView:!0},`${E.chatLogID}-${E.lines.length}`)}),(0,a.jsx)("div",{className:"memori-chat-history-drawer--detail-view--actions",children:(0,a.jsx)(Xl,{className:"memori-chat-history-drawer--detail-view--resume-button",primary:!0,onClick:te,children:(0,a.jsx)("div",{className:"memori-chat-history-drawer--detail-view--resume-button--content",children:(0,a.jsx)("span",{className:"memori-chat-history-drawer--detail-view--resume-button--text",children:b("write_and_speak.resumeButton")||"Resume chat"})})})})]})]})})():(0,a.jsxs)("div",{className:"memori-chat-history-drawer--content",children:[(0,a.jsxs)("div",{className:"memori-chat-history-drawer--toolbar",children:[(0,a.jsxs)("div",{className:"memori-chat-history-drawer--toolbar--min-messages-filter",children:[(0,a.jsx)(iD,{displayValue:0===Y?null!==(g=b("chatLogs.customMinimumMessages")||"Customize the number of messages")&&void 0!==g?g:"Customize the number of messages":1===Y?null!==(v=b("chatLogs.anyMessage")||"Any message")&&void 0!==v?v:"Any message":null!==(y=b("chatLogs.atLeast",{count:Y}))&&void 0!==y?y:`At least ${Y} messages`,placeholder:null!==(_=b("chatLogs.customMinimumMessages")||"Customize the number of messages")&&void 0!==_?_:"Customize the number of messages",value:Y,onChange:e=>{J(e)},className:"memori-chat-history-drawer--toolbar--min-messages-filter--select",options:[{value:1,label:b("chatLogs.anyMessage")||"Any message"},{value:2,label:b("chatLogs.atLeast2")||"At least 2 messages"},{value:3,label:b("chatLogs.atLeast3")||"At least 3 messages"},{value:5,label:b("chatLogs.atLeast5")||"At least 5 messages"},{value:10,label:b("chatLogs.atLeast10")||"At least 10 messages"},{value:15,label:b("chatLogs.atLeast15")||"At least 15 messages"},{value:20,label:b("chatLogs.atLeast20")||"At least 20 messages"},{value:0,label:b("chatLogs.customMinimumMessages")||"Customize the number of messages"}]}),0===Y&&(0,a.jsx)("input",{type:"number",min:1,value:Z,onChange:e=>{const t=parseInt(e.target.value,10);X(t)},style:{minWidth:50},className:"memori-chat-history-drawer--toolbar--min-messages-filter--input-number"})]}),(0,a.jsx)("div",{className:"memori-chat-history-drawer--toolbar--actions",children:(0,a.jsx)(iD,{options:[{label:b("all")||"All",value:"all"},{label:b("today")||"Today",value:"today"},{label:b("yesterday")||"Yesterday",value:"yesterday"},{label:b("last_7_days")||"Last 7 days",value:"last_7_days"},{label:b("last_30_days")||"Last 30 days",value:"last_30_days"}],value:b(F)||"All",className:"memori-chat-history-drawer--toolbar--actions--select",onChange:e=>{U(e),I(1)}})})]}),R?(0,a.jsxs)("div",{className:"memori-chat-history-drawer--loading",children:[(0,a.jsx)(Zl,{spinning:!0,primary:!0,className:"memori-chat-history-drawer--loading--spinner"}),(0,a.jsx)("p",{className:"memori-chat-history-drawer--loading--text",children:b("write_and_speak.loadingChatHistory")||"Loading chat history..."})]}):P?(0,a.jsx)("div",{className:"memori-chat-history-drawer--error",children:(0,a.jsx)("p",{children:P})}):w.length?0===w.length?(0,a.jsx)("div",{className:"memori-chat-history-drawer--no-results",children:(0,a.jsx)("p",{children:b("write_and_speak.noResultsFound",{searchText:N||""})||"No results found"})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("ul",{className:"memori-chat-history-drawer--list",children:ee.map((e=>{const t=Math.max(...e.lines.map((e=>new Date(e.timestamp).getTime())));return(0,a.jsx)(nM,{hoverable:(null==e?void 0:e.sessionID)!==r,onClick:async()=>{if((null==e?void 0:e.sessionID)!==r){if((null==E?void 0:E.chatLogID)===e.chatLogID)return A(null),void(V&&$(!1));A(e),$(!0)}},className:`memori-chat-history-drawer--card ${(null==E?void 0:E.chatLogID)===e.chatLogID?"memori-chat-history-drawer--card--selected":""} ${(null==e?void 0:e.sessionID)===r?"memori-chat-history-drawer--card--disabled":"memori-chat-history-drawer--card--hoverable"}`,children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"memori-chat-history-drawer--card--header",children:(0,a.jsx)("div",{className:"memori-chat-history-drawer--card--header--content",children:(0,a.jsx)("div",{className:"memori-chat-history-drawer--card--header--info",children:(0,a.jsxs)("div",{className:"memori-chat-history-drawer--card--header--title-wrapper",children:[(0,a.jsx)(Tl.Title,{as:"h3",className:"memori-chat-history-drawer--card--header--title",children:KD(e.lines)||"Chat-"+e.chatLogID.substring(0,4)}),e.boardOfExperts&&(0,a.jsx)("div",{className:"memori-chat-history-drawer--card--header--badge",children:"BOE"})]})})})}),(0,a.jsxs)("div",{className:"memori-chat-history-drawer--card--header--meta",children:[(0,a.jsx)("time",{className:"memori-chat-history-drawer--card--header--meta--time",dateTime:new Date(t).toISOString(),children:ne(new Date(t).toISOString())}),e.lines.some((e=>e.media&&e.media.filter((e=>"text/html"!==e.mimeType&&"text/plain"!==e.mimeType)).length>0))&&(0,a.jsxs)("span",{className:"memori-chat-history-drawer--card--header--meta--messages",children:[(0,a.jsx)("svg",{className:"memori-chat-history-drawer--card--header--meta--icon",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})}),e.lines.reduce(((e,t)=>{var n;return e+((null===(n=t.media)||void 0===n?void 0:n.filter((e=>"text/html"!==e.mimeType&&"text/plain"!==e.mimeType)).length)||0)}),0)]}),(0,a.jsxs)("span",{className:"memori-chat-history-drawer--card--header--meta--messages",children:[(0,a.jsx)("svg",{className:"memori-chat-history-drawer--card--header--meta--icon",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"})}),e.lines.length]}),!V&&(0,a.jsx)("div",{className:"memori-chat-history-drawer--card--content--header",children:(0,a.jsx)(Xl,{className:"memori-chat-history-drawer--card--content--export-button",onClick:t=>((e,t)=>{t.stopPropagation();const n=`${b("write_and_speak.conversationStartedLabel")} ${new Intl.DateTimeFormat(navigator.language,{dateStyle:"short",timeStyle:"short"}).format(new Date)}\n\n`.concat(e.lines.map((e=>`${e.inbound?"YOU":o.name}: ${e.text}`)).join("\n"));QD(n,`${o.name.replace(/\W+/g,"-")}-chat-${e.chatLogID.substring(0,4)}.txt`)})(e,t),disabled:(null==e?void 0:e.sessionID)===r,children:(0,a.jsx)("div",{className:"memori-chat-history-drawer--card--content--export-button--content",children:(0,a.jsx)(hC,{className:"memori-chat-history-drawer--card--content--export-button--icon"})})})})]})]})},e.chatLogID)}))}),j>1&&(0,a.jsxs)("div",{className:"memori-chat-history-drawer--pagination",children:[(0,a.jsx)(Xl,{primary:!0,onClick:()=>{I((e=>Math.max(1,e-1)))},disabled:1===T,className:"memori-chat-history-drawer--pagination--button",children:b("previous")||"Previous"}),(0,a.jsx)("span",{className:"memori-chat-history-drawer--pagination--info",children:b("write_and_speak.page",{current:T,total:j})}),(0,a.jsx)(Xl,{primary:!0,onClick:()=>{I((e=>Math.min(j,e+1)))},disabled:T===j,className:"memori-chat-history-drawer--pagination--button",children:b("next")||"Next"})]})]}):(0,a.jsxs)("div",{className:"memori-chat-history-drawer--empty",children:[(0,a.jsx)(wD,{className:"memori-chat-history-drawer--empty--icon"}),(0,a.jsx)("p",{className:"memori-chat-history-drawer--empty--text",children:b("write_and_speak.noChatHistoryAvailable")||"No chat history available"})]})]})})};c=o("85Hg2");async function tk(e){return new Promise(((t,n)=>{const i=window.AudioContext||window.webkitAudioContext;if(!i)return void n(new Error("AudioContext not supported in this browser"));const r=new i,o=new FileReader;o.onload=async()=>{try{const e=o.result;"suspended"===r.state&&await r.resume();const n=function(e){const t=e.length,n=e.sampleRate,i=e.numberOfChannels,r=new ArrayBuffer(44+t*i*2),o=new DataView(r),a=(e,t)=>{for(let n=0;n<t.length;n++)o.setUint8(e+n,t.charCodeAt(n))};a(0,"RIFF"),o.setUint32(4,36+t*i*2,!0),a(8,"WAVE"),a(12,"fmt "),o.setUint32(16,16,!0),o.setUint16(20,1,!0),o.setUint16(22,i,!0),o.setUint32(24,n,!0),o.setUint32(28,n*i*2,!0),o.setUint16(32,2*i,!0),o.setUint16(34,16,!0),a(36,"data"),o.setUint32(40,t*i*2,!0);let s=44;for(let n=0;n<t;n++)for(let t=0;t<i;t++){const i=Math.max(-1,Math.min(1,e.getChannelData(t)[n]));o.setInt16(s,i<0?32768*i:32767*i,!0),s+=2}return new Blob([r],{type:"audio/wav"})}(await r.decodeAudioData(e));await r.close(),t(n)}catch(e){n(e)}},o.onerror=()=>{n(new Error("Failed to read audio file"))},o.readAsArrayBuffer(e)}))}function nk(e,t,n={},i=!0){const[r,o]=(0,c.useState)("idle"),[a,s]=(0,c.useState)(VR("muteMicrophone",!i)),[l,u]=(0,c.useState)(!1),[d,h]=(0,c.useState)(null),[p,m]=(0,c.useState)(!1),f=(0,c.useRef)(null),g=(0,c.useRef)(null),v=(0,c.useRef)([]),y=(0,c.useRef)(!1),_=(0,c.useRef)(!0),b=n.apiUrl||"/api/stt",x=(0,c.useCallback)((async()=>{try{if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw new Error("Media recording is not supported in this browser");const i=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0,sampleRate:16e3}});g.current=i;let r="";const a=["audio/mp4","audio/webm;codecs=opus","audio/webm","audio/ogg;codecs=opus","audio/wav"];for(const e of a)if(MediaRecorder.isTypeSupported(e)){r=e;break}const s=new MediaRecorder(i,r?{mimeType:r}:{});return s.ondataavailable=e=>{e.data.size>0&&v.current.push(e.data)},s.onstop=async()=>{o("processing"),m(!1);try{if(0===v.current.length)throw new Error("No audio data recorded");let i=new Blob(v.current,{type:s.mimeType});if(0===i.size)throw new Error("Recorded audio is empty");if("azure"===e.provider)try{i=await tk(i)}catch(e){throw new Error("Failed to convert audio to WAV format for Azure")}const r=await w(i);r.text&&r.text.trim().length>0&&(t&&t(r.text),h(r),n.onTranscriptionComplete&&n.onTranscriptionComplete(r)),o("idle")}catch(e){const t=e instanceof Error?e:new Error(String(e));o("error"),n.onError&&n.onError(t)}finally{v.current=[],y.current=!1}},s.onerror=()=>{const e=new Error("Recording failed");o("error"),y.current=!1,n.onError&&n.onError(e)},f.current=s,!0}catch(e){const t=e instanceof Error?e:new Error("Failed to access microphone");return o("error"),n.onError&&n.onError(t),!1}}),[e.provider,n]),w=(0,c.useCallback)((async t=>{var n;const i=new FormData;let r="webm";"azure"===e.provider?r="wav":(null===(n=f.current)||void 0===n?void 0:n.mimeType)&&(f.current.mimeType.includes("webm")?r="webm":f.current.mimeType.includes("mp4")?r="mp4":f.current.mimeType.includes("ogg")&&(r="ogg")),i.append("audio",t,`recording.${r}`),i.append("provider",e.provider),i.append("tenant",e.tenant||"www.aisuru.com"),e.language&&i.append("language",e.language),e.model&&i.append("model",e.model),e.region&&i.append("region",e.region);const o=await fetch(b,{method:"POST",body:i});if(!o.ok){const e=await o.json().catch((()=>({})));throw new Error(e.error||`API error: ${o.status}`)}const a=await o.json();if(!a.success||!a.result)throw new Error("Invalid response from transcription service");return a.result}),[e,b]),S=(0,c.useCallback)((async()=>{if(!a&&"recording"!==r){l||u(!0);try{if(o("recording"),!f.current){if(!await x())return}v.current=[],y.current=!0,f.current&&"inactive"===f.current.state&&(f.current.start(),m(!0))}catch(e){const t=e instanceof Error?e:new Error("Failed to start recording");o("error"),y.current=!1,n.onError&&n.onError(t)}}}),[a,r,l,x,n]),E=(0,c.useCallback)((()=>{if(y.current)try{m(!1),f.current&&"recording"===f.current.state&&f.current.stop()}catch(e){const t=e instanceof Error?e:new Error("Failed to stop recording");o("error"),y.current=!1,n.onError&&n.onError(t)}}),[r,n]),A=(0,c.useCallback)((async()=>{"recording"===r?E():"idle"===r&&await S()}),[r,S,E]),T=(0,c.useCallback)((e=>{const t=void 0!==e?e:!a;s(t),t&&"recording"===r&&E()}),[a,r,E]),I=(0,c.useCallback)((()=>{y.current=!1,f.current&&("recording"===f.current.state&&f.current.stop(),f.current=null),g.current&&(g.current.getTracks().forEach((e=>e.stop())),g.current=null),v.current=[],m(!1),o("idle")}),[]);return(0,c.useEffect)((()=>()=>{_.current=!1,I()}),[I]),(0,c.useEffect)((()=>{"undefined"!=typeof window&&(window.memoriListening=p)}),[p]),{recordingState:r,microphoneMuted:a,hasUserActivatedRecord:l,lastTranscription:d,isListening:p,startRecording:S,stopRecording:E,toggleRecording:A,toggleMute:T,transcribeAudio:w,setHasUserActivatedRecord:u,cleanup:I}}const ik=(e,t=!0,n=!1,i,r=!1,o=!1)=>{const a=new CustomEvent("MemoriTextEntered",{detail:{text:e,waitForPrevious:t,hidden:n,typingText:i,useLoaderTextAsMsg:r,hasBatchQueued:o}});document.dispatchEvent(a);window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&setTimeout((()=>{document.dispatchEvent(new CustomEvent("MemoriEndSpeak"))}),300)};let rk,ok;window.getMemoriState=e=>{var t,n,i,r,o;let a=e?document.querySelector(`.memori-widget[data-memori-integration="${e}"]`)||(null===(n=null===(t=document.querySelector("memori-client"))||void 0===t?void 0:t.shadowRoot)||void 0===n?void 0:n.querySelector(".memori-widget[data-memori-integration]")):document.querySelector(".memori-widget")||(null===(r=null===(i=document.querySelector("memori-client"))||void 0===i?void 0:i.shadowRoot)||void 0===r?void 0:r.querySelector(".memori-widget"));if(!a)return null;let s=null===(o=a.dataset)||void 0===o?void 0:o.memoriEngineState;return s?{...JSON.parse(s),loginToken:VR("loginToken",void 0)}:null},window.typeMessage=ik,window.typeMessageHidden=(e,t=!0,n,i=!1,r=!1)=>ik(e,t,!0,n,i,r),window.typeBatchMessages=e=>{function t(){var e,t,n,i;null===(e=document.querySelector("fieldset#chat-fieldset"))||void 0===e||e.setAttribute("disabled","");const r="opacity: 0.5; touch-action: none; pointer-events: none;";null===(t=document.querySelector("textarea.memori-chat-textarea--input"))||void 0===t||t.setAttribute("style",r),null===(n=document.querySelector("button.memori-chat-inputs--send"))||void 0===n||n.setAttribute("style",r),null===(i=document.querySelector("button.memori-chat-inputs--mic"))||void 0===i||i.setAttribute("style",r)}function n(){var e,t,n,i;null===(e=document.querySelector("fieldset#chat-fieldset"))||void 0===e||e.removeAttribute("disabled"),null===(t=document.querySelector("textarea.memori-chat-textarea--input"))||void 0===t||t.removeAttribute("style"),null===(n=document.querySelector("button.memori-chat-inputs--send"))||void 0===n||n.removeAttribute("style"),null===(i=document.querySelector("button.memori-chat-inputs--mic"))||void 0===i||i.removeAttribute("style")}function i(){var e;return!!(null===(e=document.querySelector("fieldset#chat-fieldset"))||void 0===e?void 0:e.hasAttribute("disabled"))}const r=window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")&&/iPad|iPhone|iPod/.test(navigator.userAgent),o=function*(){yield*e}();t();const a=()=>{const e=o.next(),s=e.value;if(s){i()||t();let o=s.waitForPrevious;r&&(o=!1),ik(s.message,o,s.hidden,s.typingText,s.useLoaderTextAsMsg,!e.done),r&&setTimeout((()=>{document.dispatchEvent(new CustomEvent("MemoriEndSpeak")),n()}),3e3)}else i()&&n();if(e.done)return document.removeEventListener("MemoriEndSpeak",a),void(i()&&n())};document.addEventListener("MemoriEndSpeak",a),a()};var ak=({memori:e,memoriConfigs:n,ownerUserID:i,ownerUserName:r,tenantID:o,memoriLang:s,multilingual:l,integration:u,layout:d,customLayout:h,showShare:p,preview:m=!1,embed:f=!1,showCopyButton:g=!0,showTranslationOriginal:v=!1,showInputs:y=!0,showDates:_=!1,showContextPerLine:b=!1,showSettings:x,showTypingText:w=!1,showClear:S=!1,showLogin:E=!1,showUpload:A,showOnlyLastMessages:T,showChatHistory:I,showReasoning:M,height:C="100vh",secret:N,baseUrl:O="https://aisuru-staging.aclambda.online",apiURL:R="https://backend-staging.memori.ai",engineURL:L="https://engine-staging.memori.ai",initialContextVars:P,initialQuestion:D,ttsProvider:k,ogImage:B,sessionID:F,tenant:U,personification:z,authToken:G,enableAudio:j,defaultSpeakerActive:H=!0,disableTextEnteredEvents:V=!1,onStateChange:W,additionalInfo:q,additionalSettings:$,customMediaRenderer:Y,userAvatar:J,__WEBCOMPONENT__:Z=!1,useMathFormatting:X=!1,autoStart:K=!1,applyVarsToRoot:Q=!1,showFunctionCache:ee=!1,maxTotalMessagePayload:ne,maxTextareaCharacters:ie})=>{var re,oe,ae,le,ce,de,he,pe,me,fe,ge,ve,ye,_e,be,xe,we,Se,Ee,Ae,Te,Ie,Me,Ce,Ne,Oe,Re,Le,Pe,De,ke,Be,Fe,Ue,ze,Ge,je,He,Ve,We,Je;const{t:Ze,i18n:Xe}=qe(),[Ke,Qe]=(0,c.useState)(!1);(0,c.useEffect)((()=>{Qe(!0)}),[]);const et=te(R,L),{initSession:tt,deleteSession:nt,postTextEnteredEvent:it,postPlaceChangedEvent:rt,postDateChangedEvent:ot,postTimeoutEvent:at,postTagChangedEvent:st,getSession:lt,getExpertReferences:ct,getSessionChatLogs:ut}=et,[dt,ht]=(0,c.useState)(!1),[pt,mt]=(0,c.useState)(!0),[ft,gt]=(0,c.useState)(null!==(re=null==q?void 0:q.loginToken)&&void 0!==re?re:G),[vt,yt]=(0,c.useState)({avatarURL:"string"==typeof J?J:void 0});(0,c.useEffect)((()=>{ft&&!(null==vt?void 0:vt.userID)&&(E||e.requireLoginToken)&&et.backend.pwlGetCurrentUser(ft).then((({user:e,resultCode:t})=>{e&&0===t?(yt(e),WR("loginToken",ft),!Bn&&e.birthDate&&(Fn(e.birthDate),WR("birthDate",e.birthDate))):qR("loginToken")}))}),[ft,null==vt?void 0:vt.userID]);const[_t,bt]=(0,c.useState)(!1),[xt,wt]=(0,c.useState)(!1),[St,Et]=(0,c.useState)(!1),At=(null===(le=null===(ae=null===(oe=e.culture)||void 0===oe?void 0:oe.split("-"))||void 0===ae?void 0:ae[0])||void 0===le?void 0:le.toUpperCase())||(null===(pe=null===(he=null===(de=null===(ce=null==n?void 0:n.find((t=>t.memoriConfigID===e.memoriConfigurationID)))||void 0===ce?void 0:ce.culture)||void 0===de?void 0:de.split("-"))||void 0===he?void 0:he[0])||void 0===pe?void 0:pe.toUpperCase()),Tt=(null==u?void 0:u.customData)?JSON.parse(u.customData):null,It=void 0!==l?l:!!(null==Tt?void 0:Tt.multilanguage),[Mt,Ct]=(null==Tt||Tt.forcedTimeout,(0,c.useState)(null!==(ve=null!==(ge=null!==(fe=null!==(me=null!=s?s:null==Tt?void 0:Tt.lang)&&void 0!==me?me:At)&&void 0!==fe?fe:null==Tt?void 0:Tt.uiLang)&&void 0!==ge?ge:Xe.language)&&void 0!==ve?ve:"IT")),Nt=void 0!==X?X:!!(null==Tt?void 0:Tt.useMathFormatting);(0,c.useEffect)((()=>{Nt&&WE()}),[Nt]),(0,c.useEffect)((()=>{It&&Mt&&kI.includes(Mt.toLowerCase())&&Xe.changeLanguage(Mt.toLowerCase())}),[Mt]);const[Ot,Rt]=(0,c.useState)(!1),[Lt,Pt]=(0,c.useState)(!1),[Dt,kt]=(0,c.useState)(),Bt=("string"==typeof d?d:"string"==typeof(null==Tt?void 0:Tt.layout)?Tt.layout:null===(ye=null==Tt?void 0:Tt.layout)||void 0===ye?void 0:ye.name)||"DEFAULT",Ft="object"==typeof(null==Tt?void 0:Tt.layout)&&null!==(null==Tt?void 0:Tt.layout)&&(null===(be=null===(_e=null==Tt?void 0:Tt.layout)||void 0===_e?void 0:_e.piiDetection)||void 0===be?void 0:be.enabled)?Tt.layout.piiDetection:void 0,Ut=null===(xe=null!=j?j:null==Tt?void 0:Tt.enableAudio)||void 0===xe||xe,[zt,Gt]=(0,c.useState)(!1),[jt,Ht]=(0,c.useState)(!1),[Vt,Wt]=(0,c.useState)(!1),[qt,$t]=(0,c.useState)(!1),[Yt,Jt]=(0,c.useState)(!1),[Zt,Xt]=(0,c.useState)(!1),[Kt,Qt]=(0,c.useState)(!1),[en,tn]=(0,c.useState)(!1),[nn,rn]=(0,c.useState)(2),[on,an]=(0,c.useState)("center"),[sn,ln]=(0,c.useState)(!1),[cn,un]=(0,c.useState)(null),[dn,hn]=(0,c.useState)(!1),pn=(0,c.useRef)(null),[mn,fn]=(0,c.useState)(!1);(0,c.useEffect)((()=>{fn(!!pn.current)}),[pn.current]),(0,c.useEffect)((()=>{var e;let t="bottom",n=VR("microphoneMode","HOLD_TO_TALK");window.innerWidth<=768?(t="bottom",n="HOLD_TO_TALK"):t=window.matchMedia("(orientation: portrait)").matches||window.innerHeight>window.innerWidth?"center":"bottom",tn(!li&&"CONTINUOUS"===n),rn(VR("continuousSpeechTimeout",2)),an(VR("controlsPosition",t)),un(VR("avatarType","avatar3d")),hn(VR("hideEmissions",!1)),(null==q?void 0:q.loginToken)||G||(gt(VR("loginToken",void 0)),ok=VR("loginToken",void 0),Fn(VR("birthDate",void 0))),null===(e=null!=j?j:null==Tt?void 0:Tt.enableAudio)||void 0===e||e||WR("muteSpeaker",!0)}),[]),(0,c.useEffect)((()=>{var e;null===(e=null!=j?j:null==Tt?void 0:Tt.enableAudio)||void 0===e||e||WR("muteSpeaker",!0)}),[j,null==Tt?void 0:Tt.enableAudio]);const[gn,vn]=(0,c.useState)(N),[yn,_n]=(0,c.useState)(),[bn,xn]=(0,c.useState)(null),[wn,Sn]=(0,c.useState)(),En=async(t,n)=>{var i;const r=null!=n?n:jn;if(t&&r&&e.needsPosition){const{currentState:e,...n}=await rt({sessionId:r,placeName:t.placeName,latitude:t.latitude,longitude:t.longitude,uncertaintyKm:null!==(i=t.uncertainty)&&void 0!==i?i:0});e&&0===n.resultCode&&Wn((t=>{var n;return{...t,...e,hints:(null===(n=e.hints)||void 0===n?void 0:n.length)?e.hints:null==t?void 0:t.hints}}))}};(0,c.useEffect)((()=>{if(e.needsPosition){const e=VR("position",void 0);e&&Sn(e)}}),[e.needsPosition]);const[An,Tn]=(0,c.useState)(""),[In,Mn]=(0,c.useState)(!1),[Cn,Nn]=(0,c.useState)([]),On=e=>{Nn((t=>{var n,i;return[...t,{...e,media:null!==(i=null===(n=e.media)||void 0===n?void 0:n.filter((e=>{var t;return!("text/javascript"===e.mimeType&&(null===(t=e.properties)||void 0===t?void 0:t.executable))})))&&void 0!==i?i:[]}]}))},[Rn,Ln]=(0,c.useState)(void 0),Pn=async(t,n,i,r=!0,o,a=!1,s,l=!1,c=!1)=>{var u,d,h,p,m;const f=i||jn||(null===(u=window.getMemoriState())||void 0===u?void 0:u.sessionID);if(!f||!(null==t?void 0:t.length))return;let g=t;if(!a&&r&&It&&Mt.toUpperCase()!==At.toUpperCase()){g=(await eM(t,At,Mt)).text}const v=null==n?void 0:n.filter((e=>{var t;return"document"===e.type&&(null===(t=e.properties)||void 0===t?void 0:t.isAttachedFile)}));if(v&&v.length>0){g=g+" "+v.map((e=>e.content)).join(" ")}if(null==Ft?void 0:Ft.enabled){const e=ue(g,Ft,(null==Mt?void 0:Mt.toLowerCase())||"en");if(e.matched&&e.errorText)return a||On({text:t,translatedText:o,fromUser:!0,media:null!=n?n:[],initial:jn?!!i&&i!==jn:!!i}),void On({text:e.errorText,emitter:"system",fromUser:!1,initial:!1,contextVars:{},date:(new Date).toISOString()})}a||On({text:t,translatedText:o,fromUser:!0,media:null!=n?n:[],initial:jn?!!i&&i!==jn:!!i}),Pt(!0),kt(s);let y=!1;try{const{currentState:i,...r}=await it({sessionId:f,text:g});if(0===r.resultCode&&i){Ln(void 0);const e=l&&s?s:null!==(d=i.emission)&&void 0!==d?d:null==Vn?void 0:Vn.emission;Mt.toLowerCase()!==At.toLowerCase()&&e&&It?(i.emission=e,Dn(i,Mt,g).then((e=>{let t=e.translatedEmission||e.emission;t&&hi(t)&&gi(t)}))):(qn({...i,emission:e}),e&&(On({text:e,emitter:i.emitter,media:null!==(h=i.emittedMedia)&&void 0!==h?h:i.media,fromUser:!1,questionAnswered:g,generatedByAI:!!i.completion,contextVars:i.contextVars,date:i.currentDate,placeName:i.currentPlaceName,placeLatitude:i.currentLatitude,placeLongitude:i.currentLongitude,placeUncertaintyKm:i.currentUncertaintyKm,tag:i.currentTag,memoryTags:i.memoryTags}),e&&hi(e)&&gi(e)))}else if(404===r.resultCode)Nn((e=>[...e.slice(0,e.length-1)])),Yn(!0,gn||e.secretToken,yn,void 0,void 0,{LANG:Mt,PATHNAME:window.location.pathname,ROUTE:(null===(m=null===(p=window.location.pathname)||void 0===p?void 0:p.split("/"))||void 0===m?void 0:m.pop())||"",...P||{}},D,void 0,void 0,void 0,void 0,!0).then((e=>{console.info("session timeout"),(null==e?void 0:e.sessionID)&&setTimeout((()=>{Pn(t,n,null==e?void 0:e.sessionID)}),500)}));else{if(500!==r.resultCode||!r.resultMessage)return console.warn("[SEND_MESSAGE]",r),Promise.reject(r);Nn((e=>[...e,{text:"Error: "+r.resultMessage,emitter:"system",fromUser:!1,initial:!1,contextVars:{},date:(new Date).toISOString()}]))}}catch(e){console.log("error",e),console.error(e),y=!0,kt(void 0),Pt(!1)}c||(kt(void 0),Pt(!1))},Dn=async(e,t,n,i=!1)=>{var r,o,a,s,l,c;const u=null!==(r=null==e?void 0:e.emission)&&void 0!==r?r:null==Vn?void 0:Vn.emission;let d={...e},h=null;if(u&&At.toUpperCase()!==t.toUpperCase()&&It&&!i)try{const i=await eM(u,t,At);if(e.hints&&e.hints.length>0){const n=await Promise.all((null!==(a=e.hints)&&void 0!==a?a:[]).map((async e=>{var n;const i=await eM(e,t,At);return{text:null!==(n=null==i?void 0:i.text)&&void 0!==n?n:e,originalText:e}})));d={...e,emission:i.text,translatedHints:n}}else d={...e,emission:u,translatedEmission:i.text,hints:null!==(s=e.hints)&&void 0!==s?s:"G1"===e.state?null==Vn?void 0:Vn.hints:[]};i.text.length>0&&(h={text:u,translatedText:i.text,emitter:e.emitter,media:null!==(l=e.emittedMedia)&&void 0!==l?l:e.media,fromUser:!1,questionAnswered:n,generatedByAI:!!e.completion,contextVars:e.contextVars,date:e.currentDate,placeName:e.currentPlaceName,placeLatitude:e.currentLatitude,placeLongitude:e.currentLongitude,placeUncertaintyKm:e.currentUncertaintyKm,tag:e.currentTag,memoryTags:e.memoryTags})}catch(t){console.error("[TRANSLATE] Error during translation:",t),d={...e,emission:u},h={text:u,emitter:e.emitter,media:null!==(c=e.emittedMedia)&&void 0!==c?c:e.media,fromUser:!1,questionAnswered:n,contextVars:e.contextVars,date:e.currentDate,placeName:e.currentPlaceName,placeLatitude:e.currentLatitude,placeLongitude:e.currentLongitude,placeUncertaintyKm:e.currentUncertaintyKm,tag:e.currentTag,memoryTags:e.memoryTags}}else d={...e,emission:u},u&&(h={text:u,emitter:e.emitter,media:null!==(o=e.emittedMedia)&&void 0!==o?o:e.media,fromUser:!1,questionAnswered:n,contextVars:e.contextVars,date:e.currentDate,placeName:e.currentPlaceName,placeLatitude:e.currentLatitude,placeLongitude:e.currentLongitude,placeUncertaintyKm:e.currentUncertaintyKm,tag:e.currentTag,memoryTags:e.memoryTags});return qn(d),!i&&h&&On(h),d},kn=void 0!==e.ageRestriction?e.ageRestriction:e.nsfw?18:e.enableCompletions?14:0,[Bn,Fn]=(0,c.useState)(),[Un,zn]=(0,c.useState)(!1),Gn=t=>{var n,i;let r="";switch((t||(null===(i=null===(n=e.culture)||void 0===n?void 0:n.split("-"))||void 0===i?void 0:i[0])||Xe.language||"IT").toUpperCase()){case"IT":default:r="it-IT";break;case"DE":r="de-DE";break;case"EN":r="en-GB";break;case"ES":r="es-ES";break;case"FR":r="fr-FR";break;case"PT":r="pt-PT";break;case"UK":r="uk-UK";break;case"RU":r="ru-RU";break;case"PL":r="pl-PL";break;case"FI":r="fi-FI";break;case"EL":r="el-GR";break;case"AR":r="ar-SA";break;case"ZH":r="zh-CN";break;case"JA":r="ja-JP"}return r},[jn,Hn]=(0,c.useState)(F),[Vn,Wn]=(0,c.useState)(),qn=e=>{var t,n;Wn(e),W&&W(e);const i=new CustomEvent("MemoriNewDialogState",{detail:e});document.dispatchEvent(i);const r=null===(n=null!==(t=null==e?void 0:e.emittedMedia)&&void 0!==t?t:null==e?void 0:e.media)||void 0===n?void 0:n.filter((e=>{var t;return"text/javascript"===e.mimeType&&!!(null===(t=e.properties)||void 0===t?void 0:t.executable)}));null==r||r.forEach((e=>{try{setTimeout((()=>{var t;console.log("snippet",e),new Function(null!==(t=e.content)&&void 0!==t?t:"")(),setTimeout((()=>{var e,t,n;null===(e=document.querySelector(".memori-chat--content"))||void 0===e||e.scrollTo(0,null!==(n=null===(t=document.querySelector(".memori-chat--content"))||void 0===t?void 0:t.scrollHeight)&&void 0!==n?n:0)}),400)}),1e3)}catch(e){console.warn(e)}}))};(0,c.useEffect)((()=>{F&&(Hn(F),Pi(void 0,!1,void 0,F))}),[F]);const $n=async n=>{var i,r,o,s,l,c,u,d,h,p;let m=VR("birthDate",void 0),f=null!==(i=null!=Bn?Bn:n.birthDate)&&void 0!==i?i:m;if(f||!kn)if("PUBLIC"===e.privacyType||e.secretToken||gn||yn){Rt(!0);try{let i;try{i=window.location.href}catch(e){console.debug(e)}const m=await tt({...n,birthDate:f,tag:null!==(r=n.tag)&&void 0!==r?r:null==z?void 0:z.tag,pin:null!==(o=n.pin)&&void 0!==o?o:null==z?void 0:z.pin,additionalInfo:{...n.additionalInfo||q||{},loginToken:null!==(u=null!==(c=null!==(s=null!=ok?ok:ft)&&void 0!==s?s:null===(l=n.additionalInfo)||void 0===l?void 0:l.loginToken)&&void 0!==c?c:null==q?void 0:q.loginToken)&&void 0!==u?u:G,language:(null!==(p=null!=Mt?Mt:null===(h=null===(d=e.culture)||void 0===d?void 0:d.split("-"))||void 0===h?void 0:h[0])&&void 0!==p?p:"IT").toLowerCase(),referral:i,timeZoneOffset:(new Date).getTimezoneOffset().toString()}});if((null==m?void 0:m.sessionID)&&(null==m?void 0:m.currentState)&&0===m.resultCode)return Hn(m.sessionID),(null==Vn?void 0:Vn.currentTag)&&e.giverTag?ht((null==Vn?void 0:Vn.currentTag)===e.giverTag):ht(!1),wn&&e.needsPosition&&En(wn,m.sessionID),Rt(!1),{dialogState:m.currentState,sessionID:m.sessionID};if(!(null==m?void 0:m.resultMessage.startsWith("This Memori is aged restricted")))return 403===(null==m?void 0:m.resultCode)?(vn(void 0),xn("password"),m):(console.warn(m),t(Ao).error((e=>(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{children:Ze(XI(null==m?void 0:m.resultCode))}),(0,a.jsx)(Xl,{outlined:!0,padded:!1,onClick:()=>t(Ao).dismiss(e.id),icon:(0,a.jsx)(Kl,{}),children:Ze("close")})]})),{duration:1/0}),Et(!0),m);console.warn(m),t(Ao).error(Ze("underageTwinSession",{age:kn})),Et(!0)}catch(e){console.error(e)}}else xn("password");else zn(!0)},Yn=async(n=!1,i,r,o,a,s,l,c,u,d,h,p)=>{var m,f,g,v,y,_,b,x,w,S,E;Rt(!0);let A=VR("birthDate",void 0),T=null!=c?c:A;try{if(!T&&kn)return void zn(!0);if(!("PUBLIC"===e.privacyType||i||e.secretToken||gn||r||yn))return void xn("password");let c;try{c=window.location.href}catch(e){console.debug("[REOPEN_SESSION] Error getting referral:",e)}const{sessionID:A,currentState:I,...M}=await tt({memoriID:null!==(m=e.engineMemoriID)&&void 0!==m?m:"",password:i||gn||e.secretToken,recoveryTokens:r||yn,tag:null!=o?o:null==z?void 0:z.tag,pin:null!=a?a:null==z?void 0:z.pin,continueFromChatLogID:d,continueFromSessionID:h,initialContextVars:{LANG:Mt,PATHNAME:window.location.pathname,ROUTE:(null===(g=null===(f=window.location.pathname)||void 0===f?void 0:f.split("/"))||void 0===g?void 0:g.pop())||"",...s||{}},initialQuestion:l,birthDate:T,additionalInfo:{...u||q||{},loginToken:null!==(_=null!==(y=null!==(v=null!=ok?ok:ft)&&void 0!==v?v:null==u?void 0:u.loginToken)&&void 0!==y?y:null==q?void 0:q.loginToken)&&void 0!==_?_:G,language:(null!==(w=null!=Mt?Mt:null===(x=null===(b=e.culture)||void 0===b?void 0:b.split("-"))||void 0===x?void 0:x[0])&&void 0!==w?w:"IT").toLowerCase(),referral:c,timeZoneOffset:(new Date).getTimezoneOffset().toString()}});if(A&&I&&0===M.resultCode){if(console.log("[REOPEN_SESSION] Session initialized successfully:",A),Hn(A),n&&(qn(I),I.emission)){console.log("[REOPEN_SESSION] Processing emission:",I.emission);const e=p&&Cn.length>1?"Session Expired, reopening session":Cn.length<=1||void 0;Cn.length<=1?Nn([{text:I.emission,emitter:I.emitter,media:null!==(S=I.emittedMedia)&&void 0!==S?S:I.media,fromUser:!1,initial:!0===e||(e||void 0),contextVars:I.contextVars,date:I.currentDate,placeName:I.currentPlaceName,placeLatitude:I.currentLatitude,placeLongitude:I.currentLongitude,placeUncertaintyKm:I.currentUncertaintyKm,tag:I.currentTag,memoryTags:I.memoryTags}]):On({text:I.emission,emitter:I.emitter,media:null!==(E=I.emittedMedia)&&void 0!==E?E:I.media,fromUser:!1,initial:!0===e||(e||void 0),contextVars:I.contextVars,date:I.currentDate,placeName:I.currentPlaceName,placeLatitude:I.currentLatitude,placeLongitude:I.currentLongitude,placeUncertaintyKm:I.currentUncertaintyKm,tag:I.currentTag,memoryTags:I.memoryTags})}return wn&&e.needsPosition&&En(wn,A),e.needsDateTime&&Zn({sessionID:A,state:I}),Rt(!1),{dialogState:I,sessionID:A}}(null==M?void 0:M.resultMessage.startsWith("This Memori is aged restricted"))?(console.error("[REOPEN_SESSION] Age restriction error:",M),t(Ao).error(Ze("underageTwinSession",{age:kn})),Et(!0)):403===(null==M?void 0:M.resultCode)?(console.error("[REOPEN_SESSION] Authentication error"),vn(void 0),xn("password")):(console.error("[REOPEN_SESSION] Other error:",M),t(Ao).error(Ze(XI(M.resultCode))),Et(!0))}catch(e){console.error("[REOPEN_SESSION] Caught error:",e)}return Rt(!1),null},Jn=async(t,n,i,r)=>{var o,a,s,l,c,u,d,h;if(!t||!n)return console.error("CHANGETAG/Session not found"),Promise.reject("Session not found");try{const{currentState:t,resultCode:p}=await st(n,null!=i?i:FI);if(0===p){let m=0;if(i!==FI&&r&&("X1a"===t.state||"X1b"===t.state)){const{resultCode:e}=await it({sessionId:n,text:null!=r?r:""});m=e}if(0===m){const{currentState:e,...t}=await lt(n);if(0===t.resultCode&&e)return{currentState:e,sessionId:n,...t}}else if([400,401,403,404,500].includes(p)){console.warn("[APPCONTEXT/CHANGETAG]",p);let t,n=VR("birthDate",void 0);try{t=window.location.href}catch(e){console.debug(e)}$n({memoriID:null!==(o=e.engineMemoriID)&&void 0!==o?o:"",password:N||gn||e.secretToken,tag:null!=i?i:null==z?void 0:z.tag,pin:null!=r?r:null==z?void 0:z.pin,initialContextVars:{LANG:Mt,PATHNAME:window.location.pathname,ROUTE:(null===(s=null===(a=window.location.pathname)||void 0===a?void 0:a.split("/"))||void 0===s?void 0:s.pop())||"",...P||{}},initialQuestion:D,birthDate:Bn||n||void 0,additionalInfo:{...q||{},loginToken:null!==(c=null!==(l=null!=ok?ok:ft)&&void 0!==l?l:null==q?void 0:q.loginToken)&&void 0!==c?c:G,language:(null!==(h=null!=Mt?Mt:null===(d=null===(u=e.culture)||void 0===u?void 0:u.split("-"))||void 0===d?void 0:d[0])&&void 0!==h?h:"IT").toLowerCase(),referral:t,timeZoneOffset:(new Date).getTimezoneOffset().toString()}})}else if(t)return{currentState:t,sessionId:n,resultCode:p}}}catch(e){let t=e;return console.warn("[APPCONTEXT/CHANGETAG]",t),Promise.reject(t)}return null},Zn=(0,c.useCallback)((async({sessionID:t,date:n,state:i})=>{var r;const o=null!=t?t:jn,a=null!=i?i:Vn;if(!o||!e.needsDateTime||(null===(r=null==a?void 0:a.hints)||void 0===r?void 0:r.length))return;const s=(n?Ye.DateTime.fromISO(n):Ye.DateTime.now()).toUTC().toFormat("yyyy/MM/dd HH:mm:ss ZZ").split(":").slice(0,-1).join(":"),{currentState:l,...c}=await ot(o,s);0===c.resultCode&&l&&Wn((e=>{var t;return{...e,...l,hints:(null===(t=l.hints)||void 0===t?void 0:t.length)?l.hints:null==e?void 0:e.hints}}))}),[Vn,e.needsDateTime,jn]);(0,c.useEffect)((()=>{if(jn&&e.needsDateTime){Zn({sessionID:jn,state:Vn});let e=null,t=!document.hidden;const n=()=>{e&&clearInterval(e),e=setInterval((()=>{document.hidden||Zn({sessionID:jn})}),6e4)},i=()=>{e&&(clearInterval(e),e=null)},r=()=>{const e=!document.hidden;e&&!t?(Zn({sessionID:jn,state:Vn}),n()):!e&&t&&i(),t=e};return t&&n(),document.addEventListener("visibilitychange",r),()=>{i(),document.removeEventListener("visibilitychange",r)}}}),[e.needsDateTime,jn]);const[Xn,Kn]=(0,c.useState)(),Qn=(0,c.useRef)(),ei=()=>{Xn&&(clearTimeout(Xn),Kn(void 0)),(null==Qn?void 0:Qn.current)&&(clearTimeout(Qn.current),Qn.current=void 0)};(0,c.useEffect)((()=>()=>{di(!1),wt(!1),ei(),Qn.current=void 0}),[]);const[ti,ni]=(0,c.useState)(!1),ii=((0,c.useRef)(null),(0,c.useMemo)((()=>{var t,n;return{provider:k,voice:vD(Mt||(null===(n=null===(t=e.culture)||void 0===t?void 0:t.split("-"))||void 0===n?void 0:n[0])||"EN",k,e.voiceType),tenant:o,region:"westeurope",voiceType:e.voiceType,layout:Bt}}),[k,Mt,e.culture,e.voiceType,Bt])),ri=(0,c.useMemo)((()=>({provider:k,language:Gn(Mt),tenant:o})),[k,Mt]),{speak:oi,stop:ai,isPlaying:si,speakerMuted:li,toggleMute:ci,hasUserActivatedSpeak:ui,setHasUserActivatedSpeak:di}=bD(ii,{apiUrl:`${O}/api/tts`,continuousSpeech:en,preview:m},K,Ut,null===(we=null!=H?H:null==Tt?void 0:Tt.defaultSpeakerActive)||void 0===we||we),hi=e=>{const t=VR("muteSpeaker",!Ut);return console.log("[MemoriWidget] shouldPlayAudio",t),e&&e.trim()&&!m&&!t&&Ut},{isListening:pi,startRecording:mi,stopRecording:fi}=nk(ri,(e=>{if(e&&0!==e.trim().length)try{const t=DE(e);console.debug("Processing speech message:",t),t.length>0&&(Tn(""),console.debug("Sending message:",t),Pn(t))}catch(e){console.error("Error in processSpeechAndSendMessage:",e)}}),{apiUrl:`${O}/api/stt`},Ut),gi=async e=>{if(!hi(e)){const e=new CustomEvent("MemoriEndSpeak");return document.dispatchEvent(e),Promise.resolve()}"function"==typeof fi&&fi(),Ht(!1);const t=_D(e);return oi(t)},vi=(0,c.useCallback)((async(e,t,n,i=!1)=>{try{if(!e)return null;const r=await Dn(e,t,n,i),o=r.translatedEmission||r.emission;return ui||di(!0),o&&!i&&hi(o)&&await gi(o),r}catch(t){return console.error("Error in translateAndSpeak:",t),ui||di(!0),e}}),[Dn,gi,ui,di,li]);(0,c.useEffect)((()=>{"TOTEM"!==Bt&&(()=>{let e=document.querySelector("#chat-fieldset textarea");e&&pt?e.focus():null==e||e.blur()})()}),[null==Vn?void 0:Vn.emission]);const yi=()=>{try{ei(),wt(!1),Qn.current=void 0,ai()}catch(e){}};(0,c.useEffect)((()=>()=>{yi()}),[]),(0,c.useEffect)((()=>(document.addEventListener("MemoriResetUIEffects",yi),()=>{document.removeEventListener("MemoriResetUIEffects",yi)})),[]),(0,c.useEffect)((()=>{si||!en||!zt&&ti||!jn||jt?si&&pi&&fi():mi()}),[si,zt,jt]),(0,c.useEffect)((()=>{fi()}),[At]);const[_i,bi]=(0,c.useState)("keypress");(0,c.useEffect)((()=>{window.innerWidth<=768&&CE()?bi("click"):bi("keypress")}),[]);const[xi,wi]=(0,c.useState)(),Si=null==Tt?void 0:Tt.globalBackground,Ei=Si?`url(${Si})`:null,Ai=u?{"--memori-chat-bubble-bg":"#fff",...Tt&&!dt?{"--memori-text-color":null!==(Se=Tt.textColor)&&void 0!==Se?Se:"#000"}:{},...(null==Tt?void 0:Tt.buttonBgColor)?{"--memori-button-bg":Tt.buttonBgColor,"--memori-primary":Tt.buttonBgColor}:{},...(null==Tt?void 0:Tt.buttonTextColor)?{"--memori-button-text":Tt.buttonTextColor}:{},...(null==Tt?void 0:Tt.blurBackground)?{"--memori-blur-background":"5px"}:{"--memori-blur-background":"0px"},...(null==Tt?void 0:Tt.innerBgColor)?{"--memori-inner-bg":`rgba(${"dark"===Tt.innerBgColor?"0, 0, 0":"255, 255, 255"}, ${null!==(Ee=Tt.innerBgAlpha)&&void 0!==Ee?Ee:.4})`,"--memori-inner-content-pad":"1.5rem","--memori-nav-bg-image":"none","--memori-nav-bg":`rgba(${"dark"===Tt.innerBgColor?"0, 0, 0":"255, 255, 255"}, ${null!==(Ae=null==Tt?void 0:Tt.innerBgAlpha)&&void 0!==Ae?Ae:.4})`}:{"--memori-inner-content-pad":"0px"}}:{},Ti=`\n ${m?"#preview, ":Q?":root, ":""}memori-client, .memori-widget, .memori-drawer, .memori-modal {\n ${Object.entries(Ai).map((([e,t])=>`${e}: ${t};`)).join("\n")}\n }\n `,Ii=void 0===(null==Tt?void 0:Tt.showAIicon)||(null==Tt?void 0:Tt.showAIicon),Mi=!!(null!=A?A:null==Tt?void 0:Tt.showUpload),Ci=!!(null!=M?M:null==Tt?void 0:Tt.showReasoning),Ni=void 0===(null==Tt?void 0:Tt.showWhyThisAnswer)||(null==Tt?void 0:Tt.showWhyThisAnswer),[Oi,Ri]=(0,c.useState)(!1);(0,c.useEffect)((()=>{(window.innerWidth>=768&&"FULLPAGE"===Bt||"FULLPAGE"!==Bt)&&Ri(!0)}),[]),(0,c.useEffect)((()=>{if(null==Tt?void 0:Tt.seoTitle){let e=document.createElement("meta");e.setAttribute("property","og:title"),e.setAttribute("content",Tt.seoTitle),document.head.append(e)}if(null==Tt?void 0:Tt.seoDescription){let e=document.createElement("meta");e.setAttribute("property","og:description"),e.setAttribute("content",Tt.seoDescription),document.head.append(e)}if(null==Tt?void 0:Tt.seoUrl){let e=document.createElement("meta");e.setAttribute("property","og:url"),e.setAttribute("content",Tt.seoUrl),document.head.append(e)}let t=B||e.avatarURL;if((null==Tt?void 0:Tt.seoImageShowAvatar)&&t){let e=document.createElement("meta");e.setAttribute("property","og:image"),e.setAttribute("content",t),document.head.append(e)}}),[Tt,e.avatarURL,B]);const Li=(0,c.useCallback)((e=>{if(V)return;const{text:t,waitForPrevious:n,hidden:i,typingText:r,useLoaderTextAsMsg:o,hasBatchQueued:a}=e.detail;t&&(n&&!li&&(mn||Lt)?setTimeout((()=>{Li(e)}),1e3):(ai(),Pn(t,void 0,void 0,void 0,void 0,i,r,o,a)))}),[jn,si,Lt,Mt,V,li]);(0,c.useEffect)((()=>(V?document.removeEventListener("MemoriTextEntered",Li):document.addEventListener("MemoriTextEntered",Li),()=>{document.removeEventListener("MemoriTextEntered",Li)})),[jn,Mt,V]);const Pi=(0,c.useCallback)((async(t,n=!1,i,r)=>{var o,a,s,l,c,u,d,h,p,m,f,g,v,y,_,b,x,w,S;const E=i?void 0:(null==t?void 0:t.sessionID)||jn,A=i?void 0:(null==t?void 0:t.dialogState)||Vn;wt(!0),Ht(!1);let T=[],I=VR("birthDate",void 0),M=Bn||I||(null==vt?void 0:vt.birthDate);!M&&K&&(F||r)&&(M="1970-01-01T10:24:03.845Z");const C=VR("position",void 0);if(K&&!C&&e.needsPosition)Wt(!0);else if(E||!kn||M){if(!E&&"PUBLIC"!==e.privacyType&&!e.secretToken&&!gn&&!yn||!E&&St)return xn("password"),void wt(!1);if(!E||n){wt(!1),Et(!1);const t=await $n({memoriID:e.engineMemoriID,password:N||gn||e.secretToken,tag:null==z?void 0:z.tag,pin:null==z?void 0:z.pin,continueFromChatLogID:null==i?void 0:i.chatLogID,initialContextVars:{LANG:Mt,PATHNAME:null===(o=window.location.pathname)||void 0===o?void 0:o.toUpperCase(),ROUTE:(null===(l=null===(s=null===(a=window.location.pathname)||void 0===a?void 0:a.split("/"))||void 0===s?void 0:s.pop())||void 0===l?void 0:l.toUpperCase())||"",...(i?i.lines[i.lines.length-1].contextVars:P)||{}},initialQuestion:i?void 0:D,birthDate:M,additionalInfo:{...q||{},loginToken:null!==(u=null!==(c=null!=ok?ok:ft)&&void 0!==c?c:null==q?void 0:q.loginToken)&&void 0!==u?u:G,language:(null!==(p=null!=Mt?Mt:null===(h=null===(d=e.culture)||void 0===d?void 0:d.split("-"))||void 0===h?void 0:h[0])&&void 0!==p?p:"IT").toLowerCase(),timeZoneOffset:(new Date).getTimezoneOffset().toString()}});if(null==t?void 0:t.dialogState)if(i){const e=i.lines.map(((e,t)=>{var n,i;return{text:e.text,media:null===(i=null===(n=e.media)||void 0===n?void 0:n.filter((e=>BI.includes(e.mimeType))))||void 0===i?void 0:i.map((e=>({mediumID:`${t}-${e.mimeType}`,...e}))),fromUser:e.inbound,timestamp:e.timestamp,emitter:e.emitter,initial:0===t}}));if(T=null!=e?e:[],At.toUpperCase()!==Mt.toUpperCase()&&It)try{T=await Promise.all(e.map((async e=>"originalText"in e&&e.originalText?e:{...e,originalText:e.text,text:(await eM(e.text,Mt,At)).text})))}catch(e){console.error("[onClickStart] Error translating messages:",e)}Nn(T),Dn(t.dialogState,Mt,void 0,!0).finally((()=>{di(!0)}))}else Nn([]),await vi(t.dialogState,Mt),di(!0);else 0===(null==t?void 0:t.resultCode)?await Pi(t||void 0):Rt(!1);return}if(F||r){const t=null!=r?r:F,{currentState:n,...i}=await lt(t);if(0!==i.resultCode||!n){const{chatLogs:e}=await ut(t,t);return Et(!0),Hn(void 0),wt(!1),void await Pi(void 0,!0,null==e?void 0:e[0])}if(Nn([]),wn&&e.needsPosition&&En(wn,t),e.needsDateTime&&Zn({sessionID:t,state:n}),z&&n.currentTag!==z.tag)try{await Jn(e.engineMemoriID,t,"-");const n=await Jn(e.engineMemoriID,t,z.tag,z.pin);if(!n||0!==n.resultCode)throw new Error("No session");await vi(n.currentState,Mt)}catch(t){console.error("[onClickStart] Error changing tag:",t),Yn(!0,null==e?void 0:e.secretToken,void 0,z.tag,z.pin,{LANG:Mt,PATHNAME:null===(m=window.location.pathname)||void 0===m?void 0:m.toUpperCase(),ROUTE:(null===(v=null===(g=null===(f=window.location.pathname)||void 0===f?void 0:f.split("/"))||void 0===g?void 0:g.pop())||void 0===v?void 0:v.toUpperCase())||"",...P||{}},D,M).then((()=>{di(!0)}))}else if(!z&&(null==n?void 0:n.currentTag)&&(null==n?void 0:n.currentTag)!==FI&&"-"!==(null==n?void 0:n.currentTag))try{await Jn(e.engineMemoriID,t,"-");const n=await Jn(e.engineMemoriID,t,FI);if(!n||0!==n.resultCode)throw new Error("No session");await vi(n.currentState,Mt)}catch(t){Yn(!0,null==e?void 0:e.secretToken,void 0,void 0,void 0,{LANG:Mt,PATHNAME:null===(y=window.location.pathname)||void 0===y?void 0:y.toUpperCase(),ROUTE:(null===(x=null===(b=null===(_=window.location.pathname)||void 0===_?void 0:_.split("/"))||void 0===b?void 0:b.pop())||void 0===x?void 0:x.toUpperCase())||"",...P||{}},D,M).then((()=>{di(!0)}))}else{try{const{chatLogs:e}=await ut(t,t),n=null===(w=null==e?void 0:e[0])||void 0===w?void 0:w.lines.map(((e,t)=>{var n,i;return{text:e.text,media:null===(i=null===(n=e.media)||void 0===n?void 0:n.filter((e=>BI.includes(e.mimeType))))||void 0===i?void 0:i.map((e=>({mediumID:`${t}-${e.mimeType}`,...e}))),fromUser:e.inbound,timestamp:e.timestamp,emitter:e.emitter,initial:0===t}}));if(T=null!=n?n:[],At.toUpperCase()!==Mt.toUpperCase()&&It)try{T=await Promise.all(n.map((async e=>({...e,originalText:e.text,text:(await eM(e.text,Mt,At)).text}))))}catch(e){console.error("[onClickStart] Error translating messages:",e)}Nn(T)}catch(e){console.error("[onClickStart] Error retrieving chat logs:",e)}if((null==T?void 0:T.length)&&T.length>1||!D)di(!0),await vi(n,Mt,void 0,!!(null==T?void 0:T.length));else{console.log("[onClickStart] Starting with initial question"),T=[],Nn([]),Pt(!0);const e=await it({sessionId:t,text:D});if(500===e.resultCode&&e.resultMessage)return Nn((t=>[...t,{text:"Error: "+e.resultMessage,emitter:"system",fromUser:!1,initial:!1,contextVars:{},date:(new Date).toISOString()}])),void Pt(!1);await vi(null!==(S=e.currentState)&&void 0!==S?S:n,Mt,void 0,!1)}}wn&&e.needsPosition&&En(wn,t),e.needsDateTime&&Zn({sessionID:t,state:n})}else Nn([]),await vi(A,Mt)}else zn(!0),wt(!1)}),[gn,e,yn,Bn,jn,Mt,wn]);(0,c.useEffect)((()=>{!xt&&K&&"HIDDEN_CHAT"!==Bt&&Pi()}),[xt,K,Bt]),(0,c.useEffect)((()=>{const t=document.querySelector(`memori-client[memoriname="${e.name}"]`)||document.querySelector(`memori-client[memoriid="${e.memoriID}"]`)||document.querySelector("memori-client");if(!t)return;const n=new MutationObserver(((e,t)=>{var n,i,r;for(const t of e)"attributes"===t.type&&"authtoken"===(null===(n=t.attributeName)||void 0===n?void 0:n.toLowerCase())&&("MEMORI-CLIENT"===t.target.nodeName?(gt(t.target.getAttribute("authtoken")||void 0),ok=t.target.getAttribute("authtoken")||void 0):(gt((null===(r=null===(i=t.target)||void 0===i?void 0:i.parentElement)||void 0===r?void 0:r.getAttribute("authtoken"))||void 0),ok=t.target.getAttribute("authtoken")||void 0))}));return n.observe(t,{attributes:!0,childList:!1,subtree:!1}),()=>{n.disconnect()}}),[]);const[Di,ki]=(0,c.useState)(),Bi=(0,c.useCallback)((async()=>{if(jn&&(null==e?void 0:e.enableBoardOfExperts))try{const{experts:e,count:t,...n}=await ct(jn);0===n.resultCode?ki(e):console.warn("Error fetching experts",n)}catch(e){console.warn(e)}}),[jn,null==e?void 0:e.enableBoardOfExperts]);(0,c.useEffect)((()=>{Bi()}),[jn,Bi]);const Fi=e.enableDeepThought&&!!ft&&!!(null==vt?void 0:vt.userID)&&(null==vt?void 0:vt.pAndCUAccepted),Ui=null==U?void 0:U.billingDelegation,[zi,Gi]=(0,c.useState)(!0),ji=(0,c.useCallback)((async()=>{if(null==U?void 0:U.billingDelegation)try{const e=await yD({operation:Fi?"dt_session_creation":"session_creation",baseUrl:O,userID:i,userName:r,tenant:o});e.enough?Gi(!0):(Gi(!1),console.warn("Not enough credits. Required:",e.required))}catch(e){let t=e;console.debug(t)}}),[null==U?void 0:U.billingDelegation,Fi]);(0,c.useEffect)((()=>{(null==U?void 0:U.billingDelegation)&&ji()}),[null==U?void 0:U.billingDelegation,Fi]),(0,c.useEffect)((()=>{if(Z)return;const e=()=>{jn&&nt(jn)};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e),e()}}),[jn]);const Hi=void 0===T?"TOTEM"!==Bt&&"WEBSITE_ASSISTANT"!==Bt:!T,Vi={memori:{...e,ownerUserID:null!==(Ie=null!==(Te=e.ownerUserID)&&void 0!==Te?Te:i)&&void 0!==Ie?Ie:void 0},apiClient:et,tenant:U,history:Cn,showShare:null===(Me=null!=p?p:null==Tt?void 0:Tt.showShare)||void 0===Me||Me,position:wn,layout:Bt,additionalSettings:$,setShowPositionDrawer:Wt,setShowSettingsDrawer:$t,setShowKnownFactsDrawer:Xt,setShowExpertsDrawer:Qt,enableAudio:null===(Ce=null!=j?j:null==Tt?void 0:Tt.enableAudio)||void 0===Ce||Ce,speakerMuted:null!=li&&li,setSpeakerMuted:e=>{ci(e)},setShowChatHistoryDrawer:Jt,showSettings:null===(Ne=null!=x?x:null==Tt?void 0:Tt.showSettings)||void 0===Ne||Ne,showChatHistory:null===(Oe=null!=I?I:null==Tt?void 0:Tt.showChatHistory)||void 0===Oe||Oe,hasUserActivatedSpeak:ui,showReload:"TOTEM"===Bt,showClear:null!==(Re=null!=S?S:null==Tt?void 0:Tt.showClear)&&void 0!==Re&&Re,clearHistory:()=>Nn((e=>e.slice(-1))),showLogin:null!==(Le=null!=E?E:null==Tt?void 0:Tt.showLogin)&&void 0!==Le?Le:e.requireLoginToken,setShowLoginDrawer:bt,loginToken:ft,user:vt,sessionID:jn,baseUrl:O,onLogout:()=>{ft&&et.backend.pwlUserLogout(ft).then((()=>{bt(!1),yt(void 0),gt(void 0),ok=void 0,qR("loginToken")}))}},Wi={memori:e,integration:u,integrationConfig:Tt,tenant:U,instruct:dt,avatar3dVisible:Oi,setAvatar3dVisible:Ri,hasUserActivatedSpeak:ui,isPlayingAudio:si&&!li&&(null===(Pe=null!=j?j:null==Tt?void 0:Tt.enableAudio)||void 0===Pe||Pe),loading:!!Lt,baseUrl:O,apiUrl:et.constants.BACKEND_URL,enablePositionControls:sn,setEnablePositionControls:ln,avatarType:cn},qi={memori:e,tenant:U,language:At,userLang:Mt,setUserLang:Ct,baseUrl:O,apiUrl:et.constants.BACKEND_URL,position:wn,openPositionDrawer:()=>Wt(!0),integrationConfig:Tt,instruct:dt,sessionId:jn,clickedStart:xt,isMultilanguageEnabled:It,onClickStart:Pi,isUserLoggedIn:!!ft&&!!(null==vt?void 0:vt.userID),hasInitialSession:!!F,notEnoughCredits:Ui&&!zi,showLogin:null!=E?E:e.requireLoginToken,setShowLoginDrawer:bt,user:vt},$i={memori:e,sessionID:jn||"",tenant:U,translateTo:It&&Mt.toUpperCase()!==(null===(Ue=null!==(Fe=null!==(Be=null===(ke=null===(De=e.culture)||void 0===De?void 0:De.split("-"))||void 0===ke?void 0:ke[0])&&void 0!==Be?Be:Xe.language)&&void 0!==Fe?Fe:"IT")||void 0===Ue?void 0:Ue.toUpperCase())?Mt:void 0,baseUrl:O,apiUrl:et.constants.BACKEND_URL,layout:d,memoriTyping:Lt,typingText:Dt,showTypingText:null!==(ze=null!=w?w:null==Tt?void 0:Tt.showTypingText)&&void 0!==ze&&ze,history:Hi?Cn:Cn.slice(-2),authToken:null!==(je=null!==(Ge=null!=ft?ft:ok)&&void 0!==Ge?Ge:null==q?void 0:q.loginToken)&&void 0!==je?je:G,dialogState:Vn,pushMessage:On,simulateUserPrompt:(e,t)=>{ai(),Pn(e,void 0,void 0,!1,t)},showDates:_,showContextPerLine:b,showAIicon:Ii,showUpload:Mi,showReasoning:Ci,showWhyThisAnswer:Ni,showCopyButton:null===(He=null!=g?g:null==Tt?void 0:Tt.showCopyButton)||void 0===He||He,showTranslationOriginal:null!==(Ve=null!=v?v:null==Tt?void 0:Tt.showTranslationOriginal)&&void 0!==Ve&&Ve,client:et,instruct:dt,preview:m,sendOnEnter:_i,setSendOnEnter:bi,microphoneMode:en?"CONTINUOUS":"HOLD_TO_TALK",attachmentsMenuOpen:xi,setAttachmentsMenuOpen:wi,showInputs:y,showMicrophone:!!k&&(null===(We=null!=j?j:null==Tt?void 0:Tt.enableAudio)||void 0===We||We),showFunctionCache:ee,userMessage:An,onChangeUserMessage:e=>{e&&"\n"!==e&&""!==e.trim()?(Tn(e),ei()):Tn("")},sendMessage:(e,t)=>{ai(),fi(),Ht(!0),Pn(e,t),Tn("")},stopListening:fi,startListening:()=>{Ht(!1),mi()},stopAudio:ai,listening:pi,setEnableFocusChatInput:mt,isPlayingAudio:si,customMediaRenderer:Y,user:vt,userAvatar:J,experts:Di,useMathFormatting:Nt,maxTotalMessagePayload:ne,maxTextareaCharacters:ie},Yi=u&&Ei?(0,a.jsx)("div",{className:"memori--global-background",children:(0,a.jsx)("div",{className:"memori--global-background-image",style:{backgroundImage:Ei}})}):(0,a.jsx)("div",{className:"memori--global-background no-background-image"}),Ji=u?(0,a.jsx)("style",{dangerouslySetInnerHTML:{__html:Ti}}):null,Zi=(0,a.jsx)(PP,{tenant:U,userLang:Mt,integrationID:null==u?void 0:u.integrationID,memoriHash:`${e.ownerTenantName}-${e.ownerUserName}-${e.name}`}),Xi=h||("TOTEM"===Bt?lD:"CHAT"===Bt?cD:"FULLPAGE"===Bt?sD:"WEBSITE_ASSISTANT"===Bt?uD:"HIDDEN_CHAT"===Bt?dD:"ZOOMED_FULL_BODY"===Bt?hD:sD);return(0,a.jsxs)("div",{className:t($e)("memori","memori-widget",`memori-layout-${Bt.toLowerCase()}`,`memori-controls-${on.toLowerCase()}`,`memori--avatar-${(null==Tt?void 0:Tt.avatar)||"default"}`,{"memori--auto-start":K,"memori--preview":m,"memori--embed":f,"memori--with-integration":u,"memori--with-speechkey":!!k,"memori--active":ui,"memori--hide-emissions":dn,"memori--has-active-session":!!jn}),"data-memori-name":null==e?void 0:e.name,"data-memori-id":null==e?void 0:e.engineMemoriID,"data-memori-secondary-id":null==e?void 0:e.memoriID,"data-memori-session-id":jn,"data-memori-integration":null==u?void 0:u.integrationID,"data-memori-engine-state":JSON.stringify({...Vn,sessionID:jn}),style:{height:C},children:[(0,a.jsx)(Xi,{Header:LP,headerProps:Vi,Avatar:VL,avatarProps:Wi,Chat:MC,chatProps:$i,StartPanel:BC,startPanelProps:qi,integrationStyle:Ji,integrationBackground:Yi,poweredBy:Zi,autoStart:K,sessionId:jn,hasUserActivatedSpeak:ui,loading:Ot}),(0,a.jsx)(se,{pushMessage:e=>{Nn((t=>{if(!t.length)return t;const n=t[t.length-1];if(!n||n.fromUser)return t;const i={...n,text:n.text+e.text};return[...t.slice(0,-1),i]}))}}),(0,a.jsx)("audio",{id:"memori-audio",style:{display:"none"},src:"https://aisuru.com/intro.mp3"}),Ke&&(0,a.jsx)(eI,{withModal:!0,pwdOrTokens:bn,openModal:!!bn,setPwdOrTokens:xn,showTokens:"SECRET"===e.privacyType,onFinish:e=>{var t,n,i,r;return e.password&&vn(e.password),e.password&&(rk=e.password),e.tokens&&_n(e.tokens),Yn(!jn,e.password,e.tokens,null==z?void 0:z.tag,null==z?void 0:z.pin,{LANG:Mt,PATHNAME:null===(t=window.location.pathname)||void 0===t?void 0:t.toUpperCase(),ROUTE:(null===(r=null===(i=null===(n=window.location.pathname)||void 0===n?void 0:n.split("/"))||void 0===i?void 0:i.pop())||void 0===r?void 0:r.toUpperCase())||"",...P||{}},D,Bn).then((e=>{if(!(null==e?void 0:e.sessionID))throw new Error("AUTH_FAILED");xn(null),(null==e?void 0:e.dialogState)?di(!0):Pi(e)})).catch((e=>{throw e instanceof Error&&"AUTH_FAILED"===e.message||Et(!0),e}))},minimumNumberOfRecoveryTokens:null!==(Je=null==e?void 0:e.minimumNumberOfRecoveryTokens)&&void 0!==Je?Je:1}),Ke&&(0,a.jsx)(BP,{visible:Un,minAge:kn,onClose:t=>{var n,i,r,o;t?(Fn(t),WR("birthDate",t),Yn(!jn,rk||gn||(null==e?void 0:e.secretToken),yn,null==z?void 0:z.tag,null==z?void 0:z.pin,{LANG:Mt,PATHNAME:null===(n=window.location.pathname)||void 0===n?void 0:n.toUpperCase(),ROUTE:(null===(o=null===(r=null===(i=window.location.pathname)||void 0===i?void 0:i.split("/"))||void 0===r?void 0:r.pop())||void 0===o?void 0:o.toUpperCase())||"",...P||{}},D,t).then((e=>{zn(!1),xn(null),Pi(e||void 0)})).catch((()=>{zn(!1),Et(!0)}))):(zn(!1),wt(!1))}}),qt&&(0,a.jsx)(eD,{layout:Bt,open:!!qt,onClose:()=>$t(!1),microphoneMode:en?"CONTINUOUS":"HOLD_TO_TALK",continuousSpeechTimeout:nn,setMicrophoneMode:e=>tn("CONTINUOUS"===e),setContinuousSpeechTimeout:rn,controlsPosition:on,setControlsPosition:an,hideEmissions:dn,setHideEmissions:hn,avatarType:cn,setAvatarType:un,enablePositionControls:sn,setEnablePositionControls:ln,isAvatar3d:!!(null==Tt?void 0:Tt.avatarURL),additionalSettings:$,speakerMuted:li}),Yt&&(0,a.jsx)(ek,{open:!!Yt,onClose:()=>Jt(!1),resumeSession:e=>{Ln(e.chatLogID),Pi(void 0,!1,e),Jt(!1)},apiClient:et,sessionId:jn||"",memori:e,baseUrl:O,history:Cn,apiUrl:et.constants.BACKEND_URL,loginToken:ft,language:At,userLang:Mt,isMultilanguageEnabled:It}),Vt&&(0,a.jsx)(OA,{memori:e,open:!!Vt,venue:wn,setVenue:t=>{Sn(t),En(t),t&&e.needsPosition?WR("position",JSON.stringify(t)):t||qR("position")},onClose:e=>{e&&En(e),Wt(!1),K&&Pi()}}),Zt&&jn&&(0,a.jsx)(rD,{apiClient:et,memori:e,sessionID:jn,visible:Zt,closeDrawer:()=>Xt(!1)}),Kt&&!!Di&&(0,a.jsx)(oD,{apiUrl:et.constants.BACKEND_URL,baseUrl:O,tenant:U,experts:Di,open:Kt,onClose:()=>Qt(!1)}),_t&&(null==U?void 0:U.name)&&(0,a.jsx)(aD,{tenant:U,apiClient:et,open:!!_t,user:vt,loginToken:ft,onClose:()=>bt(!1),onLogin:(t,n)=>{var i,r,o,a;Yn(!1,rk||gn||(null==e?void 0:e.secretToken),[],null==z?void 0:z.tag,null==z?void 0:z.pin,{LANG:Mt,PATHNAME:null===(i=window.location.pathname)||void 0===i?void 0:i.toUpperCase(),ROUTE:(null===(a=null===(o=null===(r=window.location.pathname)||void 0===r?void 0:r.split("/"))||void 0===o?void 0:o.pop())||void 0===a?void 0:a.toUpperCase())||"",...P||{}},void 0,Bn,{loginToken:n},void 0,jn).then((e=>{var i,r;if(bt(!1),yt(t),gt(n),ok=n,WR("loginToken",n),(null==e?void 0:e.sessionID)&&e.sessionID!==jn&&(null==e?void 0:e.dialogState)){const n=(null==t?void 0:t.userName)||Ze("login.user");On({text:"",emitter:e.dialogState.emitter,media:null!==(r=null!==(i=e.dialogState.emittedMedia)&&void 0!==i?i:e.dialogState.media)&&void 0!==r?r:[],fromUser:!1,initial:Ze("login.successfullyLoggedIn",{username:n}),contextVars:e.dialogState.contextVars,date:e.dialogState.currentDate,placeName:e.dialogState.currentPlaceName,placeLatitude:e.dialogState.currentLatitude,placeLongitude:e.dialogState.currentLongitude,placeUncertaintyKm:e.dialogState.currentUncertaintyKm,tag:e.dialogState.currentTag,memoryTags:e.dialogState.memoryTags}),qn(e.dialogState)}}))},setUser:yt,onLogout:()=>{ft&&et.backend.pwlUserLogout(ft).then((()=>{bt(!1),yt(void 0),gt(void 0),ok=void 0,qR("loginToken")}))}})]})};function sk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lk(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,QN(i.key),i)}}function ck(e,t,n){return t&&lk(e.prototype,t),n&&lk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function uk(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dk(e,t){return dk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dk(e,t)}function hk(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dk(e,t)}function pk(e,t){if(t&&("object"===XN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return uk(e)}function mk(e){return mk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mk(e)}function fk(e){if(Array.isArray(e))return e}function gk(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function vk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function yk(e,t){if(e){if("string"==typeof e)return vk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vk(e,t):void 0}}function _k(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function bk(e){return fk(e)||gk(e)||yk(e)||_k()}function xk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function wk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xk(Object(n),!0).forEach((function(t){eO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Sk={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},Ek=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};sk(this,e),this.init(t,n)}return ck(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Sk,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,i){return i&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,wk(wk({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}()),Ak=function(){function e(){sk(this,e),this.observers={}}return ck(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(this.observers[e]){var r=[].concat(this.observers[e]);r.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var o=[].concat(this.observers["*"]);o.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function Tk(){var e,t,n=new Promise((function(n,i){e=n,t=i}));return n.resolve=e,n.reject=t,n}function Ik(e){return null==e?"":""+e}function Mk(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function Ck(e,t,n){function i(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function r(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(r())return{};var a=i(o.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return r()?{}:{obj:e,k:i(o.shift())}}function Nk(e,t,n){var i=Ck(e,t,Object);i.obj[i.k]=n}function Ok(e,t){var n=Ck(e,t),i=n.obj,r=n.k;if(i)return i[r]}function Rk(e,t,n){var i=Ok(e,n);return void 0!==i?i:Ok(t,n)}function Lk(e,t,n){for(var i in t)"__proto__"!==i&&"constructor"!==i&&(i in e?"string"==typeof e[i]||e[i]instanceof String||"string"==typeof t[i]||t[i]instanceof String?n&&(e[i]=t[i]):Lk(e[i],t[i],n):e[i]=t[i]);return e}function Pk(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Dk={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function kk(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return Dk[e]})):e}var Bk="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Fk=[" ",",","?","!",";"];function Uk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function zk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uk(Object(n),!0).forEach((function(t){eO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=mk(e);if(t){var r=mk(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return pk(this,n)}}function jk(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var i=t.split(n),r=e,o=0;o<i.length;++o){if(!r)return;if("string"==typeof r[i[o]]&&o+1<i.length)return;if(void 0===r[i[o]]){for(var a=2,s=i.slice(o,o+a).join(n),l=r[s];void 0===l&&i.length>o+a;)a++,l=r[s=i.slice(o,o+a).join(n)];if(void 0===l)return;if(null===l)return null;if(t.endsWith(s)){if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s]}var c=i.slice(o+a).join(n);return c?jk(l,c,n):void 0}r=r[i[o]]}return r}}var Hk=function(e){hk(n,e);var t=Gk(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return sk(this,n),i=t.call(this),Bk&&Ak.call(uk(i)),i.data=e||{},i.options=r,void 0===i.options.keySeparator&&(i.options.keySeparator="."),void 0===i.options.ignoreJSONStructure&&(i.options.ignoreJSONStructure=!0),i}return ck(n,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,o=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=Ok(this.data,a);return s||!o||"string"!=typeof n?s:jk(this.data&&this.data[e]&&this.data[e][t],n,r)}},{key:"addResource",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=t,t=(a=e.split("."))[1]),this.addNamespaces(t),Nk(this.data,a,i),r.silent||this.emit("added",e,t,n,i)}},{key:"addResources",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in n)"string"!=typeof n[r]&&"[object Array]"!==Object.prototype.toString.apply(n[r])||this.addResource(e,t,r,n[r],{silent:!0});i.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(i=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=Ok(this.data,a)||{};i?Lk(s,n,r):s=zk(zk({},s),n),Nk(this.data,a,s),o.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?zk(zk({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),n}(Ak),Vk={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,i,r){var o=this;return e.forEach((function(e){o.processors[e]&&(t=o.processors[e].process(t,n,i,r))})),t}};function Wk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function qk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wk(Object(n),!0).forEach((function(t){eO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=mk(e);if(t){var r=mk(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return pk(this,n)}}var Yk={},Jk=function(e){hk(n,e);var t=$k(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return sk(this,n),i=t.call(this),Bk&&Ak.call(uk(i)),Mk(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,uk(i)),i.options=r,void 0===i.options.keySeparator&&(i.options.keySeparator="."),i.logger=Ek.create("translator"),i}return ck(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS||[],o=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var i=Fk.filter((function(e){return t.indexOf(e)<0&&n.indexOf(e)<0}));if(0===i.length)return!0;var r=new RegExp("(".concat(i.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),o=!r.test(e);if(!o){var a=e.indexOf(n);a>0&&!r.test(e.substring(0,a))&&(o=!0)}return o}(e,n,i));if(o&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:r};var l=e.split(n);(n!==i||n===i&&this.options.ns.indexOf(l[0])>-1)&&(r=l.shift()),e=l.join(i)}return"string"==typeof r&&(r=[r]),{key:e,namespaces:r}}},{key:"translate",value:function(e,t,i){var r=this;if("object"!==XN(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),l=s.key,c=s.namespaces,u=c[c.length-1],d=t.lng||this.language,h=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(h){var p=t.nsSeparator||this.options.nsSeparator;return o?(m.res="".concat(u).concat(p).concat(l),m):"".concat(u).concat(p).concat(l)}return o?(m.res=l,m):l}var m=this.resolve(e,t),f=m&&m.res,g=m&&m.usedKey||l,v=m&&m.exactUsedKey||l,y=Object.prototype.toString.apply(f),_=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,w="string"!=typeof f&&"boolean"!=typeof f&&"number"!=typeof f;if(x&&f&&w&&_.indexOf(y)<0&&("string"!=typeof b||"[object Array]"!==y)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,f,qk(qk({},t),{},{ns:c})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");return o?(m.res=S,m):S}if(a){var E="[object Array]"===y,A=E?[]:{},T=E?v:g;for(var I in f)if(Object.prototype.hasOwnProperty.call(f,I)){var M="".concat(T).concat(a).concat(I);A[I]=this.translate(M,qk(qk({},t),{joinArrays:!1,ns:c})),A[I]===M&&(A[I]=f[I])}f=A}}else if(x&&"string"==typeof b&&"[object Array]"===y)(f=f.join(b))&&(f=this.extendTranslation(f,e,t,i));else{var C=!1,N=!1,O=void 0!==t.count&&"string"!=typeof t.count,R=n.hasDefaultValue(t),L=O?this.pluralResolver.getSuffix(d,t.count,t):"",P=t["defaultValue".concat(L)]||t.defaultValue;!this.isValidLookup(f)&&R&&(C=!0,f=P),this.isValidLookup(f)||(N=!0,f=l);var D=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,k=D&&N?void 0:f,B=R&&P!==f&&this.options.updateMissing;if(N||C||B){if(this.logger.log(B?"updateKey":"missingKey",d,u,l,B?P:f),a){var F=this.resolve(l,qk(qk({},t),{},{keySeparator:!1}));F&&F.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var U=[],z=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&z&&z[0])for(var G=0;G<z.length;G++)U.push(z[G]);else"all"===this.options.saveMissingTo?U=this.languageUtils.toResolveHierarchy(t.lng||this.language):U.push(t.lng||this.language);var j=function(e,n,i){var o=R&&i!==f?i:k;r.options.missingKeyHandler?r.options.missingKeyHandler(e,u,n,o,B,t):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(e,u,n,o,B,t),r.emit("missingKey",e,u,n,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?U.forEach((function(e){r.pluralResolver.getSuffixes(e,t).forEach((function(n){j([e],l+n,t["defaultValue".concat(n)]||P)}))})):j(U,l,P))}f=this.extendTranslation(f,e,t,m,i),N&&f===l&&this.options.appendNamespaceToMissingKey&&(f="".concat(u,":").concat(l)),(N||C)&&this.options.parseMissingKeyHandler&&(f="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(u,":").concat(l):l,C?f:void 0):this.options.parseMissingKeyHandler(f))}return o?(m.res=f,m):f}},{key:"extendTranslation",value:function(e,t,n,i,r){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,qk(qk({},this.options.interpolation.defaultVariables),n),i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(qk(qk({},n),{interpolation:qk(qk({},this.options.interpolation),n.interpolation)}));var a,s="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var l=e.match(this.interpolator.nestingRegexp);a=l&&l.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=qk(qk({},this.options.interpolation.defaultVariables),c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),s){var u=e.match(this.interpolator.nestingRegexp);a<(u&&u.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];return r&&r[0]===i[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(i[0]," in key: ").concat(t[0])),null):o.translate.apply(o,i.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,h="string"==typeof d?[d]:d;return null!=e&&h&&h.length&&!1!==n.applyPostProcessor&&(e=Vk.handle(h,e,t,this.options&&this.options.postProcessPassResolved?qk({i18nResolved:i},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,i,r,o,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),c=l.key;n=c;var u=l.namespaces;a.options.fallbackNS&&(u=u.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,h=d&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),p=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,m=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);u.forEach((function(e){a.isValidLookup(t)||(o=e,!Yk["".concat(m[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(Yk["".concat(m[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(m.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach((function(n){if(!a.isValidLookup(t)){r=n;var o,l=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(l,c,n,e,s);else{var u;d&&(u=a.pluralResolver.getSuffix(n,s.count,s));var m="".concat(a.options.pluralSeparator,"zero");if(d&&(l.push(c+u),h&&l.push(c+m)),p){var f="".concat(c).concat(a.options.contextSeparator).concat(s.context);l.push(f),d&&(l.push(f+u),h&&l.push(f+m))}}for(;o=l.pop();)a.isValidLookup(t)||(i=o,t=a.getResource(n,e,o,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:i,usedLng:r,usedNS:o}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,i):this.resourceStore.getResource(e,t,n,i)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),n}(Ak);function Zk(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Xk=function(){function e(t){sk(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ek.create("languageUtils")}return ck(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Zk(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Zk(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Zk(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var i=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(i)||(t=i)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var i=n.getLanguagePartFromCode(e);if(n.isSupportedCode(i))return t=i;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(i))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,i=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],o=function(e){e&&(n.isSupportedCode(e)?r.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),i.forEach((function(e){r.indexOf(e)<0&&o(n.formatLanguageCode(e))})),r}}]),e}(),Kk=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Qk={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},eB=["v1","v2","v3"],tB={zero:0,one:1,two:2,few:3,many:4,other:5};function nB(){var e={};return Kk.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:Qk[t.fc]}}))})),e}var iB=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};sk(this,e),this.languageUtils=t,this.options=n,this.logger=Ek.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=nB()}return ck(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getRule(e,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((function(e,t){return tB[e]-tB[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):i.numbers.map((function(i){return t.getSuffix(e,i,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.getRule(e,n);return i?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(i.select(t)):this.getSuffixRetroCompatible(i,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,i=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[i];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));var o=function(){return n.options.prepend&&r.toString()?n.options.prepend+r.toString():r.toString()};return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?"_plural_".concat(r.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}},{key:"shouldUseIntlApi",value:function(){return!eB.includes(this.options.compatibilityJSON)}}]),e}();function rB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function oB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rB(Object(n),!0).forEach((function(t){eO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var aB=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};sk(this,e),this.logger=Ek.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return ck(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:kk,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Pk(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Pk(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?Pk(t.nestingPrefix):t.nestingPrefixEscaped||Pk("$t("),this.nestingSuffix=t.nestingSuffix?Pk(t.nestingSuffix):t.nestingSuffixEscaped||Pk(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,i){var r,o,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(e.indexOf(s.formatSeparator)<0){var r=Rk(t,l,e);return s.alwaysFormat?s.format(r,void 0,n,oB(oB(oB({},i),t),{},{interpolationkey:e})):r}var o=e.split(s.formatSeparator),a=o.shift().trim(),c=o.join(s.formatSeparator).trim();return s.format(Rk(t,l,a),c,n,oB(oB(oB({},i),t),{},{interpolationkey:a}))};this.resetRegExp();var d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,h=i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach((function(t){for(a=0;r=t.regex.exec(e);){var n=r[1].trim();if(void 0===(o=u(n)))if("function"==typeof d){var l=d(e,r,i);o="string"==typeof l?l:""}else if(i&&i.hasOwnProperty(n))o="";else{if(h){o=r[0];continue}s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),o=""}else"string"==typeof o||s.useRawValueToEscape||(o=Ik(o));var c=t.safeValue(o);if(e=e.replace(r[0],c),h?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,i,r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=oB({},o);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var i=e.split(new RegExp("".concat(n,"[ ]*{"))),r="{".concat(i[1]);e=i[0];var o=(r=this.interpolate(r,a)).match(/'/g),s=r.match(/"/g);(o&&o.length%2==0&&!s||s.length%2!=0)&&(r=r.replace(/'/g,'"'));try{a=JSON.parse(r),t&&(a=oB(oB({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(r)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var u=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=u.shift(),l=u,c=!0}if((i=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof i)return i;"string"!=typeof i&&(i=Ik(i)),i||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),i=""),c&&(i=l.reduce((function(e,t){return r.format(e,t,o.lng,oB(oB({},o),{},{interpolationkey:n[1].trim()}))}),i.trim())),e=e.replace(n[0],i),this.regexp.lastIndex=0}return e}}]),e}();function sB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function lB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sB(Object(n),!0).forEach((function(t){eO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cB(e){var t={};return function(n,i,r){var o=i+JSON.stringify(r),a=t[o];return a||(a=e(i,r),t[o]=a),a(n)}}var uB=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};sk(this,e),this.logger=Ek.create("formatter"),this.options=t,this.formats={number:cB((function(e,t){var n=new Intl.NumberFormat(e,t);return function(e){return n.format(e)}})),currency:cB((function(e,t){var n=new Intl.NumberFormat(e,lB(lB({},t),{},{style:"currency"}));return function(e){return n.format(e)}})),datetime:cB((function(e,t){var n=new Intl.DateTimeFormat(e,lB({},t));return function(e){return n.format(e)}})),relativetime:cB((function(e,t){var n=new Intl.RelativeTimeFormat(e,lB({},t));return function(e){return n.format(e,t.range||"day")}})),list:cB((function(e,t){var n=new Intl.ListFormat(e,lB({},t));return function(e){return n.format(e)}}))},this.init(t)}return ck(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=cB(t)}},{key:"format",value:function(e,t,n,i){var r=this;return t.split(this.formatSeparator).reduce((function(e,t){var o=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var i=e.split("(");t=i[0].toLowerCase().trim();var r=i[1].substring(0,i[1].length-1);"currency"===t&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):"relativetime"===t&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach((function(e){if(e){var t=bk(e.split(":")),i=t[0],r=t.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[i.trim()]||(n[i.trim()]=r),"false"===r&&(n[i.trim()]=!1),"true"===r&&(n[i.trim()]=!0),isNaN(r)||(n[i.trim()]=parseInt(r,10))}}))}return{formatName:t,formatOptions:n}}(t),a=o.formatName,s=o.formatOptions;if(r.formats[a]){var l=e;try{var c=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},u=c.locale||c.lng||i.locale||i.lng||n;l=r.formats[a](e,u,lB(lB(lB({},s),i),c))}catch(e){r.logger.warn(e)}return l}return r.logger.warn("there was no format function for ".concat(a)),e}),e)}}]),e}();function dB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function hB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dB(Object(n),!0).forEach((function(t){eO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pB(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=mk(e);if(t){var r=mk(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return pk(this,n)}}var mB=function(e){hk(n,e);var t=pB(n);function n(e,i,r){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return sk(this,n),o=t.call(this),Bk&&Ak.call(uk(o)),o.backend=e,o.store=i,o.services=r,o.languageUtils=r.languageUtils,o.options=a,o.logger=Ek.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=a.maxParallelReads||10,o.readingCalls=0,o.maxRetries=a.maxRetries>=0?a.maxRetries:5,o.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,a.backend,a),o}return ck(n,[{key:"queueLoad",value:function(e,t,n,i){var r=this,o={},a={},s={},l={};return e.forEach((function(e){var i=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&r.store.hasResourceBundle(e,t)?r.state[s]=2:r.state[s]<0||(1===r.state[s]?void 0===a[s]&&(a[s]=!0):(r.state[s]=1,i=!1,void 0===a[s]&&(a[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===l[t]&&(l[t]=!0)))})),i||(s[e]=!0)})),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}},{key:"loaded",value:function(e,t,n){var i=e.split("|"),r=i[0],o=i[1];t&&this.emit("failedLoading",r,o,t),n&&this.store.addResourceBundle(r,o,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var i,s,l,c,u,d;i=n.loaded,s=o,c=Ck(i,[r],Object),u=c.obj,d=c.k,u[d]=u[d]||[],l&&(u[d]=u[d].concat(s)),l||u[d].push(s),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]={});var t=n.loaded[e];t.length&&t.forEach((function(t){void 0===a[e][t]&&(a[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:a}):(this.readingCalls++,this.backend[n](e,t,(function(s,l){if(i.readingCalls--,i.waitingReads.length>0){var c=i.waitingReads.shift();i.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}s&&l&&r<i.maxRetries?setTimeout((function(){i.read.call(i,e,t,n,r+1,2*o,a)}),o):a(s,l)}))):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,i,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.split("|"),r=i[0],o=i[1];this.read(r,o,"read",void 0,void 0,(function(i,a){i&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(r," failed"),i),!i&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(r),a),t.loaded(e,i,a)}))}},{key:"saveMissing",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,i,null,hB(hB({},o),{},{isUpdate:r})),e&&e[0]&&this.store.addResource(e[0],t,n,i))}}]),n}(Ak);function fB(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===XN(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===XN(e[2])||"object"===XN(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,i){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function gB(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function vB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function yB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vB(Object(n),!0).forEach((function(t){eO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _B(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=mk(e);if(t){var r=mk(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return pk(this,n)}}function bB(){}function xB(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}))}var wB=function(e){hk(n,e);var t=_B(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(sk(this,n),e=t.call(this),Bk&&Ak.call(uk(e)),e.options=gB(i),e.services={},e.logger=Ek,e.modules={external:[]},xB(uk(e)),r&&!e.isInitialized&&!i.isClone){if(!e.options.initImmediate)return e.init(i,r),pk(e,uk(e));setTimeout((function(){e.init(i,r)}),0)}return e}return ck(n,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var i=fB();function r(e){return e?"function"==typeof e?new e:e:null}if(this.options=yB(yB(yB({},i),this.options),gB(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=yB(yB({},i.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var o;this.modules.logger?Ek.init(r(this.modules.logger),this.options):Ek.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"undefined"!=typeof Intl&&(o=uB);var a=new Xk(this.options);this.store=new Hk(this.options.resources,this.options);var s=this.services;s.logger=Ek,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new iB(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!o||this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format||(s.formatter=r(o),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new aB(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new mB(r(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];e.emit.apply(e,[t].concat(i))})),this.modules.languageDetector&&(s.languageDetector=r(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=r(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new Jk(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];e.emit.apply(e,[t].concat(i))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.format=this.options.interpolation.format,n||(n=bB),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var c=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var u=["addResource","addResources","addResourceBundle","removeResourceBundle"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var d=Tk(),h=function(){var t=function(t,i){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),d.resolve(i),n(t,i)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?h():setTimeout(h,0),d}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bB,i=n,r="string"==typeof e?e:this.language;if("function"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return i();var o=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};if(r)a(r);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(o,this.options.ns,(function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),i(e)}))}else i(null)}},{key:"reloadResources",value:function(e,t,n){var i=Tk();return e||(e=this.languages),t||(t=this.options.ns),n||(n=bB),this.services.backendConnector.reload(e,t,(function(e){i.resolve(),n(e)})),i}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Vk.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var i=Tk();this.emit("languageChanging",e);var r=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},o=function(o){e||o||!n.services.languageDetector||(o=[]);var a="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);a&&(n.language||r(a),n.translator.language||n.translator.changeLanguage(a),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(a)),n.loadResources(a,(function(e){!function(e,o){o?(r(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,i.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(e,t,n){var i=this,r=function e(t,r){var o;if("object"!==XN(r)){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];o=i.options.overloadTranslationOptionHandler([t,r].concat(s))}else o=yB({},r);o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns,o.keyPrefix=o.keyPrefix||n||e.keyPrefix;var c=i.options.keySeparator||".",u=o.keyPrefix?"".concat(o.keyPrefix).concat(c).concat(t):t;return i.t(u,o)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var a=function(e,n){var i=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===i||2===i};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(i,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!a(i,e)||r&&!a(o,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,i=Tk();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){i.resolve(),t&&t(e)})),i):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=Tk();"string"==typeof e&&(e=[e]);var i=this.options.preload||[],r=e.filter((function(e){return i.indexOf(e)<0}));return r.length?(this.options.preload=i.concat(r),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bB,r=yB(yB(yB({},this.options),t),{isClone:!0}),o=new n(r);void 0===t.debug&&void 0===t.prefix||(o.logger=o.logger.clone(t));var a=["store","services","language"];return a.forEach((function(t){o[t]=e[t]})),o.services=yB({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new Jk(o.services,o.options),o.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];o.emit.apply(o,[e].concat(n))})),o.init(r,i),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(Ak);eO(wB,"createInstance",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new wB(e,t)}));var SB=wB.createInstance();SB.createInstance=wB.createInstance;var EB,AB=SB.createInstance;SB.init,SB.loadResources,SB.reloadResources,SB.use,SB.changeLanguage,SB.getFixedT,SB.t,SB.exists,SB.setDefaultNamespace,SB.hasLoadedNamespace,SB.loadNamespaces,SB.loadLanguages;EB=JSON.parse('{"yes":"Si","no":"No","confirm":"Conferma","apply":"Applica","cancel":"Annulla","show":"Mostra","hide":"Nascondi","send":"Invia","close":"Chiudi","edit":"Modifica","delete":"Elimina","loading":"Caricamento","expand":"Espandi","collapse":"Riduci","fullscreenEnter":"Passa a schermo intero","fullscreenExit":"Esci da schermo intero","center":"Centro","bottom":"In basso","hidden":"Nascosto","day":"Giorno","month":"Mese","year":"Anno","dayPlaceholder":"GG","monthPlaceholder":"MM","yearPlaceholder":"AAAA","createdAt":"Data creazione","selected":"Selezionati","page":"pagina","actions":"Azioni","next":"Successivo","all":"Tutti","copied":"Copiato!","today":"Oggi","yesterday":"Ieri","date":"Data di nascita","last_7_days":"Ultimi 7 giorni","last_30_days":"Ultimi 30 giorni","previous":"Precedente","placeholder":"Fai una domanda","copy":"Copia","copyRawCode":"Copia codice sorgente","copyToClipboard":"Copia negli appunti","showOriginalText":"Mostra originale","showTranslatedText":"Mostra traduzione","exactPosition":"Posizione esatta","uncertain":"Incertezza","question":"Domanda","nothingFound":"Nessun risultato","venue":"Luogo","searchVenue":"Cerca luogo...","privacyPolicy":"Informativa sulla privacy","popularLanguages":"Popolari","allLanguages":"Tutte le lingue","memoriBlockedTitle":"Bloccato","memoriBlockedUntil":"Agente bloccato fino al {{date}}","memoriBlockedAnon":"Attualmente \\"{{name}}\\" non può rispondere, torna qui il {{date}}","memoriBlockedReasonExceedChats":"perchè ha superato la soglia mensile di chat ammesse.","memoriBlockedGiverHelper":"Puoi sempre gestirlo in qualità di amministratore, ma altri utenti non potranno interrogarlo.","generatedByAI":"Risposta generata da IA, può talvolta generare informazioni non corrette","reasoning":"Ragionamento...","whyThisAnswer":"Perché questa risposta?","whyThisAnswerHelper":"Questa risposta è stata generata automaticamente da un\'intelligenza artificiale sulla base di questi contenuti verificati.","receiverLabel":"Assegnato a","missingData":"Informazioni mancanti","completionsEnabled":"IA evoluta, può rispondere con risposte generate automaticamente che talvolta potrebbero contenere informazioni non corrette","completionProviderDown":"Questo agente è integrato con una IA generativa di {{provider}}, ma al momento non è disponibile. Riprova più tardi.","completionProviderMajorOutage":"Questo agente è integrato con una IA generativa di {{provider}}, ma al momento non è disponibile. Non sarà possibile utilizzare questa funzionalità finché il servizio non viene ripristinato.","completionProviderPartialOutage":"Questo agente è integrato con una IA generativa di {{provider}}, ma sta riscontrando interruzioni parziali. Alcune funzionalità potrebbero non essere disponibili o funzionare in modo non ottimale.","completionProviderDegraded":"Questo agente è integrato con una IA generativa di {{provider}}, ma sta funzionando più lentamente del normale. Le risposte potrebbero richiedere più tempo o essere meno precise.","completionProviderFallbackName":"un provider esterno","completionProviderCheckStatusPage":"Vedi pagina di stato","boardOfExperts":"Gruppo di esperti","birthDate":"Data di nascita","birthDateHelper":"Ti chiediamo la data di nascita esclusivamente per abilitare o disabilitare le funzionalità che hanno restrizioni in base all\'età","underage":"Devi avere almeno {{age}} anni per registrarti.","underageTwinSession":"Devi avere almeno {{age}} anni per interagire con questo agente.","errorFetchingSession":"Errore durante il caricamento della sessione","errorGettingReferralURL":"Errore durante il caricamento del riferimento","errorReopeningSession":"Errore durante il riapertura della sessione","ageVerification":"Verifica dell\'età","ageVerificationText":"Per interagire con questo agente, devi aver almeno {{minAge}} anni.","nsfw":"NSFW: Questo agente contiene contenuti per adulti","deepThought":"Pensiero profondo","deepThoughtHelper":"Pensiero Profondo è una funzionalità avanzata delle AI che ti consentirà di poter sfruttare a pieno le tue conversazioni mantenendo memoria delle stesse. Le AI con Pensiero Profondo possono darti informazioni adattandosi a te e alle cose che condividerete insieme.","deepThoughtDisclaimerTitle":"Pensiero profondo abilitato","deepThoughtDisclaimer":"Pensiero Profondo è una funzionalità avanzata delle AI che ti consentirà di poter sfruttare a pieno le tue conversazioni mantenendo memoria delle stesse. Le AI con Pensiero Profondo possono darti informazioni adattandosi a te e alle cose che condividerete insieme.","deepThoughtPreDisclaimerUnlogged":"Accedi per abilitare Pensiero Profondo.","deepThoughtPreDisclaimerNotAllowed":"Pensiero Profondo è disabilitato poiché non hai acconsentito al suo utilizzo, puoi cambiare la tua scelta in qualsiasi momento nelle impostazioni del tuo account.","notEnoughCredits":"L\'autore di questo agente non ha abbastanza crediti per rispondere alla tua domanda.","confirmDialog":{"title":"Confermi di voler lasciare questa pagina?","message":"Le modifiche non salvate andranno perse."},"knownFacts":{"title":"Fatti noti","description":"Dettagli delle informazioni condivise tra te e {{memoriName}}","type":"Tipo","typeShortTerm":"Breve termine","typeLongTerm":"Lungo termine","typeHelper":"Tipi:\\n- Breve termine: questo fatto noto è sempre utilizzato durante le conversazioni\\n- Lungo termine: questo fatto noto è utilizzato durante le conversazioni solo se rilevante per la domanda corrente","text":"Testo","deleteSuccess":"Fatto noto eliminato","deleteConfirmTitle":"Elimina il fatto noto","deleteConfirmMessage":"Confermi di voler eliminare questo fatto noto?","deleteSelectedConfirmTitle":"Elimina i fatti noti selezionati","deleteSelectedConfirmMessage":"Confermi di voler eliminare i fatti noti selezionati?"},"auth":{"title":"Autenticazione","useRecoveryTokens":"Utilizza i token di recupero","tokens":"Token","addToken":"Aggiungi token","usePassword":"Utilizza la password","invalidCredentials":"Credenziali non valide","atLeast":"Almeno"},"widget":{"instruct":"Istruisci","test":"Prova","sound":"Suono","position":"Preferenze posizione","settings":"Impostazioni","share":"Condividi","shareChat":"Condividi chat","sendOnKeypress":"Premi Invio per inviare","sendOnClick":"Clicca su Invia","boardOfExperts":"Board di esperti","showExpertsInTheBoard":"Mostra esperti in questa board","expertsInTheBoard":"Esperti in questa board","goToIntegrationsToCustomizeAvatar":"Per personalizzare l\'avatar, vai a Condividimi e configura la pagina pubblica"},"exportChatHistory":{"exportPDF":"Esporta chat come PDF","exporting":"Esportazione in corso...","empty":"Nessuna cronologia chat da esportare","pdfNotSupported":"L\'esportazione PDF non è supportata in questo browser","success":"Chat esportata in PDF con successo","error":"Impossibile esportare la chat in PDF. Riprova."},"write_and_speak":{"micButtonPopover":"Premi il pulsante per parlare","micButtonPopoverListening":"Premi il pulsante per smettere di parlare","pageInstructExplanation":"Per insegnarmi nuove cose clicca sul pulsante ISTRUISCIMI per cominciare","pageTryMeExplanation":"Per parlare con me clicca sul pulsante INIZIAMO per cominciare","pagePrivacyExplanation":"Le conversazioni sono visibili all\'autore dell\'agente","downloadChat":"Scarica chat","pagePrivacyExplanationList":{"allConversations":"Tutte le conversazioni con questo agente sono visibili all\'autore dell\'agente","anonymousUser":"Per utenti anonimi: l\'autore vedrà il contenuto e l\'indirizzo IP","registeredUser":"Per utenti registrati: l\'autore vedrà il contenuto e il nome utente","contentAndUsername":"L\'autore può vedere il contenuto, il tuo nome utente e il tuo indirizzo IP","contentAndIpAddress":"L\'autore può vedere il contenuto e il tuo indirizzo IP","authorUsesInfo":"L\'autore utilizza queste informazioni per migliorare le funzionalità dell\'agente. Continuando, accetti queste condizioni."},"instructButton":"ISTRUISCIMI","tryMeButton":"INIZIAMO","resumeButton":"RIPRENDI","chatHistory":"Cronologia chat","chatHistoryDescription":"Mostra la cronologia chat con questo agente","loadingChatHistory":"Caricamento cronologia chat...","noChatHistoryAvailable":"Nessuna cronologia chat disponibile","noResultsFound":"Nessun risultato trovato per \\"{{searchText}}\\"","searchInChatHistory":"Cerca nella cronologia chat...","latestFirst":"Più recenti prima","oldestFirst":"Più vecchi prima","exportChat":"Esporta Chat","exportChatHistory":"Esporta la cronologia chat","exportChatHistoryMessage":"Vuoi esportare la cronologia chat?","chatBotButtonText":"CLICCA QUI PER APRIRE LA CHAT","conversationStartedLabel":"Conversazione avvenuta il","settingsHeaderLabel":"Configura qui se vuoi impostare una conversazione continua. Setta i secondi di silenzio prima dell\'invio.","continuousSpeechLabel":"Conversazione continua","continuousSpeechDisabled":"Conversazione continua disabilitata poichè l\'agente è in modalità muta","holdToSpeak":"Tieni premuto per parlare","releaseToEndListening":"Rilascia per smettere di parlare","pressAndHoldToSpeak":"Premi e tieni premuto per parlare","microphoneMode":"Modalità microfono","hideEmissionsLabel":"Nascondi testo emesso dall\'agente","secondsLabel":"Secondi","controlsPosition":"Posizione dei controlli","avatarControls":"Controlli Avatar","height":"Altezza","depth":"Profondità","avatarType":"Tipo Avatar","blob":"Blob","avatar3d":"Avatar 3D","zoomed":"Vicino","normal":"Normale","far":"Lontano","suggestions":"Usa le frecce per regolare l\'altezza dell\'avatar\\nUsa +/- per regolare la profondità dell\'avatar","enablePositionControls":"Abilita controlli posizione","tryMeHeaderLabel":"PROVA","unknownPosition":"Posizione sconosciuta","fieldPlace":"Indica la posizione (es \'Milano\')","showMapLinkFor":"Visualizza sulla mappa la posizione","useMyPosition":"Usa la mia posizione","myPosition":"Posizione corrente","updatingPosition":"Aggiorno la posizione...","placeNotFound":"Luogo sconosciuto!","requirePositionHelp":"Per parlare con {{name}} devi decidere se fornire o meno la tua posizione. Questo perchè diverse risposte che potrà fornirti potrebbero dipendere da dove ti trovi.","dontWantToProvidePosition":"Non voglio fornire la mia posizione","attachmentsLabel":"Arricchisci il tuo messaggio","iWantToTalkToIn":"Voglio parlare con {{name}} in","message":"messaggio","messages":"messaggi","page":"Pagina {{current}} di {{total}}"},"artifact":{"close":"Chiudi","size":"Dimensione","generated":"Generato","download":"Scarica","print":"Stampa","external":"Apri in una nuova finestra","type":"Tipo","fullscreen":"Schermo intero","exitFullscreen":"Esci da schermo intero","copy":"Copia","generatedAt":"Generato il","open":"Apri","code":"Codice","preview":"Anteprima","copied":"Copiato!","error":"Errore","generatingPdf":"Generazione PDF...","copying":"Copia in corso...","moreCopyOptions":"Altre opzioni di copia","copyAs":"Copia come","downloadAsMarkdown":"Scarica come Markdown","downloadRawMarkdownText":"Scarica testo markdown grezzo","downloadAsPdf":"Scarica come PDF","exportAsPdfDocument":"Esporta come documento PDF","downloadAsHtml":"Scarica come HTML","downloadFormattedHtml":"Scarica HTML formattato","viewMode":"Modalità Visualizzazione","codeMode":"Modalità Codice","refresh":"Aggiorna","share":"Condividi","downloadAsJson":"Scarica come JSON","downloadJsonData":"Scarica dati JSON","downloadAsPng":"Scarica come PNG","downloadPngImage":"Scarica immagine PNG","downloadAsJpeg":"Scarica come JPEG","downloadJpegImage":"Scarica immagine JPEG","downloadAsGif":"Scarica come GIF","downloadGifImage":"Scarica immagine GIF","downloadAsWebp":"Scarica come WebP","downloadWebpImage":"Scarica immagine WebP","copyAsSvg":"Copia come SVG","copySvgSourceCode":"Copia codice sorgente SVG","copyAsPlainText":"Copia come testo normale","copyAsText":"Copia come testo","copyAsLanguage":"Copia come {{language}}","copyLanguageCode":"Copia codice {{language}}","copyWithoutSyntaxHighlighting":"Copia senza evidenziazione sintassi","copyTextContent":"Copia contenuto testo","pdfExportNotSupported":"L\'esportazione PDF non è supportata in questo browser","popupBlocked":"Popup bloccato! Abilita i popup per stampare.","safariPdfInstructions":"Esportazione PDF aperta in una nuova finestra. Usa Cmd+P (Mac) o Ctrl+P (Windows) per stampare e salvare come PDF."},"media":{"title":"Titolo","editAttributes":"Modifica attributi media","uploadMimeTypeNotAllowed":"Il tipo di file non è permesso","uploadSizeLimitMessage":"Il file caricato è troppo grande (max {{size}}MB)","uploadWrongResolutionMessage":"La risoluzione deve essere {{width}}x{{height}} pixel","memoriNameAlreadyUsed":"Hai già un Agente con questo nome","uploadHelperImages":"Caricare un file con estensione png, jpg, jpeg o gif e con dimensione massima di {{size}}MB","uploadHelper":"Caricare un file di dimensione massima di {{size}}MB","uploadError":"Errore nel caricamento","square":"quadrato","scaleRatio":"Proporzioni","addMediaLabel":"Aggiungi media","insertThisMediaMsg":"Inserisci questi media","mediaUploadMessage":"Clicca per caricare un nuovo media","addLinkLabel":"Aggiungi un link","linkKey":"URL","linkValue":"Titolo link","insertThisLink":"Inserisci un link a {{url}} con titolo {{title}}"},"upload":{"loginRequired":"Login richiesto","pastedText":"testo-copiato","uploadNotification":"Upload Fallito","loginRequiredDescription":"Per caricare immagini, devi prima accedere","uploadFiles":"Carica file ({{shortcut}}+O per aprire il selettore file)","uploadFilesWithShortcut":"{{shortcut}}+O per aprire il selettore file","uploadImages":"Carica immagini","lastDocumentSlot":"Carica ultimo documento","uploadDocuments":"Carica documenti","maxDocumentsReached":"Puoi caricare fino a {{max}} documenti","replace":"Sostituisci documento","maxImagesReached":"Puoi caricare fino a {{max}} immagini","apiClientNotConfigured":"Client API non configurato correttamente per il caricamento di media","fileReadingFailed":"Lettura del file fallita","uploadFailed":"Caricamento fallito","uploadSuccess":"Caricamento riuscito","remaining":"rimanenti","maxReached":"Limite raggiunto","titleImage":"Titolo immagine: {{title}}","titleImageUpload":"Carica immagini","titleHelp":"Aggiungi un titolo descrittivo per aiutare l\'AI a fornire risposte più appropriate.","titlePlaceholder":"Inserisci il titolo dell\'immagine","uploadSuccessDescription":"Il file è stato caricato con successo","partialUpload":"Solo {{uploaded}} immagini su {{total}} immagini saranno caricate. Massimo {{max}} immagini consentite.","cancel":"Annulla","dragAndDropFiles":"Trascina qui i file per aggiungerli alla chat","pasteMaxAttachmentsReached":"Massimo {{max}} allegati. Rimuovine uno per aggiungere questo come file.","pasteContentTooLong":"Il testo incollato è troppo lungo (max {{size}}KB). Accorcialo o dividilo.","pasteContentExceedsLimit":"Il contenuto incollato supera il limite di dimensione. Prova ad accorciare il testo o a dividerlo in parti più piccole.","pasteAddedAsAttachment":"Testo incollato aggiunto come allegato","filesNotAddedMaxAllowed":"{{count}} file non aggiunto/i (massimo {{max}} file consentiti).","documentsNotAddedMaxAllowed":"{{count}} documento/i non aggiunto/i (massimo {{max}} file consentiti).","imagesNotAddedMaxAllowed":"{{count}} immagine/i non aggiunta/e (massimo {{max}} file consentiti).","documentsNotAddedContextSize":"{{count}} documento/i non aggiunto/i (limite dimensione contesto)."},"gamification":{"level":"Livello","points":"punti","memoriReachedLevel":"è diventato più evoluto ed ha raggiunto il livello","levelGoToStatistics":"{{memori}} è al livello {{level}} con {{points}} punti. Clicca per andare alle statistiche.","congratulationsNewLevel":"Congratulazioni, hai raggiunto un nuovo livello!","congratulationsNewLevelDescription":"Il tuo agente è diventato più evoluto con {{points}} punti, guarda le","statistics":"statistiche"},"login":{"login":"Accedi","logout":"Esci","userNameRequired":"Il nome utente è obbligatorio","userName":"Nome utente","userNamePlaceholder":"Inserisci il nome utente","user":"Utente","loggedDrawerTitle":"Ciao, {{name}}!","loginDrawerTitle":"Accedi","signupDrawerTitle":"Registrati","newUserSignUp":"Sei un nuovo utente?","signUp":"Registrati!","alreadyHaveAnAccount":"Hai già un account?","backToLogin":"Torna al login","registrationDisabled":"La registrazione è disabilitata.","contactAdmin":"Contatta l\'amministratore per richiedere l\'accesso","userNameOrEmail":"Nome utente o email","email":"Email","emailFormatError":"Per favore, inserisci una mail valida","username":"Nome utente","usernameContainsReservedWord":"Il nome utente contiene una parola riservata, per favore cambia il nome utente","usernameFormatError":"Il nome utente deve essere lungo almeno 3 caratteri e può contenere solo lettere, numeri e _","otpCode":"Codice di verifica","resendVerificationCode":"Invia di nuovo","resentVerificationCode":"Codice di verifica inviato! Controlla la tua mail.","welcomeTitle":"Bentornato","welcomeDescription":"Inserisci il tuo codice di verifica a 4 cifre per continuare al tuo account","otpTitle":"Inserisci il codice di verifica","otpDescription":"Inserisci il codice a 4 cifre che hai generato nel tuo account","otpStep1":"Clicca il pulsante qui sotto per aprire il tuo account","otpStep2":"Genera un codice di verifica a 4 cifre (valido per 60 secondi)","otpStep3":"Torna qui e inserisci il codice","startOtpLogin":"Inizia verifica","generateOtp":"Genera codice","otpTimer":"Il codice scade tra {{seconds}} secondi","otpInvalidFormat":"Inserisci un codice valido a 4 cifre","otpInvalid":"Codice di verifica non valido","otpError":"Errore nella validazione del codice. Riprova.","otpSuccess":"Login effettuato con successo!","otpEmailTitle":"Inserisci la tua email","otpEmailDescription":"Inserisci il tuo indirizzo email per ricevere un codice di verifica","otpCodeDescription":"Inserisci il codice a 4 cifre inviato a {{email}}","emailPlaceholder":"Inserisci la tua email","sendOtp":"Invia codice","resendOtp":"Invia di nuovo","resending":"Invio in corso...","backToEmail":"Torna all\'email","otpSent":"Codice di verifica inviato!","otpResent":"Codice reinviato con successo!","otpSendError":"Errore nell\'invio del codice. Riprova.","emailRequired":"Email richiesta","emailInvalid":"Inserisci un indirizzo email valido","otpNotFound":"Codice di verifica non trovato","otpExpired":"Il codice di verifica è scaduto","otpMissing":"Il codice di verifica è richiesto","otpSuccessMessage":"Verifica completata! Reindirizzamento...","otpSuccessDescription":"Il tuo account è stato verificato con successo. Sarai reindirizzato a breve.","otpHelp":"Inserisci il codice a 4 cifre dalla tua email","emailHelp":"Ti invieremo un codice di verifica","userFetchError":"Errore nel caricamento dei dati utente. Riprova.","otpStep1Title":"Inserisci Email","otpStep2Title":"Controlla Email","otpStep3Title":"Inserisci Codice","featureFast":"Veloce","featureSecure":"Sicuro","featureMobile":"Mobile","quickActions":"Azioni rapide","verified":"Verificato","termsStatus":"Stato dei termini","enabled":"Abilitato","disabled":"Disabilitato","advancedFeatures":"Funzionalità avanzate","help":"Aiuto","editProfile":"Modifica profilo","notifications":"Notifiche","logoutConfirm":"Sei sicuro di voler uscire?","comingSoon":"Presto disponibile!","accountOverview":"Panoramica account","notSet":"Non impostato","accepted":"Accettato","password":"Password","newPassword":"Nuova password","confirmPassword":"Conferma la password","currentPassword":"Password attuale","passwordMatchingError":"Le password non coincidono.","passwordFormatError":"La password deve essere lunga almeno 8 caratteri e contenere almeno un numero, una lettera maiuscola, una minuscola e un simbolo","pwdWeak":"Debole","pwdAcceptable":"Accettabile","pwdStrong":"Forte","mustChangePassword":"Devi cambiare la password","passwordChange":"Cambio password","emailChange":"Cambio email","avatarChange":"Cambio avatar","underage":"Devi avere almeno {{age}} anni per registrarti.","optional":"opzionale","birthDate":"Data di nascita","birthDateHelper":"Ti chiediamo la data di nascita esclusivamente per abilitare o disabilitare le funzionalità che hanno restrizioni in base all\'età","missingData":"Informazioni mancanti","missingDataHelper":"Sappiamo che questo è un po\' fastidioso, ma abbiamo bisogno di alcune informazioni in più per completare la tua registrazione.","goToAccountToChangeYourPreferences":"Puoi cambiare la tua scelta in qualsiasi momento dalla tua pagina Account.","deepThoughtExplaination":"Pensiero Profondo è una funzionalità avanzata delle AI che ti consentirà di poter sfruttare a pieno le tue conversazioni mantenendo memoria delle stesse. Le AI con Pensiero Profondo possono darti informazioni adattandosi a te e alle cose che condividerete insieme. Consenti all\'autore dell\'agente di contattarti per offerte commerciali riguardanti prodotti su cui hai espresso interesse.","tnCAndPPAcceptedHelper":"Dall\'ultimo accesso, i T&C e l\'Informativa sulla privacy sono stati modificati. Si prega di accettarle, altrimenti non sarà possibile apportare modifiche ai propri gemelli. Puoi sempre cancellare il tuo account nella pagina del tuo profilo utente.","privacyLabel":"Ho letto e accettato l\'","privacyAndCookiePolicy":"informativa sui cookie e sulla privacy","and":"e","termsOfService":"i termini del servizio","pAndCUAccepted":"Accetto le condizioni di utilizzo relative a Pensiero Profondo","editAccount":"Modifica account","save":"Salva","successfullyLoggedIn":"{{username}} ha effettuato l\'accesso con successo"},"chatLogs":{"atLeast":"Almeno {{count}} messaggi","anyMessage":"Qualunque messaggio","atLeast2":"Almeno 2 messaggi","atLeast3":"Almeno 3 messaggi","atLeast5":"Almeno 5 messaggi","atLeast10":"Almeno 10 messaggi","atLeast15":"Almeno 15 messaggi","atLeast20":"Almeno 20 messaggi","customMinimumMessages":"Personalizza il numero di messaggi"},"success":"Operazione andata a buon fine","Error":"Errore","internal server error":"Ops, scusa... qualcosa è andato storto nel server","error":"Errore","error.loading":"Errore durante il caricamento dei contenuti.","error.notFound":"Ops, non abbiamo trovato ciò che cercavi.","error.generic":"Ops, qualcosa è andato storto.","error.serverNotResponding":"Stiamo facendo manutenzione o rilasciando aggiornamenti. Riprova più tardi.","error.unprocessableEntity":"Errore durante il salvataggio dei dati. Ricontrolla i dati inseriti.","error.goBackTo":"Prova a tornare alla","error.reloadPage":"Ricarica la pagina","error.tryAgain":"Riprova","error.unauthorized":"Non sei autorizzato a visualizzare questo contenuto.","errors":{"TENANT_NOT_FOUND":"Tenant non trovato","TENANT_REGISTRATION_DISABLED":"La registrazione su questa piattaforma è disabilitata","TENANT_MISSING_NAME":"Tenant: nome mancante","TENANT_MAX_USERS_REACHED":"Numero massimo di utenti raggiunto","TENANT_MAX_ADMINS_REACHED":"Numero massimo di utenti amministratori raggiunto","TENANT_ALREADY_EXISTS":"Tenant già esistente","TENANT_MISSING_DESCRIPTION":"Tenant: descrizione mancante","TENANT_CANT_SET_COMPLETION_PROVIDER":"Tenant: non abilitato a gestire il provider di completamento","TENANT_INVALID_TYPE":"Tenant: tipo non valido","USER_NOT_CONFIRMED":"Utente ancora non confermato","USER_NOT_FOUND":"Utente non trovato","USER_OR_PASSWORD_INVALID":"Utente o password non validi","USER_MUST_CHANGE_PASSWORD":"Devi cambiare la password","USER_MUST_ENTER_VERIFICATION_CODE":"Devi inserire il codice di verifica","USER_MISSING_TENANT":"Utente: tenant mancante","USER_MISSING_NAME":"Utente: nome mancante","USER_MISSING_PASSWORD":"Utente: password mancante","USER_MISSING_EMAIL":"Utente: email mancante","USER_MISSING_VERIFICATION_CODE":"Utente: codice di verifica mancante","USER_NAME_ALREADY_USED":"Nome utente già in uso","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"La password non rispetta le regole di sicurezza","USER_EMAIL_ALREADY_USED":"Email già in uso","USER_EMAIL_INVALID":"Email non valida","USER_VERIFICATION_CODE_INVALID":"Codice di verifica non valido","USER_MISSING_NAME_OR_EMAIL":"Nome utente o email mancante","USER_NAME_INVALID":"Nome utente non valido","USER_HAS_ONE_OR_MORE_MEMORI":"L\'utente ha uno o più Agenti","USER_MISSING_NEW_PASSWORD":"Utente: nuova password mancante","USER_NOTHING_TO_DO":"Niente da fare","USER_CANT_CREATE_MEMORI":"Utente non abilitato a creare Agenti","USER_MAX_MEMORI_REACHED":"Massimo numero di Agenti raggiunto","USER_TOO_MANY_ATTEMPTS":"Troppi tentativi","USER_MUST_ACCEPT_TNC_AND_PP":"Devi accettare i termini e le condizioni","USER_BIRTH_DATE_CANT_BE_CHANGED":"Data di nascita non può essere cambiata","USER_CANT_SET_COMPLETION_PROVIDER":"Utente: non abilitato a gestire il provider di completamento","USER_CANT_ENABLE_DEEP_THOUGHT":"Utente: non abilitato a gestire Pensiero Profondo","USER_CANT_ENABLE_DCM_INTEGRATION":"Utente: non abilitato a gestire l\'integrazione con DCM","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"Utente: non abilitato a gestire la concatenazione o il gruppo di esperti","USER_CREATION_BILLING_DENIED_PERMISSION":"Non hai crediti sufficienti per creare un agente","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"L\'utente ha una o più configurazioni completions","USER_CANT_BE_DELETED":"Utente non può essere cancellato","USER_ORDER_BY_INVALID":"Ordine non valido","MEMORI_NOT_FOUND":"Agente non trovato","MEMORI_NOT_ACCESSIBLE":"Agente non accessibile","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Solo il proprietario può cambiare il tag e il pin","SESSION_NOT_FOUND":"Sessione non trovata","SESSION_IS_NOT_ADMINISTRATIVE":"Sessione non amministrativa","SESSION_EXPIRED":"Sessione scaduta","SESSION_OTP_NOT_FOUND":"Codice di verifica non trovato","SESSION_OTP_EXPIRED":"Il codice di verifica è scaduto","SESSION_MISSING_TEMPORARY_TOKEN":"Il codice di verifica è richiesto","MEMORI_MISSING_CONFIGURATION":"Agente: configurazione mancante","MEMORI_CONFIGURATION_NOT_FOUND":"Agente: configurazione non trovata","MEMORI_INVALID_PRIVACY_TYPE":"Agente: tipo di privacy non valido","MEMORI_MISSING_PASSWORD":"Agente: password mancante","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Agente: numero totale di token di recupero non valido","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Agente: numero minimo di token di recupero non valido","MEMORI_INVALID_VOICE_TYPE":"Agente: tipo di voce non valido","MEMORI_MISSING_NAME":"Agente: nome mancante","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Agente: password o token di recupero mancanti","MEMORI_INVALID_ID":"Agente: ID non valido","MEMORI_NAME_ALREADY_USED":"Nome Agente già in uso","MEMORI_INVALID_PIN":"Agente: PIN non valido","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Agente: cambio TAG e PIN richiedono operazioni separate","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Agente: password non richiesta su agente pubblico","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Pensiero Profondo richiede l\'abilitazione delle completions","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"Il gruppo di esperti richiede l\'abilitazione delle completions","MEMORI_INVALID_COMPLETION_CONFIG":"Agente: configurazione completions non valida","MEMORI_MACRO_FUNCTIONS_REQUIRES_COMPLETIONS":"Macro funzioni richiede l\'abilitazione delle completions","MEMORI_BLOCKING_DATE_MISSING_OR_WRONG":"Agente: data di blocco mancante o non valida","MEMORI_LIST_FILTER_NOT_SPECIFIED":"Agente: filtro non specificato","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Trasferimento: utente di destinazione mancante","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Trasferimento: ID utente di destinazione non valido","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Trasferimento: dati utente di destinazione non validi","MEMORI_TRANSFER_NOTHING_TO_DO":"Trasferimento: alcuna operazione da fare","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Agente: la configurazione non può essere modificata","MEMORI_MISSING_NEW_PASSWORD":"Agente: nuova password mancante","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Formato non valido data a partire da","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Formato non valido data fino a","MEMORI_SESSION_NOT_FOUND":"Sessione non trovata","MEMORI_SESSION_DOESNT_ACCEPT_MEDIA":"Sessione non accetta media","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"Agente: funzionalità richiede un abbonamento","INTEGRATION_NOT_FOUND":"Integrazione non trovata","INTEGRATION_INVALID_TYPE":"Tipo integrazione non valido","INTEGRATION_ALREADY_EXISTS":"Integrazione già esistente","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Agenti non pubblici non possono essere integrati","INTEGRATION_MISSING_INVOCATION_TEXT":"Integrazione: testo di invocazione mancante","INTEGRATION_MISSING_DEVICE_EMAILS":"Integrazione: email del dispositivo mancante","INTEGRATION_MEMORI_IS_EMPTY":"Agenti vuoti non possono essere integrati","INTEGRATION_MISSING_PRIVACY_POLICY":"Integrazione: privacy policy mancante","INTEGRATION_MISSING_CATEGORY":"Categoria integrazione mancante","INTEGRATION_MISSING_DESCRIPTION":"Descrizione integrazione mancante","INTEGRATION_INVALID_INVOCATION_TEXT":"Testo di invocazione non valido","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home non più disponibile","UPLOAD_REQUIRES_MULTIPART_ENCODING":"L\'upload richiede l\'encoding multipart","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Upload: manca il content type boundary","UPLOAD_MAX_LENGTH_EXCEEDED":"Upload: dimensione massima superata","UPLOAD_FILE_IS_EMPTY":"Upload: file vuoto","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Upload: tipo di file o firma non validi","UPLOAD_MISSING_FILE_NAME":"Upload: nome file mancante","UPLOAD_INVALID_MEMORY_ID":"Upload: ID contenuto non valido","UPLOAD_MISSING_FILE_CONTENT":"Upload: contenuto file mancante","ASSET_NOT_FOUND":"Asset non trovato","ASSET_NOT_ACCESSIBLE":"Asset non accessibile","ASSET_MISSING_SESSION_ID":"Asset: ID sessione mancante","ASSET_INVALID_FILE_NAME":"Asset: nome file non valido","ASSET_MALWARE_SCAN_THREATS_FOUND":"Asset: la scansione ha trovato minaccia malware","INVITATION_NOT_FOUND":"Invito non trovato","INVITATION_NOT_ACCESSIBLE":"Invito non accessibile","INVITATION_ALREADY_ACCEPTED":"Invito già accettato","INVITATION_ALREADY_REJECTED":"Invito già rifiutato","INVITATION_MISSING_DESTINATION_EMAIL":"Invito: email di destinazione mancante","INVITATION_DESTINATION_EMAIL_INVALID":"Invito: email di destinazione non valida","INVITATION_MISSING_TAG":"Invito: tag mancante","INVITATION_MISSING_PIN":"Invito: PIN mancante","INVITATION_INVALID_PIN":"Invito: PIN non valido","INVITATION_INVALID_TYPE":"Invito: tipo non valido","INVITATION_MISSING_DESTINATION_NAME":"Invito: nome destinatario mancante","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Invito: tag e pin non possono essere cambiati","INVITATION_CANT_BE_CHANGED":"Invito: non può essere modificato","ACTIONLOG_INVALID_USER_ID":"ID utente non valido","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Data a partire da: formato non valido","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Data fino a: formato non valido","ACTIONLOG_INVALID_MEMORI_ID":"ID agente non valido","CONSUMPTIONLOG_INVALID_TYPE":"Tipo di log non valido","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Data a partire da: formato non valido","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Data fino a: formato non valido","CONSUMPTIONLOG_INVALID_USER_ID":"ID utente non valido","CONSUMPTIONLOG_INVALID_MEMORI_ID":"Memori ID non valido","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Notifiche: Periodo di estrazione chatlog non valido","BROADCAST_NOT_ALLOWED":"Broadcast non consentito","INVALID_NOTIFICATION_TYPE":"Tipo notifica non valido","NOTIFICATION_NOT_FOUND":"Notifica non trovata","INVALID_NOTIFICATION_FILTER":"Filtro notifica non valido","INVALID_NOTIFICATION_PERIOD":"Periodo notifica non valido","PROCESS_INVALID_TYPE":"Tipo di processo non valido","PROCESS_ALREADY_RUNNING":"Processo già in esecuzione","PROCESS_NOT_FOUND":"Processo non trovato","IMPORTCSV_MISSING_ROWS":"Importazione CSV: righe mancanti","IMPORTCSV_MISSING_CSV":"Importazione CSV: CSV mancante","IMPORTCSV_MISSING_SEPARATOR":"Importazione CSV: separatore mancante","IMPORTCSV_INVALID_SEPARATOR":"Importazione CSV: separatore non valido","IMPORTCSV_MISSING_HEADERS":"Importazione CSV: intestazioni mancanti","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Importazione CSV: separatore varianti titolo mancante","IMPORTCSV_INVALID_RECEIVER_ID":"Importazione CSV: ID receiver non valido","IMPORTCSV_INVALID_MEDIA_LINK":"Importazione CSV: link media non valido","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"Importazione CSV: titolo link non valido","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"Importazione CSV: encoding caratteri non rilevabile","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"Importazione CSV: impossibile importare in agenti segreti","IMPORTTXT_MISSING_ROWS":"Importazione TXT: righe mancanti","IMPORTTXT_INVALID_GRANULARITY":"Importazione TXT: granularità non valida","IMPORTTXT_INVALID_RECEIVER_ID":"Importazione TXT: ID receiver non valido","IMPORTTXT_INVALID_MEDIA_LINK":"Importazione TXT: link media non valido","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"Importazione TXT: titolo link non valido","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"Importazione TXT: encoding caratteri non rilevabile","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"Importazione TXT: impossibile importare in agenti segreti","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"Importazione TXT: limite importazione superato","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"Importazione TXT: importazione su GPT-4 richiede API key","IMPORTTXT_IMPORT_REQUIRES_PAYING":"Importazione TXT: importazione richiede un piano a pagamento","IMPORTTXT_BILLING_DENIED_PERMISSION":"Importazione TXT: non hai crediti sufficienti per l\'operazione","IMPORT_MISSING_ROWS":"Importazione: righe mancanti","IMPORT_CANT_IMPORT_TO_SECRET_MEMORI":"Importazione: impossibile importare in agenti segreti","IMPORTMEMORI_INVALID_MEMORI_SPECS":"Importazione MEMORI: specifiche agente non valide","IMPORT_MISSING_JSONL":"Importazione MEMORI: JSONL mancante","IMPORTMEMORI_INVALID_SPECS":"Importazione MEMORI: specifiche non valide","EXPORT_MISSING_PASSWORD":"Esportazione: password mancante","EXPORTCSV_MISSING_CSV_SPECS":"Esportazione CSV: specifiche CSV mancanti","EXPORTCSV_MISSING_SEPARATOR":"Esportazione CSV: separatore mancante","EXPORTCSV_INVALID_SEPARATOR":"Esportazione CSV: separatore non valido","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Esportazione CSV: separatore varianti titolo mancante","EXPORTCSV_MISSING_NEW_LINE_CHAR":"Esportazione CSV: carattere di nuova riga mancante","EXPORTCSV_INVALID_NEW_LINE_CHAR":"Esportazione CSV: carattere di nuova riga non valido","EXPORTCSV_MISSING_PASSWORD":"Esportazione CSV: password mancante","EXPORTJSONL_MISSING_JSONL_SPECS":"Esportazione JSONL: specifiche JSONL mancanti","EXPORTJSONL_MISSING_PLATFORM":"Esportazione JSONL: piattaforma mancante","EXPORTJSONL_INVALID_PLATFORM":"Esportazione JSONL: piattaforma non valida","EXPORTJSONL_MISSING_PASSWORD":"Esportazione JSONL: password mancante","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"Esportazione JSONL: esportazione richiede un piano a pagamento","ANALYSIS_MISSING_QUERY":"Analisi: query mancante","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Analisi: impossibile analizzare agenti segreti","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Analisi: corrispondenza query utente richiede Pensiero Profondo","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Assegnazione badge: credenziali errate o mancanti","BADGE_ASSIGNMENT_MISSING_REF_ID":"Assegnazione badge: ID ref mancante","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Assegnazione badge: esito non trovato","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Assegnazione badge: URL di asserzione mancante","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Assegnazione badge: URL badge mancante","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Assegnazione badge: URL issuer mancante","BADGE_ASSIGNMENT_INVALID_URL":"Assegnazione badge: URL non valido","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Assegnazione badge: destinatario mancante","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Assegnazione badge: tipo destinatario sconosciuto","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Assegnazione badge: identità destinatario mancante","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Assegnazione badge: tipo hash destinatario mancante","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Assegnazione badge: tipo hash destinatario sconosciuto","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Assegnazione badge: identità destinatario errata","BADGE_NOT_FOUND":"Badge non trovato","OUTCOME_NO_DCM_CONFIGURED":"Outcome: nessun DCM configurato","OUTCOME_USER_BADGES_DISABLED":"Outcome: badge utente disabilitati","COMPLETION_CONFIG_MISSING_NAME":"Configurazione completions: nome mancante","COMPLETION_CONFIG_MISSING_PROVIDER":"Configurazione completions: provider mancante","COMPLETION_CONFIG_MISSING_ENDPOINT":"Configurazione completions: endpoint mancante","COMPLETION_CONFIG_MISSING_API_KEY":"Configurazione completions: API key mancante","COMPLETION_CONFIG_MISSING_MODEL":"Configurazione completions: modello mancante","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Configurazione completions: almeno un tipo di completions deve essere specificato","COMPLETION_CONFIG_INVALID_NAME":"Configurazione completions: nome non valido","COMPLETION_CONFIG_INVALID_PURPOSE":"Configurazione completions: tipo di completions non valido","COMPLETION_CONFIG_INVALID_ENDPOINT":"Configurazione completions: endpoint non valido","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Configurazione completions: endpoint incoerente","COMPLETION_CONFIG_INVALID_PROVIDER":"Configurazione completions: provider non valido","COMPLETION_CONFIG_NOT_FOUND":"Configurazione completions: non trovata","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Configurazione completions: non accessibile","COMPLETION_CONFIG_NAME_RESERVED":"Configurazione completions: nome riservato","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Configurazione completions: nome già esistente","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Configurazione completions: cambiamento visibilità non consentito","COMPLETION_CONFIG_MISSING_MANDATORY_PREFIX":"Configurazione completions: prefisso obbligatorio mancante","COMPLETION_CONFIG_VISIBILITY_NOT_PERMITTED":"Configurazione completions: visibilità non consentita","COMPLETION_CONFIG_USE_AS_DEFAULT_NOT_PERMITTED":"Configurazione completions: uso come default non consentito","COMPLETION_CONFIG_USE_AS_DEFAULT_REQUIRES_TENANT_VISIBILITY":"Configurazione completions: uso come default richiede visibilità tenant","COMPLETION_CONFIG_CHARGEABLE_NOT_PERMITTED":"Configurazione completions: chargeable non consentito","COMPLETION_CONFIG_INVALID_APPLY_TO":"Configurazione completions: apply to non valido","COMPLETION_CONFIG_APPLY_TO_TENANT_NOT_ALLOWED":"Configurazione completions: apply to tenant non consentito","TRUSTED_APPLICATION_NOT_FOUND":"Applicazione trusted non trovata","TRUSTED_APPLICATION_NOT_ACCESSIBLE":"Applicazione trusted non accessibile","TRUSTED_APPLICATION_NAME_REQUIRED":"Applicazione trusted: nome richiesto","TRUSTED_APPLICATION_TOKEN_REQUIRED":"Applicazione trusted: token richiesto","TRUSTED_APPLICATION_NAME_ALREADY_EXISTS":"Applicazione trusted: nome già esistente","TRUSTED_APPLICATION_INVALID_TOKEN":"Applicazione trusted: token non valido"}}');var TB;TB=JSON.parse('{"yes":"Yes","no":"No","confirm":"Confirm","apply":"Apply","cancel":"Cancel","show":"Show","hide":"Hide","send":"Send","close":"Close","edit":"Edit","delete":"Delete","loading":"Loading","expand":"Expand","collapse":"Collapse","fullscreenEnter":"Enter fullscreen","fullscreenExit":"Exit fullscreen","center":"Center","bottom":"Bottom","hidden":"Hidden","day":"Day","all":"All","today":"Today","yesterday":"Yesterday","placeholder":"Ask a question","last_7_days":"Last 7 days","last_30_days":"Last 30 days","month":"Month","copied":"Copied!","year":"Year","dayPlaceholder":"DD","monthPlaceholder":"MM","yearPlaceholder":"YYYY","createdAt":"Creation date","date":"Birth date","selected":"Selected","page":"page","actions":"Actions","next":"Next","previous":"Previous","copy":"Copy","copyRawCode":"Copy raw code","copyToClipboard":"Copy to clipboard","showOriginalText":"Show original","showTranslatedText":"Show translation","exactPosition":"Exact position","uncertain":"Uncertain","question":"Question","nothingFound":"Nothing found","venue":"Venue","searchVenue":"Search venue...","privacyPolicy":"Privacy policy","popularLanguages":"Popular","allLanguages":"All Languages","memoriBlockedTitle":"Blocked","memoriBlockedUntil":"Agent blocked until {{date}}","memoriBlockedAnon":"Currently \\"{{name}}\\" can\'t answer, come back here on {{date}}","memoriBlockedReasonExceedChats":"because it has exceeded the monthly threshold of allowed chats.","memoriBlockedGiverHelper":"You can still manage it as administrator, but other users will not be able to interact with it.","generatedByAI":"Answer generated by AI, may occasionally generate incorrect informations","reasoning":"Reasoning...","whyThisAnswer":"Why this answer?","whyThisAnswerHelper":"This answer was generated automatically by an artificial intelligence based on these verified contents.","receiverLabel":"Assigned to","completionsEnabled":"Advanced AI, can respond with automatically generated answers that may sometimes contain incorrect information","completionProviderDown":"This agent is integrated with a generative AI from {{provider}}, but it is currently unavailable. Try again later.","completionProviderMajorOutage":"This agent is integrated with a generative AI from {{provider}}, but it is completely down. This feature will not be available until the service is restored.","completionProviderPartialOutage":"This agent is integrated with a generative AI from {{provider}}, but it is experiencing partial outages. Some features may be unavailable or perform poorly.","completionProviderDegraded":"This agent is integrated with a generative AI from {{provider}}, but it is performing slower than usual. Responses may take longer or be less accurate.","completionProviderFallbackName":"an external provider","completionProviderCheckStatusPage":"Check status page","boardOfExperts":"Board of experts","birthDate":"Birth date","birthDateHelper":"We ask for your birth date only to enable or disable functionalities that have age restrictions","underage":"You must be at least {{age}} years old to sign up.","underageTwinSession":"You must be at least {{age}} years old to interact with this agent.","errorFetchingSession":"Error during session loading","errorGettingReferralURL":"Error during referral loading","errorReopeningSession":"Error during session reopening","ageVerification":"Age verification","ageVerificationText":"To interact with this agent, you must be at least {{minAge}} years old.","nsfw":"NSFW: This agent contains adult contents","deepThought":"Deep Thought","deepThoughtHelper":"Deep Thought is an advanced feature of the AI that will allow you to fully exploit your conversations by keeping track of them. The AI with Deep Thought can give you information tailored to you and the things you will share together. Allow the agent\'s author to contact you for commercial offers regarding products you have shown interest in.","deepThoughtDisclaimerTitle":"Deep Thought enabled","deepThoughtDisclaimer":"Deep Thought is an advanced feature of the AI that will allow you to fully exploit your conversations by keeping track of them. The AI with Deep Thought can give you information tailored to you and the things you will share together.","deepThoughtPreDisclaimerUnlogged":"Log in to enable Deep Thought.","deepThoughtPreDisclaimerNotAllowed":"Deep Thought is disabled since you didn\'t consent its usage, you can change this any time in your account settings.","notEnoughCredits":"The author of this agent does not have enough credits to answer your question.","confirmDialog":{"title":"Do you want to leave this page?","message":"The changes you made will be lost."},"knownFacts":{"title":"Known facts","description":"Details of the information shared between you and {{memoriName}}","type":"Type","typeShortTerm":"Short term","typeLongTerm":"Long term","typeHelper":"Types:\\n- Short Term: this Known Fact is always used during conversations\\n- Long Term: this Known Fact is used during conversations only if relevant to the current question","text":"Text","deleteSuccess":"Known fact deleted","deleteConfirmTitle":"Delete known fact","deleteConfirmMessage":"Are you sure you want to delete this known fact?","deleteSelectedConfirmTitle":"Delete selected known facts","deleteSelectedConfirmMessage":"Are you sure you want to delete the selected known facts?"},"auth":{"title":"Authentication","useRecoveryTokens":"Use recovery tokens","tokens":"Tokens","addToken":"Add token","usePassword":"Use password","passwordRequired":"Password required","invalidCredentials":"Invalid credentials","atLeast":"At least"},"widget":{"instruct":"Instruct","test":"Test","sound":"Sound","position":"Position preferences","settings":"Settings","share":"Share","shareChat":"Share chat","sendOnKeypress":"Hit Enter to send","sendOnClick":"Click on Submit","boardOfExperts":"Board of experts","showExpertsInTheBoard":"Show experts in this board","expertsInTheBoard":"Experts in this board","goToIntegrationsToCustomizeAvatar":"To customize the avatar, go to Share and customize the public page"},"exportChatHistory":{"exportPDF":"Export chat as PDF","exporting":"Exporting...","empty":"No chat history to export","pdfNotSupported":"PDF export is not supported in this browser","success":"Chat exported to PDF successfully","error":"Failed to export chat to PDF. Please try again."},"write_and_speak":{"micButtonPopover":"Click the button to speak","micButtonPopoverListening":"Click the button to stop speak","pageInstructExplanation":"To teach me new things click on the INSTRUCT ME button to get started","pageTryMeExplanation":"To talk to me click on the START button to get started","pagePrivacyExplanation":"The conversations are visible by the author of the agent","downloadChat":"Download chat","pagePrivacyExplanationList":{"allConversations":"All conversations with this agent are visible to the author of the agent","anonymousUser":"For anonymous users: the author will see the content of the conversation and your IP address","registeredUser":"For registered users: the author will see the content of the conversation and your username","contentAndUsername":"The author can see the content, your username and your IP address","contentAndIpAddress":"The author can see the content and your IP address","authorUsesInfo":"The author uses this information to improve the features of the agent and to provide you with a better service. Continuing the conversation, you accept these conditions."},"instructButton":"INSTRUCT ME","tryMeButton":"START","resumeButton":"RESUME","chatHistory":"Chat history","chatHistoryDescription":"Show the chat history with this agent","loadingChatHistory":"Loading chat history...","noChatHistoryAvailable":"No chat history available","noResultsFound":"No results found for \\"{{searchText}}\\"","searchInChatHistory":"Search in chat history...","latestFirst":"Latest first","oldestFirst":"Oldest first","exportChat":"Export Chat","conversationStartedLabel":"Conversation started","settingsHeaderLabel":"Setup here if you want to set the continuous speech, and change the silence seconds if you want to customize them.","continuousSpeechLabel":"Continuous speech","continuousSpeechDisabled":"Continuous speech disabled because the agent is in mute mode","holdToSpeak":"Hold to speak","releaseToEndListening":"Release to end listening","pressAndHoldToSpeak":"Press and hold to speak","microphoneMode":"Microphone mode","hideEmissionsLabel":"Hide text emitted by the agent","secondsLabel":"Set seconds","controlsPosition":"Controls position","avatarControls":"Avatar controls","height":"Height","depth":"Depth","avatarType":"Avatar type","suggestions":"Use the arrow keys to adjust the avatar height\\nUse +/- to adjust the avatar depth","blob":"Blob","avatar3d":"3D Avatar","zoomed":"Zoomed","normal":"Normal","far":"Far","enablePositionControls":"Enable position controls","tryMeHeaderLabel":"TRY","unknownPosition":"Unknown position","fieldPlace":"Write the place (eg \'Milano\')","showMapLinkFor":"Show the position on the map","useMyPosition":"Use my position","myPosition":"Your position","updatingPosition":"Updating position...","placeNotFound":"Place not found!","requirePosition":"Insert your position before start","requirePositionHelp":"To talk to {{name}} you have to decide whether to provide your position or not. This is because different answers that it can provide you may depend on where you are.","dontWantToProvidePosition":"I don\'t want to provide my position","attachmentsLabel":"Enrich your message","iWantToTalkToIn":"I want to talk to {{name}} in","message":"message","messages":"messages","page":"Page {{current}} of {{total}}"},"artifact":{"close":"Close","size":"Size","generated":"Generated","download":"Download","print":"Print","external":"Open in a new window","type":"Type","fullscreen":"Fullscreen","exitFullscreen":"Exit fullscreen","generatedAt":"Generated at","copy":"Copy","open":"Open","code":"Code","preview":"Preview","copied":"Copied!","error":"Error","generatingPdf":"Generating PDF...","copying":"Copying...","moreCopyOptions":"More copy options","copyAs":"Copy as","downloadAsMarkdown":"Download as Markdown","downloadRawMarkdownText":"Download raw markdown text","downloadAsPdf":"Download as PDF","exportAsPdfDocument":"Export as PDF document","downloadAsHtml":"Download as HTML","downloadFormattedHtml":"Download formatted HTML","viewMode":"View Mode","codeMode":"Code Mode","refresh":"Refresh","share":"Share","downloadAsJson":"Download as JSON","downloadJsonData":"Download JSON data","downloadAsPng":"Download as PNG","downloadPngImage":"Download PNG image","downloadAsJpeg":"Download as JPEG","downloadJpegImage":"Download JPEG image","downloadAsGif":"Download as GIF","downloadGifImage":"Download GIF image","downloadAsWebp":"Download as WebP","downloadWebpImage":"Download WebP image","copyAsSvg":"Copy as SVG","copySvgSourceCode":"Copy SVG source code","copyAsPlainText":"Copy as Plain Text","copyAsText":"Copy as text","copyAsLanguage":"Copy as {{language}}","copyLanguageCode":"Copy {{language}} code","copyWithoutSyntaxHighlighting":"Copy without syntax highlighting","copyTextContent":"Copy text content","pdfExportNotSupported":"PDF export is not supported in this browser","popupBlocked":"Popup blocked! Please enable popups to print.","safariPdfInstructions":"PDF export opened in new window. Please use Cmd+P (Mac) or Ctrl+P (Windows) to print and save as PDF."},"upload":{"loginRequired":"Login required","pastedText":"pasted-text","uploadNotification":"Upload Failed","loginRequiredDescription":"Please login to upload images","uploadFiles":"Upload files ({{shortcut}}+O to open file chooser)","uploadFilesWithShortcut":"{{shortcut}}+O to open file chooser","uploadImages":"Upload images","replace":"Replace","maxImagesReached":"You can upload up to {{max}} images","maxDocumentsReached":"You can upload up to {{max}} documents","remaining":"remaining","lastDocumentSlot":"Upload last document","uploadDocuments":"Upload documents","maxReached":"Max limit reached","imageTitle":"Image title: {{title}}","titleHelp":"Adding a descriptive title helps the AI provide more context and appropriate responses.","titlePlaceholder":"Enter image title","apiClientNotConfigured":"API client not configured properly for media upload","fileReadingFailed":"File reading failed","uploadFailed":"Upload failed","uploadSuccess":"Upload success","titleImage":"Image title: {{title}}","uploadSuccessDescription":"The file has been uploaded successfully","titleImageUpload":"Upload images","partialUpload":"Only {{uploaded}} images on {{total}} will be uploaded. Maximum {{max}} images allowed.","maxImages":"Maximum {{max}} images allowed.","upload":"Upload","dragAndDropFiles":"Drag and drop files here to add them to the chat","pasteMaxAttachmentsReached":"Maximum {{max}} attachments. Remove one to add this as a file.","pasteContentTooLong":"Pasted content is too long (max {{size}}KB). Shorten or split it.","pasteContentExceedsLimit":"Pasted content exceeds the size limit. Try shortening the text or splitting it into smaller parts.","pasteAddedAsAttachment":"Pasted content added as attachment","contextSizeExceedsLimit":"Context size exceeds the limit. Try reducing the number of files or content in the conversation.","filesNotAddedMaxAllowed":"{{count}} file(s) not added (maximum {{max}} files allowed).","documentsNotAddedMaxAllowed":"{{count}} document(s) not added (maximum {{max}} files allowed).","imagesNotAddedMaxAllowed":"{{count}} image(s) not added (maximum {{max}} files allowed).","documentsNotAddedContextSize":"{{count}} document(s) not added (context size limit)."},"media":{"title":"Title","editAttributes":"Edit media attributes","uploadMimeTypeNotAllowed":"The file type is not allowed","uploadSizeLimitMessage":"The uploaded size is too big (max {{size}}MB)","uploadWrongResolutionMessage":"The resolution must be {{width}}x{{height}} pixel","memoriNameAlreadyUsed":"You already have an agent with this name","uploadHelperImages":"Upload a file with extension png, jpg, jpeg or gif, and having at maximum a size of {{size}}MB","uploadHelper":"Upload a file having at maximum a size of {{size}}MB","uploadError":"Upload failed","square":"square","scaleRatio":"Scale ratio","addMediaLabel":"Add a media","insertThisMediaMsg":"Insert these media","mediaUploadMessage":"Click to load a new media","addLinkLabel":"Add a link","linkKey":"URL","linkValue":"Link title","insertThisLink":"Insert a link to {{url}} with title {{title}}"},"gamification":{"level":"Level","points":"points","memoriReachedLevel":"became more evolved and reached level","levelGoToStatistics":"{{memori}} is at level {{level}} with {{points}} points. Click to go to statistics.","congratulationsNewLevel":"Congratulations, you have reached a new level!","congratulationsNewLevelDescription":"Your agent became more evolved with {{points}} points, look at the","statistics":"statistics"},"login":{"login":"Login","logout":"Logout","user":"User","loggedDrawerTitle":"Hi, {{name}}!","userNameRequired":"Username required","userName":"Username","userNamePlaceholder":"Enter username","loginDrawerTitle":"Login","signupDrawerTitle":"Sign up","newUserSignUp":"New user?","signUp":"Sign up!","alreadyHaveAnAccount":"Already have an account?","backToLogin":"Back to login","registrationDisabled":"Registration is disabled","contactAdmin":"Contact the administrator to request access","userNameOrEmail":"Username or email","email":"Email","emailFormatError":"Please, insert a valid email","username":"Username","usernameContainsReservedWord":"Username contains a reserved word, please choose another one","usernameFormatError":"Username must be at least 3 characters long and contain only letters, numbers and _","otpCode":"Verification code","resendVerificationCode":"Resend code","resentVerificationCode":"Confirmation code sent! Please check your email.","welcomeTitle":"Welcome back","welcomeDescription":"Enter your 4-digit verification code to continue to your account","otpTitle":"Enter verification code","otpDescription":"Enter the 4-digit code you generated in your account","otpStep1":"Click the button below to open your account","otpStep2":"Generate a 4-digit verification code (valid for 60 seconds)","otpStep3":"Return here and enter the code","startOtpLogin":"Start verification","generateOtp":"Generate code","otpTimer":"Code expires in {{seconds}} seconds","otpInvalidFormat":"Please enter a valid 4-digit code","otpInvalid":"Invalid verification code","otpError":"Error validating code. Please try again.","otpSuccess":"Login successful!","otpEmailTitle":"Enter your email","otpEmailDescription":"Enter your email address to receive a verification code","otpCodeDescription":"Enter the 4-digit code sent to {{email}}","emailPlaceholder":"Enter your email","sendOtp":"Send code","resendOtp":"Resend code","resending":"Resending...","backToEmail":"Back to email","otpSent":"Verification code sent!","otpResent":"Code resent successfully!","otpSendError":"Error sending code. Please try again.","emailRequired":"Email required","emailInvalid":"Please enter a valid email address","otpNotFound":"Verification code not found","otpExpired":"Verification code has expired","otpMissing":"Verification code is required","otpSuccessMessage":"Verification successful! Redirecting...","otpSuccessDescription":"Your account has been verified successfully. You will be redirected shortly.","otpHelp":"Enter the 4-digit code from your email","emailHelp":"We\'ll send you a verification code","userFetchError":"Error loading user data. Please try again.","otpStep1Title":"Enter Email","otpStep2Title":"Check Email","otpStep3Title":"Enter Code","featureFast":"Fast","featureSecure":"Secure","featureMobile":"Mobile","password":"Password","newPassword":"New password","confirmPassword":"Confirm Password","currentPassword":"Current password","passwordMatchingError":"Passwords do not match.","passwordFormatError":"Password must be at least 8 characters long and contain at least a number, an upper case letter, a lower case letter and a symbol","pwdWeak":"Weak","pwdAcceptable":"Acceptable","pwdStrong":"Strong","mustChangePassword":"You must change your password","passwordChange":"Change password","emailChange":"Change email","avatarChange":"Change avatar","underage":"You must be at least {{age}} years old to sign up.","optional":"Optional","birthDate":"Birth date","birthDateHelper":"We ask for your birth date only to enable or disable functionalities that have age restrictions","missingData":"Missing informations","missingDataHelper":"We know that this is a bit annoying, but we need some more informations to complete your registration.","goToAccountToChangeYourPreferences":"You can change your choice at any time from your Account page.","deepThoughtExplaination":"Deep Thought is an advanced feature of the AI that will allow you to fully exploit your conversations by keeping track of them. The AI with Deep Thought can give you information tailored to you and the things you will share together. Allow the agent\'s author to contact you for commercial offers regarding products you have shown interest in.","tnCAndPPAcceptedHelper":"Since your last login, T&C and Privacy Policy have changed. Please accept them, otherwise you won\'t be able to make changes to your Twins. You can always delete your account in your user profile page.","privacyLabel":"I have read and accepted the","privacyAndCookiePolicy":"Privacy e Cookie Policy","and":"and","termsOfService":"Terms of Service","pAndCUAccepted":"I accept the terms of service about Deep Thought","editAccount":"Edit account","save":"Save","welcomeUser":"Welcome User","verified":"Verified","premiumUser":"Premium","quickActions":"Quick Actions","editProfile":"Edit Profile","notifications":"Notifications","help":"Help","logoutConfirm":"Are you sure you want to logout?","comingSoon":"Coming soon!","accountOverview":"Account Overview","notSet":"Not set","accepted":"Accepted","pending":"Pending","termsStatus":"Terms Status","enabled":"Enabled","disabled":"Disabled","advancedFeatures":"Advanced Features","successfullyLoggedIn":"{{username}} has successfully logged in"},"chatLogs":{"anyMessage":"Any message","atLeast":"At least {{count}} messages","atLeast2":"At least 2 messages","atLeast3":"At least 3 messages","atLeast5":"At least 5 messages","atLeast10":"At least 10 messages","atLeast15":"At least 15 messages","atLeast20":"At least 20 messages","customMinimumMessages":"Customize the number of messages"},"success":"Success","Error":"Error","internal server error":"Oupsie, sorry... Something went wrong on the server","error":"Error","error.loading":"Error while loading content.","error.generic":"Oupsie, sorry... something went wrong.","error.serverNotResponding":"We are doing maintenance or releasing updates. Please try again later.","error.notFound":"Oupsie, we didn\'t find the page you were looking for.","error.goBackTo":"You can try to go back to the","error.reloadPage":"Reload the page","error.tryAgain":"Try again","error.unauthorized":"You are unauthorized to view this content.","error.unprocessableEntity":"Error while processing the request. Check the data you entered.","errors":{"TENANT_NOT_FOUND":"Tenant not found","TENANT_REGISTRATION_DISABLED":"Registration on this platform is disabled","TENANT_MISSING_NAME":"Tenant: name missing","TENANT_MAX_USERS_REACHED":"Maximum number of users reached","TENANT_MAX_ADMINS_REACHED":"Maximum number of admin users reached","TENANT_ALREADY_EXISTS":"Tenant already exists","TENANT_MISSING_DESCRIPTION":"Tenant: description missing","TENANT_CANT_SET_COMPLETION_PROVIDER":"Tenant: can\'t set completion provider","TENANT_INVALID_TYPE":"Tenant: invalid type","USER_NOT_CONFIRMED":"User still not confirmed","USER_NOT_FOUND":"User not found","USER_OR_PASSWORD_INVALID":"Invalid user or password","USER_MUST_CHANGE_PASSWORD":"You must change your password","USER_MUST_ENTER_VERIFICATION_CODE":"You must enter the verification code","USER_MISSING_TENANT":"User: missing tenant","USER_MISSING_NAME":"User: name is missing","USER_MISSING_PASSWORD":"User: password missing","USER_MISSING_EMAIL":"User: Missing email","USER_MISSING_VERIFICATION_CODE":"User: Missing verification code","USER_NAME_ALREADY_USED":"User name already in use","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"The password does not meet the security rules","USER_EMAIL_ALREADY_USED":"Email already in use","USER_EMAIL_INVALID":"Invalid email","USER_VERIFICATION_CODE_INVALID":"Invalid verification code","USER_MISSING_NAME_OR_EMAIL":"Missing username or email","USER_NAME_INVALID":"Invalid user name","USER_HAS_ONE_OR_MORE_MEMORI":"The user has one or more memories","USER_MISSING_NEW_PASSWORD":"User: new password missing","USER_NOTHING_TO_DO":"Nothing to do","USER_CANT_CREATE_MEMORI":"User not allowed to create agents","USER_MAX_MEMORI_REACHED":"Maximum number of agents reached","USER_TOO_MANY_ATTEMPTS":"Too many attempts","USER_MUST_ACCEPT_TNC_AND_PP":"You must accept the terms and conditions","USER_BIRTH_DATE_CANT_BE_CHANGED":"Date of birth cannot be changed","USER_CANT_SET_COMPLETION_PROVIDER":"User: not allowed to manage completion provider","USER_CANT_ENABLE_DEEP_THOUGHT":"User: not enabled to manage Deep Thought","USER_CANT_ENABLE_DCM_INTEGRATION":"User: not enabled to manage DCM integration","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"User: not allowed to manage chaining or expert group","USER_CREATION_BILLING_DENIED_PERMISSION":"You don\'t have enough credits to create an agent","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"The user has one or more completion configurations","USER_CANT_BE_DELETED":"User can\'t be deleted","USER_ORDER_BY_INVALID":"Order by invalid","MEMORI_NOT_FOUND":"Agent not found","MEMORI_NOT_ACCESSIBLE":"Agent not accessible","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Only owner can change tag or pin","SESSION_NOT_FOUND":"Session not found","SESSION_IS_NOT_ADMINISTRATIVE":"Non-administrative session","SESSION_EXPIRED":"Session expired","SESSION_OTP_NOT_FOUND":"Verification code not found","SESSION_OTP_EXPIRED":"Verification code has expired","SESSION_MISSING_TEMPORARY_TOKEN":"Verification code is required","MEMORI_MISSING_CONFIGURATION":"Agent: missing configuration","MEMORI_CONFIGURATION_NOT_FOUND":"Agent: configuration not found","MEMORI_INVALID_PRIVACY_TYPE":"Agent: invalid privacy type","MEMORI_MISSING_PASSWORD":"Agent: missing password","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Agent: total number of invalid recovery tokens","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Agent: minimum number of invalid recovery tokens","MEMORI_INVALID_VOICE_TYPE":"Agent: invalid voice type","MEMORI_MISSING_NAME":"Agent: missing name","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Agent: missing password or recovery token","MEMORI_INVALID_ID":"Agent: invalid ID","MEMORI_NAME_ALREADY_USED":"Agent name already in use","MEMORI_INVALID_PIN":"Agent: Invalid PIN","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Agent: TAG and PIN change require separate operations","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Agent: no password required when public","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Deep Thought requires completions to be enabled","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"The expert group requires completions to be enabled","MEMORI_INVALID_COMPLETION_CONFIG":"Agent: invalid completions configuration","MEMORI_MACRO_FUNCTIONS_REQUIRES_COMPLETIONS":"Macro functions requires completions to be enabled","MEMORI_BLOCKING_DATE_MISSING_OR_WRONG":"Agent: blocking date missing or wrong","MEMORI_LIST_FILTER_NOT_SPECIFIED":"Agent: list filter not specified","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Transfer: missing destination user","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Transfer: invalid destination user ID","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Transfer: invalid destination user data","MEMORI_TRANSFER_NOTHING_TO_DO":"Transfer: nothing to do","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Agent: configuration cannot be changed","MEMORI_MISSING_NEW_PASSWORD":"Agent: new password missing","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"Feature requires subscription","INTEGRATION_NOT_FOUND":"Integration not found","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Invalid date from format","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Invalid date to format","MEMORI_SESSION_NOT_FOUND":"Session not found","MEMORI_SESSION_DOESNT_ACCEPT_MEDIA":"Session doesn\'t accept media","INTEGRATION_INVALID_TYPE":"Invalid integration type","INTEGRATION_ALREADY_EXISTS":"Integration already exists","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Non-public memories cannot be integrated","INTEGRATION_MISSING_INVOCATION_TEXT":"Integration: missing invocation text","INTEGRATION_MISSING_DEVICE_EMAILS":"Integration: missing device email","INTEGRATION_MEMORI_IS_EMPTY":"Empty memories cannot be integrated","INTEGRATION_MISSING_PRIVACY_POLICY":"Integration: privacy policy missing","INTEGRATION_MISSING_CATEGORY":"Integration category missing","INTEGRATION_MISSING_DESCRIPTION":"Missing integration description","INTEGRATION_INVALID_INVOCATION_TEXT":"Invalid invocation text","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home no more available","UPLOAD_REQUIRES_MULTIPART_ENCODING":"Upload requires multipart encoding","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Upload: missing content type boundary","UPLOAD_MAX_LENGTH_EXCEEDED":"Upload: maximum size exceeded","UPLOAD_FILE_IS_EMPTY":"Upload: empty file","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Upload: invalid file type or signature","UPLOAD_MISSING_FILE_NAME":"Upload: missing file name","UPLOAD_INVALID_MEMORY_ID":"Upload: Invalid content ID","UPLOAD_MISSING_FILE_CONTENT":"Upload: Missing file content","ASSET_NOT_FOUND":"Asset not found","ASSET_NOT_ACCESSIBLE":"Asset not accessible","ASSET_MISSING_SESSION_ID":"Asset: missing session ID","ASSET_INVALID_FILE_NAME":"Asset: invalid file name","ASSET_MALWARE_SCAN_THREATS_FOUND":"Asset: found malware threats","INVITATION_NOT_FOUND":"Invitation not found","INVITATION_NOT_ACCESSIBLE":"Invitation not accessible","INVITATION_ALREADY_ACCEPTED":"Invitation already accepted","INVITATION_ALREADY_REJECTED":"Invitation already rejected","INVITATION_MISSING_DESTINATION_EMAIL":"Invitation: missing destination email","INVITATION_DESTINATION_EMAIL_INVALID":"Invitation: destination email invalid","INVITATION_MISSING_TAG":"Invitation: missing tag","INVITATION_MISSING_PIN":"Invitation: PIN missing","INVITATION_INVALID_PIN":"Invitation: invalid PIN","INVITATION_INVALID_TYPE":"Invitation: invalid type","INVITATION_MISSING_DESTINATION_NAME":"Invitation: destination name missing","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Invitation: tag and pin can\'t be changed","INVITATION_CANT_BE_CHANGED":"Intation: can\'t be changed","ACTIONLOG_INVALID_USER_ID":"Invalid user ID","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Date from: invalid format","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Date to: invalid format","ACTIONLOG_INVALID_MEMORI_ID":"Invalid Memori ID","CONSUMPTIONLOG_INVALID_TYPE":"Invalid log type","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Date from: invalid format","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Date to: invalid format","CONSUMPTIONLOG_INVALID_USER_ID":"Invalid user ID","CONSUMPTIONLOG_INVALID_MEMORI_ID":"Invalid Memori ID","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Notifications: Invalid chat log extraction period","BROADCAST_NOT_ALLOWED":"Broadcast not allowed","INVALID_NOTIFICATION_TYPE":"Invalid notification type","NOTIFICATION_NOT_FOUND":"Notification not found","INVALID_NOTIFICATION_FILTER":"Invalid notification filter","INVALID_NOTIFICATION_PERIOD":"Invalid notification period","PROCESS_INVALID_TYPE":"Invalid process type","PROCESS_ALREADY_RUNNING":"Process already running","PROCESS_NOT_FOUND":"Process not found","IMPORTCSV_MISSING_ROWS":"CSV import: missing rows","IMPORTCSV_MISSING_CSV":"CSV Import: Missing CSV","IMPORTCSV_MISSING_SEPARATOR":"CSV import: missing separator","IMPORTCSV_INVALID_SEPARATOR":"CSV import: invalid separator","IMPORTCSV_MISSING_HEADERS":"CSV import: missing headers","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"CSV import: missing title variant separator","IMPORTCSV_INVALID_RECEIVER_ID":"CSV import: invalid receiver ID","IMPORTCSV_INVALID_MEDIA_LINK":"CSV import: invalid media link","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"CSV import: invalid link title","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"CSV import: undetectable character encoding","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"CSV Import: Cannot import to Secret Memories","IMPORTTXT_MISSING_ROWS":"Importing TXT: missing rows","IMPORTTXT_INVALID_GRANULARITY":"Import TXT: invalid granularity","IMPORTTXT_INVALID_RECEIVER_ID":"Import TXT: invalid receiver ID","IMPORTTXT_INVALID_MEDIA_LINK":"Import TXT: invalid media link","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"Import TXT: invalid link title","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"TXT import: undetectable character encoding","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"TXT Import: Cannot import to Secret Memories","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"Import TXT: import limit exceeded","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"Import TXT: import on GPT-4 requires API key","IMPORTTXT_IMPORT_REQUIRES_PAYING":"Import TXT: Import requires a paying plan","IMPORTTXT_BILLING_DENIED_PERMISSION":"Import TXT: you don\'t have enough credits for the operation","IMPORT_MISSING_ROWS":"Import: missing rows","IMPORT_CANT_IMPORT_TO_SECRET_MEMORI":"Import: can\'t import to Secret Memories","IMPORTMEMORI_INVALID_MEMORI_SPECS":"Import MEMORI: invalid memory specs","IMPORT_MISSING_JSONL":"Import: missing JSONL","IMPORTMEMORI_INVALID_SPECS":"Import MEMORI: invalid specs","EXPORT_MISSING_PASSWORD":"Export: missing password","EXPORTCSV_MISSING_CSV_SPECS":"CSV export: missing CSV specifications","EXPORTCSV_MISSING_SEPARATOR":"CSV export: missing separator","EXPORTCSV_INVALID_SEPARATOR":"CSV export: invalid separator","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"CSV export: missing title variant separator","EXPORTCSV_MISSING_NEW_LINE_CHAR":"CSV export: missing newline character","EXPORTCSV_INVALID_NEW_LINE_CHAR":"CSV export: invalid newline character","EXPORTCSV_MISSING_PASSWORD":"CSV export: missing password","EXPORTJSONL_MISSING_JSONL_SPECS":"JSONL export: missing JSONL specifications","EXPORTJSONL_MISSING_PLATFORM":"JSONL export: missing platform","EXPORTJSONL_INVALID_PLATFORM":"JSONL export: invalid platform","EXPORTJSONL_MISSING_PASSWORD":"JSONL export: missing password","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"JSONL Export: Export requires a paid plan","ANALYSIS_MISSING_QUERY":"Analysis: missing query","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Analysis: Unable to analyze Secret Memories","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Analysis: matching user query requires Deep Thinking","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Badge assignment: incorrect or missing credentials","BADGE_ASSIGNMENT_MISSING_REF_ID":"Badge assignment: ref ID missing","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Badge assignment: result not found","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Badge assignment: Missing assertion URL","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Badge Assignment: Missing Badge URL","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Badge assignment: missing issuer URL","BADGE_ASSIGNMENT_INVALID_URL":"Badge assignment: Invalid URL","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Badge assignment: missing recipient","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Badge assignment: unknown recipient type","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Badge assignment: missing recipient identity","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Badge assignment: missing recipient hash type","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Badge assignment: recipient hash type unknown","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Badge assignment: incorrect recipient identity","BADGE_NOT_FOUND":"Badge not found","OUTCOME_NO_DCM_CONFIGURED":"Outcome: no DCM configured","OUTCOME_USER_BADGES_DISABLED":"Outcome: user badges disabled","COMPLETION_CONFIG_MISSING_NAME":"Completions configuration: missing name","COMPLETION_CONFIG_MISSING_PROVIDER":"Completions configuration: missing provider","COMPLETION_CONFIG_MISSING_ENDPOINT":"Completions configuration: missing endpoint","COMPLETION_CONFIG_MISSING_API_KEY":"Completions configuration: missing API key","COMPLETION_CONFIG_MISSING_MODEL":"Completions configuration: missing model","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Completions configuration: at least one completions type must be specified","COMPLETION_CONFIG_INVALID_NAME":"Completions configuration: invalid name","COMPLETION_CONFIG_INVALID_PURPOSE":"Completions configuration: invalid completions type","COMPLETION_CONFIG_INVALID_ENDPOINT":"Completions configuration: invalid endpoint","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Completions configuration: inconsistent endpoint","COMPLETION_CONFIG_INVALID_PROVIDER":"Completions configuration: invalid provider","COMPLETION_CONFIG_NOT_FOUND":"Completions configuration: not found","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Completions configuration: not accessible","COMPLETION_CONFIG_NAME_RESERVED":"Completions configuration: name reserved","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Completions configuration: name already exists","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Completions configuration: visibility change not allowed","COMPLETION_CONFIG_MISSING_MANDATORY_PREFIX":"Completions configuration: missing mandatory prefix","COMPLETION_CONFIG_VISIBILITY_NOT_PERMITTED":"Completions configuration: visibility not permitted","COMPLETION_CONFIG_USE_AS_DEFAULT_NOT_PERMITTED":"Completions configuration: use as default not permitted","COMPLETION_CONFIG_USE_AS_DEFAULT_REQUIRES_TENANT_VISIBILITY":"Completions configuration: use as default requires tenant visibility","COMPLETION_CONFIG_CHARGEABLE_NOT_PERMITTED":"Completions configuration: chargeable not permitted","COMPLETION_CONFIG_INVALID_APPLY_TO":"Completions configuration: apply to invalid","COMPLETION_CONFIG_APPLY_TO_TENANT_NOT_ALLOWED":"Completions configuration: apply to tenant not allowed","TRUSTED_APPLICATION_NOT_FOUND":"Trusted application not found","TRUSTED_APPLICATION_NOT_ACCESSIBLE":"Trusted application not accessible","TRUSTED_APPLICATION_NAME_REQUIRED":"Trusted application: name required","TRUSTED_APPLICATION_TOKEN_REQUIRED":"Trusted application: token required","TRUSTED_APPLICATION_NAME_ALREADY_EXISTS":"Trusted application: name already exists","TRUSTED_APPLICATION_INVALID_TOKEN":"Trusted application: invalid token"}}');var IB;IB=JSON.parse('{"yes":"Oui","no":"Non","confirm":"Confirmer","apply":"Appliquer","cancel":"Annuler","show":"Montrer","hide":"Cacher","send":"Envoyer","close":"Fermer","edit":"Modifier","delete":"Supprimer","loading":"Chargement","expand":"Développer","collapse":"Effondrement","fullscreenEnter":"Entrez en plein écran","fullscreenExit":"Quitter le plein écran","center":"Centre","bottom":"Bas","hidden":"Caché","day":"Jour","month":"Mois","year":"Année","placeholder":"Faites une question","createdAt":"Date de création","all":"Tous","today":"Aujourd\'hui","date":"Date de naissance","yesterday":"Hier","last_7_days":"7 derniers jours","copied":"Copié !","missingData":"Informations manquantes","last_30_days":"30 derniers jours","selected":"Choisi","page":"page","actions":"Actes","next":"Suivant","previous":"Précédent","copy":"Copie","copyRawCode":"Copier le code brut","copyToClipboard":"Copier dans le presse-papier","showOriginalText":"Afficher l\'original","showTranslatedText":"Afficher la traduction","exactPosition":"Position exacte","uncertain":"Incertain","question":"Question","nothingFound":"Rien trouvé","venue":"Lieu","searchVenue":"Rechercher un lieu...","popularLanguages":"Populaires","allLanguages":"Toutes les langues","memoriBlockedTitle":"Bloqué","memoriBlockedUntil":"Agent bloqué jusqu\'à {{date}}","memoriBlockedAnon":"Actuellement \\"{{name}}\\"Je ne peux pas répondre, reviens ici {{date}}","memoriBlockedReasonExceedChats":"car il a dépassé le seuil mensuel de chats autorisés.","memoriBlockedGiverHelper":"Vous pouvez toujours le gérer en tant qu\'administrateur, mais les autres utilisateurs ne pourront pas interagir avec lui.","generatedByAI":"Réponse générée par l\'IA, peut occasionnellement générer des informations incorrectes","reasoning":"Réflexion...","whyThisAnswer":"Pourquoi cette réponse ?","whyThisAnswerHelper":"Cette réponse a été générée automatiquement par une intelligence artificielle basée sur ces contenus vérifiés.","receiverLabel":"Assigné à","completionsEnabled":"L\'IA avancée peut répondre avec des réponses générées automatiquement qui peuvent parfois contenir des informations incorrectes","completionProviderDown":"Ce Agent est intégré à une IA générative de {{provider}}, mais il est actuellement indisponible. ","completionProviderMajorOutage":"Ce Agent est intégré à une IA générative de {{provider}}, mais il est actuellement indisponible. Cette fonctionnalité ne sera pas disponible tant que le service ne sera pas restauré.","completionProviderPartialOutage":"Ce Agent est intégré à une IA générative de {{provider}}, mais il est actuellement indisponible. Cette fonctionnalité ne sera pas disponible tant que le service ne sera pas restauré.","completionProviderDegraded":"Ce Agent est intégré à une IA générative de {{provider}}, mais il est actuellement indisponible. Cette fonctionnalité ne sera pas disponible tant que le service ne sera pas restauré.","completionProviderFallbackName":"un prestataire externe","completionProviderCheckStatusPage":"Vérifier la page d\'état","boardOfExperts":"Conseil d\'experts","birthDate":"Date de naissance","birthDateHelper":"Nous demandons votre date de naissance uniquement pour activer ou désactiver les fonctionnalités qui ont des restrictions d\'âge","underage":"Vous devez être au moins {{age}} ans pour s\'inscrire.","underageTwinSession":"Vous devez être au moins {{age}} ans pour interagir avec ce Agent.","errorFetchingSession":"Erreur lors du chargement de la session","errorGettingReferralURL":"Erreur lors du chargement du référent","errorReopeningSession":"Erreur lors de la re-ouverture de la session","ageVerification":"Vérification de l\'âge","ageVerificationText":"Pour interagir avec ce Agent, vous devez être au minimum {{minAge}} ans.","nsfw":"NSFW : Ce jumeau contient du contenu pour adultes","deepThought":"Pensée profonde","deepThoughtHelper":"Deep Thought est une fonctionnalité avancée de l\'IA qui vous permettra d\'exploiter pleinement vos conversations en les gardant une trace. ","deepThoughtDisclaimerTitle":"Pensée profonde activée","deepThoughtDisclaimer":"Deep Thought est une fonctionnalité avancée de l\'IA qui vous permettra d\'exploiter pleinement vos conversations en les gardant une trace. ","deepThoughtPreDisclaimerUnlogged":"Connectez-vous pour activer Deep Thought.","deepThoughtPreDisclaimerNotAllowed":"Deep Thought est désactivé car vous n\'avez pas consenti à son utilisation, vous pouvez le modifier à tout moment dans les paramètres de votre compte.","notEnoughCredits":"L\'auteur de ce Agent n\'a pas suffisamment de crédits pour répondre à votre question.","confirmDialog":{"title":"Voulez-vous quitter cette page ?","message":"Les modifications que vous avez apportées seront perdues."},"knownFacts":{"title":"Faits connus","description":"Détails des informations partagées entre vous et {{memoriName}}","type":"Taper","typeShortTerm":"Court terme","typeLongTerm":"Long terme","typeHelper":"Types :\\n","text":"Texte","deleteSuccess":"Fait connu supprimé","deleteConfirmTitle":"Supprimer un fait connu","deleteConfirmMessage":"Êtes-vous sûr de vouloir supprimer ce fait connu ?","deleteSelectedConfirmTitle":"Supprimer les faits connus sélectionnés","deleteSelectedConfirmMessage":"Etes-vous sûr de vouloir supprimer les faits connus sélectionnés ?"},"auth":{"title":"Authentification","useRecoveryTokens":"Utiliser des jetons de récupération","tokens":"Jetons","addToken":"Ajouter un jeton","invalidCredentials":"Identifiants invalides","usePassword":"Utiliser le mot de passe","atLeast":"Au moins"},"widget":{"instruct":"Instruire","test":"Tester","sound":"Son","position":"Préférences de position","settings":"Paramètres","share":"Partager","shareChat":"Partager le chat","sendOnKeypress":"Appuyez sur Entrée pour envoyer","sendOnClick":"Cliquez sur Envoyer","boardOfExperts":"Conseil d\'experts","showExpertsInTheBoard":"Afficher les experts dans ce conseil","expertsInTheBoard":"Experts dans ce conseil","goToIntegrationsToCustomizeAvatar":"Pour personnaliser l\'avatar, allez dans Partager et personnalisez la page publique"},"exportChatHistory":{"exportPDF":"Exporter le chat en PDF","exporting":"Exportation en cours...","empty":"Aucun historique de chat à exporter","pdfNotSupported":"L\'exportation PDF n\'est pas prise en charge dans ce navigateur","success":"Chat exporté en PDF avec succès","error":"Échec de l\'exportation du chat en PDF. Veuillez réessayer."},"write_and_speak":{"micButtonPopover":"Cliquez sur le bouton pour parler","micButtonPopoverListening":"Cliquez sur le bouton pour arrêter de parler","pageInstructExplanation":"Pour m\'apprendre de nouvelles choses, cliquez sur le bouton INSTRUCTEZ-MOI pour commencer","pageTryMeExplanation":"Pour me parler, cliquez sur le bouton START pour commencer","pagePrivacyExplanation":"Les conversations sont visibles par l\'auteur de l\'agent","pagePrivacyExplanationTooltip":"En commençant la conversation, nous vous informons que :\\n\\n- Toutes les conversations avec cet agent sont visibles par l\'auteur de l\'agent\\n- Si vous utilisez la chat comme utilisateur anonyme, l\'auteur pourra voir le contenu de la conversation et votre adresse IP\\n- Si vous utilisez la chat comme utilisateur enregistré (connecté), l\'auteur pourra voir le contenu de la conversation et votre nom d\'utilisateur\\n- L\'auteur utilise ces informations pour améliorer les fonctionnalités de l\'agent et pour vous fournir un meilleur service\\n- En continuant la conversation, vous acceptez ces conditions.","pagePrivacyExplanationList":{"allConversations":"Toutes les conversations avec cet agent sont visibles par l\'auteur de l\'agent","anonymousUser":"Pour les utilisateurs anonymes : l\'auteur verra le contenu de la conversation et votre adresse IP","registeredUser":"Pour les utilisateurs enregistrés : l\'auteur verra le contenu de la conversation et votre nom d\'utilisateur","contentAndUsername":"L\'auteur peut voir le contenu, votre nom d\'utilisateur et votre adresse IP","contentAndIpAddress":"L\'auteur peut voir le contenu et votre adresse IP","authorUsesInfo":"L\'auteur utilise ces informations pour améliorer les fonctionnalités de l\'agent et pour vous fournir un meilleur service. En continuant la conversation, vous acceptez ces conditions."},"downloadChat":"Télécharger le chat","instructButton":"INSTRUCTEZ-MOI","tryMeButton":"COMMENCER","resumeButton":"RÉSUMER","chatHistory":"Historique des discussions","chatHistoryDescription":"Afficher l\'historique des discussions avec cet agent","loadingChatHistory":"Chargement de l\'historique des discussions...","noChatHistoryAvailable":"Aucun historique des discussions disponible","noResultsFound":"Aucun résultat trouvé pour \\"{{searchText}}\\"","searchInChatHistory":"Rechercher dans l\'historique des chats...","latestFirst":"Plus récents d\'abord","oldestFirst":"Plus anciens d\'abord","exportChat":"Exporter le Chat","settingsHeaderLabel":"Configurez ici si vous souhaitez définir la mémoire comme parole continue et modifiez les secondes de silence si vous souhaitez les personnaliser.","continuousSpeechLabel":"Discours continu","continuousSpeechDisabled":"Discours continu désactivé car l\'agente est en mode muté","holdToSpeak":"Attends pour parler","releaseToEndListening":"Relâcher pour terminer l\'écoute","pressAndHoldToSpeak":"Appuyez et maintenez pour parler","microphoneMode":"Mode micro","hideEmissionsLabel":"Masquer le texte émis par le Agent","secondsLabel":"Régler les secondes","controlsPosition":"Position des commandes","tryMeHeaderLabel":"ESSAYER","unknownPosition":"Position inconnue","fieldPlace":"Écrivez le lieu (par exemple « Milano »)","showMapLinkFor":"Afficher la position sur la carte","useMyPosition":"Utiliser ma position","myPosition":"Votre poste","updatingPosition":"Mise à jour du poste...","placeNotFound":"Lieu introuvable !","requirePosition":"Insérez votre position avant de commencer","requirePositionHelp":"Pour parler à {{name}} vous devez décider si vous souhaitez ou non fournir votre poste. ","dontWantToProvidePosition":"Je ne veux pas donner ma position","attachmentsLabel":"Enrichissez votre message","iWantToTalkToIn":"je veux parler à {{name}} dans","message":"message","messages":"messages","page":"Page {{current}} de {{total}}"},"artifact":{"close":"Fermer","size":"Taille","generated":"Généré","download":"Télécharger","print":"Imprimer","external":"Ouvrir dans une nouvelle fenêtre","type":"Type","fullscreen":"Plein écran","exitFullscreen":"Quitter le plein écran","copy":"Copier","generatedAt":"Généré le","open":"Ouvrir","code":"Code","preview":"Aperçu","copied":"Copié !","error":"Erreur","generatingPdf":"Génération du PDF...","copying":"Copie en cours...","moreCopyOptions":"Plus d\'options de copie","copyAs":"Copier en tant que","downloadAsMarkdown":"Télécharger en Markdown","downloadRawMarkdownText":"Télécharger le texte markdown brut","downloadAsPdf":"Télécharger en PDF","exportAsPdfDocument":"Exporter en document PDF","downloadAsHtml":"Télécharger en HTML","downloadFormattedHtml":"Télécharger le HTML formaté","viewMode":"Mode Affichage","codeMode":"Mode Code","refresh":"Actualiser","share":"Partager","downloadAsJson":"Télécharger en JSON","downloadJsonData":"Télécharger les données JSON","downloadAsPng":"Télécharger en PNG","downloadPngImage":"Télécharger l\'image PNG","downloadAsJpeg":"Télécharger en JPEG","downloadJpegImage":"Télécharger l\'image JPEG","downloadAsGif":"Télécharger en GIF","downloadGifImage":"Télécharger l\'image GIF","downloadAsWebp":"Télécharger en WebP","downloadWebpImage":"Télécharger l\'image WebP","copyAsSvg":"Copier en SVG","copySvgSourceCode":"Copier le code source SVG","copyAsPlainText":"Copier en texte brut","copyAsText":"Copier en texte","copyAsLanguage":"Copier en {{language}}","copyLanguageCode":"Copier le code {{language}}","copyWithoutSyntaxHighlighting":"Copier sans coloration syntaxique","copyTextContent":"Copier le contenu texte","pdfExportNotSupported":"L\'exportation PDF n\'est pas prise en charge dans ce navigateur","popupBlocked":"Popup bloqué ! Veuillez activer les popups pour imprimer.","safariPdfInstructions":"Export PDF ouvert dans une nouvelle fenêtre. Veuillez utiliser Cmd+P (Mac) ou Ctrl+P (Windows) pour imprimer et sauvegarder en PDF."},"upload":{"loginRequired":"Connexion requise","pastedText":"texte-collé","uploadNotification":"Échec du téléchargement","loginRequiredDescription":"Veuillez vous connecter pour télécharger des images","uploadFiles":"Télécharger des fichiers ({{shortcut}}+O pour ouvrir le sélecteur de fichiers)","uploadFilesWithShortcut":"{{shortcut}}+O pour ouvrir le sélecteur de fichiers","uploadImages":"Télécharger des images","uploadDocuments":"Télécharger des documents","replace":"Remplacer","remaining":"restant","maxReached":"Limite atteinte","maxImagesReached":"Vous pouvez télécharger jusqu\'à {{max}} images","apiClientNotConfigured":"API client non configuré correctement pour le téléchargement de médias","fileReadingFailed":"Échec de la lecture du fichier","uploadFailed":"Échec du téléchargement","uploadSuccess":"Téléchargement réussi","uploadSuccessDescription":"Le fichier a été téléchargé avec succès","dragAndDropFiles":"Glissez et déposez les fichiers ici pour les ajouter à la chat","contextSizeExceedsLimit":"La taille du contexte dépasse la limite. Essayez de réduire le nombre de fichiers ou le contenu de la conversation.","filesNotAddedMaxAllowed":"{{count}} fichier(s) non ajouté(s) (maximum {{max}} fichiers autorisés).","documentsNotAddedMaxAllowed":"{{count}} document(s) non ajouté(s) (maximum {{max}} fichiers autorisés).","imagesNotAddedMaxAllowed":"{{count}} image(s) non ajoutée(s) (maximum {{max}} fichiers autorisés).","documentsNotAddedContextSize":"{{count}} document(s) non ajouté(s) (limite de taille du contexte)."},"media":{"title":"Titre","editAttributes":"Modifier les attributs du média","uploadMimeTypeNotAllowed":"Le type de fichier n\'est pas autorisé","uploadSizeLimitMessage":"La taille téléchargée est trop grande (max {{size}}Mo)","uploadWrongResolutionMessage":"La résolution doit être {{width}}x{{height}} pixels","memoriNameAlreadyUsed":"Vous avez déjà un jumeau portant ce nom","uploadHelperImages":"Téléchargez un fichier avec l\'extension png, jpg, jpeg ou gif, et ayant au maximum une taille de {{size}}Mo","uploadHelper":"Téléchargez un fichier ayant au maximum une taille de {{size}}Mo","uploadError":"Échec du téléchargement","square":"carré","scaleRatio":"Rapport d\'échelle","addMediaLabel":"Ajouter un média","insertThisMediaMsg":"Insérez ces médias","mediaUploadMessage":"Cliquez pour charger un nouveau média","addLinkLabel":"Ajouter un lien","linkKey":"URL","linkValue":"Titre du lien","insertThisLink":"Insérer un lien vers {{url}} avec titre {{title}}"},"gamification":{"level":"Niveau","points":"points","memoriReachedLevel":"est devenu plus évolué et a atteint le niveau","levelGoToStatistics":"{{Agent}} est au niveau {{level}} avec {{points}} points. ","congratulationsNewLevel":"Félicitations, vous avez atteint un nouveau niveau !","congratulationsNewLevelDescription":"Votre Agent est devenu plus évolué avec {{points}} points, regardez le","statistics":"statistiques"},"login":{"login":"Se connecter","logout":"Déconnexion","user":"Utilisateur","loggedDrawerTitle":"Salut, {{name}}!","userNameRequired":"Nom d\'utilisateur requis","userName":"Nom d\'utilisateur","userNamePlaceholder":"Inserisci le nom d\'utilisateur","loginDrawerTitle":"Se connecter","signupDrawerTitle":"S\'inscrire","newUserSignUp":"Nouvel utilisateur ?","signUp":"S\'inscrire!","alreadyHaveAnAccount":"Vous avez déjà un compte ?","backToLogin":"Retour à la connexion","registrationDisabled":"L\'inscription est désactivée","contactAdmin":"Contacter l\'administrateur pour demander l\'accès","userNameOrEmail":"Nom d\'utilisateur ou email","email":"E-mail","emailFormatError":"Veuillez insérer un email valide","username":"Nom d\'utilisateur","usernameContainsReservedWord":"Le nom d\'utilisateur contient un mot réservé, veuillez en choisir un autre","usernameFormatError":"Le nom d\'utilisateur doit comporter au moins 3 caractères et contenir uniquement des lettres, des chiffres et _","otpCode":"Le code de vérification","resendVerificationCode":"Renvoyer le code","resentVerificationCode":"Code de confirmation envoyé ! ","welcomeTitle":"Bon retour","welcomeDescription":"Entrez votre code de vérification à 4 chiffres pour continuer vers votre compte","otpTitle":"Entrez le code de vérification","otpDescription":"Entrez le code à 4 chiffres que vous avez généré dans votre compte","otpStep1":"Cliquez sur le bouton ci-dessous pour ouvrir votre compte","otpStep2":"Générez un code de vérification à 4 chiffres (valide pendant 60 secondes)","otpStep3":"Revenez ici et entrez le code","startOtpLogin":"Commencer la vérification","generateOtp":"Générer le code","otpTimer":"Le code expire dans {{seconds}} secondes","otpInvalidFormat":"Veuillez entrer un code valide à 4 chiffres","otpInvalid":"Code de vérification invalide","otpError":"Erreur lors de la validation du code. Veuillez réessayer.","otpSuccess":"Connexion réussie !","otpEmailTitle":"Entrez votre email","otpEmailDescription":"Entrez votre adresse email pour recevoir un code de vérification","otpCodeDescription":"Entrez le code à 4 chiffres envoyé à {{email}}","emailPlaceholder":"Entrez votre email","sendOtp":"Envoyer le code","resendOtp":"Renvoyer le code","resending":"Envoi en cours...","backToEmail":"Retour à l\'email","otpSent":"Code de vérification envoyé !","otpResent":"Code renvoyé avec succès !","otpSendError":"Erreur lors de l\'envoi du code. Veuillez réessayer.","emailRequired":"Email requis","emailInvalid":"Veuillez entrer une adresse email valide","otpNotFound":"Code de vérification introuvable","otpExpired":"Le code de vérification a expiré","otpMissing":"Le code de vérification est requis","otpSuccessMessage":"Vérification réussie ! Redirection...","otpSuccessDescription":"Votre compte a été vérifié avec succès. Vous allez être redirigé sous peu.","otpHelp":"Entrez le code à 4 chiffres de votre email","emailHelp":"Nous vous enverrons un code de vérification","userFetchError":"Erreur lors du chargement des données utilisateur. Veuillez réessayer.","otpStep1Title":"Entrez l\'Email","otpStep2Title":"Vérifiez l\'Email","otpStep3Title":"Entrez le Code","featureFast":"Rapide","featureSecure":"Sécurisé","featureMobile":"Mobile","password":"Mot de passe","newPassword":"Nouveau mot de passe","confirmPassword":"Confirmez le mot de passe","currentPassword":"Mot de passe actuel","passwordMatchingError":"Les mots de passe ne correspondent pas.","passwordFormatError":"Le mot de passe doit comporter au moins 8 caractères et contenir au moins un chiffre, une lettre majuscule, une lettre minuscule et un symbole.","pwdWeak":"Faible","pwdAcceptable":"Acceptable","pwdStrong":"Fort","mustChangePassword":"Vous devez changer votre mot de passe","passwordChange":"Changer le mot de passe","emailChange":"Changer d\'e-mail","avatarChange":"Changer d\'avatar","underage":"Vous devez être au moins {{age}} ans pour s\'inscrire.","optional":"Facultatif","birthDate":"Date de naissance","birthDateHelper":"Nous demandons votre date de naissance uniquement pour activer ou désactiver les fonctionnalités qui ont des restrictions d\'âge","missingData":"Informations manquantes","missingDataHelper":"Nous savons que c\'est un peu ennuyeux, mais nous avons besoin de plus d\'informations pour finaliser votre inscription.","goToAccountToChangeYourPreferences":"Vous pouvez modifier votre choix à tout moment depuis la page de votre compte.","deepThoughtExplaination":"Deep Thought est une fonctionnalité avancée de l\'IA qui vous permettra d\'exploiter pleinement vos conversations en les gardant une trace. ","tnCAndPPAcceptedHelper":"Depuis votre dernière connexion, les conditions générales et la politique de confidentialité ont changé. ","privacyLabel":"J\'ai lu et accepté le","privacyAndCookiePolicy":"Politique de confidentialité et de cookies","and":"et","termsOfService":"Conditions d\'utilisation","pAndCUAccepted":"J\'accepte les conditions d\'utilisation de Deep Thought","editAccount":"Modifier le compte","save":"Sauvegarder","successfullyLoggedIn":"{{username}} s\'est connecté avec succès"},"chatLogs":{"anyMessage":"Tout message","atLeast":"Au moins {{count}} messages","atLeast2":"Au moins 2 messages","atLeast3":"Au moins 3 messages","atLeast5":"Au moins 5 messages","atLeast10":"Au moins 10 messages","atLeast15":"Au moins 15 messages","atLeast20":"Au moins 20 messages","customMinimumMessages":"Personnaliser le nombre de messages"},"success":"Succès","Error":"Erreur","internal server error":"Oupsie, désolé... Quelque chose s\'est mal passé sur le serveur","error":"Erreur","error.loading":"Erreur lors du chargement du contenu.","error.generic":"Oupsie, désolé... quelque chose s\'est mal passé.","error.serverNotResponding":"Nous effectuons une maintenance ou publions des mises à jour. ","error.notFound":"Oupsie, nous n\'avons pas trouvé la page que vous cherchiez.","error.goBackTo":"Vous pouvez essayer de revenir au","error.reloadPage":"Recharger la page","error.tryAgain":"Essayer à nouveau","error.unauthorized":"Vous n\'êtes pas autorisé à consulter ce contenu.","error.unprocessableEntity":"Erreur lors du traitement de la demande. ","errors":{"TENANT_NOT_FOUND":"Locataire introuvable","TENANT_REGISTRATION_DISABLED":"L\'inscription sur cette plateforme est désactivée","TENANT_MISSING_NAME":"Locataire : nom manquant","TENANT_MAX_USERS_REACHED":"Nombre maximum d\'utilisateurs atteint","TENANT_MAX_ADMINS_REACHED":"Nombre maximum d\'utilisateurs administrateurs atteint","TENANT_ALREADY_EXISTS":"Le locataire existe déjà","TENANT_MISSING_DESCRIPTION":"Locataire : description manquante","TENANT_CANT_SET_COMPLETION_PROVIDER":"Locataire : impossible de définir le fournisseur de complétion","TENANT_INVALID_TYPE":"Locataire : type non valide","USER_NOT_CONFIRMED":"L\'utilisateur n\'est toujours pas confirmé","USER_NOT_FOUND":"Utilisateur introuvable","USER_OR_PASSWORD_INVALID":"Utilisateur ou mot de passe invalide","USER_MUST_CHANGE_PASSWORD":"Vous devez changer votre mot de passe","USER_MUST_ENTER_VERIFICATION_CODE":"Vous devez entrer le code de vérification","USER_MISSING_TENANT":"Utilisateur : locataire manquant","USER_MISSING_NAME":"Utilisateur : le nom est manquant","USER_MISSING_PASSWORD":"Utilisateur : mot de passe manquant","USER_MISSING_EMAIL":"Utilisateur : E-mail manquant","USER_MISSING_VERIFICATION_CODE":"Utilisateur : Code de vérification manquant","USER_NAME_ALREADY_USED":"Nom d\'utilisateur déjà utilisé","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"Le mot de passe ne répond pas aux règles de sécurité","USER_EMAIL_ALREADY_USED":"E-mail déjà utilisé","USER_EMAIL_INVALID":"E-mail invalide","USER_VERIFICATION_CODE_INVALID":"Code de vérification invalide","USER_MISSING_NAME_OR_EMAIL":"Nom d\'utilisateur ou e-mail manquant","USER_NAME_INVALID":"Nom d\'utilisateur invalide","USER_HAS_ONE_OR_MORE_MEMORI":"L\'utilisateur possède une ou plusieurs mémoires","USER_MISSING_NEW_PASSWORD":"Utilisateur : nouveau mot de passe manquant","USER_NOTHING_TO_DO":"Rien à faire","USER_CANT_CREATE_MEMORI":"L\'utilisateur n\'est pas autorisé à créer des Agent","USER_MAX_MEMORI_REACHED":"Nombre maximum de Agent atteint","USER_ORDER_BY_INVALID":"Ordre par non valide","USER_TOO_MANY_ATTEMPTS":"Trop de tentatives","USER_MUST_ACCEPT_TNC_AND_PP":"Vous devez accepter les termes et conditions","USER_BIRTH_DATE_CANT_BE_CHANGED":"La date de naissance ne peut pas être modifiée","USER_CANT_SET_COMPLETION_PROVIDER":"Utilisateur : non autorisé à gérer le fournisseur de complétion","USER_CANT_ENABLE_DEEP_THOUGHT":"Utilisateur : non autorisé à gérer Deep Thought","USER_CANT_ENABLE_DCM_INTEGRATION":"Utilisateur : non autorisé à gérer l\'intégration DCM","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"Utilisateur : non autorisé à gérer des chaînages ou des groupes d\'experts","USER_CREATION_BILLING_DENIED_PERMISSION":"Vous n\'avez pas assez de crédits pour créer un Agent","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"L\'utilisateur dispose d\'une ou plusieurs configurations de complétion","USER_CANT_BE_DELETED":"L\'utilisateur ne peut pas être supprimé","MEMORI_NOT_FOUND":"Mémoire introuvable","MEMORI_NOT_ACCESSIBLE":"Mémoires non accessibles","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Seul le propriétaire peut modifier le tag ou le code PIN","SESSION_NOT_FOUND":"Séance introuvable","SESSION_IS_NOT_ADMINISTRATIVE":"Séance non administrative","SESSION_EXPIRED":"Session expirée","SESSION_OTP_NOT_FOUND":"Code de vérification introuvable","SESSION_OTP_EXPIRED":"Le code de vérification a expiré","SESSION_MISSING_TEMPORARY_TOKEN":"Le code de vérification est requis","MEMORI_MISSING_CONFIGURATION":"Agent : configuration manquante","MEMORI_CONFIGURATION_NOT_FOUND":"Agent : configuration introuvable","MEMORI_INVALID_PRIVACY_TYPE":"Agent : type de confidentialité non valide","MEMORI_MISSING_PASSWORD":"Agent : mot de passe manquant","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Agent : nombre total de jetons de récupération invalides","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Agent : nombre minimum de jetons de récupération invalides","MEMORI_INVALID_VOICE_TYPE":"Agent : type de voix invalide","MEMORI_MISSING_NAME":"Jumeau : nom manquant","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Agent : mot de passe ou jeton de récupération manquant","MEMORI_INVALID_ID":"Jumeau : pièce d\'identité invalide","MEMORI_NAME_ALREADY_USED":"Nom jumeau déjà utilisé","MEMORI_INVALID_PIN":"Agent : code PIN invalide","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Agent : le changement de TAG et de PIN nécessite des opérations distinctes","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Agent : aucun mot de passe requis lorsqu\'il est public","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Deep Thought nécessite que les complétions soient activées","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"Le groupe d\'experts exige que les complétions soient activées","MEMORI_INVALID_COMPLETION_CONFIG":"Agent : configuration des complétions non valide","MEMORI_MACRO_FUNCTIONS_REQUIRES_COMPLETIONS":"Macro fonctions requiert que les complétions soient activées","MEMORI_BLOCKING_DATE_MISSING_OR_WRONG":"Gemmeau : date de blocage manquante ou incorrecte","MEMORI_LIST_FILTER_NOT_SPECIFIED":"Gemmeau : filtre non spécifié","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Transfert : utilisateur de destination manquant","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Transfert : ID utilisateur de destination non valide","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Transfert : données utilisateur de destination non valides","MEMORI_TRANSFER_NOTHING_TO_DO":"Transfert : rien à faire","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Mémoires : la configuration ne peut pas être modifiée","MEMORI_MISSING_NEW_PASSWORD":"Souvenirs : nouveau mot de passe manquant","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"La fonctionnalité nécessite un abonnement","MEMORI_SESSION_NOT_FOUND":"Séance introuvable","MEMORI_SESSION_DOESNT_ACCEPT_MEDIA":"Séance ne pas accepter les médias","INTEGRATION_NOT_FOUND":"Intégration introuvable","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Date invalide du format","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Date à formater invalide","INTEGRATION_INVALID_TYPE":"Type d\'intégration invalide","INTEGRATION_ALREADY_EXISTS":"L\'intégration existe déjà","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Les mémoires non publiques ne peuvent pas être intégrées","INTEGRATION_MISSING_INVOCATION_TEXT":"Intégration : texte d\'invocation manquant","INTEGRATION_MISSING_DEVICE_EMAILS":"Intégration : e-mail de l\'appareil manquant","INTEGRATION_MEMORI_IS_EMPTY":"Les mémoires vides ne peuvent pas être intégrées","INTEGRATION_MISSING_PRIVACY_POLICY":"Intégration : politique de confidentialité manquante","INTEGRATION_MISSING_CATEGORY":"Catégorie d\'intégration manquante","INTEGRATION_MISSING_DESCRIPTION":"Description de l\'intégration manquante","INTEGRATION_INVALID_INVOCATION_TEXT":"Texte d\'appel invalide","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home n\'est plus disponible","UPLOAD_REQUIRES_MULTIPART_ENCODING":"Le téléchargement nécessite un codage en plusieurs parties","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Téléchargement : limite de type de contenu manquante","UPLOAD_MAX_LENGTH_EXCEEDED":"Téléchargement : taille maximale dépassée","UPLOAD_FILE_IS_EMPTY":"Télécharger : fichier vide","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Téléchargement : type de fichier ou signature non valide","UPLOAD_MISSING_FILE_NAME":"Télécharger : nom de fichier manquant","UPLOAD_INVALID_MEMORY_ID":"Télécharger : ID de contenu invalide","UPLOAD_MISSING_FILE_CONTENT":"Télécharger : contenu du fichier manquant","ASSET_NOT_FOUND":"Actif introuvable","ASSET_NOT_ACCESSIBLE":"Actif non accessible","ASSET_MISSING_SESSION_ID":"Élément : ID de session manquant","ASSET_INVALID_FILE_NAME":"Élément : nom de fichier non valide","ASSET_MALWARE_SCAN_THREATS_FOUND":"Élément : menaces de scan de malware trouvées","INVITATION_NOT_FOUND":"Invitation introuvable","INVITATION_NOT_ACCESSIBLE":"Invitation non accessible","INVITATION_ALREADY_ACCEPTED":"Invitation déjà acceptée","INVITATION_ALREADY_REJECTED":"Invitation déjà rejetée","INVITATION_MISSING_DESTINATION_EMAIL":"Invitation : e-mail de destination manquant","INVITATION_DESTINATION_EMAIL_INVALID":"Invitation : e-mail de destination invalide","INVITATION_MISSING_TAG":"Invitation : étiquette manquante","INVITATION_MISSING_PIN":"Invitation : code PIN manquant","INVITATION_INVALID_PIN":"Invitation : code PIN invalide","INVITATION_INVALID_TYPE":"Invitation : type non valide","INVITATION_MISSING_DESTINATION_NAME":"Invitation : le nom de la destination est manquant","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Invitation : le tag et le code PIN ne peuvent pas être modifiés","INVITATION_CANT_BE_CHANGED":"Intation : ne peut pas être modifié","ACTIONLOG_INVALID_USER_ID":"ID utilisateur invalide","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Date de : format non valide","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Date de : format non valide","ACTIONLOG_INVALID_MEMORI_ID":"Identifiant Agent invalide","CONSUMPTIONLOG_INVALID_TYPE":"Type de journal invalide","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Date de : format non valide","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Date de : format non valide","CONSUMPTIONLOG_INVALID_USER_ID":"ID utilisateur invalide","CONSUMPTIONLOG_INVALID_MEMORI_ID":"Identifiant Agent invalide","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Notifications : période d\'extraction du journal de discussion non valide","BROADCAST_NOT_ALLOWED":"Broadcast non autorisé","INVALID_NOTIFICATION_TYPE":"Type de notification non valide","NOTIFICATION_NOT_FOUND":"Notification introuvable","INVALID_NOTIFICATION_FILTER":"Filtre de notification non valide","INVALID_NOTIFICATION_PERIOD":"Période de notification non valide","PROCESS_INVALID_TYPE":"Type de processus invalide","PROCESS_ALREADY_RUNNING":"Processus déjà en cours","PROCESS_NOT_FOUND":"Processus introuvable","IMPORTCSV_MISSING_ROWS":"Import CSV : lignes manquantes","IMPORTCSV_MISSING_CSV":"Importation CSV : CSV manquant","IMPORTCSV_MISSING_SEPARATOR":"Import CSV : séparateur manquant","IMPORTCSV_INVALID_SEPARATOR":"Importation CSV : séparateur non valide","IMPORTCSV_MISSING_HEADERS":"Import CSV : en-têtes manquants","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Import CSV : séparateur de variante de titre manquant","IMPORTCSV_INVALID_RECEIVER_ID":"Importation CSV : ID de destinataire non valide","IMPORTCSV_INVALID_MEDIA_LINK":"Importation CSV : lien média non valide","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"Importation CSV : titre du lien invalide","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"Import CSV : encodage de caractères indétectable","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"Importation CSV : impossible d\'importer dans les mémoires secrètes","IMPORTTXT_MISSING_ROWS":"Importation de TXT : lignes manquantes","IMPORTTXT_INVALID_GRANULARITY":"Importer TXT : granularité invalide","IMPORTTXT_INVALID_RECEIVER_ID":"Importer TXT : ID de destinataire invalide","IMPORTTXT_INVALID_MEDIA_LINK":"Importer TXT : lien média non valide","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"Importer TXT : titre du lien invalide","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"Import TXT : encodage de caractères indétectable","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"Importation TXT : impossible d\'importer vers les mémoires secrètes","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"Importer TXT : limite d\'importation dépassée","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"Importer TXT : l\'importation sur GPT-4 nécessite une clé API","IMPORTTXT_IMPORT_REQUIRES_PAYING":"Importer TXT : l\'importation nécessite un forfait payant","IMPORTTXT_BILLING_DENIED_PERMISSION":"Importer TXT : vous n\'avez pas assez de crédits pour l\'opération","IMPORT_MISSING_ROWS":"Importation : lignes manquantes","IMPORT_CANT_IMPORT_TO_SECRET_MEMORI":"Importation : impossible d\'importer vers les mémoires secrètes","IMPORTMEMORI_INVALID_MEMORI_SPECS":"Importation MEMORI : spécifications de mémoire non valides","IMPORT_MISSING_JSONL":"Importation : JSONL manquant","IMPORTMEMORI_INVALID_SPECS":"Importation MEMORI : spécifications non valides","EXPORT_MISSING_PASSWORD":"Exportation : mot de passe manquant","EXPORTCSV_MISSING_CSV_SPECS":"Exportation CSV : spécifications CSV manquantes","EXPORTCSV_MISSING_SEPARATOR":"Export CSV : séparateur manquant","EXPORTCSV_INVALID_SEPARATOR":"Exportation CSV : séparateur non valide","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Exportation CSV : séparateur de variante de titre manquant","EXPORTCSV_MISSING_NEW_LINE_CHAR":"Exportation CSV : caractère de nouvelle ligne manquant","EXPORTCSV_INVALID_NEW_LINE_CHAR":"Exportation CSV : caractère de nouvelle ligne non valide","EXPORTCSV_MISSING_PASSWORD":"Export CSV : mot de passe manquant","EXPORTJSONL_MISSING_JSONL_SPECS":"Export JSONL : spécifications JSONL manquantes","EXPORTJSONL_MISSING_PLATFORM":"Export JSONL : plateforme manquante","EXPORTJSONL_INVALID_PLATFORM":"Export JSONL : plateforme non valide","EXPORTJSONL_MISSING_PASSWORD":"Export JSONL : mot de passe manquant","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"Exportation JSONL : l\'exportation nécessite un forfait payant","ANALYSIS_MISSING_QUERY":"Analyse : requête manquante","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Analyse : impossible d\'analyser les souvenirs secrets","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Analyse : la correspondance avec la requête de l\'utilisateur nécessite une réflexion approfondie","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Attribution des badges : identifiants incorrects ou manquants","BADGE_ASSIGNMENT_MISSING_REF_ID":"Affectation du badge : ID de référence manquant","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Attribution des badges : résultat introuvable","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Attribution du badge : URL d\'assertion manquante","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Attribution du badge : URL du badge manquante","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Attribution du badge : URL de l\'émetteur manquante","BADGE_ASSIGNMENT_INVALID_URL":"Attribution du badge : URL invalide","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Affectation du badge : destinataire manquant","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Attribution du badge : type de destinataire inconnu","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Attribution du badge : identité du destinataire manquante","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Attribution du badge : type de hachage du destinataire manquant","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Attribution du badge : type de hachage du destinataire inconnu","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Attribution du badge : identité du destinataire incorrecte","BADGE_NOT_FOUND":"Badge introuvable","OUTCOME_NO_DCM_CONFIGURED":"Résultat : aucun DCM configuré","OUTCOME_USER_BADGES_DISABLED":"Résultat : badges utilisateur désactivés","COMPLETION_CONFIG_MISSING_NAME":"Configuration des complétions : nom manquant","COMPLETION_CONFIG_MISSING_PROVIDER":"Configuration des complétions : fournisseur manquant","COMPLETION_CONFIG_MISSING_ENDPOINT":"Configuration des complétions : point de terminaison manquant","COMPLETION_CONFIG_MISSING_API_KEY":"Configuration des complétions : clé API manquante","COMPLETION_CONFIG_MISSING_MODEL":"Configuration des complétions : modèle manquant","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Configuration des complétions : au moins un type de complétions doit être spécifié","COMPLETION_CONFIG_INVALID_NAME":"Configuration des complétions: nom non valide","COMPLETION_CONFIG_INVALID_PURPOSE":"Configuration des complétions : type de complétions non valide","COMPLETION_CONFIG_INVALID_ENDPOINT":"Configuration des achèvements : point de terminaison non valide","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Configuration des complétions : point de terminaison incohérent","COMPLETION_CONFIG_INVALID_PROVIDER":"Configuration des complétions : fournisseur non valide","COMPLETION_CONFIG_NOT_FOUND":"Configuration des complétions : introuvable","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Configuration des complétions : non accessible","COMPLETION_CONFIG_NAME_RESERVED":"Configuration des complétions : nom réservé","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Configuration des complétions : le nom existe déjà","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Configuration des complétions : changement de visibilité non autorisé","COMPLETION_CONFIG_MISSING_MANDATORY_PREFIX":"Configuration des complétions : préfixe obligatoire manquant","COMPLETION_CONFIG_VISIBILITY_NOT_PERMITTED":"Configuration des complétions : visibilité non autorisée","COMPLETION_CONFIG_USE_AS_DEFAULT_NOT_PERMITTED":"Configuration des complétions : utilisation comme défaut non autorisée","COMPLETION_CONFIG_USE_AS_DEFAULT_REQUIRES_TENANT_VISIBILITY":"Configuration des complétions : utilisation comme défaut nécessite la visibilité du locataire","COMPLETION_CONFIG_CHARGEABLE_NOT_PERMITTED":"Configuration des complétions : chargeable non autorisé","COMPLETION_CONFIG_INVALID_APPLY_TO":"Configuration des complétions : apply to non valide","COMPLETION_CONFIG_APPLY_TO_TENANT_NOT_ALLOWED":"Configuration des complétions : apply to tenant non autorisé","TRUSTED_APPLICATION_NOT_FOUND":"Application de confiance introuvable","TRUSTED_APPLICATION_NOT_ACCESSIBLE":"Application de confiance non accessible","TRUSTED_APPLICATION_ALREADY_EXISTS":"Application de confiance existe déjà","TRUSTED_APPLICATION_MISSING_NAME":"Application de confiance : nom manquant","TRUSTED_APPLICATION_MISSING_DESCRIPTION":"Application de confiance : description manquante","TRUSTED_APPLICATION_MISSING_ICON":"Application de confiance : icône manquante","TRUSTED_APPLICATION_MISSING_URL":"Application de confiance : URL manquante"}}');var MB;MB=JSON.parse('{"yes":"Ja","no":"NEIN","confirm":"Bestätigen","apply":"Anwenden","cancel":"Stornieren","show":"Zeigen","hide":"Verstecken","send":"Schicken","close":"Schließen","edit":"Bearbeiten","delete":"Löschen","loading":"Laden","expand":"Expandieren","collapse":"Zusammenbruch","fullscreenEnter":"Geben Sie den Vollbildmodus ein","fullscreenExit":"Beenden Sie den Vollbildmodus","center":"Center","bottom":"Unten","hidden":"Versteckt","all":"Alle","today":"Heute","yesterday":"Gestern","last_7_days":"Letzte 7 Tage","last_30_days":"Letzte 30 Tage","missingData":"Fehlende Informationen","date":"Geburtsdatum","day":"Tag","copied":"Kopiert!","placeholder":"Stellen Sie eine Frage","month":"Monat","year":"Jahr","createdAt":"Erstellungsdatum","selected":"Ausgewählt","page":"Seite","actions":"Aktionen","next":"Nächste","previous":"Vorherige","copy":"Kopie","copyRawCode":"Rohcode kopieren","copyToClipboard":"In die Zwischenablage kopieren","showOriginalText":"Original anzeigen","showTranslatedText":"Übersetzung anzeigen","exactPosition":"Genaue Position","uncertain":"Unsicher","question":"Frage","nothingFound":"Nichts gefunden","venue":"Veranstaltungsort","searchVenue":"Veranstaltungsort suchen...","privacyPolicy":"Datenschutzbestimmungen","popularLanguages":"Beliebt","allLanguages":"Alle Sprachen","memoriBlockedTitle":"Blockiert","memoriBlockedUntil":"Agent blockiert bis {{date}}","memoriBlockedAnon":"Momentan \\"{{name}}„Kann nicht antworten, komm hierher zurück {{date}}","memoriBlockedReasonExceedChats":"weil der monatliche Schwellenwert für erlaubte Chats überschritten wurde.","memoriBlockedGiverHelper":"Sie können es weiterhin als Administrator verwalten, andere Benutzer können jedoch nicht damit interagieren.","generatedByAI":"Von KI generierte Antworten können gelegentlich falsche Informationen generieren","reasoning":"Überlegung...","whyThisAnswer":"Warum diese Antwort?","whyThisAnswerHelper":"Diese Antwort wurde automatisch von einer künstlichen Intelligenz auf Basis dieser verifizierten Inhalte generiert.","receiverLabel":"Zugewiesen an","completionsEnabled":"Fortschrittliche KI kann mit automatisch generierten Antworten reagieren, die manchmal falsche Informationen enthalten können","completionProviderDown":"Dieser Zwilling ist mit einer generativen KI von integriert {{provider}}, aber es ist derzeit nicht verfügbar. ","completionProviderMajorOutage":"Dieser Zwilling ist mit einer generativen KI von integriert {{provider}}, aber es ist derzeit nicht verfügbar. Diese Funktion wird nicht verfügbar sein, bis der Service wiederhergestellt ist.","completionProviderPartialOutage":"Dieser Zwilling ist mit einer generativen KI von integriert {{provider}}, aber es ist derzeit nicht verfügbar. Diese Funktion wird nicht verfügbar sein, bis der Service wiederhergestellt ist.","completionProviderDegraded":"Dieser Zwilling ist mit einer generativen KI von integriert {{provider}}, aber es ist derzeit nicht verfügbar. Diese Funktion wird nicht verfügbar sein, bis der Service wiederhergestellt ist.","completionProviderFallbackName":"ein externer Anbieter","completionProviderCheckStatusPage":"Überprüfen Sie die Statusseite","boardOfExperts":"Expertengremium","birthDate":"Geburtsdatum","birthDateHelper":"Wir fragen nur nach Ihrem Geburtsdatum, um Funktionen zu aktivieren oder zu deaktivieren, für die Altersbeschränkungen gelten","underage":"Das müssen Sie mindestens sein {{age}} Jahre alt, um sich anzumelden.","underageTwinSession":"Das müssen Sie mindestens sein {{age}} Jahre alt, um mit diesem Zwilling zu interagieren.","errorFetchingSession":"Fehler beim Laden der Sitzung","errorGettingReferralURL":"Fehler beim Laden des Referrals","errorReopeningSession":"Fehler beim erneuten Öffnen der Sitzung","ageVerification":"Altersüberprüfung","ageVerificationText":"Um mit diesem Zwilling interagieren zu können, müssen Sie mindestens sein {{minAge}} Jahre alt.","nsfw":"NSFW: Dieser Agent enthält Inhalte für Erwachsene","deepThought":"Tiefer Gedanke","deepThoughtHelper":"Deep Thought ist eine erweiterte Funktion der KI, die es Ihnen ermöglicht, Ihre Gespräche voll auszuschöpfen, indem Sie sie verfolgen. ","deepThoughtDisclaimerTitle":"Deep Thought aktiviert","deepThoughtDisclaimer":"Deep Thought ist eine erweiterte Funktion der KI, die es Ihnen ermöglicht, Ihre Gespräche voll auszuschöpfen, indem Sie sie verfolgen. ","deepThoughtPreDisclaimerUnlogged":"Melden Sie sich an, um Deep Thought zu aktivieren.","deepThoughtPreDisclaimerNotAllowed":"Deep Thought ist deaktiviert, da Sie der Nutzung nicht zugestimmt haben. Sie können dies jederzeit in Ihren Kontoeinstellungen ändern.","notEnoughCredits":"Der Autor dieses Zwillings verfügt nicht über genügend Credits, um Ihre Frage zu beantworten.","confirmDialog":{"title":"Möchten Sie diese Seite verlassen?","message":"Die Änderungen, die Sie vorgenommen haben, werden verloren."},"knownFacts":{"title":"Bekannte Fakten","description":"Einzelheiten zu den Informationen, die zwischen Ihnen und geteilt werden {{memoriName}}","type":"Typ","typeShortTerm":"Kurzfristig","typeLongTerm":"Langfristig","typeHelper":"Typen:\\n","text":"Text","deleteSuccess":"Bekannte Tatsache gelöscht","deleteConfirmTitle":"Bekannte Tatsache löschen","deleteConfirmMessage":"Sind Sie sicher, dass Sie diese bekannte Tatsache löschen möchten?","deleteSelectedConfirmTitle":"Ausgewählte bekannte Fakten löschen","deleteSelectedConfirmMessage":"Sind Sie sicher, dass Sie die ausgewählten bekannten Fakten löschen möchten?"},"auth":{"title":"Authentifizierung","useRecoveryTokens":"Verwenden Sie Wiederherstellungstoken","tokens":"Token","addToken":"Token hinzufügen","usePassword":"Passwort verwenden","passwordRequired":"Passwort erforderlich","invalidCredentials":"Ungültige Zugangsdaten","atLeast":"Mindestens"},"widget":{"instruct":"Anleiten","test":"Testen","sound":"Ton","position":"Positionspräferenzen","settings":"Einstellungen","share":"Teilen","shareChat":"Chat teilen","sendOnKeypress":"Drücken Sie Enter zum Senden","sendOnClick":"Klicken Sie auf Senden","boardOfExperts":"Expertenrat","showExpertsInTheBoard":"Experten in diesem Rat anzeigen","expertsInTheBoard":"Experten in diesem Rat","goToIntegrationsToCustomizeAvatar":"Um den Avatar anzupassen, gehen Sie zu \\"Teilen\\" und passen Sie die öffentliche Seite an"},"exportChatHistory":{"exportPDF":"Chat als PDF exportieren","exporting":"Exportiere...","empty":"Kein Chatverlauf zum Exportieren","pdfNotSupported":"PDF-Export wird in diesem Browser nicht unterstützt","success":"Chat erfolgreich als PDF exportiert","error":"Fehler beim Exportieren des Chats als PDF. Bitte versuchen Sie es erneut."},"write_and_speak":{"micButtonPopover":"Klicken Sie auf die Schaltfläche, um zu sprechen","micButtonPopoverListening":"Klicken Sie auf die Schaltfläche, um das Sprechen zu stoppen","pageInstructExplanation":"Um mir neue Dinge beizubringen, klicken Sie auf die Schaltfläche \\"ANLEITEN\\", um zu beginnen","pageTryMeExplanation":"Um mit mir zu sprechen, klicken Sie auf die Schaltfläche START, um zu beginnen","pagePrivacyExplanation":"Die Konversationen sind sichtbar von dem Autor des Agenten","downloadChat":"Chat herunterladen","pagePrivacyExplanationList":{"allConversations":"Alle Konversationen mit diesem Agenten sind sichtbar von dem Autor des Agenten","anonymousUser":"Für anonyme Benutzer: der Autor wird den Inhalt der Konversation und Ihre IP-Adresse sehen","registeredUser":"Für registrierte Benutzer: der Autor wird den Inhalt der Konversation und Ihren Benutzernamen sehen","contentAndUsername":"Der Autor kann den Inhalt, Ihren Benutzernamen und Ihre IP-Adresse sehen","contentAndIpAddress":"Der Autor kann den Inhalt und Ihre IP-Adresse sehen","authorUsesInfo":"Der Autor verwendet diese Informationen, um die Funktionen des Agenten zu verbessern und Ihnen einen besseren Service anzubieten. Wenn Sie die Konversation fortsetzen, stimmen Sie diesen Bedingungen zu."},"instructButton":"WEISE MICH AN","tryMeButton":"START","resumeButton":"FORTSETZEN","chatHistory":"Chatverlauf","chatHistoryDescription":"Chatverlauf mit diesem Agenten anzeigen","loadingChatHistory":"Chatverlauf wird geladen...","noChatHistoryAvailable":"Kein Chatverlauf verfügbar","noResultsFound":"Keine Ergebnisse gefunden für \\"{{searchText}}\\"","searchInChatHistory":"Im Chatverlauf suchen...","latestFirst":"Neueste zuerst","oldestFirst":"Älteste zuerst","exportChat":"Chat exportieren","conversationStartedLabel":"Unterhaltung gestartet","settingsHeaderLabel":"Richten Sie hier ein, wenn Sie die Agent als Dauerrede einstellen möchten, und ändern Sie die Stillesekunden, wenn Sie sie anpassen möchten.","continuousSpeechLabel":"Kontinuierliche Rede","continuousSpeechDisabled":"Kontinuierliche Rede deaktiviert, da der Agent im Stummschaltmodus ist","holdToSpeak":"Halten Sie gedrückt, um zu sprechen","releaseToEndListening":"Lassen Sie los, um das Hören zu beenden","pressAndHoldToSpeak":"Zum Sprechen gedrückt halten","microphoneMode":"Mikrofonmodus","hideEmissionsLabel":"Vom Zwilling ausgegebenen Text ausblenden","secondsLabel":"Sekunden einstellen","controlsPosition":"Steuert die Position","tryMeHeaderLabel":"VERSUCHEN","unknownPosition":"Unbekannte Position","fieldPlace":"Geben Sie den Ort ein (z. B. \\"Mailand\\")","showMapLinkFor":"Zeigen Sie die Position auf der Karte an","useMyPosition":"Nutzen Sie meine Position","myPosition":"Ihre Position","updatingPosition":"Position wird aktualisiert...","placeNotFound":"Ort nicht gefunden!","requirePosition":"Geben Sie vor dem Start Ihre Position ein","requirePositionHelp":"Zum Reden {{name}} Sie müssen entscheiden, ob Sie Ihre Position angeben oder nicht. ","dontWantToProvidePosition":"Ich möchte meine Position nicht bekannt geben","attachmentsLabel":"Bereichern Sie Ihre Botschaft","iWantToTalkToIn":"Ich möchte mit reden {{name}} In","message":"nachricht","messages":"nachrichten","page":"Seite {{current}} von {{total}}"},"artifact":{"close":"Schließen","size":"Größe","generated":"Generiert","download":"Herunterladen","print":"Drucken","external":"In neuem Fenster öffnen","type":"Typ","fullscreen":"Vollbild","exitFullscreen":"Vollbild beenden","copy":"Kopieren","generatedAt":"Generiert am","open":"Öffnen","code":"Code","preview":"Vorschau","copied":"Kopiert!","error":"Fehler","generatingPdf":"PDF wird generiert...","copying":"Kopiere...","moreCopyOptions":"Weitere Kopieroptionen","copyAs":"Kopieren als","downloadAsMarkdown":"Als Markdown herunterladen","downloadRawMarkdownText":"Rohmarkdown-Text herunterladen","downloadAsPdf":"Als PDF herunterladen","exportAsPdfDocument":"Als PDF-Dokument exportieren","downloadAsHtml":"Als HTML herunterladen","downloadFormattedHtml":"Formatiertes HTML herunterladen","viewMode":"Ansichtsmodus","codeMode":"Code-Modus","refresh":"Aktualisieren","share":"Teilen","downloadAsJson":"Als JSON herunterladen","downloadJsonData":"JSON-Daten herunterladen","downloadAsPng":"Als PNG herunterladen","downloadPngImage":"PNG-Bild herunterladen","downloadAsJpeg":"Als JPEG herunterladen","downloadJpegImage":"JPEG-Bild herunterladen","downloadAsGif":"Als GIF herunterladen","downloadGifImage":"GIF-Bild herunterladen","downloadAsWebp":"Als WebP herunterladen","downloadWebpImage":"WebP-Bild herunterladen","copyAsSvg":"Als SVG kopieren","copySvgSourceCode":"SVG-Quellcode kopieren","copyAsPlainText":"Als Klartext kopieren","copyAsText":"Als Text kopieren","copyAsLanguage":"Als {{language}} kopieren","copyLanguageCode":"{{language}}-Code kopieren","copyWithoutSyntaxHighlighting":"Ohne Syntaxhervorhebung kopieren","copyTextContent":"Textinhalt kopieren","pdfExportNotSupported":"PDF-Export wird in diesem Browser nicht unterstützt","popupBlocked":"Popup blockiert! Bitte aktivieren Sie Popups zum Drucken.","safariPdfInstructions":"PDF-Export in neuem Fenster geöffnet. Bitte verwenden Sie Cmd+P (Mac) oder Strg+P (Windows) zum Drucken und als PDF speichern."},"upload":{"loginRequired":"Login erforderlich","pastedText":"text-eingefügt","uploadNotification":"Hochladen fehlgeschlagen","loginRequiredDescription":"Bitte melden Sie sich an, um Bilder hochzuladen","uploadFiles":"Dateien hochladen ({{shortcut}}+O zum Öffnen des Datei-Selektors)","uploadFilesWithShortcut":"{{shortcut}}+O zum Öffnen des Datei-Selektors","uploadImages":"Bilder hochladen","uploadDocuments":"Dokumente hochladen","replace":"Ersetzen","remaining":"verbleibend","maxReached":"Maximal erreicht","apiClientNotConfigured":"Client API nicht korrekt konfiguriert für das Hochladen von Medien","fileReadingFailed":"Datei lesen fehlgeschlagen","uploadFailed":"Hochladen fehlgeschlagen","uploadSuccess":"Hochladen erfolgreich","uploadSuccessDescription":"Die Datei wurde erfolgreich hochgeladen","maxImagesReached":"Sie können bis zu {{max}} Bilder hochladen","dragAndDropFiles":"Ziehen Sie Dateien hierher, um sie zur Chat hinzuzufügen","contextSizeExceedsLimit":"Die Kontextgröße überschreitet das Limit. Reduzieren Sie die Anzahl der Dateien oder den Inhalt der Konversation.","filesNotAddedMaxAllowed":"{{count}} Datei(en) nicht hinzugefügt (maximal {{max}} Dateien erlaubt).","documentsNotAddedMaxAllowed":"{{count}} Dokument(e) nicht hinzugefügt (maximal {{max}} Dateien erlaubt).","imagesNotAddedMaxAllowed":"{{count}} Bild(er) nicht hinzugefügt (maximal {{max}} Dateien erlaubt).","documentsNotAddedContextSize":"{{count}} Dokument(e) nicht hinzugefügt (Kontextgrößen-Limit)."},"media":{"title":"Titel","editAttributes":"Medienattribute bearbeiten","uploadMimeTypeNotAllowed":"Der Dateityp ist nicht zulässig","uploadSizeLimitMessage":"Die hochgeladene Größe ist zu groß (max {{size}}MB)","uploadWrongResolutionMessage":"Die Auflösung muss sein {{width}}X{{height}} Pixel","memoriNameAlreadyUsed":"Du hast bereits einen Zwilling mit diesem Namen","uploadHelperImages":"Laden Sie eine Datei mit der Erweiterung PNG, JPG, JPEG oder GIF hoch und darf maximal eine Größe von haben {{size}}MB","uploadHelper":"Laden Sie eine Datei mit einer maximalen Größe von hoch {{size}}MB","uploadError":"Der Upload ist fehlgeschlagen","square":"Quadrat","scaleRatio":"Maßstabsverhältnis","addMediaLabel":"Fügen Sie ein Medium hinzu","insertThisMediaMsg":"Legen Sie diese Medien ein","mediaUploadMessage":"Klicken Sie hier, um ein neues Medium zu laden","addLinkLabel":"Fügen Sie einen Link hinzu","linkKey":"URL","linkValue":"Linktitel","insertThisLink":"Fügen Sie einen Link ein {{url}} mit Titel {{title}}"},"gamification":{"level":"Ebene","points":"Punkte","memoriReachedLevel":"entwickelte sich weiter und erreichte ein höheres Niveau","levelGoToStatistics":"{{memori}} ist auf gleicher Höhe {{level}} mit {{points}} Punkte. ","congratulationsNewLevel":"Herzlichen Glückwunsch, Sie haben ein neues Level erreicht!","congratulationsNewLevelDescription":"Ihre Agent wurden mit weiterentwickelt {{points}} Punkte, schauen Sie sich die an","statistics":"Statistiken"},"login":{"login":"Login","logout":"Abmelden","user":"Benutzer","loggedDrawerTitle":"Hallo, {{name}}!","userNameRequired":"Benutzername erforderlich","userName":"Benutzername","userNamePlaceholder":"Geben Sie den Benutzernamen ein","loginDrawerTitle":"Login","signupDrawerTitle":"Melden Sie sich an","newUserSignUp":"Neuer Benutzer?","signUp":"Melden Sie sich an!","alreadyHaveAnAccount":"Sie haben bereits ein Konto?","backToLogin":"Zurück zum Login","registrationDisabled":"Die Registrierung ist deaktiviert","contactAdmin":"Wenden Sie sich an den Administrator, um Zugriff anzufordern","userNameOrEmail":"Benutzername oder E-Mail","email":"E-Mail","emailFormatError":"Bitte geben Sie eine gültige E-Mail-Adresse ein","username":"Benutzername","usernameContainsReservedWord":"Der Benutzername enthält ein reserviertes Wort. Bitte wählen Sie ein anderes","usernameFormatError":"Der Benutzername muss mindestens 3 Zeichen lang sein und darf nur Buchstaben, Zahlen und _ enthalten.","otpCode":"Bestätigungscode","resendVerificationCode":"Code erneut senden","resentVerificationCode":"Bestätigungscode gesendet! ","welcomeTitle":"Willkommen zurück","welcomeDescription":"Geben Sie Ihren 4-stelligen Bestätigungscode ein, um zu Ihrem Konto fortzufahren","otpTitle":"Bestätigungscode eingeben","otpDescription":"Geben Sie den 4-stelligen Code ein, den Sie in Ihrem Konto generiert haben","otpStep1":"Klicken Sie auf die Schaltfläche unten, um Ihr Konto zu öffnen","otpStep2":"Generieren Sie einen 4-stelligen Bestätigungscode (60 Sekunden gültig)","otpStep3":"Kehren Sie hierher zurück und geben Sie den Code ein","startOtpLogin":"Verifizierung starten","generateOtp":"Code generieren","otpTimer":"Code läuft in {{seconds}} Sekunden ab","otpInvalidFormat":"Bitte geben Sie einen gültigen 4-stelligen Code ein","otpInvalid":"Ungültiger Bestätigungscode","otpError":"Fehler bei der Code-Validierung. Bitte versuchen Sie es erneut.","otpSuccess":"Anmeldung erfolgreich!","password":"Passwort","newPassword":"Neues Passwort","confirmPassword":"Passwort bestätigen","currentPassword":"Aktuelles Passwort","passwordMatchingError":"Passwörter stimmen nicht überein.","passwordFormatError":"Das Passwort muss mindestens 8 Zeichen lang sein und mindestens eine Zahl, einen Großbuchstaben, einen Kleinbuchstaben und ein Symbol enthalten","pwdWeak":"Schwach","pwdAcceptable":"Akzeptabel","pwdStrong":"Stark","mustChangePassword":"Sie müssen Ihr Passwort ändern","passwordChange":"Kennwort ändern","emailChange":"E-Mail ändern","avatarChange":"Avatar ändern","underage":"Das müssen Sie mindestens sein {{age}} Jahre alt, um sich anzumelden.","optional":"Optional","birthDate":"Geburtsdatum","birthDateHelper":"Wir fragen nur nach Ihrem Geburtsdatum, um Funktionen zu aktivieren oder zu deaktivieren, für die Altersbeschränkungen gelten","missingData":"Fehlende Informationen","missingDataHelper":"Wir wissen, dass dies etwas nervig ist, benötigen jedoch noch einige weitere Informationen, um Ihre Registrierung abzuschließen.","goToAccountToChangeYourPreferences":"Sie können Ihre Auswahl jederzeit auf Ihrer Kontoseite ändern.","deepThoughtExplaination":"Deep Thought ist eine erweiterte Funktion der KI, die es Ihnen ermöglicht, Ihre Gespräche voll auszuschöpfen, indem Sie sie verfolgen. ","tnCAndPPAcceptedHelper":"Seit Ihrer letzten Anmeldung haben sich die AGB und Datenschutzbestimmungen geändert. ","privacyLabel":"Ich habe die gelesen und akzeptiert","privacyAndCookiePolicy":"Datenschutz und Cookie-Richtlinie","and":"Und","termsOfService":"Nutzungsbedingungen","pAndCUAccepted":"Ich akzeptiere die Nutzungsbedingungen von Deep Thought","editAccount":"Konto bearbeiten","save":"Speichern","successfullyLoggedIn":"{{username}} hat sich erfolgreich angemeldet"},"chatLogs":{"anyMessage":"Jede Nachricht","atLeast":"Mindestens {{count}} Nachrichten","atLeast2":"Mindestens 2 Nachrichten","atLeast3":"Mindestens 3 Nachrichten","atLeast5":"Mindestens 5 Nachrichten","atLeast10":"Mindestens 10 Nachrichten","atLeast15":"Mindestens 15 Nachrichten","atLeast20":"Mindestens 20 Nachrichten","customMinimumMessages":"Anpassen Sie die Anzahl der Nachrichten"},"success":"Erfolg","Error":"Fehler","internal server error":"Oupsie, tut mir leid... Auf dem Server ist ein Fehler aufgetreten","error":"Fehler","error.loading":"Fehler beim Laden des Inhalts.","error.generic":"Oupsie, tut mir leid ... etwas ist schief gelaufen.","error.serverNotResponding":"Wir führen Wartungsarbeiten durch oder veröffentlichen Updates. ","error.notFound":"Oupsie, wir haben die von Ihnen gesuchte Seite nicht gefunden.","error.goBackTo":"Sie können versuchen, dorthin zurückzukehren","error.reloadPage":"Laden Sie die Seite neu","error.tryAgain":"Versuchen Sie es erneut","error.unauthorized":"Es ist Ihnen nicht gestattet, diesen Inhalt anzuzeigen.","error.unprocessableEntity":"Fehler beim Verarbeiten der Anfrage. ","errors":{"TENANT_NOT_FOUND":"Mieter nicht gefunden","TENANT_REGISTRATION_DISABLED":"Die Registrierung auf dieser Plattform ist deaktiviert","TENANT_MISSING_NAME":"Mieter: Name fehlt","TENANT_MAX_USERS_REACHED":"Maximale Anzahl Benutzer erreicht","TENANT_MAX_ADMINS_REACHED":"Maximale Anzahl an Admin-Benutzern erreicht","TENANT_ALREADY_EXISTS":"Mieter existiert bereits","TENANT_MISSING_DESCRIPTION":"Mieter: Beschreibung fehlt","TENANT_CANT_SET_COMPLETION_PROVIDER":"Mandant: Abschlussanbieter kann nicht festgelegt werden","TENANT_INVALID_TYPE":"Mandant: ungültiger Typ","USER_NOT_CONFIRMED":"Benutzer noch nicht bestätigt","USER_NOT_FOUND":"Benutzer nicht gefunden","USER_OR_PASSWORD_INVALID":"Ungültiger Benutzer oder Passwort","USER_MUST_CHANGE_PASSWORD":"Sie müssen Ihr Passwort ändern","USER_MUST_ENTER_VERIFICATION_CODE":"Sie müssen den Bestätigungscode eingeben","USER_MISSING_TENANT":"Benutzer: Mieter fehlt","USER_MISSING_NAME":"Benutzer: Name fehlt","USER_MISSING_PASSWORD":"Benutzer: Passwort fehlt","USER_MISSING_EMAIL":"Benutzer: Fehlende E-Mail","USER_MISSING_VERIFICATION_CODE":"Benutzer: Fehlender Bestätigungscode","USER_NAME_ALREADY_USED":"Benutzername wird bereits verwendet","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"Das Passwort entspricht nicht den Sicherheitsregeln","USER_EMAIL_ALREADY_USED":"E-Mail wird bereits verwendet","USER_EMAIL_INVALID":"Ungültige E-Mail","USER_VERIFICATION_CODE_INVALID":"Ungültiger Bestätigungscode","USER_MISSING_NAME_OR_EMAIL":"Benutzername oder E-Mail fehlen","USER_NAME_INVALID":"Ungültiger Benutzername","USER_HAS_ONE_OR_MORE_MEMORI":"Der Benutzer verfügt über eine oder mehrere Erinnerungen","USER_MISSING_NEW_PASSWORD":"Benutzer: Neues Passwort fehlt","USER_NOTHING_TO_DO":"Nichts zu tun","USER_CANT_CREATE_MEMORI":"Benutzer darf Agent nicht erstellen","USER_MAX_MEMORI_REACHED":"Maximale Anzahl an Agent erreicht","USER_TOO_MANY_ATTEMPTS":"Zu viele Versuche","USER_MUST_ACCEPT_TNC_AND_PP":"Sie müssen die Allgemeinen Geschäftsbedingungen akzeptieren","USER_BIRTH_DATE_CANT_BE_CHANGED":"Das Geburtsdatum kann nicht geändert werden","USER_CANT_SET_COMPLETION_PROVIDER":"Benutzer: darf den Vervollständigungsanbieter nicht verwalten","USER_CANT_ENABLE_DEEP_THOUGHT":"Benutzer: nicht für die Verwaltung von Deep Thought aktiviert","USER_CANT_ENABLE_DCM_INTEGRATION":"Benutzer: nicht für die Verwaltung der DCM-Integration aktiviert","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"Benutzer: darf die Verkettung oder Expertengruppe nicht verwalten","USER_CREATION_BILLING_DENIED_PERMISSION":"Sie haben nicht genügend Credits, um einen Zwilling zu erstellen","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"Der Benutzer verfügt über eine oder mehrere Abschlusskonfigurationen","USER_CANT_BE_DELETED":"Benutzer kann nicht gelöscht werden","USER_ORDER_BY_INVALID":"Ungültige Sortierreihenfolge","MEMORI_NOT_FOUND":"Erinnerungen nicht gefunden","MEMORI_NOT_ACCESSIBLE":"Agent nicht zugänglich","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Nur der Eigentümer kann das Tag oder die PIN ändern","SESSION_NOT_FOUND":"Sitzung nicht gefunden","SESSION_IS_NOT_ADMINISTRATIVE":"Nicht-administrative Sitzung","SESSION_EXPIRED":"Sitzung abgelaufen","MEMORI_MISSING_CONFIGURATION":"Zwilling: fehlende Konfiguration","MEMORI_CONFIGURATION_NOT_FOUND":"Zwilling: Konfiguration nicht gefunden","MEMORI_INVALID_PRIVACY_TYPE":"Agent: ungültiger Datenschutztyp","MEMORI_MISSING_PASSWORD":"Zwilling: Passwort fehlt","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Agent: Gesamtzahl ungültiger Wiederherstellungstokens","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Agent: Mindestanzahl ungültiger Wiederherstellungstokens","MEMORI_INVALID_VOICE_TYPE":"Zwilling: ungültiger Stimmtyp","MEMORI_MISSING_NAME":"Zwilling: fehlender Name","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Zwilling: Fehlendes Passwort oder Wiederherstellungstoken","MEMORI_INVALID_ID":"Zwilling: ungültige ID","MEMORI_NAME_ALREADY_USED":"Zwillingsname wird bereits verwendet","MEMORI_INVALID_PIN":"Zwilling: Ungültige PIN","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Zwilling: TAG- und PIN-Änderung erfordern separate Vorgänge","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Zwilling: Im öffentlichen Zustand ist kein Passwort erforderlich","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Für \\"Deep Thought\\" müssen Vervollständigungen aktiviert sein","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"Für die Expertengruppe müssen Vervollständigungen aktiviert sein","MEMORI_INVALID_COMPLETION_CONFIG":"Zwilling: Ungültige Abschlusskonfiguration","MEMORI_MACRO_FUNCTIONS_REQUIRES_COMPLETIONS":"Für die Makrofunktionen müssen Vervollständigungen aktiviert sein","MEMORI_BLOCKING_DATE_MISSING_OR_WRONG":"Zwilling: fehlende oder falsche Blockierungsdatum","MEMORI_LIST_FILTER_NOT_SPECIFIED":"Zwilling: fehlender Filter","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Übertragung: Zielbenutzer fehlt","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Übertragung: Ungültige Zielbenutzer-ID","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Übertragung: Ungültige Zielbenutzerdaten","MEMORI_TRANSFER_NOTHING_TO_DO":"Transfer: nichts zu tun","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Speicher: Konfiguration kann nicht geändert werden","MEMORI_MISSING_NEW_PASSWORD":"Erinnerungen: Neues Passwort fehlt","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"Für die Funktion ist ein Abonnement erforderlich","INTEGRATION_NOT_FOUND":"Integration nicht gefunden","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Ungültiges Datum aus Format","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Ungültiges Datum zum Formatieren","MEMORI_SESSION_NOT_FOUND":"Sitzung nicht gefunden","MEMORI_SESSION_DOESNT_ACCEPT_MEDIA":"Sitzung akzeptiert keine Medien","INTEGRATION_INVALID_TYPE":"Ungültiger Integrationstyp","INTEGRATION_ALREADY_EXISTS":"Die Integration ist bereits vorhanden","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Nicht-öffentliche Erinnerungen können nicht integriert werden","INTEGRATION_MISSING_INVOCATION_TEXT":"Integration: fehlender Aufruftext","INTEGRATION_MISSING_DEVICE_EMAILS":"Integration: Fehlende Geräte-E-Mail","INTEGRATION_MEMORI_IS_EMPTY":"Leere Erinnerungen können nicht integriert werden","INTEGRATION_MISSING_PRIVACY_POLICY":"Integration: Datenschutzrichtlinie fehlt","INTEGRATION_MISSING_CATEGORY":"Integrationskategorie fehlt","INTEGRATION_MISSING_DESCRIPTION":"Fehlende Integrationsbeschreibung","INTEGRATION_INVALID_INVOCATION_TEXT":"Ungültiger Aufruftext","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home nicht mehr verfügbar","UPLOAD_REQUIRES_MULTIPART_ENCODING":"Für den Upload ist eine mehrteilige Kodierung erforderlich","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Hochladen: Inhaltstypgrenze fehlt","UPLOAD_MAX_LENGTH_EXCEEDED":"Upload: Maximale Größe überschritten","UPLOAD_FILE_IS_EMPTY":"Hochladen: leere Datei","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Hochladen: Ungültiger Dateityp oder ungültige Signatur","UPLOAD_MISSING_FILE_NAME":"Hochladen: Dateiname fehlt","UPLOAD_INVALID_MEMORY_ID":"Hochladen: Ungültige Inhalts-ID","UPLOAD_MISSING_FILE_CONTENT":"Hochladen: Dateiinhalt fehlt","ASSET_NOT_FOUND":"Asset nicht gefunden","ASSET_NOT_ACCESSIBLE":"Asset nicht zugänglich","ASSET_MISSING_SESSION_ID":"Asset: Sitzungs-ID fehlt","ASSET_INVALID_FILE_NAME":"Asset: ungültiger Dateiname","ASSET_MALWARE_SCAN_THREATS_FOUND":"Asset: malware scan threats found","INVITATION_NOT_FOUND":"Einladung nicht gefunden","INVITATION_NOT_ACCESSIBLE":"Einladung nicht zugänglich","INVITATION_ALREADY_ACCEPTED":"Einladung bereits angenommen","INVITATION_ALREADY_REJECTED":"Einladung bereits abgelehnt","INVITATION_MISSING_DESTINATION_EMAIL":"Einladung: Ziel-E-Mail fehlt","INVITATION_DESTINATION_EMAIL_INVALID":"Einladung: Ziel-E-Mail-Adresse ungültig","INVITATION_MISSING_TAG":"Einladung: Tag fehlt","INVITATION_MISSING_PIN":"Einladung: PIN fehlt","INVITATION_INVALID_PIN":"Einladung: ungültige PIN","INVITATION_INVALID_TYPE":"Einladung: ungültiger Typ","INVITATION_MISSING_DESTINATION_NAME":"Einladung: Zielname fehlt","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Einladung: Tag und Pin können nicht geändert werden","INVITATION_CANT_BE_CHANGED":"Absicht: kann nicht geändert werden","ACTIONLOG_INVALID_USER_ID":"Ungültige Benutzer-ID","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Datum von: ungültiges Format","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Datum bis: ungültiges Format","ACTIONLOG_INVALID_MEMORI_ID":"Ungültige Memori-ID","CONSUMPTIONLOG_INVALID_TYPE":"Ungültiger Protokolltyp","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Datum von: ungültiges Format","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Datum bis: ungültiges Format","CONSUMPTIONLOG_INVALID_USER_ID":"Ungültige Benutzer-ID","CONSUMPTIONLOG_INVALID_MEMORI_ID":"Ungültige Memori-ID","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Benachrichtigungen: Ungültiger Chat-Protokoll-Extraktionszeitraum","BROADCAST_NOT_ALLOWED":"Broadcast nicht erlaubt","INVALID_NOTIFICATION_TYPE":"Ungültiger Benachrichtigungstyp","NOTIFICATION_NOT_FOUND":"Benachrichtigung nicht gefunden","INVALID_NOTIFICATION_FILTER":"Ungültiger Benachrichtigungsfilter","INVALID_NOTIFICATION_PERIOD":"Ungültiger Benachrichtigungszeitraum","PROCESS_INVALID_TYPE":"Ungültiger Prozesstyp","PROCESS_ALREADY_RUNNING":"Prozess läuft bereits","PROCESS_NOT_FOUND":"Prozess nicht gefunden","IMPORTCSV_MISSING_ROWS":"CSV-Import: fehlende Zeilen","IMPORTCSV_MISSING_CSV":"CSV-Import: CSV fehlt","IMPORTCSV_MISSING_SEPARATOR":"CSV-Import: fehlendes Trennzeichen","IMPORTCSV_INVALID_SEPARATOR":"CSV-Import: Ungültiges Trennzeichen","IMPORTCSV_MISSING_HEADERS":"CSV-Import: fehlende Header","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"CSV-Import: Titelvariantentrennzeichen fehlt","IMPORTCSV_INVALID_RECEIVER_ID":"CSV-Import: ungültige Empfänger-ID","IMPORTCSV_INVALID_MEDIA_LINK":"CSV-Import: Ungültiger Medienlink","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"CSV-Import: Ungültiger Linktitel","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"CSV-Import: Nicht erkennbare Zeichenkodierung","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"CSV-Import: Der Import in Secret Memories ist nicht möglich","IMPORTTXT_MISSING_ROWS":"TXT wird importiert: Zeilen fehlen","IMPORTTXT_INVALID_GRANULARITY":"TXT importieren: ungültige Granularität","IMPORTTXT_INVALID_RECEIVER_ID":"TXT importieren: ungültige Empfänger-ID","IMPORTTXT_INVALID_MEDIA_LINK":"TXT importieren: Ungültiger Medienlink","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"TXT importieren: ungültiger Linktitel","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"TXT-Import: Nicht erkennbare Zeichenkodierung","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"TXT-Import: Der Import in Secret Memories ist nicht möglich","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"TXT importieren: Importlimit überschritten","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"TXT importieren: Für den Import auf GPT-4 ist ein API-Schlüssel erforderlich","IMPORTTXT_IMPORT_REQUIRES_PAYING":"TXT importieren: Für den Import ist ein kostenpflichtiger Plan erforderlich","IMPORTTXT_BILLING_DENIED_PERMISSION":"TXT importieren: Sie haben nicht genügend Credits für den Vorgang","IMPORT_MISSING_ROWS":"Import: fehlende Zeilen","IMPORT_CANT_IMPORT_TO_SECRET_MEMORI":"Import: Der Import in Secret Memories ist nicht möglich","IMPORTMEMORI_INVALID_MEMORI_SPECS":"Import MEMORI: ungültige Agentenspezifikationen","IMPORT_MISSING_JSONL":"Import: JSONL fehlt","IMPORTMEMORI_INVALID_SPECS":"Import MEMORI: ungültige Spezifikationen","EXPORT_MISSING_PASSWORD":"Export: Passwort fehlt","EXPORTCSV_MISSING_CSV_SPECS":"CSV-Export: CSV-Spezifikationen fehlen","EXPORTCSV_MISSING_SEPARATOR":"CSV-Export: fehlendes Trennzeichen","EXPORTCSV_INVALID_SEPARATOR":"CSV-Export: Ungültiges Trennzeichen","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"CSV-Export: fehlendes Titelvarianten-Trennzeichen","EXPORTCSV_MISSING_NEW_LINE_CHAR":"CSV-Export: Fehlendes Zeilenumbruchzeichen","EXPORTCSV_INVALID_NEW_LINE_CHAR":"CSV-Export: Ungültiges Zeilenumbruchzeichen","EXPORTCSV_MISSING_PASSWORD":"CSV-Export: Passwort fehlt","EXPORTJSONL_MISSING_JSONL_SPECS":"JSONL-Export: JSONL-Spezifikationen fehlen","EXPORTJSONL_MISSING_PLATFORM":"JSONL-Export: fehlende Plattform","EXPORTJSONL_INVALID_PLATFORM":"JSONL-Export: ungültige Plattform","EXPORTJSONL_MISSING_PASSWORD":"JSONL-Export: Passwort fehlt","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"JSONL-Export: Für den Export ist ein kostenpflichtiger Plan erforderlich","ANALYSIS_MISSING_QUERY":"Analyse: fehlende Abfrage","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Analyse: Geheime Erinnerungen können nicht analysiert werden","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Analyse: Passende Benutzeranfragen erfordern tiefes Denken","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Ausweiszuweisung: falsche oder fehlende Zugangsdaten","BADGE_ASSIGNMENT_MISSING_REF_ID":"Badge-Zuordnung: Referenz-ID fehlt","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Badge-Zuweisung: Ergebnis nicht gefunden","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Badge-Zuweisung: Fehlende Behauptungs-URL","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Badge-Zuweisung: Badge-URL fehlt","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Badge-Zuweisung: Aussteller-URL fehlt","BADGE_ASSIGNMENT_INVALID_URL":"Badge-Zuweisung: Ungültige URL","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Ausweiszuordnung: fehlender Empfänger","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Badge-Zuordnung: unbekannter Empfängertyp","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Ausweiszuordnung: Empfängeridentität fehlt","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Badge-Zuweisung: Empfänger-Hash-Typ fehlt","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Badge-Zuweisung: Empfänger-Hash-Typ unbekannt","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Badge-Zuordnung: Falsche Empfängeridentität","BADGE_NOT_FOUND":"Abzeichen nicht gefunden","OUTCOME_NO_DCM_CONFIGURED":"Ergebnis: kein DCM konfiguriert","OUTCOME_USER_BADGES_DISABLED":"Ergebnis: Benutzerausweise deaktiviert","COMPLETION_CONFIG_MISSING_NAME":"Vervollständigungskonfiguration: Name fehlt","COMPLETION_CONFIG_MISSING_PROVIDER":"Vervollständigungskonfiguration: fehlender Anbieter","COMPLETION_CONFIG_MISSING_ENDPOINT":"Abschlusskonfiguration: fehlender Endpunkt","COMPLETION_CONFIG_MISSING_API_KEY":"Vervollständigungskonfiguration: fehlender API-Schlüssel","COMPLETION_CONFIG_MISSING_MODEL":"Vervollständigungskonfiguration: fehlendes Modell","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Vervollständigungskonfiguration: Es muss mindestens ein Vervollständigungstyp angegeben werden","COMPLETION_CONFIG_INVALID_NAME":"Vervollständigungskonfiguration: ungültiger Name","COMPLETION_CONFIG_INVALID_PURPOSE":"Vervollständigungskonfiguration: Ungültiger Vervollständigungstyp","COMPLETION_CONFIG_INVALID_ENDPOINT":"Abschlusskonfiguration: Ungültiger Endpunkt","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Abschlusskonfiguration: inkonsistenter Endpunkt","COMPLETION_CONFIG_INVALID_PROVIDER":"Vervollständigungskonfiguration: ungültiger Anbieter","COMPLETION_CONFIG_NOT_FOUND":"Vervollständigungskonfiguration: nicht gefunden","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Vervollständigungskonfiguration: nicht zugänglich","COMPLETION_CONFIG_NAME_RESERVED":"Vervollständigungskonfiguration: Name reserviert","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Vervollständigungskonfiguration: Name existiert bereits","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Vervollständigungskonfiguration: Änderung der Sichtbarkeit nicht zulässig","COMPLETION_CONFIG_MISSING_MANDATORY_PREFIX":"Vervollständigungskonfiguration: Pflichtpräfix fehlt","COMPLETION_CONFIG_VISIBILITY_NOT_PERMITTED":"Vervollständigungskonfiguration: Sichtbarkeit nicht erlaubt","COMPLETION_CONFIG_USE_AS_DEFAULT_NOT_PERMITTED":"Vervollständigungskonfiguration: Verwendung als Standard nicht erlaubt","COMPLETION_CONFIG_USE_AS_DEFAULT_REQUIRES_TENANT_VISIBILITY":"Vervollständigungskonfiguration: Verwendung als Standard erfordert Mandantensichtbarkeit","COMPLETION_CONFIG_CHARGEABLE_NOT_PERMITTED":"Vervollständigungskonfiguration: Chargeable nicht erlaubt","COMPLETION_CONFIG_INVALID_APPLY_TO":"Vervollständigungskonfiguration: Ungültige Anwendung","COMPLETION_CONFIG_APPLY_TO_TENANT_NOT_ALLOWED":"Vervollständigungskonfiguration: Anwendung auf Mandant nicht erlaubt","TRUSTED_APPLICATION_NOT_FOUND":"Vertrauenswürdige Anwendung nicht gefunden","TRUSTED_APPLICATION_NOT_ACCESSIBLE":"Vertrauenswürdige Anwendung nicht zugänglich","TRUSTED_APPLICATION_NAME_REQUIRED":"Vertrauenswürdige Anwendung: Name erforderlich","TRUSTED_APPLICATION_TOKEN_REQUIRED":"Vertrauenswürdige Anwendung: Token erforderlich","TRUSTED_APPLICATION_NAME_ALREADY_EXISTS":"Vertrauenswürdige Anwendung: Name existiert bereits","TRUSTED_APPLICATION_INVALID_TOKEN":"Vertrauenswürdige Anwendung: Ungültiger Token"}}');var CB;CB=JSON.parse('{"yes":"Sí","no":"No","confirm":"Confirmar","apply":"Aplicar","cancel":"Cancelar","show":"Espectáculo","hide":"Esconder","send":"Enviar","close":"Cerca","edit":"Editar","delete":"Borrar","loading":"Cargando","expand":"Expandir","collapse":"Colapsar","fullscreenEnter":"Entrar en pantalla completa","fullscreenExit":"Salir de pantalla completa","center":"Centro","bottom":"Abajo","hidden":"Oculto","day":"Día","all":"Todos","today":"Hoy","yesterday":"Ayer","last_7_days":"Últimos 7 días","last_30_days":"Últimos 30 días","placeholder":"Haz una pregunta","date":"Fecha de nacimiento","month":"Mes","copied":"¡Copiado!","missingData":"Información faltante","year":"Año","createdAt":"Fecha de creación","selected":"Seleccionado","page":"página","actions":"Comportamiento","next":"Próximo","previous":"Anterior","copy":"Copiar","copyRawCode":"Copiar código sin formato","copyToClipboard":"Copiar al portapapeles","showOriginalText":"Mostrar original","showTranslatedText":"Mostrar traducción","exactPosition":"Posición exacta","uncertain":"Incierto","question":"Pregunta","nothingFound":"No se encontró nada","venue":"Evento","searchVenue":"Buscar lugar...","privacyPolicy":"Política de privacidad","popularLanguages":"Populares","allLanguages":"Todos los idiomas","memoriBlockedTitle":"Obstruido","memoriBlockedUntil":"Agent bloqueado hasta {{date}}","memoriBlockedAnon":"Actualmente \\"{{name}}\\"No puedo responder, vuelve aquí. {{date}}","memoriBlockedReasonExceedChats":"porque ha superado el umbral mensual de chats permitidos.","memoriBlockedGiverHelper":"Aún podrás administrarlo como administrador, pero otros usuarios no podrán interactuar con él.","generatedByAI":"La respuesta generada por IA, ocasionalmente puede generar información incorrecta","reasoning":"Pensamiento...","whyThisAnswer":"¿Por qué esta respuesta?","whyThisAnswerHelper":"Esta respuesta fue generada automáticamente por una inteligencia artificial basada en estos contenidos verificados.","receiverLabel":"Asignado a","completionsEnabled":"La IA avanzada puede responder con respuestas generadas automáticamente que a veces pueden contener información incorrecta.","completionProviderDown":"Este Agent está integrado con una IA generativa de {{provider}}, pero actualmente no está disponible. ","completionProviderMajorOutage":"Este Agent está integrado con una IA generativa de {{provider}}, pero al momento no está disponible. No será posible utilizar esta funcionalidad hasta que el servicio se restaure.","completionProviderPartialOutage":"Este Agent está integrado con una IA generativa de {{provider}}, pero está experimentando interrupciones parciales. Algunas funcionalidades pueden no estar disponibles o funcionar de manera no óptima.","completionProviderDegraded":"Este Agent está integrado con una IA generativa de {{provider}}, pero está funcionando más lentamente de lo normal. Las respuestas pueden tomar más tiempo o ser menos precisas.","completionProviderFallbackName":"un proveedor externo","completionProviderCheckStatusPage":"Comprobar página de estado","boardOfExperts":"junta de expertos","birthDate":"Fecha de nacimiento","birthDateHelper":"Solicitamos tu fecha de nacimiento únicamente para habilitar o deshabilitar funcionalidades que tienen restricciones de edad.","underage":"Debes ser al menos {{age}} años para inscribirse.","underageTwinSession":"Debes ser al menos {{age}} años para interactuar con este gemelo.","errorFetchingSession":"Error durante el cargamento de la sesión","errorGettingReferralURL":"Error durante el cargamento del référent","errorReopeningSession":"Error durante el re-abrir la sesión","ageVerification":"Verificación de edad","ageVerificationText":"Para interactuar con este Gemelo, debes tener al menos {{minAge}} años.","nsfw":"NSFW: Este gemelo contiene contenido para adultos","deepThought":"pensamiento profundo","deepThoughtHelper":"Deep Thought es una característica avanzada de la IA que te permitirá explotar al máximo tus conversaciones al realizar un seguimiento de ellas. ","deepThoughtDisclaimerTitle":"Pensamiento profundo habilitado","deepThoughtDisclaimer":"Deep Thought es una característica avanzada de la IA que te permitirá explotar al máximo tus conversaciones al realizar un seguimiento de ellas. ","deepThoughtPreDisclaimerUnlogged":"Inicie sesión para habilitar Pensamiento profundo.","deepThoughtPreDisclaimerNotAllowed":"Deep Thought está deshabilitado porque usted no dio su consentimiento para su uso; puede cambiar esto en cualquier momento en la configuración de su cuenta.","notEnoughCredits":"El autor de este Gemelo no tiene suficientes créditos para responder a tu pregunta.","confirmDialog":{"title":"¿Quieres salir de esta página?","message":"Los cambios que has realizado se perderán."},"knownFacts":{"title":"hechos conocidos","description":"Detalles de la información compartida entre usted y {{memoriName}}","type":"Tipo","typeShortTerm":"Corto plazo","typeLongTerm":"Largo plazo","typeHelper":"Tipos:\\n","text":"Texto","deleteSuccess":"Hecho conocido eliminado","deleteConfirmTitle":"Eliminar hecho conocido","deleteConfirmMessage":"¿Está seguro de que desea eliminar este hecho conocido?","deleteSelectedConfirmTitle":"Eliminar hechos conocidos seleccionados","deleteSelectedConfirmMessage":"¿Está seguro de que desea eliminar los hechos conocidos seleccionados?"},"auth":{"title":"Autenticación","useRecoveryTokens":"Utilice tokens de recuperación","tokens":"Fichas","addToken":"Agregar token","usePassword":"Usar contraseña","passwordRequired":"Contraseña obligatoria","invalidCredentials":"Credenciales no válidas","atLeast":"Al menos"},"widget":{"instruct":"Instruir","test":"Probar","sound":"Sonido","position":"Preferencias de posición","settings":"Ajustes","share":"Compartir","shareChat":"Compartir chat","sendOnKeypress":"Presiona Enter para enviar","sendOnClick":"Haz clic en Enviar","boardOfExperts":"Panel de expertos","showExpertsInTheBoard":"Mostrar expertos en este panel","expertsInTheBoard":"Expertos en este panel","goToIntegrationsToCustomizeAvatar":"Para personalizar el avatar, ve a Compartir y personaliza la página pública"},"exportChatHistory":{"exportPDF":"Exportar chat como PDF","exporting":"Exportando...","empty":"No hay historial de chat para exportar","pdfNotSupported":"La exportación PDF no es compatible con este navegador","success":"Chat exportado a PDF exitosamente","error":"Error al exportar el chat a PDF. Por favor, inténtalo de nuevo."},"write_and_speak":{"micButtonPopover":"Haga clic en el botón para hablar","micButtonPopoverListening":"Haga clic en el botón para dejar de hablar.","pageInstructExplanation":"Para enseñarme cosas nuevas, haga clic en el botón INSTRUIRME para comenzar.","pageTryMeExplanation":"Para hablar conmigo haga clic en el botón INICIO para comenzar","pagePrivacyExplanation":"Las conversaciones son visibles por el autor del agente","pagePrivacyExplanationList":{"allConversations":"Todas las conversaciones con este agente son visibles por el autor del agente","anonymousUser":"Para usuarios anónimos: el autor verá el contenido de la conversación y su dirección IP","registeredUser":"Para usuarios registrados: el autor verá el contenido de la conversación y su nombre de usuario","contentAndUsername":"El autor puede ver el contenido, tu nombre de usuario y tu dirección IP","contentAndIpAddress":"El autor puede ver el contenido y tu dirección IP","authorUsesInfo":"El autor utiliza estas informaciones para mejorar las funciones del agente y para ofrecerte un mejor servicio. Continuando la conversación, acepta estas condiciones."},"instructButton":"INSTRUÍME","downloadChat":"Descargar chat","tryMeButton":"COMENZAR","resumeButton":"CONTINUAR","chatHistory":"Historial de chat","chatHistoryDescription":"Mostrar el historial de chat con este agente","loadingChatHistory":"Cargando historial de chat...","noChatHistoryAvailable":"No hay historial de chat disponible","noResultsFound":"No se encontraron resultados para \\"{{searchText}}\\"","searchInChatHistory":"Buscar en el historial de chat...","latestFirst":"Más recientes primero","oldestFirst":"Más antiguos primero","exportChat":"Exportar Chat","conversationStartedLabel":"Conversación iniciada","settingsHeaderLabel":"Configure aquí si desea configurar la memoria como voz continua y cambie los segundos de silencio si desea personalizarlos.","continuousSpeechLabel":"discurso continuo","continuousSpeechDisabled":"Discurso continuo deshabilitado porque el agente está en modo silencioso","holdToSpeak":"Mantenga para hablar","releaseToEndListening":"Suelte para finalizar la escucha","pressAndHoldToSpeak":"Mantenga presionado para hablar","microphoneMode":"Modo micrófono","hideEmissionsLabel":"Ocultar texto emitido por el Agent","secondsLabel":"Establecer segundos","controlsPosition":"Posición de los controles","tryMeHeaderLabel":"INTENTAR","unknownPosition":"Posición desconocida","fieldPlace":"Escribe el lugar (por ejemplo, \'Milano\')","showMapLinkFor":"Mostrar la posición en el mapa.","useMyPosition":"Usa mi posición","myPosition":"Tu posición","updatingPosition":"Actualizando posición...","placeNotFound":"¡Lugar no encontrado!","requirePosition":"Inserte su posición antes de comenzar","requirePositionHelp":"para hablar con {{name}} usted tiene que decidir si proporciona su puesto o no. ","dontWantToProvidePosition":"No quiero proporcionar mi puesto.","attachmentsLabel":"Enriquece tu mensaje","iWantToTalkToIn":"quiero hablar con {{name}} en","message":"mensaje","messages":"mensajes","page":"Página {{current}} de {{total}}"},"artifact":{"close":"Cerrar","size":"Tamaño","generated":"Generado","download":"Descargar","print":"Imprimir","external":"Abrir en una nueva ventana","type":"Tipo","fullscreen":"Pantalla completa","exitFullscreen":"Salir de pantalla completa","copy":"Copiar","generatedAt":"Generado el","open":"Abrir","code":"Código","preview":"Vista previa","copied":"¡Copiado!","error":"Error","generatingPdf":"Generando PDF...","copying":"Copiando...","moreCopyOptions":"Más opciones de copia","copyAs":"Copiar como","downloadAsMarkdown":"Descargar como Markdown","downloadRawMarkdownText":"Descargar texto markdown sin formato","downloadAsPdf":"Descargar como PDF","exportAsPdfDocument":"Exportar como documento PDF","downloadAsHtml":"Descargar como HTML","downloadFormattedHtml":"Descargar HTML formateado","viewMode":"Modo Vista","codeMode":"Modo Código","refresh":"Actualizar","share":"Compartir","downloadAsJson":"Descargar como JSON","downloadJsonData":"Descargar datos JSON","downloadAsPng":"Descargar como PNG","downloadPngImage":"Descargar imagen PNG","downloadAsJpeg":"Descargar como JPEG","downloadJpegImage":"Descargar imagen JPEG","downloadAsGif":"Descargar como GIF","downloadGifImage":"Descargar imagen GIF","downloadAsWebp":"Descargar como WebP","downloadWebpImage":"Descargar imagen WebP","copyAsSvg":"Copiar como SVG","copySvgSourceCode":"Copiar código fuente SVG","copyAsPlainText":"Copiar como texto plano","copyAsText":"Copiar como texto","copyAsLanguage":"Copiar como {{language}}","copyLanguageCode":"Copiar código {{language}}","copyWithoutSyntaxHighlighting":"Copiar sin resaltado de sintaxis","copyTextContent":"Copiar contenido de texto","pdfExportNotSupported":"La exportación PDF no es compatible con este navegador","popupBlocked":"¡Popup bloqueado! Por favor, habilita los popups para imprimir.","safariPdfInstructions":"Exportación PDF abierta en nueva ventana. Por favor, usa Cmd+P (Mac) o Ctrl+P (Windows) para imprimir y guardar como PDF."},"upload":{"loginRequired":"Connexion requise","pastedText":"texto-pegado","uploadNotification":"Échec del téléchargement","loginRequiredDescription":"Veuillez vous connecter pour télécharger des images","uploadFiles":"Télécharger des fichiers ({{shortcut}}+O para abrir el selector de archivos)","uploadFilesWithShortcut":"{{shortcut}}+O para abrir el selector de archivos","uploadImages":"Télécharger des images","uploadDocuments":"Télécharger des documents","apiClientNotConfigured":"API client non configuré correctement pour le téléchargement de médias","fileReadingFailed":"Échec de la lecture du fichier","uploadFailed":"Échec du téléchargement","uploadSuccess":"Téléchargement réussi","uploadSuccessDescription":"Le fichier a été téléchargé avec succès","replace":"Remplacer","maxImagesReached":"Vous pouvez télécharger jusqu\'à {{max}} images","remaining":"restant","maxReached":"Limite atteinte","dragAndDropFiles":"Arrastre y suelte los archivos aquí para agregarlos a la chat","contextSizeExceedsLimit":"El tamaño del contexto supera el límite. Intenta reducir el número de archivos o el contenido de la conversación.","filesNotAddedMaxAllowed":"{{count}} archivo(s) no añadido(s) (máximo {{max}} archivos permitidos).","documentsNotAddedMaxAllowed":"{{count}} documento(s) no añadido(s) (máximo {{max}} archivos permitidos).","imagesNotAddedMaxAllowed":"{{count}} imagen(es) no añadida(s) (máximo {{max}} archivos permitidos).","documentsNotAddedContextSize":"{{count}} documento(s) no añadido(s) (límite de tamaño de contexto)."},"media":{"title":"Título","editAttributes":"Editar atributos de medios","uploadMimeTypeNotAllowed":"El tipo de archivo no está permitido.","uploadSizeLimitMessage":"El tamaño subido es demasiado grande (máx. {{size}}MEGABYTE)","uploadWrongResolutionMessage":"La resolución debe ser {{width}}incógnita{{height}} píxel","memoriNameAlreadyUsed":"Ya tienes un gemelo con este nombre.","uploadHelperImages":"Sube un archivo con extensión png, jpg, jpeg o gif, y que tenga como máximo un tamaño de {{size}}MEGABYTE","uploadHelper":"Cargue un archivo que tenga como máximo un tamaño de {{size}}MEGABYTE","uploadError":"Error al subir","square":"cuadrado","scaleRatio":"Relación de escala","addMediaLabel":"Agregar un medio","insertThisMediaMsg":"Inserte estos medios","mediaUploadMessage":"Haga clic para cargar un nuevo medio","addLinkLabel":"Agregar un enlace","linkKey":"URL","linkValue":"Título del enlace","insertThisLink":"Insertar un enlace a {{url}} con titulo {{title}}"},"gamification":{"level":"Nivel","points":"agujas","memoriReachedLevel":"se volvió más evolucionado y alcanzó el nivel","levelGoToStatistics":"{{Agent}} esta al nivel {{level}} con {{points}} agujas. ","congratulationsNewLevel":"¡Felicitaciones, has alcanzado un nuevo nivel!","congratulationsNewLevelDescription":"Tu Agent se volvió más evolucionado con {{points}} puntos, mira el","statistics":"estadística"},"login":{"login":"Acceso","logout":"Cerrar sesión","user":"Usuario","loggedDrawerTitle":"Hola, {{name}}!","loginDrawerTitle":"Acceso","userNameRequired":"Nombre de usuario requerido","userName":"Nombre de usuario","userNamePlaceholder":"Ingrese el nombre de usuario","signupDrawerTitle":"Inscribirse","newUserSignUp":"¿Nuevo usuario?","signUp":"¡Inscribirse!","alreadyHaveAnAccount":"¿Ya tienes una cuenta?","backToLogin":"Volver a iniciar sesión","registrationDisabled":"El registro está deshabilitado","contactAdmin":"Póngase en contacto con el administrador para solicitar acceso","userNameOrEmail":"Nombre de usuario o correo electrónico","email":"Correo electrónico","emailFormatError":"Por favor, inserte un correo electrónico válido","username":"Nombre de usuario","usernameContainsReservedWord":"El nombre de usuario contiene una palabra reservada, elija otra","usernameFormatError":"El nombre de usuario debe tener al menos 3 caracteres y contener solo letras, números y _","otpCode":"Código de verificación","resendVerificationCode":"Reenviar código","resentVerificationCode":"¡Código de confirmación enviado! ","welcomeTitle":"Bienvenido de nuevo","welcomeDescription":"Ingresa tu código de verificación de 4 dígitos para continuar a tu cuenta","otpTitle":"Ingresa el código de verificación","otpDescription":"Ingresa el código de 4 dígitos que generaste en tu cuenta","otpStep1":"Haz clic en el botón de abajo para abrir tu cuenta","otpStep2":"Genera un código de verificación de 4 dígitos (válido por 60 segundos)","otpStep3":"Regresa aquí e ingresa el código","startOtpLogin":"Iniciar verificación","generateOtp":"Generar código","otpTimer":"El código expira en {{seconds}} segundos","otpInvalidFormat":"Por favor ingresa un código válido de 4 dígitos","otpInvalid":"Código de verificación inválido","otpError":"Error al validar el código. Por favor intenta de nuevo.","otpSuccess":"¡Inicio de sesión exitoso!","otpEmailTitle":"Ingresa tu email","otpEmailDescription":"Ingresa tu dirección de email para recibir un código de verificación","otpCodeDescription":"Ingresa el código de 4 dígitos enviado a {{email}}","emailPlaceholder":"Ingresa tu email","sendOtp":"Enviar código","resendOtp":"Reenviar código","resending":"Reenviando...","backToEmail":"Volver al email","otpSent":"¡Código de verificación enviado!","otpResent":"¡Código reenviado exitosamente!","otpSendError":"Error al enviar el código. Por favor intenta de nuevo.","emailRequired":"Email requerido","emailInvalid":"Por favor ingresa una dirección de email válida","otpNotFound":"Código de verificación no encontrado","otpExpired":"El código de verificación ha expirado","otpMissing":"El código de verificación es requerido","otpSuccessMessage":"¡Verificación exitosa! Redirigiendo...","otpSuccessDescription":"Tu cuenta ha sido verificada exitosamente. Serás redirigido en breve.","otpHelp":"Ingresa el código de 4 dígitos de tu email","emailHelp":"Te enviaremos un código de verificación","userFetchError":"Error al cargar los datos del usuario. Por favor intenta de nuevo.","otpStep1Title":"Ingresa Email","otpStep2Title":"Revisa Email","otpStep3Title":"Ingresa Código","featureFast":"Rápido","featureSecure":"Seguro","featureMobile":"Móvil","password":"Contraseña","newPassword":"Nueva contraseña","confirmPassword":"confirmar Contraseña","currentPassword":"Contraseña actual","passwordMatchingError":"Las contraseñas no coinciden.","passwordFormatError":"La contraseña debe tener al menos 8 caracteres y contener al menos un número, una letra mayúscula, una letra minúscula y un símbolo.","pwdWeak":"Débil","pwdAcceptable":"Aceptable","pwdStrong":"Fuerte","mustChangePassword":"Debes cambiar tu contraseña","passwordChange":"Cambiar la contraseña","emailChange":"Cambiar correo electrónico","avatarChange":"Cambiar avatar","underage":"Debes ser al menos {{age}} años para inscribirse.","optional":"Opcional","birthDate":"Fecha de nacimiento","birthDateHelper":"Solicitamos tu fecha de nacimiento únicamente para habilitar o deshabilitar funcionalidades que tienen restricciones de edad.","missingData":"Información faltante","missingDataHelper":"Sabemos que esto es un poco molesto, pero necesitamos más información para completar tu registro.","goToAccountToChangeYourPreferences":"Puede cambiar su elección en cualquier momento desde la página de su Cuenta.","deepThoughtExplaination":"Deep Thought es una característica avanzada de la IA que te permitirá explotar al máximo tus conversaciones al realizar un seguimiento de ellas. ","tnCAndPPAcceptedHelper":"Desde su último inicio de sesión, los Términos y condiciones y la Política de privacidad han cambiado. ","privacyLabel":"He leído y acepto el","privacyAndCookiePolicy":"Política de privacidad y cookies","and":"y","termsOfService":"Términos de servicio","pAndCUAccepted":"Acepto los términos de servicio sobre Deep Thought","editAccount":"Editar cuenta","save":"Ahorrar","successfullyLoggedIn":"{{username}} ha iniciado sesión correctamente"},"chatLogs":{"anyMessage":"Cualquier mensaje","atLeast":"Al menos {{count}} mensajes","atLeast2":"Al menos 2 mensajes","atLeast3":"Al menos 3 mensajes","atLeast5":"Al menos 5 mensajes","atLeast10":"Al menos 10 mensajes","atLeast15":"Al menos 15 mensajes","atLeast20":"Al menos 20 mensajes","customMinimumMessages":"Personalizar el número de mensajes"},"success":"Éxito","Error":"Error","internal server error":"Oupsie, lo siento... Algo salió mal en el servidor.","error":"Error","error.loading":"Error al cargar contenido.","error.generic":"Oupsie, lo siento... algo salió mal.","error.serverNotResponding":"Estamos realizando mantenimiento o lanzando actualizaciones. ","error.notFound":"Oupsie, no encontramos la página que buscabas.","error.goBackTo":"Puedes intentar volver al","error.reloadPage":"recargar la pagina","error.tryAgain":"Intentar otra vez","error.unauthorized":"No estás autorizado a ver este contenido.","error.unprocessableEntity":"Error al procesar la solicitud. ","errors":{"TENANT_NOT_FOUND":"Inquilino no encontrado","TENANT_REGISTRATION_DISABLED":"El registro en esta plataforma está deshabilitado","TENANT_MISSING_NAME":"Inquilino: falta el nombre","TENANT_MAX_USERS_REACHED":"Número máximo de usuarios alcanzado","TENANT_MAX_ADMINS_REACHED":"Número máximo de usuarios administradores alcanzado","TENANT_ALREADY_EXISTS":"El inquilino ya existe","TENANT_MISSING_DESCRIPTION":"Inquilino: falta descripción","TENANT_CANT_SET_COMPLETION_PROVIDER":"Inquilino: no se puede configurar el proveedor de finalización","TENANT_INVALID_TYPE":"Inquilino: tipo no válido","USER_NOT_CONFIRMED":"Usuario aún no confirmado","USER_NOT_FOUND":"Usuario no encontrado","USER_OR_PASSWORD_INVALID":"Usuario o contraseña no válidos","USER_MUST_CHANGE_PASSWORD":"Debes cambiar tu contraseña","USER_MUST_ENTER_VERIFICATION_CODE":"Debes ingresar el código de verificación","USER_MISSING_TENANT":"Usuario: inquilino desaparecido","USER_MISSING_NAME":"Usuario: falta el nombre","USER_MISSING_PASSWORD":"Usuario: falta contraseña","USER_MISSING_EMAIL":"Usuario: Falta correo electrónico","USER_MISSING_VERIFICATION_CODE":"Usuario: Falta el código de verificación","USER_NAME_ALREADY_USED":"Nombre de usuario ya en uso","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"La contraseña no cumple con las reglas de seguridad.","USER_EMAIL_ALREADY_USED":"Correo electrónico ya en uso","USER_EMAIL_INVALID":"Correo electrónico no válido","USER_VERIFICATION_CODE_INVALID":"Código de verificación no válido","USER_MISSING_NAME_OR_EMAIL":"Falta nombre de usuario o correo electrónico","USER_NAME_INVALID":"Nombre de usuario no válido","USER_HAS_ONE_OR_MORE_MEMORI":"El usuario tiene uno o más recuerdos.","USER_MISSING_NEW_PASSWORD":"Usuario: falta nueva contraseña","USER_NOTHING_TO_DO":"Nada que hacer","USER_CANT_CREATE_MEMORI":"Usuario no autorizado a crear Agent","USER_MAX_MEMORI_REACHED":"Número máximo de Agent alcanzado","USER_TOO_MANY_ATTEMPTS":"demasiados intentos","USER_MUST_ACCEPT_TNC_AND_PP":"Debes aceptar los términos y condiciones.","USER_BIRTH_DATE_CANT_BE_CHANGED":"La fecha de nacimiento no se puede cambiar.","USER_CANT_SET_COMPLETION_PROVIDER":"Usuario: no tiene permiso para gestionar el proveedor de finalización","USER_CANT_ENABLE_DEEP_THOUGHT":"Usuario: no habilitado para gestionar Deep Thought","USER_CANT_ENABLE_DCM_INTEGRATION":"Usuario: no habilitado para gestionar la integración de DCM","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"Usuario: no se le permite gestionar encadenamiento o grupo de expertos","USER_CREATION_BILLING_DENIED_PERMISSION":"No tienes suficientes créditos para crear un gemelo","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"El usuario tiene una o más configuraciones de finalización.","USER_CANT_BE_DELETED":"Usuario: no se puede eliminar","USER_ORDER_BY_INVALID":"Orden por no válido","MEMORI_NOT_FOUND":"Memoria no encontrada","MEMORI_NOT_ACCESSIBLE":"Memorias no accesibles","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Sólo el propietario puede cambiar la etiqueta o el pin","SESSION_NOT_FOUND":"Sesión no encontrada","SESSION_IS_NOT_ADMINISTRATIVE":"Sesión no administrativa","SESSION_EXPIRED":"La sesión expiró","SESSION_OTP_NOT_FOUND":"Código de verificación no encontrado","SESSION_OTP_EXPIRED":"El código de verificación ha expirado","SESSION_MISSING_TEMPORARY_TOKEN":"El código de verificación es requerido","MEMORI_MISSING_CONFIGURATION":"Gemelo: falta configuración","MEMORI_CONFIGURATION_NOT_FOUND":"Gemelo: configuración no encontrada","MEMORI_INVALID_PRIVACY_TYPE":"Gemelo: tipo de privacidad no válido","MEMORI_MISSING_PASSWORD":"Gemelo: falta contraseña","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Gemelo: número total de tokens de recuperación no válidos","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Gemelo: número mínimo de tokens de recuperación no válidos","MEMORI_INVALID_VOICE_TYPE":"Gemelo: tipo de voz no válido","MEMORI_MISSING_NAME":"Gemelo: falta nombre","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Gemelo: falta contraseña o token de recuperación","MEMORI_INVALID_ID":"Gemelo: identificación no válida","MEMORI_NAME_ALREADY_USED":"Nombre gemelo ya en uso","MEMORI_INVALID_PIN":"Gemelo: PIN no válido","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Gemelo: el cambio de TAG y PIN requiere operaciones separadas","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Agent: no se requiere contraseña cuando es público","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Deep Thought requiere que las completaciones estén habilitadas","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"El grupo de expertos requiere que se habiliten las completaciones.","MEMORI_INVALID_COMPLETION_CONFIG":"Gemelo: configuración de finalizaciones no válidas","MEMORI_MACRO_FUNCTIONS_REQUIRES_COMPLETIONS":"Macro funciones requiere que se habiliten las finalizaciones","MEMORI_BLOCKING_DATE_MISSING_OR_WRONG":"Gemelo: fecha de bloqueo faltante o incorrecta","MEMORI_LIST_FILTER_NOT_SPECIFIED":"Gemelo: filtro no especificado","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Transferencia: falta usuario de destino","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Transferencia: ID de usuario de destino no válido","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Transferencia: datos de usuario de destino no válidos","MEMORI_TRANSFER_NOTHING_TO_DO":"Transferencia: nada que hacer","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Memorias: la configuración no se puede cambiar","MEMORI_MISSING_NEW_PASSWORD":"Recuerdos: falta nueva contraseña","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"La función requiere suscripción","INTEGRATION_NOT_FOUND":"Integración no encontrada","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Fecha no válida del formato","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Fecha no válida para formatear","MEMORI_SESSION_NOT_FOUND":"Sesión no encontrada","MEMORI_SESSION_DOESNT_ACCEPT_MEDIA":"Sesión no acepta medios","INTEGRATION_INVALID_TYPE":"Tipo de integración no válido","INTEGRATION_ALREADY_EXISTS":"La integración ya existe","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Las memorias no públicas no se pueden integrar","INTEGRATION_MISSING_INVOCATION_TEXT":"Integración: falta texto de invocación","INTEGRATION_MISSING_DEVICE_EMAILS":"Integración: correo electrónico del dispositivo perdido","INTEGRATION_MEMORI_IS_EMPTY":"Los recuerdos vacíos no se pueden integrar","INTEGRATION_MISSING_PRIVACY_POLICY":"Integración: falta la política de privacidad","INTEGRATION_MISSING_CATEGORY":"Falta categoría de integración","INTEGRATION_MISSING_DESCRIPTION":"Falta descripción de integración","INTEGRATION_INVALID_INVOCATION_TEXT":"Texto de invocación no válido","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home ya no está disponible","UPLOAD_REQUIRES_MULTIPART_ENCODING":"La carga requiere codificación multiparte","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Upload: falta límite de tipo de contenido","UPLOAD_MAX_LENGTH_EXCEEDED":"Upload: se superó el tamaño máximo","UPLOAD_FILE_IS_EMPTY":"Upload: archivo vacío","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Upload: tipo de archivo o firma no válidos","UPLOAD_MISSING_FILE_NAME":"Upload: falta el nombre del archivo","UPLOAD_INVALID_MEMORY_ID":"Upload: ID de contenido no válido","UPLOAD_MISSING_FILE_CONTENT":"Upload: Falta contenido del archivo","ASSET_NOT_FOUND":"Asset no encontrado","ASSET_NOT_ACCESSIBLE":"Asset no accesible","ASSET_MISSING_SESSION_ID":"Asset: ID de sesión faltante","ASSET_INVALID_FILE_NAME":"Asset: nombre de archivo no válido","ASSET_MALWARE_SCAN_THREATS_FOUND":"Asset: encontró amenazas de malware","INVITATION_NOT_FOUND":"Invitación no encontrada","INVITATION_NOT_ACCESSIBLE":"Invitación no accesible","INVITATION_ALREADY_ACCEPTED":"Invitación ya aceptada","INVITATION_ALREADY_REJECTED":"Invitación ya rechazada","INVITATION_MISSING_DESTINATION_EMAIL":"Invitación: falta el correo electrónico de destino","INVITATION_DESTINATION_EMAIL_INVALID":"Invitación: correo electrónico de destino no válido","INVITATION_MISSING_TAG":"Invitación: falta etiqueta","INVITATION_MISSING_PIN":"Invitación: falta el PIN","INVITATION_INVALID_PIN":"Invitación: PIN no válido","INVITATION_INVALID_TYPE":"Invitación: tipo no válido","INVITATION_MISSING_DESTINATION_NAME":"Invitación: falta el nombre del destino","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Invitación: la etiqueta y el pin no se pueden cambiar","INVITATION_CANT_BE_CHANGED":"Intación: no se puede cambiar","ACTIONLOG_INVALID_USER_ID":"ID de usuario no válido","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Fecha de: formato no válido","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Fecha hasta: formato no válido","ACTIONLOG_INVALID_MEMORI_ID":"ID de memoria no válida","CONSUMPTIONLOG_INVALID_TYPE":"Tipo de registro no válido","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Fecha de: formato no válido","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Fecha hasta: formato no válido","CONSUMPTIONLOG_INVALID_USER_ID":"ID de usuario no válido","CONSUMPTIONLOG_INVALID_MEMORI_ID":"ID de memoria no válida","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Notificaciones: Período de extracción del registro de chat no válido","BROADCAST_NOT_ALLOWED":"Broadcast no permitido","INVALID_NOTIFICATION_TYPE":"Tipo de notificación no válido","NOTIFICATION_NOT_FOUND":"Notificación no encontrada","INVALID_NOTIFICATION_FILTER":"Filtro de notificación no válido","INVALID_NOTIFICATION_PERIOD":"Período de notificación no válido","PROCESS_INVALID_TYPE":"Tipo de proceso no válido","PROCESS_ALREADY_RUNNING":"Proceso ya en ejecución","PROCESS_NOT_FOUND":"Proceso no encontrado","IMPORTCSV_MISSING_ROWS":"Importación CSV: filas faltantes","IMPORTCSV_MISSING_CSV":"Importación CSV: Falta CSV","IMPORTCSV_MISSING_SEPARATOR":"Importación CSV: falta separador","IMPORTCSV_INVALID_SEPARATOR":"Importación CSV: separador no válido","IMPORTCSV_MISSING_HEADERS":"Importación CSV: faltan encabezados","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Importación CSV: falta el separador de variante de título","IMPORTCSV_INVALID_RECEIVER_ID":"Importación CSV: ID de receptor no válido","IMPORTCSV_INVALID_MEDIA_LINK":"Importación CSV: enlace multimedia no válido","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"Importación CSV: título del enlace no válido","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"Importación CSV: codificación de caracteres indetectable","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"Importación CSV: no se puede importar a Secret Memories","IMPORTTXT_MISSING_ROWS":"Importando TXT: filas faltantes","IMPORTTXT_INVALID_GRANULARITY":"Importar TXT: granularidad no válida","IMPORTTXT_INVALID_RECEIVER_ID":"Importar TXT: ID de receptor no válido","IMPORTTXT_INVALID_MEDIA_LINK":"Importar TXT: enlace multimedia no válido","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"Importar TXT: título del enlace no válido","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"Importación TXT: codificación de caracteres indetectable","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"Importación TXT: No se puede importar a Secret Memories","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"Importar TXT: límite de importación excedido","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"Importar TXT: la importación en GPT-4 requiere una clave API","IMPORTTXT_IMPORT_REQUIRES_PAYING":"Importar TXT: la importación requiere un plan de pago","IMPORTTXT_BILLING_DENIED_PERMISSION":"Importar TXT: no tienes suficientes créditos para la operación","IMPORT_MISSING_ROWS":"Importar: filas faltantes","IMPORT_CANT_IMPORT_TO_SECRET_MEMORI":"Importar: no se puede importar a Secret Memories","IMPORTMEMORI_INVALID_MEMORI_SPECS":"Importar MEMORI: especificaciones de memoria no válidas","IMPORT_MISSING_JSONL":"Importar: faltan JSONL","IMPORTMEMORI_INVALID_SPECS":"Importar MEMORI: especificaciones no válidas","EXPORT_MISSING_PASSWORD":"Exportar: falta contraseña","EXPORTCSV_MISSING_CSV_SPECS":"Exportación CSV: faltan especificaciones CSV","EXPORTCSV_MISSING_SEPARATOR":"Exportación CSV: falta separador","EXPORTCSV_INVALID_SEPARATOR":"Exportación CSV: separador no válido","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Exportación CSV: falta el separador de variante de título","EXPORTCSV_MISSING_NEW_LINE_CHAR":"Exportación CSV: falta un carácter de nueva línea","EXPORTCSV_INVALID_NEW_LINE_CHAR":"Exportación CSV: carácter de nueva línea no válido","EXPORTCSV_MISSING_PASSWORD":"Exportación CSV: falta contraseña","EXPORTJSONL_MISSING_JSONL_SPECS":"Exportación JSONL: faltan especificaciones JSONL","EXPORTJSONL_MISSING_PLATFORM":"Exportación JSONL: plataforma faltante","EXPORTJSONL_INVALID_PLATFORM":"Exportación JSONL: plataforma no válida","EXPORTJSONL_MISSING_PASSWORD":"Exportación JSONL: falta contraseña","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"Exportación JSONL: la exportación requiere un plan pago","ANALYSIS_MISSING_QUERY":"Análisis: consulta faltante","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Análisis: No se pueden analizar recuerdos secretos","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Análisis: hacer coincidir la consulta del usuario requiere un pensamiento profundo","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Asignación de insignia: credenciales incorrectas o faltantes","BADGE_ASSIGNMENT_MISSING_REF_ID":"Asignación de insignia: falta el ID de referencia","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Asignación de insignia: resultado no encontrado","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Asignación de insignia: falta la URL de aserción","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Asignación de insignia: URL de insignia faltante","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Asignación de insignia: falta la URL del emisor","BADGE_ASSIGNMENT_INVALID_URL":"Asignación de insignia: URL no válida","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Asignación de insignia: destinatario faltante","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Asignación de insignia: tipo de destinatario desconocido","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Asignación de insignia: falta la identidad del destinatario","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Asignación de insignia: falta el tipo de hash del destinatario","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Asignación de insignia: tipo de hash del destinatario desconocido","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Asignación de insignia: identidad del destinatario incorrecta","BADGE_NOT_FOUND":"Insignia no encontrada","OUTCOME_NO_DCM_CONFIGURED":"Resultado: no hay ningún DCM configurado","OUTCOME_USER_BADGES_DISABLED":"Resultado: insignias de usuario deshabilitadas","COMPLETION_CONFIG_MISSING_NAME":"Configuración de terminaciones: falta nombre","COMPLETION_CONFIG_MISSING_PROVIDER":"Configuración de terminaciones: falta proveedor","COMPLETION_CONFIG_MISSING_ENDPOINT":"Configuración de terminaciones: falta punto final","COMPLETION_CONFIG_MISSING_API_KEY":"Configuración de terminaciones: falta clave API","COMPLETION_CONFIG_MISSING_MODEL":"Configuración de terminaciones: modelo faltante","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Configuración de terminaciones: se debe especificar al menos un tipo de terminaciones","COMPLETION_CONFIG_INVALID_NAME":"Configuración de terminaciones: nombre no válido","COMPLETION_CONFIG_INVALID_PURPOSE":"Configuración de terminaciones: tipo de terminaciones no válidas","COMPLETION_CONFIG_INVALID_ENDPOINT":"Configuración de terminaciones: punto final no válido","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Configuración de terminaciones: punto final inconsistente","COMPLETION_CONFIG_INVALID_PROVIDER":"Configuración de terminaciones: proveedor no válido","COMPLETION_CONFIG_NOT_FOUND":"Configuración de terminaciones: no encontrada","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Configuración de terminaciones: no accesible","COMPLETION_CONFIG_NAME_RESERVED":"Configuración de terminaciones: nombre reservado","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Configuración de terminaciones: el nombre ya existe","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Configuración de terminaciones: cambio de visibilidad no permitido","COMPLETION_CONFIG_MISSING_MANDATORY_PREFIX":"Configuración de terminaciones: prefijo obligatorio faltante","COMPLETION_CONFIG_VISIBILITY_NOT_PERMITTED":"Configuración de terminaciones: visibilidad no permitida","COMPLETION_CONFIG_USE_AS_DEFAULT_NOT_PERMITTED":"Configuración de terminaciones: uso como predeterminado no permitido","COMPLETION_CONFIG_USE_AS_DEFAULT_REQUIRES_TENANT_VISIBILITY":"Configuración de terminaciones: uso como predeterminado requiere visibilidad del inquilino","COMPLETION_CONFIG_CHARGEABLE_NOT_PERMITTED":"Configuración de terminaciones: chargeable no permitido","COMPLETION_CONFIG_INVALID_APPLY_TO":"Configuración de terminaciones: apply to no válido","COMPLETION_CONFIG_APPLY_TO_TENANT_NOT_ALLOWED":"Configuración de terminaciones: apply to tenant no permitido","TRUSTED_APPLICATION_NOT_FOUND":"Aplicación de confianza no encontrada","TRUSTED_APPLICATION_NOT_ACCESSIBLE":"Aplicación de confianza no accesible","TRUSTED_APPLICATION_NAME_REQUIRED":"Aplicación de confianza: nombre requerido","TRUSTED_APPLICATION_TOKEN_REQUIRED":"Aplicación de confianza: token requerido","TRUSTED_APPLICATION_NAME_ALREADY_EXISTS":"Aplicación de confianza: nombre ya existe","TRUSTED_APPLICATION_INVALID_TOKEN":"Aplicación de confianza: token no válido"}}');const NB=AB({resources:{en:{translation:t(TB)},it:{translation:t(EB)},es:{translation:t(CB)},fr:{translation:t(IB)},de:{translation:t(MB)}},lng:"en",fallbackLng:"it",supportedLngs:["en","it","fr","es","de"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1}});NB.init();var OB=NB;c=o("85Hg2");function RB(e){var t=e.i18n,n=e.defaultNS,i=e.children,r=(0,c.useMemo)((function(){return{i18n:t,defaultNS:n}}),[t,n]);return(0,c.createElement)(Re.Provider,{value:r},i)}var LB=({children:e})=>(0,a.jsx)(RB,{i18n:OB,children:e});const PB=e=>{var t;if(!e)return{};const n=null===(t=null==e?void 0:e.split(","))||void 0===t?void 0:t.reduce(((e,t)=>{const[n,i]=t.split(":").map((e=>e.trim()));return{...e,[n]:i}}),{});return n},DB=({ownerUserName:e,ownerUserID:t,memoriName:n,memoriID:i,integration:r,integrationID:o,tenantID:s,secretToken:l,sessionID:u,layout:d,customLayout:h,showShare:p,showCopyButton:m=!0,showTranslationOriginal:f=!1,showSettings:g,showTypingText:v=!1,showClear:y=!1,showOnlyLastMessages:_,showInputs:b=!0,showDates:x=!1,showContextPerLine:w=!1,showUpload:S,showLogin:E,showReasoning:A,height:T="100%",baseURL:I,apiURL:M="https://backend.memori.ai",engineURL:C="https://engine.memori.ai",tag:N,pin:O,context:R,initialQuestion:L,showChatHistory:P=!0,uiLang:D,spokenLang:k,multilingual:B,authToken:F,enableAudio:U,defaultSpeakerActive:z=!0,disableTextEnteredEvents:G=!1,onStateChange:j,additionalInfo:H,customMediaRenderer:V,additionalSettings:W,userAvatar:q,useMathFormatting:$=!1,autoStart:Y,applyVarsToRoot:J=!1,__WEBCOMPONENT__:Z=!1,maxTotalMessagePayload:X,maxTextareaCharacters:K})=>{var Q,ee,ne,re,oe,ae,se,le;const[ce,ue]=(0,c.useState)(),[de,he]=(0,c.useState)(),[pe,me]=(0,c.useState)(),[fe,ge]=(0,c.useState)(),{t:ve}=qe();if(!(i&&t||n&&e))throw new Error("Identifier pair required: please provide either memoriID and ownerUserID or memoriName and ownerUserName");const ye=te(M,C),_e=(0,c.useCallback)((async()=>{const e=I||(s.startsWith("https://")?s:`https://${s}`);try{const t=await fetch(`${e}/api/speechkey?tenant=${s}`,{method:"GET",headers:{"Content-Type":"application/json"}}),n=await t.json();n.provider?me(n.provider):console.warn("Provider not found in speech key response")}catch(e){console.error("Error fetching speech key:",e)}}),[I,s]);(0,c.useEffect)((()=>{_e()}),[]);const be=(0,c.useCallback)((async()=>{if(i&&t){const{memori:e,...n}=await ye.backend.getMemoriByUserAndId(s,t,i);0===n.resultCode&&e?ue(e):console.error("[MEMORI]",n,e)}else if(n&&e){const{memori:i,...r}=await ye.backend.getMemori(s,e,n);0===r.resultCode&&i?(!i.ownerUserID&&t&&(i.ownerUserID=t),ue(i)):console.error("[MEMORI]",r,i)}}),[i,t,n,e,s]);(0,c.useEffect)((()=>{be()}),[be,s]);const xe=(0,c.useCallback)((async()=>{const{tenant:e,...t}=await ye.backend.tenant.getTenant(s);e&&0===t.resultCode?he(e):console.debug("[TENANT]",t,e)}),[s,M]);(0,c.useEffect)((()=>{xe()}),[xe]),(0,c.useEffect)((()=>{const e=document.querySelector(`memori-client[memoriname="${null==ce?void 0:ce.name}"]`)||document.querySelector(`memori-client[memoriid="${null==ce?void 0:ce.memoriID}"]`)||document.querySelector("memori-client");if(!e)return;const t=new MutationObserver(((e,t)=>{for(const t of e)if("attributes"===t.type){const e="MEMORI-CLIENT"===t.target.nodeName?t.target:t.target.parentElement,n=e.getAttribute("sessionid")||void 0;e&&n&&ge(n)}}));return t.observe(e,{attributes:!0,childList:!1,subtree:!1}),()=>{t.disconnect()}}),[]),(0,c.useEffect)((()=>{if(D)OB.changeLanguage(D.toLowerCase());else{const{lng:e,fallbackLng:t}=(()=>{const e=navigator.language;if(e){let t=e.split("-")[0];if(["en","it"].includes(t))return{lng:t,fallbackLng:"en"===t?"it":"en"}}return{lng:"en",fallbackLng:"it"}})();OB.changeLanguage(e).catch((()=>{OB.changeLanguage(t)}))}}),[D]);const we=null!=r?r:null===(Q=null==ce?void 0:ce.integrations)||void 0===Q?void 0:Q.find((e=>o?e.integrationID===o:!!e.publish&&"LANDING_EXPERIENCE"===e.type)),Se=YE(null!==(ee=null==we?void 0:we.customData)&&void 0!==ee?ee:"{}"),Ee=[null==de?void 0:de.name,...(null==de?void 0:de.aliases)||[],...Se.whiteListedDomains||[]];if((null===(ne=null==Se?void 0:Se.whiteListedDomains)||void 0===ne?void 0:ne.length)&&"undefined"!=typeof window&&!Ee.some((e=>new RegExp(e).test(window.location.hostname))))return null;const Ae=null!==(re=Se.ignoreClientAttributes)&&void 0!==re&&re?{initialContextVars:PB(Se.contextVars),initialQuestion:Se.initialQuestion,showLogin:null==ce?void 0:ce.enableDeepThought,memoriLang:null===(ae=null===(oe=null==ce?void 0:ce.culture)||void 0===oe?void 0:oe.split("-"))||void 0===ae?void 0:ae[0],autoStart:"HIDDEN_CHAT"===d||"WEBSITE_ASSISTANT"!==d&&Y}:{...N&&O?{personification:{tag:N,pin:O}}:{},multilingual:B,showCopyButton:m,showTranslationOriginal:f,showSettings:g,showChatHistory:P,showShare:p,showTypingText:v,showClear:y,showLogin:null!=E?E:null==ce?void 0:ce.enableDeepThought,showUpload:S,showReasoning:A,showContextPerLine:w,initialContextVars:null!=R?R:PB(Se.contextVars),initialQuestion:null!=L?L:Se.initialQuestion,autoStart:"WEBSITE_ASSISTANT"!==d&&(void 0!==Y?Y:"HIDDEN_CHAT"===d||Y),enableAudio:U,defaultSpeakerActive:z,useMathFormatting:$,memoriLang:null!=k?k:null===(le=null===(se=null==ce?void 0:ce.culture)||void 0===se?void 0:se.split("-"))||void 0===le?void 0:le[0]},[Te,Ie]=(0,c.useState)(!1),Me=(0,c.useCallback)((()=>{var e;if(((null==ce?void 0:ce.memoriID)||i)&&!Te){let t=null===window||void 0===window?void 0:window.location.origin;if(!t||t.includes("localhost")||t.includes("memori-ai.github.io"))return void Ie(!0);Ie(!0),fetch("https://pulse.aisuru.com/post",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pulse:{clientType:Z?"memori-webcomponent":"memori-react",clientVersion:"v8.20.0",userAgent:navigator.userAgent,language:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,memoriID:null!==(e=null==ce?void 0:ce.memoriID)&&void 0!==e?e:i,tenant:s,referrer:t}})})}}),[null==ce?void 0:ce.memoriID,i,s,Z,Te]);return(0,c.useEffect)((()=>{Me()}),[Me]),(0,a.jsx)(LB,{children:(0,a.jsx)(jL,{children:(0,a.jsxs)(ie,{children:[(0,a.jsx)(Ao.Toaster,{position:"top-center",reverseOrder:!0}),ce?(0,a.jsx)(ak,{layout:d,customLayout:h,height:T,baseUrl:I||(s.startsWith("https://")||s.startsWith("http://")?s:`https://${s}`),apiURL:M,engineURL:C,memori:{...ce,secretToken:l},__WEBCOMPONENT__:Z,ownerUserName:null!=e?e:ce.ownerUserName,ownerUserID:null!=t?t:ce.ownerUserID,tenant:de,tenantID:s,sessionID:null!=u?u:fe,secret:l,ttsProvider:pe||"azure",integration:we,authToken:F,onStateChange:j,additionalInfo:H,customMediaRenderer:V,additionalSettings:W,userAvatar:q,applyVarsToRoot:J,maxTotalMessagePayload:X,maxTextareaCharacters:K,disableTextEnteredEvents:G,...Ae,showOnlyLastMessages:_,showInputs:b,showDates:x}):(0,a.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,a.jsxs)("p",{style:{textAlign:"center",margin:"2rem auto",textTransform:"capitalize"},children:[ve("loading")||"Loading","..."]})})]})})})};DB.propTypes={memoriName:t(l).string,memoriID:t(l).string,ownerUserName:t(l).string,ownerUserID:t(l).string,integrationID:t(l).string,integration:t(l).any,tenantID:t(l).string.isRequired,secretToken:t(l).string,sessionID:t(l).string,layout:t(l).oneOf(["DEFAULT","FULLPAGE","TOTEM","WEBSITE_ASSISTANT","CHAT","HIDDEN_CHAT","ZOOMED_FULL_BODY"]),customLayout:t(l).any,showShare:t(l).bool,showCopyButton:t(l).bool,showTranslationOriginal:t(l).bool,showInputs:t(l).bool,showDates:t(l).bool,showContextPerLine:t(l).bool,showSettings:t(l).bool,showClear:t(l).bool,showOnlyLastMessages:t(l).bool,showTypingText:t(l).bool,showLogin:t(l).bool,showUpload:t(l).bool,showReasoning:t(l).bool,height:t(l).oneOfType([t(l).string,t(l).number]),baseURL:t(l).string,apiURL:t(l).string,engineURL:t(l).string,tag:t(l).string,pin:t(l).string,context:t(l).objectOf(t(l).any),initialQuestion:t(l).string,uiLang:t(l).oneOf(["en","it","fr","es","de","EN","IT","FR","ES","DE"]),spokenLang:t(l).string,multilingual:t(l).bool,authToken:t(l).string,enableAudio:t(l).bool,defaultSpeakerActive:t(l).bool,disableTextEnteredEvents:t(l).bool,onStateChange:t(l).func,additionalInfo:t(l).objectOf(t(l).any),customMediaRenderer:t(l).func,additionalSettings:t(l).any,userAvatar:t(l).oneOfType([t(l).string,t(l).any]),useMathFormatting:t(l).bool,autoStart:t(l).bool,applyVarsToRoot:t(l).bool,maxTotalMessagePayload:t(l).number,maxTextareaCharacters:t(l).number};var kB=DB;const BB=e=>{try{return JSON.parse(e)}catch(e){return null}};class FB extends HTMLElement{connectedCallback(){const e=document.createElement("div"),n=document.createElement("div");n.setAttribute("id","memori-root"),e.appendChild(n),this.appendChild(e);const i=Object.keys(kB.propTypes).reduce(((e,t)=>(this.hasAttribute(t)&&(e[t]=this.getAttribute(t),"true"!==e[t]&&"false"!==e[t]||(e[t]="true"===e[t])),e)),{}),r=this.getAttribute("tenantId"),o=this.getAttribute("context")?.split(",")?.reduce(((e,t)=>{const[n,i]=t.split(":").map((e=>e.trim()));return{...e,[n]:i}}),{}),l=BB(this.getAttribute("additionalInfo")||"{}")||{},c=this.getAttribute("integration"),u=c&&BB(c)||void 0;let d=this.getAttribute("apiURL")||void 0;d&&"backend.memori.ai"===new URL(d).hostname&&(d="https://backend-proxy.aisuru.com"),r?t(s).render((0,a.jsx)(kB,{...i,apiURL:d,context:o,tenantID:r,additionalInfo:l,integration:u,__WEBCOMPONENT__:!0}),n):console.error("No tenantId attribute found")}}customElements.define("memori-client",FB)})();
243
+ */function vP(e,t=0){const n=[];return e.forEach((function(e,i){let r=null;e.forEach((function(o,a){if(!o&&null!==r)return n.push(`M${r+t} ${i+t}h${a-r}v1H${r+t}z`),void(r=null);if(a!==e.length-1)o&&null===r&&(r=a);else{if(!o)return;null===r?n.push(`M${a+t},${i+t} h1v1H${a+t}z`):n.push(`M${r+t},${i+t} h${a+1-r}v1H${r+t}z`)}}))})),n.join("")}function yP(e,t){return e.slice().map(((e,n)=>n<t.y||n>=t.y+t.h?e:e.map(((e,n)=>(n<t.x||n>=t.x+t.w)&&e))))}function _P(e,t,n,i){if(null==i)return null;const r=n?4:0,o=e.length+2*r,a=Math.floor(.1*t),s=o/t,l=(i.width||a)*s,c=(i.height||a)*s,u=null==i.x?e.length/2-l/2:i.x*s,d=null==i.y?e.length/2-c/2:i.y*s;let h=null;if(i.excavate){let e=Math.floor(u),t=Math.floor(d);h={x:e,y:t,w:Math.ceil(l+u-e),h:Math.ceil(c+d-t)}}return{x:u,y:d,h:c,w:l,excavation:h}}var bP=function(){try{(new Path2D).addPath(new Path2D)}catch(e){return!1}return!0}();function xP(e){const n=e,{value:i,size:r=hP,level:o=pP,bgColor:a=mP,fgColor:s=fP,includeMargin:l=gP,style:u,imageSettings:d}=n,h=cP(n,["value","size","level","bgColor","fgColor","includeMargin","style","imageSettings"]),p=null==d?void 0:d.src,m=(0,c.useRef)(null),f=(0,c.useRef)(null),[g,v]=(0,c.useState)(!1);(0,c.useEffect)((()=>{if(null!=m.current){const e=m.current,t=e.getContext("2d");if(!t)return;let n=uP.QrCode.encodeText(i,dP[o]).getModules();const c=l?4:0,u=n.length+2*c,h=_P(n,r,l,d),p=f.current,g=null!=h&&null!==p&&p.complete&&0!==p.naturalHeight&&0!==p.naturalWidth;g&&null!=h.excavation&&(n=yP(n,h.excavation));const v=window.devicePixelRatio||1;e.height=e.width=r*v;const y=r/u*v;t.scale(y,y),t.fillStyle=a,t.fillRect(0,0,u,u),t.fillStyle=s,bP?t.fill(new Path2D(vP(n,c))):n.forEach((function(e,n){e.forEach((function(e,i){e&&t.fillRect(i+c,n+c,1,1)}))})),g&&t.drawImage(p,h.x+c,h.y+c,h.w,h.h)}})),(0,c.useEffect)((()=>{v(!1)}),[p]);const y=lP({height:r,width:r},u);let _=null;return null!=p&&(_=t(c).createElement("img",{src:p,key:p,style:{display:"none"},onLoad:()=>{v(!0)},ref:f})),t(c).createElement(t(c).Fragment,null,t(c).createElement("canvas",lP({style:y,height:r,width:r,ref:m},h)),_)}const wP=e=>`\n :root {\n --memori-primary-rgb: ${e||"130, 70, 175"};\n }\n\n .chat-export-header {\n margin-bottom: 2em;\n padding-bottom: 1em;\n border-bottom: 2px solid #e5e7eb;\n }\n\n .chat-export-date {\n margin-top: 0.5em;\n color: #6b7280;\n font-size: 0.9em;\n }\n\n .chat-bubble-container {\n display: flex;\n align-items: flex-end;\n margin-bottom: 1em;\n page-break-inside: avoid;\n }\n\n .chat-bubble {\n display: inline-flex;\n max-width: 75%;\n flex-direction: column;\n padding: 10px 16px;\n border-radius: 12px;\n margin-bottom: 5px;\n box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.08);\n font-size: 0.9em;\n line-height: 1.5;\n word-wrap: break-word;\n overflow-wrap: break-word;\n }\n\n .chat-bubble-assistant {\n border-radius: 12px 12px 12px 0;\n margin-left: 0;\n margin-right: auto;\n background: #ffffff;\n color: #141515;\n border: 1px solid #e5e7eb;\n }\n\n .chat-bubble-user {\n border-radius: 12px 12px 0 12px;\n margin-left: auto;\n margin-right: 0;\n background: rgb(var(--memori-primary-rgb));\n color: #ffffff;\n }\n\n .chat-bubble-content {\n margin: 0;\n }\n\n .chat-bubble-content p {\n margin: 0 0 0.5em 0;\n }\n\n .chat-bubble-content p:last-child {\n margin-bottom: 0;\n }\n\n .chat-bubble-content ul,\n .chat-bubble-content ol {\n padding-left: 1.5em;\n margin: 0.5em 0;\n }\n\n .chat-bubble-content a {\n color: inherit;\n text-decoration: underline;\n }\n\n .chat-bubble-user .chat-bubble-content a {\n color: #ffffff;\n text-decoration: underline;\n }\n\n .chat-bubble-assistant .chat-bubble-content a {\n color:rgb(var(--memori-primary-rgb));\n text-decoration: underline;\n }\n\n .chat-bubble-timestamp {\n margin-top: 0.25em;\n font-size: 0.75em;\n opacity: 0.7;\n text-align: right;\n }\n\n .chat-bubble-assistant .chat-bubble-timestamp {\n text-align: left;\n }\n\n .chat-bubble-media {\n margin: 0.5em 0 0 0;\n padding-left: 1.5em;\n list-style-type: disc;\n }\n\n .chat-bubble-media li {\n margin: 0.25em 0;\n }\n\n .chat-bubble-content code {\n background-color: rgba(0, 0, 0, 0.1);\n padding: 0.2em 0.4em;\n border-radius: 3px;\n font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n font-size: 0.9em;\n }\n\n .chat-bubble-user .chat-bubble-content code {\n background-color: rgba(255, 255, 255, 0.2);\n }\n\n .chat-bubble-content pre {\n background-color: rgba(0, 0, 0, 0.05);\n padding: 1em;\n border-radius: 5px;\n overflow-x: auto;\n margin: 0.5em 0;\n border: 1px solid rgba(0, 0, 0, 0.1);\n }\n\n .chat-bubble-user .chat-bubble-content pre {\n background-color: rgba(255, 255, 255, 0.15);\n border-color: rgba(255, 255, 255, 0.2);\n }\n\n .chat-bubble-content pre code {\n background: none;\n padding: 0;\n }\n\n .chat-bubble-content table {\n width: 100%;\n border-collapse: collapse;\n margin: 0.5em 0;\n }\n\n .chat-bubble-content table th,\n .chat-bubble-content table td {\n border: 1px solid rgba(0, 0, 0, 0.1);\n padding: 0.5em;\n text-align: left;\n }\n\n .chat-bubble-user .chat-bubble-content table th,\n .chat-bubble-user .chat-bubble-content table td {\n border-color: rgba(255, 255, 255, 0.2);\n }\n\n .chat-bubble-content table th {\n background-color: rgba(0, 0, 0, 0.05);\n font-weight: 600;\n }\n\n .chat-bubble-user .chat-bubble-content table th {\n background-color: rgba(255, 255, 255, 0.1);\n }\n\n .chat-bubble-content blockquote {\n margin: 0.5em 0;\n padding-left: 1em;\n border-left: 3px solid rgba(0, 0, 0, 0.2);\n font-style: italic;\n }\n\n .chat-bubble-user .chat-bubble-content blockquote {\n border-left-color: rgba(255, 255, 255, 0.3);\n }\n\n .chat-bubble-content img {\n max-width: 100%;\n height: auto;\n border-radius: 5px;\n margin: 0.5em 0;\n }\n\n .chat-bubble-content h1,\n .chat-bubble-content h2,\n .chat-bubble-content h3,\n .chat-bubble-content h4,\n .chat-bubble-content h5,\n .chat-bubble-content h6 {\n margin: 0.5em 0 0.25em 0;\n font-weight: 600;\n }\n\n .chat-bubble-content h1 { font-size: 1.5em; }\n .chat-bubble-content h2 { font-size: 1.3em; }\n .chat-bubble-content h3 { font-size: 1.1em; }\n `,SP=e=>{const{messages:t,memori:n,conversationStartedLabel:i,language:r="en"}=e;if(!t||0===t.length)return"";let o=((e,t,n)=>`\n <div class="chat-export-header">\n <h1>${e} - Chat Export</h1>\n <p class="chat-export-date">\n <strong>${n}</strong>: ${t}\n </p>\n </div>\n `)((null==n?void 0:n.name)||"Assistant",new Intl.DateTimeFormat(r,{dateStyle:"long",timeStyle:"short"}).format(new Date),i);return t.forEach((e=>{o+=((e,t="en")=>{const n=e.timestamp?new Intl.DateTimeFormat(t,{dateStyle:"short",timeStyle:"short"}).format(new Date(e.timestamp.endsWith("Z")?e.timestamp:`${e.timestamp}Z`)):"",i=(e.text||"").replace(/<document_attachment filename="([^"]+)" type="([^"]+)">([\s\S]*?)<\/document_attachment>/g,""),{text:r}=YI(i,!1,"Reasoning...",!1),o=e.fromUser?r:UE(r),a=e.fromUser?"chat-bubble chat-bubble-user":"chat-bubble chat-bubble-assistant";let s='<div class="chat-bubble-container">';return s+=`<div class="${a}">`,o.trim()&&(s+=`<div class="chat-bubble-content">${o}</div>`),e.media&&e.media.length>0&&(s+='<ul class="chat-bubble-media">',e.media.forEach((e=>{e.title?s+=`<li><a href="${e.url||"#"}">${e.title}</a></li>`:e.url&&(s+=`<li><a href="${e.url}">${e.url}</a></li>`)})),s+="</ul>"),n&&(s+=`<div class="chat-bubble-timestamp">${n}</div>`),s+="</div>",s+="</div>",s})(e,r)})),o},EP=(e,t,n={})=>{const i=((e={})=>{const{fontSize:t="12pt",fontFamily:n="system-ui, -apple-system, sans-serif",lineHeight:i="1.6",color:r="#333",backgroundColor:o="#fff"}=e;return`<style>\n @page {\n margin: 1in;\n size: A4;\n }\n\n @media print {\n * {\n -webkit-print-color-adjust: exact !important;\n color-adjust: exact !important;\n }\n\n body {\n font-family: ${n};\n font-size: ${t};\n line-height: ${i};\n color: ${r};\n background-color: ${o};\n margin: 0;\n padding: 0;\n max-width: none;\n word-wrap: break-word;\n overflow-wrap: break-word;\n }\n\n h1, h2, h3, h4, h5, h6 {\n page-break-after: avoid;\n margin-top: 1.5em;\n margin-bottom: 0.5em;\n font-weight: 600;\n }\n\n h1 { font-size: 1.8em; }\n h2 { font-size: 1.5em; }\n h3 { font-size: 1.3em; }\n\n p {\n margin: 0 0 1em 0;\n orphans: 3;\n widows: 3;\n }\n\n pre, code {\n font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n font-size: 0.9em;\n background-color: #f5f5f5;\n border: 1px solid #ddd;\n border-radius: 3px;\n padding: 0.2em 0.4em;\n page-break-inside: avoid;\n }\n\n pre {\n padding: 1em;\n overflow-x: auto;\n white-space: pre;\n margin: 1em 0;\n }\n\n pre code {\n background: none;\n border: none;\n padding: 0;\n }\n\n blockquote {\n margin: 1em 0;\n padding-left: 1em;\n border-left: 3px solid #ddd;\n font-style: italic;\n page-break-inside: avoid;\n }\n\n ul, ol {\n margin: 1em 0;\n padding-left: 2em;\n }\n\n li {\n margin: 0.25em 0;\n page-break-inside: avoid;\n }\n\n table {\n border-collapse: collapse;\n width: 100%;\n margin: 1em 0;\n page-break-inside: avoid;\n }\n\n th, td {\n border: 1px solid #ddd;\n padding: 0.5em;\n text-align: left;\n }\n\n th {\n background-color: #f5f5f5;\n font-weight: 600;\n }\n\n a {\n color: #0066cc;\n text-decoration: none;\n }\n\n a:hover {\n text-decoration: underline;\n }\n\n img {\n max-width: 100%;\n height: auto;\n page-break-inside: avoid;\n }\n\n hr {\n margin: 2em 0;\n border: none;\n border-top: 1px solid #ddd;\n }\n\n .page-break {\n page-break-before: always;\n }\n\n .no-print {\n display: none !important;\n }\n }\n\n @media screen {\n body {\n font-family: ${n};\n font-size: ${t};\n line-height: ${i};\n color: ${r};\n background-color: ${o};\n margin: 20px;\n padding: 20px;\n max-width: 800px;\n margin: 0 auto;\n }\n }\n ${wP(e.primaryColorRgb)}</style>`})(n);return`\n <!DOCTYPE html>\n <html lang="en">\n <head>\n <meta charset="UTF-8">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <title>${t}</title>\n ${i}\n </head>\n <body>\n <div class="content">\n ${e}\n </div>\n </body>\n </html>\n `};var AP=({tenant:e,memori:n,sessionID:i,url:r,title:o="",className:s,baseUrl:l,primary:u=!0,showQrCode:d=!0,align:h="right",history:p=[]})=>{const{t:m,i18n:f}=qe(),[g,v]=(0,c.useState)(r),[y,_]=(0,c.useState)(!1),b=(0,c.useMemo)((()=>(null==e?void 0:e.theme)?`${null!=l?l:"https://aisuru.com"}/images/${e.theme}/square_logo.png`:`${null!=l?l:"https://aisuru.com"}/images/memori_logo.png`),[e,l]);(0,c.useEffect)((()=>{r||v(window.location.href)}),[r]);const x=[{id:"facebook",title:"Facebook",url:`https://www.facebook.com/sharer/sharer.php?u=${g}`,icon:YL},{id:"twitter",title:"Twitter",url:`https://twitter.com/intent/tweet?url=${g}`,icon:JL},{id:"linkedin",title:"LinkedIn",url:`https://www.linkedin.com/shareArticle?mini=true&title=${o}&url=${g}`,icon:ZL},{id:"whatsapp",title:"Whatsapp",url:`https://api.whatsapp.com/send?phone=&text=${g}`,icon:XL},{id:"telegram",title:"Telegram",url:`https://t.me/share/url?text=${o}&url=${g}`,icon:eP},{id:"email",title:"Email",url:`mailto:?subject=${(null==o?void 0:o.length)>0?o:r}&body=${g}`,icon:KL}],w=(0,c.useMemo)((()=>{if(n&&i)return n.ownerUserID?`${null!=l?l:"https://www.aisuru.com"}/${"it"===f.language?"it":"en"}/shared/${n.ownerUserID}/${n.memoriID}/${i}`:n.exposed?`${null!=l?l:"https://www.aisuru.com"}/${"it"===f.language?"it":"en"}/shared/${n.ownerUserName}/${n.name}/${i}`:void 0}),[n,i,l,f.language]);return(0,a.jsxs)(xI,{as:"div",className:t($e)("memori-share-button",{"memori-share-button--align-left":"left"===h}),children:[(0,a.jsx)(xI.Button,{className:t($e)("memori-button","memori-button--circle","memori-button--icon-only","memori-share-button--button",s,{"memori-button--primary":u}),title:m("widget.share")||void 0,children:(0,a.jsx)("div",{className:"memori-button--icon",children:(0,a.jsx)(QL,{})})}),(0,a.jsxs)(xI.Items,{className:"memori-share-button--overlay",as:"ul",children:[n&&i&&w&&(0,a.jsx)(xI.Item,{as:"li",className:"memori-share-button--li memori-share-button--li-shared",children:(0,a.jsxs)("a",{className:t($e)("memori-button","memori-button--with-icon","memori-button--ghost","memori-button--padded","memori-share-button--link"),href:w,target:"_blank",rel:"noopener noreferrer",children:[(0,a.jsx)("div",{className:"memori-button--icon",children:(0,a.jsx)(QL,{})}),m("widget.shareChat")||"Share chat"]})},"shared"),p&&p.length>0&&(0,a.jsx)(xI.Item,{as:"li",className:"memori-share-button--li",children:(0,a.jsx)(Xl,{className:"memori-share-button--link",ghost:!0,icon:(0,a.jsx)(nP,{}),onClick:async()=>{if(p&&0!==p.length)if(uC.isSupported()){_(!0);try{const e=`${(null==n?void 0:n.name)||"Chat"} - Chat Export`;if(!n)throw new Error("Memori is required for PDF export");const i=SP({messages:p,memori:n,conversationStartedLabel:m("write_and_speak.conversationStartedLabel")||"Conversation started",language:navigator.language});let r;try{const e=document.querySelector(".memori-widget")||document.querySelector("memori-client")||document.documentElement;r=getComputedStyle(e).getPropertyValue("--memori-primary-rgb").trim(),r||(r=getComputedStyle(document.documentElement).getPropertyValue("--memori-primary-rgb").trim())}catch(e){console.warn("Could not read --memori-primary-rgb CSS variable:",e)}const o=EP(i,e,{fontSize:"12pt",fontFamily:"system-ui, -apple-system, sans-serif",lineHeight:"1.6",color:"#333",backgroundColor:"#fff",primaryColorRgb:r||void 0}),a=window.open("","_blank","width=800,height=600,scrollbars=yes,resizable=yes");if(!a)throw new Error("Popup blocked! Please enable popups to export PDF.");a.document.write(o),a.document.close(),a.document.title=e,setTimeout((()=>{a&&!a.closed&&(a.focus(),a.print(),setTimeout((()=>{a&&!a.closed&&a.close()}),1e3))}),500),t(Ao).success(m("exportChatHistory.success")||"Chat exported to PDF successfully")}catch(e){console.error("PDF export error:",e),t(Ao).error(m("exportChatHistory.error")||"Failed to export chat to PDF. Please try again.")}finally{_(!1)}}else t(Ao).error(m("exportChatHistory.pdfNotSupported")||"PDF export is not supported in this browser");else t(Ao).error(m("exportChatHistory.empty")||"No chat history to export")},disabled:y,children:y?m("exportChatHistory.exporting")||"Exporting...":m("exportChatHistory.exportPDF")||"Export chat as PDF"})},"export-pdf"),(0,a.jsx)(xI.Item,{as:"li",className:"memori-share-button--li",children:(0,a.jsx)(Xl,{className:"memori-share-button--link",ghost:!0,icon:(0,a.jsx)(aM,{}),onClick:()=>{g&&navigator.clipboard.writeText(g)},children:m("copyToClipboard")||void 0})},"copy"),x.map((e=>{var n;return(0,a.jsx)(xI.Item,{as:"li",className:"memori-share-button--li",children:(0,a.jsxs)("a",{className:t($e)("memori-button","memori-button--with-icon","memori-button--ghost","memori-button--padded","memori-share-button--link"),href:null!==(n=e.url)&&void 0!==n?n:"",target:"_blank",rel:"noopener noreferrer",children:[(0,a.jsx)("div",{className:"memori-button--icon",children:(0,a.jsx)(e.icon,{})}),e.title]})},e.id)})),d&&(0,a.jsxs)(xI.Item,{as:"li",className:"memori-share-button--li-qr-code",children:[(0,a.jsx)(xP,{id:"qr-canvas",value:null!=g?g:"",size:128,bgColor:"#ffffff",fgColor:"#000000",level:"H",includeMargin:!1,imageSettings:{src:b,x:void 0,y:void 0,height:32,width:32,excavate:!0}}),(0,a.jsx)("div",{children:(0,a.jsx)(Xl,{onClick:()=>{const e=document.getElementById("qr-canvas");if(!e)return;const t=document.createElement("a");t.href=e.toDataURL(),t.download=`memori-${o}-share.png`,document.body.appendChild(t),t.click(),document.body.removeChild(t)},icon:(0,a.jsx)(hC,{}),title:"Download QR",children:"Download"})})]},"qrcode")]})]})};var TP=({className:e,title:t})=>(0,a.jsx)("svg",{...t?{}:{"aria-hidden":"true"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",focusable:"false",role:"img",className:e,"aria-label":t,children:(0,a.jsx)("path",{d:"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 0 0 0 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 0 0 391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 0 0-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"})});var IP=({className:e,title:t})=>(0,a.jsx)("svg",{...t?{}:{"aria-hidden":"true"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",focusable:"false",role:"img",className:e,"aria-label":t,children:(0,a.jsx)("path",{d:"M290 236.4l43.9-43.9a8.01 8.01 0 0 0-4.7-13.6L169 160c-5.1-.6-9.5 3.7-8.9 8.9L179 329.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L370 423.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L290 236.4zm352.7 187.3c3.1 3.1 8.2 3.1 11.3 0l133.7-133.6 43.7 43.7a8.01 8.01 0 0 0 13.6-4.7L863.9 169c.6-5.1-3.7-9.5-8.9-8.9L694.8 179c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L600.3 370a8.03 8.03 0 0 0 0 11.3l42.4 42.4zM845 694.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L654 600.3a8.03 8.03 0 0 0-11.3 0l-42.4 42.3a8.03 8.03 0 0 0 0 11.3L734 787.6l-43.9 43.9a8.01 8.01 0 0 0 4.7 13.6L855 864c5.1.6 9.5-3.7 8.9-8.9L845 694.9zm-463.7-94.6a8.03 8.03 0 0 0-11.3 0L236.3 733.9l-43.7-43.7a8.01 8.01 0 0 0-13.6 4.7L160.1 855c-.6 5.1 3.7 9.5 8.9 8.9L329.2 845c6.6-.8 9.4-8.9 4.7-13.6L290 787.6 423.7 654c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.4z"})});var MP=({className:e,title:t})=>(0,a.jsxs)("svg",{...t?{}:{"aria-hidden":"true"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",focusable:"false",role:"img",className:e,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2","aria-label":t,children:[(0,a.jsx)("path",{d:"M23 4L23 10 17 10"}),(0,a.jsx)("path",{d:"M1 20L1 14 7 14"}),(0,a.jsx)("path",{d:"M3.51 9a9 9 0 0114.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0020.49 15"})]});var CP=({className:e,title:t})=>(0,a.jsx)("svg",{...t?{}:{"aria-hidden":"true"},focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",className:e,"aria-label":t,children:(0,a.jsx)("path",{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6c-.3 1.5-.4 3-.4 4.4 0 14.4 11.6 26 26 26h723c1.5 0 3-.1 4.4-.4 14.2-2.4 23.7-15.9 21.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"})});var NP=({className:e,title:t})=>(0,a.jsx)("svg",{...t?{}:{"aria-hidden":"true"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",focusable:"false",role:"img",className:e,"aria-label":t,children:(0,a.jsx)("path",{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"})});var OP=({className:e,title:t})=>(0,a.jsxs)("svg",{width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,"aria-label":t,children:[(0,a.jsx)("path",{d:"M15 12L2 12M2 12L5.5 9M2 12L5.5 15",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M9.00195 7C9.01406 4.82497 9.11051 3.64706 9.87889 2.87868C10.7576 2 12.1718 2 15.0002 2L16.0002 2C18.8286 2 20.2429 2 21.1215 2.87868C22.0002 3.75736 22.0002 5.17157 22.0002 8L22.0002 16C22.0002 18.8284 22.0002 20.2426 21.1215 21.1213C20.3531 21.8897 19.1752 21.9862 17 21.9983M9.00195 17C9.01406 19.175 9.11051 20.3529 9.87889 21.1213C10.5202 21.7626 11.4467 21.9359 13 21.9827",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"})]});const RP=["image/jpeg","image/png","image/jpg","image/gif"];var LP=({className:e,memori:n,tenant:i,history:r,position:o,setShowPositionDrawer:s,setShowSettingsDrawer:l,setShowChatHistoryDrawer:u,setShowKnownFactsDrawer:d,setShowExpertsDrawer:h,enableAudio:p=!0,speakerMuted:m,setSpeakerMuted:f,hasUserActivatedSpeak:g=!1,showShare:v=!0,showSettings:y=!0,showReload:_=!1,showClear:b=!1,showLogin:x=!0,setShowLoginDrawer:w,clearHistory:S,loginToken:E,user:A,sessionID:T,showChatHistory:I=!0,fullScreenHandler:M,baseUrl:C,onLogout:N,apiClient:O,layout:R,additionalSettings:L})=>{const{t:P}=qe(),{uploadAsset:D,pwlUpdateUser:k}=O.backend,[B,F]=(0,c.useState)(!1),[U,z]=(0,c.useState)(!1);(0,c.useEffect)((()=>{document.fullscreenEnabled&&F(!0)}),[]);const G=(0,c.useCallback)(((e,t)=>"TOTEM"===e||t&&Object.keys(t).length>0||!1),[R,L]),j=async e=>{if(e&&E){const n=new FileReader;n.onload=async n=>{var i,r,o;try{const{asset:a,...s}=await D(null!==(i=e.name)&&void 0!==i?i:"avatar",null===(r=n.target)||void 0===r?void 0:r.result,null!=E?E:"");if(0!==s.resultCode)console.error("[updateAvatar] Upload failed:",s),t(Ao).error(P(XI(s.resultCode)));else if(a){let e={userID:null==A?void 0:A.userID,avatarURL:a.assetURL};const{user:t,...n}=await k(null!=E?E:"",null!==(o=null==A?void 0:A.userID)&&void 0!==o?o:"",e)}}catch(e){let n=e;console.error("[updateAvatar] Error:",n),(null==n?void 0:n.message)&&t(Ao).error(n.message)}},n.readAsDataURL(e)}else console.error("[updateAvatar] Missing avatar or login token",{avatar:e,loginToken:E}),t(Ao).error(P("login.avatarUploadError"))};return(0,a.jsxs)("div",{className:t($e)("memori-header",e),children:[n.needsPosition&&o&&(0,a.jsxs)("div",{className:"memori-header--position",children:[0!==o.latitude&&0!==o.longitude&&(0,a.jsx)("span",{className:"memori-header--position-placeName",children:o.placeName}),(0,a.jsx)(Xl,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button--position",title:P("widget.position")||"Position",icon:(0,a.jsx)(kC,{}),onClick:()=>s(!0)})]}),_&&(0,a.jsx)(Xl,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button--reload",title:P("reload")||"Reload",icon:(0,a.jsx)(MP,{}),onClick:()=>{window.location.reload()}}),b&&(0,a.jsx)(Xl,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button--clear",title:P("clearHistory")||"Clear chat",icon:(0,a.jsx)(CP,{}),onClick:S}),I&&!!E&&(0,a.jsx)(Xl,{primary:!0,disabled:!E,shape:"circle",className:"memori-header--button memori-header--button--chat-history",title:P("write_and_speak.chatHistory")||"Chat history",icon:(0,a.jsx)(NP,{}),onClick:()=>u(!0)}),B&&(0,a.jsx)(Xl,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button--fullscreen",title:U?P("fullscreenExit")||"Exit fullscreen":P("fullscreenEnter")||"Enter fullscreen",icon:U?(0,a.jsx)(TP,{}):(0,a.jsx)(IP,{}),onClick:M||(()=>{if(document.fullscreenElement)document.exitFullscreen&&document.exitFullscreen().then((()=>z(!1))).catch((e=>{console.warn("Error attempting to exit fullscreen:",e)}));else{const e="HIDDEN_CHAT"!==R&&"WEBSITE_ASSISTANT"!==R?document.body:document.querySelector(".memori-widget");if(e){const t=document.querySelector(".memori-widget");t&&(t.style.backgroundColor="#FFFFFF"),e.requestFullscreen().then((()=>z(!0))).catch((e=>{console.warn("Error attempting to enable fullscreen:",e)}))}}})}),n.enableDeepThought&&!!E&&(null==A?void 0:A.pAndCUAccepted)&&(0,a.jsx)(Xl,{primary:!!T&&!!g,shape:"circle",icon:(0,a.jsx)(RC,{}),className:"memori-header--button memori-header--button--knownfacts",disabled:!g||!T,onClick:()=>d(!0),title:P("knownFacts.title")||"Known facts"}),n.enableBoardOfExperts&&(0,a.jsx)(Xl,{primary:!0,shape:"circle",icon:(0,a.jsx)(OC,{}),className:"memori-header--button memori-header--button--experts",disabled:!g||!T,onClick:()=>h(!0),title:P("widget.showExpertsInTheBoard")||"Experts in this board"}),p&&(0,a.jsx)(Xl,{primary:!0,shape:"circle",className:t($e)("memori-header--button memori-header--button--speaker",{"memori-header--button--speaker-muted":m}),icon:m?(0,a.jsx)(qL,{}):(0,a.jsx)(rM,{}),onClick:()=>f(!m),title:P("widget.sound")||"Sound"}),y&&G(R,L)&&(0,a.jsx)(Xl,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button-settings",icon:(0,a.jsx)($L,{}),onClick:()=>l(!0),title:P("widget.settings")||"Settings"}),v&&(0,a.jsx)(AP,{className:"memori-header--button memori-header--button-share",title:n.name,memori:n,sessionID:T,tenant:i,showQrCode:!0,align:"left",baseUrl:C,history:r}),x&&(0,a.jsx)(a.Fragment,{children:E&&A?(0,a.jsxs)(WL,{placement:"bottom-right",trigger:(0,a.jsx)(Xl,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button-login",icon:(0,a.jsx)(nI,{}),title:P("login.user")||"User"}),children:[(0,a.jsx)("div",{className:"memori-dropdown--user-profile",children:(0,a.jsxs)("div",{className:"memori-dropdown--user-info",children:[A.avatarURL?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{src:A.avatarURL,alt:A.userName||A.eMail,className:"memori-dropdown--avatar"}),(0,a.jsx)("input",{type:"file",name:"avatar",id:"avatar",className:"memori-dropdown--avatar-input",onChange:e=>{var t,n;return j(null!==(n=null===(t=e.target.files)||void 0===t?void 0:t[0])&&void 0!==n?n:null)},accept:RP.join(", ")})]}):(0,a.jsxs)("div",{className:"memori-dropdown--avatar-placeholder",children:[(0,a.jsx)("span",{children:(A.userName||A.eMail||"U").charAt(0).toUpperCase()}),(0,a.jsx)("input",{type:"file",name:"avatar",id:"avatar",className:"memori-dropdown--avatar-input",onChange:e=>{var t,n;return j(null!==(n=null===(t=e.target.files)||void 0===t?void 0:t[0])&&void 0!==n?n:null)},accept:RP.join(", ")})]}),(0,a.jsxs)("div",{className:"memori-dropdown--user-details",children:[(0,a.jsx)("h3",{className:"memori-dropdown--user-name",children:A.userName||P("login.welcomeUser")}),(0,a.jsx)("p",{className:"memori-dropdown--user-email",children:A.eMail}),(0,a.jsx)("div",{className:"memori-dropdown--user-badge",children:A.birthDate?new Date(A.birthDate).toLocaleDateString():P("login.notSet")})]})]})}),(0,a.jsx)("div",{className:"memori-dropdown--actions",children:(0,a.jsxs)("button",{className:"memori-dropdown--action-button memori-dropdown--action-button--logout",onClick:N,children:[(0,a.jsx)(OP,{className:"memori-dropdown--action-icon"}),P("login.logout")||"Logout"]})})]}):(0,a.jsx)(Xl,{primary:!0,shape:"circle",className:"memori-header--button memori-header--button-login",icon:(0,a.jsx)(nI,{}),onClick:()=>w(!0),title:P("login.login")||"Login"})})]})};var PP=({tenant:e,userLang:t="en",integrationID:n,memoriHash:i})=>{const r="memorytwin"===(null==e?void 0:e.theme)?"memorytwin":"twincreator"===(null==e?void 0:e.theme)?"twincreator":"aisuru";return(0,a.jsxs)("div",{className:"memori--powered-by",children:[(0,a.jsx)("img",{src:`https://aisuru.com/images/${r}/logo.png`,alt:""}),(0,a.jsxs)("p",{children:[(0,a.jsx)("span",{className:"sr-only",children:"Powered by"}),(0,a.jsx)("a",{href:`https://memori.ai/${"it"===(null==t?void 0:t.toLowerCase())?"it":"en"}${n?`?integrationID=${n}`:""}${i?`${n?"&":"?"}memori=${i}`:""}`,target:"_blank",rel:"noopener noreferrer",children:"Memori.AI"})]})]})};const DP=(0,(c=o("85Hg2")).memo)((({defaultDate:e,onChange:t,disabled:n=!1})=>{const{t:i}=qe(),r=(0,c.useMemo)((()=>Ye.DateTime.now().minus({years:18})),[]),o=(0,c.useMemo)((()=>Ye.DateTime.fromObject({year:1900,month:1,day:1})),[]),[s,l]=(0,c.useState)(""),[u,d]=(0,c.useState)(""),[h,p]=(0,c.useState)("");(0,c.useEffect)((()=>{if(e){const t="string"==typeof e?Ye.DateTime.fromISO(e):Ye.DateTime.fromJSDate(e);t.isValid&&(l(t.day.toString()),d(t.month.toString()),p(t.year.toString()))}}),[e]);const[m,f]=(0,c.useState)(!1),g=(0,c.useRef)(null),v=(0,c.useRef)(null),y=(0,c.useRef)(null);(0,c.useEffect)((()=>{const e=()=>{f(window.innerWidth<768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),(0,c.useEffect)((()=>{if(!s||!u||!h)return void t(void 0);const e=parseInt(s),n=parseInt(u),i=parseInt(h);if(isNaN(e)||isNaN(n)||isNaN(i))return void t(void 0);const a=Ye.DateTime.fromObject({year:i,month:n,day:e});a.isValid&&a>=o&&a<=r?t(a):t(void 0)}),[s,u,h,t,o,r]);const _=e=>{const t=e.target.value;if(t){const e=Ye.DateTime.fromISO(t);e.isValid&&(l(e.day.toString()),d(e.month.toString()),p(e.year.toString()))}else l(""),d(""),p("")};if(m){const e=s&&u&&h?Ye.DateTime.fromObject({year:parseInt(h),month:parseInt(u),day:parseInt(s)}):null;return(0,a.jsxs)("div",{className:"memori--date-selector memori--date-selector--mobile",children:[(0,a.jsxs)("label",{className:"memori--date-selector__mobile-label",children:[i("birthDate")||"Birth Date",":"]}),(0,a.jsx)("input",{type:"date",className:"memori--date-selector__mobile-input",value:(null==e?void 0:e.isValid)&&e.toISODate()||"",onChange:_,disabled:n,min:o.toISODate()||"1900-01-01",max:r.toISODate()||"","aria-label":String(i("dateOfBirth")||i("date"))})]})}return(0,a.jsxs)("div",{className:"memori--date-selector memori--date-selector--desktop",children:[(0,a.jsxs)("div",{className:"memori--date-selector__input-group",children:[(0,a.jsx)("label",{className:"memori--date-selector__label",children:i("day")||"Day"}),(0,a.jsx)("input",{ref:g,type:"number",className:"memori--date-selector__input",value:s,onChange:e=>{var t;const n=e.target.value;if(""===n||/^\d+$/.test(n)){if(n.length>2)return;if(parseInt(n)>31)return;l(n),n.length>=2&&(null===(t=v.current)||void 0===t||t.focus())}},placeholder:i("dayPlaceholder")||"DD",min:1,max:31,disabled:n})]}),(0,a.jsxs)("div",{className:"memori--date-selector__input-group",children:[(0,a.jsx)("label",{className:"memori--date-selector__label",children:i("month")||"Month"}),(0,a.jsx)("input",{ref:v,type:"number",className:"memori--date-selector__input",value:u,onChange:e=>{var t;const n=e.target.value;if(""===n||/^\d+$/.test(n)){if(n.length>2)return;if(parseInt(n)>12)return;d(n),n.length>=2&&(null===(t=y.current)||void 0===t||t.focus())}},placeholder:i("monthPlaceholder")||"MM",min:1,max:12,disabled:n})]}),(0,a.jsxs)("div",{className:"memori--date-selector__input-group memori--date-selector__input-group--year",children:[(0,a.jsx)("label",{className:"memori--date-selector__label",children:i("year")||"Year"}),(0,a.jsx)("input",{ref:y,type:"number",className:"memori--date-selector__input",value:h,onChange:e=>{const t=e.target.value;if(""===t||/^\d+$/.test(t)){if(t.length>4)return;p(t)}},placeholder:i("yearPlaceholder")||"YYYY",min:o.year,max:r.year,disabled:n})]})]})}));DP.displayName="DateSelector";var kP=DP;c=o("85Hg2");var BP=({visible:e=!1,onClose:n,minAge:i})=>{const{t:r}=qe(),[o,s]=(0,c.useState)(),[l,u]=(0,c.useState)(),[d,h]=(0,c.useState)(!1),p=(0,c.useCallback)((()=>{if(h(!0),!o)return t(Ao).error(r("requiredField")),u(r("requiredField")||"Required field"),void h(!1);if(Ye.DateTime.now().diff(o,"years").years<i)return t(Ao).error(r("underageTwinSession",{age:i})),u(r("underageTwinSession",{age:i})||`You must be at least ${i} years old to interact with this Agent`),void h(!1);n(o.toJSDate().toISOString())}),[o,i,n,r]);return(0,a.jsxs)(RA,{open:e,width:"600px",widthMd:"600px",title:r("ageVerification"),className:"age-verification-modal",closable:!0,onClose:()=>n(),children:[(0,a.jsx)("p",{children:r("ageVerificationText",{minAge:i})}),(0,a.jsxs)("form",{className:"age-verification-form",onSubmit:e=>{e.preventDefault(),p()},children:[(0,a.jsx)("div",{className:"form-item",children:(0,a.jsxs)("fieldset",{name:"birthDate",children:[(0,a.jsx)("legend",{className:"sr-only",children:r("birthDate")}),(0,a.jsx)(kP,{onChange:e=>{s(e)}}),(0,a.jsx)("p",{className:"form-item-help",children:r("birthDateHelper")}),l&&(0,a.jsx)("p",{className:"form-item-error",children:l})]})}),(0,a.jsx)("div",{className:"form-item form-submit",children:(0,a.jsx)(Xl,{primary:!0,htmlType:"submit",className:"age-verification-submit",loading:d,disabled:!o,children:r("confirm")})})]})]})};c=o("85Hg2");var FP=({label:e,className:n,disabled:i=!1,indeterminate:r=!1,checked:o,children:s,onChange:l,name:u,...d})=>{const h=(0,c.useRef)(null);return(0,c.useEffect)((()=>{h.current&&(h.current.indeterminate=r)}),[h,r]),(0,a.jsxs)("label",{className:t($e)("memori-checkbox",n,{"memori-checkbox--disabled":i,"memori-checkbox--indeterminate":r}),children:[(0,a.jsxs)("span",{className:"memori-checkbox--input-wrapper",children:[(0,a.jsx)("input",{ref:h,type:"checkbox",...d,name:u,disabled:i,checked:o||r,className:"memori-checkbox--input",onChange:l}),(0,a.jsx)("span",{className:"memori-checkbox--inner"})]}),!!(null==e?void 0:e.length)&&(0,a.jsx)("span",{className:"memori-checkbox--text",children:e})]})};c=o("85Hg2"),c=o("85Hg2");function UP(e=0){let[t,n]=(0,c.useState)(e),i=(0,c.useCallback)((e=>n((t=>t|e))),[t]),r=(0,c.useCallback)((e=>Boolean(t&e)),[t]),o=(0,c.useCallback)((e=>n((t=>t&~e))),[n]),a=(0,c.useCallback)((e=>n((t=>t^e))),[n]);return{addFlag:i,hasFlag:r,removeFlag:o,toggleFlag:a}}let zP=(0,(c=o("85Hg2")).createContext)(null);function GP(){let e=(0,c.useContext)(zP);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,GP),e}return e}function jP(){let[e,n]=(0,c.useState)([]);return[e.length>0?e.join(" "):void 0,(0,c.useMemo)((()=>function(e){let i=Ka((e=>(n((t=>[...t,e])),()=>n((t=>{let n=t.slice(),i=n.indexOf(e);return-1!==i&&n.splice(i,1),n}))))),r=(0,c.useMemo)((()=>({register:i,slot:e.slot,name:e.name,props:e.props})),[i,e.slot,e.name,e.props]);return t(c).createElement(zP.Provider,{value:r},e.children)}),[n])]}let HP=qa((function(e,t){let{passive:n=!1,...i}=e,r=GP(),o=`headlessui-label-${us()}`,a=ts(t);Za((()=>r.register(o)),[o,r.register]);let s={ref:a,...r.props,id:o};return n&&("onClick"in s&&delete s.onClick,"onClick"in i&&delete i.onClick),Ha({ourProps:s,theirProps:i,slot:r.slot||{},defaultTag:"label",name:r.name||"Label"})}));var VP,WP=((VP=WP||{})[VP.RegisterOption=0]="RegisterOption",VP[VP.UnregisterOption=1]="UnregisterOption",VP);let qP={0(e,t){let n=[...e.options,{id:t.id,element:t.element,propsRef:t.propsRef}];return{...e,options:Ms(n,(e=>e.element.current))}},1(e,t){let n=e.options.slice(),i=e.options.findIndex((e=>e.id===t.id));return-1===i?e:(n.splice(i,1),{...e,options:n})}},$P=(0,c.createContext)(null);function YP(e){let t=(0,c.useContext)($P);if(null===t){let t=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,YP),t}return t}function JP(e,t){return Ua(t.type,qP,e,t)}$P.displayName="RadioGroupContext";let ZP=qa((function(e,n){let{value:i,defaultValue:r,name:o,onChange:a,by:s=((e,t)=>e===t),disabled:l=!1,...u}=e,d=Ka("string"==typeof s?(e,t)=>{let n=s;return(null==e?void 0:e[n])===(null==t?void 0:t[n])}:s),[h,p]=(0,c.useReducer)(JP,{options:[]}),m=h.options,[f,g]=jP(),[v,y]=nl(),_=`headlessui-radiogroup-${us()}`,b=(0,c.useRef)(null),x=ts(b,n),[w,S]=oA(i,a,r),E=(0,c.useMemo)((()=>m.find((e=>!e.propsRef.current.disabled))),[m]),A=(0,c.useMemo)((()=>m.some((e=>d(e.propsRef.current.value,w)))),[m,w]),T=Ka((e=>{var t;if(l||d(e,w))return!1;let n=null==(t=m.find((t=>d(t.propsRef.current.value,e))))?void 0:t.propsRef.current;return(null==n||!n.disabled)&&(null==S||S(e),!0)}));KE({container:b.current,accept:e=>"radio"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let I=Ka((e=>{let t=b.current;if(!t)return;let n=fs(t),i=m.filter((e=>!1===e.propsRef.current.disabled)).map((e=>e.element.current));switch(e.key){case is.Enter:rA(e.currentTarget);break;case is.ArrowLeft:case is.ArrowUp:if(e.preventDefault(),e.stopPropagation(),Ns(i,_s.Previous|_s.WrapAround)===bs.Success){let e=m.find((e=>e.element.current===(null==n?void 0:n.activeElement)));e&&T(e.propsRef.current.value)}break;case is.ArrowRight:case is.ArrowDown:if(e.preventDefault(),e.stopPropagation(),Ns(i,_s.Next|_s.WrapAround)===bs.Success){let e=m.find((e=>e.element.current===(null==n?void 0:n.activeElement)));e&&T(e.propsRef.current.value)}break;case is.Space:{e.preventDefault(),e.stopPropagation();let t=m.find((e=>e.element.current===(null==n?void 0:n.activeElement)));t&&T(t.propsRef.current.value)}}})),M=Ka((e=>(p({type:0,...e}),()=>p({type:1,id:e.id})))),C=(0,c.useMemo)((()=>({registerOption:M,firstOption:E,containsCheckedOption:A,change:T,disabled:l,value:w,compare:d})),[M,E,A,T,l,w,d]),N={ref:x,id:_,role:"radiogroup","aria-labelledby":f,"aria-describedby":v,onKeyDown:I},O=(0,c.useMemo)((()=>({value:w})),[w]);return t(c).createElement(y,{name:"RadioGroup.Description"},t(c).createElement(g,{name:"RadioGroup.Label"},t(c).createElement($P.Provider,{value:C},null!=o&&null!=w&&tA({[o]:w}).map((([e,n])=>t(c).createElement(hs,{features:ds.Hidden,...$a({key:e,as:"input",type:"radio",checked:null!=n,hidden:!0,readOnly:!0,name:e,value:n})}))),Ha({ourProps:N,theirProps:u,slot:O,defaultTag:"div",name:"RadioGroup"}))))}));var XP=(e=>(e[e.Empty=1]="Empty",e[e.Active=2]="Active",e))(XP||{});let KP=qa((function(e,n){let i=(0,c.useRef)(null),r=ts(i,n),o=`headlessui-radiogroup-option-${us()}`,[a,s]=jP(),[l,u]=nl(),{addFlag:d,removeFlag:h,hasFlag:p}=UP(1),{value:m,disabled:f=!1,...g}=e,v=(0,c.useRef)({value:m,disabled:f});Za((()=>{v.current.value=m}),[m,v]),Za((()=>{v.current.disabled=f}),[f,v]);let{registerOption:y,disabled:_,change:b,firstOption:x,containsCheckedOption:w,value:S,compare:E}=YP("RadioGroup.Option");Za((()=>y({id:o,element:i,propsRef:v})),[o,y,i,e]);let A=Ka((e=>{var t;if(rs(e.currentTarget))return e.preventDefault();!b(m)||(d(2),null==(t=i.current)||t.focus())})),T=Ka((e=>{if(rs(e.currentTarget))return e.preventDefault();d(2)})),I=Ka((()=>h(2))),M=(null==x?void 0:x.id)===o,C=_||f,N=E(S,m),O={ref:r,id:o,role:"radio","aria-checked":N?"true":"false","aria-labelledby":a,"aria-describedby":l,"aria-disabled":!!C||void 0,tabIndex:C?-1:N||!w&&M?0:-1,onClick:C?void 0:A,onFocus:C?void 0:T,onBlur:C?void 0:I},R=(0,c.useMemo)((()=>({checked:N,disabled:C,active:p(2)})),[N,C,p]);return t(c).createElement(u,{name:"RadioGroup.Description"},t(c).createElement(s,{name:"RadioGroup.Label"},Ha({ourProps:O,theirProps:g,slot:R,defaultTag:"div",name:"RadioGroup.Option"})))})),QP=Object.assign(ZP,{Option:KP,Label:HP,Description:il});var eD=({open:e,layout:t="DEFAULT",onClose:n,controlsPosition:i,setControlsPosition:r,hideEmissions:o,setHideEmissions:s,additionalSettings:l,avatarType:c,setAvatarType:u,enablePositionControls:d,setEnablePositionControls:h,isAvatar3d:p})=>{const{t:m}=qe();return(0,a.jsxs)(tc,{className:"memori-settings-drawer",open:e,onClose:n,title:m("widget.settings")||"Settings",description:m("write_and_speak.settingsHeaderLabel"),children:["TOTEM"===t&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"memori-settings-drawer--field controls",children:[(0,a.jsxs)("label",{htmlFor:"#controlsPosition",children:[m("write_and_speak.controlsPosition")||"Controls",":"]}),(0,a.jsxs)(QP,{id:"controlsPosition",name:"controlsPosition",value:i,defaultValue:i,className:"memori-settings-drawer--controlsposition-radio",onChange:e=>{r(e),WR("controlsPosition",e)},children:[(0,a.jsx)(QP.Option,{value:"center",className:"memori-settings-drawer--controlsposition-radio-button",children:({checked:e})=>(0,a.jsx)(Xl,{primary:e,outlined:!e,children:m("center")||"Center"})}),(0,a.jsx)(QP.Option,{value:"bottom",className:"memori-settings-drawer--controlsposition-radio-button",children:({checked:e})=>(0,a.jsx)(Xl,{primary:e,outlined:!e,children:m("bottom")||"Bottom"})})]})]}),p&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"memori-settings-drawer--field controls",children:[(0,a.jsxs)("label",{htmlFor:"avatarType",className:"memori-settings-drawer-label",children:[m("write_and_speak.avatarType")||"Avatar type",":"]}),(0,a.jsxs)(QP,{id:"avatarType",name:"avatarType",value:c,defaultValue:c,className:"memori-settings-drawer--avatarType-radio",onChange:e=>{u&&u(e),WR("avatarType",e)},children:[(0,a.jsx)(QP.Option,{value:"blob",className:"memori-settings-drawer--avatarType-radio-button",children:({checked:e})=>(0,a.jsx)(Xl,{primary:e,outlined:!e,children:m("write_and_speak.blob")||"Blob"})}),(0,a.jsx)(QP.Option,{value:"avatar3d",className:"memori-settings-drawer--avatarType-radio-button",children:({checked:e})=>(0,a.jsx)(Xl,{primary:e,outlined:!e,children:m("write_and_speak.avatar3d")||"Avatar 3D"})})]})]}),(0,a.jsx)("div",{className:"memori-settings-drawer--field",children:(0,a.jsx)(FP,{label:m("write_and_speak.enablePositionControls")||"Enable position controls",name:"enablePositionControls",checked:d,onChange:e=>{h(e.target.checked)}})})]}),(0,a.jsx)("div",{className:"memori-settings-drawer--field",children:(0,a.jsx)(FP,{label:m("write_and_speak.hideEmissionsLabel")||"Hide emissions",name:"hideControls",checked:o,onChange:e=>{s(e.target.checked),WR("hideEmissions",e.target.checked)}})})]}),l&&(0,a.jsx)("div",{className:"memori-settings-drawer--field controls",children:l})]})};c=o("85Hg2");var tD=({className:e,title:t})=>(0,a.jsx)("svg",{...t?{}:{"aria-hidden":"true"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",focusable:"false",role:"img",className:e,"aria-label":t,children:(0,a.jsx)("path",{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"})});c=o("85Hg2");var nD=({className:e,title:t})=>(0,a.jsx)("svg",{...t?{}:{"aria-hidden":"true"},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",focusable:"false",role:"img",className:e,fill:"currentColor","aria-label":t,children:(0,a.jsx)("path",{fillRule:"evenodd",d:"M10 3a.75.75 0 01.55.24l3.25 3.5a.75.75 0 11-1.1 1.02L10 4.852 7.3 7.76a.75.75 0 01-1.1-1.02l3.25-3.5A.75.75 0 0110 3zm-3.76 9.2a.75.75 0 011.06.04l2.7 2.908 2.7-2.908a.75.75 0 111.1 1.02l-3.25 3.5a.75.75 0 01-1.1 0l-3.25-3.5a.75.75 0 01.04-1.06z",clipRule:"evenodd"})});var iD=({className:e,value:n,name:i,displayValue:r,options:o,onChange:s,disabled:l=!1,label:u,placeholder:d})=>(0,a.jsx)("div",{className:t($e)("memori-select",e),children:(0,a.jsxs)(cL,{value:n,onChange:e=>{s(e)},disabled:l,name:i,children:[u&&(0,a.jsxs)(cL.Label,{className:"memori-select--label",children:[u,":"]}),(0,a.jsxs)(cL.Button,{"aria-label":u,className:"memori-select--button",children:[(0,a.jsx)("span",{className:t($e)("memori-select--value",{"memori-select--value-placeholder":!n}),children:n?r||n:d}),(0,a.jsx)("span",{className:"memori-select--icon",children:(0,a.jsx)(nD,{})})]}),(0,a.jsx)(Yl,{as:c.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)(cL.Options,{className:"memori-select--options",children:o.map((e=>(0,a.jsx)(cL.Option,{value:e.value,className:"memori-select--option",children:e.label},e.value)))})})]})});var rD=({apiClient:e,sessionID:n,memori:i,visible:r=!0,initialKnownFacts:o=[],closeDrawer:s})=>{var l;const{t:u}=qe(),{getKnownFactsPaginated:d,deleteKnownFact:h}=e.knownFacts,[p,m]=(0,c.useState)(o),[f,g]=(0,c.useState)(25),[v,y]=(0,c.useState)(0),[_,b]=(0,c.useState)(null!==(l=null==o?void 0:o.length)&&void 0!==l?l:0),[x,w]=(0,c.useState)(!1),S=async(e,i,r)=>{if(n||e){w(!0);try{const{knownFacts:a,count:s,...l}=await d(null!=e?e:n,null!=i?i:v,null!=r?r:f);m(null!=a?a:o),b(null!=s?s:0),0!==l.resultCode&&(console.error(l),t(Ao).error(u(XI(l.resultCode))))}catch(e){console.error("KNOWN_FACTS/FETCH",e),m(null!=o?o:[])}w(!1)}};(0,c.useEffect)((()=>{S()}),[]);const[E,A]=(0,c.useState)(!1),[T,I]=(0,c.useState)(),[M,C]=(0,c.useState)([]);return(0,a.jsxs)(tc,{open:r,width:"80%",className:"memori-known-facts-drawer",onClose:()=>s(),title:u("knownFacts.title"),children:[(0,a.jsx)("p",{children:u("knownFacts.description",{memoriName:i.name})}),(0,a.jsxs)(Zl,{spinning:x,children:[(0,a.jsxs)("div",{className:"memori-known-facts-actions",children:[(0,a.jsxs)(Xl,{primary:!0,danger:!0,onClick:()=>{A(!0)},className:"memori-known-facts-delete-selected",disabled:0===(null==M?void 0:M.length),icon:(0,a.jsx)(tD,{}),loading:x,children:[u("selected")," (",null==M?void 0:M.length,")"]}),(0,a.jsx)(RA,{className:"memori-known-facts-modal",open:E,closable:!0,title:M.length>1?u("knownFacts.deleteSelectedConfirmTitle"):u("knownFacts.deleteConfirmTitle"),description:M.length>1?u("knownFacts.deleteSelectedConfirmMessage",{number:M.length}):u("knownFacts.deleteConfirmMessage"),onClose:()=>{A(!1)},footer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Xl,{ghost:!0,onClick:()=>{A(!1)},children:u("cancel")}),(0,a.jsx)(Xl,{primary:!0,danger:!0,onClick:async()=>{try{const e=M.map((e=>h(n,e)));Promise.all(e).then((e=>{if(e.every((e=>0===e.resultCode)))t(Ao).success(u("knownFacts.deleteSuccess")),C([]),S(),A(!1);else{let n=e.find((e=>0!==e.resultCode));console.error(n),void 0!==(null==n?void 0:n.resultCode)&&t(Ao).error(u(XI(null==n?void 0:n.resultCode)))}}))}catch(e){let n=e;t(Ao).error(u("Error")+n.message)}},children:u("confirm")})]})})]}),_>25&&(0,a.jsxs)("nav",{className:"memori--table--pagination",children:[_>f&&(0,a.jsxs)("div",{className:"memori--table--pagination--pages",children:[(0,a.jsx)(Xl,{shape:"circle",disabled:0===v||v<f,padded:!1,title:u("previous")||"Previous",icon:(0,a.jsx)(EC,{}),onClick:()=>{let e=(v/f-1)*f;y(e),S(void 0,e,f)}}),(0,a.jsxs)("span",{className:"memori--table--pagination--pages--current",children:[Math.ceil(v/f)+1," /"," ",Math.ceil(_/f)]}),(0,a.jsx)(Xl,{shape:"circle",padded:!1,title:u("next")||"Next",icon:(0,a.jsx)(sC,{}),disabled:(v/f+1)*f>=_,onClick:()=>{let e=(v/f+1)*f;y(e),S(void 0,e,f)}})]}),(0,a.jsx)(iD,{options:[{label:`25 / ${u("page")||"page"}`,value:25},{label:`50 / ${u("page")||"page"}`,value:50},{label:`100 / ${u("page")||"page"}`,value:100}],value:f,displayValue:`${f} / ${u("page")||"page"}`,onChange:e=>{g(e),y(0),S(void 0,0,e)}})]}),(0,a.jsxs)("table",{className:"memori--table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"memori--table--column-centered",children:(0,a.jsx)(FP,{checked:!!(null==p?void 0:p.length)&&(null==M?void 0:M.length)===p.length,indeterminate:!!(null==p?void 0:p.length)&&!!(null==M?void 0:M.length)&&(null==M?void 0:M.length)!==(null==p?void 0:p.length),onChange:e=>{e.target.checked?C(p.map((e=>e.knownFactID))):C([])}})}),(0,a.jsx)("th",{children:u("knownFacts.text")}),(0,a.jsx)("th",{className:"mobile-hidden",children:u("createdAt")}),(0,a.jsx)("th",{className:"memori--table--column-right",children:u("actions")})]})}),(0,a.jsx)("tbody",{children:p.map((e=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"memori--table--column-centered",children:(0,a.jsx)(FP,{checked:null==M?void 0:M.includes(e.knownFactID),onChange:t=>{t.target.checked?C((t=>[...new Set([...t,e.knownFactID])])):C((t=>t.filter((t=>t!==e.knownFactID))))}})}),(0,a.jsx)("td",{children:e.text}),(0,a.jsx)("td",{className:"mobile-hidden",children:(0,a.jsx)("span",{className:"memori--table--date",children:e.creationTimestamp?new Intl.DateTimeFormat("it",{dateStyle:"short",timeStyle:"short"}).format(new Date(e.creationTimestamp)):"-"})}),(0,a.jsx)("td",{className:"memori--table--column-right",children:(0,a.jsxs)("div",{className:"memori--table--action-column",children:[(0,a.jsx)(Xl,{danger:!0,ghost:!0,shape:"circle",icon:(0,a.jsx)(tD,{}),disabled:(null==M?void 0:M.length)>0,title:u("delete")||"Delete",onClick:()=>I(e.knownFactID)}),(0,a.jsx)(RA,{className:"memori-known-facts-modal",open:T===e.knownFactID,closable:!0,title:u("knownFacts.deleteConfirmTitle"),description:u("knownFacts.deleteConfirmMessage"),onClose:()=>{I(void 0)},footer:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Xl,{ghost:!0,onClick:()=>{I(void 0)},children:u("cancel")}),(0,a.jsx)(Xl,{primary:!0,danger:!0,onClick:async()=>{try{const i=await h(n,e.knownFactID);0===i.resultCode?(t(Ao).success(u("knownFacts.deleteSuccess")),C([]),S(),I(void 0)):(console.error(i),t(Ao).error(u(XI(i.resultCode),{ns:"common"})))}catch(e){let n=e;t(Ao).error(u("Error")+n.message)}},children:u("confirm")})]})})]})})]},e.knownFactID)))})]})]})]})};var oD=({open:e=!1,baseUrl:t,apiUrl:n,tenant:i,experts:r,onClose:o})=>{const{t:s}=qe();return(0,a.jsx)(tc,{open:e,onClose:o,className:"memori--experts-drawer",title:(0,a.jsx)("h2",{className:"memori--experts-drawer--title",children:s("widget.expertsInTheBoard")}),children:(0,a.jsx)("ul",{className:"memori--experts-drawer--list",children:r.map((e=>(0,a.jsxs)("li",{className:"memori--experts-drawer--item",children:[(0,a.jsx)("figure",{className:"memori--experts-drawer--avatar",children:(0,a.jsx)("img",{src:`${new URL(n).origin}/api/v1/memoriai/memori/avatar/${e.expertMemoriID}`,alt:e.name,onError:e=>{e.currentTarget.src=tI({tenantID:null==i?void 0:i.name,type:"avatar",baseURL:t}),e.currentTarget.onerror=null}})}),(0,a.jsx)("div",{className:"memori--experts-drawer--content",children:(0,a.jsx)("h3",{className:"memori--experts-drawer--name",children:e.name})})]},e.expertID)))})})};c=o("85Hg2");var aD=({open:e=!1,onClose:n,onLogin:i,user:r,loginToken:o,setUser:s,tenant:l,apiClient:u,__TEST__signup:d=!1,__TEST__needMissingData:h=!1})=>{var p;const{t:m,i18n:f}=qe(),g="it"===f.language?"it":"en",{pwlUpdateUser:v,loginWithOTP:y,validateOTPCode:_,pwlGetCurrentUser:b,uploadAsset:x}=u.backend,w=(null==r?void 0:r.userID)&&o,[S,E]=(0,c.useState)(!1),[A,T]=(0,c.useState)(null),[I,M]=(0,c.useState)(""),[C,N]=(0,c.useState)(""),[O,R]=(0,c.useState)(null),[L,P]=(0,c.useState)(!0),[D,k]=(0,c.useState)(!1),[B,F]=(0,c.useState)(null),[U,z]=(0,c.useState)(!1),[G,j]=(0,c.useState)(null),[H,V]=(0,c.useState)(!1),[W,q]=(0,c.useState)(!1),[$,Y]=(0,c.useState)(!1),[J,Z]=(0,c.useState)(""),[X,K]=(0,c.useState)(!1),[Q,ee]=(0,c.useState)(!1),[te,ne]=(0,c.useState)(d),[ie,re]=(0,c.useState)(h?{token:"token",birthDate:!0,tnCAndPPAccepted:!0}:{});(0,c.useEffect)((()=>{let e;return B&&B>0&&(e=setInterval((()=>{F((e=>e&&e>0?e-1:0))}),1e3)),()=>{e&&clearInterval(e)}}),[B]);const oe=async(e,n=!1)=>{if(e&&LE.test(e)){n?V(!0):E(!0),R(null);try{const i=await y({tenant:l.name,eMail:e.trim()});0===i.resultCode?(t(Ao).success(m(n?"login.otpResent":"login.otpSent")),N(e.trim()),z(!0),k(!0),se(),q(!1)):R(i.resultMessage||m("login.otpSendError"))}catch(e){console.error("[OTP SEND]",e),R(m("login.otpSendError"))}finally{E(!1),V(!1)}}else R(m("login.emailInvalid"))},ae=e=>{const n=e.replace(/\D/g,"").slice(0,4);M(n),R(null),4===n.length&&C.trim().length>0&&(async e=>{if(e&&4===e.length)if(C&&0!==C.trim().length){E(!0),R(null);try{const n=await _(e,l.name,void 0,C.trim());0===n.resultCode?(q(!0),t(Ao).success(m("login.otpSuccess")),setTimeout((async()=>{var e,r,o;try{const{user:t,...a}=await b(n.newSessionToken);t.age&&t.tnCAndPPAccepted?i(t,n.newSessionToken):(s(t),Z(null!==(e=null==t?void 0:t.birthDate)&&void 0!==e?e:""),K(null!==(r=null==t?void 0:t.tnCAndPPAccepted)&&void 0!==r&&r),ee(null!==(o=null==t?void 0:t.pAndCUAccepted)&&void 0!==o&&o),re({token:n.newSessionToken,birthDate:!t.age,tnCAndPPAccepted:!t.tnCAndPPAccepted}))}catch(e){console.error("[GET USER]",e),t(Ao).error(m("login.userFetchError"))}}),1e3),setTimeout((()=>{P(!1),k(!1),M(""),N(""),z(!1),q(!1)}),2e3)):-107===n.resultCode?R(m("login.otpNotFound")):-108===n.resultCode?R(m("login.otpExpired")):-109===n.resultCode?R(m("login.otpMissing")):R(n.resultMessage||m("login.otpInvalid"))}catch(e){console.error("[OTP VALIDATION]",e),R(m("login.otpError"))}finally{E(!1)}}else R(m("login.emailRequired"));else R(m("login.otpInvalidFormat"))})(n)},se=()=>{F(60)};return(0,a.jsx)(tc,{open:e,onClose:n,className:t($e)("memori--login-drawer",{"memori--login-drawer--logged":w,"memori--login-drawer--signup":te}),children:(null===(p=null==ie?void 0:ie.token)||void 0===p?void 0:p.length)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{children:m("login.missingData")}),(0,a.jsx)("p",{children:m("login.missingDataHelper")}),(0,a.jsxs)("form",{className:"memori--login-drawer--form",onSubmit:async e=>{if(e.preventDefault(),!(null==r?void 0:r.userID)||!(null==ie?void 0:ie.token))return void T(m("login.userNotFound"));if(!J||!X)return void T(m("missingData"));let n={userID:r.userID,birthDate:(null==r?void 0:r.birthDate)||!ie.birthDate?void 0:J,tnCAndPPAccepted:X||(null==r?void 0:r.tnCAndPPAccepted),tnCAndPPAcceptanceDate:X?(new Date).toISOString():void 0,pAndCUAccepted:Q||(null==r?void 0:r.pAndCUAccepted),pAndCUAcceptanceDate:Q?(new Date).toISOString():void 0};const{user:o,...a}=await v(ie.token,r.userID,n);0!==a.resultCode?(console.error(a),t(Ao).error(m(XI(a.resultCode))),T(a.resultMessage)):(t(Ao).success(m("success")),i(o||n,ie.token))},children:[ie.birthDate&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("label",{htmlFor:"#birthDate",children:[m("login.birthDate"),(0,a.jsx)("input",{id:"birthDate",name:"birthDate",type:"date",required:!0,onChange:e=>Z(e.target.value),value:J,autoComplete:"bday"})]}),(0,a.jsx)("p",{children:(0,a.jsx)("small",{children:m("login.birthDateHelper")})})]}),(null==ie?void 0:ie.tnCAndPPAccepted)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("label",{className:"memori-checkbox",children:[(0,a.jsxs)("span",{className:"memori-checkbox--input-wrapper",children:[(0,a.jsx)("input",{type:"checkbox",name:"tnCAndPPAccepted",className:"memori-checkbox--input",onChange:e=>K(e.target.checked),checked:X}),(0,a.jsx)("span",{className:"memori-checkbox--inner"})]}),(0,a.jsxs)("span",{className:"memori-checkbox--text",children:[m("login.privacyLabel")," ",(0,a.jsx)("a",{href:`https://memori.ai/${g}/privacy_and_cookie`,target:"_blank",rel:"noopener noreferrer",children:m("login.privacyAndCookiePolicy")})," ",m("login.and")," ",(0,a.jsx)("a",{href:`https://memori.ai/${g}/tos`,target:"_blank",rel:"noopener noreferrer",children:m("login.termsOfService")})]})]}),(0,a.jsxs)("label",{className:"memori-checkbox",children:[(0,a.jsxs)("span",{className:"memori-checkbox--input-wrapper",children:[(0,a.jsx)("input",{type:"checkbox",name:"pAndCUAccepted",onChange:e=>ee(e.target.checked),checked:Q,className:"memori-checkbox--input"}),(0,a.jsx)("span",{className:"memori-checkbox--inner"})]}),(0,a.jsxs)("span",{className:"memori-checkbox--text",children:[m("login.pAndCUAccepted")," ",(0,a.jsx)("small",{children:(0,a.jsxs)("em",{children:["(",m("login.optional"),")"]})})]})]}),(0,a.jsx)("p",{children:(0,a.jsx)("small",{children:m("login.goToAccountToChangeYourPreferences")})}),(0,a.jsx)("p",{children:(0,a.jsx)("small",{children:m("login.deepThoughtExplaination")})})]}),A&&(0,a.jsx)("p",{className:"memori--login-drawer--inline-error",children:A}),(0,a.jsx)(Xl,{htmlType:"submit",primary:!0,loading:S,children:m("login.save")})]})]}):D?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"memori--login-drawer--otp-container",children:[(0,a.jsxs)("div",{className:"memori--login-drawer--otp-header",children:[W&&(0,a.jsx)("div",{className:"memori--login-drawer--otp-icon",children:"✅"}),(0,a.jsx)("h3",{children:m("login.otpTitle")}),(0,a.jsx)("p",{className:"memori--login-drawer--otp-description",children:W?m("login.otpSuccessMessage"):m("login.otpCodeDescription",{email:C})})]}),!W&&(0,a.jsx)("div",{className:t($e)("memori--login-drawer--otp-form",{loading:S}),children:(0,a.jsxs)("label",{htmlFor:"otp-code",className:"memori--login-drawer--otp-label",children:[(0,a.jsx)("span",{className:"memori--login-drawer--otp-label-text",style:{textAlign:"center"},children:m("login.otpCode")}),(0,a.jsxs)("div",{className:"memori--login-drawer--otp-input-container",children:[(0,a.jsx)("input",{id:"otp-code",type:"text",className:t($e)("memori--login-drawer--otp-input",{success:4===I.length&&!O,error:O,loading:S}),value:I,onChange:e=>ae(e.target.value),placeholder:"0000",maxLength:4,autoComplete:"one-time-code",required:!0,disabled:S,"aria-describedby":"otp-help"}),S&&(0,a.jsx)("div",{className:"memori--login-drawer--otp-loading",children:(0,a.jsx)("div",{className:"memori--login-drawer--otp-spinner"})})]}),(0,a.jsx)("small",{id:"otp-help",className:"memori--login-drawer--otp-help",children:m("login.otpHelp")})]})}),B&&B>0&&!W&&(0,a.jsx)("div",{className:"memori--login-drawer--otp-timer",children:(0,a.jsx)("span",{children:m("login.otpTimer",{seconds:B})})}),!W&&(0,a.jsxs)("div",{className:"memori--login-drawer--otp-actions",children:[(0,a.jsx)(Xl,{outlined:!0,onClick:()=>{k(!1),M(""),R(null)},disabled:S,children:m("login.backToEmail")}),(0,a.jsx)(Xl,{outlined:!0,onClick:()=>{C&&LE.test(C)&&oe(C,!0)},disabled:S||H||B&&B>0||!C,loading:H,children:m(H?"login.resending":"login.resendOtp")})]}),O&&(0,a.jsxs)("div",{role:"alert",className:"memori--login-drawer--otp-error",children:[(0,a.jsx)("span",{className:"memori--login-drawer--otp-error-icon",children:"⚠️"}),(0,a.jsx)("span",{children:O})]})]})}):L?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"memori--login-drawer--otp-container",children:[(0,a.jsxs)("div",{className:"memori--login-drawer--otp-header",children:[(0,a.jsx)("h3",{children:m("login.otpEmailTitle")}),(0,a.jsx)("p",{className:"memori--login-drawer--otp-description",children:m("login.otpEmailDescription")})]}),(0,a.jsx)("div",{className:t($e)("memori--login-drawer--otp-form",{loading:S}),children:(0,a.jsxs)("label",{htmlFor:"otp-email",className:"memori--login-drawer--otp-label",children:[(0,a.jsx)("span",{className:"memori--login-drawer--otp-label-text",children:m("login.email")}),(0,a.jsxs)("div",{className:"memori--login-drawer--otp-input-container",children:[(0,a.jsx)("input",{id:"otp-email",type:"email",className:t($e)("memori--login-drawer--otp-email-input",{error:O&&!LE.test(C),valid:$&&!O,loading:S}),value:C,onChange:e=>{return t=e.target.value,N(t),R(null),void Y(LE.test(t));var t},placeholder:m("login.emailPlaceholder")||"Enter your email",autoComplete:"email",required:!0,disabled:S,"aria-describedby":"email-help"}),$&&!S&&(0,a.jsx)("div",{className:"memori--login-drawer--otp-valid-icon",children:"✓"}),S&&(0,a.jsx)("div",{className:"memori--login-drawer--otp-loading",children:(0,a.jsx)("div",{className:"memori--login-drawer--otp-spinner"})})]})]})}),(0,a.jsxs)("div",{className:"memori--login-drawer--otp-actions",children:[D&&(0,a.jsx)(Xl,{outlined:!0,onClick:()=>{P(!1),N(""),R(null),Y(!1)},disabled:S,children:m("login.backToLogin")}),(0,a.jsx)(Xl,{primary:!0,onClick:()=>{oe(C)},disabled:S||!$,loading:S,children:m("login.sendOtp")})]}),O&&(0,a.jsxs)("div",{role:"alert",className:"memori--login-drawer--otp-error",children:[(0,a.jsx)("span",{className:"memori--login-drawer--otp-error-icon",children:"⚠️"}),(0,a.jsx)("span",{children:O})]})]})}):null})};var sD=({Header:e,headerProps:t,Avatar:n,avatarProps:i,Chat:r,chatProps:o,StartPanel:s,startPanelProps:l,integrationStyle:c,integrationBackground:u,sessionId:d,hasUserActivatedSpeak:h,loading:p=!1,poweredBy:m})=>{const{state:f}=re(),g=f.currentArtifact;return(0,a.jsxs)(a.Fragment,{children:[c,u,(0,a.jsxs)(Zl,{spinning:p,children:[(0,a.jsx)("div",{className:"memori-chat-layout--header "+(f.isDrawerOpen?"memori-chat-layout--header-with-artifact":""),children:e&&t&&(0,a.jsx)(e,{...t})}),(0,a.jsxs)("div",{className:"memori--grid",children:[!f.isDrawerOpen&&(0,a.jsxs)("div",{className:"memori--grid-column memori--grid-column-left",children:[n&&i&&(0,a.jsx)(n,{chatProps:o,...i}),(0,a.jsx)("div",{id:"extension"})]}),(0,a.jsx)("div",{className:"memori-chat-layout--main "+(g?"memori-chat-layout--main-with-artifact":""),children:(0,a.jsx)("div",{className:f.isFullscreen?"memori-chat-layout-controls-hide":"memori-chat-layout--controls "+(f.isDrawerOpen?"memori-chat-layout--controls-with-artifact":""),children:d&&h&&r&&o?(0,a.jsx)(r,{...o}):l?(0,a.jsx)(s,{...l}):null})}),m]})]})]})};var lD=({Header:e,headerProps:t,Avatar:n,avatarProps:i,Chat:r,chatProps:o,StartPanel:s,startPanelProps:l,integrationStyle:c,integrationBackground:u,sessionId:d,hasUserActivatedSpeak:h,loading:p=!1,poweredBy:m})=>(0,a.jsxs)(a.Fragment,{children:[c,u,(0,a.jsxs)(Zl,{spinning:p,className:"memori-totem-layout",children:[m,(0,a.jsx)("div",{className:"memori-totem-layout--header",children:e&&t&&(0,a.jsx)(e,{...t})}),(0,a.jsx)("div",{className:"memori-totem-layout--avatar",children:n&&i&&(0,a.jsx)(n,{chatProps:o,...i,isTotem:!0})}),(0,a.jsx)("div",{id:"extension"}),(0,a.jsx)("div",{className:"memori-totem-layout--controls",children:d&&h&&r&&o?(0,a.jsx)(r,{...o}):l?(0,a.jsx)(s,{...l}):null})]})]});var cD=({Header:e,headerProps:t,Chat:n,chatProps:i,StartPanel:r,startPanelProps:o,integrationStyle:s,integrationBackground:l,sessionId:c,hasUserActivatedSpeak:u,loading:d=!1,poweredBy:h})=>{const{state:p}=re();return(0,a.jsxs)(a.Fragment,{children:[s,l,(0,a.jsxs)(Zl,{spinning:d,className:"memori-chat-layout",children:[h,(0,a.jsx)("div",{className:"memori-chat-layout--header "+(p.isDrawerOpen?"memori-chat-layout--header-with-artifact":""),children:e&&t&&(0,a.jsx)(e,{...t})}),(0,a.jsx)("div",{id:"extension"}),(0,a.jsx)("div",{className:"memori-chat-layout--main "+(p.isDrawerOpen?"memori-chat-layout--main-with-artifact":""),children:(0,a.jsx)("div",{className:p.isFullscreen?"memori-chat-layout-controls-hide":"memori-chat-layout--controls "+(p.isDrawerOpen?"memori-chat-layout--controls-with-artifact":""),children:c&&u&&n&&i?(0,a.jsx)(n,{...i}):o?(0,a.jsx)(r,{...o}):null})})]})]})};c=o("85Hg2"),c=o("85Hg2");var uD=({Header:e,headerProps:t,Avatar:n,avatarProps:i,Chat:r,chatProps:o,StartPanel:s,startPanelProps:l,integrationStyle:u,sessionId:d,hasUserActivatedSpeak:h,loading:p=!1,poweredBy:m})=>{var f,g;const{t:v}=qe(),[y,_]=(0,c.useState)(!0),[b,x]=(0,c.useState)(),w=(0,c.useMemo)((()=>null==o?void 0:o.stopAudio),[null==o?void 0:o.stopAudio]),S=e=>{_(e),x(e?void 0:(new Date).toISOString());try{null==w||w()}catch(e){console.log(e)}};return(0,a.jsxs)(a.Fragment,{children:[y&&(0,a.jsx)("div",{className:"memori-website_assistant--trigger",children:(0,a.jsx)(Xl,{className:"memori-website_assistant--trigger-button",ghost:!0,shape:"circle",onClick:()=>S(!1),title:v("expand")||"Expand",children:(0,a.jsx)(WC,{avatar:null==i?void 0:i.memori.avatarURL})})}),(0,a.jsx)("div",{className:"memori-website_assistant--"+(y?"collapsed":"expanded"),children:!y&&(0,a.jsxs)(a.Fragment,{children:[u,(0,a.jsxs)(Zl,{spinning:p,className:"memori-website_assistant-layout",children:[m,(0,a.jsx)("div",{className:"memori-website_assistant--close-button-wrapper",children:(0,a.jsx)(Xl,{className:"memori-website_assistant--close-button",primary:!0,shape:"circle",onClick:()=>S(!0),icon:(0,a.jsx)(Kl,{}),title:v("close")||"Close"})}),e&&t&&(0,a.jsx)(e,{...t,showSettings:!1,showReload:!1}),(0,a.jsx)("div",{className:"memori-website_assistant-layout--avatar",children:n&&i&&(0,c.createElement)(n,{...i,integrationConfig:i.integrationConfig?{...i.integrationConfig,avatarURL:(null===(f=i.integrationConfig)||void 0===f?void 0:f.avatarURL)?`${null===(g=i.integrationConfig)||void 0===g?void 0:g.avatarURL.split("#")[0]}#${b}`:void 0}:{},key:b})}),(0,a.jsx)("div",{id:"extension"}),(0,a.jsx)("div",{className:"memori-website_assistant-layout--controls",children:d&&h&&r&&o?(0,a.jsx)(r,{...o}):l?(0,a.jsx)(s,{...l}):null})]})]})})]})};c=o("85Hg2");var dD=({Header:e,headerProps:t,Chat:n,chatProps:i,startPanelProps:r,sessionId:o,hasUserActivatedSpeak:s,autoStart:l,StartPanel:u,onSidebarToggle:d})=>{const{t:h}=qe(),[p,m]=(0,c.useState)(!1),[f,g]=(0,c.useState)(!1),[v,y]=(0,c.useState)(!1),{state:_,closeArtifact:b}=re(),{onClickStart:x,hasInitialSession:w}=r||{},S=(0,c.useRef)({right:"",width:"",backgroundColor:""});(0,c.useEffect)((()=>{const e=()=>{!document.fullscreenElement&&f&&E()};return document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e)}}),[f]),(0,c.useEffect)((()=>{const e=document.body;p?f?(e.style.width="100%",e.style.marginLeft="0"):(e.style.width="calc(100% - 350px)",e.style.marginRight="300px",e.style.transition="all 0.5s"):(e.style.width="100%",e.style.marginRight="0",e.style.marginLeft="0",b())}),[p,f]);const E=()=>{const e=document.querySelector(".memori-sidebar");if(e){const t=document.querySelector(".memori-close-label");t&&(t.style.display="flex");const n=e;n.style.right=S.current.right,n.style.width=S.current.width,n.style.backgroundColor=S.current.backgroundColor,n.classList.remove("memori-sidebar-fullscreen")}g(!1)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",{type:"checkbox",id:"memori-sidebar-toggle",className:"memori-sidebar-toggle "+(_.isDrawerOpen?"memori-sidebar-toggle-artifact":""),checked:p,onChange:()=>{p||v||!l&&void 0!==l||o&&!w||(y(!0),null==x||x()),f&&p&&(document.fullscreenElement&&document.exitFullscreen().catch((e=>{console.warn("[HiddenChatLayout] Error exiting fullscreen:",e)})),E());const e=!p;m(e),d&&d(e)}}),(0,a.jsxs)("div",{className:"memori-sidebar-container",children:[(0,a.jsx)("label",{htmlFor:"memori-sidebar-toggle",className:"memori-sidebar-toggle-label memori-open-label",children:(0,a.jsx)(II,{className:"memori-icon","aria-label":h("expand")})}),(0,a.jsxs)("aside",{className:"memori-sidebar "+(f?"memori-sidebar-fullscreen":""),children:[(0,a.jsx)("label",{htmlFor:"memori-sidebar-toggle",className:"memori-sidebar-toggle-label memori-close-label",children:(0,a.jsx)("span",{children:(0,a.jsx)(Kl,{className:"memori-icon-close","aria-label":h("collapse")})})}),(0,a.jsx)("div",{className:"memori-sidebar-content",children:(0,a.jsx)("div",{className:"memori-hidden-chat-layout--header",children:e&&t&&(0,a.jsx)(e,{position:{latitude:0,longitude:0,placeName:""},...t,className:"memori-hidden-chat-layout-header--layout",fullScreenHandler:()=>{if(document.fullscreenElement)document.exitFullscreen&&document.exitFullscreen().catch((e=>{console.warn("[HiddenChatLayout] Error exiting fullscreen:",e)})),E();else{const e=document.querySelector(".memori-sidebar");if(e){const t=e,n=document.querySelector(".memori-close-label");n&&(n.style.display="none"),S.current={right:t.style.right,width:t.style.width,backgroundColor:t.style.backgroundColor},t.style.right="0",t.style.width="100%",t.style.backgroundColor="#FFFFFF",t.requestFullscreen().catch((e=>{console.warn("[HiddenChatLayout] Error enabling fullscreen:",e)}))}g(!0)}}})})}),(0,a.jsx)("div",{id:"extension"}),(0,a.jsx)("div",{className:"memori-hidden-chat-layout--controls",children:o&&s&&n&&i?(0,a.jsx)(n,{...i}):!l&&r?(0,a.jsx)("div",{className:"memori-loading",children:(0,a.jsx)(u,{...r})}):(0,a.jsx)("div",{className:"memori-loading",children:(0,a.jsx)(Zl,{})})})]})]})]})};var hD=({Header:e,headerProps:t,Avatar:n,avatarProps:i,Chat:r,chatProps:o,StartPanel:s,startPanelProps:l,integrationStyle:c,integrationBackground:u,sessionId:d,hasUserActivatedSpeak:h,loading:p=!1,poweredBy:m})=>{const{state:f}=re(),g=f.currentArtifact;return(0,a.jsxs)(a.Fragment,{children:[c,u,(0,a.jsxs)(Zl,{className:"memori-spin--zoomed-full-body",spinning:p,children:[(0,a.jsx)("div",{className:"memori-chat-layout--header "+(f.isDrawerOpen?"memori-chat-layout--header-with-artifact":""),children:e&&t&&(0,a.jsx)(e,{...t})}),(0,a.jsxs)("div",{className:"memori--grid",children:[!f.isDrawerOpen&&(0,a.jsxs)("div",{className:"memori--grid-column memori--grid-column-left",children:[n&&i&&(0,a.jsx)(n,{chatProps:o,isZoomed:!0,...i}),(0,a.jsx)("div",{id:"extension"})]}),(0,a.jsx)("div",{className:"memori-chat-layout--main "+(g?"memori-chat-layout--main-with-artifact":""),children:(0,a.jsx)("div",{className:f.isFullscreen?"memori-chat-layout-controls-hide":"memori-chat-layout--controls "+(f.isDrawerOpen?"memori-chat-layout--controls-with-artifact":""),children:d&&h&&r&&o?(0,a.jsx)(r,{...o}):l?(0,a.jsx)(s,{...l}):null})}),m]})]})]})};const pD={IT:{MALE:"it-IT-DiegoNeural",FEMALE:"it-IT-ElsaNeural"},DE:{MALE:"de-DE-ConradNeural",FEMALE:"de-DE-KatjaNeural"},EN:{MALE:"en-GB-RyanNeural",FEMALE:"en-GB-SoniaNeural"},ES:{MALE:"es-ES-AlvaroNeural",FEMALE:"es-ES-ElviraNeural"},FR:{MALE:"fr-FR-HenriNeural",FEMALE:"fr-FR-DeniseNeural"},PT:{MALE:"pt-PT-DuarteNeural",FEMALE:"pt-PT-RaquelNeural"},UK:{MALE:"uk-UA-OstapNeural",FEMALE:"uk-UA-PolinaNeural"},RU:{MALE:"ru-RU-DmitryNeural",FEMALE:"ru-RU-SvetlanaNeural"},PL:{MALE:"pl-PL-MarekNeural",FEMALE:"pl-PL-AgnieszkaNeural"},FI:{MALE:"fi-FI-HarriNeural",FEMALE:"fi-FI-SelmaNeural"},EL:{MALE:"el-GR-NestorasNeural",FEMALE:"el-GR-AthinaNeural"},AR:{MALE:"ar-SA-HamedNeural",FEMALE:"ar-SA-ZariyahNeural"},ZH:{MALE:"zh-CN-YunxiNeural",FEMALE:"zh-CN-XiaoxiaoNeural"},JA:{MALE:"ja-JP-KeitaNeural",FEMALE:"ja-JP-NanamiNeural"}},mD={MALE:"en-US-GuyNeural",FEMALE:"en-US-JennyNeural"},fD={ALL:["alloy","echo","fable","onyx","nova","shimmer"],CHARACTERISTICS:{alloy:{gender:"NEUTRAL",tone:"BALANCED"},echo:{gender:"MALE",tone:"DEEP"},fable:{gender:"FEMALE",tone:"EXPRESSIVE"},onyx:{gender:"MALE",tone:"AUTHORITATIVE"},nova:{gender:"FEMALE",tone:"FRIENDLY"},shimmer:{gender:"FEMALE",tone:"BRIGHT"}},RECOMMENDED:{DEFAULT:{MALE:"onyx",FEMALE:"nova",NEUTRAL:"alloy"},IT:{MALE:"echo",FEMALE:"nova"},ES:{MALE:"echo",FEMALE:"shimmer"},FR:{MALE:"echo",FEMALE:"fable"},PT:{MALE:"onyx",FEMALE:"shimmer"},DE:{MALE:"onyx",FEMALE:"fable"},EN:{MALE:"echo",FEMALE:"nova"},ZH:{MALE:"echo",FEMALE:"shimmer"},JA:{MALE:"echo",FEMALE:"nova"},RU:{MALE:"onyx",FEMALE:"fable"}}},gD="alloy";fD.ALL;function vD(e,t="azure",n="FEMALE"){const i=(e||"EN").toUpperCase();if("openai"===t.toLowerCase()){return(fD.RECOMMENDED[i]||fD.RECOMMENDED.DEFAULT)[n]||fD.RECOMMENDED.DEFAULT[n]||gD}{const e=pD[i]||mD;return e[n]||e.FEMALE||mD.FEMALE}}const yD=async({operation:e="session_creation",baseUrl:t,userID:n,userName:i,tenant:r})=>{if(!n&&!i)throw new Error("Either userID or userName must be provided");const o=await fetch(`${t}/api/verify-tokens`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({operation:e,userID:n,userName:i,tenant:r})});if(!o.ok)throw new Error("Failed to fetch credits");return o.json()};function _D(e){return jE(BE(kE(GE(zE(UE(e))))))}c=o("85Hg2");function bD(e,t={},n=!1,i=!0,r=!0){const[o,a]=(0,c.useState)(!1),[s,l]=(0,c.useState)(VR("muteSpeaker",!i||!r||n)),{addViseme:u,resetVisemeQueue:d,startProcessing:h,stopProcessing:p}=HL(),[m,f]=(0,c.useState)(!1),g=e=>{const n=VR("muteSpeaker",!i);return e&&e.trim()&&!t.preview&&!n&&i},v=(0,c.useRef)(null),y=(0,c.useRef)(null),_=(0,c.useRef)(null),b=(0,c.useRef)(!1),x=(0,c.useRef)(!1),w=(0,c.useRef)(null),S=(0,c.useRef)(!0),E=(0,c.useRef)(null),A=(t.apiUrl,(0,c.useCallback)((e=>(d(),b.current=!1,!!(e&&e.length>0)&&(e.forEach((e=>{u(e.visemeId,e.audioOffset)})),b.current=!0,!0))),[u,d])),T=(0,c.useCallback)((()=>{if(!v.current)return null;const e={state:"running",onstatechange:null,get currentTime(){return v.current?v.current.currentTime:0}},t=()=>{e.state="suspended",e.onstatechange&&e.onstatechange.call(null,new Event("statechange"))},n=()=>{e.state="running",e.onstatechange&&e.onstatechange.call(null,new Event("statechange"))},i=()=>{e.state="closed",e.onstatechange&&e.onstatechange.call(null,new Event("statechange"))};v.current.addEventListener("pause",t),v.current.addEventListener("play",n),v.current.addEventListener("ended",i);return e.cleanup=()=>{v.current&&(v.current.removeEventListener("pause",t),v.current.removeEventListener("play",n),v.current.removeEventListener("ended",i))},e}),[]),I=(0,c.useCallback)((()=>{var e;w.current&&(clearTimeout(w.current),w.current=null),y.current&&y.current.cleanup&&y.current.cleanup(),y.current=null,p(),d(),(null===(e=v.current)||void 0===e?void 0:e.src)&&(URL.revokeObjectURL(v.current.src),v.current=null),E.current&&(E.current=null),b.current=!1}),[p,d]),M=(0,c.useCallback)((()=>{v.current&&(v.current.pause(),v.current.currentTime=0),E.current&&(E.current.pause(),E.current.currentTime=0,E.current=null),a(!1),I(),x.current=!1;const e=new CustomEvent("MemoriAudioEnded");document.dispatchEvent(e)}),[I]),C=(0,c.useCallback)((()=>{const e=new CustomEvent("MemoriEndSpeak");document.dispatchEvent(e),t.continuousSpeech&&t.onEndSpeakStartListen&&t.onEndSpeakStartListen()}),[t.continuousSpeech,t.onEndSpeakStartListen]),N=(0,c.useCallback)(((e,t=800)=>{if(e.length<=t)return[e];const n=e.split(/[.!?]+/).filter((e=>e.trim().length>0)),i=[];let r="";for(const e of n){const n=e.trim()+".";(r+n).length>t&&r.length>0?(i.push(r.trim()),r=n):r+=n+" "}return r.trim().length>0&&i.push(r.trim()),i}),[]),O=(0,c.useCallback)((async n=>{const i=await fetch(t.apiUrl||"/api/tts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:n,tenant:e.tenant||"www.aisuru.com",voice:e.voice,model:e.model||"tts-1",region:e.region,provider:e.provider,includeVisemes:"ZOOMED_FULL_BODY"===e.layout||"FULLPAGE"===e.layout||"DEFAULT"===e.layout||"TOTEM"===e.layout})});if(!i.ok){const e=await i.json().catch((()=>({})));throw new Error(e.error||`API error: ${i.status}`)}const r=await i.blob(),o=URL.createObjectURL(r);if(!g(n))return void URL.revokeObjectURL(o);if(!x.current||!S.current)return void URL.revokeObjectURL(o);let a=!1;const s=i.headers.get("X-Viseme-Data");if(s)try{const e=JSON.parse(s);a=A(e)}catch(e){console.error("[useTTS] Error parsing viseme data:",e)}if(!x.current||!S.current)return void URL.revokeObjectURL(o);const l=new Audio;return l.preload="auto",l.src=o,v.current=l,E.current=l,y.current&&y.current.cleanup&&(y.current.cleanup(),y.current=null),a&&(y.current=T()),new Promise(((e,t)=>{var n;if(!v.current)return void t(new Error("Audio element not found"));v.current.addEventListener("canplaythrough",(async()=>{var n,i;try{if(!x.current||!S.current)return URL.revokeObjectURL(o),void e();try{a&&y.current&&h(y.current),await(null===(n=v.current)||void 0===n?void 0:n.play())}catch(e){await new Promise((e=>setTimeout(e,100))),a&&y.current&&h(y.current),await(null===(i=v.current)||void 0===i?void 0:i.play())}}catch(e){URL.revokeObjectURL(o),t(e)}}),{once:!0}),v.current.onended=()=>{URL.revokeObjectURL(o),E.current===l&&(E.current=null),e()},v.current.onerror=()=>{URL.revokeObjectURL(o),E.current===l&&(E.current=null),t(new Error("Audio playback failed"))},null===(n=v.current)||void 0===n||n.load()}))}),[e,t,A,T,h,x,S,s,i]),R=(0,c.useCallback)((async e=>{if(S.current){if(!g(e))return m||f(!0),void C();if(o&&M(),!x.current){x.current=!0,m||f(!0);try{a(!0);const t=N(e,500);for(let e=0;e<t.length&&(x.current&&S.current);e++)await O(t[e]),e<t.length-1&&x.current&&S.current&&await new Promise((e=>setTimeout(e,300)));a(!1),x.current=!1,C();const n=new CustomEvent("MemoriAudioEnded");document.dispatchEvent(n)}catch(e){console.error("[speak] Error during playback:",e),a(!1),x.current=!1,w.current&&(clearTimeout(w.current),w.current=null),I(),C();const t=new CustomEvent("MemoriAudioEnded");document.dispatchEvent(t)}}}}),[e,s,t.preview,m,M,I,N,O,C,o,i]),L=(0,c.useCallback)((e=>{const t=void 0!==e?e:!s;l(t),WR("muteSpeaker",t),t&&o&&M()}),[s,o,M,d,p]);return(0,c.useEffect)((()=>{"undefined"!=typeof window&&(window.memoriSpeaking=o)}),[o]),(0,c.useEffect)((()=>{if("undefined"!=typeof window)return _.current=window.speak,window.speak=R,()=>{window.speak=_.current}}),[R]),(0,c.useEffect)((()=>()=>{x.current=!1,S.current=!1,M()}),[M]),{speak:R,stop:M,isPlaying:o,speakerMuted:s,toggleMute:L,hasUserActivatedSpeak:m,setHasUserActivatedSpeak:f}}c=o("85Hg2");var xD,wD=({className:e,title:t})=>(0,a.jsx)("svg",{...t?{}:{"aria-hidden":"true"},focusable:"false",width:"24",height:"24",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",className:e,"aria-label":t,children:(0,a.jsx)("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 13.5997 2.37562 15.1116 3.04346 16.4525C3.22094 16.8088 3.28001 17.2161 3.17712 17.6006L2.58151 19.8267C2.32295 20.793 3.20701 21.677 4.17335 21.4185L6.39939 20.8229C6.78393 20.72 7.19121 20.7791 7.54753 20.9565C8.88837 21.6244 10.4003 22 12 22Z",stroke:"currentColor","stroke-width":"1.5"})}),SD={};SD=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var ED,AD={},TD={};ED="object"==typeof n&&n&&n.Object===Object&&n;var ID="object"==typeof self&&self&&self.Object===Object&&self,MD=ED||ID||Function("return this")();AD=function(){return TD.Date.now()};var CD={},ND={},OD={},RD=/\s/;OD=function(e){for(var t=e.length;t--&&RD.test(e.charAt(t)););return t};var LD=/^\s+/;ND=function(e){return e?e.slice(0,OD(e)+1).replace(LD,""):e};var PD,DD={},kD={};PD=(TD=MD).Symbol;var BD={},FD=Object.prototype,UD=FD.hasOwnProperty,zD=FD.toString,GD=PD?PD.toStringTag:void 0;BD=function(e){var t=UD.call(e,GD),n=e[GD];try{e[GD]=void 0;var i=!0}catch(e){}var r=zD.call(e);return i&&(t?e[GD]=n:delete e[GD]),r};var jD={},HD=Object.prototype.toString;jD=function(e){return HD.call(e)};var VD=PD?PD.toStringTag:void 0;kD=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":VD&&VD in Object(e)?BD(e):jD(e)};var WD={};WD=function(e){return null!=e&&"object"==typeof e};DD=function(e){return"symbol"==typeof e||WD(e)&&"[object Symbol]"==kD(e)};var qD=/^[-+]0x[0-9a-f]+$/i,$D=/^0b[01]+$/i,YD=/^0o[0-7]+$/i,JD=parseInt;CD=function(e){if("number"==typeof e)return e;if(DD(e))return NaN;if(SD(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=SD(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=ND(e);var n=$D.test(e);return n||YD.test(e)?JD(e.slice(2),n?2:8):qD.test(e)?NaN:+e};var ZD=Math.max,XD=Math.min;xD=function(e,t,n){var i,r,o,a,s,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=i,o=r;return i=r=void 0,c=t,a=e.apply(o,n)}function m(e){return c=e,s=setTimeout(g,t),u?p(e):a}function f(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function g(){var e=AD();if(f(e))return v(e);s=setTimeout(g,function(e){var n=t-(e-l);return d?XD(n,o-(e-c)):n}(e))}function v(e){return s=void 0,h&&i?p(e):(i=r=void 0,a)}function y(){var e=AD(),n=f(e);if(i=arguments,r=this,l=e,n){if(void 0===s)return m(l);if(d)return clearTimeout(s),s=setTimeout(g,t),p(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=CD(t)||0,SD(n)&&(u=!!n.leading,o=(d="maxWait"in n)?ZD(CD(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==s&&clearTimeout(s),c=0,i=l=r=s=void 0},y.flush=function(){return void 0===s?a:v(AD())},y};const KD=e=>{const t=e.filter((e=>e.inbound));if(0===t.length)return"";const n=["hello","hi","hey","good morning","good afternoon","good evening","thanks","thank you","thx","tnx","ty","thanks!","thank you!","ok","okay","k","yes","no","yep","nope","yeah","nah","good","great","nice","cool","awesome","perfect","excellent","bye","goodbye","see you","see ya","later","good night","how are you","how are you doing","what's up","sup","please","pls","sorry","excuse me","pardon","i see","i understand","got it","gotcha","understood","continue","go on","tell me more","more","next","start","begin","let's start","let's begin","help","can you help","i need help","test","testing","test message","?","??","???","!","!!","!!!","...","..",".","a","an","the","and","or","but","in","on","at","to","for","of","with","by","ciao","salve","buongiorno","buonasera","buonanotte","grazie","grazie mille","grazie!","grazie mille!","thx","tnx","ok","va bene","va bene così","perfetto","ottimo","bene","sì","si","no","certo","certamente","assolutamente","arrivederci","a presto","a dopo","ci vediamo","addio","come stai","come va","tutto bene","che succede","per favore","per piacere","scusa","scusami","mi dispiace","capisco","ho capito","capito","perfetto","continua","vai avanti","dimmi di più","altro","altro ancora","inizia","iniziamo","comincia","cominciamo","aiuto","puoi aiutarmi","ho bisogno di aiuto","test","prova","messaggio di prova","?","??","???","!","!!","!!!","...","..",".","un","una","il","la","gli","le","e","o","ma","in","su","a","per","di","con","da"],i=t.map(((e,t)=>{const i=GE(e.text||"");return{text:i,score:(e=>{const t=e.toLowerCase().trim();if(n.includes(t))return 0;const i=t.split(/\s+/).filter((e=>e.length>0)).length;if(i<3)return.1;if(t.length<5)return.1;let r=.5;return(/\?$/.test(t)||/^(what|how|why|when|where|who|which|can|could|would|will|do|does|did|is|are|was|were)/.test(t)||/^(cosa|come|perché|perche|quando|dove|chi|quale|quali|può|puo|potrebbe|vorrebbe|sarà|sara|fa|fai|fanno|è|e|sono|era|erano)/.test(t))&&(r+=.3),i>5&&(r+=.2),i>10&&(r+=.2),i>20&&(r-=.1),/\d/.test(t)&&(r+=.1),/[A-ZÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞŸ][a-zàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ]+/.test(e)&&(r+=.1),Math.min(r,1)})(i),index:t,originalIndex:t}}));i.sort(((e,t)=>Math.abs(e.score-t.score)<.1?e.index-t.index:t.score-e.score));let r=i[0];if(r.score<.3){const e=i.find((e=>e.score>.1));e&&(r=e)}if(r.score<.2){const e=i.filter((e=>e.score>.1)).slice(0,3).sort(((e,t)=>e.index-t.index));if(e.length>1){const t=e.map((e=>e.text)).join(" - ").substring(0,80);return t.length>80?`${t}...`:t}}const o=r.text;if(o.length>100){const e=o.substring(0,100),t=e.lastIndexOf(" ");return t>70?`${e.substring(0,t)}...`:`${e}...`}return o},QD=(e,t)=>{const n=new Blob([e],{type:"text/plain"}),i=URL.createObjectURL(n),r=document.createElement("a");r.setAttribute("href",i),r.setAttribute("download",t),r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r)};var ek=({open:e,onClose:n,apiClient:i,sessionId:r,memori:o,resumeSession:s,baseUrl:l,apiUrl:u,history:d,loginToken:h,language:p,userLang:m,isMultilanguageEnabled:f=!1})=>{var g,v,y,_;const{t:b}=qe(),{getUserChatLogsByTokenPaged:x}=i.chatLogs,[w,S]=(`${b("write_and_speak.conversationStartedLabel")} ${new Intl.DateTimeFormat("it",{dateStyle:"short",timeStyle:"short"}).format(new Date)}\n\n`.concat(d.map((e=>`${e.fromUser?"YOU":o.name}: ${e.text}`)).join("\n")),(0,c.useState)([])),[E,A]=(0,c.useState)(null),[T,I]=(0,c.useState)(1),[M,C]=(0,c.useState)(0),[N,O]=(0,c.useState)(""),[R,L]=(0,c.useState)(!1),[P,D]=(0,c.useState)(null),[k,B]=(0,c.useState)("desc"),[F,U]=(0,c.useState)("all"),[z,G]=(0,c.useState)(0),[j,H]=(0,c.useState)(0),[V,W]=(0,c.useState)(!1),[q,$]=(0,c.useState)(!1),[Y,J]=(0,c.useState)(3),[Z,X]=(0,c.useState)(1),K=e=>`${e.getFullYear()}${String(e.getMonth()+1).padStart(2,"0")}${String(e.getDate()).padStart(2,"0")}${String(e.getHours()).padStart(2,"0")}${String(e.getMinutes()).padStart(2,"0")}${String(e.getSeconds()).padStart(2,"0")}${String(e.getMilliseconds()).padStart(3,"0")}`,Q=(0,c.useCallback)((async(e="all")=>{var t;if(!h)return void D(b("errorFetchingSession")||"Login token required to fetch chat history");const n=8*(T-1);let i;C(n),L(!0),D(null);let r={loginToken:h,memoriID:o.engineMemoriID,dateFrom:void 0,dateTo:void 0,from:n,howMany:8,minimumMessagesPerChat:0===Y?Z:Y};try{if("all"===e)i=await x(r);else{const{dateFrom:n,dateTo:o}=null!==(t=(e=>{if("today"===e){const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate()-1);return{dateFrom:K(t),dateTo:K(e)}}if("yesterday"===e){const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate()-1),n=new Date(t.getFullYear(),t.getMonth(),t.getDate()-2);return{dateFrom:K(n),dateTo:K(t)}}if("last_7_days"===e){const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate()-7);return{dateFrom:K(t),dateTo:K(e)}}if("last_30_days"===e){const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate()-30);return{dateFrom:K(t),dateTo:K(e)}}})(e))&&void 0!==t?t:{};i=await x({...r,dateFrom:null!=n?n:void 0,dateTo:null!=o?o:void 0})}const n=i;let o=n.chatLogs.sort(((e,t)=>{const n=Math.max(...e.lines.map((e=>new Date(e.timestamp).getTime()))),i=Math.max(...t.lines.map((e=>new Date(e.timestamp).getTime())));return"desc"===k?i-n:n-i}));p.toUpperCase()!==m.toUpperCase()&&f&&(o=await(async(e,t,n,i)=>{try{const i=await Promise.all(e.map((async e=>{const i=await Promise.all(e.lines.map((async e=>{if(!e.text)return e;try{const i=await eM(e.text,n,t);return{...e,originalText:e.text,text:i.text}}catch(t){return console.error("Error translating line:",t),e}})));return{...e,lines:i}})));return i}catch(t){return console.error("Error translating chat logs:",t),e}})(o,p,m)),S(o),G(n.count||o.length),H(Math.ceil((n.count||o.length)/8))}catch(e){D(b("errorFetchingSession")||"Error loading chat history"),console.error("Error fetching chat logs:",e)}finally{L(!1)}}),[h,o.engineMemoriID,T,k,u,Y,Z]);(0,c.useEffect)((()=>{const e=()=>{W(window.innerWidth<=768)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]),(0,c.useEffect)((()=>{e&&(I(1),C(0),$(!1),A(null))}),[e]),(0,c.useEffect)((()=>{e&&(I(1),C(0))}),[k,F,Y,Z,e]),(0,c.useEffect)((()=>{e&&T>0&&Q(F)}),[T,F,Y,Z,Q,e]);(0,c.useMemo)((()=>t(xD)((e=>O(e)),300)),[]);const ee=w,te=async()=>{E&&(s(E),n())},ne=e=>new Intl.DateTimeFormat(navigator.language,{dateStyle:"medium",timeStyle:"short"}).format(new Date(e));return(0,a.jsx)(tc,{className:"memori-chat-history-drawer",open:e,onClose:n,titleWithClosable:{title:b("write_and_speak.chatHistory")||"Chat History",actions:[{icon:(0,a.jsx)(hC,{}),visible:q,onClick:()=>{const e=`${o.name.replace(/\W+/g,"-")}-chat-${(new Date).toISOString().split("T")[0]}.txt`,t=(null==E?void 0:E.lines.map((e=>`${e.inbound?"YOU":o.name}: ${e.text}`)).join("\n").replaceAll(/<think.*?>(.*?)<\/think>/gs,"").replaceAll(/<document_attachment filename="([^"]+)" type="([^"]+)">([\s\S]*?)<\/document_attachment>/g,"").replaceAll(/<output.*?<\/output>/gis,"").replaceAll(/```markdown([^```]+)```/g,"$1").replaceAll("($","( $").replaceAll(":$",": $").replaceAll("\frac","\\frac").replaceAll("\beta","\\beta").replaceAll("cdot","\\cdot"))||"No chat history available";QD(t,e)}}],showClosable:!0},title:(0,a.jsx)("div",{className:"memori-chat-history-drawer--title-wrapper",style:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},children:(0,a.jsx)("span",{children:b("write_and_speak.chatHistory")||"Chat History"})}),description:q?void 0:b("write_and_speak.chatHistoryDescription"),children:q?(()=>{if(!E)return null;const e=Math.max(...E.lines.map((e=>new Date(e.timestamp).getTime()))),t=ne(new Date(e).toISOString());return(0,a.jsxs)("div",{className:"memori-chat-history-drawer--detail-view",children:[(0,a.jsxs)("div",{className:"memori-chat-history-drawer--detail-view--header",children:[(0,a.jsx)(Xl,{className:"memori-chat-history-drawer--detail-view--back-button",onClick:()=>{$(!1),A(null)},icon:(0,a.jsx)(EC,{})}),(0,a.jsxs)("div",{className:"memori-chat-history-drawer--detail-view--header--title-wrapper",children:[(0,a.jsx)("div",{className:"memori-chat-history-drawer--detail-view--header--title",children:KD(E.lines)||"Chat-"+E.chatLogID.substring(0,4)}),(0,a.jsx)("div",{className:"memori-chat-history-drawer--detail-view--header--date",children:t})]})]}),(0,a.jsxs)("div",{className:"memori-chat-history-drawer--detail-view--content",children:[(0,a.jsx)("div",{className:"memori-chat-history-drawer--detail-view--messages",children:(0,a.jsx)(MC,{baseUrl:l,apiUrl:u,memoriTyping:!1,showTypingText:!1,showAIicon:!0,showTranslationOriginal:!1,showWhyThisAnswer:!1,showCopyButton:!1,isChatlogPanel:!0,showInputs:!1,history:E.lines.map((e=>({text:e.text,contextVars:e.contextVars,media:e.media,fromUser:e.inbound,timestamp:e.timestamp}))),memori:o,sessionID:r,pushMessage:()=>{},simulateUserPrompt:()=>{},setSendOnEnter:()=>{},attachmentsMenuOpen:void 0,setAttachmentsMenuOpen:()=>{},userMessage:"",onChangeUserMessage:()=>{},sendMessage:()=>{},startListening:()=>{},stopListening:()=>{},listening:!1,setEnableFocusChatInput:()=>{},stopAudio:()=>{},isHistoryView:!0},`${E.chatLogID}-${E.lines.length}`)}),(0,a.jsx)("div",{className:"memori-chat-history-drawer--detail-view--actions",children:(0,a.jsx)(Xl,{className:"memori-chat-history-drawer--detail-view--resume-button",primary:!0,onClick:te,children:(0,a.jsx)("div",{className:"memori-chat-history-drawer--detail-view--resume-button--content",children:(0,a.jsx)("span",{className:"memori-chat-history-drawer--detail-view--resume-button--text",children:b("write_and_speak.resumeButton")||"Resume chat"})})})})]})]})})():(0,a.jsxs)("div",{className:"memori-chat-history-drawer--content",children:[(0,a.jsxs)("div",{className:"memori-chat-history-drawer--toolbar",children:[(0,a.jsxs)("div",{className:"memori-chat-history-drawer--toolbar--min-messages-filter",children:[(0,a.jsx)(iD,{displayValue:0===Y?null!==(g=b("chatLogs.customMinimumMessages")||"Customize the number of messages")&&void 0!==g?g:"Customize the number of messages":1===Y?null!==(v=b("chatLogs.anyMessage")||"Any message")&&void 0!==v?v:"Any message":null!==(y=b("chatLogs.atLeast",{count:Y}))&&void 0!==y?y:`At least ${Y} messages`,placeholder:null!==(_=b("chatLogs.customMinimumMessages")||"Customize the number of messages")&&void 0!==_?_:"Customize the number of messages",value:Y,onChange:e=>{J(e)},className:"memori-chat-history-drawer--toolbar--min-messages-filter--select",options:[{value:1,label:b("chatLogs.anyMessage")||"Any message"},{value:2,label:b("chatLogs.atLeast2")||"At least 2 messages"},{value:3,label:b("chatLogs.atLeast3")||"At least 3 messages"},{value:5,label:b("chatLogs.atLeast5")||"At least 5 messages"},{value:10,label:b("chatLogs.atLeast10")||"At least 10 messages"},{value:15,label:b("chatLogs.atLeast15")||"At least 15 messages"},{value:20,label:b("chatLogs.atLeast20")||"At least 20 messages"},{value:0,label:b("chatLogs.customMinimumMessages")||"Customize the number of messages"}]}),0===Y&&(0,a.jsx)("input",{type:"number",min:1,value:Z,onChange:e=>{const t=parseInt(e.target.value,10);X(t)},style:{minWidth:50},className:"memori-chat-history-drawer--toolbar--min-messages-filter--input-number"})]}),(0,a.jsx)("div",{className:"memori-chat-history-drawer--toolbar--actions",children:(0,a.jsx)(iD,{options:[{label:b("all")||"All",value:"all"},{label:b("today")||"Today",value:"today"},{label:b("yesterday")||"Yesterday",value:"yesterday"},{label:b("last_7_days")||"Last 7 days",value:"last_7_days"},{label:b("last_30_days")||"Last 30 days",value:"last_30_days"}],value:b(F)||"All",className:"memori-chat-history-drawer--toolbar--actions--select",onChange:e=>{U(e),I(1)}})})]}),R?(0,a.jsxs)("div",{className:"memori-chat-history-drawer--loading",children:[(0,a.jsx)(Zl,{spinning:!0,primary:!0,className:"memori-chat-history-drawer--loading--spinner"}),(0,a.jsx)("p",{className:"memori-chat-history-drawer--loading--text",children:b("write_and_speak.loadingChatHistory")||"Loading chat history..."})]}):P?(0,a.jsx)("div",{className:"memori-chat-history-drawer--error",children:(0,a.jsx)("p",{children:P})}):w.length?0===w.length?(0,a.jsx)("div",{className:"memori-chat-history-drawer--no-results",children:(0,a.jsx)("p",{children:b("write_and_speak.noResultsFound",{searchText:N||""})||"No results found"})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("ul",{className:"memori-chat-history-drawer--list",children:ee.map((e=>{const t=Math.max(...e.lines.map((e=>new Date(e.timestamp).getTime())));return(0,a.jsx)(nM,{hoverable:(null==e?void 0:e.sessionID)!==r,onClick:async()=>{if((null==e?void 0:e.sessionID)!==r){if((null==E?void 0:E.chatLogID)===e.chatLogID)return A(null),void(V&&$(!1));A(e),$(!0)}},className:`memori-chat-history-drawer--card ${(null==E?void 0:E.chatLogID)===e.chatLogID?"memori-chat-history-drawer--card--selected":""} ${(null==e?void 0:e.sessionID)===r?"memori-chat-history-drawer--card--disabled":"memori-chat-history-drawer--card--hoverable"}`,children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"memori-chat-history-drawer--card--header",children:(0,a.jsx)("div",{className:"memori-chat-history-drawer--card--header--content",children:(0,a.jsx)("div",{className:"memori-chat-history-drawer--card--header--info",children:(0,a.jsxs)("div",{className:"memori-chat-history-drawer--card--header--title-wrapper",children:[(0,a.jsx)(Tl.Title,{as:"h3",className:"memori-chat-history-drawer--card--header--title",children:KD(e.lines)||"Chat-"+e.chatLogID.substring(0,4)}),e.boardOfExperts&&(0,a.jsx)("div",{className:"memori-chat-history-drawer--card--header--badge",children:"BOE"})]})})})}),(0,a.jsxs)("div",{className:"memori-chat-history-drawer--card--header--meta",children:[(0,a.jsx)("time",{className:"memori-chat-history-drawer--card--header--meta--time",dateTime:new Date(t).toISOString(),children:ne(new Date(t).toISOString())}),e.lines.some((e=>e.media&&e.media.filter((e=>"text/html"!==e.mimeType&&"text/plain"!==e.mimeType)).length>0))&&(0,a.jsxs)("span",{className:"memori-chat-history-drawer--card--header--meta--messages",children:[(0,a.jsx)("svg",{className:"memori-chat-history-drawer--card--header--meta--icon",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})}),e.lines.reduce(((e,t)=>{var n;return e+((null===(n=t.media)||void 0===n?void 0:n.filter((e=>"text/html"!==e.mimeType&&"text/plain"!==e.mimeType)).length)||0)}),0)]}),(0,a.jsxs)("span",{className:"memori-chat-history-drawer--card--header--meta--messages",children:[(0,a.jsx)("svg",{className:"memori-chat-history-drawer--card--header--meta--icon",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"})}),e.lines.length]}),!V&&(0,a.jsx)("div",{className:"memori-chat-history-drawer--card--content--header",children:(0,a.jsx)(Xl,{className:"memori-chat-history-drawer--card--content--export-button",onClick:t=>((e,t)=>{t.stopPropagation();const n=`${b("write_and_speak.conversationStartedLabel")} ${new Intl.DateTimeFormat(navigator.language,{dateStyle:"short",timeStyle:"short"}).format(new Date)}\n\n`.concat(e.lines.map((e=>`${e.inbound?"YOU":o.name}: ${e.text}`)).join("\n"));QD(n,`${o.name.replace(/\W+/g,"-")}-chat-${e.chatLogID.substring(0,4)}.txt`)})(e,t),disabled:(null==e?void 0:e.sessionID)===r,children:(0,a.jsx)("div",{className:"memori-chat-history-drawer--card--content--export-button--content",children:(0,a.jsx)(hC,{className:"memori-chat-history-drawer--card--content--export-button--icon"})})})})]})]})},e.chatLogID)}))}),j>1&&(0,a.jsxs)("div",{className:"memori-chat-history-drawer--pagination",children:[(0,a.jsx)(Xl,{primary:!0,onClick:()=>{I((e=>Math.max(1,e-1)))},disabled:1===T,className:"memori-chat-history-drawer--pagination--button",children:b("previous")||"Previous"}),(0,a.jsx)("span",{className:"memori-chat-history-drawer--pagination--info",children:b("write_and_speak.page",{current:T,total:j})}),(0,a.jsx)(Xl,{primary:!0,onClick:()=>{I((e=>Math.min(j,e+1)))},disabled:T===j,className:"memori-chat-history-drawer--pagination--button",children:b("next")||"Next"})]})]}):(0,a.jsxs)("div",{className:"memori-chat-history-drawer--empty",children:[(0,a.jsx)(wD,{className:"memori-chat-history-drawer--empty--icon"}),(0,a.jsx)("p",{className:"memori-chat-history-drawer--empty--text",children:b("write_and_speak.noChatHistoryAvailable")||"No chat history available"})]})]})})};c=o("85Hg2");async function tk(e){return new Promise(((t,n)=>{const i=window.AudioContext||window.webkitAudioContext;if(!i)return void n(new Error("AudioContext not supported in this browser"));const r=new i,o=new FileReader;o.onload=async()=>{try{const e=o.result;"suspended"===r.state&&await r.resume();const n=function(e){const t=e.length,n=e.sampleRate,i=e.numberOfChannels,r=new ArrayBuffer(44+t*i*2),o=new DataView(r),a=(e,t)=>{for(let n=0;n<t.length;n++)o.setUint8(e+n,t.charCodeAt(n))};a(0,"RIFF"),o.setUint32(4,36+t*i*2,!0),a(8,"WAVE"),a(12,"fmt "),o.setUint32(16,16,!0),o.setUint16(20,1,!0),o.setUint16(22,i,!0),o.setUint32(24,n,!0),o.setUint32(28,n*i*2,!0),o.setUint16(32,2*i,!0),o.setUint16(34,16,!0),a(36,"data"),o.setUint32(40,t*i*2,!0);let s=44;for(let n=0;n<t;n++)for(let t=0;t<i;t++){const i=Math.max(-1,Math.min(1,e.getChannelData(t)[n]));o.setInt16(s,i<0?32768*i:32767*i,!0),s+=2}return new Blob([r],{type:"audio/wav"})}(await r.decodeAudioData(e));await r.close(),t(n)}catch(e){n(e)}},o.onerror=()=>{n(new Error("Failed to read audio file"))},o.readAsArrayBuffer(e)}))}function nk(e,t,n={},i=!0){const[r,o]=(0,c.useState)("idle"),[a,s]=(0,c.useState)(VR("muteMicrophone",!i)),[l,u]=(0,c.useState)(!1),[d,h]=(0,c.useState)(null),[p,m]=(0,c.useState)(!1),f=(0,c.useRef)(null),g=(0,c.useRef)(null),v=(0,c.useRef)([]),y=(0,c.useRef)(!1),_=(0,c.useRef)(!0),b=n.apiUrl||"/api/stt",x=(0,c.useCallback)((async()=>{try{if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw new Error("Media recording is not supported in this browser");const i=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0,sampleRate:16e3}});g.current=i;let r="";const a=["audio/mp4","audio/webm;codecs=opus","audio/webm","audio/ogg;codecs=opus","audio/wav"];for(const e of a)if(MediaRecorder.isTypeSupported(e)){r=e;break}const s=new MediaRecorder(i,r?{mimeType:r}:{});return s.ondataavailable=e=>{e.data.size>0&&v.current.push(e.data)},s.onstop=async()=>{o("processing"),m(!1);try{if(0===v.current.length)throw new Error("No audio data recorded");let i=new Blob(v.current,{type:s.mimeType});if(0===i.size)throw new Error("Recorded audio is empty");if("azure"===e.provider)try{i=await tk(i)}catch(e){throw new Error("Failed to convert audio to WAV format for Azure")}const r=await w(i);r.text&&r.text.trim().length>0&&(t&&t(r.text),h(r),n.onTranscriptionComplete&&n.onTranscriptionComplete(r)),o("idle")}catch(e){const t=e instanceof Error?e:new Error(String(e));o("error"),n.onError&&n.onError(t)}finally{v.current=[],y.current=!1}},s.onerror=()=>{const e=new Error("Recording failed");o("error"),y.current=!1,n.onError&&n.onError(e)},f.current=s,!0}catch(e){const t=e instanceof Error?e:new Error("Failed to access microphone");return o("error"),n.onError&&n.onError(t),!1}}),[e.provider,n]),w=(0,c.useCallback)((async t=>{var n;const i=new FormData;let r="webm";"azure"===e.provider?r="wav":(null===(n=f.current)||void 0===n?void 0:n.mimeType)&&(f.current.mimeType.includes("webm")?r="webm":f.current.mimeType.includes("mp4")?r="mp4":f.current.mimeType.includes("ogg")&&(r="ogg")),i.append("audio",t,`recording.${r}`),i.append("provider",e.provider),i.append("tenant",e.tenant||"www.aisuru.com"),e.language&&i.append("language",e.language),e.model&&i.append("model",e.model),e.region&&i.append("region",e.region);const o=await fetch(b,{method:"POST",body:i});if(!o.ok){const e=await o.json().catch((()=>({})));throw new Error(e.error||`API error: ${o.status}`)}const a=await o.json();if(!a.success||!a.result)throw new Error("Invalid response from transcription service");return a.result}),[e,b]),S=(0,c.useCallback)((async()=>{if(!a&&"recording"!==r){l||u(!0);try{if(o("recording"),!f.current){if(!await x())return}v.current=[],y.current=!0,f.current&&"inactive"===f.current.state&&(f.current.start(),m(!0))}catch(e){const t=e instanceof Error?e:new Error("Failed to start recording");o("error"),y.current=!1,n.onError&&n.onError(t)}}}),[a,r,l,x,n]),E=(0,c.useCallback)((()=>{if(y.current)try{m(!1),f.current&&"recording"===f.current.state&&f.current.stop()}catch(e){const t=e instanceof Error?e:new Error("Failed to stop recording");o("error"),y.current=!1,n.onError&&n.onError(t)}}),[r,n]),A=(0,c.useCallback)((async()=>{"recording"===r?E():"idle"===r&&await S()}),[r,S,E]),T=(0,c.useCallback)((e=>{const t=void 0!==e?e:!a;s(t),t&&"recording"===r&&E()}),[a,r,E]),I=(0,c.useCallback)((()=>{y.current=!1,f.current&&("recording"===f.current.state&&f.current.stop(),f.current=null),g.current&&(g.current.getTracks().forEach((e=>e.stop())),g.current=null),v.current=[],m(!1),o("idle")}),[]);return(0,c.useEffect)((()=>()=>{_.current=!1,I()}),[I]),(0,c.useEffect)((()=>{"undefined"!=typeof window&&(window.memoriListening=p)}),[p]),{recordingState:r,microphoneMuted:a,hasUserActivatedRecord:l,lastTranscription:d,isListening:p,startRecording:S,stopRecording:E,toggleRecording:A,toggleMute:T,transcribeAudio:w,setHasUserActivatedRecord:u,cleanup:I}}const ik=(e,t=!0,n=!1,i,r=!1,o=!1)=>{const a=new CustomEvent("MemoriTextEntered",{detail:{text:e,waitForPrevious:t,hidden:n,typingText:i,useLoaderTextAsMsg:r,hasBatchQueued:o}});document.dispatchEvent(a);window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&setTimeout((()=>{document.dispatchEvent(new CustomEvent("MemoriEndSpeak"))}),300)};let rk,ok;window.getMemoriState=e=>{var t,n,i,r,o;let a=e?document.querySelector(`.memori-widget[data-memori-integration="${e}"]`)||(null===(n=null===(t=document.querySelector("memori-client"))||void 0===t?void 0:t.shadowRoot)||void 0===n?void 0:n.querySelector(".memori-widget[data-memori-integration]")):document.querySelector(".memori-widget")||(null===(r=null===(i=document.querySelector("memori-client"))||void 0===i?void 0:i.shadowRoot)||void 0===r?void 0:r.querySelector(".memori-widget"));if(!a)return null;let s=null===(o=a.dataset)||void 0===o?void 0:o.memoriEngineState;return s?{...JSON.parse(s),loginToken:VR("loginToken",void 0)}:null},window.typeMessage=ik,window.typeMessageHidden=(e,t=!0,n,i=!1,r=!1)=>ik(e,t,!0,n,i,r),window.typeBatchMessages=e=>{function t(){var e,t,n,i;null===(e=document.querySelector("fieldset#chat-fieldset"))||void 0===e||e.setAttribute("disabled","");const r="opacity: 0.5; touch-action: none; pointer-events: none;";null===(t=document.querySelector("textarea.memori-chat-textarea--input"))||void 0===t||t.setAttribute("style",r),null===(n=document.querySelector("button.memori-chat-inputs--send"))||void 0===n||n.setAttribute("style",r),null===(i=document.querySelector("button.memori-chat-inputs--mic"))||void 0===i||i.setAttribute("style",r)}function n(){var e,t,n,i;null===(e=document.querySelector("fieldset#chat-fieldset"))||void 0===e||e.removeAttribute("disabled"),null===(t=document.querySelector("textarea.memori-chat-textarea--input"))||void 0===t||t.removeAttribute("style"),null===(n=document.querySelector("button.memori-chat-inputs--send"))||void 0===n||n.removeAttribute("style"),null===(i=document.querySelector("button.memori-chat-inputs--mic"))||void 0===i||i.removeAttribute("style")}function i(){var e;return!!(null===(e=document.querySelector("fieldset#chat-fieldset"))||void 0===e?void 0:e.hasAttribute("disabled"))}const r=window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome")&&/iPad|iPhone|iPod/.test(navigator.userAgent),o=function*(){yield*e}();t();const a=()=>{const e=o.next(),s=e.value;if(s){i()||t();let o=s.waitForPrevious;r&&(o=!1),ik(s.message,o,s.hidden,s.typingText,s.useLoaderTextAsMsg,!e.done),r&&setTimeout((()=>{document.dispatchEvent(new CustomEvent("MemoriEndSpeak")),n()}),3e3)}else i()&&n();if(e.done)return document.removeEventListener("MemoriEndSpeak",a),void(i()&&n())};document.addEventListener("MemoriEndSpeak",a),a()};var ak=({memori:e,memoriConfigs:n,ownerUserID:i,ownerUserName:r,tenantID:o,memoriLang:s,uiLang:l,spokenLang:u,multilingual:d,integration:h,layout:p,customLayout:m,showShare:f,preview:g=!1,embed:v=!1,showCopyButton:y=!0,showTranslationOriginal:_=!1,showInputs:b=!0,showDates:x=!1,showContextPerLine:w=!1,showSettings:S,showTypingText:E=!1,showClear:A=!1,showLogin:T=!1,showUpload:I,showOnlyLastMessages:M,showChatHistory:C,showReasoning:N,height:O="100vh",secret:R,baseUrl:L="https://aisuru-staging.aclambda.online",apiURL:P="https://backend-staging.memori.ai",engineURL:D="https://engine-staging.memori.ai",initialContextVars:k,initialQuestion:B,ttsProvider:F,ogImage:U,sessionID:z,tenant:G,personification:j,authToken:H,enableAudio:V,defaultSpeakerActive:W=!0,disableTextEnteredEvents:q=!1,onStateChange:$,additionalInfo:Y,additionalSettings:J,customMediaRenderer:Z,userAvatar:X,__WEBCOMPONENT__:K=!1,useMathFormatting:Q=!1,autoStart:ee=!1,applyVarsToRoot:ne=!1,showFunctionCache:ie=!1,maxTotalMessagePayload:re,maxTextareaCharacters:oe})=>{var ae,le,ce,de,he,pe,me,fe,ge,ve,ye,_e,be,xe,we,Se,Ee,Ae,Te,Ie,Me,Ce,Ne,Oe,Re,Le,Pe,De,ke,Be,Fe,Ue,ze,Ge,je,He,Ve,We,Je,Ze,Xe,Ke;const{t:Qe,i18n:et}=qe(),[tt,nt]=(0,c.useState)(!1);(0,c.useEffect)((()=>{nt(!0)}),[]);const it=te(P,D),{initSession:rt,deleteSession:ot,postTextEnteredEvent:at,postPlaceChangedEvent:st,postDateChangedEvent:lt,postTimeoutEvent:ct,postTagChangedEvent:ut,getSession:dt,getExpertReferences:ht,getSessionChatLogs:pt}=it,[mt,ft]=(0,c.useState)(!1),[gt,vt]=(0,c.useState)(!0),[yt,_t]=(0,c.useState)(null!==(ae=null==Y?void 0:Y.loginToken)&&void 0!==ae?ae:H),[bt,xt]=(0,c.useState)({avatarURL:"string"==typeof X?X:void 0});(0,c.useEffect)((()=>{yt&&!(null==bt?void 0:bt.userID)&&(T||e.requireLoginToken)&&it.backend.pwlGetCurrentUser(yt).then((({user:e,resultCode:t})=>{e&&0===t?(xt(e),WR("loginToken",yt),!zn&&e.birthDate&&(Gn(e.birthDate),WR("birthDate",e.birthDate))):qR("loginToken")}))}),[yt,null==bt?void 0:bt.userID]);const[wt,St]=(0,c.useState)(!1),[Et,At]=(0,c.useState)(!1),[Tt,It]=(0,c.useState)(!1),Mt=(null===(de=null===(ce=null===(le=e.culture)||void 0===le?void 0:le.split("-"))||void 0===ce?void 0:ce[0])||void 0===de?void 0:de.toUpperCase())||(null===(fe=null===(me=null===(pe=null===(he=null==n?void 0:n.find((t=>t.memoriConfigID===e.memoriConfigurationID)))||void 0===he?void 0:he.culture)||void 0===pe?void 0:pe.split("-"))||void 0===me?void 0:me[0])||void 0===fe?void 0:fe.toUpperCase()),Ct=(null==h?void 0:h.customData)?JSON.parse(h.customData):null,Nt=void 0!==d?d:!!(null==Ct?void 0:Ct.multilanguage),[Ot,Rt]=(null==Ct||Ct.forcedTimeout,(0,c.useState)(null!==(be=null!==(_e=null!==(ye=null!==(ve=null!==(ge=null!=u?u:s)&&void 0!==ge?ge:null==Ct?void 0:Ct.lang)&&void 0!==ve?ve:Mt)&&void 0!==ye?ye:null==Ct?void 0:Ct.uiLang)&&void 0!==_e?_e:et.language)&&void 0!==be?be:"IT"));(0,c.useEffect)((()=>{null!=u&&Rt(u)}),[u]);const Lt=void 0!==Q?Q:!!(null==Ct?void 0:Ct.useMathFormatting);(0,c.useEffect)((()=>{Lt&&WE()}),[Lt]),(0,c.useEffect)((()=>{const e=l&&kI.includes(l.toLowerCase())?l.toLowerCase():Ot&&kI.includes(Ot.toLowerCase())?Ot.toLowerCase():null;e&&"function"==typeof(null==et?void 0:et.changeLanguage)&&et.changeLanguage(e)}),[l,Ot]);const[Pt,Dt]=(0,c.useState)(!1),[kt,Bt]=(0,c.useState)(!1),[Ft,Ut]=(0,c.useState)(),zt=("string"==typeof p?p:"string"==typeof(null==Ct?void 0:Ct.layout)?Ct.layout:null===(xe=null==Ct?void 0:Ct.layout)||void 0===xe?void 0:xe.name)||"DEFAULT",Gt="object"==typeof(null==Ct?void 0:Ct.layout)&&null!==(null==Ct?void 0:Ct.layout)&&(null===(Se=null===(we=null==Ct?void 0:Ct.layout)||void 0===we?void 0:we.piiDetection)||void 0===Se?void 0:Se.enabled)?Ct.layout.piiDetection:void 0,jt=null===(Ee=null!=V?V:null==Ct?void 0:Ct.enableAudio)||void 0===Ee||Ee,[Ht,Vt]=(0,c.useState)(!1),[Wt,qt]=(0,c.useState)(!1),[$t,Yt]=(0,c.useState)(!1),[Jt,Zt]=(0,c.useState)(!1),[Xt,Kt]=(0,c.useState)(!1),[Qt,en]=(0,c.useState)(!1),[tn,nn]=(0,c.useState)(!1),[rn,on]=(0,c.useState)(!1),[an,sn]=(0,c.useState)(2),[ln,cn]=(0,c.useState)("center"),[un,dn]=(0,c.useState)(!1),[hn,pn]=(0,c.useState)(null),[mn,fn]=(0,c.useState)(!1),gn=(0,c.useRef)(null),[vn,yn]=(0,c.useState)(!1);(0,c.useEffect)((()=>{yn(!!gn.current)}),[gn.current]),(0,c.useEffect)((()=>{var e;let t="bottom",n=VR("microphoneMode","HOLD_TO_TALK");window.innerWidth<=768?(t="bottom",n="HOLD_TO_TALK"):t=window.matchMedia("(orientation: portrait)").matches||window.innerHeight>window.innerWidth?"center":"bottom",on(!di&&"CONTINUOUS"===n),sn(VR("continuousSpeechTimeout",2)),cn(VR("controlsPosition",t)),pn(VR("avatarType","avatar3d")),fn(VR("hideEmissions",!1)),(null==Y?void 0:Y.loginToken)||H||(_t(VR("loginToken",void 0)),ok=VR("loginToken",void 0),Gn(VR("birthDate",void 0))),null===(e=null!=V?V:null==Ct?void 0:Ct.enableAudio)||void 0===e||e||WR("muteSpeaker",!0)}),[]),(0,c.useEffect)((()=>{var e;null===(e=null!=V?V:null==Ct?void 0:Ct.enableAudio)||void 0===e||e||WR("muteSpeaker",!0)}),[V,null==Ct?void 0:Ct.enableAudio]);const[_n,bn]=(0,c.useState)(R),[xn,wn]=(0,c.useState)(),[Sn,En]=(0,c.useState)(null),[An,Tn]=(0,c.useState)(),In=async(t,n)=>{var i;const r=null!=n?n:Wn;if(t&&r&&e.needsPosition){const{currentState:e,...n}=await st({sessionId:r,placeName:t.placeName,latitude:t.latitude,longitude:t.longitude,uncertaintyKm:null!==(i=t.uncertainty)&&void 0!==i?i:0});e&&0===n.resultCode&&Yn((t=>{var n;return{...t,...e,hints:(null===(n=e.hints)||void 0===n?void 0:n.length)?e.hints:null==t?void 0:t.hints}}))}};(0,c.useEffect)((()=>{if(e.needsPosition){const e=VR("position",void 0);e&&Tn(e)}}),[e.needsPosition]);const[Mn,Cn]=(0,c.useState)(""),[Nn,On]=(0,c.useState)(!1),[Rn,Ln]=(0,c.useState)([]),Pn=e=>{Ln((t=>{var n,i;return[...t,{...e,media:null!==(i=null===(n=e.media)||void 0===n?void 0:n.filter((e=>{var t;return!("text/javascript"===e.mimeType&&(null===(t=e.properties)||void 0===t?void 0:t.executable))})))&&void 0!==i?i:[]}]}))},[Dn,kn]=(0,c.useState)(void 0),Bn=async(t,n,i,r=!0,o,a=!1,s,l=!1,c=!1)=>{var u,d,h,p,m;const f=i||Wn||(null===(u=window.getMemoriState())||void 0===u?void 0:u.sessionID);if(!f||!(null==t?void 0:t.length))return;let g=t;if(!a&&r&&Nt&&Ot.toUpperCase()!==Mt.toUpperCase()){g=(await eM(t,Mt,Ot)).text}const v=null==n?void 0:n.filter((e=>{var t;return"document"===e.type&&(null===(t=e.properties)||void 0===t?void 0:t.isAttachedFile)}));if(v&&v.length>0){g=g+" "+v.map((e=>e.content)).join(" ")}if(null==Gt?void 0:Gt.enabled){const e=ue(g,Gt,(null==Ot?void 0:Ot.toLowerCase())||"en");if(e.matched&&e.errorText)return a||Pn({text:t,translatedText:o,fromUser:!0,media:null!=n?n:[],initial:Wn?!!i&&i!==Wn:!!i}),void Pn({text:e.errorText,emitter:"system",fromUser:!1,initial:!1,contextVars:{},date:(new Date).toISOString()})}a||Pn({text:t,translatedText:o,fromUser:!0,media:null!=n?n:[],initial:Wn?!!i&&i!==Wn:!!i}),Bt(!0),Ut(s);let y=!1;try{const{currentState:i,...r}=await at({sessionId:f,text:g});if(0===r.resultCode&&i){kn(void 0);const e=l&&s?s:null!==(d=i.emission)&&void 0!==d?d:null==$n?void 0:$n.emission;Ot.toLowerCase()!==Mt.toLowerCase()&&e&&Nt?(i.emission=e,Fn(i,Ot,g).then((e=>{let t=e.translatedEmission||e.emission;t&&fi(t)&&_i(t)}))):(Jn({...i,emission:e}),e&&(Pn({text:e,emitter:i.emitter,media:null!==(h=i.emittedMedia)&&void 0!==h?h:i.media,fromUser:!1,questionAnswered:g,generatedByAI:!!i.completion,contextVars:i.contextVars,date:i.currentDate,placeName:i.currentPlaceName,placeLatitude:i.currentLatitude,placeLongitude:i.currentLongitude,placeUncertaintyKm:i.currentUncertaintyKm,tag:i.currentTag,memoryTags:i.memoryTags}),e&&fi(e)&&_i(e)))}else if(404===r.resultCode)Ln((e=>[...e.slice(0,e.length-1)])),Xn(!0,_n||e.secretToken,xn,void 0,void 0,{LANG:Ot,PATHNAME:window.location.pathname,ROUTE:(null===(m=null===(p=window.location.pathname)||void 0===p?void 0:p.split("/"))||void 0===m?void 0:m.pop())||"",...k||{}},B,void 0,void 0,void 0,void 0,!0).then((e=>{console.info("session timeout"),(null==e?void 0:e.sessionID)&&setTimeout((()=>{Bn(t,n,null==e?void 0:e.sessionID)}),500)}));else{if(500!==r.resultCode||!r.resultMessage)return console.warn("[SEND_MESSAGE]",r),Promise.reject(r);Ln((e=>[...e,{text:"Error: "+r.resultMessage,emitter:"system",fromUser:!1,initial:!1,contextVars:{},date:(new Date).toISOString()}]))}}catch(e){console.log("error",e),console.error(e),y=!0,Ut(void 0),Bt(!1)}c||(Ut(void 0),Bt(!1))},Fn=async(e,t,n,i=!1)=>{var r,o,a,s,l,c;const u=null!==(r=null==e?void 0:e.emission)&&void 0!==r?r:null==$n?void 0:$n.emission;let d={...e},h=null;if(u&&Mt.toUpperCase()!==t.toUpperCase()&&Nt&&!i)try{const i=await eM(u,t,Mt);if(e.hints&&e.hints.length>0){const n=await Promise.all((null!==(a=e.hints)&&void 0!==a?a:[]).map((async e=>{var n;const i=await eM(e,t,Mt);return{text:null!==(n=null==i?void 0:i.text)&&void 0!==n?n:e,originalText:e}})));d={...e,emission:i.text,translatedHints:n}}else d={...e,emission:u,translatedEmission:i.text,hints:null!==(s=e.hints)&&void 0!==s?s:"G1"===e.state?null==$n?void 0:$n.hints:[]};i.text.length>0&&(h={text:u,translatedText:i.text,emitter:e.emitter,media:null!==(l=e.emittedMedia)&&void 0!==l?l:e.media,fromUser:!1,questionAnswered:n,generatedByAI:!!e.completion,contextVars:e.contextVars,date:e.currentDate,placeName:e.currentPlaceName,placeLatitude:e.currentLatitude,placeLongitude:e.currentLongitude,placeUncertaintyKm:e.currentUncertaintyKm,tag:e.currentTag,memoryTags:e.memoryTags})}catch(t){console.error("[TRANSLATE] Error during translation:",t),d={...e,emission:u},h={text:u,emitter:e.emitter,media:null!==(c=e.emittedMedia)&&void 0!==c?c:e.media,fromUser:!1,questionAnswered:n,contextVars:e.contextVars,date:e.currentDate,placeName:e.currentPlaceName,placeLatitude:e.currentLatitude,placeLongitude:e.currentLongitude,placeUncertaintyKm:e.currentUncertaintyKm,tag:e.currentTag,memoryTags:e.memoryTags}}else d={...e,emission:u},u&&(h={text:u,emitter:e.emitter,media:null!==(o=e.emittedMedia)&&void 0!==o?o:e.media,fromUser:!1,questionAnswered:n,contextVars:e.contextVars,date:e.currentDate,placeName:e.currentPlaceName,placeLatitude:e.currentLatitude,placeLongitude:e.currentLongitude,placeUncertaintyKm:e.currentUncertaintyKm,tag:e.currentTag,memoryTags:e.memoryTags});return Jn(d),!i&&h&&Pn(h),d},Un=void 0!==e.ageRestriction?e.ageRestriction:e.nsfw?18:e.enableCompletions?14:0,[zn,Gn]=(0,c.useState)(),[jn,Hn]=(0,c.useState)(!1),Vn=t=>{var n,i;let r="";switch((t||(null===(i=null===(n=e.culture)||void 0===n?void 0:n.split("-"))||void 0===i?void 0:i[0])||et.language||"IT").toUpperCase()){case"IT":default:r="it-IT";break;case"DE":r="de-DE";break;case"EN":r="en-GB";break;case"ES":r="es-ES";break;case"FR":r="fr-FR";break;case"PT":r="pt-PT";break;case"UK":r="uk-UK";break;case"RU":r="ru-RU";break;case"PL":r="pl-PL";break;case"FI":r="fi-FI";break;case"EL":r="el-GR";break;case"AR":r="ar-SA";break;case"ZH":r="zh-CN";break;case"JA":r="ja-JP"}return r},[Wn,qn]=(0,c.useState)(z),[$n,Yn]=(0,c.useState)(),Jn=e=>{var t,n;Yn(e),$&&$(e);const i=new CustomEvent("MemoriNewDialogState",{detail:e});document.dispatchEvent(i);const r=null===(n=null!==(t=null==e?void 0:e.emittedMedia)&&void 0!==t?t:null==e?void 0:e.media)||void 0===n?void 0:n.filter((e=>{var t;return"text/javascript"===e.mimeType&&!!(null===(t=e.properties)||void 0===t?void 0:t.executable)}));null==r||r.forEach((e=>{try{setTimeout((()=>{var t;console.log("snippet",e),new Function(null!==(t=e.content)&&void 0!==t?t:"")(),setTimeout((()=>{var e,t,n;null===(e=document.querySelector(".memori-chat--content"))||void 0===e||e.scrollTo(0,null!==(n=null===(t=document.querySelector(".memori-chat--content"))||void 0===t?void 0:t.scrollHeight)&&void 0!==n?n:0)}),400)}),1e3)}catch(e){console.warn(e)}}))};(0,c.useEffect)((()=>{z&&(qn(z),Bi(void 0,!1,void 0,z))}),[z]);const Zn=async n=>{var i,r,o,s,l,c,u,d,h,p;let m=VR("birthDate",void 0),f=null!==(i=null!=zn?zn:n.birthDate)&&void 0!==i?i:m;if(f||!Un)if("PUBLIC"===e.privacyType||e.secretToken||_n||xn){Dt(!0);try{let i;try{i=window.location.href}catch(e){console.debug(e)}const m=await rt({...n,birthDate:f,tag:null!==(r=n.tag)&&void 0!==r?r:null==j?void 0:j.tag,pin:null!==(o=n.pin)&&void 0!==o?o:null==j?void 0:j.pin,additionalInfo:{...n.additionalInfo||Y||{},loginToken:null!==(u=null!==(c=null!==(s=null!=ok?ok:yt)&&void 0!==s?s:null===(l=n.additionalInfo)||void 0===l?void 0:l.loginToken)&&void 0!==c?c:null==Y?void 0:Y.loginToken)&&void 0!==u?u:H,language:(null!==(p=null!=Ot?Ot:null===(h=null===(d=e.culture)||void 0===d?void 0:d.split("-"))||void 0===h?void 0:h[0])&&void 0!==p?p:"IT").toLowerCase(),referral:i,timeZoneOffset:(new Date).getTimezoneOffset().toString()}});if((null==m?void 0:m.sessionID)&&(null==m?void 0:m.currentState)&&0===m.resultCode)return qn(m.sessionID),(null==$n?void 0:$n.currentTag)&&e.giverTag?ft((null==$n?void 0:$n.currentTag)===e.giverTag):ft(!1),An&&e.needsPosition&&In(An,m.sessionID),Dt(!1),{dialogState:m.currentState,sessionID:m.sessionID};if(!(null==m?void 0:m.resultMessage.startsWith("This Memori is aged restricted")))return 403===(null==m?void 0:m.resultCode)?(bn(void 0),En("password"),m):(console.warn(m),t(Ao).error((e=>(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{children:Qe(XI(null==m?void 0:m.resultCode))}),(0,a.jsx)(Xl,{outlined:!0,padded:!1,onClick:()=>t(Ao).dismiss(e.id),icon:(0,a.jsx)(Kl,{}),children:Qe("close")})]})),{duration:1/0}),It(!0),m);console.warn(m),t(Ao).error(Qe("underageTwinSession",{age:Un})),It(!0)}catch(e){console.error(e)}}else En("password");else Hn(!0)},Xn=async(n=!1,i,r,o,a,s,l,c,u,d,h,p)=>{var m,f,g,v,y,_,b,x,w,S,E;Dt(!0);let A=VR("birthDate",void 0),T=null!=c?c:A;try{if(!T&&Un)return void Hn(!0);if(!("PUBLIC"===e.privacyType||i||e.secretToken||_n||r||xn))return void En("password");let c;try{c=window.location.href}catch(e){console.debug("[REOPEN_SESSION] Error getting referral:",e)}const{sessionID:A,currentState:I,...M}=await rt({memoriID:null!==(m=e.engineMemoriID)&&void 0!==m?m:"",password:i||_n||e.secretToken,recoveryTokens:r||xn,tag:null!=o?o:null==j?void 0:j.tag,pin:null!=a?a:null==j?void 0:j.pin,continueFromChatLogID:d,continueFromSessionID:h,initialContextVars:{LANG:Ot,PATHNAME:window.location.pathname,ROUTE:(null===(g=null===(f=window.location.pathname)||void 0===f?void 0:f.split("/"))||void 0===g?void 0:g.pop())||"",...s||{}},initialQuestion:l,birthDate:T,additionalInfo:{...u||Y||{},loginToken:null!==(_=null!==(y=null!==(v=null!=ok?ok:yt)&&void 0!==v?v:null==u?void 0:u.loginToken)&&void 0!==y?y:null==Y?void 0:Y.loginToken)&&void 0!==_?_:H,language:(null!==(w=null!=Ot?Ot:null===(x=null===(b=e.culture)||void 0===b?void 0:b.split("-"))||void 0===x?void 0:x[0])&&void 0!==w?w:"IT").toLowerCase(),referral:c,timeZoneOffset:(new Date).getTimezoneOffset().toString()}});if(A&&I&&0===M.resultCode){if(console.log("[REOPEN_SESSION] Session initialized successfully:",A),qn(A),n&&(Jn(I),I.emission)){console.log("[REOPEN_SESSION] Processing emission:",I.emission);const e=p&&Rn.length>1?"Session Expired, reopening session":Rn.length<=1||void 0;Rn.length<=1?Ln([{text:I.emission,emitter:I.emitter,media:null!==(S=I.emittedMedia)&&void 0!==S?S:I.media,fromUser:!1,initial:!0===e||(e||void 0),contextVars:I.contextVars,date:I.currentDate,placeName:I.currentPlaceName,placeLatitude:I.currentLatitude,placeLongitude:I.currentLongitude,placeUncertaintyKm:I.currentUncertaintyKm,tag:I.currentTag,memoryTags:I.memoryTags}]):Pn({text:I.emission,emitter:I.emitter,media:null!==(E=I.emittedMedia)&&void 0!==E?E:I.media,fromUser:!1,initial:!0===e||(e||void 0),contextVars:I.contextVars,date:I.currentDate,placeName:I.currentPlaceName,placeLatitude:I.currentLatitude,placeLongitude:I.currentLongitude,placeUncertaintyKm:I.currentUncertaintyKm,tag:I.currentTag,memoryTags:I.memoryTags})}return An&&e.needsPosition&&In(An,A),e.needsDateTime&&Qn({sessionID:A,state:I}),Dt(!1),{dialogState:I,sessionID:A}}(null==M?void 0:M.resultMessage.startsWith("This Memori is aged restricted"))?(console.error("[REOPEN_SESSION] Age restriction error:",M),t(Ao).error(Qe("underageTwinSession",{age:Un})),It(!0)):403===(null==M?void 0:M.resultCode)?(console.error("[REOPEN_SESSION] Authentication error"),bn(void 0),En("password")):(console.error("[REOPEN_SESSION] Other error:",M),t(Ao).error(Qe(XI(M.resultCode))),It(!0))}catch(e){console.error("[REOPEN_SESSION] Caught error:",e)}return Dt(!1),null},Kn=async(t,n,i,r)=>{var o,a,s,l,c,u,d,h;if(!t||!n)return console.error("CHANGETAG/Session not found"),Promise.reject("Session not found");try{const{currentState:t,resultCode:p}=await ut(n,null!=i?i:FI);if(0===p){let m=0;if(i!==FI&&r&&("X1a"===t.state||"X1b"===t.state)){const{resultCode:e}=await at({sessionId:n,text:null!=r?r:""});m=e}if(0===m){const{currentState:e,...t}=await dt(n);if(0===t.resultCode&&e)return{currentState:e,sessionId:n,...t}}else if([400,401,403,404,500].includes(p)){console.warn("[APPCONTEXT/CHANGETAG]",p);let t,n=VR("birthDate",void 0);try{t=window.location.href}catch(e){console.debug(e)}Zn({memoriID:null!==(o=e.engineMemoriID)&&void 0!==o?o:"",password:R||_n||e.secretToken,tag:null!=i?i:null==j?void 0:j.tag,pin:null!=r?r:null==j?void 0:j.pin,initialContextVars:{LANG:Ot,PATHNAME:window.location.pathname,ROUTE:(null===(s=null===(a=window.location.pathname)||void 0===a?void 0:a.split("/"))||void 0===s?void 0:s.pop())||"",...k||{}},initialQuestion:B,birthDate:zn||n||void 0,additionalInfo:{...Y||{},loginToken:null!==(c=null!==(l=null!=ok?ok:yt)&&void 0!==l?l:null==Y?void 0:Y.loginToken)&&void 0!==c?c:H,language:(null!==(h=null!=Ot?Ot:null===(d=null===(u=e.culture)||void 0===u?void 0:u.split("-"))||void 0===d?void 0:d[0])&&void 0!==h?h:"IT").toLowerCase(),referral:t,timeZoneOffset:(new Date).getTimezoneOffset().toString()}})}else if(t)return{currentState:t,sessionId:n,resultCode:p}}}catch(e){let t=e;return console.warn("[APPCONTEXT/CHANGETAG]",t),Promise.reject(t)}return null},Qn=(0,c.useCallback)((async({sessionID:t,date:n,state:i})=>{var r;const o=null!=t?t:Wn,a=null!=i?i:$n;if(!o||!e.needsDateTime||(null===(r=null==a?void 0:a.hints)||void 0===r?void 0:r.length))return;const s=(n?Ye.DateTime.fromISO(n):Ye.DateTime.now()).toUTC().toFormat("yyyy/MM/dd HH:mm:ss ZZ").split(":").slice(0,-1).join(":"),{currentState:l,...c}=await lt(o,s);0===c.resultCode&&l&&Yn((e=>{var t;return{...e,...l,hints:(null===(t=l.hints)||void 0===t?void 0:t.length)?l.hints:null==e?void 0:e.hints}}))}),[$n,e.needsDateTime,Wn]);(0,c.useEffect)((()=>{if(Wn&&e.needsDateTime){Qn({sessionID:Wn,state:$n});let e=null,t=!document.hidden;const n=()=>{e&&clearInterval(e),e=setInterval((()=>{document.hidden||Qn({sessionID:Wn})}),6e4)},i=()=>{e&&(clearInterval(e),e=null)},r=()=>{const e=!document.hidden;e&&!t?(Qn({sessionID:Wn,state:$n}),n()):!e&&t&&i(),t=e};return t&&n(),document.addEventListener("visibilitychange",r),()=>{i(),document.removeEventListener("visibilitychange",r)}}}),[e.needsDateTime,Wn]);const[ei,ti]=(0,c.useState)(),ni=(0,c.useRef)(),ii=()=>{ei&&(clearTimeout(ei),ti(void 0)),(null==ni?void 0:ni.current)&&(clearTimeout(ni.current),ni.current=void 0)};(0,c.useEffect)((()=>()=>{mi(!1),At(!1),ii(),ni.current=void 0}),[]);const[ri,oi]=(0,c.useState)(!1),ai=((0,c.useRef)(null),(0,c.useMemo)((()=>{var t,n;return{provider:F,voice:vD(Ot||(null===(n=null===(t=e.culture)||void 0===t?void 0:t.split("-"))||void 0===n?void 0:n[0])||"EN",F,e.voiceType),tenant:o,region:"westeurope",voiceType:e.voiceType,layout:zt}}),[F,Ot,e.culture,e.voiceType,zt])),si=(0,c.useMemo)((()=>({provider:F,language:Vn(Ot),tenant:o})),[F,Ot]),{speak:li,stop:ci,isPlaying:ui,speakerMuted:di,toggleMute:hi,hasUserActivatedSpeak:pi,setHasUserActivatedSpeak:mi}=bD(ai,{apiUrl:`${L}/api/tts`,continuousSpeech:rn,preview:g},ee,jt,null===(Ae=null!=W?W:null==Ct?void 0:Ct.defaultSpeakerActive)||void 0===Ae||Ae),fi=e=>{const t=VR("muteSpeaker",!jt);return console.log("[MemoriWidget] shouldPlayAudio",t),e&&e.trim()&&!g&&!t&&jt},{isListening:gi,startRecording:vi,stopRecording:yi}=nk(si,(e=>{if(e&&0!==e.trim().length)try{const t=DE(e);console.debug("Processing speech message:",t),t.length>0&&(Cn(""),console.debug("Sending message:",t),Bn(t))}catch(e){console.error("Error in processSpeechAndSendMessage:",e)}}),{apiUrl:`${L}/api/stt`},jt),_i=async e=>{if(!fi(e)){const e=new CustomEvent("MemoriEndSpeak");return document.dispatchEvent(e),Promise.resolve()}"function"==typeof yi&&yi(),qt(!1);const t=_D(e);return li(t)},bi=(0,c.useCallback)((async(e,t,n,i=!1)=>{try{if(!e)return null;const r=await Fn(e,t,n,i),o=r.translatedEmission||r.emission;return pi||mi(!0),o&&!i&&fi(o)&&await _i(o),r}catch(t){return console.error("Error in translateAndSpeak:",t),pi||mi(!0),e}}),[Fn,_i,pi,mi,di]);(0,c.useEffect)((()=>{"TOTEM"!==zt&&(()=>{let e=document.querySelector("#chat-fieldset textarea");e&&gt?e.focus():null==e||e.blur()})()}),[null==$n?void 0:$n.emission]);const xi=()=>{try{ii(),At(!1),ni.current=void 0,ci()}catch(e){}};(0,c.useEffect)((()=>()=>{xi()}),[]),(0,c.useEffect)((()=>(document.addEventListener("MemoriResetUIEffects",xi),()=>{document.removeEventListener("MemoriResetUIEffects",xi)})),[]),(0,c.useEffect)((()=>{ui||!rn||!Ht&&ri||!Wn||Wt?ui&&gi&&yi():vi()}),[ui,Ht,Wt]),(0,c.useEffect)((()=>{yi()}),[Mt]);const[wi,Si]=(0,c.useState)("keypress");(0,c.useEffect)((()=>{window.innerWidth<=768&&CE()?Si("click"):Si("keypress")}),[]);const[Ei,Ai]=(0,c.useState)(),Ti=null==Ct?void 0:Ct.globalBackground,Ii=Ti?`url(${Ti})`:null,Mi=h?{"--memori-chat-bubble-bg":"#fff",...Ct&&!mt?{"--memori-text-color":null!==(Te=Ct.textColor)&&void 0!==Te?Te:"#000"}:{},...(null==Ct?void 0:Ct.buttonBgColor)?{"--memori-button-bg":Ct.buttonBgColor,"--memori-primary":Ct.buttonBgColor}:{},...(null==Ct?void 0:Ct.buttonTextColor)?{"--memori-button-text":Ct.buttonTextColor}:{},...(null==Ct?void 0:Ct.blurBackground)?{"--memori-blur-background":"5px"}:{"--memori-blur-background":"0px"},...(null==Ct?void 0:Ct.innerBgColor)?{"--memori-inner-bg":`rgba(${"dark"===Ct.innerBgColor?"0, 0, 0":"255, 255, 255"}, ${null!==(Ie=Ct.innerBgAlpha)&&void 0!==Ie?Ie:.4})`,"--memori-inner-content-pad":"1.5rem","--memori-nav-bg-image":"none","--memori-nav-bg":`rgba(${"dark"===Ct.innerBgColor?"0, 0, 0":"255, 255, 255"}, ${null!==(Me=null==Ct?void 0:Ct.innerBgAlpha)&&void 0!==Me?Me:.4})`}:{"--memori-inner-content-pad":"0px"}}:{},Ci=`\n ${g?"#preview, ":ne?":root, ":""}memori-client, .memori-widget, .memori-drawer, .memori-modal {\n ${Object.entries(Mi).map((([e,t])=>`${e}: ${t};`)).join("\n")}\n }\n `,Ni=void 0===(null==Ct?void 0:Ct.showAIicon)||(null==Ct?void 0:Ct.showAIicon),Oi=!!(null!=I?I:null==Ct?void 0:Ct.showUpload),Ri=!!(null!=N?N:null==Ct?void 0:Ct.showReasoning),Li=void 0===(null==Ct?void 0:Ct.showWhyThisAnswer)||(null==Ct?void 0:Ct.showWhyThisAnswer),[Pi,Di]=(0,c.useState)(!1);(0,c.useEffect)((()=>{(window.innerWidth>=768&&"FULLPAGE"===zt||"FULLPAGE"!==zt)&&Di(!0)}),[]),(0,c.useEffect)((()=>{if(null==Ct?void 0:Ct.seoTitle){let e=document.createElement("meta");e.setAttribute("property","og:title"),e.setAttribute("content",Ct.seoTitle),document.head.append(e)}if(null==Ct?void 0:Ct.seoDescription){let e=document.createElement("meta");e.setAttribute("property","og:description"),e.setAttribute("content",Ct.seoDescription),document.head.append(e)}if(null==Ct?void 0:Ct.seoUrl){let e=document.createElement("meta");e.setAttribute("property","og:url"),e.setAttribute("content",Ct.seoUrl),document.head.append(e)}let t=U||e.avatarURL;if((null==Ct?void 0:Ct.seoImageShowAvatar)&&t){let e=document.createElement("meta");e.setAttribute("property","og:image"),e.setAttribute("content",t),document.head.append(e)}}),[Ct,e.avatarURL,U]);const ki=(0,c.useCallback)((e=>{if(q)return;const{text:t,waitForPrevious:n,hidden:i,typingText:r,useLoaderTextAsMsg:o,hasBatchQueued:a}=e.detail;t&&(n&&!di&&(vn||kt)?setTimeout((()=>{ki(e)}),1e3):(ci(),Bn(t,void 0,void 0,void 0,void 0,i,r,o,a)))}),[Wn,ui,kt,Ot,q,di]);(0,c.useEffect)((()=>(q?document.removeEventListener("MemoriTextEntered",ki):document.addEventListener("MemoriTextEntered",ki),()=>{document.removeEventListener("MemoriTextEntered",ki)})),[Wn,Ot,q]);const Bi=(0,c.useCallback)((async(t,n=!1,i,r)=>{var o,a,s,l,c,u,d,h,p,m,f,g,v,y,_,b,x,w,S;const E=i?void 0:(null==t?void 0:t.sessionID)||Wn,A=i?void 0:(null==t?void 0:t.dialogState)||$n;At(!0),qt(!1);let T=[],I=VR("birthDate",void 0),M=zn||I||(null==bt?void 0:bt.birthDate);!M&&ee&&(z||r)&&(M="1970-01-01T10:24:03.845Z");const C=VR("position",void 0);if(ee&&!C&&e.needsPosition)Yt(!0);else if(E||!Un||M){if(!E&&"PUBLIC"!==e.privacyType&&!e.secretToken&&!_n&&!xn||!E&&Tt)return En("password"),void At(!1);if(!E||n){At(!1),It(!1);const t=await Zn({memoriID:e.engineMemoriID,password:R||_n||e.secretToken,tag:null==j?void 0:j.tag,pin:null==j?void 0:j.pin,continueFromChatLogID:null==i?void 0:i.chatLogID,initialContextVars:{LANG:Ot,PATHNAME:null===(o=window.location.pathname)||void 0===o?void 0:o.toUpperCase(),ROUTE:(null===(l=null===(s=null===(a=window.location.pathname)||void 0===a?void 0:a.split("/"))||void 0===s?void 0:s.pop())||void 0===l?void 0:l.toUpperCase())||"",...(i?i.lines[i.lines.length-1].contextVars:k)||{}},initialQuestion:i?void 0:B,birthDate:M,additionalInfo:{...Y||{},loginToken:null!==(u=null!==(c=null!=ok?ok:yt)&&void 0!==c?c:null==Y?void 0:Y.loginToken)&&void 0!==u?u:H,language:(null!==(p=null!=Ot?Ot:null===(h=null===(d=e.culture)||void 0===d?void 0:d.split("-"))||void 0===h?void 0:h[0])&&void 0!==p?p:"IT").toLowerCase(),timeZoneOffset:(new Date).getTimezoneOffset().toString()}});if(null==t?void 0:t.dialogState)if(i){const e=i.lines.map(((e,t)=>{var n,i;return{text:e.text,media:null===(i=null===(n=e.media)||void 0===n?void 0:n.filter((e=>BI.includes(e.mimeType))))||void 0===i?void 0:i.map((e=>({mediumID:`${t}-${e.mimeType}`,...e}))),fromUser:e.inbound,timestamp:e.timestamp,emitter:e.emitter,initial:0===t}}));if(T=null!=e?e:[],Mt.toUpperCase()!==Ot.toUpperCase()&&Nt)try{T=await Promise.all(e.map((async e=>"originalText"in e&&e.originalText?e:{...e,originalText:e.text,text:(await eM(e.text,Ot,Mt)).text})))}catch(e){console.error("[onClickStart] Error translating messages:",e)}Ln(T),Fn(t.dialogState,Ot,void 0,!0).finally((()=>{mi(!0)}))}else Ln([]),await bi(t.dialogState,Ot),mi(!0);else 0===(null==t?void 0:t.resultCode)?await Bi(t||void 0):Dt(!1);return}if(z||r){const t=null!=r?r:z,{currentState:n,...i}=await dt(t);if(0!==i.resultCode||!n){const{chatLogs:e}=await pt(t,t);return It(!0),qn(void 0),At(!1),void await Bi(void 0,!0,null==e?void 0:e[0])}if(Ln([]),An&&e.needsPosition&&In(An,t),e.needsDateTime&&Qn({sessionID:t,state:n}),j&&n.currentTag!==j.tag)try{await Kn(e.engineMemoriID,t,"-");const n=await Kn(e.engineMemoriID,t,j.tag,j.pin);if(!n||0!==n.resultCode)throw new Error("No session");await bi(n.currentState,Ot)}catch(t){console.error("[onClickStart] Error changing tag:",t),Xn(!0,null==e?void 0:e.secretToken,void 0,j.tag,j.pin,{LANG:Ot,PATHNAME:null===(m=window.location.pathname)||void 0===m?void 0:m.toUpperCase(),ROUTE:(null===(v=null===(g=null===(f=window.location.pathname)||void 0===f?void 0:f.split("/"))||void 0===g?void 0:g.pop())||void 0===v?void 0:v.toUpperCase())||"",...k||{}},B,M).then((()=>{mi(!0)}))}else if(!j&&(null==n?void 0:n.currentTag)&&(null==n?void 0:n.currentTag)!==FI&&"-"!==(null==n?void 0:n.currentTag))try{await Kn(e.engineMemoriID,t,"-");const n=await Kn(e.engineMemoriID,t,FI);if(!n||0!==n.resultCode)throw new Error("No session");await bi(n.currentState,Ot)}catch(t){Xn(!0,null==e?void 0:e.secretToken,void 0,void 0,void 0,{LANG:Ot,PATHNAME:null===(y=window.location.pathname)||void 0===y?void 0:y.toUpperCase(),ROUTE:(null===(x=null===(b=null===(_=window.location.pathname)||void 0===_?void 0:_.split("/"))||void 0===b?void 0:b.pop())||void 0===x?void 0:x.toUpperCase())||"",...k||{}},B,M).then((()=>{mi(!0)}))}else{try{const{chatLogs:e}=await pt(t,t),n=null===(w=null==e?void 0:e[0])||void 0===w?void 0:w.lines.map(((e,t)=>{var n,i;return{text:e.text,media:null===(i=null===(n=e.media)||void 0===n?void 0:n.filter((e=>BI.includes(e.mimeType))))||void 0===i?void 0:i.map((e=>({mediumID:`${t}-${e.mimeType}`,...e}))),fromUser:e.inbound,timestamp:e.timestamp,emitter:e.emitter,initial:0===t}}));if(T=null!=n?n:[],Mt.toUpperCase()!==Ot.toUpperCase()&&Nt)try{T=await Promise.all(n.map((async e=>({...e,originalText:e.text,text:(await eM(e.text,Ot,Mt)).text}))))}catch(e){console.error("[onClickStart] Error translating messages:",e)}Ln(T)}catch(e){console.error("[onClickStart] Error retrieving chat logs:",e)}if((null==T?void 0:T.length)&&T.length>1||!B)mi(!0),await bi(n,Ot,void 0,!!(null==T?void 0:T.length));else{console.log("[onClickStart] Starting with initial question"),T=[],Ln([]),Bt(!0);const e=await at({sessionId:t,text:B});if(500===e.resultCode&&e.resultMessage)return Ln((t=>[...t,{text:"Error: "+e.resultMessage,emitter:"system",fromUser:!1,initial:!1,contextVars:{},date:(new Date).toISOString()}])),void Bt(!1);await bi(null!==(S=e.currentState)&&void 0!==S?S:n,Ot,void 0,!1)}}An&&e.needsPosition&&In(An,t),e.needsDateTime&&Qn({sessionID:t,state:n})}else Ln([]),await bi(A,Ot)}else Hn(!0),At(!1)}),[_n,e,xn,zn,Wn,Ot,An]);(0,c.useEffect)((()=>{!Et&&ee&&"HIDDEN_CHAT"!==zt&&Bi()}),[Et,ee,zt]),(0,c.useEffect)((()=>{const t=document.querySelector(`memori-client[memoriname="${e.name}"]`)||document.querySelector(`memori-client[memoriid="${e.memoriID}"]`)||document.querySelector("memori-client");if(!t)return;const n=new MutationObserver(((e,t)=>{var n,i,r;for(const t of e)"attributes"===t.type&&"authtoken"===(null===(n=t.attributeName)||void 0===n?void 0:n.toLowerCase())&&("MEMORI-CLIENT"===t.target.nodeName?(_t(t.target.getAttribute("authtoken")||void 0),ok=t.target.getAttribute("authtoken")||void 0):(_t((null===(r=null===(i=t.target)||void 0===i?void 0:i.parentElement)||void 0===r?void 0:r.getAttribute("authtoken"))||void 0),ok=t.target.getAttribute("authtoken")||void 0))}));return n.observe(t,{attributes:!0,childList:!1,subtree:!1}),()=>{n.disconnect()}}),[]);const[Fi,Ui]=(0,c.useState)(),zi=(0,c.useCallback)((async()=>{if(Wn&&(null==e?void 0:e.enableBoardOfExperts))try{const{experts:e,count:t,...n}=await ht(Wn);0===n.resultCode?Ui(e):console.warn("Error fetching experts",n)}catch(e){console.warn(e)}}),[Wn,null==e?void 0:e.enableBoardOfExperts]);(0,c.useEffect)((()=>{zi()}),[Wn,zi]);const Gi=e.enableDeepThought&&!!yt&&!!(null==bt?void 0:bt.userID)&&(null==bt?void 0:bt.pAndCUAccepted),ji=null==G?void 0:G.billingDelegation,[Hi,Vi]=(0,c.useState)(!0),Wi=(0,c.useCallback)((async()=>{if(null==G?void 0:G.billingDelegation)try{const e=await yD({operation:Gi?"dt_session_creation":"session_creation",baseUrl:L,userID:i,userName:r,tenant:o});e.enough?Vi(!0):(Vi(!1),console.warn("Not enough credits. Required:",e.required))}catch(e){let t=e;console.debug(t)}}),[null==G?void 0:G.billingDelegation,Gi]);(0,c.useEffect)((()=>{(null==G?void 0:G.billingDelegation)&&Wi()}),[null==G?void 0:G.billingDelegation,Gi]),(0,c.useEffect)((()=>{if(K)return;const e=()=>{Wn&&ot(Wn)};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e),e()}}),[Wn]);const qi=void 0===M?"TOTEM"!==zt&&"WEBSITE_ASSISTANT"!==zt:!M,$i={memori:{...e,ownerUserID:null!==(Ne=null!==(Ce=e.ownerUserID)&&void 0!==Ce?Ce:i)&&void 0!==Ne?Ne:void 0},apiClient:it,tenant:G,history:Rn,showShare:null===(Oe=null!=f?f:null==Ct?void 0:Ct.showShare)||void 0===Oe||Oe,position:An,layout:zt,additionalSettings:J,setShowPositionDrawer:Yt,setShowSettingsDrawer:Zt,setShowKnownFactsDrawer:en,setShowExpertsDrawer:nn,enableAudio:null===(Re=null!=V?V:null==Ct?void 0:Ct.enableAudio)||void 0===Re||Re,speakerMuted:null!=di&&di,setSpeakerMuted:e=>{hi(e)},setShowChatHistoryDrawer:Kt,showSettings:null===(Le=null!=S?S:null==Ct?void 0:Ct.showSettings)||void 0===Le||Le,showChatHistory:null===(Pe=null!=C?C:null==Ct?void 0:Ct.showChatHistory)||void 0===Pe||Pe,hasUserActivatedSpeak:pi,showReload:"TOTEM"===zt,showClear:null!==(De=null!=A?A:null==Ct?void 0:Ct.showClear)&&void 0!==De&&De,clearHistory:()=>Ln((e=>e.slice(-1))),showLogin:null!==(ke=null!=T?T:null==Ct?void 0:Ct.showLogin)&&void 0!==ke?ke:e.requireLoginToken,setShowLoginDrawer:St,loginToken:yt,user:bt,sessionID:Wn,baseUrl:L,onLogout:()=>{yt&&it.backend.pwlUserLogout(yt).then((()=>{St(!1),xt(void 0),_t(void 0),ok=void 0,qR("loginToken")}))}},Yi={memori:e,integration:h,integrationConfig:Ct,tenant:G,instruct:mt,avatar3dVisible:Pi,setAvatar3dVisible:Di,hasUserActivatedSpeak:pi,isPlayingAudio:ui&&!di&&(null===(Be=null!=V?V:null==Ct?void 0:Ct.enableAudio)||void 0===Be||Be),loading:!!kt,baseUrl:L,apiUrl:it.constants.BACKEND_URL,enablePositionControls:un,setEnablePositionControls:dn,avatarType:hn},Ji={memori:e,tenant:G,language:Mt,userLang:Ot,setUserLang:Rt,baseUrl:L,apiUrl:it.constants.BACKEND_URL,position:An,openPositionDrawer:()=>Yt(!0),integrationConfig:Ct,instruct:mt,sessionId:Wn,clickedStart:Et,isMultilanguageEnabled:Nt,onClickStart:Bi,isUserLoggedIn:!!yt&&!!(null==bt?void 0:bt.userID),hasInitialSession:!!z,notEnoughCredits:ji&&!Hi,showLogin:null!=T?T:e.requireLoginToken,setShowLoginDrawer:St,user:bt},Zi={memori:e,sessionID:Wn||"",tenant:G,translateTo:Nt&&Ot.toUpperCase()!==(null===(je=null!==(Ge=null!==(ze=null===(Ue=null===(Fe=e.culture)||void 0===Fe?void 0:Fe.split("-"))||void 0===Ue?void 0:Ue[0])&&void 0!==ze?ze:et.language)&&void 0!==Ge?Ge:"IT")||void 0===je?void 0:je.toUpperCase())?Ot:void 0,baseUrl:L,apiUrl:it.constants.BACKEND_URL,layout:p,memoriTyping:kt,typingText:Ft,showTypingText:null!==(He=null!=E?E:null==Ct?void 0:Ct.showTypingText)&&void 0!==He&&He,history:qi?Rn:Rn.slice(-2),authToken:null!==(We=null!==(Ve=null!=yt?yt:ok)&&void 0!==Ve?Ve:null==Y?void 0:Y.loginToken)&&void 0!==We?We:H,dialogState:$n,pushMessage:Pn,simulateUserPrompt:(e,t)=>{ci(),Bn(e,void 0,void 0,!1,t)},showDates:x,showContextPerLine:w,showAIicon:Ni,showUpload:Oi,showReasoning:Ri,showWhyThisAnswer:Li,showCopyButton:null===(Je=null!=y?y:null==Ct?void 0:Ct.showCopyButton)||void 0===Je||Je,showTranslationOriginal:null!==(Ze=null!=_?_:null==Ct?void 0:Ct.showTranslationOriginal)&&void 0!==Ze&&Ze,client:it,instruct:mt,preview:g,sendOnEnter:wi,setSendOnEnter:Si,microphoneMode:rn?"CONTINUOUS":"HOLD_TO_TALK",attachmentsMenuOpen:Ei,setAttachmentsMenuOpen:Ai,showInputs:b,showMicrophone:!!F&&(null===(Xe=null!=V?V:null==Ct?void 0:Ct.enableAudio)||void 0===Xe||Xe),showFunctionCache:ie,userMessage:Mn,onChangeUserMessage:e=>{e&&"\n"!==e&&""!==e.trim()?(Cn(e),ii()):Cn("")},sendMessage:(e,t)=>{ci(),yi(),qt(!0),Bn(e,t),Cn("")},stopListening:yi,startListening:()=>{qt(!1),vi()},stopAudio:ci,listening:gi,setEnableFocusChatInput:vt,isPlayingAudio:ui,customMediaRenderer:Z,user:bt,userAvatar:X,experts:Fi,useMathFormatting:Lt,maxTotalMessagePayload:re,maxTextareaCharacters:oe},Xi=h&&Ii?(0,a.jsx)("div",{className:"memori--global-background",children:(0,a.jsx)("div",{className:"memori--global-background-image",style:{backgroundImage:Ii}})}):(0,a.jsx)("div",{className:"memori--global-background no-background-image"}),Ki=h?(0,a.jsx)("style",{dangerouslySetInnerHTML:{__html:Ci}}):null,Qi=(0,a.jsx)(PP,{tenant:G,userLang:Ot,integrationID:null==h?void 0:h.integrationID,memoriHash:`${e.ownerTenantName}-${e.ownerUserName}-${e.name}`}),er=m||("TOTEM"===zt?lD:"CHAT"===zt?cD:"FULLPAGE"===zt?sD:"WEBSITE_ASSISTANT"===zt?uD:"HIDDEN_CHAT"===zt?dD:"ZOOMED_FULL_BODY"===zt?hD:sD);return(0,a.jsxs)("div",{className:t($e)("memori","memori-widget",`memori-layout-${zt.toLowerCase()}`,`memori-controls-${ln.toLowerCase()}`,`memori--avatar-${(null==Ct?void 0:Ct.avatar)||"default"}`,{"memori--auto-start":ee,"memori--preview":g,"memori--embed":v,"memori--with-integration":h,"memori--with-speechkey":!!F,"memori--active":pi,"memori--hide-emissions":mn,"memori--has-active-session":!!Wn}),"data-memori-name":null==e?void 0:e.name,"data-memori-id":null==e?void 0:e.engineMemoriID,"data-memori-secondary-id":null==e?void 0:e.memoriID,"data-memori-session-id":Wn,"data-memori-integration":null==h?void 0:h.integrationID,"data-memori-engine-state":JSON.stringify({...$n,sessionID:Wn}),style:{height:O},children:[(0,a.jsx)(er,{Header:LP,headerProps:$i,Avatar:VL,avatarProps:Yi,Chat:MC,chatProps:Zi,StartPanel:BC,startPanelProps:Ji,integrationStyle:Ki,integrationBackground:Xi,poweredBy:Qi,autoStart:ee,sessionId:Wn,hasUserActivatedSpeak:pi,loading:Pt}),(0,a.jsx)(se,{pushMessage:e=>{Ln((t=>{if(!t.length)return t;const n=t[t.length-1];if(!n||n.fromUser)return t;const i={...n,text:n.text+e.text};return[...t.slice(0,-1),i]}))}}),(0,a.jsx)("audio",{id:"memori-audio",style:{display:"none"},src:"https://aisuru.com/intro.mp3"}),tt&&(0,a.jsx)(eI,{withModal:!0,pwdOrTokens:Sn,openModal:!!Sn,setPwdOrTokens:En,showTokens:"SECRET"===e.privacyType,onFinish:e=>{var t,n,i,r;return e.password&&bn(e.password),e.password&&(rk=e.password),e.tokens&&wn(e.tokens),Xn(!Wn,e.password,e.tokens,null==j?void 0:j.tag,null==j?void 0:j.pin,{LANG:Ot,PATHNAME:null===(t=window.location.pathname)||void 0===t?void 0:t.toUpperCase(),ROUTE:(null===(r=null===(i=null===(n=window.location.pathname)||void 0===n?void 0:n.split("/"))||void 0===i?void 0:i.pop())||void 0===r?void 0:r.toUpperCase())||"",...k||{}},B,zn).then((e=>{if(!(null==e?void 0:e.sessionID))throw new Error("AUTH_FAILED");En(null),(null==e?void 0:e.dialogState)?mi(!0):Bi(e)})).catch((e=>{throw e instanceof Error&&"AUTH_FAILED"===e.message||It(!0),e}))},minimumNumberOfRecoveryTokens:null!==(Ke=null==e?void 0:e.minimumNumberOfRecoveryTokens)&&void 0!==Ke?Ke:1}),tt&&(0,a.jsx)(BP,{visible:jn,minAge:Un,onClose:t=>{var n,i,r,o;t?(Gn(t),WR("birthDate",t),Xn(!Wn,rk||_n||(null==e?void 0:e.secretToken),xn,null==j?void 0:j.tag,null==j?void 0:j.pin,{LANG:Ot,PATHNAME:null===(n=window.location.pathname)||void 0===n?void 0:n.toUpperCase(),ROUTE:(null===(o=null===(r=null===(i=window.location.pathname)||void 0===i?void 0:i.split("/"))||void 0===r?void 0:r.pop())||void 0===o?void 0:o.toUpperCase())||"",...k||{}},B,t).then((e=>{Hn(!1),En(null),Bi(e||void 0)})).catch((()=>{Hn(!1),It(!0)}))):(Hn(!1),At(!1))}}),Jt&&(0,a.jsx)(eD,{layout:zt,open:!!Jt,onClose:()=>Zt(!1),microphoneMode:rn?"CONTINUOUS":"HOLD_TO_TALK",continuousSpeechTimeout:an,setMicrophoneMode:e=>on("CONTINUOUS"===e),setContinuousSpeechTimeout:sn,controlsPosition:ln,setControlsPosition:cn,hideEmissions:mn,setHideEmissions:fn,avatarType:hn,setAvatarType:pn,enablePositionControls:un,setEnablePositionControls:dn,isAvatar3d:!!(null==Ct?void 0:Ct.avatarURL),additionalSettings:J,speakerMuted:di}),Xt&&(0,a.jsx)(ek,{open:!!Xt,onClose:()=>Kt(!1),resumeSession:e=>{kn(e.chatLogID),Bi(void 0,!1,e),Kt(!1)},apiClient:it,sessionId:Wn||"",memori:e,baseUrl:L,history:Rn,apiUrl:it.constants.BACKEND_URL,loginToken:yt,language:Mt,userLang:Ot,isMultilanguageEnabled:Nt}),$t&&(0,a.jsx)(OA,{memori:e,open:!!$t,venue:An,setVenue:t=>{Tn(t),In(t),t&&e.needsPosition?WR("position",JSON.stringify(t)):t||qR("position")},onClose:e=>{e&&In(e),Yt(!1),ee&&Bi()}}),Qt&&Wn&&(0,a.jsx)(rD,{apiClient:it,memori:e,sessionID:Wn,visible:Qt,closeDrawer:()=>en(!1)}),tn&&!!Fi&&(0,a.jsx)(oD,{apiUrl:it.constants.BACKEND_URL,baseUrl:L,tenant:G,experts:Fi,open:tn,onClose:()=>nn(!1)}),wt&&(null==G?void 0:G.name)&&(0,a.jsx)(aD,{tenant:G,apiClient:it,open:!!wt,user:bt,loginToken:yt,onClose:()=>St(!1),onLogin:(t,n)=>{var i,r,o,a;Xn(!1,rk||_n||(null==e?void 0:e.secretToken),[],null==j?void 0:j.tag,null==j?void 0:j.pin,{LANG:Ot,PATHNAME:null===(i=window.location.pathname)||void 0===i?void 0:i.toUpperCase(),ROUTE:(null===(a=null===(o=null===(r=window.location.pathname)||void 0===r?void 0:r.split("/"))||void 0===o?void 0:o.pop())||void 0===a?void 0:a.toUpperCase())||"",...k||{}},void 0,zn,{loginToken:n},void 0,Wn).then((e=>{var i,r;if(St(!1),xt(t),_t(n),ok=n,WR("loginToken",n),(null==e?void 0:e.sessionID)&&e.sessionID!==Wn&&(null==e?void 0:e.dialogState)){const n=(null==t?void 0:t.userName)||Qe("login.user");Pn({text:"",emitter:e.dialogState.emitter,media:null!==(r=null!==(i=e.dialogState.emittedMedia)&&void 0!==i?i:e.dialogState.media)&&void 0!==r?r:[],fromUser:!1,initial:Qe("login.successfullyLoggedIn",{username:n}),contextVars:e.dialogState.contextVars,date:e.dialogState.currentDate,placeName:e.dialogState.currentPlaceName,placeLatitude:e.dialogState.currentLatitude,placeLongitude:e.dialogState.currentLongitude,placeUncertaintyKm:e.dialogState.currentUncertaintyKm,tag:e.dialogState.currentTag,memoryTags:e.dialogState.memoryTags}),Jn(e.dialogState)}}))},setUser:xt,onLogout:()=>{yt&&it.backend.pwlUserLogout(yt).then((()=>{St(!1),xt(void 0),_t(void 0),ok=void 0,qR("loginToken")}))}})]})};function sk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lk(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,QN(i.key),i)}}function ck(e,t,n){return t&&lk(e.prototype,t),n&&lk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function uk(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dk(e,t){return dk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dk(e,t)}function hk(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dk(e,t)}function pk(e,t){if(t&&("object"===XN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return uk(e)}function mk(e){return mk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mk(e)}function fk(e){if(Array.isArray(e))return e}function gk(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function vk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function yk(e,t){if(e){if("string"==typeof e)return vk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vk(e,t):void 0}}function _k(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function bk(e){return fk(e)||gk(e)||yk(e)||_k()}function xk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function wk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xk(Object(n),!0).forEach((function(t){eO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Sk={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},Ek=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};sk(this,e),this.init(t,n)}return ck(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Sk,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,i){return i&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,wk(wk({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}()),Ak=function(){function e(){sk(this,e),this.observers={}}return ck(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(this.observers[e]){var r=[].concat(this.observers[e]);r.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var o=[].concat(this.observers["*"]);o.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function Tk(){var e,t,n=new Promise((function(n,i){e=n,t=i}));return n.resolve=e,n.reject=t,n}function Ik(e){return null==e?"":""+e}function Mk(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function Ck(e,t,n){function i(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function r(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(r())return{};var a=i(o.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return r()?{}:{obj:e,k:i(o.shift())}}function Nk(e,t,n){var i=Ck(e,t,Object);i.obj[i.k]=n}function Ok(e,t){var n=Ck(e,t),i=n.obj,r=n.k;if(i)return i[r]}function Rk(e,t,n){var i=Ok(e,n);return void 0!==i?i:Ok(t,n)}function Lk(e,t,n){for(var i in t)"__proto__"!==i&&"constructor"!==i&&(i in e?"string"==typeof e[i]||e[i]instanceof String||"string"==typeof t[i]||t[i]instanceof String?n&&(e[i]=t[i]):Lk(e[i],t[i],n):e[i]=t[i]);return e}function Pk(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Dk={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function kk(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return Dk[e]})):e}var Bk="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Fk=[" ",",","?","!",";"];function Uk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function zk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uk(Object(n),!0).forEach((function(t){eO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=mk(e);if(t){var r=mk(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return pk(this,n)}}function jk(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var i=t.split(n),r=e,o=0;o<i.length;++o){if(!r)return;if("string"==typeof r[i[o]]&&o+1<i.length)return;if(void 0===r[i[o]]){for(var a=2,s=i.slice(o,o+a).join(n),l=r[s];void 0===l&&i.length>o+a;)a++,l=r[s=i.slice(o,o+a).join(n)];if(void 0===l)return;if(null===l)return null;if(t.endsWith(s)){if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s]}var c=i.slice(o+a).join(n);return c?jk(l,c,n):void 0}r=r[i[o]]}return r}}var Hk=function(e){hk(n,e);var t=Gk(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return sk(this,n),i=t.call(this),Bk&&Ak.call(uk(i)),i.data=e||{},i.options=r,void 0===i.options.keySeparator&&(i.options.keySeparator="."),void 0===i.options.ignoreJSONStructure&&(i.options.ignoreJSONStructure=!0),i}return ck(n,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,o=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=Ok(this.data,a);return s||!o||"string"!=typeof n?s:jk(this.data&&this.data[e]&&this.data[e][t],n,r)}},{key:"addResource",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=t,t=(a=e.split("."))[1]),this.addNamespaces(t),Nk(this.data,a,i),r.silent||this.emit("added",e,t,n,i)}},{key:"addResources",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in n)"string"!=typeof n[r]&&"[object Array]"!==Object.prototype.toString.apply(n[r])||this.addResource(e,t,r,n[r],{silent:!0});i.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(i=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=Ok(this.data,a)||{};i?Lk(s,n,r):s=zk(zk({},s),n),Nk(this.data,a,s),o.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?zk(zk({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),n}(Ak),Vk={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,i,r){var o=this;return e.forEach((function(e){o.processors[e]&&(t=o.processors[e].process(t,n,i,r))})),t}};function Wk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function qk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wk(Object(n),!0).forEach((function(t){eO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=mk(e);if(t){var r=mk(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return pk(this,n)}}var Yk={},Jk=function(e){hk(n,e);var t=$k(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return sk(this,n),i=t.call(this),Bk&&Ak.call(uk(i)),Mk(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,uk(i)),i.options=r,void 0===i.options.keySeparator&&(i.options.keySeparator="."),i.logger=Ek.create("translator"),i}return ck(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS||[],o=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var i=Fk.filter((function(e){return t.indexOf(e)<0&&n.indexOf(e)<0}));if(0===i.length)return!0;var r=new RegExp("(".concat(i.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),o=!r.test(e);if(!o){var a=e.indexOf(n);a>0&&!r.test(e.substring(0,a))&&(o=!0)}return o}(e,n,i));if(o&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:r};var l=e.split(n);(n!==i||n===i&&this.options.ns.indexOf(l[0])>-1)&&(r=l.shift()),e=l.join(i)}return"string"==typeof r&&(r=[r]),{key:e,namespaces:r}}},{key:"translate",value:function(e,t,i){var r=this;if("object"!==XN(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),l=s.key,c=s.namespaces,u=c[c.length-1],d=t.lng||this.language,h=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(h){var p=t.nsSeparator||this.options.nsSeparator;return o?(m.res="".concat(u).concat(p).concat(l),m):"".concat(u).concat(p).concat(l)}return o?(m.res=l,m):l}var m=this.resolve(e,t),f=m&&m.res,g=m&&m.usedKey||l,v=m&&m.exactUsedKey||l,y=Object.prototype.toString.apply(f),_=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,w="string"!=typeof f&&"boolean"!=typeof f&&"number"!=typeof f;if(x&&f&&w&&_.indexOf(y)<0&&("string"!=typeof b||"[object Array]"!==y)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,f,qk(qk({},t),{},{ns:c})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");return o?(m.res=S,m):S}if(a){var E="[object Array]"===y,A=E?[]:{},T=E?v:g;for(var I in f)if(Object.prototype.hasOwnProperty.call(f,I)){var M="".concat(T).concat(a).concat(I);A[I]=this.translate(M,qk(qk({},t),{joinArrays:!1,ns:c})),A[I]===M&&(A[I]=f[I])}f=A}}else if(x&&"string"==typeof b&&"[object Array]"===y)(f=f.join(b))&&(f=this.extendTranslation(f,e,t,i));else{var C=!1,N=!1,O=void 0!==t.count&&"string"!=typeof t.count,R=n.hasDefaultValue(t),L=O?this.pluralResolver.getSuffix(d,t.count,t):"",P=t["defaultValue".concat(L)]||t.defaultValue;!this.isValidLookup(f)&&R&&(C=!0,f=P),this.isValidLookup(f)||(N=!0,f=l);var D=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,k=D&&N?void 0:f,B=R&&P!==f&&this.options.updateMissing;if(N||C||B){if(this.logger.log(B?"updateKey":"missingKey",d,u,l,B?P:f),a){var F=this.resolve(l,qk(qk({},t),{},{keySeparator:!1}));F&&F.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var U=[],z=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&z&&z[0])for(var G=0;G<z.length;G++)U.push(z[G]);else"all"===this.options.saveMissingTo?U=this.languageUtils.toResolveHierarchy(t.lng||this.language):U.push(t.lng||this.language);var j=function(e,n,i){var o=R&&i!==f?i:k;r.options.missingKeyHandler?r.options.missingKeyHandler(e,u,n,o,B,t):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(e,u,n,o,B,t),r.emit("missingKey",e,u,n,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?U.forEach((function(e){r.pluralResolver.getSuffixes(e,t).forEach((function(n){j([e],l+n,t["defaultValue".concat(n)]||P)}))})):j(U,l,P))}f=this.extendTranslation(f,e,t,m,i),N&&f===l&&this.options.appendNamespaceToMissingKey&&(f="".concat(u,":").concat(l)),(N||C)&&this.options.parseMissingKeyHandler&&(f="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(u,":").concat(l):l,C?f:void 0):this.options.parseMissingKeyHandler(f))}return o?(m.res=f,m):f}},{key:"extendTranslation",value:function(e,t,n,i,r){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,qk(qk({},this.options.interpolation.defaultVariables),n),i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(qk(qk({},n),{interpolation:qk(qk({},this.options.interpolation),n.interpolation)}));var a,s="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var l=e.match(this.interpolator.nestingRegexp);a=l&&l.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=qk(qk({},this.options.interpolation.defaultVariables),c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),s){var u=e.match(this.interpolator.nestingRegexp);a<(u&&u.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];return r&&r[0]===i[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(i[0]," in key: ").concat(t[0])),null):o.translate.apply(o,i.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,h="string"==typeof d?[d]:d;return null!=e&&h&&h.length&&!1!==n.applyPostProcessor&&(e=Vk.handle(h,e,t,this.options&&this.options.postProcessPassResolved?qk({i18nResolved:i},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,i,r,o,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),c=l.key;n=c;var u=l.namespaces;a.options.fallbackNS&&(u=u.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,h=d&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),p=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,m=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);u.forEach((function(e){a.isValidLookup(t)||(o=e,!Yk["".concat(m[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(Yk["".concat(m[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(m.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),m.forEach((function(n){if(!a.isValidLookup(t)){r=n;var o,l=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(l,c,n,e,s);else{var u;d&&(u=a.pluralResolver.getSuffix(n,s.count,s));var m="".concat(a.options.pluralSeparator,"zero");if(d&&(l.push(c+u),h&&l.push(c+m)),p){var f="".concat(c).concat(a.options.contextSeparator).concat(s.context);l.push(f),d&&(l.push(f+u),h&&l.push(f+m))}}for(;o=l.pop();)a.isValidLookup(t)||(i=o,t=a.getResource(n,e,o,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:i,usedLng:r,usedNS:o}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,i):this.resourceStore.getResource(e,t,n,i)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),n}(Ak);function Zk(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Xk=function(){function e(t){sk(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ek.create("languageUtils")}return ck(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Zk(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Zk(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Zk(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var i=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(i)||(t=i)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var i=n.getLanguagePartFromCode(e);if(n.isSupportedCode(i))return t=i;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(i))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,i=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],o=function(e){e&&(n.isSupportedCode(e)?r.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),i.forEach((function(e){r.indexOf(e)<0&&o(n.formatLanguageCode(e))})),r}}]),e}(),Kk=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Qk={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},eB=["v1","v2","v3"],tB={zero:0,one:1,two:2,few:3,many:4,other:5};function nB(){var e={};return Kk.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:Qk[t.fc]}}))})),e}var iB=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};sk(this,e),this.languageUtils=t,this.options=n,this.logger=Ek.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=nB()}return ck(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getRule(e,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((function(e,t){return tB[e]-tB[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):i.numbers.map((function(i){return t.getSuffix(e,i,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.getRule(e,n);return i?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(i.select(t)):this.getSuffixRetroCompatible(i,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,i=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[i];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));var o=function(){return n.options.prepend&&r.toString()?n.options.prepend+r.toString():r.toString()};return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?"_plural_".concat(r.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}},{key:"shouldUseIntlApi",value:function(){return!eB.includes(this.options.compatibilityJSON)}}]),e}();function rB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function oB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rB(Object(n),!0).forEach((function(t){eO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var aB=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};sk(this,e),this.logger=Ek.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return ck(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:kk,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Pk(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Pk(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?Pk(t.nestingPrefix):t.nestingPrefixEscaped||Pk("$t("),this.nestingSuffix=t.nestingSuffix?Pk(t.nestingSuffix):t.nestingSuffixEscaped||Pk(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,i){var r,o,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(e.indexOf(s.formatSeparator)<0){var r=Rk(t,l,e);return s.alwaysFormat?s.format(r,void 0,n,oB(oB(oB({},i),t),{},{interpolationkey:e})):r}var o=e.split(s.formatSeparator),a=o.shift().trim(),c=o.join(s.formatSeparator).trim();return s.format(Rk(t,l,a),c,n,oB(oB(oB({},i),t),{},{interpolationkey:a}))};this.resetRegExp();var d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,h=i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach((function(t){for(a=0;r=t.regex.exec(e);){var n=r[1].trim();if(void 0===(o=u(n)))if("function"==typeof d){var l=d(e,r,i);o="string"==typeof l?l:""}else if(i&&i.hasOwnProperty(n))o="";else{if(h){o=r[0];continue}s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),o=""}else"string"==typeof o||s.useRawValueToEscape||(o=Ik(o));var c=t.safeValue(o);if(e=e.replace(r[0],c),h?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,i,r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=oB({},o);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var i=e.split(new RegExp("".concat(n,"[ ]*{"))),r="{".concat(i[1]);e=i[0];var o=(r=this.interpolate(r,a)).match(/'/g),s=r.match(/"/g);(o&&o.length%2==0&&!s||s.length%2!=0)&&(r=r.replace(/'/g,'"'));try{a=JSON.parse(r),t&&(a=oB(oB({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(r)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var u=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=u.shift(),l=u,c=!0}if((i=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof i)return i;"string"!=typeof i&&(i=Ik(i)),i||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),i=""),c&&(i=l.reduce((function(e,t){return r.format(e,t,o.lng,oB(oB({},o),{},{interpolationkey:n[1].trim()}))}),i.trim())),e=e.replace(n[0],i),this.regexp.lastIndex=0}return e}}]),e}();function sB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function lB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sB(Object(n),!0).forEach((function(t){eO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cB(e){var t={};return function(n,i,r){var o=i+JSON.stringify(r),a=t[o];return a||(a=e(i,r),t[o]=a),a(n)}}var uB=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};sk(this,e),this.logger=Ek.create("formatter"),this.options=t,this.formats={number:cB((function(e,t){var n=new Intl.NumberFormat(e,t);return function(e){return n.format(e)}})),currency:cB((function(e,t){var n=new Intl.NumberFormat(e,lB(lB({},t),{},{style:"currency"}));return function(e){return n.format(e)}})),datetime:cB((function(e,t){var n=new Intl.DateTimeFormat(e,lB({},t));return function(e){return n.format(e)}})),relativetime:cB((function(e,t){var n=new Intl.RelativeTimeFormat(e,lB({},t));return function(e){return n.format(e,t.range||"day")}})),list:cB((function(e,t){var n=new Intl.ListFormat(e,lB({},t));return function(e){return n.format(e)}}))},this.init(t)}return ck(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=cB(t)}},{key:"format",value:function(e,t,n,i){var r=this;return t.split(this.formatSeparator).reduce((function(e,t){var o=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var i=e.split("(");t=i[0].toLowerCase().trim();var r=i[1].substring(0,i[1].length-1);"currency"===t&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):"relativetime"===t&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach((function(e){if(e){var t=bk(e.split(":")),i=t[0],r=t.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[i.trim()]||(n[i.trim()]=r),"false"===r&&(n[i.trim()]=!1),"true"===r&&(n[i.trim()]=!0),isNaN(r)||(n[i.trim()]=parseInt(r,10))}}))}return{formatName:t,formatOptions:n}}(t),a=o.formatName,s=o.formatOptions;if(r.formats[a]){var l=e;try{var c=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},u=c.locale||c.lng||i.locale||i.lng||n;l=r.formats[a](e,u,lB(lB(lB({},s),i),c))}catch(e){r.logger.warn(e)}return l}return r.logger.warn("there was no format function for ".concat(a)),e}),e)}}]),e}();function dB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function hB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dB(Object(n),!0).forEach((function(t){eO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pB(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=mk(e);if(t){var r=mk(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return pk(this,n)}}var mB=function(e){hk(n,e);var t=pB(n);function n(e,i,r){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return sk(this,n),o=t.call(this),Bk&&Ak.call(uk(o)),o.backend=e,o.store=i,o.services=r,o.languageUtils=r.languageUtils,o.options=a,o.logger=Ek.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=a.maxParallelReads||10,o.readingCalls=0,o.maxRetries=a.maxRetries>=0?a.maxRetries:5,o.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,a.backend,a),o}return ck(n,[{key:"queueLoad",value:function(e,t,n,i){var r=this,o={},a={},s={},l={};return e.forEach((function(e){var i=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&r.store.hasResourceBundle(e,t)?r.state[s]=2:r.state[s]<0||(1===r.state[s]?void 0===a[s]&&(a[s]=!0):(r.state[s]=1,i=!1,void 0===a[s]&&(a[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===l[t]&&(l[t]=!0)))})),i||(s[e]=!0)})),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}},{key:"loaded",value:function(e,t,n){var i=e.split("|"),r=i[0],o=i[1];t&&this.emit("failedLoading",r,o,t),n&&this.store.addResourceBundle(r,o,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var i,s,l,c,u,d;i=n.loaded,s=o,c=Ck(i,[r],Object),u=c.obj,d=c.k,u[d]=u[d]||[],l&&(u[d]=u[d].concat(s)),l||u[d].push(s),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]={});var t=n.loaded[e];t.length&&t.forEach((function(t){void 0===a[e][t]&&(a[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:a}):(this.readingCalls++,this.backend[n](e,t,(function(s,l){if(i.readingCalls--,i.waitingReads.length>0){var c=i.waitingReads.shift();i.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}s&&l&&r<i.maxRetries?setTimeout((function(){i.read.call(i,e,t,n,r+1,2*o,a)}),o):a(s,l)}))):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,i,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.split("|"),r=i[0],o=i[1];this.read(r,o,"read",void 0,void 0,(function(i,a){i&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(r," failed"),i),!i&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(r),a),t.loaded(e,i,a)}))}},{key:"saveMissing",value:function(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,i,null,hB(hB({},o),{},{isUpdate:r})),e&&e[0]&&this.store.addResource(e[0],t,n,i))}}]),n}(Ak);function fB(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===XN(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===XN(e[2])||"object"===XN(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,i){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function gB(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function vB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function yB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vB(Object(n),!0).forEach((function(t){eO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _B(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=mk(e);if(t){var r=mk(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return pk(this,n)}}function bB(){}function xB(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}))}var wB=function(e){hk(n,e);var t=_B(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(sk(this,n),e=t.call(this),Bk&&Ak.call(uk(e)),e.options=gB(i),e.services={},e.logger=Ek,e.modules={external:[]},xB(uk(e)),r&&!e.isInitialized&&!i.isClone){if(!e.options.initImmediate)return e.init(i,r),pk(e,uk(e));setTimeout((function(){e.init(i,r)}),0)}return e}return ck(n,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var i=fB();function r(e){return e?"function"==typeof e?new e:e:null}if(this.options=yB(yB(yB({},i),this.options),gB(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=yB(yB({},i.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var o;this.modules.logger?Ek.init(r(this.modules.logger),this.options):Ek.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"undefined"!=typeof Intl&&(o=uB);var a=new Xk(this.options);this.store=new Hk(this.options.resources,this.options);var s=this.services;s.logger=Ek,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new iB(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!o||this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format||(s.formatter=r(o),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new aB(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new mB(r(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];e.emit.apply(e,[t].concat(i))})),this.modules.languageDetector&&(s.languageDetector=r(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=r(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new Jk(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];e.emit.apply(e,[t].concat(i))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.format=this.options.interpolation.format,n||(n=bB),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var c=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var u=["addResource","addResources","addResourceBundle","removeResourceBundle"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var d=Tk(),h=function(){var t=function(t,i){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),d.resolve(i),n(t,i)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?h():setTimeout(h,0),d}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bB,i=n,r="string"==typeof e?e:this.language;if("function"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return i();var o=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};if(r)a(r);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(o,this.options.ns,(function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),i(e)}))}else i(null)}},{key:"reloadResources",value:function(e,t,n){var i=Tk();return e||(e=this.languages),t||(t=this.options.ns),n||(n=bB),this.services.backendConnector.reload(e,t,(function(e){i.resolve(),n(e)})),i}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Vk.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var i=Tk();this.emit("languageChanging",e);var r=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},o=function(o){e||o||!n.services.languageDetector||(o=[]);var a="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);a&&(n.language||r(a),n.translator.language||n.translator.changeLanguage(a),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(a)),n.loadResources(a,(function(e){!function(e,o){o?(r(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,i.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(e,t,n){var i=this,r=function e(t,r){var o;if("object"!==XN(r)){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];o=i.options.overloadTranslationOptionHandler([t,r].concat(s))}else o=yB({},r);o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns,o.keyPrefix=o.keyPrefix||n||e.keyPrefix;var c=i.options.keySeparator||".",u=o.keyPrefix?"".concat(o.keyPrefix).concat(c).concat(t):t;return i.t(u,o)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var a=function(e,n){var i=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===i||2===i};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(i,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!a(i,e)||r&&!a(o,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,i=Tk();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){i.resolve(),t&&t(e)})),i):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=Tk();"string"==typeof e&&(e=[e]);var i=this.options.preload||[],r=e.filter((function(e){return i.indexOf(e)<0}));return r.length?(this.options.preload=i.concat(r),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bB,r=yB(yB(yB({},this.options),t),{isClone:!0}),o=new n(r);void 0===t.debug&&void 0===t.prefix||(o.logger=o.logger.clone(t));var a=["store","services","language"];return a.forEach((function(t){o[t]=e[t]})),o.services=yB({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new Jk(o.services,o.options),o.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];o.emit.apply(o,[e].concat(n))})),o.init(r,i),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(Ak);eO(wB,"createInstance",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new wB(e,t)}));var SB=wB.createInstance();SB.createInstance=wB.createInstance;var EB,AB=SB.createInstance;SB.init,SB.loadResources,SB.reloadResources,SB.use,SB.changeLanguage,SB.getFixedT,SB.t,SB.exists,SB.setDefaultNamespace,SB.hasLoadedNamespace,SB.loadNamespaces,SB.loadLanguages;EB=JSON.parse('{"yes":"Si","no":"No","confirm":"Conferma","apply":"Applica","cancel":"Annulla","show":"Mostra","hide":"Nascondi","send":"Invia","close":"Chiudi","edit":"Modifica","delete":"Elimina","loading":"Caricamento","expand":"Espandi","collapse":"Riduci","fullscreenEnter":"Passa a schermo intero","fullscreenExit":"Esci da schermo intero","center":"Centro","bottom":"In basso","hidden":"Nascosto","day":"Giorno","month":"Mese","year":"Anno","dayPlaceholder":"GG","monthPlaceholder":"MM","yearPlaceholder":"AAAA","createdAt":"Data creazione","selected":"Selezionati","page":"pagina","actions":"Azioni","next":"Successivo","all":"Tutti","copied":"Copiato!","today":"Oggi","yesterday":"Ieri","date":"Data di nascita","last_7_days":"Ultimi 7 giorni","last_30_days":"Ultimi 30 giorni","previous":"Precedente","placeholder":"Fai una domanda","copy":"Copia","copyRawCode":"Copia codice sorgente","copyToClipboard":"Copia negli appunti","showOriginalText":"Mostra originale","showTranslatedText":"Mostra traduzione","exactPosition":"Posizione esatta","uncertain":"Incertezza","question":"Domanda","nothingFound":"Nessun risultato","venue":"Luogo","searchVenue":"Cerca luogo...","privacyPolicy":"Informativa sulla privacy","popularLanguages":"Popolari","allLanguages":"Tutte le lingue","memoriBlockedTitle":"Bloccato","memoriBlockedUntil":"Agente bloccato fino al {{date}}","memoriBlockedAnon":"Attualmente \\"{{name}}\\" non può rispondere, torna qui il {{date}}","memoriBlockedReasonExceedChats":"perchè ha superato la soglia mensile di chat ammesse.","memoriBlockedGiverHelper":"Puoi sempre gestirlo in qualità di amministratore, ma altri utenti non potranno interrogarlo.","generatedByAI":"Risposta generata da IA, può talvolta generare informazioni non corrette","reasoning":"Ragionamento...","whyThisAnswer":"Perché questa risposta?","whyThisAnswerHelper":"Questa risposta è stata generata automaticamente da un\'intelligenza artificiale sulla base di questi contenuti verificati.","receiverLabel":"Assegnato a","missingData":"Informazioni mancanti","completionsEnabled":"IA evoluta, può rispondere con risposte generate automaticamente che talvolta potrebbero contenere informazioni non corrette","completionProviderDown":"Questo agente è integrato con una IA generativa di {{provider}}, ma al momento non è disponibile. Riprova più tardi.","completionProviderMajorOutage":"Questo agente è integrato con una IA generativa di {{provider}}, ma al momento non è disponibile. Non sarà possibile utilizzare questa funzionalità finché il servizio non viene ripristinato.","completionProviderPartialOutage":"Questo agente è integrato con una IA generativa di {{provider}}, ma sta riscontrando interruzioni parziali. Alcune funzionalità potrebbero non essere disponibili o funzionare in modo non ottimale.","completionProviderDegraded":"Questo agente è integrato con una IA generativa di {{provider}}, ma sta funzionando più lentamente del normale. Le risposte potrebbero richiedere più tempo o essere meno precise.","completionProviderFallbackName":"un provider esterno","completionProviderCheckStatusPage":"Vedi pagina di stato","boardOfExperts":"Gruppo di esperti","birthDate":"Data di nascita","birthDateHelper":"Ti chiediamo la data di nascita esclusivamente per abilitare o disabilitare le funzionalità che hanno restrizioni in base all\'età","underage":"Devi avere almeno {{age}} anni per registrarti.","underageTwinSession":"Devi avere almeno {{age}} anni per interagire con questo agente.","errorFetchingSession":"Errore durante il caricamento della sessione","errorGettingReferralURL":"Errore durante il caricamento del riferimento","errorReopeningSession":"Errore durante il riapertura della sessione","ageVerification":"Verifica dell\'età","ageVerificationText":"Per interagire con questo agente, devi aver almeno {{minAge}} anni.","nsfw":"NSFW: Questo agente contiene contenuti per adulti","deepThought":"Pensiero profondo","deepThoughtHelper":"Pensiero Profondo è una funzionalità avanzata delle AI che ti consentirà di poter sfruttare a pieno le tue conversazioni mantenendo memoria delle stesse. Le AI con Pensiero Profondo possono darti informazioni adattandosi a te e alle cose che condividerete insieme.","deepThoughtDisclaimerTitle":"Pensiero profondo abilitato","deepThoughtDisclaimer":"Pensiero Profondo è una funzionalità avanzata delle AI che ti consentirà di poter sfruttare a pieno le tue conversazioni mantenendo memoria delle stesse. Le AI con Pensiero Profondo possono darti informazioni adattandosi a te e alle cose che condividerete insieme.","deepThoughtPreDisclaimerUnlogged":"Accedi per abilitare Pensiero Profondo.","deepThoughtPreDisclaimerNotAllowed":"Pensiero Profondo è disabilitato poiché non hai acconsentito al suo utilizzo, puoi cambiare la tua scelta in qualsiasi momento nelle impostazioni del tuo account.","notEnoughCredits":"L\'autore di questo agente non ha abbastanza crediti per rispondere alla tua domanda.","confirmDialog":{"title":"Confermi di voler lasciare questa pagina?","message":"Le modifiche non salvate andranno perse."},"knownFacts":{"title":"Fatti noti","description":"Dettagli delle informazioni condivise tra te e {{memoriName}}","type":"Tipo","typeShortTerm":"Breve termine","typeLongTerm":"Lungo termine","typeHelper":"Tipi:\\n- Breve termine: questo fatto noto è sempre utilizzato durante le conversazioni\\n- Lungo termine: questo fatto noto è utilizzato durante le conversazioni solo se rilevante per la domanda corrente","text":"Testo","deleteSuccess":"Fatto noto eliminato","deleteConfirmTitle":"Elimina il fatto noto","deleteConfirmMessage":"Confermi di voler eliminare questo fatto noto?","deleteSelectedConfirmTitle":"Elimina i fatti noti selezionati","deleteSelectedConfirmMessage":"Confermi di voler eliminare i fatti noti selezionati?"},"auth":{"title":"Autenticazione","useRecoveryTokens":"Utilizza i token di recupero","tokens":"Token","addToken":"Aggiungi token","usePassword":"Utilizza la password","invalidCredentials":"Credenziali non valide","atLeast":"Almeno"},"widget":{"instruct":"Istruisci","test":"Prova","sound":"Suono","position":"Preferenze posizione","settings":"Impostazioni","share":"Condividi","shareChat":"Condividi chat","sendOnKeypress":"Premi Invio per inviare","sendOnClick":"Clicca su Invia","boardOfExperts":"Board di esperti","showExpertsInTheBoard":"Mostra esperti in questa board","expertsInTheBoard":"Esperti in questa board","goToIntegrationsToCustomizeAvatar":"Per personalizzare l\'avatar, vai a Condividimi e configura la pagina pubblica"},"exportChatHistory":{"exportPDF":"Esporta chat come PDF","exporting":"Esportazione in corso...","empty":"Nessuna cronologia chat da esportare","pdfNotSupported":"L\'esportazione PDF non è supportata in questo browser","success":"Chat esportata in PDF con successo","error":"Impossibile esportare la chat in PDF. Riprova."},"write_and_speak":{"micButtonPopover":"Premi il pulsante per parlare","micButtonPopoverListening":"Premi il pulsante per smettere di parlare","pageInstructExplanation":"Per insegnarmi nuove cose clicca sul pulsante ISTRUISCIMI per cominciare","pageTryMeExplanation":"Per parlare con me clicca sul pulsante INIZIAMO per cominciare","pagePrivacyExplanation":"Le conversazioni sono visibili all\'autore dell\'agente","downloadChat":"Scarica chat","pagePrivacyExplanationList":{"allConversations":"Tutte le conversazioni con questo agente sono visibili all\'autore dell\'agente","anonymousUser":"Per utenti anonimi: l\'autore vedrà il contenuto e l\'indirizzo IP","registeredUser":"Per utenti registrati: l\'autore vedrà il contenuto e il nome utente","contentAndUsername":"L\'autore può vedere il contenuto, il tuo nome utente e il tuo indirizzo IP","contentAndIpAddress":"L\'autore può vedere il contenuto e il tuo indirizzo IP","authorUsesInfo":"L\'autore utilizza queste informazioni per migliorare le funzionalità dell\'agente. Continuando, accetti queste condizioni."},"instructButton":"ISTRUISCIMI","tryMeButton":"INIZIAMO","resumeButton":"RIPRENDI","chatHistory":"Cronologia chat","chatHistoryDescription":"Mostra la cronologia chat con questo agente","loadingChatHistory":"Caricamento cronologia chat...","noChatHistoryAvailable":"Nessuna cronologia chat disponibile","noResultsFound":"Nessun risultato trovato per \\"{{searchText}}\\"","searchInChatHistory":"Cerca nella cronologia chat...","latestFirst":"Più recenti prima","oldestFirst":"Più vecchi prima","exportChat":"Esporta Chat","exportChatHistory":"Esporta la cronologia chat","exportChatHistoryMessage":"Vuoi esportare la cronologia chat?","chatBotButtonText":"CLICCA QUI PER APRIRE LA CHAT","conversationStartedLabel":"Conversazione avvenuta il","settingsHeaderLabel":"Configura qui se vuoi impostare una conversazione continua. Setta i secondi di silenzio prima dell\'invio.","continuousSpeechLabel":"Conversazione continua","continuousSpeechDisabled":"Conversazione continua disabilitata poichè l\'agente è in modalità muta","holdToSpeak":"Tieni premuto per parlare","releaseToEndListening":"Rilascia per smettere di parlare","pressAndHoldToSpeak":"Premi e tieni premuto per parlare","microphoneMode":"Modalità microfono","hideEmissionsLabel":"Nascondi testo emesso dall\'agente","secondsLabel":"Secondi","controlsPosition":"Posizione dei controlli","avatarControls":"Controlli Avatar","height":"Altezza","depth":"Profondità","avatarType":"Tipo Avatar","blob":"Blob","avatar3d":"Avatar 3D","zoomed":"Vicino","normal":"Normale","far":"Lontano","suggestions":"Usa le frecce per regolare l\'altezza dell\'avatar\\nUsa +/- per regolare la profondità dell\'avatar","enablePositionControls":"Abilita controlli posizione","tryMeHeaderLabel":"PROVA","unknownPosition":"Posizione sconosciuta","fieldPlace":"Indica la posizione (es \'Milano\')","showMapLinkFor":"Visualizza sulla mappa la posizione","useMyPosition":"Usa la mia posizione","myPosition":"Posizione corrente","updatingPosition":"Aggiorno la posizione...","placeNotFound":"Luogo sconosciuto!","requirePositionHelp":"Per parlare con {{name}} devi decidere se fornire o meno la tua posizione. Questo perchè diverse risposte che potrà fornirti potrebbero dipendere da dove ti trovi.","dontWantToProvidePosition":"Non voglio fornire la mia posizione","attachmentsLabel":"Arricchisci il tuo messaggio","iWantToTalkToIn":"Voglio parlare con {{name}} in","message":"messaggio","messages":"messaggi","page":"Pagina {{current}} di {{total}}"},"artifact":{"close":"Chiudi","size":"Dimensione","generated":"Generato","download":"Scarica","print":"Stampa","external":"Apri in una nuova finestra","type":"Tipo","fullscreen":"Schermo intero","exitFullscreen":"Esci da schermo intero","copy":"Copia","generatedAt":"Generato il","open":"Apri","code":"Codice","preview":"Anteprima","copied":"Copiato!","error":"Errore","generatingPdf":"Generazione PDF...","copying":"Copia in corso...","moreCopyOptions":"Altre opzioni di copia","copyAs":"Copia come","downloadAsMarkdown":"Scarica come Markdown","downloadRawMarkdownText":"Scarica testo markdown grezzo","downloadAsPdf":"Scarica come PDF","exportAsPdfDocument":"Esporta come documento PDF","downloadAsHtml":"Scarica come HTML","downloadFormattedHtml":"Scarica HTML formattato","viewMode":"Modalità Visualizzazione","codeMode":"Modalità Codice","refresh":"Aggiorna","share":"Condividi","downloadAsJson":"Scarica come JSON","downloadJsonData":"Scarica dati JSON","downloadAsPng":"Scarica come PNG","downloadPngImage":"Scarica immagine PNG","downloadAsJpeg":"Scarica come JPEG","downloadJpegImage":"Scarica immagine JPEG","downloadAsGif":"Scarica come GIF","downloadGifImage":"Scarica immagine GIF","downloadAsWebp":"Scarica come WebP","downloadWebpImage":"Scarica immagine WebP","copyAsSvg":"Copia come SVG","copySvgSourceCode":"Copia codice sorgente SVG","copyAsPlainText":"Copia come testo normale","copyAsText":"Copia come testo","copyAsLanguage":"Copia come {{language}}","copyLanguageCode":"Copia codice {{language}}","copyWithoutSyntaxHighlighting":"Copia senza evidenziazione sintassi","copyTextContent":"Copia contenuto testo","pdfExportNotSupported":"L\'esportazione PDF non è supportata in questo browser","popupBlocked":"Popup bloccato! Abilita i popup per stampare.","safariPdfInstructions":"Esportazione PDF aperta in una nuova finestra. Usa Cmd+P (Mac) o Ctrl+P (Windows) per stampare e salvare come PDF."},"media":{"title":"Titolo","editAttributes":"Modifica attributi media","uploadMimeTypeNotAllowed":"Il tipo di file non è permesso","uploadSizeLimitMessage":"Il file caricato è troppo grande (max {{size}}MB)","uploadWrongResolutionMessage":"La risoluzione deve essere {{width}}x{{height}} pixel","memoriNameAlreadyUsed":"Hai già un Agente con questo nome","uploadHelperImages":"Caricare un file con estensione png, jpg, jpeg o gif e con dimensione massima di {{size}}MB","uploadHelper":"Caricare un file di dimensione massima di {{size}}MB","uploadError":"Errore nel caricamento","square":"quadrato","scaleRatio":"Proporzioni","addMediaLabel":"Aggiungi media","insertThisMediaMsg":"Inserisci questi media","mediaUploadMessage":"Clicca per caricare un nuovo media","addLinkLabel":"Aggiungi un link","linkKey":"URL","linkValue":"Titolo link","insertThisLink":"Inserisci un link a {{url}} con titolo {{title}}"},"upload":{"loginRequired":"Login richiesto","pastedText":"testo-copiato","uploadNotification":"Upload Fallito","loginRequiredDescription":"Per caricare immagini, devi prima accedere","uploadFiles":"Carica file ({{shortcut}}+O per aprire il selettore file)","uploadFilesWithShortcut":"{{shortcut}}+O per aprire il selettore file","uploadImages":"Carica immagini","lastDocumentSlot":"Carica ultimo documento","uploadDocuments":"Carica documenti","maxDocumentsReached":"Puoi caricare fino a {{max}} documenti","replace":"Sostituisci documento","maxImagesReached":"Puoi caricare fino a {{max}} immagini","apiClientNotConfigured":"Client API non configurato correttamente per il caricamento di media","fileReadingFailed":"Lettura del file fallita","uploadFailed":"Caricamento fallito","uploadSuccess":"Caricamento riuscito","remaining":"rimanenti","maxReached":"Limite raggiunto","titleImage":"Titolo immagine: {{title}}","titleImageUpload":"Carica immagini","titleHelp":"Aggiungi un titolo descrittivo per aiutare l\'AI a fornire risposte più appropriate.","titlePlaceholder":"Inserisci il titolo dell\'immagine","uploadSuccessDescription":"Il file è stato caricato con successo","partialUpload":"Solo {{uploaded}} immagini su {{total}} immagini saranno caricate. Massimo {{max}} immagini consentite.","cancel":"Annulla","dragAndDropFiles":"Trascina qui i file per aggiungerli alla chat","pasteMaxAttachmentsReached":"Massimo {{max}} allegati. Rimuovine uno per aggiungere questo come file.","pasteContentTooLong":"Il testo incollato è troppo lungo (max {{size}}KB). Accorcialo o dividilo.","pasteContentExceedsLimit":"Il contenuto incollato supera il limite di dimensione. Prova ad accorciare il testo o a dividerlo in parti più piccole.","pasteAddedAsAttachment":"Testo incollato aggiunto come allegato","filesNotAddedMaxAllowed":"{{count}} file non aggiunto/i (massimo {{max}} file consentiti).","documentsNotAddedMaxAllowed":"{{count}} documento/i non aggiunto/i (massimo {{max}} file consentiti).","imagesNotAddedMaxAllowed":"{{count}} immagine/i non aggiunta/e (massimo {{max}} file consentiti).","documentsNotAddedContextSize":"{{count}} documento/i non aggiunto/i (limite dimensione contesto)."},"gamification":{"level":"Livello","points":"punti","memoriReachedLevel":"è diventato più evoluto ed ha raggiunto il livello","levelGoToStatistics":"{{memori}} è al livello {{level}} con {{points}} punti. Clicca per andare alle statistiche.","congratulationsNewLevel":"Congratulazioni, hai raggiunto un nuovo livello!","congratulationsNewLevelDescription":"Il tuo agente è diventato più evoluto con {{points}} punti, guarda le","statistics":"statistiche"},"login":{"login":"Accedi","logout":"Esci","userNameRequired":"Il nome utente è obbligatorio","userName":"Nome utente","userNamePlaceholder":"Inserisci il nome utente","user":"Utente","loggedDrawerTitle":"Ciao, {{name}}!","loginDrawerTitle":"Accedi","signupDrawerTitle":"Registrati","newUserSignUp":"Sei un nuovo utente?","signUp":"Registrati!","alreadyHaveAnAccount":"Hai già un account?","backToLogin":"Torna al login","registrationDisabled":"La registrazione è disabilitata.","contactAdmin":"Contatta l\'amministratore per richiedere l\'accesso","userNameOrEmail":"Nome utente o email","email":"Email","emailFormatError":"Per favore, inserisci una mail valida","username":"Nome utente","usernameContainsReservedWord":"Il nome utente contiene una parola riservata, per favore cambia il nome utente","usernameFormatError":"Il nome utente deve essere lungo almeno 3 caratteri e può contenere solo lettere, numeri e _","otpCode":"Codice di verifica","resendVerificationCode":"Invia di nuovo","resentVerificationCode":"Codice di verifica inviato! Controlla la tua mail.","welcomeTitle":"Bentornato","welcomeDescription":"Inserisci il tuo codice di verifica a 4 cifre per continuare al tuo account","otpTitle":"Inserisci il codice di verifica","otpDescription":"Inserisci il codice a 4 cifre che hai generato nel tuo account","otpStep1":"Clicca il pulsante qui sotto per aprire il tuo account","otpStep2":"Genera un codice di verifica a 4 cifre (valido per 60 secondi)","otpStep3":"Torna qui e inserisci il codice","startOtpLogin":"Inizia verifica","generateOtp":"Genera codice","otpTimer":"Il codice scade tra {{seconds}} secondi","otpInvalidFormat":"Inserisci un codice valido a 4 cifre","otpInvalid":"Codice di verifica non valido","otpError":"Errore nella validazione del codice. Riprova.","otpSuccess":"Login effettuato con successo!","otpEmailTitle":"Inserisci la tua email","otpEmailDescription":"Inserisci il tuo indirizzo email per ricevere un codice di verifica","otpCodeDescription":"Inserisci il codice a 4 cifre inviato a {{email}}","emailPlaceholder":"Inserisci la tua email","sendOtp":"Invia codice","resendOtp":"Invia di nuovo","resending":"Invio in corso...","backToEmail":"Torna all\'email","otpSent":"Codice di verifica inviato!","otpResent":"Codice reinviato con successo!","otpSendError":"Errore nell\'invio del codice. Riprova.","emailRequired":"Email richiesta","emailInvalid":"Inserisci un indirizzo email valido","otpNotFound":"Codice di verifica non trovato","otpExpired":"Il codice di verifica è scaduto","otpMissing":"Il codice di verifica è richiesto","otpSuccessMessage":"Verifica completata! Reindirizzamento...","otpSuccessDescription":"Il tuo account è stato verificato con successo. Sarai reindirizzato a breve.","otpHelp":"Inserisci il codice a 4 cifre dalla tua email","emailHelp":"Ti invieremo un codice di verifica","userFetchError":"Errore nel caricamento dei dati utente. Riprova.","otpStep1Title":"Inserisci Email","otpStep2Title":"Controlla Email","otpStep3Title":"Inserisci Codice","featureFast":"Veloce","featureSecure":"Sicuro","featureMobile":"Mobile","quickActions":"Azioni rapide","verified":"Verificato","termsStatus":"Stato dei termini","enabled":"Abilitato","disabled":"Disabilitato","advancedFeatures":"Funzionalità avanzate","help":"Aiuto","editProfile":"Modifica profilo","notifications":"Notifiche","logoutConfirm":"Sei sicuro di voler uscire?","comingSoon":"Presto disponibile!","accountOverview":"Panoramica account","notSet":"Non impostato","accepted":"Accettato","password":"Password","newPassword":"Nuova password","confirmPassword":"Conferma la password","currentPassword":"Password attuale","passwordMatchingError":"Le password non coincidono.","passwordFormatError":"La password deve essere lunga almeno 8 caratteri e contenere almeno un numero, una lettera maiuscola, una minuscola e un simbolo","pwdWeak":"Debole","pwdAcceptable":"Accettabile","pwdStrong":"Forte","mustChangePassword":"Devi cambiare la password","passwordChange":"Cambio password","emailChange":"Cambio email","avatarChange":"Cambio avatar","underage":"Devi avere almeno {{age}} anni per registrarti.","optional":"opzionale","birthDate":"Data di nascita","birthDateHelper":"Ti chiediamo la data di nascita esclusivamente per abilitare o disabilitare le funzionalità che hanno restrizioni in base all\'età","missingData":"Informazioni mancanti","missingDataHelper":"Sappiamo che questo è un po\' fastidioso, ma abbiamo bisogno di alcune informazioni in più per completare la tua registrazione.","goToAccountToChangeYourPreferences":"Puoi cambiare la tua scelta in qualsiasi momento dalla tua pagina Account.","deepThoughtExplaination":"Pensiero Profondo è una funzionalità avanzata delle AI che ti consentirà di poter sfruttare a pieno le tue conversazioni mantenendo memoria delle stesse. Le AI con Pensiero Profondo possono darti informazioni adattandosi a te e alle cose che condividerete insieme. Consenti all\'autore dell\'agente di contattarti per offerte commerciali riguardanti prodotti su cui hai espresso interesse.","tnCAndPPAcceptedHelper":"Dall\'ultimo accesso, i T&C e l\'Informativa sulla privacy sono stati modificati. Si prega di accettarle, altrimenti non sarà possibile apportare modifiche ai propri gemelli. Puoi sempre cancellare il tuo account nella pagina del tuo profilo utente.","privacyLabel":"Ho letto e accettato l\'","privacyAndCookiePolicy":"informativa sui cookie e sulla privacy","and":"e","termsOfService":"i termini del servizio","pAndCUAccepted":"Accetto le condizioni di utilizzo relative a Pensiero Profondo","editAccount":"Modifica account","save":"Salva","successfullyLoggedIn":"{{username}} ha effettuato l\'accesso con successo"},"chatLogs":{"atLeast":"Almeno {{count}} messaggi","anyMessage":"Qualunque messaggio","atLeast2":"Almeno 2 messaggi","atLeast3":"Almeno 3 messaggi","atLeast5":"Almeno 5 messaggi","atLeast10":"Almeno 10 messaggi","atLeast15":"Almeno 15 messaggi","atLeast20":"Almeno 20 messaggi","customMinimumMessages":"Personalizza il numero di messaggi"},"success":"Operazione andata a buon fine","Error":"Errore","internal server error":"Ops, scusa... qualcosa è andato storto nel server","error":"Errore","error.loading":"Errore durante il caricamento dei contenuti.","error.notFound":"Ops, non abbiamo trovato ciò che cercavi.","error.generic":"Ops, qualcosa è andato storto.","error.serverNotResponding":"Stiamo facendo manutenzione o rilasciando aggiornamenti. Riprova più tardi.","error.unprocessableEntity":"Errore durante il salvataggio dei dati. Ricontrolla i dati inseriti.","error.goBackTo":"Prova a tornare alla","error.reloadPage":"Ricarica la pagina","error.tryAgain":"Riprova","error.unauthorized":"Non sei autorizzato a visualizzare questo contenuto.","errors":{"TENANT_NOT_FOUND":"Tenant non trovato","TENANT_REGISTRATION_DISABLED":"La registrazione su questa piattaforma è disabilitata","TENANT_MISSING_NAME":"Tenant: nome mancante","TENANT_MAX_USERS_REACHED":"Numero massimo di utenti raggiunto","TENANT_MAX_ADMINS_REACHED":"Numero massimo di utenti amministratori raggiunto","TENANT_ALREADY_EXISTS":"Tenant già esistente","TENANT_MISSING_DESCRIPTION":"Tenant: descrizione mancante","TENANT_CANT_SET_COMPLETION_PROVIDER":"Tenant: non abilitato a gestire il provider di completamento","TENANT_INVALID_TYPE":"Tenant: tipo non valido","USER_NOT_CONFIRMED":"Utente ancora non confermato","USER_NOT_FOUND":"Utente non trovato","USER_OR_PASSWORD_INVALID":"Utente o password non validi","USER_MUST_CHANGE_PASSWORD":"Devi cambiare la password","USER_MUST_ENTER_VERIFICATION_CODE":"Devi inserire il codice di verifica","USER_MISSING_TENANT":"Utente: tenant mancante","USER_MISSING_NAME":"Utente: nome mancante","USER_MISSING_PASSWORD":"Utente: password mancante","USER_MISSING_EMAIL":"Utente: email mancante","USER_MISSING_VERIFICATION_CODE":"Utente: codice di verifica mancante","USER_NAME_ALREADY_USED":"Nome utente già in uso","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"La password non rispetta le regole di sicurezza","USER_EMAIL_ALREADY_USED":"Email già in uso","USER_EMAIL_INVALID":"Email non valida","USER_VERIFICATION_CODE_INVALID":"Codice di verifica non valido","USER_MISSING_NAME_OR_EMAIL":"Nome utente o email mancante","USER_NAME_INVALID":"Nome utente non valido","USER_HAS_ONE_OR_MORE_MEMORI":"L\'utente ha uno o più Agenti","USER_MISSING_NEW_PASSWORD":"Utente: nuova password mancante","USER_NOTHING_TO_DO":"Niente da fare","USER_CANT_CREATE_MEMORI":"Utente non abilitato a creare Agenti","USER_MAX_MEMORI_REACHED":"Massimo numero di Agenti raggiunto","USER_TOO_MANY_ATTEMPTS":"Troppi tentativi","USER_MUST_ACCEPT_TNC_AND_PP":"Devi accettare i termini e le condizioni","USER_BIRTH_DATE_CANT_BE_CHANGED":"Data di nascita non può essere cambiata","USER_CANT_SET_COMPLETION_PROVIDER":"Utente: non abilitato a gestire il provider di completamento","USER_CANT_ENABLE_DEEP_THOUGHT":"Utente: non abilitato a gestire Pensiero Profondo","USER_CANT_ENABLE_DCM_INTEGRATION":"Utente: non abilitato a gestire l\'integrazione con DCM","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"Utente: non abilitato a gestire la concatenazione o il gruppo di esperti","USER_CREATION_BILLING_DENIED_PERMISSION":"Non hai crediti sufficienti per creare un agente","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"L\'utente ha una o più configurazioni completions","USER_CANT_BE_DELETED":"Utente non può essere cancellato","USER_ORDER_BY_INVALID":"Ordine non valido","MEMORI_NOT_FOUND":"Agente non trovato","MEMORI_NOT_ACCESSIBLE":"Agente non accessibile","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Solo il proprietario può cambiare il tag e il pin","SESSION_NOT_FOUND":"Sessione non trovata","SESSION_IS_NOT_ADMINISTRATIVE":"Sessione non amministrativa","SESSION_EXPIRED":"Sessione scaduta","SESSION_OTP_NOT_FOUND":"Codice di verifica non trovato","SESSION_OTP_EXPIRED":"Il codice di verifica è scaduto","SESSION_MISSING_TEMPORARY_TOKEN":"Il codice di verifica è richiesto","MEMORI_MISSING_CONFIGURATION":"Agente: configurazione mancante","MEMORI_CONFIGURATION_NOT_FOUND":"Agente: configurazione non trovata","MEMORI_INVALID_PRIVACY_TYPE":"Agente: tipo di privacy non valido","MEMORI_MISSING_PASSWORD":"Agente: password mancante","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Agente: numero totale di token di recupero non valido","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Agente: numero minimo di token di recupero non valido","MEMORI_INVALID_VOICE_TYPE":"Agente: tipo di voce non valido","MEMORI_MISSING_NAME":"Agente: nome mancante","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Agente: password o token di recupero mancanti","MEMORI_INVALID_ID":"Agente: ID non valido","MEMORI_NAME_ALREADY_USED":"Nome Agente già in uso","MEMORI_INVALID_PIN":"Agente: PIN non valido","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Agente: cambio TAG e PIN richiedono operazioni separate","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Agente: password non richiesta su agente pubblico","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Pensiero Profondo richiede l\'abilitazione delle completions","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"Il gruppo di esperti richiede l\'abilitazione delle completions","MEMORI_INVALID_COMPLETION_CONFIG":"Agente: configurazione completions non valida","MEMORI_MACRO_FUNCTIONS_REQUIRES_COMPLETIONS":"Macro funzioni richiede l\'abilitazione delle completions","MEMORI_BLOCKING_DATE_MISSING_OR_WRONG":"Agente: data di blocco mancante o non valida","MEMORI_LIST_FILTER_NOT_SPECIFIED":"Agente: filtro non specificato","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Trasferimento: utente di destinazione mancante","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Trasferimento: ID utente di destinazione non valido","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Trasferimento: dati utente di destinazione non validi","MEMORI_TRANSFER_NOTHING_TO_DO":"Trasferimento: alcuna operazione da fare","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Agente: la configurazione non può essere modificata","MEMORI_MISSING_NEW_PASSWORD":"Agente: nuova password mancante","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Formato non valido data a partire da","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Formato non valido data fino a","MEMORI_SESSION_NOT_FOUND":"Sessione non trovata","MEMORI_SESSION_DOESNT_ACCEPT_MEDIA":"Sessione non accetta media","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"Agente: funzionalità richiede un abbonamento","INTEGRATION_NOT_FOUND":"Integrazione non trovata","INTEGRATION_INVALID_TYPE":"Tipo integrazione non valido","INTEGRATION_ALREADY_EXISTS":"Integrazione già esistente","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Agenti non pubblici non possono essere integrati","INTEGRATION_MISSING_INVOCATION_TEXT":"Integrazione: testo di invocazione mancante","INTEGRATION_MISSING_DEVICE_EMAILS":"Integrazione: email del dispositivo mancante","INTEGRATION_MEMORI_IS_EMPTY":"Agenti vuoti non possono essere integrati","INTEGRATION_MISSING_PRIVACY_POLICY":"Integrazione: privacy policy mancante","INTEGRATION_MISSING_CATEGORY":"Categoria integrazione mancante","INTEGRATION_MISSING_DESCRIPTION":"Descrizione integrazione mancante","INTEGRATION_INVALID_INVOCATION_TEXT":"Testo di invocazione non valido","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home non più disponibile","UPLOAD_REQUIRES_MULTIPART_ENCODING":"L\'upload richiede l\'encoding multipart","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Upload: manca il content type boundary","UPLOAD_MAX_LENGTH_EXCEEDED":"Upload: dimensione massima superata","UPLOAD_FILE_IS_EMPTY":"Upload: file vuoto","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Upload: tipo di file o firma non validi","UPLOAD_MISSING_FILE_NAME":"Upload: nome file mancante","UPLOAD_INVALID_MEMORY_ID":"Upload: ID contenuto non valido","UPLOAD_MISSING_FILE_CONTENT":"Upload: contenuto file mancante","ASSET_NOT_FOUND":"Asset non trovato","ASSET_NOT_ACCESSIBLE":"Asset non accessibile","ASSET_MISSING_SESSION_ID":"Asset: ID sessione mancante","ASSET_INVALID_FILE_NAME":"Asset: nome file non valido","ASSET_MALWARE_SCAN_THREATS_FOUND":"Asset: la scansione ha trovato minaccia malware","INVITATION_NOT_FOUND":"Invito non trovato","INVITATION_NOT_ACCESSIBLE":"Invito non accessibile","INVITATION_ALREADY_ACCEPTED":"Invito già accettato","INVITATION_ALREADY_REJECTED":"Invito già rifiutato","INVITATION_MISSING_DESTINATION_EMAIL":"Invito: email di destinazione mancante","INVITATION_DESTINATION_EMAIL_INVALID":"Invito: email di destinazione non valida","INVITATION_MISSING_TAG":"Invito: tag mancante","INVITATION_MISSING_PIN":"Invito: PIN mancante","INVITATION_INVALID_PIN":"Invito: PIN non valido","INVITATION_INVALID_TYPE":"Invito: tipo non valido","INVITATION_MISSING_DESTINATION_NAME":"Invito: nome destinatario mancante","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Invito: tag e pin non possono essere cambiati","INVITATION_CANT_BE_CHANGED":"Invito: non può essere modificato","ACTIONLOG_INVALID_USER_ID":"ID utente non valido","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Data a partire da: formato non valido","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Data fino a: formato non valido","ACTIONLOG_INVALID_MEMORI_ID":"ID agente non valido","CONSUMPTIONLOG_INVALID_TYPE":"Tipo di log non valido","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Data a partire da: formato non valido","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Data fino a: formato non valido","CONSUMPTIONLOG_INVALID_USER_ID":"ID utente non valido","CONSUMPTIONLOG_INVALID_MEMORI_ID":"Memori ID non valido","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Notifiche: Periodo di estrazione chatlog non valido","BROADCAST_NOT_ALLOWED":"Broadcast non consentito","INVALID_NOTIFICATION_TYPE":"Tipo notifica non valido","NOTIFICATION_NOT_FOUND":"Notifica non trovata","INVALID_NOTIFICATION_FILTER":"Filtro notifica non valido","INVALID_NOTIFICATION_PERIOD":"Periodo notifica non valido","PROCESS_INVALID_TYPE":"Tipo di processo non valido","PROCESS_ALREADY_RUNNING":"Processo già in esecuzione","PROCESS_NOT_FOUND":"Processo non trovato","IMPORTCSV_MISSING_ROWS":"Importazione CSV: righe mancanti","IMPORTCSV_MISSING_CSV":"Importazione CSV: CSV mancante","IMPORTCSV_MISSING_SEPARATOR":"Importazione CSV: separatore mancante","IMPORTCSV_INVALID_SEPARATOR":"Importazione CSV: separatore non valido","IMPORTCSV_MISSING_HEADERS":"Importazione CSV: intestazioni mancanti","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Importazione CSV: separatore varianti titolo mancante","IMPORTCSV_INVALID_RECEIVER_ID":"Importazione CSV: ID receiver non valido","IMPORTCSV_INVALID_MEDIA_LINK":"Importazione CSV: link media non valido","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"Importazione CSV: titolo link non valido","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"Importazione CSV: encoding caratteri non rilevabile","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"Importazione CSV: impossibile importare in agenti segreti","IMPORTTXT_MISSING_ROWS":"Importazione TXT: righe mancanti","IMPORTTXT_INVALID_GRANULARITY":"Importazione TXT: granularità non valida","IMPORTTXT_INVALID_RECEIVER_ID":"Importazione TXT: ID receiver non valido","IMPORTTXT_INVALID_MEDIA_LINK":"Importazione TXT: link media non valido","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"Importazione TXT: titolo link non valido","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"Importazione TXT: encoding caratteri non rilevabile","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"Importazione TXT: impossibile importare in agenti segreti","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"Importazione TXT: limite importazione superato","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"Importazione TXT: importazione su GPT-4 richiede API key","IMPORTTXT_IMPORT_REQUIRES_PAYING":"Importazione TXT: importazione richiede un piano a pagamento","IMPORTTXT_BILLING_DENIED_PERMISSION":"Importazione TXT: non hai crediti sufficienti per l\'operazione","IMPORT_MISSING_ROWS":"Importazione: righe mancanti","IMPORT_CANT_IMPORT_TO_SECRET_MEMORI":"Importazione: impossibile importare in agenti segreti","IMPORTMEMORI_INVALID_MEMORI_SPECS":"Importazione MEMORI: specifiche agente non valide","IMPORT_MISSING_JSONL":"Importazione MEMORI: JSONL mancante","IMPORTMEMORI_INVALID_SPECS":"Importazione MEMORI: specifiche non valide","EXPORT_MISSING_PASSWORD":"Esportazione: password mancante","EXPORTCSV_MISSING_CSV_SPECS":"Esportazione CSV: specifiche CSV mancanti","EXPORTCSV_MISSING_SEPARATOR":"Esportazione CSV: separatore mancante","EXPORTCSV_INVALID_SEPARATOR":"Esportazione CSV: separatore non valido","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Esportazione CSV: separatore varianti titolo mancante","EXPORTCSV_MISSING_NEW_LINE_CHAR":"Esportazione CSV: carattere di nuova riga mancante","EXPORTCSV_INVALID_NEW_LINE_CHAR":"Esportazione CSV: carattere di nuova riga non valido","EXPORTCSV_MISSING_PASSWORD":"Esportazione CSV: password mancante","EXPORTJSONL_MISSING_JSONL_SPECS":"Esportazione JSONL: specifiche JSONL mancanti","EXPORTJSONL_MISSING_PLATFORM":"Esportazione JSONL: piattaforma mancante","EXPORTJSONL_INVALID_PLATFORM":"Esportazione JSONL: piattaforma non valida","EXPORTJSONL_MISSING_PASSWORD":"Esportazione JSONL: password mancante","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"Esportazione JSONL: esportazione richiede un piano a pagamento","ANALYSIS_MISSING_QUERY":"Analisi: query mancante","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Analisi: impossibile analizzare agenti segreti","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Analisi: corrispondenza query utente richiede Pensiero Profondo","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Assegnazione badge: credenziali errate o mancanti","BADGE_ASSIGNMENT_MISSING_REF_ID":"Assegnazione badge: ID ref mancante","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Assegnazione badge: esito non trovato","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Assegnazione badge: URL di asserzione mancante","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Assegnazione badge: URL badge mancante","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Assegnazione badge: URL issuer mancante","BADGE_ASSIGNMENT_INVALID_URL":"Assegnazione badge: URL non valido","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Assegnazione badge: destinatario mancante","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Assegnazione badge: tipo destinatario sconosciuto","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Assegnazione badge: identità destinatario mancante","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Assegnazione badge: tipo hash destinatario mancante","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Assegnazione badge: tipo hash destinatario sconosciuto","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Assegnazione badge: identità destinatario errata","BADGE_NOT_FOUND":"Badge non trovato","OUTCOME_NO_DCM_CONFIGURED":"Outcome: nessun DCM configurato","OUTCOME_USER_BADGES_DISABLED":"Outcome: badge utente disabilitati","COMPLETION_CONFIG_MISSING_NAME":"Configurazione completions: nome mancante","COMPLETION_CONFIG_MISSING_PROVIDER":"Configurazione completions: provider mancante","COMPLETION_CONFIG_MISSING_ENDPOINT":"Configurazione completions: endpoint mancante","COMPLETION_CONFIG_MISSING_API_KEY":"Configurazione completions: API key mancante","COMPLETION_CONFIG_MISSING_MODEL":"Configurazione completions: modello mancante","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Configurazione completions: almeno un tipo di completions deve essere specificato","COMPLETION_CONFIG_INVALID_NAME":"Configurazione completions: nome non valido","COMPLETION_CONFIG_INVALID_PURPOSE":"Configurazione completions: tipo di completions non valido","COMPLETION_CONFIG_INVALID_ENDPOINT":"Configurazione completions: endpoint non valido","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Configurazione completions: endpoint incoerente","COMPLETION_CONFIG_INVALID_PROVIDER":"Configurazione completions: provider non valido","COMPLETION_CONFIG_NOT_FOUND":"Configurazione completions: non trovata","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Configurazione completions: non accessibile","COMPLETION_CONFIG_NAME_RESERVED":"Configurazione completions: nome riservato","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Configurazione completions: nome già esistente","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Configurazione completions: cambiamento visibilità non consentito","COMPLETION_CONFIG_MISSING_MANDATORY_PREFIX":"Configurazione completions: prefisso obbligatorio mancante","COMPLETION_CONFIG_VISIBILITY_NOT_PERMITTED":"Configurazione completions: visibilità non consentita","COMPLETION_CONFIG_USE_AS_DEFAULT_NOT_PERMITTED":"Configurazione completions: uso come default non consentito","COMPLETION_CONFIG_USE_AS_DEFAULT_REQUIRES_TENANT_VISIBILITY":"Configurazione completions: uso come default richiede visibilità tenant","COMPLETION_CONFIG_CHARGEABLE_NOT_PERMITTED":"Configurazione completions: chargeable non consentito","COMPLETION_CONFIG_INVALID_APPLY_TO":"Configurazione completions: apply to non valido","COMPLETION_CONFIG_APPLY_TO_TENANT_NOT_ALLOWED":"Configurazione completions: apply to tenant non consentito","TRUSTED_APPLICATION_NOT_FOUND":"Applicazione trusted non trovata","TRUSTED_APPLICATION_NOT_ACCESSIBLE":"Applicazione trusted non accessibile","TRUSTED_APPLICATION_NAME_REQUIRED":"Applicazione trusted: nome richiesto","TRUSTED_APPLICATION_TOKEN_REQUIRED":"Applicazione trusted: token richiesto","TRUSTED_APPLICATION_NAME_ALREADY_EXISTS":"Applicazione trusted: nome già esistente","TRUSTED_APPLICATION_INVALID_TOKEN":"Applicazione trusted: token non valido"}}');var TB;TB=JSON.parse('{"yes":"Yes","no":"No","confirm":"Confirm","apply":"Apply","cancel":"Cancel","show":"Show","hide":"Hide","send":"Send","close":"Close","edit":"Edit","delete":"Delete","loading":"Loading","expand":"Expand","collapse":"Collapse","fullscreenEnter":"Enter fullscreen","fullscreenExit":"Exit fullscreen","center":"Center","bottom":"Bottom","hidden":"Hidden","day":"Day","all":"All","today":"Today","yesterday":"Yesterday","placeholder":"Ask a question","last_7_days":"Last 7 days","last_30_days":"Last 30 days","month":"Month","copied":"Copied!","year":"Year","dayPlaceholder":"DD","monthPlaceholder":"MM","yearPlaceholder":"YYYY","createdAt":"Creation date","date":"Birth date","selected":"Selected","page":"page","actions":"Actions","next":"Next","previous":"Previous","copy":"Copy","copyRawCode":"Copy raw code","copyToClipboard":"Copy to clipboard","showOriginalText":"Show original","showTranslatedText":"Show translation","exactPosition":"Exact position","uncertain":"Uncertain","question":"Question","nothingFound":"Nothing found","venue":"Venue","searchVenue":"Search venue...","privacyPolicy":"Privacy policy","popularLanguages":"Popular","allLanguages":"All Languages","memoriBlockedTitle":"Blocked","memoriBlockedUntil":"Agent blocked until {{date}}","memoriBlockedAnon":"Currently \\"{{name}}\\" can\'t answer, come back here on {{date}}","memoriBlockedReasonExceedChats":"because it has exceeded the monthly threshold of allowed chats.","memoriBlockedGiverHelper":"You can still manage it as administrator, but other users will not be able to interact with it.","generatedByAI":"Answer generated by AI, may occasionally generate incorrect informations","reasoning":"Reasoning...","whyThisAnswer":"Why this answer?","whyThisAnswerHelper":"This answer was generated automatically by an artificial intelligence based on these verified contents.","receiverLabel":"Assigned to","completionsEnabled":"Advanced AI, can respond with automatically generated answers that may sometimes contain incorrect information","completionProviderDown":"This agent is integrated with a generative AI from {{provider}}, but it is currently unavailable. Try again later.","completionProviderMajorOutage":"This agent is integrated with a generative AI from {{provider}}, but it is completely down. This feature will not be available until the service is restored.","completionProviderPartialOutage":"This agent is integrated with a generative AI from {{provider}}, but it is experiencing partial outages. Some features may be unavailable or perform poorly.","completionProviderDegraded":"This agent is integrated with a generative AI from {{provider}}, but it is performing slower than usual. Responses may take longer or be less accurate.","completionProviderFallbackName":"an external provider","completionProviderCheckStatusPage":"Check status page","boardOfExperts":"Board of experts","birthDate":"Birth date","birthDateHelper":"We ask for your birth date only to enable or disable functionalities that have age restrictions","underage":"You must be at least {{age}} years old to sign up.","underageTwinSession":"You must be at least {{age}} years old to interact with this agent.","errorFetchingSession":"Error during session loading","errorGettingReferralURL":"Error during referral loading","errorReopeningSession":"Error during session reopening","ageVerification":"Age verification","ageVerificationText":"To interact with this agent, you must be at least {{minAge}} years old.","nsfw":"NSFW: This agent contains adult contents","deepThought":"Deep Thought","deepThoughtHelper":"Deep Thought is an advanced feature of the AI that will allow you to fully exploit your conversations by keeping track of them. The AI with Deep Thought can give you information tailored to you and the things you will share together. Allow the agent\'s author to contact you for commercial offers regarding products you have shown interest in.","deepThoughtDisclaimerTitle":"Deep Thought enabled","deepThoughtDisclaimer":"Deep Thought is an advanced feature of the AI that will allow you to fully exploit your conversations by keeping track of them. The AI with Deep Thought can give you information tailored to you and the things you will share together.","deepThoughtPreDisclaimerUnlogged":"Log in to enable Deep Thought.","deepThoughtPreDisclaimerNotAllowed":"Deep Thought is disabled since you didn\'t consent its usage, you can change this any time in your account settings.","notEnoughCredits":"The author of this agent does not have enough credits to answer your question.","confirmDialog":{"title":"Do you want to leave this page?","message":"The changes you made will be lost."},"knownFacts":{"title":"Known facts","description":"Details of the information shared between you and {{memoriName}}","type":"Type","typeShortTerm":"Short term","typeLongTerm":"Long term","typeHelper":"Types:\\n- Short Term: this Known Fact is always used during conversations\\n- Long Term: this Known Fact is used during conversations only if relevant to the current question","text":"Text","deleteSuccess":"Known fact deleted","deleteConfirmTitle":"Delete known fact","deleteConfirmMessage":"Are you sure you want to delete this known fact?","deleteSelectedConfirmTitle":"Delete selected known facts","deleteSelectedConfirmMessage":"Are you sure you want to delete the selected known facts?"},"auth":{"title":"Authentication","useRecoveryTokens":"Use recovery tokens","tokens":"Tokens","addToken":"Add token","usePassword":"Use password","passwordRequired":"Password required","invalidCredentials":"Invalid credentials","atLeast":"At least"},"widget":{"instruct":"Instruct","test":"Test","sound":"Sound","position":"Position preferences","settings":"Settings","share":"Share","shareChat":"Share chat","sendOnKeypress":"Hit Enter to send","sendOnClick":"Click on Submit","boardOfExperts":"Board of experts","showExpertsInTheBoard":"Show experts in this board","expertsInTheBoard":"Experts in this board","goToIntegrationsToCustomizeAvatar":"To customize the avatar, go to Share and customize the public page"},"exportChatHistory":{"exportPDF":"Export chat as PDF","exporting":"Exporting...","empty":"No chat history to export","pdfNotSupported":"PDF export is not supported in this browser","success":"Chat exported to PDF successfully","error":"Failed to export chat to PDF. Please try again."},"write_and_speak":{"micButtonPopover":"Click the button to speak","micButtonPopoverListening":"Click the button to stop speak","pageInstructExplanation":"To teach me new things click on the INSTRUCT ME button to get started","pageTryMeExplanation":"To talk to me click on the START button to get started","pagePrivacyExplanation":"The conversations are visible by the author of the agent","downloadChat":"Download chat","pagePrivacyExplanationList":{"allConversations":"All conversations with this agent are visible to the author of the agent","anonymousUser":"For anonymous users: the author will see the content of the conversation and your IP address","registeredUser":"For registered users: the author will see the content of the conversation and your username","contentAndUsername":"The author can see the content, your username and your IP address","contentAndIpAddress":"The author can see the content and your IP address","authorUsesInfo":"The author uses this information to improve the features of the agent and to provide you with a better service. Continuing the conversation, you accept these conditions."},"instructButton":"INSTRUCT ME","tryMeButton":"START","resumeButton":"RESUME","chatHistory":"Chat history","chatHistoryDescription":"Show the chat history with this agent","loadingChatHistory":"Loading chat history...","noChatHistoryAvailable":"No chat history available","noResultsFound":"No results found for \\"{{searchText}}\\"","searchInChatHistory":"Search in chat history...","latestFirst":"Latest first","oldestFirst":"Oldest first","exportChat":"Export Chat","conversationStartedLabel":"Conversation started","settingsHeaderLabel":"Setup here if you want to set the continuous speech, and change the silence seconds if you want to customize them.","continuousSpeechLabel":"Continuous speech","continuousSpeechDisabled":"Continuous speech disabled because the agent is in mute mode","holdToSpeak":"Hold to speak","releaseToEndListening":"Release to end listening","pressAndHoldToSpeak":"Press and hold to speak","microphoneMode":"Microphone mode","hideEmissionsLabel":"Hide text emitted by the agent","secondsLabel":"Set seconds","controlsPosition":"Controls position","avatarControls":"Avatar controls","height":"Height","depth":"Depth","avatarType":"Avatar type","suggestions":"Use the arrow keys to adjust the avatar height\\nUse +/- to adjust the avatar depth","blob":"Blob","avatar3d":"3D Avatar","zoomed":"Zoomed","normal":"Normal","far":"Far","enablePositionControls":"Enable position controls","tryMeHeaderLabel":"TRY","unknownPosition":"Unknown position","fieldPlace":"Write the place (eg \'Milano\')","showMapLinkFor":"Show the position on the map","useMyPosition":"Use my position","myPosition":"Your position","updatingPosition":"Updating position...","placeNotFound":"Place not found!","requirePosition":"Insert your position before start","requirePositionHelp":"To talk to {{name}} you have to decide whether to provide your position or not. This is because different answers that it can provide you may depend on where you are.","dontWantToProvidePosition":"I don\'t want to provide my position","attachmentsLabel":"Enrich your message","iWantToTalkToIn":"I want to talk to {{name}} in","message":"message","messages":"messages","page":"Page {{current}} of {{total}}"},"artifact":{"close":"Close","size":"Size","generated":"Generated","download":"Download","print":"Print","external":"Open in a new window","type":"Type","fullscreen":"Fullscreen","exitFullscreen":"Exit fullscreen","generatedAt":"Generated at","copy":"Copy","open":"Open","code":"Code","preview":"Preview","copied":"Copied!","error":"Error","generatingPdf":"Generating PDF...","copying":"Copying...","moreCopyOptions":"More copy options","copyAs":"Copy as","downloadAsMarkdown":"Download as Markdown","downloadRawMarkdownText":"Download raw markdown text","downloadAsPdf":"Download as PDF","exportAsPdfDocument":"Export as PDF document","downloadAsHtml":"Download as HTML","downloadFormattedHtml":"Download formatted HTML","viewMode":"View Mode","codeMode":"Code Mode","refresh":"Refresh","share":"Share","downloadAsJson":"Download as JSON","downloadJsonData":"Download JSON data","downloadAsPng":"Download as PNG","downloadPngImage":"Download PNG image","downloadAsJpeg":"Download as JPEG","downloadJpegImage":"Download JPEG image","downloadAsGif":"Download as GIF","downloadGifImage":"Download GIF image","downloadAsWebp":"Download as WebP","downloadWebpImage":"Download WebP image","copyAsSvg":"Copy as SVG","copySvgSourceCode":"Copy SVG source code","copyAsPlainText":"Copy as Plain Text","copyAsText":"Copy as text","copyAsLanguage":"Copy as {{language}}","copyLanguageCode":"Copy {{language}} code","copyWithoutSyntaxHighlighting":"Copy without syntax highlighting","copyTextContent":"Copy text content","pdfExportNotSupported":"PDF export is not supported in this browser","popupBlocked":"Popup blocked! Please enable popups to print.","safariPdfInstructions":"PDF export opened in new window. Please use Cmd+P (Mac) or Ctrl+P (Windows) to print and save as PDF."},"upload":{"loginRequired":"Login required","pastedText":"pasted-text","uploadNotification":"Upload Failed","loginRequiredDescription":"Please login to upload images","uploadFiles":"Upload files ({{shortcut}}+O to open file chooser)","uploadFilesWithShortcut":"{{shortcut}}+O to open file chooser","uploadImages":"Upload images","replace":"Replace","maxImagesReached":"You can upload up to {{max}} images","maxDocumentsReached":"You can upload up to {{max}} documents","remaining":"remaining","lastDocumentSlot":"Upload last document","uploadDocuments":"Upload documents","maxReached":"Max limit reached","imageTitle":"Image title: {{title}}","titleHelp":"Adding a descriptive title helps the AI provide more context and appropriate responses.","titlePlaceholder":"Enter image title","apiClientNotConfigured":"API client not configured properly for media upload","fileReadingFailed":"File reading failed","uploadFailed":"Upload failed","uploadSuccess":"Upload success","titleImage":"Image title: {{title}}","uploadSuccessDescription":"The file has been uploaded successfully","titleImageUpload":"Upload images","partialUpload":"Only {{uploaded}} images on {{total}} will be uploaded. Maximum {{max}} images allowed.","maxImages":"Maximum {{max}} images allowed.","upload":"Upload","dragAndDropFiles":"Drag and drop files here to add them to the chat","pasteMaxAttachmentsReached":"Maximum {{max}} attachments. Remove one to add this as a file.","pasteContentTooLong":"Pasted content is too long (max {{size}}KB). Shorten or split it.","pasteContentExceedsLimit":"Pasted content exceeds the size limit. Try shortening the text or splitting it into smaller parts.","pasteAddedAsAttachment":"Pasted content added as attachment","contextSizeExceedsLimit":"Context size exceeds the limit. Try reducing the number of files or content in the conversation.","filesNotAddedMaxAllowed":"{{count}} file(s) not added (maximum {{max}} files allowed).","documentsNotAddedMaxAllowed":"{{count}} document(s) not added (maximum {{max}} files allowed).","imagesNotAddedMaxAllowed":"{{count}} image(s) not added (maximum {{max}} files allowed).","documentsNotAddedContextSize":"{{count}} document(s) not added (context size limit)."},"media":{"title":"Title","editAttributes":"Edit media attributes","uploadMimeTypeNotAllowed":"The file type is not allowed","uploadSizeLimitMessage":"The uploaded size is too big (max {{size}}MB)","uploadWrongResolutionMessage":"The resolution must be {{width}}x{{height}} pixel","memoriNameAlreadyUsed":"You already have an agent with this name","uploadHelperImages":"Upload a file with extension png, jpg, jpeg or gif, and having at maximum a size of {{size}}MB","uploadHelper":"Upload a file having at maximum a size of {{size}}MB","uploadError":"Upload failed","square":"square","scaleRatio":"Scale ratio","addMediaLabel":"Add a media","insertThisMediaMsg":"Insert these media","mediaUploadMessage":"Click to load a new media","addLinkLabel":"Add a link","linkKey":"URL","linkValue":"Link title","insertThisLink":"Insert a link to {{url}} with title {{title}}"},"gamification":{"level":"Level","points":"points","memoriReachedLevel":"became more evolved and reached level","levelGoToStatistics":"{{memori}} is at level {{level}} with {{points}} points. Click to go to statistics.","congratulationsNewLevel":"Congratulations, you have reached a new level!","congratulationsNewLevelDescription":"Your agent became more evolved with {{points}} points, look at the","statistics":"statistics"},"login":{"login":"Login","logout":"Logout","user":"User","loggedDrawerTitle":"Hi, {{name}}!","userNameRequired":"Username required","userName":"Username","userNamePlaceholder":"Enter username","loginDrawerTitle":"Login","signupDrawerTitle":"Sign up","newUserSignUp":"New user?","signUp":"Sign up!","alreadyHaveAnAccount":"Already have an account?","backToLogin":"Back to login","registrationDisabled":"Registration is disabled","contactAdmin":"Contact the administrator to request access","userNameOrEmail":"Username or email","email":"Email","emailFormatError":"Please, insert a valid email","username":"Username","usernameContainsReservedWord":"Username contains a reserved word, please choose another one","usernameFormatError":"Username must be at least 3 characters long and contain only letters, numbers and _","otpCode":"Verification code","resendVerificationCode":"Resend code","resentVerificationCode":"Confirmation code sent! Please check your email.","welcomeTitle":"Welcome back","welcomeDescription":"Enter your 4-digit verification code to continue to your account","otpTitle":"Enter verification code","otpDescription":"Enter the 4-digit code you generated in your account","otpStep1":"Click the button below to open your account","otpStep2":"Generate a 4-digit verification code (valid for 60 seconds)","otpStep3":"Return here and enter the code","startOtpLogin":"Start verification","generateOtp":"Generate code","otpTimer":"Code expires in {{seconds}} seconds","otpInvalidFormat":"Please enter a valid 4-digit code","otpInvalid":"Invalid verification code","otpError":"Error validating code. Please try again.","otpSuccess":"Login successful!","otpEmailTitle":"Enter your email","otpEmailDescription":"Enter your email address to receive a verification code","otpCodeDescription":"Enter the 4-digit code sent to {{email}}","emailPlaceholder":"Enter your email","sendOtp":"Send code","resendOtp":"Resend code","resending":"Resending...","backToEmail":"Back to email","otpSent":"Verification code sent!","otpResent":"Code resent successfully!","otpSendError":"Error sending code. Please try again.","emailRequired":"Email required","emailInvalid":"Please enter a valid email address","otpNotFound":"Verification code not found","otpExpired":"Verification code has expired","otpMissing":"Verification code is required","otpSuccessMessage":"Verification successful! Redirecting...","otpSuccessDescription":"Your account has been verified successfully. You will be redirected shortly.","otpHelp":"Enter the 4-digit code from your email","emailHelp":"We\'ll send you a verification code","userFetchError":"Error loading user data. Please try again.","otpStep1Title":"Enter Email","otpStep2Title":"Check Email","otpStep3Title":"Enter Code","featureFast":"Fast","featureSecure":"Secure","featureMobile":"Mobile","password":"Password","newPassword":"New password","confirmPassword":"Confirm Password","currentPassword":"Current password","passwordMatchingError":"Passwords do not match.","passwordFormatError":"Password must be at least 8 characters long and contain at least a number, an upper case letter, a lower case letter and a symbol","pwdWeak":"Weak","pwdAcceptable":"Acceptable","pwdStrong":"Strong","mustChangePassword":"You must change your password","passwordChange":"Change password","emailChange":"Change email","avatarChange":"Change avatar","underage":"You must be at least {{age}} years old to sign up.","optional":"Optional","birthDate":"Birth date","birthDateHelper":"We ask for your birth date only to enable or disable functionalities that have age restrictions","missingData":"Missing informations","missingDataHelper":"We know that this is a bit annoying, but we need some more informations to complete your registration.","goToAccountToChangeYourPreferences":"You can change your choice at any time from your Account page.","deepThoughtExplaination":"Deep Thought is an advanced feature of the AI that will allow you to fully exploit your conversations by keeping track of them. The AI with Deep Thought can give you information tailored to you and the things you will share together. Allow the agent\'s author to contact you for commercial offers regarding products you have shown interest in.","tnCAndPPAcceptedHelper":"Since your last login, T&C and Privacy Policy have changed. Please accept them, otherwise you won\'t be able to make changes to your Twins. You can always delete your account in your user profile page.","privacyLabel":"I have read and accepted the","privacyAndCookiePolicy":"Privacy e Cookie Policy","and":"and","termsOfService":"Terms of Service","pAndCUAccepted":"I accept the terms of service about Deep Thought","editAccount":"Edit account","save":"Save","welcomeUser":"Welcome User","verified":"Verified","premiumUser":"Premium","quickActions":"Quick Actions","editProfile":"Edit Profile","notifications":"Notifications","help":"Help","logoutConfirm":"Are you sure you want to logout?","comingSoon":"Coming soon!","accountOverview":"Account Overview","notSet":"Not set","accepted":"Accepted","pending":"Pending","termsStatus":"Terms Status","enabled":"Enabled","disabled":"Disabled","advancedFeatures":"Advanced Features","successfullyLoggedIn":"{{username}} has successfully logged in"},"chatLogs":{"anyMessage":"Any message","atLeast":"At least {{count}} messages","atLeast2":"At least 2 messages","atLeast3":"At least 3 messages","atLeast5":"At least 5 messages","atLeast10":"At least 10 messages","atLeast15":"At least 15 messages","atLeast20":"At least 20 messages","customMinimumMessages":"Customize the number of messages"},"success":"Success","Error":"Error","internal server error":"Oupsie, sorry... Something went wrong on the server","error":"Error","error.loading":"Error while loading content.","error.generic":"Oupsie, sorry... something went wrong.","error.serverNotResponding":"We are doing maintenance or releasing updates. Please try again later.","error.notFound":"Oupsie, we didn\'t find the page you were looking for.","error.goBackTo":"You can try to go back to the","error.reloadPage":"Reload the page","error.tryAgain":"Try again","error.unauthorized":"You are unauthorized to view this content.","error.unprocessableEntity":"Error while processing the request. Check the data you entered.","errors":{"TENANT_NOT_FOUND":"Tenant not found","TENANT_REGISTRATION_DISABLED":"Registration on this platform is disabled","TENANT_MISSING_NAME":"Tenant: name missing","TENANT_MAX_USERS_REACHED":"Maximum number of users reached","TENANT_MAX_ADMINS_REACHED":"Maximum number of admin users reached","TENANT_ALREADY_EXISTS":"Tenant already exists","TENANT_MISSING_DESCRIPTION":"Tenant: description missing","TENANT_CANT_SET_COMPLETION_PROVIDER":"Tenant: can\'t set completion provider","TENANT_INVALID_TYPE":"Tenant: invalid type","USER_NOT_CONFIRMED":"User still not confirmed","USER_NOT_FOUND":"User not found","USER_OR_PASSWORD_INVALID":"Invalid user or password","USER_MUST_CHANGE_PASSWORD":"You must change your password","USER_MUST_ENTER_VERIFICATION_CODE":"You must enter the verification code","USER_MISSING_TENANT":"User: missing tenant","USER_MISSING_NAME":"User: name is missing","USER_MISSING_PASSWORD":"User: password missing","USER_MISSING_EMAIL":"User: Missing email","USER_MISSING_VERIFICATION_CODE":"User: Missing verification code","USER_NAME_ALREADY_USED":"User name already in use","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"The password does not meet the security rules","USER_EMAIL_ALREADY_USED":"Email already in use","USER_EMAIL_INVALID":"Invalid email","USER_VERIFICATION_CODE_INVALID":"Invalid verification code","USER_MISSING_NAME_OR_EMAIL":"Missing username or email","USER_NAME_INVALID":"Invalid user name","USER_HAS_ONE_OR_MORE_MEMORI":"The user has one or more memories","USER_MISSING_NEW_PASSWORD":"User: new password missing","USER_NOTHING_TO_DO":"Nothing to do","USER_CANT_CREATE_MEMORI":"User not allowed to create agents","USER_MAX_MEMORI_REACHED":"Maximum number of agents reached","USER_TOO_MANY_ATTEMPTS":"Too many attempts","USER_MUST_ACCEPT_TNC_AND_PP":"You must accept the terms and conditions","USER_BIRTH_DATE_CANT_BE_CHANGED":"Date of birth cannot be changed","USER_CANT_SET_COMPLETION_PROVIDER":"User: not allowed to manage completion provider","USER_CANT_ENABLE_DEEP_THOUGHT":"User: not enabled to manage Deep Thought","USER_CANT_ENABLE_DCM_INTEGRATION":"User: not enabled to manage DCM integration","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"User: not allowed to manage chaining or expert group","USER_CREATION_BILLING_DENIED_PERMISSION":"You don\'t have enough credits to create an agent","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"The user has one or more completion configurations","USER_CANT_BE_DELETED":"User can\'t be deleted","USER_ORDER_BY_INVALID":"Order by invalid","MEMORI_NOT_FOUND":"Agent not found","MEMORI_NOT_ACCESSIBLE":"Agent not accessible","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Only owner can change tag or pin","SESSION_NOT_FOUND":"Session not found","SESSION_IS_NOT_ADMINISTRATIVE":"Non-administrative session","SESSION_EXPIRED":"Session expired","SESSION_OTP_NOT_FOUND":"Verification code not found","SESSION_OTP_EXPIRED":"Verification code has expired","SESSION_MISSING_TEMPORARY_TOKEN":"Verification code is required","MEMORI_MISSING_CONFIGURATION":"Agent: missing configuration","MEMORI_CONFIGURATION_NOT_FOUND":"Agent: configuration not found","MEMORI_INVALID_PRIVACY_TYPE":"Agent: invalid privacy type","MEMORI_MISSING_PASSWORD":"Agent: missing password","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Agent: total number of invalid recovery tokens","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Agent: minimum number of invalid recovery tokens","MEMORI_INVALID_VOICE_TYPE":"Agent: invalid voice type","MEMORI_MISSING_NAME":"Agent: missing name","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Agent: missing password or recovery token","MEMORI_INVALID_ID":"Agent: invalid ID","MEMORI_NAME_ALREADY_USED":"Agent name already in use","MEMORI_INVALID_PIN":"Agent: Invalid PIN","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Agent: TAG and PIN change require separate operations","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Agent: no password required when public","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Deep Thought requires completions to be enabled","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"The expert group requires completions to be enabled","MEMORI_INVALID_COMPLETION_CONFIG":"Agent: invalid completions configuration","MEMORI_MACRO_FUNCTIONS_REQUIRES_COMPLETIONS":"Macro functions requires completions to be enabled","MEMORI_BLOCKING_DATE_MISSING_OR_WRONG":"Agent: blocking date missing or wrong","MEMORI_LIST_FILTER_NOT_SPECIFIED":"Agent: list filter not specified","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Transfer: missing destination user","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Transfer: invalid destination user ID","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Transfer: invalid destination user data","MEMORI_TRANSFER_NOTHING_TO_DO":"Transfer: nothing to do","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Agent: configuration cannot be changed","MEMORI_MISSING_NEW_PASSWORD":"Agent: new password missing","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"Feature requires subscription","INTEGRATION_NOT_FOUND":"Integration not found","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Invalid date from format","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Invalid date to format","MEMORI_SESSION_NOT_FOUND":"Session not found","MEMORI_SESSION_DOESNT_ACCEPT_MEDIA":"Session doesn\'t accept media","INTEGRATION_INVALID_TYPE":"Invalid integration type","INTEGRATION_ALREADY_EXISTS":"Integration already exists","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Non-public memories cannot be integrated","INTEGRATION_MISSING_INVOCATION_TEXT":"Integration: missing invocation text","INTEGRATION_MISSING_DEVICE_EMAILS":"Integration: missing device email","INTEGRATION_MEMORI_IS_EMPTY":"Empty memories cannot be integrated","INTEGRATION_MISSING_PRIVACY_POLICY":"Integration: privacy policy missing","INTEGRATION_MISSING_CATEGORY":"Integration category missing","INTEGRATION_MISSING_DESCRIPTION":"Missing integration description","INTEGRATION_INVALID_INVOCATION_TEXT":"Invalid invocation text","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home no more available","UPLOAD_REQUIRES_MULTIPART_ENCODING":"Upload requires multipart encoding","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Upload: missing content type boundary","UPLOAD_MAX_LENGTH_EXCEEDED":"Upload: maximum size exceeded","UPLOAD_FILE_IS_EMPTY":"Upload: empty file","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Upload: invalid file type or signature","UPLOAD_MISSING_FILE_NAME":"Upload: missing file name","UPLOAD_INVALID_MEMORY_ID":"Upload: Invalid content ID","UPLOAD_MISSING_FILE_CONTENT":"Upload: Missing file content","ASSET_NOT_FOUND":"Asset not found","ASSET_NOT_ACCESSIBLE":"Asset not accessible","ASSET_MISSING_SESSION_ID":"Asset: missing session ID","ASSET_INVALID_FILE_NAME":"Asset: invalid file name","ASSET_MALWARE_SCAN_THREATS_FOUND":"Asset: found malware threats","INVITATION_NOT_FOUND":"Invitation not found","INVITATION_NOT_ACCESSIBLE":"Invitation not accessible","INVITATION_ALREADY_ACCEPTED":"Invitation already accepted","INVITATION_ALREADY_REJECTED":"Invitation already rejected","INVITATION_MISSING_DESTINATION_EMAIL":"Invitation: missing destination email","INVITATION_DESTINATION_EMAIL_INVALID":"Invitation: destination email invalid","INVITATION_MISSING_TAG":"Invitation: missing tag","INVITATION_MISSING_PIN":"Invitation: PIN missing","INVITATION_INVALID_PIN":"Invitation: invalid PIN","INVITATION_INVALID_TYPE":"Invitation: invalid type","INVITATION_MISSING_DESTINATION_NAME":"Invitation: destination name missing","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Invitation: tag and pin can\'t be changed","INVITATION_CANT_BE_CHANGED":"Intation: can\'t be changed","ACTIONLOG_INVALID_USER_ID":"Invalid user ID","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Date from: invalid format","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Date to: invalid format","ACTIONLOG_INVALID_MEMORI_ID":"Invalid Memori ID","CONSUMPTIONLOG_INVALID_TYPE":"Invalid log type","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Date from: invalid format","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Date to: invalid format","CONSUMPTIONLOG_INVALID_USER_ID":"Invalid user ID","CONSUMPTIONLOG_INVALID_MEMORI_ID":"Invalid Memori ID","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Notifications: Invalid chat log extraction period","BROADCAST_NOT_ALLOWED":"Broadcast not allowed","INVALID_NOTIFICATION_TYPE":"Invalid notification type","NOTIFICATION_NOT_FOUND":"Notification not found","INVALID_NOTIFICATION_FILTER":"Invalid notification filter","INVALID_NOTIFICATION_PERIOD":"Invalid notification period","PROCESS_INVALID_TYPE":"Invalid process type","PROCESS_ALREADY_RUNNING":"Process already running","PROCESS_NOT_FOUND":"Process not found","IMPORTCSV_MISSING_ROWS":"CSV import: missing rows","IMPORTCSV_MISSING_CSV":"CSV Import: Missing CSV","IMPORTCSV_MISSING_SEPARATOR":"CSV import: missing separator","IMPORTCSV_INVALID_SEPARATOR":"CSV import: invalid separator","IMPORTCSV_MISSING_HEADERS":"CSV import: missing headers","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"CSV import: missing title variant separator","IMPORTCSV_INVALID_RECEIVER_ID":"CSV import: invalid receiver ID","IMPORTCSV_INVALID_MEDIA_LINK":"CSV import: invalid media link","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"CSV import: invalid link title","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"CSV import: undetectable character encoding","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"CSV Import: Cannot import to Secret Memories","IMPORTTXT_MISSING_ROWS":"Importing TXT: missing rows","IMPORTTXT_INVALID_GRANULARITY":"Import TXT: invalid granularity","IMPORTTXT_INVALID_RECEIVER_ID":"Import TXT: invalid receiver ID","IMPORTTXT_INVALID_MEDIA_LINK":"Import TXT: invalid media link","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"Import TXT: invalid link title","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"TXT import: undetectable character encoding","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"TXT Import: Cannot import to Secret Memories","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"Import TXT: import limit exceeded","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"Import TXT: import on GPT-4 requires API key","IMPORTTXT_IMPORT_REQUIRES_PAYING":"Import TXT: Import requires a paying plan","IMPORTTXT_BILLING_DENIED_PERMISSION":"Import TXT: you don\'t have enough credits for the operation","IMPORT_MISSING_ROWS":"Import: missing rows","IMPORT_CANT_IMPORT_TO_SECRET_MEMORI":"Import: can\'t import to Secret Memories","IMPORTMEMORI_INVALID_MEMORI_SPECS":"Import MEMORI: invalid memory specs","IMPORT_MISSING_JSONL":"Import: missing JSONL","IMPORTMEMORI_INVALID_SPECS":"Import MEMORI: invalid specs","EXPORT_MISSING_PASSWORD":"Export: missing password","EXPORTCSV_MISSING_CSV_SPECS":"CSV export: missing CSV specifications","EXPORTCSV_MISSING_SEPARATOR":"CSV export: missing separator","EXPORTCSV_INVALID_SEPARATOR":"CSV export: invalid separator","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"CSV export: missing title variant separator","EXPORTCSV_MISSING_NEW_LINE_CHAR":"CSV export: missing newline character","EXPORTCSV_INVALID_NEW_LINE_CHAR":"CSV export: invalid newline character","EXPORTCSV_MISSING_PASSWORD":"CSV export: missing password","EXPORTJSONL_MISSING_JSONL_SPECS":"JSONL export: missing JSONL specifications","EXPORTJSONL_MISSING_PLATFORM":"JSONL export: missing platform","EXPORTJSONL_INVALID_PLATFORM":"JSONL export: invalid platform","EXPORTJSONL_MISSING_PASSWORD":"JSONL export: missing password","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"JSONL Export: Export requires a paid plan","ANALYSIS_MISSING_QUERY":"Analysis: missing query","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Analysis: Unable to analyze Secret Memories","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Analysis: matching user query requires Deep Thinking","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Badge assignment: incorrect or missing credentials","BADGE_ASSIGNMENT_MISSING_REF_ID":"Badge assignment: ref ID missing","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Badge assignment: result not found","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Badge assignment: Missing assertion URL","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Badge Assignment: Missing Badge URL","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Badge assignment: missing issuer URL","BADGE_ASSIGNMENT_INVALID_URL":"Badge assignment: Invalid URL","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Badge assignment: missing recipient","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Badge assignment: unknown recipient type","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Badge assignment: missing recipient identity","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Badge assignment: missing recipient hash type","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Badge assignment: recipient hash type unknown","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Badge assignment: incorrect recipient identity","BADGE_NOT_FOUND":"Badge not found","OUTCOME_NO_DCM_CONFIGURED":"Outcome: no DCM configured","OUTCOME_USER_BADGES_DISABLED":"Outcome: user badges disabled","COMPLETION_CONFIG_MISSING_NAME":"Completions configuration: missing name","COMPLETION_CONFIG_MISSING_PROVIDER":"Completions configuration: missing provider","COMPLETION_CONFIG_MISSING_ENDPOINT":"Completions configuration: missing endpoint","COMPLETION_CONFIG_MISSING_API_KEY":"Completions configuration: missing API key","COMPLETION_CONFIG_MISSING_MODEL":"Completions configuration: missing model","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Completions configuration: at least one completions type must be specified","COMPLETION_CONFIG_INVALID_NAME":"Completions configuration: invalid name","COMPLETION_CONFIG_INVALID_PURPOSE":"Completions configuration: invalid completions type","COMPLETION_CONFIG_INVALID_ENDPOINT":"Completions configuration: invalid endpoint","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Completions configuration: inconsistent endpoint","COMPLETION_CONFIG_INVALID_PROVIDER":"Completions configuration: invalid provider","COMPLETION_CONFIG_NOT_FOUND":"Completions configuration: not found","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Completions configuration: not accessible","COMPLETION_CONFIG_NAME_RESERVED":"Completions configuration: name reserved","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Completions configuration: name already exists","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Completions configuration: visibility change not allowed","COMPLETION_CONFIG_MISSING_MANDATORY_PREFIX":"Completions configuration: missing mandatory prefix","COMPLETION_CONFIG_VISIBILITY_NOT_PERMITTED":"Completions configuration: visibility not permitted","COMPLETION_CONFIG_USE_AS_DEFAULT_NOT_PERMITTED":"Completions configuration: use as default not permitted","COMPLETION_CONFIG_USE_AS_DEFAULT_REQUIRES_TENANT_VISIBILITY":"Completions configuration: use as default requires tenant visibility","COMPLETION_CONFIG_CHARGEABLE_NOT_PERMITTED":"Completions configuration: chargeable not permitted","COMPLETION_CONFIG_INVALID_APPLY_TO":"Completions configuration: apply to invalid","COMPLETION_CONFIG_APPLY_TO_TENANT_NOT_ALLOWED":"Completions configuration: apply to tenant not allowed","TRUSTED_APPLICATION_NOT_FOUND":"Trusted application not found","TRUSTED_APPLICATION_NOT_ACCESSIBLE":"Trusted application not accessible","TRUSTED_APPLICATION_NAME_REQUIRED":"Trusted application: name required","TRUSTED_APPLICATION_TOKEN_REQUIRED":"Trusted application: token required","TRUSTED_APPLICATION_NAME_ALREADY_EXISTS":"Trusted application: name already exists","TRUSTED_APPLICATION_INVALID_TOKEN":"Trusted application: invalid token"}}');var IB;IB=JSON.parse('{"yes":"Oui","no":"Non","confirm":"Confirmer","apply":"Appliquer","cancel":"Annuler","show":"Montrer","hide":"Cacher","send":"Envoyer","close":"Fermer","edit":"Modifier","delete":"Supprimer","loading":"Chargement","expand":"Développer","collapse":"Effondrement","fullscreenEnter":"Entrez en plein écran","fullscreenExit":"Quitter le plein écran","center":"Centre","bottom":"Bas","hidden":"Caché","day":"Jour","month":"Mois","year":"Année","placeholder":"Faites une question","createdAt":"Date de création","all":"Tous","today":"Aujourd\'hui","date":"Date de naissance","yesterday":"Hier","last_7_days":"7 derniers jours","copied":"Copié !","missingData":"Informations manquantes","last_30_days":"30 derniers jours","selected":"Choisi","page":"page","actions":"Actes","next":"Suivant","previous":"Précédent","copy":"Copie","copyRawCode":"Copier le code brut","copyToClipboard":"Copier dans le presse-papier","showOriginalText":"Afficher l\'original","showTranslatedText":"Afficher la traduction","exactPosition":"Position exacte","uncertain":"Incertain","question":"Question","nothingFound":"Rien trouvé","venue":"Lieu","searchVenue":"Rechercher un lieu...","popularLanguages":"Populaires","allLanguages":"Toutes les langues","memoriBlockedTitle":"Bloqué","memoriBlockedUntil":"Agent bloqué jusqu\'à {{date}}","memoriBlockedAnon":"Actuellement \\"{{name}}\\"Je ne peux pas répondre, reviens ici {{date}}","memoriBlockedReasonExceedChats":"car il a dépassé le seuil mensuel de chats autorisés.","memoriBlockedGiverHelper":"Vous pouvez toujours le gérer en tant qu\'administrateur, mais les autres utilisateurs ne pourront pas interagir avec lui.","generatedByAI":"Réponse générée par l\'IA, peut occasionnellement générer des informations incorrectes","reasoning":"Réflexion...","whyThisAnswer":"Pourquoi cette réponse ?","whyThisAnswerHelper":"Cette réponse a été générée automatiquement par une intelligence artificielle basée sur ces contenus vérifiés.","receiverLabel":"Assigné à","completionsEnabled":"L\'IA avancée peut répondre avec des réponses générées automatiquement qui peuvent parfois contenir des informations incorrectes","completionProviderDown":"Ce Agent est intégré à une IA générative de {{provider}}, mais il est actuellement indisponible. ","completionProviderMajorOutage":"Ce Agent est intégré à une IA générative de {{provider}}, mais il est actuellement indisponible. Cette fonctionnalité ne sera pas disponible tant que le service ne sera pas restauré.","completionProviderPartialOutage":"Ce Agent est intégré à une IA générative de {{provider}}, mais il est actuellement indisponible. Cette fonctionnalité ne sera pas disponible tant que le service ne sera pas restauré.","completionProviderDegraded":"Ce Agent est intégré à une IA générative de {{provider}}, mais il est actuellement indisponible. Cette fonctionnalité ne sera pas disponible tant que le service ne sera pas restauré.","completionProviderFallbackName":"un prestataire externe","completionProviderCheckStatusPage":"Vérifier la page d\'état","boardOfExperts":"Conseil d\'experts","birthDate":"Date de naissance","birthDateHelper":"Nous demandons votre date de naissance uniquement pour activer ou désactiver les fonctionnalités qui ont des restrictions d\'âge","underage":"Vous devez être au moins {{age}} ans pour s\'inscrire.","underageTwinSession":"Vous devez être au moins {{age}} ans pour interagir avec ce Agent.","errorFetchingSession":"Erreur lors du chargement de la session","errorGettingReferralURL":"Erreur lors du chargement du référent","errorReopeningSession":"Erreur lors de la re-ouverture de la session","ageVerification":"Vérification de l\'âge","ageVerificationText":"Pour interagir avec ce Agent, vous devez être au minimum {{minAge}} ans.","nsfw":"NSFW : Ce jumeau contient du contenu pour adultes","deepThought":"Pensée profonde","deepThoughtHelper":"Deep Thought est une fonctionnalité avancée de l\'IA qui vous permettra d\'exploiter pleinement vos conversations en les gardant une trace. ","deepThoughtDisclaimerTitle":"Pensée profonde activée","deepThoughtDisclaimer":"Deep Thought est une fonctionnalité avancée de l\'IA qui vous permettra d\'exploiter pleinement vos conversations en les gardant une trace. ","deepThoughtPreDisclaimerUnlogged":"Connectez-vous pour activer Deep Thought.","deepThoughtPreDisclaimerNotAllowed":"Deep Thought est désactivé car vous n\'avez pas consenti à son utilisation, vous pouvez le modifier à tout moment dans les paramètres de votre compte.","notEnoughCredits":"L\'auteur de ce Agent n\'a pas suffisamment de crédits pour répondre à votre question.","confirmDialog":{"title":"Voulez-vous quitter cette page ?","message":"Les modifications que vous avez apportées seront perdues."},"knownFacts":{"title":"Faits connus","description":"Détails des informations partagées entre vous et {{memoriName}}","type":"Taper","typeShortTerm":"Court terme","typeLongTerm":"Long terme","typeHelper":"Types :\\n","text":"Texte","deleteSuccess":"Fait connu supprimé","deleteConfirmTitle":"Supprimer un fait connu","deleteConfirmMessage":"Êtes-vous sûr de vouloir supprimer ce fait connu ?","deleteSelectedConfirmTitle":"Supprimer les faits connus sélectionnés","deleteSelectedConfirmMessage":"Etes-vous sûr de vouloir supprimer les faits connus sélectionnés ?"},"auth":{"title":"Authentification","useRecoveryTokens":"Utiliser des jetons de récupération","tokens":"Jetons","addToken":"Ajouter un jeton","invalidCredentials":"Identifiants invalides","usePassword":"Utiliser le mot de passe","atLeast":"Au moins"},"widget":{"instruct":"Instruire","test":"Tester","sound":"Son","position":"Préférences de position","settings":"Paramètres","share":"Partager","shareChat":"Partager le chat","sendOnKeypress":"Appuyez sur Entrée pour envoyer","sendOnClick":"Cliquez sur Envoyer","boardOfExperts":"Conseil d\'experts","showExpertsInTheBoard":"Afficher les experts dans ce conseil","expertsInTheBoard":"Experts dans ce conseil","goToIntegrationsToCustomizeAvatar":"Pour personnaliser l\'avatar, allez dans Partager et personnalisez la page publique"},"exportChatHistory":{"exportPDF":"Exporter le chat en PDF","exporting":"Exportation en cours...","empty":"Aucun historique de chat à exporter","pdfNotSupported":"L\'exportation PDF n\'est pas prise en charge dans ce navigateur","success":"Chat exporté en PDF avec succès","error":"Échec de l\'exportation du chat en PDF. Veuillez réessayer."},"write_and_speak":{"micButtonPopover":"Cliquez sur le bouton pour parler","micButtonPopoverListening":"Cliquez sur le bouton pour arrêter de parler","pageInstructExplanation":"Pour m\'apprendre de nouvelles choses, cliquez sur le bouton INSTRUCTEZ-MOI pour commencer","pageTryMeExplanation":"Pour me parler, cliquez sur le bouton START pour commencer","pagePrivacyExplanation":"Les conversations sont visibles par l\'auteur de l\'agent","pagePrivacyExplanationTooltip":"En commençant la conversation, nous vous informons que :\\n\\n- Toutes les conversations avec cet agent sont visibles par l\'auteur de l\'agent\\n- Si vous utilisez la chat comme utilisateur anonyme, l\'auteur pourra voir le contenu de la conversation et votre adresse IP\\n- Si vous utilisez la chat comme utilisateur enregistré (connecté), l\'auteur pourra voir le contenu de la conversation et votre nom d\'utilisateur\\n- L\'auteur utilise ces informations pour améliorer les fonctionnalités de l\'agent et pour vous fournir un meilleur service\\n- En continuant la conversation, vous acceptez ces conditions.","pagePrivacyExplanationList":{"allConversations":"Toutes les conversations avec cet agent sont visibles par l\'auteur de l\'agent","anonymousUser":"Pour les utilisateurs anonymes : l\'auteur verra le contenu de la conversation et votre adresse IP","registeredUser":"Pour les utilisateurs enregistrés : l\'auteur verra le contenu de la conversation et votre nom d\'utilisateur","contentAndUsername":"L\'auteur peut voir le contenu, votre nom d\'utilisateur et votre adresse IP","contentAndIpAddress":"L\'auteur peut voir le contenu et votre adresse IP","authorUsesInfo":"L\'auteur utilise ces informations pour améliorer les fonctionnalités de l\'agent et pour vous fournir un meilleur service. En continuant la conversation, vous acceptez ces conditions."},"downloadChat":"Télécharger le chat","instructButton":"INSTRUCTEZ-MOI","tryMeButton":"COMMENCER","resumeButton":"RÉSUMER","chatHistory":"Historique des discussions","chatHistoryDescription":"Afficher l\'historique des discussions avec cet agent","loadingChatHistory":"Chargement de l\'historique des discussions...","noChatHistoryAvailable":"Aucun historique des discussions disponible","noResultsFound":"Aucun résultat trouvé pour \\"{{searchText}}\\"","searchInChatHistory":"Rechercher dans l\'historique des chats...","latestFirst":"Plus récents d\'abord","oldestFirst":"Plus anciens d\'abord","exportChat":"Exporter le Chat","settingsHeaderLabel":"Configurez ici si vous souhaitez définir la mémoire comme parole continue et modifiez les secondes de silence si vous souhaitez les personnaliser.","continuousSpeechLabel":"Discours continu","continuousSpeechDisabled":"Discours continu désactivé car l\'agente est en mode muté","holdToSpeak":"Attends pour parler","releaseToEndListening":"Relâcher pour terminer l\'écoute","pressAndHoldToSpeak":"Appuyez et maintenez pour parler","microphoneMode":"Mode micro","hideEmissionsLabel":"Masquer le texte émis par le Agent","secondsLabel":"Régler les secondes","controlsPosition":"Position des commandes","tryMeHeaderLabel":"ESSAYER","unknownPosition":"Position inconnue","fieldPlace":"Écrivez le lieu (par exemple « Milano »)","showMapLinkFor":"Afficher la position sur la carte","useMyPosition":"Utiliser ma position","myPosition":"Votre poste","updatingPosition":"Mise à jour du poste...","placeNotFound":"Lieu introuvable !","requirePosition":"Insérez votre position avant de commencer","requirePositionHelp":"Pour parler à {{name}} vous devez décider si vous souhaitez ou non fournir votre poste. ","dontWantToProvidePosition":"Je ne veux pas donner ma position","attachmentsLabel":"Enrichissez votre message","iWantToTalkToIn":"je veux parler à {{name}} dans","message":"message","messages":"messages","page":"Page {{current}} de {{total}}"},"artifact":{"close":"Fermer","size":"Taille","generated":"Généré","download":"Télécharger","print":"Imprimer","external":"Ouvrir dans une nouvelle fenêtre","type":"Type","fullscreen":"Plein écran","exitFullscreen":"Quitter le plein écran","copy":"Copier","generatedAt":"Généré le","open":"Ouvrir","code":"Code","preview":"Aperçu","copied":"Copié !","error":"Erreur","generatingPdf":"Génération du PDF...","copying":"Copie en cours...","moreCopyOptions":"Plus d\'options de copie","copyAs":"Copier en tant que","downloadAsMarkdown":"Télécharger en Markdown","downloadRawMarkdownText":"Télécharger le texte markdown brut","downloadAsPdf":"Télécharger en PDF","exportAsPdfDocument":"Exporter en document PDF","downloadAsHtml":"Télécharger en HTML","downloadFormattedHtml":"Télécharger le HTML formaté","viewMode":"Mode Affichage","codeMode":"Mode Code","refresh":"Actualiser","share":"Partager","downloadAsJson":"Télécharger en JSON","downloadJsonData":"Télécharger les données JSON","downloadAsPng":"Télécharger en PNG","downloadPngImage":"Télécharger l\'image PNG","downloadAsJpeg":"Télécharger en JPEG","downloadJpegImage":"Télécharger l\'image JPEG","downloadAsGif":"Télécharger en GIF","downloadGifImage":"Télécharger l\'image GIF","downloadAsWebp":"Télécharger en WebP","downloadWebpImage":"Télécharger l\'image WebP","copyAsSvg":"Copier en SVG","copySvgSourceCode":"Copier le code source SVG","copyAsPlainText":"Copier en texte brut","copyAsText":"Copier en texte","copyAsLanguage":"Copier en {{language}}","copyLanguageCode":"Copier le code {{language}}","copyWithoutSyntaxHighlighting":"Copier sans coloration syntaxique","copyTextContent":"Copier le contenu texte","pdfExportNotSupported":"L\'exportation PDF n\'est pas prise en charge dans ce navigateur","popupBlocked":"Popup bloqué ! Veuillez activer les popups pour imprimer.","safariPdfInstructions":"Export PDF ouvert dans une nouvelle fenêtre. Veuillez utiliser Cmd+P (Mac) ou Ctrl+P (Windows) pour imprimer et sauvegarder en PDF."},"upload":{"loginRequired":"Connexion requise","pastedText":"texte-collé","uploadNotification":"Échec du téléchargement","loginRequiredDescription":"Veuillez vous connecter pour télécharger des images","uploadFiles":"Télécharger des fichiers ({{shortcut}}+O pour ouvrir le sélecteur de fichiers)","uploadFilesWithShortcut":"{{shortcut}}+O pour ouvrir le sélecteur de fichiers","uploadImages":"Télécharger des images","uploadDocuments":"Télécharger des documents","replace":"Remplacer","remaining":"restant","maxReached":"Limite atteinte","maxImagesReached":"Vous pouvez télécharger jusqu\'à {{max}} images","apiClientNotConfigured":"API client non configuré correctement pour le téléchargement de médias","fileReadingFailed":"Échec de la lecture du fichier","uploadFailed":"Échec du téléchargement","uploadSuccess":"Téléchargement réussi","uploadSuccessDescription":"Le fichier a été téléchargé avec succès","dragAndDropFiles":"Glissez et déposez les fichiers ici pour les ajouter à la chat","contextSizeExceedsLimit":"La taille du contexte dépasse la limite. Essayez de réduire le nombre de fichiers ou le contenu de la conversation.","filesNotAddedMaxAllowed":"{{count}} fichier(s) non ajouté(s) (maximum {{max}} fichiers autorisés).","documentsNotAddedMaxAllowed":"{{count}} document(s) non ajouté(s) (maximum {{max}} fichiers autorisés).","imagesNotAddedMaxAllowed":"{{count}} image(s) non ajoutée(s) (maximum {{max}} fichiers autorisés).","documentsNotAddedContextSize":"{{count}} document(s) non ajouté(s) (limite de taille du contexte)."},"media":{"title":"Titre","editAttributes":"Modifier les attributs du média","uploadMimeTypeNotAllowed":"Le type de fichier n\'est pas autorisé","uploadSizeLimitMessage":"La taille téléchargée est trop grande (max {{size}}Mo)","uploadWrongResolutionMessage":"La résolution doit être {{width}}x{{height}} pixels","memoriNameAlreadyUsed":"Vous avez déjà un jumeau portant ce nom","uploadHelperImages":"Téléchargez un fichier avec l\'extension png, jpg, jpeg ou gif, et ayant au maximum une taille de {{size}}Mo","uploadHelper":"Téléchargez un fichier ayant au maximum une taille de {{size}}Mo","uploadError":"Échec du téléchargement","square":"carré","scaleRatio":"Rapport d\'échelle","addMediaLabel":"Ajouter un média","insertThisMediaMsg":"Insérez ces médias","mediaUploadMessage":"Cliquez pour charger un nouveau média","addLinkLabel":"Ajouter un lien","linkKey":"URL","linkValue":"Titre du lien","insertThisLink":"Insérer un lien vers {{url}} avec titre {{title}}"},"gamification":{"level":"Niveau","points":"points","memoriReachedLevel":"est devenu plus évolué et a atteint le niveau","levelGoToStatistics":"{{Agent}} est au niveau {{level}} avec {{points}} points. ","congratulationsNewLevel":"Félicitations, vous avez atteint un nouveau niveau !","congratulationsNewLevelDescription":"Votre Agent est devenu plus évolué avec {{points}} points, regardez le","statistics":"statistiques"},"login":{"login":"Se connecter","logout":"Déconnexion","user":"Utilisateur","loggedDrawerTitle":"Salut, {{name}}!","userNameRequired":"Nom d\'utilisateur requis","userName":"Nom d\'utilisateur","userNamePlaceholder":"Inserisci le nom d\'utilisateur","loginDrawerTitle":"Se connecter","signupDrawerTitle":"S\'inscrire","newUserSignUp":"Nouvel utilisateur ?","signUp":"S\'inscrire!","alreadyHaveAnAccount":"Vous avez déjà un compte ?","backToLogin":"Retour à la connexion","registrationDisabled":"L\'inscription est désactivée","contactAdmin":"Contacter l\'administrateur pour demander l\'accès","userNameOrEmail":"Nom d\'utilisateur ou email","email":"E-mail","emailFormatError":"Veuillez insérer un email valide","username":"Nom d\'utilisateur","usernameContainsReservedWord":"Le nom d\'utilisateur contient un mot réservé, veuillez en choisir un autre","usernameFormatError":"Le nom d\'utilisateur doit comporter au moins 3 caractères et contenir uniquement des lettres, des chiffres et _","otpCode":"Le code de vérification","resendVerificationCode":"Renvoyer le code","resentVerificationCode":"Code de confirmation envoyé ! ","welcomeTitle":"Bon retour","welcomeDescription":"Entrez votre code de vérification à 4 chiffres pour continuer vers votre compte","otpTitle":"Entrez le code de vérification","otpDescription":"Entrez le code à 4 chiffres que vous avez généré dans votre compte","otpStep1":"Cliquez sur le bouton ci-dessous pour ouvrir votre compte","otpStep2":"Générez un code de vérification à 4 chiffres (valide pendant 60 secondes)","otpStep3":"Revenez ici et entrez le code","startOtpLogin":"Commencer la vérification","generateOtp":"Générer le code","otpTimer":"Le code expire dans {{seconds}} secondes","otpInvalidFormat":"Veuillez entrer un code valide à 4 chiffres","otpInvalid":"Code de vérification invalide","otpError":"Erreur lors de la validation du code. Veuillez réessayer.","otpSuccess":"Connexion réussie !","otpEmailTitle":"Entrez votre email","otpEmailDescription":"Entrez votre adresse email pour recevoir un code de vérification","otpCodeDescription":"Entrez le code à 4 chiffres envoyé à {{email}}","emailPlaceholder":"Entrez votre email","sendOtp":"Envoyer le code","resendOtp":"Renvoyer le code","resending":"Envoi en cours...","backToEmail":"Retour à l\'email","otpSent":"Code de vérification envoyé !","otpResent":"Code renvoyé avec succès !","otpSendError":"Erreur lors de l\'envoi du code. Veuillez réessayer.","emailRequired":"Email requis","emailInvalid":"Veuillez entrer une adresse email valide","otpNotFound":"Code de vérification introuvable","otpExpired":"Le code de vérification a expiré","otpMissing":"Le code de vérification est requis","otpSuccessMessage":"Vérification réussie ! Redirection...","otpSuccessDescription":"Votre compte a été vérifié avec succès. Vous allez être redirigé sous peu.","otpHelp":"Entrez le code à 4 chiffres de votre email","emailHelp":"Nous vous enverrons un code de vérification","userFetchError":"Erreur lors du chargement des données utilisateur. Veuillez réessayer.","otpStep1Title":"Entrez l\'Email","otpStep2Title":"Vérifiez l\'Email","otpStep3Title":"Entrez le Code","featureFast":"Rapide","featureSecure":"Sécurisé","featureMobile":"Mobile","password":"Mot de passe","newPassword":"Nouveau mot de passe","confirmPassword":"Confirmez le mot de passe","currentPassword":"Mot de passe actuel","passwordMatchingError":"Les mots de passe ne correspondent pas.","passwordFormatError":"Le mot de passe doit comporter au moins 8 caractères et contenir au moins un chiffre, une lettre majuscule, une lettre minuscule et un symbole.","pwdWeak":"Faible","pwdAcceptable":"Acceptable","pwdStrong":"Fort","mustChangePassword":"Vous devez changer votre mot de passe","passwordChange":"Changer le mot de passe","emailChange":"Changer d\'e-mail","avatarChange":"Changer d\'avatar","underage":"Vous devez être au moins {{age}} ans pour s\'inscrire.","optional":"Facultatif","birthDate":"Date de naissance","birthDateHelper":"Nous demandons votre date de naissance uniquement pour activer ou désactiver les fonctionnalités qui ont des restrictions d\'âge","missingData":"Informations manquantes","missingDataHelper":"Nous savons que c\'est un peu ennuyeux, mais nous avons besoin de plus d\'informations pour finaliser votre inscription.","goToAccountToChangeYourPreferences":"Vous pouvez modifier votre choix à tout moment depuis la page de votre compte.","deepThoughtExplaination":"Deep Thought est une fonctionnalité avancée de l\'IA qui vous permettra d\'exploiter pleinement vos conversations en les gardant une trace. ","tnCAndPPAcceptedHelper":"Depuis votre dernière connexion, les conditions générales et la politique de confidentialité ont changé. ","privacyLabel":"J\'ai lu et accepté le","privacyAndCookiePolicy":"Politique de confidentialité et de cookies","and":"et","termsOfService":"Conditions d\'utilisation","pAndCUAccepted":"J\'accepte les conditions d\'utilisation de Deep Thought","editAccount":"Modifier le compte","save":"Sauvegarder","successfullyLoggedIn":"{{username}} s\'est connecté avec succès"},"chatLogs":{"anyMessage":"Tout message","atLeast":"Au moins {{count}} messages","atLeast2":"Au moins 2 messages","atLeast3":"Au moins 3 messages","atLeast5":"Au moins 5 messages","atLeast10":"Au moins 10 messages","atLeast15":"Au moins 15 messages","atLeast20":"Au moins 20 messages","customMinimumMessages":"Personnaliser le nombre de messages"},"success":"Succès","Error":"Erreur","internal server error":"Oupsie, désolé... Quelque chose s\'est mal passé sur le serveur","error":"Erreur","error.loading":"Erreur lors du chargement du contenu.","error.generic":"Oupsie, désolé... quelque chose s\'est mal passé.","error.serverNotResponding":"Nous effectuons une maintenance ou publions des mises à jour. ","error.notFound":"Oupsie, nous n\'avons pas trouvé la page que vous cherchiez.","error.goBackTo":"Vous pouvez essayer de revenir au","error.reloadPage":"Recharger la page","error.tryAgain":"Essayer à nouveau","error.unauthorized":"Vous n\'êtes pas autorisé à consulter ce contenu.","error.unprocessableEntity":"Erreur lors du traitement de la demande. ","errors":{"TENANT_NOT_FOUND":"Locataire introuvable","TENANT_REGISTRATION_DISABLED":"L\'inscription sur cette plateforme est désactivée","TENANT_MISSING_NAME":"Locataire : nom manquant","TENANT_MAX_USERS_REACHED":"Nombre maximum d\'utilisateurs atteint","TENANT_MAX_ADMINS_REACHED":"Nombre maximum d\'utilisateurs administrateurs atteint","TENANT_ALREADY_EXISTS":"Le locataire existe déjà","TENANT_MISSING_DESCRIPTION":"Locataire : description manquante","TENANT_CANT_SET_COMPLETION_PROVIDER":"Locataire : impossible de définir le fournisseur de complétion","TENANT_INVALID_TYPE":"Locataire : type non valide","USER_NOT_CONFIRMED":"L\'utilisateur n\'est toujours pas confirmé","USER_NOT_FOUND":"Utilisateur introuvable","USER_OR_PASSWORD_INVALID":"Utilisateur ou mot de passe invalide","USER_MUST_CHANGE_PASSWORD":"Vous devez changer votre mot de passe","USER_MUST_ENTER_VERIFICATION_CODE":"Vous devez entrer le code de vérification","USER_MISSING_TENANT":"Utilisateur : locataire manquant","USER_MISSING_NAME":"Utilisateur : le nom est manquant","USER_MISSING_PASSWORD":"Utilisateur : mot de passe manquant","USER_MISSING_EMAIL":"Utilisateur : E-mail manquant","USER_MISSING_VERIFICATION_CODE":"Utilisateur : Code de vérification manquant","USER_NAME_ALREADY_USED":"Nom d\'utilisateur déjà utilisé","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"Le mot de passe ne répond pas aux règles de sécurité","USER_EMAIL_ALREADY_USED":"E-mail déjà utilisé","USER_EMAIL_INVALID":"E-mail invalide","USER_VERIFICATION_CODE_INVALID":"Code de vérification invalide","USER_MISSING_NAME_OR_EMAIL":"Nom d\'utilisateur ou e-mail manquant","USER_NAME_INVALID":"Nom d\'utilisateur invalide","USER_HAS_ONE_OR_MORE_MEMORI":"L\'utilisateur possède une ou plusieurs mémoires","USER_MISSING_NEW_PASSWORD":"Utilisateur : nouveau mot de passe manquant","USER_NOTHING_TO_DO":"Rien à faire","USER_CANT_CREATE_MEMORI":"L\'utilisateur n\'est pas autorisé à créer des Agent","USER_MAX_MEMORI_REACHED":"Nombre maximum de Agent atteint","USER_ORDER_BY_INVALID":"Ordre par non valide","USER_TOO_MANY_ATTEMPTS":"Trop de tentatives","USER_MUST_ACCEPT_TNC_AND_PP":"Vous devez accepter les termes et conditions","USER_BIRTH_DATE_CANT_BE_CHANGED":"La date de naissance ne peut pas être modifiée","USER_CANT_SET_COMPLETION_PROVIDER":"Utilisateur : non autorisé à gérer le fournisseur de complétion","USER_CANT_ENABLE_DEEP_THOUGHT":"Utilisateur : non autorisé à gérer Deep Thought","USER_CANT_ENABLE_DCM_INTEGRATION":"Utilisateur : non autorisé à gérer l\'intégration DCM","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"Utilisateur : non autorisé à gérer des chaînages ou des groupes d\'experts","USER_CREATION_BILLING_DENIED_PERMISSION":"Vous n\'avez pas assez de crédits pour créer un Agent","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"L\'utilisateur dispose d\'une ou plusieurs configurations de complétion","USER_CANT_BE_DELETED":"L\'utilisateur ne peut pas être supprimé","MEMORI_NOT_FOUND":"Mémoire introuvable","MEMORI_NOT_ACCESSIBLE":"Mémoires non accessibles","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Seul le propriétaire peut modifier le tag ou le code PIN","SESSION_NOT_FOUND":"Séance introuvable","SESSION_IS_NOT_ADMINISTRATIVE":"Séance non administrative","SESSION_EXPIRED":"Session expirée","SESSION_OTP_NOT_FOUND":"Code de vérification introuvable","SESSION_OTP_EXPIRED":"Le code de vérification a expiré","SESSION_MISSING_TEMPORARY_TOKEN":"Le code de vérification est requis","MEMORI_MISSING_CONFIGURATION":"Agent : configuration manquante","MEMORI_CONFIGURATION_NOT_FOUND":"Agent : configuration introuvable","MEMORI_INVALID_PRIVACY_TYPE":"Agent : type de confidentialité non valide","MEMORI_MISSING_PASSWORD":"Agent : mot de passe manquant","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Agent : nombre total de jetons de récupération invalides","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Agent : nombre minimum de jetons de récupération invalides","MEMORI_INVALID_VOICE_TYPE":"Agent : type de voix invalide","MEMORI_MISSING_NAME":"Jumeau : nom manquant","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Agent : mot de passe ou jeton de récupération manquant","MEMORI_INVALID_ID":"Jumeau : pièce d\'identité invalide","MEMORI_NAME_ALREADY_USED":"Nom jumeau déjà utilisé","MEMORI_INVALID_PIN":"Agent : code PIN invalide","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Agent : le changement de TAG et de PIN nécessite des opérations distinctes","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Agent : aucun mot de passe requis lorsqu\'il est public","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Deep Thought nécessite que les complétions soient activées","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"Le groupe d\'experts exige que les complétions soient activées","MEMORI_INVALID_COMPLETION_CONFIG":"Agent : configuration des complétions non valide","MEMORI_MACRO_FUNCTIONS_REQUIRES_COMPLETIONS":"Macro fonctions requiert que les complétions soient activées","MEMORI_BLOCKING_DATE_MISSING_OR_WRONG":"Gemmeau : date de blocage manquante ou incorrecte","MEMORI_LIST_FILTER_NOT_SPECIFIED":"Gemmeau : filtre non spécifié","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Transfert : utilisateur de destination manquant","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Transfert : ID utilisateur de destination non valide","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Transfert : données utilisateur de destination non valides","MEMORI_TRANSFER_NOTHING_TO_DO":"Transfert : rien à faire","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Mémoires : la configuration ne peut pas être modifiée","MEMORI_MISSING_NEW_PASSWORD":"Souvenirs : nouveau mot de passe manquant","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"La fonctionnalité nécessite un abonnement","MEMORI_SESSION_NOT_FOUND":"Séance introuvable","MEMORI_SESSION_DOESNT_ACCEPT_MEDIA":"Séance ne pas accepter les médias","INTEGRATION_NOT_FOUND":"Intégration introuvable","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Date invalide du format","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Date à formater invalide","INTEGRATION_INVALID_TYPE":"Type d\'intégration invalide","INTEGRATION_ALREADY_EXISTS":"L\'intégration existe déjà","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Les mémoires non publiques ne peuvent pas être intégrées","INTEGRATION_MISSING_INVOCATION_TEXT":"Intégration : texte d\'invocation manquant","INTEGRATION_MISSING_DEVICE_EMAILS":"Intégration : e-mail de l\'appareil manquant","INTEGRATION_MEMORI_IS_EMPTY":"Les mémoires vides ne peuvent pas être intégrées","INTEGRATION_MISSING_PRIVACY_POLICY":"Intégration : politique de confidentialité manquante","INTEGRATION_MISSING_CATEGORY":"Catégorie d\'intégration manquante","INTEGRATION_MISSING_DESCRIPTION":"Description de l\'intégration manquante","INTEGRATION_INVALID_INVOCATION_TEXT":"Texte d\'appel invalide","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home n\'est plus disponible","UPLOAD_REQUIRES_MULTIPART_ENCODING":"Le téléchargement nécessite un codage en plusieurs parties","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Téléchargement : limite de type de contenu manquante","UPLOAD_MAX_LENGTH_EXCEEDED":"Téléchargement : taille maximale dépassée","UPLOAD_FILE_IS_EMPTY":"Télécharger : fichier vide","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Téléchargement : type de fichier ou signature non valide","UPLOAD_MISSING_FILE_NAME":"Télécharger : nom de fichier manquant","UPLOAD_INVALID_MEMORY_ID":"Télécharger : ID de contenu invalide","UPLOAD_MISSING_FILE_CONTENT":"Télécharger : contenu du fichier manquant","ASSET_NOT_FOUND":"Actif introuvable","ASSET_NOT_ACCESSIBLE":"Actif non accessible","ASSET_MISSING_SESSION_ID":"Élément : ID de session manquant","ASSET_INVALID_FILE_NAME":"Élément : nom de fichier non valide","ASSET_MALWARE_SCAN_THREATS_FOUND":"Élément : menaces de scan de malware trouvées","INVITATION_NOT_FOUND":"Invitation introuvable","INVITATION_NOT_ACCESSIBLE":"Invitation non accessible","INVITATION_ALREADY_ACCEPTED":"Invitation déjà acceptée","INVITATION_ALREADY_REJECTED":"Invitation déjà rejetée","INVITATION_MISSING_DESTINATION_EMAIL":"Invitation : e-mail de destination manquant","INVITATION_DESTINATION_EMAIL_INVALID":"Invitation : e-mail de destination invalide","INVITATION_MISSING_TAG":"Invitation : étiquette manquante","INVITATION_MISSING_PIN":"Invitation : code PIN manquant","INVITATION_INVALID_PIN":"Invitation : code PIN invalide","INVITATION_INVALID_TYPE":"Invitation : type non valide","INVITATION_MISSING_DESTINATION_NAME":"Invitation : le nom de la destination est manquant","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Invitation : le tag et le code PIN ne peuvent pas être modifiés","INVITATION_CANT_BE_CHANGED":"Intation : ne peut pas être modifié","ACTIONLOG_INVALID_USER_ID":"ID utilisateur invalide","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Date de : format non valide","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Date de : format non valide","ACTIONLOG_INVALID_MEMORI_ID":"Identifiant Agent invalide","CONSUMPTIONLOG_INVALID_TYPE":"Type de journal invalide","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Date de : format non valide","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Date de : format non valide","CONSUMPTIONLOG_INVALID_USER_ID":"ID utilisateur invalide","CONSUMPTIONLOG_INVALID_MEMORI_ID":"Identifiant Agent invalide","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Notifications : période d\'extraction du journal de discussion non valide","BROADCAST_NOT_ALLOWED":"Broadcast non autorisé","INVALID_NOTIFICATION_TYPE":"Type de notification non valide","NOTIFICATION_NOT_FOUND":"Notification introuvable","INVALID_NOTIFICATION_FILTER":"Filtre de notification non valide","INVALID_NOTIFICATION_PERIOD":"Période de notification non valide","PROCESS_INVALID_TYPE":"Type de processus invalide","PROCESS_ALREADY_RUNNING":"Processus déjà en cours","PROCESS_NOT_FOUND":"Processus introuvable","IMPORTCSV_MISSING_ROWS":"Import CSV : lignes manquantes","IMPORTCSV_MISSING_CSV":"Importation CSV : CSV manquant","IMPORTCSV_MISSING_SEPARATOR":"Import CSV : séparateur manquant","IMPORTCSV_INVALID_SEPARATOR":"Importation CSV : séparateur non valide","IMPORTCSV_MISSING_HEADERS":"Import CSV : en-têtes manquants","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Import CSV : séparateur de variante de titre manquant","IMPORTCSV_INVALID_RECEIVER_ID":"Importation CSV : ID de destinataire non valide","IMPORTCSV_INVALID_MEDIA_LINK":"Importation CSV : lien média non valide","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"Importation CSV : titre du lien invalide","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"Import CSV : encodage de caractères indétectable","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"Importation CSV : impossible d\'importer dans les mémoires secrètes","IMPORTTXT_MISSING_ROWS":"Importation de TXT : lignes manquantes","IMPORTTXT_INVALID_GRANULARITY":"Importer TXT : granularité invalide","IMPORTTXT_INVALID_RECEIVER_ID":"Importer TXT : ID de destinataire invalide","IMPORTTXT_INVALID_MEDIA_LINK":"Importer TXT : lien média non valide","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"Importer TXT : titre du lien invalide","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"Import TXT : encodage de caractères indétectable","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"Importation TXT : impossible d\'importer vers les mémoires secrètes","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"Importer TXT : limite d\'importation dépassée","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"Importer TXT : l\'importation sur GPT-4 nécessite une clé API","IMPORTTXT_IMPORT_REQUIRES_PAYING":"Importer TXT : l\'importation nécessite un forfait payant","IMPORTTXT_BILLING_DENIED_PERMISSION":"Importer TXT : vous n\'avez pas assez de crédits pour l\'opération","IMPORT_MISSING_ROWS":"Importation : lignes manquantes","IMPORT_CANT_IMPORT_TO_SECRET_MEMORI":"Importation : impossible d\'importer vers les mémoires secrètes","IMPORTMEMORI_INVALID_MEMORI_SPECS":"Importation MEMORI : spécifications de mémoire non valides","IMPORT_MISSING_JSONL":"Importation : JSONL manquant","IMPORTMEMORI_INVALID_SPECS":"Importation MEMORI : spécifications non valides","EXPORT_MISSING_PASSWORD":"Exportation : mot de passe manquant","EXPORTCSV_MISSING_CSV_SPECS":"Exportation CSV : spécifications CSV manquantes","EXPORTCSV_MISSING_SEPARATOR":"Export CSV : séparateur manquant","EXPORTCSV_INVALID_SEPARATOR":"Exportation CSV : séparateur non valide","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Exportation CSV : séparateur de variante de titre manquant","EXPORTCSV_MISSING_NEW_LINE_CHAR":"Exportation CSV : caractère de nouvelle ligne manquant","EXPORTCSV_INVALID_NEW_LINE_CHAR":"Exportation CSV : caractère de nouvelle ligne non valide","EXPORTCSV_MISSING_PASSWORD":"Export CSV : mot de passe manquant","EXPORTJSONL_MISSING_JSONL_SPECS":"Export JSONL : spécifications JSONL manquantes","EXPORTJSONL_MISSING_PLATFORM":"Export JSONL : plateforme manquante","EXPORTJSONL_INVALID_PLATFORM":"Export JSONL : plateforme non valide","EXPORTJSONL_MISSING_PASSWORD":"Export JSONL : mot de passe manquant","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"Exportation JSONL : l\'exportation nécessite un forfait payant","ANALYSIS_MISSING_QUERY":"Analyse : requête manquante","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Analyse : impossible d\'analyser les souvenirs secrets","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Analyse : la correspondance avec la requête de l\'utilisateur nécessite une réflexion approfondie","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Attribution des badges : identifiants incorrects ou manquants","BADGE_ASSIGNMENT_MISSING_REF_ID":"Affectation du badge : ID de référence manquant","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Attribution des badges : résultat introuvable","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Attribution du badge : URL d\'assertion manquante","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Attribution du badge : URL du badge manquante","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Attribution du badge : URL de l\'émetteur manquante","BADGE_ASSIGNMENT_INVALID_URL":"Attribution du badge : URL invalide","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Affectation du badge : destinataire manquant","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Attribution du badge : type de destinataire inconnu","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Attribution du badge : identité du destinataire manquante","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Attribution du badge : type de hachage du destinataire manquant","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Attribution du badge : type de hachage du destinataire inconnu","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Attribution du badge : identité du destinataire incorrecte","BADGE_NOT_FOUND":"Badge introuvable","OUTCOME_NO_DCM_CONFIGURED":"Résultat : aucun DCM configuré","OUTCOME_USER_BADGES_DISABLED":"Résultat : badges utilisateur désactivés","COMPLETION_CONFIG_MISSING_NAME":"Configuration des complétions : nom manquant","COMPLETION_CONFIG_MISSING_PROVIDER":"Configuration des complétions : fournisseur manquant","COMPLETION_CONFIG_MISSING_ENDPOINT":"Configuration des complétions : point de terminaison manquant","COMPLETION_CONFIG_MISSING_API_KEY":"Configuration des complétions : clé API manquante","COMPLETION_CONFIG_MISSING_MODEL":"Configuration des complétions : modèle manquant","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Configuration des complétions : au moins un type de complétions doit être spécifié","COMPLETION_CONFIG_INVALID_NAME":"Configuration des complétions: nom non valide","COMPLETION_CONFIG_INVALID_PURPOSE":"Configuration des complétions : type de complétions non valide","COMPLETION_CONFIG_INVALID_ENDPOINT":"Configuration des achèvements : point de terminaison non valide","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Configuration des complétions : point de terminaison incohérent","COMPLETION_CONFIG_INVALID_PROVIDER":"Configuration des complétions : fournisseur non valide","COMPLETION_CONFIG_NOT_FOUND":"Configuration des complétions : introuvable","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Configuration des complétions : non accessible","COMPLETION_CONFIG_NAME_RESERVED":"Configuration des complétions : nom réservé","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Configuration des complétions : le nom existe déjà","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Configuration des complétions : changement de visibilité non autorisé","COMPLETION_CONFIG_MISSING_MANDATORY_PREFIX":"Configuration des complétions : préfixe obligatoire manquant","COMPLETION_CONFIG_VISIBILITY_NOT_PERMITTED":"Configuration des complétions : visibilité non autorisée","COMPLETION_CONFIG_USE_AS_DEFAULT_NOT_PERMITTED":"Configuration des complétions : utilisation comme défaut non autorisée","COMPLETION_CONFIG_USE_AS_DEFAULT_REQUIRES_TENANT_VISIBILITY":"Configuration des complétions : utilisation comme défaut nécessite la visibilité du locataire","COMPLETION_CONFIG_CHARGEABLE_NOT_PERMITTED":"Configuration des complétions : chargeable non autorisé","COMPLETION_CONFIG_INVALID_APPLY_TO":"Configuration des complétions : apply to non valide","COMPLETION_CONFIG_APPLY_TO_TENANT_NOT_ALLOWED":"Configuration des complétions : apply to tenant non autorisé","TRUSTED_APPLICATION_NOT_FOUND":"Application de confiance introuvable","TRUSTED_APPLICATION_NOT_ACCESSIBLE":"Application de confiance non accessible","TRUSTED_APPLICATION_ALREADY_EXISTS":"Application de confiance existe déjà","TRUSTED_APPLICATION_MISSING_NAME":"Application de confiance : nom manquant","TRUSTED_APPLICATION_MISSING_DESCRIPTION":"Application de confiance : description manquante","TRUSTED_APPLICATION_MISSING_ICON":"Application de confiance : icône manquante","TRUSTED_APPLICATION_MISSING_URL":"Application de confiance : URL manquante"}}');var MB;MB=JSON.parse('{"yes":"Ja","no":"NEIN","confirm":"Bestätigen","apply":"Anwenden","cancel":"Stornieren","show":"Zeigen","hide":"Verstecken","send":"Schicken","close":"Schließen","edit":"Bearbeiten","delete":"Löschen","loading":"Laden","expand":"Expandieren","collapse":"Zusammenbruch","fullscreenEnter":"Geben Sie den Vollbildmodus ein","fullscreenExit":"Beenden Sie den Vollbildmodus","center":"Center","bottom":"Unten","hidden":"Versteckt","all":"Alle","today":"Heute","yesterday":"Gestern","last_7_days":"Letzte 7 Tage","last_30_days":"Letzte 30 Tage","missingData":"Fehlende Informationen","date":"Geburtsdatum","day":"Tag","copied":"Kopiert!","placeholder":"Stellen Sie eine Frage","month":"Monat","year":"Jahr","createdAt":"Erstellungsdatum","selected":"Ausgewählt","page":"Seite","actions":"Aktionen","next":"Nächste","previous":"Vorherige","copy":"Kopie","copyRawCode":"Rohcode kopieren","copyToClipboard":"In die Zwischenablage kopieren","showOriginalText":"Original anzeigen","showTranslatedText":"Übersetzung anzeigen","exactPosition":"Genaue Position","uncertain":"Unsicher","question":"Frage","nothingFound":"Nichts gefunden","venue":"Veranstaltungsort","searchVenue":"Veranstaltungsort suchen...","privacyPolicy":"Datenschutzbestimmungen","popularLanguages":"Beliebt","allLanguages":"Alle Sprachen","memoriBlockedTitle":"Blockiert","memoriBlockedUntil":"Agent blockiert bis {{date}}","memoriBlockedAnon":"Momentan \\"{{name}}„Kann nicht antworten, komm hierher zurück {{date}}","memoriBlockedReasonExceedChats":"weil der monatliche Schwellenwert für erlaubte Chats überschritten wurde.","memoriBlockedGiverHelper":"Sie können es weiterhin als Administrator verwalten, andere Benutzer können jedoch nicht damit interagieren.","generatedByAI":"Von KI generierte Antworten können gelegentlich falsche Informationen generieren","reasoning":"Überlegung...","whyThisAnswer":"Warum diese Antwort?","whyThisAnswerHelper":"Diese Antwort wurde automatisch von einer künstlichen Intelligenz auf Basis dieser verifizierten Inhalte generiert.","receiverLabel":"Zugewiesen an","completionsEnabled":"Fortschrittliche KI kann mit automatisch generierten Antworten reagieren, die manchmal falsche Informationen enthalten können","completionProviderDown":"Dieser Zwilling ist mit einer generativen KI von integriert {{provider}}, aber es ist derzeit nicht verfügbar. ","completionProviderMajorOutage":"Dieser Zwilling ist mit einer generativen KI von integriert {{provider}}, aber es ist derzeit nicht verfügbar. Diese Funktion wird nicht verfügbar sein, bis der Service wiederhergestellt ist.","completionProviderPartialOutage":"Dieser Zwilling ist mit einer generativen KI von integriert {{provider}}, aber es ist derzeit nicht verfügbar. Diese Funktion wird nicht verfügbar sein, bis der Service wiederhergestellt ist.","completionProviderDegraded":"Dieser Zwilling ist mit einer generativen KI von integriert {{provider}}, aber es ist derzeit nicht verfügbar. Diese Funktion wird nicht verfügbar sein, bis der Service wiederhergestellt ist.","completionProviderFallbackName":"ein externer Anbieter","completionProviderCheckStatusPage":"Überprüfen Sie die Statusseite","boardOfExperts":"Expertengremium","birthDate":"Geburtsdatum","birthDateHelper":"Wir fragen nur nach Ihrem Geburtsdatum, um Funktionen zu aktivieren oder zu deaktivieren, für die Altersbeschränkungen gelten","underage":"Das müssen Sie mindestens sein {{age}} Jahre alt, um sich anzumelden.","underageTwinSession":"Das müssen Sie mindestens sein {{age}} Jahre alt, um mit diesem Zwilling zu interagieren.","errorFetchingSession":"Fehler beim Laden der Sitzung","errorGettingReferralURL":"Fehler beim Laden des Referrals","errorReopeningSession":"Fehler beim erneuten Öffnen der Sitzung","ageVerification":"Altersüberprüfung","ageVerificationText":"Um mit diesem Zwilling interagieren zu können, müssen Sie mindestens sein {{minAge}} Jahre alt.","nsfw":"NSFW: Dieser Agent enthält Inhalte für Erwachsene","deepThought":"Tiefer Gedanke","deepThoughtHelper":"Deep Thought ist eine erweiterte Funktion der KI, die es Ihnen ermöglicht, Ihre Gespräche voll auszuschöpfen, indem Sie sie verfolgen. ","deepThoughtDisclaimerTitle":"Deep Thought aktiviert","deepThoughtDisclaimer":"Deep Thought ist eine erweiterte Funktion der KI, die es Ihnen ermöglicht, Ihre Gespräche voll auszuschöpfen, indem Sie sie verfolgen. ","deepThoughtPreDisclaimerUnlogged":"Melden Sie sich an, um Deep Thought zu aktivieren.","deepThoughtPreDisclaimerNotAllowed":"Deep Thought ist deaktiviert, da Sie der Nutzung nicht zugestimmt haben. Sie können dies jederzeit in Ihren Kontoeinstellungen ändern.","notEnoughCredits":"Der Autor dieses Zwillings verfügt nicht über genügend Credits, um Ihre Frage zu beantworten.","confirmDialog":{"title":"Möchten Sie diese Seite verlassen?","message":"Die Änderungen, die Sie vorgenommen haben, werden verloren."},"knownFacts":{"title":"Bekannte Fakten","description":"Einzelheiten zu den Informationen, die zwischen Ihnen und geteilt werden {{memoriName}}","type":"Typ","typeShortTerm":"Kurzfristig","typeLongTerm":"Langfristig","typeHelper":"Typen:\\n","text":"Text","deleteSuccess":"Bekannte Tatsache gelöscht","deleteConfirmTitle":"Bekannte Tatsache löschen","deleteConfirmMessage":"Sind Sie sicher, dass Sie diese bekannte Tatsache löschen möchten?","deleteSelectedConfirmTitle":"Ausgewählte bekannte Fakten löschen","deleteSelectedConfirmMessage":"Sind Sie sicher, dass Sie die ausgewählten bekannten Fakten löschen möchten?"},"auth":{"title":"Authentifizierung","useRecoveryTokens":"Verwenden Sie Wiederherstellungstoken","tokens":"Token","addToken":"Token hinzufügen","usePassword":"Passwort verwenden","passwordRequired":"Passwort erforderlich","invalidCredentials":"Ungültige Zugangsdaten","atLeast":"Mindestens"},"widget":{"instruct":"Anleiten","test":"Testen","sound":"Ton","position":"Positionspräferenzen","settings":"Einstellungen","share":"Teilen","shareChat":"Chat teilen","sendOnKeypress":"Drücken Sie Enter zum Senden","sendOnClick":"Klicken Sie auf Senden","boardOfExperts":"Expertenrat","showExpertsInTheBoard":"Experten in diesem Rat anzeigen","expertsInTheBoard":"Experten in diesem Rat","goToIntegrationsToCustomizeAvatar":"Um den Avatar anzupassen, gehen Sie zu \\"Teilen\\" und passen Sie die öffentliche Seite an"},"exportChatHistory":{"exportPDF":"Chat als PDF exportieren","exporting":"Exportiere...","empty":"Kein Chatverlauf zum Exportieren","pdfNotSupported":"PDF-Export wird in diesem Browser nicht unterstützt","success":"Chat erfolgreich als PDF exportiert","error":"Fehler beim Exportieren des Chats als PDF. Bitte versuchen Sie es erneut."},"write_and_speak":{"micButtonPopover":"Klicken Sie auf die Schaltfläche, um zu sprechen","micButtonPopoverListening":"Klicken Sie auf die Schaltfläche, um das Sprechen zu stoppen","pageInstructExplanation":"Um mir neue Dinge beizubringen, klicken Sie auf die Schaltfläche \\"ANLEITEN\\", um zu beginnen","pageTryMeExplanation":"Um mit mir zu sprechen, klicken Sie auf die Schaltfläche START, um zu beginnen","pagePrivacyExplanation":"Die Konversationen sind sichtbar von dem Autor des Agenten","downloadChat":"Chat herunterladen","pagePrivacyExplanationList":{"allConversations":"Alle Konversationen mit diesem Agenten sind sichtbar von dem Autor des Agenten","anonymousUser":"Für anonyme Benutzer: der Autor wird den Inhalt der Konversation und Ihre IP-Adresse sehen","registeredUser":"Für registrierte Benutzer: der Autor wird den Inhalt der Konversation und Ihren Benutzernamen sehen","contentAndUsername":"Der Autor kann den Inhalt, Ihren Benutzernamen und Ihre IP-Adresse sehen","contentAndIpAddress":"Der Autor kann den Inhalt und Ihre IP-Adresse sehen","authorUsesInfo":"Der Autor verwendet diese Informationen, um die Funktionen des Agenten zu verbessern und Ihnen einen besseren Service anzubieten. Wenn Sie die Konversation fortsetzen, stimmen Sie diesen Bedingungen zu."},"instructButton":"WEISE MICH AN","tryMeButton":"START","resumeButton":"FORTSETZEN","chatHistory":"Chatverlauf","chatHistoryDescription":"Chatverlauf mit diesem Agenten anzeigen","loadingChatHistory":"Chatverlauf wird geladen...","noChatHistoryAvailable":"Kein Chatverlauf verfügbar","noResultsFound":"Keine Ergebnisse gefunden für \\"{{searchText}}\\"","searchInChatHistory":"Im Chatverlauf suchen...","latestFirst":"Neueste zuerst","oldestFirst":"Älteste zuerst","exportChat":"Chat exportieren","conversationStartedLabel":"Unterhaltung gestartet","settingsHeaderLabel":"Richten Sie hier ein, wenn Sie die Agent als Dauerrede einstellen möchten, und ändern Sie die Stillesekunden, wenn Sie sie anpassen möchten.","continuousSpeechLabel":"Kontinuierliche Rede","continuousSpeechDisabled":"Kontinuierliche Rede deaktiviert, da der Agent im Stummschaltmodus ist","holdToSpeak":"Halten Sie gedrückt, um zu sprechen","releaseToEndListening":"Lassen Sie los, um das Hören zu beenden","pressAndHoldToSpeak":"Zum Sprechen gedrückt halten","microphoneMode":"Mikrofonmodus","hideEmissionsLabel":"Vom Zwilling ausgegebenen Text ausblenden","secondsLabel":"Sekunden einstellen","controlsPosition":"Steuert die Position","tryMeHeaderLabel":"VERSUCHEN","unknownPosition":"Unbekannte Position","fieldPlace":"Geben Sie den Ort ein (z. B. \\"Mailand\\")","showMapLinkFor":"Zeigen Sie die Position auf der Karte an","useMyPosition":"Nutzen Sie meine Position","myPosition":"Ihre Position","updatingPosition":"Position wird aktualisiert...","placeNotFound":"Ort nicht gefunden!","requirePosition":"Geben Sie vor dem Start Ihre Position ein","requirePositionHelp":"Zum Reden {{name}} Sie müssen entscheiden, ob Sie Ihre Position angeben oder nicht. ","dontWantToProvidePosition":"Ich möchte meine Position nicht bekannt geben","attachmentsLabel":"Bereichern Sie Ihre Botschaft","iWantToTalkToIn":"Ich möchte mit reden {{name}} In","message":"nachricht","messages":"nachrichten","page":"Seite {{current}} von {{total}}"},"artifact":{"close":"Schließen","size":"Größe","generated":"Generiert","download":"Herunterladen","print":"Drucken","external":"In neuem Fenster öffnen","type":"Typ","fullscreen":"Vollbild","exitFullscreen":"Vollbild beenden","copy":"Kopieren","generatedAt":"Generiert am","open":"Öffnen","code":"Code","preview":"Vorschau","copied":"Kopiert!","error":"Fehler","generatingPdf":"PDF wird generiert...","copying":"Kopiere...","moreCopyOptions":"Weitere Kopieroptionen","copyAs":"Kopieren als","downloadAsMarkdown":"Als Markdown herunterladen","downloadRawMarkdownText":"Rohmarkdown-Text herunterladen","downloadAsPdf":"Als PDF herunterladen","exportAsPdfDocument":"Als PDF-Dokument exportieren","downloadAsHtml":"Als HTML herunterladen","downloadFormattedHtml":"Formatiertes HTML herunterladen","viewMode":"Ansichtsmodus","codeMode":"Code-Modus","refresh":"Aktualisieren","share":"Teilen","downloadAsJson":"Als JSON herunterladen","downloadJsonData":"JSON-Daten herunterladen","downloadAsPng":"Als PNG herunterladen","downloadPngImage":"PNG-Bild herunterladen","downloadAsJpeg":"Als JPEG herunterladen","downloadJpegImage":"JPEG-Bild herunterladen","downloadAsGif":"Als GIF herunterladen","downloadGifImage":"GIF-Bild herunterladen","downloadAsWebp":"Als WebP herunterladen","downloadWebpImage":"WebP-Bild herunterladen","copyAsSvg":"Als SVG kopieren","copySvgSourceCode":"SVG-Quellcode kopieren","copyAsPlainText":"Als Klartext kopieren","copyAsText":"Als Text kopieren","copyAsLanguage":"Als {{language}} kopieren","copyLanguageCode":"{{language}}-Code kopieren","copyWithoutSyntaxHighlighting":"Ohne Syntaxhervorhebung kopieren","copyTextContent":"Textinhalt kopieren","pdfExportNotSupported":"PDF-Export wird in diesem Browser nicht unterstützt","popupBlocked":"Popup blockiert! Bitte aktivieren Sie Popups zum Drucken.","safariPdfInstructions":"PDF-Export in neuem Fenster geöffnet. Bitte verwenden Sie Cmd+P (Mac) oder Strg+P (Windows) zum Drucken und als PDF speichern."},"upload":{"loginRequired":"Login erforderlich","pastedText":"text-eingefügt","uploadNotification":"Hochladen fehlgeschlagen","loginRequiredDescription":"Bitte melden Sie sich an, um Bilder hochzuladen","uploadFiles":"Dateien hochladen ({{shortcut}}+O zum Öffnen des Datei-Selektors)","uploadFilesWithShortcut":"{{shortcut}}+O zum Öffnen des Datei-Selektors","uploadImages":"Bilder hochladen","uploadDocuments":"Dokumente hochladen","replace":"Ersetzen","remaining":"verbleibend","maxReached":"Maximal erreicht","apiClientNotConfigured":"Client API nicht korrekt konfiguriert für das Hochladen von Medien","fileReadingFailed":"Datei lesen fehlgeschlagen","uploadFailed":"Hochladen fehlgeschlagen","uploadSuccess":"Hochladen erfolgreich","uploadSuccessDescription":"Die Datei wurde erfolgreich hochgeladen","maxImagesReached":"Sie können bis zu {{max}} Bilder hochladen","dragAndDropFiles":"Ziehen Sie Dateien hierher, um sie zur Chat hinzuzufügen","contextSizeExceedsLimit":"Die Kontextgröße überschreitet das Limit. Reduzieren Sie die Anzahl der Dateien oder den Inhalt der Konversation.","filesNotAddedMaxAllowed":"{{count}} Datei(en) nicht hinzugefügt (maximal {{max}} Dateien erlaubt).","documentsNotAddedMaxAllowed":"{{count}} Dokument(e) nicht hinzugefügt (maximal {{max}} Dateien erlaubt).","imagesNotAddedMaxAllowed":"{{count}} Bild(er) nicht hinzugefügt (maximal {{max}} Dateien erlaubt).","documentsNotAddedContextSize":"{{count}} Dokument(e) nicht hinzugefügt (Kontextgrößen-Limit)."},"media":{"title":"Titel","editAttributes":"Medienattribute bearbeiten","uploadMimeTypeNotAllowed":"Der Dateityp ist nicht zulässig","uploadSizeLimitMessage":"Die hochgeladene Größe ist zu groß (max {{size}}MB)","uploadWrongResolutionMessage":"Die Auflösung muss sein {{width}}X{{height}} Pixel","memoriNameAlreadyUsed":"Du hast bereits einen Zwilling mit diesem Namen","uploadHelperImages":"Laden Sie eine Datei mit der Erweiterung PNG, JPG, JPEG oder GIF hoch und darf maximal eine Größe von haben {{size}}MB","uploadHelper":"Laden Sie eine Datei mit einer maximalen Größe von hoch {{size}}MB","uploadError":"Der Upload ist fehlgeschlagen","square":"Quadrat","scaleRatio":"Maßstabsverhältnis","addMediaLabel":"Fügen Sie ein Medium hinzu","insertThisMediaMsg":"Legen Sie diese Medien ein","mediaUploadMessage":"Klicken Sie hier, um ein neues Medium zu laden","addLinkLabel":"Fügen Sie einen Link hinzu","linkKey":"URL","linkValue":"Linktitel","insertThisLink":"Fügen Sie einen Link ein {{url}} mit Titel {{title}}"},"gamification":{"level":"Ebene","points":"Punkte","memoriReachedLevel":"entwickelte sich weiter und erreichte ein höheres Niveau","levelGoToStatistics":"{{memori}} ist auf gleicher Höhe {{level}} mit {{points}} Punkte. ","congratulationsNewLevel":"Herzlichen Glückwunsch, Sie haben ein neues Level erreicht!","congratulationsNewLevelDescription":"Ihre Agent wurden mit weiterentwickelt {{points}} Punkte, schauen Sie sich die an","statistics":"Statistiken"},"login":{"login":"Login","logout":"Abmelden","user":"Benutzer","loggedDrawerTitle":"Hallo, {{name}}!","userNameRequired":"Benutzername erforderlich","userName":"Benutzername","userNamePlaceholder":"Geben Sie den Benutzernamen ein","loginDrawerTitle":"Login","signupDrawerTitle":"Melden Sie sich an","newUserSignUp":"Neuer Benutzer?","signUp":"Melden Sie sich an!","alreadyHaveAnAccount":"Sie haben bereits ein Konto?","backToLogin":"Zurück zum Login","registrationDisabled":"Die Registrierung ist deaktiviert","contactAdmin":"Wenden Sie sich an den Administrator, um Zugriff anzufordern","userNameOrEmail":"Benutzername oder E-Mail","email":"E-Mail","emailFormatError":"Bitte geben Sie eine gültige E-Mail-Adresse ein","username":"Benutzername","usernameContainsReservedWord":"Der Benutzername enthält ein reserviertes Wort. Bitte wählen Sie ein anderes","usernameFormatError":"Der Benutzername muss mindestens 3 Zeichen lang sein und darf nur Buchstaben, Zahlen und _ enthalten.","otpCode":"Bestätigungscode","resendVerificationCode":"Code erneut senden","resentVerificationCode":"Bestätigungscode gesendet! ","welcomeTitle":"Willkommen zurück","welcomeDescription":"Geben Sie Ihren 4-stelligen Bestätigungscode ein, um zu Ihrem Konto fortzufahren","otpTitle":"Bestätigungscode eingeben","otpDescription":"Geben Sie den 4-stelligen Code ein, den Sie in Ihrem Konto generiert haben","otpStep1":"Klicken Sie auf die Schaltfläche unten, um Ihr Konto zu öffnen","otpStep2":"Generieren Sie einen 4-stelligen Bestätigungscode (60 Sekunden gültig)","otpStep3":"Kehren Sie hierher zurück und geben Sie den Code ein","startOtpLogin":"Verifizierung starten","generateOtp":"Code generieren","otpTimer":"Code läuft in {{seconds}} Sekunden ab","otpInvalidFormat":"Bitte geben Sie einen gültigen 4-stelligen Code ein","otpInvalid":"Ungültiger Bestätigungscode","otpError":"Fehler bei der Code-Validierung. Bitte versuchen Sie es erneut.","otpSuccess":"Anmeldung erfolgreich!","password":"Passwort","newPassword":"Neues Passwort","confirmPassword":"Passwort bestätigen","currentPassword":"Aktuelles Passwort","passwordMatchingError":"Passwörter stimmen nicht überein.","passwordFormatError":"Das Passwort muss mindestens 8 Zeichen lang sein und mindestens eine Zahl, einen Großbuchstaben, einen Kleinbuchstaben und ein Symbol enthalten","pwdWeak":"Schwach","pwdAcceptable":"Akzeptabel","pwdStrong":"Stark","mustChangePassword":"Sie müssen Ihr Passwort ändern","passwordChange":"Kennwort ändern","emailChange":"E-Mail ändern","avatarChange":"Avatar ändern","underage":"Das müssen Sie mindestens sein {{age}} Jahre alt, um sich anzumelden.","optional":"Optional","birthDate":"Geburtsdatum","birthDateHelper":"Wir fragen nur nach Ihrem Geburtsdatum, um Funktionen zu aktivieren oder zu deaktivieren, für die Altersbeschränkungen gelten","missingData":"Fehlende Informationen","missingDataHelper":"Wir wissen, dass dies etwas nervig ist, benötigen jedoch noch einige weitere Informationen, um Ihre Registrierung abzuschließen.","goToAccountToChangeYourPreferences":"Sie können Ihre Auswahl jederzeit auf Ihrer Kontoseite ändern.","deepThoughtExplaination":"Deep Thought ist eine erweiterte Funktion der KI, die es Ihnen ermöglicht, Ihre Gespräche voll auszuschöpfen, indem Sie sie verfolgen. ","tnCAndPPAcceptedHelper":"Seit Ihrer letzten Anmeldung haben sich die AGB und Datenschutzbestimmungen geändert. ","privacyLabel":"Ich habe die gelesen und akzeptiert","privacyAndCookiePolicy":"Datenschutz und Cookie-Richtlinie","and":"Und","termsOfService":"Nutzungsbedingungen","pAndCUAccepted":"Ich akzeptiere die Nutzungsbedingungen von Deep Thought","editAccount":"Konto bearbeiten","save":"Speichern","successfullyLoggedIn":"{{username}} hat sich erfolgreich angemeldet"},"chatLogs":{"anyMessage":"Jede Nachricht","atLeast":"Mindestens {{count}} Nachrichten","atLeast2":"Mindestens 2 Nachrichten","atLeast3":"Mindestens 3 Nachrichten","atLeast5":"Mindestens 5 Nachrichten","atLeast10":"Mindestens 10 Nachrichten","atLeast15":"Mindestens 15 Nachrichten","atLeast20":"Mindestens 20 Nachrichten","customMinimumMessages":"Anpassen Sie die Anzahl der Nachrichten"},"success":"Erfolg","Error":"Fehler","internal server error":"Oupsie, tut mir leid... Auf dem Server ist ein Fehler aufgetreten","error":"Fehler","error.loading":"Fehler beim Laden des Inhalts.","error.generic":"Oupsie, tut mir leid ... etwas ist schief gelaufen.","error.serverNotResponding":"Wir führen Wartungsarbeiten durch oder veröffentlichen Updates. ","error.notFound":"Oupsie, wir haben die von Ihnen gesuchte Seite nicht gefunden.","error.goBackTo":"Sie können versuchen, dorthin zurückzukehren","error.reloadPage":"Laden Sie die Seite neu","error.tryAgain":"Versuchen Sie es erneut","error.unauthorized":"Es ist Ihnen nicht gestattet, diesen Inhalt anzuzeigen.","error.unprocessableEntity":"Fehler beim Verarbeiten der Anfrage. ","errors":{"TENANT_NOT_FOUND":"Mieter nicht gefunden","TENANT_REGISTRATION_DISABLED":"Die Registrierung auf dieser Plattform ist deaktiviert","TENANT_MISSING_NAME":"Mieter: Name fehlt","TENANT_MAX_USERS_REACHED":"Maximale Anzahl Benutzer erreicht","TENANT_MAX_ADMINS_REACHED":"Maximale Anzahl an Admin-Benutzern erreicht","TENANT_ALREADY_EXISTS":"Mieter existiert bereits","TENANT_MISSING_DESCRIPTION":"Mieter: Beschreibung fehlt","TENANT_CANT_SET_COMPLETION_PROVIDER":"Mandant: Abschlussanbieter kann nicht festgelegt werden","TENANT_INVALID_TYPE":"Mandant: ungültiger Typ","USER_NOT_CONFIRMED":"Benutzer noch nicht bestätigt","USER_NOT_FOUND":"Benutzer nicht gefunden","USER_OR_PASSWORD_INVALID":"Ungültiger Benutzer oder Passwort","USER_MUST_CHANGE_PASSWORD":"Sie müssen Ihr Passwort ändern","USER_MUST_ENTER_VERIFICATION_CODE":"Sie müssen den Bestätigungscode eingeben","USER_MISSING_TENANT":"Benutzer: Mieter fehlt","USER_MISSING_NAME":"Benutzer: Name fehlt","USER_MISSING_PASSWORD":"Benutzer: Passwort fehlt","USER_MISSING_EMAIL":"Benutzer: Fehlende E-Mail","USER_MISSING_VERIFICATION_CODE":"Benutzer: Fehlender Bestätigungscode","USER_NAME_ALREADY_USED":"Benutzername wird bereits verwendet","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"Das Passwort entspricht nicht den Sicherheitsregeln","USER_EMAIL_ALREADY_USED":"E-Mail wird bereits verwendet","USER_EMAIL_INVALID":"Ungültige E-Mail","USER_VERIFICATION_CODE_INVALID":"Ungültiger Bestätigungscode","USER_MISSING_NAME_OR_EMAIL":"Benutzername oder E-Mail fehlen","USER_NAME_INVALID":"Ungültiger Benutzername","USER_HAS_ONE_OR_MORE_MEMORI":"Der Benutzer verfügt über eine oder mehrere Erinnerungen","USER_MISSING_NEW_PASSWORD":"Benutzer: Neues Passwort fehlt","USER_NOTHING_TO_DO":"Nichts zu tun","USER_CANT_CREATE_MEMORI":"Benutzer darf Agent nicht erstellen","USER_MAX_MEMORI_REACHED":"Maximale Anzahl an Agent erreicht","USER_TOO_MANY_ATTEMPTS":"Zu viele Versuche","USER_MUST_ACCEPT_TNC_AND_PP":"Sie müssen die Allgemeinen Geschäftsbedingungen akzeptieren","USER_BIRTH_DATE_CANT_BE_CHANGED":"Das Geburtsdatum kann nicht geändert werden","USER_CANT_SET_COMPLETION_PROVIDER":"Benutzer: darf den Vervollständigungsanbieter nicht verwalten","USER_CANT_ENABLE_DEEP_THOUGHT":"Benutzer: nicht für die Verwaltung von Deep Thought aktiviert","USER_CANT_ENABLE_DCM_INTEGRATION":"Benutzer: nicht für die Verwaltung der DCM-Integration aktiviert","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"Benutzer: darf die Verkettung oder Expertengruppe nicht verwalten","USER_CREATION_BILLING_DENIED_PERMISSION":"Sie haben nicht genügend Credits, um einen Zwilling zu erstellen","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"Der Benutzer verfügt über eine oder mehrere Abschlusskonfigurationen","USER_CANT_BE_DELETED":"Benutzer kann nicht gelöscht werden","USER_ORDER_BY_INVALID":"Ungültige Sortierreihenfolge","MEMORI_NOT_FOUND":"Erinnerungen nicht gefunden","MEMORI_NOT_ACCESSIBLE":"Agent nicht zugänglich","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Nur der Eigentümer kann das Tag oder die PIN ändern","SESSION_NOT_FOUND":"Sitzung nicht gefunden","SESSION_IS_NOT_ADMINISTRATIVE":"Nicht-administrative Sitzung","SESSION_EXPIRED":"Sitzung abgelaufen","MEMORI_MISSING_CONFIGURATION":"Zwilling: fehlende Konfiguration","MEMORI_CONFIGURATION_NOT_FOUND":"Zwilling: Konfiguration nicht gefunden","MEMORI_INVALID_PRIVACY_TYPE":"Agent: ungültiger Datenschutztyp","MEMORI_MISSING_PASSWORD":"Zwilling: Passwort fehlt","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Agent: Gesamtzahl ungültiger Wiederherstellungstokens","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Agent: Mindestanzahl ungültiger Wiederherstellungstokens","MEMORI_INVALID_VOICE_TYPE":"Zwilling: ungültiger Stimmtyp","MEMORI_MISSING_NAME":"Zwilling: fehlender Name","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Zwilling: Fehlendes Passwort oder Wiederherstellungstoken","MEMORI_INVALID_ID":"Zwilling: ungültige ID","MEMORI_NAME_ALREADY_USED":"Zwillingsname wird bereits verwendet","MEMORI_INVALID_PIN":"Zwilling: Ungültige PIN","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Zwilling: TAG- und PIN-Änderung erfordern separate Vorgänge","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Zwilling: Im öffentlichen Zustand ist kein Passwort erforderlich","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Für \\"Deep Thought\\" müssen Vervollständigungen aktiviert sein","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"Für die Expertengruppe müssen Vervollständigungen aktiviert sein","MEMORI_INVALID_COMPLETION_CONFIG":"Zwilling: Ungültige Abschlusskonfiguration","MEMORI_MACRO_FUNCTIONS_REQUIRES_COMPLETIONS":"Für die Makrofunktionen müssen Vervollständigungen aktiviert sein","MEMORI_BLOCKING_DATE_MISSING_OR_WRONG":"Zwilling: fehlende oder falsche Blockierungsdatum","MEMORI_LIST_FILTER_NOT_SPECIFIED":"Zwilling: fehlender Filter","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Übertragung: Zielbenutzer fehlt","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Übertragung: Ungültige Zielbenutzer-ID","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Übertragung: Ungültige Zielbenutzerdaten","MEMORI_TRANSFER_NOTHING_TO_DO":"Transfer: nichts zu tun","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Speicher: Konfiguration kann nicht geändert werden","MEMORI_MISSING_NEW_PASSWORD":"Erinnerungen: Neues Passwort fehlt","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"Für die Funktion ist ein Abonnement erforderlich","INTEGRATION_NOT_FOUND":"Integration nicht gefunden","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Ungültiges Datum aus Format","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Ungültiges Datum zum Formatieren","MEMORI_SESSION_NOT_FOUND":"Sitzung nicht gefunden","MEMORI_SESSION_DOESNT_ACCEPT_MEDIA":"Sitzung akzeptiert keine Medien","INTEGRATION_INVALID_TYPE":"Ungültiger Integrationstyp","INTEGRATION_ALREADY_EXISTS":"Die Integration ist bereits vorhanden","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Nicht-öffentliche Erinnerungen können nicht integriert werden","INTEGRATION_MISSING_INVOCATION_TEXT":"Integration: fehlender Aufruftext","INTEGRATION_MISSING_DEVICE_EMAILS":"Integration: Fehlende Geräte-E-Mail","INTEGRATION_MEMORI_IS_EMPTY":"Leere Erinnerungen können nicht integriert werden","INTEGRATION_MISSING_PRIVACY_POLICY":"Integration: Datenschutzrichtlinie fehlt","INTEGRATION_MISSING_CATEGORY":"Integrationskategorie fehlt","INTEGRATION_MISSING_DESCRIPTION":"Fehlende Integrationsbeschreibung","INTEGRATION_INVALID_INVOCATION_TEXT":"Ungültiger Aufruftext","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home nicht mehr verfügbar","UPLOAD_REQUIRES_MULTIPART_ENCODING":"Für den Upload ist eine mehrteilige Kodierung erforderlich","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Hochladen: Inhaltstypgrenze fehlt","UPLOAD_MAX_LENGTH_EXCEEDED":"Upload: Maximale Größe überschritten","UPLOAD_FILE_IS_EMPTY":"Hochladen: leere Datei","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Hochladen: Ungültiger Dateityp oder ungültige Signatur","UPLOAD_MISSING_FILE_NAME":"Hochladen: Dateiname fehlt","UPLOAD_INVALID_MEMORY_ID":"Hochladen: Ungültige Inhalts-ID","UPLOAD_MISSING_FILE_CONTENT":"Hochladen: Dateiinhalt fehlt","ASSET_NOT_FOUND":"Asset nicht gefunden","ASSET_NOT_ACCESSIBLE":"Asset nicht zugänglich","ASSET_MISSING_SESSION_ID":"Asset: Sitzungs-ID fehlt","ASSET_INVALID_FILE_NAME":"Asset: ungültiger Dateiname","ASSET_MALWARE_SCAN_THREATS_FOUND":"Asset: malware scan threats found","INVITATION_NOT_FOUND":"Einladung nicht gefunden","INVITATION_NOT_ACCESSIBLE":"Einladung nicht zugänglich","INVITATION_ALREADY_ACCEPTED":"Einladung bereits angenommen","INVITATION_ALREADY_REJECTED":"Einladung bereits abgelehnt","INVITATION_MISSING_DESTINATION_EMAIL":"Einladung: Ziel-E-Mail fehlt","INVITATION_DESTINATION_EMAIL_INVALID":"Einladung: Ziel-E-Mail-Adresse ungültig","INVITATION_MISSING_TAG":"Einladung: Tag fehlt","INVITATION_MISSING_PIN":"Einladung: PIN fehlt","INVITATION_INVALID_PIN":"Einladung: ungültige PIN","INVITATION_INVALID_TYPE":"Einladung: ungültiger Typ","INVITATION_MISSING_DESTINATION_NAME":"Einladung: Zielname fehlt","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Einladung: Tag und Pin können nicht geändert werden","INVITATION_CANT_BE_CHANGED":"Absicht: kann nicht geändert werden","ACTIONLOG_INVALID_USER_ID":"Ungültige Benutzer-ID","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Datum von: ungültiges Format","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Datum bis: ungültiges Format","ACTIONLOG_INVALID_MEMORI_ID":"Ungültige Memori-ID","CONSUMPTIONLOG_INVALID_TYPE":"Ungültiger Protokolltyp","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Datum von: ungültiges Format","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Datum bis: ungültiges Format","CONSUMPTIONLOG_INVALID_USER_ID":"Ungültige Benutzer-ID","CONSUMPTIONLOG_INVALID_MEMORI_ID":"Ungültige Memori-ID","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Benachrichtigungen: Ungültiger Chat-Protokoll-Extraktionszeitraum","BROADCAST_NOT_ALLOWED":"Broadcast nicht erlaubt","INVALID_NOTIFICATION_TYPE":"Ungültiger Benachrichtigungstyp","NOTIFICATION_NOT_FOUND":"Benachrichtigung nicht gefunden","INVALID_NOTIFICATION_FILTER":"Ungültiger Benachrichtigungsfilter","INVALID_NOTIFICATION_PERIOD":"Ungültiger Benachrichtigungszeitraum","PROCESS_INVALID_TYPE":"Ungültiger Prozesstyp","PROCESS_ALREADY_RUNNING":"Prozess läuft bereits","PROCESS_NOT_FOUND":"Prozess nicht gefunden","IMPORTCSV_MISSING_ROWS":"CSV-Import: fehlende Zeilen","IMPORTCSV_MISSING_CSV":"CSV-Import: CSV fehlt","IMPORTCSV_MISSING_SEPARATOR":"CSV-Import: fehlendes Trennzeichen","IMPORTCSV_INVALID_SEPARATOR":"CSV-Import: Ungültiges Trennzeichen","IMPORTCSV_MISSING_HEADERS":"CSV-Import: fehlende Header","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"CSV-Import: Titelvariantentrennzeichen fehlt","IMPORTCSV_INVALID_RECEIVER_ID":"CSV-Import: ungültige Empfänger-ID","IMPORTCSV_INVALID_MEDIA_LINK":"CSV-Import: Ungültiger Medienlink","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"CSV-Import: Ungültiger Linktitel","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"CSV-Import: Nicht erkennbare Zeichenkodierung","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"CSV-Import: Der Import in Secret Memories ist nicht möglich","IMPORTTXT_MISSING_ROWS":"TXT wird importiert: Zeilen fehlen","IMPORTTXT_INVALID_GRANULARITY":"TXT importieren: ungültige Granularität","IMPORTTXT_INVALID_RECEIVER_ID":"TXT importieren: ungültige Empfänger-ID","IMPORTTXT_INVALID_MEDIA_LINK":"TXT importieren: Ungültiger Medienlink","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"TXT importieren: ungültiger Linktitel","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"TXT-Import: Nicht erkennbare Zeichenkodierung","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"TXT-Import: Der Import in Secret Memories ist nicht möglich","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"TXT importieren: Importlimit überschritten","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"TXT importieren: Für den Import auf GPT-4 ist ein API-Schlüssel erforderlich","IMPORTTXT_IMPORT_REQUIRES_PAYING":"TXT importieren: Für den Import ist ein kostenpflichtiger Plan erforderlich","IMPORTTXT_BILLING_DENIED_PERMISSION":"TXT importieren: Sie haben nicht genügend Credits für den Vorgang","IMPORT_MISSING_ROWS":"Import: fehlende Zeilen","IMPORT_CANT_IMPORT_TO_SECRET_MEMORI":"Import: Der Import in Secret Memories ist nicht möglich","IMPORTMEMORI_INVALID_MEMORI_SPECS":"Import MEMORI: ungültige Agentenspezifikationen","IMPORT_MISSING_JSONL":"Import: JSONL fehlt","IMPORTMEMORI_INVALID_SPECS":"Import MEMORI: ungültige Spezifikationen","EXPORT_MISSING_PASSWORD":"Export: Passwort fehlt","EXPORTCSV_MISSING_CSV_SPECS":"CSV-Export: CSV-Spezifikationen fehlen","EXPORTCSV_MISSING_SEPARATOR":"CSV-Export: fehlendes Trennzeichen","EXPORTCSV_INVALID_SEPARATOR":"CSV-Export: Ungültiges Trennzeichen","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"CSV-Export: fehlendes Titelvarianten-Trennzeichen","EXPORTCSV_MISSING_NEW_LINE_CHAR":"CSV-Export: Fehlendes Zeilenumbruchzeichen","EXPORTCSV_INVALID_NEW_LINE_CHAR":"CSV-Export: Ungültiges Zeilenumbruchzeichen","EXPORTCSV_MISSING_PASSWORD":"CSV-Export: Passwort fehlt","EXPORTJSONL_MISSING_JSONL_SPECS":"JSONL-Export: JSONL-Spezifikationen fehlen","EXPORTJSONL_MISSING_PLATFORM":"JSONL-Export: fehlende Plattform","EXPORTJSONL_INVALID_PLATFORM":"JSONL-Export: ungültige Plattform","EXPORTJSONL_MISSING_PASSWORD":"JSONL-Export: Passwort fehlt","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"JSONL-Export: Für den Export ist ein kostenpflichtiger Plan erforderlich","ANALYSIS_MISSING_QUERY":"Analyse: fehlende Abfrage","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Analyse: Geheime Erinnerungen können nicht analysiert werden","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Analyse: Passende Benutzeranfragen erfordern tiefes Denken","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Ausweiszuweisung: falsche oder fehlende Zugangsdaten","BADGE_ASSIGNMENT_MISSING_REF_ID":"Badge-Zuordnung: Referenz-ID fehlt","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Badge-Zuweisung: Ergebnis nicht gefunden","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Badge-Zuweisung: Fehlende Behauptungs-URL","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Badge-Zuweisung: Badge-URL fehlt","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Badge-Zuweisung: Aussteller-URL fehlt","BADGE_ASSIGNMENT_INVALID_URL":"Badge-Zuweisung: Ungültige URL","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Ausweiszuordnung: fehlender Empfänger","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Badge-Zuordnung: unbekannter Empfängertyp","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Ausweiszuordnung: Empfängeridentität fehlt","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Badge-Zuweisung: Empfänger-Hash-Typ fehlt","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Badge-Zuweisung: Empfänger-Hash-Typ unbekannt","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Badge-Zuordnung: Falsche Empfängeridentität","BADGE_NOT_FOUND":"Abzeichen nicht gefunden","OUTCOME_NO_DCM_CONFIGURED":"Ergebnis: kein DCM konfiguriert","OUTCOME_USER_BADGES_DISABLED":"Ergebnis: Benutzerausweise deaktiviert","COMPLETION_CONFIG_MISSING_NAME":"Vervollständigungskonfiguration: Name fehlt","COMPLETION_CONFIG_MISSING_PROVIDER":"Vervollständigungskonfiguration: fehlender Anbieter","COMPLETION_CONFIG_MISSING_ENDPOINT":"Abschlusskonfiguration: fehlender Endpunkt","COMPLETION_CONFIG_MISSING_API_KEY":"Vervollständigungskonfiguration: fehlender API-Schlüssel","COMPLETION_CONFIG_MISSING_MODEL":"Vervollständigungskonfiguration: fehlendes Modell","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Vervollständigungskonfiguration: Es muss mindestens ein Vervollständigungstyp angegeben werden","COMPLETION_CONFIG_INVALID_NAME":"Vervollständigungskonfiguration: ungültiger Name","COMPLETION_CONFIG_INVALID_PURPOSE":"Vervollständigungskonfiguration: Ungültiger Vervollständigungstyp","COMPLETION_CONFIG_INVALID_ENDPOINT":"Abschlusskonfiguration: Ungültiger Endpunkt","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Abschlusskonfiguration: inkonsistenter Endpunkt","COMPLETION_CONFIG_INVALID_PROVIDER":"Vervollständigungskonfiguration: ungültiger Anbieter","COMPLETION_CONFIG_NOT_FOUND":"Vervollständigungskonfiguration: nicht gefunden","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Vervollständigungskonfiguration: nicht zugänglich","COMPLETION_CONFIG_NAME_RESERVED":"Vervollständigungskonfiguration: Name reserviert","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Vervollständigungskonfiguration: Name existiert bereits","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Vervollständigungskonfiguration: Änderung der Sichtbarkeit nicht zulässig","COMPLETION_CONFIG_MISSING_MANDATORY_PREFIX":"Vervollständigungskonfiguration: Pflichtpräfix fehlt","COMPLETION_CONFIG_VISIBILITY_NOT_PERMITTED":"Vervollständigungskonfiguration: Sichtbarkeit nicht erlaubt","COMPLETION_CONFIG_USE_AS_DEFAULT_NOT_PERMITTED":"Vervollständigungskonfiguration: Verwendung als Standard nicht erlaubt","COMPLETION_CONFIG_USE_AS_DEFAULT_REQUIRES_TENANT_VISIBILITY":"Vervollständigungskonfiguration: Verwendung als Standard erfordert Mandantensichtbarkeit","COMPLETION_CONFIG_CHARGEABLE_NOT_PERMITTED":"Vervollständigungskonfiguration: Chargeable nicht erlaubt","COMPLETION_CONFIG_INVALID_APPLY_TO":"Vervollständigungskonfiguration: Ungültige Anwendung","COMPLETION_CONFIG_APPLY_TO_TENANT_NOT_ALLOWED":"Vervollständigungskonfiguration: Anwendung auf Mandant nicht erlaubt","TRUSTED_APPLICATION_NOT_FOUND":"Vertrauenswürdige Anwendung nicht gefunden","TRUSTED_APPLICATION_NOT_ACCESSIBLE":"Vertrauenswürdige Anwendung nicht zugänglich","TRUSTED_APPLICATION_NAME_REQUIRED":"Vertrauenswürdige Anwendung: Name erforderlich","TRUSTED_APPLICATION_TOKEN_REQUIRED":"Vertrauenswürdige Anwendung: Token erforderlich","TRUSTED_APPLICATION_NAME_ALREADY_EXISTS":"Vertrauenswürdige Anwendung: Name existiert bereits","TRUSTED_APPLICATION_INVALID_TOKEN":"Vertrauenswürdige Anwendung: Ungültiger Token"}}');var CB;CB=JSON.parse('{"yes":"Sí","no":"No","confirm":"Confirmar","apply":"Aplicar","cancel":"Cancelar","show":"Espectáculo","hide":"Esconder","send":"Enviar","close":"Cerca","edit":"Editar","delete":"Borrar","loading":"Cargando","expand":"Expandir","collapse":"Colapsar","fullscreenEnter":"Entrar en pantalla completa","fullscreenExit":"Salir de pantalla completa","center":"Centro","bottom":"Abajo","hidden":"Oculto","day":"Día","all":"Todos","today":"Hoy","yesterday":"Ayer","last_7_days":"Últimos 7 días","last_30_days":"Últimos 30 días","placeholder":"Haz una pregunta","date":"Fecha de nacimiento","month":"Mes","copied":"¡Copiado!","missingData":"Información faltante","year":"Año","createdAt":"Fecha de creación","selected":"Seleccionado","page":"página","actions":"Comportamiento","next":"Próximo","previous":"Anterior","copy":"Copiar","copyRawCode":"Copiar código sin formato","copyToClipboard":"Copiar al portapapeles","showOriginalText":"Mostrar original","showTranslatedText":"Mostrar traducción","exactPosition":"Posición exacta","uncertain":"Incierto","question":"Pregunta","nothingFound":"No se encontró nada","venue":"Evento","searchVenue":"Buscar lugar...","privacyPolicy":"Política de privacidad","popularLanguages":"Populares","allLanguages":"Todos los idiomas","memoriBlockedTitle":"Obstruido","memoriBlockedUntil":"Agent bloqueado hasta {{date}}","memoriBlockedAnon":"Actualmente \\"{{name}}\\"No puedo responder, vuelve aquí. {{date}}","memoriBlockedReasonExceedChats":"porque ha superado el umbral mensual de chats permitidos.","memoriBlockedGiverHelper":"Aún podrás administrarlo como administrador, pero otros usuarios no podrán interactuar con él.","generatedByAI":"La respuesta generada por IA, ocasionalmente puede generar información incorrecta","reasoning":"Pensamiento...","whyThisAnswer":"¿Por qué esta respuesta?","whyThisAnswerHelper":"Esta respuesta fue generada automáticamente por una inteligencia artificial basada en estos contenidos verificados.","receiverLabel":"Asignado a","completionsEnabled":"La IA avanzada puede responder con respuestas generadas automáticamente que a veces pueden contener información incorrecta.","completionProviderDown":"Este Agent está integrado con una IA generativa de {{provider}}, pero actualmente no está disponible. ","completionProviderMajorOutage":"Este Agent está integrado con una IA generativa de {{provider}}, pero al momento no está disponible. No será posible utilizar esta funcionalidad hasta que el servicio se restaure.","completionProviderPartialOutage":"Este Agent está integrado con una IA generativa de {{provider}}, pero está experimentando interrupciones parciales. Algunas funcionalidades pueden no estar disponibles o funcionar de manera no óptima.","completionProviderDegraded":"Este Agent está integrado con una IA generativa de {{provider}}, pero está funcionando más lentamente de lo normal. Las respuestas pueden tomar más tiempo o ser menos precisas.","completionProviderFallbackName":"un proveedor externo","completionProviderCheckStatusPage":"Comprobar página de estado","boardOfExperts":"junta de expertos","birthDate":"Fecha de nacimiento","birthDateHelper":"Solicitamos tu fecha de nacimiento únicamente para habilitar o deshabilitar funcionalidades que tienen restricciones de edad.","underage":"Debes ser al menos {{age}} años para inscribirse.","underageTwinSession":"Debes ser al menos {{age}} años para interactuar con este gemelo.","errorFetchingSession":"Error durante el cargamento de la sesión","errorGettingReferralURL":"Error durante el cargamento del référent","errorReopeningSession":"Error durante el re-abrir la sesión","ageVerification":"Verificación de edad","ageVerificationText":"Para interactuar con este Gemelo, debes tener al menos {{minAge}} años.","nsfw":"NSFW: Este gemelo contiene contenido para adultos","deepThought":"pensamiento profundo","deepThoughtHelper":"Deep Thought es una característica avanzada de la IA que te permitirá explotar al máximo tus conversaciones al realizar un seguimiento de ellas. ","deepThoughtDisclaimerTitle":"Pensamiento profundo habilitado","deepThoughtDisclaimer":"Deep Thought es una característica avanzada de la IA que te permitirá explotar al máximo tus conversaciones al realizar un seguimiento de ellas. ","deepThoughtPreDisclaimerUnlogged":"Inicie sesión para habilitar Pensamiento profundo.","deepThoughtPreDisclaimerNotAllowed":"Deep Thought está deshabilitado porque usted no dio su consentimiento para su uso; puede cambiar esto en cualquier momento en la configuración de su cuenta.","notEnoughCredits":"El autor de este Gemelo no tiene suficientes créditos para responder a tu pregunta.","confirmDialog":{"title":"¿Quieres salir de esta página?","message":"Los cambios que has realizado se perderán."},"knownFacts":{"title":"hechos conocidos","description":"Detalles de la información compartida entre usted y {{memoriName}}","type":"Tipo","typeShortTerm":"Corto plazo","typeLongTerm":"Largo plazo","typeHelper":"Tipos:\\n","text":"Texto","deleteSuccess":"Hecho conocido eliminado","deleteConfirmTitle":"Eliminar hecho conocido","deleteConfirmMessage":"¿Está seguro de que desea eliminar este hecho conocido?","deleteSelectedConfirmTitle":"Eliminar hechos conocidos seleccionados","deleteSelectedConfirmMessage":"¿Está seguro de que desea eliminar los hechos conocidos seleccionados?"},"auth":{"title":"Autenticación","useRecoveryTokens":"Utilice tokens de recuperación","tokens":"Fichas","addToken":"Agregar token","usePassword":"Usar contraseña","passwordRequired":"Contraseña obligatoria","invalidCredentials":"Credenciales no válidas","atLeast":"Al menos"},"widget":{"instruct":"Instruir","test":"Probar","sound":"Sonido","position":"Preferencias de posición","settings":"Ajustes","share":"Compartir","shareChat":"Compartir chat","sendOnKeypress":"Presiona Enter para enviar","sendOnClick":"Haz clic en Enviar","boardOfExperts":"Panel de expertos","showExpertsInTheBoard":"Mostrar expertos en este panel","expertsInTheBoard":"Expertos en este panel","goToIntegrationsToCustomizeAvatar":"Para personalizar el avatar, ve a Compartir y personaliza la página pública"},"exportChatHistory":{"exportPDF":"Exportar chat como PDF","exporting":"Exportando...","empty":"No hay historial de chat para exportar","pdfNotSupported":"La exportación PDF no es compatible con este navegador","success":"Chat exportado a PDF exitosamente","error":"Error al exportar el chat a PDF. Por favor, inténtalo de nuevo."},"write_and_speak":{"micButtonPopover":"Haga clic en el botón para hablar","micButtonPopoverListening":"Haga clic en el botón para dejar de hablar.","pageInstructExplanation":"Para enseñarme cosas nuevas, haga clic en el botón INSTRUIRME para comenzar.","pageTryMeExplanation":"Para hablar conmigo haga clic en el botón INICIO para comenzar","pagePrivacyExplanation":"Las conversaciones son visibles por el autor del agente","pagePrivacyExplanationList":{"allConversations":"Todas las conversaciones con este agente son visibles por el autor del agente","anonymousUser":"Para usuarios anónimos: el autor verá el contenido de la conversación y su dirección IP","registeredUser":"Para usuarios registrados: el autor verá el contenido de la conversación y su nombre de usuario","contentAndUsername":"El autor puede ver el contenido, tu nombre de usuario y tu dirección IP","contentAndIpAddress":"El autor puede ver el contenido y tu dirección IP","authorUsesInfo":"El autor utiliza estas informaciones para mejorar las funciones del agente y para ofrecerte un mejor servicio. Continuando la conversación, acepta estas condiciones."},"instructButton":"INSTRUÍME","downloadChat":"Descargar chat","tryMeButton":"COMENZAR","resumeButton":"CONTINUAR","chatHistory":"Historial de chat","chatHistoryDescription":"Mostrar el historial de chat con este agente","loadingChatHistory":"Cargando historial de chat...","noChatHistoryAvailable":"No hay historial de chat disponible","noResultsFound":"No se encontraron resultados para \\"{{searchText}}\\"","searchInChatHistory":"Buscar en el historial de chat...","latestFirst":"Más recientes primero","oldestFirst":"Más antiguos primero","exportChat":"Exportar Chat","conversationStartedLabel":"Conversación iniciada","settingsHeaderLabel":"Configure aquí si desea configurar la memoria como voz continua y cambie los segundos de silencio si desea personalizarlos.","continuousSpeechLabel":"discurso continuo","continuousSpeechDisabled":"Discurso continuo deshabilitado porque el agente está en modo silencioso","holdToSpeak":"Mantenga para hablar","releaseToEndListening":"Suelte para finalizar la escucha","pressAndHoldToSpeak":"Mantenga presionado para hablar","microphoneMode":"Modo micrófono","hideEmissionsLabel":"Ocultar texto emitido por el Agent","secondsLabel":"Establecer segundos","controlsPosition":"Posición de los controles","tryMeHeaderLabel":"INTENTAR","unknownPosition":"Posición desconocida","fieldPlace":"Escribe el lugar (por ejemplo, \'Milano\')","showMapLinkFor":"Mostrar la posición en el mapa.","useMyPosition":"Usa mi posición","myPosition":"Tu posición","updatingPosition":"Actualizando posición...","placeNotFound":"¡Lugar no encontrado!","requirePosition":"Inserte su posición antes de comenzar","requirePositionHelp":"para hablar con {{name}} usted tiene que decidir si proporciona su puesto o no. ","dontWantToProvidePosition":"No quiero proporcionar mi puesto.","attachmentsLabel":"Enriquece tu mensaje","iWantToTalkToIn":"quiero hablar con {{name}} en","message":"mensaje","messages":"mensajes","page":"Página {{current}} de {{total}}"},"artifact":{"close":"Cerrar","size":"Tamaño","generated":"Generado","download":"Descargar","print":"Imprimir","external":"Abrir en una nueva ventana","type":"Tipo","fullscreen":"Pantalla completa","exitFullscreen":"Salir de pantalla completa","copy":"Copiar","generatedAt":"Generado el","open":"Abrir","code":"Código","preview":"Vista previa","copied":"¡Copiado!","error":"Error","generatingPdf":"Generando PDF...","copying":"Copiando...","moreCopyOptions":"Más opciones de copia","copyAs":"Copiar como","downloadAsMarkdown":"Descargar como Markdown","downloadRawMarkdownText":"Descargar texto markdown sin formato","downloadAsPdf":"Descargar como PDF","exportAsPdfDocument":"Exportar como documento PDF","downloadAsHtml":"Descargar como HTML","downloadFormattedHtml":"Descargar HTML formateado","viewMode":"Modo Vista","codeMode":"Modo Código","refresh":"Actualizar","share":"Compartir","downloadAsJson":"Descargar como JSON","downloadJsonData":"Descargar datos JSON","downloadAsPng":"Descargar como PNG","downloadPngImage":"Descargar imagen PNG","downloadAsJpeg":"Descargar como JPEG","downloadJpegImage":"Descargar imagen JPEG","downloadAsGif":"Descargar como GIF","downloadGifImage":"Descargar imagen GIF","downloadAsWebp":"Descargar como WebP","downloadWebpImage":"Descargar imagen WebP","copyAsSvg":"Copiar como SVG","copySvgSourceCode":"Copiar código fuente SVG","copyAsPlainText":"Copiar como texto plano","copyAsText":"Copiar como texto","copyAsLanguage":"Copiar como {{language}}","copyLanguageCode":"Copiar código {{language}}","copyWithoutSyntaxHighlighting":"Copiar sin resaltado de sintaxis","copyTextContent":"Copiar contenido de texto","pdfExportNotSupported":"La exportación PDF no es compatible con este navegador","popupBlocked":"¡Popup bloqueado! Por favor, habilita los popups para imprimir.","safariPdfInstructions":"Exportación PDF abierta en nueva ventana. Por favor, usa Cmd+P (Mac) o Ctrl+P (Windows) para imprimir y guardar como PDF."},"upload":{"loginRequired":"Connexion requise","pastedText":"texto-pegado","uploadNotification":"Échec del téléchargement","loginRequiredDescription":"Veuillez vous connecter pour télécharger des images","uploadFiles":"Télécharger des fichiers ({{shortcut}}+O para abrir el selector de archivos)","uploadFilesWithShortcut":"{{shortcut}}+O para abrir el selector de archivos","uploadImages":"Télécharger des images","uploadDocuments":"Télécharger des documents","apiClientNotConfigured":"API client non configuré correctement pour le téléchargement de médias","fileReadingFailed":"Échec de la lecture du fichier","uploadFailed":"Échec du téléchargement","uploadSuccess":"Téléchargement réussi","uploadSuccessDescription":"Le fichier a été téléchargé avec succès","replace":"Remplacer","maxImagesReached":"Vous pouvez télécharger jusqu\'à {{max}} images","remaining":"restant","maxReached":"Limite atteinte","dragAndDropFiles":"Arrastre y suelte los archivos aquí para agregarlos a la chat","contextSizeExceedsLimit":"El tamaño del contexto supera el límite. Intenta reducir el número de archivos o el contenido de la conversación.","filesNotAddedMaxAllowed":"{{count}} archivo(s) no añadido(s) (máximo {{max}} archivos permitidos).","documentsNotAddedMaxAllowed":"{{count}} documento(s) no añadido(s) (máximo {{max}} archivos permitidos).","imagesNotAddedMaxAllowed":"{{count}} imagen(es) no añadida(s) (máximo {{max}} archivos permitidos).","documentsNotAddedContextSize":"{{count}} documento(s) no añadido(s) (límite de tamaño de contexto)."},"media":{"title":"Título","editAttributes":"Editar atributos de medios","uploadMimeTypeNotAllowed":"El tipo de archivo no está permitido.","uploadSizeLimitMessage":"El tamaño subido es demasiado grande (máx. {{size}}MEGABYTE)","uploadWrongResolutionMessage":"La resolución debe ser {{width}}incógnita{{height}} píxel","memoriNameAlreadyUsed":"Ya tienes un gemelo con este nombre.","uploadHelperImages":"Sube un archivo con extensión png, jpg, jpeg o gif, y que tenga como máximo un tamaño de {{size}}MEGABYTE","uploadHelper":"Cargue un archivo que tenga como máximo un tamaño de {{size}}MEGABYTE","uploadError":"Error al subir","square":"cuadrado","scaleRatio":"Relación de escala","addMediaLabel":"Agregar un medio","insertThisMediaMsg":"Inserte estos medios","mediaUploadMessage":"Haga clic para cargar un nuevo medio","addLinkLabel":"Agregar un enlace","linkKey":"URL","linkValue":"Título del enlace","insertThisLink":"Insertar un enlace a {{url}} con titulo {{title}}"},"gamification":{"level":"Nivel","points":"agujas","memoriReachedLevel":"se volvió más evolucionado y alcanzó el nivel","levelGoToStatistics":"{{Agent}} esta al nivel {{level}} con {{points}} agujas. ","congratulationsNewLevel":"¡Felicitaciones, has alcanzado un nuevo nivel!","congratulationsNewLevelDescription":"Tu Agent se volvió más evolucionado con {{points}} puntos, mira el","statistics":"estadística"},"login":{"login":"Acceso","logout":"Cerrar sesión","user":"Usuario","loggedDrawerTitle":"Hola, {{name}}!","loginDrawerTitle":"Acceso","userNameRequired":"Nombre de usuario requerido","userName":"Nombre de usuario","userNamePlaceholder":"Ingrese el nombre de usuario","signupDrawerTitle":"Inscribirse","newUserSignUp":"¿Nuevo usuario?","signUp":"¡Inscribirse!","alreadyHaveAnAccount":"¿Ya tienes una cuenta?","backToLogin":"Volver a iniciar sesión","registrationDisabled":"El registro está deshabilitado","contactAdmin":"Póngase en contacto con el administrador para solicitar acceso","userNameOrEmail":"Nombre de usuario o correo electrónico","email":"Correo electrónico","emailFormatError":"Por favor, inserte un correo electrónico válido","username":"Nombre de usuario","usernameContainsReservedWord":"El nombre de usuario contiene una palabra reservada, elija otra","usernameFormatError":"El nombre de usuario debe tener al menos 3 caracteres y contener solo letras, números y _","otpCode":"Código de verificación","resendVerificationCode":"Reenviar código","resentVerificationCode":"¡Código de confirmación enviado! ","welcomeTitle":"Bienvenido de nuevo","welcomeDescription":"Ingresa tu código de verificación de 4 dígitos para continuar a tu cuenta","otpTitle":"Ingresa el código de verificación","otpDescription":"Ingresa el código de 4 dígitos que generaste en tu cuenta","otpStep1":"Haz clic en el botón de abajo para abrir tu cuenta","otpStep2":"Genera un código de verificación de 4 dígitos (válido por 60 segundos)","otpStep3":"Regresa aquí e ingresa el código","startOtpLogin":"Iniciar verificación","generateOtp":"Generar código","otpTimer":"El código expira en {{seconds}} segundos","otpInvalidFormat":"Por favor ingresa un código válido de 4 dígitos","otpInvalid":"Código de verificación inválido","otpError":"Error al validar el código. Por favor intenta de nuevo.","otpSuccess":"¡Inicio de sesión exitoso!","otpEmailTitle":"Ingresa tu email","otpEmailDescription":"Ingresa tu dirección de email para recibir un código de verificación","otpCodeDescription":"Ingresa el código de 4 dígitos enviado a {{email}}","emailPlaceholder":"Ingresa tu email","sendOtp":"Enviar código","resendOtp":"Reenviar código","resending":"Reenviando...","backToEmail":"Volver al email","otpSent":"¡Código de verificación enviado!","otpResent":"¡Código reenviado exitosamente!","otpSendError":"Error al enviar el código. Por favor intenta de nuevo.","emailRequired":"Email requerido","emailInvalid":"Por favor ingresa una dirección de email válida","otpNotFound":"Código de verificación no encontrado","otpExpired":"El código de verificación ha expirado","otpMissing":"El código de verificación es requerido","otpSuccessMessage":"¡Verificación exitosa! Redirigiendo...","otpSuccessDescription":"Tu cuenta ha sido verificada exitosamente. Serás redirigido en breve.","otpHelp":"Ingresa el código de 4 dígitos de tu email","emailHelp":"Te enviaremos un código de verificación","userFetchError":"Error al cargar los datos del usuario. Por favor intenta de nuevo.","otpStep1Title":"Ingresa Email","otpStep2Title":"Revisa Email","otpStep3Title":"Ingresa Código","featureFast":"Rápido","featureSecure":"Seguro","featureMobile":"Móvil","password":"Contraseña","newPassword":"Nueva contraseña","confirmPassword":"confirmar Contraseña","currentPassword":"Contraseña actual","passwordMatchingError":"Las contraseñas no coinciden.","passwordFormatError":"La contraseña debe tener al menos 8 caracteres y contener al menos un número, una letra mayúscula, una letra minúscula y un símbolo.","pwdWeak":"Débil","pwdAcceptable":"Aceptable","pwdStrong":"Fuerte","mustChangePassword":"Debes cambiar tu contraseña","passwordChange":"Cambiar la contraseña","emailChange":"Cambiar correo electrónico","avatarChange":"Cambiar avatar","underage":"Debes ser al menos {{age}} años para inscribirse.","optional":"Opcional","birthDate":"Fecha de nacimiento","birthDateHelper":"Solicitamos tu fecha de nacimiento únicamente para habilitar o deshabilitar funcionalidades que tienen restricciones de edad.","missingData":"Información faltante","missingDataHelper":"Sabemos que esto es un poco molesto, pero necesitamos más información para completar tu registro.","goToAccountToChangeYourPreferences":"Puede cambiar su elección en cualquier momento desde la página de su Cuenta.","deepThoughtExplaination":"Deep Thought es una característica avanzada de la IA que te permitirá explotar al máximo tus conversaciones al realizar un seguimiento de ellas. ","tnCAndPPAcceptedHelper":"Desde su último inicio de sesión, los Términos y condiciones y la Política de privacidad han cambiado. ","privacyLabel":"He leído y acepto el","privacyAndCookiePolicy":"Política de privacidad y cookies","and":"y","termsOfService":"Términos de servicio","pAndCUAccepted":"Acepto los términos de servicio sobre Deep Thought","editAccount":"Editar cuenta","save":"Ahorrar","successfullyLoggedIn":"{{username}} ha iniciado sesión correctamente"},"chatLogs":{"anyMessage":"Cualquier mensaje","atLeast":"Al menos {{count}} mensajes","atLeast2":"Al menos 2 mensajes","atLeast3":"Al menos 3 mensajes","atLeast5":"Al menos 5 mensajes","atLeast10":"Al menos 10 mensajes","atLeast15":"Al menos 15 mensajes","atLeast20":"Al menos 20 mensajes","customMinimumMessages":"Personalizar el número de mensajes"},"success":"Éxito","Error":"Error","internal server error":"Oupsie, lo siento... Algo salió mal en el servidor.","error":"Error","error.loading":"Error al cargar contenido.","error.generic":"Oupsie, lo siento... algo salió mal.","error.serverNotResponding":"Estamos realizando mantenimiento o lanzando actualizaciones. ","error.notFound":"Oupsie, no encontramos la página que buscabas.","error.goBackTo":"Puedes intentar volver al","error.reloadPage":"recargar la pagina","error.tryAgain":"Intentar otra vez","error.unauthorized":"No estás autorizado a ver este contenido.","error.unprocessableEntity":"Error al procesar la solicitud. ","errors":{"TENANT_NOT_FOUND":"Inquilino no encontrado","TENANT_REGISTRATION_DISABLED":"El registro en esta plataforma está deshabilitado","TENANT_MISSING_NAME":"Inquilino: falta el nombre","TENANT_MAX_USERS_REACHED":"Número máximo de usuarios alcanzado","TENANT_MAX_ADMINS_REACHED":"Número máximo de usuarios administradores alcanzado","TENANT_ALREADY_EXISTS":"El inquilino ya existe","TENANT_MISSING_DESCRIPTION":"Inquilino: falta descripción","TENANT_CANT_SET_COMPLETION_PROVIDER":"Inquilino: no se puede configurar el proveedor de finalización","TENANT_INVALID_TYPE":"Inquilino: tipo no válido","USER_NOT_CONFIRMED":"Usuario aún no confirmado","USER_NOT_FOUND":"Usuario no encontrado","USER_OR_PASSWORD_INVALID":"Usuario o contraseña no válidos","USER_MUST_CHANGE_PASSWORD":"Debes cambiar tu contraseña","USER_MUST_ENTER_VERIFICATION_CODE":"Debes ingresar el código de verificación","USER_MISSING_TENANT":"Usuario: inquilino desaparecido","USER_MISSING_NAME":"Usuario: falta el nombre","USER_MISSING_PASSWORD":"Usuario: falta contraseña","USER_MISSING_EMAIL":"Usuario: Falta correo electrónico","USER_MISSING_VERIFICATION_CODE":"Usuario: Falta el código de verificación","USER_NAME_ALREADY_USED":"Nombre de usuario ya en uso","USER_PASSWORD_NOT_CONFORMING_TO_POLICY":"La contraseña no cumple con las reglas de seguridad.","USER_EMAIL_ALREADY_USED":"Correo electrónico ya en uso","USER_EMAIL_INVALID":"Correo electrónico no válido","USER_VERIFICATION_CODE_INVALID":"Código de verificación no válido","USER_MISSING_NAME_OR_EMAIL":"Falta nombre de usuario o correo electrónico","USER_NAME_INVALID":"Nombre de usuario no válido","USER_HAS_ONE_OR_MORE_MEMORI":"El usuario tiene uno o más recuerdos.","USER_MISSING_NEW_PASSWORD":"Usuario: falta nueva contraseña","USER_NOTHING_TO_DO":"Nada que hacer","USER_CANT_CREATE_MEMORI":"Usuario no autorizado a crear Agent","USER_MAX_MEMORI_REACHED":"Número máximo de Agent alcanzado","USER_TOO_MANY_ATTEMPTS":"demasiados intentos","USER_MUST_ACCEPT_TNC_AND_PP":"Debes aceptar los términos y condiciones.","USER_BIRTH_DATE_CANT_BE_CHANGED":"La fecha de nacimiento no se puede cambiar.","USER_CANT_SET_COMPLETION_PROVIDER":"Usuario: no tiene permiso para gestionar el proveedor de finalización","USER_CANT_ENABLE_DEEP_THOUGHT":"Usuario: no habilitado para gestionar Deep Thought","USER_CANT_ENABLE_DCM_INTEGRATION":"Usuario: no habilitado para gestionar la integración de DCM","USER_CANT_ENABLE_CHAINING_OR_BOARD_OF_EXPERTS":"Usuario: no se le permite gestionar encadenamiento o grupo de expertos","USER_CREATION_BILLING_DENIED_PERMISSION":"No tienes suficientes créditos para crear un gemelo","USER_HAS_ONE_OR_MORE_COMPLETION_CONFIGS":"El usuario tiene una o más configuraciones de finalización.","USER_CANT_BE_DELETED":"Usuario: no se puede eliminar","USER_ORDER_BY_INVALID":"Orden por no válido","MEMORI_NOT_FOUND":"Memoria no encontrada","MEMORI_NOT_ACCESSIBLE":"Memorias no accesibles","MEMORI_ONLY_OWNER_CAN_CHANGE_GIVER_TAG_AND_PIN":"Sólo el propietario puede cambiar la etiqueta o el pin","SESSION_NOT_FOUND":"Sesión no encontrada","SESSION_IS_NOT_ADMINISTRATIVE":"Sesión no administrativa","SESSION_EXPIRED":"La sesión expiró","SESSION_OTP_NOT_FOUND":"Código de verificación no encontrado","SESSION_OTP_EXPIRED":"El código de verificación ha expirado","SESSION_MISSING_TEMPORARY_TOKEN":"El código de verificación es requerido","MEMORI_MISSING_CONFIGURATION":"Gemelo: falta configuración","MEMORI_CONFIGURATION_NOT_FOUND":"Gemelo: configuración no encontrada","MEMORI_INVALID_PRIVACY_TYPE":"Gemelo: tipo de privacidad no válido","MEMORI_MISSING_PASSWORD":"Gemelo: falta contraseña","MEMORI_INVALID_TOTAL_NUMBER_OF_RECOVERY_TOKENS":"Gemelo: número total de tokens de recuperación no válidos","MEMORI_INVALID_MINIMUM_NUMBER_OF_RECOVERY_TOKENS":"Gemelo: número mínimo de tokens de recuperación no válidos","MEMORI_INVALID_VOICE_TYPE":"Gemelo: tipo de voz no válido","MEMORI_MISSING_NAME":"Gemelo: falta nombre","MEMORI_MISSING_PASSWORD_OR_RECOVERY_TOKENS":"Gemelo: falta contraseña o token de recuperación","MEMORI_INVALID_ID":"Gemelo: identificación no válida","MEMORI_NAME_ALREADY_USED":"Nombre gemelo ya en uso","MEMORI_INVALID_PIN":"Gemelo: PIN no válido","MEMORI_GIVER_TAG_PIN_CHANGE_REQUIRES_SEPARATE_OPERATION":"Gemelo: el cambio de TAG y PIN requiere operaciones separadas","MEMORI_NO_PASSWORD_WHEN_PUBLIC":"Agent: no se requiere contraseña cuando es público","MEMORI_DEEP_THOUGHT_REQUIRES_COMPLETIONS":"Deep Thought requiere que las completaciones estén habilitadas","MEMORI_BOARD_OF_EXPERTS_REQUIRES_COMPLETIONS":"El grupo de expertos requiere que se habiliten las completaciones.","MEMORI_INVALID_COMPLETION_CONFIG":"Gemelo: configuración de finalizaciones no válidas","MEMORI_MACRO_FUNCTIONS_REQUIRES_COMPLETIONS":"Macro funciones requiere que se habiliten las finalizaciones","MEMORI_BLOCKING_DATE_MISSING_OR_WRONG":"Gemelo: fecha de bloqueo faltante o incorrecta","MEMORI_LIST_FILTER_NOT_SPECIFIED":"Gemelo: filtro no especificado","MEMORI_TRANSFER_MISSING_DESTINATION_USER":"Transferencia: falta usuario de destino","MEMORI_TRANSFER_INVALID_DESTINATION_USER_ID":"Transferencia: ID de usuario de destino no válido","MEMORI_TRANSFER_DESTINATION_USER_DATA_INCONSISTENT":"Transferencia: datos de usuario de destino no válidos","MEMORI_TRANSFER_NOTHING_TO_DO":"Transferencia: nada que hacer","MEMORI_CONFIGURATION_CANT_BE_CHANGED":"Memorias: la configuración no se puede cambiar","MEMORI_MISSING_NEW_PASSWORD":"Recuerdos: falta nueva contraseña","MEMORI_FEATURE_REQUIRES_SUBSCRIPTION":"La función requiere suscripción","INTEGRATION_NOT_FOUND":"Integración no encontrada","MEMORI_SESSIONS_INVALID_DATE_FROM_FORMAT":"Fecha no válida del formato","MEMORI_SESSIONS_INVALID_DATE_TO_FORMAT":"Fecha no válida para formatear","MEMORI_SESSION_NOT_FOUND":"Sesión no encontrada","MEMORI_SESSION_DOESNT_ACCEPT_MEDIA":"Sesión no acepta medios","INTEGRATION_INVALID_TYPE":"Tipo de integración no válido","INTEGRATION_ALREADY_EXISTS":"La integración ya existe","INTEGRATION_MEMORI_IS_NOT_PUBLIC":"Las memorias no públicas no se pueden integrar","INTEGRATION_MISSING_INVOCATION_TEXT":"Integración: falta texto de invocación","INTEGRATION_MISSING_DEVICE_EMAILS":"Integración: correo electrónico del dispositivo perdido","INTEGRATION_MEMORI_IS_EMPTY":"Los recuerdos vacíos no se pueden integrar","INTEGRATION_MISSING_PRIVACY_POLICY":"Integración: falta la política de privacidad","INTEGRATION_MISSING_CATEGORY":"Falta categoría de integración","INTEGRATION_MISSING_DESCRIPTION":"Falta descripción de integración","INTEGRATION_INVALID_INVOCATION_TEXT":"Texto de invocación no válido","INTEGRATION_GOOGLE_NO_MORE_AVAILABLE":"Google Home ya no está disponible","UPLOAD_REQUIRES_MULTIPART_ENCODING":"La carga requiere codificación multiparte","UPLOAD_MISSING_CONTENT_TYPE_BOUNDARY":"Upload: falta límite de tipo de contenido","UPLOAD_MAX_LENGTH_EXCEEDED":"Upload: se superó el tamaño máximo","UPLOAD_FILE_IS_EMPTY":"Upload: archivo vacío","UPLOAD_INVALID_FILE_TYPE_OR_SIGNATURE":"Upload: tipo de archivo o firma no válidos","UPLOAD_MISSING_FILE_NAME":"Upload: falta el nombre del archivo","UPLOAD_INVALID_MEMORY_ID":"Upload: ID de contenido no válido","UPLOAD_MISSING_FILE_CONTENT":"Upload: Falta contenido del archivo","ASSET_NOT_FOUND":"Asset no encontrado","ASSET_NOT_ACCESSIBLE":"Asset no accesible","ASSET_MISSING_SESSION_ID":"Asset: ID de sesión faltante","ASSET_INVALID_FILE_NAME":"Asset: nombre de archivo no válido","ASSET_MALWARE_SCAN_THREATS_FOUND":"Asset: encontró amenazas de malware","INVITATION_NOT_FOUND":"Invitación no encontrada","INVITATION_NOT_ACCESSIBLE":"Invitación no accesible","INVITATION_ALREADY_ACCEPTED":"Invitación ya aceptada","INVITATION_ALREADY_REJECTED":"Invitación ya rechazada","INVITATION_MISSING_DESTINATION_EMAIL":"Invitación: falta el correo electrónico de destino","INVITATION_DESTINATION_EMAIL_INVALID":"Invitación: correo electrónico de destino no válido","INVITATION_MISSING_TAG":"Invitación: falta etiqueta","INVITATION_MISSING_PIN":"Invitación: falta el PIN","INVITATION_INVALID_PIN":"Invitación: PIN no válido","INVITATION_INVALID_TYPE":"Invitación: tipo no válido","INVITATION_MISSING_DESTINATION_NAME":"Invitación: falta el nombre del destino","INVITATION_TAG_PIN_CANT_BE_CHANGED":"Invitación: la etiqueta y el pin no se pueden cambiar","INVITATION_CANT_BE_CHANGED":"Intación: no se puede cambiar","ACTIONLOG_INVALID_USER_ID":"ID de usuario no válido","ACTIONLOG_INVALID_DATE_FROM_FORMAT":"Fecha de: formato no válido","ACTIONLOG_INVALID_DATE_TO_FORMAT":"Fecha hasta: formato no válido","ACTIONLOG_INVALID_MEMORI_ID":"ID de memoria no válida","CONSUMPTIONLOG_INVALID_TYPE":"Tipo de registro no válido","CONSUMPTIONLOG_INVALID_DATE_FROM_FORMAT":"Fecha de: formato no válido","CONSUMPTIONLOG_INVALID_DATE_TO_FORMAT":"Fecha hasta: formato no válido","CONSUMPTIONLOG_INVALID_USER_ID":"ID de usuario no válido","CONSUMPTIONLOG_INVALID_MEMORI_ID":"ID de memoria no válida","NOTIFICATIONPREFS_INVALID_CHATLOG_EXTRACTION_PERIOD":"Notificaciones: Período de extracción del registro de chat no válido","BROADCAST_NOT_ALLOWED":"Broadcast no permitido","INVALID_NOTIFICATION_TYPE":"Tipo de notificación no válido","NOTIFICATION_NOT_FOUND":"Notificación no encontrada","INVALID_NOTIFICATION_FILTER":"Filtro de notificación no válido","INVALID_NOTIFICATION_PERIOD":"Período de notificación no válido","PROCESS_INVALID_TYPE":"Tipo de proceso no válido","PROCESS_ALREADY_RUNNING":"Proceso ya en ejecución","PROCESS_NOT_FOUND":"Proceso no encontrado","IMPORTCSV_MISSING_ROWS":"Importación CSV: filas faltantes","IMPORTCSV_MISSING_CSV":"Importación CSV: Falta CSV","IMPORTCSV_MISSING_SEPARATOR":"Importación CSV: falta separador","IMPORTCSV_INVALID_SEPARATOR":"Importación CSV: separador no válido","IMPORTCSV_MISSING_HEADERS":"Importación CSV: faltan encabezados","IMPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Importación CSV: falta el separador de variante de título","IMPORTCSV_INVALID_RECEIVER_ID":"Importación CSV: ID de receptor no válido","IMPORTCSV_INVALID_MEDIA_LINK":"Importación CSV: enlace multimedia no válido","IMPORTCSV_INVALID_LINK_TITLE_HANDLING":"Importación CSV: título del enlace no válido","IMPORTCSV_UNDETECTABLE_CHAR_ENCODING":"Importación CSV: codificación de caracteres indetectable","IMPORTCSV_CANT_IMPORT_TO_SECRET_MEMORI":"Importación CSV: no se puede importar a Secret Memories","IMPORTTXT_MISSING_ROWS":"Importando TXT: filas faltantes","IMPORTTXT_INVALID_GRANULARITY":"Importar TXT: granularidad no válida","IMPORTTXT_INVALID_RECEIVER_ID":"Importar TXT: ID de receptor no válido","IMPORTTXT_INVALID_MEDIA_LINK":"Importar TXT: enlace multimedia no válido","IMPORTTXT_INVALID_LINK_TITLE_HANDLING":"Importar TXT: título del enlace no válido","IMPORTTXT_UNDETECTABLE_CHAR_ENCODING":"Importación TXT: codificación de caracteres indetectable","IMPORTTXT_CANT_IMPORT_TO_SECRET_MEMORI":"Importación TXT: No se puede importar a Secret Memories","IMPORTTXT_IMPORT_LIMIT_EXCEEDED":"Importar TXT: límite de importación excedido","IMPORTTXT_IMPORT_ON_GPT4_REQUIRES_API_KEY":"Importar TXT: la importación en GPT-4 requiere una clave API","IMPORTTXT_IMPORT_REQUIRES_PAYING":"Importar TXT: la importación requiere un plan de pago","IMPORTTXT_BILLING_DENIED_PERMISSION":"Importar TXT: no tienes suficientes créditos para la operación","IMPORT_MISSING_ROWS":"Importar: filas faltantes","IMPORT_CANT_IMPORT_TO_SECRET_MEMORI":"Importar: no se puede importar a Secret Memories","IMPORTMEMORI_INVALID_MEMORI_SPECS":"Importar MEMORI: especificaciones de memoria no válidas","IMPORT_MISSING_JSONL":"Importar: faltan JSONL","IMPORTMEMORI_INVALID_SPECS":"Importar MEMORI: especificaciones no válidas","EXPORT_MISSING_PASSWORD":"Exportar: falta contraseña","EXPORTCSV_MISSING_CSV_SPECS":"Exportación CSV: faltan especificaciones CSV","EXPORTCSV_MISSING_SEPARATOR":"Exportación CSV: falta separador","EXPORTCSV_INVALID_SEPARATOR":"Exportación CSV: separador no válido","EXPORTCSV_MISSING_TITLE_VARIANT_SEPARATOR":"Exportación CSV: falta el separador de variante de título","EXPORTCSV_MISSING_NEW_LINE_CHAR":"Exportación CSV: falta un carácter de nueva línea","EXPORTCSV_INVALID_NEW_LINE_CHAR":"Exportación CSV: carácter de nueva línea no válido","EXPORTCSV_MISSING_PASSWORD":"Exportación CSV: falta contraseña","EXPORTJSONL_MISSING_JSONL_SPECS":"Exportación JSONL: faltan especificaciones JSONL","EXPORTJSONL_MISSING_PLATFORM":"Exportación JSONL: plataforma faltante","EXPORTJSONL_INVALID_PLATFORM":"Exportación JSONL: plataforma no válida","EXPORTJSONL_MISSING_PASSWORD":"Exportación JSONL: falta contraseña","EXPORTJSONL_EXPORT_REQUIRES_PAYING":"Exportación JSONL: la exportación requiere un plan pago","ANALYSIS_MISSING_QUERY":"Análisis: consulta faltante","ANALYSIS_CANT_ANALYZE_SECRET_MEMORI":"Análisis: No se pueden analizar recuerdos secretos","ANALYSIS_USER_QUERY_MATCH_REQUIRES_DEEP_THOUGHT":"Análisis: hacer coincidir la consulta del usuario requiere un pensamiento profundo","BADGE_ASSIGNMENT_WRONG_OR_MISSING_CREDENTIALS":"Asignación de insignia: credenciales incorrectas o faltantes","BADGE_ASSIGNMENT_MISSING_REF_ID":"Asignación de insignia: falta el ID de referencia","BADGE_ASSIGNMENT_OUTCOME_NOT_FOUND":"Asignación de insignia: resultado no encontrado","BADGE_ASSIGNMENT_MISSING_ASSERTION_URL":"Asignación de insignia: falta la URL de aserción","BADGE_ASSIGNMENT_MISSING_BADGE_URL":"Asignación de insignia: URL de insignia faltante","BADGE_ASSIGNMENT_MISSING_ISSUER_URL":"Asignación de insignia: falta la URL del emisor","BADGE_ASSIGNMENT_INVALID_URL":"Asignación de insignia: URL no válida","BADGE_ASSIGNMENT_MISSING_RECIPIENT":"Asignación de insignia: destinatario faltante","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_TYPE":"Asignación de insignia: tipo de destinatario desconocido","BADGE_ASSIGNMENT_MISSING_RECIPIENT_IDENTITY":"Asignación de insignia: falta la identidad del destinatario","BADGE_ASSIGNMENT_MISSING_RECIPIENT_HASH_TYPE":"Asignación de insignia: falta el tipo de hash del destinatario","BADGE_ASSIGNMENT_UNKNOWN_RECIPIENT_HASH_TYPE":"Asignación de insignia: tipo de hash del destinatario desconocido","BADGE_ASSIGNMENT_WRONG_RECIPIENT_IDENTITY":"Asignación de insignia: identidad del destinatario incorrecta","BADGE_NOT_FOUND":"Insignia no encontrada","OUTCOME_NO_DCM_CONFIGURED":"Resultado: no hay ningún DCM configurado","OUTCOME_USER_BADGES_DISABLED":"Resultado: insignias de usuario deshabilitadas","COMPLETION_CONFIG_MISSING_NAME":"Configuración de terminaciones: falta nombre","COMPLETION_CONFIG_MISSING_PROVIDER":"Configuración de terminaciones: falta proveedor","COMPLETION_CONFIG_MISSING_ENDPOINT":"Configuración de terminaciones: falta punto final","COMPLETION_CONFIG_MISSING_API_KEY":"Configuración de terminaciones: falta clave API","COMPLETION_CONFIG_MISSING_MODEL":"Configuración de terminaciones: modelo faltante","COMPLETION_CONFIG_NO_PURPOSE_SPECIFIED":"Configuración de terminaciones: se debe especificar al menos un tipo de terminaciones","COMPLETION_CONFIG_INVALID_NAME":"Configuración de terminaciones: nombre no válido","COMPLETION_CONFIG_INVALID_PURPOSE":"Configuración de terminaciones: tipo de terminaciones no válidas","COMPLETION_CONFIG_INVALID_ENDPOINT":"Configuración de terminaciones: punto final no válido","COMPLETION_CONFIG_INCONSISTENT_ENDPOINT":"Configuración de terminaciones: punto final inconsistente","COMPLETION_CONFIG_INVALID_PROVIDER":"Configuración de terminaciones: proveedor no válido","COMPLETION_CONFIG_NOT_FOUND":"Configuración de terminaciones: no encontrada","COMPLETION_CONFIG_NOT_ACCESSIBLE":"Configuración de terminaciones: no accesible","COMPLETION_CONFIG_NAME_RESERVED":"Configuración de terminaciones: nombre reservado","COMPLETION_CONFIG_NAME_ALREADY_EXISTS":"Configuración de terminaciones: el nombre ya existe","COMPLETION_CONFIG_VISIBILITY_CHANGE_NOT_ALLOWED":"Configuración de terminaciones: cambio de visibilidad no permitido","COMPLETION_CONFIG_MISSING_MANDATORY_PREFIX":"Configuración de terminaciones: prefijo obligatorio faltante","COMPLETION_CONFIG_VISIBILITY_NOT_PERMITTED":"Configuración de terminaciones: visibilidad no permitida","COMPLETION_CONFIG_USE_AS_DEFAULT_NOT_PERMITTED":"Configuración de terminaciones: uso como predeterminado no permitido","COMPLETION_CONFIG_USE_AS_DEFAULT_REQUIRES_TENANT_VISIBILITY":"Configuración de terminaciones: uso como predeterminado requiere visibilidad del inquilino","COMPLETION_CONFIG_CHARGEABLE_NOT_PERMITTED":"Configuración de terminaciones: chargeable no permitido","COMPLETION_CONFIG_INVALID_APPLY_TO":"Configuración de terminaciones: apply to no válido","COMPLETION_CONFIG_APPLY_TO_TENANT_NOT_ALLOWED":"Configuración de terminaciones: apply to tenant no permitido","TRUSTED_APPLICATION_NOT_FOUND":"Aplicación de confianza no encontrada","TRUSTED_APPLICATION_NOT_ACCESSIBLE":"Aplicación de confianza no accesible","TRUSTED_APPLICATION_NAME_REQUIRED":"Aplicación de confianza: nombre requerido","TRUSTED_APPLICATION_TOKEN_REQUIRED":"Aplicación de confianza: token requerido","TRUSTED_APPLICATION_NAME_ALREADY_EXISTS":"Aplicación de confianza: nombre ya existe","TRUSTED_APPLICATION_INVALID_TOKEN":"Aplicación de confianza: token no válido"}}');const NB=AB({resources:{en:{translation:t(TB)},it:{translation:t(EB)},es:{translation:t(CB)},fr:{translation:t(IB)},de:{translation:t(MB)}},lng:"en",fallbackLng:"it",supportedLngs:["en","it","fr","es","de"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1}});NB.init();var OB=NB;c=o("85Hg2");function RB(e){var t=e.i18n,n=e.defaultNS,i=e.children,r=(0,c.useMemo)((function(){return{i18n:t,defaultNS:n}}),[t,n]);return(0,c.createElement)(Re.Provider,{value:r},i)}var LB=({children:e})=>(0,a.jsx)(RB,{i18n:OB,children:e});const PB=e=>{var t;if(!e)return{};const n=null===(t=null==e?void 0:e.split(","))||void 0===t?void 0:t.reduce(((e,t)=>{const[n,i]=t.split(":").map((e=>e.trim()));return{...e,[n]:i}}),{});return n},DB=({ownerUserName:e,ownerUserID:t,memoriName:n,memoriID:i,integration:r,integrationID:o,tenantID:s,secretToken:l,sessionID:u,layout:d,customLayout:h,showShare:p,showCopyButton:m=!0,showTranslationOriginal:f=!1,showSettings:g,showTypingText:v=!1,showClear:y=!1,showOnlyLastMessages:_,showInputs:b=!0,showDates:x=!1,showContextPerLine:w=!1,showUpload:S,showLogin:E,showReasoning:A,height:T="100%",baseURL:I,apiURL:M="https://backend.memori.ai",engineURL:C="https://engine.memori.ai",tag:N,pin:O,context:R,initialQuestion:L,showChatHistory:P=!0,uiLang:D,spokenLang:k,multilingual:B,authToken:F,enableAudio:U,defaultSpeakerActive:z=!0,disableTextEnteredEvents:G=!1,onStateChange:j,additionalInfo:H,customMediaRenderer:V,additionalSettings:W,userAvatar:q,useMathFormatting:$=!1,autoStart:Y,applyVarsToRoot:J=!1,__WEBCOMPONENT__:Z=!1,maxTotalMessagePayload:X,maxTextareaCharacters:K})=>{var Q,ee,ne,re,oe,ae,se,le;const[ce,ue]=(0,c.useState)(),[de,he]=(0,c.useState)(),[pe,me]=(0,c.useState)(),[fe,ge]=(0,c.useState)(),{t:ve}=qe();if(!(i&&t||n&&e))throw new Error("Identifier pair required: please provide either memoriID and ownerUserID or memoriName and ownerUserName");const ye=te(M,C),_e=(0,c.useCallback)((async()=>{const e=I||(s.startsWith("https://")?s:`https://${s}`);try{const t=await fetch(`${e}/api/speechkey?tenant=${s}`,{method:"GET",headers:{"Content-Type":"application/json"}}),n=await t.json();n.provider?me(n.provider):console.warn("Provider not found in speech key response")}catch(e){console.error("Error fetching speech key:",e)}}),[I,s]);(0,c.useEffect)((()=>{_e()}),[]);const be=(0,c.useCallback)((async()=>{if(i&&t){const{memori:e,...n}=await ye.backend.getMemoriByUserAndId(s,t,i);0===n.resultCode&&e?ue(e):console.error("[MEMORI]",n,e)}else if(n&&e){const{memori:i,...r}=await ye.backend.getMemori(s,e,n);0===r.resultCode&&i?(!i.ownerUserID&&t&&(i.ownerUserID=t),ue(i)):console.error("[MEMORI]",r,i)}}),[i,t,n,e,s]);(0,c.useEffect)((()=>{be()}),[be,s]);const xe=(0,c.useCallback)((async()=>{const{tenant:e,...t}=await ye.backend.tenant.getTenant(s);e&&0===t.resultCode?he(e):console.debug("[TENANT]",t,e)}),[s,M]);(0,c.useEffect)((()=>{xe()}),[xe]),(0,c.useEffect)((()=>{const e=document.querySelector(`memori-client[memoriname="${null==ce?void 0:ce.name}"]`)||document.querySelector(`memori-client[memoriid="${null==ce?void 0:ce.memoriID}"]`)||document.querySelector("memori-client");if(!e)return;const t=new MutationObserver(((e,t)=>{for(const t of e)if("attributes"===t.type){const e="MEMORI-CLIENT"===t.target.nodeName?t.target:t.target.parentElement,n=e.getAttribute("sessionid")||void 0;e&&n&&ge(n)}}));return t.observe(e,{attributes:!0,childList:!1,subtree:!1}),()=>{t.disconnect()}}),[]),(0,c.useEffect)((()=>{if(D)OB.changeLanguage(D.toLowerCase());else{const{lng:e,fallbackLng:t}=(()=>{const e=navigator.language;if(e){let t=e.split("-")[0];if(["en","it"].includes(t))return{lng:t,fallbackLng:"en"===t?"it":"en"}}return{lng:"en",fallbackLng:"it"}})();OB.changeLanguage(e).catch((()=>{OB.changeLanguage(t)}))}}),[D]);const we=null!=r?r:null===(Q=null==ce?void 0:ce.integrations)||void 0===Q?void 0:Q.find((e=>o?e.integrationID===o:!!e.publish&&"LANDING_EXPERIENCE"===e.type)),Se=YE(null!==(ee=null==we?void 0:we.customData)&&void 0!==ee?ee:"{}"),Ee=[null==de?void 0:de.name,...(null==de?void 0:de.aliases)||[],...Se.whiteListedDomains||[]];if((null===(ne=null==Se?void 0:Se.whiteListedDomains)||void 0===ne?void 0:ne.length)&&"undefined"!=typeof window&&!Ee.some((e=>new RegExp(e).test(window.location.hostname))))return null;const Ae=null!==(re=Se.ignoreClientAttributes)&&void 0!==re&&re?{initialContextVars:PB(Se.contextVars),initialQuestion:Se.initialQuestion,showLogin:null==ce?void 0:ce.enableDeepThought,memoriLang:null===(ae=null===(oe=null==ce?void 0:ce.culture)||void 0===oe?void 0:oe.split("-"))||void 0===ae?void 0:ae[0],uiLang:D,spokenLang:k,autoStart:"HIDDEN_CHAT"===d||"WEBSITE_ASSISTANT"!==d&&Y}:{...N&&O?{personification:{tag:N,pin:O}}:{},multilingual:B,showCopyButton:m,showTranslationOriginal:f,showSettings:g,showChatHistory:P,showShare:p,showTypingText:v,showClear:y,showLogin:null!=E?E:null==ce?void 0:ce.enableDeepThought,showUpload:S,showReasoning:A,showContextPerLine:w,initialContextVars:null!=R?R:PB(Se.contextVars),initialQuestion:null!=L?L:Se.initialQuestion,autoStart:"WEBSITE_ASSISTANT"!==d&&(void 0!==Y?Y:"HIDDEN_CHAT"===d||Y),enableAudio:U,defaultSpeakerActive:z,useMathFormatting:$,memoriLang:null===(le=null===(se=null==ce?void 0:ce.culture)||void 0===se?void 0:se.split("-"))||void 0===le?void 0:le[0],uiLang:D,spokenLang:k},[Te,Ie]=(0,c.useState)(!1),Me=(0,c.useCallback)((()=>{var e;if(((null==ce?void 0:ce.memoriID)||i)&&!Te){let t=null===window||void 0===window?void 0:window.location.origin;if(!t||t.includes("localhost")||t.includes("memori-ai.github.io"))return void Ie(!0);Ie(!0),fetch("https://pulse.aisuru.com/post",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pulse:{clientType:Z?"memori-webcomponent":"memori-react",clientVersion:"v8.22.0",userAgent:navigator.userAgent,language:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,memoriID:null!==(e=null==ce?void 0:ce.memoriID)&&void 0!==e?e:i,tenant:s,referrer:t}})})}}),[null==ce?void 0:ce.memoriID,i,s,Z,Te]);return(0,c.useEffect)((()=>{Me()}),[Me]),(0,a.jsx)(LB,{children:(0,a.jsx)(jL,{children:(0,a.jsxs)(ie,{children:[(0,a.jsx)(Ao.Toaster,{position:"top-center",reverseOrder:!0}),ce?(0,a.jsx)(ak,{layout:d,customLayout:h,height:T,baseUrl:I||(s.startsWith("https://")||s.startsWith("http://")?s:`https://${s}`),apiURL:M,engineURL:C,memori:{...ce,secretToken:l},__WEBCOMPONENT__:Z,ownerUserName:null!=e?e:ce.ownerUserName,ownerUserID:null!=t?t:ce.ownerUserID,tenant:de,tenantID:s,sessionID:null!=u?u:fe,secret:l,ttsProvider:pe||"azure",integration:we,authToken:F,onStateChange:j,additionalInfo:H,customMediaRenderer:V,additionalSettings:W,userAvatar:q,applyVarsToRoot:J,maxTotalMessagePayload:X,maxTextareaCharacters:K,disableTextEnteredEvents:G,...Ae,showOnlyLastMessages:_,showInputs:b,showDates:x}):(0,a.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,a.jsxs)("p",{style:{textAlign:"center",margin:"2rem auto",textTransform:"capitalize"},children:[ve("loading")||"Loading","..."]})})]})})})};DB.propTypes={memoriName:t(l).string,memoriID:t(l).string,ownerUserName:t(l).string,ownerUserID:t(l).string,integrationID:t(l).string,integration:t(l).any,tenantID:t(l).string.isRequired,secretToken:t(l).string,sessionID:t(l).string,layout:t(l).oneOf(["DEFAULT","FULLPAGE","TOTEM","WEBSITE_ASSISTANT","CHAT","HIDDEN_CHAT","ZOOMED_FULL_BODY"]),customLayout:t(l).any,showShare:t(l).bool,showCopyButton:t(l).bool,showTranslationOriginal:t(l).bool,showInputs:t(l).bool,showDates:t(l).bool,showContextPerLine:t(l).bool,showSettings:t(l).bool,showClear:t(l).bool,showOnlyLastMessages:t(l).bool,showTypingText:t(l).bool,showLogin:t(l).bool,showUpload:t(l).bool,showReasoning:t(l).bool,height:t(l).oneOfType([t(l).string,t(l).number]),baseURL:t(l).string,apiURL:t(l).string,engineURL:t(l).string,tag:t(l).string,pin:t(l).string,context:t(l).objectOf(t(l).any),initialQuestion:t(l).string,uiLang:t(l).oneOf(["en","it","fr","es","de","EN","IT","FR","ES","DE"]),spokenLang:t(l).string,multilingual:t(l).bool,authToken:t(l).string,enableAudio:t(l).bool,defaultSpeakerActive:t(l).bool,disableTextEnteredEvents:t(l).bool,onStateChange:t(l).func,additionalInfo:t(l).objectOf(t(l).any),customMediaRenderer:t(l).func,additionalSettings:t(l).any,userAvatar:t(l).oneOfType([t(l).string,t(l).any]),useMathFormatting:t(l).bool,autoStart:t(l).bool,applyVarsToRoot:t(l).bool,maxTotalMessagePayload:t(l).number,maxTextareaCharacters:t(l).number};var kB=DB;const BB=e=>{try{return JSON.parse(e)}catch(e){return null}};class FB extends HTMLElement{connectedCallback(){const e=document.createElement("div"),n=document.createElement("div");n.setAttribute("id","memori-root"),e.appendChild(n),this.appendChild(e);const i=Object.keys(kB.propTypes).reduce(((e,t)=>(this.hasAttribute(t)&&(e[t]=this.getAttribute(t),"true"!==e[t]&&"false"!==e[t]||(e[t]="true"===e[t])),e)),{}),r=this.getAttribute("tenantId"),o=this.getAttribute("context")?.split(",")?.reduce(((e,t)=>{const[n,i]=t.split(":").map((e=>e.trim()));return{...e,[n]:i}}),{}),l=BB(this.getAttribute("additionalInfo")||"{}")||{},c=this.getAttribute("integration"),u=c&&BB(c)||void 0;let d=this.getAttribute("apiURL")||void 0;d&&"backend.memori.ai"===new URL(d).hostname&&(d="https://backend-proxy.aisuru.com"),r?t(s).render((0,a.jsx)(kB,{...i,apiURL:d,context:o,tenantID:r,additionalInfo:l,integration:u,__WEBCOMPONENT__:!0}),n):console.error("No tenantId attribute found")}}customElements.define("memori-client",FB)})();