'),e&&a.write('"),a.write('
'),a.render(c.block,b),a.write("
")),a},jsControlFlush:function(a){var b;return dust&&dust.jsControl&&dust.jsControl.controlIds&&dust.jsControl.controlIds.length&&(b='"'+dust.jsControl.controlIds.join(",")+'";',a.write('"),dust.jsControl.controlIds=[]),a},jsControl:function(a,b,c,d){if(d&&d.name){var e,f=dust.jsControl.controlIdentifier+"-"+dust.jsControl.contextIdentifier+dust.jsControl.count,g=d.name;dust.jsControl.controlIds.push(f),"initialized"!==dust.jsControl.controls[g]&&void 0===d.disableControlInitData&&(dust.jsControl.controls[g]="initialized",e="tl/shared/js-control/"+g.replace(/LI\./,"_").replace(/\./g,"_").toLowerCase(),dust.cache[e]&&a.partial(e,b)),a.write('"),dust.jsControl.count++,dust.jsControl.controlIdentifier===CTRL_SERVER_ID&&dust.helpers.jsControlFlush(a,b,c,d)}return a},partial:function(a,b,c,d){var e,f,g={},h=d&&d.key?d.key:"partial",i=b.get(h);if(d)for(var j in d)"key"!==j&&(g[j]=dust.helpers.tap(d[j],a,b));if(i)for(e in i)g[e]=i[e];if(g.isPartial=!0,d&&d.template){var k=d.template;if(k.indexOf(":")>=0){var l=k.indexOf(":"),m=k.substring(l+1),n=b.get(m);if(k=k.substring(0,l),n)for(e in n)g[e]=n[e]}return f=dust.makeBase(g),f.templateName=b.getTemplateName(),a.partial(k,f)}return f=dust.makeBase(g),f.templateName=b.getTemplateName(),c.block(a,f)},param:function(a,b,c,d){if(b.global&&b.global.isPartial&&d){var e=d.key,f=d.defaultVal,g=b.global[e];e&&"undefined"==typeof g&&"undefined"!=typeof f&&(b.global[e]=f)}return a},replace:function(a,b,c,d){if(!d)return a.write("");var e=dust.helpers.tap(d.value,a,b)||"",f=dust.helpers.tap(d.target,a,b)||"",g=dust.helpers.tap(d.replacement,a,b)||"",h=!!d.toLower,i=!!d.toUpper,j=d.target&&new RegExp(f,"g"),k=e.replace(j,g);return k=i&&k.toUpperCase()||k,k=h&&k.toLowerCase()||k,a.write(k)},log:function(a,b,c,d){return d&&d.info&&dust.log(d.info),a},i18n:function(a,b,c,d){if(d&&"true"===d.hide)return a;if(d&&"undefined"!=typeof d.key){var e=d.key,f=d.template||b.getTemplateName();if("undefined"!=typeof f){var g,h=dust.i18n.cache[f];if(h&&(g=h[d.key]))return d.output?(b.stack.head[e]=g,a):a.write(g);if(g=d.text)return a.write(g);if(c.block)return a.render(c.block,b)}return a}},"if":function(chunk,context,bodies,params){var body=bodies.block,skip=bodies["else"];if(params&¶ms.cond){var cond=params.cond;if(chunk._reference=chunk.reference,chunk.reference=chunkRefWithJFilter,cond=dust.helpers.tap(cond,chunk,context),chunk.reference=chunk._reference,eval(cond))return body?chunk.render(bodies.block,context):(dust.log("Missing body block in the if helper!"),chunk);if(skip)return chunk.render(bodies["else"],context)}else dust.log("No condition given in the if helper!");return chunk}},key;for(key in dustVars)dust[key]=dustVars[key];for(key in helpers)dust.helpers[key]=helpers[key]}(dust);/*! dust-ui-helpers - v1.3.1 Copyright © 2014 LinkedIn Corporation */
!function(dust){var a=/[<>'"]|&(?!(?:\w+|#(?:\d+|x[\da-f]+));)/i,b=function(b){return a.test(b)&&(d(b,"dust-security-ensure_preencode"),b=dust.filters.h(b)),b},c=function(a){return f(a)||d(a,"dust-security-html_whitelist"),a},d=function(a,b){dust.log(b+": "+a,"WARN")},e=function(a){var b=new RegExp("<(?!/?(?:"+a.allowedTags+")(?:[ \r\n]+(?:(?:"+a.allowedAttributes+')(?:="[^\'"<>]*")?|(?:'+a.allowedURLAttributes+')="(?:(?:'+a.allowedURLSchemes+')(?::|(?:58|x3a);)|[/.#?]|(?:35|4[67]|63|x(?:2[3ef]|3f));)[^\'"<>]*"))*[ \r\n]*/?>)',"i");return function(a){return!b.test(a)}},f=e({allowedTags:"a|abbr|address|area|article|aside|audio|b|bdi|bdo|big|blockquote|br|button|center|cite|code|datalist|dd|del|details|dfn|div|dl|dt|em|fieldset|figcaption|figure|font|footer|h[1-6]|header|hgroup|hr|i|img|ins|kbd|label|legend|li|map|mark|marquee|nav|nobr|ol|p|pre|q|rp|rt|ruby|s|samp|section|small|source|span|strike|strong|sub|sup|table|tbody|td|tfoot|th|thead|time|tr|u|ul|var|video|wbr",allowedAttributes:"alt|aria-[a-z0-9_\\-]+|border|caption|checked|class|colgroup|color|cols|colspan|controls|coords|data-[a-z0-9_\\-]+|dir|disabled|height|hidden|hreflang|id|label|loop|marginheight|marginwidth|maxlength|method|multiple|name|preload|readonly|rel|required|reversed|role|rows|rowspan|spellcheck|tabindex|target|title|type|usemap|width|clear|headers|ismap|lang|start|datetime|accept|max|min|placeholder|size|step",allowedURLAttributes:"href|src",allowedURLSchemes:"https?|ftp|mailto"}),g={et:b,mk:c,encodedText:b,markup:c};for(var h in g)dust.filters[h]=g[h]}(dust);(function(d,c){var b;
if(c.log){b=c.log;
c.log=function a(g,e){try{if(d.jet&&(e==="ERROR"||e==="WARN")){if(g instanceof Error){jet.error(g)
}else{if(typeof g==="string"){try{throw new Error(g)
}catch(f){jet.error(f)
}}}}}finally{return b.apply(c,arguments)
}}
}else{if(d.jet){jet.error(new Error("The function dust.log doesn't exist in this version."))
}}}(window,dust));!function(a,b){"object"==typeof exports?module.exports=b():"function"==typeof define&&define.amd?define("liTrackClient",[],b):a.liTrackClient=b()}(this,function(){var a={AJAX_METHOD:"POST",DEFAULT_PAGE_TYPE:"ajax",globalTrackingUrl:null,globalTrackingAppId:"no.app.id",lastDisplayMetric:null,lastActionMetric:null,queue:[],maxQueueSize:1,queueTimeout:1e3,timeoutId:null,setProperty:function(a,b){if(b)return void(this[a]=b);var c=this.getMetaTag(a);return c?void(this[a]=c.content):void 0},setTrackingUrl:function(a){this.setProperty("globalTrackingUrl",a)},setAppId:function(a){this.setProperty("globalTrackingAppId",a)},createXmlHttpObject:function(){try{return new XMLHttpRequest}catch(a){}return null},ajax:function(a,b,c){var d;return this.globalTrackingUrl?(d=this.createXmlHttpObject(),void(d&&(d.open(this.AJAX_METHOD,this.globalTrackingUrl,!0),d.setRequestHeader("Content-type","application/json"),d.onreadystatechange=function(){return 4===d.readyState?200!==d.status&&304!==d.status?void(c&&c("Request returned "+d.status)):void("function"==typeof b&&b(d)):void 0},4!==d.readyState&&d.send(a)))):void(c&&c("Tracking url is not defined"))},flush:function(){var a=this;this.ajax(JSON.stringify(this.queue),null,a.logError),this.queue=[],clearTimeout(this.timeoutId),this.timeoutId=null},addToQueue:function(a){if(this.queue.push(a),this.queue.length>=this.maxQueueSize)return this.flush();if(!this.timeoutId){var b=this;this.timeoutId=setTimeout(function(){b.flush()},this.queueTimeout)}},track:function(a){return"object"!=typeof a?void this.logError("Track data must be an object"):(a=this.fillMissingData(a),void this.addToQueue(a))},trackWithCallback:function(a,b){var c=this;if("object"!=typeof a)return void this.logError("Track data must be an object");a=this.fillMissingData(a);var d=JSON.stringify(a);this.ajax(d,function(a){"function"==typeof b&&b(null,a.responseText)},function(a){c.logError(a),"function"==typeof b&&b(a)})},getTimestamp:function(){return Math.round((new Date).getTime()/1e3)},getTrackingCode:function(a){return a.eventBody.trackingCode?a.eventBody.trackingCode:"PageViewEvent"===a.eventInfo.eventName?"full"===a.eventBody.pageType?(this.lastDisplayMetric=a.eventBody.requestHeader.pageKey,this.lastActionMetric):(this.lastActionMetric=a.eventBody.requestHeader.pageKey,this.lastDisplayMetric):null},fillMissingData:function(a){if(!a.eventInfo)return this.logError("You must specify eventInfo");if(a.eventInfo.appId||(a.eventInfo.appId=this.globalTrackingAppId),!a.eventBody)return this.logError("You must specify eventBody");a.eventBody.trackingCode=this.getTrackingCode(a);var b=a.eventBody.trackingInfo||{};return b.clientTimestamp||(b.clientTimestamp=this.getTimestamp()),a.eventBody.trackingInfo=b,a},trackPageView:function(a){var b,c,d,e;"string"==typeof a?(b=a,e=this.DEFAULT_PAGE_TYPE):(b=a.pageKey,e=a.pageType||this.DEFAULT_PAGE_TYPE,c=a.trackingCode,d=a.trackingInfo);var f={eventInfo:{eventName:"PageViewEvent"},eventBody:{requestHeader:{pageKey:b},pageType:e}};return c&&(f.eventBody.trackingCode=c),d&&(f.eventBody.trackingInfo=d),b?void this.track(f):this.logError("You must provide a pageKey")},trackUnifiedAction:function(a){if(!a.requestHeader||!a.requestHeader.pageKey)return this.logError("You must provide pageKey");if(!a.action)return this.logError("You must provide action");if(!a.sponsoredFlag)return this.logError("You must provide sponsoredFlag");var b={eventInfo:{eventName:"UnifiedActionEvent"},eventBody:a};this.track(b)},trackArticleView:function(a){if(!a.requestHeader||!a.requestHeader.pageKey)return this.logError("You must provide pageKey");if(!a.articleId)return this.logError("You must provide articleId");var b={eventInfo:{eventName:"ArticleViewEvent"},eventBody:a};this.track(b)},trackUnifiedImpression:function(a){if(!a.requestHeader||!a.requestHeader.pageKey)return this.logError("You must provide pageKey");if(!a.results)return this.logError("You must provide results");var b={eventInfo:{eventName:"UnifiedImpressionEvent"},eventBody:a};this.track(b)},logError:function(a){console&&console.error&&console.error(a)},getMetaTag:function(a){var b,c,d=document.getElementById(a);if(d)return d;for(metas=document.getElementsByTagName("meta"),c=metas.length,b=0;c>b;b++)if(metas[b].getAttribute("name")===a)return metas[b];return null}};return a.setTrackingUrl(),a.setAppId(),a});!function(a,b){"object"==typeof exports?module.exports=b():"function"==typeof define&&define.amd?define("externalTracking",[],b):a.externalTracking=b()}(this,function(){var a={samplingFraction:null,documentPageKeyOverride:null,TRACK_CLIENT:"liTrackClient",EVENT_NAME:"ExternalTrackingPageViewEvent",CHROME_INITIATOR:"CHROME",APP_INITIATOR:"APP",COMSCORE_DATA:{c1:2,c2:6402952,c3:"",c4:"",c5:"",c6:"",c15:""},setTreatment:function(a){try{var b,c;this.samplingFraction=null,a&&0===a.indexOf("enabled")&&(b=a.split("_"),2===b.length&&(c=parseFloat(b[1]),c>=0&&1>=c&&(this.samplingFraction=c)))}catch(d){this._logError("failed to set treatment: "+d)}},setDocumentPageKeyOverride:function(a){this.documentPageKeyOverride=a},trackWithComScoreForChromeInit:function(){this._trackWithComScore(this.documentPageKeyOverride,this.CHROME_INITIATOR)},trackWithComScore:function(a){this._trackWithComScore(a,this.APP_INITIATOR)},_trackWithComScore:function(a,b){if(window.COMSCORE&&"function"==typeof window.COMSCORE.beacon){COMSCORE.beacon(this.COMSCORE_DATA);try{this._trackExternalPageViewRequest(a||this._getDocumentPageKey(),["COMSCORE"],b)}catch(c){this._logError("failed to track external page view")}}else this._logError("COMSCORE library not found")},_trackExternalPageViewRequest:function(a,b,c){var d=this;if(null!==d.samplingFraction){var e={eventInfo:{eventName:d.EVENT_NAME,appId:d._getAppName()},eventBody:{pageViewPageKey:a,pageViewPath:d._getDocumentPath(),samplingFraction:d.samplingFraction,providers:b,initiator:c,requestHeader:{pageKey:d._getDocumentPageKey()}}};if(window.liTrackClient)try{window.liTrackClient.track(e)}catch(f){d._logError("failed to track external page view with "+d.TRACK_CLIENT)}else if(window.require&&"function"==typeof window.require.ensure)try{require.ensure([d.TRACK_CLIENT],function(a){try{var b=a(d.TRACK_CLIENT);b.track(e)}catch(c){d._logError("failed to track external page view with "+d.TRACK_CLIENT)}})}catch(f){d._logError("failed to require "+d.TRACK_CLIENT)}else d._logError(d.TRACK_CLIENT+" not found")}else d._logError("sampling fraction not set")},_getDocumentPageKey:function(){var a=this._getMetaTag("pageKey");return a?a.content:(this._logError("pageKey not found"),"")},_getDocumentPath:function(){return window.location.pathname.split("?")[0]},_getAppName:function(){var a=this._getMetaTag("appName");return a?a.content:(this._logError("appName not found"),"")},_getMetaTag:function(a){var b,c=document.getElementsByTagName("meta"),d=c.length;for(b=0;d>b;b++)if(c[b].getAttribute("name")===a)return c[b];return null},_logError:function(a){console&&console.error&&console.error(a)}};return a});