!function(e,t){for(var n in t)e[n]=t[n]}(this,function(e){function t(n){if(o[n])return o[n].exports;var i=o[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n=window.ComagicJsonp;window.ComagicJsonp=function(o,r){for(var s,a,l=0,c=[];l<o.length;l++)a=o[l],i[a]&&c.push.apply(c,i[a]),i[a]=0;for(s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);for(n&&n(o,r);c.length;)c.shift().call(null,t)};var o={},i={0:0};return t.e=function(e,n){if(0===i[e])return n.call(null,t);if(void 0!==i[e])i[e].push(n);else{i[e]=[n];var o=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.src=t.p+"comagic.widgets.min.js",o.appendChild(r)}},t.m=e,t.c=o,t.p="",t(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=n(4);if(window.__isComagicScriptLoaded)throw new Error(i.default.DOUBLE_CODE_EXCEPTION);window.__isComagicScriptLoaded=!0;var r=n(7),s=n(9),a=n(12),l=n(16),c=n(15),u=n(21),d=n(31),p=n(28),f=n(29),h=n(3),m=h.essential.apply,g=n(33),_=n(41),v=n(42),b=n(43);t.Comagic=p.API,t.ComagicWidget={},t.Comagic.Captcha={},t.ComagicWidget.openSitePhonePanel=t.Comagic.openVASitePhonePanel,t.ComagicWidget.sitePhoneCall=t.Comagic.sitePhoneCall,t.Comagic.UI={},t.Comagic.UI.registerViewController=v.registerViewController,s.EventBus.on("ss:waitforloadcorescripts",function(e,i,a){var c=function(e){return i.widgets.hasOwnProperty(e)&&null!==i.widgets[e]},u=["personal_form","call_generator","offline_message_generator"];if(i.widgets.hasOwnProperty("lead")){delete i.widgets.lead;for(var p=0;p<u.length;p++)i.widgets[u[p]]={}}g.init(_.DEFAULT_WIDGET_VIEWS_OPTIONS,"prod"),d.Core.init(i,a),n.p=new h.essential.URL(a).replace({path:"/widget/js/"});var v=i.comagic_web_url,b=""+v+i.api.path+i.api.key+"/";f.ComagicWebApi.init(b),n.e(1,function(){var e=n(44).Ws,u=n(109).ConsultantController,d=n(114).LeadController,p=n(115).SitephoneController,f=n(116).ConsultantApi,h=n(110).Hub;m(t.Comagic,f),m(t.Comagic.UI,n(38)),m(t.Comagic.UI,n(117)),t.Comagic.Captcha.get_captcha=t.Comagic.getCaptcha,r.Queue.registerAndProcess(["uiApiLoaded"],{__commands:["uiApiLoaded"],uiApiLoaded:function(e){return e&&e()}},!0),c("sitephone")&&!l.SiteSettings.params("analytics")&&(p.init(i.widgets.sitephone,a),h.send("sitephone","sitephone_init")),r.Queue.push("waitForTrackViewAndRun",function(){var t=c("consultant"),n=c("sitephone"),r=c("personal_form"),f=t||r;f&&e.onSession(l.SiteSettings.info().host||i.server_url),n&&(p.init(i.widgets.sitephone,a),f||2===+o.CookieShop.get(o.CookieShop.ALY_OFFLINE)||h.send("sitephone","sitephone_init")),t&&u.init(a),(r||t)&&d.init(a),h.send("consultant","init",{get_history:!u.isChatHistoryExist(),get_vcard:t}),s.EventBus.on("ws:timetoreinit",function(){h.send("consultant","reinit")})})})}),l.SiteSettings.init(),s.EventBus.on("aly:trackview",u.CallTracking.onAlyTrackview),s.EventBus.on("aly:trackview",a.Events.onAlyTrackview),s.EventBus.on("aly:trackview",b.VisitorIdEmbedder.run),r.Queue.push("waitForSiteSettingsAndRun",function(e){c.Analytics.init(),u.CallTracking.setDynamicalReplacementFromSettings(e)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(2);!function(e){function t(e){v=e()}function n(){this._expires||(this._expires={},this._expires[this.DEBUG]=-1,this._expires[this.DT]=18e5,this._expires[this.WS_OFFLINE]=18e5,this._expires[this.ALY_OFFLINE]=18e5,this._expires[this.SESSION]=18e5,this._expires[this.COMAGIC_ID]=63072e6)}function o(e){return this._expires[e]}function r(){this._setupExpires()}function s(e){return e+v}function a(e,t,n){return i.cookie.set(this.getName(e),t,n||this._getExpires(e))}function l(e){return i.cookie.get(this.getName(e))}function c(e){return i.cookie.getAll(this.getName(e))}function u(e){return this.remove(e)}function d(e){return i.cookie.remove(this.getName(e))}function p(){var e=this.getComagicId();return e?e.split(this._ciSeparator)[0]:null}function f(){var e=this.get(this.VISITOR);return e=e?e.split(this._separator):[],{key:e[0],id:e[1]}}function h(){var e=this.getComagicId();return e?e.split(this._ciSeparator)[1]:null}function m(){var e=this.get(this.SESSION);return e=e?e.split(this._separator):[],{key:e[0]}}function g(e){this.set(this.COMAGIC_ID,e)}function _(){var e,t=this.getAll(this.COMAGIC_ID);if(!t.length)return null;e=t.shift();for(var n,o=0;n=t[o];o++)+n.split(this._ciSeparator)[2]>+e.split(this._ciSeparator)[2]&&(e=n);return e}var v;e.BANNER_STATE="_comagic_banner_state",e.DEBUG="_comagic_debug",e.DT="_cmg_dt",e.WS_OFFLINE="_comagic_offline",e.ALY_OFFLINE="_comagic_aly_offline",e.PHONE_REPLACEMENT="_comagic_phr",e.COMAGIC_ID="_comagic_id",e.SESSION="_comagic_session",e.VISITOR="_comagic_visitor",e._separator="||",e._ciSeparator=".",e._expires=null,e.setUniquePostfix=t,e._setupExpires=n,e._getExpires=o,e.setup=r,e.getName=s,e.set=a,e.get=l,e.getAll=c,e.del=u,e.remove=d,e.getVisitorId=p,e.getVisitorObsolete=f,e.getSessionId=h,e.getSessionObsolete=m,e.setComagicId=g,e.getComagicId=_}(o=t.CookieShop||(t.CookieShop={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(3);!function(e){function t(e,t,n){i.essential.isUndefined(t)&&this.remove(e),n=n||63072e6;var o=new Date,r=[];o.setTime(o.getTime()+n),r.push(e+"="+encodeURIComponent(t)),r.push("path=/"),this.getDomain()&&r.push("domain="+this.getDomain()),n!=-1&&r.push("expires="+o.toUTCString()),document.cookie=r.join(";")}function n(e){var t=o.getAll(e);return t.length?t[0]:null}function r(e){for(var t,n=[],o=e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1"),i=new RegExp("(?:^|; )"+o+"=([^;]*)","g");t=i.exec(document.cookie);)n.push(decodeURIComponent(t[1]));return n}function s(e){var t=new Date(0).toUTCString();document.cookie=e+"=; expires="+t+"; domain="+o.getDomain()+"; path=/;"}function a(){return u}function l(e){u=e;var t="cmgtest";this.set(t,t),t!=this.get(t)&&(u=null),this.remove(t)}function c(){return navigator.cookieEnabled||"cookie"in document&&(document.cookie.length>0||(document.cookie="test").indexOf.call(document.cookie,"test")>-1)}var u=0==document.domain.indexOf("www.")?document.domain.substring(4):document.domain;e.set=t,e.get=n,e.getAll=r,e.remove=s,e.getDomain=a,e.setDomain=l,e.isEnabled=c}(o=t.cookie||(t.cookie={}))},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n;!function(e){function t(e,n,o){if(o&&t(e,o),e&&n&&"object"==typeof n)for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i]);return e}function n(e,o){var i=t({},e);if(o)for(var r in o)i.hasOwnProperty(r)&&a(i[r])&&a(o[r])?i[r]=n(i[r],o[r]):i[r]=o[r];return i}function o(e,t){for(var n,o=t||window,i=e.split("."),r=0;n=i[r];r++)o=o[n]=o[n]||{};return o}function i(e,t){var n;if(t=t||"","string"==typeof e)n=e;else{var o=[];for(var i in e)e.hasOwnProperty(i)&&o.push(i+"="+encodeURIComponent(e[i]));n=o.join("&")}return t&&n.length&&n.indexOf(t)===-1&&(n=t+n),n}function r(e,t){var n={};for(var o in e)t(e[o])||(n[o]=e[o]);return n}function s(e){return"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!==e&&"object"==typeof e}function l(e){return e===!!e}function c(e){return"number"==typeof e}function u(e){return"string"==typeof e}function d(e){return""===e}function p(e){return"function"==typeof e}function f(e){return void 0===e}function h(e){return e instanceof HTMLElement}function m(e){return/^(?:\w+:)?\/\/([^\s\.]+\.\S{2}|localhost[\:?\d]*)\S*$/.test(e)}function g(e){return f(e)||null===e||""===e||s(e)&&0===e.length||a(e)&&_(e)}function _(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function v(e){return"[object Arguments]"===Object.prototype.toString.call(e)}function b(e){return s(e)?e:v(e)?Array.prototype.slice.call(e):[e]}function y(e){for(var t=new Array(e.length),n=e.length;n--;)t[n]=e[n];return t}function w(e){function t(){var e=o.exec(n.url);n.protocol=e[2]||"https",n.host=e[5]||"",n.port=e[6]||"",n.path=e[7]||"/",n.query=e[8]||"",n.hash=e[10]||""}var n=this,o=new RegExp("^(([^:/\\?#]+):)?(//(([^:/\\?#]*)(?::([^/\\?#]*))?))?([^\\?#]*)(\\?([^#]*))?(#(.*))?$");this.url=e,this.replace=function(e){e=e||{};var t=e.protocol||n.protocol,o=e.host||n.host,r=e.port||n.port,s=e.path||n.path,a=i(e.query||n.query,"?"),l=e.hash||n.hash;return(t?t+":":t)+"//"+o+(r?":"+r:r)+s+a+(l?"#"+l:l)},this.toString=function(){return this.replace()},t()}function E(e){var t=(new Date,(new Date).getTime()),n=(new Date).setHours(0,0,0,0),o=[];e=e.map(function(e){return 1e3*e});for(var i=0,r=e;i<r.length;i++){var s=r[i];if(!(s<t)){for(var a=!1;s>=n;)a=!0,n+=864e5;a&&o.push({date:n-864e5,times:[]}),o[o.length-1].times.push(s)}}return o}e.apply=t,e.mergeObjects=n,e.ns=o,e.ensureQueryString=i,e.filterObjectByFn=r,e.isArray=s,e.isObject=a,e.isBoolean=l,e.isNumber=c,e.isString=u,e.isEmptyString=d,e.isFunction=p,e.isUndefined=f,e.isHTMLElement=h,e.isUrl=m,e.isEmpty=g,e.isObjectEmpty=_,e.isArguments=v,e.toArray=b,e.copyArray=y,e.URL=w,e.groupTimes=E}(n=t.essential||(t.essential={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(5),r=n(6),s="ru";o="ru"===s?i.default:r.default,t.default=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={LOCALE:"ru",PLACEHOLDERS:{name:"Введите ваше имя",phone:"Введите ваш телефон",email:"Введите ваш email",date:"День",time:"Время",captcha:"Введите капчу"},FIELD_IS_REQUIRED_ERROR_TEXT:"Необходимо заполнить",PERSONAL_INFO_TEXT:"Согласен с обработкой персональных данных",PREVIEW_CONSULTANT_OPERATOR_INFO:"Имя Фамилия",PHONE_MASK_FORMAT:"+7 (___) ___-__-__",SUBPHONE_MASK_FORMAT:"###-##-##",OPERATOR_TYPING_TEXT:"Оператор печатает",RATING_TEXT:"Пожалуйста, поставьте оценку оператору",RATING_FEEDBACK_TEXT:"Благодарю! Ваша оценка выставлена",VCARD_TEXT:"Укажите информацию о себе, пожалуйста.",START_CHAT_TEXT:"Начать чат",WELCOME_CHAT_TEXT:"Добро пожаловать в чат!",SEND_OFFLINE_MESSAGE_TEXT:"Отправить заявку",CALL_SITEPHONE_TEXT:"Жду звонка",DATE_CHANGE_TITLE_TEXT:"Выберите дату и врeмя для звонка",DATE_NOW_TITLE_TEXT:"Позвонить сейчас",EDITOR_FIELD_TEXT:"Написать сообщение...",CALL_NOW_BUTTON_TEXT:"Звонок сейчас",SELECT_DATETIME_BUTTON_TEXT:"Выбрать другое время",REPEAT_BUTTON_TEXT:"Попробовать ещё раз",CALL_GENERATOR_TITLE:"Ожидайте звонка",CALL_GENERATOR_MESSAGE:"Сотрудник свяжется с Вами в самое ближайшее время",EMAIL_MESSAGE:{labelText:"Сохранить историю переписки на электронную почту.",buttonText:"Отправить историю",feedbackText:"История Вашей переписки отправлена на почту."},CHANGE_GROUP_MESSAGE:{labelText:"Нажмите на кнопку, чтобы обратиться в другую группу.",buttonText:"Выбрать группу"},SITEPHONE_MESSAGE:{labelText:"Нажмите на кнопку, чтобы мы позвонили Вам.",buttonText:"Заказать звонок"},OFFLINE_MESSAGE_MESSAGE:{labelText:"Нажмите на кнопку, чтобы отправить заявку.",buttonText:"Отправить заявку"},MONTHS:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"],DATE_FORMAT:"{0} {1}",SITE_KEY_EXCEPTION:"ВНИМАНИЕ! В методе кода вставки setAccount указан некорректный siteKey и поэтому нормальная работа скрипта невозможна.",PHONE_REPLACER_FUNCTION_EXCEPTION:"Ошибка при выполнении пользовательской функции подмены номеров",EMPTY_SITE_KEY_EXCEPTION:"ВНИМАНИЕ! В методе кода вставки setAccount указан пустой siteKey и поэтому нормальная работа скрипта невозможна.",DOUBLE_CODE_EXCEPTION:'ВНИМАНИЕ! Обнаружен дубликат кода вставки "__cs" на данной странице и поэтому его нормальная работа невозможна. Пожалуйста, проверьте шаблоны сайта в Вашей CMS и устраните дублирование.',RESPONSE_CODES:{default:{title:"Система не отвечает",message:"Повторите попытку через минуту"},"010":{title:"История сообщений отправлена на email",message:"Спасибо за обращение "},110:{title:"История сообщений отправлена на email",message:"Попробуйте позже"},910:{title:"История сообщений отправлена на email",message:"Попробуйте позже"},"020":{title:"Ожидайте звонка",message:"Мы позвоним в течение минуты"},"030":{title:"Заявка принята",message:"Спасибо за обращение"},121:{title:"Неверно введен код",message:"Попробовать ещё раз"},122:{title:"Система не отвечает",message:"В данный момент звонок невозможен"}},DELAYED_CALL_MESSAGE_TPL:"Мы позвоним {0} в {1}"}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={LOCALE:"en-EN",PLACEHOLDERS:{name:"Name",phone:"Phone number",email:"Email",date:"Date",time:"Time",captcha:"Enter captcha"},FIELD_IS_REQUIRED_ERROR_TEXT:"This field is required",PERSONAL_INFO_TEXT:"I agree to process of my credentials",PREVIEW_CONSULTANT_OPERATOR_INFO:"First and Last Name",PHONE_MASK_FORMAT:"+7 (___) ___-____",SUBPHONE_MASK_FORMAT:"###-####",OPERATOR_TYPING_TEXT:"Operator is typing",RATING_TEXT:"Please rate your operator ",RATING_FEEDBACK_TEXT:"Thank you for you feedback",VCARD_TEXT:"Introduce yourself please.",START_CHAT_TEXT:"Start chatting",WELCOME_CHAT_TEXT:"Welcome to chat!",SEND_OFFLINE_MESSAGE_TEXT:"Submit",CALL_SITEPHONE_TEXT:"Call me",DATE_CHANGE_TITLE_TEXT:"Choose time and date for calling",DATE_NOW_TITLE_TEXT:"Call now",EDITOR_FIELD_TEXT:"Send message...",CALL_NOW_BUTTON_TEXT:"Call now",SELECT_DATETIME_BUTTON_TEXT:"Select date and time",REPEAT_BUTTON_TEXT:"Try again",CALL_GENERATOR_TITLE:"Call back",CALL_GENERATOR_MESSAGE:"We’ll contact you shortly",EMAIL_MESSAGE:{labelText:"Send message history to your email.",buttonText:"Send",feedbackText:"Message history was send to your email."},CHANGE_GROUP_MESSAGE:{labelText:"Click to switch groups.",buttonText:"Switch groups"},SITEPHONE_MESSAGE:{labelText:"Click for call back.",buttonText:"Call back"},OFFLINE_MESSAGE_MESSAGE:{labelText:"Click to submit your request.",buttonText:"Submit"},MONTHS:["January","February","March","April","May","June","July","August","September","October","November","December"],DATE_FORMAT:"{1} {0}",SITE_KEY_EXCEPTION:'WARNING! "setAccount" settings are using incorrect "siteKey". Standard functions of script are at holt.',PHONE_REPLACER_FUNCTION_EXCEPTION:"Error while running users number swopping request.",EMPTY_SITE_KEY_EXCEPTION:'WARNING! "setAccount" settings are using incorrect "siteKey". Standard functions of script are at holt.',DOUBLE_CODE_EXCEPTION:'WARNING! Duplicate of "_cs" is found. Standard functions of "_cs" are at holt. Please check your site settings and delete the duplicate instance.',RESPONSE_CODES:{default:{title:"System not responding",message:"Please try again in a minute"},"010":{title:"Message history was send to your email",message:"Thank you for your reply"},110:{title:"Message history was send to your email",message:"Try again later"},910:{title:"Message history was send to your email",message:"Try again later"},"020":{title:"Wait for a call",message:"We will call in a minute"},"030":{title:"We've Received Your Request",message:"We've will contact you soon"},121:{title:"Captcha is incorrect",message:"Please try again"},122:{title:"System not responding",message:"The call is not possible at this moment"}},DELAYED_CALL_MESSAGE_TPL:"We will call you on {0} at {1}"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(3),r=n(8);!function(e){function t(e,t,n,o){var i=e[t];if("function"==typeof i)return i.apply(n||e,o)}function n(e,t,n){v.push([].slice.call(arguments))}function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var e=[].concat(arguments);e.unshift("[Queue]"),r.util.log.apply(r.util,e)}function s(e,t){return i.essential.isArray(e)?_.push(e):this.push([e,i.essential.toArray(t)])}function a(e){if(i.essential.isUndefined(e))return _.shift();if(i.essential.isNumber(e))return _.splice(e,1)[0];if(i.essential.isString(e))for(var t,n=0;t=_[n];n++)if(i.essential.isArray(t)&&t[0]===e)return this.shift(n)}function l(e){if(i.essential.isUndefined(e))return _[0];if(i.essential.isNumber(e))return _[e];if(i.essential.isString(e))for(var t,n=0;t=_[n];n++)if(i.essential.isArray(t)&&t[0]===e)return t;return null}function c(e,t){for(var n;n=_.shift();)this._process(n,e,t)}function u(e,t,r,s){o("going to process commands",e,"of",t),i.essential.isBoolean(r)&&(s=r,r=void 0),s&&n(e,t,r),this._processCommands(e,t,r)}function d(e){for(var t,n=e.__commands,o=0;t=n[o];o++){if(b.hasOwnProperty(t))throw{message:'uLiB.util.Queue detected command conflict: "'+t+'"',command:t,existingObj:b[t],newObj:e};b[t]=e}}function p(e,t,n,o){this.register(t),this.processCommands(e,t,n,o)}function f(e,n,s){if(!e)return null;e=i.essential.copyArray(e);var a,l;return a=e.shift(),l=1===e.length&&i.essential.isArray(e[0])?e[0]:e,o(r.util.sformat("processing {0}({1})",a,l)),t(n,a,s||n,l)}function h(e,t,n){if(this.length)for(var i,r,s=0;i=e[s];s++)t.__commands&&t.__commands.indexOf(i)!==-1&&(r=this.shift(i),this._process(r,t,n)===!1&&(o("smth. wrong with",i,r,"pushing back"),this.push(r)))}var m=window,g=["Comagic","__cs"],_=[],v=[],b={};e.maybeCall=t,e.addCommandToWatchFor=n,e.log=o;for(var y,w=0;y=g[w];w++)m[y]&&i.essential.isArray(m[y])&&(_=_.concat(m[y]),"__cs"===y&&(m[y]=e));e.length=_.length,e.push=s,e.shift=a,e.peek=l,e.process=c,e.processCommands=u,e.register=d,e.registerAndProcess=p,e._process=f,e._processCommands=h,window.setInterval(function(){for(var t,n=0;t=v[n];n++)h.apply(e,t)},100)}(o=t.Queue||(t.Queue={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(3),r=n(1),s=n(9),a=n(11),l=n(4);!function(e){function t(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var t=[].slice.call(arguments),o=Pe[t[0]]||"";t.unshift(o),t.unshift("%c"+e.getTimeStr()),e.__debug&&ke.console&&console.log.apply&&console.log.apply(console,t)}function n(){var t=[].slice.call(arguments);t.unshift("[Comagic]"),e.__debug&&console.error.apply(console,t)}function o(e){var t=this.__debugparams;return!e||"encodejson"==e&&this.isObject(t)?"encodejson"==e?JSON.stringify(t):t:this.isObject(t)&&t[e]||""}function c(e){return e.replace(/(?:^|[-_])(\w)/g,function(e,t){return t?t.toUpperCase():""})}function u(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var i,r=arguments[0],s=arguments[1];if(this.isObject(s)){var a,l,c={};for(i=/{([^}]+)}/g;a=i.exec(r);)a=a[1],l=s[a],void 0!==l&&(("cls"==a||this.endsWith(a,"Cls"))&&(l=this.getCssSelector(l,!0)),c[a]=l);for(var u in c)c.hasOwnProperty(u)&&(i=new RegExp("\\{"+u+"\\}","gm"),r=r.replace(i,c[u]))}else for(var d=0;d<arguments.length-1;d++)i=new RegExp("\\{"+d+"\\}","gm"),r=r.replace(i,arguments[d+1]);return r}function d(e,t){return e.indexOf(t,e.length-t.length)!=-1}function p(e,t){if(i.essential.isArray(t)){for(var n,o=0;n=t[o];o++)if(this.startsWith(e,n))return!0;return!1}return 0==e.indexOf(t)}function f(e,t){return this.endsWith(e,t)?e:e+t}function h(e){return e.replace(/(<([^>]+)>)/gi,"")}function m(e){return(""+e).replace(this.C.RE_HREF,function(){var e=arguments;return u('{0}<a href="{1}{2}">{2}</a>',e[1],e[3]||"",encodeURI(e[5]))}).replace('href="www.','href="http://www.').replace('href="://','href="http://')}function g(e){return e.replace(/\n\r/g,"<br/>").replace(/\r\n/g,"<br/>").replace(/\n/g,"<br/>").replace(/\r/g,"<br/>")}function _(e){return e.replace("/<br/>/g","\n")}function v(e){return e=""+e,e.replace(/\s/g,"")}function b(e,t){for(var n=e||"",o=n.split(" "),i=[""],r=0;r<o.length;r++){var s=i[i.length-1];!s.length||s.length+o[r].length<t-1?i[i.length-1]=[s,o[r]].join(" ").trim():i.push(o[r])}return i}function y(e){return e.len?e.len:e.prefix?e.prefix.length-1:3}function w(e){var t=e.mask||l.default.SUBPHONE_MASK_FORMAT,n=e.format||"+{country} ({city}) {phone}",o=this.getCityLength(e),i=e.raw&&e.raw.substr(o+1),r=t&&(t.match(/#/g)||[]).length,s=i&&i.length,a=e.text,c=0;if(!i&&a)return a;if(r>s)for(var u=0;u<r-s;u++)t=t.replace("#","");else if(r<s)for(var u=0;u<s-r;u++)t="#"+t;return i=t.replace(/#/g,function(){return i[c++]||""}),this.sformat(n,{country:e.raw.substr(0,1),city:e.raw.substr(1,o),phone:i})}function E(e){return/\S/.test(e)}function T(e){var t=e.getDate(),n=e.getMonth()+1,o=e.getFullYear();return""+o+"-"+(n<=9?"0"+n:n)+"-"+(t<=9?"0"+t:t)}function S(e){e=e||new Date;var t=e.getHours(),n=e.getMinutes();return t<10&&(t="0"+t),n<10&&(n="0"+n),t+":"+n}function O(e,t){var n;return"number"==typeof e?n=new Date(1e3*e):(t=t||0,e=e.split(/(?:\s|T)/),e[0]=e[0].split("."),e[1]=e[1].split(":"),n=new Date(e[0][2],e[0][1],e[0][0],e[1][0],e[1][1],e[1][2])),n.setTime(e.getTime()-1e3*t),n}function A(){return+new Date}function I(){return this.timeDelta}function C(e){this.timeDelta=e}function k(e,t,n){for(var o=n||0,i=e.length;o<i;o++)if(e[o]===t)return o;return-1}function P(e,t){if(i.essential.isArray(t)){for(var n,o=0;n=t[o];o++)if(this.arrayIsContain(e,n))return!0;return!1}return this.arrayIndexOf(e,t)!==-1}function N(e,t,n){for(var o=0;o<e.length;o++)t.call(n,e[o],o,e)}function R(e,t,n){for(var o,i=[],r=0;o=e[r];r++)t.call(n||ke,o)!==!1&&i.push(o);return i}function M(e,t){return this.arrayIndexOf(t,e)}function j(e,t,n){return function(){var o=[].slice.call(arguments);return e.apply(t,o.concat(n))}}function L(e,t,n){return function(){var o=e.apply(n,arguments);return o?(s.EventBus&&s.EventBus.fireEvent.apply(s.EventBus,["ulib:event"].concat(o)),t.apply(n,o)):null}}function x(e,t,n,o){return i.essential.isFunction(e)&&(t=e),i.essential.isObject(t)&&(n=t),i.essential.isString(t)&&i.essential.isObject(e)&&(t=e[t]),void 0===n&&i.essential.isObject(e)&&(n=e),i.essential.isArray(t)&&(o=t),i.essential.isArray(n)&&(o=n),i.essential.isFunction(t)?t.apply(n||this,o||[]):null}function D(e,t){this.isString(t)&&(t=this.getObjByName(t));var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.superclass=t.prototype}function U(e,t,n,o){var i=Array.prototype.slice.apply(arguments);if(e=i.shift(),t=i.shift(),n=i.shift()||[],this.isString(t)&&(t=this.getObjByName(t)),this.isString(n)&&(o=n,n=[]),!o)throw"Name of the mixin within the target must be specified";if(!t)throw"Cannot mix-in from undefined source";if(!e)throw"Cannot mix-in to undefined target";if(!e.prototype.hasOwnProperty("mixins")){var r=e.prototype.mixins;if(e.prototype.mixins={},r)for(var s in r)e.prototype.mixins[s]=r[s]}if(t=this.isFunction(t)?t.prototype:t,o&&(e.prototype.mixins[o]=t),n.length)for(var a=0,l=void 0;l=n[a];a++)e.prototype[l]=this.isFunction(t)?t.prototype[l]:t[l];else for(var l in t)e.prototype[l]=t[l]}function F(e,t){this.isArray(t)||(t=[t]);for(var n,o=0;n=t[o];o++){if(this.isString(n)&&(n=this.getObjByName(n)),e instanceof n)return!0;var i=e.mixins;if(i)for(var r,s=0;r=i[s];s++)if(e instanceof r)return!0}return!1}function H(e,t){for(var n in t)t.hasOwnProperty(n)&&void 0===e[n]&&(e[n]=t[n]);return e}function W(e,t){if(!e)return!1;for(var n,o=t||ke,i=e.split("."),r=0;n=i[r];r++)if(!(o=o[n]))return!1;return!0}function G(e){for(var t,n=ke,o=e.split("."),i=[],r=0;t=o[r];r++){if(!n[t])return this.error("Property",t,"of",i.join("."),"is not an Object"),null;n=n[t],i.push(t)}return n}function X(e){return decodeURI((new RegExp(e+"=(.+?)(&|$)").exec(ke.location.search)||[,""])[1])}function B(e){return decodeURI((new RegExp(e+"=(.+?)(&|$)").exec(ke.location.hash)||[,""])[1])}function V(e){if(!e||"object"!=typeof e)return e;var t,n,o="function"==typeof e.pop?[]:{};for(t in e)e.hasOwnProperty(t)&&(n=e[t],n&&"object"==typeof n?o[t]=this.clone(n):o[t]=n);return o}function Y(e,t){return this.isString(t)&&(t=this.getObjByName(t)),e instanceof t}function Z(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function Q(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n])}function q(e,t){var n=document.createElement("script");return n.src=new i.essential.URL(e).toString(),n.async=!0,n.onload=t,document.head.appendChild(n),n}function K(e,t){var n=e[t];return delete e[t],n}function z(e){var t=this.sessionStorage().getItem(e);null===t&&(t=this.localStorage().getItem(e));var n=JSON.parse(t);return n&&n.ezstorage?n.value:n}function J(e,t,n){return(n?this.localStorage():this.sessionStorage()).setItem(e,JSON.stringify(t))}function $(e){var t="testtesttest";e.setItem(t,"1"),e.removeItem(t)}function ee(){try{return this._checkStorage(window.localStorage),window.localStorage}catch(e){return this.log("window.localStorage not available. emulate"),this.apply(this._localStorage,this._storageApi)}}function te(){try{return this._checkStorage(window.sessionStorage),window.sessionStorage}catch(e){return this.log("window.sessionStorage not available. emulate"),this.apply(this._sessionStorage,this._storageApi)}}function ne(){var e=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}function oe(e){return(e<10?"0":"")+e}function ie(e){return void 0===e&&(e=new Date),this.padNumber(e.getHours())+":"+this.padNumber(e.getMinutes())+":"+this.padNumber(e.getSeconds())+"."+e.getMilliseconds()}function re(){return Math.round((new Date).getTime()/1e3)}function se(e){return 1e3*Math.pow(2,e)+Math.round(1e3*Math.random())}function ae(e,t){return Math.floor(Math.random()*(t-e+1))+e}function le(e){for(var t=e.substring(1).split("&"),n={},o=0;o<t.length;o++){var i=t[o].split("=");if(i[0])try{n[i[0]]=decodeURIComponent(i[1])}catch(e){}}return n}function ce(){return le(window.location.search)}function ue(){return le(window.location.hash)}function de(e){if(0===e.indexOf("/")){var t=/(\w+)\[(\d+)\]/,n=e.split("/");n.splice(0,1);for(var o=0;o<n.length;o++)t.test(n[o])&&(n[o]=n[o].replace(t,function(e,t,n){return t+":eq("+(parseInt(n,10)-1)+")"}));return n.join(" > ")}return e}function pe(){var e=te();if(e)return e.getItem("cmg:debugExternalChatComagicWebUrl")}function fe(){return e.isDeviceTypePhone||e.C.IS_PHONE?"mobile":e.C.IS_TABLET?"tablet":"desktop"}function he(e){return e===Object(e)}function me(e){var t=document.createElement("comagic");return t.innerHTML=e.trim(),t.childNodes[0]}function ge(e){var t=document.createElement("link");return t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t.setAttribute("href",e),t}function _e(t){var n=r.CookieShop;try{void 0===t?e.__debug=void 0!==ce()._comagic_set_debug?ce()._comagic_set_debug:void 0!==ue()._comagic_set_debug?ue()._comagic_set_debug:k([1,!0,"true","1"],n.get(n.DEBUG))!==-1:(e.__debug=k([1,!0,"true","1"],t)!==-1,n.set(n.DEBUG,t,-1))}catch(e){console.log(e)}}function ve(e){return e=encodeURIComponent(e||document.location.href),0===decodeURIComponent(e).indexOf("file:///")}function be(e){if(null===e)return"null";var t=typeof e;if("undefined"===t||"string"===t||"number"===t||"boolean"===t)return t;var n=Object.prototype.toString,o=n.call(e);if(void 0!==e.length&&"function"!=typeof e)return"array";switch(o){case"[object Array]":return"array";case"[object Date]":return"date";case"[object Boolean]":return"boolean";case"[object Number]":return"number";case"[object RegExp]":return"regexp"}return"function"===t?"function":"object"===t?"object":void 0}function ye(e,t){e=e||{};for(var n in t)"object"==typeof t[n]?e[n]=ye(e[n],t[n]):e[n]=t[n];return e}function we(e){return"number"==typeof e&&isFinite(e)}function Ee(e){return"string"==typeof e}function Te(e,t){var n=a.KEY.CODES;switch(e){case n.ZERO:case n.ONE:case n.TWO:case n.THREE:case n.FOUR:case n.FIVE:case n.SIX:case n.SEVEN:case n.EIGHT:case n.NINE:case n.NUM_ZERO:case n.NUM_ONE:case n.NUM_TWO:case n.NUM_THREE:case n.NUM_FOUR:case n.NUM_FIVE:case n.NUM_SIX:case n.NUM_SEVEN:case n.NUM_EIGHT:case n.NUM_NINE:if(void 0!==t&&void 0!==t.keyIdentifier)switch(t.keyIdentifier){case"U+0030":case"U+0031":case"U+0032":case"U+0033":case"U+0034":case"U+0035":case"U+0036":case"U+0037":case"U+0038":case"U+0039":return!0;default:return!1}return!0;default:return!1}}function Se(e,t){e=e.browserEvent||e;var n=e["page"+t];return n||0===n||(n=e["client"+t]||0),n}function Oe(e){return[Se(e,"X"),Se(e,"Y")]}function Ae(e){return/[^\u0000-\u00ff]/.test(e)}function Ie(){this.__debugparams=this.getURLParameter("bannerdebug"),this.__debugger=2==this.getURLParameter("bannerdebug");try{this.__debugparams=JSON.parse(this.__debugparams)}catch(e){this.log("Cannot parse debug params. Going to plain debug mode.")}var e=this.getURLParameter("time_delta");""!==e&&this.dSetTimeDelta(e)}var Ce,ke=window,Pe=(ke.__cs,{"[Ws]":"background: #88FF88","[Queue]":"background: #FF8866","[Aly]":"background: #FFFF66","[CallTracking]":"background: #8181F7","[PhoneReplacer]":"background: #81BEF7","[DynamicalTracking]":"background: #81FFF7","[Lead]":"background: #BDBDBD"});!function(e){e.IS_IE_LT_11=!!Function("/*@cc_on return true@*/")(),e.IS_IE_LT_10=!window.navigator.msPointerEnabled&&!!Function("/*@cc_on return true@*/")(),e.IS_IE_LT_9=!ke.document.addEventListener,e.IS_IE_LT_8=!ke.document.querySelector,e.IS_TOUCH_DEVICE=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(navigator.userAgent||navigator.vendor||window.opera)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test((navigator.userAgent||navigator.vendor||window.opera).substr(0,4)),e.IS_PHONE=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(navigator.userAgent||navigator.vendor)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test((navigator.userAgent||navigator.vendor).substr(0,4)),
e.IS_TABLET=e.IS_TOUCH_DEVICE&&!e.IS_PHONE,e.IS_IOS=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].indexOf(ke.navigator.platform)!==-1,e.IS_ANDROID=navigator.userAgent.toLowerCase().indexOf("android")!==-1,e.IS_FIREFOX=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,e.RE_EMAIL=/^(\w+)([\-+.][\w]+)*@(\w[\-\w]*\.){1,5}([A-Za-z]){2,6}$/,e.RE_PHONE=/^\d{11}$/,e.RE_HREF=/(^|\s)(((?:http|https|ftp|):\/\/(?:[^:]+:[^@]+@)?)|(.{0}(?=www\.)))([^\s]+)+/gim,e.ZZZZZZ="ZZZZZZ",e.VALID_FILE_EXTENSIONS=["png","xpm","jpg","doc","docx","txt","xls","xlsx","csv","odt","ods","pdf","djvu","xml","fb2","epub"]}(Ce=e.C||(e.C={})),e.log=t,e.error=n,e.getDebugParam=o,e.camelize=c,e.sformat=u,e.endsWith=d,e.startsWith=p,e.ensureEndsWith=f,e.stripTags=h,e.textLinksToHtml=m,e.crLfToBr=g,e.brToCrLf=_,e.strim=v,e.getChunks=b,e.getCityLength=y,e.formatPhone=w,e.isNotContainsOnlyWhitespaces=E,e.dformat=T,e.tformat=S,e.dApplyTimeDelta=O,e.dnow=A,e.dGetTimeDelta=I,e.dSetTimeDelta=C,e.arrayIndexOf=k,e.arrayIsContain=P,e.arrayForEach=N,e.arrayFilter=R,e.inArray=M,e.bind=j,e.wrapEvent=L,e.maybeCall=x,e.extend=D,e.mixIn=U,e.isinstance=F,e.applyIf=H,e.isNs=W,e.getObjByName=G,e.getURLParameter=X,e.getHashParameter=B,e.clone=V,e.isInstance=Y,e.okeys=Z,e.ovalues=Q,e.loadScript=q,e.opop=K,e.storageGet=z,e.storageSet=J;var Ne;!function(e){e.items={}}(Ne=e._localStorage||(e._localStorage={}));var Re;!function(e){e.items={}}(Re=e._sessionStorage||(e._sessionStorage={}));var Me;!function(e){function t(e){var t=this.items[e];return void 0===t?null:t}function n(e,t){this.items[e]=""+t}function o(e){delete this.items[e]}e.getItem=t,e.setItem=n,e.removeItem=o}(Me=e._storageApi||(e._storageApi={})),e._checkStorage=$,e.localStorage=ee,e.sessionStorage=te,e.uuid=ne,e.padNumber=oe,e.getTimeStr=ie,e.getTimestamp=re,e.getExponentialBackoff=se,e.getRandomInt=ae,e.getUrlParams=le,e.getUrlQuery=ce,e.getUrlHash=ue,e.prepareSelector=de,e.getDebugExternalChatComagicWebUrl=pe,e.getDeviceType=fe,e.isObject=he,e.createElFromHtml=me,e.createLinkTag=ge,e.setDebug=_e,e.isUriLocal=ve,e.typeOf=be,e.apply=ye,e.isNumber=we,e.isString=Ee;var je=navigator.userAgent.toLocaleLowerCase();e.isOpera=/opera/i.test(je),e.isWebKit=/webkit/i.test(je),e.isGecko=!e.isWebKit&&/gecko/i.test(je),e.isChrome=/chrome/i.test(je),e.isIE=!e.isOpera&&/msie/i.test(je)||/trident.*rv\:11\./i.test(je)||/edge/i.test(je),e.isSafari=/safari/i.test(je)&&!/chrome/i.test(je),e.isiPhone=/iphone/i.test(je),e.isAndroid=/android/i.test(je),e.isiPad=/ipad/.test(je),e.isDeviceTypePhone=e.C.IS_PHONE,e.isKeyNum=Te,e.getXY=Oe,e.isTouch=void 0!==document.ontouchstart,e.containsNonLatinCodepoints=Ae,e.init=Ie,e.init()}(o=t.util||(t.util={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(10);t.EventBus=new o.Observable},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),i=function(){function e(){this.initObservable()}return e.prototype.initObservable=function(){this.events={}},e.prototype.on=function(e,t,n){if(o.essential.isObject(e)){n=e.scope;for(var i in e)e.hasOwnProperty(i)&&this.on(i,e[i],n)}var r=this.events[e]||[];r.push({fn:t,scope:n}),this.events[e]=r},e.prototype.un=function(e,t){for(var n,o=this.events[e]||[],i=[],r=0;n=o[r];r++)n.fn!==t&&i.push(n);this.events[e]=i},e.prototype.fireEvent=function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var i,r=Array.prototype.slice.apply(arguments),s=!0;e=r.shift(),i=this.events[e]||[];for(var a=0,l=void 0;l=i[a];a++)s=!1!==l.fn.apply(l.scope||this,r)&&s;return s},e.prototype.hasListeners=function(e){return!(!this.events[e]||!this.events[e].length)},e}();t.Observable=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n;!function(e){var t;!function(e){e[e.BACKSPACE=8]="BACKSPACE",e[e.TAB=9]="TAB",e[e.ENTER=13]="ENTER",e[e.RETURN=13]="RETURN",e[e.SHIFT=16]="SHIFT",e[e.CTRL=17]="CTRL",e[e.ALT=18]="ALT",e[e.ESC=27]="ESC",e[e.END=35]="END",e[e.HOME=36]="HOME",e[e.LEFT=37]="LEFT",e[e.UP=38]="UP",e[e.RIGHT=39]="RIGHT",e[e.DOWN=40]="DOWN",e[e.INSERT=45]="INSERT",e[e.DELETE=46]="DELETE",e[e.ZERO=48]="ZERO",e[e.ONE=49]="ONE",e[e.TWO=50]="TWO",e[e.THREE=51]="THREE",e[e.FOUR=52]="FOUR",e[e.FIVE=53]="FIVE",e[e.SIX=54]="SIX",e[e.SEVEN=55]="SEVEN",e[e.EIGHT=56]="EIGHT",e[e.NINE=57]="NINE",e[e.NUM_ZERO=96]="NUM_ZERO",e[e.NUM_ONE=97]="NUM_ONE",e[e.NUM_TWO=98]="NUM_TWO",e[e.NUM_THREE=99]="NUM_THREE",e[e.NUM_FOUR=100]="NUM_FOUR",e[e.NUM_FIVE=101]="NUM_FIVE",e[e.NUM_SIX=102]="NUM_SIX",e[e.NUM_SEVEN=103]="NUM_SEVEN",e[e.NUM_EIGHT=104]="NUM_EIGHT",e[e.NUM_NINE=105]="NUM_NINE",e[e.NUM_PLUS=107]="NUM_PLUS",e[e.NUM_MINUS=109]="NUM_MINUS",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.DOT=190]="DOT"}(t=e.CODES||(e.CODES={})),e.MAP={48:"0",49:1,50:2,51:3,52:4,53:5,54:6,55:7,56:8,57:9,96:0,97:1,98:2,99:3,100:4,101:5,102:6,103:7,104:8,105:9,107:"+",109:"-",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",190:"."}}(n=t.KEY||(t.KEY={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(8),r=n(13),s=n(14),a=n(15);!function(e){function t(e){i.util.log("Sending event notification, event:",e),b(e)}function n(e){if(e){var t=r.dimension.getWindowScrollTop(),n=r.dimension.getWindowHeight()+t,o=r.dimension.offset(e).top,i=o+e.clientHeight;return i<=n&&o>=t}return!1}function o(e){for(var n in w)if(w.hasOwnProperty(n))for(var o,i=document.querySelectorAll(n),r=0;o=i[r];r++)if(e.target===o){t(w[n]);break}}function l(e){for(var n in E)if(E.hasOwnProperty(n))if(n==T){if(e.target.href&&e.target.href.indexOf(S)==-1){t(E[n]);break}}else if(e.target.href&&e.target.href.match(new RegExp(n))){t(E[n]);break}}function c(e){s.un(window,"scroll",_),t(y.scrollStart)}function u(e){r.dimension.getWindowScrollTop()+r.dimension.getWindowHeight()===r.dimension.getDocumentHeight()&&(s.un(window,"scroll",v),t(y.scrollEnd))}function d(e){for(var o in y.scrollTo)y.scrollTo.hasOwnProperty(o)&&n(o)&&(t(y.scrollTo[o]),delete y.scrollTo[o])}function p(e,t){var n=t,o=n.es,i=o&&o.ce,r=o&&o.le,s=o&&o.se,a=o&&o.tm;i&&f(i),r&&h(r),s&&m(s),a&&g(a)}function f(e){for(var t,n=0;t=e[n];n++)w[i.util.prepareSelector(e[n][1])]=e[n][0];s.on(document,"click",i.util.bind(o,this))}function h(e){for(var t,n=0;t=e[n];n++)E[t[1]]=t[0];s.on("a","click",i.util.bind(l,this))}function m(e){_=i.util.bind(c,this),v=i.util.bind(u,this);for(var t,n=0;t=e[n];n++)"comagic_scroll_start"==e[n][1]?(y.scrollStart=e[n][0],s.on(window,"scroll",_)):"comagic_scroll_end"==e[n][1]?(y.scrollEnd=e[n][0],s.on(window,"scroll",v)):y.scrollTo[i.util.prepareSelector(e[n][1])]=e[n][0];if(y.scrollTo){var o=i.util.bind(d,this);s.on(window,"scroll",o)}}function g(e){for(var n=function(e){setTimeout(function(){t(e[0])},1e3*e[1])},o=0,i=e;o<i.length;o++){var r=i[o];n(r)}}var _,v,b=a.Analytics.notifiOnEvent,y={scrollStart:null,scrollEnd:null,scrollTo:{}},w={},E={},T="_external_link_",S=0==document.location.host.indexOf("www.")?document.location.host.slice(4):document.location.host;e.onAlyTrackview=p}(o=t.Events||(t.Events={}))},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n;!function(e){function t(){return"undefined"!=typeof pageYOffset?pageYOffset:r.scrollTop}function n(){return window.innerHeight||a.clientHeight||r.clientHeight}function o(){return Math.max(r.scrollHeight,a.scrollHeight,r.offsetHeight,a.offsetHeight,r.clientHeight,a.clientHeight)}function i(e){for(var t={left:e.offsetLeft||0,top:e.offsetTop||0};e=e.offsetParent;)t.left+=e.offsetLeft,t.top+=e.offsetTop;return t}var r=document.body,s=document,a=s.documentElement;e.getWindowScrollTop=t,e.getWindowHeight=n,e.getDocumentHeight=o,e.offset=i}(n=t.dimension||(t.dimension={}))},function(e,t,n){"use strict";function o(e){var t=!1,n=!0,o=function(n){"readystatechange"==n.type&&"complete"!=d.readyState||(("load"==n.type?u:d)[m](g+n.type,o,!1),!t&&(t=!0)&&e.call(u,n.type||n))},i=function(){try{p.doScroll("left")}catch(e){return void setTimeout(i,50)}o("poll")};if("complete"===d.readyState||"loaded"===d.readyState||"interactive"===d.readyState)e.call(u,"lazy");else{if(!f&&p.doScroll){try{n=!u.frameElement}catch(e){}n&&i()}d[h](g+"DOMContentLoaded",o,!1),d[h](g+"readystatechange",o,!1),u[h](g+"load",o,!1)}}function i(e,t,n,o){if(c.essential.isString(t))for(var r,s=d.querySelectorAll(t),a=0;r=s[a];a++)i(e,r,n,o);else t[e?h:m](g+n,o,!0)}function r(e,t,n){i(!0,e,t,n)}function s(e,t,n){for(var o,i=0;o=t[i];i++)this.on(e,o,n)}function a(e,t,n){i(!1,e,t,n)}function l(e){o(e)}Object.defineProperty(t,"__esModule",{value:!0});var c=n(3),u=window,d=u.document,p=d.documentElement,f=d.addEventListener,h=f?"addEventListener":"attachEvent",m=f?"removeEventListener":"detachEvent",g=f?"":"on";t.contentLoaded=o,t.on=r,t.ons=s,t.un=a,t.ready=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(3),r=n(8),s=n(2),a=n(1),l=n(9),c=n(7),u=n(16),d=n(19),p=n(17),f=n(20),h=n(4);!function(e){function t(){if(te.isUriLocal())return void te.log("[Aly]","Local URI disallowed");var e=u.SiteSettings.params("analytics"),t=u.SiteSettings.info();if(!e)return void te.log("[Aly]","No params specified");q=t.key,X=e.server_url,B=e.session_ttl,Z=e.first_ping_interval;var n=this;c.Queue.push("waitForTrackViewAndRun",function(e){f.Ym.run(e,te.bind(F,n))}),d.UA.detect(te.bind(U,this)),v()}function n(){Q=+new Date,m(),g(),oe.setTimeout(function(){o()},B),c.Queue.registerAndProcess(e.__commands,e,!0)}function o(){ne.fireEvent("aly:stopsession",this),_()}function m(){V=!0}function g(){if(V){oe.clearTimeout(Y);var e=6e4;ie||(e=Z),Y=setTimeout(function(){ie||(ie=!0),I()},e)}}function _(){oe.clearTimeout(Y),V=!1}function v(){var e=x("/t/v/",{ur:document.location.href,ti:document.title.slice(0,1e3),re:document.referrer,la:navigator.language,sc:screen.width+"x"+screen.height,uc:d.UA.clientId||"",dv:r.util.getDeviceType()},G);return se=$,e}function b(e,t,n,o){return x("/t/e/",{ca:e,ac:t,la:n,va:o})}function y(e){return x("/t/se/",{ce:e})}function w(e,t){return x("/p/s/",{pn:e,pv:t})}function E(e,t){return x("/p/g/",{pn:e},t)}function T(e,t){return x("/p/h/",{pn:e},t)}function S(e){return x("/p/d/",{pn:e})}function O(e){return x("/ua/sc/",{uc:d.UA.clientId||e})}function A(e){return x("/ym/sc/",{yc:e})}function I(){return x("/e/p/")}function C(e){return x("/e/e/",{ei:e})}function k(e){return x("/dct/pn/",{},e)}function P(e,t){var n=this,o=function(){e.call(n,i.essential.apply({session:re},t))};return z(re)?(te.log("[Aly]","No analytics session. Wait a bit"),!1):void o()}function N(){var e=re.ci||a.CookieShop.getComagicId();return"undefined"===e&&(e=void 0),e}function R(){return re.hi}function M(){return re.ce}function j(){var e=/[а-яё]/i;return!(r.util.isIE&&e.test(location.host))}function L(e){if(e&&e.length)for(var t=0,n=void 0,o=void 0,i=void 0,r=e.length;t<r;t++)n=e[t],o=n.name,i=n.params,ae[o].call(this,i)}function x(e,t,n){var o=this;void 0===t&&(t={}),te.log("[Aly]",te.sformat("request({0})",e,t,n));var r=D(e,t);for(var s in r)if(r.hasOwnProperty(s)){var a=r[s];i.essential.isEmpty(a)&&delete r[s]}return g(),p.ajax({url:X+e,crossDomain:!0,method:"GET",data:r,withCredentials:j(),contentType:"application/json",complete:function(i){var r=JSON.parse(i.response);return r&&r.success?(H.apply(o,r.result),void(n&&n.apply(o,r.result))):(te.log("[Aly]","Got unsuccessful response on "+e+": ",r),void ne.fireEvent("aly:requesterror",o,e,t))}})}function D(e,t){var n={sk:q,t:K,ci:N(),hi:re.hi,_vi:a.CookieShop.getVisitorObsolete().id,_si:a.CookieShop.getSessionObsolete().key};return"/t/v/"===e&&delete n.hi,n.t||delete n.t,n.ci&&(delete n._vi,delete n._si),i.essential.apply(n,t)}function U(e){var t=function(){O(e)};se===$?c.Queue.push("waitForTrackViewAndRun",t):se===ee&&t()}function F(e){A(e)}function H(e,t,n){return te.log("[Aly]","onRequestComplete(",e,t,n,")"),K=t,L(n),!0}function W(e){return e.hasOwnProperty("disconnect")}function G(t){if(re=i.essential.apply({},t),W(t))throw new Error(h.default.SITE_KEY_EXCEPTION);re.cd&&s.cookie.setDomain(re.cd),re.ce===!1?a.CookieShop.set(a.CookieShop.ALY_OFFLINE,"2"):a.CookieShop.del(a.CookieShop.ALY_OFFLINE),re.ci&&a.CookieShop.setComagicId(re.ci),ne.fireEvent("aly:trackview",e,re),se=ee,n()}var X,B,V,Y,Z,Q,q,K,z=i.essential.isEmpty,J=0,$=1,ee=2,te=r.util,ne=l.EventBus,oe=window,ie=!1,re={},se=J;e.__commands=["waitForTrackViewAndRun","trackEvent","trackSysEvent","setProperty","getProperty","hasProperty","deleteProperty","extendDtPhoneReservationTime"],e.init=t,e.goOnSession=n,e.stopSession=o,e.enablePing=m,e.processPing=g,e.disablePing=_,e.trackView=v,e.trackEvent=b,e.trackSysEvent=y,e.setProperty=w,e.getProperty=E,e.hasProperty=T,e.deleteProperty=S,e.setUaClientId=O,e.setYmClientId=A,e.ping=I,e.notifiOnEvent=C,e.extendDtPhoneReservationTime=k,e.waitForTrackViewAndRun=P,e.getComagicId=N,e.getHitId=R,e.isComagicEnabled=M,e.performCommands=L,e.request=x,e.composeParams=D,e.onUaDetected=U,e.onYmInit=F,e.onRequestComplete=H,e.isBadSitekey=W,e.onTrackView=G;var ae;!function(t){function n(t){ne.fireEvent("aly:hide_dt_phones",e,t)}function o(t){ne.fireEvent("aly:enable_phone_replacement",e,t)}function i(t){ne.fireEvent("aly:disable_phone_replacement",e,t)}t.hide_dt_phones=n,t.enable_phone_replacement=o,t.disable_phone_replacement=i}(ae||(ae={}))}(o=t.Analytics||(t.Analytics={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(3),r=n(8),s=n(17),a=n(1),l=n(9),c=n(18),u=n(7),d=n(4);!function(e){function t(){return!!e._siteKey}function n(){for(var t;t=e._readyCallbacks.shift();)t()}function o(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=Array.prototype.slice.call(arguments,1);return e.replace(/{(\d+)}/g,function(e,t){return"undefined"!=typeof o[t]?o[t]:e})}function p(e,t){var n=r.util.sessionStorage();if(!n)return null;var o=JSON.parse(n.getItem(e));return 1==arguments.length?o:o&&o[t]}function f(){var e=p("comagic-widget:settings","web_host");if(e)return e;for(var t,n,o,i,s=document.getElementsByTagName("script"),a=0;i=s[a];a++)if(t=i.getAttribute("src"),n=L.exec(t),n&&r.util.arrayIndexOf(j,n[0])!==-1)return o=x.exec(t),o&&o[1];return null}function h(){return c.Storage.getItem("_cmg_sitesettings")}function m(e){if(!e||200!==e.status)return void console.log("SiteSettings request failed",e);if(e.responseJSON||(e.responseJSON=JSON.parse(e.responseText)),!e.responseJSON||!e.responseJSON.success)return void console.log("SiteSettings request is not successful",e);var t=e.responseJSON.data;c.Storage.setUniquePostfix(N),t.ttl&&c.Storage.setItem("_cmg_sitesettings",t,t.ttl),g(t)}function g(t){e._siteSettings=t,t.widgets&&Object.getOwnPropertyNames(t.widgets).length&&l.EventBus.fireEvent("ss:waitforloadcorescripts",e,e._siteSettings,C())}function _(e,t){s.ajax({url:e,crossDomain:!0,method:"GET",data:{sk:w(),pl:r.util.getDeviceType().toLowerCase()},complete:t})}function v(){var t=o(D,e._siteSettingsHost||C(),U),n=h();if(!e._siteKey)throw new Error(d.default.EMPTY_SITE_KEY_EXCEPTION);n?g(n):_(t,m.bind(e))}function b(o){t()||(e._siteKey=o,n())}function y(e){b(e)}function w(){return e._siteKey||""}function E(t){e._webHost=new i.essential.URL(t).replace({path:"",query:"",hash:""})}function T(t){e._siteSettingsHost=new i.essential.URL(t).replace({path:"",query:"",hash:""})}function S(t){c.Storage.getItem("_cmg_customizeId")||c.Storage.setItem("_cmg_customizeId",r.util.uuid(),0),e._viewsHost=new i.essential.URL(t).replace({path:"",query:"",hash:""})}function O(e){return!!this._siteSettings&&void e.call(this,this._siteSettings)}function A(n){t()?n():e._readyCallbacks.push(n)}function I(){return e._host}function C(){var t,n=r.util.sessionStorage();return n&&(t=n.getItem("cmg:comagicWebUrl")),t||(t=e._webHost||(e._webHost=f())),new i.essential.URL(t).toString()}function k(){return{key:w(),host:I(),web_host:C()}}function P(){return R("consultant")}function N(){return w().substring(0,5)}function R(t){return e._siteSettings[t]||e._siteSettings.widgets&&e._siteSettings.widgets[t]}function M(){if(e._siteSettings.server_url){for(var t,n=I()||e._siteSettings.server_url,o=new i.essential.URL(n),r=[],s=o.path.split("/"),a=0,l=s.length;t=s[a],a<l;a++)"comagic"!==t&&r.push(t);return 1===r.length&&r.push(""),o.replace({path:r.join("/")})}}window.__cs_onReplacePhones=window.__cs_onReplacePhones||function(e){return!0};var j=["cs.min.js","comagic.min.js","comagic.debug.js","main.debug.js"],L=/[^\/]+\.js/,x=/\/\/([^\/]+)/,D="{0}{1}",U="/ss/settings/";e._webHost=null,e._siteSettingsHost=null,e._siteKey="",e._host=null,e._readyCallbacks=[],e._viewsHost=null,e.init=v,e.__commands=["setAccount","setCsAccount","setWebUrl","waitForSiteSettingsAndRun","setSiteSettingsHost","setViewsUrl"],e.setAccount=b,e.setCsAccount=y,e.getSiteKey=w,e.setWebUrl=E,e.setSiteSettingsHost=T,e.setViewsUrl=S,e.waitForSiteSettingsAndRun=O,e.ready=A,e.getHost=I,e.getWebHost=C,e.info=k,e.getConsultantParams=P,e.uniquePostfix=N,e.params=R,e.getServerBaseUrl=M,A(function(){a.CookieShop.setup(),a.CookieShop.setUniquePostfix(N),c.Storage.setUniquePostfix(N),r.util.setDebug()}),u.Queue.registerAndProcess(e.__commands,e,!0)}(o=t.SiteSettings||(t.SiteSettings={}))},function(e,t,n){"use strict";function o(){for(var e=null,t=0;t<s.length;t++){try{e=s[t]()}catch(e){continue}break}return e}function i(e,t){r.essential.isObject(e)&&(t=e,e=t.url),e=new r.essential.URL(e).toString(),t=t||{};var n=o(),i=t.data,s=t.complete;if(n){var a=t.method||(i?"POST":"GET");"GET"===a&&i&&(e=new r.essential.URL(e).replace({query:i}),i=void 0),n.open(a,e,!0),t&&void 0!==t.withCredentials&&(t.withCredentials?n.withCredentials=!0:n.setRequestHeader("X-No-Credentials",!0)),"POST"===a&&i&&(t.headers||n.setRequestHeader("Content-type",t.contentType||"application/x-www-form-urlencoded; charset=UTF-8")),n.onreadystatechange=function(){4==n.readyState&&(200!=n.status&&304!=n.status||s&&t.complete(n))},4!=n.readyState&&n.send(i)}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),s=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}];t.ajax=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(8);!function(e){function t(e){a=e()}function n(e){return e+a}function o(e){var t=JSON.parse(i.util.localStorage().getItem(n(e)));return t&&"__value__"in t?t.__expires__&&t.__expires__<i.util.dnow()?(s(e),null):t.__value__:t}function r(e,t,o){t=void 0===t?null:t,i.util.localStorage().setItem(n(e),JSON.stringify({__value__:t,__expires__:o&&o+i.util.dnow()}))}function s(e){i.util.localStorage().removeItem(n(e))}var a;e.setUniquePostfix=t,e.makeKey=n,e.getItem=o,e.setItem=r,e.removeItem=s}(o=t.Storage||(t.Storage={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(8);!function(e){function t(e){r.log("[UA]",".detect(",e,")"),e&&(this.callback=e);try{window[window.GoogleAnalyticsObject](r.bind(this.onReady,this))}catch(e){this.haveToTryAgain()?(r.log("[UA]","Unable to detect UA Client ID. Next try in",a,"ms"),window.setTimeout(r.bind(this.detect,this),a)):r.log("[UA]","Unable to detect UA Client ID. Drop it (")}}function n(e){try{r.log("[UA]",".onReady()"),this.clientId=e?e.get("clientId"):window[window.GoogleAnalyticsObject].getAll()[0].get("clientId"),r.log("[UA]","clientId detected. Going to run the callback..."),this.callback&&this.callback(this.clientId),r.log("[UA]","callback has run")}catch(e){r.log("[UA]","Can't detect UA Client ID or callback failed",e)}}function o(){return r.getTimestamp()-s<l}var r=i.util,s=r.getTimestamp();e.clientId="";var a=100,l=25;e.detect=t,e.onReady=n,e.haveToTryAgain=o}(o=t.UA||(t.UA={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(3),r=n(8),s=n(7);!function(e){function t(t){if(t&&!e.counter)return l||(l=r.util.getTimestamp()),e.counter=window[e.prefix+t],!e.counter&&r.util.getTimestamp()-l<c?void window.setTimeout(function(){e.init(t)},u):void(e.counter&&(this.clientId=e.counter.getClientID(),this.callback&&this.callback(this.clientId),s.Queue.registerAndProcess(e.__commands,e,!0)))}function n(t,n,o,r){if(!e.counter)return!1;i.essential.isArray(n)||(n=[n]);var s=e.counter[t].apply(e.counter,n);o&&o.call(r||e,s)}function o(e){s.Queue.push("callYmApi",["params",e])}function a(t,n){var o=t.session.ym;if(o){n&&(this.callback=n);var i={visitorID:{}};i.visitorID[Comagic.getVisitorId()]={sessionID:Comagic.getSessionId()},e.init(t.session.ym),e.sendYmCustomParams(i)}}e.__commands=["callYmApi"],e.prefix="yaCounter";var l,c=25,u=100;e.init=t,e.callYmApi=n,e.sendYmCustomParams=o,e.run=a}(o=t.Ym||(t.Ym={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(8),r=n(14),s=n(18),a=n(1),l=n(7),c=n(9),u=n(22),d=n(23),p=n(25),f=n(28),h=i.util,m=s.Storage,g=c.EventBus,_=a.CookieShop,v=d.DynamicalTracking,b=p.PhoneReplacer;!function(e){function t(){return m.getItem("_cmg_phr")!==!1}function n(e){m.setItem("_cmg_phr",!!e)}function o(e){m.setItem("_cmg_phones",e)}function i(){m.removeItem("_cmg_phones")}function s(e){if("2"==_.get(_.ALY_OFFLINE))return h.log("[CallTracking]","Offline. Stop working");if(m.getItem("_cmg_phones")&&this.getEnabled()){var t=m.getItem("_cmg_phones");h.log("[CallTracking]","About to replace phones from local storage",t),b.embed(t,void 0,e),v.loadCookie(),v.showPhones(e)}}function a(t){h.log("[CallTracking]",".setDynamicalReplacement",t),e.isDynamicalReplacementEnabled!=t&&(e.isDynamicalReplacementEnabled=!!t,e.isDynamicalReplacementEnabled?u.startObserve():u.stopObserve())}function c(t){h.log("[CallTracking]",".setDynamicalReplacementFromSettings",t);var n=t.common;if(n&&n.hasOwnProperty("is_dynamical_replacement_enabled")){var o=n.is_dynamical_replacement_enabled;!e.isDynamicalReplacementEnabled&&o&&f.API.push(["setDynamicalReplacement",[o]])}}function d(t,s){h.log("[CallTracking]",".onAlyTrackview",t,s),r.ready(function(){if("pr"in s&&n(s.pr),b.embedDefault(),"pt"in s){var t=b.formatPhones(s.pt);o(t),s.pr&&b.embed(t)}else i();"dp"in s?(v.setup(s.dp,s.dt,s.da),v.saveCookie(),s.pr&&v.showPhones()):v.delCookie(),l.Queue.registerAndProcess(e.__commands,e,!0)})}function p(e){t()&&v.hidePhones()}function g(e,t){this.setEnabled(!0),this.replacePhonesFromStorage()}function y(e,t){this.setEnabled(!1),b.embedDefault()}function w(e,t){v.hidePhones(t.numb)}function E(e){for(var t=[],n=["SCRIPT","HEAD"],o=0,i=e;o<i.length;o++){var r=i[o];[].forEach.call(r.addedNodes,function(e){n.indexOf(e.nodeName)===-1&&(e.parentElement?"HEAD"!==e.parentElement.nodeName&&t.push(e[0]?e[0]:e):t.push(e[0]?e[0]:e))})}t.length&&this.replacePhonesFromStorage(t.length<100?t:void 0)}e.isDynamicalReplacementEnabled=!1,e.__commands=["setDynamicalReplacement"],e.getEnabled=t,e.setEnabled=n,e.storePhones=o,e.removePhones=i,e.replacePhonesFromStorage=s,e.setDynamicalReplacement=a,e.setDynamicalReplacementFromSettings=c,e.onAlyTrackview=d,e.onAlyStopSession=p,e.onAlyEnablePhoneReplacement=g,e.onAlyDisablePhoneReplacement=y,e.onAlyHideDtPhone=w,e.onMutationObserverChange=E}(o=t.CallTracking||(t.CallTracking={})),g.on({"aly:stopsession":o.onAlyStopSession,"aly:enable_phone_replacement":o.onAlyEnablePhoneReplacement,"aly:disable_phone_replacement":o.onAlyDisablePhoneReplacement,"aly:hide_dt_phones":o.onAlyHideDtPhone,"mutationobserver:change":o.onMutationObserverChange,scope:o})},function(e,t,n){"use strict";function o(){l=new MutationObserver(a),l.observe(document.documentElement,s)}function i(){l&&l.disconnect()}Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),s={childList:!0,subtree:!0},a=function(e){l.disconnect(),r.EventBus.fireEvent("mutationobserver:change",e),l.observe(document.documentElement,s)},l=null;t.startObserve=o,t.stopObserve=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(3),r=n(8),s=n(7),a=n(1),l=n(24),c=n(25),u=n(18);!function(e){function t(e,t,n){r.util.log("[DynamicalTracking]",".setup(",e,t,n,")"),this.cleanupProlongationMonitoring(),this.phones=y(e)||null,this.ttl=t||null,this.reserveTime=r.util.getTimestamp(),this.dtActivityInterval=n,this.expire=(new Date).getTime()+S._expires[I],O.startWatch()}function n(){var e=r.util.localStorage();e.setItem(I,this.stringify())}function o(){var e=r.util.localStorage(),t=this.parse(e.getItem(I));(new Date).getTime()<=t.expire?i.essential.apply(this,this.parse(e.getItem(I))):this.delCookie()}function d(){var e=r.util.localStorage();e.removeItem(I)}function p(){var e=this;r.util.log("[DynamicalTracking]",".prolongNumber"),T.push("extendDtPhoneReservationTime",function(t){e.onProlongNumber(t)})}function f(e){r.util.log("[DynamicalTracking]",".onProlongNumber(",e,")"),this.ttl=e,this.reserveTime=r.util.getTimestamp(),e||(this.phones=[]),this.saveCookie(),e&&this.enableProlongationMonitoring()}function h(e){var t=this;r.util.log("[DynamicalTracking]",".waitActivityForProlongNumber",e);var n=this,o=r.util.getTimestamp();P=setInterval(function(){return r.util.getTimestamp()-o>e?void t.disableProlongationMonitoring():void(o<O.lastActivityTime&&(n.disableProlongationMonitoring(),n.prolongNumber()))},100)}function m(){k&&clearTimeout(k),k=void 0,P&&clearInterval(P),P=void 0}function g(){var e=this;r.util.log("[DynamicalTracking]",".enableProlongationMonitoring");var t=this;if(t.cleanupProlongationMonitoring(),t.ttl&&t.dtActivityInterval){var n=t.reserveTime+t.ttl-t.dtActivityInterval-r.util.getTimestamp();r.util.log("[DynamicalTracking]","timeout:",n,"me.reserveTime:",t.reserveTime,"me.ttl:",t.ttl,"me.dtActivityInterval:",t.dtActivityInterval,"now:",r.util.getTimestamp()),n>0?(r.util.log("[DynamicalTracking]","Schedule to check up the visitor activity in ",n,"secs"),k=setTimeout(function(){e.waitActivityForProlongNumber(e.dtActivityInterval)},1e3*n)):t.dtActivityInterval+n>0&&t.waitActivityForProlongNumber(t.dtActivityInterval+n)}else r.util.log("[DynamicalTracking]",".enableProlongationMonitoring","FAILED. me.ttl:",t.ttl,"me.dtActivityInterval:",t.dtActivityInterval)}function _(){r.util.log("[DynamicalTracking]",".disableProlongationMonitoring"),this.cleanupProlongationMonitoring()}function v(e){r.util.log("[DynamicalTracking]",".showPhones(",this.phones,")");var t=this;t.phones&&(t.enableProlongationMonitoring(),A.embed(t.phones,void 0,e))}function b(e){if(r.util.log("[DynamicalTracking]",".hidePhones"),C&&clearInterval(C),C=void 0,this.disableProlongationMonitoring(),e){for(var t=function(t,n){n.raw===e&&A.embed(r.util.arrayFilter(u.Storage.getItem("_cmg_phones"),function(e){return e.id===n.id}))},n=0,o=void 0;o=this.phones[n];n++)t(n,o);this.phones=r.util.arrayFilter(this.phones,function(t){return t.raw!==e}),this.saveCookie()}else this.delCookie(),A.embed(u.Storage.getItem("_cmg_phones"))}function y(e){if(!e)return null;for(var t=0,n=void 0;n=e[t];t++)n.dt=!0;return e}function w(){var e=this;return JSON.stringify({dtai:e.dtActivityInterval,ph:e.phones,ttl:e.ttl,rt:e.reserveTime,expire:e.expire})}function E(e){var t=JSON.parse(e)||{};return{dtActivityInterval:t.dtai,phones:t.ph,ttl:t.ttl,reserveTime:t.rt,expire:t.expire}}var T=s.Queue,S=a.CookieShop,O=l.ActivityMonitor,A=c.PhoneReplacer,I=S.DT,C=(S._expires&&S._expires[I]||0,void 0),k=void 0,P=void 0;e.setup=t,e.saveCookie=n,e.loadCookie=o,e.delCookie=d,e.prolongNumber=p,e.onProlongNumber=f,e.waitActivityForProlongNumber=h,e.cleanupProlongationMonitoring=m,e.enableProlongationMonitoring=g,e.disableProlongationMonitoring=_,e.showPhones=v,e.hidePhones=b,e.addDtFlag=y,e.stringify=w,e.parse=E}(o=t.DynamicalTracking||(t.DynamicalTracking={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(8),r=n(14);!function(e){function t(){e.lastActivityTime=i.util.getTimestamp()}function n(){return r.ons(document.body,e.events.split(" "),i.util.bind(t,this)),e}e.events="mousemove keydown wheel DOMMouseScroll mousewheel mousedown touchstart touchmove MSPointerDown MSPointerMove",e.onActivity=t,e.startWatch=n}(o=t.ActivityMonitor||(t.ActivityMonitor={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(3),r=n(26),s=n(8),a=n(4);!function(e){e.Selector="selector=",e.ID="#",e.Class=".",e.Name="[name=",e.Number="number="}(o||(o={}));var l;!function(e){function t(){var t=[];for(var n in e.defaultPhonesObj)e.defaultPhonesObj.hasOwnProperty(n)&&t.push(e.defaultPhonesObj[n]);return t}function n(t){t.id in e.defaultPhonesObj||(e.defaultPhonesObj[t.id]=t)}function l(e){var t,n,o=[];if(e){for(n=0;n<e.length;n++)t=e[n],!t.img&&t.raw&&(t.text=s.util.formatPhone(t)),o.push(v({},t));e=o}return e}function c(e,t,n,o){var i=document.querySelectorAll(e);!o&&this.addDefaultPhone({id:t,img:r.domhelper.attr(i,"src"),text:null,raw:null}),r.domhelper.attr(i,"src",n)}function u(e,t,n,o,i){var s=[],a=[];[].slice.apply(document.querySelectorAll(e)).map(function(e){"A"===e.tagName&&e.href.indexOf("tel:")!==-1?s.push(e):a.push(e)}),s.length&&(!i&&this.addDefaultPhone({id:t,img:null,text:r.domhelper.html(s),raw:(r.domhelper.attr(s,"href")||"").split("tel:")[1]}),r.domhelper.html(s,n).attr(s,"href","tel:+"+o)),a.length&&(!i&&this.addDefaultPhone({id:t,img:null,text:r.domhelper.html(a),raw:null}),r.domhelper.html(a,n))}function d(e,t,n){var i=e.id,r=e.text,a=e.img,l=e.raw;try{0===i.indexOf(o.Selector)&&(i=i.substring(9));var c=s.util.prepareSelector(i);null!==a?this.replacePhoneImage(c,i,a,t):r&&this.replacePhoneText(c,i,r,l,t)}catch(e){}}function p(t,n){for(var i=0,r=t;i<r.length;i++){var s=r[i],a=s.id.replace(o.Number,""),l=n&&!s.dt?a:e._replacedNumbers[a]||a,c="\\+?"+l.split("").join("(?:[\\s\\-\\‒\\(\\)]*)?");s._regExp=new RegExp(c,"g"),e._replacedNumbers[a]=s.text.replace(/\D+/g,"")}return t}function f(e,t){var n=p(e,!!t),o=["SCRIPT"],i=function(e,t){for(var n=0,r=void 0;r=e.childNodes[n];n++)3===r.nodeType?r.data.trim()&&t(r):1===r.nodeType&&o.indexOf(r.tagName)===-1&&i(r,t)},r=function(e){for(var t,o,i=e.nodeValue,r=0,s=n;r<s.length;r++){var a=s[r];if(o=i.replace(a._regExp,a.text),i!==o){t=a;break}}if(o&&i!==o){for(e.nodeValue=o;e&&"A"!==e.tagName&&"BODY"!==e.tagName;)e=e.parentNode||e.parentElement;e&&"A"===e.tagName&&e.href.indexOf("tel:")!==-1&&(e.href="tel:+"+t.raw)}};if(t)for(var s=0;s<t.length;s++)i(t[s],r);else i(document.body,r)}function h(e,t){return[].slice.apply(e).filter(function(e){return 0===e.id.indexOf(t)})}function m(e){var t=h(e,o.Selector),n=h(e,o.ID),i=h(e,o.Class),r=h(e,o.Name);return{textNumberRules:h(e,o.Number),domRules:r.concat(i,n,t)}}function g(e,t,n){e=this.formatPhones(e);try{if(window.__cs_onReplacePhones&&"function"==typeof window.__cs_onReplacePhones&&!window.__cs_onReplacePhones(e))return}catch(e){s.util.log("[PhoneReplacer]",a.default.PHONE_REPLACER_FUNCTION_EXCEPTION+": "+e)}if(e){var o=m(e),i=o.textNumberRules,r=o.domRules;this.textNodeReplace(i,n);for(var l=0,c=r;l<c.length;l++){var u=c[l];this.replacePhone(u,t,n)}}}function _(){var e=this.getDefaultPhones();s.util.log("[PhoneReplacer]","embedDefault(",e,")"),e.length&&this.embed(e)}var v=i.essential.apply;e.defaultPhonesObj={},e._replacedNumbers={},e.getDefaultPhones=t,e.addDefaultPhone=n,e.formatPhones=l,e.replacePhoneImage=c,e.replacePhoneText=u,e.replacePhone=d,e.textNodeReplace=f,e.embed=g,e.embedDefault=_}(l=t.PhoneReplacer||(t.PhoneReplacer={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(8),r=n(3),s=n(27);!function(e){function t(e,t,n){
if(r.essential.isUndefined(n)){var o;return o=e.length?e[0]:e,o&&o.getAttribute(t)}for(var i,s=0;i=e[s];s++)i.setAttribute(t,n);return this}function n(e,t){e.removeAttribute(t)}function o(e,t){return void 0===t?e instanceof HTMLInputElement?e.value:e.innerHTML:void(e instanceof HTMLInputElement?e.value=t:e.innerHTML=t)}function a(e,t){if(r.essential.isUndefined(t))return e[0].innerHTML;for(var n,o=0;n=e[o];o++)n.innerHTML!==t&&(n.innerHTML=t);return this}function l(e,t){var n="innerText"in(e[0]||{})?"innerText":"textContent";if(r.essential.isUndefined(t))return e[0][n];for(var o,i=0;o=e[i];i++)o[n]=t;return this}function c(e,t){for(var n,o=[],i=0;n=e[i];i++)t.indexOf(n)===-1&&o.push(n);return o}function u(e){var t=0;if(document.selection){e.focus();var n=document.selection.createRange();n.moveStart("character",-e.value.length),t=n.text.length}else if(e.selectionStart||"0"==e.selectionStart)t=e.selectionStart;else{var o=window;e.windowEl&&(o=e.windowEl),t=o.getSelection().getRangeAt(0).startOffset}return t}function d(e,t){if(null!=e)if(e.createTextRange){var n=e.createTextRange();n.move("character",t),n.select()}else if(e.selectionStart)e.focus(),e.setSelectionRange(t,t);else if(e.focus(),e.childNodes[0]){var o=window;e.windowEl&&(o=e.windowEl);var i=e.childNodes[0];if(i&&i.length>=t){var n=o.document.createRange(),r=o.getSelection();n.setStart(i,t),n.collapse(!0),r.removeAllRanges(),r.addRange(n)}}}function p(e,t){return e.querySelectorAll(t)}function f(e,t){void 0===t&&(t=!0);var n=e.parentNode||e.parentElement;return t===!1?n:!!n&&new s.Element(n)}function h(t,n){if("string"==typeof n)n&&!e.hasClass(t,n)&&(t.className=t.className+" "+n);else for(var o=0,i=n.length;o<i;o++)e.addClass(t,n[o]);return this}function m(e,t){return t&&(" "+e.className+" ").indexOf(" "+t+" ")!==-1}function g(e,t){return void 0===t&&(t=!0),e=e.firstChild,t===!1?e:new s.Element(e)}function _(e,t,n){switch(i.util.typeOf(t)){case"string":break;case"object":t=new s.Element(t),n?(n=new s.Element(n),e.insertBefore(t.dom,n.dom)):e.appendChild(t.dom)}}function v(t,n){void 0===n&&(n=!1);var o=e.parent(t);o&&o.dom&&o.remove(t)}function b(e,t){t=new s.Element(t),e.removeChild(t.dom)}function y(t){for(var n=new s.Element(t),o=0,i=20;o<i;o++){if("none"===n.css("display")||0===n.css("opacity"))return!1;if("body"===n.dom.tagName.toLocaleLowerCase())break;if(n=e.parent(n.dom),!n)return!1}return!0}function w(e,t,n){var o;return"number"!=typeof t?(this.dom.setSelectionRange?(t=e.selectionStart,n=e.selectionEnd):document.selection&&document.selection.createRange&&(o=document.selection.createRange(),t=0-o.duplicate().moveStart("character",-1e5),n=t+o.text.length),{begin:t,end:n}):(n="number"==typeof n?n:t,void(e.setSelectionRange?e.setSelectionRange(t,n):e.createTextRange&&(o=e.createTextRange(),o.collapse(!0),o.moveEnd("character",n),o.moveStart("character",t),o.select())))}e.attr=t,e.removeAttr=n,e.val=o,e.html=a,e.text=l,e.not=c,e.getCaretPosition=u,e.setCaretPosition=d,e.select=p,e.parent=f,e.addClass=h,e.hasClass=m,e.first=g,e.append=_,e.destroy=v,e.remove=b,e.isVisible=y,e.caret=w}(o=t.domhelper||(t.domhelper={}))},function(e,t,n){"use strict";function o(e,t){return t.charAt(1).toUpperCase()}function i(e){return p[e]||(p[e]=e.replace(h,o))}function r(e){var t=0;return e.wheelDelta?t=e.wheelDelta/120:e.detail&&(t=-e.detail/3),t}function s(e,t){return e?(e=e.dom||{},e.id||(e.id=(t||_)+ ++g),e.id):(t||_)+ ++g}Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),l=n(26),c="onmousewheel"in document?"mousewheel":"DOMMouseScroll",u={},d=document.defaultView,p={},f=/alpha\(opacity=(.*)\)/gi,h=/(-[a-z])/gi,m=/height|width|margin|padding|left|top|right|bottom/,g=0,_="gen-",v=function(){function e(e){if(e.dom?this.dom=e.dom:this.dom=e,this.dom===document)u.doc?this.events=u.doc.events:(this.events={},u.doc=this);else{var t=this.dom.getAttribute("data-cache-id");t&&u[t]?this.events=u[t].events:(this.events={},t=s(),this.attr("data-cache-id",t),u[t]=this),this.cacheId=t}}return e.prototype.on=function(e,t,n,o){var i,s=this,l=e;switch(n=n||this,a.essential.isString(o)&&(i=o),e){case"mousewheel":e=c;break;case"mouseenter":e="mouseover";break;case"mouseleave":e="mouseout"}var u=function(i){var c=i.target,d=i.fromElement||i.relatedTarget,p=i.toElement||i.target;switch(l){case"mouseenter":if(!d)return;if(s.within(d,"mouseenter"))return;break;case"mouseleave":if(!p)return;if(s.within(p))return}t.apply(n,[i,c,r(i)]),a.essential.isObject(o)&&o.$once&&s.dom.removeEventListener(e,u,!1)};this.dom.addEventListener(e,u,!1),this.events[e]=this.events[e]||[],this.events[e].push({fn:t,wrapperFn:u})},e.prototype.once=function(e,t,n,o){o=o||{},n=n||this,o.$once=!0,this.on(e,t,n,o)},e.prototype.un=function(e,t){for(var n,o,i=this.events[e]||[],r=0,s=i.length;r<s;r++)if(n=i[r],n.fn===t){o=n.wrapperFn;break}o&&(i.splice(r,1),this.dom.removeEventListener(e,o,!1))},e.prototype.within=function(t,n){var o,i=!1,r=!1;return t=new e(t),o=t.attr("id"),o||(o=s(),r=!0,t.attr("id",o)),0===this.select("#"+o).length&&(i=!1),this.dom.id&&this.dom.id===t.dom.id&&(i=!0),r&&t.removeAttr("id"),i},e.prototype.select=function(e){return l.domhelper.select(this.dom,e)},e.prototype.attr=function(e,t){return l.domhelper.attr(this.dom,e,t)},e.prototype.removeAttr=function(e){l.domhelper.removeAttr(this.dom,e)},e.prototype.val=function(e){return l.domhelper.val(this.dom,e)},e.prototype.css=function(e,t){if(""!==e){if(!/:/.test(e))return a.essential.isObject(e)?this.setStyle(e):e&&t?this.setStyle(e,t):e?this.getStyle(e):void 0;for(var n=e.split(";"),o=0,i=n.length;o<i;o++){var r=n[o].split(":"),s=!1;r.length<2||(/!important/.test(r[1])&&(s=!0,r[1]=r[1].replace(" !important","")),this.setStyle(r[0],r[1],s))}}},e.prototype.setStyle=function(e,t,n){var o,r;"object"!=typeof e&&(o={},o[e]=t,e=o);for(r in e)switch(t=e[r],m.test(r)&&!isNaN(Number(t))&&(t+="px"),r){case"border-radius":a.essential.isNumber(t)&&(t+="px"),this.dom.style.BorderRadius=t,this.dom.style.borderRadius=t,this.dom.style.MozBorderRadius=t,this.dom.style.WebkitBorderRadius=t;break;case"float":this.dom.style.styleFloat=t,this.dom.style.cssFloat=t;break;default:this.dom.style[i(r)]=t,n&&this.dom.style&&this.dom.style.setProperty&&this.dom.style.setProperty(r,t,"important")}return this},e.prototype.getStyle=function(e,t){if(d&&d.getComputedStyle){var n=this.dom,o=void 0,r=void 0,s=void 0,a=void 0;return n==document?null:(e=i(e),s=(o=n.style[e])?o:(r=d.getComputedStyle(n,""))?r[e]:null,(/\+|\ /.test(s)||"auto"===s||t)&&void 0!==n.getBoundingClientRect().width?n.getBoundingClientRect()[e]:("marginRight"==e&&"0px"!=s&&(a=n.style.display,n.style.display="inline-block",s=d.getComputedStyle(n,"").marginRight,n.style.display=a),"backgroundColor"==e&&"rgba(0, 0, 0, 0)"==s&&(s="transparent"),s))}var n=this.dom,l=void 0,r=void 0;if(n==document)return null;if("opacity"==e){if(n.style.filter.match&&(l=n.style.filter.match(f))){var c=parseFloat(l[1]);if(!isNaN(c))return c?c/100:0}return 1}return e=i(e),n.style[e]||((r=n.currentStyle)?r[e]:null)},e.prototype.parent=function(e){return l.domhelper.parent(this.dom,e)},e.prototype.isVisible=function(){return l.domhelper.isVisible(this.dom)},e.prototype.addClass=function(e){return l.domhelper.addClass(this.dom,e)},e.prototype.hasClass=function(e){return l.domhelper.hasClass(this.dom,e)},e.prototype.height=function(e){return void 0!==e?(a.essential.isString(e)&&/px/.test(String(e))===!1&&(e+="px"),this.css("height",e),this):parseInt(this.css("height"))},e.prototype.wrap=function(t){t=new e(t);var n=t.parent();this.update(t.dom.outerHTML),n.append(this,t),t.destroy()},e.prototype.remove=function(e){l.domhelper.remove(this.dom,e)},e.prototype.destroy=function(e){void 0===e&&(e=!1),delete u[this.cacheId],l.domhelper.destroy(this.dom,e)},e.prototype.update=function(e){this.dom.innerHTML=e},e.prototype.first=function(e){return void 0===e&&(e=!0),l.domhelper.first(this.dom,e)},e.prototype.append=function(e,t){l.domhelper.append(this.dom,e,t)},e.prototype.caret=function(e,t){return l.domhelper.caret(this.dom,e,t)},e}();t.Element=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(8),r=n(7),s=n(1),a=n(23),l=n(15),c=n(16),u=n(18),d=n(29),p=n(9),f=n(30);!function(e){function t(t,n,o){e.push(["sendMessage",[t,n,o]])}function n(e){l.Analytics.trackSysEvent(i.util.isObject(e)?e.component_event:e)}function o(e){r.Queue.push(e)}function h(e){this.push(["setAccount",[e]])}function m(e){this.push(["setDynamicalReplacement",[e]])}function g(e){this.push(["setWebUrl",[e]])}function _(e,t){o(["startCall",[e,t]])}function v(){var e=Comagic.UI.getWidget("consultant_chat"),t=Comagic.UI.getWidget("consultant_offline_message"),n=e&&e.isChatAvailable()?e:t;Comagic.UI.show(n.name)}function b(){Comagic.UI.show("sitephone")}function y(){b()}function w(){t("start_visitor_chat")}function E(e,t){this.sendChatByMail(e,t)}function T(e,n){t("send_chat_by_mail",e,n)}function S(e){this.setOperatorRating(e)}function O(e){t("set_operator_rating",{rating:e,comment:null})}function A(){this.notifyWriting()}function I(){t("write_notify",!1)}function C(){this.closeChat()}function k(){t("close_chat")}function P(e,t,n,o){this.push(["trackEvent",[e,t,n,o]])}function N(e,t){this.push(["setProperty",[e,t]])}function R(e,t){this.push(["getProperty",[e,t]])}function M(e,t){this.push(["hasProperty",[e,t]])}function j(e){this.push(["deleteProperty",[e]])}function L(e){this.push(["getUploadUrl",[e]])}function x(){return a.DynamicalTracking.phones}function D(){return ne("_cmg_phones")}function U(e){this.push(["setOperatorId",[e]])}function F(){return s.CookieShop.getSessionId()}function H(){return s.CookieShop.getVisitorId()}function W(e){t("track_lead_show",{action_type:e.action_type,action_log_id:e.action_log_id})}function G(e,n,o){t("submit_lead_form",{log_id:e,data:n},o)}function X(e){t("cancel_lead_form",{log_id:e})}function B(e){t("on_timer_up",{scenario_id:e})}function V(){return{site_key:te(),visitor_id:Number(this.getVisitorId()),hit_id:Number(J()),session_id:Number(this.getSessionId()),consultant_server_url:$(),comagic_id:ee()}}function Y(e){i.util.setDebug(e)}function Z(e,t){p.EventBus.on("api:"+e,t)}function Q(e,t){void 0===t&&(t={}),d.ComagicWebApi.request("get_captcha",t,e)}function q(e){}function K(){return i.util.getDeviceType()}function z(e){return i.util.tformat(e)}var J=l.Analytics.getHitId,$=c.SiteSettings.getServerBaseUrl,ee=l.Analytics.getComagicId,te=c.SiteSettings.getSiteKey,ne=u.Storage.getItem;e.sendMessage=t,e.trackSysEvent=n,e.push=o,e.setAccount=h,e.setDynamicalReplacement=m,e.setWebUrl=g,e.sitePhoneCall=_,e.openChatWindow=v,e.openSitePhonePanel=b,e.openVASitePhonePanel=y,e.openSiteRequestPanel=function(){Comagic.UI.show("consultant_offline_message")},e.startVisitorChat=w,e.onSendChatByMail=E,e.sendChatByMail=T,e.onOperatorRate=S,e.setOperatorRating=O,e.onChatTyping=A,e.notifyWriting=I,e.onChatClose=C,e.closeChat=k,e.trackEvent=P,e.setProperty=N,e.getProperty=R,e.hasProperty=M,e.deleteProperty=j,e.getUploadUrl=L,e.getDTPhones=x,e.getPhones=D,e.setOperatorId=U,e.getSessionId=F,e.getVisitorId=H,e.trackLeadShow=W,e.onLeadFormSubmit=G,e.onLeadFormCancel=X,e.onLeadTimerUp=B,e.getCredentials=V,e.setDebug=Y,e.on=Z,e.getCaptcha=Q,e.onOperatorStatusChange=q,e.getDeviceType=K,e.tformat=z,e.visitorCard=new f.DictStorage("vvc"),e.storage=new f.DictStorage("storage")}(o=t.API||(t.API={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(17);!function(e){function t(e){o=e}function n(e,t,n){i.ajax({url:o,crossDomain:!0,data:JSON.stringify({method:e,params:t||{}}),type:"POST",dataType:"json",headers:{"Content-Type":"application/json"},complete:function(e){var t;"application/json"===e.getResponseHeader("Content-Type")?(t=JSON.parse(e.response),n(t.result)):(t=e.response,n(t))}})}var o;e.init=t,e.request=n}(o=t.ComagicWebApi||(t.ComagicWebApi={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(18),i=function(){function e(e,t){void 0===t&&(t=0),this.key="_cmg_"+e,this.ttl=t,o.Storage.getItem(this.key)||o.Storage.setItem(this.key,{},this.ttl)}return e.prototype.getItem=function(e){var t=o.Storage.getItem(this.key);return t[e]},e.prototype.setItem=function(e,t){var n=o.Storage.getItem(this.key);n[e]=t,o.Storage.setItem(this.key,n,this.ttl)},e.prototype.getDict=function(){var e=o.Storage.getItem(this.key);return e},e}();t.DictStorage=i},function(e,t,n){"use strict";var o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e};Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(7),s=n(9),a=n(32),l=n(34),c=n(8),u=c.util.createLinkTag,d=n(35),p=c.util.log,f=n(38);!function(e){function t(e,t){l.WidgetManager.activeWidgetGroupList=Object.getOwnPropertyNames(e.widgets).filter(function(t){return null!==e.widgets[t]}),d("list active widget = [",l.WidgetManager.activeWidgetGroupList,"]");for(var o=function(o){e=n(o,e);var i,s="sitephone"===o&&!l.WidgetManager.userInitialWidgetViewsOptions.sitephone;s?(e.widgets.sitephone.is_new=!0,i=new a.WidgetLoader("sitephone2",t)):i=new a.WidgetLoader(o,t),l.WidgetManager.widgetsOpts[o]=i.getOpts(),i.load(function(e){var t={__commands:["viewControllerReady:"+o]};t["viewControllerReady:"+o]=function(t){t&&t(e,i.getOpts())},r.Queue.registerAndProcess(["viewControllerReady:"+o],t,!0)})},i=0,s=l.WidgetManager.activeWidgetGroupList;i<s.length;i++){var c=s[i];o(c)}}function n(e,t){return t.widgets[e].common=o({},t.widgets[e].common,t.common),t}function i(e){var t=u();for(var n in e)l.WidgetManager.userInitialWidgetViewsOptions[n]=e[n]&&e[n][t]}function s(e){f.C.PHONE_MASK_FORMAT=e}var u=c.util.getDeviceType,d=c.util.log;e.__commands=["applyWidgetsOptions","setUIPhoneMaskFormat"],e.init=t,e.applyWidgetsOptions=i,e.setUIPhoneMaskFormat=s}(i=t.Core||(t.Core={})),r.Queue.registerAndProcess(i.__commands,i,!0),s.EventBus.on("waitforloadstyles",function(e,t){var n=l.WidgetManager.widgetsOpts[e].css;if(n){n=d(n)(t);var o=u(n);t.id?o.id="comagic-"+e+"-"+t.id:o.id="comagic-"+e,o.onload=function(){p("styles was loaded from url "+n),r.Queue.push("viewControllerReady:"+e,function(n,o){s.EventBus.fireEvent(e+":viewcontrollerrun",t,n,o)})},o.onerror=function(){p("error! styles was not loaded from url "+n)},document.head.appendChild(o)}else r.Queue.push("viewControllerReady:"+e,function(n,o){s.EventBus.fireEvent(e+":viewcontrollerrun",t,n,o)})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(33),i=n(8),r=i.util.log,s=n(17),a=n(34),l=n(3),c=l.essential.mergeObjects,u=function(){function e(e,t){this.name=e,this.opts=c(o.getDefaultWidgetOpts(e,t),a.WidgetManager.userInitialWidgetViewsOptions[e]),a.WidgetManager.widgetsOpts[e]=this.getOpts()}return e.prototype.getOpts=function(){return this.opts},e.prototype.checkLoad=function(e){var t=this,n=e,o={},i={js:this.opts.js};for(var r in this.opts.tpls)i[r]=this.opts.tpls[r];return function(e,r){var s=!1;for(var a in i)i[a]===e&&("js"!==a&&(o[a]=r||""),i[a]=null),s=s||i[a];!s&&n(o,t.script)}},e.prototype.load=function(e){var t=this,n=this.checkLoad(e);if(this.opts.js&&(this.script=i.util.loadScript(this.opts.js,function(){r("scripts was loaded from url "+t.opts.js),n(t.opts.js)}),this.script.id="comagic-vc-"+this.name),this.opts.tpls){var o=function(e){s.ajax({url:a.opts.tpls[e],method:"GET",contentType:"text/html",complete:function(o){r("html was loaded from url "+t.opts.tpls[e]),n(t.opts.tpls[e],o.response)}})},a=this;for(var l in this.opts.tpls)o(l)}return this.script},e}();t.WidgetLoader=u},function(e,t,n){"use strict";function o(e,t){d=e,p=t}function i(){return"prod"===p?".min.js":".debug.js"}function r(e,t){var n={js:"",css:"",tpls:null},o=f.util.getDeviceType();return e&&(e[o]?(n.tpls=u({},e[o].tpls),n.css=e[o].css||"",n.js=e[o].js||""):h("views for "+t+" options doesn't found")),n}function s(e,t){return new m.essential.URL(t).replace({path:e})}function a(e,t){for(var n in e)e[n]=s(e[n],t);return e}function l(){return v.Storage.getItem("_cmg_customizeId")?"?uid="+v.Storage.getItem("_cmg_customizeId"):""}function c(e,t){var n=_.SiteSettings._viewsHost,o=r(d[e],e);if(n&&!g.WidgetManager.userInitialWidgetViewsOptions[e]){o.js=""+s(o.js,n)+i(),o.css=s(o.css,n),o.tpls=a(o.tpls,n),o.js=""+o.js+l(),o.css=""+o.css+l();for(var c in o.tpls)o.tpls[c]=""+o.tpls[c]+l()}else o.js=""+s(o.js,t)+i(),o.css=s(o.css,t),o.tpls=a(o.tpls,t);return o.beforeViewControllerRun=function(e,t){return e.is_personal_info_enabled=!1,e.personal_info_text=b.default.PERSONAL_INFO_TEXT,{settings:e,tpls:t}},o.afterViewControllerRun=function(){},o}var u=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e};Object.defineProperty(t,"__esModule",{value:!0});var d,p,f=n(8),h=f.util.log,m=n(3),g=n(34),_=n(16),v=n(18),b=n(4);t.init=o,t.getPostfixWidgetUrl=i,t.getWidgetOptionsForCurrentDevice=r,t.getDefaultWidgetOpts=c},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n;!function(e){function t(t,n){e.registeredWidgetsCollection[t]=n}function n(t){return e.registeredWidgetsCollection[t]}function o(t){if(e.createdWidgets[t])for(var n=0;n<e.createdWidgets[t].length;n++)e.createdWidgets[t][n].destroy();e.createdWidgets[t]=[]}function i(){for(var t in e.createdWidgets)o(t)}e.registeredWidgetsCollection={},e.createdWidgets={},e.userInitialWidgetViewsOptions={},e.widgetsOpts={},e.register=t,e.getWidget=n,e.destroyWidgetsByGroup=o,e.destroyWidgets=i}(n=t.WidgetManager||(t.WidgetManager={}))},function(e,t,n){(function(t){function o(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function i(e,t){for(var n=-1,o=e?e.length:0,i=Array(o);++n<o;)i[n]=t(e[n],n,e);return i}function r(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}function s(e,t){return i(t,function(t){return e[t]})}function a(e){return"\\"+J[e]}function l(e,t){return function(n){return e(t(n))}}function c(e,t){var n=de(e)||T(e)?r(e.length,String):[],o=n.length,i=!!o;for(var s in e)!t&&!oe.call(e,s)||i&&("length"==s||v(s,o))||n.push(s);return n}function u(e,t,n,o){return void 0===e||E(e,ne[n])&&!oe.call(o,n)?t:e}function d(e,t,n){var o=e[t];oe.call(e,t)&&E(o,n)&&(void 0!==n||t in e)||(e[t]=n)}function p(e){if(!y(e))return ae(e);var t=[];for(var n in Object(e))oe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function f(e){if(!k(e))return w(e);var t=y(e),n=[];for(var o in e)("constructor"!=o||!t&&oe.call(e,o))&&n.push(o);return n}function h(e,t){return t=le(void 0===t?e.length-1:t,0),function(){for(var n=arguments,i=-1,r=le(n.length-t,0),s=Array(r);++i<r;)s[i]=n[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=n[i];return a[t]=s,o(e,this,a)}}function m(e){if("string"==typeof e)return e;if(N(e))return ue?ue.call(e):"";var t=e+"";return"0"==t&&1/e==-U?"-0":t}function g(e,t,n,o){n||(n={});for(var i=-1,r=t.length;++i<r;){var s=t[i],a=o?o(n[s],e[s],s,n,e):void 0;d(n,s,void 0===a?e[s]:a)}return n}function _(e){return h(function(t,n){var o=-1,i=n.length,r=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(r=e.length>3&&"function"==typeof r?(i--,r):void 0,s&&b(n[0],n[1],s)&&(r=i<3?void 0:r,i=1),t=Object(t);++o<i;){var a=n[o];a&&e(t,a,o,r)}return t})}function v(e,t){return t=null==t?F:t,!!t&&("number"==typeof e||q.test(e))&&e>-1&&e%1==0&&e<t}function b(e,t,n){if(!k(n))return!1;var o=typeof t;return!!("number"==o?S(n)&&v(t,n.length):"string"==o&&t in n)&&E(n[t],e)}function y(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||ne;return e===n}function w(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}function E(e,t){return e===t||e!==e&&t!==t}function T(e){return O(e)&&oe.call(e,"callee")&&(!se.call(e,"callee")||ie.call(e)==H)}function S(e){return null!=e&&C(e.length)&&!I(e)}function O(e){return P(e)&&S(e)}function A(e){return!!P(e)&&(ie.call(e)==W||"string"==typeof e.message&&"string"==typeof e.name)}function I(e){var t=k(e)?ie.call(e):"";return t==G||t==X}function C(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=F}function k(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function P(e){return!!e&&"object"==typeof e}function N(e){return"symbol"==typeof e||P(e)&&ie.call(e)==B}function R(e){return null==e?"":m(e)}function M(e){return S(e)?c(e):p(e)}function j(e){return S(e)?c(e,!0):f(e)}function L(e,t,n){var o=D.imports._.templateSettings||D;n&&b(e,t,n)&&(t=void 0),e=R(e),t=pe({},t,o,u);var i,r,l=pe({},t.imports,o.imports,u),c=M(l),d=s(l,c),p=0,f=t.interpolate||K,h="__p += '",m=RegExp((t.escape||K).source+"|"+f.source+"|"+(f===x?Q:K).source+"|"+(t.evaluate||K).source+"|$","g"),g="sourceURL"in t?"//# sourceURL="+t.sourceURL+"\n":"";e.replace(m,function(t,n,o,s,l,c){return o||(o=s),h+=e.slice(p,c).replace(z,a),n&&(i=!0,h+="' +\n__e("+n+") +\n'"),l&&(r=!0,h+="';\n"+l+";\n__p += '"),o&&(h+="' +\n((__t = ("+o+")) == null ? '' : __t) +\n'"),p=c+t.length,t}),h+="';\n";var _=t.variable;_||(h="with (obj) {\n"+h+"\n}\n"),h=(r?h.replace(V,""):h).replace(Y,"$1").replace(Z,"$1;"),h="function("+(_||"obj")+") {\n"+(_?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(r?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var v=fe(function(){return Function(c,g+"return "+h).apply(void 0,d)});if(v.source=h,A(v))throw v;return v}var x=n(36),D=n(37),U=1/0,F=9007199254740991,H="[object Arguments]",W="[object Error]",G="[object Function]",X="[object GeneratorFunction]",B="[object Symbol]",V=/\b__p \+= '';/g,Y=/\b(__p \+=) '' \+/g,Z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Q=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,q=/^(?:0|[1-9]\d*)$/,K=/($^)/,z=/['\n\r\u2028\u2029\\]/g,J={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},$="object"==typeof t&&t&&t.Object===Object&&t,ee="object"==typeof self&&self&&self.Object===Object&&self,te=$||ee||Function("return this")(),ne=Object.prototype,oe=ne.hasOwnProperty,ie=ne.toString,re=te.Symbol,se=ne.propertyIsEnumerable,ae=l(Object.keys,Object),le=Math.max,ce=re?re.prototype:void 0,ue=ce?ce.toString:void 0,de=Array.isArray,pe=_(function(e,t,n,o){g(t,j(t),e,o)}),fe=h(function(e,t){try{return o(e,void 0,t)}catch(e){return A(e)?e:new Error(e)}});e.exports=L}).call(t,function(){return this}())},function(e,t){var n=/<%=([\s\S]+?)%>/g;e.exports=n},function(e,t,n){(function(t){function o(e){return function(t){return null==e?void 0:e[t]}}function i(e){if("string"==typeof e)return e;if(s(e))return O?O.call(e):"";var t=e+"";return"0"==t&&1/e==-u?"-0":t}function r(e){return!!e&&"object"==typeof e}function s(e){return"symbol"==typeof e||r(e)&&E.call(e)==d}function a(e){return null==e?"":i(e)}function l(e){return e=a(e),e&&f.test(e)?e.replace(p,y):e}var c=n(36),u=1/0,d="[object Symbol]",p=/[&<>"'`]/g,f=RegExp(p.source),h=/<%-([\s\S]+?)%>/g,m=/<%([\s\S]+?)%>/g,g={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},_="object"==typeof t&&t&&t.Object===Object&&t,v="object"==typeof self&&self&&self.Object===Object&&self,b=_||v||Function("return this")(),y=o(g),w=Object.prototype,E=w.toString,T=b.Symbol,S=T?T.prototype:void 0,O=S?S.toString:void 0,A={escape:h,evaluate:m,interpolate:c,variable:"",imports:{_:{escape:l}}};e.exports=A}).call(t,function(){return this}())},function(e,t,n){"use strict";function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,o=e;n<o.length;n++){var i=o[n];d.WidgetManager.getWidget(i).show(!0)}}function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,o=e;n<o.length;n++){var i=o[n];d.WidgetManager.getWidget(i).hide(!0)}}function r(e){return d.WidgetManager.getWidget(e)}function s(e){var t=parseInt(e.substring(0,2),16),n=parseInt(e.substring(2,4),16),o=parseInt(e.substring(4,6),16);return(.299*t+.587*n+.114*o)/255*100<40?"FFFFFF":"000000"}function a(){return h.util.C.VALID_FILE_EXTENSIONS}function l(e){var t=v.default.MONTHS;return h.util.sformat(v.default.DATE_FORMAT,e.getDate(),t[e.getMonth()])}function c(e){return e.getHours()+":"+("0"+e.getMinutes()).slice(-2)}function u(e,t){void 0===t&&(t={});var n=g(e),o=n(t);return _(o)}Object.defineProperty(t,"__esModule",{value:!0});var d=n(34),p=n(39),f=n(40),h=n(8),m=h.util.getDeviceType,g=n(35),_=h.util.createElFromHtml,v=n(4);t.show=o,t.hide=i,t.getWidget=r,t.getContrastColor=s;var b=n(40);t.Mobile=b.Mobile,t.formatPhoneNumber=function(e,t){t=t.replace(/\d/g,"_");var n=0;return t.replace(/_/g,function(){return e[n++]||""})},t.getValidFileFormatExtensions=a,"mobile"===m()&&f.initMobileEvents(),t.toDateString=l,t.toTimeString=c,t.createEl=u,t.C={PLACEHOLDERS:v.default.PLACEHOLDERS,FIELD_IS_REQUIRED_ERROR_TEXT:v.default.FIELD_IS_REQUIRED_ERROR_TEXT,PREVIEW_CONSULTANT_OPERATOR_INFO:v.default.PREVIEW_CONSULTANT_OPERATOR_INFO,PHONE_MASK_FORMAT:v.default.PHONE_MASK_FORMAT,OPERATOR_TYPING_TEXT:v.default.OPERATOR_TYPING_TEXT,RATING_TEXT:v.default.RATING_TEXT,RATING_FEEDBACK_TEXT:v.default.RATING_FEEDBACK_TEXT,VCARD_TEXT:v.default.VCARD_TEXT,START_CHAT_TEXT:v.default.START_CHAT_TEXT,WELCOME_CHAT_TEXT:v.default.WELCOME_CHAT_TEXT,SEND_OFFLINE_MESSAGE_TEXT:v.default.SEND_OFFLINE_MESSAGE_TEXT,CALL_SITEPHONE_TEXT:v.default.CALL_SITEPHONE_TEXT,DATE_CHANGE_TITLE_TEXT:v.default.DATE_CHANGE_TITLE_TEXT,DATE_NOW_TITLE_TEXT:v.default.DATE_NOW_TITLE_TEXT,EDITOR_FIELD_TEXT:v.default.EDITOR_FIELD_TEXT,CALL_NOW_BUTTON_TEXT:v.default.CALL_NOW_BUTTON_TEXT,SELECT_DATETIME_BUTTON_TEXT:v.default.SELECT_DATETIME_BUTTON_TEXT,REPEAT_BUTTON_TEXT:v.default.REPEAT_BUTTON_TEXT,CALL_GENERATOR_TITLE:v.default.CALL_GENERATOR_TITLE,CALL_GENERATOR_MESSAGE:v.default.CALL_GENERATOR_MESSAGE,SUPPORTED_FILE_TYPES:".png,.xpm,.jpg,.doc,.docx,.txt,.xls,.xlsx,.csv,.odt,.ods,.pdf,.djvu,.xml,.fb2,.epub",MESSAGES_SETTINGS:{email:{sender:"bot",name:"email",text:v.default.EMAIL_MESSAGE.labelText,is_required:!0,feedbackText:v.default.EMAIL_MESSAGE.feedbackText,buttonText:v.default.EMAIL_MESSAGE.buttonText}},RETENTION_BUTTONS_SETTINGS:{chat:{sender:"bot",text:v.default.CHANGE_GROUP_MESSAGE.labelText,buttonText:v.default.CHANGE_GROUP_MESSAGE.buttonText},sitephone:{sender:"bot",text:v.default.SITEPHONE_MESSAGE.labelText,buttonText:v.default.SITEPHONE_MESSAGE.buttonText},offline_message:{sender:"bot",text:v.default.OFFLINE_MESSAGE_MESSAGE.labelText,buttonText:v.default.OFFLINE_MESSAGE_MESSAGE.buttonText}},IMAGES:{OPERATOR:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB8AAAAfCAYAAAAfrhY5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RjBFM0Y1RkRBQjU5MTFFN0FFRjNDMEI1NkY1RTkxRDAiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RjBFM0Y1RkVBQjU5MTFFN0FFRjNDMEI1NkY1RTkxRDAiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpGMEUzRjVGQkFCNTkxMUU3QUVGM0MwQjU2RjVFOTFEMCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpGMEUzRjVGQ0FCNTkxMUU3QUVGM0MwQjU2RjVFOTFEMCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Purx7vcAAAQ5SURBVHjavJfbTlxlFMfXMJwZhjOGcEq4wFIuuGBiU22sPoB4o8bonYkxvkCjT2DTR2gTL42tF0Z9AO1BE41cEAI4JEACISBny3BmZvr/7ezdTPfsvWePabqSj82evb71X986f4lisWhxaHFx8Yoe72nd0Lqq1aPVpvWf1rbWgtZjrV9GR0f/iSMzEQUuwIQe72t9VVtbey2VSllTU5M1NDSY3q2mpsYKhYJdXl7a2dmZnZycWC6X4/1P7bmt9ZMUKVYNLuBRPe4K6GZXV5cBHJdQYHd3F4Ue6vULKZCNDS7gDxOJxLfd3d2pjo4O+790cHBg29vbOWF8JgV+KGMAvHRls9nPl5aW8qenp8WXQchBHnL9WC+cXCf+QL78fnBwMFlXV1emKL5dXV21vb09Ozw8dN7xfWtrq/X391t7e7sTE366uLiwtbW1vPg/kQUelJkdH8vUfw8NDbUSUH4CbGZmxlpaWkzusMbGRksmk5bP502ns52dHTs6OrKJiQlHGT8RkFL8UHgZKbD4HNyN6l97e3tvor2fiOLp6WkbHh52wKMCDctMTk4GWoAY2NraIgjfJQtq3N+niOogYGhubs45bRQwREbAB38QIR8cN33NA79FOgUR5j4+PjZZJVaEw8ee/f39wO8uzi0HXCZ/XUHzZlgeIyTMImEEAAqEWUd416mYnHwqqoAAHhRAUdTc3BwK7ikALuA3YA4j0oR0qobq6+udII1STvQW4GMwv0py8a4C/lrUySg25Gg1RO4HFSmPXLxewNN0pzCithPt1RD+jooTFy/N36e0xTBCCB2qGiJI+/r6Qr+7eE8B/5caHXVyFFBligUMH4UmqMKV9ghYAV84Pz+PFDg+Pu7U7qgI9srwxsaGjYyMRPK5ePOAP6nkU05Bw1BhCLUAv6+srFgmk4k8NeTi/Z5Qn72i6FuopK13Muo23Ys6DwinoGHgGixUCRhaXl7G9GPeAPGHIjT2gCDNizopQ0JxfX29KKVi7wUHPHC9BL+jiP7RX2YJDHzN8ECuDwwMWE9Pj3M6Fv+X8uLvzc1Nxyp8S6fT5p8N3My54+/nv6kjvU0TKRVEQfAaC/2awaGtrc0R7A0TKMc3QPmdkoxr4CVbNBk5Srj9/JFEvUM/908y052dnSkGAg/UX/1QDKH4mnylYGAFJhvtL+MFkKcmJJTMuZNMtmx6lQIfSeB3qr3JOIETl3CZFM5L0U8FfP95pStlkKkeiOFLmbIQVfWqIeTIDQXklgK/AK7p0jGfUuaerPGxFMlVKj6ViP3IQZ6A75XVeP4QHPiGQHLrOQP+pKzxiG9R5TesfLKP/XrNBF4YPJ/Pz887LdCfaspJ7672tYLpDXiIcIKM4GJ5FwDMS+QT6Xr/S3u+qXhXI3JnZ2edob9Cm+SWOuXeUseYAzASn2hO7i31idbPcW+pzwQYANrNKHNaUINcAAAAAElFTkSuQmCC"}},t.createObserver=p.default,t.isIE=h.util.isIE},function(e,t){"use strict";function n(e){return i||(i={isUsed:!1,sub:function(e){s.push(e)},pub:function(e){for(var t={},n=0,i=r;n<i.length;n++){var a=i[n];t=o({},t,a(e))}for(var l=0,c=s;l<c.length;l++){var u=c[l];u(t)}}}),e&&(i.isUsed=!0,r.push(e)),i}var o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e};Object.defineProperty(t,"__esModule",{value:!0});var i,r=[],s=[];t.default=n},function(e,t,n){"use strict";function o(){return 90===Math.abs(window.orientation)?"landscape":"portrait"}function i(){var e={height:window.innerHeight,width:window.innerWidth};return window.visualViewport&&(e.height=window.visualViewport.height,e.width=window.visualViewport.width),e}function r(){var e={top:window.pageYOffset||window.document.documentElement.scrollTop||window.document.body&&window.document.body.scrollTop||0,left:window.pageXOffset||window.document.documentElement.scrollLeft||window.document.body&&window.document.body.scrollLeft||0};return window.visualViewport&&(e.top=window.visualViewport.pageTop,e.left=window.visualViewport.pageLeft),e}function s(){return parseInt(window.getComputedStyle(document.body).marginTop)}function a(){N=i()}function l(){R=r()}function c(){j=s()}function u(){a(),l(),c()}function d(){var e=i();return N.height!==e.height||N.width!==e.width}function p(){var e=r();return R.top!==e.top||R.left!==e.left}function f(){var e=s();return j!==e}function h(e,t){D[e]||(D[e]=!0,k.EventBus.fireEvent("api:ui:"+e+"start")),x[e]&&(window.clearTimeout(x[e]),u()),x[e]=setTimeout(function(){D[e]=!1,k.EventBus.fireEvent("api:ui:"+e+"end")},t)}function m(){u(),window.setInterval(function(){(p()||d()||f())&&h("action",L)},100)}function g(){document.body?m():window.addEventListener("load",m)}function _(){return window.screen.width<window.screen.height?window.screen.width/window.innerWidth:window.screen.height/window.innerHeight}function v(e){var t,n,o=e.replace(/ /g,"").split(","),i=o.length,r={};for(t=0;t<i;t++)n=o[0].split("="),r[n[0]]=n[1];return r}function b(e){var t,n=[],o="";for(t in e)e.hasOwnProperty(t)&&n.push(t+"="+e[t]);return o=n.join(",")}function y(){M={top:window.pageYOffset||window.document.documentElement.scrollTop||window.document.body&&window.document.body.scrollTop||0,left:window.pageXOffset||window.document.documentElement.scrollLeft||window.document.body&&window.document.body.scrollLeft||0}}function w(){window.scrollTo(M.left,M.top)}function E(){if(F++,1===F){var e=document.querySelector("meta[name=viewport]");e?(I=e.getAttribute("content"),C=_()):(e=document.createElement("meta"),
e.setAttribute("name","viewport"),document.querySelector("head").appendChild(e)),e.content=b({width:"device-width","user-scalable":"no","initial-scale":"1.0","minimum-scale":"1.0","maximum-scale":"1.0"})}}function T(){if(0!==F&&(F--,0===F)){var e=document.querySelector("meta[name=viewport]"),t=I?v(I):{"user-scalable":"yes","minimum-scale":"0.25","maximum-scale":"1.6"};P.util.apply(t,{"initial-scale":C||"0.25"}),e.content=b(t)}}function S(e){var t=document.body;if(e){if(1!==F)return;t.style.position="fixed",t.style.height="100%",t.style.overflow="visible"}else{if(0!==F)return;t.style.position="",t.style.height="",t.style.overflow=""}}function O(e){var t=r(),n=window.getComputedStyle(document.body).position,o=0;if("static"!==n)if("top"===e){null===H&&(H=t.top-Math.abs(document.body.getBoundingClientRect().top)),o=Math.abs(H);var i=s();i!==o&&0!==i&&(o+=i)}else"left"===e&&(null===W&&(W=document.body.getBoundingClientRect().left),o=W);return o}function A(e,t,n,s,a){var l=(window.visualViewport&&window.visualViewport.width||window.innerWidth)/100*("landscape"===o()?U:1),c=r(),u=i();for(var d in t)t.hasOwnProperty(d)&&("100%"===t[d]?e.style[d]=u[d]-2+"px":e.style[d]=Math.floor(parseFloat(t[d])*l)+"px");for(var d in n)n.hasOwnProperty(d)&&(e.style[d]=parseFloat(n[d])*l+"px");a?(a.top=Math.floor(parseFloat(a.top)*l),a.left=Math.floor(parseFloat(a.left)*l)):a={top:0,left:0};var p=e.style.height||e.offsetHeight;s&&("top"===s.top?e.style.top=c.top+a.top-O("top")+"px":"bottom"===s.top?e.style.top=c.top-a.top+u.height-parseFloat(p)-O("top")+"px":"middle"===s.top?e.style.top=c.top-a.top+u.height/2-parseFloat(p)/2-O("top")+"px":"middle-fixed"===s.top&&(e.style.top=c.top-a.top+u.height/2-parseFloat(p)-O("top")+"px"),"left"===s.left?e.style.left=c.left+a.left-O("left")+1+"px":"right"===s.left&&(e.style.left=c.left-a.left-O("left")+u.width-parseFloat(e.style.width)-1+"px"))}Object.defineProperty(t,"__esModule",{value:!0});var I,C,k=n(9),P=n(8),N={},R={},M={},j=0,L=400,x={},D={},U=window.screen.availWidth<window.screen.availHeight?window.screen.availWidth/window.screen.availHeight:window.screen.availHeight/window.screen.availWidth,F=0,H=null,W=null;t.initMobileEvents=g;var G;!function(e){function t(){y(),E(),S(!0)}function n(){T(),S(!1),w()}function o(){return!!F}function i(e,t,n,o,i){return A(e,t,n,o,i)}e.form=t,e.unform=n,e.isFullSizeMode=o,e.updateLabelStyles=i}(G=t.Mobile||(t.Mobile={}))},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_WIDGET_VIEWS_OPTIONS={personal_form:{desktop:{js:"/widget/js/lead/desktop/personal_form",css:"/widget/css/lead/desktop/lead_personal_form_desktop-<%=banner_color%>.css",tpls:{personal_form:"/widget/html/lead/desktop/personal_form.html"}},tablet:{js:"/widget/js/lead/desktop/personal_form",css:"/widget/css/lead/desktop/lead_personal_form_desktop-<%=banner_color%>.css",tpls:{personal_form:"/widget/html/lead/desktop/personal_form.html"}},mobile:{js:"/widget/js/lead/mobile/personal_form",css:"/widget/css/lead/mobile/lead_personal_form_mobile-<%=banner_color_mobile%>.css",tpls:{personal_form:"/widget/html/lead/mobile/personal_form.html"}}},call_generator:{desktop:{js:"/widget/js/lead/desktop/call_generator",css:"/widget/css/lead/desktop/lead_call_generator_desktop.css",tpls:{call_generator:"/widget/html/lead/desktop/call_generator.html"}},tablet:{js:"/widget/js/lead/desktop/call_generator",css:"/widget/css/lead/desktop/lead_call_generator_desktop.css",tpls:{call_generator:"/widget/html/lead/desktop/call_generator.html"}},mobile:{js:"/widget/js/lead/mobile/call_generator",css:"/widget/css/lead/mobile/lead_call_generator_mobile-<%=banner_color_mobile%>.css",tpls:{call_generator:"/widget/html/lead/mobile/call_generator.html"}}},offline_message_generator:{desktop:{js:"/widget/js/lead/desktop/offline_message_generator",css:"/widget/css/lead/desktop/lead_offline_message_generator_desktop-<%=banner_color%>.css",tpls:{offline_message_generator:"/widget/html/lead/desktop/offline_message_generator.html"}},tablet:{js:"/widget/js/lead/desktop/offline_message_generator",css:"/widget/css/lead/desktop/lead_offline_message_generator_desktop-<%=banner_color%>.css",tpls:{offline_message_generator:"/widget/html/lead/desktop/offline_message_generator.html"}},mobile:{js:"/widget/js/lead/mobile/offline_message_generator",css:"/widget/css/lead/mobile/lead_offline_message_generator_mobile-<%=banner_color_mobile%>.css",tpls:{offline_message_generator:"/widget/html/lead/mobile/offline_message_generator.html"}}},consultant:{desktop:{js:"/widget/js/consultant/desktop/consultant",css:'/widget/css/consultant/desktop/consultant-<%=common["banner_color"]%>.css',tpls:{consultant_chat_bot_message:"/widget/html/consultant/desktop/consultant_chat_bot_message.html",consultant_chat_bot_email_message:"/widget/html/consultant/desktop/consultant_chat_bot_email_message.html",consultant_chat_bot_retention_btn_message:"/widget/html/consultant/desktop/consultant_chat_bot_retention_btn_message.html",consultant_chat_bot_rating_message:"/widget/html/consultant/desktop/consultant_chat_bot_rating_message.html",consultant_chat_bot_vcard_message:"/widget/html/consultant/desktop/consultant_chat_bot_vcard_message.html",consultant_chat_visitor_file_message:"/widget/html/consultant/desktop/consultant_chat_visitor_file_message.html",consultant_chat_operator_file_message:"/widget/html/consultant/desktop/consultant_chat_operator_file_message.html",consultant_chat_operator_message:"/widget/html/consultant/desktop/consultant_chat_operator_message.html",consultant_chat_visitor_message:"/widget/html/consultant/desktop/consultant_chat_visitor_message.html",consultant_chat_system_message:"/widget/html/consultant/desktop/consultant_chat_system_message.html",consultant_label:"/widget/html/consultant/desktop/consultant_label.html",rack:"/widget/html/consultant/desktop/consultant_rack.html",consultant_chat:"/widget/html/consultant/desktop/consultant_chat.html",consultant_chat_group_selector:"/widget/html/consultant/desktop/consultant_chat_group_selector.html",consultant_offline_message:"/widget/html/consultant/desktop/consultant_offline_message.html"}},tablet:{js:"/widget/js/consultant/desktop/consultant",css:'/widget/css/consultant/desktop/consultant-<%=common["banner_color"]%>.css',tpls:{consultant_chat_bot_message:"/widget/html/consultant/desktop/consultant_chat_bot_message.html",consultant_chat_bot_email_message:"/widget/html/consultant/desktop/consultant_chat_bot_email_message.html",consultant_chat_bot_retention_btn_message:"/widget/html/consultant/desktop/consultant_chat_bot_retention_btn_message.html",consultant_chat_bot_rating_message:"/widget/html/consultant/desktop/consultant_chat_bot_rating_message.html",consultant_chat_bot_vcard_message:"/widget/html/consultant/desktop/consultant_chat_bot_vcard_message.html",consultant_chat_visitor_file_message:"/widget/html/consultant/desktop/consultant_chat_visitor_file_message.html",consultant_chat_operator_file_message:"/widget/html/consultant/desktop/consultant_chat_operator_file_message.html",consultant_chat_operator_message:"/widget/html/consultant/desktop/consultant_chat_operator_message.html",consultant_chat_visitor_message:"/widget/html/consultant/desktop/consultant_chat_visitor_message.html",consultant_chat_system_message:"/widget/html/consultant/desktop/consultant_chat_system_message.html",consultant_label:"/widget/html/consultant/desktop/consultant_label.html",rack:"/widget/html/consultant/desktop/consultant_rack.html",consultant_chat:"/widget/html/consultant/desktop/consultant_chat.html",consultant_chat_group_selector:"/widget/html/consultant/desktop/consultant_chat_group_selector.html",consultant_offline_message:"/widget/html/consultant/desktop/consultant_offline_message.html"}},mobile:{js:"/widget/js/consultant/mobile/consultant",css:'/widget/css/consultant/mobile/consultant-<%=common["banner_color"]%>.css',tpls:{consultant_chat_bot_message:"/widget/html/consultant/mobile/consultant_chat_bot_message.html",consultant_chat_bot_retention_btn_message:"/widget/html/consultant/mobile/consultant_chat_bot_retention_btn_message.html",consultant_chat_bot_rating_message:"/widget/html/consultant/mobile/consultant_chat_bot_rating_message.html",consultant_chat_bot_vcard_message:"/widget/html/consultant/mobile/consultant_chat_bot_vcard_message.html",consultant_chat_visitor_file_message:"/widget/html/consultant/mobile/consultant_chat_visitor_file_message.html",consultant_chat_operator_file_message:"/widget/html/consultant/mobile/consultant_chat_operator_file_message.html",consultant_invite_operator_message:"/widget/html/consultant/mobile/consultant_invite_operator_message.html",consultant_chat_operator_message:"/widget/html/consultant/mobile/consultant_chat_operator_message.html",consultant_chat_visitor_message:"/widget/html/consultant/mobile/consultant_chat_visitor_message.html",consultant_chat_system_message:"/widget/html/consultant/mobile/consultant_chat_system_message.html",consultant_label:"/widget/html/consultant/mobile/consultant_label.html",consultant_invite:"/widget/html/consultant/mobile/consultant_invite.html",consultant_chat:"/widget/html/consultant/mobile/consultant_chat.html",consultant_chat_group_selector:"/widget/html/consultant/mobile/consultant_chat_group_selector.html",consultant_offline_message:"/widget/html/consultant/mobile/consultant_offline_message.html"}}},sitephone:{desktop:{js:"/widget/js/sitephone/desktop/sitephone",css:"/widget/css/sitephone/desktop/sitephone_desktop-<%=widget_color%>.css",tpls:{sitephone:"/widget/html/sitephone/desktop/sitephone.html",sitephone_label:"/widget/html/sitephone/desktop/sitephone_label.html"}},tablet:{js:"/widget/js/sitephone/desktop/sitephone",css:"/widget/css/sitephone/desktop/sitephone_desktop-<%=widget_color%>.css",tpls:{sitephone:"/widget/html/sitephone/desktop/sitephone.html",sitephone_label:"/widget/html/sitephone/desktop/sitephone_label.html"}},mobile:{js:"/widget/js/sitephone/mobile/sitephone",css:"/widget/css/sitephone/mobile/sitephone_mobile-<%=widget_color%>.css",tpls:{sitephone:"/widget/html/sitephone/mobile/sitephone.html"}}},sitephone2:{desktop:{js:"/widget/js/sitephone2/desktop/sitephone",css:"/widget/css/sitephone2/desktop/sitephone-<%=banner_color%>.css",tpls:{rack:"/widget/html/sitephone2/desktop/sitephone_rack.html",sitephone_label:"/widget/html/sitephone2/desktop/sitephone_label.html",simple_sitephone:"/widget/html/sitephone2/desktop/sitephone_simple.html",sitephone:"/widget/html/sitephone2/desktop/sitephone.html",sitephone_times_options:"/widget/html/sitephone2/desktop/sitephone_times_options.html"}},tablet:{js:"/widget/js/sitephone2/desktop/sitephone",css:"/widget/css/sitephone2/desktop/sitephone-<%=banner_color%>.css",tpls:{rack:"/widget/html/sitephone2/desktop/sitephone_rack.html",sitephone_label:"/widget/html/sitephone2/desktop/sitephone_label.html",simple_sitephone:"/widget/html/sitephone2/desktop/sitephone_simple.html",sitephone:"/widget/html/sitephone2/desktop/sitephone.html",sitephone_times_options:"/widget/html/sitephone2/desktop/sitephone_times_options.html"}},mobile:{js:"/widget/js/sitephone2/mobile/sitephone",css:"/widget/css/sitephone2/mobile/sitephone-<%=banner_color%>.css",tpls:{sitephone:"/widget/html/sitephone2/mobile/sitephone.html",sitephone_label:"/widget/html/sitephone2/mobile/sitephone_label.html",sitephone_times_options:"/widget/html/sitephone2/mobile/sitephone_times_options.html"}}}}},function(e,t,n){"use strict";function o(e,t){i.EventBus.on(e+":viewcontrollerrun",function(n,o,s){var a=n.id?e+":"+n.id+":fire_event":e+":fire_event",l={__commands:[a]};l[a]=function(e,t){i.EventBus.fireEvent(e,t)};var c=s.beforeViewControllerRun(n,o),u=c.settings,d=c.tpls;t(u,d),s.afterViewControllerRun(window.Comagic.UI),r.Queue.registerAndProcess(l.__commands,l,!0)})}Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),r=n(7);t.registerViewController=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n(3),r=n(8),s=n(26),a=n(1);!function(e){function t(e){if(e.tg){var t=r.util.prepareSelector(e.tg),n=document.querySelectorAll(t);if(n)try{void 0===o&&(o=s.domhelper.text(n));var i=a.CookieShop.getVisitorId();s.domhelper.text(n,(o||"")+(e.pr?e.pr:"")+(i.length<=+e.tl?i:i.slice(-e.tl)))}catch(e){r.util.log(e)}}}function n(e,n){t(i.essential.apply({},n.ve))}var o;e.embedVisitorId=t,e.run=n}(o=t.VisitorIdEmbedder||(t.VisitorIdEmbedder={}))}]));