https://cdn.ayc0zsm69431gfebd.xyz/prod/tampabay/t8y9347t.min.js

Last Checked: May 25, 2019, 11:32 EDT

IP Address: 152.195.19.101
ASN #: AS15133 EDGECAST - MCI Communications Services, Inc. d/b/a Verizon Business, US
Location: Data unavailable.
URL Reputation:
  • Unknown This URL is not identified as malicious in the PhishTank Database.
  • Unknown PhishCheck thinks this URL is likely not a phish.
  • Unknown OpenPhish: URL not in feed.

Other submissions on 152.195.19.101:

  • http://cdn.ayc0zsm69431gfebd.xyz/

  • https://cdn.ayc0zsm69431gfebd.xyz/

  • https://cdn.ayc0zsm69431gfebd.xyz/

  • http://cdn.ayc0zsm69431gfebd.xyz/

  • http://cdn.ayc0zsm69431gfebd.xyz:443/

  • https://cdn.ayc0zsm69431gfebd.xyz/prod/data/last_publish/MNG.json?_=1563200409329

  • http://cdn.ayc0zsm69431gfebd.xyz:443/

  • http://cdn.ayc0zsm69431gfebd.xyz/

  • https://cdn.czx5eyk0exbhwp43ya.biz/prod/mng/t8y9347t.min.js

  • https://cdn.czx5eyk0exbhwp43ya.biz/prod/data/last_publish/MNG.json?_\=1568987485469

Other submissions on ayc0zsm69431gfebd.xyz:

  • http://cdn.ayc0zsm69431gfebd.xyz/

  • http://ayc0zsm69431gfebd.xyz//MakdZ/

  • http://ayc0zsm69431gfebd.xyz/

  • https://cdn.ayc0zsm69431gfebd.xyz/

  • https://cdn.ayc0zsm69431gfebd.xyz/

  • https://cdn.ayc0zsm69431gfebd.xyz/

  • https://cdn.ayc0zsm69431gfebd.xyz/prod/cedarrapids/MG2AuthSystem.js

  • http://cdn.ayc0zsm69431gfebd.xyz/

  • https://cdn.ayc0zsm69431gfebd.xyz/

  • https://cdn.ayc0zsm69431gfebd.xyz/

Previous checks:

                               Domain Name: ayc0zsm69431gfebd.xyz
Registry Domain ID: D61738497-CNIC
Registrar WHOIS Server: whois.godaddy.com
Registrar URL: http://www.godaddy.com
Updated Date: 2018-02-23T22:00:30Z
Creation Date: 2018-02-23T22:00:28Z
Registrar Registration Expiration Date: 2023-02-23T23:59:59Z
Registrar: GoDaddy.com, LLC
Registrar IANA ID: 146
Registrar Abuse Contact Email: abuse@godaddy.com
Registrar Abuse Contact Phone: +1.4806242505
Domain Status: clientTransferProhibited http://www.icann.org/epp#clientTransferProhibited
Domain Status: clientUpdateProhibited http://www.icann.org/epp#clientUpdateProhibited
Domain Status: clientRenewProhibited http://www.icann.org/epp#clientRenewProhibited
Domain Status: clientDeleteProhibited http://www.icann.org/epp#clientDeleteProhibited
Registrant Organization: 
Registrant State/Province: Pennsylvania
Registrant Country: US
Registrant Email: Select Contact Domain Holder link at https://www.godaddy.com/whois/results.aspx?domain=ayc0zsm69431gfebd.xyz
Admin Email: Select Contact Domain Holder link at https://www.godaddy.com/whois/results.aspx?domain=ayc0zsm69431gfebd.xyz
Tech Email: Select Contact Domain Holder link at https://www.godaddy.com/whois/results.aspx?domain=ayc0zsm69431gfebd.xyz
Name Server: NS53.DOMAINCONTROL.COM
Name Server: NS54.DOMAINCONTROL.COM
DNSSEC: unsigned
URL of the ICANN WHOIS Data Problem Reporting System: http://wdprs.internic.net/
>>> Last update of WHOIS database: 2019-05-25T15:00:00Z <<<

For more information on Whois status codes, please visit https://www.icann.org/resources/pages/epp-status-codes-2014-06-16-en

Notes: 

IMPORTANT: Port43 will provide the ICANN-required minimum data set per 
ICANN Temporary Specification, adopted 17 May 2018. 
Visit https://whois.godaddy.com to look up contact data for domains 
not covered by GDPR policy.

The data contained in GoDaddy.com, LLC's WhoIs database,
while believed by the company to be reliable, is provided "as is"
with no guarantee or warranties regarding its accuracy.  This
information is provided for the sole purpose of assisting you
in obtaining information about domain name registration records.
Any use of this data for any other purpose is expressly forbidden without the prior written
permission of GoDaddy.com, LLC.  By submitting an inquiry,
you agree to these terms of usage and limitations of warranty.  In particular,
you agree not to use this data to allow, enable, or otherwise make possible,
dissemination or collection of this data, in part or in its entirety, for any
purpose, such as the transmission of unsolicited advertising and
and solicitations of any kind, including spam.  You further agree
not to use this data to enable high volume, automated or robotic electronic
processes designed to collect or compile this data for any purpose,
including mining this data for your own personal or commercial purposes. 

Please note: the registrant of the domain name is specified
in the "registrant" section.  In most cases, GoDaddy.com, LLC 
is not the registrant of domain names listed in this database.

                             
  • GET
    200

    https://cdn.ayc0zsm69431gfebd.xyz/prod/tampabay/t8y9347t.min.js

  • GET
    404

    https://cdn.ayc0zsm69431gfebd.xyz/favicon.ico

<html><head><link rel="alternate stylesheet" type="text/css" href="resource://content-accessible/plaintext.css" title="Wrap Long Lines"></head><body><pre>/*
* Version: 1.17.5 
* Build: V.1.17.5-20190204.2 
*/ 

 window.connextVersion = "1.17.5"

 window.connextBuild = "V.1.17.5-20190204.2"
var JSON;if(!function(n){"use strict";var t=function(n,t){this.init(n,t)};t.prototype={constructor:t,init:function(t,i){var u=this,r;this.options=i;this.$element=n(t).on("click.dismiss.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this));this.options.remote&amp;&amp;this.$element.find(".modal-body").on("load",this.options.remote,function(){var t=n.Event("loaded");u.$element.trigger(t)});r=typeof this.options.manager=="function"?this.options.manager.call(this):this.options.manager;r=r.appendModal?r:n(r).modalmanager().data("modalmanager");r.appendModal(this)},toggle:function(){return this[this.isShown?"hide":"show"]()},show:function(){var t=n.Event("show");this.isShown||(this.$element.trigger(t),t.isDefaultPrevented())||(this.escape(),this.tab(),this.options.loading&amp;&amp;this.loading())},hide:function(t){(t&amp;&amp;t.preventDefault(),t=n.Event("hide"),this.$element.trigger(t),this.isShown&amp;&amp;!t.isDefaultPrevented())&amp;&amp;(this.isShown=!1,this.escape(),this.tab(),this.isLoading&amp;&amp;this.loading(),n(document).off("focusin.modal"),this.$element.removeClass("in").removeClass("animated").removeClass(this.options.attentionAnimation).removeClass("modal-overflow").attr("aria-hidden",!0),n.support.transition&amp;&amp;this.$element.hasClass("fade")?this.hideWithTransition():this.hideModal())},layout:function(){var i=this.options.height?"height":"max-height",r=this.options.height||this.options.maxHeight,t,u;this.options.width?(this.$element.css("width",this.options.width),t=this,this.$element.css("margin-left",function(){return/%/ig.test(t.options.width)?-(parseInt(t.options.width)/2)+"%":-(n(this).width()/2)+"px"})):(this.$element.css("width",""),this.$element.css("margin-left",""));this.$element.find(".modal-body").css("overflow","").css(i,"");r&amp;&amp;this.$element.find(".modal-body").css("overflow","auto").css(i,r);u=n(window).height()-10&lt;this.$element.height();u||this.options.modalOverflow?this.$element.css("margin-top",0).addClass("modal-overflow"):this.$element.css("margin-top",0-this.$element.height()/2).removeClass("modal-overflow")},tab:function(){var t=this;if(this.isShown&amp;&amp;this.options.consumeTab)this.$element.on("keydown.tabindex.modal","[data-tabindex]",function(i){var r,f,u;i.keyCode&amp;&amp;i.keyCode==9&amp;&amp;(r=[],f=Number(n(this).data("tabindex")),t.$element.find("[data-tabindex]:enabled:visible:not([readonly])").each(function(){r.push(Number(n(this).data("tabindex")))}),r.sort(function(n,t){return n-t}),u=n.inArray(f,r),i.shiftKey?u==0?t.$element.find("[data-tabindex="+r[r.length-1]+"]").focus():t.$element.find("[data-tabindex="+r[u-1]+"]").focus():u&lt;r.length-1?t.$element.find("[data-tabindex="+r[u+1]+"]").focus():t.$element.find("[data-tabindex="+r[0]+"]").focus(),i.preventDefault())});else this.isShown||this.$element.off("keydown.tabindex.modal")},escape:function(){var n=this;if(this.isShown&amp;&amp;this.options.keyboard){this.$element.attr("tabindex")||this.$element.attr("tabindex",-1);this.$element.on("keyup.dismiss.modal",function(t){t.which==27&amp;&amp;n.hide()})}else this.isShown||this.$element.off("keyup.dismiss.modal")},hideWithTransition:function(){var t=this,i=setTimeout(function(){t.$element.off(n.support.transition.end);t.hideModal()},500);this.$element.one(n.support.transition.end,function(){clearTimeout(i);t.hideModal()})},hideModal:function(){var n=this.options.height?"height":"max-height",t=this.options.height||this.options.maxHeight;t&amp;&amp;this.$element.find(".modal-body").css("overflow","").css(n,"");this.$element.hide().trigger("hidden")},removeLoading:function(){this.$loading.remove();this.$loading=null;this.isLoading=!1},loading:function(t){var i,r,u;t=t||function(){};i=this.$element.hasClass("fade")?"fade":"";this.isLoading?this.isLoading&amp;&amp;this.$loading?(this.$loading.removeClass("in"),u=this,n.support.transition&amp;&amp;this.$element.hasClass("fade")?this.$loading.one(n.support.transition.end,function(){u.removeLoading()}):u.removeLoading()):t&amp;&amp;t(this.isLoading):(r=n.support.transition&amp;&amp;i,this.$loading=n('&lt;div class="loading-mask '+i+'"&gt;').append(this.options.spinner).appendTo(this.$element),r&amp;&amp;this.$loading[0].offsetWidth,this.$loading.addClass("in"),this.isLoading=!0,r?this.$loading.one(n.support.transition.end,t):t())},focus:function(){var n=this.$element.find(this.options.focusOn);n=n.length?n:this.$element;n.focus()},attention:function(){if(this.options.attentionAnimation){this.$element.removeClass("animated").removeClass(this.options.attentionAnimation);var n=this;setTimeout(function(){n.$element.addClass("animated").addClass(n.options.attentionAnimation)},0)}this.focus()},destroy:function(){var t=n.Event("destroy");(this.$element.trigger(t),t.isDefaultPrevented())||(this.$element.off(".connextmodal").removeData("modal").removeClass("in").attr("aria-hidden",!0),this.$parent!==this.$element.parent()?this.$element.appendTo(this.$parent):this.$parent.length||(this.$element.remove(),this.$element=null),this.$element.trigger("destroyed"))}};n.fn.connextmodal=function(i,r){return this.each(function(){var f=n(this),u=f.data("modal"),e=n.extend({},n.fn.connextmodal.defaults,f.data(),typeof i=="object"&amp;&amp;i);u||f.data("modal",u=new t(this,e));typeof i=="string"?u[i].apply(u,[].concat(r)):e.show&amp;&amp;u.show()})};n.fn.connextmodal.defaults={keyboard:!0,backdrop:!0,loading:!1,show:!0,width:null,height:null,maxHeight:null,modalOverflow:!1,consumeTab:!0,focusOn:null,replace:!1,resize:!1,attentionAnimation:!1,manager:"body",spinner:'&lt;div class="loading-spinner" style="width: 200px; margin-left: -100px;"&gt;&lt;div class="progress progress-striped active"&gt;&lt;div class="bar" style="width: 100%;"&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;',backdropTemplate:'&lt;div class="connext-modal-backdrop" /&gt;'};n.fn.connextmodal.Constructor=t;n(function(){n(document).off("click.modal").on("click.modal.data-api",'[data-toggle="modal"]',function(t){var i=n(this),r=i.attr("href"),u=n(i.attr("data-target")||r&amp;&amp;r.replace(/.*(?=#[^\s]+$)/,"")),f=u.data("modal")?"toggle":n.extend({remote:!/#/.test(r)&amp;&amp;r},u.data(),i.data());t.preventDefault();u.connextmodal(f).one("hide",function(){i.focus()})})})}(window.jQuery),!function(n){"use strict";function t(n){return function(t){if(t&amp;&amp;this===t.target)return n.apply(this,arguments)}}var r=function(n,t){this.init(n,t)},i;r.prototype={constructor:r,init:function(t,i){if(this.$element=n(t),this.options=n.extend({},n.fn.modalmanager.defaults,this.$element.data(),typeof i=="object"&amp;&amp;i),this.stack=[],this.backdropCount=0,this.options.resize){var r,u=this;n(window).on("resize.modal",function(){r&amp;&amp;clearTimeout(r);r=setTimeout(function(){for(var n=0;n&lt;u.stack.length;n++)u.stack[n].isShown&amp;&amp;u.stack[n].layout()},10)})}},createModal:function(t,i){n(t).modal(n.extend({manager:this},i))},appendModal:function(i){this.stack.push(i);var r=this;i.$element.on("show.modalmanager",t(function(){var t=function(){i.isShown=!0;var t=n.support.transition&amp;&amp;i.$element.hasClass("fade");r.$element.toggleClass("modal-open",r.hasOpenModal()).toggleClass("page-overflow",n(window).height()&lt;r.$element.height());i.$parent=i.$element.parent();i.$container=r.createContainer(i);i.$element.appendTo(i.$container);r.backdrop(i,function(){i.$element.show();t&amp;&amp;i.$element[0].offsetWidth;i.layout();i.$element.addClass("in").attr("aria-hidden",!1);var u=function(){r.setFocus();i.$element.trigger("shown")};t?i.$element.one(n.support.transition.end,u):u()})};i.options.replace?r.replace(t):t()}));i.$element.on("hidden.modalmanager",t(function(){if(r.backdrop(i),r.destroyModal(i),i.$element.parent().length)if(i.$backdrop){var t=n.support.transition&amp;&amp;i.$element.hasClass("fade");t&amp;&amp;i.$element[0].offsetWidth;n.support.transition&amp;&amp;i.$element.hasClass("fade")?i.$backdrop.one(n.support.transition.end,function(){i.destroy()}):i.destroy()}else i.destroy();else r.destroyModal(i)}));i.$element.on("destroyed.modalmanager",t(function(){r.destroyModal(i)}))},getOpenModals:function(){for(var t=[],n=0;n&lt;this.stack.length;n++)this.stack[n].isShown&amp;&amp;t.push(this.stack[n]);return t},hasOpenModal:function(){return this.getOpenModals().length&gt;0},setFocus:function(){for(var t,n=0;n&lt;this.stack.length;n++)this.stack[n].isShown&amp;&amp;(t=this.stack[n]);t&amp;&amp;t.focus()},destroyModal:function(n){n.$element.off(".modalmanager");n.$backdrop&amp;&amp;this.removeBackdrop(n);this.stack.splice(this.getIndexOfModal(n),1);var t=this.hasOpenModal();this.$element.toggleClass("modal-open",t);t||this.$element.removeClass("page-overflow");this.removeContainer(n);this.setFocus()},getModalAt:function(n){return this.stack[n]},getIndexOfModal:function(n){for(var t=0;t&lt;this.stack.length;t++)if(n===this.stack[t])return t},replace:function(i){for(var r,u=0;u&lt;this.stack.length;u++)this.stack[u].isShown&amp;&amp;(r=this.stack[u]);r?(this.$backdropHandle=r.$backdrop,r.$backdrop=null,i&amp;&amp;r.$element.one("hidden",t(n.proxy(i,this))),r.hide()):i&amp;&amp;i()},removeBackdrop:function(n){n.$backdrop.remove();n.$backdrop=null},createBackdrop:function(t,i){var r;return this.$backdropHandle?(r=this.$backdropHandle,r.off(".modalmanager"),this.$backdropHandle=null,this.isLoading&amp;&amp;this.removeSpinner()):r=n(i).addClass(t).appendTo(this.$element),r},removeContainer:function(n){n.$container.remove();n.$container=null},createContainer:function(r){var u;if(u=n('&lt;div class="modal-scrollable"&gt;').css("z-index",i("modal",this.getOpenModals().length)).appendTo(this.$element),r&amp;&amp;r.options.backdrop!="static")u.on("click.modal",t(function(){r.hide()}));else if(r)u.on("click.modal",t(function(){r.attention()}));return u},backdrop:function(t,r){var e=t.$element.hasClass("fade")?"fade":"",o=t.options.backdrop&amp;&amp;this.backdropCount&lt;this.options.backdropLimit,u,f;t.isShown&amp;&amp;o?(u=n.support.transition&amp;&amp;e&amp;&amp;!this.$backdropHandle,t.$backdrop=this.createBackdrop(e,t.options.backdropTemplate),t.$backdrop.css("z-index",i("backdrop",this.getOpenModals().length)),u&amp;&amp;t.$backdrop[0].offsetWidth,t.$backdrop.addClass("in"),this.backdropCount+=1,u?t.$backdrop.one(n.support.transition.end,r):r()):!t.isShown&amp;&amp;t.$backdrop?(t.$backdrop.removeClass("in"),this.backdropCount-=1,f=this,n.support.transition&amp;&amp;t.$element.hasClass("fade")?t.$backdrop.one(n.support.transition.end,function(){f.removeBackdrop(t)}):f.removeBackdrop(t)):r&amp;&amp;r()},removeSpinner:function(){this.$spinner&amp;&amp;this.$spinner.remove();this.$spinner=null;this.isLoading=!1},removeLoading:function(){this.$backdropHandle&amp;&amp;this.$backdropHandle.remove();this.$backdropHandle=null;this.removeSpinner()},loading:function(t){var r,f,u;t=t||function(){};this.$element.toggleClass("modal-open",!this.isLoading||this.hasOpenModal()).toggleClass("page-overflow",n(window).height()&lt;this.$element.height());this.isLoading?this.isLoading&amp;&amp;this.$backdropHandle?(this.$backdropHandle.removeClass("in"),u=this,n.support.transition?this.$backdropHandle.one(n.support.transition.end,function(){u.removeLoading()}):u.removeLoading()):t&amp;&amp;t(this.isLoading):(this.$backdropHandle=this.createBackdrop("fade",this.options.backdropTemplate),this.$backdropHandle[0].offsetWidth,r=this.getOpenModals(),this.$backdropHandle.css("z-index",i("backdrop",r.length+1)).addClass("in"),f=n(this.options.spinner).css("z-index",i("modal",r.length+1)).appendTo(this.$element).addClass("in"),this.$spinner=n(this.createContainer()).append(f).on("click.modalmanager",n.proxy(this.loading,this)),this.isLoading=!0,n.support.transition?this.$backdropHandle.one(n.support.transition.end,t):t())}};i=function(){var i,t={};return function(r,u){if(typeof i=="undefined"){var f=n('&lt;div class="modal hide" /&gt;').appendTo("body"),e=n('&lt;div class="connext-modal-backdrop hide" /&gt;').appendTo("body");t.modal=+f.css("z-index");t.backdrop=+e.css("z-index");i=t.modal-t.backdrop;f.remove();e.remove();e=f=null}return t[r]+i*u}}();n.fn.modalmanager=function(t,i){return this.each(function(){var f=n(this),u=f.data("modalmanager");u||f.data("modalmanager",u=new r(this,t));typeof t=="string"&amp;&amp;u[t].apply(u,[].concat(i))})};n.fn.modalmanager.defaults={backdropLimit:999,resize:!0,spinner:'&lt;div class="loading-spinner fade" style="width: 200px; margin-left: -100px;"&gt;&lt;div class="progress progress-striped active"&gt;&lt;div class="bar" style="width: 100%;"&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;',backdropTemplate:'&lt;div class="connext-modal-backdrop" /&gt;'};n.fn.modalmanager.Constructor=r;n(function(){n(document).off("show.bs.modal").off("hidden.bs.modal")})}(jQuery),typeof jQuery=="undefined")throw new Error("Bootstrap's JavaScript requires jQuery");+function(n){"use strict";var t=n.fn.jquery.split(" ")[0].split(".");if(t[0]&lt;2&amp;&amp;t[1]&lt;9||t[0]==1&amp;&amp;t[1]==9&amp;&amp;t[2]&lt;1||t[0]&gt;3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4");}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f=typeof i=="object"&amp;&amp;i;r||u.data("bs.affix",r=new t(this,f));typeof i=="string"&amp;&amp;r[i]()})}var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$target=n(this.options.target).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=null;this.unpin=null;this.pinnedOffset=null;this.checkPosition()},r;t.VERSION="3.3.7";t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0,target:window};t.prototype.getState=function(n,t,i,r){var u=this.$target.scrollTop(),f=this.$element.offset(),e=this.$target.height();if(i!=null&amp;&amp;this.affixed=="top")return u&lt;i?"top":!1;if(this.affixed=="bottom")return i!=null?u+this.unpin&lt;=f.top?!1:"bottom":u+e&lt;=n-r?!1:"bottom";var o=this.affixed==null,s=o?u:f.top,h=o?e:t;return i!=null&amp;&amp;u&lt;=i?"top":r!=null&amp;&amp;s+h&gt;=n-r?"bottom":!1};t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i,e,o;if(this.$element.is(":visible")){var s=this.$element.height(),r=this.options.offset,f=r.top,u=r.bottom,h=Math.max(n(document).height(),n(document.body).height());if(typeof r!="object"&amp;&amp;(u=f=r),typeof f=="function"&amp;&amp;(f=r.top(this.$element)),typeof u=="function"&amp;&amp;(u=r.bottom(this.$element)),i=this.getState(h,s,f,u),this.affixed!=i){if(this.unpin!=null&amp;&amp;this.$element.css("top",""),e="affix"+(i?"-"+i:""),o=n.Event(e+".bs.affix"),this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=i;this.unpin=i=="bottom"?this.getPinnedOffset():null;this.$element.removeClass(t.RESET).addClass(e).trigger(e.replace("affix","affixed")+".bs.affix")}i=="bottom"&amp;&amp;this.$element.offset({top:h-s-u})}};r=n.fn.affix;n.fn.affix=i;n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=r,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var r=n(this),t=r.data();t.offset=t.offset||{};t.offsetBottom!=null&amp;&amp;(t.offset.bottom=t.offsetBottom);t.offsetTop!=null&amp;&amp;(t.offset.top=t.offsetTop);i.call(r,t)})})}(jQuery),function(){var y=this,at=y.__,s={},r=Array.prototype,g=Object.prototype,vt=Function.prototype,nt=r.push,t=r.slice,u=r.concat,e=g.toString,yt=g.hasOwnProperty,tt=r.forEach,it=r.map,rt=r.reduce,ut=r.reduceRight,ft=r.filter,et=r.every,ot=r.some,h=r.indexOf,st=r.lastIndexOf,pt=Array.isArray,ht=Object.keys,p=vt.bind,n=function(t){if(t instanceof n)return t;if(!(this instanceof n))return new n(t);this.__wrapped=t},i,w,b,o,c,k,l,a,f,ct,lt,v;typeof exports!="undefined"?(typeof module!="undefined"&amp;&amp;module.exports&amp;&amp;(exports=module.exports=n),exports.__=n):y.__=n;n.VERSION="1.6.0";i=n.each=n.forEach=function(t,i,r){var e,u,f;if(t==null)return t;if(tt&amp;&amp;t.forEach===tt)t.forEach(i,r);else if(t.length===+t.length){for(u=0,f=t.length;u&lt;f;u++)if(i.call(r,t[u],u,t)===s)return}else for(e=n.keys(t),u=0,f=e.length;u&lt;f;u++)if(i.call(r,t[e[u]],e[u],t)===s)return;return t};n.map=n.collect=function(n,t,r){var u=[];return n==null?u:it&amp;&amp;n.map===it?n.map(t,r):(i(n,function(n,i,f){u.push(t.call(r,n,i,f))}),u)};w="Reduce of empty array with no initial value";n.reduce=n.foldl=n.inject=function(t,r,u,f){var e=arguments.length&gt;2;if(t==null&amp;&amp;(t=[]),rt&amp;&amp;t.reduce===rt)return f&amp;&amp;(r=n.bind(r,f)),e?t.reduce(r,u):t.reduce(r);if(i(t,function(n,t,i){e?u=r.call(f,u,n,t,i):(u=n,e=!0)}),!e)throw new TypeError(w);return u};n.reduceRight=n.foldr=function(t,r,u,f){var o=arguments.length&gt;2,e,s;if(t==null&amp;&amp;(t=[]),ut&amp;&amp;t.reduceRight===ut)return f&amp;&amp;(r=n.bind(r,f)),o?t.reduceRight(r,u):t.reduceRight(r);if(e=t.length,e!==+e&amp;&amp;(s=n.keys(t),e=s.length),i(t,function(n,i,h){i=s?s[--e]:--e;o?u=r.call(f,u,t[i],i,h):(u=t[i],o=!0)}),!o)throw new TypeError(w);return u};n.find=n.detect=function(n,t,i){var r;return b(n,function(n,u,f){if(t.call(i,n,u,f))return r=n,!0}),r};n.filter=n.select=function(n,t,r){var u=[];return n==null?u:ft&amp;&amp;n.filter===ft?n.filter(t,r):(i(n,function(n,i,f){t.call(r,n,i,f)&amp;&amp;u.push(n)}),u)};n.reject=function(t,i,r){return n.filter(t,function(n,t,u){return!i.call(r,n,t,u)},r)};n.every=n.all=function(t,r,u){r||(r=n.identity);var f=!0;return t==null?f:et&amp;&amp;t.every===et?t.every(r,u):(i(t,function(n,t,i){if(!(f=f&amp;&amp;r.call(u,n,t,i)))return s}),!!f)};b=n.some=n.any=function(t,r,u){r||(r=n.identity);var f=!1;return t==null?f:ot&amp;&amp;t.some===ot?t.some(r,u):(i(t,function(n,t,i){if(f||(f=r.call(u,n,t,i)))return s}),!!f)};n.contains=n.include=function(n,t){return n==null?!1:h&amp;&amp;n.indexOf===h?n.indexOf(t)!=-1:b(n,function(n){return n===t})};n.invoke=function(i,r){var u=t.call(arguments,2),f=n.isFunction(r);return n.map(i,function(n){return(f?r:n[r]).apply(n,u)})};n.pluck=function(t,i){return n.map(t,n.property(i))};n.where=function(t,i){return n.filter(t,n.matches(i))};n.findWhere=function(t,i){return n.find(t,n.matches(i))};n.max=function(t,r,u){if(!r&amp;&amp;n.isArray(t)&amp;&amp;t[0]===+t[0]&amp;&amp;t.length&lt;65535)return Math.max.apply(Math,t);var f=-Infinity,e=-Infinity;return i(t,function(n,t,i){var o=r?r.call(u,n,t,i):n;o&gt;e&amp;&amp;(f=n,e=o)}),f};n.min=function(t,r,u){if(!r&amp;&amp;n.isArray(t)&amp;&amp;t[0]===+t[0]&amp;&amp;t.length&lt;65535)return Math.min.apply(Math,t);var f=Infinity,e=Infinity;return i(t,function(n,t,i){var o=r?r.call(u,n,t,i):n;o&lt;e&amp;&amp;(f=n,e=o)}),f};n.shuffle=function(t){var u,f=0,r=[];return i(t,function(t){u=n.random(f++);r[f-1]=r[u];r[u]=t}),r};n.sample=function(t,i,r){return i==null||r?(t.length!==+t.length&amp;&amp;(t=n.values(t)),t[n.random(t.length-1)]):n.shuffle(t).slice(0,Math.max(0,i))};o=function(t){return t==null?n.identity:n.isFunction(t)?t:n.property(t)};n.sortBy=function(t,i,r){return i=o(i),n.pluck(n.map(t,function(n,t,u){return{value:n,index:t,criteria:i.call(r,n,t,u)}}).sort(function(n,t){var i=n.criteria,r=t.criteria;if(i!==r){if(i&gt;r||i===void 0)return 1;if(i&lt;r||r===void 0)return-1}return n.index-t.index}),"value")};c=function(n){return function(t,r,u){var f={};return r=o(r),i(t,function(i,e){var o=r.call(u,i,e,t);n(f,o,i)}),f}};n.groupBy=c(function(t,i,r){n.has(t,i)?t[i].push(r):t[i]=[r]});n.indexBy=c(function(n,t,i){n[t]=i});n.countBy=c(function(t,i){n.has(t,i)?t[i]++:t[i]=1});n.sortedIndex=function(n,t,i,r){var f;i=o(i);for(var s=i.call(r,t),u=0,e=n.length;u&lt;e;)f=u+e&gt;&gt;&gt;1,i.call(r,n[f])&lt;s?u=f+1:e=f;return u};n.toArray=function(i){return i?n.isArray(i)?t.call(i):i.length===+i.length?n.map(i,n.identity):n.values(i):[]};n.size=function(t){return t==null?0:t.length===+t.length?t.length:n.keys(t).length};n.first=n.head=n.take=function(n,i,r){if(n!=null)return i==null||r?n[0]:i&lt;0?[]:t.call(n,0,i)};n.initial=function(n,i,r){return t.call(n,0,n.length-(i==null||r?1:i))};n.last=function(n,i,r){if(n!=null)return i==null||r?n[n.length-1]:t.call(n,Math.max(n.length-i,0))};n.rest=n.tail=n.drop=function(n,i,r){return t.call(n,i==null||r?1:i)};n.compact=function(t){return n.filter(t,n.identity)};k=function(t,r,f){return r&amp;&amp;n.every(t,n.isArray)?u.apply(f,t):(i(t,function(t){n.isArray(t)||n.isArguments(t)?r?nt.apply(f,t):k(t,r,f):f.push(t)}),f)};n.flatten=function(n,t){return k(n,t,[])};n.without=function(i){return n.difference(i,t.call(arguments,1))};n.partition=function(n,t,r){t=o(t);var u=[],f=[];return i(n,function(n){(t.call(r,n)?u:f).push(n)}),[u,f]};n.uniq=n.unique=function(t,r,u,f){n.isFunction(r)&amp;&amp;(f=u,u=r,r=!1);var s=u?n.map(t,u,f):t,o=[],e=[];return i(s,function(i,u){(r?u&amp;&amp;e[e.length-1]===i:n.contains(e,i))||(e.push(i),o.push(t[u]))}),o};n.union=function(){return n.uniq(n.flatten(arguments,!0))};n.intersection=function(i){var r=t.call(arguments,1);return n.filter(n.uniq(i),function(t){return n.every(r,function(i){return n.contains(i,t)})})};n.difference=function(i){var f=u.apply(r,t.call(arguments,1));return n.filter(i,function(t){return!n.contains(f,t)})};n.zip=function(){for(var i=n.max(n.pluck(arguments,"length").concat(0)),r=new Array(i),t=0;t&lt;i;t++)r[t]=n.pluck(arguments,""+t);return r};n.object=function(n,t){var r,i,u;if(n==null)return{};for(r={},i=0,u=n.length;i&lt;u;i++)t?r[n[i]]=t[i]:r[n[i][0]]=n[i][1];return r};n.indexOf=function(t,i,r){if(t==null)return-1;var u=0,f=t.length;if(r)if(typeof r=="number")u=r&lt;0?Math.max(0,f+r):r;else return u=n.sortedIndex(t,i),t[u]===i?u:-1;if(h&amp;&amp;t.indexOf===h)return t.indexOf(i,r);for(;u&lt;f;u++)if(t[u]===i)return u;return-1};n.lastIndexOf=function(n,t,i){var u,r;if(n==null)return-1;if(u=i!=null,st&amp;&amp;n.lastIndexOf===st)return u?n.lastIndexOf(t,i):n.lastIndexOf(t);for(r=u?i:n.length;r--;)if(n[r]===t)return r;return-1};n.range=function(n,t,i){arguments.length&lt;=1&amp;&amp;(t=n||0,n=0);i=arguments[2]||1;for(var r=Math.max(Math.ceil((t-n)/i),0),u=0,f=new Array(r);u&lt;r;)f[u++]=n,n+=i;return f};l=function(){};n.bind=function(i,r){var u,f;if(p&amp;&amp;i.bind===p)return p.apply(i,t.call(arguments,1));if(!n.isFunction(i))throw new TypeError;return u=t.call(arguments,2),f=function(){var e,n;return(this instanceof f)?(l.prototype=i.prototype,e=new l,l.prototype=null,n=i.apply(e,u.concat(t.call(arguments))),Object(n)===n)?n:e:i.apply(r,u.concat(t.call(arguments)))}};n.partial=function(i){var r=t.call(arguments,1);return function(){for(var f=0,t=r.slice(),u=0,e=t.length;u&lt;e;u++)t[u]===n&amp;&amp;(t[u]=arguments[f++]);while(f&lt;arguments.length)t.push(arguments[f++]);return i.apply(this,t)}};n.bindAll=function(r){var u=t.call(arguments,1);if(u.length===0)throw new Error("bindAll must be passed function names");return i(u,function(t){r[t]=n.bind(r[t],r)}),r};n.memoize=function(t,i){var r={};return i||(i=n.identity),function(){var u=i.apply(this,arguments);return n.has(r,u)?r[u]:r[u]=t.apply(this,arguments)}};n.delay=function(n,i){var r=t.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},i)};n.defer=function(i){return n.delay.apply(n,[i,1].concat(t.call(arguments,1)))};n.throttle=function(t,i,r){var u,f,s,e=null,o=0,h;return r||(r={}),h=function(){o=r.leading===!1?0:n.now();e=null;s=t.apply(u,f);u=f=null},function(){var c=n.now(),l;return o||r.leading!==!1||(o=c),l=i-(c-o),u=this,f=arguments,l&lt;=0?(clearTimeout(e),e=null,o=c,s=t.apply(u,f),u=f=null):e||r.trailing===!1||(e=setTimeout(h,l)),s}};n.debounce=function(t,i,r){var u,f,e,s,o,h=function(){var c=n.now()-s;c&lt;i?u=setTimeout(h,i-c):(u=null,r||(o=t.apply(e,f),e=f=null))};return function(){e=this;f=arguments;s=n.now();var c=r&amp;&amp;!u;return u||(u=setTimeout(h,i)),c&amp;&amp;(o=t.apply(e,f),e=f=null),o}};n.once=function(n){var i=!1,t;return function(){return i?t:(i=!0,t=n.apply(this,arguments),n=null,t)}};n.wrap=function(t,i){return n.partial(i,t)};n.compose=function(){var n=arguments;return function(){for(var t=arguments,i=n.length-1;i&gt;=0;i--)t=[n[i].apply(this,t)];return t[0]}};n.after=function(n,t){return function(){if(--n&lt;1)return t.apply(this,arguments)}};n.keys=function(t){var i,r;if(!n.isObject(t))return[];if(ht)return ht(t);i=[];for(r in t)n.has(t,r)&amp;&amp;i.push(r);return i};n.values=function(t){for(var r=n.keys(t),u=r.length,f=new Array(u),i=0;i&lt;u;i++)f[i]=t[r[i]];return f};n.pairs=function(t){for(var r=n.keys(t),u=r.length,f=new Array(u),i=0;i&lt;u;i++)f[i]=[r[i],t[r[i]]];return f};n.invert=function(t){for(var u={},r=n.keys(t),i=0,f=r.length;i&lt;f;i++)u[t[r[i]]]=r[i];return u};n.functions=n.methods=function(t){var i=[];for(var r in t)n.isFunction(t[r])&amp;&amp;i.push(r);return i.sort()};n.extend=function(n){return i(t.call(arguments,1),function(t){if(t)for(var i in t)n[i]=t[i]}),n};n.pick=function(n){var f={},e=u.apply(r,t.call(arguments,1));return i(e,function(t){t in n&amp;&amp;(f[t]=n[t])}),f};n.omit=function(i){var e={},o=u.apply(r,t.call(arguments,1));for(var f in i)n.contains(o,f)||(e[f]=i[f]);return e};n.defaults=function(n){return i(t.call(arguments,1),function(t){if(t)for(var i in t)n[i]===void 0&amp;&amp;(n[i]=t[i])}),n};n.clone=function(t){return n.isObject(t)?n.isArray(t)?t.slice():n.extend({},t):t};n.tap=function(n,t){return t(n),n};a=function(t,i,r,u){var l,v,h,c,f,o,s;if(t===i)return t!==0||1/t==1/i;if(t==null||i==null)return t===i;if(t instanceof n&amp;&amp;(t=t.__wrapped),i instanceof n&amp;&amp;(i=i.__wrapped),l=e.call(t),l!=e.call(i))return!1;switch(l){case"[object String]":return t==String(i);case"[object Number]":return t!=+t?i!=+i:t==0?1/t==1/i:t==+i;case"[object Date]":case"[object Boolean]":return+t==+i;case"[object RegExp]":return t.source==i.source&amp;&amp;t.global==i.global&amp;&amp;t.multiline==i.multiline&amp;&amp;t.ignoreCase==i.ignoreCase}if(typeof t!="object"||typeof i!="object")return!1;for(v=r.length;v--;)if(r[v]==t)return u[v]==i;if(h=t.constructor,c=i.constructor,h!==c&amp;&amp;!(n.isFunction(h)&amp;&amp;h instanceof h&amp;&amp;n.isFunction(c)&amp;&amp;c instanceof c)&amp;&amp;"constructor"in t&amp;&amp;"constructor"in i)return!1;if(r.push(t),u.push(i),f=0,o=!0,l=="[object Array]"){if(f=t.length,o=f==i.length,o)while(f--)if(!(o=a(t[f],i[f],r,u)))break}else{for(s in t)if(n.has(t,s)&amp;&amp;(f++,!(o=n.has(i,s)&amp;&amp;a(t[s],i[s],r,u))))break;if(o){for(s in i)if(n.has(i,s)&amp;&amp;!f--)break;o=!f}}return r.pop(),u.pop(),o};n.isEqual=function(n,t){return a(n,t,[],[])};n.isEmpty=function(t){if(t==null)return!0;if(n.isArray(t)||n.isString(t))return t.length===0;for(var i in t)if(n.has(t,i))return!1;return!0};n.isElement=function(n){return!!(n&amp;&amp;n.nodeType===1)};n.isArray=pt||function(n){return e.call(n)=="[object Array]"};n.isObject=function(n){return n===Object(n)};i(["Arguments","Function","String","Number","Date","RegExp"],function(t){n["is"+t]=function(n){return e.call(n)=="[object "+t+"]"}});n.isArguments(arguments)||(n.isArguments=function(t){return!!(t&amp;&amp;n.has(t,"callee"))});typeof/./!="function"&amp;&amp;(n.isFunction=function(n){return typeof n=="function"});n.isFinite=function(n){return isFinite(n)&amp;&amp;!isNaN(parseFloat(n))};n.isNaN=function(t){return n.isNumber(t)&amp;&amp;t!=+t};n.isBoolean=function(n){return n===!0||n===!1||e.call(n)=="[object Boolean]"};n.isNull=function(n){return n===null};n.isUndefined=function(n){return n===void 0};n.has=function(n,t){return yt.call(n,t)};n.noConflict=function(){return y.__=at,this};n.identity=function(n){return n};n.constant=function(n){return function(){return n}};n.property=function(n){return function(t){return t[n]}};n.matches=function(n){return function(t){if(t===n)return!0;for(var i in n)if(String(n[i])!==String(t[i]))return!1;return!0}};n.times=function(n,t,i){for(var u=Array(Math.max(0,n)),r=0;r&lt;n;r++)u[r]=t.call(i,r);return u};n.random=function(n,t){return t==null&amp;&amp;(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))};n.now=Date.now||function(){return(new Date).getTime()};f={escape:{"&amp;":"&amp;amp;","&lt;":"&amp;lt;","&gt;":"&amp;gt;",'"':"&amp;quot;","'":"&amp;#x27;"}};f.unescape=n.invert(f.escape);ct={escape:new RegExp("["+n.keys(f.escape).join("")+"]","g"),unescape:new RegExp("("+n.keys(f.unescape).join("|")+")","g")};n.each(["escape","unescape"],function(t){n[t]=function(n){return n==null?"":(""+n).replace(ct[t],function(n){return f[t][n]})}});n.result=function(t,i){if(t==null)return void 0;var r=t[i];return n.isFunction(r)?r.call(t):r};n.mixin=function(t){i(n.functions(t),function(i){var r=n[i]=t[i];n.prototype[i]=function(){var t=[this.__wrapped];return nt.apply(t,arguments),v.call(this,r.apply(n,t))}})};lt=0;n.uniqueId=function(n){var t=++lt+"";return n?n+t:t};n.templateSettings={evaluate:/&lt;%([\s\S]+?)%&gt;/g,interpolate:/&lt;%=([\s\S]+?)%&gt;/g,escape:/&lt;%-([\s\S]+?)%&gt;/g};var d=/(.)^/,wt={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},bt=/\\|'|\r|\n|\t|\u2028|\u2029/g;n.template=function(t,i,r){var f,e;r=n.defaults({},r,n.templateSettings);var h=new RegExp([(r.escape||d).source,(r.interpolate||d).source,(r.evaluate||d).source].join("|")+"|$","g"),o=0,u="__p+='";t.replace(h,function(n,i,r,f,e){return u+=t.slice(o,e).replace(bt,function(n){return"\\"+wt[n]}),i&amp;&amp;(u+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'"),r&amp;&amp;(u+="'+\n((__t=("+r+"))==null?'':__t)+\n'"),f&amp;&amp;(u+="';\n"+f+"\n__p+='"),o=e+n.length,n});u+="';\n";r.variable||(u="with(obj||{}){\n"+u+"}\n");u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{f=new Function(r.variable||"obj","__",u)}catch(s){s.source=u;throw s;}return i?f(i,n):(e=function(t){return f.call(this,t,n)},e.source="function("+(r.variable||"obj")+"){\n"+u+"}",e)};n.chain=function(t){return n(t).chain()};n.findByKey=function(t,i){if(n.isEmpty(i))return first?void 0:[];var r;return n.each(t,function(n,u){for(var f in i)if(i[f]==n[f])return r=t[u],!0}),r};n.omitByKey=function(t,i){if(n.isEmpty(i))return first?void 0:[];var r=[];return n.each(t,function(n,u){var f,e,o;for(f in i)if(e=i[f],o=n[f],i[f]!=n[f])return r.push(t[u]),!0}),r};n.findAllByKey=function(t,i){var u=arguments[2]?arguments[2]:!1,r;return n.isEmpty(i)?first?void 0:[]:(r=[],n.each(t,function(n,f){for(var e in i)u,i[e]==n[e]&amp;&amp;r.push(t[f])}),r)};n.hasKeyVal=function(t,i){return n.where(t,i).length&gt;0?!0:!1};n.replaceKey=function(t,i,r){return n.map(t,function(t){var u={};return n.each(t,function(n,t){t==i?u[r]=n:u[t]=n}),u})};n.replaceObjKeysByMap=function(t,i){var r=[t];return n.each(i,function(t,i){r=n.replaceKey(r,i,t)}),r[0]};n.addDisplayOrder=function(t,i){var r=[];return n.each(t,function(t,u){var f={};f[i]=u+1;r.push(n.extend(t,f))}),r};String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.slice(1)};n.capitalizeKeys=function(t){var i=[];return n.each(t,function(t){var r={};n.each(t,function(n,t){r[t.capitalize()]=n});i.push(r)}),i};n.uniqueByKey=function(i,f){var o=u.apply(r,t.call(arguments,2)),e=[];return n.each(i,function(t){var i={};i[f]=t[f];n.hasKeyVal(e,i)||t[f]===null||(o.length&gt;0?e.push(n.pick(t,o)):e.push(t))}),e};n.pickKeysFromObjArray=function(i){var f=[],e=u.apply(r,t.call(arguments,1));return n.each(i,function(t){f.push(n.pick(t,e))}),f};n.dedupeByKey=function(t,i){return n.each(t,function(t){console.log("OBJ1 ----&gt;  ",t);n.each(i,function(n){console.log("obj1 key - &gt; ",t[key]," obj2 key -&gt; ",n[key])})}),[]};n.differenceByKey=function(t,i,r,u){var f=[],e=[];return n.each(t,function(t){var o={};o[u]=t[r];n.hasKeyVal(i,o)?f.push(t):e.push(t)}),{Matches:f,NoMatches:e}};n.groupByFilter=function(i,f){var o=u.apply(r,t.call(arguments,3)),e={};return n.each(i,function(t,i){console.log("#### group.each",t,i);console.log("XXXX group.each filter",e[t.filter]);n.isArray(e[t.filter])?(console.log("array","group[filter]",t[f],"val",t),e[t.filter].push(t)):(console.log("not array","group[filter]",t[f],"val",t),e[t.filter]=new Array(t))}),e};n.sortedGroupBy=function(t,i,r){var o=arguments[3]?arguments[3]:"__",u=n.uniqueByKey(t,i),f,e;return u=n.sortBy(u,r),f={},e={},console.log("underscore.sortedGroupby","unique",u),n.each(u,function(r){e[i]=r[i];f[o+String(r[i])]=n.findAllByKey(t,e)}),f};n.isNothing=function(t){return n.isEmpty(t)||n.isNull(t)||t===""?!0:!1};v=function(t){return this.__chain?n(t).chain():t};n.mixin(n);i(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var i=r[t];n.prototype[t]=function(){var n=this.__wrapped;return i.apply(n,arguments),(t=="shift"||t=="splice")&amp;&amp;n.length===0&amp;&amp;delete n[0],v.call(this,n)}});i(["concat","join","slice"],function(t){var i=r[t];n.prototype[t]=function(){return v.call(this,i.apply(this.__wrapped,arguments))}});n.extend(n.prototype,{chain:function(){return this.__chain=!0,this},value:function(){return this.__wrapped}});typeof define=="function"&amp;&amp;define.amd&amp;&amp;define("underscore",[],function(){return n})}.call(this);JSON||(JSON={}),function(){"use strict";function i(n){return n&lt;10?"0"+n:n}function o(n){return e.lastIndex=0,e.test(n)?'"'+n.replace(e,function(n){var t=s[n];return typeof t=="string"?t:"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function u(i,f){var s,l,h,a,v=n,c,e=f[i];e&amp;&amp;typeof e=="object"&amp;&amp;typeof e.toJSON=="function"&amp;&amp;(e=e.toJSON(i));typeof t=="function"&amp;&amp;(e=t.call(f,i,e));switch(typeof e){case"string":return o(e);case"number":return isFinite(e)?String(e):"null";case"boolean":case"null":return String(e);case"object":if(!e)return"null";if(n+=r,c=[],Object.prototype.toString.apply(e)==="[object Array]"){for(a=e.length,s=0;s&lt;a;s+=1)c[s]=u(s,e)||"null";return h=c.length===0?"[]":n?"[\n"+n+c.join(",\n"+n)+"\n"+v+"]":"["+c.join(",")+"]",n=v,h}if(t&amp;&amp;typeof t=="object")for(a=t.length,s=0;s&lt;a;s+=1)typeof t[s]=="string"&amp;&amp;(l=t[s],h=u(l,e),h&amp;&amp;c.push(o(l)+(n?": ":":")+h));else for(l in e)Object.prototype.hasOwnProperty.call(e,l)&amp;&amp;(h=u(l,e),h&amp;&amp;c.push(o(l)+(n?": ":":")+h));return h=c.length===0?"{}":n?"{\n"+n+c.join(",\n"+n)+"\n"+v+"}":"{"+c.join(",")+"}",n=v,h}}typeof Date.prototype.toJSON!="function"&amp;&amp;(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var f=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n,r,s={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},t;typeof JSON.stringify!="function"&amp;&amp;(JSON.stringify=function(i,f,e){var o;if(n="",r="",typeof e=="number")for(o=0;o&lt;e;o+=1)r+=" ";else typeof e=="string"&amp;&amp;(r=e);if(t=f,f&amp;&amp;typeof f!="function"&amp;&amp;(typeof f!="object"||typeof f.length!="number"))throw new Error("JSON.stringify");return u("",{"":i})});typeof JSON.parse!="function"&amp;&amp;(JSON.parse=function(n,t){function r(n,i){var f,e,u=n[i];if(u&amp;&amp;typeof u=="object")for(f in u)Object.prototype.hasOwnProperty.call(u,f)&amp;&amp;(e=r(u,f),e!==undefined?u[f]=e:delete u[f]);return t.call(n,i,u)}var i;if(n=String(n),f.lastIndex=0,f.test(n)&amp;&amp;(n=n.replace(f,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(n.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return i=eval("("+n+")"),typeof t=="function"?r({"":i},""):i;throw new SyntaxError("JSON.parse");})}();var MD5=function(n){function a(n,t){return n&lt;&lt;t|n&gt;&gt;&gt;32-t}function o(n,t){var f,e,r,u,i;return(r=n&amp;2147483648,u=t&amp;2147483648,f=n&amp;1073741824,e=t&amp;1073741824,i=(n&amp;1073741823)+(t&amp;1073741823),f&amp;e)?i^2147483648^r^u:f|e?i&amp;1073741824?i^3221225472^r^u:i^1073741824^r^u:i^r^u}function yt(n,t,i){return n&amp;t|~n&amp;i}function pt(n,t,i){return n&amp;i|t&amp;~i}function wt(n,t,i){return n^t^i}function bt(n,t,i){return t^(n|~i)}function s(n,t,i,r,u,f,e){return n=o(n,o(o(yt(t,i,r),u),e)),o(a(n,f),t)}function h(n,t,i,r,u,f,e){return n=o(n,o(o(pt(t,i,r),u),e)),o(a(n,f),t)}function c(n,t,i,r,u,f,e){return n=o(n,o(o(wt(t,i,r),u),e)),o(a(n,f),t)}function l(n,t,i,r,u,f,e){return n=o(n,o(o(bt(t,i,r),u),e)),o(a(n,f),t)}function kt(n){for(var r,u=n.length,o=u+8,s=(o-o%64)/64,e=(s+1)*16,i=Array(e-1),f=0,t=0;t&lt;u;)r=(t-t%4)/4,f=t%4*8,i[r]=i[r]|n.charCodeAt(t)&lt;&lt;f,t++;return r=(t-t%4)/4,f=t%4*8,i[r]=i[r]|128&lt;&lt;f,i[e-2]=u&lt;&lt;3,i[e-1]=u&gt;&gt;&gt;29,i}function v(n){for(var i="",r="",u,t=0;t&lt;=3;t++)u=n&gt;&gt;&gt;t*8&amp;255,r="0"+u.toString(16),i=i+r.substr(r.length-2,2);return i}function dt(n){var i,r,t;for(n=n.replace(/rn/g,"n"),i="",r=0;r&lt;n.length;r++)t=n.charCodeAt(r),t&lt;128?i+=String.fromCharCode(t):t&gt;127&amp;&amp;t&lt;2048?(i+=String.fromCharCode(t&gt;&gt;6|192),i+=String.fromCharCode(t&amp;63|128)):(i+=String.fromCharCode(t&gt;&gt;12|224),i+=String.fromCharCode(t&gt;&gt;6&amp;63|128),i+=String.fromCharCode(t&amp;63|128));return i}var e=Array(),f,ht,ct,lt,at,t,i,r,u,y=7,p=12,w=17,b=22,k=5,d=9,g=14,nt=20,tt=4,it=11,rt=16,ut=23,ft=6,et=10,ot=15,st=21,vt;for(n=dt(n),e=kt(n),t=1732584193,i=4023233417,r=2562383102,u=271733878,f=0;f&lt;e.length;f+=16)ht=t,ct=i,lt=r,at=u,t=s(t,i,r,u,e[f+0],y,3614090360),u=s(u,t,i,r,e[f+1],p,3905402710),r=s(r,u,t,i,e[f+2],w,606105819),i=s(i,r,u,t,e[f+3],b,3250441966),t=s(t,i,r,u,e[f+4],y,4118548399),u=s(u,t,i,r,e[f+5],p,1200080426),r=s(r,u,t,i,e[f+6],w,2821735955),i=s(i,r,u,t,e[f+7],b,4249261313),t=s(t,i,r,u,e[f+8],y,1770035416),u=s(u,t,i,r,e[f+9],p,2336552879),r=s(r,u,t,i,e[f+10],w,4294925233),i=s(i,r,u,t,e[f+11],b,2304563134),t=s(t,i,r,u,e[f+12],y,1804603682),u=s(u,t,i,r,e[f+13],p,4254626195),r=s(r,u,t,i,e[f+14],w,2792965006),i=s(i,r,u,t,e[f+15],b,1236535329),t=h(t,i,r,u,e[f+1],k,4129170786),u=h(u,t,i,r,e[f+6],d,3225465664),r=h(r,u,t,i,e[f+11],g,643717713),i=h(i,r,u,t,e[f+0],nt,3921069994),t=h(t,i,r,u,e[f+5],k,3593408605),u=h(u,t,i,r,e[f+10],d,38016083),r=h(r,u,t,i,e[f+15],g,3634488961),i=h(i,r,u,t,e[f+4],nt,3889429448),t=h(t,i,r,u,e[f+9],k,568446438),u=h(u,t,i,r,e[f+14],d,3275163606),r=h(r,u,t,i,e[f+3],g,4107603335),i=h(i,r,u,t,e[f+8],nt,1163531501),t=h(t,i,r,u,e[f+13],k,2850285829),u=h(u,t,i,r,e[f+2],d,4243563512),r=h(r,u,t,i,e[f+7],g,1735328473),i=h(i,r,u,t,e[f+12],nt,2368359562),t=c(t,i,r,u,e[f+5],tt,4294588738),u=c(u,t,i,r,e[f+8],it,2272392833),r=c(r,u,t,i,e[f+11],rt,1839030562),i=c(i,r,u,t,e[f+14],ut,4259657740),t=c(t,i,r,u,e[f+1],tt,2763975236),u=c(u,t,i,r,e[f+4],it,1272893353),r=c(r,u,t,i,e[f+7],rt,4139469664),i=c(i,r,u,t,e[f+10],ut,3200236656),t=c(t,i,r,u,e[f+13],tt,681279174),u=c(u,t,i,r,e[f+0],it,3936430074),r=c(r,u,t,i,e[f+3],rt,3572445317),i=c(i,r,u,t,e[f+6],ut,76029189),t=c(t,i,r,u,e[f+9],tt,3654602809),u=c(u,t,i,r,e[f+12],it,3873151461),r=c(r,u,t,i,e[f+15],rt,530742520),i=c(i,r,u,t,e[f+2],ut,3299628645),t=l(t,i,r,u,e[f+0],ft,4096336452),u=l(u,t,i,r,e[f+7],et,1126891415),r=l(r,u,t,i,e[f+14],ot,2878612391),i=l(i,r,u,t,e[f+5],st,4237533241),t=l(t,i,r,u,e[f+12],ft,1700485571),u=l(u,t,i,r,e[f+3],et,2399980690),r=l(r,u,t,i,e[f+10],ot,4293915773),i=l(i,r,u,t,e[f+1],st,2240044497),t=l(t,i,r,u,e[f+8],ft,1873313359),u=l(u,t,i,r,e[f+15],et,4264355552),r=l(r,u,t,i,e[f+6],ot,2734768916),i=l(i,r,u,t,e[f+13],st,1309151649),t=l(t,i,r,u,e[f+4],ft,4149444226),u=l(u,t,i,r,e[f+11],et,3174756917),r=l(r,u,t,i,e[f+2],ot,718787259),i=l(i,r,u,t,e[f+9],st,3951481745),t=o(t,ht),i=o(i,ct),r=o(r,lt),u=o(u,at);return vt=v(t)+v(i)+v(r)+v(u),vt.toLowerCase()},CryptoJS=CryptoJS||function(n,t){var h=Object.create||function(){function n(){}return function(t){var i;return n.prototype=t,i=new n,n.prototype=null,i}}(),u={},f=u.lib={},i=f.Base=function(){return{extend:function(n){var t=h(this);return n&amp;&amp;t.mixIn(n),t.hasOwnProperty("init")&amp;&amp;this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var n=this.extend();return n.init.apply(n,arguments),n},init:function(){},mixIn:function(n){for(var t in n)n.hasOwnProperty(t)&amp;&amp;(this[t]=n[t]);n.hasOwnProperty("toString")&amp;&amp;(this.toString=n.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),r=f.WordArray=i.extend({init:function(n,i){n=this.words=n||[];this.sigBytes=i!=t?i:n.length*4},toString:function(n){return(n||c).stringify(this)},concat:function(n){var u=this.words,f=n.words,i=this.sigBytes,r=n.sigBytes,e,t;if(this.clamp(),i%4)for(t=0;t&lt;r;t++)e=f[t&gt;&gt;&gt;2]&gt;&gt;&gt;24-t%4*8&amp;255,u[i+t&gt;&gt;&gt;2]|=e&lt;&lt;24-(i+t)%4*8;else for(t=0;t&lt;r;t+=4)u[i+t&gt;&gt;&gt;2]=f[t&gt;&gt;&gt;2];return this.sigBytes+=r,this},clamp:function(){var i=this.words,t=this.sigBytes;i[t&gt;&gt;&gt;2]&amp;=4294967295&lt;&lt;32-t%4*8;i.length=n.ceil(t/4)},clone:function(){var n=i.clone.call(this);return n.words=this.words.slice(0),n},random:function(t){for(var i,u=[],o=function(t){var t=t,i=987654321,r=4294967295;return function(){i=36969*(i&amp;65535)+(i&gt;&gt;16)&amp;r;t=18e3*(t&amp;65535)+(t&gt;&gt;16)&amp;r;var u=(i&lt;&lt;16)+t&amp;r;return u/=4294967296,u+=.5,u*(n.random()&gt;.5?1:-1)}},f=0,e;f&lt;t;f+=4)i=o((e||n.random())*4294967296),e=i()*987654071,u.push(i()*4294967296|0);return new r.init(u,t)}}),e=u.enc={},c=e.Hex={stringify:function(n){for(var r,u=n.words,f=n.sigBytes,i=[],t=0;t&lt;f;t++)r=u[t&gt;&gt;&gt;2]&gt;&gt;&gt;24-t%4*8&amp;255,i.push((r&gt;&gt;&gt;4).toString(16)),i.push((r&amp;15).toString(16));return i.join("")},parse:function(n){for(var i=n.length,u=[],t=0;t&lt;i;t+=2)u[t&gt;&gt;&gt;3]|=parseInt(n.substr(t,2),16)&lt;&lt;24-t%8*4;return new r.init(u,i/2)}},o=e.Latin1={stringify:function(n){for(var r,u=n.words,f=n.sigBytes,i=[],t=0;t&lt;f;t++)r=u[t&gt;&gt;&gt;2]&gt;&gt;&gt;24-t%4*8&amp;255,i.push(String.fromCharCode(r));return i.join("")},parse:function(n){for(var i=n.length,u=[],t=0;t&lt;i;t++)u[t&gt;&gt;&gt;2]|=(n.charCodeAt(t)&amp;255)&lt;&lt;24-t%4*8;return new r.init(u,i)}},l=e.Utf8={stringify:function(n){try{return decodeURIComponent(escape(o.stringify(n)))}catch(t){throw new Error("Malformed UTF-8 data");}},parse:function(n){return o.parse(unescape(encodeURIComponent(n)))}},s=f.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new r.init;this._nDataBytes=0},_append:function(n){typeof n=="string"&amp;&amp;(n=l.parse(n));this._data.concat(n);this._nDataBytes+=n.sigBytes},_process:function(t){var e=this._data,h=e.words,c=e.sigBytes,o=this.blockSize,a=o*4,u=c/a,i,s,f,l;if(u=t?n.ceil(u):n.max((u|0)-this._minBufferSize,0),i=u*o,s=n.min(i*4,c),i){for(f=0;f&lt;i;f+=o)this._doProcessBlock(h,f);l=h.splice(0,i);e.sigBytes-=s}return new r.init(l,s)},clone:function(){var n=i.clone.call(this);return n._data=this._data.clone(),n},_minBufferSize:0}),v=f.Hasher=s.extend({cfg:i.extend(),init:function(n){this.cfg=this.cfg.extend(n);this.reset()},reset:function(){s.reset.call(this);this._doReset()},update:function(n){return this._append(n),this._process(),this},finalize:function(n){n&amp;&amp;this._append(n);return this._doFinalize()},blockSize:16,_createHelper:function(n){return function(t,i){return new n.init(i).finalize(t)}},_createHmacHelper:function(n){return function(t,i){return new a.HMAC.init(n,i).finalize(t)}}}),a=u.algo={};return u}(Math),CryptoJS=CryptoJS||function(n,t){var u={},f=u.lib={},o=function(){},i=f.Base={extend:function(n){o.prototype=this;var t=new o;return n&amp;&amp;t.mixIn(n),t.hasOwnProperty("init")||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var n=this.extend();return n.init.apply(n,arguments),n},init:function(){},mixIn:function(n){for(var t in n)n.hasOwnProperty(t)&amp;&amp;(this[t]=n[t]);n.hasOwnProperty("toString")&amp;&amp;(this.toString=n.toString)},clone:function(){return this.init.prototype.extend(this)}},r=f.WordArray=i.extend({init:function(n,i){n=this.words=n||[];this.sigBytes=i!=t?i:4*n.length},toString:function(n){return(n||l).stringify(this)},concat:function(n){var i=this.words,r=n.words,u=this.sigBytes,t;if(n=n.sigBytes,this.clamp(),u%4)for(t=0;t&lt;n;t++)i[u+t&gt;&gt;&gt;2]|=(r[t&gt;&gt;&gt;2]&gt;&gt;&gt;24-8*(t%4)&amp;255)&lt;&lt;24-8*((u+t)%4);else if(65535&lt;r.length)for(t=0;t&lt;n;t+=4)i[u+t&gt;&gt;&gt;2]=r[t&gt;&gt;&gt;2];else i.push.apply(i,r);return this.sigBytes+=n,this},clamp:function(){var i=this.words,t=this.sigBytes;i[t&gt;&gt;&gt;2]&amp;=4294967295&lt;&lt;32-8*(t%4);i.length=n.ceil(t/4)},clone:function(){var n=i.clone.call(this);return n.words=this.words.slice(0),n},random:function(t){for(var i=[],u=0;u&lt;t;u+=4)i.push(4294967296*n.random()|0);return new r.init(i,t)}}),e=u.enc={},l=e.Hex={stringify:function(n){var u=n.words,i,t,r;for(n=n.sigBytes,i=[],t=0;t&lt;n;t++)r=u[t&gt;&gt;&gt;2]&gt;&gt;&gt;24-8*(t%4)&amp;255,i.push((r&gt;&gt;&gt;4).toString(16)),i.push((r&amp;15).toString(16));return i.join("")},parse:function(n){for(var i=n.length,u=[],t=0;t&lt;i;t+=2)u[t&gt;&gt;&gt;3]|=parseInt(n.substr(t,2),16)&lt;&lt;24-4*(t%8);return new r.init(u,i/2)}},s=e.Latin1={stringify:function(n){var r=n.words,i,t;for(n=n.sigBytes,i=[],t=0;t&lt;n;t++)i.push(String.fromCharCode(r[t&gt;&gt;&gt;2]&gt;&gt;&gt;24-8*(t%4)&amp;255));return i.join("")},parse:function(n){for(var i=n.length,u=[],t=0;t&lt;i;t++)u[t&gt;&gt;&gt;2]|=(n.charCodeAt(t)&amp;255)&lt;&lt;24-8*(t%4);return new r.init(u,i)}},a=e.Utf8={stringify:function(n){try{return decodeURIComponent(escape(s.stringify(n)))}catch(t){throw Error("Malformed UTF-8 data");}},parse:function(n){return s.parse(unescape(encodeURIComponent(n)))}},h=f.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new r.init;this._nDataBytes=0},_append:function(n){"string"==typeof n&amp;&amp;(n=a.parse(n));this._data.concat(n);this._nDataBytes+=n.sigBytes},_process:function(t){var f=this._data,s=f.words,u=f.sigBytes,e=this.blockSize,o=u/(4*e),o=t?n.ceil(o):n.max((o|0)-this._minBufferSize,0),i;if(t=o*e,u=n.min(4*t,u),t){for(i=0;i&lt;t;i+=e)this._doProcessBlock(s,i);i=s.splice(0,t);f.sigBytes-=u}return new r.init(i,u)},clone:function(){var n=i.clone.call(this);return n._data=this._data.clone(),n},_minBufferSize:0}),c;return f.Hasher=h.extend({cfg:i.extend(),init:function(n){this.cfg=this.cfg.extend(n);this.reset()},reset:function(){h.reset.call(this);this._doReset()},update:function(n){return this._append(n),this._process(),this},finalize:function(n){return n&amp;&amp;this._append(n),this._doFinalize()},blockSize:16,_createHelper:function(n){return function(t,i){return new n.init(i).finalize(t)}},_createHmacHelper:function(n){return function(t,i){return new c.HMAC.init(n,i).finalize(t)}}}),c=u.algo={},u}(Math);(function(n){for(var r,a,s,t,f=CryptoJS,i=f.lib,v=i.WordArray,e=i.Hasher,i=f.algo,h=[],c=[],l=function(n){return 4294967296*(n-(n|0))|0},o=2,u=0;64&gt;u;){n:{for(r=o,a=n.sqrt(r),s=2;s&lt;=a;s++)if(!(r%s)){r=!1;break n}r=!0}r&amp;&amp;(8&gt;u&amp;&amp;(h[u]=l(n.pow(o,.5))),c[u]=l(n.pow(o,1/3)),u++);o++}t=[];i=i.SHA256=e.extend({_doReset:function(){this._hash=new v.init(h.slice(0))},_doProcessBlock:function(n,i){for(var o,s,r=this._hash.words,f=r[0],h=r[1],l=r[2],y=r[3],e=r[4],a=r[5],v=r[6],p=r[7],u=0;64&gt;u;u++)16&gt;u?t[u]=n[i+u]|0:(o=t[u-15],s=t[u-2],t[u]=((o&lt;&lt;25|o&gt;&gt;&gt;7)^(o&lt;&lt;14|o&gt;&gt;&gt;18)^o&gt;&gt;&gt;3)+t[u-7]+((s&lt;&lt;15|s&gt;&gt;&gt;17)^(s&lt;&lt;13|s&gt;&gt;&gt;19)^s&gt;&gt;&gt;10)+t[u-16]),o=p+((e&lt;&lt;26|e&gt;&gt;&gt;6)^(e&lt;&lt;21|e&gt;&gt;&gt;11)^(e&lt;&lt;7|e&gt;&gt;&gt;25))+(e&amp;a^~e&amp;v)+c[u]+t[u],s=((f&lt;&lt;30|f&gt;&gt;&gt;2)^(f&lt;&lt;19|f&gt;&gt;&gt;13)^(f&lt;&lt;10|f&gt;&gt;&gt;22))+(f&amp;h^f&amp;l^h&amp;l),p=v,v=a,a=e,e=y+o|0,y=l,l=h,h=f,f=o+s|0;r[0]=r[0]+f|0;r[1]=r[1]+h|0;r[2]=r[2]+l|0;r[3]=r[3]+y|0;r[4]=r[4]+e|0;r[5]=r[5]+a|0;r[6]=r[6]+v|0;r[7]=r[7]+p|0},_doFinalize:function(){var r=this._data,t=r.words,u=8*this._nDataBytes,i=8*r.sigBytes;return t[i&gt;&gt;&gt;5]|=128&lt;&lt;24-i%32,t[(i+64&gt;&gt;&gt;9&lt;&lt;4)+14]=n.floor(u/4294967296),t[(i+64&gt;&gt;&gt;9&lt;&lt;4)+15]=u,r.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var n=e.clone.call(this);return n._hash=this._hash.clone(),n}});f.SHA256=e._createHelper(i);f.HmacSHA256=e._createHmacHelper(i)})(Math),function(){var n=CryptoJS,t=n.enc.Utf8;n.algo.HMAC=n.lib.Base.extend({init:function(n,i){var u,f;n=this._hasher=new n.init;"string"==typeof i&amp;&amp;(i=t.parse(i));u=n.blockSize;f=4*u;i.sigBytes&gt;f&amp;&amp;(i=n.finalize(i));i.clamp();for(var e=this._oKey=i.clone(),o=this._iKey=i.clone(),s=e.words,h=o.words,r=0;r&lt;u;r++)s[r]^=1549556828,h[r]^=909522486;e.sigBytes=o.sigBytes=f;this.reset()},reset:function(){var n=this._hasher;n.reset();n.update(this._iKey)},update:function(n){return this._hasher.update(n),this},finalize:function(n){var t=this._hasher;return n=t.finalize(n),t.reset(),t.finalize(this._oKey.clone().concat(n))}})}(),function(){var n=CryptoJS,t=n.lib.WordArray;n.enc.Base64={stringify:function(n){var i=n.words,u=n.sigBytes,f=this._map,t,e,r;for(n.clamp(),n=[],t=0;t&lt;u;t+=3)for(e=(i[t&gt;&gt;&gt;2]&gt;&gt;&gt;24-8*(t%4)&amp;255)&lt;&lt;16|(i[t+1&gt;&gt;&gt;2]&gt;&gt;&gt;24-8*((t+1)%4)&amp;255)&lt;&lt;8|i[t+2&gt;&gt;&gt;2]&gt;&gt;&gt;24-8*((t+2)%4)&amp;255,r=0;4&gt;r&amp;&amp;t+.75*r&lt;u;r++)n.push(f.charAt(e&gt;&gt;&gt;6*(3-r)&amp;63));if(i=f.charAt(64))for(;n.length%4;)n.push(i);return n.join("")},parse:function(n){var e=n.length,f=this._map,i=f.charAt(64),o,s;i&amp;&amp;(i=n.indexOf(i),-1!=i&amp;&amp;(e=i));for(var i=[],u=0,r=0;r&lt;e;r++)r%4&amp;&amp;(o=f.indexOf(n.charAt(r-1))&lt;&lt;2*(r%4),s=f.indexOf(n.charAt(r))&gt;&gt;&gt;6-2*(r%4),i[u&gt;&gt;&gt;2]|=(o|s)&lt;&lt;24-8*(u%4),u++);return t.create(i,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(){"use strict";function it(){var u=!1,n;if("localStorage"in window)try{window.localStorage.setItem("_tmptest","tmpval");u=!0;window.localStorage.removeItem("_tmptest")}catch(f){}if(u)try{window.localStorage&amp;&amp;(i=window.localStorage,r="localStorage",o=i.jStorage_update)}catch(e){}else if("globalStorage"in window)try{window.globalStorage&amp;&amp;(i=window.location.hostname=="localhost"?window.globalStorage["localhost.localdomain"]:window.globalStorage[window.location.hostname],r="globalStorage",o=i.jStorage_update)}catch(s){}else if(t=document.createElement("link"),t.addBehavior){t.style.behavior="url(#default#userData)";document.getElementsByTagName("head")[0].appendChild(t);try{t.load("jStorage")}catch(h){t.setAttribute("jStorage","{}");t.save("jStorage");t.load("jStorage")}n="{}";try{n=t.getAttribute("jStorage")}catch(l){}try{o=t.getAttribute("jStorage_update")}catch(a){}i.jStorage=n;r="userDataBehavior"}else{t=null;return}nt();y();rt();tt();"addEventListener"in window&amp;&amp;window.addEventListener("pageshow",function(n){n.persisted&amp;&amp;c()},!1)}function g(){var n="{}";if(r=="userDataBehavior"){t.load("jStorage");try{n=t.getAttribute("jStorage")}catch(u){}try{o=t.getAttribute("jStorage_update")}catch(f){}i.jStorage=n}nt();y();tt()}function rt(){r=="localStorage"||r=="globalStorage"?"addEventListener"in window?window.addEventListener("storage",c,!1):document.attachEvent("onstorage",c):r=="userDataBehavior"&amp;&amp;setInterval(c,1e3)}function c(){var n;clearTimeout(k);k=setTimeout(function(){if(r=="localStorage"||r=="globalStorage")n=i.jStorage_update;else if(r=="userDataBehavior"){t.load("jStorage");try{n=t.getAttribute("jStorage_update")}catch(u){}}n&amp;&amp;n!=o&amp;&amp;(o=n,ut())},25)}function ut(){var i=f.parse(f.stringify(n.__jstorage_meta.CRC32)),r,t,u,e;g();r=f.parse(f.stringify(n.__jstorage_meta.CRC32));u=[];e=[];for(t in i)if(i.hasOwnProperty(t)){if(!r[t]){e.push(t);continue}i[t]!=r[t]&amp;&amp;String(i[t]).substr(0,2)=="2."&amp;&amp;u.push(t)}for(t in r)r.hasOwnProperty(t)&amp;&amp;(i[t]||u.push(t));h(u,"updated");h(e,"deleted")}function h(n,t){var i,r,o,f,e;if(n=[].concat(n||[]),t=="flushed"){n=[];for(e in u)u.hasOwnProperty(e)&amp;&amp;n.push(e);t="deleted"}for(i=0,o=n.length;i&lt;o;i++){if(u[n[i]])for(r=0,f=u[n[i]].length;r&lt;f;r++)u[n[i]][r](n[i],t);if(u["*"])for(r=0,f=u["*"].length;r&lt;f;r++)u["*"][r](n[i],t)}}function l(){var n=(+new Date).toString();if(r=="localStorage"||r=="globalStorage")try{i.jStorage_update=n}catch(u){r=!1}else r=="userDataBehavior"&amp;&amp;(t.setAttribute("jStorage_update",n),t.save("jStorage"));c()}function nt(){if(i.jStorage)try{n=f.parse(String(i.jStorage))}catch(t){i.jStorage="{}"}else i.jStorage="{}";p=i.jStorage?String(i.jStorage).length:0;n.__jstorage_meta||(n.__jstorage_meta={});n.__jstorage_meta.CRC32||(n.__jstorage_meta.CRC32={})}function a(){et();try{i.jStorage=f.stringify(n);t&amp;&amp;(t.setAttribute("jStorage",i.jStorage),t.save("jStorage"));p=i.jStorage?String(i.jStorage).length:0}catch(r){}}function e(n){if(typeof n!="string"&amp;&amp;typeof n!="number")throw new TypeError("Key name must be string or numeric");if(n=="__jstorage_meta")throw new TypeError("Reserved key name");return!0}function y(){var u,t,i,f,r=Infinity,e=!1,o=[];if(clearTimeout(d),n.__jstorage_meta&amp;&amp;typeof n.__jstorage_meta.TTL=="object"){u=+new Date;i=n.__jstorage_meta.TTL;f=n.__jstorage_meta.CRC32;for(t in i)i.hasOwnProperty(t)&amp;&amp;(i[t]&lt;=u?(delete i[t],delete f[t],delete n[t],e=!0,o.push(t)):i[t]&lt;r&amp;&amp;(r=i[t]));r!=Infinity&amp;&amp;(d=setTimeout(y,Math.min(r-u,2147483647)));e&amp;&amp;(a(),l(),h(o,"deleted"))}}function tt(){var t,f,r,u,i;if(n.__jstorage_meta.PubSub){for(u=w,i=[],t=f=n.__jstorage_meta.PubSub.length-1;t&gt;=0;t--)r=n.__jstorage_meta.PubSub[t],r[0]&gt;w&amp;&amp;(u=r[0],i.unshift(r));for(t=i.length-1;t&gt;=0;t--)ft(i[t][1],i[t][2]);w=u}}function ft(n,t){if(s[n])for(var i=0,r=s[n].length;i&lt;r;i++)try{s[n][i](n,f.parse(f.stringify(t)))}catch(u){}}function et(){var i,t,r;if(n.__jstorage_meta.PubSub){for(i=+new Date-2e3,t=0,r=n.__jstorage_meta.PubSub.length;t&lt;r;t++)if(n.__jstorage_meta.PubSub[t][0]&lt;=i){n.__jstorage_meta.PubSub.splice(t,n.__jstorage_meta.PubSub.length-t);break}n.__jstorage_meta.PubSub.length||delete n.__jstorage_meta.PubSub}}function ot(t,i){n.__jstorage_meta||(n.__jstorage_meta={});n.__jstorage_meta.PubSub||(n.__jstorage_meta.PubSub=[]);n.__jstorage_meta.PubSub.unshift([+new Date,t,i]);a();l()}function st(n,t){for(var f=n.length,i=t^f,u=0,r;f&gt;=4;)r=n.charCodeAt(u)&amp;255|(n.charCodeAt(++u)&amp;255)&lt;&lt;8|(n.charCodeAt(++u)&amp;255)&lt;&lt;16|(n.charCodeAt(++u)&amp;255)&lt;&lt;24,r=(r&amp;65535)*1540483477+(((r&gt;&gt;&gt;16)*1540483477&amp;65535)&lt;&lt;16),r^=r&gt;&gt;&gt;24,r=(r&amp;65535)*1540483477+(((r&gt;&gt;&gt;16)*1540483477&amp;65535)&lt;&lt;16),i=(i&amp;65535)*1540483477+(((i&gt;&gt;&gt;16)*1540483477&amp;65535)&lt;&lt;16)^r,f-=4,++u;switch(f){case 3:i^=(n.charCodeAt(u+2)&amp;255)&lt;&lt;16;case 2:i^=(n.charCodeAt(u+1)&amp;255)&lt;&lt;8;case 1:i^=n.charCodeAt(u)&amp;255;i=(i&amp;65535)*1540483477+(((i&gt;&gt;&gt;16)*1540483477&amp;65535)&lt;&lt;16)}return i^=i&gt;&gt;&gt;13,i=(i&amp;65535)*1540483477+(((i&gt;&gt;&gt;16)*1540483477&amp;65535)&lt;&lt;16),i^=i&gt;&gt;&gt;15,i&gt;&gt;&gt;0}var v=window.jQuery||window.$||(window.$={}),f={parse:window.JSON&amp;&amp;(window.JSON.parse||window.JSON.decode)||String.prototype.evalJSON&amp;&amp;function(n){return String(n).evalJSON()}||v.parseJSON||v.evalJSON,stringify:Object.toJSON||window.JSON&amp;&amp;(window.JSON.stringify||window.JSON.encode)||v.toJSON};if(typeof f.parse!="function"||typeof f.stringify!="function")throw new Error("No JSON support found, include //cdnjs.cloudflare.com/ajax/libs/json2/20110223/json2.js to page");var n={__jstorage_meta:{CRC32:{}}},i={jStorage:"{}"},t=null,p=0,r=!1,u={},k=!1,o=0,s={},w=+new Date,d,b={isXML:function(n){var t=(n?n.ownerDocument||n:0).documentElement;return t?t.nodeName!=="HTML":!1},encode:function(n){if(!this.isXML(n))return!1;try{return(new XMLSerializer).serializeToString(n)}catch(t){try{return n.xml}catch(i){}}return!1},decode:function(n){var i="DOMParser"in window&amp;&amp;(new DOMParser).parseFromString||window.ActiveXObject&amp;&amp;function(n){var t=new ActiveXObject("Microsoft.XMLDOM");return t.async="false",t.loadXML(n),t},t;return i?(t=i.call("DOMParser"in window&amp;&amp;new DOMParser||window,n,"text/xml"),this.isXML(t)?t:!1):!1}};v.jStorage={version:"0.4.12",set:function(t,i,r){if(e(t),r=r||{},typeof i=="undefined")return this.deleteKey(t),i;if(b.isXML(i))i={_is_xml:!0,xml:b.encode(i)};else{if(typeof i=="function")return undefined;i&amp;&amp;typeof i=="object"&amp;&amp;(i=f.parse(f.stringify(i)))}return n[t]=i,n.__jstorage_meta.CRC32[t]="2."+st(f.stringify(i),2538058380),this.setTTL(t,r.TTL||0),h(t,"updated"),i},get:function(t,i){return(e(t),t in n)?n[t]&amp;&amp;typeof n[t]=="object"&amp;&amp;n[t]._is_xml?b.decode(n[t].xml):n[t]:typeof i=="undefined"?null:i},deleteKey:function(t){return(e(t),t in n)?(delete n[t],typeof n.__jstorage_meta.TTL=="object"&amp;&amp;t in n.__jstorage_meta.TTL&amp;&amp;delete n.__jstorage_meta.TTL[t],delete n.__jstorage_meta.CRC32[t],a(),l(),h(t,"deleted"),!0):!1},setTTL:function(t,i){var r=+new Date;return(e(t),i=Number(i)||0,t in n)?(n.__jstorage_meta.TTL||(n.__jstorage_meta.TTL={}),i&gt;0?n.__jstorage_meta.TTL[t]=r+i:delete n.__jstorage_meta.TTL[t],a(),y(),l(),!0):!1},getTTL:function(t){var r=+new Date,i;return(e(t),t in n&amp;&amp;n.__jstorage_meta.TTL&amp;&amp;n.__jstorage_meta.TTL[t])?(i=n.__jstorage_meta.TTL[t]-r,i||0):0},flush:function(){return n={__jstorage_meta:{CRC32:{}}},a(),l(),h(null,"flushed"),!0},storageObj:function(){function t(){}return t.prototype=n,new t},index:function(){var i=[];for(var t in n)n.hasOwnProperty(t)&amp;&amp;t!="__jstorage_meta"&amp;&amp;i.push(t);return i},storageSize:function(){return p},currentBackend:function(){return r},storageAvailable:function(){return!!r},listenKeyChange:function(n,t){e(n);u[n]||(u[n]=[]);u[n].push(t)},stopListening:function(n,t){if(e(n),u[n]){if(!t){delete u[n];return}for(var i=u[n].length-1;i&gt;=0;i--)u[n][i]==t&amp;&amp;u[n].splice(i,1)}},subscribe:function(n,t){if(n=(n||"").toString(),!n)throw new TypeError("Channel not defined");s[n]||(s[n]=[]);s[n].push(t)},publish:function(n,t){if(n=(n||"").toString(),!n)throw new TypeError("Channel not defined");ot(n,t)},reInit:function(){g()},noConflict:function(n){return delete window.$.jStorage,n&amp;&amp;(window.jStorage=this),this}};it()}(),function(n){n.fn.viewportChecker=function(t){var i={classToAdd:"visible",classToRemove:"invisible",classToAddForFullView:"full-visible",removeClassAfterAnimation:!1,offset:100,repeat:!1,invertBottomOffset:!0,callbackFunction:function(){},scrollHorizontal:!1,callbackFunctionBeforeAddClass:null,scrollBox:window},u,r;if(n.extend(i,t),u=this,r={height:n(i.scrollBox).height(),width:n(i.scrollBox).width()},this.checkElements=function(){var t,f;i.scrollHorizontal?(t=Math.max(n("html").scrollLeft(),n("body").scrollLeft(),n(window).scrollLeft()),f=t+r.width):(t=Math.max(n("html").scrollTop(),n("body").scrollTop(),n(window).scrollTop()),f=t+r.height);u.each(function(){var u=n(this),e={},o={};if(u.data("vp-add-class")&amp;&amp;(o.classToAdd=u.data("vp-add-class")),u.data("vp-remove-class")&amp;&amp;(o.classToRemove=u.data("vp-remove-class")),u.data("vp-add-class-full-view")&amp;&amp;(o.classToAddForFullView=u.data("vp-add-class-full-view")),u.data("vp-keep-add-class")&amp;&amp;(o.removeClassAfterAnimation=u.data("vp-remove-after-animation")),u.data("vp-offset")&amp;&amp;(o.offset=u.data("vp-offset")),u.data("vp-repeat")&amp;&amp;(o.repeat=u.data("vp-repeat")),u.data("vp-scrollHorizontal")&amp;&amp;(o.scrollHorizontal=u.data("vp-scrollHorizontal")),u.data("vp-invertBottomOffset")&amp;&amp;(o.scrollHorizontal=u.data("vp-invertBottomOffset")),n.extend(e,i),n.extend(e,o),!u.data("vp-animated")||e.repeat){String(e.offset).indexOf("%")&gt;0&amp;&amp;(e.offset=parseInt(e.offset)/100*r.height);var s=e.scrollHorizontal?u.offset().left:u.offset().top,l=e.scrollHorizontal?s+u.width():s+u.height(),h=Math.round(s)+e.offset,c=e.scrollHorizontal?h+u.width():h+u.height();if(e.invertBottomOffset&amp;&amp;(c-=e.offset*2),h&lt;f&amp;&amp;c&gt;t){if(i.callbackFunctionBeforeAddClass(u),u.removeClass(e.classToRemove),u.addClass(e.classToAdd),e.callbackFunction(u,"add"),l&lt;=f&amp;&amp;s&gt;=t?u.addClass(e.classToAddForFullView):u.removeClass(e.classToAddForFullView),u.data("vp-animated",!0),e.removeClassAfterAnimation)u.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){u.removeClass(e.classToAdd)})}else u.hasClass(e.classToAdd)&amp;&amp;e.repeat&amp;&amp;(u.removeClass(e.classToAdd+" "+e.classToAddForFullView),e.callbackFunction(u,"remove"),u.data("vp-animated",!1))}})},this.destroy=function(){("ontouchstart"in window||"onmsgesturechange"in window)&amp;&amp;n(document).off("touchmove MSPointerMove pointermove",this.checkElements);n(i.scrollBox).off("load scroll",this.checkElements)},"ontouchstart"in window||"onmsgesturechange"in window)n(document).on("touchmove MSPointerMove pointermove",this.checkElements);n(i.scrollBox).on("load scroll",this.checkElements);return n(window).resize(function(){r={height:n(i.scrollBox).height(),width:n(i.scrollBox).width()};u.checkElements()}),this.checkElements(),this}}(jQuery),function(n){n.fn.jalert=function(t){var i=this,f=n('&lt;div class="alert alert-dismissible" role="alert"&gt;&lt;button type="button" class="close" data-dismiss="alert" aria-label="Close"&gt;&lt;span aria-hidden="true"&gt;&amp;times;&lt;\/span&gt;&lt;\/button&gt;&lt;span&gt;&lt;\/span&gt;&lt;\/div&gt;'),e=n.extend({},{type:"success",useTitles:!1},t),r=function(n){f.find("&gt; span").html(n);i.append(f)},u=function(n){var t=n=="error"?"danger":n;f.addClass("alert-"+t)};return this.error=function(n){return r(n),u("error"),i},this.success=function(n){return r(n),u("success"),i},this.info=function(n){return r(n),u("info"),i},this.warning=function(n){return r(n),u("warning"),i},this.hide=function(n){return i.slideUp(n),i},this.show=function(){return i.css("display","none"),i.removeClass("hide fade"),i.slideDown(),i},this.autohide=function(n){setTimeout(function(){i.slideUp()},n?n:5e3)},this}}(jQuery),function(n){n.fn.loader=function(t){var r=this,u=n.extend({},{location:"in",img:'&lt;img src="https://cdn.mg2connext.com/prod/template_images/ajax-loader.gif" style="margin: 7px auto" /&gt;',loaderId:"loader"},t),f=n(u.img).prop("id",u.loaderId),e,i;return this.on=function(){try{i=r.children("span").length?r.children("span"):r;e=i.html();i[0].hasAttribute("data-mg2-submit")&amp;&amp;i.attr("data-mg2-submit","");u.location=="in"&amp;&amp;i.html(f)}catch(n){}},this.off=function(){try{i[0].hasAttribute("data-mg2-submit")&amp;&amp;i.attr("data-mg2-submit","login");i.html(e);f.remove()}catch(n){}},this}}(jQuery);!function(){function n(n,t){t=t||{bubbles:!1,cancelable:!1,detail:undefined};var i=document.createEvent("CustomEvent");return i.initCustomEvent(n,t.bubbles,t.cancelable,t.detail),i}if(typeof window.CustomEvent=="function")return!1;n.prototype=window.Event.prototype;window.CustomEvent=n}();var ConnextADBlockDetector=function(n){function e(){o();n.when(s(),h()).then(function(){u().then(function(n){n?CnnXt.Event.fire("onAdblockFound",null):setTimeout(function(){u().then(function(n){n&amp;&amp;CnnXt.Event.fire("onAdblockFound",null)})},2500)})})}function o(){var n;CnnXt.Logger.debug(r,"loadADElement","Load html element for checking AD Blocker");n=document.createElement("div");n.innerHTML="&amp;nbsp;";n.className="adsbox";n.id="TestAdBlock";n.style.position="absolute";n.style.bottom="0px";n.style.zIndex="-1";document.body.appendChild(n)}function s(){CnnXt.Logger.debug(r,"loadADImg","Load IMG for checking AD Blocker");var i=document.createElement("IMG");return t=n.Deferred(),i.id="06db9294",i.style.width="100px",i.style.height="100px",i.style.top="-1000px",i.style.left="-1000px",i.style.position="absolute",document.body.appendChild(i),i.src="//asset.pagefair.com/adimages/textlink-ads.jpg",i.onload=function(){t.state()==="pending"&amp;&amp;t.resolve({loaded:!0})},i.onerror=function(){t.state()==="pending"&amp;&amp;t.resolve({failed:!0})},setTimeout(function(){t.state()==="pending"&amp;&amp;t.resolve({timeOut:!0})},f),t.promise()}function h(){CnnXt.Logger.debug(r,"loadADScript","Load script for checking AD Blocker");var t=document.createElement("SCRIPT");return i=n.Deferred(),t.id="295f89b1",t.type="text/javascript",document.getElementsByTagName("head")[0].appendChild(t),t.src="//d1wa9546y9kg0n.cloudfront.net/index.js",t.onload=function(){t.className="adstestloaded";i.state()==="pending"&amp;&amp;i.resolve({loaded:!0})},t.onerror=function(){i.state()==="pending"&amp;&amp;i.resolve({failed:!0})},setTimeout(function(){i.state()==="pending"&amp;&amp;i.resolve({timeOut:!0})},f),i.promise()}function u(){var u=!1,f=n.Deferred();return n.when(t.promise(),i.promise()).then(function(n,t){var o=document.getElementById("TestAdBlock"),i,e;o.offsetHeight===0&amp;&amp;(u=!0);i=document.getElementById("06db9294");n.timeOut||i.offsetHeight!==0||(u=!0);e=document.getElementById("295f89b1");t.timeOut||e.className==="adstestloaded"||(u=!0);CnnXt.Logger.debug(r,"detectAdBlock","detected: ",u);f.resolve(u)}),f.promise()}var r="ADBlockDetector",t,i,f;return{init:e,detectAdBlock:u}},CalculatorQualifiers=function(n){function st(i){var u="evalArticleAge",r=n.Deferred(),f,e;try{CnnXt.Logger.debug(t,u,"--- Testing ---",i);f=kt(i.Options);e=i.Options.Qualifier;eval(f+e+i.Options.Val)?r.resolve():r.reject()}catch(o){CnnXt.Logger.exception(t,u,o);r.reject(!1)}return r.promise()}function h(i){var u="evalUrlParam",r=n.Deferred();try{CnnXt.Logger.debug(t,u,"--- Testing ---",i);var f=i.Qualifier||i.Options.Qualifier,o=i.Value||i.Options.Val,s=i.Eval||i.Options.ParamName,e=CnnXt.Utils.GetUrlParam(s);e!=null?eval("'"+e.toUpperCase()+"'"+CnnXt.Common.QualifierMap[f]+"'"+o.toUpperCase()+"'")?r.resolve():r.reject():CnnXt.Common.QualifierMap[f]==="=="?r.reject():r.resolve()}catch(h){CnnXt.Logger.exception(t,u,h);r.reject()}return r.promise()}function c(i){var u="evalHiddenField",r=n.Deferred();try{CnnXt.Logger.debug(t,u,"--- Testing ---",i);var f=!0,e=i.Qualifier||i.Options.Qualifier,o=i.Val||i.Options.Val,s=i.Id||i.Options.Selector;CnnXt.Utils.JSEvaluate(CnnXt.Utils.GetHiddenFormFieldValue(s),e,o,"HiddenFormField")||(f=!1);f?r.resolve():r.reject()}catch(h){CnnXt.Logger.exception(t,u,h);r.reject()}return r.promise()}function l(i){var f="evalSubdomain",r=n.Deferred();try{CnnXt.Logger.debug(t,f,"--- Testing ---",i);var u=i.Options||i,o=u.Value||u.Val,s=window.location.hostname.toUpperCase(),e=u.Qualifier.toUpperCase();(e==="IN"||e==="==")^s.split(".").reverse().indexOf(o.toUpperCase())&gt;1?r.reject():r.resolve()}catch(h){CnnXt.Logger.exception(t,f,h);r.reject()}return r.promise()}function a(i){var u="evalGeo",r=n.Deferred(),s;try{CnnXt.Logger.debug(t,u,"--- Testing ---",i);var f=!1,e=CnnXt.Storage.GetActualZipCodes(),o=i.Type||i.Options.GeoQalifier,h=i.Zip||i.Options.Zipcodes,c=h.replace(" ","").split(","),l=function(n,t){for(var f,r,e,o,u,i=0;i&lt;t.length;i++)for(f=(t[i].length===3?t[i]+"***":t[i]).toLowerCase(),r=0;r&lt;n.length;r++)if(e=(n[r].length===3?n[r]+"***":n[r]).toLowerCase(),f.length===e.length){for(o=!0,u=0;u&lt;f.length;u++)if(f[u]!=="*"&amp;&amp;f[u]!==e[u]){o=!1;break}if(o)return!0}return!1};e&amp;&amp;o!==undefined&amp;&amp;(s=l(e,c),f=!(s^{In:"==","Not In":"!=","==":"==","!=":"!="}[o]==="=="))}catch(a){CnnXt.Logger.exception(t,u,a);r.reject(!1)}return f?r.resolve():r.reject(),r.promise()}function e(r){var v="evalJSVar",a=n.Deferred(),p,c,w,l;try{CnnXt.Logger.debug(t,v,"--- Testing ---",r);var e=!0,h=r.Options||r,b=h.Eval||h.VarName,u=h.Qualifier,s=h.Val,f;try{f=eval(b)}catch(y){CnnXt.Logger.warn(t,v,y);a.reject()}n.isArray(f)?(f=f.map(function(n){return n.toString().trim().toLowerCase()}),e=u===i.Contains||u===i.DoesNotContain?o(f,s)?u===i.Contains:u===i.DoesNotContain:u===i.In||u===i.NotIn?u===i.NotIn:u===i.StartWith?nt(f,s):u===i.EndWith?tt(f,s):!1):((f===0||f)&amp;&amp;(f=f.toString().toLowerCase()),u===i.Contains||u===i.DoesNotContain?f===undefined?e=u===i.DoesNotContain:(c=h.Delimiter,c!=="."&amp;&amp;(c=c?new RegExp(c.replace(/space/g," "),"g"):/[ ,;]/g),p=f.split(c),e=o(p,s)?u===i.Contains:u===i.DoesNotContain):u===i.In||u===i.NotIn?f===undefined?e=u===i.NotIn:(l=h.Delimiter,l!=="."&amp;&amp;(l=l?new RegExp(l.replace(/space/g," "),"g"):/[ ,;]/g),w=s.split(l),e=o(w,f)?u===i.In:u===i.NotIn):u===i.StartWith?e=nt(f,s):u===i.EndWith?e=tt(f,s):CnnXt.Utils.JSEvaluate(f,u,s,"JavascriptCriteria")||(e=!1));e?a.resolve():a.reject()}catch(y){CnnXt.Logger.exception(t,v,y);a.reject()}return a.promise()}function v(i){var f="evalUserState",r=n.Deferred();try{CnnXt.Logger.debug(t,f,"--- Testing ---",i);var e=!0,u=CnnXt.User.getUserState(),o=i.Qualifier||i.Options.Qualifier,s=i.Value||i.Options["User State"];u==null&amp;&amp;(u="Logged Out");CnnXt.Utils.JSEvaluate(u,o,s,"UserStateCriteria")||(e=!1);e?r.resolve():r.reject()}catch(h){CnnXt.Logger.exception(t,f,h);r.reject()}return r.promise()}function y(i){var u="evalAdBlock",r=n.Deferred();return CnnXt.Logger.debug(t,u,"--- Testing ---",i),CnnXt.ADBlockDetector.detectAdBlock().then(function(n){try{var f=i.Value||i.Options["Ad Block"];f==="Detected"^n?r.reject():r.resolve()}catch(e){CnnXt.Logger.exception(t,u,e);r.reject()}}),r.promise()}function p(i){var u="evalUrlMask",r=n.Deferred();try{CnnXt.Logger.debug(t,u,"--- Testing ---",i);var f=!1,e=i.Qualifier||i.Options.Qualifier,h=i.Value||i.Options.Val,o=window.location.href.replace(/#$/,""),s=h.replace(/\*$/,"");f=~o.indexOf(s)&amp;&amp;e==="=="?!0:~o.indexOf(s)||e!=="!="?!1:!0;f?r.resolve():r.reject()}catch(c){CnnXt.Logger.exception(t,u,c);r.reject()}return r.promise()}function w(i){var e="evalMeta",u=n.Deferred(),f;try{CnnXt.Logger.debug(t,e,"--- Testing ---",i);var r=!1,o=i.Value||i.Options.Val,s=i.Qualifier||i.Options.Qualifier,h=CnnXt.Utils.getMetaTagsWithKeywords(),c="\\b"+o+"\\b",l=new RegExp(c);for(f=0;f&lt;h.length;f++)if(l.test(h[f].content)){CnnXt.Logger.debug(t,e,"Found keyword",o);r=!0;break}r&amp;&amp;CnnXt.Common.QualifierMap[s]==="!="?r=!1:r||(r=CnnXt.Common.QualifierMap[s]==="!=");r?u.resolve():u.reject()}catch(a){CnnXt.Logger.exception(t,e,a);u.reject()}return u.promise()}function b(i){var f="evalFlittzStatus",r=n.Deferred(),e;try{CnnXt.Logger.debug(t,f,"--- Testing ---",i);var u=!0,o=i.Qualifier||i.Options.Qualifier,s=i.Value||i.Options["Flittz Status"];CnnXt.GetOptions().integrateFlittz&amp;&amp;window.Flittz?(e=window.Flittz.FlittzUserStatus,CnnXt.Utils.JSEvaluate(CnnXt.Common.FlittzStatusesMap[e],o,s.toLocaleLowerCase(),"FlittzStatusCriteria")||(u=!1)):u=!1;u?r.resolve():r.reject()}catch(h){CnnXt.Logger.exception(t,f,h);r.reject()}return r.promise()}function k(i){var u="evalDeviceType",r=n.Deferred();CnnXt.Logger.debug(t,u,"Checking ScreenSizeCriteria: ",i);try{var f=!0,e=i.Qualifier||i.Options.Qualifier,o=i.Value||i.Options.Value;CnnXt.Utils.JSEvaluate(CnnXt.Utils.getDeviceType(),e,o,"ScreenSizeCriteria")||(f=!1);f?r.resolve():r.reject();CnnXt.Logger.debug(t,u,"Criteria was "+(f?"":"not")+" passed",i)}catch(s){CnnXt.Logger.exception(t,u,s);r.reject()}return r.promise()}function ht(i){var e="evalEZPay",u=n.Deferred(),o,r,f,s;CnnXt.Logger.debug(t,e,"Checking EZPayCriteria",i);try{o=CnnXt.User.getUserState();r=!0;o!=="Logged Out"?(f=CnnXt.Storage.GetUserData(),f&amp;&amp;f.Subscriptions?(s=f.Subscriptions.OwnedSubscriptions[0],s.IsEZPay.toString()!==i.Value&amp;&amp;(r=!1)):r=!1):r=!1;r?u.resolve():u.reject();CnnXt.Logger.debug(t,e,"Criteria was "+(r?"":"not")+" passed",i)}catch(h){CnnXt.Logger.exception(t,e,h);u.reject()}return u.promise()}function ct(i){var e="evalExpireDate",u=n.Deferred(),s,r,f,o,h;CnnXt.Logger.debug(t,e,"Checking ExpireDateCriteria",i);try{s=CnnXt.User.getUserState();r=!0;s!=="Logged Out"?(f=CnnXt.Storage.GetUserData(),f&amp;&amp;f.Subscriptions?(o=f.Subscriptions.OwnedSubscriptions[0],o.ExpirationDate&amp;&amp;(h=CnnXt.Utils.dateDiff(o.ExpirationDate,i.Type),CnnXt.Utils.JSEvaluate(h,i.Qualifier,i.Value,"ExpireDateCriteria")||(r=!1))):r=!1):r=!1;r?u.resolve():u.reject();CnnXt.Logger.debug(t,e,"Criteria was "+(r?"":"not")+" passed",i)}catch(c){CnnXt.Logger.exception(t,e,c);u.reject()}return u.promise()}function lt(i,r){var s="evalMeterView",f=n.Deferred(),e,o;try{var u=!0,c=CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.connext_viewstructure),l=CnnXt.Common.ConvoArticleCountObj.article_count,h=CnnXt.Storage.GetCookie(c);h?(CnnXt.Logger.debug(t,s,"Checking MeterViewsCriteria",i),o=JSON.parse(h),__.isEmpty(o)?(e=0,CnnXt.Utils.JSEvaluate(e,i.Qualifier,i.Val,"MeterViewsCriteria")||(u=!1)):o[r.meterId]?(e=o[r.meterId]["_"+l],CnnXt.Utils.JSEvaluate(e,i.Qualifier,i.Val,"MeterViewsCriteria")||(u=!1)):u=!1,CnnXt.Logger.debug(t,s,"Criteria was "+(u?"":"not")+" passed",i)):u=!1;u?f.resolve():f.reject()}catch(a){CnnXt.Logger.exception(t,s,a);f.reject()}return f.promise()}function at(i,r){var s="evalConversationView",f=n.Deferred(),e,o,h;try{var l=CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.connext_viewstructure),a=CnnXt.Common.ConvoArticleCountObj.article_count,c=CnnXt.Storage.GetCookie(l),u=!0;c?(CnnXt.Logger.debug(t,s,"Checking ConversationViewsCriteria",i),o=JSON.parse(c),__.isEmpty(o)?(e=0,CnnXt.Utils.JSEvaluate(e,i.Qualifier,i.Val,"MeterViewsCriteria")||(u=!1)):o[r.meterId]?(h=o[r.meterId][r.conversationId],h?(e=h[a],CnnXt.Utils.JSEvaluate(e,i.Qualifier,i.Val,"ConversationViewsCriteria")||(u=!1)):u=!1):u=!1,CnnXt.Logger.debug(t,s,"Criteria was "+(u?"":"not")+" passed",i)):u=!1;u?f.resolve():f.reject()}catch(v){CnnXt.Logger.exception(t,s,v);f.reject()}return f.promise()}function d(i){var u="evalIncognitoMode",f=n.Deferred(),r;try{if(CnnXt.Logger.debug(t,u,"Checking Incognito mode",i),i&amp;&amp;i.Options&amp;&amp;i.Options.Val?r=(""+i.Options.Val).toLowerCase():i&amp;&amp;i.Val&amp;&amp;(r=(""+i.Val).toLowerCase()),r!=="detected"&amp;&amp;r!=="not detected")throw"unknown option value "+r;CnnXt.Utils.DetectIncognitoMode().done(function(n){n===(r==="detected")?(CnnXt.Logger.debug(t,u,"Option passed",i),f.resolve()):(CnnXt.Logger.debug(t,u,"Option not passed",i),f.reject())}).fail(function(){CnnXt.Logger.debug(t,u,"Option not passed",i);f.reject()})}catch(e){CnnXt.Logger.exception(t,u,e);f.reject()}return f.promise()}function g(i,r){var u="evalPromise",o=null,e=n.Deferred(),s,h;try{CnnXt.Logger.debug(t,u,"Setup promise",i);f.push(e);try{s=eval(i.Name||i.Options.PromiseName)}catch(c){CnnXt.Logger.warn(t,u,c);e.reject()}r&amp;&amp;(o=setTimeout(function(){CnnXt.Logger.debug(t,u,"promise rejected on timeout");e.reject()},r));h=function(n){CnnXt.Logger.debug(t,u,"Promise resolved with value: ",n);var s=i.Qualifier||i.Options.Qualifier,r=i.Value?i.Value:i.Options&amp;&amp;i.Options.Val?i.Options.Val:undefined,f=i.Name||i.Options.PromiseName;n=__.isString(n)?(""+n).toLowerCase():n;r=__.isString(r)?(""+r).toLowerCase():r;o&amp;&amp;clearTimeout(o);CnnXt.Utils.JSEvaluate(n,s,r,"Promise")?(CnnXt.Logger.debug(t,u,"promise "+f+" passed"),e.resolve()):(CnnXt.Logger.debug(t,u,"promise "+f+" not passed"),e.reject())};s&amp;&amp;__.isFunction(s.done)&amp;&amp;__.isFunction(s.fail)?s.done(h).fail(function(){o&amp;&amp;clearTimeout(o);CnnXt.Logger.debug(t,u,"Promise rejected",i);e.reject()}):h(s)}catch(c){o&amp;&amp;clearTimeout(o);CnnXt.Logger.exception(t,u,c);e.reject()}return e.promise()}function vt(i){var u="evalTime",r=n.Deferred();const f=i.expirationDate;try{var e=CnnXt.Utils.Now(),o=new Date(Date.parse(f)),s=e&gt;=o;s&amp;&amp;(CnnXt.Logger.debug(t,u,"Current conversation has expired base on date..."),r.resolve(i))}catch(h){CnnXt.Logger.exception(t,u,h);r.reject()}return r.reject(),r.promise()}function yt(i){var u="evalConvoUserState",r=n.Deferred();try{for(let n=0;n&lt;i.length;n++){const t=i[n];t["User State"]===CnnXt.User.getUserState()&amp;&amp;r.resolve(t)}}catch(f){CnnXt.Logger.exception(t,u,f);r.reject()}return r.reject(),r.promise()}function pt(i){var u="evalRegister",r=n.Deferred();try{for(let n=0;n&lt;i.length;n++)CnnXt.GetOptions().integrateFlittz&amp;&amp;window.Flittz&amp;&amp;window.Flittz.FlittzUserStatus==="FlittzLoggedIn"&amp;&amp;r.resolve(i[n])}catch(f){CnnXt.Logger.exception(t,u,f);r.reject()}return r.reject(),r.promise()}function wt(i){var u="evalConvoFlittzStatus",r=n.Deferred();try{for(let n=0;n&lt;i.length;n++){const t=i[n];let u=t["Flittz Status"];if(CnnXt.GetOptions().integrateFlittz&amp;&amp;window.Flittz){let n=CnnXt.Common.FlittzStatusesMap[window.Flittz.FlittzUserStatus];u===n&amp;&amp;r.resolve(t)}}}catch(f){CnnXt.Logger.exception(t,u,f);r.reject()}return r.reject(),r.promise()}function bt(i){var f="evalConvoJsVar",r=n.Deferred(),u;try{for(let n=0;n&lt;i.length;n++){const t=i[n];u={VarName:t.JSVarName,Qualifier:t.JSVarQualifier,Val:t.JSVarValue,Delimiter:t.JSVarDelimiter};e(u).done(function(){r.resolve(t)})}}catch(o){CnnXt.Logger.exception(t,f,o);r.reject()}return r.reject(),r.promise()}function kt(i){var u="getArticleAge",f;try{if(CnnXt.Logger.debug(t,u,i),__.isNumber(r.articleAge)&amp;&amp;!isNaN(r.articleAge))return CnnXt.Logger.debug(t,u,"Article Age Already Deterimed...using Cached value"),r.articleAge;f=i.Selector.indexOf("$")&gt;-1?eval(i.Selector):n(i.Selector).text();CnnXt.Logger.debug(t,u,"articleDateData",f);var o=__.isNothing(i.Format)?CnnXt.Common.DefaultArticleFormat:i.Format,s=CnnXt.Utils.ParseCustomDates(f,o),h=CnnXt.Utils.Now(),e;return CnnXt.Logger.debug(t,u,"Using Format: ",o),e=CnnXt.Utils.Diff(h,s),CnnXt.Logger.debug(t,u,"Date Used for Compare: "+f,"Article Age In Days:: ("+e+")"),r.articleAge=e,r.articleAge}catch(c){return CnnXt.Logger.exception(t,u,c),!1}}function o(n,t){return n.indexOf(t.toLowerCase())&gt;=0}function nt(n,t){return Array.isArray(n)?t.toLowerCase()==n[0]:typeof n=="string"?n.toLowerCase().indexOf(t.toLowerCase())===0:!1}function tt(n,t){if(Array.isArray(n))return t.toLowerCase()==n[n.length-1];if(typeof n=="string"){var i=n.length-t.length,r=n.toLowerCase().indexOf(t,i);return r!==-1&amp;&amp;r===i}return!1}var t="CalculatorQualifiers",s={ArticleAge:st,HiddenField:c,Subdomain:l,Geo:a,Url:h,JSVar:e,Meta:w,UserState:v,AdBlock:y,URLMask:p,FlittzStatus:b,Promise:g,IncognitoMode:d,DeviceType:k},u={HiddenFieldCriteria:c,GeoCriteria:a,JavascriptCriteria:e,ScreenSizeCriteria:k,UrlCriteria:h,URLMaskCriteria:p,SubDomainCriteria:l,MetaKeywordCriteria:w,UserStateCriteria:v,AdBlockCriteria:y,FlittzStatusCriteria:b,EZPayCriteria:ht,ExpireDateCriteria:ct,MeterViewsCriteria:lt,ConversationViewsCriteria:at,PromiseCriteria:g,IncognitoModeCriteria:d},it={Time:vt,UserState:yt,Register:pt,FlittzStatus:wt,JSVar:bt},i={Contains:"Contains",DoesNotContain:"Does Not Contain",In:"In",NotIn:"Not In",StartWith:"Start With",EndWith:"End With"},r={},f=[],rt=function(i){var r="calculateMeterLevel",u=n.Deferred();try{CnnXt.Logger.debug(t,r,"Calculating meter level....",i);n.each(i,function(i,u){CnnXt.Logger.debug(t,r,"rules.each",i,u);u.passed=!0;u.segmentsPromises=[];u.allSegmentsEvaluatedDeferred=n.Deferred();n.each(u.Segments,function(n,i){if(CnnXt.Logger.debug(t,r,"segments.each",n,i),u.passed){var f=i.SegmentType==="Promise"?s[i.SegmentType](i,CnnXt.GetOptions().DynamicMeterPromiseTimeout):s[i.SegmentType](i);u.segmentsPromises.push(f);f.done(function(){CnnXt.Logger.debug(t,r,"Segment["+i.id+"] --- PASSED",i)}).fail(function(){u.passed=!1;CnnXt.Logger.debug(t,r,"Segment["+i.id+"] --- FAILED",i)})}else CnnXt.Logger.debug(t,r,"Previous Segment Failed, Not processing rest of segments.")});n.when.apply(n,u.segmentsPromises).done(function(){CnnXt.Logger.debug(t,r,"Rule["+u.id+"] --- PASSED",u);u.allSegmentsEvaluatedDeferred.resolve(!0)}).fail(function(){CnnXt.Logger.debug(t,r,"Rule["+u.id+"] --- FAILED",u);u.allSegmentsEvaluatedDeferred.resolve(!1)})});n.when.apply(n,__.map(i,function(n){return n.allSegmentsEvaluatedDeferred.promise()})).done(function(){var n=__.filter(i,function(n){return n.passed===!0});n&amp;&amp;n.length!==0?u.resolve(__.sortBy(n,"Priority")[0]):u.reject()})}catch(f){CnnXt.Logger.exception(t,r,f);u.reject()}return u.promise()},ut=function(i){var r="calculateConversation",f=n.Deferred();try{i.length?(CnnXt.Logger.debug(t,r,"Calculating conversation...",i),i.forEach(function(i){i.passed=!0;i.filterPromises=[];i.allFiltersEvaluatedDeferred=n.Deferred();var f={conversationId:i.id,meterId:i.MeterLevelId};n.each(i.Options.Filter,function(n,e){CnnXt.Logger.debug(t,r,"conversation.Options.Filter",n,e);e.forEach(function(o){if(i.passed){var s=n==="PromiseCriteria"?u[n](o,CnnXt.GetOptions().ConversationPromiseTimeout):u[n](o,f);i.filterPromises.push(s);s.done(function(){CnnXt.Logger.debug(t,r,"Conversation.Options.Filter["+n+"] --- PASSED",e)}).fail(function(){i.passed=!1;CnnXt.Logger.debug(t,r,"Conversation.Options.Filter["+n+"] --- FAILED",e)})}})});n.when.apply(n,i.filterPromises).done(function(){CnnXt.Logger.debug(t,r,"conversation["+i.Name+"] --- PASSED",i);i.allFiltersEvaluatedDeferred.resolve(!0)}).fail(function(){CnnXt.Logger.debug(t,r,"conversation["+i.Name+"] --- FAILED",i);i.allFiltersEvaluatedDeferred.resolve(!1)})}),n.when.apply(n,__.map(i,function(n){return n.allFiltersEvaluatedDeferred.promise()})).done(function(){var n=__.filter(i,function(n){return n.passed===!0}),u;n&amp;&amp;n.length!==0?(u=__.sortBy(n,"Order")[0],CnnXt.Logger.debug(t,r,"Filtered conversation",u),f.resolve(u)):f.reject()})):f.reject()}catch(e){CnnXt.Logger.exception(t,r,e);f.reject()}return f.promise()},ft=function(i){var r="calculateActions",e=n.Deferred(),f;try{f=i.Actions;f&amp;&amp;f.length?(CnnXt.Logger.debug(t,r,"Calculating actions...",f),f.forEach(function(f){f.passed=!0;f.filterPromises=[];f.allFiltersEvaluatedDeferred=n.Deferred();var e={conversationId:i.id,meterId:i.MeterLevelId};n.each(f.Who,function(n,i){CnnXt.Logger.debug(t,r,"action.Who.Filter",n,i);i.forEach(function(o){if(f.passed){var s=n==="PromiseCriteria"?u[n](o,CnnXt.GetOptions().ActionPromiseTimeout):u[n](o,e);f.filterPromises.push(s);s.done(function(){CnnXt.Logger.debug(t,r,"action.Who.Filter["+n+"] --- PASSED",i)}).fail(function(){f.passed=!1;CnnXt.Logger.debug(t,r,"action.Who.Filter["+n+"] --- FAILED",i)})}})});n.when.apply(n,f.filterPromises).done(function(){CnnXt.Logger.debug(t,r,"action["+f.Name+"] --- PASSED",f);f.allFiltersEvaluatedDeferred.resolve(!0)}).fail(function(){CnnXt.Logger.debug(t,r,"action["+f.Name+"] --- FAILED",f);f.allFiltersEvaluatedDeferred.resolve(!1)})}),n.when.apply(n,__.map(f,function(n){return n.allFiltersEvaluatedDeferred.promise()})).done(function(){var n=__.filter(f,function(n){return n.passed===!0});n&amp;&amp;n.length!==0?e.resolve(n):e.reject()})):e.reject()}catch(o){CnnXt.Logger.exception(t,r,o);e.reject()}return e.promise()},et=function(i){var u="isConversationValid",f=i.Options.Expirations,r=n.Deferred(),e=[];CnnXt.Logger.debug(t,u,"Check conversation expirations",f);try{n.each(f,function(n,f){n==="Time"&amp;&amp;(f.expirationDate=i.Props.Date.expiration);var s=it[n](f);e.push(s);s.done(function(t){i.Props.isExpired=!0;i.Props.expiredReason=n;i.Props.ExpirationInstance=t;o(t);r.reject()}).fail(function(){i.Props.expiredReason==n&amp;&amp;(i.Props.isExpired=!1,i.Props.expiredReason=null);CnnXt.Logger.debug(t,u,"No expiration"+n+"set for this conversation.")})});n.when.apply(n,e).always(function(){i.Props.isExpired?r.reject():r.resolve()});function o(n){n["Reset Article Views"]==="Yes"&amp;&amp;CnnXt.Storage.ResetConversationArticleCount(i)}}catch(o){return CnnXt.Logger.exception(t,u,o),r.resolve()}return r.promise()},ot=function(){var n="breakPromise";try{CnnXt.Logger.debug(t,n,"Promises ",f);f.forEach(function(n){n.state()==="pending"&amp;&amp;n.reject()});f=[]}catch(i){CnnXt.Logger.exception(t,n,i)}};return{init:function(){CnnXt.Logger.debug(t,"Initializing CalculatingQualifiers Module...")},CalculateMeterLevel:rt,CalculateConversation:ut,CalculateConversationActions:ft,IsConversationValid:et,BreakPromises:ot}},ConnextFacebookLikeButton=function(n){function t(){var t=n("#fb-root");t&amp;&amp;t.length!==0||n("body").prepend('&lt;div id="fb-root"&gt;&lt;\/div&gt;');i(),function(n,t,i){var r,u=n.getElementsByTagName(t)[0];n.getElementById(i)||(r=n.createElement(t),r.id=i,r.src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&amp;version=v3.0",u.parentNode.insertBefore(r,u))}(document,"script","facebook-jssdk")}function i(){var t=[{Name:"og:url",DefaultValue:window.location.href},{Name:"og:type",DefaultValue:"article"},{Name:"og:title",DefaultValue:document.title||""},{Name:"og:description",DefaultValue:document.head.querySelector("[property=description]")?document.head.querySelector("[property=description]").content:""},];t.forEach(function(t){var i=n(document).find('[property="'+t.Name+'"]');i.length!==0&amp;&amp;i.attr("content")||(i.remove(),i=n('&lt;meta property="'+t.Name+'" content="'+t.DefaultValue+'" /&gt;'),n(document.head).append(i))})}return{init:t}},ConnextLogger=function(n){function e(n){var r=[],i;if(rest=t.length-n&lt;=0?0:t.length-n,r.push(f()),arguments.length===0)return t.unshift(f()),t;for(i=rest;i&lt;t.length;i+=1)r.push(t[i]);return r}function f(){var r=CnnXt.Utils.GetUserMeta(),n=CnnXt.GetOptions(),i={};for(var t in n)typeof n[t]=="object"||typeof n[t]=="function"||Array.isArray(n[t])||(i[t]=n[t]);return"USER META:"+JSON.stringify(r)+" || OPTIONS: "+JSON.stringify(i)}function u(){var i;try{var r=Array.prototype.slice.call(arguments[2]),u=arguments[0],e=arguments[1],o=r.length,f=[],t=[];o&gt;0&amp;&amp;n.each(r,function(n,i){typeof i=="string"?f.push(i):t.push(i)});i=e+f.join(" =&gt; ");t.length&gt;0?console[u](i,t):console[u](i)}catch(s){}}function r(){try{var u=Array.prototype.slice.call(arguments[1]),o=arguments[0],s=u.length,f=[],i=[],e=(new Date).getHours()+":"+(new Date).getMinutes()+":"+(new Date).getSeconds()+"."+(new Date).getMilliseconds(),r;s&gt;0&amp;&amp;n.each(u,function(n,t){var u,r;if(typeof t=="string")f.push(t);else if(Array.isArray(t))i.push("Array("+t.length+")");else if(typeof t=="object"){u={};for(r in t)typeof t[r]=="object"||Array.isArray(t)||(u[r]=t[r]);i.push(u)}else i.push(t)});r=o+f.join(" =&gt; ");i.length&gt;0?t.push(e+" || "+r+", "+JSON.stringify(i)):t.push(e+" || "+r)}catch(h){}}var i=!1,t=[];return{debug:function(){i&amp;&amp;u("log","ConneXt &gt;&gt;&gt;&gt; DEBUG &lt;&lt;&lt;&lt;&lt; ",arguments);r("ConneXt &gt;&gt;&gt;&gt; DEBUG &lt;&lt;&lt;&lt;&lt; ",arguments)},warn:function(){u("warn","ConneXt &gt;&gt;&gt;&gt; WARNING &lt;&lt;&lt;&lt;&lt; ",arguments);r("ConneXt &gt;&gt;&gt;&gt; WARNING &lt;&lt;&lt;&lt;&lt; ",arguments)},exception:function(){i&amp;&amp;u("error","ConneXt &gt;&gt;&gt;&gt; EXCEPTION &lt;&lt;&lt;&lt;&lt; ",arguments);r("ConneXt &gt;&gt;&gt;&gt; EXCEPTION &lt;&lt;&lt;&lt;&lt; ",arguments)},collect:function(){r("ConneXt &gt;&gt;&gt;&gt; COLLECT &lt;&lt;&lt;&lt;&lt; ",arguments)},activateDebugPanel:function(n){jQuery.jStorage.set(CnnXt.Common.StorageKeys.connext_debug_mode,!0);CnnXt.Utils.CreateDebugDetailPanel();CnnXt.GetOptions().debug=!0;n&amp;&amp;CnnXt.ReInit({})},deactivateDebugPanel:function(t){jQuery.jStorage.deleteKey(CnnXt.Common.StorageKeys.connext_debug_mode);n(".debug_details").remove();CnnXt.GetOptions().debug=!1;t&amp;&amp;CnnXt.ReInit({})},setDebug:function(n){var t=jQuery.jStorage.get("cxt_trcng"),r;i=t?t.isDebugging:n;r=jQuery.jStorage.get(CnnXt.Common.StorageKeys.connext_debug_mode);r&amp;&amp;(CnnXt.GetOptions().debug=!0)},startTracing:function(){jQuery.jStorage.set("cxt_trcng",{isDebugging:!0});this.setDebug(!0)},stopTracing:function(){jQuery.jStorage.set("cxt_trcng",{isDebugging:!1});this.setDebug(!1)},getSessionLogs:e}},ConnextCommon=function(){return{Environments:["localhost","dev","test","test20","demo","stage","preprod","prod"],IPInfo:window.location.protocol+"//api-mg2.db-ip.com/v2/p14891b727f063924f0d86d8a8e5063678abd2ac/self",StorageKeys:{configuration:"Connext_Configuration",userToken:"Connext_UserToken",janrainUserProfile:"janrainCaptureProfileData",accessToken:"Connext_AccessToken",viewedArticles:"Connext_ViewedArticles",lastPublishDate:"Connext_LastPublishDate",conversations:{current:"Connext_CurrentConversations",previous:"Connext_PreviousConversations"},user:{state:"Connext_UserState",zipCodes:"Connext_UserZipCodes",data:"Connext_userData"},configurationSiteCode:"Connext_Configuration_SiteCode",configurationConfigCode:"Connext_Configuration_ConfigCode",configurationIsCustom:"Connext_Configuration_isCustom",customZip:"CustomZip",repeatablesInConv:"repeatablesInConv",igmRegID:"igmRegID",igmContent:"igmContent",igmAuth:"igmAuth",connext_user_Id:"anonDeviceId",WhitelistSet:"WhitelistSet",WhitelistInfobox:"WhitelistInfobox",NeedHidePinTemplate:"NeedHidePinTemplate",PinAttempts:"PinAttempts",connext_user_profile:"connext_user_profile",connext_user_data:"connext_user_data",connext_paywallFired:"connext_paywallFired",connext_auth_type:"connext_auth_type",connext_viewstructure:"nxt",connext_userLastUpdateDate:"connext_userLastUpdateDate",connext_updateArticleCount:"nxt_upd_ac",connext_domain:"nxt_dmn",connext_root_domain:"nxt_rt_dmn",connext_check_domain_write:"nxt_ckck_dmn_wrt",device_postfix:"_device",connext_time_repeatable_actions:"nxtact",connext_messaging_data:"nxt_msg_dt",connext_messaging_data_expire:"nxt_msg_expr",geolocationInfo:"geolocationInfo",customTime:"CustomTime",connext_debug_mode:"nxt_debug_mode"},MeteredArticleCountObj:{active_convo_id:"_acnv"},ConvoArticleCountObj:{article_count:"ac",device_article_count:"ac_d",start_date:"s"},TimeRepeatableActionsCS:{repeat_after:"rpt",count:"rtpc"},MeterLevels:{1:"Free",2:"Metered",3:"Premium"},ConversationOptionNamesMap:{Expiration:{2:"Time",6:"Register",11:"CustomAction",27:"UserState",32:"JSVar",57:"FlittzStatus"},Activation:{38:"Activate"},Filter:{1:"Geo",2:"Javascript",3:"DeviceType",4:"UserState",5:"AdBlock"}},FlittzStatusesMap:{FlittzLoggedIn:"Logged In",FlittzLoggedOut:"Logged Out"},ActionOptionMap:{Who:[5,6,14,16,17,18,19,21,23,24,25,12,27,28,29,30,31,33],What:[2,7,13,20,15,22,26,32,34,35],When:[8,9,10]},ConversationOptionMap:{Expiration:[2],Filter:[5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21],Activation:[4]},WhenClassMap:{8:"Time",9:"EOS",10:"Hover"},DefaultArticleFormat:"MMM Do, YYYY",QualifierMap:{"==":"==","=":"==","!=":"!=",Equal:"==",Equals:"==","Not Equal":"!=","Not Equals":"!=",In:"In","Not In":"Not In",Out:"Not In","More Than":"&gt;","Less Than":"&lt;","More Or Equal Than":"&gt;=","Less Or Equal Than":"&lt;=",Yes:"true",No:"false","More Than Or Equals To":"&gt;=","Less Than Or Equals To":"&lt;="},ERROR:{NO_CONFIG:{code:600,message:"No Configuration Found. ",custom:!0},NO_CONVO_FOUND:{code:601,message:"No Conversation found to process. ",custom:!0},NO_SITE_CODE:{code:602,message:"No Site Code. ",custom:!0},NO_CONFIG_CODE:{code:603,message:"No Config Code. ",custom:!0},NO_JQUERY:{code:604,message:"Jquery not loaded. ",custom:!0},NO_METER_LEVEL_SET:{code:605,message:"No meter level set. ",custom:!0},NO_CAMPAIGN:{code:606,message:"No campaign data. ",custom:!0},NO_AUTH0_LOCK:{code:607,message:"No auth0Lock object in the authSettings! ",custom:!0},UNKNOWN_REG_TYPE:{code:608,message:"Unknown registration type. ",custom:!0},UNKNOWN_USER_STATE:{code:609,message:"Unknown user state. ",custom:!0},NO_USER_DATA:{code:610,message:"No user data result. ",custom:!0},NO_JANRAIN_DATA:{code:611,message:"No user data UUID. ",custom:!0},CONFIG_HAS_NOT_PUBLISHED:{code:612,message:"Configuration has not published. ",custom:!0},S3DATA_IS_INVALID:{code:613,message:"s3Data is not an object. ",custom:!0},HIDE_CONTENT:{code:614,message:"Cannot hide content! ",custom:!0}},DownloadConfigReasons:{noLocalConfig:"localStorage config not found",noLocalPublishDate:"localStorage config found, no publishDate found",getPublishFailed:"localStorage config found, error getting server publishFile",parsePublishFailed:"localStorage config found, server publishFile downloaded, error parsing",noConfigCodeinPublish:"localStorage config found, server publishFile downloaded and parsed, configCode not found",oldConfig:"localStorage config found, server publishFile downloaded and parsed, configCode found, local config is old"},AppInsightEvents:{APICall:"APICall",LoadConnext:"LoadConnext"},RegistrationTypes:{1:"MG2",2:"Janrain",3:"GUP",4:"Auth0",5:"Custom",MG2:1,Janrain:2,GUP:3,Auth0:4,Custom:5},AuthSystem:{MG2:1,Janrain:2,GUP:3,Auth0:4,Custom:5},DigitalAccessLevels:{Premium:"PREMIUM",Upgrade:"UPGRADE",Purchase:"PURCHASE"},USER_STATES:{NotLoggedIn:"Logged Out",LoggedIn:"Logged In",NoActiveSubscription:"No Active Subscription",SubscribedNotEntitled:"Subscribed Not Entitled",Subscribed:"Subscribed"},ValidationPatterns:{email:/^[-a-z0-9~!$%^&amp;*_=+}{\'?]+(\.[-a-z0-9~!$%^&amp;*_=+}{\'?]+)*@([a-z0-9_][-a-z0-9_]*(\.[-a-z0-9_]+)*\.(aero|arpa|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|mobi|[a-z][a-z])|([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}))(:[0-9]{1,5})?$/i,atLeast1Letter1Number:/(?=.*[a-zA-Z])(?=.*[\d])/,atLeast1Letter:/(?=.*[a-zA-Z])/,atLeast1CapitalLetter:/(?=.*[a-zA-Z])/,atLeast1LowerCaseLetter:/(?=.*[a-z])/,atLeast1UpperCaseLetter:/(?=.*[A-Z])/,atLeast1SpecialCharacter:/(?=.*[!@#$%^&amp;*])/,atLeast1Number:/(?=.*[\d])/},TimeTypeMap:{s:"seconds",m:"minutes",h:"hours",d:"days",w:"weeks",M:"months",Y:"years"},DisplayName:"ConneXt",InfinityDate:"9999-01-01",CookieExpireDate:"2018-02-28",CLOSE_CASES:{CloseButton:"closeButton",CloseSpan:"closeSpan",ClickOutside:"clickOutside",EscButton:"escButton"},RunReasons:{ActivationSuccess:"Activation success",RepeatedInit:"Repeated init",RunSettingsPromise:"Run settings promise",RunSettingsTimeout:"Run settings timeout",Login:"User login",Logout:"User logout"}}},ConnextEvents=function(n){function i(t){CnnXt.GetOptions().debug&amp;&amp;(s.push(t),n("#ddNote").html(t))}function v(n){u=Date.now();CnnXt.Logger.debug("Fire Default onInit function.",n)}function y(n){n.EventData.conversation=CnnXt.Storage.GetCurrentConversation();n.EventData.viewCount=CnnXt.Campaign.GetCurrentConversationViewCount();n.EventData.hasFlittz=t.integrateFlittz;window.CommonFz.PushData("Connext-onFlittzPaywallShown",n);CnnXt.Logger.debug("Fire Default onFlittzPaywallShown",n)}function p(n){n.EventData||(n.EventData={});n.EventData.conversation=CnnXt.Storage.GetCurrentConversation();n.EventData.viewCount=CnnXt.Campaign.GetCurrentConversationViewCount();n.EventData.hasFlittz=t.integrateFlittz;window.CommonFz.PushData("Connext-onFlittzPaywallClosed",n);CnnXt.Logger.debug("Fire Default onFlittzPaywallClosed",n)}function w(n){n.EventData.conversation=CnnXt.Storage.GetCurrentConversation();n.EventData.viewCount=CnnXt.Campaign.GetCurrentConversationViewCount();n.EventData.hasFlittz=t.integrateFlittz;window.CommonFz.PushData("Connext-onFlittzButtonClick",n);CnnXt.Logger.debug("Fire Default onFlittzButtonClick",n)}function b(t){if(CnnXt.GetOptions().debug){CnnXt.Logger.debug("Fire Default onCriticalError function.",t);var i=t.EventData.message?t.EventData.message:t.EventData;s.push(i);n("#ddNote").html(i)}}function k(t){CnnXt.Logger.debug("Fire Default onDynamicMeterFound function.",t);CnnXt.GetOptions().debug&amp;&amp;n("#ddMeterSet").html(t.EventData)}function d(t){CnnXt.GetOptions().debug&amp;&amp;n("#ddMeterLevel").html(CnnXt.Common.MeterLevels[t.EventData.Level]+" ("+t.EventData.Method+")");CnnXt.Logger.debug("Fire Default onMeterLevelSet function.",t);CnnXt.Storage.SetMeter(t.EventData)}function g(n){CnnXt.Logger.debug("Fire Default onLoggedIn function.",n);i(n)}function nt(n){CnnXt.Logger.debug("Fire Default onHasAccess function.",n);i(n.EventData)}function tt(n){CnnXt.Logger.debug("Fire Default onHasAccessNotEntitled function.",n);i(n.EventData)}function it(n){CnnXt.Logger.debug("Fire Default onHasNoActiveSubscription function.",n);i(n.EventData)}function rt(n){CnnXt.Logger.debug("Fire Default onAuthorized function.",n);i(n.EventData)}function ut(n){CnnXt.Logger.debug("Fire Default onNotAuthorized function.",n);i(n.EventData)}function ft(t){CnnXt.GetOptions().debug&amp;&amp;n("#ddCampaign").html(t.EventData.Name);CnnXt.Logger.debug("Fire Default onCampaignFound function.",t)}function et(n){CnnXt.Logger.debug("Fire Default onConversationDetermined function.",n)}function ot(n){CnnXt.Logger.debug("Fire Default onConversationExpired",n)}function st(i,r){CnnXt.Logger.debug("Fire Default onActionShown",i);i&amp;&amp;i.EventData&amp;&amp;i.EventData.ActionTypeId==3&amp;&amp;(CnnXt.Storage.SetConnextPaywallCookie(!0),CnnXt.Event.fire("onPaywallShown",i.EventData),r&amp;&amp;r.actionDom&amp;&amp;n(r.actionDom).hasClass("flittz")&amp;&amp;t.integrateFlittz&amp;&amp;CnnXt.Event.fire("onFlittzPaywallShown",CnnXt.PublicObjectsMapper.Map(i.EventData,"Action")))}function ht(n){CnnXt.Logger.debug("Fire Default onActionClosed",n)}function ct(n){CnnXt.Logger.debug("Fire Default onPaywallShown",n)}function lt(n){CnnXt.Logger.debug("Fire Default onButtonClick",n)}function at(n){CnnXt.Logger.debug("Fire Default onLoginShown",n)}function vt(n){CnnXt.Logger.debug("Fire Default onLoginClosed",n)}function yt(n){CnnXt.Logger.debug("Fire Default onLoginSuccess",n)}function pt(n){CnnXt.Logger.debug("Fire Default onLoginError",n)}function wt(n){CnnXt.Logger.debug("Fire Default onAccessTemplateShown",n)}function bt(n){CnnXt.Logger.debug("Fire Default onAccessTemplateClosed",n)}function kt(n){CnnXt.Logger.debug("Fire Default onAccessGranted",n)}function dt(n){CnnXt.Logger.debug("Fire Default onAccessDenied",n)}function gt(n){CnnXt.Logger.debug("Fire Default onActivationFormShown",n)}function ni(n){CnnXt.Logger.debug("Fire Default onActivationLoginStepShown",n)}function ti(n){CnnXt.Logger.debug("Fire Default onActivationLoginStepClosed",n)}function ii(n){CnnXt.Logger.debug("Fire Default onActivationAccountCreated",n)}function ri(n){CnnXt.Logger.debug("Fire Default onActivationLinkStepShown",n)}function ui(n){CnnXt.Logger.debug("Fire Default onActivationLinkStepClosed",n)}function fi(n){CnnXt.Logger.debug("Fire Default onActivationLinkStepSubmitted",n)}function ei(n){CnnXt.Logger.debug("Fire Default onActivationLinkSuccessStepShown",n)}function oi(n){CnnXt.Logger.debug("Fire Default onActivationLinkSuccessStepClosed",n)}function si(n){CnnXt.Logger.debug("Fire Default onActivationLinkErrorStepShown",n)}function hi(n){CnnXt.Logger.debug("Fire Default onActivationLinkErrorStepClosed",n)}function ci(n){CnnXt.Logger.debug("Fire Default onActivationFormClosed",n)}function li(n){CnnXt.Logger.debug("Fire Default onNewsletterSignUp",n)}function ai(n){CnnXt.Logger.debug("Fire Default onNewsletterSignUpFails",n)}function vi(n){CnnXt.Logger.debug("Fire Default onRun",n)}function yi(t){var r,f,i;CnnXt.GetOptions().debug&amp;&amp;(r=CnnXt.Storage.GetCurrentConversationViewCount(),f=CnnXt.Storage.GetCurrentDynamicMeterViewCount(),n("#ddCurrentConversationArticleViews").html(r),n("#ddDynamicMeterArticleViews").html(f));CnnXt.Logger.debug("Fire Default onFinish",t);i=n("#ddLoadTime")[0];i?u?(u=Date.now()-u,i.textContent=u+" ms"):i.textContent="loadTime is missed":CnnXt.Logger.debug("loadTimeHolder is missed");i=null}function pi(){CnnXt.Logger.debug("Fire Default onNewsdayButtonClick");window.setDestUrl&amp;&amp;__.isFunction(window.setDestUrl)&amp;&amp;window.setDestUrl()}function wi(n){CnnXt.Logger.debug("Fire Default onAdblockFound",n)}function bi(n,t){CnnXt.Logger.debug("Fire Default onAnyLoadEvent",n,t)}function ki(n,t){CnnXt.Logger.debug("Fire Default onAnyAccountStatusEvent",n,t)}function di(n,t){CnnXt.Logger.debug("Fire Default onAnyActionEvent",n,t)}function gi(n,t){CnnXt.Logger.debug("Fire Default onAnyLoginTemplateEvent",n,t)}function nr(n,t){CnnXt.Logger.debug("Fire Default onAnyActivationEvent",n,t)}function tr(n,t){CnnXt.Logger.debug("Fire Default onAnyIPAccessEvent",n,t)}function ir(n,t){CnnXt.Logger.debug("Fire Default onAnyFlittzEvent",n,t)}function rr(n,t){CnnXt.Logger.debug("Fire Default onAnyNewsletterEvent",n,t)}function ur(n,t){CnnXt.Logger.debug("Fire Default onForgotPasswordResult",n,t)}var r="Events",h=["onDynamicMeterFound","onCampaignFound","onHasAccess","onHasAccessNotEntitled","onHasNoActiveSubscription","onAuthorized","onDebugNote","onForgotPasswordResult"],t,e,f=null,o=null,u=null,c={onInit:{handlers:["onInit","onAnyLoadEvent"]},onRun:{handlers:["onRun","onAnyLoadEvent"]},onDynamicMeterFound:{handlers:["onDynamicMeterFound","onAnyLoadEvent"]},onMeterLevelSet:{handlers:["onMeterLevelSet","onAnyLoadEvent"]},onCampaignFound:{handlers:["onCampaignFound","onAnyLoadEvent"]},onConversationDetermined:{handlers:["onConversationDetermined","onAnyLoadEvent"]},onConversationExpired:{handlers:["onConversationExpired","onAnyLoadEvent"]},onAdblockFound:{handlers:["onAdblockFound","onAnyLoadEvent"]},onFinish:{handlers:["onFinish","onAnyLoadEvent"]},onNotAuthorized:{handlers:["onNotAuthorized","onAnyAccountStatusEvent"]},onAuthorized:{handlers:["onAuthorized","onAnyAccountStatusEvent"]},onLoggedIn:{handlers:["onLoggedIn","onAnyAccountStatusEvent"]},onHasAccess:{handlers:["onHasAccess","onAnyAccountStatusEvent"]},onHasAccessNotEntitled:{handlers:["onHasAccessNotEntitled","onAnyAccountStatusEvent"]},onHasNoActiveSubscription:{handlers:["onHasNoActiveSubscription","onAnyAccountStatusEvent"]},onActionShown:{handlers:["onActionShown","onAnyActionEvent"]},onActionClosed:{handlers:["onActionClosed","onAnyActionEvent"]},onButtonClick:{handlers:["onButtonClick","onAnyActionEvent"]},onNewsdayButtonClick:{handlers:["onNewsdayButtonClick","onAnyActionEvent"]},onPaywallShown:{handlers:["onPaywallShown","onAnyActionEvent"]},onFlittzPaywallShown:{handlers:["onFlittzPaywallShown","onAnyActionEvent","onAnyFlittzEvent"]},onFlittzPaywallClosed:{handlers:["onFlittzPaywallClosed","onAnyActionEvent","onAnyFlittzEvent"]},onFlittzButtonClick:{handlers:["onFlittzButtonClick","onAnyActionEvent","onAnyFlittzEvent"]},onLoginShown:{handlers:["onLoginShown","onAnyLoginTemplateEvent"]},onLoginClosed:{handlers:["onLoginClosed","onAnyLoginTemplateEvent"]},onLoginSuccess:{handlers:["onLoginSuccess","onAnyLoginTemplateEvent"]},onLoginError:{handlers:["onLoginError","onAnyLoginTemplateEvent"]},onActivationFormShown:{handlers:["onActivationFormShown","onAnyActivationEvent"]},onActivationLoginStepShown:{handlers:["onActivationLoginStepShown","onAnyActivationEvent"]},onActivationLoginStepClosed:{handlers:["onActivationLoginStepClosed","onAnyActivationEvent"]},onActivationAccountCreated:{handlers:["onActivationAccountCreated","onAnyActivationEvent"]},onActivationLinkStepShown:{handlers:["onActivationLinkStepShown","onAnyActivationEvent"]},onActivationLinkStepClosed:{handlers:["onActivationLinkStepClosed","onAnyActivationEvent"]},onActivationLinkStepSubmitted:{handlers:["onActivationLinkStepSubmitted","onAnyActivationEvent"]},onActivationLinkSuccessStepShown:{handlers:["onActivationLinkSuccessStepShown","onAnyActivationEvent"]},onActivationLinkSuccessStepClosed:{handlers:["onActivationLinkSuccessStepClosed","onAnyActivationEvent"]},onActivationLinkErrorStepShown:{handlers:["onActivationLinkErrorStepShown","onAnyActivationEvent"]},onActivationLinkErrorStepClosed:{handlers:["onActivationLinkErrorStepClosed","onAnyActivationEvent"]},onActivationFormClosed:{handlers:["onActivationFormClosed","onAnyActivationEvent"]},onAccessTemplateShown:{handlers:["onAccessTemplateShown","onAnyIPAccessEvent"]},onAccessTemplateClosed:{handlers:["onAccessTemplateClosed","onAnyIPAccessEvent"]},onAccessGranted:{handlers:["onAccessGranted","onAnyIPAccessEvent"]},onAccessDenied:{handlers:["onAccessDenied","onAnyIPAccessEvent"]},onNewsletterSignUp:{handlers:["onNewsletterSignUp","onAnyNewsletterEvent"]},onNewsletterSignUpFails:{handlers:["onNewsletterSignUpFails","onAnyNewsletterEvent"]},onCriticalError:{handlers:["onCriticalError"]},onDebugNote:{handlers:["onDebugNote"]},onForgotPasswordResult:{handlers:["onForgotPasswordResult"]}},l={onInit:v,onRun:vi,onDynamicMeterFound:k,onMeterLevelSet:d,onCampaignFound:ft,onConversationDetermined:et,onConversationExpired:ot,onAdblockFound:wi,onFinish:yi,onNotAuthorized:ut,onAuthorized:rt,onLoggedIn:g,onHasAccess:nt,onHasAccessNotEntitled:tt,onHasNoActiveSubscription:it,onActionShown:st,onActionClosed:ht,onButtonClick:lt,onNewsdayButtonClick:pi,onPaywallShown:ct,onFlittzPaywallShown:y,onFlittzPaywallClosed:p,onFlittzButtonClick:w,onLoginShown:at,onLoginClosed:vt,onLoginSuccess:yt,onLoginError:pt,onActivationFormShown:gt,onActivationLoginStepShown:ni,onActivationLoginStepClosed:ti,onActivationAccountCreated:ii,onActivationLinkStepShown:ri,onActivationLinkStepClosed:ui,onActivationLinkStepSubmitted:fi,onActivationLinkSuccessStepShown:ei,onActivationLinkSuccessStepClosed:oi,onActivationLinkErrorStepShown:si,onActivationLinkErrorStepClosed:hi,onActivationFormClosed:ci,onAccessTemplateShown:wt,onAccessTemplateClosed:bt,onAccessGranted:kt,onAccessDenied:dt,onCriticalError:b,onDebugNote:i,onForgotPasswordResult:ur,onNewsletterSignUp:li,onNewsletterSignUpFails:ai},a={onAnyLoadEvent:bi,onAnyAccountStatusEvent:ki,onAnyActionEvent:di,onAnyLoginTemplateEvent:gi,onAnyActivationEvent:nr,onAnyIPAccessEvent:tr,onAnyFlittzEvent:ir,onAnyNewsletterEvent:rr},s=[];return{init:function(n){CnnXt.Logger.debug(r,"Initializing Events Module...");t=n?n:{debug:!0}},fire:function(i,u){var w="fire",v,d,g,s,nt,k,tt,y,p,b;try{if(v=u,d=c[i],!d){CnnXt.Logger.warn(r,w,i+" does not exist.");return}g=new Date;s={EventData:v};s.EventInfo={};s.EventInfo.Id=CnnXt.Utils.GenerateGuid();s.EventInfo.Date=g.toISOString();s.EventInfo.TimeStamp=g.getTime();s.EventInfo.SessionId=CnnXt.GetOptions().sessionId;i==="onMeterLevelSet"&amp;&amp;(f=v.level?v.level:v.Level,o=v.method?v.method:v.Method);nt=null;k=null;CnnXt.Storage&amp;&amp;CnnXt.Storage.GetLocalConfiguration()&amp;&amp;(nt=CnnXt.Storage.GetLocalConfiguration().Site.RegistrationTypeId,k=CnnXt.Common.RegistrationTypes[nt]);CnnXt.GetOptions().deviceId&amp;&amp;(s.aui=CnnXt.GetOptions().deviceId);i==="onLoggedIn"&amp;&amp;(k=v.AuthSystem?v.AuthSystem:"",e=v.MG2AccountData?v.MG2AccountData:"");s.AuthSystem=k||null;s.AuthProfile=CnnXt.Storage.GetUserProfile()||null;s.MG2AccountData=e||null;tt=null;y=CnnXt.Storage.GetCurrentConversation();y&amp;&amp;(v&amp;&amp;(v.actionId||v.id)&amp;&amp;(tt=v.actionId?__.findWhere(y.Actions,{id:v.actionId}):__.findWhere(y.Actions,{id:v.id})),s.Config=CnnXt.Storage.GetLocalConfiguration()||null,s.Action=tt,s.Conversation=y||null,s.CampaignName=s.Config?s.Config.Campaign.Name:null,s.CampaignId=y.CampaignId||null,s.MeterLevel=CnnXt.Common.MeterLevels[f]||null,s.MeterLevelId=f||null,s.MeterLevelMethod=o||null);i==="onFinish"&amp;&amp;(s.EventData=CnnXt.Utils.GetPageViewEventData(s.EventData));__.isObject(s.EventData)&amp;&amp;(v&amp;&amp;v.What&amp;&amp;(s.EventData.UserDefinedData=v.What.UserDefinedData?v.What.UserDefinedData:null),(i==="onActionShown"||i==="onActionClosed")&amp;&amp;(s.EventData.ArticlesLeft=y.Props.ArticleLeft||null,s.EventData.ArticlesViewed=y.Props.views||null,s.EventData.ZipCodes=CnnXt.Storage.GetActualZipCodes()||null,s.EventData=CnnXt.PublicObjectsMapper.Map(s.EventData,"OnActionEventData")),(i==="onButtonClick"||i==="onNewsdayButtonClick")&amp;&amp;(p={ButtonHTML:CnnXt.Utils.GetElementHTML(s.EventData.target)||null,UserDefinedDataAttr:n(s.EventData.target).attr("data-connext-userdefined")||null,ZipCodes:CnnXt.Storage.GetActualZipCodes()||null,ArticlesLeft:y&amp;&amp;y.Props.ArticleLeft?y.Props.ArticleLeft:null,ArticlesViewed:y&amp;&amp;y.Props.views?y.Props.views:null},__.isString(s.EventData)?(p.CloseEvent=s.EventData,p.ActionId=null):s.EventData.id||s.EventData.actionId?(p.CloseEvent=null,p.ActionId=s.EventData.id||s.EventData.actionId):(p.CloseEvent=null,p.ActionId=null),s.EventData=CnnXt.PublicObjectsMapper.Map(p,"OnButtonClickEventData")));s.Config=CnnXt.Storage.GetLocalConfiguration();s.EventName=i;b=CnnXt.PublicObjectsMapper.Map(s,"EventResult");d.handlers.forEach(function(n){var f=l[n],e=a[n],o,u,h;if(__.isFunction(f)){f(s,v);const i=t[n];if(__.isFunction(i))try{i(b)}catch(o){CnnXt.Logger.exception(r,w,"USER CALLBACK FUNCTION",o)}const u=new CustomEvent(n,{detail:b});document.dispatchEvent(u)}else if(__.isFunction(e)){if(e(i,s),u=t[n],__.isFunction(u))try{u(b)}catch(o){CnnXt.Logger.exception(r,w,"USER CALLBACK FUNCTION",o)}h=new CustomEvent(n,{detail:b});document.dispatchEvent(h)}else CnnXt.Logger.debug(r,w,"No handler for",n)});h.indexOf(i)===-1&amp;&amp;CnnXt.AppInsights.trackEvent(i,s)}catch(it){CnnXt.Logger.exception(r,w,it)}}}},ConnextUtils=function(n){function wt(n){var f=!1,t,i,r,u;if(typeof n=="string"&amp;&amp;(t=n.match(/^(\d+)\.(\d+)\.(\d+)\.(\d+)$/),t)){for(i=[],r=1;r&lt;t.length;r++)u=parseInt(t[r]),u&gt;=0&amp;&amp;u&lt;=255&amp;&amp;i.push(u);i.length===4&amp;&amp;(f=v(i))}return f}function a(n){var t=!1;return typeof n=="number"&amp;&amp;isFinite(n)&amp;&amp;(t=e(n&amp;4294967295).join(".")),t}function e(n){return[n&gt;&gt;&gt;24&amp;255,n&gt;&gt;&gt;16&amp;255,n&gt;&gt;&gt;8&amp;255,n&gt;&gt;&gt;0&amp;255]}function v(n){return((n[0]*256+n[1])*256+n[2])*256+n[3]}function bt(n){return n?-1&lt;&lt;32-n:0}function kt(n,t){for(var r=e(n),f=e(t),u=[],i=0;i&lt;r.length;i++)u.push(r[i]&amp;f[i]);return v(u)}function dt(n){return n?encodeURIComponent(decodeURIComponent(n)):null}var t="Utils",u,r={},i,f,y="db3OIsj+BXE9NZDy0t8W3TcNekrF+2d/1sFnWG4HnV8TZY30iTOdtVWJG8abWvB1GlOgJuQZdcF2Luqm/hccMw==",p=14400,w=function(n){var r="processConfiguration",i,f;try{return CnnXt.Logger.debug(t,r,"Starting to process configuration...",n),u=n.Site,i={},f=[],i.Settings=__.pick(n,"AccessRules","Active","Code","DefaultMeterLevel","CampaignId","DynamicMeterId","Name","LastPublishDate","Settings","UseParentDomain","ActivationTemplate","DefaultProduct","ReturnUrl","UseActivationFlow"),n.DynamicMeter&amp;&amp;(n.DynamicMeter.Rules=__.sortBy(n.DynamicMeter.Rules,function(n){return n.Priority}),i.DynamicMeter=ot(n.DynamicMeter)),i.Settings&amp;&amp;(i.Settings=b(i.Settings),i.Settings.LoginModal=n.Template?n.Template.Html:"",i.Settings.LoginModalName=n.Template?n.Template.Name:"",i.Settings.LoginModalId=n.Template?n.Template.id:null),i.Site=n.Site,i.Campaign=n.Campaign?k(n.Campaign):{},n.Configuration_WhitelistSets&amp;&amp;n.Configuration_WhitelistSets.forEach(function(n){f.push(n.WhitelistSet)}),i.WhitelistSets=f,CnnXt.Logger.debug(t,r,"done processing configuration",i),i}catch(e){CnnXt.Logger.exception(t,r,e)}},b=function(n){var i="checkForLastPublishDate";CnnXt.Logger.debug(t,i,n);try{return n.LastPublishDate||(CnnXt.Logger.debug(t,i,"Configuration.Settings.LastPublishDate is null...setting it to todays datetime."),n.LastPublishDate=(new Date).format()),n}catch(r){return CnnXt.Logger.exception(t,i,r),n}},k=function(n){var r="processCampaignData",i;try{return i=__.pick(n,"id","Name","Conversations"),i.Conversations=d(i.Conversations),CnnXt.Logger.debug(t,r,"processedCampaign",i),i}catch(u){CnnXt.Logger.exception(t,r,u)}},d=function(i){var u="processConversationData",f,r;try{return CnnXt.Logger.debug(t,u,"conversations",i),f={paywallLimit:null,isExpired:!1,expiredReason:null,Date:{started:null,ended:null,expiration:null}},n.each(i,function(n,t){t.Options=g(t.Options);t.Props=f;t.Actions=rt(t.Actions)}),r=__.groupBy(i,"MeterLevelId"),r=__.replaceObjKeysByMap(r,CnnXt.Common.MeterLevels),CnnXt.Logger.debug(t,u,"Grouped Conversations By Meter Level",r),r}catch(e){CnnXt.Logger.exception(t,u,e)}},g=function(n){CnnXt.Logger.debug(t,"processConversationOptions",n);var i=__.filter(n,function(n){return __.contains(CnnXt.Common.ConversationOptionMap.Expiration,n.ConversationOption.ClassId)}),r=__.filter(n,function(n){return __.contains(CnnXt.Common.ConversationOptionMap.Activation,n.ConversationOption.ClassId)}),u=__.filter(n,function(n){return __.contains(CnnXt.Common.ConversationOptionMap.Filter,n.ConversationOption.ClassId)});return{Expirations:nt(i),Activation:tt(r),Filter:it(u)}},nt=function(n){return CnnXt.Logger.debug(t,"processExpirationOptions",n),o(n,"Expiration")},tt=function(n){return CnnXt.Logger.debug(t,"processActivationOptions",n),o(n,"Activation")},it=function(n){return CnnXt.Logger.debug(t,"processFilterOptions",n),s(n,{Entity:"ConversationOption",EntityParentId:"ParentConversationOptionId",Entity_OptionClass:"Conversation_OptionClass"})},o=function(i,r){var u="processOptionsForClass",f;try{CnnXt.Logger.debug(t,u,arguments);const o=__.groupBy(i,function(n){return n.CriteriaInstanceNumber}),e={};for(f in o)if(o.hasOwnProperty(f)){const t=o[f],i=__.groupBy(t,function(n){return n.ConversationOption.ParentConversationOptionId});n.each(i,function(t,i){var u={};e[CnnXt.Common.ConversationOptionNamesMap[r][t]]=e[CnnXt.Common.ConversationOptionNamesMap[r][t]]==undefined?[]:e[CnnXt.Common.ConversationOptionNamesMap[r][t]];n.each(i,function(n,t){u[t.ConversationOption.DisplayName]=t.Value});e[CnnXt.Common.ConversationOptionNamesMap[r][t]].push(u)})}return CnnXt.Logger.debug(t,u,"Processed options",e),e}catch(e){return CnnXt.Logger.exception(t,u,e),{}}},rt=function(i){var r="processConversationActions";CnnXt.Logger.debug(t,r,i);try{return n.each(i,function(t,r){var f=u.Client.Client_ActionOption_Exceptions;n.each(f,function(n,t){r.ActionOptionValues=__.reject(r.ActionOptionValues,function(n){return n.ActionOptionId==t.ActionOptionId||n.ActionOption.ActionOptionParentId==t.ActionOptionId})});var e=__.filter(r.ActionOptionValues,function(n){return __.contains(CnnXt.Common.ActionOptionMap.Who,n.ActionOption.ClassId)}),o=__.filter(r.ActionOptionValues,function(n){return __.contains(CnnXt.Common.ActionOptionMap.What,n.ActionOption.ClassId)}),s=__.filter(r.ActionOptionValues,function(n){return __.contains(CnnXt.Common.ActionOptionMap.When,n.ActionOption.ClassId)});r.Who=ut(e);r.What=ft(o);r.When=et(s);i[t]=__.omit(r,"ActionOptionValues")}),CnnXt.Logger.debug(t,r,"Processed actions",i),__.sortBy(i,"Order")}catch(f){CnnXt.Logger.exception(t,r,f)}},ut=function(n){var i="processWhoOptions",r;CnnXt.Logger.debug(t,i,n);try{return r=s(n,{Entity:"ActionOption",EntityParentId:"ActionOptionParentId",Entity_OptionClass:"Action_OptionClass"}),CnnXt.Logger.debug(t,i,"Processed who options",r),r}catch(u){CnnXt.Logger.exception(t,i,u)}},ft=function(i){var f="processWhatOptions";CnnXt.Logger.debug(t,f,i);try{var r={},o=CnnXt.Utils.getDeviceType(),s=__.groupBy(i,"CriteriaInstanceNumber"),u={},e=[];return!i||!i.length?r:(n.each(s,function(n,t){var i;t.forEach(function(t){t.ActionOption.Name=="TemplateDeviceSettings"&amp;&amp;(i=t);n==1&amp;&amp;(t.ActionOption.Name=="ActionType"&amp;&amp;e.push(t),t.ActionOption.Name=="UserDefinedData"&amp;&amp;e.push(t))});i?u[i.Value]=t:u.Default=t}),u[o]?u[o].forEach(function(n){r[n.ActionOption.DisplayName]=n.Value}):u.Default.forEach(function(n){r[n.ActionOption.DisplayName]=n.Value}),e.forEach(function(n){r[n.ActionOption.DisplayName]=n.Value}),CnnXt.Logger.debug(t,f,"Processed what options",r),r)}catch(h){CnnXt.Logger.exception(t,f,h)}},et=function(i){var u="processWhenOptions",r,f;CnnXt.Logger.debug(t,u,i);try{return(r={},f={},!i||!i.length)?r:(n.each(i,function(n,t){f[t.ActionOption.DisplayName]=t.Value}),r[CnnXt.Common.WhenClassMap[i[0].ActionOption.ClassId]]=f,CnnXt.Logger.debug(t,u,"Processed when options",r),r)}catch(e){CnnXt.Logger.exception(t,u,e)}},s=function(i,r){var f="mapOptionsByClassesAndInstances";CnnXt.Logger.debug(t,f,arguments);try{var u={},e=[],o=__.groupBy(i,function(n){return n[r.Entity][r.EntityParentId]});return n.each(o,function(t){var i=__.groupBy(o[t],"CriteriaInstanceNumber");n.each(i,function(n){e.push(i[n])})}),e.forEach(function(n){var i={},t=n[0][r.Entity][r.Entity_OptionClass].Name;n.forEach(function(n){var t=n[r.Entity].DisplayName;t=t.replace(n[r.Entity][r.EntityParentId],"");i[t]=n.Value});u[t]&amp;&amp;u[t].length?u[t].push(i):u[t]=[i]}),CnnXt.Logger.debug(t,f,"Maped Options By Classes And Instances",u),u}catch(s){CnnXt.Logger.exception(t,f,s)}},ot=function(i){var r="processDynamicMeter";CnnXt.Logger.debug(t,r,i);try{return n.each(i.Rules,function(t,i){n.each(i.Segments,function(t,r){var o=__.find(r.SegmentOptionValues,function(n){return n.SegmentOption.ClassId!=null}).SegmentOption.Segment_OptionClass.Name,f={},s=u.Client.Client_SegmentOption_Exceptions,e;n.each(s,function(n,u){e=__.reject(r.SegmentOptionValues,function(n){return n.SegmentOptionId==u.SegmentOptionId||n.SegmentOption.SegmentOptionParentId==u.SegmentOptionId});e.length!=r.SegmentOptionValues.length&amp;&amp;(i.Segments[t]=null)});i.Segments[t]!=null&amp;&amp;(n.each(r.SegmentOptionValues,function(n,t){var i=t.SegmentOption.DisplayName;i=i.replace(t.SegmentOption.SegmentOptionParentId,"");f[i]=t.Value}),r.Options=f,r.SegmentType=o,i.Segments[t]=__.omit(r,"SegmentOptionValues"))});i.Segments=__.filter(i.Segments,function(n){return n!=null})}),CnnXt.Logger.debug(t,r,"Processed dynamicmeter",i),i}catch(f){CnnXt.Logger.exception(t,r,f)}},st=function(i){var u="mergeConfiguration",f,r;CnnXt.Logger.debug(t,u,i);try{CnnXt.Storage.SetLocalConfiguration(i);f=CnnXt.Storage.GetCurrentConversations();r={};n.each(f,function(t,u){var f=null;i.Settings.UseActivationFlow||(f=__.findByKey(i.Campaign.Conversations[t],{id:u.id}));f&amp;&amp;(r[t]=n.extend({},f),r[t].Props=u.Props)});CnnXt.Storage.SetCurrentConversations(r);CnnXt.Logger.debug(t,u,"Done",r)}catch(e){CnnXt.Logger.exception(t,u,e)}},ht=function(){var r=n("#ConnextSiteCode").val(),u=n("#ConnextConfigCode").val(),t=n("#ConnextCustomConfiguration").prop("checked"),i;t&amp;&amp;(i=n.jStorage.get(CnnXt.Common.StorageKeys.connext_debug_mode),CnnXt.Storage.ClearConfigSettings(),CnnXt.Storage.SetSiteCode(r),CnnXt.Storage.SetConfigCode(u.toUpperCase()),CnnXt.Storage.SetIsCustomConfiguration(t),i&amp;&amp;n.jStorage.set(CnnXt.Common.StorageKeys.connext_debug_mode,!0))},ct=function(){var u="handleDebugDetails",i,r;try{i=n("&lt;link&gt;");n("head").append(i);i.attr({rel:"stylesheet",type:"text/css",href:"https://mg2assetsdev.blob.core.windows.net/connext/assets/connext-debug-panels.min.css"});r='&lt;div class="debug_details opened" style="left: 0;"&gt;&lt;div class="debug_details_icon"&gt;&amp;nbsp;&lt;\/div&gt;&lt;div class="debug_details_content"&gt;&lt;h4&gt;Debug Details&lt;\/h4&gt;&lt;ul&gt;&lt;li class="debug_details_header hide_on_mobile"&gt;&lt;label&gt;Meter Level: &lt;strong id="ddMeterLevel"&gt;...&lt;\/strong&gt;&lt;\/label&gt;&lt;\/li&gt;&lt;li class="debug_details_header hide_on_mobile"&gt;&lt;label&gt;Meter Set: &lt;strong id="ddMeterSet"&gt;...&lt;\/strong&gt;&lt;\/label&gt;&lt;label&gt;Campaign: &lt;strong id="ddCampaign"&gt;...&lt;\/strong&gt;&lt;\/label&gt;&lt;label&gt;Conversation: &lt;strong id="ddCurrentConversation"&gt;...&lt;\/strong&gt;&lt;\/label&gt;&lt;label&gt;Conversation Views: &lt;strong id="ddCurrentConversationArticleViews"&gt;...&lt;\/strong&gt;&lt;\/label&gt;&lt;label&gt;Meter Views: &lt;strong id="ddDynamicMeterArticleViews"&gt;...&lt;\/strong&gt;&lt;\/label&gt;&lt;label&gt;Articles Left: &lt;strong id="ddArticleLeft"&gt;...&lt;\/strong&gt;&lt;\/label&gt;&lt;label&gt;Paywall Limit: &lt;strong id="ddPaywallLimit"&gt;...&lt;\/strong&gt;&lt;\/label&gt;&lt;label&gt;View method: &lt;strong id="ddViewMethod"&gt;...&lt;\/strong&gt;&lt;\/label&gt;&lt;\/li&gt;&lt;li class="debug_details_header hide_on_mobile"&gt;&lt;label&gt;Load Time: &lt;strong id="ddLoadTime"&gt;...&lt;\/strong&gt;&lt;\/label&gt;&lt;\/li&gt;&lt;li class="debug_details_header hide_on_mobile"&gt;&lt;label&gt;Current Zip: &lt;strong id="ddZipCode"&gt;...&lt;\/strong&gt;&lt;\/label&gt;&lt;\/li&gt;&lt;li class="debug_details_header hide_on_mobile"&gt;&lt;label&gt;Note: &lt;strong id="ddNote"&gt;...&lt;\/strong&gt;&lt;\/label&gt;&lt;\/li&gt;&lt;li class="debug_details_header hide_on_mobile"&gt;&lt;div id="ConnextCustomConfigurationDiv"&gt;&lt;label for="ConnextSiteCode"&gt;Site code: &lt;\/label&gt;&lt;input type="text" id="ConnextSiteCode"&gt;&lt;label for="ConnextConfigCode"&gt;Config code: &lt;\/label&gt;&lt;input type="text" id="ConnextConfigCode"&gt;&lt;a href="#" class="more highlight margin_top_15" id="ConnextSetCustomConfiguration"&gt;Set configuration&lt;\/a&gt;&lt;\/div&gt;&lt;label class="overlay_label check" for="ConnextCustomConfiguration"&gt;Use custom configuration: &lt;\/label&gt; &lt;input type="checkbox" id="ConnextCustomConfiguration"&gt;&lt;label class="overlay_label check" for="ConnextCustomConfiguration"&gt;Unique Articles Count: &lt;\/label&gt; &lt;input type="checkbox" id="uniqueArticles"&gt;&lt;\/li&gt;&lt;li class="debug_details_header" &gt; &lt;label class="overlay_label check"&gt;AnonymousId: &lt;\/label&gt; &lt;input type="text" id="connext_anonymousId" style="\r\n    width: 47px; */\r\n    padding:;\r\n    padding: 5px 1px;\r\n"&gt;&lt;a href="#" class="more highlight margin_top_15" id="connext_anonymousIdApplyBtn" style="\r\n    padding: 4px 13px;\r\n    width: 35px;\r\n    margin-left: 10px;\r\n    display: inline;\r\n"&gt;Set&lt;\/a&gt;&lt;\/li&gt;&lt;li class="debug_details_header hide_on_mobile"&gt;&lt;label for="ConnextCustomTimeChk" class="overlay_label check"&gt;Custom Time: &lt;\/label&gt; &lt;input type="checkbox" id="ConnextCustomTimeChk"&gt;&lt;div id="ConnextCustomTimeDiv"&gt;&lt;input type="text" id="ConnextCustomTimeTxt" placeholder="MM/DD/YYYY" value="" name="name" class="text_input hint"&gt;&lt;a href="#" class="more highlight margin_top_15" id="ConnextSetCustomTimeBtn"&gt;Set&lt;\/a&gt;&lt;\/div&gt;&lt;\/li&gt;&lt;li class="debug_details_header hide_on_mobile"&gt;&lt;a href="#" class="more highlight margin_top_15" id="connextClearAllData"&gt;Clear All Data&lt;\/a&gt;&lt;\/li&gt;&lt;\/ul&gt;&lt;\/div&gt;&lt;\/div&gt;';n("body").append(r);n("#ConnextSetCustomConfiguration").on("click",ht);n(".debug_details_icon").off("click",h).on("click",h);n("#connextClearAllData").off("click",c).on("click",c);at();lt();n.jStorage.get("uniqueArticles")&amp;&amp;n("#uniqueArticles").attr("checked","checked");n("#ConnextCustomConfiguration").off("change").on("change",function(){var t=n(this);t.prop("checked")?n("#ConnextCustomConfigurationDiv").show():(n("#ConnextCustomConfigurationDiv").hide(),CnnXt.Storage.SetIsCustomConfiguration(!1))});n("#ConnextCustomTimeChk").off("change").on("change",function(){var t=n(this);t.prop("checked")?n("#ConnextCustomTimeDiv").show():(n("#ConnextCustomTimeDiv").hide(),n.jStorage.deleteKey("CustomTime"))});n("#uniqueArticles").off("change").on("change",function(){var t=n(this);n.jStorage.set("uniqueArticles",t.prop("checked"))});n("#ConnextSetCustomTimeBtn").off("click").on("click",function(t){t.preventDefault();n.jStorage.set("CustomTime",n("#ConnextCustomTimeTxt").val())})}catch(f){CnnXt.Logger.exception(t,u,f)}},h=function(i){var u="handleDebugDetailsDisplayClick",r;try{i.preventDefault();r=n(this).parent("div");r.toggleClass("opened")}catch(f){CnnXt.Logger.exception(t,u,f)}},c=function(n){var i="clearAllSettings",r;try{n.preventDefault();CnnXt.Logger.debug(t,i,"clearAllSettings");CnnXt.Storage.GetLocalConfiguration()&amp;&amp;(r={userId:CnnXt.GetOptions().deviceId,masterId:CnnXt.User.getMasterId(),configCode:CnnXt.GetOptions().configCode,siteCode:CnnXt.GetOptions().siteCode,settingsKey:CnnXt.GetOptions().settingsKey},CnnXt.API.ServerStorageDeleteViewsByUserId({location:"Testing",payload:r}),CnnXt.API.ClearServerCache(),CnnXt.Storage.ResetConversationViews(CnnXt.Storage.GetCurrentConversation(),CnnXt.Storage.GetLocalConfiguration().Settings.UseParentDomain),CnnXt.Storage.SetRegistrationType({}),CnnXt.Storage.ClearConfigSettings())}catch(u){CnnXt.Logger.exception(t,i,u)}},lt=function(){CnnXt.Storage.GetIsCustomConfiguration()?n("#ConnextCustomConfigurationDiv").show():n("#ConnextCustomConfigurationDiv").hide()},at=function(){var i="handleCustomTime";try{n.jStorage.get(CnnXt.Common.StorageKeys.customTime)?(n("#ConnextCustomTimeChk").prop("checked",!0),n("#ConnextCustomTimeTxt").val(n.jStorage.get(CnnXt.Common.StorageKeys.customTime)),n("#ConnextCustomTimeDiv").show()):(n("#ConnextCustomTimeChk").prop("checked",!1),n("#ConnextCustomTimeDiv").hide(),n("#ConnextCustomTimeTxt").val(new Date))}catch(r){CnnXt.Logger.exception(t,i,r)}},vt=function(n){return n.replace(/([a-zA-Z])[^a-zA-Z]*$/,function(n){var t=n.charCodeAt(0);switch(t){case 90:return"A";case 122:return"a";default:return String.fromCharCode(++t)}})},yt=function(){var n,t;i={};t=window.navigator.userAgent.toLowerCase();i.ios=function(){return i.iphone()||i.ipod()||i.ipad()};i.iphone=function(){return!i.windows()&amp;&amp;n("iphone")};i.ipod=function(){return n("ipod")};i.ipad=function(){return n("ipad")};i.android=function(){return!i.windows()&amp;&amp;n("android")};i.androidPhone=function(){return i.android()&amp;&amp;n("mobile")};i.androidTablet=function(){return i.android()&amp;&amp;!n("mobile")};i.blackberry=function(){return n("blackberry")||n("bb10")||n("rim")};i.blackberryPhone=function(){return i.blackberry()&amp;&amp;!n("tablet")};i.blackberryTablet=function(){return i.blackberry()&amp;&amp;n("tablet")};i.windows=function(){return n("windows")};i.windowsPhone=function(){return i.windows()&amp;&amp;n("phone")};i.windowsTablet=function(){return i.windows()&amp;&amp;n("touch")&amp;&amp;!i.windowsPhone()};i.fxos=function(){return(n("(mobile;")||n("(tablet;"))&amp;&amp;n("; rv:")};i.fxosPhone=function(){return i.fxos()&amp;&amp;n("mobile")};i.fxosTablet=function(){return i.fxos()&amp;&amp;n("tablet")};i.meego=function(){return n("meego")};i.cordova=function(){return window.cordova&amp;&amp;location.protocol==="file:"};i.nodeWebkit=function(){return typeof process=="object"};i.mobile=function(){return i.androidPhone()||i.iphone()||i.ipod()||i.windowsPhone()||i.blackberryPhone()||i.fxosPhone()||i.meego()};i.tablet=function(){return i.ipad()||i.androidTablet()||i.blackberryTablet()||i.windowsTablet()||i.fxosTablet()};i.desktop=function(){return!i.tablet()&amp;&amp;!i.mobile()};n=function(n){return t.indexOf(n)!==-1};i.mobile()?r.deviceType="Mobile":i.tablet()?r.deviceType="Tablet":i.desktop()&amp;&amp;(r.deviceType="Desktop");i.ios()?r.OS="IOS":i.windows()?r.OS="windows":i.android()?r.OS="android":i.blackberry()?r.OS="blackberry":i.fxos()&amp;&amp;(r.OS="fxos");r.Browser=(navigator.userAgent.indexOf("Opera")||navigator.userAgent.indexOf("OPR"))!=-1?"Opera":navigator.userAgent.indexOf("Edge")!=-1?"Edge":navigator.userAgent.indexOf("Chrome")!=-1?"Chrome":navigator.userAgent.indexOf("Safari")!=-1?"Safari":navigator.userAgent.indexOf("Firefox")!=-1?"Firefox":navigator.userAgent.indexOf("MSIE")!=-1||!!document.documentMode==!0?"IE":"unknown";r.URL=window.location.href},pt=function(n){var t=CnnXt.Common.StorageKeys.connext_check_domain_write,i=!1;return CnnXt.Cookies.set(t,"Done!",{domain:n}),i=!!CnnXt.Cookies.get(t),CnnXt.Cookies.set(t,"null",{domain:n,expires:-1}),i},l=function(n){var r="prepareValueToCompare",i;try{return __.isNumber(n)||__.isBoolean(n)?n:__.isString(n)?n==="''"?"":n===""?undefined:n.toLowerCase()==="true"?!0:n.toLowerCase()==="false"?!1:n.toLowerCase()==="null"?null:n.toLowerCase()==="undefined"?undefined:(i=Number(n),__.isNaN(i)?n.toLowerCase():i):__.isObject(n)?n.toString().toLowerCase():n}catch(u){CnnXt.Logger.exception(t,r,"value: "+n,u)}},gt=function(){var n={};if(CnnXt&amp;&amp;CnnXt.Storage&amp;&amp;CnnXt.Storage.GetGeolocationInfo){let t=CnnXt.Storage.GetGeolocationInfo();if(!t)return n;n.ContinentCode=t.continentCode;n.CountryCode=t.countryCode;n.State=t.stateProv;n.City=t.city;n.Zip=t.zipCode;n.Lat=t.latitude;n.Long=t.longitude}return n},ni=function(){var n={};return n.Title=ti(),n.Keywords=ii(),n.Url=location.origin+location.pathname,n},ti=function(){var n=document.querySelector("h1");return n&amp;&amp;n.textContent?n.textContent.trim():document.title},ii=function(){var i="",t=document.getElementsByTagName("meta"),n,r;if(t)for(n=0,r=t.length;n&lt;r;n++)t[n].name.toLowerCase()=="keywords"&amp;&amp;(i+=t[n].content);return i!=""?i:!1},ri=function(){var n={},t;return CnnXt&amp;&amp;CnnXt.Utils&amp;&amp;CnnXt.Utils.GetUserMeta&amp;&amp;(t=CnnXt.Utils.GetUserMeta(),n.Type=t.deviceType,n.OS=t.OS,n.Browser=t.Browser),n};return{init:function(){CnnXt.Logger.debug(t,"Initializing Utils Module...");yt();String.prototype.replaceAt=function(n,t){return this.substr(0,n)+t+this.substr(n+t.length)}},Now:function(){try{return n.jStorage.get(CnnXt.Common.StorageKeys.customTime)?new Date(Date.parse(n.jStorage.get(CnnXt.Common.StorageKeys.customTime))):new Date}catch(i){CnnXt.Logger.exception(t,"Now",i)}},ProcessConfiguration:function(n){return w(n)},MergeConfiguration:function(n){st(n)},CreateDebugDetailPanel:function(){ct()},AddParameterToURL:function(n,t){return n+((n.split("?")[1]?"&amp;":"?")+t)},GetUrlParam:function(n){for(var u=window.location.search.substring(1),i,r=u.split("&amp;"),t=0;t&lt;r.length;t++)if(i=r[t].split("="),i[0]==n)return unescape(i[1]);return null},GetQueryStringParams:function(n){var u=window.location.search.slice(1).split("&amp;"),i={},f=!1,e={},r,t;for(__.isArray(n)&amp;&amp;(f=!0,n.forEach(function(n){e[n]=!0})),r=u.length-1;r&gt;=0;r--)if(t=[],u[r])if(t=u[r].split("="),f){if(e[t[0]])try{i[t[0]]=decodeURIComponent(t.slice(1).join("="))}catch(o){i[t[0]]=""}}else try{i[t[0]]=decodeURIComponent(t.slice(1).join("="))}catch(o){i[t[0]]=""}return i},GetActivationUrlParams:function(){return CnnXt.Utils.GetQueryStringParams(["email","productCode","returnUrl","confirmationNumber","accountNumber","lastName"])},GetProductCode:function(){var r=CnnXt.GetOptions(),i=(CnnXt.Storage.GetLocalConfiguration()||{}).Settings,u=CnnXt.Utils.GetActivationUrlParams(),n=null;return n=u.productCode,n||(n=r.productCode),n||(n=i?i.DefaultProduct:null),CnnXt.Logger.debug(t,"GetProductCode","Product code: ",n),n},ParseCustomDate:function(n,t){if(t=t||"dd.mm.yyyy",!n)return new Date;var r=n.match(/(\d+)/g),u=0,i={};return t.replace(/(yyyy|dd|mm)/g,function(n){i[n]=u++}),new Date(r[i.yyyy],r[i.mm]-1,r[i.dd])},ParseCustomDates:function(n){var t=null;return __.isString(n)&amp;&amp;(t=n.replace(/(\d+)([a-zA-Z,()\\";?]+)/,"$1 "),t=Date.parse(t)),new Date(t)},Diff:function(n,t){var i=+n-+t;return parseInt(i/864e5)},GetUrl:function(){return location.protocol+"//"+location.host+location.pathname},GetHiddenFormFieldValue:function(i){try{var r=n("#"+i).val();return CnnXt.Logger.debug(t,"GetHiddenFormFieldValue","hidValue",r),r}catch(u){return CnnXt.Logger.exception(t,"GetHiddenFormFieldValue",u),""}},JSEvaluate:function(n,i,r){try{var o=arguments[3]?arguments[3]+" ---- ":"",u="",f=l(n),e=l(r),s=CnnXt.Utils.FixQualifier(i);return u+=__.isString(f)?"'"+f+"'":f,u+=s,u+=__.isString(e)?"'"+e+"'":e,eval(u)?(CnnXt.Logger.debug(t,"JSEvaluate --- &lt;&lt;&lt;&lt;&lt; "+u," &gt;&gt;&gt;&gt;&gt; ---- PASSES"),!0):(CnnXt.Logger.debug(t,o+"JSEvaluate --- &lt;&lt;&lt;&lt;&lt; "+u," &gt;&gt;&gt;&gt;&gt; ---- FAILS"),!1)}catch(h){return CnnXt.Logger.exception(t,"JSEvaluate",h),!1}},GetNextLetter:function(n){return vt(n)},FixQualifier:function(n){try{var i=CnnXt.Common.QualifierMap[n];return i?i:n}catch(r){return CnnXt.Logger.exception(t,"FixQualifier",r),n}},getFileName:function(){var n=arguments[0]?arguments[0]:window.location.href;return n.substring(n.lastIndexOf("/")+1)},getCurPageName:function(){return location.pathname.substring(1)},HangleMatherTool:function(){var t=n("#connext_anonymousId"),i=n("#connext_anonymousIdApplyBtn");localStorage._matherAnonId&amp;&amp;t.val(localStorage._matherAnonId);i.off("click").on("click",function(){var n=t.val();n&amp;&amp;(localStorage._matherAnonId=n)})},getParam:function(n){for(var u=window.location.search.substring(1),i,r=u.split("&amp;"),t=0;t&lt;r.length;t++)if(i=r[t].split("="),i[0]==n)return unescape(i[1]);return null},hasParam:function(n){for(var f=window.location.search.substring(1),i,u=f.split("&amp;"),r,t=0;t&lt;u.length;t++)if(i=u[t].split("="),i[0]==n)return r=unescape(i[1]),r.length&gt;0&amp;&amp;typeof r=="string"?!0:!1;return!1},EncryptAccessToken:function(){for(var n,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i="",r=0;r&lt;64;r++)n=Math.floor(Math.random()*t.length),i+=t.substring(n,n+1);return i},getScreenSize:function(){var t=n(window).width();return window.screen&amp;&amp;(t=window.screen.width),t},getDeviceType:function(){return r.deviceType},DetectEnvironment:function(){var n="prod";return~location.hostname.indexOf("localhost")?n="localhost":~location.hostname.indexOf("dev.")?n="dev":~location.hostname.indexOf("test.")?n="test":~location.hostname.indexOf("test20.")?n="test20":~location.hostname.indexOf("demo.")?n="demo":~location.hostname.indexOf("stage.")?n="stage":~location.hostname.indexOf("preprod.")&amp;&amp;(n="preprod"),n},GetViewedArticlesCookiesName:function(){var n=CnnXt.Storage.GetLocalConfiguration(),t=CnnXt.Common.StorageKeys.connext_viewstructure+"_"+n.Site.SiteCode.toUpperCase()+"_"+n.Settings.Code.toUpperCase()+"_"+CnnXt.GetOptions().environment.toUpperCase();return n.Settings.UseParentDomain||(t="sub_"+t),t},GetCookieName:function(n){var t=CnnXt.Storage.GetLocalConfiguration();return t?(n=n+"_"+t.Site.SiteCode.toUpperCase()+"_"+t.Settings.Code.toUpperCase()+"_"+CnnXt.GetOptions().environment.toUpperCase(),t.Settings.UseParentDomain||(n="sub_"+n),n):n},GetViewedArticlesCookiesOLDName:function(){var n=CnnXt.Storage.GetLocalConfiguration(),t=CnnXt.Common.StorageKeys.viewedArticles+"_site="+n.Site.SiteCode+"_environment="+CnnXt.GetOptions().environment+"_config="+n.Settings.Code+"_conversation="+conversationId;return n.Settings.UseParentDomain==invert&amp;&amp;(t="sub_"+t),t},GetLocalStorageNamePrefix:function(){var n=CnnXt.GetOptions().siteCode+"_"+CnnXt.GetOptions().environment+"_"+CnnXt.GetOptions().configCode;return CnnXt.GetOptions().attr&amp;&amp;(n+="_"+CnnXt.GetOptions().attr),CnnXt.GetOptions().settingsKey&amp;&amp;(n+="_"+CnnXt.GetOptions().settingsKey),n},GetCookieNamePostfix:function(){return"_"+CnnXt.GetOptions().siteCode+"_"+CnnXt.GetOptions().configCode+"_"+CnnXt.GetOptions().environment},AddParameterToURL:function(n,t,i){var r=t+"="+i;return n=n.replace(/#$/,""),n+((n.split("?")[1]?"&amp;":"?")+r)},AddReturnUrlParamToLink:function(n){if(!~n.indexOf("returnUrl=")){var t=CnnXt.Utils.GetReturnUrl();t=CnnXt.Utils.AddParameterToURL(t,"clearUserState",!0);n=CnnXt.Utils.AddParameterToURL(n,"returnUrl",t)}return n},GetReturnUrl:function(){var t=(CnnXt.Storage.GetLocalConfiguration()||{}).Settings,n="";return n||(n=CnnXt.Utils.GetQueryStringParams(["returnUrl"]).returnUrl),n||(n=t.ReturnUrl),n||(n=window.location.href.split("?")[0]),n},getUrlParam:function(n){var t="",i=document.location.search.substr(1),r=i.split("&amp;");return r.every(function(i){var r=i.split("=");return r[0]==n?(t=r[1],!1):!0}),t},AddQueryParamsToAllLinks:function(t){var i=t.find("[href]:not([data-dismiss])");i.each(function(t,i){var u=n(i),r=u.attr("href");r=CnnXt.Utils.AddReturnUrlParamToLink(r);u.attr("href",r)})},getSubdomains:function(){var n=document.location.origin.split("."),t;return n.pop(),n.pop(),n.length&amp;&amp;(t=n[0].substring(n[0].lastIndexOf("/")+1),t==="www"?n.shift():n[0]=t),n},getMetaTagsWithKeywords:function(){return n("meta[name=keywords]")},getQueryParamByName:function(n,t){t||(t=window.location.href);n=n.replace(/[\[\]]/g,"\\$&amp;");var r=new RegExp("[?&amp;]"+n+"(=([^&amp;#]*)|&amp;|#|$)"),i=r.exec(t);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null},GetUserMeta:function(){return r},GenerateGuid:function(){function n(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return n()+n()+n()+n()+n()+n()+n()+n()},ConvertObjectKeysToUpperCase:function(t){return n.each(t,function(n,i){delete t[n];t[n.toUpperCase()]=i}),t},GetIP:function(){var n="GetIP";try{return f?f:localStorage.ConnextIP}catch(i){CnnXt.Logger.debug(t,n,i)}},SetIP:function(n){var i="SetIP";try{localStorage.ConnextIP=n;f=n}catch(r){CnnXt.Logger.debug(t,i,r)}},GetElementHTML:function(t){return n("&lt;div&gt;").append(n(t).clone()).html()},ShapeUserData:function(n){var t,i,r;return n&amp;&amp;n.DigitalAccess&amp;&amp;n.DigitalAccess.AccessLevel&amp;&amp;__.isString(n.DigitalAccess.AccessLevel)&amp;&amp;(n.DigitalAccess.AccessLevel={IsPremium:n.DigitalAccess.AccessLevel.toUpperCase()===CnnXt.Common.DigitalAccessLevels.Premium,IsUpgrade:n.DigitalAccess.AccessLevel.toUpperCase()===CnnXt.Common.DigitalAccessLevels.Upgrade,IsPurchase:n.DigitalAccess.AccessLevel.toUpperCase()===CnnXt.Common.DigitalAccessLevels.Purchase}),n.EncryptedCustomerRegistrationId&amp;&amp;(n.IgmRegID=n.EncryptedCustomerRegistrationId),n.CookieContent&amp;&amp;__.isArray(n.CookieContent)&amp;&amp;(t=__.findWhere(n.CookieContent,{Name:"igmContent"}),t&amp;&amp;(n.IgmContent=t.Content),i=__.findWhere(n.CookieContent,{Name:"igmRegId"}),i&amp;&amp;(n.IgmRegID=i.Content),r=__.findWhere(n.CookieContent,{Name:"igmAuth"}),r&amp;&amp;(n.IgmAuth=r.Content)),n},GetUserAuthData:function(){var u="GetUserAuthData";try{var i=CnnXt.Storage.GetUserData(),r={},n=i?i.CustomerRegistrationId:null;return n?{CustomRegId:n,MasterId:n,Mode:0}:(n=i?i.IgmRegID:null,n)?{CustomRegId:n,MasterId:n,Mode:1}:(i.MasterId&amp;&amp;(r={CustomRegId:i.MasterId,MasterId:n,Mode:0}),r)}catch(f){CnnXt.Logger.exception(t,u,f)}},dateDiff:function(n,t){var r=CnnXt.Utils.Now(),u=new Date(n),f=u.getTime()-r.getTime(),i;switch(t){case"s":case"m":case"h":case"d":case"w":return f/CnnXt.Utils.getTimeInterval(t);case"M":return i=(r.getFullYear()-u.getFullYear())*12,i-=u.getMonth()+1,i+=r.getMonth(),i&lt;=0?0:i;case"Y":return r.getFullYear()-u.getFullYear()}},getTimeInterval:function(n){switch(n){case"s":return 1e3;case"m":return 6e4;case"h":return 36e5;case"d":return 864e5;case"w":return 6048e5;default:return 0}},AddTimeInervalToDate:function(n,t){var i=0,u,r;if(n=parseInt(n),!n)return i;switch(t){case"s":i=n*1e3;break;case"m":i=n*6e4;break;case"h":i=n*36e5;break;case"d":i=n*864e5;break;case"w":i=n*6048e5;break;default:i=0}return u=CnnXt.Utils.Now(),r=new Date(u.valueOf()),r.setMilliseconds(r.getMilliseconds()+i),r},CalculateDomain:function(n){var i="",r=window.location.hostname.split("."),t=2;if(!n||r.length&lt;t)return window.location.hostname;do i="."+r.slice(-t).join("."),t++;while(!pt(i)&amp;&amp;t&lt;r.length);return i},GetSiteConfigEnvString:function(){var n=CnnXt.GetOptions(),t=n.siteCode,i=n.configCode,r=n.environment;return"_"+t+"_"+i+"_"+r},IPWithinRangeCIDR:function(n,t){for(var u,f=CnnXt.Utils.GetIPsRangeByCIDR(t),e=f[0],o=f[1],i=[n.split("."),e.split("."),o.split(".")],r=0;r&lt;i.length;r++){for(u=0;u&lt;i[r].length;u++)i[r][u]=parseInt(i[r][u]);i[r]=(i[r][0]&lt;&lt;24)+(i[r][1]&lt;&lt;16)+(i[r][2]&lt;&lt;8)+i[r][3]}return i[0]&gt;=i[1]&amp;&amp;i[0]&lt;=i[2]?!0:!1},GetIPsRangeByCIDR:function(n){var e=!1,t,r,i,u,f;return typeof n=="string"&amp;&amp;(t=n.match(/^(\d+\.\d+\.\d+\.\d+)\/(\d+)$/),t&amp;&amp;(r=wt(t[1]),i=parseInt(t[2]),typeof r=="number"&amp;&amp;i&gt;=0&amp;&amp;i&lt;=32&amp;&amp;(u=bt(i),f=kt(r,u),e=[a(f),a(f-u-1)]))),e},GetDynamicMeterIdByKey:function(n){if((typeof n).toLowerCase()!="string")return n;switch(n.toLowerCase()){case"free":return"1";case"metered":return"2";case"premium":return"3";default:return n}},GetErrorMessageFromAPIResponse:function(i,r){var o="GetErrorMessageFromAPIResponse",u;try{if(u=i?JSON.parse(i):{},!u||!u.Message)return{ErrorMessage:r,ErrorCode:""};var e=n.parseJSON(u.Message),s=u.ErrorCode?u.ErrorCode:"",f=r;return n.isArray(e.Errors)?(f="",e.Errors.forEach(function(n){f+=__.isString(n)?n+" ":n.Message+" "})):f=e.Message,{ErrorMessage:f,ErrorCode:s}}catch(h){return CnnXt.Logger.debug(t,o,"can't get errorMessage from API response",u),{ErrorMessage:r,ErrorCode:""}}},SubscribeOnEvent:function(n,i){try{document.addEventListener(n,i)}catch(u){var r="SubscribeOnEvent";return CnnXt.Logger.debug(t,r,"can't get errorMessage from API response",response),defaultMessage}},GenerateJWTToken:function(n){function i(n){var t=CryptoJS.enc.Base64.stringify(n);return t=t.replace(/=+$/,""),t=t.replace(/\+/g,"-"),t.replace(/\//g,"_")}var f=n?new Date(n):new Date,e={unique_name:"ConneXt",exp:Math.round(f/1e3)+p},o=CryptoJS.enc.Utf8.parse(JSON.stringify({alg:"HS256",typ:"JWT"})),s=CryptoJS.enc.Utf8.parse(JSON.stringify(e)),r=i(o),u=i(s),t=r+"."+u;return t=CryptoJS.HmacSHA256(t,y),t=i(t),"Bearer "+r+"."+u+"."+t},DetectIncognitoMode:function(){var o="detectPrivateMode",i=n.Deferred(),u,f,e;try{if(u=(r.Browser||"").toLowerCase(),u=="chrome")f=window.RequestFileSystem||window.webkitRequestFileSystem,f?f(window.TEMPORARY,1,function(){i.resolve(!1)},function(){i.resolve(!0)}):i.resolve(!1);else if(u=="firefox"&amp;&amp;window.indexedDB)try{e=window.indexedDB.open("test");e.onsuccess=function(){i.resolve(!1)};e.onerror=function(){i.resolve(!0)}}catch(h){i.resolve(!0)}else if(u=="ie"||u=="edge")try{window.indexedDB?i.resolve(!1):i.resolve(!0)}catch(h){i.resolve(!0)}else if(u=="safari"&amp;&amp;window.localStorage)try{window.localStorage.setItem("test",1);window.openDatabase(null,null,null,null);i.resolve(!1)}catch(h){i.resolve(!0)}else i.resolve(!1)}catch(s){CnnXt.Logger.exception(t,o,s);i.resolve(!1)}return i.promise()},GetUserAuthenticationTime:function(){return parseInt(CnnXt.GetOptions().userAuthenticationTime)||45},GetPageViewEventData:function(n){return n||(n={}),n.Location=gt(),n.Device=ri(),n.Page=ni(),n},DecodeAuthCookie:dt}},ConnextStorage=function(n){function s(n){return n.id==-1?0:1}var t="Storage",o,u=function(i){var e="getLocalStorage",r,u;try{return r=i,CnnXt.Common.StorageKeys[i]&amp;&amp;(r=CnnXt.Common.StorageKeys[i]),u=CnnXt.Utils.GetLocalStorageNamePrefix()+r,n.jStorage.get(u)}catch(f){CnnXt.Logger.exception(t,e,f);i=="configuration"&amp;&amp;(CnnXt.Api.meta.storageException=f)}},f=function(i,r){var e="setLocalStorage",u,f;try{return u=i,CnnXt.Common.StorageKeys[i]&amp;&amp;(u=CnnXt.Common.StorageKeys[i]),f=CnnXt.Utils.GetLocalStorageNamePrefix()+u,n.jStorage.set(f,r)}catch(o){CnnXt.Logger.exception(t,e,o)}},b=function(i){var f="removeLocalStorage",r,u;try{return r=i,CnnXt.Common.StorageKeys[i]&amp;&amp;(r=CnnXt.Common.StorageKeys[i]),u=CnnXt.Utils.GetLocalStorageNamePrefix()+r,n.jStorage.deleteKey(u)}catch(e){CnnXt.Logger.exception(t,f,e)}},i=function(n){var r="getCookie",i;try{return i=CnnXt.Common.StorageKeys[n]||n,CnnXt.Logger.debug(t,r,"cookieKey",i),CnnXt.Cookies.get(i)}catch(u){CnnXt.Logger.exception(t,r,u)}},c=[],k=function(n,i){var r="listenStorageChange";try{c[n]=localStorage.getItem(n);setInterval(function(){try{if(localStorage.getItem(n)!=c[n])return c[n]=localStorage.getItem(n),i()}catch(u){CnnXt.Logger.exception(t,r,u)}},1e3)}catch(u){CnnXt.Logger.exception(t,r,u)}},d=function(){k("janrainCaptureToken",function(){CnnXt.Storage.SetUserState(null);CnnXt.Storage.SetUserZipCodes(null);CnnXt.Activation.IsActivationFlowRunning()?CnnXt.User.CheckAccess().always(function(){CnnXt.Activation.Run({runAfterSuccessfulLogin:!0})}):CnnXt.Run({RunReason:CnnXt.Common.RunReasons.Login})})},r=function(n,i,r,u){var f="setCookie",o,e;CnnXt.Logger.debug(t,f,arguments);try{return o=!u,e=CnnXt.Storage.GetDomain(o),r?(CnnXt.Logger.debug(t,f,"HasExpiration","key",n,"expiration",r),CnnXt.Cookies.set(CnnXt.Common.StorageKeys[n]||n,i,{expires:r,domain:e})):CnnXt.Cookies.set(CnnXt.Common.StorageKeys[n]||n,i,{domain:e})}catch(s){CnnXt.Logger.exception(t,f,s)}},e=function(n){var i="removeCookie",r,u;try{CnnXt.Logger.debug(t,i,n);r=CnnXt.Storage.GetDomain();u=CnnXt.Storage.GetDomain(!0);CnnXt.Cookies.set(CnnXt.Common.StorageKeys[n]||n,"null",{domain:r,expires:-1});CnnXt.Cookies.set(CnnXt.Common.StorageKeys[n]||n,"null",{domain:u,expires:-1})}catch(f){CnnXt.Logger.exception(t,i,f)}},a=function(n){var d="incrementView",f,u,a,w,l;try{var b=!CnnXt.Storage.GetLocalConfiguration().Settings.UseParentDomain,v=CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.connext_viewstructure),p=CnnXt.Common.MeteredArticleCountObj.active_convo_id,h=CnnXt.Common.ConvoArticleCountObj.article_count,c=CnnXt.Common.ConvoArticleCountObj.device_article_count,y=CnnXt.Common.ConvoArticleCountObj.start_date,k=i(v);k?(f=JSON.parse(k),u=f[o.Level],u?(a=u[n.id],u[p]=n.id,u["_"+h]=u["_"+h]?u["_"+h]+s(n):s(n),u["_"+c]=u["_"+c]?u["_"+c]+s(n):s(n),a?(a[h]=a[h]+1,a[c]=a[c]+1,a[y]=n.Props.Date.started):(u[n.id]={},u[n.id][h]=1,u[n.id][c]=1,u[n.id][y]=n.Props.Date.started)):(f[o.Level]={},f[o.Level]["_"+h]=s(n),f[o.Level]["_"+c]=s(n),f[o.Level][p]=n.id,f[o.Level][n.id]={},f[o.Level][n.id][h]=1,f[o.Level][n.id][c]=1,f[o.Level][n.id][y]=n.Props.Date.started),e(v),r(v,JSON.stringify(f),new Date("9999-01-01"),b)):(w={},l=w[o.Level]={},l["_"+h]=s(n),l["_"+c]=s(n),l[p]=n.id,l[n.id]={},l[n.id][h]=1,l[n.id][c]=1,l[n.id][y]=n.Props.Date.started,e(v),r(v,JSON.stringify(w),new Date("9999-01-01"),b))}catch(g){CnnXt.Logger.exception(t,d,g)}},h=function(){var f="getViewsData";try{var e=!CnnXt.Storage.GetLocalConfiguration().Settings.UseParentDomain,n=CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.connext_viewstructure),r=i(n),u;return r&amp;&amp;(u=JSON.parse(r)),{parserViews:u,cookieName:n,useCurDomain:e}}catch(o){CnnXt.Logger.exception(t,f,o)}},g=function(n){var i=0;for(var t in n)/^(0|[1-9]\d*)$/.test(t)&amp;&amp;n[t]!=null&amp;&amp;(typeof n[t]).toLowerCase()=="object"&amp;&amp;(i+=n[t][CnnXt.Common.ConvoArticleCountObj.article_count]?n[t][CnnXt.Common.ConvoArticleCountObj.article_count]:0);return i},v=function(n,i){var u="mapServerStorageViewsToDynamicMeterViews",r={};try{r["_"+CnnXt.Common.ConvoArticleCountObj.article_count]=n.ArticleCount;r["_"+CnnXt.Common.ConvoArticleCountObj.device_article_count]=n.DeviceArticleCount;r[CnnXt.Common.MeteredArticleCountObj.active_convo_id]=n.ActiveConversationId;n.Conversations&amp;&amp;n.Conversations.forEach(function(n){if(r[n.Id]={},r[n.Id][CnnXt.Common.ConvoArticleCountObj.article_count]=n.ViewCount,r[n.Id][CnnXt.Common.ConvoArticleCountObj.device_article_count]=n.DeviceViewCount,r[n.Id][CnnXt.Common.ConvoArticleCountObj.start_date]=n.StartDate,n.Actions&amp;&amp;i){var t=CnnXt.Common.TimeRepeatableActionsCS.repeat_after,u=CnnXt.Common.TimeRepeatableActionsCS.count;i[n.Id]={};n.Actions.forEach(function(r){i[n.Id][r.Id]={};i[n.Id][r.Id][t]=r.RepeatAfter;i[n.Id][r.Id][u]=r.Count})}})}catch(f){CnnXt.Logger.exception(t,u,f)}return r},nt=function(n){var l="processViewData",f,e,u,i,o,s,c;try{if(f=h(),n.AllowedIpSet&amp;&amp;CnnXt.Storage.SetWhitelistSetIdCookie({Id:n.AllowedIpSet.Id,Expiration:n.AllowedIpSet.Expiration},new Date(n.AllowedIpSet.Expiration)),e={},u={},n.DynamicMeterViews)for(i in n.DynamicMeterViews)n.DynamicMeterViews.hasOwnProperty(i)&amp;&amp;(o=CnnXt.Utils.GetDynamicMeterIdByKey(i),n.DynamicMeterViews[i]&amp;&amp;(e[o]=v(n.DynamicMeterViews[i],u)));__.keys(u).length&amp;&amp;(s=!CnnXt.GetOptions().configSettings.UseParentDomain,c=CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.connext_time_repeatable_actions),r(c,JSON.stringify(u),new Date("9999-01-01"),s));r(f.cookieName,JSON.stringify(e),new Date("9999-01-01"),f.userCurDomain)}catch(a){CnnXt.Logger.exception(t,l,a)}},tt=function(n){var c="processLinkedDevicesViewData",e,f,u,o,i,s;try{if(e=h(),f=e.parserViews,n.DynamicMeterViews)for(u in n.DynamicMeterViews)n.DynamicMeterViews.hasOwnProperty(u)&amp;&amp;(o=CnnXt.Utils.GetDynamicMeterIdByKey(u),n.DynamicMeterViews[u]&amp;&amp;(f[o]?(i=f[o],s=n.DynamicMeterViews[u],s.Conversations&amp;&amp;s.Conversations.forEach(function(n){if(i[n.Id]){var t=n.ViewCount-n.DeviceViewCount+i[n.Id][CnnXt.Common.ConvoArticleCountObj.device_article_count];i[n.Id][CnnXt.Common.ConvoArticleCountObj.article_count]=t&gt;0?t:n.ViewCount}else i[n.Id]={},i[n.Id][CnnXt.Common.ConvoArticleCountObj.article_count]=n.ViewCount,i[n.Id][CnnXt.Common.ConvoArticleCountObj.device_article_count]=n.DeviceViewCount,i[n.Id][CnnXt.Common.ConvoArticleCountObj.start_date]=n.StartDate}),i["_"+CnnXt.Common.ConvoArticleCountObj.article_count]=g(i)):f[o]=v(n.DynamicMeterViews[u])));r(e.cookieName,JSON.stringify(f),new Date("9999-01-01"),e.userCurDomain)}catch(l){CnnXt.Logger.exception(t,c,l)}},it=function(){var r="checkViewCookies";try{var u=h(),f=u.parserViews,i=n.Deferred();f?rt()==undefined?CnnXt.API.GetViewData().done(function(n){n&amp;&amp;tt(n);y();i.resolve()}).fail(function(){i.resolve()}):i.resolve():CnnXt.API.GetViewData().done(function(n){n&amp;&amp;nt(n);y();i.resolve()}).fail(function(){i.resolve()})}catch(e){CnnXt.Logger.exception(t,r,e)}return i.promise()},rt=function(){return i(CnnXt.Common.StorageKeys.connext_updateArticleCount+CnnXt.Utils.GetCookieNamePostfix())},y=function(){var n=new Date;return n.setHours(n.getHours()+CnnXt.GetOptions().ViewsUpdateFromServerPeriod),r(CnnXt.Common.StorageKeys.connext_updateArticleCount+CnnXt.Utils.GetCookieNamePostfix(),1,n)},l=function(n){var e="getArticleCookie",f,i,r,u;try{f=h();i=f.parserViews;for(r in i)if(i[r]!=null&amp;&amp;(typeof i[r]).toLowerCase()=="object")for(u in i[r])if(u==n)return i[r][u]}catch(o){CnnXt.Logger.exception(t,e,o)}},ut=function(){var f="getCookies",i,r,n,u;try{for(i=document.cookie.split(";"),r={},n=0;n&lt;i.length;n++)u=i[n].split("="),r[u[0]]=unescape(u[1]);return r}catch(e){CnnXt.Logger.exception(t,f,e)}},ft=function(){var n="resetViews";try{var i=!CnnXt.Storage.GetLocalConfiguration().Settings.UseParentDomain,u=CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.connext_viewstructure);r(u,JSON.stringify({}),new Date("9999-01-01"),i)}catch(f){CnnXt.Logger.exception(t,n,f)}},p=function(){CnnXt.Cookies.remove(CnnXt.Common.StorageKeys.userToken);CnnXt.Cookies.remove(CnnXt.Common.StorageKeys.accessToken);CnnXt.Cookies.remove("userToken");CnnXt.Cookies.remove("userMasterId");localStorage.removeItem("janrainCaptureProfileData");localStorage.removeItem("janrainCaptureReturnExperienceData");n.jStorage.deleteKey(CnnXt.Utils.GetLocalStorageNamePrefix()+CnnXt.Common.StorageKeys.user.zipCodes);n.jStorage.deleteKey(CnnXt.Common.StorageKeys.user.state);n.jStorage.deleteKey(CnnXt.Common.StorageKeys.user.data);n.jStorage.deleteKey(CnnXt.Common.StorageKeys.connext_user_profile);n.jStorage.deleteKey(CnnXt.Common.StorageKeys.connext_user_data);CnnXt.Storage.SetUserState("Logged Out");e("ExternalUserId");e("connext_user_profile");e("connext_user_data")},w=function(n){var a="resetConversationArticleCount";try{var v=!CnnXt.Storage.GetLocalConfiguration().Settings.UseParentDomain,h=CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.connext_viewstructure),e=CnnXt.Common.ConvoArticleCountObj.article_count,s=CnnXt.Common.ConvoArticleCountObj.device_article_count,c=i(h);if(c){var l=JSON.parse(c),u=l[o.Level],f=u[n.id];u&amp;&amp;f&amp;&amp;(u["_"+e]=u["_"+e]-f[e],u["_"+s]=u["_"+s]-f[s],f[e]=0,f[s]=0);r(h,JSON.stringify(l),new Date("9999-01-01"),v)}CnnXt.Storage.SetViewedArticles([],n.id);CnnXt.Storage.ResetRepeatablesInConversation(n);CnnXt.Storage.RemoveTimeRepeatableActionData(n.id)}catch(y){CnnXt.Logger.exception(t,a,y)}};return{init:function(){CnnXt.Logger.debug(t,"Initializing Storage Module...");d()},GetLocalConfiguration:function(){return u("configuration")},SetLocalConfiguration:function(n){return localStorage.setItem("IsLocalConfig",!0),f("configuration",n)},GetUserState:function(){return n.jStorage.get(CnnXt.Common.StorageKeys.user.state)},SetUserState:function(t){return n.jStorage.set(CnnXt.Common.StorageKeys.user.state,t)},GetUserZipCodes:function(){return u(CnnXt.Common.StorageKeys.user.zipCodes)||null},SetCalculatedZipCode:function(i){var r="SetCalculatedZipCode";try{i.split(" ").length==2&amp;&amp;(i=i.split(" ")[0]);n.jStorage.set(CnnXt.Common.StorageKeys.customZip,i)}catch(u){CnnXt.Logger.exception(t,r,u)}},SetUserZipCodes:function(n){return f(CnnXt.Common.StorageKeys.user.zipCodes,n)},GetActualZipCodes:function(){var i="GetActualZipCodes";try{return CnnXt.User.isUserHasHighState()?u(CnnXt.Common.StorageKeys.user.zipCodes)||[]:[n.jStorage.get(CnnXt.Common.StorageKeys.customZip)]}catch(r){CnnXt.Logger.exception(t,i,r)}},GetLastPublishDate:function(){return i(CnnXt.Utils.GetCookieName("lastPublishDate"))},SetLastPublishDate:function(n,t){var i=!CnnXt.Storage.GetLocalConfiguration().Settings.UseParentDomain;return r(CnnXt.Utils.GetCookieName("lastPublishDate"),n,t,i)},GetCurrentConversations:function(){var n=u(CnnXt.Common.StorageKeys.conversations.current);return n?n:{}},SetCurrentConversations:function(n){return f(CnnXt.Common.StorageKeys.conversations.current,n)},GetCampaignData:function(){return u(CnnXt.Common.StorageKeys.configuration)?u(CnnXt.Common.StorageKeys.configuration).Campaign:null},GetCurrentConversationViewCount:function(){var f=CnnXt.Storage.GetCurrentConversation(),n=null,r;if(n=f?f.id:CnnXt.Storage.GetActiveConversationId(),!n)return 0;var u=o.Level,s=CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.connext_viewstructure),e=i(s);if(e)try{if(r=JSON.parse(e),r[u])return r[u][n]?r[u][n][CnnXt.Common.ConvoArticleCountObj.article_count]:0}catch(h){return CnnXt.Logger.exception(t,"GetCurrentConversationViewCount",h),0}return 0},GetCurrentDynamicMeterViewCount:function(){var r=CnnXt.GetOptions().currentMeterLevel,f=CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.connext_viewstructure),u=i(f),n;if(u)try{if(n=JSON.parse(u),n[r])return n[r]["_"+CnnXt.Common.ConvoArticleCountObj.article_count]}catch(e){return CnnXt.Logger.exception(t,"GetCurrentDynamicMeterViewCount",e),0}return 0},GetViewedArticles:function(n){var i=CnnXt.Common.StorageKeys.viewedArticles,t=u(i);if(t)return t[n]},SetViewedArticles:function(n,t){var r=CnnXt.Common.StorageKeys.viewedArticles,i=u(r);i==null&amp;&amp;(i={});i[t]=n;f(r,i)},UpdateViewedArticles:function(i){var o="UpdateViewedArticles";try{var r=CnnXt.Storage.GetViewedArticles(i.id),s=CnnXt.Utils.GetUrl(),u=CnnXt.GetOptions(),f;if(r==null&amp;&amp;(r=[]),u.articlesCounter&amp;&amp;u.articlesCounter.params&amp;&amp;u.articlesCounter.params.length){var h=u.articlesCounter.params,c=location.hostname,e=c+"_";h.forEach(function(n){var t=CnnXt.Utils.getQueryParamByName(n);t&amp;&amp;(e+=n+"="+t)});f=MD5(e)}else f=MD5(s);r.indexOf(f)&gt;-1?!n.jStorage.get("uniqueArticles")&amp;&amp;CnnXt.GetOptions().debug&amp;&amp;a(i):(r.push(f),a(i),CnnXt.Storage.SetViewedArticles(r,i.id))}catch(l){CnnXt.Logger.exception(t,o,l)}},ResetConversationViews:function(n){var r="ResetConversationViews",i;try{n?(n.Props.views=0,CnnXt.Storage.SetViewedArticles([],n.id),w(n),i={userId:CnnXt.GetOptions().deviceId,conversationId:n.id,configCode:CnnXt.GetOptions().configCode,siteCode:CnnXt.GetOptions().siteCode,settingsKey:CnnXt.GetOptions().settingsKey},CnnXt.API.ServerStorageResetConversationViews({location:"System",payload:i})):(f(CnnXt.Common.StorageKeys.viewedArticles,{}),ft())}catch(u){CnnXt.Logger.exception(t,r,u)}},GetRepeatablesInConv:function(n){var r="GetRepeatablesInConv",i;try{return u(CnnXt.Common.StorageKeys.repeatablesInConv)||f(CnnXt.Common.StorageKeys.repeatablesInConv,{}),i=u(CnnXt.Common.StorageKeys.repeatablesInConv),u(CnnXt.Common.StorageKeys.repeatablesInConv)[n]||(i[n]=0,f(CnnXt.Common.StorageKeys.repeatablesInConv,i)),u(CnnXt.Common.StorageKeys.repeatablesInConv)[n]}catch(e){CnnXt.Logger.exception(t,r,e)}},UpdateRepeatablesInConv:function(n){var r="UpdateRepeatablesInConv",i;try{u(CnnXt.Common.StorageKeys.repeatablesInConv)||f(CnnXt.Common.StorageKeys.repeatablesInConv,{});i=u(CnnXt.Common.StorageKeys.repeatablesInConv);i[n]=i[n]+1;f(CnnXt.Common.StorageKeys.repeatablesInConv,i)}catch(e){CnnXt.Logger.exception(t,r,e)}},ResetRepeatablesInConversation:function(n){var r="ClearRepeatablesInConversation",i;try{i=u(CnnXt.Common.StorageKeys.repeatablesInConv);i&amp;&amp;n&amp;&amp;n.Actions&amp;&amp;(n.Actions.forEach(function(n){n.id&amp;&amp;i[n.id]&amp;&amp;(i[n.id]=0)}),f(CnnXt.Common.StorageKeys.repeatablesInConv,i))}catch(e){CnnXt.Logger.exception(t,r,e)}},RemoveRepeatablesInConv:function(){b(CnnXt.Common.StorageKeys.repeatablesInConv)},ClearConfigSettings:function(){var r="ClearConfigSettings",i;try{i=CnnXt.Storage.GetCurrentConversation();i&amp;&amp;CnnXt.Storage.SetViewedArticles([],i.id)}catch(u){CnnXt.Logger.exception(t,r,u)}n.jStorage.flush();localStorage.removeItem("jStorage");localStorage.removeItem("_matherAnonId")},ClearUser:function(){p()},Logout:function(){p();e(CnnXt.Common.StorageKeys.igmRegID);e(CnnXt.Common.StorageKeys.igmContent);e(CnnXt.Common.StorageKeys.igmAuth);CnnXt.Run({RunReason:CnnXt.Common.RunReasons.Logout})},SetAccessToken:function(n){return r("accessToken",n)},GetAccessToken:function(){return CnnXt.Logger.debug(t,"GetAccessToken",CnnXt.Common.StorageKeys.accessToken),i("accessToken")},GetCurrentConversation:function(){return u("CurrentConversation")},SetCurrentConversation:function(n){f("CurrentConversation",n)},SetUserToken:function(n){return r("userToken",n,365)},GetUserToken:function(){return i("userToken")},SetigmRegID:function(n){var t=new Date;return t.setDate(t.getDate()+CnnXt.Utils.GetUserAuthenticationTime()),r(CnnXt.Common.StorageKeys.igmRegID,n,t)},GetigmRegID:function(){return CnnXt.Cookies.get(CnnXt.Common.StorageKeys.igmRegID)},SetIgmContent:function(n){var t=new Date;return t.setDate(t.getDate()+CnnXt.Utils.GetUserAuthenticationTime()),r(CnnXt.Common.StorageKeys.igmContent,n,t)},GetIgmContent:function(){return i(CnnXt.Common.StorageKeys.igmContent)},SetIgmAuth:function(n){var t=new Date;return t.setDate(t.getDate()+1),r(CnnXt.Common.StorageKeys.igmAuth,n,t)},GetIgmAuth:function(){return i(CnnXt.Common.StorageKeys.igmAuth)},SetExternalUserId:function(n){var t=new Date;return t.setDate(t.getDate()+30),r("ExternalUserId",n,t)},GetExternalUserId:function(){return CnnXt.Cookies.get("ExternalUserId")},SetUserRegId:function(n){return r("userMasterId",n,365)},GetUserRegId:function(){return i("userMasterId")},GetWhitelistInfoboxCookie:function(){var n="GetWhitelistInfoboxCookie";try{return i(CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.WhitelistInfobox))}catch(r){CnnXt.Logger.exception(t,n,r)}},SetWhitelistInfoboxCookie:function(n){var u="SetWhitelistInfoboxCookie";try{var f=!CnnXt.Storage.GetLocalConfiguration().Settings.UseParentDomain,e=CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.WhitelistInfobox),i=new Date;return i.setDate(i.getDate()+30),r(e,n,i,f)}catch(o){CnnXt.Logger.exception(t,u,o)}},RemoveWhitelistInfoboxCookie:function(){var n="RemoveWhitelistInfoboxCookie";try{return e(CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.WhitelistInfobox))}catch(i){CnnXt.Logger.exception(t,n,i)}},GetNeedHidePinTemplateCookie:function(){var n="GetNeedHidePinTemplateCookie";try{return i(CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.NeedHidePinTemplate))}catch(r){CnnXt.Logger.exception(t,n,r)}},SetNeedHidePinTemplateCookie:function(n){var u="SetNeedHidePinTemplateCookie";try{var f=!CnnXt.Storage.GetLocalConfiguration().Settings.UseParentDomain,e=CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.NeedHidePinTemplate),i=new Date;return i.setDate(i.getDate()+1),r(e,n,i,f)}catch(o){CnnXt.Logger.exception(t,u,o)}},RemoveNeedHidePinTemplateCookie:function(){var n="RemoveNeedHidePinTemplateCookie";try{return e(CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.NeedHidePinTemplate))}catch(i){CnnXt.Logger.exception(t,n,i)}},GetWhitelistSetIdCookie:function(){var n="GetWhitelistSetIdCookie";try{return i(CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.WhitelistSet))}catch(r){CnnXt.Logger.exception(t,n,r)}},SetWhitelistSetIdCookie:function(n,i){var e="SetWhitelistSetIdCookie",u,f;try{return u=!CnnXt.Storage.GetLocalConfiguration().Settings.UseParentDomain,f=CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.WhitelistSet),r(f,n,i,u)}catch(o){CnnXt.Logger.exception(t,e,o)}},RemoveWhitelistSetIdCookie:function(){var n="RemoveWhitelistSetIdCookie";try{return e(CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.WhitelistSet))}catch(i){CnnXt.Logger.exception(t,n,i)}},GetJanrainUser:function(){var n=localStorage.getItem(CnnXt.Common.StorageKeys.janrainUserProfile);try{return JSON.parse(n)}catch(i){return CnnXt.Logger.exception(t,"GetJanrainUser",i),null}},SetSiteCode:function(n){f(CnnXt.Common.StorageKeys.configurationSiteCode,n)},GetSiteCode:function(){return u(CnnXt.Common.StorageKeys.configurationSiteCode)},SetConfigCode:function(n){f(CnnXt.Common.StorageKeys.configurationConfigCode,n)},GetConfigCode:function(){return u(CnnXt.Common.StorageKeys.configurationConfigCode)},SetIsCustomConfiguration:function(n){f(CnnXt.Common.StorageKeys.configurationIsCustom,n)},SetUserLastUpdateDate:function(n){f(CnnXt.Common.StorageKeys.connext_userLastUpdateDate,n)},GetUserLastUpdateDate:function(){return u(CnnXt.Common.StorageKeys.connext_userLastUpdateDate)},GetIsCustomConfiguration:function(){return u(CnnXt.Common.StorageKeys.configurationIsCustom)},GetGuid:function(){return i(CnnXt.Common.StorageKeys.connext_user_Id)},SetGuid:function(n){return r(CnnXt.Common.StorageKeys.connext_user_Id,n)},GetUserData:function(){return n.jStorage.get(CnnXt.Common.StorageKeys.connext_user_data)},SetUserData:function(t){return n.jStorage.set(CnnXt.Common.StorageKeys.connext_user_data,t)},GetUserProfile:function(){var t=n.jStorage.get(CnnXt.Common.StorageKeys.connext_user_profile);return t||null},SetUserProfile:function(t){return n.jStorage.set(CnnXt.Common.StorageKeys.connext_user_profile,t)},GetConnextPaywallCookie:function(){return i(CnnXt.Common.StorageKeys.connext_paywallFired)},SetConnextPaywallCookie:function(n){var t=!CnnXt.Storage.GetLocalConfiguration().Settings.UseParentDomain;return r(CnnXt.Common.StorageKeys.connext_paywallFired,n,null,t)},SetAccountDataExpirationCookie:function(n){var t=new Date;return t.setDate(t.getDate()+1),CnnXt.Cookies.set("Connext_AccountDataExpirationCookie",n,{expires:t})},GetAccountDataExpirationCookie:function(){return CnnXt.Cookies.get("Connext_AccountDataExpirationCookie")},WrongPin:function(){var i=!CnnXt.Storage.GetLocalConfiguration().Settings.UseParentDomain,u=CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.PinAttempts),n=CnnXt.Storage.GetPinAttempts(),t;return n?n++:n=1,t=new Date,t.setMinutes(t.getMinutes()+15),r(u,n,t,i)},GetPinAttempts:function(){var n=CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.PinAttempts);return i(n)},ResetPinAttemptsCookie:function(){var n=CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.PinAttempts);e(n)},SetRegistrationType:function(t){n.jStorage.set(CnnXt.Common.StorageKeys.connext_auth_type,t)},GetRegistrationType:function(){return n.jStorage.get(CnnXt.Common.StorageKeys.connext_auth_type)||{}},GetDeviceViews:function(n){var t=l(n);return t?t[CnnXt.Common.ConvoArticleCountObj.device_article_count]:0},GetViews:function(n){var t=l(n);return t?t[CnnXt.Common.ConvoArticleCountObj.article_count]:0},GetConversationStartDate:function(n){var r="GetConversationStartDate",i;try{return i=l(n),i?i[CnnXt.Common.ConvoArticleCountObj.start_date]:null}catch(u){return CnnXt.Logger.exception(t,r,u),null}},SetConversationStartDate:function(n,i){var s="SetConversationStartDate",u,f,e,o;try{n&amp;&amp;(u=h(),f=n.MeterLevelId,u&amp;&amp;u.parserViews[f]&amp;&amp;(e=!CnnXt.Storage.GetLocalConfiguration().Settings.UseParentDomain,o=CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.connext_viewstructure),u.parserViews[f][n.id][CnnXt.Common.ConvoArticleCountObj.start_date]=i,r(o,JSON.stringify(u.parserViews),new Date("9999-01-01"),e)))}catch(c){CnnXt.Logger.exception(t,s,c)}},CheckViewCookies:function(){return it()},GetViewsData:function(){return h()},SetMeter:function(n){o=n},GetMeter:function(){return o},GetDomain:function(n){var t=null,i=n?CnnXt.Common.StorageKeys.connext_root_domain:CnnXt.Common.StorageKeys.connext_domain;return t=u(i),t||(t=CnnXt.Utils.CalculateDomain(n),f(i,t)),t},ResetConversationArticleCount:function(n){return w(n)},GetActiveConversationId:function(n){n||(n=o.Level);var t=h();return t.parserViews&amp;&amp;t.parserViews[n]&amp;&amp;t.parserViews[n][CnnXt.Common.MeteredArticleCountObj.active_convo_id]?t.parserViews[n][CnnXt.Common.MeteredArticleCountObj.active_convo_id]:0},SetActiveConversationId:function(n,t){var u,i,f,e;t||(t=o.Level);u=h();i=u.parserViews?u.parserViews:{};i[t]=i[t]?i[t]:{};i[t][CnnXt.Common.MeteredArticleCountObj.active_convo_id]=n;f=!CnnXt.Storage.GetLocalConfiguration().Settings.UseParentDomain;e=CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.connext_viewstructure);r(e,JSON.stringify(i),new Date("9999-01-01"),f)},GetTimeRepeatableActionData:function(n){try{var r=null,u=null,f=CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.connext_time_repeatable_actions);return r=JSON.parse(i(f)||"{}"),n?r&amp;&amp;r[n.ConversationId]&amp;&amp;r[n.ConversationId][n.id]&amp;&amp;(u={date:r[n.ConversationId][n.id][CnnXt.Common.TimeRepeatableActionsCS.repeat_after],count:r[n.ConversationId][n.id][CnnXt.Common.TimeRepeatableActionsCS.count]}):u=r,u}catch(e){return CnnXt.Logger.exception(t,"GetTimeRepeatableActionData",e),null}},SetTimeRepeatableActionData:function(n){try{var i=null,f=!CnnXt.GetOptions().configSettings.UseParentDomain,e=CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.connext_time_repeatable_actions);i=CnnXt.Storage.GetTimeRepeatableActionData()||{};i[n.ConversationId]||(i[n.ConversationId]={});i[n.ConversationId][n.id]||(i[n.ConversationId][n.id]={});var u={},o=i[n.ConversationId][n.id][CnnXt.Common.TimeRepeatableActionsCS.count]||0,s=CnnXt.Utils.AddTimeInervalToDate(n.When.Time.RepeatAfterTime,n.When.Time.RepeatAfterTimeType);u[CnnXt.Common.TimeRepeatableActionsCS.repeat_after]=s;u[CnnXt.Common.TimeRepeatableActionsCS.count]=o+1;i[n.ConversationId][n.id]=u;r(e,JSON.stringify(i),new Date("9999-01-01"),f)}catch(h){CnnXt.Logger.exception(t,"SetTimeRepeatableActionData",h)}},RemoveTimeRepeatableActionData:function(n){try{var i=null,f=!CnnXt.GetOptions().configSettings.UseParentDomain,u=CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.connext_time_repeatable_actions);n?(i=CnnXt.Storage.GetTimeRepeatableActionData(),i?(delete i[n],__.isEmpty(i)?e(u):r(u,JSON.stringify(i),new Date("9999-01-01"),f)):e(u)):e(u)}catch(o){CnnXt.Logger.exception(t,"RemoveTimeRepeatableActionData",o)}},UpdateWhitelistSetCookieName:function(){var f="UpdateWhitelistSetCookieName",r,u,n;try{r=CnnXt.Common.StorageKeys.WhitelistSet;u=CnnXt.Utils.GetCookieName(r);i(u)==undefined&amp;&amp;i(r)!=undefined&amp;&amp;(n=JSON.parse(i(r)),n.Id&amp;&amp;n.Expiration&amp;&amp;(CnnXt.Storage.SetWhitelistSetIdCookie({Id:n.Id,Expiration:n.Expiration},new Date(n.Expiration)),e(r)))}catch(o){CnnXt.Logger.exception(t,f,o)}},UpdateWhitelistInfoboxCookieName:function(){var u="UpdateWhitelistInfoboxCookieName",n,r;try{n=CnnXt.Common.StorageKeys.WhitelistInfobox;r=CnnXt.Utils.GetCookieName(n);i(r)==undefined&amp;&amp;i(n)!=undefined&amp;&amp;(CnnXt.Storage.SetWhitelistInfoboxCookie(!0),e(n))}catch(f){CnnXt.Logger.exception(t,u,f)}},UpdateNeedHidePinTemplateCookieName:function(){var u="UpdateNeedHidePinTemplateCookieName",n,r;try{n=CnnXt.Common.StorageKeys.NeedHidePinTemplate;r=CnnXt.Utils.GetCookieName(n);i(r)==undefined&amp;&amp;i(n)!=undefined&amp;&amp;(CnnXt.Storage.SetNeedHidePinTemplateCookie(!0),e(n))}catch(f){CnnXt.Logger.exception(t,u,f)}},GetCookie:function(n){return i(n)},GetLocalViewData:function(){var s="getLocalViewData",i,c,h,n,o,f;CnnXt.Logger.debug(t,s,"Get local view data");try{var e={},r=CnnXt.Storage.GetViewsData(),u=CnnXt.Storage.GetTimeRepeatableActionData();if(e.AllowedIpSet=CnnXt.Storage.GetWhitelistSetIdCookie()?JSON.parse(CnnXt.Storage.GetWhitelistSetIdCookie()):undefined,e.DynamicMeterViews={},r!=undefined&amp;&amp;r.parserViews!=undefined)for(i in r.parserViews){c=CnnXt.Common.MeterLevels[i]!=undefined?CnnXt.Common.MeterLevels[i]:i;h=[];for(n in r.parserViews[i])if(/^-?(0|[1-9]\d*)$/.test(n)&amp;&amp;r.parserViews[i][n]!=null&amp;&amp;(typeof r.parserViews[i][n]).toLowerCase()=="object"){if(o=null,u&amp;&amp;u[n]){o=[];for(f in u[n])/^(0|[1-9]\d*)$/.test(f)&amp;&amp;u[n][f]!=null&amp;&amp;(typeof u[n][f]).toLowerCase()=="object"&amp;&amp;o.push({Id:+f,RepeatAfter:u[n][f][CnnXt.Common.TimeRepeatableActionsCS.repeat_after],Count:u[n][f][CnnXt.Common.TimeRepeatableActionsCS.count]})}h.push({Id:+n,ViewCount:r.parserViews[i][n][CnnXt.Common.ConvoArticleCountObj.device_article_count],StartDate:r.parserViews[i][n][CnnXt.Common.ConvoArticleCountObj.start_date],Actions:o})}e.DynamicMeterViews[c]={ActiveConversationId:r.parserViews[i][CnnXt.Common.MeteredArticleCountObj.active_convo_id],Conversations:h}}return CnnXt.Logger.debug(t,s,"Local view data is found",e),e}catch(l){return CnnXt.Logger.exception(t,s,l),{}}},SetMessagingData:function(n,t){var u=new Date,i;u.setDate(u.getDate()+1);i=CnnXt.Storage.GetMessagingData();i||(i={},r(CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.connext_messaging_data_expire),!0,u));i[n]=t;f(CnnXt.Common.StorageKeys.connext_messaging_data,i)},GetMessagingData:function(){var n=u(CnnXt.Common.StorageKeys.connext_messaging_data),t=!i(CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.connext_messaging_data_expire));return t?null:n||{}},SetCookie:function(n,t,i,u){r(n,t,i,u)},GetCookies:function(){return ut()},GetAuthUserId:function(){var u=CnnXt.Storage.GetLocalConfiguration(),t=null,i,r,n;switch(u.Site.RegistrationTypeId){case CnnXt.Common.RegistrationTypes.MG2:i=CnnXt.Storage.GetUserData();t=i&amp;&amp;i.MasterId?i.MasterId:null;break;case CnnXt.Common.RegistrationTypes.Janrain:r=CnnXt.Storage.GetJanrainUser();t=r&amp;&amp;r.uuid?r.uuid:null;break;case CnnXt.Common.RegistrationTypes.Auth0:n=CnnXt.Storage.GetUserProfile();t=null;n&amp;&amp;(t=n.sub?n.sub:n.identities&amp;&amp;n.identities[0]?n.identities[0].user_id:null)}return t},SetGeolocationInfo:function(n){f(CnnXt.Common.StorageKeys.geolocationInfo,n)},GetGeolocationInfo:function(){return u(CnnXt.Common.StorageKeys.geolocationInfo)}}},CookieMigration=function(n){var t="CookieMigration",i=function(){var s="migrateDataFromPrevVersionStructure",o,h,f,l,n,u,e,i;try{if(o=CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.connext_viewstructure),CnnXt.Storage.GetCookie(o))return;if(o=CnnXt.Utils.GetCookieName("connext_viewstructure"),h=CnnXt.Storage.GetCookie(o),!h)return;if(f=JSON.parse(h),CnnXt.Storage.SetCookie(o,f,new Date("2018-04-01")),f=={})return;l=!CnnXt.Storage.GetLocalConfiguration().Settings.UseParentDomain;n={};for(u in f)if(e=u.indexOf("_device")&gt;0?u.split("_")[0]:u,i=r(e),i!=0)if(n[i]=n[i]?n[i]:{},n[i][e]=n[i][e]?n[i][e]:{},u.indexOf("_device")&gt;0){n[i][e][CnnXt.Common.ConvoArticleCountObj.device_article_count]=f[u];try{n[i]["_"+CnnXt.Common.ConvoArticleCountObj.device_article_count]=n[i]["_"+CnnXt.Common.ConvoArticleCountObj.device_article_count]?parseInt(n[i]["_"+CnnXt.Common.ConvoArticleCountObj.device_article_count]):parseInt(f[u])}catch(c){CnnXt.Logger.exception(t,"cannot parse meterlevel viewsCount",s,c)}}else{n[i][e][CnnXt.Common.ConvoArticleCountObj.article_count]=f[u];try{n[i]["_"+CnnXt.Common.ConvoArticleCountObj.article_count]=n[i]["_"+CnnXt.Common.ConvoArticleCountObj.article_count]?parseInt(n[i]["_"+CnnXt.Common.ConvoArticleCountObj.article_count]):parseInt(f[u])}catch(c){CnnXt.Logger.exception(t,"cannot parse meterlevel viewsCount",s,c)}}CnnXt.Storage.SetCookie(CnnXt.Utils.GetCookieName(CnnXt.Common.StorageKeys.connext_viewstructure),n,new Date("9999-01-01"),l)}catch(c){CnnXt.Logger.exception(t,s,c)}},r=function(n){var t=CnnXt.Storage.GetCampaignData().Conversations,i,r;if(!t)return 0;for(i in t)if(t.hasOwnProperty(i)&amp;&amp;t[i])for(r in t[i])if(t[i][r].id==n)return t[i][r].MeterLevelId;return 0},u=function(){var i="clearOldCookies";try{String.prototype.startsWith||(String.prototype.startsWith=function(n,t){return t=t||0,this.indexOf(n,t)===t});n.each(CnnXt.Storage.GetCookies(),function(n){var t=n.toString(),i,r;t.startsWith(" ")&amp;&amp;(t=t.trim());t=decodeURIComponent(t);(t.startsWith("Connext_ViewedArticles")||t.startsWith("sub_Connext_ViewedArticles"))&amp;&amp;(CnnXt.Cookies.remove(t),i=location.host.split("."),r="."+i[i.length-2]+"."+i[i.length-1],CnnXt.Cookies.remove(t,{domain:r}))})}catch(r){CnnXt.Logger.exception(t,i,r)}},f=function(){u();i()};return{init:function(){CnnXt.Logger.debug(t,"Initializing CookieMigration Module...")},Migrate:f}},ConnextAPI=function(n){var t="API",s,o,a="api/",h="Sorry, there's a server problem or a problem with the network. ",e,h="Sorry, there's a server problem or a problem with the network. ",c={GetConfiguration:__.template("configuration/siteCode/&lt;%= siteCode %&gt;/configCode/&lt;%= configCode %&gt;?publishDate=&lt;%= publishDate %&gt;"),GetUserByEmailAndPassword:__.template("user"),GetUserByMasterId:__.template("user/masterId/&lt;%= id %&gt;"),EmailPreferences:"user/emailPreference",GetUserLastUpdateDate:__.template("user/getLastUpdateDate?masterId=&lt;%=masterId%&gt;"),GetUserByEncryptedMasterId:__.template("user/encryptedMasterId?encryptedMasterId=&lt;%= encryptedMasterId %&gt;"),ClearServerCache:__.template("clear/siteCode/&lt;%=siteCode%&gt;/configCode/&lt;%=configCode%&gt;"),viewsData:"views",ServerStorageDeleteViewsByUserId:__.template("views/user/delete?userId=&lt;%= userId %&gt;&amp;masterId=&lt;%= masterId %&gt;&amp;configCode=&lt;%= configCode %&gt;&amp;siteCode=&lt;%= siteCode %&gt;&amp;settingsKey=&lt;%= settingsKey %&gt;"),ServerStorageResetConversationViews:__.template("views/user/delete?userId=&lt;%= userId %&gt;&amp;conversationId=&lt;%= conversationId %&gt;&amp;configCode=&lt;%= configCode %&gt;&amp;siteCode=&lt;%= siteCode %&gt;&amp;settingsKey=&lt;%= settingsKey %&gt;"),CreateUser:__.template("user/create"),ActivateByAccountNumber:__.template("user/ActivateByAccountNumber"),ActivateByConfirmationNumber:__.template("user/ActivateByConfirmationNumber"),ActivateByZipCodeAndHouseNumber:__.template("user/ActivateByZipCodeAndHouseNumber"),ActivateByZipCodeAndPhoneNumber:__.template("user/ActivateByZipCodeAndPhoneNumber"),SyncUser:__.template("user/sync"),GetDictionaryValue:__.template("dictionary/&lt;%= ValueName %&gt;"),CheckDigitalAccess:__.template("user/DigitalAccess?masterId=&lt;%= masterId %&gt;&amp;mode=&lt;%= mode %&gt;"),GetClientIpInfo:__.template("utils/ipInfo"),CheckMg2Pin:__.template("whitelist/check"),GetUserMessages:__.template("user/messages?locationCode=&lt;%=locationCode%&gt;&amp;registrationId=&lt;%=registrationId%&gt;&amp;subscriptionIds=&lt;%=subscriptionIds%&gt;"),ForgotPassword:__.template("user/forgotPassword")},l=function(t,i){if(t.status===401){var r=t.getResponseHeader("date");return i.headers.Authorization=e=CnnXt.Utils.GenerateJWTToken(r),delete i.error,n.ajax(i)}return n.Deferred().reject()},r={publishFile:{url:"",responceCode:"",publishDate:"",ex:""},config:{isExistsInLocalStorage:"",localPublishDate:""},clientUrl:"",reason:""},i=function(n,t,i){__.isFunction(n.options[t])&amp;&amp;n.options[t](i)},u=function(r){var u="Get",f,a;try{return f=o+c[r.method](r.options.payload),a="",CnnXt.Logger.debug(t,u,r.method,"calling...",f,"args",r),r.options.meta&amp;&amp;(a=JSON.stringify(r.options.meta)),n.ajax({headers:{"Site-Code":s.siteCode,"Paper-Code":CnnXt.GetOptions().paperCode,"Product-Code":CnnXt.Utils.GetProductCode(),"Access-Control-Allow-Origin":"*",Environment:CnnXt.GetOptions().environment,settingsKey:CnnXt.GetOptions().settingsKey,attr:CnnXt.GetOptions().attr,metaData:a,Version:CnnXt.GetVersion(),"Config-Code":CnnXt.GetOptions().configCode,"Source-System":"Plugin",Authorization:e,Location:r.options.location},url:f,type:"GET",dataType:"json",success:function(n,f,e){n&amp;&amp;e.status!=204?(CnnXt.Logger.debug(t,u,r.method,"&lt;&lt; SUCCESS RESULT&gt;&gt;","textStatus",f,"data",n),i(r,"onSuccess",n)):(CnnXt.Logger.debug(t,u,r.method,"&lt;&lt; SUCCESS NULL RESULT &gt;&gt;","textStatus",f,"data",n),i(r,"onNull"))},error:function(n){var f=CnnXt.Utils.GetErrorMessageFromAPIResponse(n.responseText,h),e;CnnXt.Logger.debug(t,u,r.method,"Ajax.Error",f);e=this;l(n,e).fail(function(){i(r,"onError",f)})},complete:function(){i(r,"onComplete")}})}catch(v){CnnXt.Logger.exception(t,u,r.method,v);i(r,"onError")}},f=function(r){var u="Post",f,a;try{return f=o+c[r.method](r.options.payload),a="",CnnXt.Logger.debug(t,u,r.method,"calling...",f,"args",r),r.options.meta&amp;&amp;(a=JSON.stringify(r.options.meta)),n.ajax({headers:{"Site-Code":s.siteCode,"Paper-Code":CnnXt.GetOptions().paperCode,"Product-Code":CnnXt.Utils.GetProductCode(),"Config-Code":CnnXt.GetOptions().configCode,"Access-Control-Allow-Origin":"*",Environment:CnnXt.GetOptions().environment,settingsKey:CnnXt.GetOptions().settingsKey,attr:CnnXt.GetOptions().attr,metaData:a,Version:CnnXt.GetVersion(),"Source-System":"Plugin",Authorization:e,Location:r.options.location},url:f,type:"POST",data:r.options.payload,dataType:"json",success:function(n,f,e){n&amp;&amp;e.status!=204?(CnnXt.Logger.debug(t,u,r.method,"&lt;&lt; SUCCESS RESULT &gt;&gt;","textStatus",f,"data",n),i(r,"onSuccess",n)):(CnnXt.Logger.debug(t,u,r.method,"&lt;&lt; SUCCESS NULL RESULT &gt;&gt;","textStatus",f,"data",n),i(r,"onNull"))},error:function(n){var f=CnnXt.Utils.GetErrorMessageFromAPIResponse(n.responseText,h),e;CnnXt.Logger.debug(t,u,r.method,"Ajax.Error",f);e=this;l(n,e).fail(function(){i(r,"onError",f)})},complete:function(){i(r,"onComplete")}})}catch(v){CnnXt.Logger.exception(t,u,r.method,v);i(r,"onError")}},v=function(r){var u="GetNewsletters",f;try{return f=o+c.EmailPreferences,f+="?email="+r.options.email+"&amp;emailPreferenceId="+r.options.id,CnnXt.Logger.debug(t,u,"calling...",f,"args",r),n.ajax({headers:{"Site-Code":CnnXt.GetOptions().siteCode,Authorization:e,"Access-Control-Allow-Origin":"*",Environment:CnnXt.GetOptions().environment,settingsKey:CnnXt.GetOptions().settingsKey,Version:CnnXt.GetVersion(),"Source-System":"Plugin",Location:"Newsletter"},url:f,type:"GET",dataType:"json",success:function(n,f,e){CnnXt.Event.fire("onNewsletterSignUp",CnnXt.PublicObjectsMapper.Map(r.options,"OnNewsletterEventData"));n&amp;&amp;e.status!=204?(CnnXt.Logger.debug(t,u,"&lt;&lt; SUCCESS RESULT &gt;&gt;","textStatus",f,"data",n),i(r,"onSuccess")):(CnnXt.Logger.debug(t,u,"&lt;&lt; SUCCESS NULL RESULT &gt;&gt;","textStatus",f,"data",n),i(r,"onNull"))},error:function(n){var f,e;CnnXt.Event.fire("onNewsletterSignUpFails",CnnXt.PublicObjectsMapper.Map(r.options,"OnNewsletterEventData"));f=CnnXt.Utils.GetErrorMessageFromAPIResponse(n.responseText,h);CnnXt.Logger.debug(t,u,"Ajax.Error",f);e=this;l(n,e).fail(function(){i(r,"onError",f)})},complete:function(){i(r,"onComplete")}})}catch(s){CnnXt.Logger.exception(t,u,s);i(r,"onError")}},y=function(){var i="clearServerCache",r={siteCode:CnnXt.GetOptions().siteCode,configCode:CnnXt.GetOptions().configCode},u=o+c.ClearServerCache(r);return CnnXt.Logger.debug(t,i,"calling...",u,"payload",r),n.ajax({headers:{attr:CnnXt.GetOptions().attr,Authorization:e,Location:"Testing"},url:u,type:"POST",dataType:"json",success:function(n,r){CnnXt.Logger.debug(t,i,"&lt;&lt; SUCCESS &gt;&gt;","textStatus",r,"data",n)},error:function(n){var r=CnnXt.Utils.GetErrorMessageFromAPIResponse(n.responseText,h),u;CnnXt.Logger.debug(t,i,"Ajax.Error",r);u=this;l(r,u)}})};return{init:function(n){CnnXt.Logger.debug(t,"Initializing API Module...");s=n;o=s.apiUrl+a;e=CnnXt.Utils.GenerateJWTToken()},GetConfiguration:function(n){return r.clientUrl=document.location.href,r.userAgent=navigator.userAgent,r.guid=CnnXt.Storage.GetGuid(),r.localConfig=localStorage.getItem("IsLocalConfig"),n.meta=r,u({method:"GetConfiguration",options:n})},GetUserByEmailAndPassword:function(n){return f({method:"GetUserByEmailAndPassword",options:n})},ClearServerCache:y,GetUserByMasterId:function(n){return u({method:"GetUserByMasterId",options:n})},GetUserLastUpdateDate:function(n){return u({method:"GetUserLastUpdateDate",options:n})},GetUserByEncryptedMasterId:function(n){return u({method:"GetUserByEncryptedMasterId",options:n})},CreateUser:function(n){return f({method:"CreateUser",options:n})},ActivateByAccountNumber:function(n){return f({method:"ActivateByAccountNumber",options:n})},ActivateByZipCodeAndHouseNumber:function(n){return f({method:"ActivateByZipCodeAndHouseNumber",options:n})},ActivateByZipCodeAndPhoneNumber:function(n){return f({method:"ActivateByZipCodeAndPhoneNumber",options:n})},ActivateByConfirmationNumber:function(n){return f({method:"ActivateByConfirmationNumber",options:n})},SyncUser:function(n){return f({method:"SyncUser",options:n})},SendViewData:function(i){var r="SendViewData",u=o+c.viewsData;return CnnXt.Logger.debug(t,r,"calling...",u,"data",i),n.ajax({url:u,headers:{Environment:CnnXt.GetOptions().environment,"Content-Type":"application/json",Authorization:e,Location:"System"},type:"POST",data:JSON.stringify(i),dataType:"json",success:function(n,i){CnnXt.Logger.debug(t,r,"&lt;&lt; SUCCESS &gt;&gt;","textStatus",i,"data",n)},error:function(n){var i=CnnXt.Utils.GetErrorMessageFromAPIResponse(n.responseText,h),u;CnnXt.Logger.debug(t,r,"Ajax.Error",i);u=this;l(i,u)}})},GetViewData:function(){var i="GetViewData",u={userId:CnnXt.GetOptions().deviceId,configCode:CnnXt.GetOptions().configCode,siteCode:CnnXt.GetOptions().siteCode,settingsKey:CnnXt.GetOptions().settingsKey},r=o+c.viewsData;return CnnXt.Logger.debug(t,i,"calling...",r),n.ajax({url:r,headers:{Environment:CnnXt.GetOptions().environment,Authorization:e,Location:"System"},type:"GET",data:u,success:function(n,r){CnnXt.Logger.debug(t,i,"&lt;&lt; SUCCESS &gt;&gt;","textStatus",r,"data",n)},error:function(n){var r=CnnXt.Utils.GetErrorMessageFromAPIResponse(n.responseText,h),u;CnnXt.Logger.debug(t,i,"Ajax.Error",r);u=this;l(r,u)}})},ServerStorageDeleteViewsByUserId:function(n){return n&amp;&amp;n.payload&amp;&amp;(n.payload.configCode&amp;&amp;(n.payload.configCode=encodeURIComponent(n.payload.configCode)),n.payload.siteCode&amp;&amp;(n.payload.siteCode=encodeURIComponent(n.payload.siteCode)),n.payload.settingsKey&amp;&amp;(n.payload.settingsKey=encodeURIComponent(n.payload.settingsKey))),u({method:"ServerStorageDeleteViewsByUserId",options:n})},ServerStorageResetConversationViews:function(n){return n&amp;&amp;n.payload&amp;&amp;(n.payload.configCode&amp;&amp;(n.payload.configCode=encodeURIComponent(n.payload.configCode)),n.payload.siteCode&amp;&amp;(n.payload.siteCode=encodeURIComponent(n.payload.siteCode)),n.payload.settingsKey&amp;&amp;(n.payload.settingsKey=encodeURIComponent(n.payload.settingsKey))),u({method:"ServerStorageResetConversationViews",options:n})},meta:r,GetLastPublishDateS3:function(){var i="GetLastPublishDateS3",u;try{return u=s.resourceUrl+"data/last_publish/"+s.siteCode+".json?_="+(new Date).getTime(),CnnXt.Logger.debug(t,i,"jsonURL",u),r.publishFile.url=u,n.ajax({crossDomain:!0,contentType:"application/json; charset=utf-8",async:!0,url:u,success:function(n,u){CnnXt.Logger.debug(t,i,"&lt;&lt; SUCCESS &gt;&gt;","textStatus",u,"data",n);r.publishFile.responceCode=200},error:function(n){CnnXt.Logger.debug(t,i,"Ajax.Error",n);r.publishFile.responceCode=n.status;r.reason=CnnXt.Common.DownloadConfigReasons.getPublishFailed}})}catch(f){CnnXt.Logger.exception(t,i,f);r.reason=CnnXt.Common.DownloadConfigReasons.getPublishFailed;r.publishFile.ex=f}},NewsletterSubscribe:function(n){return v({method:"NewsletterSubscribe",options:n})},GetProductCode:function(){return u({method:"GetDictionaryValue",options:{payload:{ValueName:"productCode"}}})},CheckDigitalAccess:function(n){return u({method:"CheckDigitalAccess",options:n})},GetClientIpInfo:function(n){return u({method:"GetClientIpInfo",options:n})},CheckMg2Pin:function(n){return f({method:"CheckMg2Pin",options:n})},GetUserMessages:function(n){return u({method:"GetUserMessages",options:n})},ForgotPassword:function(n){return f({method:"ForgotPassword",options:n})}}},ConnextUser=function(n){var t="User",v="User",h,f={},p=!1,c={},a,s,ft,r,w,i,k,d,g=!1,o={},et="UserName or Password invalid. Please try again or click on the Forgot/Reset Password link to update your password, or create an account if you have never registered an email address with us.",l={show:function(n){try{s&amp;&amp;s.info(n).show()}catch(i){CnnXt.Logger.exception(t,"NOTIFICATION.show",i)}},hide:function(){try{s&amp;&amp;s.hide()}catch(n){CnnXt.Logger.exception(t,"NOTIFICATION.hide",n)}},showAndHide:function(n,i){try{s&amp;&amp;(s.info(n),k=setTimeout(function(){s.find(".alert").remove()},i))}catch(r){CnnXt.Logger.exception(t,"NOTIFICATION.showAndHide",r)}}},u={LoginButton:"[data-mg2-submit=login]:visible",CepLoginButton:"[data-connext-button=LogIn]",ForgotPassword:'[data-mg2-action="ForgotPassword"]',CepEmail:'[data-connext-input="Email"]',CepPassword:"[data-connext-input=Password]",LoginAlert:"[data-mg2-alert=login]:visible",JanrainLoginBtn:"[data-mg2-submit=janrainLogin]:visible",InputUsername:"[data-mg2-alert=login] [data-mg2-input=Email]:visible, [data-connext-input=Email]:visible",InputPassword:"[data-mg2-alert=login] [data-mg2-input=Password]:visible, [data-connext-input=Password]:visible",ActionShowLogin:"[data-mg2-action=login]",LogoutButton:"[data-mg2-action=logout]",SubscribeButton:'[data-mg2-action="submit"]',SubmitZipCode:'[data-mg2-action="Zipcode"]',ConnextRun:'[data-mg2-action="connextRun"]',OpenNewsletterWidget:'[data-mg2-action="openNewsletterWidget"]',LoginModal:'&lt;div data-mg2-alert="login" data-template-id="23" data-display-type="modal" data-width="400" id="mg2-login-modal"  tabindex="-1" class="Mg2-connext modal fade in"&gt;&lt;div class="modal-body picker-bg"&gt;&lt;i class="fa fa-times closebtn" data-dismiss="modal" aria-label="Close" aria-hidden="true"&gt;&lt;\/i&gt;&lt;form&gt;&lt;h1 class="x-editable-text text-center h3"&gt;LOGIN&lt;\/h1&gt;&lt;p class="x-editable-text text-center m-b-2" &gt;to save access to articles or get newsletters, allerts or recomendations — all for free&lt;\/p&gt;&lt;label class="textColor4 x-editable-text" &gt;E-mail&lt;\/label&gt;&lt;input type="email" data-mg2-input="Email" class="text" name="email" value=""   data-mg2-input="Email" /&gt;&lt;label class="textColor4 x-editable-text"&gt;Password&lt;\/label&gt;&lt;input type="password" data-mg2-input="Password" class="text" name="password" value=""  data-mg2-input="Password" /&gt;&lt;a href="" data-mg2-submit="login" class="input submit x-editable-text" title="Login"&gt;Login&lt;\/a&gt;&lt;\/form&gt;&lt;\/div&gt;&lt;\/div&gt;',CheckAccessPopup:'&lt;div class="Mg2-connext modal fade in" id="CheckAccessPopup" data-display-type="modal" data-width="300" tabindex="-1"&gt;&lt;div class="modal-dialog" role="document"&gt;&lt;div class="modal-content"&gt;&lt;div class="modal-body"&gt;We noticed that your access status has changed. Page will be reloaded based on your new access permissions&lt;\/div&gt;&lt;div class="modal-footer text-center"&gt;&lt;button type="button" id="ConnextRunBtn" class="btn btn-default" data-dismiss="modal"&gt;OK&lt;\/button&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;'},ot=function(){var i="Init";try{if(CnnXt.Logger.debug(t,"Initializing User Module..."),u.LoginModal=h.LoginModal,st(),g)return;g=!0;n("body").on("click",u.LogoutButton,function(n){n.preventDefault();var i=u.LogoutButton+".CLICK";CnnXt.Logger.debug(t,i,n);vt()});n("body").on("click",'[data-dismiss="alert"]',function(){s.find(".alert").remove();clearTimeout(k)});n("body").on("click",u.SubscribeButton,function(i){var f;i.preventDefault();f=u.SubscribeButton+".CLICK";CnnXt.Logger.debug(t,f,i);try{var e=n(this),r=e.attr("href"),o=e.parents(".Mg2-connext").find('[data-mg2-input="Email"]').val();r=CnnXt.Utils.AddParameterToURL(r,"email",o);e.attr("href",r);window.location.href=r}catch(s){CnnXt.Logger.exception(t,f,s)}});n("body").on("click",u.SubmitZipCode,function(i){var o;i.preventDefault();o=u.SubmitZipCode+".CLICK";CnnXt.Logger.debug(t,o,i);try{var s,r=n(this),f=r.attr("href"),e=r.parents(".Mg2-connext").find('[data-mg2-input="Zipcode"]');e.length===1?s=e.val():e.length&gt;1&amp;&amp;(s=r.parents(".Mg2-zip-wrapper").length!==0?r.parents(".Mg2-zip-wrapper").find('[data-mg2-input="Zipcode"]').val():e.first().val());f=CnnXt.Utils.AddParameterToURL(f,"zipcode",s);r.attr("href",f);r[0].hasAttribute("target")?window.open(f,"_blank"):window.location.href=f}catch(h){CnnXt.Logger.exception(t,o,h)}});n("body").on("click",u.OpenNewsletterWidget,function(i){var e,r,f;i.preventDefault();e=u.OpenNewsletterWidget+".CLICK";CnnXt.Logger.debug(t,e,i);try{r=n(this);f={};r.parents(".Mg2-connext").find('[data-mg2-input="Email"]').val()!=undefined&amp;&amp;r.parents(".Mg2-connext").find('[data-mg2-input="Email"]').val()!==""&amp;&amp;(f.email=r.parents(".Mg2-connext").find('[data-mg2-input="Email"]').val());r.data("category-ids-list")!=undefined&amp;&amp;(f.categoryIdsList=r.data("category-ids-list").toString().split(",").map(function(n){return parseInt(n,10)}));r.data("newsletter-ids-list")!=undefined&amp;&amp;(f.newsletterIdsList=r.data("newsletter-ids-list").toString().split(",").map(function(n){return parseInt(n,10)}));r.data("view-mode")!=undefined&amp;&amp;(f.viewMode=r.data("view-mode"));mg2WidgetAPI.openNewsletter(f)}catch(o){CnnXt.Logger.exception(t,e,o)}});n("body").on("click",".Mg2-btn-forgot",function(i){var f;i.preventDefault();f="Forgot password btn.CLICK";CnnXt.Logger.debug(t,f,i);try{var u=n(this),r=u.attr("href"),e=u.parents(".Mg2-connext").find('[data-mg2-input="Email"]').val();r=CnnXt.Utils.AddReturnUrlParamToLink(r);r=CnnXt.Utils.AddParameterToURL(r,"email",e);u.attr("href",r);u[0].hasAttribute("target")?window.open(r,"_blank"):window.location.href=r}catch(o){CnnXt.Logger.exception(t,f,o)}});n("body").on("click dblclick",u.LoginButton,function(i){var r,e,o;i.preventDefault();r=u.LoginButton+".CLICK";CnnXt.Logger.debug(t,r,i);try{a=n(u.LoginButton).loader();s=n(u.LoginAlert).jalert();a.on();f.MG2?(e=n(u.InputUsername).val(),o=n(u.InputPassword).val(),rt(e,o)):JanrainAuthenticate(n("[data-mg2-input=Username]:visible").val(),n("[data-mg2-input=Password]:visible").val())}catch(h){CnnXt.Logger.exception(t,r,h)}});n("body").on("click dblclick",u.CepLoginButton,function(i){var r;i.preventDefault();r=u.CepLoginButton+".CLICK";CnnXt.Logger.debug(t,r,i);try{var e=n(this),o=e.parents("[data-connext-template-substep=Login]").find(u.CepEmail).val(),s=e.parents("[data-connext-template-substep=Login]").find(u.CepPassword).val();f.MG2?rt(o,s):JanrainAuthenticate(o,s)}catch(h){CnnXt.Logger.exception(t,r,h)}});n("body").on("click",u.JanrainLoginBtn,function(i){var r,f,e;i.preventDefault();r=u.JanrainLoginBtn+".CLICK";CnnXt.Logger.debug(t,r,i);try{window.janrain?(f=n("[data-mg2-input=Email]:visible").val(),e=n("[data-mg2-input=Password]:visible").val(),janrain.capture.ui.modal.open(),n("#capture_signIn_traditionalSignIn_emailAddress").val(f),n("#capture_signIn_traditionalSignIn_password").val(e),n("#capture_signIn_traditionalSignIn_signInButton").click()):CnnXt.Logger.warn("No janrain global object found!")}catch(o){CnnXt.Logger.exception(t,r,o)}});n("body").on("click",u.ActionShowLogin,function(n){n.preventDefault();var i=u.ActionShowLogin+".Click";CnnXt.Logger.debug(t,i,"IS_LOGGED_IN",p);nt()});n("body").on("click",u.ForgotPassword,function(t){var r,i,f,e;t.preventDefault();r=n(this);i=r.parents("[data-connext-template-substep=ForgotPassword]").find(u.CepEmail).val();i&amp;&amp;(f=CnnXt.Activation.IsActivationFlowRunning(),e={Email:i,ReturnUrl:window.location.href+(window.location.href.split("?").length&gt;1?"&amp;":"?")+"returnStep="+(f?"activate":"login")},CnnXt.API.ForgotPassword({Location:v,payload:e,onSuccess:function(){CnnXt.Event.fire("onForgotPasswordResult",{Success:!0})},onError:function(n){CnnXt.Event.fire("onForgotPasswordResult",{Success:!1,Error:n})}}))})}catch(r){CnnXt.Logger.exception(t,i,r);i="Forgot password btn.CLICK";CnnXt.Logger.debug(t,i,e);try{var o=n(this),c=CnnXt.Activation.IsActivationFlowRunning(),l=o.parents(".Mg2-forgot-password-step-wrapper").find(u.InputUsername)}catch(r){CnnXt.Logger.exception(t,i,r)}}},nt=function(){var e="openLoginModal",i,r;try{if(f.MG2){i=n(u.LoginModal);i.addClass("in");i.attr("id","mg2-login-modal");i.css("display","block");CnnXt.Utils.AddQueryParamsToAllLinks(i);i.connextmodal({backdrop:"true"});i.resize();r=null;i.on("keydown",function(n){(n.key==="Escape"||n.key==="Esc"||n.keyCode===27)&amp;&amp;(r=CnnXt.Common.CLOSE_CASES.EscButton)}).on("hidden.bs.modal",function(){(r===null||r===undefined)&amp;&amp;(r=CnnXt.Common.CLOSE_CASES.ClickOutside);CnnXt.Event.fire("onLoginClosed",{CloseEvent:r})});i.find("[data-dismiss=mg2bn], [data-dismiss=info-box], [data-dismiss=inline], [data-dismiss=modal]").on("click",function(){r=CnnXt.Common.CLOSE_CASES.CloseButton;CnnXt.Event.fire("onButtonClick",r)})}else f.GUP?wt(window):f.Janrain?window.janrain?janrain.capture.ui.modal.open():CnnXt.Logger.warn("No janrain global object found!"):f.Auth0&amp;&amp;(Auth0Lock?ut():CnnXt.Logger.warn("No Auth0 global object found!"));CnnXt.Event.fire("onLoginShown",{LoginModalName:h.LoginModalName})}catch(o){CnnXt.Logger.exception(t,e,o)}},st=function(){var i="setAuthType",r,e;try{if(CnnXt.Logger.debug(t,i,"Setting auth type...",h),h.Site.RegistrationTypeId==1)CnnXt.Logger.debug(t,i,"Use MG2 auth system"),f.MG2=!0;else if(h.Site.RegistrationTypeId==2)CnnXt.Logger.debug(t,i,"Use Janrain auth system"),f.Janrain=!0,a=n(u.LoginButton).loader(),s=n(u.LoginAlert).jalert();else if(h.Site.RegistrationTypeId==3)CnnXt.Logger.debug(t,i,"Use GUP auth system"),f.GUP=!0;else if(h.Site.RegistrationTypeId==4){if(CnnXt.Logger.debug(t,i,"Use Auth0 auth system"),f.Auth0=!0,r=CnnXt.GetOptions().authSettings,!r&amp;&amp;!__.isObject(r.auth0Lock))throw CnnXt.Common.ERROR.NO_AUTH0_LOCK;e=r.auth0Lock;e.on("authenticated",function(n){CnnXt.Logger.debug(t,"lock.on: authenticated",n);e.getUserInfo(n.accessToken,function(n,i){if(n){CnnXt.Logger.debug(t,"lock.getUserInfo",n);CnnXt.Storage.SetUserProfile("");CnnXt.Event.fire("onLoginError",{ErrorMessage:__.isString(n)?n:""});return}CnnXt.Logger.debug(t,"lock.getUserInfo",i);CnnXt.Storage.SetUserProfile(i);CnnXt.Activation.IsActivationFlowRunning()?CnnXt.User.CheckAccess().always(function(){CnnXt.Activation.Run({runAfterSuccessfulLogin:!0})}):CnnXt.IsRunning()&amp;&amp;CnnXt.Run({RunReason:CnnXt.Common.RunReasons.Login})})})}else if(h.Site.RegistrationTypeId==5)CnnXt.Logger.debug(t,i,"Use Custom auth system"),f[CnnXt.Common.RegistrationTypes[5]]=!0;else throw CnnXt.Common.ERROR.UNKNOWN_REG_TYPE;dt()}catch(o){o.custom?CnnXt.Logger.warn(o.message):CnnXt.Logger.exception(t,i,o)}},ht=function(){var s="checkAccess",e=n.Deferred(),l=n.Deferred(),h=n.Deferred(),a;return CnnXt.Logger.debug(t,s,"Checking user access..."),a=CnnXt.Storage.GetAuthUserId(),!f.Custom&amp;&amp;a?CnnXt.API.GetUserLastUpdateDate({location:v,payload:{masterId:a},onSuccess:function(n){(CnnXt.Storage.GetUserLastUpdateDate()==null||new Date(CnnXt.Storage.GetUserLastUpdateDate())&lt;new Date(n))&amp;&amp;(CnnXt.Storage.SetUserState(null),CnnXt.Storage.SetUserData(null),CnnXt.Storage.SetUserLastUpdateDate(n),CnnXt.Storage.SetUserZipCodes(null));l.resolve()},onNull:function(){l.resolve()},onError:function(){l.resolve()}}):l.resolve(),l.promise().then(function(){if(gt(),CnnXt.Storage.GetAccountDataExpirationCookie()||(CnnXt.Storage.SetUserState(null),CnnXt.Storage.SetUserData(null),CnnXt.Storage.SetUserZipCodes(null)),i=CnnXt.Storage.GetUserState(),f.MG2&amp;&amp;(CnnXt.Storage.GetigmRegID()?i==r.NotLoggedIn&amp;&amp;(i=null):(i=r.NotLoggedIn,CnnXt.Storage.SetUserState(i))),f.Custom)try{CnnXt.GetOptions().authSettings.CalculateAuthStatusFunc().done(function(n){if(__.values(r).indexOf(n)==-1)throw CnnXt.Common.ERROR.UNKNOWN_USER_STATE;i=n;CnnXt.Storage.SetUserState(i);CnnXt.Storage.SetAccountDataExpirationCookie(!0);i==r.NotLoggedIn||CnnXt.Storage.GetUserProfile()?h.resolve():CnnXt.GetOptions().authSettings.GetAuthProfileFunc().done(function(n){try{CnnXt.Storage.SetUserProfile(n);var i={};n.MasterId?(i.MasterId=n.MasterId,d=n.MasterId,i.CustomerRegistrationId=n.MasterId):CnnXt.Logger.debug(t,s,"authProfile.MasterId is undefined");n.DisplayName?i.DisplayName=n.DisplayName:CnnXt.Logger.debug(t,s,"authProfile.DisplayName is undefined");Object.getOwnPropertyNames(i).length&gt;0&amp;&amp;CnnXt.Storage.SetUserData(i);h.resolve()}catch(u){CnnXt.Logger.exception(t,s,u);CnnXt.Storage.SetUserState(r.NotLoggedIn);h.resolve()}}).fail(function(n){CnnXt.Logger.debug(t,s,"customAuth.GetAuthProfileFunc.fail",n);CnnXt.Storage.SetUserState(r.NotLoggedIn);h.resolve()})}).fail(function(n){CnnXt.Logger.debug(t,s,"customAuth.GetAuthProfileFunc.fail",n);CnnXt.Storage.SetUserState(r.NotLoggedIn);h.resolve()})}catch(l){l.custom?CnnXt.Logger.warn(l.message):CnnXt.Logger.exception(t,s,l);CnnXt.Storage.SetUserState(r.NotLoggedIn);h.resolve()}else h.resolve();h.promise().then(function(){var h,a;if(i==null||i==undefined||f.Auth0||(f.Janrain&amp;&amp;(window.localStorage.getItem("janrainCaptureToken")||(i=r.NotLoggedIn,CnnXt.Storage.SetUserState(i))),i==r.NotLoggedIn?(CnnXt.Storage.ClearUser(),CnnXt.Storage.SetUserState(r.NotLoggedIn),e.reject("onNotAuthorized")):(o=CnnXt.Storage.GetUserData(),n(u.ActionShowLogin).hide(),n(u.LogoutButton).show(),i==r.LoggedIn?(f.Janrain?h="Janrain":f.MG2?h="MG2":f.GUP?h="GUP":f.Custom&amp;&amp;(h="Custom"),e.reject("onAuthorized")):b()&amp;&amp;(a=tt(),e.reject(a))),i!=null&amp;&amp;e.resolve(!0)),!f.Custom&amp;&amp;(i==null||i==undefined||f.GUP||f.Auth0))try{c.Start=new Date;i=r.NotLoggedIn;CnnXt.Storage.SetUserState(i);CnnXt.Storage.SetAccountDataExpirationCookie(!0);CnnXt.Storage.SetUserZipCodes(null);at().done(function(o){if(CnnXt.Logger.debug(t,s,"User data",o),!o)throw CnnXt.Common.ERROR.NO_USER_DATA;if(d=o,f.MG2)CnnXt.API.GetUserByEncryptedMasterId({location:v,payload:{encryptedMasterId:o},onSuccess:function(t){f.Auth0?t.AuthSystem="Auth0":f.GUP&amp;&amp;(t.AuthSystem="GUP");y("MasterId",t);c.Done=new Date;e.resolve(!0);n(u.ActionShowLogin).hide();n(u.LogoutButton).show()},onNull:function(){c.Done=new Date;e.reject("GetUserByMasterId.onNull")},onError:function(n){c.Done=new Date;e.reject(n)}});else if(f.Janrain)CnnXt.API.GetUserByMasterId({location:v,payload:{id:o},onSuccess:function(n){n.AuthSystem="Janrain";y("externalId",n);c.Done=new Date;e.resolve(!0)},onNull:function(){c.Done=new Date;e.reject("GetUserByToken.onNull")},onError:function(n){c.Done=new Date;e.reject(n)}});else if(f.Auth0)i=r.LoggedIn,CnnXt.Storage.SetUserState(i),CnnXt.Storage.GetUserData()?(y("externalId",CnnXt.Storage.GetUserData()),e.resolve(!0)):CnnXt.API.GetUserByMasterId({location:v,payload:{id:o},onSuccess:function(n){n.AuthSystem="Auth0";y("externalId",n);c.Done=new Date;e.resolve(!0)},onNull:function(){c.Done=new Date;e.reject("GetUserByExternalId.onNull")},onError:function(n){c.Done=new Date;e.reject(n)}});else if(f.GUP){var h=kt(o);c.Done=new Date;CnnXt.Logger.debug(t,s,"getUserData.done -- gupUserHasAccess",h);e.resolve(!0);CnnXt.Logger.debug(t,s,"getUserData.done","Has GUP Data",o)}else CnnXt.Event.fire("onCriticalError","Unknown Registration Type")}).fail(function(n){CnnXt.Logger.debug(t,s,"getUserData.fail -- error",n);c.Done=new Date;e.reject()})}catch(l){l.custom?CnnXt.Logger.warn(l.message):CnnXt.Logger.exception(t,s,l);c.Done=new Date;e.reject()}})}),e.promise()},y=function(u,e){var c="processSuccessfulLogin",s,a,v,h,e;CnnXt.Logger.debug(t,c,"Process successful login",u,e);try{i=r.LoggedIn;e.IgmAuth=CnnXt.Utils.DecodeAuthCookie(e.IgmAuth)||CnnXt.Storage.GetIgmAuth();e.IgmContent=CnnXt.Utils.DecodeAuthCookie(e.IgmContent)||CnnXt.Storage.GetIgmContent();e.IgmRegID=CnnXt.Utils.DecodeAuthCookie(e.IgmRegID)||CnnXt.Storage.GetigmRegID();o=CnnXt.Utils.ShapeUserData(e);s=CnnXt.Storage.GetUserData();s&amp;&amp;o&amp;&amp;(o.IgmContent=o.IgmContent?o.IgmContent:s.IgmContent,o.IgmRegID=o.IgmRegID?o.IgmRegID:s.IgmRegID,o.MasterId=o.MasterId?o.MasterId:s.MasterId,o.UserToken=o.UserToken?o.UserToken:s.UserToken);CnnXt.Storage.SetUserData(o);CnnXt.Storage.SetAccountDataExpirationCookie(!0);CnnXt.Logger.debug(t,c,"type",u,"USER_DATA",o);it(!0);ct(o)?l.show("NoSubscriptionData"):(__.isObject(o.Subscriptions)||(o.Subscriptions=JSON.parse(o.Subscriptions)),a=null,a=o.Subscriptions.OwnedSubscriptions?__.map(o.Subscriptions.OwnedSubscriptions,function(n){return n.BillingAddress&amp;&amp;n.BillingAddress.ZipCode?n.BillingAddress.ZipCode:n.DeliveryAddress?n.DeliveryAddress.ZipCode:null}):__.map(o.Subscriptions,function(n){return n.BillingAddress&amp;&amp;n.BillingAddress.ZipCode?n.BillingAddress.ZipCode:n.PostalCode}),CnnXt.Storage.SetUserZipCodes(a));f.MG2?(o.IgmRegID&amp;&amp;CnnXt.Storage.SetigmRegID(o.IgmRegID),o.IgmContent&amp;&amp;CnnXt.Storage.SetIgmContent(o.IgmContent),o.IgmAuth&amp;&amp;CnnXt.Storage.SetIgmAuth(o.IgmAuth)):f.Janrain||f.GUP||(f.Auth0?(o.CustomerRegistrationId=o.MasterId,CnnXt.Storage.SetUserData(o)):CnnXt.Event.fire("onCriticalError","Unknown Registration Type"));lt(o);n("#ddZipCode").html(CnnXt.Storage.GetActualZipCodes().toString());b()&amp;&amp;(v=n("body").data("modalmanager"),v&amp;&amp;(h=v.getOpenModals(),CnnXt.Logger.debug(t,c,"openModals",h),h.length&gt;0&amp;&amp;h[0].isShown&amp;&amp;(l.show("AuthSuccess"),setTimeout(function(){h[0].$element.modal("hide")},1500))));e={UserId:CnnXt.GetOptions().deviceId,ConfigCode:CnnXt.GetOptions().configCode,SiteCode:CnnXt.GetOptions().siteCode,SettingsKey:CnnXt.GetOptions().settingsKey,ViewData:CnnXt.Storage.GetLocalViewData()};CnnXt.User.getMasterId()&amp;&amp;(e.masterId=CnnXt.User.getMasterId());CnnXt.Storage.SetUserState(i)}catch(y){CnnXt.Logger.exception(t,c,y)}},ct=function(n){return!n.Subscriptions||__.isArray(n.Subscriptions)&amp;&amp;!n.Subscriptions.length||__.isObject(n.Subscriptions)&amp;&amp;(!n.Subscriptions.OwnedSubscriptions||!n.Subscriptions.OwnedSubscriptions.length)},lt=function(u){var f="defineUserState";try{u.DigitalAccess&amp;&amp;__.isEmpty(u.DigitalAccess.Errors)?u.Subscriptions&amp;&amp;u.Subscriptions.length!=0?u.DigitalAccess.AccessLevel.IsPremium?(i=r.Subscribed,n(".Mg2-pin-modal").connextmodal("hide"),n(".Mg2-pin-infobox").hide()):u.DigitalAccess.AccessLevel.IsUpgrade?i=r.SubscribedNotEntitled:u.DigitalAccess.AccessLevel.IsPurchase&amp;&amp;(i=r.NoActiveSubscription):i=r.LoggedIn:i=r.LoggedIn;CnnXt.Logger.debug(t,f,"Defined user state",i)}catch(e){CnnXt.Logger.exception(t,f,e)}},b=function(){var n=!1;if(r)switch(i){case r.Subscribed:case r.SubscribedNotEntitled:case r.NoActiveSubscription:n=!0}return n},tt=function(){var n="onNotAuthorized";switch(i){case r.LoggedIn:n="onAuthorized";break;case r.Subscribed:n="onHasAccess";break;case r.SubscribedNotEntitled:n="onHasAccessNotEntitled";break;case r.NoActiveSubscription:n="onHasNoActiveSubscription"}return n},at=function(){var e="getUserData",u=n.Deferred(),h,o,s,c;try{return f.MG2?(h=CnnXt.Storage.GetigmRegID(),h?u.resolve(h):u.reject("No MG2 UserToken")):f.Janrain?window.JANRAIN?window.localStorage.getItem("janrainCaptureToken")?(CnnXt.Logger.debug(t,e,"Janrain Loaded"),o=yt(),CnnXt.Logger.debug(t,e,"janrainProfile",o),o.uuid?(i=r.LoggedIn,u.resolve(o.uuid)):u.reject("No Janrain Profile Data")):(i=r.NotLoggedIn,CnnXt.Storage.SetUserState(i),u.reject("Janrain Logged out User")):(i=r.NotLoggedIn,CnnXt.Storage.SetUserState(i),u.reject("Janrain object is not exist")):f.GUP?bt().then(function(n){CnnXt.Logger.debug(t,e,"getCurrentGUPUser.then (data)",n);n&amp;&amp;u.resolve(n)}).fail(function(n){CnnXt.Logger.debug(t,e,"getCurrentGUPUser",n);u.reject()}):f.Auth0?(s=CnnXt.GetOptions().authSettings,s||__.isObject(s.auth0Lock)||(CnnXt.Logger.warn("No auth0Lock object in the authSettings!"),i=r.NotLoggedIn,CnnXt.Storage.SetUserState(i),CnnXt.Storage.ClearUser(),u.reject(null)),c=s.auth0Lock,c.checkSession({scope:"openid profile email",redirect_uri:window.location.origin},function(n,f){!n&amp;&amp;f&amp;&amp;f.accessToken?f.idTokenPayload&amp;&amp;f.idTokenPayload.sub?(CnnXt.Storage.SetUserProfile(f.idTokenPayload),u.resolve(f.idTokenPayload.sub)):c.getUserInfo(f.accessToken,function(n,f){!n&amp;&amp;f&amp;&amp;f.sub?(CnnXt.Storage.SetUserProfile(f),CnnXt.Logger.debug(t,e,"CHECK SSO - true",f),u.resolve(f.sub)):(CnnXt.Logger.debug(t,e,"checkSession - error",n),i=r.NotLoggedIn,CnnXt.Storage.SetUserState(i),CnnXt.Storage.ClearUser(),u.reject(null))}):(CnnXt.Logger.debug(t,e,"checkSession - error",n),i=r.NotLoggedIn,CnnXt.Storage.SetUserState(i),CnnXt.Storage.ClearUser(),u.reject(null))})):(CnnXt.Event.fire("onCriticalError","Unknown Registration Type"),u.reject("Unknown Registration Type"),CnnXt.Logger.debug(t,e,"Unknown Registration Type",f)),u.promise()}catch(l){CnnXt.Logger.exception(t,e,l)}},vt=function(){var n="logoutUser";try{CnnXt.Logger.debug(t,n,"Logout!");it(!1);CnnXt.Storage.SetUserState(r.NotLoggedIn);CnnXt.Run({RunReason:CnnXt.Common.RunReasons.Logout})}catch(i){CnnXt.Logger.exception(t,n,i)}},yt=function(){var i="getJanrainProfileData",n;try{return n=window.localStorage.getItem("janrainCaptureProfileData"),CnnXt.Logger.debug(t,i,"Get Janrain profile data",n),n==null&amp;&amp;(n=window.localStorage.getItem("janrainCaptureReturnExperienceData")),n?JSON.parse(n):!1}catch(r){return CnnXt.Logger.exception(t,i,r),!1}},pt=function(n){var i="janrainAuthenticationCallback";try{if(CnnXt.Logger.debug(t,i,n),!n.userData.uuid)throw CnnXt.Common.ERROR.NO_JANRAIN_DATA;CnnXt.API.GetUserByMasterId({location:v,payload:{id:n.userData.uuid},onSuccess:function(n){n.AuthSystem="Janrain";y("Form",n)},onError:function(n){CnnXt.Logger.exception(t,i,n)}})}catch(r){r.custom?CnnXt.Logger.warn(r.message):CnnXt.Logger.exception(t,i,r)}},wt=function(){var n=500,i=600,r=screen.width/2-n/2,u=screen.height/2-i/2,f=window.open(w.LoginServiceBasePath+"authenticate/?window-mode=popup","_blank","toolbar=no, scrollbars=yes, resizable=no, width="+n+", height="+i+", top="+u+", left="+r);f.onunload=function(n){CnnXt.Logger.debug(t,"&lt;&lt; GUP &gt;&gt;",n)};return},bt=function(){return n.ajax({type:"POST",url:w.UserServiceBasePath+"user/?callback=?",contentType:"application/json; charset=utf-8",dataType:"json",async:!0})},kt=function(u){var f="authenticateGUPUser";try{return CnnXt.Logger.debug(t,f,arguments),!u.meta.isAnonymous&amp;&amp;u.response.user?u.response.user.hasMarketAccess?(CnnXt.Logger.debug(t,f,"GUP User &lt;&lt;IS&gt;&gt; LOGGED IN, AND has market access"),i=r.Subscribed,CnnXt.Storage.SetUserState(i),n(".Mg2-pin-modal").connextmodal("hide"),n(".Mg2-pin-infobox").hide(),!0):(CnnXt.Logger.debug(t,f,"GUP User &lt;&lt;IS&gt;&gt; LOGGED IN, but doesnt have marketAccess"),i=r.LoggedIn,CnnXt.Storage.SetUserState(i),!1):(CnnXt.Logger.debug(t,f,"GUP User &lt;&lt;NOT&gt;&gt; LOGGED IN"),i=r.NotLoggedIn,CnnXt.Storage.SetUserState(i),!1)}catch(e){return CnnXt.Logger.exception(t,f,e),i=r.NotLoggedIn,CnnXt.Storage.SetUserState(i),!1}},dt=function(){var n="registerEventlisteners";try{function n(){CnnXt.Logger.debug("focus.gup_login_popup")}if(f.GUP)window.jQuery(window).off("focus.gup_login_popup",n).on("focus.gup_login_popup",n)}catch(i){CnnXt.Logger.exception(t,n,i)}},it=function(f){var o="handleUILoggedInStatus",e;try{e=n(u.ActionShowLogin);p=f;i=f?r.LoggedIn:r.NotLoggedIn;CnnXt.Logger.debug(t,o,"USER_STATE",i);p?(n(u.LogoutButton).show(),n(u.ActionShowLogin).hide(),e.html(e.data("mg2-logged-in"))):(e.html(e.data("mg2-logged-out")),CnnXt.Storage.ClearUser(),n(u.LogoutButton).hide(),n(u.ActionShowLogin).show(),n("#ddZipCode").html(CnnXt.Storage.GetActualZipCodes().toString()))}catch(s){CnnXt.Logger.exception(t,o,s)}},rt=function(i,r){var f="MG2Authenticate";try{if(!i)return s&amp;&amp;s.find(".alert").remove(),l&amp;&amp;l.showAndHide("Please enter email",1e4),a&amp;&amp;a.off(),CnnXt.Logger.debug(t,f,"No email"),!1;if(!r)return s&amp;&amp;s.find(".alert").remove(),l&amp;&amp;l.showAndHide("Please enter password",1e4),a&amp;&amp;a.off(),CnnXt.Logger.debug(t,f,"No password"),!1;CnnXt.Logger.debug(t,f,"Login");CnnXt.API.GetUserByEmailAndPassword({location:v,payload:{Email:i,Password:r},onSuccess:function(t){t.Email=i;t.AuthSystem="MG2";y("Form",t);CnnXt.Event.fire("onLoginSuccess",CnnXt.PublicObjectsMapper.Map({MG2AccountData:o,AuthProfile:CnnXt.Storage.GetUserProfile(),AuthSystem:o.AuthSystem},"OnLoginSuccessEventData"));n(u.ActionShowLogin).hide();n(u.LogoutButton).show();CnnXt.Run({RunReason:CnnXt.Common.RunReasons.Login})},onNull:function(){l&amp;&amp;l.show("NotAuthenticated")},onError:function(n){var t="GenericAuthFailed";n&amp;&amp;n.ErrorMessage&amp;&amp;(t=n.ErrorMessage,n.ErrorMessage==="UserName or Password invalid."&amp;&amp;(t=et));CnnXt.Event.fire("onLoginError",{ErrorMessage:t});s&amp;&amp;s.find(".alert").remove();l&amp;&amp;l.showAndHide(t,1e4)},onComplete:function(){a&amp;&amp;a.off()}})}catch(e){CnnXt.Logger.exception(t,f,e)}},ut=function(){var r="showAuth0Login",n;try{if(n=CnnXt.GetOptions().authSettings,!n&amp;&amp;!__.isObject(n.auth0Lock))throw CnnXt.Common.ERROR.NO_AUTH0_LOCK;n.auth0Lock.show()}catch(i){i.custom?CnnXt.Logger.warn(i.message):CnnXt.Logger.exception(t,r,i)}},gt=function(){var n="clearUserStateIfWasRedirect";try{CnnXt.Logger.debug(t,n);CnnXt.Utils.getUrlParam("clearUserState")&amp;&amp;(CnnXt.Storage.SetUserData(null),CnnXt.Storage.SetUserState(null))}catch(i){CnnXt.Logger.exception(t,n,i)}};return{init:function(n){h=n?n:{};r=CnnXt.Common.USER_STATES;i=r.NotLoggedIn;ot();h.Site.RegistrationTypeId==3&amp;&amp;(w={UserServiceBasePath:h.Settings?h.Settings.GUPAccountService:"",LoginServiceBasePath:h.Settings?h.Settings.GUPAccountLoginUrl:""})},CheckAccess:function(){return ht().done(function(n){CnnXt.Logger.debug(t,"CheckAccess","User.CheckAccess.Done",n)}).fail(function(){CnnXt.Logger.debug(t,"CheckAccess","User.CheckAccess.Fail")}).always(function(){var u=CnnXt.Storage.GetLocalConfiguration().Site.RegistrationTypeId,t=CnnXt.Common.RegistrationTypes[u],f=tt(),i=CnnXt.Storage.GetUserState();i!=r.NotLoggedIn&amp;&amp;i!=null&amp;&amp;CnnXt.Event.fire("onLoggedIn",CnnXt.PublicObjectsMapper.Map({AuthSystem:t,AuthProfile:CnnXt.Storage.GetUserProfile(),MG2AccountData:CnnXt.Storage.GetUserData()},"OnLoginSuccessEventData"));CnnXt.Event.fire(f,CnnXt.PublicObjectsMapper.Map({AuthSystem:t,AuthProfile:CnnXt.Storage.GetUserProfile(),MG2AccountData:CnnXt.Storage.GetUserData()},"OnLoginSuccessEventData"));n("#ddZipCode").html(CnnXt.Storage.GetActualZipCodes().toString())})},GetAuthTiming:function(){return c},JanrainLoaded:function(){ft=!0;CnnXt.Logger.debug(t,"JanrainLoaded")},onLoginSuccess:function(n){CnnXt.Logger.debug(t,"onLoginSuccess",n);pt(n)},getUserState:function(){return CnnXt.Storage.GetUserState()},onLogout:function(){CnnXt.Logger.debug(t,"onLogout");p=!1;CnnXt.Storage.ClearUser()},getMasterId:function(){return CnnXt.Storage.GetUserData()?CnnXt.Storage.GetUserData().IgmRegID?CnnXt.Storage.GetUserData().IgmRegID:CnnXt.Storage.GetUserData().MasterId:null},isUserHasHighState:b,processSuccessfulLogin:y,showAuth0Login:ut,OpenLoginModal:nt}},ConnextCampaign=function(n){function ft(n){var t=CnnXt.Storage.GetCurrentConversations();t[r]=n;CnnXt.Storage.SetCurrentConversations(t)}var t="Campaign",a="{{ArticleLeft}}",v={GoToSelf:"Self",Recalculate:"Recalc"},u=0,i,r,y,p=function(u,f){var o="processCampaign",s;try{if(CnnXt.Logger.debug(t,o,"Starting process campaign...",f,u),!u)throw CnnXt.Common.ERROR.NO_METER_LEVEL_SET;if(!f)throw CnnXt.Common.ERROR.NO_CAMPAIGN;r=u;d(u).done(function(r){if(i=r,i)CnnXt.Logger.debug(t,o,"Conversation To Process",i),n("#ddCurrentConversation").text(i?i.Name:"..."),CnnXt.Storage.SetCurrentConversation(i),w(i),k(i);else{CnnXt.Storage.SetCurrentConversation(null);CnnXt.Storage.SetActiveConversationId(0);b();n("#ddCurrentConversation").text("fake conversation");CnnXt.Logger.debug(t,o,"Conversation To Process","FAKE CONVERSATION");throw CnnXt.Common.ERROR.NO_CONVO_FOUND;}})}catch(e){e.custom?CnnXt.Logger.warn(e.message):CnnXt.Logger.exception(t,o,e);s=e.message?e.message:e;CnnXt.Event.fire("onCriticalError",s)}},w=function(n){var i="processConversation";try{CnnXt.Logger.debug(t,i,"Starting process conversation...",n);CnnXt.Storage.UpdateViewedArticles(n);ut(n,CnnXt.Storage.GetViews(n.id));s(n,!0).done(function(r){s(n).done(function(u){o(n,r,u);CnnXt.Storage.SetCurrentConversation(n);ft(n);u.length&gt;0?(CnnXt.Logger.debug(t,i,"ACTIONS DETERMINGED ---&gt; ",u),CnnXt.Action.ProcessActions(u)):CnnXt.Logger.warn("No 'Actions' to execute.")}).fail(function(){o(n,r,[]);CnnXt.Storage.SetCurrentConversation(n)}).always(function(){CnnXt.Event.fire("onConversationDetermined",CnnXt.PublicObjectsMapper.Map(n,"Conversation"))})})}catch(r){CnnXt.Logger.exception(t,i,r)}},b=function(){CnnXt.Storage.UpdateViewedArticles({id:-1,Props:{Date:{started:null}}})},k=function(n){var i=null;n&amp;&amp;n.Options&amp;&amp;n.Options.Activation&amp;&amp;n.Options.Activation.Activate&amp;&amp;(i=__.isArray(n.Options.Activation.Activate)?n.Options.Activation.Activate[0]:n.Options.Activation.Activate,CnnXt.Logger.debug(t,"proccessActivationFlow","Proccess activation flow from conversation",n.id,i));i&amp;&amp;CnnXt.Activation.init(i)},o=function(t,i,r){var u,f,e,o,s,h;f=u=o=e=Infinity;n.each(i,function(t,i){i.Who.MeterViewsCriteria&amp;&amp;n.each(i.Who.MeterViewsCriteria,function(n,t){if(t.Qualifier=="=="||t.Qualifier=="&gt;="||t.Qualifier=="&gt;"){let n=parseInt(t.Val);u&gt;n&amp;&amp;(u=n)}});i.Who.ConversationViewsCriteria&amp;&amp;n.each(i.Who.ConversationViewsCriteria,function(n,t){if(t.Qualifier=="=="||t.Qualifier=="&gt;="||t.Qualifier=="&gt;"){let n=parseInt(t.Val);e&gt;n&amp;&amp;(e=n)}})});s=CnnXt.Storage.GetCurrentDynamicMeterViewCount();h=CnnXt.Storage.GetCurrentConversationViewCount();f=u==Infinity?Infinity:u-s;f&lt;0&amp;&amp;(f=0);o=e==Infinity?Infinity:e-h;o&lt;0&amp;&amp;(o=0);t.Props.PaywallInfo={ArticleLeft:{Conversation:o==Infinity?"unlimited":o,Meter:f==Infinity?"unlimited":f},Limit:{Conversation:e==Infinity?"unlimited":e,Meter:u==Infinity?"unlimited":u}};f&lt;o?(t.Props.ArticleLeft=f==Infinity?"unlimited":f,t.Props.paywallLimit=u==Infinity?"unlimited":u,t.Props.ViewMethod="Meter",t.Props.PaywallInfo.MinView="Meter"):(t.Props.ArticleLeft=o==Infinity?"unlimited":o,t.Props.paywallLimit=e==Infinity?"unlimited":e,t.Props.ViewMethod="Conversation",t.Props.PaywallInfo.MinView="Conversation");n("#ddArticleLeft").text(t.Props.ArticleLeft);n("#ddPaywallLimit").text(t.Props.paywallLimit);n("#ddViewMethod").text(t.Props.ViewMethod);n.each(r,function(n,i){i.What.Html&amp;&amp;(i.What.Html=i.What.Html.replace(a,t.Props.ArticleLeft))})},d=function(){var e="getCurrentConversation",o=n.Deferred(),i;CnnXt.Logger.debug(t,e,"Get conversation for a processing");try{return i=it(r),u=0,i?CnnXt.CalculatorQualifiers.IsConversationValid(i).done(function(){CnnXt.Logger.debug(t,e,"Found a stored valid conversation",i);o.resolve(i)}).fail(function(){CnnXt.Logger.debug(t,e,"Found a new valid conversation",i);f(i).done(function(n){o.resolve(n);g(i,n)}).fail(function(){o.resolve(null)})}):f().done(function(n){CnnXt.Logger.debug(t,e,"Found a new conversation",i);o.resolve(n)}),o.promise()}catch(s){return CnnXt.Logger.exception(t,e,s),null}},g=function(n,i){var u="fireConversationExpiredEvent",r;try{r={Conversation:n,NextConversation:i,Reason:n.Props.expiredReason};CnnXt.Event.fire("onConversationExpired",CnnXt.PublicObjectsMapper.Map(r,"onConversationExpiredEventData"))}catch(f){CnnXt.Logger.exception(t,u,f)}},f=function(i){var a="getConversation",h=n.Deferred(),c=n.Deferred(),l,o,s;try{return l=null,o={},i&amp;&amp;(l=i.Props.expiredReason,o=i.Props.ExpirationInstance),o&amp;&amp;o.length&gt;0&amp;&amp;(o=__.extend(o,o[0])),!i||o&amp;&amp;o.nextConversation==v.Recalculate?nt().done(function(n){s=n;c.resolve()}).fail(function(){s=null;c.resolve()}):o&amp;&amp;o.nextConversation&amp;&amp;(s=tt(o.nextConversation),c.resolve()),c.promise().done(function(){s&amp;&amp;rt(s);u++;s?CnnXt.CalculatorQualifiers.IsConversationValid(s).done(function(){h.resolve(s)}).fail(function(){u&gt;e(r).length?(CnnXt.Logger.warn("Exceeded the number of calculations of conversation! Please, check your conversations."),h.resolve(null)):f(s).done(function(n){h.resolve(n)})}):h.resolve(s)}),h.promise()}catch(y){CnnXt.Logger.exception(t,a,y)}},nt=function(){var f,o;CnnXt.Logger.debug(t,"getFilteredConversation","Getting conversation");var i=e(r),s=ConnextCommon().MeteredArticleCountObj.active_convo_id,h=__.invert(ConnextCommon().MeterLevels)[r],u=CnnXt.Storage.GetViewsData().parserViews[h];return u?(f=u[s],o=i.find(function(n){return n.id===f}),n.Deferred().resolve(o)):CnnXt.CalculatorQualifiers.CalculateConversation(i)},tt=function(n){var i,u;return CnnXt.Logger.debug(t,"getNextConversation","Go to conversation",n),i=e(r),u=null,i.length&amp;&amp;n&amp;&amp;(u=__.findByKey(i,{id:n})),u},s=function(i,r){var u="determineConversationActions",f=n.Deferred(),o,e;try{CnnXt.Logger.debug(t,u,"Begin determine conversation actions",i.Actions);o=!1;e=n.extend(!0,{},i);r&amp;&amp;(e.Actions=__.map(__.filter(e.Actions,function(n){return n.ActionTypeId==3}),function(n){return delete n.Who.ConversationViewsCriteria,delete n.Who.MeterViewsCriteria,n}));CnnXt.CalculatorQualifiers.CalculateConversationActions(e).done(function(e){var s=[];n.each(e,function(n,f){CnnXt.Logger.debug(t,u,"Actions.EACH",f);f.ActionTypeId==3&amp;&amp;o||(CnnXt.Action.ActionInPendingExecutionTime(f)||CnnXt.Action.ActionLimitIsExceeded(f)?CnnXt.Logger.debug(t,u,"%%%%% ACTION FAILED %%%%%",f):(CnnXt.Logger.debug(t,u,"===== ACTION PASSED =====",f),f.ActionTypeId!=3||r||(o=!0),r&amp;&amp;(f=__.findWhere(i.Actions,{id:f.id})),s.push(f)))});CnnXt.Logger.debug(t,u,"End determine conversation actions",s);f.resolve(s)}).fail(function(){f.resolve([])})}catch(s){CnnXt.Logger.exception(t,u,s);f.resolve([])}return f.promise()},it=function(n){var r="getStoredConversationByMeterLevel",i,u;try{return CnnXt.Logger.debug(t,r,"meterLevel",n),i=null,u=CnnXt.Storage.GetCurrentConversations(),u&amp;&amp;(i=u[n]),CnnXt.Logger.debug(t,r,"Found stored conversations for meter level",n,i),i}catch(f){return CnnXt.Logger.exception(t,r,f),!1}},e=function(n){var r="getAllConversationsMeterLevel",i;try{return CnnXt.Logger.debug(t,r,"meterLevel",n),i=CnnXt.Storage.GetCampaignData().Conversations[n],i||(CnnXt.Logger.debug(t,r,"No Conversation for "+n+" meter level"),i=[]),CnnXt.Logger.debug(t,r,"Found conversations for meter level",n,i),__.sortBy(i,"Order")}catch(u){return CnnXt.Logger.exception(t,r,u),[]}},h=function(n){var u="saveCurrentConversation",i;CnnXt.Logger.debug(t,u,n);try{i=CnnXt.Storage.GetCurrentConversations();i[r]=n;CnnXt.Storage.SetCurrentConversations(i);CnnXt.Storage.SetActiveConversationId(n.id)}catch(f){CnnXt.Logger.exception(t,u,f)}},rt=function(i){var f="setDefaultConversationProps",u,r,e;CnnXt.Logger.debug(t,f,i);try{var l=CnnXt.Utils.Now(),o=CnnXt.Storage.GetConversationStartDate(i.id),s=CnnXt.Storage.GetCurrentConversations();i.Props.Date.started=o&amp;&amp;(!s||__.isEmpty(s))?new Date(o):l;i.Options.Expirations.Time?(u=i.Props.Date.started,i.Props.isExpired=!1,i.Props.Date.expiration=new Date(u),r=null,__.isArray(i.Options.Expirations.Time)?(e=i.Options.Expirations.Time,n.each(e,function(n,t){c(t,u)}),r=__.sortBy(e,"timeDiff")[0]):(r=i.Options.Expirations.Time,c(r,u)),i.Props.Date.expiration=new Date(r.timeDiff),i.Options.Expirations.Time=r):CnnXt.Logger.debug(t,f,"No expiration time set for this conversation.");h(i)}catch(a){CnnXt.Logger.exception(t,f,a)}},c=function(n,t){var i=CnnXt.Utils.Now();switch(n.key){case"m":n.timeDiff=i.setMinutes(t.getMinutes()+parseInt(n.val));break;case"h":n.timeDiff=i.setHours(t.getHours()+parseInt(n.val));break;case"d":n.timeDiff=i.setDate(t.getDate()+parseInt(n.val));break;case"w":n.timeDiff=i.setDate(t.getDate()+parseInt(n.val)*7);break;case"M":n.timeDiff=i.setMonth(t.getMonth()+parseInt(n.val));break;case"y":n.timeDiff=i.setFullYear(t.getFullYear()+parseInt(n.val))}},ut=function(n,i){var r="updateArticleViewCount";CnnXt.Logger.debug(t,r);try{n.Props.views=__.isNumber(i)?i:l();h(n)}catch(u){CnnXt.Logger.exception(t,r,u)}},l=function(){return CnnXt.Storage.GetCurrentConversationViewCount()};return{init:function(n){y=n;CnnXt.Logger.debug(t,"Initializing Campaign Module...")},ProcessCampaign:p,GetCurrentConversationProps:function(){try{return i.Props}catch(n){return CnnXt.Logger.exception(t,"GetCurrentConversationProps",n),null}},GetCurrentConversation:function(){return i},GetCurrentConversationViewCount:l}},ConnextAction=function(n){function et(){var i="clearActionsSchedule";try{l&amp;&amp;(CnnXt.Logger.debug(t,i,"Clear all planned actions",u),u.forEach(function(t){switch(t.type){case"timer":clearTimeout(t.item);break;case"viewportChecker":t.item.destroy();break;case"hover":n(t.selector).off("mouseenter",t.handle)}}),u=[],CnnXt.CalculatorQualifiers.BreakPromises())}catch(r){CnnXt.Logger.exception(t,i,r)}}function h(){return CnnXt.Logger.debug(t,"getArticleCost"),sessionStorage.getItem("ArticleCost")}function k(t){var f=n(t.target),r=f.parents(".Mg2-connext"),i,u;r.length&amp;&amp;(i=n(r[0]).attr("id"),i&amp;&amp;(u=parseInt(i.split("-")[1]),t.actionId=u));CnnXt.Event.fire("onButtonClick",t)}function ht(t){var f=n(t.target),r=f.parents(".Mg2-connext"),i,u;r.length&amp;&amp;(i=n(r[0]).attr("id"),i&amp;&amp;(u=parseInt(i.split("-")[1]),t.actionId=u));CnnXt.Event.fire("onNewsdayButtonClick",t);CnnXt.Event.fire("onButtonClick",t)}function ct(n){var u="actionInPendingExecutionTime";try{var i=CnnXt.Storage.GetTimeRepeatableActionData(n),f=CnnXt.Utils.Now(),r=!1;return i&amp;&amp;i.date&amp;&amp;(r=f&lt;new Date(i.date)),r}catch(e){return CnnXt.Logger.exception(t,u,e),!1}}function lt(n){var u="actionLimitIsExceeded",i,r;try{return i=CnnXt.Storage.GetTimeRepeatableActionData(n),r=!1,i&amp;&amp;i.count&amp;&amp;(r=n.When&amp;&amp;n.When.Time&amp;&amp;n.When.Time.RepeatableConv?i.count&gt;=n.When.Time.RepeatableConv:!1),r}catch(f){return CnnXt.Logger.exception(t,u,f),!1}}var t="Action",c="ConneXt_Action_Id-",e,f,l=!1,u=[],i={CloseButton:"closeButton",CloseSpan:"closeSpan",ClickOutside:"clickOutside",EscButton:"escButton"},d="[data-fz-btn=smartAuth]",a,v=!1,r={Banner:1,Modal:2,Paywall:3,Inline:4,SmallInfoBox:6,JSCall:7,Newsletter:11,Activation:12,Messaging:13,ReadMore:14},g=function(i){var u="processActions";CnnXt.Logger.debug(t,u,i);try{n.each(i,function(n,i){CnnXt.Logger.debug(t,u,"Actions.EACH",n,i);i&amp;&amp;i.What&amp;&amp;i.What.Html?y(i):i&amp;&amp;i.What&amp;&amp;i.What.Type==r.JSCall?y(i):CnnXt.Logger.warn(t,u,"ACTION has no html",i)})}catch(f){CnnXt.Logger.exception(t,u,f)}},y=function(i){var f="handleAction",o,e,u;CnnXt.Logger.debug(t,f,"Setup action",i);try{CnnXt.Logger.debug(t,f,"Action type",i.What.Type);i.What.Type!=r.JSCall?(o=i.What.CSS,e=i.What.Html.trim(),e=ot(e),u=n(e),u.prop("id",c+i.id),u.addClass("hide"),u.prepend('&lt;style id="'+i.id+'-mg2style"&gt;'+o+"&lt;\/style&gt;"),n("#themeLink").length==0?n("body").append(u):n("#themeLink").before(u)):CnnXt.Logger.debug(t,f,"Action type is JS Call");i.inProgress=!1;it(i)}catch(s){CnnXt.Logger.exception(t,f,s)}},s=function(u){var h="executeAction",o,tt,e,it,s,v,l,st,a,y,rt,ft,ut,ht,ot,g,b;CnnXt.Logger.debug(t,h,"Starting executing action...",u);try{if(u.What.Type==r.Paywall&amp;&amp;(CnnXt.Logger.debug(t,h,"Action type is paywall. So we hide a content."),p(u)),u.closeEvent=null,e=n("#"+c+u.id),e.removeClass("hide"),it=e.find(".fb-like"),it&amp;&amp;it.length&amp;&amp;(it.attr("data-href",window.location.href),CnnXt.FacebookLikeButton.init()),CnnXt.Logger.debug(t,h,"Action type",u.What.Type,u),u.What.Type==r.Banner&amp;&amp;(a=u.What.Location?u.What.Location:"top",y={},y[a]="0px",e.css(a,"-2500px").removeClass("hide"),rt=e.outerHeight(),e.css(a,"-"+rt+"px").animate(y,function(){})),u.What.Type==r.Modal){e.addClass("in");e.connextmodal({backdrop:"true"});e.resize();e.css("display","block");ut=u.What["Transparent backdrop"];n(".connext-modal-backdrop.fade.in").css("opacity",ut);n(e).one("keydown",function(n){(n.key==="Escape"||n.key==="Esc"||n.keyCode===27)&amp;&amp;(u.closeEvent=i.EscButton)}).one("hidden",function(){u.closeEvent==null||u.closeEvent==undefined?(u.closeEvent=i.ClickOutside,u.actionDom=e[0].outerHTML,CnnXt.Event.fire("onActionClosed",u)):(u.closeEvent===i.EscButton||u.closeEvent===i.CloseButton)&amp;&amp;(u.actionDom=e[0].outerHTML,CnnXt.Event.fire("onActionClosed",u))})}if(u.What.Type==r.Paywall){if(l=e.data("display-type"),CnnXt.Logger.debug(t,h,"Paywall display type",l),l=="inline"){if(o=u.What.Selector,tt=u.What.Position,n(o).length==0)return CnnXt.Logger.warn(t,h,"Not found element by current content selector",o),e.remove(),!1;e.remove();s=n(o).width();v=String(s).length&lt;4?String(s)[0]+"00":String(s)[0]+String(s)[1]+"00";e.addClass("Mg2-inline-scale-"+v);tt=="before"?n(o).before(e):n(o).after(e);f==="fadeTrim"&amp;&amp;n(o).append('&lt;div class="Mg2-fade"&gt;&lt;\/div&gt;');u.What.Height&amp;&amp;!__.isNaN(parseInt(u.What.Height))&amp;&amp;n(o).css({height:u.What.Height,overflow:"hidden","box-sizing":"border-box"});(u.What.NotClosable_paywall=="True"||u.What.NotClosable_paywall=="true")&amp;&amp;e.find(".closebtn").attr("data-dismiss","notclosablepaywall");n(window,o).resize(function(){var t=n(o).width(),i=String(t).length&lt;4?String(t)[0]+"00":String(t)[0]+String(t)[1]+"00",r=e.attr("class").replace(/\b\sMg2-inline-scale-\d+\b/g,"");e.attr("class",r);e.addClass("Mg2-inline-scale-"+i)})}else if(l=="modal"){e.addClass("in");u.What.NotClosable_paywall=="True"||u.What.NotClosable_paywall=="true"?(e.find(".closebtn").attr("data-dismiss","notclosablepaywall"),e.connextmodal({backdrop:"static",keyboard:!1})):e.connextmodal({backdrop:"true"});st=u.What.Transparent_backdrop_paywall;n(".connext-modal-backdrop.fade.in").css("opacity",st);e.resize();e.css("display","block");n(e).one("keydown",function(n){(n.key==="Escape"||n.key==="Esc"||n.keyCode===27)&amp;&amp;(u.closeEvent=i.EscButton)}).one("hidden",function(){if(u.closeEvent==null||u.closeEvent==undefined){if(u.What.NotClosable_paywall=="True"||u.What.NotClosable_paywall=="true")return!1;u.closeEvent=i.ClickOutside;u.actionDom=e[0].outerHTML;CnnXt.Event.fire("onActionClosed",u)}else(u.closeEvent===i.EscButton||u.closeEvent===i.CloseButton)&amp;&amp;(u.actionDom=e[0].outerHTML,CnnXt.Event.fire("onActionClosed",u))})}else l=="mg2bn"?(a="bottom",y={},y[a]="0px",e.css(a,"-2500px").removeClass("hide"),rt=e.outerHeight(),e.css(a,"-"+rt+"px").animate(y,function(){})):CnnXt.Logger.debug(t,h,"Can't determine display type for paywall.");n("#ConneXt_Action_Id-"+u.id).find(d).click(function(n){u.Conversation=CnnXt.Campaign.GetCurrentConversation();u.Conversation.Campaign=CnnXt.Storage.GetCampaignData();u.ButtonArgs=n;u.ActionDom=e[0].outerHTML;CnnXt.GetOptions().integrateFlittz&amp;&amp;CnnXt.Event.fire("onFlittzButtonClick",CnnXt.PublicObjectsMapper.Map(u,"Action"))})}if(u.What.Type==r.Inline){if(o=u.What.Selector,tt=u.What.Position,n(o).length==0)return CnnXt.Logger.warn(t,h,"Not found element by current content selector",o),e.remove(),!1;s=n(o).width();v=String(s).length&lt;4?String(s)[0]+"00":String(s)[0]+String(s)[1]+"00";e.addClass("Mg2-inline-scale-"+v);tt=="before"?n(o).prepend(e):n(o).append(e);n(window,o).resize(function(){var t=n(o).width(),i=String(t).length&lt;4?String(t)[0]+"00":String(t)[0]+String(t)[1]+"00",r=e.attr("class").replace(/\b\sMg2-inline-scale-\d+\b/g,"");e.attr("class",r);e.addClass("Mg2-inline-scale-"+i)})}if(u.What.Type==r.SmallInfoBox&amp;&amp;(u.What.Location?e.addClass(u.What.Location):e.addClass("Mg2-bottom-left"),e.removeClass("bottom").removeClass("hide")),u.What.Type==r.JSCall){n("#ConneXt_Action_Id-"+u.id).remove();try{if(u.What.Javascript!=undefined)try{eval(u.What.Javascript)}catch(k){CnnXt.Logger.warn(t,h,k)}}catch(k){CnnXt.Logger.exception(t,h,"Custom JS Call",k)}}if(u.What.Type==r.Newsletter)if(l=e.data("display-type"),CnnXt.Logger.debug(t,h,"Newsletter display type",l),l=="inline"){if(o=u.What.Selector,n(o).length==0)return CnnXt.Logger.warn(t,h,"Not found element by current content selector",o),e.remove(),!1;s=n(o).width();v=String(s).length&lt;4?String(s)[0]+"00":String(s)[0]+String(s)[1]+"00";e.addClass("Mg2-inline-scale-"+v);n(o).append(e);n(window,o).resize(function(){var t=n(o).width(),i=String(t).length&lt;4?String(t)[0]+"00":String(t)[0]+String(t)[1]+"00",r=e.attr("class").replace(/\b\sMg2-inline-scale-\d+\b/g,"");e.attr("class",r);e.addClass("Mg2-inline-scale-"+i)})}else if(l=="modal"){e.addClass("in");e.connextmodal({backdrop:"true"});e.resize();e.css("display","block");n(e).one("keydown",function(n){(n.key==="Escape"||n.key==="Esc"||n.keyCode===27)&amp;&amp;(u.closeEvent=i.EscButton)}).one("hidden",function(){u.closeEvent==null||u.closeEvent==undefined?(u.closeEvent=i.ClickOutside,u.actionDom=e[0].outerHTML,CnnXt.Event.fire("onActionClosed",u)):(u.closeEvent===i.EscButton||u.closeEvent===i.CloseButton)&amp;&amp;(u.actionDom=e[0].outerHTML,CnnXt.Event.fire("onActionClosed",u))})}if(u.What.Type==r.Messaging){if(ft=CnnXt.Storage.GetUserState(),ft==null||ft==CnnXt.Common.USER_STATES.NotLoggedIn)return CnnXt.Logger.warn(t,h,"ACTION_TYPE.Messaging: User is Logged Out"),e.remove(),!1;var l=e.data("display-type"),et=e.find('[data-mg2-container="messages"]'),ct=CnnXt.Utils.GetElementHTML(et.find('[data-mg2-messaging="default"]'));if(et.empty(),l=="modal"){e.addClass("in");e.connextmodal({backdrop:"true"});e.resize();e.css("display","block");ut=u.What["Transparent backdrop"];n(".connext-modal-backdrop.fade.in").css("opacity",ut);n(e).one("keydown",function(n){(n.key==="Escape"||n.key==="Esc"||n.keyCode===27)&amp;&amp;(u.closeEvent=i.EscButton)}).one("hidden",function(){u.closeEvent==null||u.closeEvent==undefined?(u.closeEvent=i.ClickOutside,u.actionDom=e[0].outerHTML,CnnXt.Event.fire("onActionClosed",u)):(u.closeEvent===i.EscButton||u.closeEvent===i.CloseButton)&amp;&amp;(u.actionDom=e[0].outerHTML,CnnXt.Event.fire("onActionClosed",u))})}l=="info-box"&amp;&amp;(u.What.Location?e.addClass(u.What.Location):e.addClass("Mg2-bottom-left"),e.removeClass("bottom").removeClass("hide"));ht=e.find('[data-tmpl-action-name="Location code"]').text();nt(ht).done(function(t){t.forEach(function(t){var i=n(ct);i.find("span.user-message__message-text").html(t);et.append(i)})})}if(u.What.Type==r.ReadMore){if(o=u.What.Selector,n(o).length==0)return CnnXt.Logger.warn(t,h,"Not found element by current content selector",o),e.remove(),!1;if(u.What.Method=="fade"){s=n(o).width();v=String(s).length&lt;4?String(s)[0]+"00":String(s)[0]+String(s)[1]+"00";e.addClass("Mg2-inline-scale-"+v);e.addClass("Mg2-relative-wrap").append('&lt;div class="Mg2-fade"&gt;&lt;\/div&gt;');u.What.Height&amp;&amp;!__.isNaN(parseInt(u.What.Height))&amp;&amp;n(o).css({height:u.What.Height,overflow:"hidden","box-sizing":"border-box"});n(o).after(e);n(o).height()&lt;100&amp;&amp;e.css("margin-top",100-n(o).height());e.find(".Mg2-read-more-inline, .Mg2-read-more-btn").one("click",function(t){t.preventDefault();u.actionDom=e[0].outerHTML;CnnXt.Event.fire("onActionClosed",u);e.hide();n(o).css({height:"",overflow:"","box-sizing":""})});n(window,o).resize(function(){var t=n(o).width(),i=String(t).length&lt;4?String(t)[0]+"00":String(t)[0]+String(t)[1]+"00",r=e.attr("class").replace(/\b\sMg2-inline-scale-\d+\b/g,"");e.attr("class",r);e.addClass("Mg2-inline-scale-"+i)})}else if(u.What.Method=="trim"){if(p(u),ot=n(o).children(),e.css({display:"inline-block","padding-left":"10px"}),ot.length&gt;0){for(g=ot.last();g.children().length&gt;0;)g=g.children().last();g.append(e)}else n(o).append(e);e.find(".Mg2-read-more-inline, .Mg2-read-more-btn").one("click",function(n){n.preventDefault();u.actionDom=e[0].outerHTML;CnnXt.Event.fire("onActionClosed",u);e.hide();setTimeout(function(){w()},0)})}}b=e.attr("id");n("#"+b+" [data-dismiss=mg2bn], #"+b+" [data-dismiss=info-box], #"+b+" [data-dismiss=inline], #"+b+"  [data-dismiss=modal]").one("click",function(r){r.preventDefault();var o=n(this),f=o.attr("href");f!="#"&amp;&amp;f?(o[0].hasAttribute("target")?(CnnXt.Logger.debug(t,h,"Open in a new window",f),window.open(f,"_blank")):(CnnXt.Logger.debug(t,h,"Open in the current window",f),window.location.href=f),CnnXt.Event.fire("onButtonClick",u)):(u.closeEvent=i.CloseButton,o.closest(".Mg2-connext").addClass("hide"),u.actionDom=e[0].outerHTML,CnnXt.Logger.debug(t,h,"Click by link without href",f),n(u.What.Html).hasClass("modal")||CnnXt.Event.fire("onActionClosed",u))});n("#"+b+" [data-dismiss=notclosablepaywall]").one("click",function(i){i.preventDefault();var f=n(this),r=f.attr("href");if(r!="#"&amp;&amp;r)f[0].hasAttribute("target")?(CnnXt.Logger.debug(t,h,"Open in a new window",r),window.open(r,"_blank")):(CnnXt.Logger.debug(t,h,"Open in the current window",r),window.location.href=r),CnnXt.Event.fire("onButtonClick",u);else return!1});u.What.Type!=r.JSCall&amp;&amp;(u.actionDom=e[0].outerHTML);CnnXt.Event.fire("onActionShown",u)}catch(k){k.custom?CnnXt.Logger.warn(k.message):CnnXt.Logger.exception(t,h,k)}},nt=function(t){var i=n.Deferred(),r=CnnXt.Storage.GetMessagingData(),u,f;return r?i.resolve(r[t]||[]):(u=CnnXt.Storage.GetAuthUserId(),f=tt(),CnnXt.API.GetUserMessages({location:"Messaging",payload:{locationCode:t,registrationId:u,subscriptionIds:f},onSuccess:function(n){CnnXt.Storage.SetMessagingData(t,n);i.resolve(n)},onError:function(){i.resolve([])}})),i.promise()},tt=function(){var n=CnnXt.Storage.GetUserData(),t=[];return n&amp;&amp;n.Subscriptions&amp;&amp;(n.Subscriptions.OwnedSubscriptions&amp;&amp;t.push(_.map(n.Subscriptions.OwnedSubscriptions,function(n){return n.SubscriptionId})),n.Subscriptions.GuestSubscriptions&amp;&amp;t.push(_.map(n.Subscriptions.GuestSubscriptions,function(n){return n.SubscriptionId})),n.Subscriptions.InactiveOwnedSubscriptions&amp;&amp;t.push(_.map(n.Subscriptions.InactiveOwnedSubscriptions,function(n){return n.SubscriptionId})),n.Subscriptions.InactiveGuestSubscriptions&amp;&amp;t.push(_.map(n.Subscriptions.InactiveGuestSubscriptions,function(n){return n.SubscriptionId}))),t.length?t:null},at=function(n){return function(t){return t&amp;&amp;this===t.target,n.apply(this,arguments)}},it=function(n){var i="registerActionEvents";CnnXt.Logger.debug(t,i,n);try{n.When||(CnnXt.Logger.debug(t,i,"Action has no When object. So we set default values"),n.When={Time:{Delay:0}});n.When&amp;&amp;n.When.Time?(CnnXt.Logger.debug(t,i,"Action has When.Time object."),n.count=0,rt(n)):n.When&amp;&amp;n.When.Hover?(CnnXt.Logger.debug(t,i,"Action has When.Hover object."),ft(n)):n.When&amp;&amp;n.When.EOS?(CnnXt.Logger.debug(t,i,"Action has When.EOS object."),ut(n)):CnnXt.Logger.warn("No action to register")}catch(r){CnnXt.Logger.exception(t,i,r)}},rt=function(n){var i="setTimedAction",r;CnnXt.Logger.debug(t,i,"Set action start by time",arguments);try{r=setTimeout(function(){s(n);n.count++;CnnXt.Storage.SetTimeRepeatableActionData(n)},n.When.Time.Delay);u.push({item:r,type:"timer"});CnnXt.Logger.debug(t,i,"Action will be execute after: ",n.When.Time.Delay+"ms")}catch(f){CnnXt.Logger.exception(t,i,f)}},ut=function(i){var r="SetEosEvent",f,e;CnnXt.Logger.debug(t,r,"Set action start by EOS",arguments);try{i.count=0;f="#ConneXt_Action_Id-"+i.id;e=setTimeout(function(){var t=n(i.When.EOS.Selector).viewportChecker({offset:10,classToAdd:"visible-"+i.id,callbackFunctionBeforeAddClass:function(t){if(!t.hasClass("visible-"+i.id)){var r=CnnXt.Storage.GetRepeatablesInConv(i.id);n(f).is(":not(:visible)")&amp;&amp;i.When.EOS.Repeatable&gt;i.count&amp;&amp;i.When.EOS.RepeatableConv&gt;r&amp;&amp;(i.inProgress||(i.inProgress=!0,s(i),i.count++,i.inProgress=!1,CnnXt.Storage.UpdateRepeatablesInConv(i.id)))}},callbackFunction:function(t){n(t).removeClass("visible-"+i.id)},repeat:!0,scrollHorizontal:!1});u.push({item:t,type:"viewportChecker"})},i.When.EOS.Delay);u.push({item:e,type:"timer"})}catch(o){CnnXt.Logger.exception(t,r,o)}},ft=function(i){var r="setHoverEvent",f,e;CnnXt.Logger.debug(t,r,"Set action start by hover",arguments);try{f=i.When.Hover.Delay?i.When.Hover.Delay:0;e=setTimeout(function(){function r(r){if(r.stopPropagation(),__.isNumber(parseInt(i.When.Hover.Repeatable))&amp;&amp;__.isNumber(parseInt(i.When.Hover.RepeatableConv))){var u=CnnXt.Storage.GetRepeatablesInConv(i.id);if(n(f).is(":not(:visible)"))t&lt;i.When.Hover.Repeatable&amp;&amp;i.When.Hover.RepeatableConv&gt;u&amp;&amp;(s(i),t++,CnnXt.Storage.UpdateRepeatablesInConv(i.id));else return!1}return!1}var t=0,f="#ConneXt_Action_Id-"+i.id;n(i.When.Hover.Selector).on("mouseenter",r).children().mouseover(function(){if(i.When.Hover.IncludeChildren=="False")return!1});u.push({selector:i.When.Hover.Selector,type:"hover",handler:r})},f);u.push({item:e,type:"timer"})}catch(o){CnnXt.Logger.exception(t,r,o)}},p=function(i){var s,v;CnnXt.Logger.debug(t,"hideContent",arguments);try{s=new RegExp(/script|style|meta/i);f=i.What.Effect||"trim";e=i.What.Selector;var c=i.What.Terminator||"",h=i.What.PrevChars||i.What.Characters,r=0,l=n(e)[0],u=n(e).clone();u.find(".Mg2-connext[data-display-type=inline]").remove();u.find(".Mg2-connext[data-display-type=info-box]").remove();u.find(".Mg2-connext[data-display-type=mg2bn]").remove();a=u[0].innerHTML;v=l.childNodes;f&amp;&amp;t(l,v);n(".flittz").removeClass("blurry-text");n(".flittz").removeClass("trimmed-text");n(".trimmed-text").remove();function t(n,i){for(var u,e,v,y,a=0;a&lt;i.length;a++)if(u=i[a],r&gt;=h)f=="blur"?u.classList?(u.classList.add("blurry-text"),o(u)):(e=document.createElement("span"),e.innerHTML=u.textContent,e.classList.add("blurry-text"),o(e),u.parentNode.insertBefore(e,u),n.removeChild(u)):u.classList?u.classList.add("trimmed-text"):(e=document.createElement("span"),e.innerHTML=u.textContent,e.classList.add("trimmed-text"),u.parentNode.insertBefore(e,u),n.removeChild(u));else if(u.tagName)s.test(u.tagName)||t(u,u.childNodes);else if(r+=u.length,h&lt;=r){var b=r-h,l=u.textContent.substr(0,u.textContent.length-b),p=Math.min(l.length,l.lastIndexOf(" ")),w;for(p!=-1?(l=l.substr(0,p)+c,w=u.textContent.substr(p)):(w=u.textContent.substr(l.length),l+=c),u.textContent=l,v=document.createElement("span"),v.innerHTML=w,v.classList.add(f=="blur"?"blurry-text":"trimmed-text"),o(v),n.insertBefore(v,i[a+1]),y=a+1;y&lt;i.length;y++)u=i[y],u.classList&amp;&amp;(s.test(u.tagName)||(u.classList.add(f=="blur"?"blurry-text":"trimmed-text"),o(u)))}}}catch(y){CnnXt.Logger.exception(CnnXt.Common.ERROR.HIDE_CONTENT)}},o=function(i){var f="mixContent",r,u;try{if(n(i).children().length==0){if(r=n(i).text(),r)for(u=0;u&lt;r.length;u++)r=r.replaceAt(u,CnnXt.Utils.GetNextLetter(r[u]));n(i).text(r)}else n.each(n(i).children(),function(n,t){o(t)})}catch(e){CnnXt.Logger.exception(t,f,e)}},w=function(){var i="showContent";try{CnnXt.Logger.debug(t,i);n(e).css({overflow:"",height:"","box-sizing":""});n(e).html(a)}catch(r){CnnXt.Logger.exception(t,i,r)}},b=function(n){var f="getDaysToExpire",i,r,u;CnnXt.Logger.debug(t,f,n);try{return i=CnnXt.Utils.Now(),r=new Date(n.Props.Date.expiration),u=n.Options.Expirations.Time.key=="d"||n.Options.Expirations.Time.key=="w"||n.Options.Expirations.Time.key=="m"||n.Options.Expirations.Time.key=="y"?parseInt((r-i)/864e5)+1:parseInt((r-i)/864e5),u&lt;=0?"less than 1":u}catch(e){CnnXt.Logger.exception(t,f,e)}},ot=function(i){var u="handleDynamicHtml";CnnXt.Logger.debug(t,u,arguments);try{var r=CnnXt.Campaign.GetCurrentConversationProps(),f=CnnXt.Campaign.GetCurrentConversation(),o=i.replace(/{{(.*?)}}/g,function(n){var e="FixedHtml",u="User",s,c,o,i,l;switch(n){case"{{FreeViewsLeft}}":return s=eval(r.paywallLimit-r.views),parseInt(s)&lt;0&amp;&amp;(s=0),CnnXt.Logger.debug(t,e,"Replace FreeViewsLeft to",s),s;case"{{CurrentViewCount}}":return CnnXt.Logger.debug(t,e,"Replace CurrentViewCount to",r.views),r.views;case"{{ExpireTimeLeft}}":return CnnXt.Logger.debug(t,e,"Replace FreeViewsLeft to",b(f)),b(f);case"{{ArticleCost}}":return CnnXt.Logger.debug(t,e,"Replace ArticleCost to",h()),h()?h():"";case"{{UserFullName}}":try{if(c=CnnXt.Storage.GetUserState(),o=CnnXt.Storage.GetLocalConfiguration().Site.RegistrationTypeId,CnnXt.Logger.debug(t,e,"Replace UserFullName"),c){if(c==="Logged Out")return u;if(c!=="Logged Out"){if(c!=="Logged In"&amp;&amp;o===1)return i=CnnXt.Storage.GetUserData(),i?(l=null,i.OwnedSubscriptions?l=i.OwnedSubscriptions[0].FullName:i.Subscriptions&amp;&amp;(l=i.Subscriptions.OwnedSubscriptions[0].FirstName+" "+i.Subscriptions.OwnedSubscriptions[0].LastName),l||u):u;if(o===2)return i=CnnXt.Storage.GetJanrainUser(),i?i.displayName||u:u;if(o===3,o===4)return i=CnnXt.Storage.GetUserProfile(),i?i.name||i.nickname||u:u;if(o===5&amp;&amp;(i=CnnXt.Storage.GetUserData(),i))return i.DisplayName}}else return u}catch(a){return CnnXt.Logger.exception(t,e,a),u}}}),e=n(o);return CnnXt.Utils.AddQueryParamsToAllLinks(e),e[0].outerHTML}catch(s){return CnnXt.Logger.exception(t,u,s),i}},st=function(){v=!0;n("body").on("click",'[data-mg2-action="click"]',k);n("body").on("click",'[data-mg2-action="login"], [data-mg2-action="connextRun"], [data-mg2-action="submit"], [data-mg2-action="Zipcode"], [data-mg2-action="openNewsletterWidget"],[data-mg2-action="activation"]',function(n){n.preventDefault();k(n)});n("body").on("click",'[data-mg2-action="click-Newsday"]',ht)};return{init:function(){CnnXt.Logger.debug(t,"Initializing Action Module...");v||st();l=!0},ProcessActions:g,IntegrateProduct:w,ActionInPendingExecutionTime:ct,ActionLimitIsExceeded:lt,ClearActionsSchedule:et}},ConnextWhitelist=function(n){function b(i){return CnnXt.Logger.debug(r,"checkClientIP","Check client IP"),t=n.Deferred(),s=__.isArray(i)?i:[],s.length===0?t.resolve():CnnXt.Storage.GetWhitelistSetIdCookie()?t.reject():k().done(function(n){c=n;f=d(n,s);f.length&gt;0?f[0].CodesAreNotRequired?(CnnXt.Event.fire("onAccessGranted","Success! Now you have full access"),t.reject()):nt(f[0]):t.resolve()}).fail(function(){t.reject()}),t.promise()}function k(){var i="getUserIP",t=n.Deferred();return n.ajax({url:CnnXt.Common.IPInfo,type:"GET",success:function(n){CnnXt.Logger.debug(r,i,"success",n);n&amp;&amp;n.ipAddress?t.resolve(n.ipAddress):t.reject()},error:function(){CnnXt.Logger.debug(r,i,"IPInfo call failed. Calling API to get info");t.reject()}}),t.promise()}function d(n,t){var i=[];return CnnXt.Logger.debug(r,"findWhitelistSetWithIP","Check client IP"),t.forEach(function(t){t&amp;&amp;__.isArray(t.Ips)&amp;&amp;t.Ips.forEach(function(r){g(n,r.IP)&amp;&amp;i.push(t)})}),i}function g(n,t){var e="compareIPs",f,i,u;try{return(f=/^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$/,!n||!t)?!1:(i=!1,u=!1,f.test(t)&amp;&amp;(~t.indexOf("/")?u=!0:i=!0),i)?n===t:u?CnnXt.Utils.IPWithinRangeCIDR(n,t):!1}catch(o){return CnnXt.Logger.exception(r,e,o),!1}}function nt(r){var f=CnnXt.Storage.GetWhitelistInfoboxCookie(),o=CnnXt.Storage.GetNeedHidePinTemplateCookie(),u;if(o)return t.resolve();if(r.InfoBoxHtml&amp;&amp;f)e=n(".Mg2-pin-infobox"),e&amp;&amp;e.length||(n("body").append(r.InfoBoxHtml),e=n(".Mg2-pin-infobox")),u=l(),u||a(e),e.show(),v(),h=!1,t.resolve();else if(r.ModalHtml&amp;&amp;!f){i=n(".Mg2-pin-modal");i&amp;&amp;i.length||(n("body").append(r.ModalHtml),i=n(".Mg2-pin-modal"));u=l();u||a(i);i.on("show.bs.modal",function(){v();h=!1});i.addClass("in");i.connextmodal({backdrop:"true"});i.resize()}else t.resolve();tt()}function l(){var n=CnnXt.Storage.GetPinAttempts(),t=!0;return n&amp;&amp;n&gt;=p-1&amp;&amp;(t=!1),t}function a(n){var t=n.find(".Mg2-pin__message");t.text("You exceeded maximum amount of attempts. You will be allowed to try again in 15 minutes.").addClass("Mg2-pin__message_error").show();n.find(".Mg2-pin__input").hide();n.find(".Mg2-pin__button").hide()}function tt(){function s(n,t,i){for(var o,s=CnnXt.GetOptions().apiUrl+"api/whitelist/check",e=[],u=0;u&lt;f.length;u++)e.push(f[u].id);o={code:n,SetIds:e,Ip:c};CnnXt.API.CheckMg2Pin({location:y,payload:o,onSuccess:function(n){CnnXt.Logger.debug(r,"Check PIN","Success",n);CnnXt.Storage.SetWhitelistSetIdCookie({Id:n.WhitelistSetId,Expiration:n.expires},new Date(n.expires));h(t,{message:"Success! Now you have full access",status:200});var i={UserId:CnnXt.GetOptions().deviceId,ConfigCode:CnnXt.GetOptions().configCode,SiteCode:CnnXt.GetOptions().siteCode,SettingsKey:CnnXt.GetOptions().settingsKey,ViewData:CnnXt.Storage.GetLocalViewData()};CnnXt.User.getMasterId()&amp;&amp;(i.masterId=CnnXt.User.getMasterId());CnnXt.API.SendViewData(i)},onError:function(n){CnnXt.Logger.debug(r,"Check PIN","Success",n.ErrorMessage);v(t,{message:n.ErrorMessage,status:n.ErrorCode},i)}})}function h(t,i){t.text(i.message).addClass("Mg2-pin__message_success").show();setTimeout(function(){n(".Mg2-pin-modal").connextmodal("hide");n(".Mg2-pin-infobox").hide();CnnXt.CloseTemplates(CnnXt.IntegrateProduct)},1e3);CnnXt.Event.fire("onAccessGranted",null);o(u.AccessGranted)}function v(n,t,i){t.status==w&amp;&amp;CnnXt.Storage.WrongPin();n.text(t.message).addClass("Mg2-pin__message_error").show();i.val("");CnnXt.Event.fire("onAccessDenied",null)}var i=n(".Mg2-pin-modal"),e=n(".Mg2-pin-infobox");n(".Mg2-pin__button").on("click",function(){var r=n(this).parents(".Mg2-pin"),u=l(),t,i;if(!u){a(r);return}t=r.find('.Mg2-pin__input[type="password"]');i=r.find(".Mg2-pin__message");i.hide().removeClass("Mg2-pin__message_error Mg2-pin__message_success");t.removeClass("Mg2-pin__input_error");t.val().length?s(t.val(),i,t):(t.addClass("Mg2-pin__input_error"),i.text("Please enter code").addClass("Mg2-pin__message_error").show())});i.on("keydown",function(n){(n.key==="Escape"||n.key==="Esc"||n.keyCode===27)&amp;&amp;(i.closeEvent=u.EscButton)}).on("hidden",function(){CnnXt.Storage.SetWhitelistInfoboxCookie(!0);i.closeEvent==null||i.closeEvent==undefined?o(u.ClickOutside):i.closeEvent==u.EscButton&amp;&amp;o(u.EscButton);CnnXt.Storage.GetWhitelistSetIdCookie()||t.resolve()}).on("click","[data-dismiss]",function(){n(this).hasClass("proceed-without-pin")&amp;&amp;CnnXt.Storage.SetNeedHidePinTemplateCookie(!0);i.closeEvent=u.CloseButton;o(u.CloseButton)});e.on("click","[data-dismiss]",function(n){n.preventDefault();e.hide();o(u.CloseButton)}).on("click",".proceed-without-pin",function(){CnnXt.Storage.SetNeedHidePinTemplateCookie(!0)})}function v(){CnnXt.Event.fire("onAccessTemplateShown",null)}function o(n){h||(CnnXt.Event.fire("onAccessTemplateClosed",n),h=!0)}var r="Whitelist",s=[],c=null,f=[],t,y="Whitelisting",i,e,h=!0,p=5,w=100,u={CloseButton:"closeButton",ClickOutside:"clickOutside",AccessGranted:"accessGranted",EscButton:"escButton"};return{init:function(){CnnXt.Storage.UpdateWhitelistSetCookieName();CnnXt.Storage.UpdateWhitelistInfoboxCookieName();CnnXt.Storage.UpdateNeedHidePinTemplateCookieName();CnnXt.Logger.debug(r,"Initializing Whitelist Module...")},CheckClientIP:b}},ConnextAppInsights=function(){var n="AppInsights",r=null,t=null,u=function(t,i){try{CnnXt.Logger.debug(n,"Initializing AppInsights Module...");var r=function(n){function i(n){t[n]=function(){var i=arguments;t.queue=t.queue||[];t.queue.push(function(){t[n].apply(t,i);t.context})}}var t={config:n},u=document,e=window,o="script",s="AuthenticatedUserContext",h="start",c="stop",l="Track",a=l+"Event",v=l+"Page",y=u.createElement(o),r,f;y.src=n.url||"https://az416426.vo.msecnd.net/scripts/a/ai.0.js";u.getElementsByTagName(o)[0].parentNode.appendChild(y);try{t.cookie=u.cookie}catch(p){}for(t.queue=[],t.version="1.0",r=["Event","Exception","Metric","PageView","Trace","Dependency"];r.length;)i("track"+r.pop());return i("set"+s),i("clear"+s),i(h+a),i(c+a),i(h+v),i(c+v),i("flush"),n.disableExceptionTracking||(r="onerror",i("_"+r),f=e[r],e[r]=function(n,i,u,e,o){var s=f&amp;&amp;f(n,i,u,e,o);return s!==!0&amp;&amp;t["_"+r](n,i,u,e,o),s}),t}({instrumentationKey:CnnXt.GetOptions().appInsightsKey,disableExceptionTracking:!0,appUserId:t,accountId:i,disableAjaxTracking:!0,maxAjaxCallsPerView:0});window.appInsights=r;r.queue||(r.queue=[]);r.setAuthenticatedUserContext(t,i);r.trackPageView()}catch(u){CnnXt.Logger.warn(n,"Error of app insights initialization",u)}},f=function(t,i){var u="trackEvent",r;if(typeof appInsights!="undefined")try{r=o(t,i);CnnXt.Logger.debug(n,u,"Event name: ",t,"App Insights data",r);appInsights.trackEvent(t,r)}catch(f){CnnXt.Logger.exception(n,u,f)}},e=function(n){var t=CnnXt.Storage.GetLocalConfiguration(),r=CnnXt.Storage.GetCurrentConversation(),i=CnnXt.Utils.GetUserMeta(),u=CnnXt.Storage.GetUserData(),f=CnnXt.Storage.GetMeter();n=n||{};var e=CnnXt.Storage.GetJanrainUser(),o=CnnXt.Storage.GetUserProfile(),s=CnnXt.Storage.GetUserData();return{cnvid:r?r.id:null,cnvn:r?r.Name:"",mlm:f?f.method:"",ml:CnnXt.GetOptions().currentMeterLevel,artlft:r&amp;&amp;r.Props?r.Props.ArticleLeft:null,artc:CnnXt.Storage.GetCurrentConversationViewCount(),mlartc:CnnXt.Storage.GetCurrentDynamicMeterViewCount(),cmid:t&amp;&amp;t.Campaign?t.Campaign.id:null,cmn:t&amp;&amp;t.Campaign?t.Campaign.Name:"",dmid:t&amp;&amp;t.DynamicMeter?t.DynamicMeter.id:null,dmn:t&amp;&amp;t.DynamicMeter?t.DynamicMeter.Name:"",cnfc:t&amp;&amp;t.Settings?t.Settings.Code:"",cnfn:t&amp;&amp;t.Settings?t.Settings.Name:"",sc:t&amp;&amp;t.Site?t.Site.SiteCode:"",at:t&amp;&amp;t.Site?CnnXt.Common.RegistrationTypes[t.Site.RegistrationTypeId]:"",crid:u?u.MasterId:null,igmrid:u?u.IgmRegID:null,us:CnnXt.Storage.GetUserState(),em:o?o.email:e?e.email:s?s.Email:"",ip:CnnXt.Utils.GetIP(),zc:CnnXt.Storage.GetActualZipCodes(),did:CnnXt.GetOptions().deviceId,dt:i?i.deviceType:"",os:i?i.OS:"",brw:i?i.Browser:"",url:i?i.URL:"",attr:CnnXt.GetOptions().attr,stk:CnnXt.GetOptions().settingsKey}},o=function(n,r){var f=r.EventData,o=CnnXt.Storage.GetLocalConfiguration(),u;t||(t=i());u={cnfc:o&amp;&amp;o.Settings?o.Settings.Code:"",sc:o&amp;&amp;o.Site?o.Site.SiteCode:"",stk:CnnXt.GetOptions().settingsKey,ssid:t};switch(n){case"onInit":u.ga=f.ga;u.gtm=f.gtm;u.g2i=f.g2i;break;case"onRun":u.rrsn=f?f.RunReason:null;break;case"onDynamicMeterFound":u.dmn=f;break;case"onCampaignFound":u.cmn=f.Name;break;case"onMeterLevelSet":u.mlm=f.Method;u.ml=f.Level;u.rn=f.Rule?f.Rule.Name:null;break;case"onConversationDetermined":u.cnvn=f.Name;u.ml=f.MeterLevelId;u.vws=f.Props.Views;u.mlvws=CnnXt.Storage.GetCurrentDynamicMeterViewCount();u.artlft=r.Conversation&amp;&amp;r.Conversation.Props?r.Conversation.Props.ArticleLeft:null;break;case"onConversationExpired":u.cnvn=f.conversation?f.conversation.name:null;u.nxtcnvn=f.nextConversation?f.nextConversation.name:null;u.rsn=f.reason;break;case"onLoginShown":u.lgmdid=null;break;case"onLoginClosed":u.lgmdid=null;u.clev=f?f.CloseEvent:null;break;case"onLoginError":u.errmsg=f?f:"";break;case"onAuthorized":case"onHasAccess":case"onHasAccessNotEntitled":case"onHasNoActiveSubscription":case"onLoginSuccess":u.crid=f.Mg2AccountData?f.Mg2AccountData.MasterId:null;u.igmRegId=f.Mg2AccountData?f.Mg2AccountData.IgmRegID:null;u.as=f.Mg2AccountData?f.Mg2AccountData.AuthSystem:null;break;case"onLoggedIn":u.crid=f.mg2AccountData?f.mg2AccountData.masterId:null;u.igmRegId=f.Mg2AccountData?f.Mg2AccountData.IgmRegID:null;u.as=f.Mg2AccountData?f.Mg2AccountData.AuthSystem:null;u.us=CnnXt.Storage.GetUserState();break;case"onActionShown":u.actid=f.Id;u.actn=f.Name;u.actt=f.ActionTypeId;u.usdfdt=f.UserDefinedData;u.artc=f.ArticlesViewed;u.mlartc=CnnXt.Storage.GetCurrentDynamicMeterViewCount();break;case"onActionClosed":u.actid=f.Id;u.actn=f.Name;u.actt=f.ActionTypeId;u.usdfdt=f.UserDefinedData;u.artc=f.ArticlesViewed;u.mlartc=CnnXt.Storage.GetCurrentDynamicMeterViewCount();u.clev=f.CloseEvent;break;case"onNewsletterSignUp":case"onNewsletterSignUpFails":u.mail=f.Email;u.id=f.EmailPreferenceId;break;case"onButtonClick":u.udfat=f.UserDefinedDataAttr;u.actid=f.ActionId||(r.Action&amp;&amp;r.Action.Id?r.Action.id:null);u.actn=r.Action&amp;&amp;r.Action.Name?r.Action.Name:null;u.actt=r.Action?r.Action.ActionTypeId:null;u.btnhtml=f.ButtonHTML||"";break;case"onFinish":u=e(r);break;case"onAdblockFound":u.dtctd=!0}return u.ev_id=r.EventInfo.Id,u.ev_ts=r.EventInfo.TimeStamp,u.l_ssid=CnnXt.GetOptions().sessionId,u},i=function(){var t="",n;const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(n=0;n&lt;6;n++)t+=i.charAt(Math.floor(Math.random()*i.length));return t};return{init:u,trackEvent:f,getUserId:function(){return r},generateSessionId:function(){t=i()}}},ConnextActivation=function(n){function ct(n){n.preventDefault();CnnXt.Activation.Run()}function lt(i){i.preventDefault();n(t.SubSteps.FailActivation).hide();n(t.SubSteps.ActivateForm).show();n(t.Forms.ActivateCep).show();r=f.Activate;CnnXt.Event.fire("onActivationLinkErrorStepClosed",{CloseEvent:o.MoveToActivate});CnnXt.Event.fire("onActivationLinkStepShown",null)}function b(){e=!1}function at(){i.closeEvent=o.CloseButton}function oi(){window.addEventListener("resize",function(){e&amp;&amp;setTimeout(function(){v()},25)})}var u="Activation",h="Activation",nt=!1,e=!1,i,tt=!1,l="",c,o={CloseButton:"closeButton",CloseSpan:"closeSpan",ClickOutside:"clickOutside",EscButton:"escButton",MoveToActivate:"moveToLinkStep",MoveToSuccess:"moveToSuccessStep",MoveToFail:"moveToErrorStep"},f={Authenticate:"Authenticate",Activate:"Activate",Success:"Success",Fail:"Fail"},a,r,t={Modal:"[data-connext-dynamic-size]",Step:"data-connext-template-step",Steps:{Authenticate:'[data-connext-template-step="Authenticate"]',Activate:'[data-connext-template-step="Activate"]'},SubStep:"data-connext-template-substep",SubSteps:{Login:'[data-connext-template-substep="Login"]',Registration:'[data-connext-template-substep="Registration"]',SubscribeLink:'[data-connext-template-substep="SubscribeLink"]',UpgradeLink:'[data-connext-template-substep="UpgradeLink"]',ActivateForm:'[data-connext-template-substep="ActivateForm"]',SuccessActivation:'[data-connext-template-substep="Success"]',FailActivation:'[data-connext-template-substep="Fail"]',ActivationProgress:'[data-connext-progress="Activate"]'},Run:'[data-mg2-action="activation"]',Buttons:{ConnextRun:'[data-mg2-action="connextRun"]:visible',BackStep:'[data-mg2-acton="backStep"]:visible'},Inputs:{common:"[data-connext-input]",visible:"[data-connext-input]:visible",Email:'[data-connext-input="Email"]:visible',AllEmails:'[data-connext-input="Email"]',Password:'[data-connext-input="Password"]:visible',SearchOptions:'[data-connext-input="SearchOption"]:visible',LastName:'[data-connext-input="LastName"]:visible',AccountNumber:'[data-connext-input="AccountNumber"]:visible',ZipCode:'[data-connext-input="ZipCode"]:visible',HouseNumber:'[data-connext-input="HouseNumber"]:visible',PhoneNumber:'[data-connext-input="PhoneNumber"]:visible',ConfirmationNumber:'[data-connext-input="ConfirmationNumber"]'},Links:'[redirect="true"]',CloseButton:'[data-connext-role="close"]',ErrorMessages:{LoginSubstep:'[data-connext-template-substep="LoginFormError"]',RegistrationSubStep:'[data-connext-template-substep="RegistrationFormError"]',Activation:'[data-connext-template-substep="ActivateFormError"]'},AuthSystems:{Janrain:".janrain-close-modal",Auth0:".auth0-lock-close-button"},Forms:{ActivateCep:"#ActivateForm"}},k={linkingFailed:"I'm sorry, an error occurred and we can't complete this process. Please contact customer service for assistance. ",digitalAccessNeedUpgrade:"I'm sorry, your subscription does not give you access to this content. Please &lt;a data-connext-link='Upgrade' redirect='true'&gt;upgrade&lt;\/a&gt; to get access. ",digitalAccessNeedPurchase:"I'm sorry, your subscription does not give you access to this content. Please &lt;a data-connext-link='Subscribe' redirect='true'&gt;subscribe&lt;\/a&gt; to get access. "},it={ActivateByAccountNumber:"ActivateByAccountNumber",ActivateByZipCodeAndHouseNumber:"ActivateByZipCodeAndHouseNumber",ActivateByZipCodeAndPhoneNumber:"ActivateByZipCodeAndPhoneNumber",ActivateBySubscriptionId:"ActivateBySubscriptionId",ActivateByConfirmationNumber:"ActivateByConfirmationNumber"},s={Authenticate:420,Activate:672},rt=function(n){var t="run";if(CnnXt.Logger.debug(u,t,"Run activation flow"),e&amp;&amp;!(n&amp;&amp;n.runAfterSuccessfulLogin)){CnnXt.Logger.debug(u,t,"Activation flow has already run... Break!");return}if(v(),st())p().always(ht);else{if(r==null)return!1;e=!0;ut();r==f.Activate&amp;&amp;p();ft();r==f.Authenticate?fi[a]():y()}},vt=function(){window.janrain?janrain.capture.ui.modal.open():CnnXt.Logger.warn("No janrain global object found!")},yt=function(){CnnXt.User.showAuth0Login()},v=function(){var n=CnnXt.Storage.GetUserState();n==null&amp;&amp;(n=c.NotLoggedIn);n==c.NotLoggedIn?(r=f.Authenticate,i.attr("data-width",s.Authenticate),i.css("width",s.Authenticate).css("margin-left","-"+s.Authenticate/2+"px")):n==c.Subscribed?(r=null,e=!1):(r=f.Activate,i.attr("data-width",s.Activate),i.css("width",s.Activate).css("margin-left","-"+s.Activate/2+"px"));CnnXt.Logger.debug(u,"calculateCurrentStep","current step",r)},ut=function(){var f;CnnXt.Logger.debug(u,"hideInactiveSteps");f=i.find("["+t.Step+"]");f.each(function(i,u){var f=n(u);f.attr(t.Step)==r?f.show():f.hide()})},pt=function(n){v();r!=null||n?r==null&amp;&amp;n&amp;&amp;(CnnXt.Run({RunReason:CnnXt.Common.RunReasons.ActivationSuccess}),CnnXt.Event.fire("onActivationLoginStepClosed",o.MoveToActivate)):et();ut();n&amp;&amp;r==f.Activate&amp;&amp;(CnnXt.Event.fire("onActivationLoginStepClosed",o.MoveToActivate),st()?(et(),p().always(ht)):(CnnXt.Event.fire("onActivationLinkStepShown",null),p()))},ft=function(){var r="showLinksByUserStatus",f=i.find(t.SubSteps.SubscribeLink),e=i.find(t.SubSteps.UpgradeLink),n=CnnXt.Storage.GetUserState();n==c.SubscribedNotEntitled?(CnnXt.Logger.debug(u,r,"Open upgrade link",n),f.hide(),e.show()):(CnnXt.Logger.debug(u,r,"Open subscribe link",n),e.hide(),f.show())},y=function(){var c=CnnXt.GetOptions(),h,a;CnnXt.Logger.debug(u,"showActivationTemplate",c);!c.silentmode&amp;&amp;l.IsActivationOnly?(i.find('.connext-actflow-close-wrapper, [data-connext-role="close"]').remove(),h={backdrop:"static",keyboard:!1}):h={backdrop:"true"};i.attr("data-width",s[r]).css("margin-left","-"+s[r]/2+"px");i.addClass("in").show();i.connextmodal(h);i.resize();a=i.find("input");i.find('[data-connext-input="SearchOption"]').val("");n.each(a,function(){n(this).val("")});CnnXt.Event.fire("onActivationFormShown",null);i.find(t.SubSteps.SuccessActivation).hide();i.find(t.SubSteps.FailActivation).hide();r==f.Authenticate?CnnXt.Event.fire("onActivationLoginStepShown",null):r==f.Activate&amp;&amp;(i.find(t.SubSteps.ActivateForm).show(),n(t.Forms.ActivateCep).show(),CnnXt.Event.fire("onActivationLinkStepShown",null));wt();i.closeEvent=null;i.find('[data-connext-role="close"]').on("click",function(){var r=n(this),t=r.attr("href");t&amp;&amp;t!=="#"&amp;&amp;(r[0].hasAttribute("target")?window.open(t,"_blank"):window.location.href=t);i.closeEvent=o.CloseButton});i.on("keyup",function(n){(n.key==="Escape"||n.key==="Esc"||n.keyCode===27)&amp;&amp;(i.closeEvent=o.EscButton,e=!1)}).one("hidden",function(){e=!1;i.closeEvent||(i.closeEvent=o.ClickOutside);var n={closeEvent:i.closeEvent,activateStatus:null};r==f.Authenticate&amp;&amp;CnnXt.Event.fire("onActivationLoginStepClosed",CnnXt.PublicObjectsMapper.Map(n,"OnActivationModalEventData"));r==f.Activate&amp;&amp;CnnXt.Event.fire("onActivationLinkStepClosed",CnnXt.PublicObjectsMapper.Map(n,"OnActivationModalEventData"));r==f.Success&amp;&amp;(n.activateStatus="success",CnnXt.Event.fire("onActivationLinkSuccessStepClosed",CnnXt.PublicObjectsMapper.Map(n,"OnActivationModalEventData")),ui());r==f.Fail&amp;&amp;(n.activateStatus="error",CnnXt.Event.fire("onActivationLinkErrorStepClosed",CnnXt.PublicObjectsMapper.Map(n,"OnActivationModalEventData")));CnnXt.Event.fire("onActivationFormClosed",CnnXt.PublicObjectsMapper.Map(n,"OnActivationModalEventData"))})},wt=function(){var e=CnnXt.Utils.GetActivationUrlParams(),o;CnnXt.Logger.debug(u,"processActivationUrlParams",e);r==f.Authenticate&amp;&amp;e.email&amp;&amp;i.find(t.Inputs.AllEmails).val(e.email);e.confirmationNumber&amp;&amp;i.find(t.Inputs.ConfirmationNumber).val(e.confirmationNumber);o=i.find(t.Links);o.each(function(t,i){var u=n(i),r=u.attr("href"),f;r=CnnXt.Utils.AddReturnUrlParamToLink(r);u.attr("data-connext-link")=="Upgrade"?(f=CnnXt.Utils.GetProductCode(),f?(r=CnnXt.Utils.AddParameterToURL(r,"product",f),u.attr("href",r)):CnnXt.API.GetProductCode({location:h}).then(function(n){r=CnnXt.Utils.AddParameterToURL(r,"product",n);u.attr("href",r)},function(){u.attr("href",r)})):u.attr("href",r)})},et=function(){i.connextmodal("toggle")},ot=function(n){var i={Email:n.Email,Password:n.Password};return g(t.ErrorMessages.LoginSubstep,!1),CnnXt.API.GetUserByEmailAndPassword({location:h,payload:i,onSuccess:function(n){kt(n,"onSuccess",i)},onError:function(n){g(t.ErrorMessages.LoginSubstep,n.ErrorMessage)}})},bt=function(n){var i={Email:n.Email,Password:n.Password,DisplayName:n.DisplayName};return CnnXt.API.CreateUser({location:h,payload:i,onSuccess:function(){CnnXt.Event.fire("onActivationAccountCreated",{Email:i.Email,DisplayName:i.DisplayName});ot(n)},onError:function(n){g(t.ErrorMessages.RegistrationSubStep,n.ErrorMessage)}})},kt=function(n,t){var i="successLogin";try{n.Email=t.email;n.AuthSystem="MG2";CnnXt.User.processSuccessfulLogin("Form",n);oi();pt(!0);ft()}catch(r){CnnXt.Logger.exception(u,i,r)}},p=function(){var r="syncUser",t,i;try{return t=CnnXt.Storage.GetLocalConfiguration(),t&amp;&amp;t.Site.RegistrationTypeId!==CnnXt.Common.AuthSystem.MG2?(i={CustomRegId:CnnXt.Utils.GetUserAuthData().CustomRegId},CnnXt.API.SyncUser({location:h,payload:i})):n.Deferred().resolve()}catch(f){return CnnXt.Logger.exception(u,r,f),n.Deferred().reject()}},dt=function(n){var t=n;return CnnXt.Logger.debug(u,"activate",t.SearchOption,t),d(t)},st=function(){var t="checkAvailabilityToAutoLinking",n;try{return(n=CnnXt.Utils.GetActivationUrlParams(),r!=f.Activate)?!1:n.accountNumber&amp;&amp;n.lastName?!0:n.confirmationNumber&amp;&amp;n.lastName?!0:!1}catch(i){CnnXt.Logger.exception(u,t,i)}},ht=function(){var t="doAutoLinking",n;try{n=CnnXt.Utils.GetActivationUrlParams();n.accountNumber&amp;&amp;n.lastName?(CnnXt.Logger.debug(u,t,"We have account number and last name in the url params. So we do auto linking",n),ni(n.accountNumber,n.lastName)):n.confirmationNumber&amp;&amp;n.lastName&amp;&amp;(CnnXt.Logger.debug(u,t,"We have confirmation number and last name in the url params. So we do auto linking",n),gt(n.confirmationNumber,n.lastName))}catch(i){CnnXt.Logger.exception(u,t,i)}},gt=function(n,t){var i;CnnXt.Logger.debug(u,"autoLinkingByConfirmationNumber",n,t);i={ConfirmationNumber:n,LastName:t,SearchOption:it.ActivateByConfirmationNumber,autoLink:!0};d(i)},ni=function(n,t){var i;CnnXt.Logger.debug(u,"autoLinkingByAccountNumber",n,t);i={AccountNumber:n,LastName:t,SearchOption:it.ActivateByAccountNumber,autoLink:!0};d(i)},d=function(n){var i="linkAccount",r,t;try{return r=n.SearchOption,t=CnnXt.Utils.GetUserAuthData(),n.CustomRegId=t.CustomRegId,n.Mode=t.Mode,CnnXt.Event.fire("onActivationLinkStepSubmitted",{ActivateBy:n.SearchOption}),CnnXt.Logger.debug(u,i,n.SearchOption,n),CnnXt.API[r]({location:h,payload:n,onSuccess:function(t){ti(t,n)},onError:function(t){w(t.ErrorMessage,n.SearchOption,n.autoLink)}})}catch(f){CnnXt.Logger.exception(u,i,f)}},ti=function(n,t){if(CnnXt.Logger.debug(u,"checkAccessAfterLinking",n),__.isString(n))try{n=JSON.parse(n)}catch(i){w(n.Message,t.SearchOption,t.autoLink)}n.Success?ii().then(function(){ri(n,t.SearchOption,t.autoLink)},function(i){w(n,t.SearchOption,t.autoLink,i)}):w(n.Message,t.SearchOption,t.autoLink)},ii=function(){var i="checkDigitalAccess",t=n.Deferred(),r=CnnXt.Utils.GetUserAuthData(),f={masterId:r.CustomRegId,mode:r.Mode};return CnnXt.Logger.debug(u,i,"payload",f),CnnXt.API.CheckDigitalAccess({location:h,payload:f,onSuccess:function(n){if(n){if(__.isString(n))try{var r=JSON.parse(n);r&amp;&amp;__.isArray(r.Errors)&amp;&amp;__.findWhere(r.Errors,{Code:400})&amp;&amp;t.reject()}catch(f){CnnXt.Logger.debug(u,i,"Parse error",n);t.reject()}__.isString(n.AccessLevel)&amp;&amp;(n.AccessLevel.toUpperCase()===CnnXt.Common.DigitalAccessLevels.Premium&amp;&amp;t.resolve(),n.AccessLevel.toUpperCase()===CnnXt.Common.DigitalAccessLevels.Upgrade&amp;&amp;t.reject({needUpgrade:!0}),n.AccessLevel.toUpperCase()===CnnXt.Common.DigitalAccessLevels.Purchase&amp;&amp;t.reject({needPurchase:!0}));__.isObject(n.AccessLevel)&amp;&amp;(n.AccessLevel.IsPremium&amp;&amp;t.resolve(),n.AccessLevel.IsUpgrade&amp;&amp;t.reject({needUpgrade:!0}),n.AccessLevel.IsPurchase&amp;&amp;t.reject({needPurchase:!0}))}t.reject()},onNull:function(){t.reject()},onError:function(n){t.reject({ErrorMessage:n.ErrorMessage})}}),t.promise()},ri=function(i,u,s){e=!1;r=f.Success;s&amp;&amp;y();n(".connext-actflow-close-wrapper .closebtn").attr("data-mg2-action","connextRun");n(t.SubSteps.ActivationProgress).hide();n(t.SubSteps.ActivateForm).hide();n(t.Steps.Activate).show();n(t.Steps.Authenticate).hide();n(t.SubSteps.SuccessActivation).show();var h={closeEvent:o.MoveToSuccess,activateStatus:"success"};CnnXt.Event.fire("onActivationLinkStepClosed",CnnXt.PublicObjectsMapper.Map(h,"OnActivationModalEventData"));CnnXt.Event.fire("onActivationLinkSuccessStepShown",{ActivateBy:u});a!="MG2"&amp;&amp;CnnXt.Storage.SetUserData(null);CnnXt.Storage.SetUserState(null)},w=function(i,u,e,s){var h,c,l,a,v,p;r=f.Fail;e&amp;&amp;y();n(t.SubSteps.ActivationProgress).hide();n(t.SubSteps.ActivateForm).hide();n(t.Steps.Activate).show();n(t.Steps.Authenticate).hide();n(t.SubSteps.FailActivation).show();h=k.linkingFailed;s&amp;&amp;s.needUpgrade?h=k.digitalAccessNeedUpgrade:s&amp;&amp;s.needPurchase?h=k.digitalAccessNeedPurchase:s&amp;&amp;s.ErrorMessage?h=s.ErrorMessage:__.isString(i)&amp;&amp;(h=i);n(t.SubSteps.FailActivation).find('[data-connext-role="linkingErrorMessage"] span').html(h);s&amp;&amp;s.needUpgrade&amp;&amp;(c=n(t.SubSteps.UpgradeLink).find('[data-connext-link="Upgrade"]').attr("href"),l=n(t.SubSteps.FailActivation).find('[data-connext-link="Upgrade"]'),l.attr("href",c));s&amp;&amp;s.needPurchase&amp;&amp;(a=n(t.SubSteps.SubscribeLink).find('[data-connext-link="Subscribe"]').attr("href"),v=n(t.SubSteps.FailActivation).find('[data-connext-link="Subscribe"]'),v.attr("href",a));r=f.Fail;p={closeEvent:o.MoveToFail,activateStatus:"error"};CnnXt.Event.fire("onActivationLinkStepClosed",CnnXt.PublicObjectsMapper.Map(p,"OnActivationModalEventData"));CnnXt.Event.fire("onActivationLinkErrorStepShown",{ActivateBy:u})},g=function(t,i){var r=n(t);if(r.length==0)return!1;i?(r.find("p").length&gt;0?r.find("p").text(i):r.text(i),r.show()):r.hide()},ui=function(){a!="MG2"&amp;&amp;CnnXt.Storage.SetUserData(null);CnnXt.Storage.SetUserState(null);CnnXt.IsRunning()&amp;&amp;CnnXt.Run({RunReason:CnnXt.Common.RunReasons.ActivationSuccess})},fi={MG2:y,Auth0:yt,Janrain:vt},ei=function(){if(!tt){tt=!0;n("body").off("click",t.Buttons.BackStep,lt).on("click",t.Buttons.BackStep,lt);n("body").off("click",t.AuthSystems.Auth0,b).on("click",t.AuthSystems.Auth0,b);n("body").off("click",t.AuthSystems.Janrain,b).on("click",t.AuthSystems.Janrain,b);n("body").off("click",t.Buttons.ConnextRun,at).on("click",t.Buttons.ConnextRun,at);n("body").off("click",t.Run,ct).on("click",t.Run,ct)}};return{init:function(t){l=t;ei();c=CnnXt.Common.USER_STATES;i=n(l.ActivationFormHtml);a=CnnXt.Common.RegistrationTypes[CnnXt.Storage.GetLocalConfiguration().Site.RegistrationTypeId];CnnXt.Logger.debug(u,"Initializing Activation Module...");nt=!0;v()},Run:function(n){l.IsActivationOnly||!CnnXt.IsRunning()?CnnXt.User.CheckAccess().always(function(){rt(n)}):rt(n)},Login:ot,Register:bt,Activate:dt,IsActivationFlowRunning:function(){return e},IsActivationFlowInitialized:function(){return nt}}},ConnextPublicObjectsMap=function(){var t="PublicObjectsMap",n={Int:{name:"Int",isTypeOf:function(n){return(typeof n).toLowerCase()=="number"&amp;&amp;n%1==0},tryParse:function(n){if(isNaN(n))throw"parse error";return parseInt(n)}},Float:{name:"Float",isTypeOf:function(n){return(typeof n).toLowerCase()=="number"&amp;&amp;n%1!=0},tryParse:function(n){if(isNaN(n))throw"parse error";return parseFloat(n)}},String:{name:"String",isTypeOf:function(n){return(typeof n).toLowerCase()=="string"},tryParse:function(t){if(t!==undefined&amp;&amp;t!==null){if(n.Int.isTypeOf(t)||n.Float.isTypeOf(t)||n.Bool.isTypeOf(t))return""+t;if(n.Array.isTypeOf(t))return t.join();if(n.DateTime.isTypeOf(t))return t.toString()}throw"parse error";}},Bool:{name:"Bool",isTypeOf:function(n){return(typeof n).toLowerCase().toLowerCase()=="boolean"},tryParse:function(t){if(t!==undefined&amp;&amp;t!==null){if(n.Int.isTypeOf(t)&amp;&amp;t===1||n.String.isTypeOf(t)&amp;&amp;t.toLowerCase()==="true")return!0;if(n.Int.isTypeOf(t)&amp;&amp;t===0||n.String.isTypeOf(t)&amp;&amp;t.toLowerCase()==="false")return!1}throw"parse error";}},Array:{name:"Array",isTypeOf:function(n){return n instanceof Array},tryParse:function(t){if(t&amp;&amp;n.String.isTypeOf(t)){var i=t.replace(/ *, */g,",").split(",");if(i&amp;&amp;i.join(",")===t.replace(/ *, */g,","))return i;throw"parse error";}}},DateTime:{name:"DateTime",isTypeOf:function(n){return n instanceof Date||window.moment&amp;&amp;n instanceof window.moment},tryParse:function(t){if(t!==null&amp;&amp;t!==undefined&amp;&amp;(n.String.isTypeOf(t)||n.Int.isTypeOf(t)||n.Float.isTypeOf(t)))return new Date(t);throw"parse error";}},Any:{name:"Any",isTypeOf:function(){return!0},tryParse:function(n){return n}}},r={ConnextOptions:{ownProperties:[{srcName:"attr",outName:"Attr",type:n.String},{srcName:"configCode",outName:"ConfigCode",type:n.String},{srcName:"currentMeterLevel",outName:"CurrentMeterLevelId",type:n.Int},{srcName:"debug",outName:"Debug",type:n.Bool},{srcName:"environment",outName:"Environment",type:n.String},{srcName:"IntegrateFlittz",outName:"IntegrateFlittz",type:n.Bool},{srcName:"settingsKey",outName:"SettingsKey",type:n.String},{srcName:"silentmode",outName:"Silentmode",type:n.Bool},{srcName:"siteCode",outName:"SiteCode",type:n.String},{srcName:"sessionId",outName:"SessionId",type:n.String}],nestedObjects:[{typeName:"ConfigurationSettings",srcName:"configSettings",outName:"ConfigSettings",isArray:!1}]},ConfigurationSettings:{ownProperties:[{srcName:"Code",outName:"Code",type:n.String},{srcName:"DefaultMeterLevel",outName:"DefaultMeterLevelId",type:n.Int},{srcName:"DefaultProduct",outName:"DefaultProduct",type:n.String},{srcName:"LastPublishDate",outName:"LastPublishDate",type:n.DateTime},{srcName:"Name",outName:"Name",type:n.String},{srcName:"ReturnUrl",outName:"ReturnUrl",type:n.String},{srcName:"UseActivationFlow",outName:"IsActivationOnlyConfig",type:n.Bool},{srcName:"UseParentDomain",outName:"UseParentDomain",type:n.Bool}],nestedObjects:[{typeName:"Site",srcName:"Site",outName:"Site",isArray:!1}]},Site:{ownProperties:[{srcName:"Active",outName:"Active",type:n.Bool},{srcName:"RegistrationTypeId",outName:"RegistrationTypeId",type:n.Int},{srcName:"SiteCode",outName:"SiteCode",type:n.String}],nestedObjects:[{typeName:"Client",srcName:"Client",outName:"Client",isArray:!1}]},Client:{ownProperties:[{srcName:"Active",outName:"Active",type:n.Bool},{srcName:"Code",outName:"Code",type:n.String},{srcName:"Name",outName:"Name",type:n.String}]},Configuration:{nestedObjects:[{typeName:"Campaign",srcName:"Campaign",outName:"Campaign",isArray:!1},{typeName:"DynamicMeter",srcName:"DynamicMeter",outName:"DynamicMeter",isArray:!1},{typeName:"ConfigurationSettings",srcName:"Settings",outName:"Settings",isArray:!1},{typeName:"Site",srcName:"Site",outName:"Site",isArray:!1},{typeName:"WhitelistSets",srcName:"WhitelistSets",outName:"AllowedIPlistSets",isArray:!0}]},WhitelistSets:{ownProperties:[{srcName:"Active",outName:"Active",type:n.Bool},{srcName:"CodesAreNotRequired",outName:"CodesAreNotRequired",type:n.Bool},{srcName:"Name",outName:"Name",type:n.String}]},DynamicMeter:{ownProperties:[{srcName:"Active",outName:"Active",type:n.Bool},{srcName:"Description",outName:"Description",type:n.String},{srcName:"Name",outName:"Name",type:n.String}],nestedObjects:[{typeName:"Rule",srcName:"Rules",outName:"Rules",isArray:!0}]},Rule:{ownProperties:[{srcName:"Name",outName:"Name",type:n.String},{srcName:"Description",outName:"Description",type:n.String},{srcName:"MeterLevelId",outName:"MeterLevelId",type:n.Int},{srcName:"Priority",outName:"Priority",type:n.Int}],nestedObjects:[{typeName:"Segment",srcName:"Segments",outName:"Segments",isArray:!0}]},Segment:{ownProperties:[{srcName:"SegmentType",outName:"SegmentType",type:n.String}]},Campaign:{ownProperties:[{srcName:"Name",outName:"Name",type:n.String}],nestedObjects:[{typeName:"ConversationsByMeterLevel",srcName:"Conversations",outName:"Conversations",isArray:!1}]},ConversationsByMeterLevel:{nestedObjects:[{typeName:"Conversation",srcName:"Free",outName:"Free",isArray:!0},{typeName:"Conversation",srcName:"Metered",outName:"Metered",isArray:!0},{typeName:"Conversation",srcName:"Premium",outName:"Premium",isArray:!0}]},CurrentConversationsByMeterLevel:{nestedObjects:[{typeName:"Conversation",srcName:"Free",outName:"Free",isArray:!1},{typeName:"Conversation",srcName:"Metered",outName:"Metered",isArray:!1},{typeName:"Conversation",srcName:"Premium",outName:"Premium",isArray:!1}]},Conversation:{ownProperties:[{srcName:"MeterLevelId",outName:"MeterLevelId",type:n.Int},{srcName:"Name",outName:"Name",type:n.String},{srcName:"Order",outName:"Order",type:n.Int}],nestedObjects:[{typeName:"Action",srcName:"Actions",outName:"Actions",isArray:!0},{typeName:"ConversationProperties",srcName:"Props",outName:"Props",isArray:!1}]},ConversationProperties:{ownProperties:[{srcName:"isExpired",outName:"IsExpired",type:n.Bool},{srcName:"paywallLimit",outName:"PaywallLimit",type:n.Int},{srcName:"views",outName:"Views",type:n.Int},{srcName:"ArticleLeft",outName:"ArticleLeft",type:n.Any},{srcName:"ViewMethod",outName:"ViewMethod",type:n.String}],nestedObjects:[{typeName:"ConversationExpirationDate",srcName:"Date",outName:"Date",isArray:!1},{typeName:"ConversationPaywallInfo",srcName:"PaywallInfo",outName:"PaywallInfo",isArray:!1}]},ConversationPaywallInfo:{nestedObjects:[{typeName:"ConvoAndMeterData",srcName:"ArticleLeft",outName:"ArticleLeft",isArray:!1},{typeName:"ConvoAndMeterData",srcName:"Limit",outName:"Limit",isArray:!1}]},ConvoAndMeterData:{ownProperties:[{srcName:"Conversation",outName:"Conversation",type:n.Any},{srcName:"Meter",outName:"Meter",type:n.Any}]},ConversationExpirationDate:{ownProperties:[{srcName:"ended",outName:"Ended",type:n.DateTime},{srcName:"expiration",outName:"Expiration",type:n.DateTime},{srcName:"started",outName:"Started",type:n.DateTime}]},EventInfo:{ownProperties:[{srcName:"Id",outName:"Id",type:n.String},{srcName:"Date",outName:"Date",type:n.String},{srcName:"TimeStamp",outName:"TimeStamp",type:n.Float},{srcName:"SessionId",outName:"SessionId",type:n.String}]},Action:{ownProperties:[{srcName:"Name",outName:"Name",type:n.String},{srcName:"Description",outName:"Description",type:n.String},{srcName:"ActionTypeId",outName:"ActionTypeId",type:n.Int},{srcName:"Order",outName:"Order",type:n.Int}]},UserData:{ownProperties:[{srcName:"AuthSystem",outName:"AuthSystem",type:n.String},{srcName:"MasterId",outName:"MasterId",type:n.String},{srcName:"UserToken",outName:"UserToken",type:n.String},{srcName:"IgmRegID",outName:"IgmRegID",type:n.String}],nestedObjects:[{typeName:"DigitalAccess",srcName:"DigitalAccess",outName:"DigitalAccess",isArray:!1},{typeName:"OwnedSubscription",srcName:"Subscriptions",outName:"Subscriptions",isArray:!1}]},DigitalAccess:{ownProperties:[{srcName:"IsAuthorized",outName:"IsAuthorized",type:n.Bool},{srcName:"Success",outName:"Success",type:n.Bool},{srcName:"eEditionUrl",outName:"EEditionUrl",type:n.String}],nestedObjects:[{typeName:"AccessLevel",srcName:"AccessLevel",outName:"AccessLevel",isArray:!1},{typeName:"DigitalAccessErrors",srcName:"Errors",outName:"Errors",isArray:!1},{typeName:"DigitalAccessSubscription",srcName:"Subscription",outName:"Subscription",isArray:!1}]},AccessLevel:{ownProperties:[{srcName:"IsPremium",outName:"IsPremium",type:n.Bool},{srcName:"IsPurchase",outName:"IsPurchase",type:n.Bool},{srcName:"IsUpgrade",outName:"IsUpgrade",type:n.Bool}]},DigitalAccessErrors:{ownProperties:[{srcName:"Message",outName:"Message",type:n.String}]},DigitalAccessSubscription:{ownProperties:[{srcName:"AccountNumber",outName:"AccountNumber",type:n.String},{srcName:"StartDate",outName:"StartDate",type:n.DateTime},{srcName:"DateStop",outName:"DateStop",type:n.DateTime},{srcName:"PaperCode",outName:"PaperCode",type:n.String},{srcName:"HouseHoldSubscriptionLevel",outName:"HouseHoldSubscriptionLevel",type:n.Int},{srcName:"FirstName",outName:"FirstName",type:n.String},{srcName:"LastName",outName:"LastName",type:n.String}]},OwnedSubscription:{nestedObjects:[{typeName:"Subscription",srcName:"OwnedSubscriptions",outName:"OwnedSubscriptions",isArray:!0}]},Subscription:{ownProperties:[{srcName:"AccountNumber",outName:"AccountNumber",type:n.String},{srcName:"PaperCode",outName:"PaperCode",type:n.String},{srcName:"HouseholdSubscriptionLevel",outName:"HouseHoldSubscriptionLevel",type:n.Int},{srcName:"FirstName",outName:"FirstName",type:n.String},{srcName:"LastName",outName:"LastName",type:n.String}]},JanrainUser:{ownProperties:[{srcName:"email",outName:"Email",type:n.String},{srcName:"displayName",outName:"DisplayName",type:n.String},{srcName:"uuid",outName:"Uuid",type:n.String}]},EventResult:{ownProperties:[{srcName:"aui",outName:"Aui",type:n.String},{srcName:"AuthSystem",outName:"AuthSystem",type:n.String},{srcName:"AuthProfile",outName:"AuthProfile",type:n.Any},{srcName:"CampaignName",outName:"CampaignName",type:n.String},{srcName:"CampaignId",outName:"CampaignId",type:n.Int},{srcName:"MeterLevel",outName:"MeterLevel",type:n.String},{srcName:"MeterLevelId",outName:"MeterLevelId",type:n.Int},{srcName:"MeterLevelMethod",outName:"MeterLevelMethod",type:n.String},{srcName:"EventData",outName:"EventData",type:n.Any},{srcName:"EventName",outName:"EventName",type:n.String}],nestedObjects:[{typeName:"UserData",srcName:"MG2AccountData",outName:"MG2AccountData",isArray:!1},{typeName:"Configuration",srcName:"Config",outName:"Config",isArray:!1},{typeName:"Action",srcName:"Action",outName:"Action",isArray:!1},{typeName:"Conversation",srcName:"Conversation",outName:"Conversation",isArray:!1},{typeName:"UserData",srcName:"MG2AccountData",outName:"Mg2AccountData",isArray:!1},{typeName:"EventInfo",srcName:"EventInfo",outName:"EventInfo",isArray:!1}]},OnButtonClickEventData:{ownProperties:[{srcName:"ActionId",outName:"ActionId",type:n.Int},{srcName:"CloseEvent",outName:"CloseEvent",type:n.String},{srcName:"ButtonHTML",outName:"ButtonHTML",type:n.String},{srcName:"UserDefinedDataAttr",outName:"UserDefinedDataAttr",type:n.String},{srcName:"ZipCodes",outName:"ZipCodes",type:n.Array},{srcName:"ArticlesLeft",outName:"ArticlesLeft",type:n.Any},{srcName:"ArticlesViewed",outName:"ArticlesViewed",type:n.Int}]},OnActionEventData:{ownProperties:[{srcName:"id",outName:"Id",type:n.Int},{srcName:"Name",outName:"Name",type:n.String},{srcName:"Description",outName:"Description",type:n.String},{srcName:"ActionTypeId",outName:"ActionTypeId",type:n.Int},{srcName:"Order",outName:"Order",type:n.Int},{srcName:"UserDefinedData",outName:"UserDefinedData",type:n.String},{srcName:"ZipCodes",outName:"ZipCodes",type:n.Array},{srcName:"ArticlesLeft",outName:"ArticlesLeft",type:n.Any},{srcName:"ArticlesViewed",outName:"ArticlesViewed",type:n.Int},{srcName:"closeEvent",outName:"CloseEvent",type:n.String}]},OnActivationModalEventData:{ownProperties:[{srcName:"closeEvent",outName:"CloseEvent",type:n.String},{srcName:"activateStatus",outName:"ActivateStatus",type:n.String}]},OnMeterLevelSetEventData:{ownProperties:[{srcName:"method",outName:"Method",type:n.String},{srcName:"level",outName:"Level",type:n.Int}],nestedObjects:[{typeName:"Rule",srcName:"rule",outName:"Rule",isArray:!1}]},OnLoginSuccessEventData:{ownProperties:[{srcName:"AuthProfile",outName:"AuthProfile",type:n.Any},{srcName:"AuthSystem",outName:"AuthSystem",type:n.String}],nestedObjects:[{typeName:"UserData",srcName:"MG2AccountData",outName:"MG2AccountData",isArray:!1}]},onConversationExpiredEventData:{ownProperties:[{srcName:"Reason",outName:"Reason",type:n.String}],nestedObjects:[{typeName:"Conversation",srcName:"NextConversation",outName:"NextConversation",isArray:!1},{typeName:"Conversation",srcName:"Conversation",outName:"Conversation",isArray:!1}]},OnRunEventData:{ownProperties:[{srcName:"RunReason",outName:"RunReason",type:n.String}]},OnNewsletterEventData:{ownProperties:[{srcName:"email",outName:"Email",type:n.String},{srcName:"id",outName:"EmailPreferenceId",type:n.String}]}},i=function(n,u){var e="map",o,f;try{return!u||u==""||!r[u]?(CnnXt.Logger.debug(t,e,"Unknown type name: "+u),null):n?(o=r[u],f={},o.ownProperties&amp;&amp;o.ownProperties.forEach(function(i){if(n.hasOwnProperty([i.srcName])&amp;&amp;n[i.srcName]!==undefined)if(n[i.srcName]===null||i.type.isTypeOf(n[i.srcName]))f[i.outName]=n[i.srcName];else{CnnXt.Logger.debug(t,e,i.srcName+" is not type of "+i.type.name+". Trying to map",n);try{f[i.outName]=i.type.tryParse(n[i.srcName])}catch(r){CnnXt.Logger.warn(t,e,"error parsing "+i.srcName+" to type "+i.type.name,n)}}else CnnXt.Logger.collect(t,e,"srcObject doesn't contain mapped property: "+i.srcName,n),f[i.outName]=null}),o.nestedObjects&amp;&amp;o.nestedObjects.forEach(function(r){n.hasOwnProperty(r.srcName)&amp;&amp;n[r.srcName]!==undefined?n[r.srcName]!==null?r.isArray?(f[r.outName]=[],n[r.srcName].forEach(function(n){f[r.outName].push(i(n,r.typeName))})):f[r.outName]=i(n[r.srcName],r.typeName):f[r.outName]=null:(CnnXt.Logger.collect(t,e,"srcObject doesn't contain nested object: "+r.srcName,n),f[r.outName]=null)}),f):(CnnXt.Logger.debug(t,e,"srcObject is undefined or null"),null)}catch(s){CnnXt.Logger.exception(t,e,s,n)}};return{init:function(){},Map:i}},CnnXt=function(n){var g="1.17",s=null,t="Core",l={},u=!1,nt="System",i,a={debug:!1,silentmode:!1,integrateFlittz:!1,environment:"prod",settingsKey:null,configSettings:{EnforceUniqueArticles:!1},resourceUrl:"https://prodmg2.blob.core.windows.net/connext/prod/",apiUrl:"https://prod-tampabay-proxy-connext.azurewebsites.net/",clientCode:"",appInsightsKey:"1819964f-57a2-45c2-b878-c270d7e5d1d9",authSettings:null,loadType:"ajax",BatchCount:5,ViewsUpdateFromServerPeriod:24,ConversationPromiseTimeout:5e3,ActionPromiseTimeout:5e3,DynamicMeterPromiseTimeout:5e3},h=!1,v=!1,r,e,f=!1,y=5e3,o=!1,p=function(r){try{var f="init";if(!window.jQuery)throw CnnXt.Common.ERROR.NO_JQUERY;i=n.extend(!0,a,r);CnnXt.Logger.setDebug(i.debug);CnnXt.API.init(i);CnnXt.PublicObjectsMapper.init();CnnXt.Storage.init();CnnXt.Event.init(i);CnnXt.ADBlockDetector.init();CnnXt.Logger.debug(t,"Initializing ConneXt...");i.configCode=i.configCode.toUpperCase();h?(CnnXt.Logger.debug(f,"Connext has already initialized, cancel initializing"),CnnXt.Run({RunReason:CnnXt.Common.RunReasons.RepeatedInit})):(l.PluginStartTime=new Date,ut(ft),h=!0)}catch(u){u.custom?CnnXt.Logger.warn(u.message):CnnXt.Logger.exception(t,f,u)}},tt=function(r){var e="closeAllTemplates",u,f;CnnXt.Logger.debug(t,e,"Close all ConneXt Templates");n(".Mg2-connext.paywall.flittz:visible").length&gt;0&amp;&amp;i.integrateFlittz&amp;&amp;CnnXt.Event.fire("onFlittzPaywallClosed",null);n(".Mg2-connext[data-display-type=inline]").remove();n(".Mg2-connext[data-display-type=info-box]").remove();n(".Mg2-connext[data-display-type=mg2bn]").remove();u=n(".Mg2-connext.modal:visible");f=u.length;u.length&gt;0?u.each(function(t,i){n(i).on("hidden.bs.modal",function(){n(this).off("hidden.bs.modal");f--;__.isFunction(r)&amp;&amp;f===0&amp;&amp;r()});n(i).connextmodal("hide")}):__.isFunction(r)&amp;&amp;r();CnnXt.Logger.debug(t,e,"All ConneXt Templates have been closed.")},it=function(){CnnXt.Logger.debug(t,"IntegrateProduct","Show the article content");n(".blurry-text").removeClass("blurry-text");n(".trimmed-text").removeClass("trimmed-text");CnnXt.Action.IntegrateProduct()},rt=function(n,t){CnnXt.Storage.SetGeolocationInfo(n);n.ipAddress&amp;&amp;CnnXt.Utils.SetIP(n.ipAddress);n.zipCode?CnnXt.Storage.SetCalculatedZipCode(n.zipCode):CnnXt.Storage.SetCalculatedZipCode("00000");__.isFunction(t)&amp;&amp;t()},ut=function(i){var r="getZipCode",u;CnnXt.Logger.debug(t,r,"Getting a zip code");try{u=n.jStorage.get(CnnXt.Common.StorageKeys.customZip);u?(CnnXt.Logger.debug(t,r,"We have zip code in the local storage",u),__.isFunction(i)&amp;&amp;i()):(CnnXt.Logger.debug(t,r,"Calculate a zip code by IP"),n.ajax({url:CnnXt.Common.IPInfo,type:"GET",success:function(n){rt(n,i)},error:function(){LOGGER.debug(t,r,"Geolocation call failed. We set zipcode by default as 00000");CnnXt.Storage.SetCalculatedZipCode("00000");__.isFunction(i)&amp;&amp;i()}}))}catch(f){CnnXt.Logger.exception(t,r,"We set zipcode by default as 00000",f);CnnXt.Storage.SetCalculatedZipCode("00000");__.isFunction(i)&amp;&amp;i()}},ft=function(){var r="checkRequirements",u;CnnXt.Logger.debug(t,r,"Checking requirements...",i);try{if(!i.siteCode)throw CnnXt.Common.ERROR.NO_SITE_CODE;if(!i.configCode)throw CnnXt.Common.ERROR.NO_CONFIG_CODE;if(i.integrateFlittz&amp;&amp;(i.silentmode=!0),i.runSettings&amp;&amp;(CnnXt.Logger.debug(t,r,"Run settings have been found",i.runSettings),i.silentmode=!0,CnnXt.Logger.debug(t,r,"If we have run settings - we set up silent mode in true",i),i.runSettings.runPromise&amp;&amp;__.isFunction(i.runSettings.runPromise.then)?(i.runSettings.hasValidPromise=!0,__.isFunction(i.runSettings.onRunPromiseResolved)||(i.runSettings.onRunPromiseResolved=n.noop),__.isFunction(i.runSettings.onRunPromiseRejected)||(i.runSettings.onRunPromiseRejected=n.noop)):(i.runSettings.hasValidPromise=!1,CnnXt.Logger.debug(t,r,"No or invalid promise object in the 'runSettings'")),__.isNumber(i.runSettings.runOffset)||(CnnXt.Logger.debug(t,r,"We have not run offset, so we set the 'runSettings.runOffset' by default",y),i.runSettings.runOffset=y)),i.clientCode!=null&amp;&amp;i.clientCode!==""&amp;&amp;i.apiUrl!=null&amp;&amp;(i.apiUrl=i.apiUrl.replace(/\[clientCode\]/gi,i.clientCode)),CnnXt.Utils.init(),u=CnnXt.Utils.GetUserMeta().deviceType,CnnXt.Logger.debug(t,r,"Device type is",u),u=="Mobile"?n("body").addClass("mobile"):u=="Tablet"&amp;&amp;n("body").addClass("tablet"),CnnXt.Utils.GetUserMeta().OS=="IOS"&amp;&amp;n("body").addClass("ios-fix-body-styles"),i.loadType=="ajax"&amp;&amp;(n("body").find(".mg2-Connext").remove(),n("body").find(".debug_details").remove()),i.debug){CnnXt.Logger.debug(t,r,"We are working in the debug mode");CnnXt.Utils.CreateDebugDetailPanel();CnnXt.Logger.debug(t,r,"Override the options on custom");var e=CnnXt.Storage.GetSiteCode(),o=CnnXt.Storage.GetConfigCode(),s=CnnXt.Storage.GetIsCustomConfiguration();n("#ConnextSiteCode").val(e);n("#ConnextConfigCode").val(o);n("#ConnextCustomConfiguration").prop("checked",s);s&amp;&amp;!v&amp;&amp;(i.siteCode=e,i.configCode=o)}w();i.runSettings&amp;&amp;ot();i.publicEventHandlers&amp;&amp;vt(i.publicEventHandlers)}catch(f){f.custom?CnnXt.Logger.warn(f.message):CnnXt.Logger.exception(t,r,"The settings exception",f)}},et=function(r){CnnXt.Logger.debug(t,"reInit","First init: ",!u);v=!0;CnnXt.CloseTemplates(function(){if(CnnXt.IntegrateProduct(),r)h=!1,u=!1,CnnXt.Storage.ClearUser(),window.localStorage.jStorage="",CnnXt.Storage.ResetConversationViews(),i=n.extend(!0,i,r),p(i);else if(u){var t=CnnXt.Storage.GetLocalConfiguration();t.Settings.Site||(t.Settings.Site=t.Site);c(t)}else w()})},w=function(){var n="setDefaults",u,r;CnnXt.Logger.debug(t,n,"Setup environment and main modules");try{if(__.contains(CnnXt.Common.Environments,i.environment)||(i.environment=a.environment),window.Fprinting)Fprinting().init().done(function(r){CnnXt.Logger.debug(t,n,"Fprinting is done",r);i.deviceId=r}).always(function(){try{var r=CnnXt.Storage.GetUserData()?CnnXt.Storage.GetUserData().MasterId?CnnXt.Storage.GetUserData().MasterId:CnnXt.Storage.GetUserData().IgmRegID:null;CnnXt.AppInsights.init(i.deviceId,r)}catch(u){CnnXt.AppInsights.init();CnnXt.Logger.exception(t,n,u)}b();CnnXt.Utils.HangleMatherTool()});else{CnnXt.Storage.GetGuid()?i.deviceId=CnnXt.Storage.GetGuid():(i.deviceId=CnnXt.Utils.GenerateGuid(),CnnXt.Storage.SetGuid(i.deviceId));try{u=CnnXt.Storage.GetUserData()?CnnXt.Storage.GetUserData().MasterId?CnnXt.Storage.GetUserData().MasterId:CnnXt.Storage.GetUserData().IgmRegID:null;CnnXt.AppInsights.init(i.deviceId,u)}catch(f){CnnXt.AppInsights.init();CnnXt.Logger.exception(t,n,f)}b();CnnXt.Utils.HangleMatherTool()}r={ga:!1,gtm:!1,g2i:!1};window.G2Insights&amp;&amp;(r.g2i=!0);window.ga&amp;&amp;(r.ga=!0);window.google_tag_manager&amp;&amp;(r.gtm=!0);CnnXt.Event.fire("onInit",r)}catch(e){CnnXt.Logger.exception(t,n,e)}},ot=function(){var n="setupRunSettings";CnnXt.Logger.debug(t,n,"Setup run settings",i.runSettings);try{i.runSettings.hasValidPromise&amp;&amp;(CnnXt.Logger.debug(t,n,"Setup run settings promise"),i.runSettings.runPromise.then(function(r){if(!f){i.runSettings.onRunPromiseResolved(r);CnnXt.Run({RunReason:CnnXt.Common.RunReasons.RunSettingsPromise})}clearTimeout(e);CnnXt.Logger.debug(t,n,"Promise has been resolved",r)},function(r){if(!f){i.runSettings.onRunPromiseRejected(r);CnnXt.Run({RunReason:CnnXt.Common.RunReasons.RunSettingsPromise})}clearTimeout(e);CnnXt.Logger.debug(t,n,"Promise has been rejected",r)}),CnnXt.Logger.debug(t,n,"Promise has been setup",i.runSettings));CnnXt.Logger.debug(t,n,"Setup run settings timeout");e=setTimeout(function(){f||CnnXt.Run({RunReason:CnnXt.Common.RunReasons.RunSettingsTimeout});CnnXt.Logger.debug(t,n,"Timeout has been expired")},i.runSettings.runOffset)}catch(r){CnnXt.Logger.exception(t,n,"Setup run settings",r)}},b=function(){var u="defineConfiguration";CnnXt.Logger.debug(t,u,"Defining ConneXt configuration...");CnnXt.API.GetLastPublishDateS3().done(function(f){try{r=JSON.parse(f);r=CnnXt.Utils.ConvertObjectKeysToUpperCase(r);CnnXt.Logger.debug(t,u,"S3_DATA is parsed",r)}catch(e){CnnXt.Logger.exception(t,u,"S3_DATA Parse",e)}r[i.configCode]?(CnnXt.Logger.debug(t,u,"Configuration code is found in the publish file"),st().done(function(r){try{o=!0;r?(CnnXt.Logger.debug(t,u,"CONFIGURATION WAS FOUND",r),r.Settings=n.extend(!0,i.configSettings,r.Settings),r.Settings.Site=r.Site,s=r,CnnXt.Storage.SetLocalConfiguration(s),at(r),CnnXt.Event.fire("onDebugNote","Init is done!"),!i.silentmode||r.Settings.UseActivationFlow?c(r):CnnXt.Logger.debug(t,u,"ConneXt was ranned in the silent mode, so we stop a process here")):(CnnXt.Logger.warn("No Config Settings Found"),CnnXt.Event.fire("onDebugNote","No Config Settings Found."))}catch(f){CnnXt.Logger.exception(t,u,f)}}).fail(function(){o=!0;CnnXt.Logger.warn("Error getting Config Settings. No Config Settings Found");CnnXt.Event.fire("onDebugNote","Error getting Config Settings. No Config Settings Found")})):(o=!0,CnnXt.Logger.warn("Configuration code is not found in the publish file"),CnnXt.Event.fire("onDebugNote","Configuration code is not found in the publish file."))})},st=function(){var u="getConfiguration",h,c;CnnXt.Logger.debug(t,u,"Getting configuration...");try{var f=n.Deferred(),e=CnnXt.Storage.GetLocalConfiguration(),o=new Date;if(o.setMonth(o.getMonth()+1),o=new Date(o),e){CnnXt.Logger.debug(t,u,"Found Local Configuration",e);CnnXt.API.meta.config.isExistsInLocalStorage=!0;var s=CnnXt.Storage.GetLastPublishDate(),a=CnnXt.Utils.ParseCustomDate(n.jStorage.get("CustomTime")),v=new Date(s);CnnXt.API.meta.config.localPublishDate=s;h=r[i.configCode];c=kt(r,e.Settings.LastPublishDate);c?(CnnXt.API.meta.reason=CnnXt.Common.DownloadConfigReasons.oldConfig,CnnXt.Logger.debug(t,u,"Stored configuration is old",e),CnnXt.Event.fire("onDebugNote","Current config is old."),k(h).done(function(n){CnnXt.Logger.debug(t,u,"A new configuration from server",n);CnnXt.Utils.MergeConfiguration(n);ht(n);CnnXt.Storage.SetLastPublishDate(n.Settings.LastPublishDate,o);f.resolve(n)}).fail(function(n){CnnXt.Logger.debug(t,u,"getConfigurationFromServer",n);f.reject(n)})):(CnnXt.Storage.SetLastPublishDate(e.Settings.LastPublishDate,o),CnnXt.Logger.debug(t,u,"Stored configuration is not old",e),f.resolve(e))}else CnnXt.API.meta.config.isExistsInLocalStorage=!1,CnnXt.API.meta.reason=CnnXt.Common.DownloadConfigReasons.noLocalConfig,k(r[i.configCode]).done(function(n){CnnXt.Logger.debug(t,u,"A new configuration from server",n);ct(n,o);f.resolve(n)}).fail(function(n){CnnXt.Logger.debug(t,u,"getConfigurationFromServer",n);f.reject(n)})}catch(l){CnnXt.Logger.exception(t,u,l);f.reject(l)}return f.promise()},ht=function(t){var f=r[i.configCode],e=f.Reset,u;__.isObject(f)&amp;&amp;((f.ResetArticleViews||e)&amp;&amp;f.Date!==CnnXt.Storage.GetLastPublishDate()&amp;&amp;CnnXt.Storage.ResetConversationViews(null,t.Settings.UseParentDomain),(f.ResetAllowIpList||e)&amp;&amp;(CnnXt.Storage.RemoveWhitelistSetIdCookie(),CnnXt.Storage.RemoveWhitelistInfoboxCookie(),CnnXt.Storage.RemoveNeedHidePinTemplateCookie(),CnnXt.Storage.ResetPinAttemptsCookie()),(f.ResetCurrentConversation||e)&amp;&amp;(t.Settings.UseActivationFlow||(u=[],t.Campaign.Conversations.Free&amp;&amp;t.Campaign.Conversations.Free.length&gt;0&amp;&amp;(u=u.concat(t.Campaign.Conversations.Free)),t.Campaign.Conversations.Metered&amp;&amp;t.Campaign.Conversations.Metered.length&gt;0&amp;&amp;(u=u.concat(t.Campaign.Conversations.Metered)),t.Campaign.Conversations.Premium&amp;&amp;t.Campaign.Conversations.Premium.length&gt;0&amp;&amp;(u=u.concat(t.Campaign.Conversations.Premium)),n.each(u,function(n,t){CnnXt.Storage.SetConversationStartDate(t,null)})),CnnXt.Storage.SetCurrentConversations(null),CnnXt.Storage.SetCurrentConversation(null)),(f.ResetRepeatable||e)&amp;&amp;(CnnXt.Storage.RemoveTimeRepeatableActionData(),CnnXt.Storage.RemoveRepeatablesInConv()))},ct=function(i,r){var u="storeConfigurationFromServer";CnnXt.Logger.debug(t,u,"Get configuration from server",arguments);try{n.jStorage.deleteKey(CnnXt.Common.StorageKeys.conversations.current);lt(i);CnnXt.Storage.SetLocalConfiguration(i);CnnXt.Storage.SetLastPublishDate(i.Settings.LastPublishDate,r)}catch(f){CnnXt.Logger.exception(t,u,f)}},lt=function(i){var r=CnnXt.Storage.GetRegistrationType();r&amp;&amp;r.Id&amp;&amp;r.IsOverride?(CnnXt.Logger.debug(t,"overrideRegistrationType","Override registration type on",r),i.Site.RegistrationTypeId=r.Id):(n("#OverrideAuthType").prop("checked",!1),n("#selAuthType").val(i.Site.RegistrationTypeId))},at=function(n){var i="initActivationFlow",u,r;CnnXt.Logger.debug(t,i,arguments);try{n.Settings.Active?(CnnXt.Logger.debug(t,i,"Configuration is active"),CnnXt.User.init(n.Settings),n.Settings.UseActivationFlow?(u={ActivationFormName:n.Settings.ActivationTemplate.Name,ActivationFormHtml:n.Settings.ActivationTemplate.Html,IsActivationOnly:!0},CnnXt.Activation.init(u)):(r=null,n.Settings.ActivationTemplate?(r={ActivationFormName:n.Settings.ActivationTemplate.Name,ActivationFormHtml:n.Settings.ActivationTemplate.Html,IsActivationOnly:!1},CnnXt.Logger.debug(t,i,"Proccess activation flow from configuration","default",r)):CnnXt.Logger.debug(t,i,"No setting to proccess activation flow",null,n),r&amp;&amp;CnnXt.Activation.init(r))):(CnnXt.Logger.warn("Configuration is inactive"),CnnXt.Event.fire("onDebugNote","Configuration is inactive"))}catch(f){CnnXt.Logger.exception(t,i,f)}},vt=function(n){Object.keys(n).forEach(function(t){CnnXt.Utils.SubscribeOnEvent(t,n[t])})},c=function(n){var i="processConfiguration";CnnXt.Logger.debug(t,i,arguments);try{n.Settings.Active?(CnnXt.Logger.debug(t,i,"Configuration is active"),n.Settings.UseActivationFlow?(!u,pt(n)):(u||(CnnXt.CalculatorQualifiers.init(),CnnXt.Campaign.init(n.Settings),CnnXt.Action.init(n.Settings),CnnXt.Whitelist.init()),yt(n))):(CnnXt.Logger.warn("Configuration is inactive"),CnnXt.Event.fire("onDebugNote","Configuration is inactive"))}catch(r){CnnXt.Logger.exception(t,i,r)}},yt=function(n){var i="processUsualConfiguration";CnnXt.Logger.debug(t,i,"Processing usual configuration",arguments);try{u=!0;n||(n=s);l.StartProcessingTime=new Date;CnnXt.Event.fire("onDynamicMeterFound",n.DynamicMeter.Name);CnnXt.Event.fire("onCampaignFound",CnnXt.PublicObjectsMapper.Map(n.Campaign,"Campaign"));CnnXt.CookieMigration.init();CnnXt.CookieMigration.Migrate();CnnXt.Storage.CheckViewCookies().then(function(){CnnXt.User.CheckAccess().always(function(){CnnXt.Whitelist.CheckClientIP(n.WhitelistSets).then(function(){bt(n)});var r=CnnXt.User.GetAuthTiming();CnnXt.Logger.debug(t,i,"User.CheckAccess.Always","UserAuthTime",r)})})}catch(r){CnnXt.Logger.exception(t,i,r)}},pt=function(n){var r="processActivationOnlyConfiguration";CnnXt.Logger.debug(t,r,"Processing activation only configuration",n);try{(!i.silentmode||u)&amp;&amp;CnnXt.Activation.Run();u=!0}catch(f){CnnXt.Logger.exception(t,r,f)}},wt=function(){var o="processReturnUrlParams",r=n.Deferred(),u,f,i,e;try{if(u=CnnXt.Utils.GetQueryStringParams("returnStep").returnStep,u)if(f=CnnXt.Storage.GetUserState(),u.toLowerCase()==="activate"&amp;&amp;f!==CnnXt.Common.USER_STATES.Subscribed)if(i=CnnXt.Storage.GetCurrentConversation(),i&amp;&amp;i.Options&amp;&amp;i.Options.Activation&amp;&amp;i.Options.Activation.Activate&amp;&amp;(e=__.isArray(i.Options.Activation.Activate)?i.Options.Activation.Activate[0]:i.Options.Activation.Activate,CnnXt.Activation.init(e)),CnnXt.Activation.IsActivationFlowInitialized()){CnnXt.Activation.Run();n(document).on("onActivationFormClosed",function(){r.resolve()})}else r.resolve();else if(u.toLowerCase==="login"&amp;&amp;f===CnnXt.Common.USER_STATES.NotLoggedIn){CnnXt.User.OpenLoginModal();n(document).on("onLoginClosed onExternalLoginClosed",function(){r.resolve()})}else r.resolve();else r.resolve()}catch(s){CnnXt.Logger.exception(t,o,s);r.reject()}return r.promise()},bt=function(n){var u="connextContinueProcessing",r;CnnXt.Logger.debug(t,u,"Continue processing ConneXt...",n);wt().always(function(){CnnXt.CalculatorQualifiers.CalculateMeterLevel(n.DynamicMeter.Rules).done(function(n){r=n.MeterLevelId;CnnXt.Logger.debug(t,u,"Determined meter level",r,n);CnnXt.Event.fire("onMeterLevelSet",CnnXt.PublicObjectsMapper.Map({method:"Dynamic",level:r,rule:n},"OnMeterLevelSetEventData"))}).fail(function(){r=n.Settings.DefaultMeterLevel;CnnXt.Logger.debug(t,u,"Failed to determined Meter Level... using default",r);CnnXt.Event.fire("onMeterLevelSet",CnnXt.PublicObjectsMapper.Map({method:"Default",level:r,rule:null},"OnMeterLevelSetEventData"))}).always(function(){CnnXt.Logger.debug(t,u,"METER CALCULATION --- ALWAYS CALLED",r);i.currentMeterLevel=r;CnnXt.Campaign.ProcessCampaign(CnnXt.Common.MeterLevels[r],n.Campaign);dt()})})},k=function(r){var f="getConfigurationFromServer",u,e;CnnXt.Logger.debug(t,f,r);u=n.Deferred();e=r&amp;&amp;r.Date?encodeURIComponent(r.Date):undefined;try{CnnXt.API.GetConfiguration({location:nt,payload:{siteCode:i.siteCode,configCode:i.configCode,publishDate:e},onSuccess:function(n){var t=CnnXt.Utils.ProcessConfiguration(n);u.resolve(t)},onNull:function(){u.reject("Configuration is not found")},onError:function(n){CnnXt.Logger.debug(t,"Error getting configuration data",n);u.reject("Error getting configuration data")}})}catch(o){CnnXt.Logger.exception(t,f,o)}return u.promise()},kt=function(n,r){var f="isConfigurationOld",e,o,u,s;CnnXt.Logger.debug(t,f,"s3Data",n,"OPTIONS.configCode",i.configCode,"configurationLastPublishDate",r);try{if(__.isObject(n)){if(o=n[i.configCode.toUpperCase()],e=o&amp;&amp;o.Date?o.Date:o,e)return __.isObject(e)?(CnnXt.Logger.debug(t,f,".json file has a configCode property and its an object",e),u=new Date(Date.parse(e.Date)),CnnXt.API.meta.config.publisfDate=u,u.setSeconds(u.getSeconds()-10),s=new Date(Date.parse(r)),u&gt;s?(CnnXt.Logger.debug(t,f,"Server date is &lt;&lt; AFTER &gt;&gt;"),!0):(CnnXt.Logger.debug(t,f,"Server date is &lt;&lt; NOT AFTER &gt;&gt;"),!1)):(CnnXt.Logger.debug(t,f,".json file has a property same as this configCode",e),u=new Date(Date.parse(e)),u.setSeconds(u.getSeconds()-10),s=new Date(Date.parse(r)),u&gt;s?(CnnXt.Logger.debug(t,f,"Server date is &lt;&lt; AFTER &gt;&gt;"),!0):(CnnXt.Logger.debug(t,f,"Server date is &lt;&lt; NOT AFTER &gt;&gt;"),!1));CnnXt.API.meta.config.publisfDate=null;CnnXt.API.meta.config.ex="s3Data does not have the current configCode as a key "+i.configCode;CnnXt.API.meta.reason=CnnXt.Common.DownloadConfigReasons.noConfigCodeinPublish;throw CnnXt.Common.ERROR.CONFIG_HAS_NOT_PUBLISHED;}else{CnnXt.API.meta.config.publisfDate=null;CnnXt.API.meta.config.ex="s3Data is not an object";CnnXt.API.meta.reason=CnnXt.Common.DownloadConfigReasons.parsePublishFailed;throw CnnXt.Common.ERROR.S3DATA_IS_INVALID;}}catch(h){return h.custom?CnnXt.Logger.warn(h.message):CnnXt.Logger.exception(t,f,h),!0}},dt=function(){var t,n;!CnnXt.Storage.GetWhitelistSetIdCookie()&amp;&amp;(CnnXt.Campaign.GetCurrentConversationViewCount()&gt;1&amp;&amp;CnnXt.Campaign.GetCurrentConversationViewCount()%CnnXt.GetOptions().BatchCount==0||CnnXt.Storage.GetCurrentDynamicMeterViewCount()&gt;1&amp;&amp;CnnXt.Storage.GetCurrentDynamicMeterViewCount()%CnnXt.GetOptions().BatchCount==0)&amp;&amp;(t={UserId:CnnXt.GetOptions().deviceId,ConfigCode:CnnXt.GetOptions().configCode,SiteCode:CnnXt.GetOptions().siteCode,SettingsKey:CnnXt.GetOptions().settingsKey,ViewData:CnnXt.Storage.GetLocalViewData()},CnnXt.User.getMasterId()&amp;&amp;(n=CnnXt.User.getMasterId(),n=decodeURIComponent(n),t.masterId=n),CnnXt.API.SendViewData(t));CnnXt.Event.fire("onFinish",null)},d=function(){CnnXt.AppInsights.generateSessionId();o?(CnnXt.Action.ClearActionsSchedule(),CnnXt.CloseTemplates(function(){CnnXt.IntegrateProduct();f=!0;clearTimeout(e);var n=CnnXt.Storage.GetLocalConfiguration();n?c(n):CnnXt.Logger.warn(t,"Run","configuration is not found!!")})):(CnnXt.Logger.debug(t,"Run","Connext is not initialized yet, wait 100ms"),setTimeout(d,100))};return{init:function(n){return p(n),Connext={DisplayName:CnnXt.DisplayName,CloseTemplates:CnnXt.CloseTemplates,IntegrateProduct:CnnXt.IntegrateProduct,Run:CnnXt.Run,GetVersion:CnnXt.GetVersion,GetCurrentVersion:CnnXt.GetCurrentVersion,GetOptions:function(){return CnnXt.PublicObjectsMapper.Map(CnnXt.GetOptions(),"ConnextOptions")},StartTracing:CnnXt.Logger.startTracing.bind(CnnXt.Logger),StopTracing:CnnXt.Logger.stopTracing.bind(CnnXt.Logger),GetSessionLogs:CnnXt.Logger.getSessionLogs,Common:{USER_STATES:CnnXt.Common.USER_STATES},Storage:{GetCurrentConversationViewCount:CnnXt.Storage.GetCurrentConversationViewCount,GetCurrentDynamicMeterViewCount:CnnXt.Storage.GetCurrentDynamicMeterViewCount,GetLastPublishDate:CnnXt.Storage.GetLastPublishDate,GetSiteCode:function(){return CnnXt.Storage.GetLocalConfiguration().Site.SiteCode},GetConfigCode:function(){return CnnXt.Storage.GetLocalConfiguration().Settings.Code},GetLocalConfiguration:function(){return CnnXt.PublicObjectsMapper.Map(CnnXt.Storage.GetLocalConfiguration(),"Configuration")},GetCurrentConversations:function(){return CnnXt.PublicObjectsMapper.Map(CnnXt.Storage.GetCurrentConversations(),"CurrentConversationsByMeterLevel")},GetCurrentConversation:function(){return CnnXt.PublicObjectsMapper.Map(CnnXt.Storage.GetCurrentConversation(),"Conversation")},GetCurrentMeterLevel:function(){var n=CnnXt.Storage.GetCurrentConversation();return n?n.MeterLevelId:CnnXt.GetOptions().currentMeterLevel},GetCampaignData:function(){return CnnXt.PublicObjectsMapper.Map(CnnXt.Storage.GetCampaignData(),"Campaign")},GetRegistrationType:function(){return CnnXt.Storage.GetLocalConfiguration().Site.RegistrationTypeId},GetViewedArticles:function(){var n=CnnXt.Storage.GetCurrentConversation();return n?CnnXt.Storage.GetViewedArticles(n.id):[]},GetArticlesLeft:function(){var n=CnnXt.Storage.GetCurrentConversation();return n?n.Props.ArticleLeft:undefined},GetUserState:CnnXt.Storage.GetUserState,GetUserZipCodes:CnnXt.Storage.GetUserZipCodes,GetJanrainUser:function(){return CnnXt.PublicObjectsMapper.Map(CnnXt.Storage.GetJanrainUser(),"JanrainUser")},GetUserData:function(){return CnnXt.PublicObjectsMapper.Map(CnnXt.Storage.GetUserData(),"UserData")},GetUserProfile:CnnXt.Storage.GetUserProfile,GetConnextPaywallCookie:CnnXt.Storage.GetConnextPaywallCookie,ClearUser:CnnXt.Storage.ClearUser,GetActualZipCodes:CnnXt.Storage.GetActualZipCodes}},CnnXt.Logger.debug(t,"Init","Connext object has been created"),Connext},Logger:ConnextLogger(n),Whitelist:ConnextWhitelist(n),Campaign:ConnextCampaign(n),Action:ConnextAction(n),Activation:ConnextActivation(n),Common:ConnextCommon(),Utils:ConnextUtils(n),API:ConnextAPI(n),Event:ConnextEvents(n),Storage:ConnextStorage(n),User:ConnextUser(n),AppInsights:ConnextAppInsights(n),PublicObjectsMapper:ConnextPublicObjectsMap(),CloseTemplates:tt,IntegrateProduct:it,Run:function(n){CnnXt.Event.fire("onRun",CnnXt.PublicObjectsMapper.Map(n,"OnRunEventData"));d(n)},ReInit:et,GetVersion:function(){return g},GetCurrentVersion:function(){return"Version: "+window.connextVersion+", Build: "+window.connextBuild},GetOptions:function(){return i},ShowContent:function(){CnnXt.Action.ShowContent()},DisplayName:ConnextCommon().DisplayName,IsRunning:function(){return!CnnXt.GetOptions().silentmode||f},ADBlockDetector:ConnextADBlockDetector(n),CalculatorQualifiers:CalculatorQualifiers(n),FacebookLikeButton:ConnextFacebookLikeButton(n),CookieMigration:CookieMigration(n)}}(jQuery),Connext={init:CnnXt.init};(function(n){CnnXt.Cookies=n()})(function(){function n(){for(var n=0,r={},t,i;n&lt;arguments.length;n++){t=arguments[n];for(i in t)r[i]=t[i]}return r}function i(n,t,i){return n!=="igmRegID"&amp;&amp;n!=="igmContent"&amp;&amp;n!=="igmAuth"&amp;&amp;(t=t.replace(i,decodeURIComponent)),t}function t(r){function u(t,f,e){var s,c;if(arguments.length&gt;1){e=n({path:"/"},u.defaults,e);typeof e.expires=="number"&amp;&amp;(c=new Date,c.setMilliseconds(c.getMilliseconds()+e.expires*864e5),e.expires=c);try{s=JSON.stringify(f);/^[\{\[]/.test(s)&amp;&amp;(f=s)}catch(p){}return t!="igmRegID"&amp;&amp;t!="igmContent"&amp;&amp;t!="igmAuth"&amp;&amp;(f=r.write?r.write(f,t):encodeURIComponent(String(f)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[\(\)]/g,escape),document.cookie=[t,"=",f,e.expires&amp;&amp;"; expires="+e.expires.toUTCString(),e.path&amp;&amp;"; path="+e.path,e.domain&amp;&amp;"; domain="+e.domain,e.secure?"; secure":""].join("")}t||(s={});for(var a=document.cookie?document.cookie.split("; "):[],y=/(%[0-9A-Z]{2})+/g,l=0;l&lt;a.length;l++){var v=a[l].split("="),h=v[0],o=v.slice(1).join("=");o.charAt(0)==='"'&amp;&amp;(o=o.slice(1,-1));try{if(t===h){if(o=r.read?r.read(o,h):r(o,h)||i(h,o,y),this.json)try{o=JSON.parse(o)}catch(p){}s=o;break}t||(s[h]=o)}catch(p){}}return s}return u.get=u.set=u,u.getJSON=function(){return u.apply({json:!0},[].slice.call(arguments))},u.defaults={},u.remove=function(t,i){u(t,"",n(i,{expires:-1}))},u.withConverter=t,u}return t(function(){})});</pre></body></html>

                             

Screenshot: