"use strict";var Xh=Object.defineProperty;var Jh=(e,t,n)=>t in e?Xh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ae=(e,t,n)=>(Jh(e,typeof t!="symbol"?t+"":t,n),n);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});class e_{constructor(){ae(this,"events",new Map);ae(this,"on",(t,n)=>{const r=this.events.get(t)??new Set;r.add(n),this.events.set(t,r)});ae(this,"off",(t,n)=>{const r=this.events.get(t);if(r){if(r.delete(n),!r.size){this.events.delete(t);return}this.events.set(t,r)}});ae(this,"emit",(...t)=>{var n;(n=this.events.get(t[0]))==null||n.forEach(r=>{t.length===2?r(t[1]):r()})})}}const Pi=new e_,t_=(e,t)=>{const n=[...new Set(e)],r=new Set;for(;r.size{var t,n;switch(!0){case!e.text:throw new vo("text required");case!e.communicationId:throw new vo("communication id required");case!((t=e.client)!=null&&t.id):throw new vo("client id required");case!((n=e.client)!=null&&n.name):throw new vo("client name required")}},sa=e=>{console.error("[TQM Copilot]",e)};var co=(e=>(e.OPEN_COMMUNICATION="OPEN_COMMUNICATION",e.NEGATIVE_HAPPENED="NEGATIVE_HAPPENED",e))(co||{}),Et=(e=>(e[e.Minimized=0]="Minimized",e[e.Maximized=1]="Maximized",e))(Et||{}),Er=(e=>(e.dark="dark",e.light="light",e))(Er||{}),Nd=(e=>(e.POST="POST",e.GET="GET",e))(Nd||{});const Oi=1e3,r_=Oi*5,o_=Oi/2,i_=Oi,l_=Oi/4,s_=548,a_=756,u_={0:s_,1:a_},c_=3,pl="https://tqm-online.tcsbank.ru",hl={NEGATIVE_SCORE:`${pl}/negative-score`,EVENT:{INDEX:`${pl}/event`,ERROR:`${pl}/event/error`}};class d_{constructor(){ae(this,"apiKey");ae(this,"postRequest",(t,n)=>fetch(t,{method:Nd.POST,headers:{"Content-Type":"application/json;charset=utf-8",...this.apiKey&&{"x-api-key":this.apiKey}},body:JSON.stringify(n)}));ae(this,"initialize",t=>{this.apiKey=t});ae(this,"negativeScore",async t=>{const n=await this.postRequest(hl.NEGATIVE_SCORE,t),{data:r}=await n.json();return r});ae(this,"logEvent",t=>this.postRequest(hl.EVENT.INDEX,t));ae(this,"logCapturedError",t=>this.postRequest(hl.EVENT.ERROR,t))}}const Ii=new d_;var Pd=(e=>(e[e.IntTrigger=1]="IntTrigger",e[e.Click=2]="Click",e[e.TapLink=3]="TapLink",e[e.ExtTrigger=4]="ExtTrigger",e))(Pd||{}),qe=(e=>(e[e.OpenWidget=1]="OpenWidget",e[e.FoldWidget=2]="FoldWidget",e[e.ExpandWidget=3]="ExpandWidget",e[e.DecreaseWidget=4]="DecreaseWidget",e[e.CloseWidget=5]="CloseWidget",e[e.HideChat=6]="HideChat",e[e.ShowAllChat=7]="ShowAllChat",e[e.VisitComm=8]="VisitComm",e[e.NotMistake=9]="NotMistake",e[e.CopyPhrase=10]="CopyPhrase",e[e.InitializationWidget=12]="InitializationWidget",e))(qe||{});const f_={1:2,2:2,3:2,4:2,5:2,6:2,7:2,8:3,9:2,10:2,12:1};class p_{constructor(){ae(this,"dispatch",(t,n)=>{const r=new Date,o={entityCode:t,actionCode:f_[t],startDate:r,endDate:r,...n};console.log("[TQM Copilot] [LogManager]",o),Ii.logEvent(o).catch(sa)})}}const rt=new p_,_e={openWidget:e=>{rt.dispatch(qe.OpenWidget,e)},foldWidget:e=>{rt.dispatch(qe.FoldWidget,e)},expandWidget:e=>{rt.dispatch(qe.ExpandWidget,e)},decreaseWidget:e=>{rt.dispatch(qe.DecreaseWidget,e)},closeWidget:e=>{rt.dispatch(qe.CloseWidget,e)},hideChat:e=>{rt.dispatch(qe.HideChat,e)},notMistake:e=>{rt.dispatch(qe.NotMistake,e)},copyPhrase:e=>{rt.dispatch(qe.CopyPhrase,e)},visitComm:e=>{rt.dispatch(qe.VisitComm,e)},showAllChat:e=>{rt.dispatch(qe.ShowAllChat,e)},initialize:e=>{rt.dispatch(qe.InitializationWidget,e)},logCapturedError:e=>{Ii.logCapturedError(e).catch(sa)}};function tt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Od={exports:{}},j={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var fo=Symbol.for("react.element"),h_=Symbol.for("react.portal"),__=Symbol.for("react.fragment"),g_=Symbol.for("react.strict_mode"),m_=Symbol.for("react.profiler"),v_=Symbol.for("react.provider"),y_=Symbol.for("react.context"),x_=Symbol.for("react.forward_ref"),w_=Symbol.for("react.suspense"),S_=Symbol.for("react.memo"),k_=Symbol.for("react.lazy"),Cu=Symbol.iterator;function E_(e){return e===null||typeof e!="object"?null:(e=Cu&&e[Cu]||e["@@iterator"],typeof e=="function"?e:null)}var Id={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},jd=Object.assign,Ad={};function rr(e,t,n){this.props=e,this.context=t,this.refs=Ad,this.updater=n||Id}rr.prototype.isReactComponent={};rr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};rr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Rd(){}Rd.prototype=rr.prototype;function aa(e,t,n){this.props=e,this.context=t,this.refs=Ad,this.updater=n||Id}var ua=aa.prototype=new Rd;ua.constructor=aa;jd(ua,rr.prototype);ua.isPureReactComponent=!0;var bu=Array.isArray,Bd=Object.prototype.hasOwnProperty,ca={current:null},$d={key:!0,ref:!0,__self:!0,__source:!0};function Fd(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)Bd.call(t,r)&&!$d.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(10;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function P_(e,t){return or(e.getTime(),t.getTime())}function Pu(e,t,n){if(e.size!==t.size)return!1;for(var r={},o=e.entries(),i=0,l,s;(l=o.next())&&!l.done;){for(var a=t.entries(),u=!1,c=0;(s=a.next())&&!s.done;){var f=l.value,p=f[0],m=f[1],g=s.value,y=g[0],T=g[1];!u&&!r[c]&&(u=n.equals(p,y,i,c,e,t,n)&&n.equals(m,T,p,y,e,t,n))&&(r[c]=!0),c++}if(!u)return!1;i++}return!0}function O_(e,t,n){var r=Nu(e),o=r.length;if(Nu(t).length!==o)return!1;for(var i;o-- >0;)if(i=r[o],i===Hd&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!Wd(t,i)||!n.equals(e[i],t[i],i,i,e,t,n))return!1;return!0}function sr(e,t,n){var r=Mu(e),o=r.length;if(Mu(t).length!==o)return!1;for(var i,l,s;o-- >0;)if(i=r[o],i===Hd&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!Wd(t,i)||!n.equals(e[i],t[i],i,i,e,t,n)||(l=Lu(e,i),s=Lu(t,i),(l||s)&&(!l||!s||l.configurable!==s.configurable||l.enumerable!==s.enumerable||l.writable!==s.writable)))return!1;return!0}function I_(e,t){return or(e.valueOf(),t.valueOf())}function j_(e,t){return e.source===t.source&&e.flags===t.flags}function Ou(e,t,n){if(e.size!==t.size)return!1;for(var r={},o=e.values(),i,l;(i=o.next())&&!i.done;){for(var s=t.values(),a=!1,u=0;(l=s.next())&&!l.done;)!a&&!r[u]&&(a=n.equals(i.value,l.value,i.value,l.value,e,t,n))&&(r[u]=!0),u++;if(!a)return!1}return!0}function A_(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var R_="[object Arguments]",B_="[object Boolean]",$_="[object Date]",F_="[object Map]",W_="[object Number]",H_="[object Object]",U_="[object RegExp]",V_="[object Set]",Q_="[object String]",q_=Array.isArray,Iu=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,ju=Object.assign,G_=Object.prototype.toString.call.bind(Object.prototype.toString);function Z_(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,o=e.areObjectsEqual,i=e.arePrimitiveWrappersEqual,l=e.areRegExpsEqual,s=e.areSetsEqual,a=e.areTypedArraysEqual;return function(c,f,p){if(c===f)return!0;if(c==null||f==null||typeof c!="object"||typeof f!="object")return c!==c&&f!==f;var m=c.constructor;if(m!==f.constructor)return!1;if(m===Object)return o(c,f,p);if(q_(c))return t(c,f,p);if(Iu!=null&&Iu(c))return a(c,f,p);if(m===Date)return n(c,f,p);if(m===RegExp)return l(c,f,p);if(m===Map)return r(c,f,p);if(m===Set)return s(c,f,p);var g=G_(c);return g===$_?n(c,f,p):g===U_?l(c,f,p):g===F_?r(c,f,p):g===V_?s(c,f,p):g===H_?typeof c.then!="function"&&typeof f.then!="function"&&o(c,f,p):g===R_?o(c,f,p):g===B_||g===W_||g===Q_?i(c,f,p):!1}}function Y_(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?sr:N_,areDatesEqual:P_,areMapsEqual:r?Du(Pu,sr):Pu,areObjectsEqual:r?sr:O_,arePrimitiveWrappersEqual:I_,areRegExpsEqual:j_,areSetsEqual:r?Du(Ou,sr):Ou,areTypedArraysEqual:r?sr:A_};if(n&&(o=ju({},o,n(o))),t){var i=xo(o.areArraysEqual),l=xo(o.areMapsEqual),s=xo(o.areObjectsEqual),a=xo(o.areSetsEqual);o=ju({},o,{areArraysEqual:i,areMapsEqual:l,areObjectsEqual:s,areSetsEqual:a})}return o}function K_(e){return function(t,n,r,o,i,l,s){return e(t,n,s)}}function X_(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,i=e.strict;if(r)return function(a,u){var c=r(),f=c.cache,p=f===void 0?t?new WeakMap:void 0:f,m=c.meta;return n(a,u,{cache:p,equals:o,meta:m,strict:i})};if(t)return function(a,u){return n(a,u,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var l={cache:void 0,equals:o,meta:void 0,strict:i};return function(a,u){return n(a,u,l)}}Jt();Jt({strict:!0});Jt({circular:!0});Jt({circular:!0,strict:!0});var J_=Jt({createInternalComparator:function(){return or}});Jt({strict:!0,createInternalComparator:function(){return or}});Jt({circular:!0,createInternalComparator:function(){return or}});Jt({circular:!0,createInternalComparator:function(){return or},strict:!0});function Jt(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,o=e.createState,i=e.strict,l=i===void 0?!1:i,s=Y_(e),a=Z_(s),u=r?r(a):K_(a);return X_({circular:n,comparator:a,createState:o,equals:u,strict:l})}const eg="ru",tg=new Intl.DateTimeFormat(eg,{hour:"numeric",minute:"numeric"}),ng=(e,t)=>t[e%10===1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2],rg=[{id:1,getText:()=>"Я сделаю всё возможное, чтобы вам помочь. Давайте разберёмся, что можно сделать."},{id:2,getText:({client:e})=>`${e.name}, я искренне понимаю, что вам важно сейчас решить свой вопрос. Давайте разберёмся, что можно сделать. Расскажите, пожалуйста, подробно суть вашей проблемы.`},{id:3,getText:()=>"Сожалею, что возникла неприятная ситуация. Я на вашей стороне, хочу помочь. Дайте мне немного времени, чтобы разобраться."},{id:4,getText:()=>"Прошу прощения! Я приложу все усилия, чтобы решить вопрос!"},{id:5,getText:()=>"Я здесь чтобы решить ваш вопрос! Сейчас найдём для вас лучшее решение."},{id:6,getText:()=>"Я вас понимаю: меня бы эта проблема тоже сильно разозлила. Я хочу помочь вам решить её. Мне не всё равно и мне очень жаль, что такое произошло."},{id:7,getText:()=>"Понимаю, что вам важно решить свой вопрос. Сейчас разберёмся. Расскажите пожалуйста подробно."},{id:8,getText:()=>"Простите, что расстроили вас, мы сделаем всё, чтобы таких ситуаций более не возникало."},{id:9,getText:({client:e})=>`${e.name}, я искренне понимаю, что вам важно сейчас решить свой вопрос. Я сделаю всё, чтобы вам помочь.`},{id:10,getText:()=>"Искренне извиняюсь за сложности, с которыми вы столкнулись. Мы на вашей стороне и готовы вам помочь, поэтому давайте вместе найдём решение."},{id:11,getText:()=>"Прошу прощения за возникшие неудобства! Я сделаю всё, что в моих силах, чтобы решить вашу проблему."},{id:12,getText:()=>"Я понимаю, как неприятно это может быть для вас. Не волнуйтесь, я здесь, чтобы помочь и найти лучшее решение."},{id:13,getText:()=>"Простите нас! Ситуация и правда неприятная, сейчас всё решим."},{id:14,getText:()=>"Мы ценим ваше доверие и сделаем всё возможное, чтобы решить вашу проблему."},{id:15,getText:()=>"Для нас очень важно найти решение, которое вас устроит. Давайте вместе разберёмся в вашем вопросе."},{id:16,getText:()=>"Простите, что расстроили вас, сейчас нам важно решить ваш вопрос и исправить ситуацию."},{id:17,getText:()=>"Приношу свои извинения! Я приложу все усилия, чтобы ваш вопрос был решён!"},{id:18,getText:()=>"Извините за вызванные неудобства. Мы приложим максимум усилий, чтобы решить ваш вопрос."},{id:19,getText:()=>"Пожалуйста, примите наши извинения за сложности, с которыми вы столкнулись. Мы готовы вам помочь."},{id:20,getText:()=>"Мы понимаем, как важно для вас решить этот вопрос. Искренне извиняюсь за сложившуюся ситуацию."}],le={allClientsAreSatisfied:"Нет негативных сообщений",negativityLevelIncreased:"Повысился уровень негатива",clientCont:e=>`${e} клиент${ng(e,["","а","ов"])}`,messageTime:e=>tg.format(e),tryToReassureTheClient:"Попробуй успокоить клиента",goToChat:"Перейти в чат",notANegative:"Не негатив",copy:"Скопировать",copied:"Скопировано",expandButton:{maximize:"Увеличить виджет",minimize:"Уменьшить виджет"},spoiler:{show:"Читать полностью",hide:"Свернуть"},popper:{negativityLevelIncreased:"Уровень негатива клиента повысился",hereAreACoupleOfPhrases:"Здесь пара фраз, чтобы его успокоить"},close:"Закрыть",hideFromTheFeed:"Скрыть из ленты",widgetIsNotResponding:"Виджет не отвечает. Перезагрузи страницу или попробуй позже",phrasesToCalm:rg};class og{constructor(t){ae(this,"handlers",new Set);ae(this,"subscribe",t=>{this.handlers.add(t)});ae(this,"unsubscribe",t=>{this.handlers.delete(t)});this._state=t}get state(){return this._state}set state(t){if(this._state!==t){this._state=t;for(const n of this.handlers)n(t)}}}const ig=Object.freeze({initialized:!1,negatives:[],open:!1,chatState:Et.Minimized,operator:{id:""}});class lg extends og{constructor(){super(...arguments);ae(this,"actions",{initialize:n=>{this.state={...this.state,...n,initialized:!0}},toggleVisibility:n=>{this.state={...this.state,open:typeof n=="boolean"?n:!this.state.open}},negativeHappened:n=>{this.state={...this.state,negatives:[{...n,phrasesToCalm:t_(le.phrasesToCalm,c_)},...this.state.negatives.filter(r=>r.client.id!==n.client.id)]}},notANegative:n=>{this.state={...this.state,negatives:this.state.negatives.filter(r=>r.client.id!==n)}},toggleState:()=>{this.state={...this.state,chatState:this.state.chatState===Et.Maximized?Et.Minimized:Et.Maximized}},phraseDidNotHelp:({clientId:n,phraseId:r})=>{this.state={...this.state,negatives:this.state.negatives.map(o=>o.client.id===n?{...o,phrasesToCalm:o.phrasesToCalm.filter(i=>i.id!==r)}:o)}},update:({theme:n,threshold:r})=>{this.state={...this.state,theme:n,threshold:r}},dispatchError:()=>{this.state={...this.state,hasError:!0}}})}}const B=new lg(ig),sg=e=>e,wn=(e=sg)=>{const[t,n]=D.useState(()=>e(B.state)),r=D.useRef(e);r.current=e;const o=D.useRef(t);return o.current=t,D.useEffect(()=>{const i=l=>{const s=r.current(l);J_(o.current,s)||n(s)};return B.subscribe(i),()=>{B.unsubscribe(i)}},[]),t};class ag{constructor(){ae(this,"scoreClientMessage",async t=>{n_(t);const n=new Date,{communicationId:r}=t;try{const{hasNegativity:o,score:i}=await Ii.negativeScore({text:t.text,operatorId:String(B.state.operator.id),communicationId:String(r),phraseId:String(t.messageId)});if(typeof B.state.threshold!="number"&&!o||typeof B.state.threshold=="number"&&i{B.actions.toggleVisibility(t),(B.state.open?_e.openWidget:_e.foldWidget)({operatorId:String(B.state.operator.id),actionCode:Pd.ExtTrigger})})}}const Ud=new ag;var Vd={exports:{}},ji={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ug=D,cg=Symbol.for("react.element"),dg=Symbol.for("react.fragment"),fg=Object.prototype.hasOwnProperty,pg=ug.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,hg={key:!0,ref:!0,__self:!0,__source:!0};function Qd(e,t,n){var r,o={},i=null,l=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)fg.call(t,r)&&!hg.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:cg,type:e,key:i,ref:l,props:o,_owner:pg.current}}ji.Fragment=dg;ji.jsx=Qd;ji.jsxs=Qd;Vd.exports=ji;var v=Vd.exports,qd={exports:{}},We={},Gd={exports:{}},Zd={};/** * @license React * scheduler.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */(function(e){function t(z,L){var P=z.length;z.push(L);e:for(;0>>1,re=z[G];if(0>>1;Go(fl,P))ono(mo,fl)?(z[G]=mo,z[on]=P,G=on):(z[G]=fl,z[nt]=P,G=nt);else if(ono(mo,P))z[G]=mo,z[on]=P,G=on;else break e}}return L}function o(z,L){var P=z.sortIndex-L.sortIndex;return P!==0?P:z.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],u=[],c=1,f=null,p=3,m=!1,g=!1,y=!1,T=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(z){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=z)r(u),L.sortIndex=L.expirationTime,t(a,L);else break;L=n(u)}}function x(z){if(y=!1,_(z),!g)if(n(a)!==null)g=!0,rn(E);else{var L=n(u);L!==null&&Ve(x,L.startTime-z)}}function E(z,L){g=!1,y&&(y=!1,h(k),k=-1),m=!0;var P=p;try{for(_(L),f=n(a);f!==null&&(!(f.expirationTime>L)||z&&!H());){var G=f.callback;if(typeof G=="function"){f.callback=null,p=f.priorityLevel;var re=G(f.expirationTime<=L);L=e.unstable_now(),typeof re=="function"?f.callback=re:f===n(a)&&r(a),_(L)}else r(a);f=n(a)}if(f!==null)var Pt=!0;else{var nt=n(u);nt!==null&&Ve(x,nt.startTime-L),Pt=!1}return Pt}finally{f=null,p=P,m=!1}}var w=!1,C=null,k=-1,O=5,N=-1;function H(){return!(e.unstable_now()-Nz||125G?(z.sortIndex=P,t(u,z),n(a)===null&&z===n(u)&&(y?(h(k),k=-1):y=!0,Ve(x,P-G))):(z.sortIndex=re,t(a,z),g||m||(g=!0,rn(E))),z},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(z){var L=p;return function(){var P=p;p=L;try{return z.apply(this,arguments)}finally{p=P}}}})(Zd);Gd.exports=Zd;var _g=Gd.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Yd=D,Fe=_g;function S(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ts=Object.prototype.hasOwnProperty,gg=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Au={},Ru={};function mg(e){return ts.call(Ru,e)?!0:ts.call(Au,e)?!1:gg.test(e)?Ru[e]=!0:(Au[e]=!0,!1)}function vg(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function yg(e,t,n,r){if(t===null||typeof t>"u"||vg(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ze(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var ve={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ve[e]=new ze(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ve[t]=new ze(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ve[e]=new ze(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ve[e]=new ze(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ve[e]=new ze(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ve[e]=new ze(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ve[e]=new ze(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ve[e]=new ze(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ve[e]=new ze(e,5,!1,e.toLowerCase(),null,!1,!1)});var fa=/[\-:]([a-z])/g;function pa(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(fa,pa);ve[t]=new ze(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(fa,pa);ve[t]=new ze(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(fa,pa);ve[t]=new ze(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ve[e]=new ze(e,1,!1,e.toLowerCase(),null,!1,!1)});ve.xlinkHref=new ze("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ve[e]=new ze(e,1,!1,e.toLowerCase(),null,!0,!0)});function ha(e,t,n,r){var o=ve.hasOwnProperty(t)?ve[t]:null;(o!==null?o.type!==0:r||!(2s||o[l]!==i[s]){var a=` `+o[l].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{ml=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Tr(e):""}function xg(e){switch(e.tag){case 5:return Tr(e.type);case 16:return Tr("Lazy");case 13:return Tr("Suspense");case 19:return Tr("SuspenseList");case 0:case 2:case 15:return e=vl(e.type,!1),e;case 11:return e=vl(e.type.render,!1),e;case 1:return e=vl(e.type,!0),e;default:return""}}function is(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Dn:return"Fragment";case zn:return"Portal";case ns:return"Profiler";case _a:return"StrictMode";case rs:return"Suspense";case os:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jd:return(e.displayName||"Context")+".Consumer";case Xd:return(e._context.displayName||"Context")+".Provider";case ga:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ma:return t=e.displayName||null,t!==null?t:is(e.type)||"Memo";case jt:t=e._payload,e=e._init;try{return is(e(t))}catch{}}return null}function wg(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return is(t);case 8:return t===_a?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Yt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Sg(e){var t=tf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function So(e){e._valueTracker||(e._valueTracker=Sg(e))}function nf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ii(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ls(e,t){var n=t.checked;return X({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $u(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Yt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function rf(e,t){t=t.checked,t!=null&&ha(e,"checked",t,!1)}function ss(e,t){rf(e,t);var n=Yt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?as(e,t.type,n):t.hasOwnProperty("defaultValue")&&as(e,t.type,Yt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Fu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function as(e,t,n){(t!=="number"||ii(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Cr=Array.isArray;function Fn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ko.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function qr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Lr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},kg=["Webkit","ms","Moz","O"];Object.keys(Lr).forEach(function(e){kg.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Lr[t]=Lr[e]})});function af(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Lr.hasOwnProperty(e)&&Lr[e]?(""+t).trim():t+"px"}function uf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=af(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Eg=X({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ds(e,t){if(t){if(Eg[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(S(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(S(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(S(61))}if(t.style!=null&&typeof t.style!="object")throw Error(S(62))}}function fs(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ps=null;function va(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hs=null,Wn=null,Hn=null;function Uu(e){if(e=_o(e)){if(typeof hs!="function")throw Error(S(280));var t=e.stateNode;t&&(t=Fi(t),hs(e.stateNode,e.type,t))}}function cf(e){Wn?Hn?Hn.push(e):Hn=[e]:Wn=e}function df(){if(Wn){var e=Wn,t=Hn;if(Hn=Wn=null,Uu(e),t)for(e=0;e>>=0,e===0?32:31-(Ig(e)/jg|0)|0}var Eo=64,To=4194304;function br(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ui(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=br(s):(i&=l,i!==0&&(r=br(i)))}else l=n&~o,l!==0?r=br(l):i!==0&&(r=br(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function po(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-at(t),e[t]=n}function $g(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Pr),Ju=String.fromCharCode(32),ec=!1;function Lf(e,t){switch(e){case"keyup":return h0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Mn=!1;function g0(e,t){switch(e){case"compositionend":return Nf(t);case"keypress":return t.which!==32?null:(ec=!0,Ju);case"textInput":return e=t.data,e===Ju&&ec?null:e;default:return null}}function m0(e,t){if(Mn)return e==="compositionend"||!Ca&&Lf(e,t)?(e=Df(),Vo=ka=$t=null,Mn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=oc(n)}}function jf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Af(){for(var e=window,t=ii();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ii(e.document)}return t}function ba(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function C0(e){var t=Af(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&jf(n.ownerDocument.documentElement,n)){if(r!==null&&ba(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ic(n,i);var l=ic(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ln=null,xs=null,Ir=null,ws=!1;function lc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ws||Ln==null||Ln!==ii(r)||(r=Ln,"selectionStart"in r&&ba(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ir&&Jr(Ir,r)||(Ir=r,r=fi(xs,"onSelect"),0On||(e.current=bs[On],bs[On]=null,On--)}function U(e,t){On++,bs[On]=e.current,e.current=t}var Kt={},ke=tn(Kt),Ne=tn(!1),gn=Kt;function Zn(e,t){var n=e.type.contextTypes;if(!n)return Kt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Pe(e){return e=e.childContextTypes,e!=null}function hi(){q(Ne),q(ke)}function pc(e,t,n){if(ke.current!==Kt)throw Error(S(168));U(ke,t),U(Ne,n)}function Qf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(S(108,wg(e)||"Unknown",o));return X({},n,r)}function _i(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Kt,gn=ke.current,U(ke,e),U(Ne,Ne.current),!0}function hc(e,t,n){var r=e.stateNode;if(!r)throw Error(S(169));n?(e=Qf(e,t,gn),r.__reactInternalMemoizedMergedChildContext=e,q(Ne),q(ke),U(ke,e)):q(Ne),U(Ne,n)}var xt=null,Wi=!1,Nl=!1;function qf(e){xt===null?xt=[e]:xt.push(e)}function R0(e){Wi=!0,qf(e)}function nn(){if(!Nl&&xt!==null){Nl=!0;var e=0,t=$;try{var n=xt;for($=1;e>=l,o-=l,wt=1<<32-at(t)+o|n<k?(O=C,C=null):O=C.sibling;var N=p(h,C,_[k],x);if(N===null){C===null&&(C=O);break}e&&C&&N.alternate===null&&t(h,C),d=i(N,d,k),w===null?E=N:w.sibling=N,w=N,C=O}if(k===_.length)return n(h,C),Z&&sn(h,k),E;if(C===null){for(;k<_.length;k++)C=f(h,_[k],x),C!==null&&(d=i(C,d,k),w===null?E=C:w.sibling=C,w=C);return Z&&sn(h,k),E}for(C=r(h,C);k<_.length;k++)O=m(C,h,k,_[k],x),O!==null&&(e&&O.alternate!==null&&C.delete(O.key===null?k:O.key),d=i(O,d,k),w===null?E=O:w.sibling=O,w=O);return e&&C.forEach(function(H){return t(h,H)}),Z&&sn(h,k),E}function y(h,d,_,x){var E=ar(_);if(typeof E!="function")throw Error(S(150));if(_=E.call(_),_==null)throw Error(S(151));for(var w=E=null,C=d,k=d=0,O=null,N=_.next();C!==null&&!N.done;k++,N=_.next()){C.index>k?(O=C,C=null):O=C.sibling;var H=p(h,C,N.value,x);if(H===null){C===null&&(C=O);break}e&&C&&H.alternate===null&&t(h,C),d=i(H,d,k),w===null?E=H:w.sibling=H,w=H,C=O}if(N.done)return n(h,C),Z&&sn(h,k),E;if(C===null){for(;!N.done;k++,N=_.next())N=f(h,N.value,x),N!==null&&(d=i(N,d,k),w===null?E=N:w.sibling=N,w=N);return Z&&sn(h,k),E}for(C=r(h,C);!N.done;k++,N=_.next())N=m(C,h,k,N.value,x),N!==null&&(e&&N.alternate!==null&&C.delete(N.key===null?k:N.key),d=i(N,d,k),w===null?E=N:w.sibling=N,w=N);return e&&C.forEach(function(te){return t(h,te)}),Z&&sn(h,k),E}function T(h,d,_,x){if(typeof _=="object"&&_!==null&&_.type===Dn&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case wo:e:{for(var E=_.key,w=d;w!==null;){if(w.key===E){if(E=_.type,E===Dn){if(w.tag===7){n(h,w.sibling),d=o(w,_.props.children),d.return=h,h=d;break e}}else if(w.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===jt&&wc(E)===w.type){n(h,w.sibling),d=o(w,_.props),d.ref=pr(h,w,_),d.return=h,h=d;break e}n(h,w);break}else t(h,w);w=w.sibling}_.type===Dn?(d=pn(_.props.children,h.mode,x,_.key),d.return=h,h=d):(x=Jo(_.type,_.key,_.props,null,h.mode,x),x.ref=pr(h,d,_),x.return=h,h=x)}return l(h);case zn:e:{for(w=_.key;d!==null;){if(d.key===w)if(d.tag===4&&d.stateNode.containerInfo===_.containerInfo&&d.stateNode.implementation===_.implementation){n(h,d.sibling),d=o(d,_.children||[]),d.return=h,h=d;break e}else{n(h,d);break}else t(h,d);d=d.sibling}d=$l(_,h.mode,x),d.return=h,h=d}return l(h);case jt:return w=_._init,T(h,d,w(_._payload),x)}if(Cr(_))return g(h,d,_,x);if(ar(_))return y(h,d,_,x);No(h,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,d!==null&&d.tag===6?(n(h,d.sibling),d=o(d,_),d.return=h,h=d):(n(h,d),d=Bl(_,h.mode,x),d.return=h,h=d),l(h)):n(h,d)}return T}var Kn=tp(!0),np=tp(!1),go={},mt=tn(go),ro=tn(go),oo=tn(go);function dn(e){if(e===go)throw Error(S(174));return e}function ja(e,t){switch(U(oo,t),U(ro,e),U(mt,go),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:cs(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=cs(t,e)}q(mt),U(mt,t)}function Xn(){q(mt),q(ro),q(oo)}function rp(e){dn(oo.current);var t=dn(mt.current),n=cs(t,e.type);t!==n&&(U(ro,e),U(mt,n))}function Aa(e){ro.current===e&&(q(mt),q(ro))}var Y=tn(0);function wi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Pl=[];function Ra(){for(var e=0;en?n:4,e(!0);var r=Ol.transition;Ol.transition={};try{e(!1),t()}finally{$=n,Ol.transition=r}}function yp(){return et().memoizedState}function W0(e,t,n){var r=Gt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},xp(e))wp(t,n);else if(n=Kf(e,t,n,r),n!==null){var o=Te();ut(n,e,r,o),Sp(n,t,r)}}function H0(e,t,n){var r=Gt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(xp(e))wp(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,ct(s,l)){var a=t.interleaved;a===null?(o.next=o,Oa(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Kf(e,t,o,r),n!==null&&(o=Te(),ut(n,e,r,o),Sp(n,t,r))}}function xp(e){var t=e.alternate;return e===K||t!==null&&t===K}function wp(e,t){jr=Si=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Sp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,xa(e,n)}}var ki={readContext:Je,useCallback:xe,useContext:xe,useEffect:xe,useImperativeHandle:xe,useInsertionEffect:xe,useLayoutEffect:xe,useMemo:xe,useReducer:xe,useRef:xe,useState:xe,useDebugValue:xe,useDeferredValue:xe,useTransition:xe,useMutableSource:xe,useSyncExternalStore:xe,useId:xe,unstable_isNewReconciler:!1},U0={readContext:Je,useCallback:function(e,t){return pt().memoizedState=[e,t===void 0?null:t],e},useContext:Je,useEffect:kc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zo(4194308,4,hp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zo(4,2,e,t)},useMemo:function(e,t){var n=pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=W0.bind(null,K,e),[r.memoizedState,e]},useRef:function(e){var t=pt();return e={current:e},t.memoizedState=e},useState:Sc,useDebugValue:Ha,useDeferredValue:function(e){return pt().memoizedState=e},useTransition:function(){var e=Sc(!1),t=e[0];return e=F0.bind(null,e[1]),pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=K,o=pt();if(Z){if(n===void 0)throw Error(S(407));n=n()}else{if(n=t(),fe===null)throw Error(S(349));vn&30||lp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,kc(ap.bind(null,r,i,e),[e]),r.flags|=2048,so(9,sp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=pt(),t=fe.identifierPrefix;if(Z){var n=St,r=wt;n=(r&~(1<<32-at(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=io++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ht]=t,e[no]=r,Lp(e,t,!1,!1),t.stateNode=e;e:{switch(l=fs(n,r),n){case"dialog":Q("cancel",e),Q("close",e),o=r;break;case"iframe":case"object":case"embed":Q("load",e),o=r;break;case"video":case"audio":for(o=0;oer&&(t.flags|=128,r=!0,hr(i,!1),t.lanes=4194304)}else{if(!r)if(e=wi(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),hr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!Z)return we(t),null}else 2*ne()-i.renderingStartTime>er&&n!==1073741824&&(t.flags|=128,r=!0,hr(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ne(),t.sibling=null,n=Y.current,U(Y,r?n&1|2:n&1),t):(we(t),null);case 22:case 23:return Za(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?je&1073741824&&(we(t),t.subtreeFlags&6&&(t.flags|=8192)):we(t),null;case 24:return null;case 25:return null}throw Error(S(156,t.tag))}function X0(e,t){switch(Da(t),t.tag){case 1:return Pe(t.type)&&hi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xn(),q(Ne),q(ke),Ra(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Aa(t),null;case 13:if(q(Y),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(S(340));Yn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(Y),null;case 4:return Xn(),null;case 10:return Pa(t.type._context),null;case 22:case 23:return Za(),null;case 24:return null;default:return null}}var Oo=!1,Se=!1,J0=typeof WeakSet=="function"?WeakSet:Set,M=null;function Rn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ee(e,t,r)}else n.current=null}function Bs(e,t,n){try{n()}catch(r){ee(e,t,r)}}var Nc=!1;function e1(e,t){if(Ss=ci,e=Af(),ba(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,c=0,f=e,p=null;t:for(;;){for(var m;f!==n||o!==0&&f.nodeType!==3||(s=l+o),f!==i||r!==0&&f.nodeType!==3||(a=l+r),f.nodeType===3&&(l+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break t;if(p===n&&++u===o&&(s=l),p===i&&++c===r&&(a=l),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ks={focusedElem:e,selectionRange:n},ci=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,T=g.memoizedState,h=t.stateNode,d=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:it(t.type,y),T);h.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(x){ee(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return g=Nc,Nc=!1,g}function Ar(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Bs(t,n,i)}o=o.next}while(o!==r)}}function Vi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function $s(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Op(e){var t=e.alternate;t!==null&&(e.alternate=null,Op(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ht],delete t[no],delete t[Cs],delete t[j0],delete t[A0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Ip(e){return e.tag===5||e.tag===3||e.tag===4}function Pc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ip(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Fs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=pi));else if(r!==4&&(e=e.child,e!==null))for(Fs(e,t,n),e=e.sibling;e!==null;)Fs(e,t,n),e=e.sibling}function Ws(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ws(e,t,n),e=e.sibling;e!==null;)Ws(e,t,n),e=e.sibling}var he=null,lt=!1;function Ot(e,t,n){for(n=n.child;n!==null;)jp(e,t,n),n=n.sibling}function jp(e,t,n){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(Ai,n)}catch{}switch(n.tag){case 5:Se||Rn(n,t);case 6:var r=he,o=lt;he=null,Ot(e,t,n),he=r,lt=o,he!==null&&(lt?(e=he,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):he.removeChild(n.stateNode));break;case 18:he!==null&&(lt?(e=he,n=n.stateNode,e.nodeType===8?Ll(e.parentNode,n):e.nodeType===1&&Ll(e,n),Kr(e)):Ll(he,n.stateNode));break;case 4:r=he,o=lt,he=n.stateNode.containerInfo,lt=!0,Ot(e,t,n),he=r,lt=o;break;case 0:case 11:case 14:case 15:if(!Se&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&Bs(n,t,l),o=o.next}while(o!==r)}Ot(e,t,n);break;case 1:if(!Se&&(Rn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ee(n,t,s)}Ot(e,t,n);break;case 21:Ot(e,t,n);break;case 22:n.mode&1?(Se=(r=Se)||n.memoizedState!==null,Ot(e,t,n),Se=r):Ot(e,t,n);break;default:Ot(e,t,n)}}function Oc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new J0),t.forEach(function(r){var o=u1.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ot(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*n1(r/1960))-r,10e?16:e,Ft===null)var r=!1;else{if(e=Ft,Ft=null,Ci=0,A&6)throw Error(S(331));var o=A;for(A|=4,M=e.current;M!==null;){var i=M,l=i.child;if(M.flags&16){var s=i.deletions;if(s!==null){for(var a=0;ane()-qa?fn(e,0):Qa|=n),Oe(e,t)}function Up(e,t){t===0&&(e.mode&1?(t=To,To<<=1,!(To&130023424)&&(To=4194304)):t=1);var n=Te();e=zt(e,t),e!==null&&(po(e,t,n),Oe(e,n))}function a1(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Up(e,n)}function u1(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(S(314))}r!==null&&r.delete(t),Up(e,n)}var Vp;Vp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ne.current)Le=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Le=!1,Y0(e,t,n);Le=!!(e.flags&131072)}else Le=!1,Z&&t.flags&1048576&&Gf(t,mi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Yo(e,t),e=t.pendingProps;var o=Zn(t,ke.current);Vn(t,n),o=$a(null,t,r,e,o,n);var i=Fa();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pe(r)?(i=!0,_i(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ia(t),o.updater=Hi,t.stateNode=o,o._reactInternals=t,Ns(t,r,e,n),t=Is(null,t,r,!0,i,n)):(t.tag=0,Z&&i&&za(t),Ee(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Yo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=d1(r),e=it(r,e),o){case 0:t=Os(null,t,r,e,n);break e;case 1:t=Dc(null,t,r,e,n);break e;case 11:t=bc(null,t,r,e,n);break e;case 14:t=zc(null,t,r,it(r.type,e),n);break e}throw Error(S(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:it(r,o),Os(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:it(r,o),Dc(e,t,r,o,n);case 3:e:{if(zp(t),e===null)throw Error(S(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Xf(e,t),xi(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Jn(Error(S(423)),t),t=Mc(e,t,r,n,o);break e}else if(r!==o){o=Jn(Error(S(424)),t),t=Mc(e,t,r,n,o);break e}else for(Re=Vt(t.stateNode.containerInfo.firstChild),$e=t,Z=!0,st=null,n=np(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Yn(),r===o){t=Dt(e,t,n);break e}Ee(e,t,r,n)}t=t.child}return t;case 5:return rp(t),e===null&&Ds(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Es(r,o)?l=null:i!==null&&Es(r,i)&&(t.flags|=32),bp(e,t),Ee(e,t,l,n),t.child;case 6:return e===null&&Ds(t),null;case 13:return Dp(e,t,n);case 4:return ja(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Kn(t,null,r,n):Ee(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:it(r,o),bc(e,t,r,o,n);case 7:return Ee(e,t,t.pendingProps,n),t.child;case 8:return Ee(e,t,t.pendingProps.children,n),t.child;case 12:return Ee(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,U(vi,r._currentValue),r._currentValue=l,i!==null)if(ct(i.value,l)){if(i.children===o.children&&!Ne.current){t=Dt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Tt(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ms(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(S(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Ms(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Ee(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Vn(t,n),o=Je(o),r=r(o),t.flags|=1,Ee(e,t,r,n),t.child;case 14:return r=t.type,o=it(r,t.pendingProps),o=it(r.type,o),zc(e,t,r,o,n);case 15:return Tp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:it(r,o),Yo(e,t),t.tag=1,Pe(r)?(e=!0,_i(t)):e=!1,Vn(t,n),ep(t,r,o),Ns(t,r,o,n),Is(null,t,r,!0,e,n);case 19:return Mp(e,t,n);case 22:return Cp(e,t,n)}throw Error(S(156,t.tag))};function Qp(e,t){return vf(e,t)}function c1(e,t,n,r){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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ke(e,t,n,r){return new c1(e,t,n,r)}function Ka(e){return e=e.prototype,!(!e||!e.isReactComponent)}function d1(e){if(typeof e=="function")return Ka(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ga)return 11;if(e===ma)return 14}return 2}function Zt(e,t){var n=e.alternate;return n===null?(n=Ke(e.tag,t,e.key,e.mode),n.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.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,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=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Jo(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")Ka(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Dn:return pn(n.children,o,i,t);case _a:l=8,o|=8;break;case ns:return e=Ke(12,n,t,o|2),e.elementType=ns,e.lanes=i,e;case rs:return e=Ke(13,n,t,o),e.elementType=rs,e.lanes=i,e;case os:return e=Ke(19,n,t,o),e.elementType=os,e.lanes=i,e;case ef:return qi(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Xd:l=10;break e;case Jd:l=9;break e;case ga:l=11;break e;case ma:l=14;break e;case jt:l=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return t=Ke(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function pn(e,t,n,r){return e=Ke(7,e,r,t),e.lanes=n,e}function qi(e,t,n,r){return e=Ke(22,e,r,t),e.elementType=ef,e.lanes=n,e.stateNode={isHidden:!1},e}function Bl(e,t,n){return e=Ke(6,e,null,t),e.lanes=n,e}function $l(e,t,n){return t=Ke(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function f1(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=xl(0),this.expirationTimes=xl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Xa(e,t,n,r,o,i,l,s,a){return e=new f1(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ke(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ia(i),e}function p1(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yp)}catch(e){console.error(e)}}Yp(),qd.exports=We;var nu=qd.exports,Kp,Wc=nu;Kp=Wc.createRoot,Wc.hydrateRoot;class Xp extends D.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,n){const{onError:r}=this.props;r==null||r(t,n)}render(){const{fallback:t,children:n}=this.props,{error:r}=this.state;return r?t?t({error:r}):null:n}}var Jp={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Jp);var ru=Jp.exports,eh={exports:{}};(function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r=0)&&(o[l]=n[l]);return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(th);var nh=th.exports;const ye=tt(nh);var _t={},tr={};tr.__esModule=!0;tr.PORTAL_WRAPPER_ATTR_NAME=tr.PORTAL_EXIT_ATTR_NAME=void 0;var v1="data-tui-portal-exit";tr.PORTAL_EXIT_ATTR_NAME=v1;var y1="data-tui-portal-wrapper";tr.PORTAL_WRAPPER_ATTR_NAME=y1;_t.__esModule=!0;_t.setRef=_t.findPortalExitByName=_t.findPortalExit=_t.findClosestPortalExit=void 0;var qs=tr,x1=function(t,n){t&&(typeof t=="function"?t(n):t.current=n)};_t.setRef=x1;var rh=function(t){var n=t.closest("["+qs.PORTAL_WRAPPER_ATTR_NAME+"]");if(!n)return document.body;var r=n.querySelector("["+qs.PORTAL_EXIT_ATTR_NAME+"]");return r||document.body};_t.findClosestPortalExit=rh;var oh=function(t){if(t==="body")return document.body;var n=document.querySelector("["+qs.PORTAL_EXIT_ATTR_NAME+"="+t+"]");return n||document.body};_t.findPortalExitByName=oh;var w1=function(t,n){return n?typeof n=="string"?oh(n):n instanceof HTMLElement?n:document.body:rh(t)};_t.findPortalExit=w1;var ou=ru.default,ih=void 0,S1=ou(Xi),k1=ou(nh),gr=ou(D),E1=nu,Fl=_t,T1=["tagName","toBody","to","exitRef","prerender","children"],C1=function(t){var n=t.tagName,r=n===void 0?"div":n,o=t.toBody,i=t.to,l=i===void 0?o?"body":void 0:i,s=t.exitRef,a=t.prerender,u=t.children,c=(0,k1.default)(t,T1),f=gr.default.useState(null),p=f[0],m=f[1],g=gr.default.useCallback(function(y){if(!y){(0,Fl.setRef)(s,null);return}var T=(0,Fl.findPortalExit)(y,l);m(T),(0,Fl.setRef)(s,T)},[l,s]);return gr.default.createElement(gr.default.Fragment,null,gr.default.createElement(r,(0,S1.default)({ref:g,hidden:!0},c),a&&!p?u:null),p&&(0,E1.createPortal)(u,p))},b1=C1;ih=b1;const z1=(e,t)=>!Object.is(e,t),D1=(e,t=z1)=>{const n=D.useRef(),r=D.useRef();return t(r.current,e)&&(n.current=r.current,r.current=e),n.current},M1=(e,t)=>{const[n,r]=D.useState(!1);return D.useEffect(()=>{let o;return e&&!n?r(!0):!e&&n&&(o=window.setTimeout(()=>{r(!1)},t)),()=>{window.clearTimeout(o)}},[t,e,n]),n};let L1="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",lh=(e=21)=>{let t="",n=e;for(;n--;)t+=L1[Math.random()*64|0];return t};const N1=e=>e&&e.constructor&&e.constructor.name||"dsId";function P1(e){const t=N1(e),n=lh(10);return`${t}_${n}`}function O1(e){return b.useRef(e||P1()).current}var sh={exports:{}},I1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",j1=I1,A1=j1;function ah(){}function uh(){}uh.resetWarningCache=ah;var R1=function(){function e(r,o,i,l,s,a){if(a!==A1){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:uh,resetWarningCache:ah};return n.PropTypes=n,n};sh.exports=R1();var B1=sh.exports;const J=tt(B1);var ch={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o{e&&(typeof e=="function"?e(t):e.current=t)},F1=e=>{const t=e.closest(`[${dh}]`);return t&&t.querySelector(`[${iu}]`)||document.body},W1=e=>e==="body"?document.body:document.querySelector(`[${iu}=${e}]`)||document.body,H1=(e,t)=>t?typeof t=="string"?W1(t):t instanceof HTMLElement?t:document.body:F1(e),U1=["tagName","toBody","to","exitRef","prerender","children"],V1=e=>{const{tagName:t="div",toBody:n,to:r=n?"body":void 0,exitRef:o,prerender:i,children:l}=e,s=ye(e,U1),[a,u]=b.useState(null),c=b.useCallback(f=>{if(!f){Hc(o,null);return}const p=H1(f,r);u(p),Hc(o,p)},[r,o]);return b.createElement(b.Fragment,null,b.createElement(t,V({ref:c,hidden:!0},s),i&&!a?l:null),a&&nu.createPortal(l,a))},Uc=V1;function fh(e){const{dataQaType:t,dataQaData:n}=e;return{"data-qa-type":t,"data-qa-data":typeof n=="object"?JSON.stringify(n):n}}const Q1=["dataQaType","dataQaData","tagName","exitId"],q1=b.forwardRef((e,t)=>{const{dataQaType:n="uikit/portalExit",dataQaData:r,tagName:o="div",exitId:i=""}=e,l=ye(e,Q1);return b.createElement(o,V({},l,fh({dataQaType:n,dataQaData:r}),{ref:t,[iu]:i}))}),G1="_root_1azyn_1",Z1={root:G1},Y1=["dataQaType","dataQaData","tagName","exitId","exitRef","exitProps","children","className"],K1=b.forwardRef((e,t)=>{const{dataQaType:n="uikit/portalWrapper",dataQaData:r,tagName:o="div",exitId:i="",exitRef:l,exitProps:s,children:a,className:u}=e,c=ye(e,Y1);return b.createElement(o,V({},c,fh({dataQaType:n,dataQaData:r}),{ref:t,className:[u,Z1.root].filter(Boolean).join(" "),[dh]:i}),b.createElement(q1,Object.assign({dataQaType:`${n}.exit`,exitId:i,ref:l},s)),a)});function Gs(e){const{dataQaType:t,dataQaData:n}=e;return{"data-qa-type":t,"data-qa-data":typeof n=="object"?JSON.stringify(n):n}}var X1={"border-default-s":"1px solid #B3B3B3","border-default-l":"2px solid #B3B3B3","border-radius-s":"4px","border-radius-l":"8px"},J1={D_12:12,D_18:18,D_24:24,D_30:30,D_36:36,D_42:42,D_48:48,D_60:60,D_66:66,D_78:78,D_84:84,D_90:90,D_102:102,D_108:108,D_120:120,D_138:138,D_174:174,D_198:198},em={M_30:30,M_36:36,M_42:42,M_60:60,M_66:66,M_78:78,M_84:84,M_120:120,M_138:138},tm={"layer-hidden":-1,"layer-zero":0,"layer-normal":1,"layer-popover":100,"layer-navigation":200,"layer-overlay":300,"layer-alerts":400},nm={PHONE_SMALL:370,PHONE_GIANT:541,PHONE:599,MEDIUM_TABLETS:600,TABLETS:600,MOBILE:1023,DESKTOP:1024,DESKTOP_SMALL:1024,DESKTOP_MEDIUM:1360,DESKTOP_LARGE_BOARD:1600,DESKTOP_LARGE:1600,DESKTOP_EXTRA_LARGE:1716,TABLET_S:600,TABLET_L:768,DESKTOP_S:1024,DESKTOP_MD:1280,DESKTOP_M:1360,DESKTOP_L:1600},rm={"shadow-default":"0px 4px 24px rgba(0, 0, 0, .12)","shadow-default-hover":"0px 12px 36px rgba(0, 0, 0, .2)","shadow-sidebar":"4px 0px 24px rgba(0, 0, 0, .12)","shadow-modal":"0px 18px 30px rgba(51, 51, 51, .52)","shadow-modal-mobile":"0px -16px 28px rgba(51, 51, 51, .24)","shadow-popover":"0px 25px 15px rgba(0, 0, 0, 0.03), 0px 11px 11px rgba(0, 0, 0, 0.04), 0px 3px 6px rgba(0, 0, 0, 0.05)","shadow-dropdown":"0px 25px 15px rgba(0, 0, 0, 0.03), 0px 11px 11px rgba(0, 0, 0, 0.04), 0px 3px 6px rgba(0, 0, 0, 0.05)","shadow-tooltip":"0px 6px 15px rgba(0,0,0,.2)"},om={"spacing-tiny":"2px","spacing-xxxs":"4px","spacing-xxs":"8px","spacing-xs":"12px","spacing-s":"16px","spacing-m":"20px","spacing-l":"24px","spacing-xl":"32px","spacing-xxl":"48px","spacing-xxxl":"64px","spacing-huge":"128px"},im={tiny:"spacing-tiny",xxxs:"spacing-xxxs",xxs:"spacing-xxs",xs:"spacing-xs",s:"spacing-s",m:"spacing-m",l:"spacing-l",xl:"spacing-xl",xxl:"spacing-xxl",xxxl:"spacing-xxxl",huge:"spacing-huge"},lm={default:"shadow-default",sidebar:"shadow-sidebar",modal:"shadow-modal",popover:"shadow-popover",dropdown:"shadow-dropdown",defaultHover:"shadow-default-hover",modalMobile:"shadow-modal-mobile",tooltip:"shadow-tooltip"},sm={phoneSmall:"PHONE_SMALL",phoneGiant:"PHONE_GIANT",phone:"PHONE",mediumTablets:"MEDIUM_TABLETS",tablets:"TABLETS",mobile:"MOBILE",desktop:"DESKTOP",desktopSmall:"DESKTOP_SMALL",desktopMedium:"DESKTOP_MEDIUM",desktopLargeBoard:"DESKTOP_LARGE_BOARD",desktopLarge:"DESKTOP_LARGE",desktopExtraLarge:"DESKTOP_EXTRA_LARGE",tabletS:"TABLET_S",tabletL:"TABLET_L",desktopS:"DESKTOP_S",desktopMd:"DESKTOP_MD",desktopM:"DESKTOP_M",desktopL:"DESKTOP_L"},am={hidden:"layer-hidden",zero:"layer-zero",normal:"layer-normal",popover:"layer-popover",navigation:"layer-navigation",overlay:"layer-overlay",alert:"layer-alerts"},um={defaultS:"border-default-s",defaultL:"border-default-l",radiusS:"border-radius-s",radiusL:"border-radius-l"},cm={SPACING_ALIAS:im,SHADOW_ALIAS:lm,MEDIA_ALIAS:sm,LAYERS_ALIAS:am,BORDER_ALIAS:um},dm=ru.default,fm=dm(Xi),pm=X1,hm=J1,_m=em,gm=tm,mm=nm,vm=rm,ym=om,xm=cm,$r=(0,fm.default)({border:pm,iconDesktopSizes:hm,iconMobileSizes:_m,layers:gm,media:mm,shadow:vm,spacing:ym},xm);let Wl;function wm(){if(typeof window<"u"&&typeof navigator<"u"){const t=/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/,n=/(mobi|ipod|phone|blackberry|opera mini|fennec|minimo|symbian|psp|nintendo ds|archos|skyfire|puffin|blazer|bolt|gobrowser|iris|maemo|semc|teashark|uzard)/,r=navigator.userAgent.toLowerCase();return r.match(t)?"tablet":r.match(n)&&"mobile"||"desktop"}}function Sm(){return Wl||(Wl=wm()),Wl}function km(){return!!(typeof window<"u"&&("ontouchstart"in window||window.DocumentTouch&&typeof document<"u"&&document instanceof window.DocumentTouch))}const ph=typeof window<"u"?D.useLayoutEffect:D.useEffect;var hn=[],Em=function(){return hn.some(function(e){return e.activeTargets.length>0})},Tm=function(){return hn.some(function(e){return e.skippedTargets.length>0})},Vc="ResizeObserver loop completed with undelivered notifications.",Cm=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Vc}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Vc),window.dispatchEvent(e)},uo;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(uo||(uo={}));var _n=function(e){return Object.freeze(e)},bm=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,_n(this)}return e}(),hh=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,_n(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,l=t.bottom,s=t.left,a=t.width,u=t.height;return{x:n,y:r,top:o,right:i,bottom:l,left:s,width:a,height:u}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),lu=function(e){return e instanceof SVGElement&&"getBBox"in e},_h=function(e){if(lu(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,l=o.offsetHeight;return!(i||l||e.getClientRects().length)},Qc=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},zm=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Fr=typeof window<"u"?window:{},Ao=new WeakMap,qc=/auto|scroll/,Dm=/^tb|vertical/,Mm=/msie|trident/i.test(Fr.navigator&&Fr.navigator.userAgent),ft=function(e){return parseFloat(e||"0")},qn=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new bm((n?t:e)||0,(n?e:t)||0)},Gc=_n({devicePixelContentBoxSize:qn(),borderBoxSize:qn(),contentBoxSize:qn(),contentRect:new hh(0,0,0,0)}),gh=function(e,t){if(t===void 0&&(t=!1),Ao.has(e)&&!t)return Ao.get(e);if(_h(e))return Ao.set(e,Gc),Gc;var n=getComputedStyle(e),r=lu(e)&&e.ownerSVGElement&&e.getBBox(),o=!Mm&&n.boxSizing==="border-box",i=Dm.test(n.writingMode||""),l=!r&&qc.test(n.overflowY||""),s=!r&&qc.test(n.overflowX||""),a=r?0:ft(n.paddingTop),u=r?0:ft(n.paddingRight),c=r?0:ft(n.paddingBottom),f=r?0:ft(n.paddingLeft),p=r?0:ft(n.borderTopWidth),m=r?0:ft(n.borderRightWidth),g=r?0:ft(n.borderBottomWidth),y=r?0:ft(n.borderLeftWidth),T=f+u,h=a+c,d=y+m,_=p+g,x=s?e.offsetHeight-_-e.clientHeight:0,E=l?e.offsetWidth-d-e.clientWidth:0,w=o?T+d:0,C=o?h+_:0,k=r?r.width:ft(n.width)-w-E,O=r?r.height:ft(n.height)-C-x,N=k+T+E+d,H=O+h+x+_,te=_n({devicePixelContentBoxSize:qn(Math.round(k*devicePixelRatio),Math.round(O*devicePixelRatio),i),borderBoxSize:qn(N,H,i),contentBoxSize:qn(k,O,i),contentRect:new hh(f,a,k,O)});return Ao.set(e,te),te},mh=function(e,t,n){var r=gh(e,n),o=r.borderBoxSize,i=r.contentBoxSize,l=r.devicePixelContentBoxSize;switch(t){case uo.DEVICE_PIXEL_CONTENT_BOX:return l;case uo.BORDER_BOX:return o;default:return i}},Lm=function(){function e(t){var n=gh(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=_n([n.borderBoxSize]),this.contentBoxSize=_n([n.contentBoxSize]),this.devicePixelContentBoxSize=_n([n.devicePixelContentBoxSize])}return e}(),vh=function(e){if(_h(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Nm=function(){var e=1/0,t=[];hn.forEach(function(l){if(l.activeTargets.length!==0){var s=[];l.activeTargets.forEach(function(u){var c=new Lm(u.target),f=vh(u.target);s.push(c),u.lastReportedSize=mh(u.target,u.observedBox),fe?n.activeTargets.push(o):n.skippedTargets.push(o))})})},Pm=function(){var e=0;for(Zc(e);Em();)e=Nm(),Zc(e);return Tm()&&Cm(),e>0},Hl,yh=[],Om=function(){return yh.splice(0).forEach(function(e){return e()})},Im=function(e){if(!Hl){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return Om()}).observe(n,r),Hl=function(){n.textContent="".concat(t?t--:t++)}}yh.push(e),Hl()},jm=function(e){Im(function(){requestAnimationFrame(e)})},ei=0,Am=function(){return!!ei},Rm=250,Bm={attributes:!0,characterData:!0,childList:!0,subtree:!0},Yc=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Kc=function(e){return e===void 0&&(e=0),Date.now()+e},Ul=!1,$m=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=Rm),!Ul){Ul=!0;var r=Kc(t);jm(function(){var o=!1;try{o=Pm()}finally{if(Ul=!1,t=r-Kc(),!Am())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,Bm)};document.body?n():Fr.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Yc.forEach(function(n){return Fr.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Yc.forEach(function(n){return Fr.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Zs=new $m,Xc=function(e){!ei&&e>0&&Zs.start(),ei+=e,!ei&&Zs.stop()},Fm=function(e){return!lu(e)&&!zm(e)&&getComputedStyle(e).display==="inline"},Wm=function(){function e(t,n){this.target=t,this.observedBox=n||uo.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=mh(this.target,this.observedBox,!0);return Fm(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Hm=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Ro=new WeakMap,Jc=function(e,t){for(var n=0;n=0&&(i&&hn.splice(hn.indexOf(r),1),r.observationTargets.splice(o,1),Xc(-1))},e.disconnect=function(t){var n=this,r=Ro.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),Um=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Bo.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Qc(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Bo.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Qc(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Bo.unobserve(this,t)},e.prototype.disconnect=function(){Bo.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const Vm=b[typeof document<"u"&&document.createElement!==void 0?"useLayoutEffect":"useEffect"],Qm=Vm,qm=e=>{const t=D.useRef(e);return D.useEffect(()=>{t.current=e}),t},Gm=qm,Zm=typeof window<"u"&&"ResizeObserver"in window?window.ResizeObserver:Um;function Ym(){}function xh(e,t){const n=Xm(),r=Gm(t);return Qm(()=>{let o=!1;const i=e&&"current"in e?e.current:e;if(!i)return Ym;function l(s,a){o||r.current(s,a)}return n.subscribe(i,l),()=>{o=!0,n.unsubscribe(i,l)}},[e,n,r]),n.observer}function Km(){let e=!1,t=[];const n=new Map,r=new Zm((o,i)=>{t=t.concat(o);function l(){const s=new Set;for(let a=0;ac(t[a],i))}t=[],e=!1}e||window.requestAnimationFrame(l),e=!0});return{observer:r,subscribe(o,i){var l;r.observe(o);const s=(l=n.get(o))!==null&&l!==void 0?l:[];s.push(i),n.set(o,s)},unsubscribe(o,i){var l;const s=(l=n.get(o))!==null&&l!==void 0?l:[];if(s.length===1){r.unobserve(o),n.delete(o);return}const a=s.indexOf(i);a!==-1&&s.splice(a,1),n.set(o,s)}}}let Vl;const Xm=()=>Vl||(Vl=Km());var $n=function(e){if(typeof document>"u")return 0;if(document.body&&(!document.readyState||document.readyState!=="loading")){if(e!==!0&&typeof $n.__cache=="number")return $n.__cache;var t=document.createElement("div"),n=t.style;n.display="block",n.position="absolute",n.width="100px",n.height="100px",n.left="-999px",n.top="-999px",n.overflow="scroll",document.body.insertBefore(t,null);var r=t.clientWidth;if(r!==0)return $n.__cache=100-r,document.body.removeChild(t),$n.__cache;document.body.removeChild(t)}};function Jm(){const[e,t]=D.useState($n());return D.useEffect(()=>{if(typeof e<"u")return;let n=null;const r=()=>{n=requestAnimationFrame(()=>{t($n())})};return document.readyState==="loading"?document.addEventListener("DOMContentLoaded",r):r(),()=>{document.removeEventListener("DOMContentLoaded",r),n&&cancelAnimationFrame(n)}},[]),e}const ev=typeof window<"u",wh=e=>(e==null?void 0:e.tagName)==="BODY"||(e==null?void 0:e.tagName)==="HTML",Di=e=>{if(!e||!ev)return 1;const t=Number(window.getComputedStyle(e).getPropertyValue("zoom"));return!Number.isNaN(t)&&t?t:1},Ys=e=>{let t=e.parentElement,n=1;for(;t&&!wh(t);)n*=Di(t),t=t.parentElement;return n},ed=(e,t)=>{let n=1;return typeof e=="object"&&e.current?e.current.forEach(r=>{r.contains(t)&&(n*=Di(r))}):n=Ys(t),n},tv=(e,t)=>{const{targetElement:n,destElement:r}=t;let o=1;if(!n)return{zoomValue:o};if(typeof e=="object"){const i=ed(e,n),l=r?ed(e,r):1;o=i/l}else e&&typeof e=="boolean"&&(o=Ys(n)/(r?Ys(r):1));return{zoomValue:Number(o.toFixed(3)),applyZoomToContainer:r?!wh(r):!1}},nv=D.createContext({zoom:!1}),rv=()=>D.useContext(nv),ov="_popover_29akx_97",iv="_popover_disabled_29akx_116",lv="_popover_wide_29akx_121",sv="_container_29akx_127",av="_container_animated_29akx_134",uv="_container_open_29akx_134",cv="_container_direction_top_29akx_134",dv="_slideTopOpen_29akx_1",fv="_container_direction_right_29akx_138",pv="_slideRightOpen_29akx_1",hv="_container_direction_bottom_29akx_142",_v="_slideBottomOpen_29akx_1",gv="_container_direction_left_29akx_146",mv="_slideLeftOpen_29akx_1",vv="_container_close_29akx_150",yv="_slideTopClose_29akx_1",xv="_slideRightClose_29akx_1",wv="_slideBottomClose_29akx_1",Sv="_slideLeftClose_29akx_1",kv="_touchzone_29akx_166",Ev="_childrenBlock_29akx_171",Tv="_correctionBlockWrapper_29akx_176",Cv="_correctionBlock_29akx_176",Ye={popover:ov,popover_disabled:iv,popover_wide:lv,container:sv,container_animated:av,container_open:uv,container_direction_top:cv,slideTopOpen:dv,container_direction_right:fv,slideRightOpen:pv,container_direction_bottom:hv,slideBottomOpen:_v,container_direction_left:gv,slideLeftOpen:mv,container_close:vv,slideTopClose:yv,slideRightClose:xv,slideBottomClose:wv,slideLeftClose:Sv,touchzone:kv,childrenBlock:Ev,correctionBlockWrapper:Tv,correctionBlock:Cv},bv=["animated","popoverBlock","direction","increasedTouchZone","refCallback","opened","animationDisabled","dataQaType","className","onClick"],zv=e=>{const{animated:t,popoverBlock:n,direction:r,increasedTouchZone:o,refCallback:i,opened:l,animationDisabled:s,dataQaType:a,className:u}=e,c=ye(e,bv),[f,p]=D.useState(!1),m=()=>p(!1);return D.useEffect(()=>{const g=s||!t;l&&p(!0),!l&&g&&p(!1)},[l,t,s]),f?b.createElement("div",Object.assign({},c,Gs({dataQaType:a}),{ref:i,className:Ce({[Ye.container]:!0,[Ye.container_animated]:t,[Ye[`container_direction_${r}`]]:r,[Ye.container_open]:l&&r,[Ye.container_close]:!l&&r},u),onAnimationEnd:l?void 0:m}),o&&b.createElement("div",Object.assign({className:Ye.touchzone,style:V({},o)},Gs({dataQaType:`${a}.touchzone`}))),n):null},Dv=zv,Mv=({containerRect:e,popoverRect:t,direction:n})=>{const{width:r,height:o}=e,{width:i,height:l,left:s,top:a}=t;let u=0;return n==="right"&&(u=r-s-i),n==="bottom"&&(u=o-a-l),n==="top"&&(u=a),n==="left"&&(u=s),u=u<0?0:u,u=u>24?24:u,u=u===0?u:-Math.floor(u),u},Lv={top:"bottom",bottom:"top",left:"right",right:"left"},Nv=e=>Lv[e],Pv=({containerRect:e,popoverRect:t,direction:n})=>{const r={top:0,left:0,right:0,bottom:0},o=Nv(n);return Object.keys(r).forEach(l=>{r[l]=l===o?0:Mv({containerRect:e,popoverRect:t,direction:l})}),r},Ji=(e,t,n,r,o,i)=>{var l,s;let a=0;i&&(a+=i.height/2);const u=V({},t),c=V({},e),f=((l=e==null?void 0:e.top)!=null?l:r.height/2)+((s=e==null?void 0:e.marginTop)!=null?s:0);return fr.height-o&&(n==="left"?u.borderBottomRightRadius=0:u.borderBottomLeftRadius=0),fr.height-a&&(c.marginTop=0,c.top=r.height-a),{tooltipStyle:u,cornerStyle:c}},el=(e,t,n,r,o,i)=>{var l,s;let a=0;i&&(a+=i.width/2);const u=V({},t),c=V({},e),f=((l=e==null?void 0:e.left)!=null?l:r.width/2)+((s=e==null?void 0:e.marginLeft)!=null?s:0);return fr.width-o&&(n==="top"?u.borderBottomRightRadius=0:u.borderTopRightRadius=0),fr.width-a&&(c.marginLeft=0,c.left=r.width-a),{tooltipStyle:u,cornerStyle:c}},Ks=(e,t,n,r=0)=>{const o=e>=0?1:-1,i=o*(r-t),l=o*(n-t);return e>=0?Math.min(i,e):Math.max(l,e)},Sh=(e,t,n,r=0)=>{const o=e>=0?1:-1,i=o*(r/2-t),l=o*(n-r/2-t);return e>=0?Math.min(i,e):Math.max(l,e)},Ov=({childrenRect:e,popoverRect:t,direction:n,additionalShift:r,customPadding:o,minArrowOffset:i,containerOffsets:l,arrowRect:s,arrowAdaptiveBorderRadiusValue:a})=>{const u={tooltipStyle:{top:e.top+Ks(r,i,t.height,e.height)+l.top,left:n==="right"?e.right+o+l.left:e.left-t.width-o+l.left},cornerStyle:{top:e.height/2-Sh(r,i,t.height,e.height)}},{cornerStyle:c,tooltipStyle:f}=u;return Ji(c,f,n,t,a,s)},Iv=({childrenRect:e,containerRect:t,popoverRect:n,direction:r,additionalShift:o,customPadding:i,windowMargin:l,minArrowOffset:s,containerOffsets:a,arrowRect:u,arrowAdaptiveBorderRadiusValue:c})=>{const f={top:r==="bottom"?e.bottom+i+a.top:e.top-n.height-i+a.top,left:e.left+Ks(o,s,n.width,e.width)+a.left},m={left:e.width/2-Sh(o,s,n.width,e.width)},g=t.width-(e.left+n.width+Ks(o,s,n.width,e.width)),y=Math.min(l,t.width-e.right);return g{const i=(e>=0?1:-1)*((n+r)/2-t);return e>=0?Math.min(i,e):Math.max(i,e)},Av=({direction:e,childrenRect:t,popoverRect:n,windowMargin:r,containerScroll:o,additionalShift:i,customPadding:l,minArrowOffset:s,align:a,containerOffsets:u,arrowRect:c,arrowAdaptiveBorderRadiusValue:f})=>{const p={left:e==="right"?t.right+l+u.left:t.left-n.width-l+u.left,top:t.top+(t.height-n.height)/2+o+Wr(i,s,n.height,t.height)+u.top},m={marginTop:-Wr(i,s,n.height)},g=Math.min(r,t.top);return p.top{const p={top:e==="top"?t.top-n.height-l+u.top:t.bottom+l+u.top,left:0},m={},g=t.left+(t.width-n.width)/2+Wr(i,s,n.width,t.width);let y=Math.min(r,t.left);if(g{const o=e>=0?1:-1,i=o*(n-t),l=o*(r-t);return e>=0?Math.min(i,e):Math.max(l,e)},kh=(e,t,n,r=0)=>{const o=e>=0?1:-1,i=o*(n-r/2-t),l=o*(r/2-t);return e>=0?Math.min(i,e):Math.max(l,e)},Bv=({childrenRect:e,popoverRect:t,direction:n,additionalShift:r,customPadding:o,minArrowOffset:i,containerOffsets:l,arrowRect:s,arrowAdaptiveBorderRadiusValue:a})=>{const u={tooltipStyle:{top:e.bottom-t.height+Xs(r,i,t.height,e.height)+l.top,left:n==="right"?e.right+o+l.left:e.left-t.width-o+l.left},cornerStyle:{top:t.height-e.height/2-kh(r,i,t.height,e.height)}},{cornerStyle:c,tooltipStyle:f}=u;return Ji(c,f,n,t,a,s)},$v=({childrenRect:e,popoverRect:t,direction:n,additionalShift:r,customPadding:o,windowMargin:i,minArrowOffset:l,containerOffsets:s,arrowRect:a,arrowAdaptiveBorderRadiusValue:u})=>{const c={top:n==="bottom"?e.bottom+o+s.top:e.top-t.height-o+s.top,left:e.right-t.width+Xs(r,l,t.width,e.width)+s.left},p={left:t.width-e.width/2-kh(r,l,t.width,e.width)},m=e.right-t.width+Xs(r,l,t.width,e.width),g=Math.min(i,e.left);return mn.left+r.right+i+o.width;case"left":return e.leftn.top+r.bottom+i+o.height}}const Hv={top:["top","bottom","right","left"],left:["left","right","top","bottom"],right:["right","left","top","bottom"],bottom:["bottom","top","right","left"]};function Uv(e){return Array.isArray(e)?e:Hv[e]}const Vv={start:["start","end","center"],end:["end","center","start"],center:["center","start","end"],stretch:["stretch"],auto:["auto"]},Qv={top:["end","center","start"],bottom:["start","center","end"],left:["start","center","end"],right:["end","center","start"]},qv={top:"bottom",left:"right",right:"left",bottom:"top"};function Gv(e,t,n){return n===e||n===qv[e]?Vv[t]:Qv[e]}const Zv=["direction","childrenRect","popoverRect","windowMargin","containerScroll","additionalShift","customPadding","minArrowOffset","align","containerOffsets","arrowRect","arrowAdaptiveBorderRadiusValue"],Hr=(e,t,n,r=0)=>{const i=(e>=0?1:-1)*((n+r)/2-t);return e>=0?Math.min(i,e):Math.max(i,e)},Yv=e=>{let{direction:t,childrenRect:n,popoverRect:r,windowMargin:o,containerScroll:i,additionalShift:l,customPadding:s,minArrowOffset:a,align:u,containerOffsets:c,arrowRect:f,arrowAdaptiveBorderRadiusValue:p}=e,m=ye(e,Zv);const g={left:t==="right"?n.right+s+c.left:n.left-r.width-s+c.left,top:n.top+(n.height-r.height)/2+i+Hr(l,a,r.height,n.height)+c.top},y={marginTop:-Hr(l,a,r.height)},T=Math.min(o,n.top);return g.top0&&(g.top-=g.top+r.height-m.viewportRect.bottom),Ji(y,g,t,r,p,f)},Kv=({direction:e,childrenRect:t,popoverRect:n,windowMargin:r,containerRect:o,additionalShift:i,customPadding:l,minArrowOffset:s,align:a,containerOffsets:u,arrowRect:c,arrowAdaptiveBorderRadiusValue:f})=>{const p={top:e==="top"?t.top-n.height-l+u.top:t.bottom+l+u.top,left:0},m={},g=t.left+(t.width-n.width)/2+Hr(i,s,n.width,t.width);let y=Math.min(r,t.left);if(g{let{smartDirection:t}=e,n=ye(e,Jv);if(!(t&&!Wv(n)))return ey[n.align](n)};function ty(e){const t=Uv(e.direction),n=t.length,r=t[0],o=e.align;let i,l,s,a,u,c;for(u=0;!i&&u{o=rd(o,i.getBoundingClientRect())}),o}const Ur=(e,t)=>t&&t.contains(e);function iy(e,t){return e?t?Object.keys(e).some(n=>t[n]!==e[n]):!0:!!t}function ly(e,t){let n=e();const r=()=>{const i=e();iy(n,i)&&(n=i,t(i))},o=new MutationObserver(r);return o.observe(document.body,{subtree:!0,childList:!0,attributes:!0,characterData:!0}),document.body.addEventListener("transitionend",r),document.body.addEventListener("animationend",r),window.addEventListener("resize",r),t(n),()=>{o.disconnect(),document.body.removeEventListener("transitionend",r),document.body.removeEventListener("animationend",r),window.removeEventListener("resize",r)}}const mr=e=>{const{top:t,right:n,bottom:r,left:o,width:i,height:l,x:s,y:a}=e.getBoundingClientRect();return{top:t,right:n,bottom:r,left:o,width:i,height:l,x:s,y:a}},su=D.createContext({}),kt=()=>{},od="data-tui-html-zoom";class au extends D.PureComponent{constructor(...t){super(...t),this.setCorrectionBlock=n=>{this.correctionBlock=n},this.setPopover=n=>{this.popover=n;let r=n==null?void 0:n.offsetWidth,o=n==null?void 0:n.offsetHeight;if(n)this.animationDisabled=parseFloat(window.getComputedStyle(n).getPropertyValue("animation-duration"))===0,this.observer=new MutationObserver(()=>{(n.offsetWidth!==r||n.offsetHeight!==o)&&(r=n.offsetWidth,o=n.offsetHeight,this.setTooltipPosition())}),this.observer.observe(n,{attributes:!0,childList:!0,subtree:!0});else{var i;(i=this.observer)==null||i.disconnect()}},this.setPopoverContainer=n=>{this.popoverContainer=n},this.setTooltipPosition=()=>{const n=this.getTargetElement();if(!this.getIsActive()||!this.popover||!n)return;const{direction:r,align:o,additionalShift:i,onActiveToggle:l,windowMargin:s,customPadding:a,smartDirection:u,minArrowOffset:c,arrowRect:f,arrowAdaptiveBorderRadiusValue:p,zoomParams:m}=this.props,{intersectElems:g,zoom:y}=this.context,T=m||y,h=document.querySelector(`[${od}]`);if(document.head&&!h){const Ve=document.createElement("style");Ve.setAttribute(od,!0),Ve.appendChild(document.createTextNode("html { zoom: 1 }")),document.head.prepend(Ve)}const d=Di(document.documentElement),_=Di(document.body),{zoomValue:x,applyZoomToContainer:E}=tv(T,{targetElement:n,destElement:this.popoverContainer});x!==1&&(E?this.popoverContainer.style.zoom=x:this.popover.style.zoom=x);const w=mr(n),C=oy(this.popoverContainer.parentNode,g),k=mr(this.popoverContainer),O={top:0,left:0};if(window&&this.popoverContainer===document.body){const Ve=this.correctionBlock.getBoundingClientRect(),z=Math.round(Ve.left)===100&&Math.round(Ve.top)===100;let L=1,P=z?_*d:1;!E&&x!==1&&(k.width/=x,k.height/=x,P=z?_*d*x:P,L=z?x:L),k.top/=L,k.left/=L,k.right/=L,k.bottom/=L,O.left=k.left+window.scrollX/P,O.top=k.top+window.scrollY/P}w.top-=k.top,w.left-=k.left,w.right-=k.left,w.bottom-=k.top;const{scrollTop:N}=this.popoverContainer,H=mr(this.popover),te={viewportRect:C,popoverRect:H,childrenRect:w,containerRect:k,containerOffsets:O,containerScroll:N>=0?N:document.documentElement.scrollTop,smartDirection:u,align:o,windowMargin:s,additionalShift:i,customPadding:a,minArrowOffset:c,direction:r,arrowRect:f,arrowAdaptiveBorderRadiusValue:p},[De,{tooltipStyle:Ie={},cornerStyle:Nt={}}]=ty(te),rn=Pv({popoverRect:V({},H,Ie),containerRect:k,direction:r});this.setState({left:Ie.left,top:Ie.top,width:Ie.width,height:Ie.height,direction:De,touchzone:rn}),l(De,Nt,{tooltipStyle:Ie,popoverRect:H,zoom:{popover:x,body:_,html:d}})},this.offChildrenBlockRectChange=kt,this.handleClickOutside=n=>{let r;if(n.composedPath){const l=n.composedPath();r=l.indexOf(this.getTargetElement())===-1&&l.indexOf(this.popover)===-1}else r=!Ur(n.target,this.getTargetElement())&&!Ur(n.target,this.popover);if(this.props.hideOnClickOutside&&this.getIsActive()&&r){var o,i;this.close(),(o=(i=this.props).onClickOutside)==null||o.call(i,n)}},this.handleWindowResize=()=>{this.props.hideOnResize&&this.close()},this.handleWindowTouchMove=()=>{this.props.hideOnTouchMove&&this.close()}}componentDidMount(){this.getIsActive()&&this.addListeners()}componentDidUpdate(t,n){this.getActiveChanged(t,n)&&(this.getIsActive()?this.addListeners():this.removeListeners())}componentWillUnmount(){this.removeListeners()}addListeners(){window.addEventListener("resize",this.handleWindowResize),window.addEventListener("touchmove",this.handleWindowTouchMove),window.addEventListener("click",this.handleClickOutside),this.offChildrenBlockRectChange(),this.offChildrenBlockRectChange=ly(()=>{if(!this.getTargetElement()||!this.popoverContainer||!this.popover)return null;const t=mr(this.getTargetElement()),n=mr(this.popoverContainer);return{top:t.top-n.top,left:t.left-n.left,width:t.width,height:t.height}},()=>{this.setTooltipPosition()})}removeListeners(){window.removeEventListener("resize",this.handleWindowResize),window.removeEventListener("touchmove",this.handleWindowTouchMove),window.removeEventListener("click",this.handleClickOutside),this.offChildrenBlockRectChange(),this.offChildrenBlockRectChange=kt}renderCorrectionBlock(){return b.createElement("div",{className:Ye.correctionBlockWrapper},b.createElement("div",{className:Ye.correctionBlock,ref:this.setCorrectionBlock}))}}au.contextType=su;au.defaultProps={dataQaType:"uikit/popover",animated:!0,onActiveToggle:kt,direction:"bottom",smartDirection:!0,hideOnResize:!1,renderPopoverBlock:kt,windowMargin:18,increasedTouchZone:!0,additionalShift:0,customPadding:0,zIndex:$r.layers["layer-popover"],closeOnPopoverClick:!0,getSetPositionFunc:kt,align:"center",minArrowOffset:0,hideOnTouchMove:!1,hideOnClickOutside:!0,arrowRect:null,arrowAdaptiveBorderRadiusValue:0};const uu=au;J.oneOfType([J.oneOf(["left","top","right","bottom"]),J.array]),J.oneOf(["start","center","end","stretch"]);const id=({active:e,isInactive:t})=>!!(!t&&e);class cu extends uu{constructor(t){super(t),this.getTargetElement=()=>this.childrenBlock,this.getIsActive=()=>this.state.active,this.getActiveChanged=(n,r)=>r.active!==this.getIsActive(),this.open=()=>{this.state.active||(this.setState({active:!0}),this.props.onShow(V({},this.state,{active:!0})))},this.close=({isActive:n}=this.props)=>{n||this.setState({active:!1}),this.props.onClose(V({},this.state,{active:!1}))},this.toggle=({active:n}=this.state)=>(n?this.close:this.open)(),this.setChildrenBlock=n=>{this.childrenBlock=n},this.handleClick=n=>{const{preventDefaultClick:r,stopPropagationClick:o,closeOnPopoverClick:i,onClick:l}=this.props;r&&n.preventDefault(),o&&n.stopPropagation(),this.getToggleOnClick()&&Ur(n.target,this.childrenBlock)?this.toggle():i&&Ur(n.target,this.popover)&&this.close(),l(n)},this.handleChildrenOver=n=>{var r,o;(!this.props.noBubbleHover||Ur(n.target,this.childrenBlock))&&clearTimeout(this.closeTimeout),this.props.hoverDelay?this.openTimeout=setTimeout(this.open,this.props.hoverDelay):this.open(),(r=(o=this.props).onMouseEnter)==null||r.call(o,n)},this.handleChildrenOut=n=>{var r,o;clearTimeout(this.openTimeout),this.closeTimeout=setTimeout(this.close,this.props.fadeDelay),(r=(o=this.props).onMouseLeave)==null||r.call(o,n)},this.state={active:t.isActive||!1,toggleOnClick:this.getToggleOnClick()},this.animationDisabled=!1,t.getSetPositionFunc(this.setTooltipPosition),t.getSetTargetBlockFunc(this.setChildrenBlock)}static getDerivedStateFromProps(t,n){return n.active!==t.isActive&&t.isActive!==void 0?{active:t.isActive}:null}getToggleOnClick(){return this.props.toggleOnClick||km()}render(){const{ariaOwnsId:t,isInactive:n,children:r,dataQaType:o,popoverBlock:i,renderPopoverBlock:l,increasedTouchZone:s,zIndex:a,wide:u,role:c,ariaDescribedBy:f,animated:p,disableToggleOnInsideEvents:m,to:g,disabled:y,toBody:T,blockStyles:h={},portalTagName:d,UNSAFE_className:_}=this.props,{direction:x,left:E,top:w,active:C,width:k="max-content",height:O,touchzone:N}=this.state,H=w!==void 0&&E!==void 0?"visible":"hidden",te=this.getToggleOnClick(),De=typeof s=="boolean"?s:!te;return b.createElement("span",Object.assign({},Gs({dataQaType:o}),{className:Ce({[Ye.popover]:!0,[Ye.popover_wide]:u,[Ye.popover_disabled]:y}),role:c,"aria-describedby":f,"aria-owns":t},m?{}:{onClick:this.handleClick,onMouseEnter:te?void 0:this.handleChildrenOver,onMouseLeave:te?void 0:this.handleChildrenOut},{onMouseMove:this.props.onMouseMove}),b.createElement("span",{ref:this.setChildrenBlock,className:Ye.childrenBlock,"data-qa-type":`${o}.children`},r),b.createElement(Uc,{to:"body"},id({active:C,isInactive:n})&&this.renderCorrectionBlock()),b.createElement(Uc,{to:g,toBody:T,exitRef:this.setPopoverContainer,tagName:d},b.createElement(Dv,{popoverBlock:i||l(this.close,{direction:x}),increasedTouchZone:De&&N,refCallback:this.setPopover,direction:x,animated:p,animationDisabled:this.animationDisabled,dataQaType:`${o}.popoverBlock`,style:V({top:w,left:E,zIndex:typeof a=="number"||typeof a>"u"?a:$r.layers[a],width:k,height:O,visibility:H},h),className:_,opened:id({active:C,isInactive:n})})))}}cu.propTypes=V({},uu.propTypes,{children:J.node,ariaOwnsId:J.string,isInactive:J.bool,wide:J.bool,role:J.string,ariaDescribedBy:J.string,disableToggleOnInsideEvents:J.bool,disabled:J.bool,noBubbleHover:J.bool,hoverDelay:J.number,toggleOnClick:J.bool,preventDefaultClick:J.bool,stopPropagationClick:J.bool,getSetTargetBlockFunc:J.func,onClick:J.func,onClose:J.func,onShow:J.func,fadeDelay:J.number});cu.defaultProps=V({},uu.defaultProps,{ariaOwnsId:null,isInactive:!1,wide:!1,role:null,ariaDescribedBy:null,disableToggleOnInsideEvents:!1,disabled:!1,noBubbleHover:!1,hoverDelay:0,toggleOnClick:!1,preventDefaultClick:!1,stopPropagationClick:!1,getSetTargetBlockFunc:kt,onClick:kt,onClose:kt,onShow:kt,fadeDelay:100});const Eh=e=>{const t=rv();return b.createElement(cu,Object.assign({},e,{zoomParams:t.zoom}))};function sy(e){const{dataQaType:t,dataQaData:n}=e;return{"data-qa-type":t,"data-qa-data":typeof n=="object"?JSON.stringify(n):n}}const ay="_bubble_17yoe_1",uy="_bubbleContent_17yoe_2",cy="_bubbleWrapper_17yoe_6",dy="_corner_17yoe_27",fy="_bubble_theme_light_17yoe_45",py="_bubble_theme_dark_17yoe_62",hy="_bubble_direction_left_17yoe_76",_y="_bubble_direction_right_17yoe_83",gy="_bubble_direction_top_17yoe_90",my="_bubble_direction_bottom_17yoe_97",vy="_bubble_inline_17yoe_104",ln={bubble:ay,bubbleContent:uy,bubbleWrapper:cy,corner:dy,bubble_theme_light:fy,bubble_theme_dark:py,bubble_direction_left:hy,bubble_direction_right:_y,bubble_direction_top:gy,bubble_direction_bottom:my,bubble_inline:vy},yy=({alignText:e,children:t,cornerStyle:n,direction:r,inline:o=!1,withCorner:i=!0,theme:l="light",id:s,overflow:a="hidden",dataQaType:u,dataQaData:c,setCornerRect:f,setBorderRadius:p,borderRadiusStyle:m})=>{const g=D.useCallback(T=>{T!==null&&f&&f(T.getBoundingClientRect())},[f]),y=D.useCallback(T=>{if(T!==null){var h;p&&p(parseFloat((h=getComputedStyle(T))==null?void 0:h.getPropertyValue("border-radius"))||12)}},[p]);return b.createElement("div",Object.assign({},sy({dataQaData:c,dataQaType:`${u}.wrapper`}),{className:ln.bubbleWrapper,id:s}),b.createElement("div",{className:Ce(ln.bubble,{[ln.bubble_inline]:o,[ln[`bubble_direction_${r}`]]:r,[ln[`bubble_theme_${l}`]]:l}),ref:y,style:V({overflow:a},m),"data-qa-type":`${u}.inner`},i&&b.createElement("div",{ref:g,className:ln.corner,style:n,"data-qa-type":`${u}.corner`}),b.createElement("div",{"data-qa-type":`${u}.content`,className:ln.bubbleContent,style:V({textAlign:e},m)},t)))},xy=yy;function wy(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(e[o]!==t[o])return!1;return!0}const Sy=["inline","children","withCorner","theme","popoverContent","alignText","overflow","increasedTouchZone","customPadding","direction","minArrowOffset","hideOnTouchMove","dataQaType","cornerStyle","pointerEvents","portalTagName","id","onActiveToggle","UNSAFE_className"],ky=["tooltipStyle"],Ey=e=>{let{inline:t=!1,children:n,withCorner:r=!0,theme:o,popoverContent:i,alignText:l="left",overflow:s="visible",increasedTouchZone:a=!1,customPadding:u=7,direction:c="bottom",minArrowOffset:f=0,hideOnTouchMove:p=!0,dataQaType:m="uikit/tooltip",cornerStyle:g,pointerEvents:y,portalTagName:T="span",id:h,onActiveToggle:d,UNSAFE_className:_}=e,x=ye(e,Sy);const[E,w]=D.useState("bottom"),[C,k]=D.useState({}),[O,N]=D.useState(),[H,te]=D.useState(),[De,Ie]=D.useState(),Nt=O1(h),rn=(z,L,P)=>{let{tooltipStyle:G}=P,re=ye(P,ky);(E!==z||!wy(C,L))&&(w(z),k(L),Ie(()=>{const Pt={};for(const nt of["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"])G[nt]===0?Pt[nt]=0:Pt[nt]=H;return Pt})),d==null||d(z,L,V({tooltipStyle:G},re))},Ve=i&&b.createElement(xy,{dataQaType:`${m}.bubble`,inline:t,withCorner:r,direction:E,cornerStyle:g||C,theme:o,setCornerRect:N,setBorderRadius:te,borderRadiusStyle:De,alignText:l,id:Nt,overflow:s},i);return b.createElement(Eh,Object.assign({popoverBlock:Ve,onActiveToggle:rn,increasedTouchZone:a,customPadding:u,direction:c,minArrowOffset:f,hideOnTouchMove:p},x,{role:"tooltip",dataQaType:m,arrowRect:O,arrowAdaptiveBorderRadiusValue:H,ariaDescribedBy:Nt,blockStyles:{pointerEvents:y},portalTagName:T,UNSAFE_className:_}),n)},Ty=Ey;var Cy=function(e,t){return function n(){for(var r=arguments.length,o=new Array(r),i=0;i=e?t.apply(this,o):function(){for(var l=arguments.length,s=new Array(l),a=0;a{const[t,n]=D.useState(!1),r=D.useRef(),o=D.useCallback(()=>{n(!0),window.clearTimeout(r.current),r.current=window.setTimeout(()=>{n(!1)},e)},[e]);return D.useEffect(()=>()=>{window.clearTimeout(r.current)},[o]),[t,o]},Dh=e=>e.negatives,gu=e=>Dh(e).length,Mh=e=>gu(e)>0,Qy=e=>e.initialized,qy=e=>e.operator.id,Gy=e=>e.theme,mu=()=>wn(Gy),Zy={[Er.dark]:Er.light,[Er.light]:Er.dark},Yy=()=>{const e=mu();return Zy[e]};function nr(e){const t=Yy();return v.jsx(Ty,{toBody:!0,theme:t,customPadding:10,hoverDelay:o_,direction:"top",...e,children:e.children})}function Ky(e){const{dataQaType:t,dataQaData:n}=e;return{"data-qa-type":t,"data-qa-data":typeof n=="object"?JSON.stringify(n):n}}const Dr=e=>{if(e)return typeof e=="number"?`${e}px`:e.split(" ").reduce((t,n)=>{const r=n in $r.SPACING_ALIAS?$r.spacing[$r.SPACING_ALIAS[n]]:n;return`${t} ${r}`},"").trim()},Xy=["width","height","margin","padding","grow","style","tagName","dataQaType","dataQaData"],Jy=D.forwardRef((e,t)=>{const{width:n,height:r,margin:o,padding:i,grow:l,style:s,tagName:a="div",dataQaType:u,dataQaData:c}=e,f=ye(e,Xy);return b.createElement(a,Object.assign({ref:t,style:V({width:Dr(n),height:Dr(r),margin:Dr(o),padding:Dr(i),flexGrow:l},s)},Ky({dataQaType:u,dataQaData:c}),f))}),ud=Jy,ex="_inner_1la8n_1",tx="_inner_gaps_1la8n_10",vr={inner:ex,"inner_direction-row":"_inner_direction-row_1la8n_6",inner_gaps:tx,"inner_direction-col":"_inner_direction-col_1la8n_14","inner_direction-row-reverse":"_inner_direction-row-reverse_1la8n_22","inner_direction-col-reverse":"_inner_direction-col-reverse_1la8n_30","inner_alignMain-start":"_inner_alignMain-start_1la8n_38","inner_alignMain-center":"_inner_alignMain-center_1la8n_42","inner_alignMain-end":"_inner_alignMain-end_1la8n_46","inner_alignMain-between":"_inner_alignMain-between_1la8n_50","inner_alignMain-around":"_inner_alignMain-around_1la8n_54","inner_alignMain-even":"_inner_alignMain-even_1la8n_58","inner_alignCross-start":"_inner_alignCross-start_1la8n_62","inner_alignCross-center":"_inner_alignCross-center_1la8n_66","inner_alignCross-end":"_inner_alignCross-end_1la8n_70","inner_alignCross-stretch":"_inner_alignCross-stretch_1la8n_74"},nx=["tagName","gaps","direction","alignMain","alignCross","children"],rx=D.forwardRef((e,t)=>{const{tagName:n,gaps:r,direction:o,alignMain:i="start",alignCross:l="start",children:s}=e,a=ye(e,nx);return b.createElement(ud,Object.assign({ref:t,tagName:n},a),b.createElement(ud,{tagName:n,className:Ce(vr.inner,{[vr[`inner_direction-${o}`]]:o,[vr[`inner_alignMain-${i}`]]:i,[vr[`inner_alignCross-${l}`]]:l,[vr.inner_gaps]:!!r}),style:r?{"--gaps":Dr(r)}:{}},s))}),Lh=rx,ox=D.forwardRef((e,t)=>b.createElement(Lh,Object.assign({ref:t,direction:"row"},e))),Mi=ox,ix=D.forwardRef((e,t)=>b.createElement(Lh,Object.assign({ref:t,direction:"col"},e))),ge=ix;var lx=function(){};const Ql=tt(lx),sx=e=>{if(typeof WeakMap>"u")return e;const t=new WeakMap;return n=>{if(t.has(n))return t.get(n);const r=e(n);return t.set(n,r),r}},ax=sx;function ux(e){const{dataQaType:t,dataQaData:n}=e;return{"data-qa-type":t,"data-qa-data":typeof n=="object"?JSON.stringify(n):n}}const cx=["className","children","dataQaData","dataQaType","disabled","innerClassName","href","rel","style","tabIndex","tagName","target","type","onClick","cobrowsingSecure","innerDataQaType","innerRef","download","onModifierKeyClick"],dx=1,fx=ax(({onClick:e,onModifierKeyClick:t})=>n=>{if(n.button!==dx){if(n.metaKey||n.ctrlKey)return t==null?void 0:t(n);e(n)}}),Nh=D.forwardRef((e,t)=>{let{className:n,children:r,dataQaData:o,dataQaType:i="uikit/clickable",disabled:l,innerClassName:s,href:a,rel:u,style:c,tabIndex:f,tagName:p,target:m,type:g,onClick:y,cobrowsingSecure:T,innerDataQaType:h,innerRef:d,download:_,onModifierKeyClick:x}=e,E=ye(e,cx),w,C;return typeof a=="string"?(w="a",C={download:_,href:a,rel:m==="_blank"?`noopener noreferrer ${u||""}`:u,tabIndex:l?-1:f,target:m,onClick:y&&fx({onClick:y,onModifierKeyClick:x})}):(w="button",C={disabled:l,tabIndex:f,type:g!==void 0?g:"button",onClick:y}),p&&(w=p),w!=="button"&&(delete C.type,C=V({},C,{disabled:void 0,"aria-disabled":l||void 0})),b.createElement(w,Object.assign({},E,C,ux({dataQaData:o,dataQaType:i}),{"data-cobrowsing-secure":T?"text":void 0,className:n,style:l?V({pointerEvents:"none"},c):c,ref:t}),b.createElement("span",{className:s,"data-qa-type":h,style:{outline:"none"},tabIndex:-1,ref:d},r))});Nh.displayName="Clickable";const px=Nh;var R={};R.__esModule=!0;var hx=R.calcFontColor=vx;R.checkHash=Ex;R.colorType=yx;R.colorsDiff=mx;R.dec2hex=ti;R.getColor=gx;R.getShiftColor=kx;R.hex2hsv=Rh;R.hex2rgb=Xt;R.hex2rgba=xx;R.hexa2hex=Sx;R.hsl2rgb=ea;R.hsv2hex=Bh;R.hsv2rgb=Ah;R.isGrayShade=Oh;R.isHSVColor=yu;R.isHexAColor=_x;R.isHexColor=En;R.isRGBColor=dl;R.isWhite=Tx;R.list=void 0;R.luminance=xu;R.productGradientColor=Cx;R.restoreCssHexColor=Mt;R.rgb2hex=Li;R.rgb2hsl=Ih;R.rgb2hsv=jh;R.rgba2hex=wx;var vu="",Vr={r:255,g:255,b:255},Ph={h:0,s:0,v:1},Js=["#00bee0","#ffdd2d","#5695c4","#b39fda","#ff9797","#37a89d","#6bd2ec","#ffad5c","#b3baec","#ffb4b4","#68c24d","#80abcc","#ffba00","#b186c4","#f97f7c","#17d15f","#589db6","#ff9138","#d4a0f3","#d97789","#50a06f","#00c6d3","#ff7047","#db8cec","#dd567a","#4dbf81","#66b1ad","#f2bc85","#f3a3ff","#ff85b4","#bfd386"];R.list=Js;function Be(e,t){return e!==""&&e!==void 0&&typeof e===t}function dl(e){return Be(e,"object")&&Be(e.r,"number")&&Be(e.g,"number")&&Be(e.b,"number")}function yu(e){return Be(e,"object")&&Be(e.h,"number")&&Be(e.s,"number")&&Be(e.v,"number")}function En(e){return Be(e,"string")&&(e.length===7||e.length===4)&&/^#/.test(e)}function _x(e){return Be(e,"string")&&/^#[0-9a-fA-F]{8}$/.test(e)}function Mt(e){e===void 0&&(e="");var t=e.toLowerCase().replace(/[^\da-f]/g,"");return!Be(t,"string")||t.length!==3&&t.length!==6?vu:(t.length===3&&(t=t.replace(/(.)/g,"$1$1")),"#"+t)}function Oh(e){var t=Mt(e);return t.slice(1,3)===t.slice(3,5)&&t.slice(3,5)===t.slice(5,7)}function xu(e){return dl(e)?e.r*.299+e.g*.587+e.b*.114:vu}function gx(e){var t=!Be(e,"number")||e<0?0:e;return Js[t%Js.length]}function Xt(e){return En(e)?{r:parseInt(e.substr(1,2),16),g:parseInt(e.substr(3,2),16),b:parseInt(e.substr(5,2),16)}:Vr}function cd(e,t){var n=Xt(Mt(e)),r=Xt(Mt(t)),o=(n.r+r.r)/2,i=n.r-r.r,l=n.g-r.g,s=n.b-r.b,a=2+o/256,u=4,c=2+(255-o)/256;return Math.sqrt(a*i*i+u*l*l+c*s*s)}var ql;function mx(e,t){return ql===void 0&&(ql=cd("fff","000")),100*cd(e,t)/ql}function vx(e){return En(e)?xu(Xt(Mt(e)))>186?"#333":"#fff":"#333"}function yx(e){return En(e)?xu(Xt(Mt(e)))>186?"light":"dark":"light"}function xx(e,t){if(t===void 0&&(t=1),!En(e))return"rgba("+Vr.r+","+Vr.g+","+Vr.b+",1)";var n=Xt(e);return"rgba("+n.r+","+n.g+","+n.b+","+t+")"}function ti(e){if(e>255||e<0)return"ff";var t=Math.round(+e).toString(16);return t.length===1?"0"+t:t}function Li(e){return dl(e)?"#"+ti(e.r)+ti(e.g)+ti(e.b):"#ffffff"}function wx(e){var t=e.replace(/rgba?\(/,"").replace(/\)/,"").replace(/[\s+]/g,"").split(","),n=parseFloat(t[3]||1),r=Math.round(n*parseInt(t[0],10)+(1-n)*255),o=Math.round(n*parseInt(t[1],10)+(1-n)*255),i=Math.round(n*parseInt(t[2],10)+(1-n)*255);return"#"+("0"+r.toString(16)).slice(-2)+("0"+o.toString(16)).slice(-2)+("0"+i.toString(16)).slice(-2)}function Sx(e){var t=e.match(/^#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})$/).slice(1).map(function(l){return parseInt(l,16)}),n=t[0],r=t[1],o=t[2],i=t[3];return"#"+[n,r,o].map(function(l){return Math.floor(l*i/255)+255-i}).map(function(l){return("0"+l.toString(16)).slice(-2)}).join("")}function Ih(e){var t=e.r/255,n=e.g/255,r=e.b/255,o,i,l=Math.min(t,n,r),s=Math.max(t,n,r),a=s-l;s===l?o=0:t===s?o=(n-r)/a:n===s?o=2+(r-t)/a:r===s&&(o=4+(t-n)/a),o=Math.min(o*60,360),o<0&&(o+=360);var u=(l+s)/2;return s===l?i=0:u<=.5?i=a/(s+l):i=a/(2-s-l),{h:o/360,s:i,l:u}}function ea(e){var t=e.h,n=e.s,r=e.l,o,i,l;if(n===0)return l=r*255,{r:l,g:l,b:l};r<.5?o=r*(1+n):o=r+n-r*n;for(var s=2*r-o,a=[0,0,0],u=0;u<3;u++)i=t+1/3*-(u-1),i<0?i++:i>1&&i--,6*i<1?l=s+(o-s)*6*i:2*i<1?l=o:3*i<2?l=s+(o-s)*(2/3-i)*6:l=s,a[u]=l*255;return{r:a[0],g:a[1],b:a[2]}}function jh(e){if(!dl(e))return Ph;var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.max(t,n,r),i=Math.min(t,n,r),l=o,s=o-i,a=o===0?0:s/o,u=o;if(o===i)u=0;else{switch(o){case t:u=(n-r)/s+(n.119&&r.h<.23&&(o=-10),(r.h*n+o>=n||r.h*n+o<=0)&&(l=-1),r[i]=(r.h*n+o*l)/n,Bh(r)}function Ex(e){return!Be(e,"string")||e.length!==6&&e.length!==7?"":En(e)?e:"#"+e}function Tx(e){return e&&Mt(e)==="#ffffff"}function Cx(e){var t=Xt(Mt(e)),n=t.r,r=t.g,o=t.b,i=Ih({r:n,g:r,b:o}),l=i.h,s=i.s,a=i.l,u=s<.5,c=u?-10:10,f=.15,p;return Math.abs(n-r)<=3&&Math.abs(o-r)<=3?p=Li(ea({h:l,s,l:a+f})):p=Li(ea({h:l+c/360,s,l:a+f})),p}var bx=jx,Cn=R,zx=/linear-gradient/,Dx=/^rgb/,Mx=/^rgba/;function Lx(e){return zx.test(e)}function Nx(e){return Dx.test(e)}function Px(e){return Mx.test(e)}var Ox=/linear-gradient\(.+?,\s?(?:(#[\w\d]*)|rgb\((\d+),\s?(\d+),\s?(\d+)\))/,Ix=/\((\d+),\s?(\d+),\s?(\d+)/;function jx(e){var t;if(Px(e))t=(0,Cn.rgba2hex)(e);else if(Nx(e)){var n=Ix.exec(e);t=(0,Cn.rgb2hex)({r:Number(n[1]),g:Number(n[2]),b:Number(n[3])})}else if((0,Cn.isHexColor)(e))t=e;else if((0,Cn.isHexAColor)(e))t=(0,Cn.hexa2hex)(e);else if(Lx(e)){var r=Ox.exec(e);r[1]!==void 0?t=r[1]:r[2]!==void 0&&(t=(0,Cn.rgb2hex)({r:Number(r[2]),g:Number(r[3]),b:Number(r[4])}))}return t}const Ax=([e=!1,t=e,n=e,r=t]=[])=>[e,t,n,r],Rx=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],Bx=e=>Ax((e||"").split(" ").map(t=>t==="true"));function $x(e){const t={};return Bx(e).forEach((n,r)=>{n&&(t[Rx[r]]=0)}),t}const Fx="_button_pjhmw_1",Wx="_button_round_pjhmw_31",Hx="_button_unselectable_pjhmw_35",Ux="_content_pjhmw_57",Vx="_button_uppercase_pjhmw_66",Qx="_buttonWrapper_pjhmw_71",qx="_icon_pjhmw_83",Gx="_button_theme_pjhmw_87",Zx="_button_theme_primary_pjhmw_93",Yx="_button_theme_secondary_pjhmw_113",Kx="_button_theme_outline_pjhmw_118",Xx="_button_theme_accent_pjhmw_131",Jx="_button_theme_secondaryDestructive_pjhmw_151",ew="_button_theme_flatDestructive_pjhmw_157",tw="_button_theme_flat_pjhmw_157",nw="_button_theme_primaryOnLight_pjhmw_198",rw="_button_theme_secondaryOnLight_pjhmw_218",ow="_button_theme_outlineOnLight_pjhmw_222",iw="_button_theme_flatOnLight_pjhmw_235",lw="_button_theme_primaryOnDark_pjhmw_256",sw="_button_theme_secondaryOnDark_pjhmw_280",aw="_button_theme_outlineOnDark_pjhmw_284",uw="_button_theme_flatOnDark_pjhmw_292",cw="_button_theme_mono_pjhmw_313",dw="_button_theme_custom_pjhmw_341",fw="_button_theme_custom_hideOverlay_pjhmw_379",pw="_button_disabled_pjhmw_387",hw="_button_inGroup_horizontal_pjhmw_392",_w="_button_inGroup_vertical_pjhmw_401",gw="_button_inGroup_pjhmw_392",mw="_button_isButtonLink_pjhmw_416",vw="_button_wide_true_pjhmw_422",yw="_button_wideTabletS_true_pjhmw_428",xw="_button_wideTabletS_false_pjhmw_435",ww="_button_wideTabletL_true_pjhmw_442",Sw="_button_wideTabletL_false_pjhmw_449",kw="_button_wideDesktopS_true_pjhmw_456",Ew="_button_wideDesktopS_false_pjhmw_463",Tw="_button_wideDesktopM_true_pjhmw_470",Cw="_button_wideDesktopM_false_pjhmw_477",bw="_button_wideDesktopL_true_pjhmw_484",zw="_button_wideDesktopL_false_pjhmw_491",Dw="_progressiveFillContainer_pjhmw_496",Mw="_progressiveFill_pjhmw_496",Lw="_buttonWrapper_isIcon_pjhmw_533",Nw="_buttonWrapper_leftIcon_pjhmw_539",Pw="_buttonWrapper_rightIcon_pjhmw_547",Ow="_buttonWrapper_disableHorizontalPadding_pjhmw_645",Iw="_buttonWrapper_disableVerticalPadding_pjhmw_650",W={button:Fx,button_round:Wx,button_unselectable:Hx,content:Ux,button_uppercase:Vx,buttonWrapper:Qx,icon:qx,button_theme:Gx,button_theme_primary:Zx,button_theme_secondary:Yx,button_theme_outline:Kx,button_theme_accent:Xx,button_theme_secondaryDestructive:Jx,button_theme_flatDestructive:ew,button_theme_flat:tw,button_theme_primaryOnLight:nw,button_theme_secondaryOnLight:rw,button_theme_outlineOnLight:ow,button_theme_flatOnLight:iw,button_theme_primaryOnDark:lw,button_theme_secondaryOnDark:sw,button_theme_outlineOnDark:aw,button_theme_flatOnDark:uw,button_theme_mono:cw,button_theme_custom:dw,button_theme_custom_hideOverlay:fw,button_disabled:pw,button_inGroup_horizontal:hw,button_inGroup_vertical:_w,button_inGroup:gw,button_isButtonLink:mw,button_wide_true:vw,button_wideTabletS_true:yw,button_wideTabletS_false:xw,button_wideTabletL_true:ww,button_wideTabletL_false:Sw,button_wideDesktopS_true:kw,button_wideDesktopS_false:Ew,button_wideDesktopM_true:Tw,button_wideDesktopM_false:Cw,button_wideDesktopL_true:bw,button_wideDesktopL_false:zw,progressiveFillContainer:Dw,progressiveFill:Mw,buttonWrapper_isIcon:Lw,buttonWrapper_leftIcon:Nw,buttonWrapper_rightIcon:Pw,buttonWrapper_disableHorizontalPadding:Ow,buttonWrapper_disableVerticalPadding:Iw},jw=e=>Math.min(Math.max(e,-100),0);function Aw(e){const{theme:t,isButtonLink:n,disabled:r,wide:o,wideTabletS:i,wideTabletL:l,wideDesktopS:s,wideDesktopM:a,wideDesktopL:u,inGroup:c,round:f,vertical:p,uppercase:m,unselectable:g,leftIcon:y,rightIcon:T,children:h,flatCorners:d,disableHorizontalPadding:_,disableVerticalPadding:x,progressiveFill:E}=e,w=(y||T)&&!h,C=typeof t!="object"?t:"custom",k=t,O=Ce({[W.button]:!0,[W[`button_theme_${C}`]]:!n,[W.button_theme_custom_hideOverlay]:k==null?void 0:k.hideOverlay,[W.button_disabled]:r,[W[`button_wide_${o}`]]:o,[W[`button_wideTabletS_${i}`]]:typeof i<"u",[W[`button_wideTabletL_${l}`]]:typeof l<"u",[W[`button_wideDesktopS_${s}`]]:typeof s<"u",[W[`button_wideDesktopM_${a}`]]:typeof a<"u",[W[`button_wideDesktopL_${u}`]]:typeof u<"u",[W.button_inGroup]:c,[W.button_round]:w&&f,[W.button_isButtonLink]:n,[W.button_inGroup_horizontal]:c&&!p,[W.button_inGroup_vertical]:c&&p,[W.button_uppercase]:m,[W.button_unselectable]:g});let N={};k&&(N={color:k.background&&hx(bx(k.background)),background:k.background&&`${k.background} border-box`,"--tui-component--button--border-color":k.borderColor||"transparent"}),N=V({},N,$x(d));const H=Ce({[W.buttonWrapper]:!0,[W.buttonWrapper_disableHorizontalPadding]:_,[W.buttonWrapper_disableVerticalPadding]:x,[W.buttonWrapper_isIcon]:w,[W.buttonWrapper_leftIcon]:!!y,[W.buttonWrapper_rightIcon]:!!T}),te={};return E&&(te.transform=`translateX(${jw(-100+E)}%)`),{button:{className:O,style:N},buttonWrapper:{className:H},progressiveFillContainer:{className:W.progressiveFillContainer},progressiveFill:{className:W.progressiveFill,style:te},icon:{className:W.icon},content:{className:W.content}}}const Rw=["ariaBusy","ariaLabel","children","dataQaData","dataQaType","disabled","flatCorners","href","leftIcon","rightIcon","inGroup","isButtonLink","progressiveFill","round","size","tabIndex","tagName","target","theme","type","unselectable","uppercase","vertical","wide","wideDesktopL","wideDesktopM","wideDesktopS","wideTabletL","wideTabletS","onClick","onMouseLeave","onMouseOver","innerRef","disableHorizontalPadding","disableVerticalPadding"],wu=D.forwardRef((e,t)=>{const{ariaBusy:n,ariaLabel:r,children:o,dataQaData:i,dataQaType:l,disabled:s,href:a,leftIcon:u,rightIcon:c,progressiveFill:f,size:p,tabIndex:m,tagName:g,target:y,type:T,onClick:h,onMouseLeave:d,onMouseOver:_,innerRef:x}=e,E=ye(e,Rw),w=Aw(e);return b.createElement(px,Object.assign({},E,{"data-size":p,ref:t,"aria-busy":n,dataQaData:i,dataQaType:l,tagName:g,target:y,type:a?void 0:T,href:a,"aria-label":(!o||typeof o!="string")&&r||void 0,disabled:s,onClick:h,onMouseOver:_,onMouseLeave:d,tabIndex:m,className:w.button.className,style:w.button.style,innerClassName:w.buttonWrapper.className,innerRef:x}),f?b.createElement("span",{className:w.progressiveFillContainer.className},b.createElement("span",{"data-qa-type":`${l}.progressiveFill`,className:w.progressiveFill.className,style:w.progressiveFill.style})):null,u&&b.createElement("span",{className:w.icon.className,"data-qa-type":`${l}.icon`},u),o&&b.createElement("span",{className:w.content.className,"data-qa-type":`${l}.content`},o),c&&b.createElement("span",{className:w.icon.className,"data-qa-type":`${l}.icon`},c))});wu.defaultProps={dataQaType:"uikit/button",size:"l",theme:"primary",type:"button",onClick:Ql,onMouseOver:Ql,onMouseLeave:Ql};wu.displayName="Button";const ta=wu;function dd(e){const{dataQaType:t,dataQaData:n}=e;return{"data-qa-type":t,"data-qa-data":typeof n=="object"?JSON.stringify(n):n}}let na;const It={};typeof window<"u"?na=e=>(It[e]=It[e]||fetch(e).then(t=>t.text()).catch(t=>{console.error(t),It[e]=new Promise(n=>{n(void 0)})}),It[e]):na=e=>{const t=require("node-fetch").default,n=e.replace(/^\/\//,"http://");return It[e]=It[e]||t(n,{timeout:2e3}).then(r=>{if(r.status!==200)throw new Error(`Status code is ${r.status} - ${r.statusText} for ${e}`);return r.text()}).catch(r=>{throw It[e]=new Promise(o=>{o(void 0)}),r}),It[e]};const Bw=e=>na(e),Ni={},ni=Object.create(null),$h=e=>["http://","https://","//"].some(t=>Dy(t,e)),Fh=(e,t)=>{Ni[e]=t},fd=e=>Ni[e],ra=e=>e.replace(/[\t\n\r]+/g,""),oa=e=>{const t=/[\w-]+\.svg/,n=e.match(t),r=n?n[0]:void 0;if($h(e))return r;if(typeof process<"u"&&process.env.SERVER){const o=require("spark-md5").hash;return`${o(e)}.svg`}return r},Wh=e=>{const t=oa(e);return t&&Ni[t]?Promise.resolve(Ni[t]):(ni[e]=ni[e]||Bw(e),ni[e].then(n=>{const r=ra(n);return Fh(t,r),r}))},$w=e=>ni[e],Fw=["iconPath","fallbackBlock"],Ww="",pd=(e,t)=>(Fh(e,t),t),Hw=()=>typeof window<"u"&&"document"in window,Uw=(e,t)=>{if(typeof process<"u"&&process.env.SERVER){if($h(t))return Wh(t),Ww;const n=ra(t);return pd(e,n)}if(Hw()){const n=document.querySelector(`[data-svg-id="${e}"]`);if(!n)return!1;let r=n.innerHTML;return r===void 0&&(r=ra(new XMLSerializer().serializeToString(n))),pd(e,r)}},hd=(e,t)=>(typeof process<"u",fd(e)?fd(e):Uw(e,t)),Vw=e=>function(n){let{iconPath:r,fallbackBlock:o}=n,i=ye(n,Fw);const[l,s]=D.useState(oa(r)),[a,u]=D.useState(!1),[c,f]=D.useState(hd(l,r)),[p,m]=D.useState(!1),g=$w(r),y=D.useRef("");return g&&g.then(T=>T!==c&&a&&f(T)).catch(()=>a&&f("")),D.useEffect(()=>{if(l&&r){const T=hd(l,r);T&&f(T)}return u(!0),()=>{u(!1)}},[]),D.useEffect(()=>{y.current!==r&&(s(oa(r)),Wh(r).then(T=>{a&&f(T)}).catch(()=>{m(!0)})),y.current=r},[c,r,a]),p&&o?o:c?b.createElement(e,Object.assign({},i,{svgCode:c,dataSvgId:l})):b.createElement("div",{style:{width:i.width||i.size||i.containerSize||i.iconSize,height:i.height||i.size||i.containerSize||i.iconSize}})},Qw=e=>e&&e.constructor&&e.constructor.name||"dsId";function Hh(e){const t=Qw(e),n=lh(10);return`${t}_${n}`}function qw(){if(typeof window>"u")return!0;const e=window.navigator.userAgent;if(e.match(/Trident\//))return!1;const n=e.match(/Edge\/(\d+)/);return n?+n[1]>12:!0}function Gw(e){return!e.startsWith("#")}const Gl={};function Zw(e){const t=new XMLHttpRequest;return new Promise(n=>{t.onreadystatechange=()=>{if(t.readyState===4){const r=t.responseText,o=document.implementation.createHTMLDocument("");o.body.innerHTML=r;const i=o.body.firstChild;n(i)}},t.open("get",e),t.send()})}let yr;function Yw(){return yr||(yr=document.createElement("svg"),document.body.appendChild(yr),yr)}function Kw(e,t){const[n,r]=e.split("#");Zw(n).then(o=>{const i=o.getElementById(r).cloneNode(!0),l=Yw();i.id=t,l.appendChild(i)})}function Xw(e){if(Gl[e])return Gl[e];const t=Hh();return Gl[e]=t,Kw(e,t),t}function Jw(e){return!Gw(e)||qw()?e:`#${Xw(e)}`}const eS=e=>b.createElement("use",Object.assign({},e,{href:Jw(e.href)})),tS=eS,nS=["icon"],rS=e=>{let{icon:t}=e,n=ye(e,nS);if(typeof t=="object"){const r=t.url||`#${t.id}`;return b.createElement("svg",n,b.createElement(tS,{href:r}))}return b.createElement(t,n)},oS=rS;var Su={"yellow-100":"#FFDD2D","yellow-200":"#FCC521","yellow-300":"#FAB619","black-100":"#909090","black-200":"#666666","black-300":"#333333","black-400":"#000000","gray-100":"#F5F5F6","gray-200":"#E7E8EA","gray-300":"#CBCFD3","gray-400":"#959BA4","gray-500":"#79818C","gray-600":"#616871","lightBlue-100":"#ECF1F7","lightBlue-200":"#E4EBF3","lightBlue-300":"#DDE4ED","blue-100":"#1771E6","blue-200":"#1464CC","blue-300":"#0953B3","green-100":"#39B54A","green-200":"#2CA53A","green-300":"#168821","red-100":"#E01F19","red-200":"#D3120E","red-300":"#C40B08",white:"#FFFFFF"},I=Su,iS={primary:I["yellow-100"],"status-warning":I["yellow-100"],"primary-hover":I["yellow-200"],"status-warning-hover":I["yellow-200"],"primary-active":I["yellow-300"],"status-warning-active":I["yellow-300"],"whiteblock-hover":I["gray-100"],"card-secondary":I["gray-100"],border:I["gray-200"],"border-dark":I["gray-300"],"border-darker":I["gray-400"],status:I["gray-400"],"text-alternate":I["gray-400"],"status-hover":I["gray-500"],"textfield-placeholder":I["gray-500"],"border-focus":I["gray-600"],"textfield-placeholder-hover":I["gray-600"],"status-active":I["gray-600"],textfield:I["lightBlue-100"],secondary:I["lightBlue-100"],"textfield-hover":I["lightBlue-200"],"secondary-hover":I["lightBlue-200"],"secondary-active":I["lightBlue-300"],"blank-black":I["black-300"],"blank-white":I.white,"card-primary":I.white,"text-inverse":I.white,"outline-border":I["blue-100"],link:I["blue-100"],"outline-border-hover":I["blue-200"],"link-hover":I["blue-200"],"outline-border-active":I["blue-300"],"link-active":I["blue-300"],"status-success":I["green-100"],"status-success-hover":I["green-200"],"status-success-active":I["green-300"],"status-error":I["red-100"],"status-error-hover":I["red-200"],"status-error-active":I["red-300"],"true-black":I["black-400"]},lS={mustard:"#ffd450",texas:"#ffb74c",tan:"#f8a34d",salmon:"#ff8863",bittersweet:"#ff7b76",sienna:"#ee805d",pinkie:"#ff78a7",charm:"#d45d8c",amethyst:"#bc71c9",helio:"#a381ff",lilac:"#8f75d1",malibu:"#7caeff",havelock:"#65a7e0",picton:"#4dc3f7",mint:"#4bd0e1",fountain:"#4eb6c2",puertorico:"#4fbdb2",bay:"#4da197",forest:"#73b077",york:"#81c785",feijoa:"#aed57f"},bn=Su,sS={"text-primary":"rgba(0, 0, 0, 0.8)","text-secondary":"rgba(0, 0, 0, 0.54)","text-placeholder-hover":"rgba(0, 0, 0, 0.54)","text-tertiary":"rgba(0, 0, 0, 0.4)","text-placeholder":"rgba(0, 0, 0, 0.4)","text-primary-inverse":"rgba(255, 255, 255, 1)","text-secondary-inverse":"rgba(255, 255, 255, 0.72)","text-link":bn["blue-100"],"text-link-hover":bn["blue-300"],"text-green":bn["green-300"],"text-success":bn["green-300"],"text-error":bn["red-300"],"text-red":bn["red-300"]},aS=ru.default,uS=aS(Xi),cS=Su,dS=iS,fS=lS,pS=sS,hS=(0,uS.default)({},cS,dS,fS,pS);const Qe=tt(hS),_S={gray:{color:Qe["textfield-placeholder"],background:Qe["card-secondary"]},red:{color:Qe["status-error"],background:"#fbe4e3"},green:{color:Qe["status-success"],background:"#dff3e2"},blue:{color:Qe.link,background:Qe.secondary},blueFilled:{color:"#fff",background:Qe.link},yellow:{color:Qe["text-primary"],background:Qe.primary},white:{color:Qe["textfield-placeholder"],background:Qe["blank-white"]},attention:{color:Qe["primary-active"],background:"#fff1ab"}},gS=_S,mS="_root_1swim_1",vS="_root_withContainer_1swim_9",yS="_background_1swim_14",xS="_icon_1swim_25",wS="_svgIcon_1swim_39",Mr={root:mS,root_withContainer:vS,background:yS,icon:xS,svgIcon:wS},SS=["dataQaType","dataQaData","iconSize","withContainer","containerSize","square","dataSvgId","svgCode","rotate","reverse","backgroundSize","verticalAlign","theme","cursor","children","idRegExp"],kS=["icon","iconPath"],ES={32:10,36:12,40:12,44:15,48:15,64:20,96:30,128:40},TS={horizontal:"scaleX(-1)",vertical:"scaleY(-1)"},CS=(e,t)=>{let n=e?`rotate(${e}deg)`:"";const r=t?TS[t]:void 0;return r&&(n+=` ${r}`),n.length?n:void 0},Zl=e=>typeof e=="string"?e:`${e}px`,ia=D.memo(e=>{const{dataQaType:t="uikit/icon",dataQaData:n,iconSize:r,withContainer:o,containerSize:i,square:l,dataSvgId:s,svgCode:a,rotate:u,reverse:c,backgroundSize:f,verticalAlign:p,theme:m,cursor:g,children:y,idRegExp:T}=e,h=ye(e,SS),{color:d,background:_}=gS[m]||(typeof m=="object"?m:{}),x=CS(u||0,c),[E,w]=D.useState(a);return D.useEffect(()=>{let C;if(T){const k=Hh();C=a==null?void 0:a.toString().replace(T,k)}else C=a;w(C)},[T,a]),b.createElement("span",Object.assign({},h,dd({dataQaType:t,dataQaData:n}),{className:Ce(Mr.root,{[Mr.root_withContainer]:o&&i}),style:{"--tds-icon-background-size":o&&f?Zl(f):void 0,"--tds-icon-container-size":o&&i?Zl(i):void 0,"--tds-icon-size":r?Zl(r):void 0,color:d,cursor:g,verticalAlign:p}}),o&&b.createElement("span",{className:Mr.background,style:{background:_,borderRadius:l&&i&&i!==16&&i!==24&&ES[i]||void 0}}),b.createElement("span",Object.assign({},dd({dataQaType:`${t}.content`}),{"data-svg-id":s,className:Mr.icon,style:V({WebkitTransform:x,transform:x},h.style),role:"presentation"},E?{dangerouslySetInnerHTML:{__html:E.toString()}}:{}),y))}),_d=Vw(ia),bS=e=>{let{icon:t,iconPath:n}=e,r=ye(e,kS);return t?typeof t=="string"?b.createElement(_d,Object.assign({},r,{iconPath:t})):b.createElement(ia,r,b.createElement(oS,{icon:t,className:Mr.svgIcon})):n?b.createElement(_d,Object.assign({iconPath:n},r)):b.createElement(ia,r)},zS=bS;function DS(e,t){return n=>b.createElement(zS,Object.assign({},n,{icon:e},t))}const ku=(e,{withContainer:t}={})=>{const n={iconSize:16,backgroundSize:t?16:void 0};return t!==void 0&&(n.withContainer=t),DS(e,n)},MS="data:image/svg+xml;base64,PHN2ZyBmb2N1c2FibGU9ImZhbHNlIiB2aWV3Qm94PSIwIDAgMTYgMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00LjcwNyAzLjI5M2ExIDEgMCAwMC0xLjQxNCAxLjQxNEw2LjU4NiA4bC0zLjI5MyAzLjI5M2ExIDEgMCAxMDEuNDE0IDEuNDE0TDggOS40MTRsMy4yOTMgMy4yOTNhMSAxIDAgMDAxLjQxNC0xLjQxNEw5LjQxNCA4bDMuMjkzLTMuMjkzYTEgMSAwIDAwLTEuNDE0LTEuNDE0TDggNi41ODYgNC43MDcgMy4yOTN6IiBmaWxsPSJjdXJyZW50Q29sb3IiLz48L3N2Zz4K",Eu=ku(MS);function LS(){return v.jsxs("svg",{width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.0003 61.3332C48.2007 61.3332 61.3337 48.2002 61.3337 31.9998C61.3337 15.7995 48.2007 2.6665 32.0003 2.6665C15.8 2.6665 2.66699 15.7995 2.66699 31.9998C2.66699 48.2002 15.8 61.3332 32.0003 61.3332Z",fill:"url(#paint0_linear_260_115429)"}),v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M29.1667 44.1357L48.023 25.2796L47.0262 24.2828C44.6609 21.9175 40.826 21.9174 38.4607 24.2827L29.1667 33.5763L26.0957 30.5052C23.7303 28.1399 19.8953 28.1399 17.53 30.5054L16.5332 31.5022L29.1667 44.1357Z",fill:"white"}),v.jsx("defs",{children:v.jsxs("linearGradient",{id:"paint0_linear_260_115429",x1:"13.3337",y1:"13.3332",x2:"50.667",y2:"50.6665",gradientUnits:"userSpaceOnUse",children:[v.jsx("stop",{stopColor:"#0CBC37"}),v.jsx("stop",{offset:"1",stopColor:"#0CBC37",stopOpacity:"0.65"})]})})]})}const de={chat:{message:{root:"tqm-copilot/chat.message",closeButton:"tqm-copilot/chat.message.closeButton",openChatButton:"tqm-copilot/chat.message.openChatButton",notANegativeButton:"tqm-copilot/chat.message.notANegativeButton"}},helpers:{root:"tqm-copilot/helpers",helperList:"tqm-copilot/helpers.helperList"},helper:{root:"tqm-copilot/helper",copyButton:"tqm-copilot/helper.copyButton"},fab:{root:"tqm-copilot/fab",badge:"tqm-copilot/fab.badge"},spoiler:{root:"tqm-copilot/spoiler",showMoreButton:"tqm-copilot/spoiler.showMoreButton",showLessButton:"tqm-copilot/spoiler.showLessButton"},popper:{content:"tqm-copilot/popper.content"},locker:{closeButton:"tqm-copilot/locker.close-button",title:"tqm-copilot/locker.title"},fixed:{root:"tqm-copilot/fixed"},box:{root:"tqm-copilot/box"},button:{root:"tqm-copilot/button"}},NS="_locker_1a6r7_1",PS="_locker__icon_1a6r7_1",OS="_locker__title_1a6r7_1",IS="_locker__text_1a6r7_1",jS="_locker__closeButtonWrapper_1a6r7_1",$o={locker:NS,locker__icon:PS,locker__title:OS,locker__text:IS,locker__closeButtonWrapper:jS},AS=()=>{B.actions.toggleVisibility(!1),_e.closeWidget({operatorId:String(B.state.operator.id)})};function RS(){return v.jsxs(ge,{className:$o.locker,alignCross:"center",alignMain:"center",children:[v.jsx("div",{className:$o.locker__closeButtonWrapper,children:v.jsx(nr,{popoverContent:le.close,children:v.jsx(ta,{round:!0,size:"xs",theme:"secondary",leftIcon:v.jsx(Eu,{}),onClick:AS,"data-testid":de.locker.closeButton})})}),v.jsxs(ge,{alignCross:"center",alignMain:"center",gaps:"s",children:[v.jsx("div",{className:$o.locker__icon,children:v.jsx(LS,{})}),v.jsx(ge,{alignCross:"center",alignMain:"center",gaps:"xs",children:v.jsx("div",{className:$o.locker__title,"data-testid":de.locker.title,children:le.allClientsAreSatisfied})})]})]})}function BS(){return v.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[v.jsx("circle",{cx:"12",cy:"12",r:"12",fill:"url(#paint0_linear_195_115694)"}),v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.1108 7.34129C20.1108 7.71105 19.8114 8.01089 19.4418 8.01168C19.4413 8.01168 19.4409 8.01168 19.4404 8.01168V7.34129C19.4404 8.01168 19.4406 8.01168 19.4408 8.01168L19.4411 8.01168L19.4399 8.0117L19.4255 8.01194C19.4114 8.01224 19.3885 8.01289 19.3578 8.01427C19.2964 8.01704 19.2045 8.02274 19.0898 8.03442C18.8591 8.05791 18.544 8.10485 18.2051 8.19747C17.5048 8.38881 16.8226 8.74081 16.4672 9.35361C16.2814 9.67389 15.8712 9.78293 15.551 9.59717C15.2307 9.41141 15.1216 9.00119 15.3074 8.68092C15.924 7.61774 17.0184 7.13176 17.8517 6.9041C18.2794 6.78722 18.6704 6.72942 18.954 6.70053C19.0965 6.68602 19.2138 6.67863 19.2973 6.67485C19.3391 6.67297 19.3727 6.67198 19.3968 6.67146L19.426 6.67099L19.4351 6.67091L19.4382 6.6709L19.4394 6.6709L19.4399 6.6709C19.4401 6.6709 19.4404 6.6709 19.4404 7.34129L19.4404 6.6709C19.8106 6.6709 20.1108 6.97104 20.1108 7.34129Z",fill:"black",fillOpacity:"0.8"}),v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.9546 12.3017C11.8817 12.0902 10.5794 12.1067 9.42596 12.8899C9.11965 13.0979 8.70273 13.0182 8.49474 12.7119C8.28676 12.4056 8.36646 11.9886 8.67277 11.7807C10.2344 10.7203 11.9489 10.7368 13.2139 10.9862C13.8505 11.1117 14.3921 11.2992 14.7749 11.4552C14.967 11.5334 15.1208 11.6045 15.2287 11.657C15.2827 11.6833 15.3253 11.7051 15.3555 11.7209C15.3707 11.7288 15.3827 11.7353 15.3916 11.74L15.4025 11.7459L15.4061 11.7479L15.4074 11.7487L15.408 11.749C15.4082 11.7491 15.4085 11.7492 15.0829 12.3353L15.4085 11.7492C15.7321 11.9291 15.8487 12.3372 15.6689 12.6608C15.4892 12.9843 15.0814 13.101 14.7579 12.9216C14.7578 12.9216 14.7578 12.9216 14.7577 12.9215C14.7577 12.9215 14.7577 12.9215 14.7577 12.9215L14.7579 12.9216L14.758 12.9217L14.755 12.9201L14.7344 12.9091C14.7147 12.8988 14.6833 12.8828 14.6413 12.8623C14.5571 12.8212 14.4305 12.7626 14.269 12.6969C13.9448 12.5648 13.4871 12.4066 12.9546 12.3017Z",fill:"black",fillOpacity:"0.8"}),v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.069 7.97268C4.06931 7.97272 4.06963 7.97276 4.06994 7.9728L4.15543 7.30788C4.06994 7.9728 4.06915 7.9727 4.069 7.97268L4.07128 7.97299L4.08549 7.975C4.09911 7.97699 4.12085 7.98027 4.14988 7.98505C4.20799 7.9946 4.29497 8.01004 4.40418 8.03279C4.62335 8.07846 4.92803 8.15271 5.26638 8.26614C5.96077 8.49892 6.71664 8.87028 7.20475 9.42619C7.44904 9.7044 7.87261 9.73191 8.15083 9.48762C8.42905 9.24333 8.45655 8.81975 8.21227 8.54154C7.49367 7.72314 6.473 7.25652 5.69254 6.99488C5.29345 6.8611 4.93612 6.77405 4.67764 6.7202C4.54802 6.69319 4.44227 6.67433 4.36734 6.66202C4.32986 6.65586 4.30001 6.65132 4.27867 6.64821L4.25312 6.64459L4.24531 6.64354L4.24269 6.6432L4.2417 6.64307C4.24151 6.64304 4.24092 6.64297 4.15543 7.30788",fill:"black",fillOpacity:"0.8"}),v.jsx("defs",{children:v.jsxs("linearGradient",{id:"paint0_linear_195_115694",x1:"12",y1:"0",x2:"12",y2:"24",gradientUnits:"userSpaceOnUse",children:[v.jsx("stop",{stopColor:"#FFDD2D"}),v.jsx("stop",{offset:"1",stopColor:"#FF572D"})]})})]})}const $S=e=>({open:e.open,negativeCount:gu(e)}),FS=e=>{const{open:t,negativeCount:n}=wn($S),[r,o]=D.useState(!1),i=D.useCallback(()=>{o(!1)},[]),l=D1(n)??0;return D.useEffect(()=>{o(n>l)},[n,l]),D.useEffect(()=>{t&&o(!1)},[t,n]),D.useEffect(()=>{if(e)return;let s;if(r)return s=window.setTimeout(()=>{i()},r_),()=>{window.clearTimeout(s)};window.clearTimeout(s),i()},[i,e,r]),[r,i]},WS="_popper_5lk4w_1",HS="_popper__title_5lk4w_1",US="_popper__text_5lk4w_1",VS="_popper__corner_5lk4w_1",QS="_popper__icon_5lk4w_1",xr={popper:WS,popper__title:HS,popper__text:US,popper__corner:VS,popper__icon:QS},qS=()=>{B.actions.toggleVisibility(!0),_e.openWidget({operatorId:String(B.state.operator.id)})};function GS({children:e}){const[t,n]=D.useState(!1),r=()=>n(!0),o=()=>n(!1),[i]=FS(t),l=mu();return v.jsx(Eh,{isActive:i,customPadding:12,direction:"left",increasedTouchZone:!1,popoverBlock:v.jsx("div",{"data-tds-theme":l,onMouseEnter:r,onMouseLeave:o,children:v.jsxs(ge,{className:xr.popper,onClick:qS,"data-testid":de.popper.content,children:[v.jsxs(ge,{children:[v.jsx("div",{className:xr.popper__title,children:le.popper.negativityLevelIncreased}),v.jsx("div",{className:xr.popper__text,children:le.popper.hereAreACoupleOfPhrases})]}),v.jsx("div",{className:xr.popper__icon,children:v.jsx(BS,{})}),v.jsx("div",{className:xr.popper__corner})]})}),children:e})}const ZS="_fixed_25cet_1",YS={fixed:ZS};function KS({children:e}){return v.jsx("div",{className:YS.fixed,"data-testid":de.fixed.root,children:e})}const XS="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZvY3VzYWJsZT0iZmFsc2UiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTMuMjkzIDYuMjkzYy42My42MyAxLjcwNy4xODQgMS43MDctLjcwN1YyYTEgMSAwIDAwLTEtMWgtMy41ODZjLS44OSAwLTEuMzM3IDEuMDc3LS43MDcgMS43MDdsMS4wODggMS4wODgtNyA3LTEuMDg4LTEuMDg4QzIuMDc3IDkuMDc3IDEgOS41MjMgMSAxMC40MTRWMTRhMSAxIDAgMDAxIDFoMy41ODZjLjg5IDAgMS4zMzctMS4wNzcuNzA3LTEuNzA3bC0xLjA4OC0xLjA4OCA3LTd6IiBmaWxsPSJjdXJyZW50Q29sb3IiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPgo=",JS=ku(XS),e2="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZvY3VzYWJsZT0iZmFsc2UiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS43MDguMzA2YTEuMDQgMS4wNCAwIDAxLS4wMjYgMS40MzdsLTMuNDY4IDMuNDY4TDEzLjMgNi4yOTJjLjYzMi42My4xODYgMS43MS0uNzA2IDEuNzFIOWExIDEgMCAwMS0xLTF2LTMuNThjMC0uODkgMS4wNzUtMS4zMzYgMS43MDYtLjcwOGwxLjA5NCAxLjA5TDE0LjMxOC4yODZhLjk2MS45NjEgMCAwMTEuMzkuMDJ6TS4yNzggMTUuNzA4YTEuMDQgMS4wNCAwIDAxLjAyNi0xLjQzN2wzLjQ4Mi0zLjQ4MUwyLjcgOS43MDlDMi4wNjggOS4wNzkgMi41MTMgOCAzLjQwNSA4SDdhMSAxIDAgMDExIDF2My41NzhjMCAuODktMS4wNzUgMS4zMzctMS43MDYuNzA5TDUuMiAxMi4xOTcgMS42NjkgMTUuNzNhLjk2MS45NjEgMCAwMS0xLjM5LS4wMnoiIGZpbGw9ImN1cnJlbnRDb2xvciIvPjwvc3ZnPgo=",t2=ku(e2),n2={[Et.Minimized]:{popoverContent:le.expandButton.maximize,Icon:JS},[Et.Maximized]:{popoverContent:le.expandButton.minimize,Icon:t2}},r2={[Et.Minimized]:_e.decreaseWidget,[Et.Maximized]:_e.expandWidget},o2="_header_1z0zk_1",i2="_header__title_1z0zk_1",l2="_header__counter_1z0zk_1",s2="_header__buttons_1z0zk_1",Fo={header:o2,header__title:i2,header__counter:l2,header__buttons:s2},a2=()=>{B.actions.toggleVisibility(!1),_e.closeWidget({operatorId:String(B.state.operator.id)})},u2=()=>{B.actions.toggleState(),r2[B.state.chatState]({operatorId:String(B.state.operator.id)})},c2=e=>({negativeCount:gu(e),chatState:e.chatState});function d2(){const{chatState:e,negativeCount:t}=wn(c2),{popoverContent:n,Icon:r}=n2[e];return v.jsxs(ge,{className:Fo.header,alignMain:"center",children:[v.jsx("span",{className:Fo.header__title,children:le.negativityLevelIncreased}),v.jsx("span",{className:Fo.header__counter,children:le.clientCont(t)}),v.jsxs(Mi,{className:Fo.header__buttons,gaps:"xs",children:[v.jsx(nr,{popoverContent:n,children:v.jsx(ta,{round:!0,size:"xs",theme:"flat",leftIcon:v.jsx(r,{}),onClick:u2})}),v.jsx(nr,{popoverContent:le.close,children:v.jsx(ta,{round:!0,size:"xs",theme:"secondary",leftIcon:v.jsx(Eu,{}),onClick:a2})})]})]})}function Uh(e){const{dataQaType:t,dataQaData:n}=e;return{"data-qa-type":t,"data-qa-data":typeof n=="object"?JSON.stringify(n):n}}var f2=function(e){return e&&e[0]};const Yl=tt(f2);var p2=function(e){return typeof e=="function"};const wr=tt(p2),gd=4,h2=e=>`Drag(${e.displayName||e.name||"Component(!)"})`,_2=()=>new Promise(e=>e()),g2=e=>{class t extends D.Component{constructor(){super(),this.setRef=r=>{this.wrappedComponent=r},this.onDragMouseDown=()=>{document.addEventListener("mousemove",this.onDragMouseMoveBind),document.addEventListener("touchmove",this.onDragMouseMoveBind),document.addEventListener("mouseup",this.onDragMouseUpBind),document.addEventListener("touchend",this.onDragMouseUpBind)},this.onDragMouseMove=r=>{const{wrappedComponent:o}=this;if(o){o.allowDefaultAction||r.preventDefault();const i=Yl(r.touches)||r,l={x:i.pageX,y:i.pageY,clientX:i.clientX,clientY:i.clientY};if(!o.props.noDragThreshold&&Math.abs(l.x-o.dragStartPosition.x){const{wrappedComponent:o}=this;if(o){o.allowDefaultAction||(r.stopPropagation(),r.preventDefault());const i=Yl(r.changedTouches)||r;wr(o.onDragEnd)&&o.onDragEnd({x:i.pageX,y:i.pageY,clientX:i.clientX,clientY:i.clientY}),o.dragStartPosition={},o.dragPrevPosition={}}document.removeEventListener("mousemove",this.onDragMouseMoveBind),document.removeEventListener("touchmove",this.onDragMouseMoveBind),document.removeEventListener("mouseup",this.onDragMouseUpBind),document.removeEventListener("touchend",this.onDragMouseUpBind)},this.handleDrag=r=>{const{wrappedComponent:o}=this;if(o){o.allowDefaultAction||(r.stopPropagation(),r.preventDefault());const i=Yl(r.touches)||r;o.dragStartPosition={x:i.pageX,y:i.pageY,clientX:i.clientX,clientY:i.clientY},o.dragPrevPosition=o.dragStartPosition,wr(o.beforeDragStart)&&o.beforeDragStart(o.dragStartPosition),(o.props.beforeDragStart||_2)(o.startIndex).then(()=>{this.onDragMouseDown(r),wr(o.onDragStart)&&o.onDragStart(o.dragStartPosition,r)})}},this.onDragMouseMoveBind=r=>this.onDragMouseMove(r),this.onDragMouseUpBind=r=>this.onDragMouseUp(r)}componentWillUnmount(){document.removeEventListener("mousemove",this.onDragMouseMoveBind),document.removeEventListener("touchmove",this.onDragMouseMoveBind),document.removeEventListener("mouseup",this.onDragMouseUpBind),document.removeEventListener("touchend",this.onDragMouseUpBind)}render(){return b.createElement(e,Object.assign({onDrag:this.handleDrag,ref:this.setRef},this.props))}}return t.displayName=h2(e),Uy(t,e)},m2=g2,v2=(e,t=0)=>{const{currentTarget:n}=e,r=window.TouchEvent&&e instanceof TouchEvent?e.touches:void 0;let o=e instanceof WheelEvent?e.deltaY:0;if(r){const i=r[0].clientY;o=t-i}if(o<0)n.scrollTop<-o&&(n.scrollTop=0,e.preventDefault());else{const i=n.scrollHeight-n.offsetHeight;i-n.scrollTop({bottom:n,left:r,right:t,top:e}),x2=(e,t)=>{const n={},r=e==="horizontal"?"left":"top";let o=t;if(typeof o=="number"&&(o=`${o.toString()}px`),o){const i=o.split(" "),[l,...s]=i,a=y2(l,...s);n.bottom=a.bottom,n.right=a.right,n[r]=a[r],n.overflow="hidden"}return n},w2="_scroll_8i55k_1",S2="_scroll_preventStackContext_8i55k_7",k2="_scrollCaret_8i55k_11",E2="_scrollBar_theme_default_8i55k_32",T2="_scrollBar_theme_light_8i55k_36",C2="_scrollBar_dragging_8i55k_46",b2="_scrollBar_direction_horizontal_8i55k_50",z2="_scrollBar_direction_vertical_8i55k_54",D2="_scrollBar_8i55k_32",M2="_scrollBar_visible_8i55k_91",L2="_content_8i55k_111",N2="_content_scrollbar_hidden_8i55k_121",P2="_content_scrollbar_native_8i55k_138",O2="_content_scrollbar_disabled_8i55k_154",Ae={scroll:w2,scroll_preventStackContext:S2,scrollCaret:k2,scrollBar_theme_default:E2,scrollBar_theme_light:T2,scrollBar_dragging:C2,scrollBar_direction_horizontal:b2,scrollBar_direction_vertical:z2,scrollBar:D2,scrollBar_visible:M2,content:L2,content_scrollbar_hidden:N2,content_scrollbar_native:P2,content_scrollbar_disabled:O2};var md,Kl;const Sr=()=>{},I2={vertical:"height",horizontal:"width"};let j2=m2(md=(Kl=class extends D.PureComponent{constructor(...t){super(...t),this.onDragStart=(...n)=>this.props.handleDragStart(...n),this.onDragProcess=(...n)=>this.props.handleDragProcess(...n),this.onDragEnd=(...n)=>this.props.handleDragEnd(...n),this.handleMouseDown=n=>{const{onMouseDown:r,onDrag:o,direction:i}=this.props;r(n,i),o(n)}}render(){const{visible:t,barRef:n,size:r,theme:o,dragging:i,direction:l,scrollbarMargin:s}=this.props,a=x2(l,s);return b.createElement("div",{className:Ce({[Ae.scrollBar]:!0,[Ae.scrollBar_visible]:t,[Ae.scrollBar_dragging]:i,[Ae[`scrollBar_direction_${l}`]]:!0,[Ae[`scrollBar_theme_${o}`]]:!0}),style:a},b.createElement("div",{className:Ae.scrollCaret,ref:n,style:{[I2[l]]:r},onMouseDown:this.handleMouseDown}))}},Kl.defaultProps={visible:!1,dragging:!1,size:0,theme:"default",onDrag:Sr,onMouseDown:Sr,handleDragStart:Sr,handleDragProcess:Sr,handleDragEnd:Sr},Kl))||md;const A2=j2,R2=e=>{const{children:t,offsetBottom:n,offsetTop:r}=e;return b.createElement("div",{style:{height:"100%",paddingBottom:n,paddingTop:r,boxSizing:"border-box"}},t)},B2=R2,$2=D.forwardRef((e,t)=>{const{dataQaType:n="uikit/scroll",onScroll:r,onWheel:o,id:i,children:l,native:s=!1,mounted:a=!1,disabled:u=!1}=e,c=Jm(),f=D.useMemo(()=>Ce({[Ae.content]:!0,[Ae.content_scrollbar_hidden]:!a||!s,[Ae.content_scrollbar_disabled]:!a||u,[Ae.content_scrollbar_native]:a&&s,[Ae.content_scrollbar_native_legacy]:a&&s&&c}),[a,s,u,c]);return b.createElement("div",Object.assign({},Uh({dataQaType:`${n}.content`}),{ref:t,className:f,id:i,onScroll:r,onWheel:o}),l)}),vd=15,yd=17,xd=300,wd={passive:!1},Sd=({el:e,v:t,offset:n})=>{const r=`translate${t}(${n}px)`;e.style.transform=r,e.style.MozTransform=r,e.style.OTransform=r,e.style.MsTransform=r,e.style.WebkitTransform=r},kd=e=>e>yd?e:yd,la={ALWAYS:"always",ONLY_ACTIVE:"onlyActive",HIDDEN:"hidden"};class Tu extends D.PureComponent{constructor(t){super(t),this.content=void 0,this.container=void 0,this.verticalBar=void 0,this.horizontalBar=void 0,this.vTimeoutId=void 0,this.hTimeoutId=void 0,this.scrollingId=void 0,this.startOffset=void 0,this.isUnmounting=void 0,this.resizeObserver=void 0,this.direction=void 0,this.deviceType=Sm(),this.barMinHeight=kd(this.props.barMinHeight),this.horizontalProportion=1,this.verticalProportion=1,this.currentY=0,this.horizontalOffset=0,this.verticalOffset=0,this.getScrollBarVisibility=n=>{switch(this.props.scrollbarVisibility){case la.ONLY_ACTIVE:return this.state.hovered||this.state.scrolling||(n==="vertical"?this.state.isVScrolling||this.state.isVDragging:this.state.isHScrolling||this.state.isHDragging);case la.HIDDEN:return!1;default:return!0}},this.setRef=n=>r=>{this[n]=r},this.contentRef=n=>{var r,o;(r=(o=this.props).setContainer)==null||r.call(o,n),this.content=n},this.setCurrentY=n=>{this.currentY=n.touches[0].clientY},this.stopOuterScrollDecorator=n=>{v2(n,this.currentY)},this.setListeners=()=>{this.content&&(this.content.addEventListener("wheel",this.stopOuterScrollDecorator),this.content.addEventListener("touchstart",this.setCurrentY),this.content.addEventListener("touchmove",this.stopOuterScrollDecorator,wd))},this.removeListeners=()=>{this.content&&(this.content.removeEventListener("wheel",this.stopOuterScrollDecorator),this.content.removeEventListener("touchstart",this.setCurrentY),this.content.removeEventListener("touchmove",this.stopOuterScrollDecorator,wd))},this.onDragStart=()=>{if(this.content)switch(this.direction){case"horizontal":this.startOffset=this.content.scrollLeft*this.horizontalProportion;break;case"vertical":this.startOffset=this.content.scrollTop*this.verticalProportion;break}},this.onDragProcess=(n,r,o)=>{if(this.content)switch(this.direction){case"horizontal":this.content.scrollLeft=((this.startOffset||0)+n.x-o.x)/this.horizontalProportion;break;case"vertical":this.content.scrollTop=((this.startOffset||0)+n.y-o.y)/this.verticalProportion;break}},this.onDragEnd=()=>{this.direction=void 0,this.setDraggingDirection()},this.handleScroll=n=>{const{verticalBarRef:r,horizontalBarRef:o,contentInnerOffsetTop:i,contentInnerOffsetBottom:l,onScroll:s,barMaxHeight:a}=this.props;if(!this.content||!this.container)return;const{scrollTop:u,scrollLeft:c,scrollWidth:f,scrollHeight:p,clientWidth:m,clientHeight:g}=this.content,y=r||this.verticalBar,T=o||this.horizontalBar;this.horizontalOffset=c*this.horizontalProportion;const h=y&&y.parentElement?y.parentElement.clientHeight/g:1,d=T&&T.parentElement?T.parentElement.clientWidth/m:1,_=(g+i+l)/g,x=(g/p*this.container.clientHeight-vd*+(this.horizontalProportion<1))*h,E=u*this.verticalProportion*_*h;let w=x;if(this.barMinHeight&&(w=Math.max(x,this.barMinHeight)),a&&(w=Math.min(w,a)),w!==x){const k=-w+x,O=u/(p-this.container.clientHeight);this.verticalOffset=E+k*O}else this.verticalOffset=E;this.horizontalOffset!==this.state.horizontalOffset&&T&&(this.setState({isHScrolling:!0,horizontalOffset:this.horizontalOffset},this.onStateUpdate),this.setScrollingTimeout("horizontal"),Sd({el:T,v:"X",offset:this.horizontalOffset})),this.verticalOffset!==this.state.verticalOffset&&y&&(this.setState({isVScrolling:!0,verticalOffset:this.verticalOffset},this.onStateUpdate),this.setScrollingTimeout("vertical"),Sd({el:y,v:"Y",offset:this.verticalOffset}));const C=(m/f*this.container.clientWidth-vd*+(this.verticalProportion<1))*d;this.setState({horizontalSize:Math.max(C,this.barMinHeight),verticalSize:w,horizontalShow:this.horizontalProportion<1,verticalShow:this.verticalProportion<1},this.onStateUpdate),s==null||s(n,{scrollTop:u,scrollLeft:c,scrollWidth:f,scrollHeight:p,clientWidth:m,clientHeight:g})},this.handleMouseOver=()=>{this.state.hovered||this.setState({hovered:!0})},this.handleMouseLeave=()=>{this.state.hovered&&this.setState({hovered:!1})},this.handleMouseDown=(n,r)=>{this.direction=r,this.setDraggingDirection()},this.handleWheel=()=>{this.state.scrolling||this.setState({scrolling:!0}),clearTimeout(this.scrollingId),this.scrollingId=window.setTimeout(()=>{this.setState({scrolling:!1})},xd)},this.handleNativeContainerScroll=n=>{var r,o;const{scrollTop:i,scrollLeft:l,scrollWidth:s,scrollHeight:a,clientWidth:u,clientHeight:c}=n.currentTarget;(r=(o=this.props).onScroll)==null||r.call(o,n,{scrollTop:i,scrollLeft:l,scrollWidth:s,scrollHeight:a,clientWidth:u,clientHeight:c})},this.renderScrollBar=n=>this.state[`${n}Show`]&&b.createElement(A2,{scrollbarMargin:this.props.scrollbarMargin,direction:n,visible:this.getScrollBarVisibility(n),dragging:this.state[n==="vertical"?"isVDragging":"isHDragging"],size:this.state[`${n}Size`],theme:this.props.theme,barRef:this.setRef(`${n}Bar`),onMouseDown:this.handleMouseDown,handleDragStart:this.onDragStart,handleDragProcess:this.onDragProcess,handleDragEnd:this.onDragEnd}),this.state={horizontalShow:!1,horizontalSize:0,hovered:!1,isVScrolling:!1,mounted:!1,verticalOffset:0,verticalShow:!1,verticalSize:0},t.getUpdateFunc==null||t.getUpdateFunc(this.updateWithProportions),t.getMouseDownFunc==null||t.getMouseDownFunc(this.handleMouseDown),t.getDragStartFunc==null||t.getDragStartFunc(this.onDragStart),t.getDragProcessFunc==null||t.getDragProcessFunc(this.onDragProcess),t.getDragEndFunc==null||t.getDragEndFunc(this.onDragEnd)}componentDidMount(){this.updateWithProportions(),this.setState({mounted:!0},()=>{var t;this.props.preventOuterScroll&&this.setListeners(),typeof ResizeObserver<"u"&&this.container&&(t=this.content)!=null&&t.firstChild&&(this.resizeObserver=new ResizeObserver(()=>{this.updateWithProportions()}),this.resizeObserver.observe(this.container),this.resizeObserver.observe(this.content.firstChild))})}componentDidUpdate(t){this.barMinHeight!==this.props.barMinHeight&&(this.barMinHeight=kd(this.props.barMinHeight)),this.props.preventOuterScroll&&!t.preventOuterScroll?this.setListeners():!this.props.preventOuterScroll&&t.preventOuterScroll&&this.removeListeners()}componentWillUnmount(){this.isUnmounting=!0,this.props.preventOuterScroll&&this.removeListeners(),this.resizeObserver&&this.resizeObserver.disconnect()}onStateUpdate(){var t,n;const{verticalSize:r,horizontalSize:o,verticalShow:i,horizontalShow:l,isVScrolling:s,isHScrolling:a,isVDragging:u,isHDragging:c}=this.state;(t=(n=this.props).onUpdate)==null||t.call(n,{verticalSize:r,horizontalSize:o,verticalShow:i,horizontalShow:l,isVScrolling:s,isHScrolling:a,isVDragging:u,isHDragging:c})}setScrollingTimeout(t){const n=t==="vertical",r=n?"vTimeoutId":"hTimeoutId";clearTimeout(this[r]),this[r]=window.setTimeout(()=>{this.isUnmounting||this.setState({[n?"isVScrolling":"isHScrolling"]:!1},this.onStateUpdate)},xd)}updateWithProportions(t,n){const{scrollTop:r,scrollLeft:o}=t||this.props,{scrollTop:i,scrollLeft:l}=n||{};requestAnimationFrame(()=>{if(!this.content)return;const{clientWidth:s,clientHeight:a,scrollWidth:u,scrollHeight:c}=this.content;this.horizontalProportion=s/u,this.verticalProportion=a/c,r&&r!==i&&(this.content.scrollTop=r),o&&o!==l&&(this.content.scrollLeft=o),this.handleScroll()})}setDraggingDirection(){this.setState({isHDragging:/horizontal/.test(this.direction||""),isVDragging:/vertical/.test(this.direction||"")},this.onStateUpdate)}render(){const{mounted:t}=this.state,{zoom:n}=this.context,{id:r,dataQaType:o,contentInnerOffsetTop:i,contentInnerOffsetBottom:l,children:s,disabled:a,preventStackContext:u,fallback:c}=this.props,p=(this.deviceType==="tablet"||this.deviceType==="mobile")&&!c,m=Ce({[Ae.scroll]:!0,[Ae.scroll_preventStackContext]:p||u}),g=p?this.handleNativeContainerScroll:this.handleScroll,y=t&&!p&&!a;return b.createElement("div",Object.assign({},Uh(this.props),{ref:this.setRef("container"),className:m,onMouseOver:this.handleMouseOver,onMouseLeave:this.handleMouseLeave}),b.createElement(B2,{offsetBottom:l,offsetTop:i},b.createElement($2,{id:r,dataQaType:o,ref:this.contentRef,onScroll:g,onWheel:this.handleWheel,native:p,mounted:t,disabled:a},b.createElement(K1,null,b.createElement(su.Provider,{value:this.container?{intersectElems:[this.container],zoom:n}:{}},s)))),y&&b.createElement(b.Fragment,null,this.renderScrollBar("horizontal"),this.renderScrollBar("vertical")))}}Tu.contextType=su;Tu.defaultProps={theme:"default",preventOuterScroll:!1,scrollbarVisibility:la.ONLY_ACTIVE,fallback:!1,preventStackContext:!1,dataQaType:"uikit/scroll",contentInnerOffsetBottom:0,contentInnerOffsetTop:0,barMinHeight:0};const F2=Tu;function W2(e){const{dataQaType:t,dataQaData:n}=e;return{"data-qa-type":t,"data-qa-data":typeof n=="object"?JSON.stringify(n):n}}const H2="_text_1e0u0_1",U2="_text_size_11_1e0u0_11",V2="_text_bold_1e0u0_11",Q2="_text_size_13_1e0u0_11",q2="_text_size_13_small_1e0u0_11",G2="_text_size_15_1e0u0_11",Z2="_text_size_15_small_1e0u0_11",Y2="_text_size_17_1e0u0_11",K2="_text_size_19_1e0u0_11",X2="_text_uppercase_1e0u0_19",J2="_text_size_20_1e0u0_50",ek="_text_size_24_1e0u0_56",tk="_text_size_28_1e0u0_62",nk="_text_size_36_1e0u0_68",rk="_text_size_40_1e0u0_74",ok="_text_size_50_1e0u0_80",ik="_text_size_inherit_1e0u0_86",lk="_text_sizeTabletS_11_1e0u0_94",sk="_text_sizeTabletS_13_1e0u0_94",ak="_text_sizeTabletS_13_small_1e0u0_94",uk="_text_sizeTabletS_15_1e0u0_94",ck="_text_sizeTabletS_15_small_1e0u0_94",dk="_text_sizeTabletS_17_1e0u0_94",fk="_text_sizeTabletS_19_1e0u0_94",pk="_text_sizeTabletS_20_1e0u0_133",hk="_text_sizeTabletS_24_1e0u0_139",_k="_text_sizeTabletS_28_1e0u0_145",gk="_text_sizeTabletS_36_1e0u0_151",mk="_text_sizeTabletS_40_1e0u0_157",vk="_text_sizeTabletS_50_1e0u0_163",yk="_text_sizeTabletS_inherit_1e0u0_169",xk="_text_sizeTabletL_11_1e0u0_177",wk="_text_sizeTabletL_13_1e0u0_177",Sk="_text_sizeTabletL_13_small_1e0u0_177",kk="_text_sizeTabletL_15_1e0u0_177",Ek="_text_sizeTabletL_15_small_1e0u0_177",Tk="_text_sizeTabletL_17_1e0u0_177",Ck="_text_sizeTabletL_19_1e0u0_177",bk="_text_sizeTabletL_20_1e0u0_216",zk="_text_sizeTabletL_24_1e0u0_222",Dk="_text_sizeTabletL_28_1e0u0_228",Mk="_text_sizeTabletL_36_1e0u0_234",Lk="_text_sizeTabletL_40_1e0u0_240",Nk="_text_sizeTabletL_50_1e0u0_246",Pk="_text_sizeTabletL_inherit_1e0u0_252",Ok="_text_sizeDesktopS_11_1e0u0_260",Ik="_text_sizeDesktopS_13_1e0u0_260",jk="_text_sizeDesktopS_13_small_1e0u0_260",Ak="_text_sizeDesktopS_15_1e0u0_260",Rk="_text_sizeDesktopS_15_small_1e0u0_260",Bk="_text_sizeDesktopS_17_1e0u0_260",$k="_text_sizeDesktopS_19_1e0u0_260",Fk="_text_sizeDesktopS_20_1e0u0_299",Wk="_text_sizeDesktopS_24_1e0u0_305",Hk="_text_sizeDesktopS_28_1e0u0_311",Uk="_text_sizeDesktopS_36_1e0u0_317",Vk="_text_sizeDesktopS_40_1e0u0_323",Qk="_text_sizeDesktopS_50_1e0u0_329",qk="_text_sizeDesktopS_inherit_1e0u0_335",Gk="_text_sizeDesktopM_11_1e0u0_343",Zk="_text_sizeDesktopM_13_1e0u0_343",Yk="_text_sizeDesktopM_13_small_1e0u0_343",Kk="_text_sizeDesktopM_15_1e0u0_343",Xk="_text_sizeDesktopM_15_small_1e0u0_343",Jk="_text_sizeDesktopM_17_1e0u0_343",e4="_text_sizeDesktopM_19_1e0u0_343",t4="_text_sizeDesktopM_20_1e0u0_382",n4="_text_sizeDesktopM_24_1e0u0_388",r4="_text_sizeDesktopM_28_1e0u0_394",o4="_text_sizeDesktopM_36_1e0u0_400",i4="_text_sizeDesktopM_40_1e0u0_406",l4="_text_sizeDesktopM_50_1e0u0_412",s4="_text_sizeDesktopM_inherit_1e0u0_418",a4="_text_sizeDesktopL_11_1e0u0_426",u4="_text_sizeDesktopL_13_1e0u0_426",c4="_text_sizeDesktopL_13_small_1e0u0_426",d4="_text_sizeDesktopL_15_1e0u0_426",f4="_text_sizeDesktopL_15_small_1e0u0_426",p4="_text_sizeDesktopL_17_1e0u0_426",h4="_text_sizeDesktopL_19_1e0u0_426",_4="_text_sizeDesktopL_20_1e0u0_465",g4="_text_sizeDesktopL_24_1e0u0_471",m4="_text_sizeDesktopL_28_1e0u0_477",v4="_text_sizeDesktopL_36_1e0u0_483",y4="_text_sizeDesktopL_40_1e0u0_489",x4="_text_sizeDesktopL_50_1e0u0_495",w4="_text_sizeDesktopL_inherit_1e0u0_501",S4="_text_align_left_1e0u0_508",k4="_text_align_center_1e0u0_512",E4="_text_align_right_1e0u0_516",T4="_text_align_inherit_1e0u0_520",C4="_text_align_justify_1e0u0_524",b4="_text_alignTabletS_left_1e0u0_529",z4="_text_alignTabletS_center_1e0u0_532",D4="_text_alignTabletS_right_1e0u0_535",M4="_text_alignTabletS_inherit_1e0u0_538",L4="_text_alignTabletS_justify_1e0u0_541",N4="_text_alignTabletL_left_1e0u0_547",P4="_text_alignTabletL_center_1e0u0_550",O4="_text_alignTabletL_right_1e0u0_553",I4="_text_alignTabletL_inherit_1e0u0_556",j4="_text_alignTabletL_justify_1e0u0_559",A4="_text_alignDesktopS_left_1e0u0_565",R4="_text_alignDesktopS_center_1e0u0_568",B4="_text_alignDesktopS_right_1e0u0_571",$4="_text_alignDesktopS_inherit_1e0u0_574",F4="_text_alignDesktopS_justify_1e0u0_577",W4="_text_alignDesktopM_left_1e0u0_583",H4="_text_alignDesktopM_center_1e0u0_586",U4="_text_alignDesktopM_right_1e0u0_589",V4="_text_alignDesktopM_inherit_1e0u0_592",Q4="_text_alignDesktopM_justify_1e0u0_595",q4="_text_alignDesktopL_left_1e0u0_601",G4="_text_alignDesktopL_center_1e0u0_604",Z4="_text_alignDesktopL_right_1e0u0_607",Y4="_text_alignDesktopL_inherit_1e0u0_610",K4="_text_alignDesktopL_justify_1e0u0_613",X4="_text_capitalize_1e0u0_618",J4="_text_overflowEllipsis_1e0u0_627",e3="_text_lineThrough_1e0u0_634",ue={text:H2,text_size_11:U2,text_bold:V2,text_size_13:Q2,text_size_13_small:q2,text_size_15:G2,text_size_15_small:Z2,text_size_17:Y2,text_size_19:K2,text_uppercase:X2,text_size_20:J2,text_size_24:ek,text_size_28:tk,text_size_36:nk,text_size_40:rk,text_size_50:ok,text_size_inherit:ik,text_sizeTabletS_11:lk,text_sizeTabletS_13:sk,text_sizeTabletS_13_small:ak,text_sizeTabletS_15:uk,text_sizeTabletS_15_small:ck,text_sizeTabletS_17:dk,text_sizeTabletS_19:fk,text_sizeTabletS_20:pk,text_sizeTabletS_24:hk,text_sizeTabletS_28:_k,text_sizeTabletS_36:gk,text_sizeTabletS_40:mk,text_sizeTabletS_50:vk,text_sizeTabletS_inherit:yk,text_sizeTabletL_11:xk,text_sizeTabletL_13:wk,text_sizeTabletL_13_small:Sk,text_sizeTabletL_15:kk,text_sizeTabletL_15_small:Ek,text_sizeTabletL_17:Tk,text_sizeTabletL_19:Ck,text_sizeTabletL_20:bk,text_sizeTabletL_24:zk,text_sizeTabletL_28:Dk,text_sizeTabletL_36:Mk,text_sizeTabletL_40:Lk,text_sizeTabletL_50:Nk,text_sizeTabletL_inherit:Pk,text_sizeDesktopS_11:Ok,text_sizeDesktopS_13:Ik,text_sizeDesktopS_13_small:jk,text_sizeDesktopS_15:Ak,text_sizeDesktopS_15_small:Rk,text_sizeDesktopS_17:Bk,text_sizeDesktopS_19:$k,text_sizeDesktopS_20:Fk,text_sizeDesktopS_24:Wk,text_sizeDesktopS_28:Hk,text_sizeDesktopS_36:Uk,text_sizeDesktopS_40:Vk,text_sizeDesktopS_50:Qk,text_sizeDesktopS_inherit:qk,text_sizeDesktopM_11:Gk,text_sizeDesktopM_13:Zk,text_sizeDesktopM_13_small:Yk,text_sizeDesktopM_15:Kk,text_sizeDesktopM_15_small:Xk,text_sizeDesktopM_17:Jk,text_sizeDesktopM_19:e4,text_sizeDesktopM_20:t4,text_sizeDesktopM_24:n4,text_sizeDesktopM_28:r4,text_sizeDesktopM_36:o4,text_sizeDesktopM_40:i4,text_sizeDesktopM_50:l4,text_sizeDesktopM_inherit:s4,text_sizeDesktopL_11:a4,text_sizeDesktopL_13:u4,text_sizeDesktopL_13_small:c4,text_sizeDesktopL_15:d4,text_sizeDesktopL_15_small:f4,text_sizeDesktopL_17:p4,text_sizeDesktopL_19:h4,text_sizeDesktopL_20:_4,text_sizeDesktopL_24:g4,text_sizeDesktopL_28:m4,text_sizeDesktopL_36:v4,text_sizeDesktopL_40:y4,text_sizeDesktopL_50:x4,text_sizeDesktopL_inherit:w4,text_align_left:S4,text_align_center:k4,text_align_right:E4,text_align_inherit:T4,text_align_justify:C4,text_alignTabletS_left:b4,text_alignTabletS_center:z4,text_alignTabletS_right:D4,text_alignTabletS_inherit:M4,text_alignTabletS_justify:L4,text_alignTabletL_left:N4,text_alignTabletL_center:P4,text_alignTabletL_right:O4,text_alignTabletL_inherit:I4,text_alignTabletL_justify:j4,text_alignDesktopS_left:A4,text_alignDesktopS_center:R4,text_alignDesktopS_right:B4,text_alignDesktopS_inherit:$4,text_alignDesktopS_justify:F4,text_alignDesktopM_left:W4,text_alignDesktopM_center:H4,text_alignDesktopM_right:U4,text_alignDesktopM_inherit:V4,text_alignDesktopM_justify:Q4,text_alignDesktopL_left:q4,text_alignDesktopL_center:G4,text_alignDesktopL_right:Z4,text_alignDesktopL_inherit:Y4,text_alignDesktopL_justify:K4,text_capitalize:X4,text_overflowEllipsis:J4,text_lineThrough:e3},t3=["children","uppercase","tagName","size","sizeTabletL","sizeTabletS","sizeDesktopS","sizeDesktopM","sizeDesktopL","align","alignTabletS","alignTabletL","alignDesktopS","alignDesktopM","alignDesktopL","overflowEllipsis","verticalAlign","bold","display","lineThrough","cobrowsingSecure","whiteSpace","wordWrap","capitalize","cursor","color","dataQaType","UNSAFE_className","UNSAFE_style"],Vh=D.forwardRef((e,t)=>{const{children:n,uppercase:r,tagName:o,size:i,sizeTabletL:l,sizeTabletS:s,sizeDesktopS:a,sizeDesktopM:u,sizeDesktopL:c,align:f,alignTabletS:p,alignTabletL:m,alignDesktopS:g,alignDesktopM:y,alignDesktopL:T,overflowEllipsis:h,verticalAlign:d,bold:_,display:x,lineThrough:E,cobrowsingSecure:w,whiteSpace:C,wordWrap:k,capitalize:O,cursor:N,color:H,dataQaType:te,UNSAFE_className:De,UNSAFE_style:Ie}=e,Nt=ye(e,t3);return b.createElement(o||"div",V({},Nt,{ref:t,style:V({whiteSpace:C,verticalAlign:d,display:x,wordWrap:k,cursor:N,color:H},Ie),className:Ce({[ue.text]:!0,[ue[`text_size_${i}`]]:!0,[ue[`text_sizeTabletS_${s||i}`]]:!0,[ue[`text_sizeTabletL_${l||s||i}`]]:!0,[ue[`text_sizeDesktopS_${a||l||s||i}`]]:!0,[ue[`text_sizeDesktopM_${u||a||l||s||i}`]]:!0,[ue[`text_sizeDesktopL_${c||u||a||l||s||i}`]]:!0,[ue[`text_align_${f}`]]:f,[ue[`text_alignTabletS_${p}`]]:p,[ue[`text_alignTabletL_${m}`]]:m,[ue[`text_alignDesktopS_${g}`]]:g,[ue[`text_alignDesktopM_${y}`]]:y,[ue[`text_alignDesktopL_${T}`]]:T,[ue.text_bold]:_,[ue.text_overflowEllipsis]:h,[ue.text_lineThrough]:E,[ue.text_uppercase]:r,[ue.text_capitalize]:O},De)},w?{"data-cobrowsing-secure":"text"}:{},W2({dataQaType:te})),n)});Vh.defaultProps={dataQaType:"uikit/text",bold:!1,capitalize:!1,cobrowsingSecure:!1,lineThrough:!1,overflowEllipsis:!1,size:13,tagName:"div",uppercase:!1};const n3=Vh,r3="_button_nc817_1",o3={button:r3};function ri({className:e,children:t,...n}){return v.jsx("button",{"data-testid":de.button.root,...n,className:Ce(o3.button,e),children:t})}function Ed(e){const{dataQaType:t,dataQaData:n}=e;return{"data-qa-type":t,"data-qa-data":typeof n=="object"?JSON.stringify(n):n}}function i3(e){const t=window.getComputedStyle(e,null),n=t.getPropertyValue("box-sizing"),r=e.scrollHeight||e.getBoundingClientRect().height;if(n==="border-box"){const o=parseInt(t.getPropertyValue("padding-top"),10),i=parseInt(t.getPropertyValue("padding-bottom"),10),l=parseInt(t.getPropertyValue("border-top-width"),10),s=parseInt(t.getPropertyValue("border-bottom-width"),10);return r-o-i-l-s}return r}function l3(e){const t=window.getComputedStyle(e,null),n=parseInt(t.getPropertyValue("font-size"),10),r=parseInt(t.getPropertyValue("line-height"),10);return Number.isNaN(r)?n*1.2:r}function Td(e){const t=i3(e),n=l3(e);return Math.ceil(t/n)}const s3=e=>{const[t,n]=D.useState();return ph(()=>{e.current&&n(e.current.getBoundingClientRect())},[e]),xh(e,r=>n(r.contentRect)),t},a3=e=>{var t;let n=(t=s3(e))==null?void 0:t.height;if(e.current&&n){const r=window.getComputedStyle(e.current,null),o=parseInt(r.getPropertyValue("line-height"),10);o&&!Number.isNaN(o)&&(n=Math.round(n/o)*o)}return n},u3=e=>{const[t,n]=D.useState(0);return ph(()=>{e!=null&&e.current&&n(Td(e.current))},[e]),xh(e,r=>{n(Td(r.target))}),t},c3="_root_grkti_1",d3="_root_animationDisabled_grkti_10",f3="_inner_grkti_16",Xl={root:c3,root_animationDisabled:d3,inner:f3},p3=D.forwardRef((e,t)=>{const{dataQaType:n="uikit/lineClamp",dataQaData:r,children:o,maxLines:i,disableAnimation:l}=e,s=D.useRef(null),a=c=>{s.current=c,t&&(typeof t=="function"&&t(c),typeof t=="object"&&(t.current=c))},u=a3(s);return b.createElement("span",Object.assign({},Ed({dataQaType:n,dataQaData:r}),{className:Ce(Xl.root,{[Xl.root_animationDisabled]:l}),style:{height:u}}),b.createElement("span",Object.assign({},Ed({dataQaType:`${n}.inner`}),{ref:a,className:Xl.inner,style:i?{WebkitLineClamp:i}:{visibility:"hidden"}}),b.createElement("span",{style:i?{}:{visibility:"visible"}},o)))}),h3=p3,_3="_spoiler__button_1ufzs_1",Cd={spoiler__button:_3};function g3({onChange:e,...t}){const[n,r]=D.useState(t.maxLines),o=D.useRef(null),i=u3(o),l=()=>{const s=n===t.maxLines?void 0:t.maxLines;r(s),e==null||e(!s)};return v.jsxs(ge,{className:Cd.spoiler,gaps:"xxs",children:[v.jsx(h3,{...t,maxLines:n,ref:o}),!!(t!=null&&t.maxLines)&&i>t.maxLines&&v.jsx(ri,{className:Cd.spoiler__button,onClick:l,"data-testid":n?de.spoiler.showMoreButton:de.spoiler.showLessButton,children:n?le.spoiler.show:le.spoiler.hide})]})}function m3(){return v.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[v.jsxs("mask",{id:"mask0_432_40355",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"3",y:"1",width:"12",height:"15",children:[v.jsx("path",{d:"M7 1.00098C4.79086 1.00098 3 2.79184 3 5.00098V8.00098H7V1.00098Z",fill:"url(#paint0_linear_432_40355)"}),v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.01803 5.01643L3 5.00098V8.00098C3 10.2101 4.79086 12.001 7 12.001H9.5L9.5 15.001L15 10.001L9.5 5.00098L9.5 8.00098L7.5 8.00098H6.33333C4.61017 8.00098 3.1924 6.69346 3.01803 5.01643Z",fill:"currentColor"})]}),v.jsx("g",{mask:"url(#mask0_432_40355)",children:v.jsx("path",{d:"M0 0.000976562H16V16.001H0V0.000976562Z",fill:"currentColor"})}),v.jsx("defs",{children:v.jsxs("linearGradient",{id:"paint0_linear_432_40355",x1:"5",y1:"8.00098",x2:"5",y2:"1.00098",gradientUnits:"userSpaceOnUse",children:[v.jsx("stop",{stopOpacity:"0.6"}),v.jsx("stop",{offset:"1",stopOpacity:"0"})]})})]})}function v3(){return v.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[v.jsx("mask",{id:"mask0_432_40362",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"1",y:"1",width:"14",height:"15",children:v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 8.00098C15 11.867 11.866 15.001 8 15.001C4.13401 15.001 1 11.867 1 8.00098C1 4.13498 4.13401 1.00098 8 1.00098C11.866 1.00098 15 4.13498 15 8.00098ZM11.1003 11.924C10.2481 12.5984 9.17109 13.001 8 13.001C5.23858 13.001 3 10.7624 3 8.00098C3 7.13341 3.22096 6.31744 3.60968 5.60629L11.1003 11.924ZM12.3903 10.3957L4.8997 4.07795C5.75186 3.40359 6.82891 3.00098 8 3.00098C10.7614 3.00098 13 5.23955 13 8.00098C13 8.86855 12.779 9.68451 12.3903 10.3957Z",fill:"currentColor"})}),v.jsx("g",{mask:"url(#mask0_432_40362)",children:v.jsx("path",{d:"M0 0.000976562H16V16.001H0V0.000976562Z",fill:"currentColor"})})]})}var y3=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=bd[t.format]||bd.default;window.clipboardData.setData(f,e)}else c.clipboardData.clearData(),c.clipboardData.setData(t.format,e);t.onCopy&&(c.preventDefault(),t.onCopy(c.clipboardData))}),document.body.appendChild(s),i.selectNodeContents(s),l.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");a=!0}catch(c){n&&console.error("unable to copy using execCommand: ",c),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),a=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=S3("message"in t?t.message:w3),window.prompt(r,e)}}finally{l&&(typeof l.removeRange=="function"?l.removeRange(i):l.removeAllRanges()),s&&document.body.removeChild(s),o()}return a}var E3=k3;const T3=tt(E3);function C3(){return v.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 15H6C6.55228 15 7 15.4477 7 16C7 16.5523 6.55228 17 6 17H5C3.34315 17 2 15.6569 2 14V5C2 3.34315 3.34315 2 5 2H14C15.6569 2 17 3.34315 17 5V6C17 6.55228 16.5523 7 16 7C15.4477 7 15 6.55228 15 6V5C15 4.44772 14.5523 4 14 4H5C4.44772 4 4 4.44772 4 5V14C4 14.5523 4.44772 15 5 15ZM10 11C10 10.4477 10.4477 10 11 10H19C19.5523 10 20 10.4477 20 11V19C20 19.5523 19.5523 20 19 20H11C10.4477 20 10 19.5523 10 19V11ZM19 8H11C9.34315 8 8 9.34315 8 11V19C8 20.6569 9.34315 22 11 22H19C20.6569 22 22 20.6569 22 19V11C22 9.34315 20.6569 8 19 8Z",fill:"currentColor"})})}const b3="_helper__title_1n9bn_1",z3="_helper__bubble_1n9bn_1",D3="_helper__copy_1n9bn_1",M3="_helper__iconWrapper_1n9bn_1",oi={helper__title:b3,helper__bubble:z3,helper__copy:D3,helper__iconWrapper:M3};function L3({operatorId:e,messageId:t,communicationId:n,client:r,phrase:o}){const[i,l]=Vy({leaveDelay:i_}),s=o.getText({operator:B.state.operator,client:r}),a=()=>{T3(s),l(),_e.copyPhrase({operatorId:String(e),communicationId:String(n),phraseId:String(t),helpPhraseId:String(o.id)})};return v.jsxs(Mi,{className:oi.helper__bubble,"data-testid":de.helper.root,children:[v.jsx(ge,{className:oi.helper__copy,tabIndex:0,onClick:a,"data-testid":de.helper.copyButton,children:v.jsx(nr,{direction:"bottom",align:"start",isActive:i,popoverContent:le.copied,children:v.jsx("span",{className:oi.helper__iconWrapper,children:v.jsx(C3,{})})})}),v.jsx(ge,{padding:"16px 16px 16px 12px",children:v.jsx("div",{children:s})})]})}function N3({negative:e,operatorId:t,messageId:n}){return v.jsxs(ge,{gaps:"xs","data-testid":de.helpers.root,children:[v.jsx("span",{className:oi.helper__title,children:le.tryToReassureTheClient}),v.jsx(ge,{gaps:"xs","data-testid":de.helpers.helperList,children:e.phrasesToCalm.map(r=>v.jsx(L3,{phrase:r,client:e.client,operatorId:t,messageId:n,communicationId:e.communicationId},r.id))})]})}const P3=3,O3="_message_10ls6_1",I3="_message__closeButtonWrapper_10ls6_1",j3="_message__closeButton_10ls6_1",A3="_message__name_10ls6_1",R3="_message__time_10ls6_1",B3="_message__bubble_10ls6_1",$3="_message__button_10ls6_1",vt={message:O3,message__closeButtonWrapper:I3,message__closeButton:j3,message__name:A3,message__time:R3,message__bubble:B3,message__button:$3},F3=D.memo(function({negative:t,negative:{communicationId:n,message:r},operatorId:o}){const i=r.id,l=()=>{B.actions.notANegative(t.client.id),_e.hideChat({operatorId:String(o),communicationId:String(n),phraseId:String(i)})},s=()=>{B.actions.notANegative(t.client.id),_e.notMistake({operatorId:String(o),communicationId:String(n),phraseId:String(i)})},a=()=>{Pi.emit(co.OPEN_COMMUNICATION,{communicationId:n}),_e.visitComm({operatorId:String(o),communicationId:String(n),phraseId:String(i)})},u=c=>{c&&_e.showAllChat({operatorId:String(o),communicationId:String(n),phraseId:String(i)})};return v.jsxs(ge,{className:vt.message,alignCross:"start",padding:"s","data-testid":de.chat.message.root,children:[v.jsx("div",{className:vt.message__closeButtonWrapper,children:v.jsx(nr,{popoverContent:le.hideFromTheFeed,children:v.jsx(ri,{className:vt.message__closeButton,onClick:l,"data-testid":de.chat.message.closeButton,children:v.jsx(Eu,{})})})}),v.jsxs(ge,{gaps:"s",children:[v.jsxs(ge,{gaps:"xxxs",children:[v.jsxs(ge,{gaps:"xxs",children:[v.jsxs(Mi,{className:vt.message__header,alignCross:"center",gaps:"xxs",children:[v.jsx("span",{className:vt.message__name,children:t.client.name}),v.jsx("span",{className:vt.message__time,children:le.messageTime(t.message.time)})]}),v.jsx("div",{className:vt.message__bubble,children:v.jsx(n3,{whiteSpace:"pre-wrap",size:"15_small",children:v.jsx(g3,{maxLines:P3,onChange:u,children:t.message.text})})})]}),v.jsxs(Mi,{gaps:"s",padding:"4px 0",children:[v.jsxs(ri,{className:vt.message__button,onClick:a,"data-testid":de.chat.message.openChatButton,children:[v.jsx(m3,{}),le.goToChat]}),v.jsxs(ri,{className:vt.message__button,onClick:s,"data-testid":de.chat.message.notANegativeButton,children:[v.jsx(v3,{}),le.notANegative]})]})]}),v.jsx(N3,{negative:t,operatorId:o,messageId:i})]})]})}),W3="_body_15iya_1",H3={body:W3},U3=e=>({operatorId:qy(e),negatives:Dh(e)});function V3(){const{operatorId:e,negatives:t}=wn(U3);return v.jsx("div",{className:H3.body,children:v.jsx(F2,{children:v.jsx(ge,{alignCross:"start",gaps:"m",padding:"0px 24px 4px",children:t.map(n=>v.jsx(F3,{negative:n,operatorId:e},n.client.id))})})})}const Q3="_chat_ppygf_1",q3={chat:Q3},G3=e=>u_[e.chatState];function Z3(){const e=wn(G3);return v.jsxs(ge,{className:q3.chat,style:{height:e},children:[v.jsx(d2,{}),v.jsx(V3,{})]})}const Y3="_grow_c2qg5_1",K3="_grow_up_c2qg5_1",zd={grow:Y3,grow_up:K3};function X3(e){return v.jsx("div",{className:Ce(zd.grow,e.in&&zd.grow_up),children:e.children})}function J3(){return v.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[v.jsxs("g",{clipPath:"url(#clip0_196_109167)",children:[v.jsxs("mask",{id:"mask0_196_109167",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:[v.jsx("path",{d:"M0 10C6 8.5 7.5 7 9 1C10.5 7 12 8.5 18 10C12 11.5 10.5 13 9 19C7.5 13 6 11.5 0 10Z",fill:"black"}),v.jsx("path",{d:"M12 18.5C15.6667 17.5833 16.5833 16.6667 17.5 13C18.4167 16.6667 19.3333 17.5833 23 18.5C19.3333 19.4167 18.4167 20.3333 17.5 24C16.5833 20.3333 15.6667 19.4167 12 18.5Z",fill:"url(#paint0_linear_196_109167)"}),v.jsx("path",{d:"M16 4C18.6667 3.33333 19.3333 2.66667 20 0C20.6667 2.66667 21.3333 3.33333 24 4C21.3333 4.66667 20.6667 5.33333 20 8C19.3333 5.33333 18.6667 4.66667 16 4Z",fill:"url(#paint1_linear_196_109167)"})]}),v.jsx("g",{mask:"url(#mask0_196_109167)",children:v.jsx("rect",{width:"24",height:"24",fill:"currentColor"})})]}),v.jsxs("defs",{children:[v.jsxs("linearGradient",{id:"paint0_linear_196_109167",x1:"17.5",y1:"13",x2:"17.5",y2:"24",gradientUnits:"userSpaceOnUse",children:[v.jsx("stop",{}),v.jsx("stop",{offset:"1",stopOpacity:"0.75"})]}),v.jsxs("linearGradient",{id:"paint1_linear_196_109167",x1:"20",y1:"0",x2:"20",y2:"8",gradientUnits:"userSpaceOnUse",children:[v.jsx("stop",{}),v.jsx("stop",{offset:"1",stopOpacity:"0.65"})]}),v.jsx("clipPath",{id:"clip0_196_109167",children:v.jsx("rect",{width:"24",height:"24",fill:"white"})})]})]})}const eE=e=>({hasNegative:Mh(e),disabled:e.hasError,theme:e.theme,open:e.open}),tE="_fab_6dh4r_1",nE="_fab__inner_6dh4r_1",rE="_fab__inner_disabled_6dh4r_1",oE="_fab__inner_active_6dh4r_1",iE="_fab__badge_6dh4r_1",kr={fab:tE,fab__inner:nE,fab__inner_disabled:rE,fab__inner_active:oE,fab__badge:iE},lE=()=>{B.actions.toggleVisibility();const e=String(B.state.operator.id);(B.state.open?_e.openWidget:_e.foldWidget)({operatorId:e})};function Dd(){const{hasNegative:e,theme:t,open:n,disabled:r}=wn(eE);return v.jsx("div",{"data-tds-theme":t,onClick:r?void 0:lE,className:kr.fab,"data-testid":de.fab.root,children:v.jsxs("div",{className:Ce(kr.fab__inner,{[kr.fab__inner_active]:n,[kr.fab__inner_disabled]:r}),children:[e&&v.jsx("div",{className:kr.fab__badge,"data-testid":de.fab.badge}),v.jsx(J3,{})]})})}const sE="_box_1vq9m_1",aE={box:sE};function uE({children:e}){const t=mu();return v.jsx("div",{className:aE.box,"data-tds-theme":t,"data-testid":de.box.root,children:e})}const cE=e=>({hasNegative:Mh(e),initialized:Qy(e),hasError:e.hasError,open:e.open});const dE=(e,t)=>{B.actions.dispatchError(),_e.logCapturedError({message:e.message,stackstrace:t.componentStack})};function fE(){const{open:e,hasNegative:t,initialized:n,hasError:r}=wn(cE),o=M1(e,l_),i=o||e,l=o&&e;return n?r?v.jsx(nr,{popoverContent:le.widgetIsNotResponding,direction:"left",customPadding:12,closeOnPopoverClick:!1,hoverDelay:0,children:v.jsx(Dd,{})}):v.jsxs(v.Fragment,{children:[v.jsx(GS,{children:v.jsx(Dd,{})}),i&&v.jsx(ih,{children:v.jsx(KS,{children:v.jsx(X3,{in:l,children:v.jsx(uE,{children:v.jsx(Xp,{onError:dE,children:t?v.jsx(Z3,{}):v.jsx(RS,{})})})})})})]}):null}const pE=(e,t)=>{_e.logCapturedError({message:e.message,stackstrace:t.componentStack})};function hE(){return v.jsx(Xp,{onError:pE,children:v.jsx(fE,{})})}let Jl,es,Md,Ld;const Qh=({element:e,apiKey:t,...n})=>{if(Jl=e instanceof Element?e:document.querySelector(e),!Jl)throw new Error("[TQM Copilot] Unable to find the element where to render the widget");B.actions.initialize(n),Ii.initialize(t),_e.initialize({operatorId:String(n.operator.id)}),es??(es=document.createElement("div")),Md??(Md=Kp(es)),Ld||(Ld=!0,Md.render(v.jsx(hE,{}))),Jl.appendChild(es)},qh=Pi.on,Gh=Pi.off,Zh=B.actions.update,Yh=Ud.scoreClientMessage,Kh=Ud.toggleVisibility,_E={scoreClientMessage:Yh,update:Zh,toggleVisibility:Kh,init:Qh,on:qh,off:Gh,Events:co};exports.Events=co;exports.default=_E;exports.init=Qh;exports.off=Gh;exports.on=qh;exports.scoreClientMessage=Yh;exports.toggleVisibility=Kh;exports.update=Zh;