_STATICURLS=["js.zohocdn.com","css.zohocdn.com","https://files.zohopublic.com","salesiq.zohopublic.com"];WEBSITE_VISITOR_API_FLOW_ENABLED=true;var $ZSIQLSDB=$ZSIQLSDB||function(){var t=function(t){try{return window[t].setItem("test","1"),window[t].removeItem("test"),!!window[t]}catch(t){return!1}},e=t("sessionStorage"),o=t("localStorage");return{set:function(e,o,i){if($ZSIQLSDB.isLocalStorageAvail())try{this.storeInLocalStorage(e,o,i)}catch(t){$ZSIQCookie.set(e,$ZSIQLSDB.toString(o),i)}else $ZSIQCookie.set(e,$ZSIQLSDB.toString(o),i)},storeInLocalStorage:function(t,e,o){var i=JSON.parse(localStorage.siqlsdb||"{}");o&&(e.ttl=o,e.time=(new Date).getTime()),e=$ZSIQLSDB.toString(e),i[t]=e,localStorage.siqlsdb=JSON.stringify(i)},isLocalStorageAvail:function(){return o},get:function(t){return $ZSIQLSDB.isLocalStorageAvail()&&$ZSIQLSDB.getFromLocalStorage(t)||$ZSIQUtil.parseToJSON($ZSIQCookie.get(t))},isSessionStorageAvail:function(){return e},storeInSession:function(t,e){if(!this.isSessionStorageAvail())return!1;var o=$ZSIQUtil.parseToJSON(sessionStorage.utsdb||"{}");return o[t]=e,sessionStorage.utsdb=JSON.stringify(o),!0},getFromSession:function(t){if(this.isSessionStorageAvail())return $ZSIQUtil.parseToJSON(sessionStorage.utsdb||"{}")[t]},getFromLocalStorage:function(e){var o=$ZSIQUtil.parseToJSON(localStorage.siqlsdb||"{}")[e];if(!o)return null;try{if((o=$ZSIQUtil.parseToJSON(o)).ttl&&o.ttl+o.time<(new Date).getTime())return $ZSIQLSDB.remove(e),null}catch(t){LSDebugger.postDebugInfo("Value: "+o+"Key"+e,null,null,!0)}return o},remove:function(e,t){var o=t&&$zohosq._domain;if($ZSIQLSDB.isLocalStorageAvail()&&!o)try{var i=$ZSIQUtil.parseToJSON(localStorage.siqlsdb||"{}");i[e]&&delete i[e],localStorage.siqlsdb=JSON.stringify(i)}catch(t){$ZSIQCookie.remove(e)}else $ZSIQCookie.remove(e,$zohosq._domain)},removeAllFAQValuesFromSession:function(t){if(this.isSessionStorageAvail())try{var e=JSON.parse(sessionStorage.utsdb||"{}");for(var t in e)e.hasOwnProperty(t)&&(t.startsWith("article_")||t.startsWith("faq_"))&&delete e[t];sessionStorage.utsdb=JSON.stringify(e)}catch(t){}},removeSessionStore:function(t){if(this.isSessionStorageAvail())try{var e=JSON.parse(sessionStorage.utsdb||"{}");e[t]&&(delete e[t],sessionStorage.utsdb=JSON.stringify(e))}catch(t){}},toString:function(e){if(!e)return e;try{return t=e,Object.toJSON?Object.toJSON(t):JSON.stringify(t)}catch(t){var o,i=[];for(var r in e)o=e[r].replace('"','\\"'),i.push('"'+r+'":"'+o+'"');return"{"+i+"}"}var t},removeAllStorage:function(){for(var t=document.cookie.split("; "),e=$ZSIQUtil.getkeylist(),o=0;o<t.length;o++)for(var i=0;i<e.length;i++)if(-1!=t[o].search(new RegExp(e[i],"i"))){$ZSIQCookie.remove(t[o]);break}this.isSessionStorageAvail()&&(sessionStorage.utsdb="{}"),this.isLocalStorageAvail()&&(localStorage.siqlsdb="{}",localStorage.utsdb="{}"),$ZSIQWidget&&delete $ZSIQWidget.avuid},setCookie:function(t,e,o){$zohosq._domain?$ZSIQCookie.set(t,$ZSIQLSDB.toString(e),o,!0,$zohosq._domain):this.set(t,e,o)}}}();var $ZSIQCookie=$ZSIQCookie||{get:function(e){e+="=";var o=document.cookie.indexOf(e),t="";return-1!=o&&-1!=(t=document.cookie.substr(o+e.length)).indexOf(";")&&(t=t.substring(0,t.indexOf(";"))),decodeURIComponent(t)},set:function(e,o,t,n,i){var r=new Date;null!=t&&""!=t||(t=18e4),r.setTime(r.getTime()+t),e+="= "+encodeURIComponent(o)+";expires= "+r.toGMTString()+";",n&&(e+="path=/;"),e=i?e+"domain="+i+";":e;try{$ZSIQChat.isEmbedFeatureConfEnabled()&&(e+="secure")}catch(e){}return document.cookie=e,!0},remove:function(e,o){var t=new Date;if(t.setTime(t.getTime()-1),o){var n=e+"=;expires="+t.toGMTString()+";";n+="path=/;",document.cookie=n+"domain="+o+";"}else document.cookie=e+"=;expires="+t.toGMTString()+";"}};try{_ZSIQ=window._ZSIQ||{JSAPI:{}},$ZSIQAnalytics={},$ZSIQAutopick={},_ZSIQ.isagentschat||($zohosq=$zoho.livedesk||$zoho.salesiq,$zohosq._callbacks={},$zcb=$zohosq._callbacks,$zv=$zohosq.values,$zlm={},$zlch={},$zla="handleAnalyticEvents",$zohosq.utsvalues=$zohosq.utsvalues||{},$ZSIQ_UTSinitialized=null),$zohosq._invoke=function(t,e){for(var i in $ZSIQAnalytics)if($ZSIQAnalytics.hasOwnProperty(i)){var n=$ZSIQAnalytics[i];$ZShandleEvent(t,e,n)}if($zcb[t]&&"function"==typeof $zcb[t]){if("object"!=typeof e){if($zlm[t]===e)return!1;$zlm[t]=e}var o;if(e.visitid)o=$zcb[t](e.visitid,e);else{if("visitor.trigger"===t)return $zcb[t](e.triggername,e.visitorinfo);o=$zcb[t](e)}o=null!=o?o:-1;var a={};a[t]=o,$zlch[t]&&$zohosq.setValue("callback",a),$zlm[t]={}}else"custom.field"==t&&$zohosq.customfield.handleCallbacks(e);return!1},$zohosq.clientactions={},$zohosq.jwttoken={logintoken:function(t){try{if(!ZSIQJWTVerify.isJWTEnabled())return;$zv.jwttokenval=t,ZSIQJWTVerify.verifyJWTtoken(t)}catch(t){}},logout:function(){try{if(!ZSIQJWTVerify.isJWTEnabled())return;ZSIQJWTVerify.logoutJWT()}catch(t){}},jwttokengetter:function(t){try{if(!ZSIQJWTVerify.isJWTEnabled())return;$zcb.jwttokengetter=t}catch(t){}}},$zohosq.visitor={destroy:function(t){try{t=t||Float.lsobject.lsid}catch(t){}$ZDestroyFloatData(t),$ZNotifyTracking(6)},referer:function(t){return t&&t.trim()&&$zohosq.setValue("referer",t,3),$zv.referer},cpage:function(t){return t&&t.trim()&&$zohosq.setValue("cpage",t,3),$zv.cpage},pagetitle:function(t){return t&&t.trim()&&$zohosq.setValue("pagetitle",t,3),$zv.pagetitle},customaction:function(t,e){if(t&&0!=t.trim().length&&!$ZSisThresholdExceeded("ca",50)){var i={};i.field=t,i.value=e||{},$zv.customaction=i,$ZNotifyTracking(4,i)}},uniqueid:function(){return $zv.uvid},uniqueuserid:function(){return $zv.uuid},handleinfo:function(t){$zohosq.setValue("handleinfo",t,3);var e=t.name;e&&e.trim()&&$zohosq.setValue("name",e);var i=t.email;null!=i&&/^([\w]([\w\-\.\+\'\/]*)@([\w\-\.]*)(\.[a-zA-Z]{2,22}(\.[a-zA-Z]{2}){0,2}))$/.test(i)&&$zohosq.setValue("email",i);var n=t.phone;null!=n&&$ZSIQUtil.isValidPhoneNo(n)&&$zohosq.setValue("phone",n)},name:function(t){if(!$zv.jwttokenval){t&&t.trim()&&$zohosq.setValue("name",t,3);var e=$ZSIQUtil.getIframeSupportObj();return(e.getVisitorName?e.getVisitorName():"")||$zv.name}},email:function(t){if(!$zv.jwttokenval){return null!=t&&/^([\w]([\w\-\.\+\'\/]*)@([\w\-\.]*)(\.[a-zA-Z]{2,22}(\.[a-zA-Z]{2}){0,2}))$/.test(t)&&$zohosq.setValue("email",t,3),$ZSIQUtil.getIframeSupportObj().visitoremail||$zv.email}},id:function(t){return t&&t.trim()&&$zohosq.setValue("id",t),$ZSIQUtil.getAPIValues().id=t,$ZSIQUtil.checkStoredIdAndRemoveStorage(t),$zv.id},question:function(t){return null!=t&&$zohosq.setValue("question",t),$zv.question},contactnumber:function(t){if(!$zv.jwttokenval)return null!=t&&$ZSIQUtil.isValidPhoneNo(t)&&$zohosq.setValue("phone",t,3),$ZSIQUtil.getIframeSupportObj().visitorphone||$zv.phone},info:function(t){return t&&($zv.info=t),$zohosq.setValue("info",$zv.info,3),$zv.info},setlocation:function(t){return t&&$zohosq.setValue("seclocation",t),$zv.seclocation},authkey:function(t){return t&&($zv.authkey=t),$zv.authkey},chat:function(t){$zcb["visitor.chat"]=t},attend:function(t){$zcb["visitor.attend"]=t},missed:function(t){$zcb["visitor.missed"]=t},agentsoffline:function(t){$zcb["visitor.offline"]=t},offlineMessage:function(t){$zcb["visitor.offline"]=t},chatmessage:function(t){$zcb["visitor.chatmessage"]=t},chatcomplete:function(t){$zcb["visitor.chatcomplete"]=t},rating:function(t){$zcb["visitor.rating"]=t},feedback:function(t){$zcb["visitor.feedback"]=t},idleTime:function(t){isNaN(t)||($zv.idletime=t,$ZNotifyTracking(2,t))},idle:function(t){$zcb["visitor.idle"]=t},active:function(t){$zcb["visitor.active"]=t},onNavigate:function(t){return t},trigger:function(t){$zcb["visitor.trigger"]=t},triggeredchat:function(t){$zcb["visitor.triggeredchat"]=t},ongoingchat:function(){var t=$ZSIQUtil.getIframe();return!(!t||!t.$Support)&&!!t.$Support.isChatExist()},getGeoDetails:function(){$zv.fetchgeolocation=!0}},$zohosq.article={content:function(t){return t&&($zv.articlecontent=t),$zv.articlecontent}},$zohosq.chat={enableCrossDomain:function(t){return t&&t.trim()&&$zohosq.setValue("enablecrossdomain",t),$zv.enablecrossdomain},restrictAnalyticsValue:function(t){return t&&t.trim()&&$zohosq.setValue("restrictanalyticsvalue",t),$zv.restrictanalyticsvalue},mode:function(t){return null!=t&&$zohosq.setValue("chatmode",t),$zv.chatmode},sendmessage:function(t){Float&&t&&Float.sendMessage(t)},department:function(t){return null!=t&&$zohosq.setValue("department",t),$zv.department},defaultdepartment:function(t){return t&&($zv.defaultdepartment=t),$zv.defaultdepartment},agent:function(t){return null!=t&&$zohosq.setValue("agent",t),$zv.agent},messages:function(t){return t&&($zv.chatmessages=t),$zv.chatmessages},systemmessages:function(t){return t&&($zv.chatmessages=t),$zv.chatmessages},title:function(t,e){return t&&($zv.title=t),"[object Object]"===Object.prototype.toString.call(e)&&($zv.titlestyle=e),$zv.title},messagehint:function(t){return t&&($zv.messagehint=t),$zv.messagehint},online:function(t){$zcb["chat.online"]=t},offline:function(t){$zcb["chat.offline"]=t},logo:function(t,e){return t&&($zv.clogo=t),e&&($zv.cwebsite=e),$zv.clogo},waitinghandler:function(t){var e="chat.waitinghandler";$zcb[e]=$zlch[e]=t,$zv[e]=null!=t},start:function(){if(!$ZSIQUtil.getIframe())return $ZSIQChatWindow.clearIframeLoader(),void $ZSIQChatWindow.populateIframe(function(){_ZSIQ.JSAPI.broadcastMessage("chatstart",{})});_ZSIQ.JSAPI.broadcastMessage("chatstart",{})},forward:function(t){return null!=t&&$zohosq.setValue("forward",t),$zv.forward},attend:function(t){$zcb["visitor.attend"]=t},agentMessage:function(t){$zcb["visitor.chatmessage"]=t},triggerMessage:function(t){$zv.triggermsg=!0,$zcb["visitor.chattrigger"]=t},complete:function(t){if(!t){var e=!1,i=$ZSIQUtil.getIframe();return _ZSIQ.JSAPI.broadcastMessage("chatend",{}),i&&i.$Support&&i.$Support.isChatExist&&(e=i.$Support.isChatExist()),e}$zcb["visitor.chatcomplete"]=t},missed:function(t){$zcb["visitor.missed"]=t},theme:function(t){!function(t){if(!t)return;$zv.buttontheme=t+"-btn",$zv.sbonlinebg="",$zv.sbonlinebdr="",$zv.sbicobg=""}(t),function(t){if(!t)return;var e={black:["black","black"],gray:["gray","gray"],blue:["blue","blue"],green:["green","green"],red:["red","red"],purple:["purple","purple"]};e.hasOwnProperty(t)?($zv.embedtheme=e[t][0],$zv.embedheadertheme=e[t][1]):$zv.embedtheme=t}(t)},floatingwindow:function(t){$zv.forcefloatingwindow="all"===t||!("ipad"===t&&/ipad/.test(navigator.userAgent.toLowerCase()))},transferchat:function(t){$zcb["agent.transferchat"]=t},accepttransfer:function(t){$zcb["agent.accepttransfer"]=t},waitime:function(t){t&&($zv.waitime=t)},waittime:function(t){t&&($zv.waitime=t)},continue:function(t){t?$zcb["chat.continue"]=t:_ZSIQ.JSAPI.broadcastMessage("showchatui",{})}},$zohosq.call={initiatecall:function(t){return null!=t&&$zohosq.setValue("initiatecall",t),$zv.agent},start:function(){var e=$ZSIQUtil.getIframe();if(!e.SiqAVRouter&&e.$Support.EmbedObj.staticfiles_delayloading_enabled)return $zohosq.setValue("isDirectCall",!0),void e.$Support.getMediaLibraryJS();var t={conversationtype:0,successCbk:function(t){$zohosq._directcall=!0,_ZSIQ.JSAPI.broadcastMessage("callstart",{}),e.SiqAVRouter.container.uiHandler.initiateDirectCallUI(t)}.bind(this)};if(!e.$Support.isCallOnline())return $zoho.salesiq.floatwindow.visible("show"),e.$Support.Util.showMessageAreaUI(),void e.$Support.Util.checkAndFocusComposer();e.SiqAVRouter.container.audioImpl.startApiDirectCall(t),e.SiqAVRouter.container.uiHandler.initiateDirectCallUI()},isavsupported:function(t){$zcb["call.isavsupported"]=t},attended:function(t){$zcb["call.attended"]=t},completed:function(t){$zcb["call.completed"]=t},missed:function(t){$zcb["call.missed"]=t},cancelled:function(t){$zcb["call.cancelled"]=t}},$zohosq.rating={visible:function(t){t&&$zohosq.setValue("rating.visible",t)}},$zohosq.feedback={visible:function(t){t&&$zohosq.setValue("feedback.visible",t)}},$zohosq.integ={requestid:function(t){return null!=t&&$zohosq.setValue("requestid",t),$zv.requestid}},$zohosq.chatbubble={visible:function(t){return t&&($zv.bubblevisible=t),$zv.bubblevisible},animate:function(t){return t&&($zv.bubbleanimatetimer=t),$zv.bubbleanimatetimer},src:function(t){return t&&($zv.bubblesrc=t),$zv.bubblesrc},close:function(t){$zcb["chatbubble.close"]=t}},$zohosq.chatbutton={texts:function(t){return t&&($zv.buttontexts=t),$zv.buttontexts},icon:function(t){return t&&($zv.buttonicon=t),$zv.buttonicon},visible:function(t){t&&$zohosq.setValue("buttonvisible",t),$ZSIQCookie.set("isiframeenabled",!0,864e5,!0);try{zhandleLiveEvent("buttonvisible",t)}catch(t){}return $zv.buttonvisible},onlineicon:{src:function(t){return t&&($zv.buttononlineicon=t),$zv.buttononlineicon}},offlineicon:{src:function(t){return t&&($zv.buttonofflineicon=t),$zv.buttonofflineicon}},click:function(t){$zcb["chatbutton.click"]=t},width:function(t){return t&&($zv.bwidth=t),$zv.bwidth}},$zohosq.floatbutton={position:function(t){return t&&($zv.floatposition=t),$zv.floatposition},visible:function(t){t&&$zohosq.setValue("floatvisible",t),$ZSIQCookie.set("isiframeenabled",!0,864e5,!0);try{$ZSIQWidget&&$ZSIQChatWindow.handleIframeLoading(function(){$ZSIQWidgetUI.handleWidgetVisible(t)})}catch(t){}return $zv.floatvisible},onlineicon:{src:function(t){return t&&($zv.floatbuttononlinesrc=t),$zv.floatbuttononlinesrc}},offlineicon:{src:function(t){return t&&($zv.floatbuttonofflinesrc=t),$zv.floatbuttonofflinesrc}},click:function(t){$zcb["floatbutton.click"]=t},coin:{hidetooltip:function(){try{$zv.ishidetooltip=!0,$ZSIQWidget&&$ZSIQChatWindow.handleIframeLoading(function(){$ZSIQWidgetUI.checkAndHideCoinToolTip()})}catch(t){}}}},$zohosq.chatwindow={visible:function(t){t&&($zv.chatwindowvisible=t),$ZSIQCookie.set("isiframeenabled",!0,864e5,!0),"hide"!=t&&($zohosq.fileloadtime=0);try{zhandleLiveEvent("chatwindowvisible",t)}catch(t){}return $zv.chatwindowvisible},reload:function(){$ZSIQUtil.getIframe().$Support.reload()}},$zohosq.floatwindow={visible:function(t,e,i){t&&($zv.floatwindowvisible=t),$ZSIQCookie.set("isiframeenabled",!0,864e5,!0),"hide"!=t&&($zohosq.fileloadtime=0);try{if(!$ZSIQUtil.getIframe()&&$ZSIQChatWindow.getIframeLoader()&&"hide"!=t)return $ZSIQChatWindow.clearIframeLoader(),void $ZSIQChatWindow.populateIframe(function(){$ZSIQChatWindow.handleChatWindowVisible(t,!1,e,i)});$ZSIQWidget&&$ZSIQChatWindow.handleIframeLoading(function(){$ZSIQChatWindow.handleChatWindowVisible(t,!1,e,i)})}catch(t){}return $zv.floatwindowvisible},open:function(t){t?$zcb["chat.open"]=t:this.visible("show")},close:function(t){t?$zcb["chat.close"]=t:this.visible("hide")},minimize:function(t){if(t)$zcb["floatwindow.minimize"]=t;else try{$ZSIQChatWindow.minimizeChatWindow(!0)}catch(t){}},onlinetitle:function(t){return null!=t&&$zohosq.setValue("floatwindowonlinetitle",t),$zv.floatwindowonlinetitle},offlinetitle:function(t){return null!=t&&$zohosq.setValue("floatwindowofflinetitle",t),$zv.floatwindowofflinetitle},fields:function(t){return null!=t&&($zv.floatwindowfields=t),$zv.floatwindowfields},defaultview:function(t){return null!=t&&($zv.defaultview=t),$zv.defaultview}},$zohosq.custom={html:function(t,e){if(t&&e){$zv.customhtml=[t,e];try{Float.drawFloatButtonHtml($zv.customhtml)}catch(t){try{zlsDrawButtonHtml($zv.customhtml)}catch(t){}}}return $zv.floatbuttondraw}},$zohosq.customfield={add:function(t){var e="customfield";if(t){var i=$zv[e]=$zv[e]||[];this._splice([t.name],i),$zv[e].push(t),_ZSIQ.JSAPI.broadcastMessage(e,$zv[e])}},clear:function(t){var e="customfield";t||($zv[e]=[],t=[]),"[object Array]"===Object.prototype.toString.call(t)&&this._splice(t,$zv[e]||[])},handleCallbacks:function(t){if(t){var e=this._getObject(t.name);e&&e.callback&&e.callback(t.val)}},_getObject:function(t){var e=$zv.customfield;if(e&&!(e.length<1))for(var i=0;i<e.length;i++)if(e[i].name==t)return e[i]},_splice:function(t,e){for(var i="clearfield",n=0;n<t.length;n++){for(var o=0;o<e.length;o++)if(e[o].name==t[n]){e.splice(o,1),_ZSIQ.JSAPI.broadcastMessage("clearcustomfield",[t[n]]);break}/^(siq_name|siq_email|siq_phone|)$/.exec(t[n])&&($zv[i]&&$zv[i].push(t[n]),_ZSIQ.JSAPI.broadcastMessage(i,[t[n]]))}}},$zohosq.reset=function(){$zv.reset="on";var t=$ZSIQUtil.getIframe(),e=$ZSIQWidget.getWidgetObject(),i=e.lsid;if(t&&t.$Support&&t.$Support.isChatExist()&&t.$Support.quitConnetcedChats(),$ZSIQUTS.clearUtsApivalues(),$ZSIQUTS.clearLocalValues(),$ZSIQUtil.checkTrackingEnabled()){$zohosq.visitor.destroy(i),$ZNotifyTracking(1,"off");var n=$ZSIQWidget.getEmbedObject().pinfo.pinfo;1==JSON.parse(n.isgdprenabled)&&0!=JSON.parse(n.trackingprivacyconfig)&&1==e.isgdprenabled||$ZNotifyTracking(1,"on")}$ZSIQLSDB.removeAllStorage(),$ZSIQUtil.clearApiValues(),$zv=$zohosq.values={},$ZSIQChat.init()},$zohosq.pastchat={visible:function(t){t&&$zohosq.setValue("pastchatvisible",t)}},$zohosq.field={clear:function(t){$zv.clearfield=[],$zohosq.customfield.clear(t)}},$zohosq.tracking={on:function(){$zv.tracking="on",$ZSIQUtil.getAPIValues().tracking="on",$ZNotifyTracking(1,"on")},off:function(){$zv.tracking="off",$ZSIQUtil.getAPIValues().tracking="off",$ZNotifyTracking(1,"off")},domain:function(t){var e=window.location.hostname;t&&-1!==e.indexOf(t,e.length-t.length)&&($zohosq.utsvalues.trackingdomain=t)},allowMultiTrigger:function(t){$zv.mtrigger=$ZSIQUtil.getAPIValues().mtrigger=!!t},eqaulHosts:function(t){if(!t)return $zohosq.utsvalues.equalhosts;var e=t.split(",");$zohosq.utsvalues.equalhosts||($zohosq.utsvalues.equalhosts=[]);for(var i=0;i<e.length;i++){var n=e[i].trim(),o=!1;if($zohosq.utsvalues.equalhosts)for(var a=0;a<$zohosq.utsvalues.equalhosts.length;a++){if($zohosq.utsvalues.equalhosts[a]==n){o=!0;break}}o||$zohosq.utsvalues.equalhosts.push(n)}return $zohosq.utsvalues.equalhosts},getsiqid:function(){return $UTSHandler.getSIQID()},forcesecure:function(t){t&&($zohosq.utsvalues.forcesecure=!0)}},$zohosq.language=function(t){return t&&($zv.language=t),$zv.language},$zohosq.personalize={agentorder:function(t){return null!=t&&$zohosq.setValue("agentorder",t),$zv.agentorder}},$zohosq.set=function(t){for(var e in t)try{for(var i=e.split("."),n=this[i[0]],o=1;o<i.length;o++)i[o]&&(n=n[i[o]]);"function"==typeof n&&n(t[e])}catch(t){}},$zohosq.setValue=function(t,e,i){if(null!=e&&t&&($zv[t]=e,_ZSIQ.JSAPI.broadcastMessage(t,e),i)){var n={};n[t]=e,$ZNotifyTracking(i,n)}},$zoho.ld={},$zoho.ld.handle={customClick:function(t){var e=$zohosq.values.customhtml;if(!e)return!1;var i=e[1][t+".click"];if("function"==typeof i)i();else try{$ZSIQChatWindow.openChatWindow()}catch(t){try{zlsHandleCustomClick()}catch(t){}}}},$zohosq.privacy={trackingbannercontent:function(t){return t&&($zv.trackbannerobj=t),$zv.trackbannerobj},chatbannercontent:function(t){return t&&($zv.textbannerobj=t),$zv.textbannerobj},content:function(t){return t&&($zv.chatprivacycontent=t),$zv.chatprivacycontent}},$zohosq.domain=function(t){$zohosq.tracking.domain(t),$zohosq._domain=t}}catch(t){}$ZSisThresholdExceeded=function(t,e){var i=Math.floor((new Date).getTime()/6e4);if(i=t+"_"+i,"undefined"==typeof $ZSIQUTS)return!1;var n=$UTSHandler.getFromSession(i);return n||(n=0),$UTSHandler.storeInSession(i,++n),e<n},$ZDestroyFloatData=window.$ZDestroyFloatData||function(t){try{sessionStorage.lsdb=JSON.stringify("{}")}catch(t){}try{localStorage.lsdb=JSON.stringify("{}")}catch(t){}try{for(var e=["zld"+t+"float","zld"+t+"dragpos","ZLD"+t+"WTIME","ZLD"+t,"ZLD"+t+"WAITING","ZLDTRIGGER"+t,"ZLD"+t+"VISITORINFO"],i=0;i<e.length;i++){var n=e[i]+"= ;expires= "+new Date(-1).toGMTString();try{var o=Float.getDomain();n+=o?";domain="+o:""}catch(t){}document.cookie=n,n+="path=/;",document.cookie=n}}catch(t){}},$ZNotifyTracking=window.$ZNotifyTracking||function(t,e){if($ZSIQ_UTSinitialized||window.$UTSConnector)try{$UTSHandler.handleApiChange(t,e)}catch(t){}},$ZShandleEvent=window.$ZShandleEvent||function(t,e,i){try{$zohosq.handleAnalyticEvents(t,e,i)}catch(t){}},_ZSIQ.JSAPI.broadcastMessage=window._ZSIQ.JSAPI.broadcastMessage||function(t,e){if($ZSIQ_UTSinitialized)try{var i=$ZSIQUtil.getIframe(),n={};n[t]=e,$ZSIQUtil.updateApiValues(),i.$Support.handleApiData(n,!0)}catch(t){}try{AgentsChat.broadcastMessage(t,e)}catch(t){}try{zlsWinBroadcastMessage(t,e)}catch(t){}try{zlsBtnBroadcastMessage(t,e)}catch(t){}},_ZSIQ.JSAPI.identifySIQParam=window._ZSIQ.JSAPI.identifySIQParam||function(){var t,e,i,n=function(t){return decodeURIComponent((t+"").replace(/\+/g,"%20"))};try{var o={};if(!(a=window.location.search))return;for(var a,r=(a=a.replace(/^\?/g,"")).split("&"),s=[],l=0;l<r.length;l++)o[n((s=r[l].split("="))[0])]=n(s[1]);null!=o.siq_eemail?$zohosq.setValue("e_email",o.siq_eemail):null!=o.siq_email?$zohosq.visitor.email(o.siq_email):null!=o.om_email&&$zohosq.visitor.email(o.om_email),null!=o.siq_ename?$zohosq.setValue("e_name",o.siq_ename):null!=o.siq_name?$zohosq.visitor.name(o.siq_name):null!=o.om_name&&$zohosq.visitor.name(o.om_name),t=location.href.split("?")[0],e=location.search,i=location.hash,e&&(t+=(e=(e=(e=e.replace(/^\?/g,"")).replace(/(^|&)siq_(name|email|ename|eemail)=[^&]*/g,"")).replace(/^&/g,""))?"?"+e+i:i,window.history.replaceState(window.history.state,"",t))}catch(t){}};try{var $zsalobj=window.$zsalobj||{},$zsalobjrestricted=window.$zsalobjrestricted||{};$zohosq.init=function(){$zsalobj&&0==Object.keys($zsalobj).length&&($zsalobj={"chatbutton.click":["Button Clicked","Click on the "+_ZSIQ.brandname+" SalesIQ chat button."],"floatbutton.click":["Button Clicked","Click on the "+_ZSIQ.brandname+" SalesIQ chat button."],"chat.close":["Chat Closed","Click on the Close (X) icon in the chat window."],"floatwindow.minimize":["Chat Minimized","Click to minimize the "+_ZSIQ.brandname+" SalesIQ chat window."],"chatbubble.close":["Bubble Closed","Click on the Close(X) icon on the chat bubble."],"visitor.attend":["Chat Connected","Chat sessions with the visitors.","waitingduration"],"visitor.chatcomplete":["Chat Ended","Chat ended by the visitors.","chatduration"],"chat.file":["File Transferred","File transfers made by the visitors."],"chat.print":["Chat Printed","Chat transcripts printed by the visitors."],"chat.mail":["Chat Mail sent","Chat transcripts emailed by the visitor."],"visitor.rating":["Rating Submitted","Rating submitted by visitors.","rating"],"visitor.feedback":["Feedback Submitted","Feedback messages submitted by visitors."],"visitor.chattrigger":["Chat Triggerred","Auto and proactive chat initiated to the visitors."],"visitor.triggerresponded":["Trigger Responded","Visitor responded to trigger or proactive chat."],"visitor.chat":["Chat Initiated","Visitor initiated chats."],"visitor.offline":["Offline Message Submitted","Offline messages submitted by the visitors."],"visitor.missed":["Chat Missed","Chat missed by the SalesIQ users."],"chat.visitorend":["Chat Ended by visitor","Chats ended by the visitors."]},$zsalobjrestricted={"chatbutton.click":["Button Clicked","Click on the "+_ZSIQ.brandname+" SalesIQ chat button."],"floatbutton.click":["Button Clicked","Click on the "+_ZSIQ.brandname+" SalesIQ chat button."],"chat.close":["Chat Closed","Click on the Close (X) icon in the chat window."],"floatwindow.minimize":["Chat Minimized","Click to minimize the "+_ZSIQ.brandname+" SalesIQ chat window."],"chatbubble.close":["Bubble Closed","Click on the Close(X) icon on the chat bubble."],"visitor.attend":["Chat Connected","Chat sessions with the visitors."],"visitor.chatcomplete":["Chat Ended","Chat ended by the visitors."],"chat.file":["File Transferred","File transfers made by the visitors."],"chat.print":["Chat Printed","Chat transcripts printed by the visitors."],"chat.mail":["Chat Mail sent","Chat transcripts emailed by the visitor."],"visitor.rating":["Rating Submitted","Rating submitted by visitors."],"visitor.feedback":["Feedback Submitted","Feedback messages submitted by visitors."],"visitor.chattrigger":["Chat Triggerred","Auto and proactive chat initiated to the visitors."],"visitor.triggerresponded":["Trigger Responded","Visitor responded to trigger or proactive chat."],"visitor.chat":["Chat Initiated","Visitor initiated chats."],"visitor.offline":["Offline Message Submitted","Offline messages submitted by the visitors."],"visitor.missed":["Chat Missed","Chat missed by the SalesIQ users."],"chat.visitorend":["Chat Ended by visitor","Chats ended by the visitors."]})},$zohosq.handleAnalyticEvents=window.$zohosq.handleAnalyticEvents||function(t,e,i){var a=$zsalobj[t];if("true"==$zv.restrictanalyticsvalue&&(a=$zsalobjrestricted[t]),a){var s=e[a[2]];if(s&&(s=parseInt(s)),1==i)try{"function"==typeof gtag?3===a.length?gtag("event",a[0],{event_category:"SalesIQ",event_label:a[1],value:s}):gtag("event",a[0],{event_category:"SalesIQ",event_label:a[1]}):"function"==typeof ga?3===a.length?ga("send","event","Sales IQ",a[0],a[1],s):ga("send","event","Sales IQ",a[0],a[1]):"undefined"!=typeof _gaq&&(3===a.length?_gaq.push(["_trackEvent","Sales IQ",a[0],a[1],s]):_gaq.push(["_trackEvent","Sales IQ",a[0],a[1]]))}catch(t){}else if(2==i)3===a.length?clicky.log("Sales IQ-"+a[0]+"-"+s):clicky.log("Sales IQ-"+a[0]);else if(3==i){if(3===a.length)(n={})[a[1]]=s,_kmq.push(["record","Sales IQ "+a[0],n]);else _kmq.push(["record","Sales IQ "+a[0]])}else if(4==i){if(3===a.length)(n={})[a[1]]=s,window.optimizely.push(["trackEvent","Sales IQ "+a[0],n]);else window.optimizely.push(["trackEvent","Sales IQ "+a[0]])}else if(5==i){if(3===a.length)(n={})[a[1]]=s,woopra.track("Sales IQ "+a[0],n);else woopra.track("Sales IQ "+a[0])}else if(6==i)3===a.length?_paq.push(["trackEvent","Sales IQ",a[0],"",s]):_paq.push(["trackEvent","Sales IQ",a[0]]);else if(7==i){if(3===a.length)(n={})[a[1]]=s,mixpanel.track("Sales IQ "+a[0],n);else mixpanel.track("Sales IQ "+a[0])}else if(8==i){var n;if(3===a.length)(n={})[a[1]]=s,_hsq.push(["trackEvent","Sales IQ "+a[0],n]);else _hsq.push(["trackEvent","Sales IQ "+a[0]])}else if(9==i){var o={event:"Sales IQ Events",category:"Sales IQ",action:a[0],label:a[1],value:0};3===a.length&&(o.value=s),dataLayer.push(o)}}}}catch(t){}var UDHandler={getDownLoadLink:function(e,n,a){return(a=a||{})["x-siq-downloadtype"]=n||"default",(window._ZSIQDOWNLOADSERVERURL?_ZSIQDOWNLOADSERVERURL+"/webdownload":$ZSIQChat.getWidgetData().commondata.downloadserver+"/public")+"?x-service="+(window._SIQSERVICENAME||$ZSIQChat.getWidgetData().commondata.siqservicename)+"&event-id="+e+"&x-cli-msg="+encodeURIComponent(JSON.stringify(a))}};var ZSIQJWTVerify=function(){var S,v,u,c=function(e){var t=JSON.parse(e).data,n=$ZSIQWidget.avuid;$ZSIQLSDB.set(n+"_jwttoken",JSON.stringify(t));var i=$zv,a=t.visitor;if(a)var o=a.name,r=a.phone,s=a.email;o&&(i.name=o),r&&(i.phone=r),s&&(i.email=s);var d=$ZSIQUtil.getIframe();if(d){var S=d.$EmbedManger;o&&S.setVisitorName(o),r&&S.setVisitorPhone(r),s&&S.setVisitorEmail(s)}},g=function(e){var t=$ZSIQChat.getWidgetData()||{},n=t.embedobj;$ZSIQLSDB.removeSessionStore(($zv.cvuid||$ZSIQLSDB.get("ZLD"+t.widgetobj.lsid+"avuid"))+"_conversation"),e||($ZSIQLSDB.remove("ZLD"+n.einfo.embedid+"WAITING"),$ZSIQLSDB.remove("ZLD"+n.einfo.embedid))},s=function(){var e=$ZSIQWidget.avuid;$ZSIQCookie.remove(e+"_jwttoken");try{"undefined"!=typeof SiqAVRouter&&SiqAVRouter.container.detailsHandler.handleJWTLogout()}catch(e){}};return{verifyJWTtoken:function(e,t){var n=($ZSIQChat.getWidgetData()||{}).embedobj,i=n.schema,a=n.servername,o=n.screenname;S=i+"://"+a+"/visitor/v2/"+o+"/jwtauthentication",v=n.einfo.embedid,u=e&&e.token,g(!0);var r=ZSIQJWTVerify.getOngoingChatId(),s={app_id:v,token:u};r&&(s.conversation_id=r);var d={"x-siq-channel":"website"};t&&(d["X-SIQ-ACCESSTOKEN"]=t,d["X-SIQ-APPID"]=n.einfo.embedid),$ZSIQUtil.postAjax(S,JSON.stringify(s),c,function(e){var t=e.responseText&&JSON.parse(e.responseText)||{},n=t.error&&t.error.code;401===e.status&&6205===n&&ZSIQJWTVerify.failiureCallback()},"",d)},logoutJWT:function(){var e=($ZSIQChat.getWidgetData()||{}).embedobj;g();var t=$ZSIQWidget.avuid;$ZSIQLSDB.remove(t+"_jwttoken");var n=e.schema,i=e.servername,a=e.screenname,o=(S=n+"://"+i+"/visitor/v2/"+a+"/jwtauthentication")+"/logout",r={app_id:v,token:u};ZSIQJWTVerify.handleAjaxRequest(o,r,"PUT",s)},getOngoingChatId:function(){var e=($ZSIQChat.getWidgetData()||{}).embedobj,t=$ZSIQLSDB.get("ZLD"+e.einfo.embedid)||{};return t.ongoingchats?(Object.values(t.ongoingchats)[0]||{}).vid:""},handleAjaxRequest:function(e,t,n,i,a){var o=new XMLHttpRequest;o.onreadystatechange=function(){200===o.status||204===o.status?i&&i(o.responseText&&JSON.parse(o.responseText)):a&&a(o.responseText)},o.open(n,e),o.setRequestHeader("x-siq-channel","website"),o.send(JSON.stringify(t))},failiureCallback:function(){"function"==typeof $zcb.jwttokengetter&&$zcb.jwttokengetter()},isJWTEnabled:function(){return($ZSIQChat.getWidgetData().embedobj.jwt_authentication||{}).enabled}}}();var $ZSIQUtil=$ZSIQUtil||function(){var i,r=["en","ar","da","de","el","es","fr","ga","he","hu","it","iw","ja","ko","nb","nl","pl","pt","pt_PT","ro","ru","sv","th","tr","zh","hr","cs","sk","sl","vi","hy","ka","pt_PT","zh_TW","zh_tw","bg","fa_IR","fi"],a={0:"inherit",1:"salesiq-font",2:"ZSIQ Open Sans",3:"ZSIQ Oxygen",4:"ZSIQ Roboto",5:"ZSIQ Puvi"},t={},o=!1,c="",s=null;return{istitleblinking:o,documenttitle:c,STATUS_ENABLE:1,STATUS_DISABLE:0,initializeAPIValues:function(){_ZSIQ.JSAPI.identifySIQParam();try{$zohosq.internalready(),t=$zohosq.values}catch(e){}try{$zohosq.ready(),this.updateApiValues()}catch(e){}},getJWTToken:function(){var e=$ZSIQLSDB.get($ZSIQUtil.getAvuid()+"_jwttoken");return e&&(JSON.parse(e)||{}).access_token||""},updateApiValues:function(){if(t&&$zohosq.values)for(var e in $zohosq.values)t[e]=$zohosq.values[e];else t=$zohosq.values;t.uvid=$UTSHandler.get("_zldt")},isZohoCampaignEnabled:function(){var e=$ZSIQWidget.getEmbedObject().pinfo.integid;return!!e&&-1!=JSON.parse(e).indexOf(6)},isDowngradedToFreePlan:function(){try{var e="true"==$ZSIQChat.getWidgetData().embedobj.pinfo.pinfo.isdowngradedtofreeplan,t=$ZSIQLicence.isFreePlan();return e&&t&&!$ZSIQChat.isPreview()}catch(e){}return!1},getCompanyLogo:function(e){return $ZSIQUtil.isDowngradedToFreePlan()?$ZSIQUtil.getStaticURL("/salesiq/images/logo_ea84089155c3cdc53c848aa3f3dc50a6_.png"):e},getStaticURL:function(e){return e?$ZSIQChat.getWidgetData().commondata.commonstaticurl+e:e},getAPIValues:function(){return $ZSIQUtil.isDowngradedToFreePlan()&&delete t.clogo,t},clearApiValues:function(){t={}},isCSSTransformSupport:function(){try{for(var e="transform WebkitTransform MozTransform OTransform msTransform".split(" "),t=document.createElement("div"),n=0;n<e.length;n++)if(t&&void 0!==t.style[e[n]])return e[n]}catch(e){return!1}return!1},onCDNFailure:function(e){var t=$ZSIQWidget.getWidgetObject().cssstaticserver,n=$ZSIQChat.getWidgetData().jsstaticserver,i="",r=(e.href?e.href:e.src).match(/\.([^.]+)$/);r&&(i=r[1]),"js"==i?(link=document.createElement("script"),link.src=n):"css"==i&&(link=document.createElement("link"),link.rel="stylesheet",link.href=t,link.type="text/css"),document.getElementsByTagName("head")[0].appendChild(link)},getSourceID:function(){},fadeInAnimate:function(e,t){var n=0,i=setInterval(function(){1<=n&&(clearInterval(i),e.style.display=""),n+=.1,e.style.opacity=n},t)},fadeOutAnimate:function(e,t,n){var i=1,r=setInterval(function(){i<=0&&(clearInterval(r),e.style.display="none",n&&n()),i-=.1,e.style.opacity=i},t)},storeCookieVal:function(e,t,n){var i=new Date,r=5;0==n&&(r=1440),i.setTime((new Date).getTime()+60*r*1e3);var a,o="zld"+$ZSIQWidget.getWidgetObject().lsid+e+"="+escape(t)+";expires= "+i.toGMTString()+";path=/";try{var c=((a=$zohosq.utsvalues.trackingdomain)||(a=location.hostname.toString().replace(/^w{3}\./,""),/^[a-zA-Z0-9-\.]+$/.test(a)||(a="")),a||"");o+=c?";domain="+c:"",$ZSIQChat.isEmbedFeatureConfEnabled()&&(o+=";secure")}catch(e){}document.cookie=o},getCookieValue:function(e){e="zld"+$ZSIQWidget.getWidgetObject().lsid+e;var t=document.cookie.indexOf(e),n=document.cookie.length;if(-1==t)return"";var i=t+e.length,r=unescape(document.cookie.substr(i+1,n).split(";")[0]);return"state"==r&&alert("state found"),r},containsClass:function(e,t){return!!e&&(e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.classname))},bindClickEvent:function(e,t){window.addEventListener?e.addEventListener("click",t):e.attachEvent("onclick",t)},bindResizeEvent:function(e){window.addEventListener?window.addEventListener("resize",e):window.attachEvent("resize",e)},bindFocusEvent:function(e,t){window.addEventListener?e.addEventListener("focus",t):e.attachEvent("onfocus",t)},getBrowserLanguage:function(){for(var e="",t=[(document.documentElement.lang||"").replace(/-/g,"_"),(navigator.language||navigator.userLanguage||"").replace(/-/g,"_")],n=0;n<t.length;n++){var i=t[n];if(i)return e=i.split("_")[0],-1<r.indexOf(i)?i:-1<r.indexOf(e)?e:""}},getAPILanguage:function(){return api_lang=($ZSIQUtil.getAPIValues().language||"").replace(/-/g,"_")},getLiveLSID:function(){return $ZSIQChat.getWidgetData().embedobj.einfo.embedid},isChatExist:function(){try{return $ZSIQUtil.getIframe().$Support.isChatExist()}catch(e){return""}},getkeylist:function(){var e=$ZSIQChat.getWidgetData(),t=e.widgetobj.lsid,n=$ZSIQUtil.getLiveLSID(),i=$ZSIQUtil.getAvuid();return["isiframeenabled","DNbanner",$ZSIQUtil.getGDPRBannerCookieKey(),"cdn_status","ZLD"+n,"av_call","ZLD_ApiAVCall","ZLDTRIGGER"+n,i+"_accesstime","ZSIQ","ZLDPERSONALIZE","ZLD"+t,e.widgetobj.screenname+"-"]},checkTrackingEnabled:function(){var e=$ZSIQWidget.getWidgetObject().istracking,t=$ZSIQUtil.getAPIValues()||{};return e||"on"==t.tracking},isFetchGeoDetails:function(){return 1==$ZSIQUtil.getAPIValues().fetchgeolocation},startAfterReady:function(e){try{$zohosq.afterReady(e),$ZSIQUtil.updateApiValues()}catch(e){}},startOnLoad:function(){try{$zohosq.onload(),$ZSIQUtil.updateApiValues()}catch(e){}},idetifyVisitorData:function(){var e=$ZSIQWidget.getWidgetObject();if(e.visitorname||e.visitoremail){var t=$ZSIQUtil.getAPIValues(),n=$zohosq.visitor;e.visitorname&&!t.name&&n.name(e.visitorname),e.visitoremail&&!t.email&&n.email(e.visitoremail)}},getAPIVisitorID:function(){return $ZSIQUtil.getAPIValues().id},getIframe:function(){var e=document.getElementById("siqiframe");return!!e&&(e.contentWindow||e.contentDocument.document||e.contentDocument)},getConfigFromStorage:function(){var e="ZSIQ"+$zohosq.widgetcode+"data";if(e)return $ZSIQLSDB.get(e)},setAVUIDCookie:function(e){if(e&&$zohosq._domain){var t="ZLD"+e+"avuid",n=$ZSIQLSDB.get(t);if(n){var i=$zohosq._domain?63072e6:31e4;$ZSIQLSDB.setCookie(t,n,i),$ZSIQLSDB.setCookie("ZLD"+$zohosq.widgetcode+"avuid",n,31e4)}}},checkAndSetZldp:function(e,t){$UTSHandler.getZldp()||$ZSIQUtil.setZldp(e,t)},getReferrer:function(){return document.referrer},setZldp:function(e,t){$ZSIQLSDB.setCookie(t+"-_zldp",e,31e4)},getZldp:function(e){return $UTSHandler.getZldp()||$ZSIQLSDB.get(e+"-_zldp")},storeDetails:function(e){var t="ZSIQ"+$zohosq.widgetcode+"data";$ZSIQLSDB.set(t,e,864e5)},preserveBlockIP:function(){var e="ZSIQ"+$zohosq.widgetcode+"blocked";$ZSIQLSDB.setCookie(e,{status:!0},2592e6)},isIPBlocked:function(){var e="ZSIQ"+$zohosq.widgetcode+"blocked",t=$ZSIQLSDB.get(e);return!!t&&t.status},ajax:function(e,t,n,i,r){var a=t||function(){},o=n||function(){},c=new XMLHttpRequest;if("withCredentials"in c)c.onreadystatechange=function(){4==this.readyState&&200==this.status?a(this.response):o(this.response)},c.open("GET",e,!0),i&&(c.withCredentials=!0);else if("undefined"!=typeof XDomainRequest){c=new XDomainRequest;try{c.onload=function(){a(this.response)},c.onerror=function(){o(this.response)}}catch(e){}c.open("GET",e),i&&(c.withCredentials=!0)}c.send()},postAjax:function(e,t,n,i,r,a){var o=n||function(){},c=i||function(){},s=new XMLHttpRequest;if("withCredentials"in s)s.onreadystatechange=function(){4==this.readyState&&200==this.status?o(this.response):c(this.response)},s.open("POST",e),r&&(s.withCredentials=!0);else if("undefined"!=typeof XDomainRequest){s=new XDomainRequest;try{s.onload=function(){o(this.response)},s.onerror=function(){c(this.response)}}catch(e){}s.open("POST",e),r&&(s.withCredentials=!0)}if(a)for(var d in a)a.hasOwnProperty(d)&&s.setRequestHeader(d,a[d]);s.setRequestHeader("Content-Type","application/json"),s.send(t)},parseToJSON:function(e){try{if(!e||"object"==typeof e)return e;e=JSON.parse(e)}catch(e){}return e},setText:function(e,t){document.getElementsByTagName("body")[0];var n=document.getElementById(e);"textContent"in document.body?n.textContent=t:n.innerText=t},getWebFontFamily:function(){var e=document.body,t="",n=$ZSIQWidget.getWidgetObject();return n.font[0]==$ZSIQUtil.STATUS_ENABLE&&n.font[1].default&&"0"!=n.font[1].default?t=a[""+n.font[1].default]:e.currentStyle?t=e.currentStyle.fontFamily:document.defaultView&&(t=document.defaultView.getComputedStyle(e,null).getPropertyValue("font-family")),t||"salesiq-font"},getImageURL:function(e,t){var n=t.fpath,i="",r="undefined"!=typeof $ZSIQChat&&$ZSIQChat.getWidgetData().usedownloadserver,a=t.ispreview||!1;if(r&&n){var o=n.split("/")[0];if("fembedcss"==o||"floatimagepreview"==o||"floatimage"==o||"embedcss"==o||"fgravatar"==o||"fsticker_online"==o||"fsticker_offline"==o||"bsticker_online"==o||"bsticker_offline"==o||"ssticker_online"==o||"ssticker_offline"==o||"sgallery"==o||"psticker_online"==o||"psticker_offline"==o||"apps_custom_sticker"==o||"0_embedcss"==o||"8_embedcss"==o){var c=$ZSIQWidget.getEmbedObject().pinfo.soid,s=n.split("/")[1],d=t.fname?t.fname:t.pfname,l={"x-siq-filetype":o,"x-siq-lsid":s.split("_")[1],"x-siq-soid":c,"x-siq-ispreview":a,"x-siq-pfname":d};return i=UDHandler.getDownLoadLink(s,"default",l)}}return i=$ZSIQChat.getWidgetData().embedobj.schema+"://"+$ZSIQWidget.getEmbedObject().embedserverurl+"/"+e.screenname+"/"+n+"/photo.ls",1==t.ispreview&&(i+="?ispreview=true"),i},blinkTitle:function(e){if(!e)return!1;o||(c=document.title,o=!0),clearTimeout(i);var t,n="";i=setInterval(function(){t="title"==t?(n=e,"chatmsg"):(n=c,"title"),document.title=n},500)},stopBlinking:function(){o&&(clearTimeout(i),o=!1,document.title=c)},setShrinkImageCSS:function(e,t,n){var i,r,a,o,c=(i=e.naturalHeight,r=e.naturalWidth,a={WIDTH:r,HEIGHT:i},o=[n/r,t/i],1<(o=Math.min(o[0],o[1]))?a:a={WIDTH:r*o,HEIGHT:i*o});e.style.height=c.HEIGHT+"px",e.style.width=c.WIDTH+"px"},isValidPhoneNo:function(e){return!!e&&/^[+0-9A-Za-z():.\-\[\] ]{1,30}$/.test(e)},getProductURLForImage:function(){if(!$ZSIQChat.getWidgetData().commondata.isdev)return"";var e=$ZSIQChat.getWidgetData().embedobj;return e.schema+"://"+e.producturl},getURLParameterByName:function(e){if(s)return s[e];s={};for(var t=window.location.search.replace(/^\?/g,"").split("&"),n=[],i=0;i<t.length;i++)n=t[i].split("="),s[n[0]]=n[1];return s[e]},linkifySubString:function(e){try{e=e.replace(/((?:href|src)=["']?)?((https?:\/\/(?:www\.)?|www\.)[a-z0-9][^@]*?)(?=&quot;|&#x27;|&lt;|[\s"'<]|$)/gi,function(e,t,n,i){var r="www."===i?"http://"+n:n;window.location.protocol,$ZSIQWidget.getEmbedObject().embedserverurl;return t?e:"<a href='"+r+"' target='_blank' class='zsiq_hyperlink' >"+n+"</a>"})}catch(e){}return e},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},checkAndGetParsedVal:function(e){var t=$ZSIQUtil.parseToJSON(e);return"object"==typeof t||"boolean"==typeof t?t:e},formWidgetObject:function(e){var t={};for(var n in e)t[n]=$ZSIQUtil.checkAndGetParsedVal(e[n]);return $ZSIQAnalytics=t.analytics,$ZSIQAutopick=t.autopick,_ZSIQ.brandname=t.brandname,t},formEmbedObject:function(e){var t={};for(var n in e)t[n]=$ZSIQUtil.checkAndGetParsedVal(e[n]);return t},getObjectKeys:function(e){if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t},getGDPRBanner:function(e,t){var n,i=t.trackingprivacystatement?t.trackingprivacystatement:e.i18nkeys["gdpr.banner.notify"],r=e.i18nkeys["gdpr.banner.button.ok"],a=e.i18nkeys["gdpr.banner.button.donottrack"],o=(t.trackingprivacystatement?t.trackingprivacystatement:e.i18nkeys["gdpr.banner.donottrack"],e.i18nkeys["gdpr.banner.learnmore"]),c=!((!(n=$UTSHandler.getAPIValuesForUTS()).tracking||"off"!=n.tracking)&&e.istracking),s="";if((n=$ZSIQUtil.getAPIValues()).trackbannerobj){var d=n.trackbannerobj;if(i=d.description&&0!=d.description.trim().length?d.description:i,r=d.acceptbutton&&0!=d.acceptbutton.trim().length?d.acceptbutton:r,a=d.declinebutton&&0!=d.declinebutton.trim().length?d.declinebutton:a,d.policytextandlink){var l=d.policytextandlink;o=l.text&&0!=l.text.trim().length?l.text:o,t.cookiepolicyurl=l.link&&0!=l.link.trim().length&&$ZSIQUtil.isValidURL(l.link)?l.link:t.cookiepolicyurl}}switch(t.cookiepolicyurl&&(s="<a class='siq-lnmor' id='gdprbannerurl' target='_blank'>"+o+"</a>"),i=$ZSIQUtil.getEncodedText(i),JSON.parse(t.trackingprivacyconfig)){case 1:return"<div id='gdprbanner' class='siq-msgbanr'><span class='dib-mid'>"+i+s+"</span><div class='siq-clkoptn'><div class='siq-okbtn dib-mid' type=0 config="+t.trackingprivacyconfig+" docclick='updateCookieForTracking'>"+r+"</div></div></div>";case 2:return"<div id='gdprbanner' class='siq-msgbanr'><span class='dib-mid'>"+i+s+"</span><div class='siq-clkoptn'><div class='siq-okbtn dib-mid' type=0 config="+t.trackingprivacyconfig+"  docclick='updateCookieForTracking' >"+r+"</div>"+(c?"":"<div class='siq-trkbtn dib-mid' type=1 config="+t.trackingprivacyconfig+" docclick='updateCookieForTracking'>"+a+"</div>")+"</div></div>"}},getGDPRBannerCookieKey:function(e){return"gdpr_"+(e=e||$ZSIQWidget.getWidgetObject().screenname)},updateCookieForTracking:function(e,t){var n=$ZSIQUtil.getGDPRBannerCookieKey(),i=$ZSIQUtil.getGDPRBannerCookieKey(),r=2592e6,a=$ZSIQUtil.getAPIValues()||{};n+="__donottrack",i+="_trackingconfig";var o=function(){handleIframeFunction(function(e){e.$Support.handleDomainStorage("updatecorsdata","cookie")})};switch(e){case 0:$ZSIQCookie.set(n,0,r,!0),$ZSIQCookie.set(i,t,r,!0),$ZSIQUtil.hideGDPRBanner(),"on"==a.reset&&$ZSIQUtil.checkTrackingEnabled()&&$ZNotifyTracking(1,"on"),$UTSHandler.init(!0),o();break;case 1:$ZSIQCookie.set(n,1,r,!0),$ZSIQCookie.set(i,t,r,!0),$ZNotifyTracking(1,"off"),$ZSIQUtil.hideGDPRBanner(),o()}},checkGDPRBannerStatus:function(e,t,n){var i=n.pinfo.pinfo.trackingprivacyconfig,r=$ZSIQUtil.getGDPRBannerCookieKey(t);switch(e){case 0:var a=$ZSIQCookie.get(r+"__donottrack"),o=$ZSIQCookie.get(r+"_trackingconfig");return 0!=a.length&&o==i;case 1:return 0==$ZSIQCookie.get(r+"__donottrack");case 2:return 1==$ZSIQCookie.get(r+"__donottrack")&&2==i}return!1},hideGDPRBanner:function(){var e=document.getElementById("gdprbanner");$ZSIQWidgetUI.addClass(e,"gdprbanner_slide")},getGDPRPendingStatus:function(e,t,n){var i=!1;try{if(t.pinfo&&t.pinfo.pinfo){var r=t.pinfo.pinfo,a=JSON.parse(r.isgdprenabled),o=1==e.widgetobj.isgdprenabled,c=r.trackingprivacyconfig;a&&0!=c&&!$ZSIQUtil.checkGDPRBannerStatus(0,n,t)&&o&&(i=!0)}}catch(e){}return i},isValidURL:function(e){var t=new RegExp(/^(((http|https):\/\/(www.){0,1})|www.){1}[a-zA-Z0-9]+[-a-zA-Z0-9@:/%_+.~#?&/=]*[^.]$/);return void 0!==e&&t.test(e)},hyperLinksSubString:function(e,t,n){try{if(-1!==e.indexOf(t)&&0!=n.length){var i=e.length,r=t.length,a=e.substring(0,e.indexOf(t)),o=e.substring(e.indexOf(t),e.indexOf(t)+r),c=e.substring(e.indexOf(t)+r,i);e=a+(o="<a class='siq-lnmor' target='_blank' href='"+(n=-1==n.indexOf("http")?"http://"+n:n)+"'>"+o+"</a>")+c}else 0!=n.length&&(e+=" <a class='siq-lnmor' target='_blank' href='"+(n=-1==n.indexOf("http")?"http://"+n:n)+"'>"+t+"</a>")}catch(e){}return e},stringify:function(e){try{return Object.toJSON?Object.toJSON(e):JSON.stringify(e)}catch(e){}},getNavigationObj:function(e){var t=e?e.document:null,n="";if(o&&c&&(n=c),t&&t.location&&t.location.protocol){if(-1==e.location.protocol.indexOf("http")&&e.parent&&e.parent!=e)return $ZSIQUtil.getNavigationObj(e.parent);var i;(i={}).current_page=$zohosq.visitor.cpage()||t.location.href.substring(0,3072),i.page_title=$zohosq.visitor.pagetitle()||n||t.title.substring(0,3072),i.referer=$zohosq.visitor.referer()||t.referrer.substring(0,3072);try{i.lsid=$ZSIQWidget.getWidgetObject().lsid}catch(e){}return i}(i={}).current_page=$zohosq.visitor.cpage()||document.location.href.substring(0,3072),i.page_title=$zohosq.visitor.pagetitle()||n||document.title.substring(0,3072),i.referer=$zohosq.visitor.referer()||document.referrer.substring(0,3072);try{i.lsid=$ZSIQWidget.getWidgetObject().lsid}catch(e){}return i},getAvuid:function(){return $ZSIQWidget.avuid||($ZSIQWidget.avuid=$ZSIQChat.avuidval||$ZSIQLSDB.get("ZLD"+$ZSIQChat.getWidgetData().widgetobj.lsid+"avuid")),$ZSIQWidget.avuid},getLiveLSIDFromStorage:function(e){var t=$ZSIQUtil.getConfigFromStorage();try{return"rawid"==e?t.widgetobj.lsid:t.embedobj.einfo.embedid}catch(e){return""}},checkStoredIdAndRemoveStorage:function(e){var t=$ZSIQUtil.getLiveLSIDFromStorage("rawid"),n=$ZSIQLSDB.get("ZLD"+$zohosq.widgetcode+"cvuid"),i=$ZSIQUtil.getConfigFromStorage();if(i&&i.embedobj&&i.embedobj.conversation_newflow_enabled&&n&&n!=e){var r=$ZSIQUtil.getLiveLSIDFromStorage();if(!r)return;var a=["ZLD"+r,"ZLD"+r+"WAITING","ZLDTRIGGER"+r,"ZLD"+r+"QUEUEINGCHATS","ZLD"+r+"WTIME"],o=a.length;$ZSIQLSDB.removeSessionStore($ZSIQLSDB.get("ZLD"+t+"avuid")+"_formcontextinitiated"),$ZSIQLSDB.removeSessionStore("ZLD"+r+"lastview");for(var c=0;c<o;c++)$ZSIQLSDB.remove(a[c])}var s=$zohosq._domain?63072e6:"";$ZSIQLSDB.setCookie("ZLD"+$zohosq.widgetcode+"cvuid",e,s)},getElementHeight:function(e){var t=getComputedStyle(e).display;e.style.display="inline-block";var n=e.offsetHeight;return e.style.display=t,n},isObjectdeepEqual:function(e,t){if(e===t)return!0;if(void 0===t||void 0===t)return!1;var n=Object.getOwnPropertyNames(e),i=Object.getOwnPropertyNames(t);if(n.length!=i.length)return!1;for(var r=0;r<n.length;r++){var a=n[r];switch(typeof e[a]){case"object":if(!this.isObjectdeepEqual(e[a],t[a]))return!1;break;case"function":if(void 0===t[a]||e[a].toString()!=t[a].toString())return!1;break;case"number":if(isNaN(e[a])&&isNaN(t[a]))break;default:if(e[a]!=t[a])return!1}}return!0},bindEventsForImgPreview:function(){document.getElementById("zsiqimagepreview").addEventListener("click",function(e){switch(e.target.getAttribute("docclick")){case"zsiqclose":$ZSIQChatWindow.closeImagePreview(e);break;case"zsiqstartchat":$ZSIQChatWindow.startChat(e);break;case"zsiqfaqvote":$ZSIQChatWindow.updateVote(e,e.target);break;case"toggletocview":$ZSIQChatWindow.toggleTocContainer();break;case"toggletocchild":$ZSIQChatWindow.toggleTocChildView(e.target);break;case"articlesccrolltoview":$ZSIQChatWindow.articleScrollToView(e.target)}})},preConnectDomains:function(){if(Array.isArray(window._STATICURLS)){for(var e=$ZSIQChat.getScriptSource().split("://")[0]+"://",t=_STATICURLS.length,n=0;n<t;n++){var i=_STATICURLS[n];-1==i.indexOf("https://")&&(i=e+i);var r=document.createElement("link");r.rel="preconnect",r.href=i,document.head.appendChild(r),r.parentNode.removeChild(r),r=null}delete window._STATICURLS}},getEncodedText:function(e){try{e&&"string"==typeof e&&(e=(e=e.replace(/&#39;|&#x27;/g,"'").replace(/&quot;/g,'"').replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&").replace(/&#x2F;/g,"/")).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;"))}catch(e){}return e},bindEventsCookieBanner:function(){var e=document.getElementById("gdprbanner");e&&e.addEventListener("click",function(e){var t=e.target;"updateCookieForTracking"!=t.getAttribute("docclick")||$ZSIQUtil.updateCookieForTracking(JSON.parse(t.getAttribute("type")),t.getAttribute("config"))})},getUrlParamObj:function(e){var t={};if(e){for(var n=(e.split("?")[1]||"").split("&"),i=0;i<n.length;i++){var r=n[i].split("=");t[r[0]]=r[1]}return t}},getIframeSupportObj:function(){var e=$ZSIQUtil.getIframe();return e&&e.$Support&&e.$Support.EmbedObj?e.$Support.EmbedObj:{}}}}(),$ZSIQLicence={verify:function(e){var t=$ZSIQUtil.getIframe().$Support.EmbedObj.linfo[e];return t&&JSON.parse(t)||!1},isFreePlan:function(){var e=parseInt($ZSIQChat.getWidgetData().embedobj.linfo.planid);return-1<[1,7,12].indexOf(e)}};function handleIframeFunction(e){var t=$ZSIQUtil.getIframe();t&&t.$Support&&e(t)}var $UTSHandler=$UTSHandler||function(){var g=function(t,e){var i,n={};n[t]=e;try{i=$ZSIQUTS.getFromSession("utssynccache")||$ZSIQUtil.stringify([]),(i=JSON.parse(i)).push(n)}catch(t){i=[]}$ZSIQUTS.storeInSession("utssynccache",$ZSIQUtil.stringify(i))},a=function(t,e){var i=e[t];switch(parseInt(t)){case 1:$UTSHandler.handleChatTriggers(i.type,i.data);break;case 2:$ZSIQChatWindow.openChatWindow(!0);break;case 3:$zohosq.floatbutton.visible("show");break;case 4:$ZSIQUTSAction.handleButtonGlow();break;case 5:$ZSIQUTSAction.handleAnimate();break;case 6:$ZSIQUtil.getIframe().$Support.setUVID(i.uvid);break;case 7:$UTSHandler.handleTrackChat(i.data);break;case 8:$UTSHandler.handleUTSConnect(i.data);break;case 9:$UTSHandler.handleBotTrigger(i)}};return{notifyCustomEvent:function(t){$ZSIQUTS.notifyCustomEvent(t)},getUTSCachedata:function(){var t=$ZSIQUTS.getFromSession("utssynccache");if(t){for(var e in t=JSON.parse(t))if(t.hasOwnProperty(e)){var i=t[e];for(var n in i)i.hasOwnProperty(n)&&a(n,i)}$ZSIQUTS.storeInSession("utssynccache",$ZSIQUtil.stringify([]))}},storeInSession:function(t,e){$ZSIQUTS.storeInSession(t,e)},get:function(t){return $ZSIQUTS.get(t)},getFromSession:function(t){return $ZSIQUTS.getFromSession(t)},updateAction:function(t){$ZSIQUTS.updateAction(t)},handleApiChange:function(t,e){$ZSIQUTS.handleApiChange(t,e)},init:function(t){$ZSIQUTS.init(t)},getUTSActionData:function(){return $ZSIQUTSAction.getUTSActionData()},handleChatTriggers:function(e,i){var t=$ZSIQChat.getWidgetData();if(1!=$ZSIQUtil.formWidgetObject(t.widgetobj).hideembed)try{var n=$ZSIQUtil.getAPIValues(),a=$ZSIQUtil.getIframe(),r=$ZSIQUtil.getAvuid();if($ZSIQLSDB.getFromSession(r+"_formcontextinitiated"))return;a.$Support.getTriggerCookie()&&n.triggermsg&&$ZSIQWidgetUI.getWidgetState()!=$ZSIQWidgetUI.F_WINDOW?a.$Support.incrementUnreadCount():$ZSIQWidgetUI.setWidgetState($ZSIQWidgetUI.F_WINDOW),a.$Support.Util.handleTriggers(e,i)}catch(t){var o={};o.type=e,o.data=i,g(1,o)}},openChatWindow:function(){try{$ZSIQChatWindow.openChatWindow(!0)}catch(t){g(2,{})}$UTSHandler.updateAction({type:"1"})},showButton:function(){try{$zohosq.floatbutton.visible("show")}catch(t){g(3,{})}},getFloatStatus:function(){try{return $ZSIQWidget.getWidgetStatus()}catch(t){var e=$ZSIQChat.getWidgetData();return $ZSIQUtil.formWidgetObject(e.widgetobj).status}},getFloatDiv:function(e){try{return $ZSIQWidgetUI.getWidgetDiv()}catch(t){return g(e,{}),null}},getFloatState:function(){return $ZSIQWidgetUI.getWidgetState()},setUVID:function(e){$ZSIQUtil.getAPIValues().uvid=e;try{$ZSIQUtil.getIframe().$Support.setUVID(e)}catch(t){g(6,{uvid:e})}$zv.uvid=e},setUUID:function(t){t&&($ZSIQUtil.getAPIValues().uuid=t,$zv.uuid=t)},getDomain:function(){var t=$zohosq.utsvalues.trackingdomain;return t||(t=location.hostname.toString().replace(/^w{3}\./,""),/^[a-zA-Z0-9-\.]+$/.test(t)||(t="")),t||""},handleTrackChat:function(e){try{if("object"!=typeof $ZSIQChatWindow)return void setTimeout(function(){$UTSHandler.handleTrackChat(e)},1e3);$ZSIQChatWindow.handleIframeLoading();var t=$ZSIQUtil.getAvuid();if($ZSIQLSDB.getFromSession(t+"_formcontextinitiated"))return;var i=1==$ZSIQWidgetUI.getWidgetState()?$ZSIQWidgetUI.F_BUTTON:$ZSIQWidgetUI.F_WINDOW;$ZSIQWidgetUI.setWidgetState(i),$ZSIQUtil.getIframe().$Support.Util.handleTrackChat(e)}catch(t){var n={};n.data=e,g(7,n)}},handleUTSConnect:function(e){try{$ZSIQUtil.getIframe().$Support.Util.handleUTSConnect(e)}catch(t){var i={};i.data=e,g(8,i)}},handleBotTrigger:function(e){try{var t=$ZSIQChat.getWidgetData(),i=$ZSIQUtil.formWidgetObject(t.widgetobj),n=$ZSIQUtil.getAvuid();if(1==i.hideembed||$ZSIQLSDB.getFromSession(n+"_formcontextinitiated"))return;var a=$ZSIQUtil.getAPIValues(),r=$ZSIQUtil.getIframe(),o=r.$Support;if(o.isChatExist())return;var S=o.getTriggerCookie();if(e.lsid&&e.lsid!=o.EmbedObj.livelsid)return;if(S&&a.triggermsg&&$ZSIQWidgetUI.getWidgetState()!=$ZSIQWidgetUI.F_WINDOW?o.incrementUnreadCount():$ZSIQWidgetUI.setWidgetState($ZSIQWidgetUI.F_WINDOW),o.getTriggerCookie())return;r.$Support.Util.handleBotTriggers(e);try{$UTSHandler.updateAction({type:"7"})}catch(t){}}catch(t){g(9,e)}},formatDataForBotTrigger:function(t){return{aboutme:t.aboutme,attender:t.attender,attender_imagefkey:t.attender_imagefkey,msglist:t.msglist,istrigmsg:!0,isbottrigmsg:!0,isBotChat:!0,winid:t.time}},getAPIValuesForUTS:function(){var t=$ZSIQUtil.getAPIValues(),e=$ZSIQChat.getWidgetData(),i=$ZSIQUtil.formWidgetObject(e.widgetobj);return t.name=t.name||i.visitorname,t.email=t.email||i.visitoremail,t},setTrackedfrommailchimp:function(t){$ZSIQChat.istrackedfrommailchimp=t},isTrackedfrommailchimp:function(){return $ZSIQChat.istrackedfrommailchimp},getUTSSID:function(){return $ZSIQUTS.getUTSSID()},getUTSName:function(){return $ZSIQUTS.getUTSName()},getEqualDomains:function(){return $zohosq.utsvalues.equalhosts},setSIQID:function(t){t&&($zohosq.utsvalues.siqid=t)},getSIQID:function(){return $zohosq.utsvalues.siqid},isForceSecure:function(){return $zohosq.utsvalues.forcesecure},getZldp:function(){try{return $ZSIQUTS.get("_zldp")}catch(t){if("undefined"!=typeof $UTSConnector)return $UTSConnector.util.db.getFromCookie({key:"_zldp"})||$UTSConnector.util.db.getFromStorage({type:"localStorage",key:"_zldp"})}}}}();var $ZSIQUTS=$ZSIQUTS||function(h){var T,b,d,y,u,U,$,a,s,t,o=0,r=1,c=2,n=0,e=1,i=-1,l=r,m=63072e6,f=function(e,t){var n=t?"ws":"http";return!e&&e.location?n+"://":e.location.protocol?-1==e.location.protocol.indexOf("http")&&e.parent&&e.parent!=e?f(e.parent,t):-1!=e.location.protocol.indexOf("https")?n+"s://":n+"://":f(e.parent,t)},g={net:{},util:{},moninterval:1e4},S=(ie=navigator.userAgent,oe=ie.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+[^\s|\$]+)/i)||[],/trident/i.test(oe[1])?"IE "+((ne=/\brv[ :]+(\d+)/g.exec(ie)||[])[1]||""):"Chrome"===oe[1]&&null!=(ne=ie.match(/\b(OPR|Edge)\/(\d+)/))?ne.slice(1).join(" ").replace("OPR","Opera"):(oe=oe[2]?[oe[1],oe[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(ne=ie.match(/[v|V]ersion\/(\d+[^\s|\$]+)/i))&&oe.splice(1,1,ne[1]),oe.join(" "))),p=!1;/ios 10.1/i.test(S)&&(p=!0),"undefined"!=typeof WebSocket&&!1 in WebSocket.prototype&&(p=!0),navigator.userAgent.match(/Lumia.*/)&&(p=!0);var v=function(){return d},q=function(e){return m<e?m:e},I=function(){return t},_=function(e){t=e};g.seqmsg={servercount:-1,clientcount:-1,isconnectionmade:!1,maxexpirytime:6e5,maxdelay:6e4},g.seqmsg.init=function(e){e||0==e||(e=-1),g.seqmsg.servercount=e,g.seqmsg.getSequenceNo(),-1==g.seqmsg.clientcount&&(g.seqmsg.clientcount=e)},g.seqmsg.getServerUpdatedcount=function(){return g.seqmsg.servercount},g.seqmsg.updateServerUpdatedcount=function(e){e||0==e||(g.seqmsg.servercount=-1),g.seqmsg.servercount=e},g.seqmsg.getSequenceNo=function(){return-1==g.seqmsg.clientcount&&(g.seqmsg.clientcount=g.seqmsgdb.getSequenceNumber(!0)),g.seqmsg.clientcount},g.seqmsg.incrementSequenceNo=function(){g.seqmsg.clientcount++},g.seqmsg.enroll=function(e,t){if(g.seqmsg.isconnectionmade){g.seqmsg.incrementSequenceNo();var n=g.seqmsgdb.getFromDB(),i={};i.data=e,i.time=(new Date).getTime()+g.seqmsg.maxexpirytime,n[g.seqmsg.clientcount]=i,g.seqmsgdb.updateInDB(n,g.seqmsg.maxexpirytime)}},g.seqmsg.asyncResend=function(t){if(g.seqmsg.isconnectionmade&&t){var e="";try{e=t.shift()}catch(e){g.notifier.doLog("Exception array shift -> "+e.message+" stack -> "+e.stack+" name -> "+e.name+" missedseq -> "+t)}if(e){var n=g.seqmsgdb.getFromDB()[e];if(n){var i=n.data;g.notifier.sendData(i,void 0,!1),g.seqmsg.clear(e)}setTimeout(function(){g.seqmsg.asyncResend(arguments[0])},0,t)}}},g.seqmsg.clear=function(e){var t=g.seqmsgdb.getFromDB();e?delete t[e]:t={},g.seqmsgdb.updateInDB(t,g.seqmsg.maxexpirytime)},g.seqmsgdb={},g.seqmsgdb.getFromDB=function(e){var t=$ZSIQUTS.getFromSession("seq_msgs")||"{}";return t=JSON.parse(t),e?t[e]||{}:t},g.seqmsgdb.getSequenceNumber=function(e){var t,n=g.seqmsgdb.getFromDB();for(var i in n)i=parseInt(i),t||(t=i),e?t<i&&(t=i):i<t&&(t=i);return t||-1},g.seqmsgdb.updateInDB=function(e,t){$ZSIQUTS.storeInSession("seq_msgs",JSON.stringify(e),t)};var k=function(){try{return!!h.sessionStorage&&(sessionStorage.setItem("quota_test","1"),sessionStorage.removeItem("quota_test"),!0)}catch(e){}return!1},C=function(){try{return!!h.localStorage&&(localStorage.setItem("quota_test","1"),localStorage.removeItem("quota_test"),!0)}catch(e){}return!1},O=function(e,t,n){e=Z(e);var i=new Date;n=n||864e5,i.setTime(i.getTime()+n);var o=e+"= "+t+";expires= "+i.toGMTString();o+=";path=/";try{var r=$UTSHandler.getDomain();o+=r?";domain="+r:"",$ZSIQChat.isEmbedFeatureConfEnabled()&&(o+=";secure")}catch(e){}document.cookie=o},w=function(e,t,n){if(!C())return!1;e=Z(e);var i=JSON.parse(localStorage.utsdb||"{}"),o={};return o[e]=t,n&&(o.ttl=n,o.time=(new Date).getTime()),i[e]=o,localStorage.utsdb=JSON.stringify(i),!0},E=function(e){if(!C())return!1;var t=e,n=JSON.parse(localStorage.utsdb||"{}"),i=n[e=Z(t)];if(i)delete n[N(t)],localStorage.utsdb=JSON.stringify(n);else{if(!(i=n[e=N(t)]))return null;i[Z(t)]=i[e],delete i[N(t)],n[Z(t)]=i,delete n[N(t)],localStorage.utsdb=JSON.stringify(n)}return i?i.ttl&&i.ttl+i.time<(new Date).getTime()?(delete n[Z(t)],delete n[N(t)],localStorage.utsdb=JSON.stringify(n),null):i[e]:null},Q=function(e){var t=e;e=Z(t),e+="=";var n=document.cookie.indexOf(e),i="";return-1!==n?-1!==(i=document.cookie.substr(n+e.length)).indexOf(";")&&(i=i.substring(0,i.indexOf(";"))):(e=N(t),e+="=",-1!==(n=document.cookie.indexOf(e))&&(-1!==(i=document.cookie.substr(n+e.length)).indexOf(";")&&(i=i.substring(0,i.indexOf(";"))),O(t,i,864e5))),i},Z=function(e){return z(e)},N=function(e){return F(e)},z=function(e){return b+"-"+e},F=function(e){return b+"-"+T+"-"+e},D=function(e){return Array.isArray&&Array.isArray(e)||"[object Array]"===Object.prototype.toString.call(e)||"[object Array Iterator]"===Object.prototype.toString.call(e)},W=null,B=null,x=0,L=!1,M=!1,J=!1,j=f(h),A=i;g.net={disabledbyserver:!1,fallbacktimer:-1,monitortimer:-1,reconnectwhenactive:!1,lpt:0,writeenabled:!1,connAlive:function(){g.net.lpt=new Date},connMonitor:function(){V.logFine("inside connMonitor");var e=new Date;try{e-g.net.lpt>3*g.moninterval&&("hidden"!=P.cur_st?L||M?!1===L&&g.net.reconnect():g.net.reconnect():V.logFine("skipped by tab status")),g.util.dbconsistencychecked||g.net.disabledbyserver||g.util.checkConsistency()}finally{g.net.scheduleMonitor()}},scheduleMonitor:function(){V.logFine("inside scheduleMonitor"),clearTimeout(g.net.monitortimer),g.net.monitortimer=setTimeout(function(){g.net.connMonitor()},g.moninterval)},reconnect:function(){V.logFine("inside reconnect - $ZUserStatus.isactive : "+K.isactive+" - "+P.cur_st+" - "+g.net.disabledbyserver),g.net.disabledbyserver||!K.isactive&&null!=K.isactive||"hidden"==P.cur_st||(K.init(),g.net.disableConnection(),g.init())},scheduleFallback:function(){clearTimeout(g.net.fallbacktimer),g.net.fallbacktimer=setTimeout(g.net.fallbackToCR,2e4)},unscheduleFallback:function(){clearTimeout(g.net.fallbacktimer)},fallbackToCR:function(){G._WEBSOCK.readyState===G.readystate.OPEN&&G.initialized||(G.disableConnection(),X.init())},handleUTSEvent:function(e){var t=e.d,n=0;switch(e.o){case 0:B=t._zldp||B,W=t._zldt||$ZSIQUTS.get("_zldt"),G.setInitialized(),g.net.writeenabled=!0,g.seqmsg.isconnectionmade=!0,g.notifier.notifyQueued(),$UTSHandler.setUVID(W),$UTSHandler.setUUID(t.uuid);try{n=$ZSIQUTSAction.handle(t.triggers)}catch(e){g.notifier.doLog("Exception in triggering message - "+e.message+" stack - "+e.stack+" name:"+e.name)}J=!0,t.isnewconnection=!0,R.handleConnect(t),$ZSIQUTSAction.includeBeforeSubmit(t),y.customaction&&g.notifier.updateCustomAction(y.customaction),t.sseqno&&g.seqmsg.init(parseInt(t.sseqno)),g.notifier.identifyByCampaign(),g.notifier.doLog(" isLocalstorage: "+C()+" isSessionStorage: "+k()+" Tab status - "+P.latime+" - "+P.cur_st),a=t.name,s=t.token,n/1e3<5&&t.triggers&&"object"==typeof $ZSIQChatWindow&&$ZSIQChatWindow.populateIframe(),$ZSIQUTSAction.handleInfo(t);break;case 1:G.ping(),B=t._zldp,W=t._zldt,U=t.sid,I()&&$ZSIQUTS.storeInSession("sid",U),$UTSHandler.setUUID(t.uuid),$UTSHandler.setUVID(W),g.net.writeenabled=!0,g.seqmsg.isconnectionmade=!0,g.notifier.notifyQueued(),J=!0,R.handleConnect(t),$ZSIQUTSAction.handle(t.triggers),$ZSIQUTSAction.includeBeforeSubmit(t),t.sseqno&&g.seqmsg.init(parseInt(t.sseqno)),$UTSHandler.isTrackedfrommailchimp()||g.notifier.identifyByCampaign(),a=t.name,s=t.token,$ZSIQUTSAction.handleInfo(t);break;case 2:B=t._zldp,W=t._zldt,U=t.sid;try{B=B?B.trim():B,W=W?W.trim():W,U=U?U.trim():U,$ZSIQUTS.store("_zldp",B,q(63072e6)),$ZSIQUTS.store("_zldt",W,q(864e5)),I()&&$ZSIQUTS.storeInSession("sid",U)}catch(e){}J=!0,g.util.checkMode(c)||g.notifier.acknowledge();break;case 3:$ZSIQUTSAction.handle(t.triggers);break;case 4:if(g.util.checkMode(c))return;if(t&&t.seqno)return void g.seqmsg.clear(t.seqno);if(t&&t.sseqno){if(g.seqmsg.updateServerUpdatedcount(parseInt(t.sseqno)),t.missedseq){var i=JSON.parse(t.missedseq);g.seqmsg.asyncResend(i)}return}break;case 100:t.uvid=$ZSIQUTS.get("_zldt")||W,$UTSHandler.handleTrackChat(t);break;case 101:$ZSIQUTS.handleCustomAction(t);break;case 102:var o=t.triggers;!t.triggers&&t.botTriggers&&"botTriggers"==t.module&&(o=t),(n=$ZSIQUTSAction.handle(o))/1e3<5&&"object"==typeof $ZSIQChatWindow&&$ZSIQChatWindow.populateIframe();break;case-1:if(g.util.checkMode(c))return;t&&t.issidclear&&($ZSIQUTS.removeFromSession("sid"),U="");var r=t&&t.duration||"";g.net.disableConnection(r),g.net.disabledbyserver=!0;break;case 11:$ZSIQUTSAction.handleInfo(t)}},handleResponse:function(e,t){if(M=!0,e)if((e=JSON.parse(e))&&e.seqno)g.seqmsg.clear(e.seqno);else if(e&&e.sseqno){if(g.seqmsg.updateServerUpdatedcount(parseInt(e.sseqno)),e.missedseq){var n=JSON.parse(e.missedseq);g.seqmsg.asyncResend(n)}}else if(!t&&h.SharedWorker&&V.sendResponseToOthers(e),D(e))for(var i=0;i<e.length;i++)this.handleUTSEvent(e[i]);else this.handleUTSEvent(e)},scheduleRecon:(Y=[30,60,90,120,300],ee=0,te=-1,function(e,t){var n,i;e?Y[ee=0]=(n=5,i=30,Math.floor(Math.random()*(i-n+1)+n)):ee<Y.length-1&&ee++;var o=Y[ee];clearTimeout(te),te=setTimeout(t,1e3*o)}),goOffline:function(){if(3<=x||A===n){3<x&&(M=!1);var e=!(L=!0);3!==x&&A!==n||(e=!0),A=i,this.scheduleRecon(e,this.reconnect)}},requestSuccess:function(){(3<=x||A===e)&&(A=i,L=!1)},disableConnection:function(e){if(L=!0,e){var t=60*e*1e3,n=(new Date).getTime()+t;$ZSIQUTS.store("nextrecon",n),setTimeout(function(){V.logFine("disable connect settimeout");try{g.net.disabledbyserver=!1}catch(e){}g.init()},t)}g.util.checkMode(r)?G.disableConnection():g.util.checkMode(o)&&X.disableConnection(),g.net.writeenabled=!1,h.$UTSConnector&&$UTSConnector.util.net.terminate()}},g.util={dbconsistencychecked:!1,offlinetimer:-1,addOnOffEvent:function(e,t){document.body.attachEvent?document.body.attachEvent("on"+e,t):h.addEventListener&&h.addEventListener(e,t)},checkMode:function(e){return l===e},parseQueryString:function(e){var t={};if(!e||!e.trim())return t;for(var n=(e=e.replace(/^\?/g,"")).split("&"),i=[],o=function(e){return decodeURIComponent((e+"").replace(/\+/g,"%20"))},r=0;r<n.length;r++)t[o((i=n[r].split("="))[0])]=o(i[1]);return t},composeUrl:function(){var i=[];function e(e,t){var n;t&&i.push(e+"="+encodeURIComponent((n=t)?n.replace(/^\s+|\s+$/gm,""):n))}try{Float.stopBlinking()}catch(e){}var t=$ZSIQUtil.getNavigationObj(h),n=t.current_page,o=t.page_title;try{var r=$zohosq.visitor.onNavigate({url:n,title:o});r&&(n=r.url||n,o=r.title||o)}catch(e){}var a=$ZSIQUtil.getURLParameterByName("mc_cid"),s=$ZSIQUtil.getURLParameterByName("mc_eid");if(null==a&&null==s){var c=Q("mailchimp");if(c||(c=Q("zohocampaign")),c){var l=JSON.parse(c);y.name=l.name,y.email=l.email}}var d=t.referer,u={"x-e":""+T,"x-s":""+b,cpage:n,"x-sid":U,ptitle:o,_zldp:B||$ZSIQUTS.get("_zldp"),_zldt:W||$ZSIQUTS.get("_zldt"),name:y.name,email:y.email?y.email.toLowerCase():"",e_name:$zv.e_name,e_email:$zv.e_email,phone:y.phone,localtime:function(e){try{return(new Date).toTimeString().split(" ").slice(1).join(" ")}catch(e){}return""}(),gmttime:function(){try{return(new Date).toTimeString().split(" ").slice(1,2)[0]}catch(e){}return""}(),docref:d.substring(0,3072),resolution:"screen"in h&&void 0!==screen.width&&void 0!==screen.height?screen.width+"x"+screen.height:""};try{delete $zv.e_name,delete $zv.e_email}catch(e){}try{var m=$ZSIQChat.getWidgetData(),f=$ZSIQUtil.formWidgetObject(m.widgetobj).lsid;f&&(u.lsid=""+f)}catch(e){}$ZSIQUtil.getAPILanguage()?u.lang_embed=$ZSIQUtil.getAPILanguage():$?u.lang_embed=$:$ZSIQUtil.getBrowserLanguage()&&(u.lang_embed=$ZSIQUtil.getBrowserLanguage());try{var g=(new Date).getTime(),S=$ZSIQUTS.getFromSession("con_id");S?g=S:$ZSIQUTS.storeInSession("con_id",g),u.con_id=""+g}catch(e){}for(var p in u.referer=null,$ZSIQUTS.getFromSession("siq_isdirect")||($ZSIQUTS.getFromSession("siq_ref")?u.referer=$ZSIQUTS.getFromSession("siq_ref"):d?(d=d.substring(0,3072),$ZSIQUTS.storeInSession("siq_ref",d),u.referer=d):$ZSIQUTS.storeInSession("siq_isdirect",!0)),u)u.hasOwnProperty(p)&&e(p,u[p]);try{Float.blinkTitle(Float.blinkmsg)}catch(e){}if(J)e("recon","true");else if(y.info){var v=y.info;"object"==typeof v&&(v=JSON.stringify(v)),e("cinfo",v)}return i.join("&")},bindEvents:function(){try{function t(e){e=e||{};var t={},n=$ZSIQUtil.getNavigationObj(h),i=e[2];if((i=i?i.trim():i)&&("/"==i.substring(0,1)?i=h.location.origin+i:"?"==i.substring(0,1)?-1!==(i=h.location.origin+h.location.pathname+i).indexOf("#")&&(i+=h.location.hash):i="#"==i.substring(0,1)?h.location.origin+h.location.pathname+h.location.search+i:null),t.cpage=i||n.current_page,t.ptitle=e[1]||n.page_title,t.referer=n.referer,t.lsid=n.lsid,h.$UTSConnector){var o=$History.getList();o&&0!=o.length?($UTSConnector.util.db.storeInStorage({type:"localStorage",key:"h_cpage",value:t.cpage}),$History.push({referer:t.referer,cpage:t.cpage,title:t.ptitle,lsid:t.lsid}),$UTSConnector.util.net.checkHistory()):g.notifier.updateNavigtion(t)}else g.notifier.updateNavigtion(t)}i=h.history,o=i.pushState,i.pushState=function(e){var t=o.apply(i,arguments);return"function"==typeof i.onpushstate&&i.onpushstate(arguments),t},H(h,"hashchange",t),h.history.onpushstate=function(e){try{t(e)}catch(e){}},-1!==navigator.userAgent.indexOf("Firefox")&&(h.onbeforeunload=(n=h.onbeforeunload,function(e){return g.net.disableConnection(),"function"==typeof n?n():e.returnValue?e.returnValue:void 0}))}catch(e){}var n,i,o},checkConsistency:function(){W===$ZSIQUTS.get("_zldt")&&B===$ZSIQUTS.get("_zldp")||(U=null,g.net.reconnect()),g.util.dbconsistencychecked=!0}},g.util.addOnOffEvent("online",function(){g.util.offlinetimer&&-1!=g.util.offlinetimer?clearTimeout(g.util.offlinetimer):K.isactive?g.net.reconnect():g.net.reconnectwhenactive=!0,A=e}),g.util.addOnOffEvent("offline",function(){g.util.offlinetimer&&-1!=g.util.offlinetimer&&clearTimeout(g.util.offlinetimer),g.util.offlinetimer=setTimeout(function(){A=n,g.net.reconnectwhenactive=!1,g.net.goOffline(),g.util.offlinetimer=-1},2e3)}),g.notifier={qdata:[],maxsize:100,lastupdatedinfo:{}},g.notifier.notifyServer=function(e,t){try{e&&!e.event_time&&(e.event_time=""+(new Date).getTime())}catch(e){}h.$UTSConnector?$UTSConnector.util.net.trackEvent(e):g.util.checkMode(c)||(g.net.writeenabled||t)&&(G._WEBSOCK.readyState===G.readystate.OPEN||g.util.checkMode(o))?g.notifier.sendData(e,void 0,!0):g.notifier.qdata.length>g.notifier.maxsize||(g.notifier.removeIfExists(e),g.notifier.qdata.push(e))},g.notifier.removeIfExists=function(e){try{for(var t=0;t<g.notifier.qdata.length;t++)JSON.stringify(g.notifier.qdata[t])==JSON.stringify(e)&&g.notifier.qdata.splice(t,1)}catch(e){}},g.notifier.waitForSocketConnection=function(e,t){setTimeout(function(){e.readyState!==G.readystate.OPEN?g.notifier.waitForSocketConnection(e,t):void 0!==t&&t()},500)},g.notifier.sendData=function(e,t,n){if(g.seqmsg.enroll(e,n),g.util.checkMode(r)){var i=e;g.seqmsg.isconnectionmade&&((i={}).data=e,i.seqno=g.seqmsg.getSequenceNo()),G._WEBSOCK.readyState===G.readystate.OPEN?G._WEBSOCK.send(JSON.stringify(i)):g.notifier.waitForSocketConnection(G._WEBSOCK,function(){G._WEBSOCK.send(JSON.stringify(i))})}else g.util.checkMode(o)?X.bind(JSON.stringify(e),t):g.util.checkMode(c)&&V.send(e)},g.notifier.updateNavigtion=function(e){this.notifyServer({opr:"nav",navdata:e})},g.notifier.updateCustomAction=function(e){var t={},n=$ZSIQUtil.getNavigationObj(h);t.cpage=n.current_page,t.ptitle=n.page_title,t.lsid=n.lsid,this.notifyServer({opr:"customaction",action:e,navdata:t});try{delete $zohosq.values.customaction,delete $ZSIQUtil.getAPIValues().customaction}catch(e){}},g.notifier.doLog=function(e){this.notifyServer({opr:"dolog",logdata:e})},g.notifier.enrollInfo=function(e,t){if(e&&t){var n={};n[e]=t,n.uptime=(new Date).getTime(),g.notifier.lastupdatedinfo[e]=n}},g.notifier.isUpdated=function(e,t){var n=g.notifier.lastupdatedinfo[e];return!!n&&(n[e]==t&&((new Date).getTime()-n.uptime<6e4||(delete g.notifier.lastupdatedinfo[e],!1)))},g.notifier.updateGuessInfo=function(e){var t={},n={};(e=e.details||{}).isError&&(t.isError=e.isError),e.name&&e.name.trim()&&(e.name=e.name.trim(),t.name=e.name),e.email&&e.email.trim()&&(e.email=e.email.trim(),t.email=e.email.toLowerCase()),e.phone&&e.phone.trim()&&(e.phone=e.phone.trim(),t.phone=e.phone),e.company&&(n.company=e.company),this.notifyServer({opr:"updateguessinfo",detail:t,cinfo:JSON.stringify(n)})},g.notifier.updateInfo=function(e){var t,n,i=e.name;e.email&&(t=e.email.toLowerCase()),e.phone&&$ZSIQUtil.isValidPhoneNo(e.phone)&&(n=e.phone),g.notifier.isUpdated("name",i)&&(i=void 0),g.notifier.isUpdated("email",t)&&(t=void 0),g.notifier.isUpdated("phone",n)&&(n=void 0),(e.info||i||t||n)&&(g.notifier.enrollInfo("name",i),g.notifier.enrollInfo("email",t),g.notifier.enrollInfo("phone",n),this.notifyServer({opr:"updateinfo",name:i,email:t,phone:n,cinfo:e.info}))},g.notifier.identifyByCampaign=function(){var e=$ZSIQChat.getWidgetData();if($ZSIQUtil.formWidgetObject(e.widgetobj).ismailchimpenabled){var t=$ZSIQUtil.getURLParameterByName("mc_cid"),n=$ZSIQUtil.getURLParameterByName("mc_eid");if(null!=t&&null!=n)O("mc_cid",t),O("mc_eid",n);else Q("mailchimp")||(t=Q("mc_cid"),n=Q("mc_eid"));t&&n&&(this.notifyServer({opr:"identifybycampaign",campaigndata:{mc_cid:t,mc_eid:n}}),$UTSHandler.setTrackedfrommailchimp(!0))}else if($ZSIQUtil.isZohoCampaignEnabled()){var i=$ZSIQUtil.getURLParameterByName("zc_cid");if(null!=i)O("zc_cid",i);else Q("zohocampaign")||(i=Q("zc_cid"));i&&(this.notifyServer({opr:"identifybycampaign",campaigndata:{zc_cid:i}}),$UTSHandler.setTrackedfrommailchimp(!0))}var o=$zv.e_name,r=$zv.e_email;r&&o&&this.notifyServer({opr:"identifybycampaign",campaigndata:{e_name:o,e_email:r}})},g.notifier.updateStatus=function(e){if(e)try{this.notifyServer({opr:"status",status:""+e})}catch(e){}},g.notifier.acknowledge=function(){var e=$ZSIQUTS.get("_zldt");if(e){var t={opr:"ack",uvid:e};g.notifier.notifyServer(t,!0)}},g.notifier.notifyQueued=function(){g.notifier.qdata.length&&g.net.writeenabled&&(g.notifier.sendData(g.notifier.qdata,!0,!0),g.notifier.qdata=[])};var R={handleConnect:function(e){e.chid?(e.uvid=W,e,$UTSHandler.handleTrackChat(e)):$UTSHandler.handleUTSConnect(e)}},P={cur_st:"visible",is_init:!1};P.latime=(new Date).getTime(),P.init=function(){if(!P.is_init){P.is_init=!0;var t,n=["moz","ms","o","webkit"],e=!0,i=function(){for(var e=0;e<n.length;e++)if(a(n[e])in document)return n[e];return null}(),o=a(i),r=(i||"")+"visibilitychange";document.addEventListener(r,l,!1),document.addEventListener("focus",function(){l(!0)},!1),document.addEventListener("blur",function(){l(!1)},!1),h.addEventListener("focus",function(){l(!0)},!1),h.addEventListener("blur",function(){l(!1)},!1),document.addEventListener("mousemove",u,!1),document.addEventListener("mousedown",u,!1),document.addEventListener("keypress",u,!1),document.addEventListener("DOMMouseScroll",u,!1),document.addEventListener("mousewheel",u,!1),document.addEventListener("touchmove",u,!1),document.addEventListener("MSPointerMove",u,!1),d()}function a(e){return e?e+"Hidden":"hidden"}function s(){e||(e=!0,P.cur_st="visible")}function c(){e&&(e=!1,P.cur_st="hidden")}function l(e){return"boolean"==typeof e?e?s():c():document[o]?c():s()}function d(){t=h.setTimeout(m,1e4)}function u(e){h.clearTimeout(t),P.latime=(new Date).getTime(),s(),d()}function m(){36e5<(new Date).getTime()-P.latime&&c(),d()}};var K={updateIdle:function(){var e=K;if(e.isactive){g.notifier.updateStatus(e.idle),e.isactive=!1;try{$zohosq._invoke("visitor.idle",!0)}catch(e){}}},init:function(){if(P.init(),void 0===this.isactive){var e=y.idletime;e&&!isNaN(e)&&(e=60*e*1e3),this.idletime=e||9e5,this.timer=this.timer||-1,this.online=1,this.idle=4,this.isactive=!0;for(var t=["keydown","keypress","mouseout","mouseenter","click"],n=0;n<t.length;n++)H(document,t[n],K.active);this.active()}},active:function(){var e=K;if(e.updateTimer(),!e.isactive){e.isactive=!0,g.net.reconnectwhenactive?(g.net.reconnectwhenactive=!1,L=!1):g.seqmsg.isconnectionmade||g.net.reconnect(),g.notifier.updateStatus(e.online);try{$zohosq._invoke("visitor.active",!0)}catch(e){}}},updateTimer:function(){var e=K;clearTimeout(e.timer),e.timer=setTimeout(function(){K.updateIdle()},K.idletime)}},H=function(e,t,n){e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener(t,n,!0)},V={initialized:!1,workerid:0,utsworkerurl:null,mastertabworkerid:0,utsworker:null,latimeupdater:null,lapolltimer:null,connecttimer:null,_enablelog:!1,logFine:function(e){V._enablelog&&console.log("%c "+e,"color: blue")},logTrace:function(e){V._enablelog&&console.log("%c "+e,"color: red")},logInfo:function(e){V._enablelog&&console.log("%c "+e,"color: green")},logObj:function(e){V._enablelog&&console.log(e)},send:function(e){V.sendMessage("tomaster",{id:V.workerid,data:e})},sendResponseToOthers:function(e){V.sendMessage("tononmaster",{id:V.workerid,data:JSON.stringify(e)})},sendMessage:function(e,t){e&&t&&(V.utsworker?(V.logTrace("sendMessage "+JSON.stringify({operation:e,payload:JSON.stringify(t)})),V.utsworker.port.postMessage({operation:e,payload:JSON.stringify(t)})):V.logTrace("utsworker itself not initialised"+V.utsworker))},disableConnection:function(){g.net.disableConnection()},constructPayload:function(e,t){var n={};if(n.id=workerid,n.isNotifyTabs=!1,isNotifyOtherTab&&(n.isNotifyTabs=!0),!e||Object.keys(e).length<1)return n;for(var i in e)n[i]=e[i];return n}},G={id:null,wsScheme:f(h,!0),_WEBSOCK:{},pingTimer:{},recontimer:null,readystate:{CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},initialized:!1,init:function(){if(V.logInfo("inside ws init"),g.seqmsg.isconnectionmade=!1,l=r,"off"!==y.tracking){g.net.scheduleFallback();try{var e=G.wsScheme+v()+"/watchws?";e+=g.util.composeUrl();var t=$ZSIQUTS.getFromSession("connection_count")||0;t=parseInt(t),t++,$ZSIQUTS.storeInSession("connection_count",JSON.stringify(t)),e+="&connection_count="+t;try{"WebSocket"in h&&void 0!==h.WebSocket?G._WEBSOCK=new WebSocket(e):"MozWebSocket"in h&&(G._WEBSOCK=new MozWebSocket(e))}catch(e){return V.logFine("Exception on new websocket "+e),clearTimeout(g.net.fallbacktimer),void(g.net.fallbacktimer=setTimeout(g.net.fallbackToCR,0))}V.logFine("BEFORE WS.id - "+G.id),G._WEBSOCK.id=(new Date).getTime(),G.id=G._WEBSOCK.id,V.logFine("WS.id - "+G.id),G._WEBSOCK.onopen=function(e){G.onOpen(e)},G._WEBSOCK.onclose=function(e){V.logFine(" WS._WEBSOCK.onclose - "+this.id),V.logObj(e),G.id===this.id&&(G.onClose(e),g.seqmsg.isconnectionmade=!1)},G._WEBSOCK.onerror=function(e){G.onError(e)},G._WEBSOCK.onmessage=function(e){try{G.onMessage(e)}catch(e){g.notifier.doLog("Exception in WebSocket: message - "+e.message+" stack - "+e.stack+" name:"+e.name)}}}catch(e){}}},onMessage:function(e){V.logFine(" WS.onMessage - "+JSON.stringify(e)+" WS.initialized -> "+G.initialized+" WS.id -> "+G.id),g.net.connAlive(),x=0,g.net.requestSuccess(),G.initialized||g.net.scheduleFallback();var t=e.data;if("//1//"!==t){if(""!==t){if(","===t)return V.logFine("data = ,"),void G.init();g.net.handleResponse(t),clearTimeout(G.pingTimer),G.pingTimer=setTimeout(G.pingcb,1e4)}}else G.setInitialized()},pingcb:function(){if(15e3<new Date-g.net.lpt)try{G._WEBSOCK.readyState===G.readystate.OPEN&&G._WEBSOCK.send(JSON.stringify({data:"-",seqno:g.seqmsg.getSequenceNo()}))}catch(e){g.notifier.doLog("Exception in WebSocket: ping - "+e.message+" stack - "+e.stack+" name:"+e.name)}G.pingTimer=setTimeout(G.pingcb,1e4)},onOpen:function(e){V.logFine("inside ws.onopen - WS.recontimer - must be cleared"),clearTimeout(G.recontimer),K.init()},onError:function(e){V.logFine("inside ws.onError - evt -> "+JSON.stringify(e)),V.logObj(e)},onClose:function(e){if(V.logFine("inside ws.close - evt -> "+JSON.stringify(e)),g.util.checkMode(r)){x++,g.net.goOffline(),clearTimeout(G.recontimer);var t=(new Date).getTime()%20;G.recontimer=setTimeout(function(){G.bind()},1e3*t)}},bind:function(){!0!==L&&g.util.checkMode(r)&&(G._WEBSOCK.readyState!==G.readystate.CONNECTING&&G._WEBSOCK.readyState!==G.readystate.OPEN||(V.logFine("websocet closed - WS._WEBSOCK.readyState - "+G._WEBSOCK.readyState),G._WEBSOCK.close(),g.seqmsg.isconnectionmade=!1),clearTimeout(G.recontimer),V.logFine("inside ws.bind"),G.init(),g.net.connAlive())},disableConnection:function(){try{V.logFine("websocket closed - by disableconnection"),G._WEBSOCK.close(),g.seqmsg.isconnectionmade=!1}catch(e){}},ping:function(){g.util.checkMode(r)&&(G.initialized=!1,G._WEBSOCK.readyState===G.readystate.OPEN&&G._WEBSOCK.send("--1--"))},setInitialized:function(){g.util.checkMode(r)&&(G.initialized=!0,g.net.unscheduleFallback())}},X={lastevttime:0,reqobjs:[],fullTripTimer:null,respTimer:null,ajax:function(e){var t,n=e.type||"GET",i=e.async||!0,o=e.onSuccess||function(){},r=e.onFailure||function(){},a=e.url,s=e.options||{};if("withCredentials"in(t=new XMLHttpRequest)){(t=new XMLHttpRequest).open(n,a,i),t.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8"),s.ajaxreq=t;try{t.onreadystatechange=function(){4===t.readyState&&(200===t.status?o(s):r(s))}}catch(e){throw clearTimeout(X.respTimer),X.respTimer=setTimeout(function(){X.bind()},1e4),x++,g.net.goOffline(),e}}else if("undefined"!=typeof XDomainRequest){(t=new XDomainRequest).open("GET",a),s.ajaxreq=t;try{t.onprogress=function(){},t.ontimeout=function(){},t.onload=function(){o(s)},t.onerror=function(){r(s)}}catch(e){throw clearTimeout(X.respTimer),X.respTimer=setTimeout(function(){X.bind()},1e4),x++,g.net.goOffline(),e}}return setTimeout(function(){t.send(e.qp)},0),t},sendReq:function(e,t){var n=(new Date).getTime(),i={url:e,qp:t,type:"POST",onSuccess:function(e){var t=e.evtstarttime,n=e.ajaxreq.responseText;if(!(4e4<X.lastevttime-t&&""===n)&&(g.net.handleResponse(n),g.seqmsg.isconnectionmade&&g.net.connAlive(),g.net.requestSuccess(),x=0,""!==n)){try{var i=JSON.parse(n);if(null!=i.sseqno)return;if(D(i))for(var o=0;o<i.length;o++){var r,a=i[o];if("4"==a.o&&(r=a.d)&&null!=r.sseqno)return}else if("4"==i.o&&(r=i.d)&&null!=r.sseqno)return}catch(e){return}X.bind()}},onFailure:function(e){var t=e.ajaxreq.status;X.reqobjs[0]&&X.reqobjs[0].abort(),clearTimeout(X.respTimer),X.respTimer=setTimeout(function(){X.bind()},1e4),500!==t&&304!==t&&404!==t&&400!==t&&(x++,g.net.goOffline())},options:{evtstarttime:X.lastevttime=n}},o=X.ajax(i);X.reqobjs[0]=X.reqobjs[1],X.reqobjs[1]=o},init:function(){if(g.seqmsg.isconnectionmade=!1,l=o,"off"!==y.tracking){var e=j+v()+"/watch",t=$ZSIQUTS.getFromSession("connection_count")||0;t=parseInt(t),t++,$ZSIQUTS.storeInSession("connection_count",JSON.stringify(t));try{X.sendReq(e,g.util.composeUrl()+"&nocache="+(new Date).getTime()+"&connection_count="+t)}catch(e){return}K.init()}},bind:function(e,t){if(!0!==L&&(null!==X.respTimer&&clearTimeout(X.respTimer),U)){var n=j+v()+"/bind",i="sid="+encodeURIComponent(U)+"&nocache="+(new Date).getTime();e&&(i+="&",t&&(i+="q"),i+="data="+encodeURIComponent(e),i+="&",i+="seqno="+g.seqmsg.getSequenceNo()),g.seqmsg.isconnectionmade&&g.net.connAlive(),X.sendReq(n,i),clearTimeout(X.fullTripTimer),X.fullTripTimer=setTimeout(function(){X.bind()},2e4)}},disableConnection:function(){clearTimeout(X.fullTripTimer),clearTimeout(X.respTimer),g.seqmsg.isconnectionmade=!1}};g.init=function(e,t){V.logFine("uts -init"),e&&null,e&&g.util.bindEvents();var n=!(L=!1);$ZSIQUTS.get("nextrecon")&&(n=$ZSIQUTS.get("nextrecon")-(new Date).getTime()<0),n&&(h.$UTSConnector?(setTimeout(function(){$UTSConnector.util.net.disabled_by_server&&$zohosq.tracking.on()},0),K.init()):!p&&"WebSocket"in h&&void 0!==h.WebSocket||"MozWebSocket"in h?(V.logFine("websocket - init"),G.init()):("withCredentials"in new XMLHttpRequest||h.XDomainRequest)&&(V.logFine("CORS - init"),X.init()))};var Y,ee,te,ne,ie,oe;return{$TabStatus:P,SW:V,store:function(e,t,n){O(e,t,n),w(e,t,n)},storeInLocalStorage:w,getFromLocalStorage:E,removeFromSession:function(e){if(!k())return!1;var t=JSON.parse(sessionStorage.utsdb||"{}");return delete t[Z(e)],delete t[N(e)],sessionStorage.utsdb=JSON.stringify(t),!0},storeInSession:function(e,t){if(!k())return!1;var n=e;e=Z(n);var i=JSON.parse(sessionStorage.utsdb||"{}");return i[e]=t,delete i[N(n)],sessionStorage.utsdb=JSON.stringify(i),!0},get:function(e){return Q(e)||E(e)},getFromSession:function(e){if(k()){var t=e;e=Z(e);var n=JSON.parse(sessionStorage.utsdb||"{}");return val=n[e],val?(delete n[e=N(t)],sessionStorage.utsdb=JSON.stringify(n)):(e=N(t),val=n[e]),val}},updateAction:function(e){var t={opr:"action",type:e.type};e.triggered_id&&(t.triggered_id=e.triggered_id),e.action_type&&(t.action_type=e.action_type),g.notifier.notifyServer(t)},notifyCustomEvent:function(e){var t={opr:"customevent",data:e};g.notifier.notifyServer(t)},handleApiChange:function(e,t){switch(e){case 1:if("on"===t){if(g.init(),h.$UTSConnector){var n=function(e,t){$UTSConnector.util.net.disabled_by_server?($UTSConnector.util.net.disabled_by_server=!1,$UTSConnector.util.net.monitorConnection(!0)):t<20&&setTimeout(e,2e3,e,++t)};$UTSConnector.util.net.disabled_by_server?n(n,1):setTimeout(n,1e3,n,1)}}else"off"===t&&g.net.disableConnection();break;case 2:isNaN(t)||(K.idletime=60*t*1e3,K.updateTimer());break;case 3:t&&t.handleinfo&&(t=t.handleinfo),g.notifier.updateInfo(t);break;case 4:g.notifier.updateCustomAction(t);break;case 5:g.notifier.updateGuessInfo(t);break;case 6:!function(){try{sessionStorage.utsdb=JSON.stringify("{}")}catch(e){}try{localStorage.utsdb=JSON.stringify("{}")}catch(e){}try{for(var e=["_zldp","_zldt","nextrecon","sid","siq_ref","siq_isdirect","siq_name","siq_email","siq_phone"],t=0;t<e.length;t++){var n=e[t],i=(n=Z(n))+"= ;expires= "+new Date(-1).toGMTString();i+=";path=/";try{var o=$UTSHandler.getDomain();o&&(document.cookie=i),i+=o?";domain="+o:""}catch(e){}document.cookie=i}}catch(e){}U="",W=B=null}();break;case 7:g.notifier.doLog(t)}},init:function(e){if(!T||e){var t=$ZSIQChat.getWidgetData(),n=$ZSIQUtil.formWidgetObject(t.widgetobj),i=t.embedobj;T=n.embedname,b=n.screenname;var o=$ZSIQUtil.formEmbedObject(i);o&&o.einfo&&o.einfo.embedstatus&&o.einfo.embedstatus.longlastingcookiettl&&"1"==o.einfo.embedstatus.longlastingcookiettl&&(m=31536e6,h.$UTSConnector&&($UTSConnector.cookie_max_age=31536e6,$UTSConnector.util.db.reupdateCookieTTL())),$=i.lang||i.language,d=n.utsserver,u=n.zldvp;var r=$ZSIQUtil.getGDPRPendingStatus(t,i,b);if((n.forcehttps||$UTSHandler.isForceSecure())&&(h.$UTSConnector?$UTSConnector.enableForceSecure():(j="https://",G.wsScheme="wss://")),y=$UTSHandler.getAPIValuesForUTS(),$ZSIQ_UTSinitialized=!0,function(){U=$ZSIQUTS.getFromSession("sid");try{h.opener&&h.parent.$ZSIQUTS.getFromSession("sid")===U&&(U="")}catch(e){}try{if(h.top!=h.self&&h.top.$ZSIQUTS&&h.top.$ZSIQUTS.getUTSSID()==$ZSIQUTS.getUTSSID())return U="",_(!1),g.notifier.doLog("loaded inside iframe tab. So, disabling data storing")}catch(e){}_(!0)}(),!h.$UTSConnector)try{if(!$ZSIQUTS.getFromSession("siq_isdirect")&&!$ZSIQUTS.getFromSession("siq_ref")){var a=$ZSIQUtil.getNavigationObj(h).referer;a?$ZSIQUTS.storeInSession("siq_ref",a):$ZSIQUTS.storeInSession("siq_isdirect",!0)}}catch(e){}if(!(n.istracking||y.tracking&&"on"==y.tracking)||"off"==y.tracking||$ZSIQUtil.checkGDPRBannerStatus(2,b,i)||r){if(h.$UTSConnector){$UTSConnector.util.net.terminate();var s=$UTSConnector.util.db.getFromCookie({key:"_zldt"})||$UTSConnector.util.db.getFromStorage({type:"localStorage",key:"_zldt"});s&&$UTSHandler.setUVID(s);var c=$UTSConnector.util.db.getFromCookie({key:"_uuid"})||$UTSConnector.util.db.getFromStorage({type:"localStorage",key:"_uuid"});c&&$UTSHandler.setUUID(c)}}else{!e&&h.$UTSConnector&&$zohosq.tracking.on(),W=W||$ZSIQUTS.get("_zldt"),B=(B=B||$ZSIQUTS.get("_zldp"))||u,$zv.customaction&&$ZSIQUTS.handleApiChange(4,$zv.customaction),$zv.idletime&&$ZSIQUTS.handleApiChange(2,$zv.idletime),($zv.name||$zv.email||$zv.phone||$zv.info)&&$ZSIQUTS.handleApiChange(3,$zv),V.logFine("very first time uts init");var l=$UTSHandler.getEqualDomains();l?(V.logFine("falling to load after to "+l),setTimeout(g.init,5e3,!0)):g.init(!0),h.$UTSConnector||g.net.scheduleMonitor()}}else V.logFine("uts init already called - must be called twice")},getUTSSID:function(){return h.$UTSConnector?$UTSConnector.getUTSSID():U},clearUtsApivalues:function(){y={}},getUTSName:function(){var e={};return e.name=a,e.token=s,e},handleCustomAction:function(e){null!=e.action?("mailchimp"==e.action?O("mailchimp",JSON.stringify({email:e.email,name:e.name})):"zohocampaign"==e.action?O("zohocampaign",JSON.stringify({email:e.email,name:e.name})):"edata"==e.action&&(delete $zv.e_name,delete $zv.e_email),e.name&&$zohosq.setValue("name",e.name),e.email&&$zohosq.setValue("email",e.email)):$ZSIQUTSAction.handle(e.triggers)},identifyByCampaign:function(){g.notifier.identifyByCampaign()},clearLocalValues:function(){$=""},isTrackingLive:function(){return!!h.$UTSConnector||g.seqmsg.isconnectionmade},updateTrackingLive:function(){g.seqmsg.isconnectionmade=!0}}}(window);var $ZSIQUTSAction=$ZSIQUTSAction||function(p){var a,e={1:"left",2:"right",3:"bottom",4:"top"},o=0,s=0,m="",l={},u=function(){if(0!=$UTSHandler.getFloatStatus()||10===o){var e=!0;switch(m.time=(new Date).getTime(),o){case 2:$UTSHandler.handleChatTriggers(o,m);break;case 3:$UTSHandler.openChatWindow();break;case 4:case 5:break;case 6:r();break;case 7:$UTSHandler.showButton();break;case 8:c();break;case 9:$UTSHandler.handleChatTriggers(o,m);break;case 16:$UTSHandler.handleBotTrigger(m);break;case 10:!1===i()&&(e=!1)}try{if(e&&!n(o)){var t=$ZSIQUTSAction.rechattrigger?"14":"7";$ZSIQUTS.updateAction({type:t,action_type:o,triggered_id:a}),delete $ZSIQUTSAction.rechattrigger}}catch(e){}}},i=function(){try{var e={triggername:m.triggername,visitorinfo:l};return $zohosq._invoke("visitor.trigger",e)}catch(e){return!1}},n=function(e){var t=$ZSIQUtil.getAvuid();return!(-1==[2,16].indexOf(e)||!$ZSIQLSDB.getFromSession(t+"_formcontextinitiated"))},f=function(e){try{var t=String(e).toLowerCase();if(-1!=t.search(/hour/i))return 36e5*parseInt(t);if(-1!=t.search(/minute/i))return 6e4*parseInt(t);if(-1!=t.search(/second/i))return 1e3*parseInt(t)}catch(e){try{$ZSIQUTS.handleApiChange(7,"Exception in trigger parseTime - "+e.message+" stack - "+e.stack+" name:"+e.name)}catch(e){}}return 0},r=function(){var n=$UTSHandler.getFloatDiv(5);if(null!=n){var r,a=0,o={1:"right",2:"left",3:"top",4:"bottom"},s=e[m.animatetype];"left"===s||"right"===s?(r=p.innerWidth||document.body.clientWidth,r-=n.offsetWidth+10):(r=p.innerHeight||document.body.clientHeight,r-=n.offsetHeight+10);var l=f(m.duration)||50,u=n.currentStyle?n.currentStyle[s]:document.defaultView.getComputedStyle(n,null)[s],c=o[m.animatetype];c=n.currentStyle?n.currentStyle[c]:document.defaultView.getComputedStyle(n,null)[c],n.style[o[m.animatetype]]="auto",n.style[s]="0px",function e(){var t=parseInt(n.style[s]),i=$UTSHandler.getFloatState();if(t<a||r<t||"2"===i)return n.style[s]=u,void(n.style[o[m.animatetype]]=c);n.style[s]=t+10+"px",setTimeout(e,l)}()}},c=function(){var e=$UTSHandler.getFloatDiv(4);if(null!=e){var h=e.querySelector(".zsiq_float"),g=h.currentStyle?h.currentStyle.backgroundColor:document.defaultView.getComputedStyle(h,null).backgroundColor;if(-1!==g.indexOf("#")){var t=g;t=t.replace("#","");var i=parseInt(t,16);g=[i>>16&255,i>>8&255,255&i]}else g=g.replace("rgb(","").replace(")","").split(",");for(var n=0;n<g.length;n++)g[n]=Number(g[n]);var b=!1;!function(){var e=r();!function e(t,i,n){var r=h,a=$UTSHandler.getFloatState();if(b&&t===g||"2"===a)r.style.backgroundColor="rgb("+g+")";else{var o=n/100,s=(i[0]-t[0])/o,l=(i[1]-t[1])/o,u=(i[2]-t[2])/o,c=t[0],m=t[1],f=t[2],d=this;this.step=function(){0<--o?(c=Math.floor(c+s),m=Math.floor(m+l),f=Math.floor(f+u),r.style.backgroundColor="rgb("+c+","+m+","+f+")",p.setTimeout(function(){d.step()},100)):(r.style.backgroundColor="rgb("+i+")",timer=setTimeout(function(){e(i,t,n)},500))},step()}}(g,e,1e3);var t=f(m.duration)||6e4;setTimeout(function(){b=!0},t)}()}function r(){var e,t=g,i=(e=.2126*g[0]+.7152*g[1]+.0722*g[2],parseInt(e)<128);function n(e){return e=parseInt(e),i?Math.round(.6*(255-e)+e):Math.round(.2*(0-e)+e)}var r=n(t[0]),a=n(t[1]),o=n(t[2]);return 255<r||255<a||255<o?t:[r,a,o]}},d={isloadedfirst:!0,zsiqformnames:["name","yourname","subscribername","contactname","customername"],zsiqformemails:["email","emailid","youremail","contactemail","subscriberemail","mail","customeremail","emailaddress"],zsiqformpnos:["phone","pno","phone no","phoneno","phno","tel","mobilenumber","contactphone"],zsiqattriblist:["id","name","type","siqatrib"],zsiqformcompany:["company"],zsiqfirstname:["first_name","firstname","first name"],zsiqlastname:["last_name","lastname","last name"]};return d.submit=d.submit||{},d.isnameset=!1,d.isemailset=!1,d.isphoneset=!1,d.iscompanyset=!1,d.isElementAvailable=function(e){return!(!e||0==e.length)},d.isEquals=function(e,t){return e==t},d.replaceSpecialChars=function(e){return e=e.replace(/[_.-]/g,"")},d.formatAttribValue=function(e){return e=e.toLowerCase().trim(),e=d.replaceSpecialChars(e)},d.checkInDOMAttrib=function(e,t,i){for(var n,r=0;r<e.length;r++){var a=i.getAttribute(e[r]);if(a){a=d.formatAttribValue(a);for(var o=0;o<t.length;o++)if(d.isEquals(a,t[o])){n=i.value;break}if(n)break}}return n||""},d.getName=function(e){if(!d.isnameset)return d.checkInDOMAttrib(d.zsiqattriblist,d.zsiqformnames,e)},d.getEmail=function(e,t){if(!d.isemailset)return d.checkInDOMAttrib(d.zsiqattriblist,d.zsiqformemails,e)},d.getPhoneNo=function(e,t){if(!d.isphoneset)return d.checkInDOMAttrib(d.zsiqattriblist,d.zsiqformpnos,e)},d.getFirstName=function(e,t){return d.checkInDOMAttrib(d.zsiqattriblist,d.zsiqfirstname,e)},d.getLastName=function(e,t){return d.checkInDOMAttrib(d.zsiqattriblist,d.zsiqlastname,e)},d.getCompany=function(e,t){if(!d.iscompanyset)return d.checkInDOMAttrib(d.zsiqattriblist,d.zsiqformcompany,e)},d.getDetails=function(e){var t={};if(!d.isElementAvailable(e))return t;var i=e.getElementsByTagName("input");if(!d.isElementAvailable(i))return t;for(var n="",r="",a="",o="",s="",l="",u=0;u<i.length;u++){var c=i[u];c.name;c.value&&(""==n&&(n=d.getName(c)),""==r&&(r=d.getEmail(c)),""==a&&(a=d.getPhoneNo(c)),""==o&&(o=d.getFirstName(c)),""==s&&(s=d.getLastName(c)),""==l&&(l=d.getCompany(c)))}if(n)t.name=n,d.isnameset=!0;else if(o){var m=o;s&&(m=m+" "+s),t.name=m,d.isnameset=!0}return l&&(t.company=l,d.iscompanyset=!0),r&&/^([\w]([\w\-\.\+\'\/]*)@([\w\-\.]*)(\.[a-zA-Z]{2,22}(\.[a-zA-Z]{2}){0,2}))$/.test(r)&&(t.email=r,d.isemailset=!0),a&&/^[+0-9A-Za-z():.\-\[\] ]{1,30}$/.test(a)&&(t.phone=a,d.isphoneset=!0),t},d.getObjKeyCount=function(e){var t=0;if(null===e||"object"!=typeof e)return t;for(var i in e)e.hasOwnProperty(i)&&t++;return t},d.autoPickAndNotifyUTS=function(e){var t=d.getDetails(e);0!==d.getObjKeyCount(t)&&$zohosq.setValue("details",t,5)},d.overridedOnsubmit=function(e){try{e=e||p.event;var t=this;t||(t=e?e.target||e.srcElement:"");try{d.autoPickAndNotifyUTS(t)}catch(e){}var i=t.getAttribute("siq_id");if(i){var n,r=this.onsubmit;return this.onsubmit=d.submit[i],this.onsubmit&&(n=this.onsubmit(e)),!1===n&&(e.preventDefault?e.preventDefault():e.returnValue=!1),this.onsubmit=r,n}}catch(e){$ZNotifyTracking(5,{details:{isError:!0}})}},d.attachFormSubmit=function(e){if(d.isElementAvailable(e))for(var t=0;t<e.length;t++){var i=e[t];if(d.isElementAvailable(i)){var n,r=0;do{if(n="autopick_"+Math.floor(1e4*Math.random()),!d.submit[n])break;r++}while(r<10);i.setAttribute("siq_id",n),d.submit[n]=i.onsubmit,i.onsubmit=d.overridedOnsubmit}}},d.includeInForms=function(e){e=e||document.forms,d.isElementAvailable(e)&&d.attachFormSubmit(e)},d.includeInFrames=function(e){e=e||document.getElementsByTagName("iframe");if(d.isElementAvailable(e))for(var t=0;t<e.length;t++)try{var i=(e[t].contentDocument||e[t].contentWindow.document).getElementsByTagName("form");d.includeInForms(i)}catch(e){}},d.isAutoPickDisabled=function(){return!$ZSIQAutopick.isenabled||!d.isloadedfirst||$ZSIQUTS.get("autopickdisabled")||0!=d.getObjKeyCount(d.submit)},d.isGuestToken=function(e,t){if(!e||e==t)return!0;var i=e.split(" ");return!isNaN(e)||"Guest"===e||"Visitor"===i[0]&&i[1]&&!isNaN(i[1])},{handleButtonGlow:c,handleAnimate:r,handleInfo:function(e){e&&p.$zohosq&&(d.isGuestToken(e.name,e.token)||$zohosq.setValue("name",e.name),e.email&&$zohosq.setValue("email",e.email),e.phone&&$zohosq.setValue("phone",e.phone))},handle:function(e){if(e)if(e.botTriggers&&"botTriggers"==e.module){var t=e.botTriggers;for(var i in t)t.hasOwnProperty(i)&&"widget_interaction"==t[i].event&&($ZSIQUTSAction.widget_interaction=!0)}else if(o=parseInt(e.type),e.value){if(m=JSON.parse(e.value),e.visitorinfo){for(var n in e.visitorinfo)if(e.visitorinfo.hasOwnProperty(n)){var r=e.visitorinfo[n];isNaN(r)||(e.visitorinfo[n]=parseInt(r))}l=e.visitorinfo}if(s="BOT_MESSAGE"==m.mode?m.time?parseInt(m.time)-e.time:0:f(m.time)-e.time,"object"==typeof $ZSIQChatWindow)return $ZSIQChatWindow.handleIframeLoading(),0<s?setTimeout(u,s):u(),a=e.triggerid,s;setTimeout(function(){$ZSIQUTSAction.handle(e)},1e3)}},getUTSActionData:function(){},includeBeforeSubmit:function(e){if(d.isnameset=!d.isGuestToken(e.name,e.token),d.isemailset=e.isemailset||!1,d.isphoneset=e.isphoneset||!1,d.iscompanyset=e.iscompanyset||!1,!(d.isnameset&&d.isemailset&&d.isphoneset&&d.iscompanyset||d.isAutoPickDisabled()))try{d.includeInForms(),d.isloadedfirst=!1}catch(e){}}}}(window);var ResponseFormatter=function(){var q=function(e){return-1==e.indexOf("chat")&&-1!=e.indexOf("call")},T=function(e){if(!e)return[];for(var i=[],a=0;a<e.length;a++){var s=e[a];i.push({DNAME:s.display_name,NAME:s.display_name,ID:s.id,ENGAGED:s.engaged,STATUS:s.status})}return i},a=function(e,i){var a,s=e.cdn||{},n=e.static_urls||{},t=e.dynamic_configurations||{},o=e.portal_config||{},r=e.i18nkeys||{},l=r.chat_widget,c=r.chat_window,_=e.integration||{},m=e.visitor_info||{},d=e.wms_related_info||{},g=e.zmap||{},p=e.company_info||{},f=e.departments||[],u=e.call_departments||[],b=i.embedobj,y=i.widgetobj,h=y.privacyconfig;return o.trackingprivacyconfig=h.notify_cookies.code,o.trackingprivacystatement=h.notify_cookies.banner_content,o.cookiepolicyurl=h.notify_cookies.link_url,o.chatprivacyconfig=h.notify_terms.code,o.chatcookiepolicyurl=h.notify_terms.url,b.einfo.embedid=e.app_id,y.csscdnstaticserver=s.css_static_server,i.commondata.jscdnstaticserver=s.js_static_server,i.commondata.mediafilescdnhashes=s.media_file_hashes,i.commondata.isCDNEnabled=s.enabled,y.embedname=b.embedname=e.unique_name,y.visitorname=m.name,y.visitoremail=m.email,y.clogo_src=p.logo_source,b.pinfo.clogo_fkey=p.clogo_fkey,b.pinfo.pinfo=o,b.einfo.embedstatus.cinfo=b.cinfo=p,b.pinfo.companyname=e.company_name,b.einfo.embedstatus.DEPTLIST=z(f),b.einfo.embedstatus.CALL_DEPTLIST=T(u),b.einfo.embedstatus.DEPARTMENTID=1<z(a=f).length?"-1":z(a)[0]&&z(a)[0].ID,b.einfo.embedstatus.CALL_DEPARTMENTID=1<T(u).length?"-1":T(u)[0]&&T(u)[0].ID,b.pinfo.isbetaportal=t.isbetaportal,b.widget_performance_optimised=t.widget_performance_optimised,b.chat_without_questionenabled=t.hide_prechatform_question,b.message_sanitization_enabled=t.message_sanitization_enabled,b.conversation_newflow_enabled=t.conversation_newflow_enabled,b.pinfo.article_revamp_enabled=t.article_revamp_enabled,b.pinfo.multilevel_category_supported=t.multilevel_category_supported,y.gapimapurl=e.google_map,b.linfo=e.license_info,y.lsid=b.einfo.lsid=e.lsid,i.commondata.siqservicename=e.siq_service_name,y.status=b.einfo.embedstatus.STATUS="online"==e.status,y.call_status=b.einfo.embedstatus.call_status=e.call_status,b.einfo.uniquename=e.unique_name,y.wmsjsstaticserver=i.commondata.wmsjsstaticserver=d.js_static_server,i.commondata.wmspublicdomain=d.public_domain,b.lsprdcode=d.product_code,b.wmsjsstaticdomain=d.js_static_domain,y.zmapstaticurl=g.static_url,y.zmapapicss=g.css_url,y.zmapapiurl=g.api_url,y.zmapapikey=g.api_key,y.hideembed=JSON.parse(e.is_business_hours_enabled),e.avuid&&((i.widgetobj||{}).avuid=e.avuid),e.geo_details&&(i.geodetails=e.geo_details),e.user_details&&(y.userdetails=e.user_details,b.einfo.userdetails=e.user_details),i.commondata.imgstaticserver=n.image_server,y.cssstaticserver=n.css_server,i.commondata.cssjsmapping=n.css_js_mapping,n.widget_css_version&&(y.widcssversion=n.widget_css_version),b.einfo.embedstatus.formremoval=t.formremoval,b.einfo.embedstatus.isvoicenotesenabled=t.isvoicenotesenabled,b.params={country:m.country,remote_ip:m.remote_ip,country_name:m.country,pagetitle:"",type:"float"},c&&(b.jsresource=c),b.lang=D(e.language),b.language=D(e.language),y.resourcefile=n.resource_file,l&&(y.i18nkeys=l),null!=e.language_changed_in_api&&(y.langchangeviaapi=e.language_changed_in_api),b.einfo.embedstatus.ismailchimpenabled=_.mailchimp.enabled,b.ismailchimpenabled=_.mailchimp.enabled,b.isaudiocallallowed=o.audiocall,b.issiqscreenshare=o.siqscreensharing,b.sesonaltheme_expiry=e.sesonaltheme_expiry_time,b.rtcp_info=e.rtcp_related_info,b.resource_dept=e.resource,[{objString:i}]},D=function(e){return"default"==e?$ZSIQUtil.getBrowserLanguage():e},z=function(e){for(var i=e.length,a=[],s=0;s<i;s++){var n=e[s],t=n.bot_users;t=t.length?t:"",a.push({STATUS:n.status,ONLYBOTSAVAILABLE:n.is_only_bot_available,ID:n.id,ENGAGED:n.is_engaged,USERS:n.users,DNAME:n.dname,NAME:n.name,BOTUSER:t})}return a},E=function(e){var i={},a=e.campaign||{},s=e.mailchimp||{};return a.enabled&&(i[6]=a),s.enabled&&(i[10]=s),i},A=function(e){var i,a=e.components||[],s=e.chat||{},n=e.call||{},t=s.agents_engaged||{},o=s.rating||{},r=s.feedback||{},l=n.feedback||{},c=s.custom_css||{},_=s.agents_offline||{},m=s.reaction||{},d=n.rating||{},g=s.agents_busy||{},p=(s.messages||{}).chat_transfer||[],f=p[1]?p[1].text:"",u=e.faq||{},b=u.categorize||{},y=c.url||"",h=$ZSIQUtil.getUrlParamObj(y),v=void 0===u.show_creator_image||u.show_creator_image,w={allow_visitor_to_like_article:u.allow_visitor_to_like_article||{enabled:!0},show_creator_image:v};return h=h&&h.css_id||"",y=(y=y.split("/")[5]||"").split("?")[0]||"",{icmail:JSON.stringify([e.mail_transcript?1:0,{}]),isaudiocall:JSON.stringify([-1==a.indexOf("call")?0:1,{ismandatory:0}]),color:JSON.stringify([1,{code:e.chat.color}]),isscreenshare:JSON.stringify([e.share_screen?1:0,{}]),engagedmsg:JSON.stringify([0,{msg:t.message,resmsg:t.response}]),rating:JSON.stringify([o.enabled?1:0,{msg1:o.msg_1,msg2:o.msg_2,msg3:o.msg_3,msg4:o.msg_4,msg5:o.msg_5}]),issesonaltheme:JSON.stringify([e.seasonaltheme_enabled?1:0,{}]),showsmiley:JSON.stringify([e.show_emojis?1:0,{}]),siq_channels_screen_share_enabled:-1!=a.indexOf("screen_share"),feedback:JSON.stringify([r.enabled?1:0,{msg:r.message}]),call_feedback:JSON.stringify([l.enabled?1:0,{msg:l.message}]),iscustomcss:JSON.stringify([c.enabled?1:0,{fname:c.file_name,fpath:"embedcss/"+h+"_"+y,pfname:""}]),isname:JSON.stringify([1,{ismandatory:1}]),isphoneno:JSON.stringify([1,{ismandatory:1}]),isemail:JSON.stringify([1,{ismandatory:1}]),issiqscreenshare:JSON.stringify([s.siq_share_screen?1:0,{}]),icsound:JSON.stringify([s.mute_sound?1:0,{}]),iclogo:JSON.stringify([s.show_company_logo?1:0,{}]),icfile:JSON.stringify([e.share_file?1:0,{}]),lang:JSON.stringify([1,{code:"default"==e.language?"-1":e.language}]),isconversation:JSON.stringify([e.view_conversation?1:0,{}]),thanksmsg:JSON.stringify([0,{msg:s.thanking_message}]),offlinemsg:JSON.stringify([0,{msg:_.message,resmsg:_.response}]),icphoto:JSON.stringify([s.show_operator_image?1:0,{}]),reaction:JSON.stringify([m.enabled?1:0,{happy:m.happy,neutral:m.neutral,sad:m.sad}]),call_reaction:JSON.stringify([d.enabled?1:0,{happy:d.happy,neutral:d.neutral,sad:d.sad}]),faqaccess:JSON.stringify([-1==a.indexOf("faq")?0:1,{orderbycategory:b.enabled?1:0,label:u.title}]),icprint:JSON.stringify([s.print?1:0,{}]),size:JSON.stringify([1,{val:"medium"==s.size?"2":"3"}]),formtype:JSON.stringify([1,{val:(i=e.form_type,{classic:"1",general:"2",conversation:"3"}[i])}]),busymsg:JSON.stringify([0,{msg:g.message,resmsg:g.response}]),transfermsg:JSON.stringify([0,{msg:f,resmsg:""}]),waitingmsg:JSON.stringify([0,{msg:s.waiting_message}]),call_messages:n.messages,call_waiting_time:n.waiting_time,call_recording:e.call_recording,voice_notes_enabled:e.voice_notes_enabled,credit_card_masking:e.credit_card_masking,resourcebaseconfigs:w,allow_multiple_live_chat:e.allow_multiple_live_chat,agentname:'[0,{"msg":"","name":""}]',question:'[0,{"msg":"","name":""}]',deptmsg:'[0,{"msg":"","resmsg":""}]'}},I=function(e){var i=e.online_content||{},a=e.offline_content||{};return JSON.stringify([1,{offline:a.header,offline_byline:a.sub_header,online:i.header,online_byline:i.sub_header}])},L=function(e){var i=[],s=e.lsid,a=e.widget||{},n=e.widget_type,t=a[n],o={float:["coin","","unicorn","dream","twinkle","doller","topaz","link","sassy","noel","bagel"],button:["cord","blueivy","zen","atom","coffee","paradise","meme","leo","ruby","cookie","fancy","cent","poppy","apollo"],personalized:["phoenix","snow","fame"]}[n]||[],r=t.custom_sticker||{};i.push(r.enabled?0:1);var l=r.online||{},c=$ZSIQUtil.getUrlParamObj(l.url),_=r.offline||{},m=$ZSIQUtil.getUrlParamObj(_.url),d=o.indexOf(t.sticker)+1,g={float:"fsticker",button:"bsticker"}[n];if(!r.enabled)return JSON.stringify([1,{offline:{},default:d,online:{}}]);var p={online:"",offline:"",default:d};function f(e,i,a){return{fname:"",fpath:g+"_"+i+"/"+e.stickerid+"_"+s,pfname:a}}return c&&(p.online=f(c,"online",l.file_name)),m&&(p.offline=f(m,"offline",_.file_name)),i.push(p),JSON.stringify(i)};return{formatAndGetEmbedDetils:function(e,i){return e.version_changed?function(e,i){var a=e.components||[],s=e.static_urls||{},n=e.cdn||{},t=e.zmap||{},o=e.wms_related_info||{},r=e.upload_download_server||{},l=e.media||{},c=e.portal_config||{};c.trackingprivacyconfig=e.notify_cookies.code,c.trackingprivacystatement=e.notify_cookies.banner_content,c.cookiepolicyurl=e.notify_cookies.link_url,c.chatprivacyconfig=e.notify_terms.code,c.chatcookiepolicyurl=e.notify_terms.url;var _=e.visitor_info||{},m=e.timezone_offset||{},d=e.widget||{},g=e.integration||{},p=e.company_info||{},f=e.chat||{},u=d[e.widget_type]||{},b=u.gravatar||{},y=e.dynamic_configurations||{},h=e.departments||[],v=$ZSIQChat.getScriptSource().split("://"),w=v[0],S=e.i18nkeys||{},k=S.chat_widget||{},O=S.chat_window||{},N=v[1].split("/")[0]||"";N=N.substr(N.indexOf(".")+1);var J=s.css_server||"";J=(J=J.split("://")[1]||"").split("/")[0];var j=T(e.call_departments);return[{objString:{widgettype:{float:1,button:2,personalized:3}[e.widget_type],widgetobj:{cssstaticfile:s.css_file,color:JSON.stringify([1,{code:u.color}]),islivechat:-1==a.indexOf("chat")&&-1==a.indexOf("call")||1!=e.enabled?0:1,utsserver:e.uts_server,jsstaticfile:s.js_file,brandname:"Zoho",title:I(e),csscdnstaticserver:n.css_static_server,lsid:e.lsid,analytics:g.analytics,resourcefile:s.resource_file,gravatar:JSON.stringify([b.enabled?1:0,{fname:b.file_name,fpath:b.fpath,no:b.no,pfname:b.pfname}]),zmapstaticurl:t.static_url,mdevice_hide:JSON.stringify([u.hide_in_mobile_device?1:0]),zmapapicss:t.css_url,widcssversion:s.widget_css_version,screenname:c.name,isgdprenabled:e.privacy?1:0,autopick:{isenabled:e.form_fields_auto_pick_enabled},visitorname:_.name,visitoremail:_.email,gapimapurl:e.google_map,privacyconfig:{trackdnt:e.track_dnt_websites,notifygt:e.notify_googletranslator_usage,notify_cookies:e.notify_cookies,isgdprenabled:1==e.privacy,notify_terms:e.notify_terms,maskip:e.mask_visitor_ip},hideembed:JSON.parse(e.is_business_hours_enabled),clogo_src:p.logo_source,zmapapiurl:t.api_url,forcehttps:e.forcehttps,sticker:L(e),wmsjsstaticserver:o.js_static_server,clogo:JSON.stringify([u.show_company_logo?1:0,{}]),langchangeviaapi:e.language_changed_in_api,hideoffline:JSON.stringify([e.hide_when_offline?1:0]),hide_tooltip:u.hide_tooltip,i18nkeys:k,_zldp:e._zldp,applogo:"",isshowcallbubble:0,embedname:e.unique_name,avuid:e.avuid,cssstaticserver:s.css_server,istracking:-1!=a.indexOf("proactive"),zmapapikey:t.api_key,position:JSON.stringify([1,{no:{bottom_right:"1",bottom_middle:"2",bottom_left:"3",left_bottom:"4",left_middle:"5",left_top:"6",top_left:"7",top_middle:"8",top_right:"9",right_top:"10",right_middle:"11",right_bottom:"12"}[u.position]}]),status:"online"==e.status,call_status:e.call_status,font:JSON.stringify([1,{default:{"Default System Font":"0",Lato:"1",Opensans:"2",Oxygen:"3",Roboto:"4",Puvi:"5"}[e.font]}]),userdetails:e.user_details,usercount:JSON.stringify([0,{count:u.user_count}])},usedownloadserver:r.enabled,commondata:{schema:w,siqservicename:e.siq_service_name,jscdnstaticserver:n.js_static_server,jsstaticserver:s.js_server,cssstatic:J,wmsjsstaticserver:o.js_static_server,uploadserver:r.upload_server,wmspublicdomain:o.public_domain,cssjsmapping:s.css_js_mapping,isdev:e.is_development_setup,imgstaticserver:s.image_server,isCDNEnabled:n.enabled,downloadserver:r.download_server,mediafilescdnhashes:n.media_file_hashes,commonstaticurl:n.enabled?n.common_static_url:s.common_static_url},geodetails:e.geo_details,embedobj:{schema:w,pinfo:{soid:c.id,clogo_fkey:p.clogo_fkey,pinfo:c,companyname:e.company_name,integid:g.enabled_integrations,screenname:c.name,isbetaportal:y.isbetaportal,app_newconfig_enabled:y.app_newconfig_enabled,only_call_enabled:y.only_call_enabled,call_monitor_enabled:y.call_monitor_enabled,call_transfer_enabled:y.call_transfer_enabled,multilevel_category_supported:y.multilevel_category_supported,article_revamp_enabled:y.article_revamp_enabled,screenshare_parallelchat:y.screenshare_parallelchat,rtcp_enabled:y.rtcp_enabled},jquery_version_updated:y.jquery_version_updated,widget_performance_optimised:y.widget_performance_optimised,chat_without_questionenabled:y.hide_prechatform_question,message_sanitization_enabled:y.message_sanitization_enabled,conversation_newflow_enabled:y.conversation_newflow_enabled,message_operations_enabled:y.message_operations_enabled,read_recipient_enabled:y.read_recipient_enabled,reply_option_enabled:y.reply_option_enabled,mediaserverurl:l.server,jwt_authentication:e.jwt_authentication,ratingfeedbackrespmsgs:f.labels||{},messageactions:e.message_actions,visitor_question:e.visitor_question,consent_banner_content:e.consent_banner_content,language:D(e.language),RTL_supported_language:e.RTL_supported_language,rtcp_info:e.rtcp_related_info,gtattributionlink:e.google_translate_attribution_url,annonregistertimeout:e.annon_register_timeout,lsprdcode:o.product_code,jsresource:O,read_receipt:e.read_receipt,einfo:{lsid:e.lsid,signaturechat:!0,uniquename:e.unique_name,brandname:e.appname,waitingtime:e.waiting_time,reopen_enabled:e.allow_chat_reopen,embedid:e.app_id,embedstatus:{STATUS:"online"==e.status,call_status:e.call_status,issiqscreenshare:JSON.stringify(f.siq_share_screen),DEPARTMENTID:1<z(h).length?"-1":z(h)[0]&&z(h)[0].ID,CALL_DEPARTMENTID:1<j.length?"-1":j[0]&&j[0].ID,cinfo:p,isaudiocallallowed:c.audiocall,issiqscreenshare:c.siqscreensharing,DEPTLIST:z(h),CALL_DEPTLIST:j,ismailchimpenabled:g.mailchimp.enabled,longlastingcookiettl:c.longlastingcookiettl,formremoval:y.formremoval,isvoicenotesenabled:y.isvoicenotesenabled,call_recording:e.recording,staticfiles_delayloading_enabled:y.staticfiles_delayloading_enabled},props:A(e)},resource_dept:e.resource,resources_config:e.resources,uapache:e.use_apache,cfcname:e.csrf_cookie,productname:e.product_name,theme:{ribbon:"1",crest:"2",crayon:"3",lloyd:"4",airy:"5",crown:"6",connect:"7",pattern:"8",pattern_straight:"9",pattern_curve:"10"}[f.theme],ucomp:e.use_compression,lang:D(e.language),screenname:c.name,producturl:e.product_url,siqhelplink:e.siq_help_link,embedserverurl:e.public_domain,cfparamname:e.csrf_param,sesonaltheme_expiry:e.sesonaltheme_expiry_time,stun_turnurls:e.stun_turn_url,ip:_.ip,wmsjsstaticdomain:o.js_static_domain,ismailchimpenabled:g.mailchimp.enabled,lssubdomain:N,params:{country:_.country,remote_ip:_.remote_ip,country_name:_.country,pagetitle:"",type:"float"},freelogolink:e.free_logo_url,ccode:_.country_code,embedname:e.unique_name,tzsoffset:m.server,cinfo:p,isaudiocallallowed:c.audiocall,issiqscreenshare:c.siqscreensharing,campaignenabled:!0,servername:e.product_url,integprops:{integinfo:E(g)},linfo:e.license_info,tzpoffset:m.portal,homepage_configs:e.homepage_configs},version:e.version,last_modified:e.modified_time,isonlycall:q(e.components||[]),components:e.components||[]},module:"getembeddetails",objType:"object"}]}(e):a(e,i)},formateCallDept:T}}();var $ZSIQChat=$ZSIQChat||function(){var E;SIQ_FLOAT=1,SIQ_BUTTON=2,SIQ_PERSONALIZE=3,_WINDOW_REPOPULATE=!1;var w={},_={};w[SIQ_FLOAT]=["/styles/floatbuttonWIDGTHEME.css"],w[SIQ_BUTTON]=["/styles/buttonthemeWIDGTHEME.css"],w[SIQ_PERSONALIZE]=["/styles/personalizethemeWIDGTHEME.css"],_[SIQ_FLOAT]=["/js/floatbuttonWIDGTHEME.js"],_[SIQ_BUTTON]=["/salesiq/js/newbutton_d66b1c14825392de3132ae8540469076_.js"];var T=!(_[SIQ_PERSONALIZE]=["/salesiq/js/personalizewidget_d340f739e4f44398258b77221a5ded33_.js"]),e=!1,s=!1,o=!0;try{T=_IS_PREVIEW}catch(e){}try{e=_IS_SIGNATURE_CHAT}catch(e){}var D=function(){var e=document.getElementById("zsiqscript");return e.src||e.getAttribute("src")},n=function(e,t){if(null!=t.status)return e.widgetobj.status=e.widgetobj.call_status=e.embedobj.einfo.embedstatus.STATUS=t.status,e;if(5!=_WIDGETTYPE&&6!=_WIDGETTYPE&&7!=_WIDGETTYPE||(e.widgetobj=t.theme||t.integprops?e.embedobj:e.embedobj.einfo.props,t.hasOwnProperty("show_brand_logo")&&(e.widgetobj=e.embedobj.homepage_configs)),t.embedstatus)e.embedobj.einfo.embedstatus=t.embedstatus;else for(var i in t)e.widgetobj[i]=t[i];return e.embedobj.einfo.embedstatus.STATUS=!t.toggleoffline,e},y=function(e,t,i,a){e.onerror=function(){$ZSIQCookie.set("cdn_status",1,1728e5);var e="";"js"==a?(e=document.createElement("script")).src=i:"css"==a&&((e=document.createElement("link")).rel="stylesheet",e.href=i),t[0].appendChild(e)}};return{init:function(){try{$ZSIQUtil.preConnectDomains(),$ZSIQChat.loadPostMessage(),E=WIDGET_DATA}catch(e){$ZSIQUtil.initializeAPIValues(),$ZSIQChat.getEmbedDetails()}},getWidgetData:function(){return E},isLivePreview:function(){try{return null!=parent.document.getElementById("preview")}catch(e){return!1}},getEmbedDetails:function(){$ZSIQChat.fetchEmbedDetails()},fetchEmbedDetails:function(d){if(!$ZSIQUtil.isIPBlocked()){var e=D(),t=(e=e.split("?")[0]).replace("/widget","");t+="/visitor/v2/channels/website",t+="?widgetcode="+$zohosq.widgetcode,t+="&internal_channel_req=true";var r=$ZSIQUtil.getConfigFromStorage(),i="";!r||!r.last_modified||T||this.isLivePreview()||d||(t=t+"&last_modified_time="+r.last_modified);var a=$ZSIQLSDB.get("ZLD"+$zohosq.widgetcode+"avuid");r&&r.widgetobj&&(a=$ZSIQLSDB.get("ZLD"+r.widgetobj.lsid+"avuid")),a||(i+="avuid");var s=$zohosq.values&&$zohosq.values.agent;s&&(t=t+"&attender_email="+encodeURIComponent(s)),r&&r.version&&(t=t+"&version="+r.version);var o=$ZSIQUtil.getAPILanguage();o&&(t=t+"&api_language="+o);var n=$ZSIQUtil.getBrowserLanguage(),c="ZLSLANG"+$zohosq.widgetcode,l=$ZSIQLSDB.get(c);(0==o.length&&r.widgetobj&&1==r.widgetobj.langchangeviaapi||0!=o.length&&r.embedobj&&r.embedobj.lang!=o||l!=n)&&(t=t+"&language_api="+!0),n&&(t=t+"&browser_language="+n,$ZSIQLSDB.set(c,n,864e5));var m=r&&r.geodetails;$ZSIQUtil.isFetchGeoDetails()&&!m&&(i+=",geo_details");var g,b=((g="")||(g=location.hostname.toString().replace(/^w{3}\./,""),/^[a-zA-Z0-9-\.]+$/.test(g)||(g="")),g||""),p=window.document.title;b&&(t=t+"&current_domain="+encodeURIComponent(location.protocol+"//"+b)),t=t+"&pagetitle="+encodeURIComponent(p).substring(0,3e3);var u=$ZSIQCookie.get("cdn_status");u&&(t=t+"&cdn_status="+encodeURIComponent(u));try{t=t+"&is_signaturechat="+_IS_SIGNATURE_CHAT}catch(e){}T&&0<_WIDGETTYPE&&_WIDGETTYPE<4&&(t=t+"&widget_type="+_WIDGETTYPE),T&&(t=t+"&is_preview="+T),i&&(t=t+"&include_fields="+i);$ZSIQUtil.ajax(t,function(e){var t=$ZSIQUtil.parseToJSON(e);try{var i=t.data,a=ResponseFormatter.formatAndGetEmbedDetils(i,r)[0].objString,s=a.widgetobj;if(s){var o=s._zldp,n=s.embedname;o&&$ZSIQUtil.checkAndSetZldp(o,n)}$ZSIQChat.handleEmbedDetails(a,r,d)}catch(e){}},null,!0,"x-siq-internal-channel")}},handleEmbedDetails:function(e,t,i){if(e.not_modified&&!i)t.widgetobj.status=e.STATUS,t.widgetobj.hideembed=e.hideembed,t.commondata.jsstaticserver=e.jsstaticserver,t.commondata.imgstaticserver=e.imgstaticserver,t.widgetobj.cssstaticserver=e.cssstaticserver,t.commondata.jscdnstaticserver=e.jscdnstaticserver,t.widgetobj.csscdnstaticserver=e.csscdnstaticserver,t.commondata.isCDNEnabled=e.isCDNEnabled,t.commondata.isCDNEnabled&&(t.commondata.cssjsmapping=e.cssjsmapping),t.commondata.mediafilescdnhashes=e.mediafilescdnhashes,t.commondata.cwrmjsstaticserver=e.cwrmjsstaticserver,t.commondata.cwumjsstaticserver=e.cwumjsstaticserver,t.commondata.zmapapiurl=e.zmapapiurl,t.commondata.zmapapicss=e.zmapapicss,t.commondata.zmapstaticurl=e.zmapstaticurl,t.commondata.zmapapikey=e.zmapapikey,t.widgetobj.wmsjsstaticserver=e.wmsjsstaticserver,t.widgetobj.widcssversion=e.widcssversion,t.embedobj.linfo=e.linfo,t.embedobj.einfo.embedstatus.STATUS=e.STATUS,t.embedobj.einfo.embedstatus.DEPTLIST=e.DEPTLIST,t.embedobj.einfo.embedstatus.formremoval=e.formremoval,t.embedobj.einfo.embedstatus.DEPARTMENTID=e.DEPARTMENTID,t.embedobj.params=e.params,e.pinfo&&t.embedobj.pinfo.pinfo&&(t.embedobj.pinfo.pinfo.screensharing=e.pinfo.screensharing),t.embedobj.issiqscreenshare=e.issiqscreenshare,e.userdetails&&(t.widgetobj.userdetails=e.userdetails,t.embedobj.einfo.userdetails=e.userdetails),e.geodetails&&(t.geodetails=e.geodetails),e.refreshapilang&&(t.embedobj.jsresource=e.jsresource,t.embedobj.lang=e.lang,t.embedobj.language=e.language,t.widgetobj.resourcefile=e.resourcefile,t.widgetobj.i18nkeys=e.i18nkeys),e.hasOwnProperty("isgdprenabled")&&(t.embedobj.pinfo.pinfo.isgdprenabled=e.isgdprenabled,t.embedobj.pinfo.pinfo.trackingprivacyconfig=e.trackingprivacyconfig,t.embedobj.pinfo.pinfo.chatprivacyconfig=e.chatprivacyconfig,t.embedobj.pinfo.pinfo.cookiepolicyurl=e.cookiepolicyurl,t.embedobj.pinfo.pinfo.chatcookiepolicyurl=e.chatcookiepolicyurl,t.embedobj.pinfo.pinfo.trackingprivacystatement=e.trackingprivacystatement,t.embedobj.pinfo.pinfo.gtpolicyurl=e.gtpolicyurl),t.widgetobj.langchangeviaapi=e.langchangeviaapi,t.embedobj.ismailchimpenabled=e.ismailchimpenabled,t.embedobj.isaudiocallallowed=e.isaudiocallallowed,t.embedobj.cinfo=e.cinfo,t.embedobj.sesonaltheme_expiry=e.sesonaltheme_expiry,t.embedobj.homepage_configs=e.homepage_configs,delete e.not_modified;else{var a=(t=e).widgetobj.avuid;if(a){$ZSIQChat.avuidval=a;var s=$zohosq._domain?63072e6:"";$ZSIQLSDB.setCookie("ZLD"+t.widgetobj.lsid+"avuid",a,s),delete t.widgetobj.avuid}if(i)return}E=$ZSIQChat.updateSeasonalTheme(t),T&&((E=n(E,_MODIFIED_WIDGET_OBJ)).commondata.isCDNEnabled||(E.commondata.jscdnstaticserver=t.commondata.jsstaticserver,E.widgetobj.csscdnstaticserver=t.widgetobj.cssstaticserver)),function(e){e.embedobj&&e.embedobj.pinfo;o=!0}(t),$UTSHandler.init(),$ZSIQUtil.startAfterReady(t.geodetails||{}),function(){var e=E.widgettype,t=JSON.parse(E.widgetobj.sticker)[1].default,i=document.getElementsByTagName("head");i&&0!=i.length||((i=[])[0]=document.createElement("head"),document.insertBefore(document.body,i[0]));var a=E.commondata.isdev,s=E.commondata.schema,o=D().split("://")[1].replace("/widget",""),n=(E.widgetobj.widcssversion,E.commondata.cssstatic,E.commondata.jsstaticserver),d=E.widgetobj.cssstaticserver,r=E.widgetobj.csscdnstaticserver,c=E.commondata.jscdnstaticserver;window.iscdnenabled=E.commondata.isCDNEnabled;var l=$zohosq.nonce;iscdnenabled&&(window.cssjslist=JSON.parse(E.commondata.cssjsmapping)),a&&(r=d=n=c=s+"://"+o,window.iscdnenabled=!1,w=Filedatagetter.getcsslistmapping(),_=Filedatagetter.getjslistmapping()),T&&(w[SIQ_BUTTON]=["/salesiq/styles/buttonpreviewtheme_42c14ea3d4b995a016c10dc11638d5aa_.css"],w[SIQ_PERSONALIZE]=["/salesiq/styles/personalizepreviewtheme_accd3edf69116211d9cee74c12d68670_.css"],w[SIQ_FLOAT]=["/salesiq/styles/floatbuttonpreview_3ef4c1dde9869cd87487c8520853465c_.css"],_[SIQ_FLOAT]=["/salesiq/js/floatbuttonpreview_c977815b443bc90597d0b81443550ac6_.js"]);for(var m=w[e],g=_[e],b=0;b<m.length;b++){var p=iscdnenabled?m[b]:m[b].replace(/WIDGTHEME/g,t),u=d+p;if(iscdnenabled)if(-1!=p.indexOf("WIDGTHEME")){var f=p.split("WIDGTHEME");actualcssfile=f.join(t),void 0!==cssjslist[actualcssfile]&&(u=r+(p="/salesiq"+f[0]+t+"_"+cssjslist[actualcssfile]+"_"+f[1]))}else u=r+p;var h=document.createElement("link");h.rel="stylesheet",h.href=u,y(h,i,(d+m[b]).replace(/WIDGTHEME/g,t),"css"),l&&h.setAttribute("nonce",l),i[0].appendChild(h)}for(b=0;b<g.length;b++){var v=document.createElement("script"),j=iscdnenabled?g[b]:g[b].replace(/WIDGTHEME/g,t),I=n+j;if(iscdnenabled){if(-1!=j.indexOf("WIDGTHEME")){var S=j.split("WIDGTHEME");actualjsfile=S.join(t),void 0!==cssjslist[actualjsfile]&&(j="/salesiq"+S[0]+t+"_"+cssjslist[actualjsfile]+"_"+S[1])}I=c+j}v.src=I,y(v,i,(n+j).replace(/WIDGTHEME/g,t),"js"),a&&(v.async=!1),l&&v.setAttribute("nonce",l),i[0].appendChild(v)}}(),$ZSIQUtil.setAVUIDCookie(t.widgetobj.lsid)},updateSeasonalTheme:function(t){if(this.isPreview())return t;try{var e=t.embedobj,i=t.embedobj.theme;if((s=parseInt(e.sesonaltheme_expiry)>(new Date).getTime()&&1==JSON.parse(e.einfo.props.issesonaltheme)[0])&&"4"==i&&(t.embedobj.einfo.props.color='[1,{"code":"#000000"}]'),s&&1==t.widgettype){var a=$ZSIQUtil.parseToJSON(t.widgetobj.sticker);a[1].default=1,t.widgetobj.sticker=JSON.stringify(a)}return t}catch(e){return t}},isSeasonalTheme:function(){return s},isPreview:function(){return T},isSignatureChat:function(){return e},isAgentSpcificSignatureChat:function(){return e&&$zohosq.values.agent},updatePreviewConfig:function(){E=n(E,_MODIFIED_WIDGET_OBJ)},loadPostMessage:function(){window.addEventListener?window.addEventListener("message",$ZSIQChat.handlePostMessage,!1):window.attachEvent("onmessage",$ZSIQChat.handlePostMessage)},getScriptSource:D,isEmbedFeatureConfEnabled:function(){return o&&-1!=location.protocol.indexOf("https")},handlePostMessage:function(e){try{!e.data.message||"ZOHOCLIQ-EXTN-CHECK"!==e.data.message.type&&"ZOHOCLIQ-SCEEN-SOURCE-ID"!==e.data.message.type||$ZSIQUtil.getIframe().PeerConnection.screenShareExtnSuccsess(e);var t=JSON.parse(e.data);if("zoho.salesiq.apimessage"===t.type){var i=t.visitor;i.phone=i.contactnumber,$zohosq.visitor.handleinfo(i)}else if("zoho.salesiq.gettrackingdetails"===t.type){var a=$UTSHandler.get("_zldt");if(!a)return;var s={type:"zoho.salesiq.trackingdetails"};s.trackingdetails={uvid:a},e.source.postMessage(JSON.stringify(s),"*")}}catch(e){}},notifyOnCDNFailure:y}}();if(!$zoho.salesiq.init_called){var isdomloadhandled=!1;try{"async"!=$zoho.salesiq.mode&&($ZSIQChat.init(),isdomloadhandled=!0,$zoho.salesiq.init_called=!0)}catch(e){isdomloadhandled=!1}isdomloadhandled||($zoho.salesiq.init_called=!0,"complete"===document.readyState?$ZSIQChat.init():window.addEventListener?window.addEventListener("load",$ZSIQChat.init):window.attachEvent("onload",$ZSIQChat.init))}