",{"class":"recent-articles"}).append(e,this.articleList())},=
populateRecentArticles:function(){t("[data-recent-articles]").replaceWith=
(this.recentArticlesList())},recordRecentArticle:function(){var =
e=3Dthis.currentArticle();if(null!=3D=3De.title){var =
t=3Dthis.addToRecentArticles(e);localStorage.setItem(this.localStorageKey=
(),JSON.stringify(t))}}},l}),n("mout/queryString/getQuery",[],function(){=
function e(e){e=3De.replace(/#.*/,"");var =
t=3D/\?[a-zA-Z0-9\=3D\&\%\$\-\_\.\+\!\*\'\(\)\,]+/.exec(e);return =
t?decodeURIComponent(t[0]):""}return =
e}),n("mout/queryString/contains",["./getQuery"],function(e){function =
t(t,n){var i=3Dnew RegExp("(\\?|&)"+n+"=3D","g");return =
i.test(e(t))}return t}),n("mout/string/typecast",[],function(){function =
e(e){var n;return =
n=3Dnull=3D=3D=3De||"null"=3D=3D=3De?null:"true"=3D=3D=3De?!0:"false"=3D=3D=
=3De?!1:e=3D=3D=3Dt||"undefined"=3D=3D=3De?t:""=3D=3D=3De||isNaN(e)?e:par=
seFloat(e)}var t;return =
e}),n("mout/lang/isString",["./isKind"],function(e){function t(t){return =
e(t,"String")}return =
t}),n("mout/queryString/decode",["../string/typecast","../lang/isString",=
"../lang/isArray","../object/hasOwn"],function(e,t,n,i){function =
r(r,o){for(var =
a,s,u,l,c=3D(r||"").replace("?","").split("&"),d=3D-1,p=3Dc.length,f=3D{}=
;++dn;if(i){var =
r=3Dthis.getLastSearch();r.clicked=3D!0,localStorage.setItem(this.localSt=
orageKey(),r)}return i},deflectedToArticle:function(){return =
n.getParam(window.location.href,"input_string")},lastVisitedArticleId:fun=
ction(){var e=3Dnew r,t=3De.articlesWithoutCurrent()[0];return =
t&&t.id},isSearchRequest:function(){return!!document.referrer.match(/\/se=
arch\?/)},instrumentationParams:function(){return{last_search:{query:this=
.query(),results_count:this.resultsCount(),origin:this.origin()},unique_s=
earch_result_click:this.uniqueSearchClick(),deflected_to_article:this.def=
lectedToArticle(),last_visited_article_id:this.lastVisitedArticleId(),is_=
search_request:this.isSearchRequest()}},instrument:function(){t.post(this=
.instrumentationEndpointUrl(),this.instrumentationParams())}},o}),n("mout=
/string/WHITE_SPACES",[],function(){return[" ","\n","\r"," =
","\f","=0B","=C2=A0","=E1=9A=80","=E1=A0=8E","=E2=80=80","=E2=80=81","=E2=
=80=82","=E2=80=83","=E2=80=84","=E2=80=85","=E2=80=86","=E2=80=87","=E2=80=
=88","=E2=80=89","=E2=80=8A","\u2028","\u2029","=E2=80=AF","=E2=81=9F","=E3=
=80=80"]}),n("mout/lang/toString",[],function(){function e(e){return =
null=3D=3De?"":e.toString()}return =
e}),n("mout/string/replaceAccents",["../lang/toString"],function(e){funct=
ion t(t){return =
t=3De(t),t.search(/[\xC0-\xFF]/g)>-1&&(t=3Dt.replace(/[\xC0-\xC5]/g,"A").=
replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E"=
).replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N=
").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[=
\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/=
[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace=
(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o=
").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]=
/g,"y")),t}return =
t}),n("mout/string/removeNonWord",["../lang/toString"],function(e){functi=
on t(t){return t=3De(t),t.replace(n,"")}var =
n=3D/[^\x20\x2D0-9A-Z\x5Fa-z\xC0-\xD6\xD8-\xF6\xF8-\xFF]/g;return =
t}),n("mout/string/upperCase",["../lang/toString"],function(e){function =
t(t){return t=3De(t),t.toUpperCase()}return =
t}),n("mout/string/lowerCase",["../lang/toString"],function(e){function =
t(t){return t=3De(t),t.toLowerCase()}return =
t}),n("mout/string/camelCase",["../lang/toString","./replaceAccents","./r=
emoveNonWord","./upperCase","./lowerCase"],function(e,t,n,i,r){function =
o(o){return o=3De(o),o=3Dt(o),o=3Dn(o).replace(/[\-_]/g," =
").replace(/\s[a-z]/g,i).replace(/\s+/g,"").replace(/^[A-Z]/g,r)}return =
o}),n("mout/string/contains",["../lang/toString"],function(e){function =
t(t,n,i){return t=3De(t),n=3De(n),-1!=3D=3Dt.indexOf(n,i)}return =
t}),n("mout/string/ltrim",["../lang/toString","./WHITE_SPACES"],function(=
e,t){function n(n,i){n=3De(n),i=3Di||t;for(var =
r,o,a=3D0,s=3Dn.length,u=3Di.length,l=3D!0;l&&s>a;)for(l=3D!1,r=3D-1,o=3D=
n.charAt(a);++r=3Ds?"":n.substr(a,s)}return =
n}),n("mout/string/rtrim",["../lang/toString","./WHITE_SPACES"],function(=
e,t){function n(n,i){n=3De(n),i=3Di||t;for(var =
r,o,a=3Dn.length-1,s=3Di.length,u=3D!0;u&&a>=3D0;)for(u=3D!1,r=3D-1,o=3Dn=
.charAt(a);++r=3D0?n.substring(0,a+1):""}return =
n}),n("mout/string/trim",["../lang/toString","./WHITE_SPACES","./ltrim","=
./rtrim"],function(e,t,n,i){function r(r,o){return =
r=3De(r),o=3Do||t,n(i(r,o),o)}return =
r}),n("mout/string/truncate",["../lang/toString","./trim"],function(e,t){=
function n(n,i,r,o){return =
n=3De(n),r=3Dr||"...",i=3Do?i+1:i,n=3Dt(n),n.length<=3Di?n:(n=3Dn.substr(=
0,i-r.length),n=3Do?n.substr(0,n.lastIndexOf(" ")):t(n),n+r)}return =
n}),n("mout/string/crop",["../lang/toString","./truncate"],function(e,t){=
function n(n,i,r){return n=3De(n),t(n,i,r,!0)}return =
n}),n("mout/string/endsWith",["../lang/toString"],function(e){function =
t(t,n){return =
t=3De(t),n=3De(n),-1!=3D=3Dt.indexOf(n,t.length-n.length)}return =
t}),n("mout/string/escapeHtml",["../lang/toString"],function(e){function =
t(t){return =
t=3De(t).replace(/&/g,"&").replace(//g,">").=
replace(/'/g,"'").replace(/"/g,""")}return =
t}),n("mout/string/escapeRegExp",["../lang/toString"],function(e){functio=
n t(t){return e(t).replace(/\W/g,"\\$&")}return =
t}),n("mout/string/escapeUnicode",["../lang/toString"],function(e){functi=
on t(t,n){return =
t=3De(t),t.replace(/[\s\S]/g,function(e){return!n&&/[\x20-\x7E]/.test(e)?=
e:"\\u"+("000"+e.charCodeAt(0).toString(16)).slice(-4)})}return =
t}),n("mout/string/slugify",["../lang/toString","./replaceAccents","./rem=
oveNonWord","./trim"],function(e,t,n,i){function r(r,o){return =
r=3De(r),null=3D=3Do&&(o=3D"-"),r=3Dt(r),r=3Dn(r),r=3Di(r).replace(/ =
+/g,o).toLowerCase()}return =
r}),n("mout/string/unCamelCase",["../lang/toString"],function(e){function=
t(t,i){function r(e,t,n){return t+i+n}return null=3D=3Di&&(i=3D" =
"),t=3De(t),t=3Dt.replace(n,r),t=3Dt.toLowerCase()}var =
n=3D/([a-z\xE0-\xFF])([A-Z\xC0\xDF])/g;return =
t}),n("mout/string/hyphenate",["../lang/toString","./slugify","./unCamelC=
ase"],function(e,t,n){function i(i){return =
i=3De(i),i=3Dn(i),t(i,"-")}return =
i}),n("mout/math/clamp",[],function(){function e(e,t,n){return =
t>e?t:e>n?n:e}return =
e}),n("mout/string/insert",["../math/clamp","../lang/toString"],function(=
e,t){function n(n,i,r){return =
n=3Dt(n),0>i&&(i=3Dn.length+i),i=3De(i,0,n.length),n.substr(0,i)+r+n.subs=
tr(i)}return =
n}),n("mout/string/interpolate",["../lang/toString","../object/get"],func=
tion(e,t){function n(n,r,o){n=3De(n);var a=3Dfunction(n,i){return =
e(t(r,i))};return n.replace(o||i,a)}var i=3D/\{\{([^\}]+)\}\}/g;return =
n}),n("mout/number/toInt",[],function(){function e(e){return~~e}return =
e}),n("mout/string/repeat",["../lang/toString","../number/toInt"],functio=
n(e,t){function n(n,i){var =
r=3D"";if(n=3De(n),i=3Dt(i),1>i)return"";for(;i>0;)i%2&&(r+=3Dn),i=3DMath=
.floor(i/2),n+=3Dn;return r}return =
n}),n("mout/string/lpad",["../lang/toString","./repeat"],function(e,t){fu=
nction n(n,i,r){return n=3De(n),r=3Dr||" =
",n.lengtht?Math.max(i+t,0):Math.min(t,i),n=3Dnull=
=3D=3Dn?i:0>n?Math.max(i+n,0):Math.min(n,i);for(var =
r=3D[];n>t;)r.push(e[t++]);return r}return =
e}),n("mout/string/makePath",["../array/join","../array/slice"],function(=
e,t){function n(){var n=3De(t(arguments),"/");return =
n.replace(/([^:\/]|^)\/{2,}/g,"$1/")}return =
n}),n("mout/string/normalizeLineBreaks",["../lang/toString"],function(e){=
function t(t,n){return =
t=3De(t),n=3Dn||"\n",t.replace(/\r\n/g,n).replace(/\r/g,n).replace(/\n/g,=
n)}return =
t}),n("mout/string/pascalCase",["../lang/toString","./camelCase","./upper=
Case"],function(e,t,n){function i(i){return =
i=3De(i),t(i).replace(/^[a-z]/,n)}return =
i}),n("mout/string/properCase",["../lang/toString","./lowerCase","./upper=
Case"],function(e,t,n){function i(i){return =
i=3De(i),t(i).replace(/^\w|\s\w/g,n)}return =
i}),n("mout/string/removeNonASCII",["../lang/toString"],function(e){funct=
ion t(t){return t=3De(t),t.replace(/[^\x20-\x7E]/g,"")}return =
t}),n("mout/lang/GLOBAL",[],function(){return Function("return =
this")()}),n("mout/lang/toArray",["./kindOf","./GLOBAL"],function(e,t){fu=
nction n(n){var =
i,r=3D[],o=3De(n);if(null!=3Dn)if(null=3D=3Dn.length||"String"=3D=3D=3Do|=
|"Function"=3D=3D=3Do||"RegExp"=3D=3D=3Do||n=3D=3D=3Dt)r[r.length]=3Dn;el=
se for(i=3Dn.length;i--;)r[i]=3Dn[i];return r}return =
n}),n("mout/string/replace",["../lang/toString","../lang/toArray"],functi=
on(e,t){function n(n,i,r){n=3De(n),i=3Dt(i),r=3Dt(r);var =
o=3Di.length,a=3Dr.length;if(1!=3D=3Da&&o!=3D=3Da)throw new =
Error("Unequal number of searches and replacements");for(var =
s=3D-1;++s]*>/g,"")}return =
t}),n("mout/string/underscore",["../lang/toString","./slugify","./unCamel=
Case"],function(e,t,n){function i(i){return =
i=3De(i),i=3Dn(i),t(i,"_")}return =
i}),n("mout/string/unescapeHtml",["../lang/toString"],function(e){functio=
n t(t){return =
t=3De(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").=
replace(/*39;/g,"'").replace(/"/g,'"')}return =
t}),n("mout/string/unescapeUnicode",["../lang/toString"],function(e){func=
tion t(t){return t=3De(t),t.replace(/\\u[0-9a-f]{4}/g,function(e){var =
t=3DparseInt(e.slice(2),16);return String.fromCharCode(t)})}return =
t}),n("mout/string/unhyphenate",["../lang/toString"],function(e){function=
t(t){return t=3De(t),t.replace(/(\w)(-)(\w)/g,"$1 $3")}return =
t}),n("mout/string",["require","./string/WHITE_SPACES","./string/camelCas=
e","./string/contains","./string/crop","./string/endsWith","./string/esca=
peHtml","./string/escapeRegExp","./string/escapeUnicode","./string/hyphen=
ate","./string/insert","./string/interpolate","./string/lowerCase","./str=
ing/lpad","./string/ltrim","./string/makePath","./string/normalizeLineBre=
aks","./string/pascalCase","./string/properCase","./string/removeNonASCII=
","./string/removeNonWord","./string/repeat","./string/replace","./string=
/replaceAccents","./string/rpad","./string/rtrim","./string/sentenceCase"=
,"./string/slugify","./string/startsWith","./string/stripHtmlTags","./str=
ing/trim","./string/truncate","./string/typecast","./string/unCamelCase",=
"./string/underscore","./string/unescapeHtml","./string/unescapeUnicode",=
"./string/unhyphenate","./string/upperCase"],function(e){return{WHITE_SPA=
CES:e("./string/WHITE_SPACES"),camelCase:e("./string/camelCase"),contains=
:e("./string/contains"),crop:e("./string/crop"),endsWith:e("./string/ends=
With"),escapeHtml:e("./string/escapeHtml"),escapeRegExp:e("./string/escap=
eRegExp"),escapeUnicode:e("./string/escapeUnicode"),hyphenate:e("./string=
/hyphenate"),insert:e("./string/insert"),interpolate:e("./string/interpol=
ate"),lowerCase:e("./string/lowerCase"),lpad:e("./string/lpad"),ltrim:e("=
./string/ltrim"),makePath:e("./string/makePath"),normalizeLineBreaks:e(".=
/string/normalizeLineBreaks"),pascalCase:e("./string/pascalCase"),properC=
ase:e("./string/properCase"),removeNonASCII:e("./string/removeNonASCII"),=
removeNonWord:e("./string/removeNonWord"),repeat:e("./string/repeat"),rep=
lace:e("./string/replace"),replaceAccents:e("./string/replaceAccents"),rp=
ad:e("./string/rpad"),rtrim:e("./string/rtrim"),sentenceCase:e("./string/=
sentenceCase"),slugify:e("./string/slugify"),startsWith:e("./string/start=
sWith"),stripHtmlTags:e("./string/stripHtmlTags"),trim:e("./string/trim")=
,truncate:e("./string/truncate"),typecast:e("./string/typecast"),unCamelC=
ase:e("./string/unCamelCase"),underscore:e("./string/underscore"),unescap=
eHtml:e("./string/unescapeHtml"),unescapeUnicode:e("./string/unescapeUnic=
ode"),unhyphenate:e("./string/unhyphenate"),upperCase:e("./string/upperCa=
se")}=0A=
}),function(e,t){"function"=3D=3Dtypeof =
n&&n.amd?n("tooltip",["jquery"],t):t(e.jQuery)}(this,function(e){var =
t=3Dfunction(e,t){this.init("tooltip",e,t)};t.prototype=3D{constructor:t,=
init:function(t,n,i){var =
r,o,a,s,u;for(this.type=3Dt,this.$element=3De(n),this.options=3Dthis.getO=
ptions(i),this.enabled=3D!0,a=3Dthis.options.trigger.split(" =
"),u=3Da.length;u--;)s=3Da[u],"click"=3D=3Ds?this.$element.on("click."+th=
is.type,this.options.selector,e.proxy(this.toggle,this)):"manual"!=3Ds&&(=
r=3D"hover"=3D=3Ds?"mouseenter":"focus",o=3D"hover"=3D=3Ds?"mouseleave":"=
blur",this.$element.on(r+"."+this.type,this.options.selector,e.proxy(this=
.enter,this)),this.$element.on(o+"."+this.type,this.options.selector,e.pr=
oxy(this.leave,this)));this.options.selector?this._options=3De.extend({},=
this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:=
function(t){return =
t=3De.extend({},e.fn[this.type].defaults,this.$element.data(),t),t.delay&=
&"number"=3D=3Dtypeof =
t.delay&&(t.delay=3D{show:t.delay,hide:t.delay}),t},enter:function(t){var=
n=3De(t.currentTarget)[this.type](this._options).data(this.type);return =
n.options.delay&&n.options.delay.show?(clearTimeout(this.timeout),n.hover=
State=3D"in",void(this.timeout=3DsetTimeout(function(){"in"=3D=3Dn.hoverS=
tate&&n.show()},n.options.delay.show))):n.show()},leave:function(t){var =
n=3De(t.currentTarget)[this.type](this._options).data(this.type);return =
this.timeout&&clearTimeout(this.timeout),n.options.delay&&n.options.delay=
.hide?(n.hoverState=3D"out",void(this.timeout=3DsetTimeout(function(){"ou=
t"=3D=3Dn.hoverState&&n.hide()},n.options.delay.hide))):n.hide()},show:fu=
nction(){var =
t,n,i,r,o,a,s=3De.Event("show");if(this.hasContent()&&this.enabled){if(th=
is.$element.trigger(s),s.isDefaultPrevented())return;switch(t=3Dthis.tip(=
),this.setContent(),this.options.animation&&t.addClass("fade"),o=3D"funct=
ion"=3D=3Dtypeof =
this.options.placement?this.options.placement.call(this,t[0],this.$elemen=
t[0]):this.options.placement,t.detach().css({top:0,left:0,display:"block"=
}),this.options.container?t.appendTo(this.options.container):t.insertAfte=
r(this.$element),n=3Dthis.getPosition(),i=3Dt[0].offsetWidth,r=3Dt[0].off=
setHeight,o){case"bottom":a=3D{top:n.top+n.height,left:n.left+n.width/2-i=
/2};break;case"top":a=3D{top:n.top-r,left:n.left+n.width/2-i/2};break;cas=
e"left":a=3D{top:n.top+n.height/2-r/2,left:n.left-i};break;case"right":a=3D=
{top:n.top+n.height/2-r/2,left:n.left+n.width}}this.applyPlacement(a,o),t=
his.$element.trigger("shown")}},applyPlacement:function(e,t){var =
n,i,r,o,a=3Dthis.tip(),s=3Da[0].offsetWidth,u=3Da[0].offsetHeight;a.offse=
t(e).addClass(t).addClass("in"),n=3Da[0].offsetWidth,i=3Da[0].offsetHeigh=
t,"top"=3D=3Dt&&i!=3Du&&(e.top=3De.top+u-i,o=3D!0),"bottom"=3D=3Dt||"top"=
=3D=3Dt?(r=3D0,e.left<0&&(r=3D-2*e.left,e.left=3D0,a.offset(e),n=3Da[0].o=
ffsetWidth,i=3Da[0].offsetHeight),this.replaceArrow(r-s+n,n,"left")):this=
.replaceArrow(i-u,i,"top"),o&&a.offset(e)},replaceArrow:function(e,t,n){t=
his.arrow().css(n,e?50*(1-e/t)+"%":"")},setContent:function(){var =
e=3Dthis.tip(),t=3Dthis.getTitle();e.find(".tooltip-inner")[this.options.=
html?"html":"text"](t),e.removeClass("fade in top bottom left =
right")},hide:function(){function t(){var =
t=3DsetTimeout(function(){n.off(e.support.transition.end).detach()},500);=
n.one(e.support.transition.end,function(){clearTimeout(t),n.detach()})}va=
r n=3Dthis.tip(),i=3De.Event("hide");return =
this.$element.trigger(i),i.isDefaultPrevented()?void =
0:(n.removeClass("in"),e.support.transition&&this.$tip.hasClass("fade")?t=
():n.detach(),this.$element.trigger("hidden"),this)},fixTitle:function(){=
var e=3Dthis.$element;(e.attr("title")||"string"!=3Dtypeof =
e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("titl=
e")||"").attr("title","")},hasContent:function(){return =
this.getTitle()},getPosition:function(){var t=3Dthis.$element[0];return =
e.extend({},"function"=3D=3Dtypeof =
t.getBoundingClientRect?t.getBoundingClientRect():{width:t.offsetWidth,he=
ight:t.offsetHeight},this.$element.offset())},getTitle:function(){var =
e,t=3Dthis.$element,n=3Dthis.options;return =
e=3Dt.attr("data-original-title")||("function"=3D=3Dtypeof =
n.title?n.title.call(t[0]):n.title)},tip:function(){return =
this.$tip=3Dthis.$tip||e(this.options.template)},arrow:function(){return =
this.$arrow=3Dthis.$arrow||this.tip().find(".tooltip-arrow")},validate:fu=
nction(){this.$element[0].parentNode||(this.hide(),this.$element=3Dnull,t=
his.options=3Dnull)},enable:function(){this.enabled=3D!0},disable:functio=
n(){this.enabled=3D!1},toggleEnabled:function(){this.enabled=3D!this.enab=
led},toggle:function(t){var =
n=3Dt?e(t.currentTarget)[this.type](this._options).data(this.type):this;n=
.tip().hasClass("in")?n.hide():n.show()},destroy:function(){this.hide().$=
element.off("."+this.type).removeData(this.type)}};var =
n=3De.fn.tooltip;e.fn.tooltip=3Dfunction(n){return =
this.each(function(){var =
i=3De(this),r=3Di.data("tooltip"),o=3D"object"=3D=3Dtypeof =
n&&n;r||i.data("tooltip",r=3Dnew t(this,o)),"string"=3D=3Dtypeof =
n&&r[n]()})},e.fn.tooltip.Constructor=3Dt,e.fn.tooltip.defaults=3D{animat=
ion:!0,placement:"top",selector:!1,template:'',trigger:"hover =
focus",title:"",delay:0,html:!1,container:!1},e.fn.tooltip.noConflict=3Df=
unction(){return =
e.fn.tooltip=3Dn,this}}),n("pages/enduser/articles",["require","domlib","=
apps/snippets/screencastViewer","apps/snippets/disableSubmitButton","apps=
/modalEdit","apps/snippets/populatePendingComments","apps/snippets/showAc=
tionDropdowns","apps/snippets/recentArticles","apps/snippets/articleInstr=
umentation","mout/queryString","mout/string","tooltip"],function(e){var =
t=3De("domlib"),n=3De("apps/snippets/screencastViewer"),i=3De("apps/snipp=
ets/disableSubmitButton"),r=3De("apps/modalEdit"),o=3De("apps/snippets/po=
pulatePendingComments"),a=3De("apps/snippets/showActionDropdowns"),s=3De(=
"apps/snippets/recentArticles"),u=3De("apps/snippets/articleInstrumentati=
on"),l=3De("mout/queryString"),c=3De("mout/string"),d=3Dt(".comment-list"=
);e("tooltip"),n(),t("[rel~=3Dtooltip]").tooltip(),d.on("click","[data-ac=
tion=3D'edit']",function(e){e.preventDefault(),r(this.href,function(){var=
=
e=3Dthis.contentWindow.location.href;l.getParam(e,"updated")&&(this.conte=
ntDocument.body.style.display=3D"none",window.location.reload())})}).on("=
click","[data-action=3D'escalate']",function(e){e.preventDefault(),r(this=
.href,function(){var =
e=3Dthis.contentWindow.location.href;c.endsWith(e,"/new")||(this.contentD=
ocument.body.style.display=3D"none",window.location.reload())})}),o().don=
e(a),i(t(".new_comment"));var p=3Dnew s;p.recordRecentArticle();var =
f=3Dnew u;f.instrument()}),function(e,t){"function"=3D=3Dtypeof =
n&&n.amd?n("jquery.asynchtml",["jquery"],t):t(e.jQuery)}(this,function(e)=
{e.fn.asynchtml=3Dfunction(t){var n;return =
n=3De.extend({linkSelector:"a[data-asynchtml-ressource]",targetSelector:"=
[data-asynchtml-target]",sourceSelector:".article-body",readmore:null},t)=
,this.each(function(){function t(t){var =
i,r,o,a,s;t.preventDefault(),i=3De(t.currentTarget),r=3Di.parent().find(n=
.targetSelector).first(),o=3Di.attr("href"),a=3D"true"=3D=3D=3Di.attr("ar=
ia-selected"),s=3D!!i.data("asynchtml.loaded"),s||(i.data("asynchtml.load=
ed",!0),r.load([o,n.sourceSelector].join(" =
"),function(){n.readmore&&r.append(''+n.readmore+" ")})),i.attr("aria-selected=
",!a)}var =
i=3De(this);i.find(n.linkSelector).attr("aria-selected",!1),i.on("click",=
n.linkSelector,t)}),this}}),n("apps/asynchtmlSetup",["domlib","i18n","jqu=
ery.asynchtml"],function(e,t){e(function(){e("[data-asynchtml]").asynchtm=
l({linkSelector:"a[data-asynchtml-ressource]",targetSelector:"[data-async=
html-target]",sourceSelector:".article-body",readmore:t.t("txt.help_cente=
r.javascripts.components_with_articles.read_more")})})}),n("mout/object/m=
ixIn",["./forOwn"],function(e){function t(t){for(var =
i,r=3D0,o=3Darguments.length;++rr;r++)if(t.call(i,e[r],r,e)=3D=3D=3Dn)return}else =
for(var a in =
e)if(k.has(e,a)&&t.call(i,e[a],a,e)=3D=3D=3Dn)return};k.map=3Dk.collect=3D=
function(e,t,n){var i=3D[];return =
null=3D=3De?i:p&&e.map=3D=3D=3Dp?e.map(t,n):(T(e,function(e,r,o){i[i.leng=
th]=3Dt.call(n,e,r,o)}),i)};var C=3D"Reduce of empty array with no =
initial value";k.reduce=3Dk.foldl=3Dk.inject=3Dfunction(e,t,n,i){var =
r=3Darguments.length>2;if(null=3D=3De&&(e=3D[]),f&&e.reduce=3D=3D=3Df)ret=
urn =
i&&(t=3Dk.bind(t,i)),r?e.reduce(t,n):e.reduce(t);if(T(e,function(e,o,a){r=
?n=3Dt.call(i,n,e,o,a):(n=3De,r=3D!0)}),!r)throw new TypeError(C);return =
n},k.reduceRight=3Dk.foldr=3Dfunction(e,t,n,i){var =
r=3Darguments.length>2;if(null=3D=3De&&(e=3D[]),h&&e.reduceRight=3D=3D=3D=
h)return i&&(t=3Dk.bind(t,i)),r?e.reduceRight(t,n):e.reduceRight(t);var =
o=3De.length;if(o!=3D=3D+o){var =
a=3Dk.keys(e);o=3Da.length}if(T(e,function(s,u,l){u=3Da?a[--o]:--o,r?n=3D=
t.call(i,n,e[u],u,l):(n=3De[u],r=3D!0)}),!r)throw new =
TypeError(C);return n},k.find=3Dk.detect=3Dfunction(e,t,n){var i;return =
S(e,function(e,r,o){return t.call(n,e,r,o)?(i=3De,!0):void =
0}),i},k.filter=3Dk.select=3Dfunction(e,t,n){var i=3D[];return =
null=3D=3De?i:m&&e.filter=3D=3D=3Dm?e.filter(t,n):(T(e,function(e,r,o){t.=
call(n,e,r,o)&&(i[i.length]=3De)}),i)},k.reject=3Dfunction(e,t,n){return =
k.filter(e,function(e,i,r){return!t.call(n,e,i,r)},n)},k.every=3Dk.all=3D=
function(e,t,i){t||(t=3Dk.identity);var r=3D!0;return =
null=3D=3De?r:g&&e.every=3D=3D=3Dg?e.every(t,i):(T(e,function(e,o,a){retu=
rn(r=3Dr&&t.call(i,e,o,a))?void 0:n}),!!r)};var =
S=3Dk.some=3Dk.any=3Dfunction(e,t,i){t||(t=3Dk.identity);var =
r=3D!1;return =
null=3D=3De?r:v&&e.some=3D=3D=3Dv?e.some(t,i):(T(e,function(e,o,a){return=
r||(r=3Dt.call(i,e,o,a))?n:void =
0}),!!r)};k.contains=3Dk.include=3Dfunction(e,t){return =
null=3D=3De?!1:y&&e.indexOf=3D=3D=3Dy?-1!=3De.indexOf(t):S(e,function(e){=
return e=3D=3D=3Dt})},k.invoke=3Dfunction(e,t){var =
n=3Ds.call(arguments,2),i=3Dk.isFunction(t);return =
k.map(e,function(e){return(i?t:e[t]).apply(e,n)})},k.pluck=3Dfunction(e,t=
){return k.map(e,function(e){return =
e[t]})},k.where=3Dfunction(e,t,n){return =
k.isEmpty(t)?n?null:[]:k[n?"find":"filter"](e,function(e){for(var n in =
t)if(t[n]!=3D=3De[n])return!1;return!0})},k.findWhere=3Dfunction(e,t){ret=
urn =
k.where(e,t,!0)},k.max=3Dfunction(e,t,n){if(!t&&k.isArray(e)&&e[0]=3D=3D=3D=
+e[0]&&e.length<65535)return =
Math.max.apply(Math,e);if(!t&&k.isEmpty(e))return-1/0;var =
i=3D{computed:-1/0,value:-1/0};return T(e,function(e,r,o){var =
a=3Dt?t.call(n,e,r,o):e;a>=3Di.computed&&(i=3D{value:e,computed:a})}),i.v=
alue},k.min=3Dfunction(e,t,n){if(!t&&k.isArray(e)&&e[0]=3D=3D=3D+e[0]&&e.=
length<65535)return Math.min.apply(Math,e);if(!t&&k.isEmpty(e))return =
1/0;var i=3D{computed:1/0,value:1/0};return T(e,function(e,r,o){var =
a=3Dt?t.call(n,e,r,o):e;ai||void =
0=3D=3D=3Dn)return 1;if(i>n||void 0=3D=3D=3Di)return-1}return =
e.indexo;){var =
s=3Do+a>>>1;n.call(i,e[s])=3D0})})},k.difference=3Dfunction(e){var =
t=3Du.apply(i,s.call(arguments,1));return =
k.filter(e,function(e){return!k.contains(t,e)})},k.zip=3Dfunction(){for(v=
ar e=3Ds.call(arguments),t=3Dk.max(k.pluck(e,"length")),n=3Dnew =
Array(t),i=3D0;t>i;i++)n[i]=3Dk.pluck(e,""+i);return =
n},k.object=3Dfunction(e,t){if(null=3D=3De)return{};for(var =
n=3D{},i=3D0,r=3De.length;r>i;i++)t?n[e[i]]=3Dt[i]:n[e[i][0]]=3De[i][1];r=
eturn n},k.indexOf=3Dfunction(e,t,n){if(null=3D=3De)return-1;var =
i=3D0,r=3De.length;if(n){if("number"!=3Dtypeof n)return =
i=3Dk.sortedIndex(e,t),e[i]=3D=3D=3Dt?i:-1;i=3D0>n?Math.max(0,r+n):n}if(y=
&&e.indexOf=3D=3D=3Dy)return =
e.indexOf(t,n);for(;r>i;i++)if(e[i]=3D=3D=3Dt)return =
i;return-1},k.lastIndexOf=3Dfunction(e,t,n){if(null=3D=3De)return-1;var =
i=3Dnull!=3Dn;if(b&&e.lastIndexOf=3D=3D=3Db)return =
i?e.lastIndexOf(t,n):e.lastIndexOf(t);for(var =
r=3Di?n:e.length;r--;)if(e[r]=3D=3D=3Dt)return =
r;return-1},k.range=3Dfunction(e,t,n){arguments.length<=3D1&&(t=3De||0,e=3D=
0),n=3Darguments[2]||1;for(var =
i=3DMath.max(Math.ceil((t-e)/n),0),r=3D0,o=3Dnew =
Array(i);i>r;)o[r++]=3De,e+=3Dn;return =
o},k.bind=3Dfunction(e,t){if(e.bind=3D=3D=3Dx&&x)return =
x.apply(e,s.call(arguments,1));var n=3Ds.call(arguments,2);return =
function(){return =
e.apply(t,n.concat(s.call(arguments)))}},k.partial=3Dfunction(e){var =
t=3Ds.call(arguments,1);return function(){return =
e.apply(this,t.concat(s.call(arguments)))}},k.bindAll=3Dfunction(e){var =
t=3Ds.call(arguments,1);return =
0=3D=3D=3Dt.length&&(t=3Dk.functions(e)),T(t,function(t){e[t]=3Dk.bind(e[=
t],e)}),e},k.memoize=3Dfunction(e,t){var n=3D{};return =
t||(t=3Dk.identity),function(){var i=3Dt.apply(this,arguments);return =
k.has(n,i)?n[i]:n[i]=3De.apply(this,arguments)}},k.delay=3Dfunction(e,t){=
var n=3Ds.call(arguments,2);return setTimeout(function(){return =
e.apply(null,n)},t)},k.defer=3Dfunction(e){return =
k.delay.apply(k,[e,1].concat(s.call(arguments,1)))},k.throttle=3Dfunction=
(e,t){var n,i,r,o,a=3D0,s=3Dfunction(){a=3Dnew =
Date,r=3Dnull,o=3De.apply(n,i)};return function(){var u=3Dnew =
Date,l=3Dt-(u-a);return =
n=3Dthis,i=3Darguments,0>=3Dl?(clearTimeout(r),r=3Dnull,a=3Du,o=3De.apply=
(n,i)):r||(r=3DsetTimeout(s,l)),o}},k.debounce=3Dfunction(e,t,n){var =
i,r;return function(){var =
o=3Dthis,a=3Darguments,s=3Dfunction(){i=3Dnull,n||(r=3De.apply(o,a))},u=3D=
n&&!i;return =
clearTimeout(i),i=3DsetTimeout(s,t),u&&(r=3De.apply(o,a)),r}},k.once=3Dfu=
nction(e){var t,n=3D!1;return function(){return =
n?t:(n=3D!0,t=3De.apply(this,arguments),e=3Dnull,t)}},k.wrap=3Dfunction(e=
,t){return function(){var n=3D[e];return =
a.apply(n,arguments),t.apply(this,n)}},k.compose=3Dfunction(){var =
e=3Darguments;return function(){for(var =
t=3Darguments,n=3De.length-1;n>=3D0;n--)t=3D[e[n].apply(this,t)];return =
t[0]}},k.after=3Dfunction(e,t){return =
0>=3De?t():function(){return--e<1?t.apply(this,arguments):void =
0}},k.keys=3D_||function(e){if(e!=3D=3DObject(e))throw new =
TypeError("Invalid object");var t=3D[];for(var n in =
e)k.has(e,n)&&(t[t.length]=3Dn);return t},k.values=3Dfunction(e){var =
t=3D[];for(var n in e)k.has(e,n)&&t.push(e[n]);return =
t},k.pairs=3Dfunction(e){var t=3D[];for(var n in =
e)k.has(e,n)&&t.push([n,e[n]]);return t},k.invert=3Dfunction(e){var =
t=3D{};for(var n in e)k.has(e,n)&&(t[e[n]]=3Dn);return =
t},k.functions=3Dk.methods=3Dfunction(e){var t=3D[];for(var n in =
e)k.isFunction(e[n])&&t.push(n);return =
t.sort()},k.extend=3Dfunction(e){return =
T(s.call(arguments,1),function(t){if(t)for(var n in =
t)e[n]=3Dt[n]}),e},k.pick=3Dfunction(e){var =
t=3D{},n=3Du.apply(i,s.call(arguments,1));return T(n,function(n){n in =
e&&(t[n]=3De[n])}),t},k.omit=3Dfunction(e){var =
t=3D{},n=3Du.apply(i,s.call(arguments,1));for(var r in =
e)k.contains(n,r)||(t[r]=3De[r]);return =
t},k.defaults=3Dfunction(e){return =
T(s.call(arguments,1),function(t){if(t)for(var n in =
t)null=3D=3De[n]&&(e[n]=3Dt[n])}),e},k.clone=3Dfunction(e){return =
k.isObject(e)?k.isArray(e)?e.slice():k.extend({},e):e},k.tap=3Dfunction(e=
,t){return t(e),e};var A=3Dfunction(e,t,n,i){if(e=3D=3D=3Dt)return =
0!=3D=3De||1/e=3D=3D1/t;if(null=3D=3De||null=3D=3Dt)return e=3D=3D=3Dt;e =
instanceof k&&(e=3De._wrapped),t instanceof k&&(t=3Dt._wrapped);var =
r=3Dl.call(e);if(r!=3Dl.call(t))return!1;switch(r){case"[object =
String]":return e=3D=3DString(t);case"[object Number]":return =
e!=3D+e?t!=3D+t:0=3D=3De?1/e=3D=3D1/t:e=3D=3D+t;case"[object =
Date]":case"[object Boolean]":return+e=3D=3D+t;case"[object =
RegExp]":return =
e.source=3D=3Dt.source&&e.global=3D=3Dt.global&&e.multiline=3D=3Dt.multil=
ine&&e.ignoreCase=3D=3Dt.ignoreCase}if("object"!=3Dtypeof =
e||"object"!=3Dtypeof t)return!1;for(var =
o=3Dn.length;o--;)if(n[o]=3D=3De)return =
i[o]=3D=3Dt;n.push(e),i.push(t);var a=3D0,s=3D!0;if("[object =
Array]"=3D=3Dr){if(a=3De.length,s=3Da=3D=3Dt.length)for(;a--&&(s=3DA(e[a]=
,t[a],n,i)););}else{var =
u=3De.constructor,c=3Dt.constructor;if(u!=3D=3Dc&&!(k.isFunction(u)&&u =
instanceof u&&k.isFunction(c)&&c instanceof c))return!1;for(var d in =
e)if(k.has(e,d)&&(a++,!(s=3Dk.has(t,d)&&A(e[d],t[d],n,i))))break;if(s){fo=
r(d in t)if(k.has(t,d)&&!a--)break;s=3D!a}}return =
n.pop(),i.pop(),s};k.isEqual=3Dfunction(e,t){return =
A(e,t,[],[])},k.isEmpty=3Dfunction(e){if(null=3D=3De)return!0;if(k.isArra=
y(e)||k.isString(e))return 0=3D=3D=3De.length;for(var t in =
e)if(k.has(e,t))return!1;return!0},k.isElement=3Dfunction(e){return!(!e||=
1!=3D=3De.nodeType)},k.isArray=3Dw||function(e){return"[object =
Array]"=3D=3Dl.call(e)},k.isObject=3Dfunction(e){return =
e=3D=3D=3DObject(e)},T(["Arguments","Function","String","Number","Date","=
RegExp"],function(e){k["is"+e]=3Dfunction(t){return =
l.call(t)=3D=3D"[object =
"+e+"]"}}),k.isArguments(arguments)||(k.isArguments=3Dfunction(e){return!=
(!e||!k.has(e,"callee"))}),"function"!=3Dtypeof/./&&(k.isFunction=3Dfunct=
ion(e){return"function"=3D=3Dtypeof e}),k.isFinite=3Dfunction(e){return =
isFinite(e)&&!isNaN(parseFloat(e))},k.isNaN=3Dfunction(e){return =
k.isNumber(e)&&e!=3D+e},k.isBoolean=3Dfunction(e){return =
e=3D=3D=3D!0||e=3D=3D=3D!1||"[object =
Boolean]"=3D=3Dl.call(e)},k.isNull=3Dfunction(e){return =
null=3D=3D=3De},k.isUndefined=3Dfunction(e){return void =
0=3D=3D=3De},k.has=3Dfunction(e,t){return =
c.call(e,t)},k.noConflict=3Dfunction(){return =
e._=3Dt,this},k.identity=3Dfunction(e){return =
e},k.times=3Dfunction(e,t,n){for(var =
i=3DArray(e),r=3D0;e>r;r++)i[r]=3Dt.call(n,r);return =
i},k.random=3Dfunction(e,t){return =
null=3D=3Dt&&(t=3De,e=3D0),e+Math.floor(Math.random()*(t-e+1))};var =
M=3D{escape:{"&":"&","<":"<",">":">",'"':""","'":"'",=
"/":"/"}};M.unescape=3Dk.invert(M.escape);var j=3D{escape:new =
RegExp("["+k.keys(M.escape).join("")+"]","g"),unescape:new =
RegExp("("+k.keys(M.unescape).join("|")+")","g")};k.each(["escape","unesc=
ape"],function(e){k[e]=3Dfunction(t){return =
null=3D=3Dt?"":(""+t).replace(j[e],function(t){return =
M[e][t]})}}),k.result=3Dfunction(e,t){if(null=3D=3De)return null;var =
n=3De[t];return =
k.isFunction(n)?n.call(e):n},k.mixin=3Dfunction(e){T(k.functions(e),funct=
ion(t){var n=3Dk[t]=3De[t];k.prototype[t]=3Dfunction(){var =
e=3D[this._wrapped];return =
a.apply(e,arguments),F.call(this,n.apply(k,e))}})};var =
O=3D0;k.uniqueId=3Dfunction(e){var t=3D++O+"";return =
e?e+t:t},k.templateSettings=3D{evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=
=3D([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var =
q=3D/(.)^/,P=3D{"'":"'","\\":"\\","\r":"r","\n":"n"," =
":"t","\u2028":"u2028","\u2029":"u2029"},I=3D/\\|'|\r|\n|\t|\u2028|\u2029=
/g;k.template=3Dfunction(e,t,n){var =
i;n=3Dk.defaults({},n,k.templateSettings);var r=3Dnew =
RegExp([(n.escape||q).source,(n.interpolate||q).source,(n.evaluate||q).so=
urce].join("|")+"|$","g"),o=3D0,a=3D"__p+=3D'";e.replace(r,function(t,n,i=
,r,s){return =
a+=3De.slice(o,s).replace(I,function(e){return"\\"+P[e]}),n&&(a+=3D"'+\n(=
(__t=3D("+n+"))=3D=3Dnull?'':_.escape(__t))+\n'"),i&&(a+=3D"'+\n((__t=3D(=
"+i+"))=3D=3Dnull?'':__t)+\n'"),r&&(a+=3D"';\n"+r+"\n__p+=3D'"),o=3Ds+t.l=
ength,t}),a+=3D"';\n",n.variable||(a=3D"with(obj||{}){\n"+a+"}\n"),a=3D"v=
ar =
__t,__p=3D'',__j=3DArray.prototype.join,print=3Dfunction(){__p+=3D__j.cal=
l(arguments,'');};\n"+a+"return __p;\n";try{i=3Dnew =
Function(n.variable||"obj","_",a)}catch(s){throw =
s.source=3Da,s}if(t)return i(t,k);var u=3Dfunction(e){return =
i.call(this,e,k)};return =
u.source=3D"function("+(n.variable||"obj")+"){\n"+a+"}",u},k.chain=3Dfunc=
tion(e){return k(e).chain()};var F=3Dfunction(e){return =
this._chain?k(e).chain():e};k.mixin(k),T(["pop","push","reverse","shift",=
"sort","splice","unshift"],function(e){var =
t=3Di[e];k.prototype[e]=3Dfunction(){var n=3Dthis._wrapped;return =
t.apply(n,arguments),"shift"!=3De&&"splice"!=3De||0!=3D=3Dn.length||delet=
e n[0],F.call(this,n)}}),T(["concat","join","slice"],function(e){var =
t=3Di[e];k.prototype[e]=3Dfunction(){return =
F.call(this,t.apply(this._wrapped,arguments))}}),k.extend(k.prototype,{ch=
ain:function(){return this._chain=3D!0,this},value:function(){return =
this._wrapped}})}.call(this),n("underscore",function(e){return =
function(){var t;return t||e._}}(this)),function(){var =
e,n=3Dthis,i=3Dn.Backbone,r=3D[],o=3Dr.push,a=3Dr.slice,s=3Dr.splice;e=3D=
"undefined"!=3Dtypeof =
exports?exports:n.Backbone=3D{},e.VERSION=3D"1.0.0";var =
u=3Dn._;u||"undefined"=3D=3Dtypeof =
t||(u=3Dt("underscore")),e.$=3Dn.jQuery||n.Zepto||n.ender||n.$,e.noConfli=
ct=3Dfunction(){return =
n.Backbone=3Di,this},e.emulateHTTP=3D!1,e.emulateJSON=3D!1;var =
l=3De.Events=3D{on:function(e,t,n){if(!d(this,"on",e,[t,n])||!t)return =
this;this._events||(this._events=3D{});var =
i=3Dthis._events[e]||(this._events[e]=3D[]);return =
i.push({callback:t,context:n,ctx:n||this}),this},once:function(e,t,n){if(=
!d(this,"once",e,[t,n])||!t)return this;var =
i=3Dthis,r=3Du.once(function(){i.off(e,r),t.apply(this,arguments)});retur=
n r._callback=3Dt,this.on(e,r,n)},off:function(e,t,n){var =
i,r,o,a,s,l,c,p;if(!this._events||!d(this,"off",e,[t,n]))return =
this;if(!e&&!t&&!n)return =
this._events=3D{},this;for(a=3De?[e]:u.keys(this._events),s=3D0,l=3Da.len=
gth;l>s;s++)if(e=3Da[s],o=3Dthis._events[e]){if(this._events[e]=3Di=3D[],=
t||n)for(c=3D0,p=3Do.length;p>c;c++)r=3Do[c],(t&&t!=3D=3Dr.callback&&t!=3D=
=3Dr.callback._callback||n&&n!=3D=3Dr.context)&&i.push(r);i.length||delet=
e this._events[e]}return =
this},trigger:function(e){if(!this._events)return this;var =
t=3Da.call(arguments,1);if(!d(this,"trigger",e,t))return this;var =
n=3Dthis._events[e],i=3Dthis._events.all;return =
n&&p(n,t),i&&p(i,arguments),this},stopListening:function(e,t,n){var =
i=3Dthis._listeners;if(!i)return this;var =
r=3D!t&&!n;"object"=3D=3Dtypeof =
t&&(n=3Dthis),e&&((i=3D{})[e._listenerId]=3De);for(var o in =
i)i[o].off(t,n,this),r&&delete this._listeners[o];return =
this}},c=3D/\s+/,d=3Dfunction(e,t,n,i){if(!n)return!0;if("object"=3D=3Dty=
peof n){for(var r in =
n)e[t].apply(e,[r,n[r]].concat(i));return!1}if(c.test(n)){for(var =
o=3Dn.split(c),a=3D0,s=3Do.length;s>a;a++)e[t].apply(e,[o[a]].concat(i));=
return!1}return!0},p=3Dfunction(e,t){var =
n,i=3D-1,r=3De.length,o=3Dt[0],a=3Dt[1],s=3Dt[2];switch(t.length){case =
0:for(;++ip;p++)this.trigger("change:"+a[p],this,d[a[p]],n)}if=
(l)return =
this;if(!s)for(;this._pending;)this._pending=3D!1,this.trigger("change",t=
his,n);return =
this._pending=3D!1,this._changing=3D!1,this},unset:function(e,t){return =
this.set(e,void 0,u.extend({},t,{unset:!0}))},clear:function(e){var =
t=3D{};for(var n in this.attributes)t[n]=3Dvoid 0;return =
this.set(t,u.extend({},e,{unset:!0}))},hasChanged:function(e){return =
null=3D=3De?!u.isEmpty(this.changed):u.has(this.changed,e)},changedAttrib=
utes:function(e){if(!e)return =
this.hasChanged()?u.clone(this.changed):!1;var =
t,n=3D!1,i=3Dthis._changing?this._previousAttributes:this.attributes;for(=
var r in e)u.isEqual(i[r],t=3De[r])||((n||(n=3D{}))[r]=3Dt);return =
n},previous:function(e){return =
null!=3De&&this._previousAttributes?this._previousAttributes[e]:null},pre=
viousAttributes:function(){return =
u.clone(this._previousAttributes)},fetch:function(e){e=3De?u.clone(e):{},=
void 0=3D=3D=3De.parse&&(e.parse=3D!0);var t=3Dthis,n=3De.success;return =
e.success=3Dfunction(i){return t.set(t.parse(i,e),e)?(n&&n(t,i,e),void =
t.trigger("sync",t,i,e)):!1},L(this,e),this.sync("read",this,e)},save:fun=
ction(e,t,n){var =
i,r,o,a=3Dthis.attributes;if(null=3D=3De||"object"=3D=3Dtypeof =
e?(i=3De,n=3Dt):(i=3D{})[e]=3Dt,!(!i||n&&n.wait||this.set(i,n)))return!1;=
if(n=3Du.extend({validate:!0},n),!this._validate(i,n))return!1;i&&n.wait&=
&(this.attributes=3Du.extend({},a,i)),void =
0=3D=3D=3Dn.parse&&(n.parse=3D!0);var s=3Dthis,l=3Dn.success;return =
n.success=3Dfunction(e){s.attributes=3Da;var t=3Ds.parse(e,n);return =
n.wait&&(t=3Du.extend(i||{},t)),u.isObject(t)&&!s.set(t,n)?!1:(l&&l(s,e,n=
),void =
s.trigger("sync",s,e,n))},L(this,n),r=3Dthis.isNew()?"create":n.patch?"pa=
tch":"update","patch"=3D=3D=3Dr&&(n.attrs=3Di),o=3Dthis.sync(r,this,n),i&=
&n.wait&&(this.attributes=3Da),o},destroy:function(e){e=3De?u.clone(e):{}=
;var =
t=3Dthis,n=3De.success,i=3Dfunction(){t.trigger("destroy",t,t.collection,=
e)};if(e.success=3Dfunction(r){(e.wait||t.isNew())&&i(),n&&n(t,r,e),t.isN=
ew()||t.trigger("sync",t,r,e)},this.isNew())return =
e.success(),!1;L(this,e);var r=3Dthis.sync("delete",this,e);return =
e.wait||i(),r},url:function(){var =
e=3Du.result(this,"urlRoot")||u.result(this.collection,"url")||F();return=
=
this.isNew()?e:e+("/"=3D=3D=3De.charAt(e.length-1)?"":"/")+encodeURICompo=
nent(this.id)},parse:function(e){return e},clone:function(){return new =
this.constructor(this.attributes)},isNew:function(){return =
null=3D=3Dthis.id},isValid:function(e){return =
this._validate({},u.extend(e||{},{validate:!0}))},_validate:function(e,t)=
{if(!t.validate||!this.validate)return!0;e=3Du.extend({},this.attributes,=
e);var n=3Dthis.validationError=3Dthis.validate(e,t)||null;return =
n?(this.trigger("invalid",this,n,u.extend(t||{},{validationError:n})),!1)=
:!0}});var =
g=3D["keys","values","pairs","invert","pick","omit"];u.each(g,function(e)=
{h.prototype[e]=3Dfunction(){var t=3Da.call(arguments);return =
t.unshift(this.attributes),u[e].apply(u,t)}});var =
v=3De.Collection=3Dfunction(e,t){t||(t=3D{}),t.url&&(this.url=3Dt.url),t.=
model&&(this.model=3Dt.model),void =
0!=3D=3Dt.comparator&&(this.comparator=3Dt.comparator),this._reset(),this=
.initialize.apply(this,arguments),e&&this.reset(e,u.extend({silent:!0},t)=
)},y=3D{add:!0,remove:!0,merge:!0},b=3D{add:!0,merge:!1,remove:!1};u.exte=
nd(v.prototype,l,{model:h,initialize:function(){},toJSON:function(e){retu=
rn this.map(function(t){return t.toJSON(e)})},sync:function(){return =
e.sync.apply(this,arguments)},add:function(e,t){return =
this.set(e,u.defaults(t||{},b))},remove:function(e,t){e=3Du.isArray(e)?e.=
slice():[e],t||(t=3D{});var =
n,i,r,o;for(n=3D0,i=3De.length;i>n;n++)o=3Dthis.get(e[n]),o&&(delete =
this._byId[o.id],delete =
this._byId[o.cid],r=3Dthis.indexOf(o),this.models.splice(r,1),this.length=
--,t.silent||(t.index=3Dr,o.trigger("remove",o,this,t)),this._removeRefer=
ence(o));return =
this},set:function(e,t){t=3Du.defaults(t||{},y),t.parse&&(e=3Dthis.parse(=
e,t)),u.isArray(e)||(e=3De?[e]:[]);var =
n,i,r,a,l,c=3Dt.at,d=3Dthis.comparator&&null=3D=3Dc&&t.sort!=3D=3D!1,p=3D=
u.isString(this.comparator)?this.comparator:null,f=3D[],h=3D[],m=3D{};for=
(n=3D0,i=3De.length;i>n;n++)(r=3Dthis._prepareModel(e[n],t))&&((a=3Dthis.=
get(r))?(t.remove&&(m[a.cid]=3D!0),t.merge&&(a.set(r.attributes,t),d&&!l&=
&a.hasChanged(p)&&(l=3D!0))):t.add&&(f.push(r),r.on("all",this._onModelEv=
ent,this),this._byId[r.cid]=3Dr,null!=3Dr.id&&(this._byId[r.id]=3Dr)));if=
(t.remove){for(n=3D0,i=3Dthis.length;i>n;++n)m[(r=3Dthis.models[n]).cid]|=
|h.push(r);h.length&&this.remove(h,t)}if(f.length&&(d&&(l=3D!0),this.leng=
th+=3Df.length,null!=3Dc?s.apply(this.models,[c,0].concat(f)):o.apply(thi=
s.models,f)),l&&this.sort({silent:!0}),t.silent)return =
this;for(n=3D0,i=3Df.length;i>n;n++)(r=3Df[n]).trigger("add",r,this,t);re=
turn =
l&&this.trigger("sort",this,t),this},reset:function(e,t){t||(t=3D{});for(=
var =
n=3D0,i=3Dthis.models.length;i>n;n++)this._removeReference(this.models[n]=
);return =
t.previousModels=3Dthis.models,this._reset(),this.add(e,u.extend({silent:=
!0},t)),t.silent||this.trigger("reset",this,t),this},push:function(e,t){r=
eturn =
e=3Dthis._prepareModel(e,t),this.add(e,u.extend({at:this.length},t)),e},p=
op:function(e){var t=3Dthis.at(this.length-1);return =
this.remove(t,e),t},unshift:function(e,t){return =
e=3Dthis._prepareModel(e,t),this.add(e,u.extend({at:0},t)),e},shift:funct=
ion(e){var t=3Dthis.at(0);return =
this.remove(t,e),t},slice:function(e,t){return =
this.models.slice(e,t)},get:function(e){return null=3D=3De?void =
0:this._byId[null!=3De.id?e.id:e.cid||e]},at:function(e){return =
this.models[e]},where:function(e,t){return u.isEmpty(e)?t?void =
0:[]:this[t?"find":"filter"](function(t){for(var n in =
e)if(e[n]!=3D=3Dt.get(n))return!1;return!0})},findWhere:function(e){retur=
n this.where(e,!0)},sort:function(e){if(!this.comparator)throw new =
Error("Cannot sort a set without a comparator");return =
e||(e=3D{}),u.isString(this.comparator)||1=3D=3D=3Dthis.comparator.length=
?this.models=3Dthis.sortBy(this.comparator,this):this.models.sort(u.bind(=
this.comparator,this)),e.silent||this.trigger("sort",this,e),this},sorted=
Index:function(e,t,n){t||(t=3Dthis.comparator);var =
i=3Du.isFunction(t)?t:function(e){return e.get(t)};return =
u.sortedIndex(this.models,e,i,n)},pluck:function(e){return =
u.invoke(this.models,"get",e)},fetch:function(e){e=3De?u.clone(e):{},void=
0=3D=3D=3De.parse&&(e.parse=3D!0);var t=3De.success,n=3Dthis;return =
e.success=3Dfunction(i){var =
r=3De.reset?"reset":"set";n[r](i,e),t&&t(n,i,e),n.trigger("sync",n,i,e)},=
L(this,e),this.sync("read",this,e)},create:function(e,t){if(t=3Dt?u.clone=
(t):{},!(e=3Dthis._prepareModel(e,t)))return!1;t.wait||this.add(e,t);var =
n=3Dthis,i=3Dt.success;return =
t.success=3Dfunction(r){t.wait&&n.add(e,t),i&&i(e,r,t)},e.save(null,t),e}=
,parse:function(e){return e},clone:function(){return new =
this.constructor(this.models)},_reset:function(){this.length=3D0,this.mod=
els=3D[],this._byId=3D{}},_prepareModel:function(e,t){if(e instanceof =
h)return =
e.collection||(e.collection=3Dthis),e;t||(t=3D{}),t.collection=3Dthis;var=
n=3Dnew this.model(e,t);return =
n._validate(e,t)?n:(this.trigger("invalid",this,e,t),!1)},_removeReferenc=
e:function(e){this=3D=3D=3De.collection&&delete =
e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function=
(e,t,n,i){("add"!=3D=3De&&"remove"!=3D=3De||n=3D=3D=3Dthis)&&("destroy"=3D=
=3D=3De&&this.remove(t,i),t&&e=3D=3D=3D"change:"+t.idAttribute&&(delete =
this._byId[t.previous(t.idAttribute)],null!=3Dt.id&&(this._byId[t.id]=3Dt=
)),this.trigger.apply(this,arguments))}});var =
w=3D["forEach","each","map","collect","reduce","foldl","inject","reduceRi=
ght","foldr","find","detect","filter","select","reject","every","all","so=
me","any","include","contains","invoke","max","min","toArray","size","fir=
st","head","take","initial","rest","tail","drop","last","without","indexO=
f","shuffle","lastIndexOf","isEmpty","chain"];=0A=
u.each(w,function(e){v.prototype[e]=3Dfunction(){var =
t=3Da.call(arguments);return =
t.unshift(this.models),u[e].apply(u,t)}});var =
_=3D["groupBy","countBy","sortBy"];u.each(_,function(e){v.prototype[e]=3D=
function(t,n){var i=3Du.isFunction(t)?t:function(e){return =
e.get(t)};return u[e](this.models,i,n)}});var =
x=3De.View=3Dfunction(e){this.cid=3Du.uniqueId("view"),this._configure(e|=
|{}),this._ensureElement(),this.initialize.apply(this,arguments),this.del=
egateEvents()},k=3D/^(\S+)\s*(.*)$/,T=3D["model","collection","el","id","=
attributes","className","tagName","events"];u.extend(x.prototype,l,{tagNa=
me:"div",$:function(e){return =
this.$el.find(e)},initialize:function(){},render:function(){return =
this},remove:function(){return =
this.$el.remove(),this.stopListening(),this},setElement:function(t,n){ret=
urn this.$el&&this.undelegateEvents(),this.$el=3Dt instanceof =
e.$?t:e.$(t),this.el=3Dthis.$el[0],n!=3D=3D!1&&this.delegateEvents(),this=
},delegateEvents:function(e){if(!e&&!(e=3Du.result(this,"events")))return=
this;this.undelegateEvents();for(var t in e){var =
n=3De[t];if(u.isFunction(n)||(n=3Dthis[e[t]]),n){var =
i=3Dt.match(k),r=3Di[1],o=3Di[2];n=3Du.bind(n,this),r+=3D".delegateEvents=
"+this.cid,""=3D=3D=3Do?this.$el.on(r,n):this.$el.on(r,o,n)}}return =
this},undelegateEvents:function(){return =
this.$el.off(".delegateEvents"+this.cid),this},_configure:function(e){thi=
s.options&&(e=3Du.extend({},u.result(this,"options"),e)),u.extend(this,u.=
pick(e,T)),this.options=3De},_ensureElement:function(){if(this.el)this.se=
tElement(u.result(this,"el"),!1);else{var =
t=3Du.extend({},u.result(this,"attributes"));this.id&&(t.id=3Du.result(th=
is,"id")),this.className&&(t["class"]=3Du.result(this,"className"));var =
n=3De.$("<"+u.result(this,"tagName")+">").attr(t);this.setElement(n,!1)}}=
}),e.sync=3Dfunction(t,n,i){var =
r=3DC[t];u.defaults(i||(i=3D{}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.=
emulateJSON});var =
o=3D{type:r,dataType:"json"};if(i.url||(o.url=3Du.result(n,"url")||F()),n=
ull!=3Di.data||!n||"create"!=3D=3Dt&&"update"!=3D=3Dt&&"patch"!=3D=3Dt||(=
o.contentType=3D"application/json",o.data=3DJSON.stringify(i.attrs||n.toJ=
SON(i))),i.emulateJSON&&(o.contentType=3D"application/x-www-form-urlencod=
ed",o.data=3Do.data?{model:o.data}:{}),i.emulateHTTP&&("PUT"=3D=3D=3Dr||"=
DELETE"=3D=3D=3Dr||"PATCH"=3D=3D=3Dr)){o.type=3D"POST",i.emulateJSON&&(o.=
data._method=3Dr);var a=3Di.beforeSend;i.beforeSend=3Dfunction(e){return =
e.setRequestHeader("X-HTTP-Method-Override",r),a?a.apply(this,arguments):=
void =
0}}"GET"=3D=3D=3Do.type||i.emulateJSON||(o.processData=3D!1),"PATCH"!=3D=3D=
o.type||!window.ActiveXObject||window.external&&window.external.msActiveX=
FilteringEnabled||(o.xhr=3Dfunction(){return new =
ActiveXObject("Microsoft.XMLHTTP")});var =
s=3Di.xhr=3De.ajax(u.extend(o,i));return =
n.trigger("request",n,s,i),s};var =
C=3D{create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET=
"};e.ajax=3Dfunction(){return e.$.ajax.apply(e.$,arguments)};var =
S=3De.Router=3Dfunction(e){e||(e=3D{}),e.routes&&(this.routes=3De.routes)=
,this._bindRoutes(),this.initialize.apply(this,arguments)},E=3D/\((.*?)\)=
/g,D=3D/(\(\?)?:\w+/g,N=3D/\*\w+/g,A=3D/[\-{}\[\]+?.,\\\^$|#\s]/g;u.exten=
d(S.prototype,l,{initialize:function(){},route:function(t,n,i){u.isRegExp=
(t)||(t=3Dthis._routeToRegExp(t)),u.isFunction(n)&&(i=3Dn,n=3D""),i||(i=3D=
this[n]);var r=3Dthis;return e.history.route(t,function(o){var =
a=3Dr._extractParameters(t,o);i&&i.apply(r,a),r.trigger.apply(r,["route:"=
+n].concat(a)),r.trigger("route",n,a),e.history.trigger("route",r,n,a)}),=
this},navigate:function(t,n){return =
e.history.navigate(t,n),this},_bindRoutes:function(){if(this.routes){this=
.routes=3Du.result(this,"routes");for(var =
e,t=3Du.keys(this.routes);null!=3D(e=3Dt.pop());)this.route(e,this.routes=
[e])}},_routeToRegExp:function(e){return =
e=3De.replace(A,"\\$&").replace(E,"(?:$1)?").replace(D,function(e,t){retu=
rn t?e:"([^/]+)"}).replace(N,"(.*?)"),new =
RegExp("^"+e+"$")},_extractParameters:function(e,t){var =
n=3De.exec(t).slice(1);return u.map(n,function(e){return =
e?decodeURIComponent(e):null})}});var =
M=3De.History=3Dfunction(){this.handlers=3D[],u.bindAll(this,"checkUrl"),=
"undefined"!=3Dtypeof =
window&&(this.location=3Dwindow.location,this.history=3Dwindow.history)},=
j=3D/^[#\/]|\s+$/g,O=3D/^\/+|\/+$/g,q=3D/msie =
[\w.]+/,P=3D/\/$/;M.started=3D!1,u.extend(M.prototype,l,{interval:50,getH=
ash:function(e){var t=3D(e||this).location.href.match(/#(.*)$/);return =
t?t[1]:""},getFragment:function(e,t){if(null=3D=3De)if(this._hasPushState=
||!this._wantsHashChange||t){e=3Dthis.location.pathname;var =
n=3Dthis.root.replace(P,"");e.indexOf(n)||(e=3De.substr(n.length))}else =
e=3Dthis.getHash();return =
e.replace(j,"")},start:function(t){if(M.started)throw new =
Error("Backbone.history has already been =
started");M.started=3D!0,this.options=3Du.extend({},{root:"/"},this.optio=
ns,t),this.root=3Dthis.options.root,this._wantsHashChange=3Dthis.options.=
hashChange!=3D=3D!1,this._wantsPushState=3D!!this.options.pushState,this.=
_hasPushState=3D!!(this.options.pushState&&this.history&&this.history.pus=
hState);var =
n=3Dthis.getFragment(),i=3Ddocument.documentMode,r=3Dq.exec(navigator.use=
rAgent.toLowerCase())&&(!i||7>=3Di);this.root=3D("/"+this.root+"/").repla=
ce(O,"/"),r&&this._wantsHashChange&&(this.iframe=3De.$('').hide().appendTo("body")[0].contentWindow,this.navigate(n)),this._has=
PushState?e.$(window).on("popstate",this.checkUrl):this._wantsHashChange&=
&"onhashchange"in =
window&&!r?e.$(window).on("hashchange",this.checkUrl):this._wantsHashChan=
ge&&(this._checkUrlInterval=3DsetInterval(this.checkUrl,this.interval)),t=
his.fragment=3Dn;var =
o=3Dthis.location,a=3Do.pathname.replace(/[^\/]$/,"$&/")=3D=3D=3Dthis.roo=
t;return =
this._wantsHashChange&&this._wantsPushState&&!this._hasPushState&&!a?(thi=
s.fragment=3Dthis.getFragment(null,!0),this.location.replace(this.root+th=
is.location.search+"#"+this.fragment),!0):(this._wantsPushState&&this._ha=
sPushState&&a&&o.hash&&(this.fragment=3Dthis.getHash().replace(j,""),this=
.history.replaceState({},document.title,this.root+this.fragment+o.search)=
),this.options.silent?void =
0:this.loadUrl())},stop:function(){e.$(window).off("popstate",this.checkU=
rl).off("hashchange",this.checkUrl),clearInterval(this._checkUrlInterval)=
,M.started=3D!1},route:function(e,t){this.handlers.unshift({route:e,callb=
ack:t})},checkUrl:function(){var e=3Dthis.getFragment();return =
e=3D=3D=3Dthis.fragment&&this.iframe&&(e=3Dthis.getFragment(this.getHash(=
this.iframe))),e=3D=3D=3Dthis.fragment?!1:(this.iframe&&this.navigate(e),=
void(this.loadUrl()||this.loadUrl(this.getHash())))},loadUrl:function(e){=
var =
t=3Dthis.fragment=3Dthis.getFragment(e),n=3Du.any(this.handlers,function(=
e){return e.route.test(t)?(e.callback(t),!0):void 0});return =
n},navigate:function(e,t){if(!M.started)return!1;if(t&&t!=3D=3D!0||(t=3D{=
trigger:t}),e=3Dthis.getFragment(e||""),this.fragment!=3D=3De){this.fragm=
ent=3De;var =
n=3Dthis.root+e;if(this._hasPushState)this.history[t.replace?"replaceStat=
e":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)retur=
n =
this.location.assign(n);this._updateHash(this.location,e,t.replace),this.=
iframe&&e!=3D=3Dthis.getFragment(this.getHash(this.iframe))&&(t.replace||=
this.iframe.document.open().close(),this._updateHash(this.iframe.location=
,e,t.replace))}t.trigger&&this.loadUrl(e)}},_updateHash:function(e,t,n){i=
f(n){var =
i=3De.href.replace(/(javascript:|#).*$/,"");e.replace(i+"#"+t)}else =
e.hash=3D"#"+t}}),e.history=3Dnew M;var I=3Dfunction(e,t){var =
n,i=3Dthis;n=3De&&u.has(e,"constructor")?e.constructor:function(){return =
i.apply(this,arguments)},u.extend(n,i,t);var =
r=3Dfunction(){this.constructor=3Dn};return =
r.prototype=3Di.prototype,n.prototype=3Dnew =
r,e&&u.extend(n.prototype,e),n.__super__=3Di.prototype,n};h.extend=3Dv.ex=
tend=3DS.extend=3Dx.extend=3DM.extend=3DI;var F=3Dfunction(){throw new =
Error('A "url" property or function must be =
specified')},L=3Dfunction(e,t){var =
n=3Dt.error;t.error=3Dfunction(i){n&&n(e,i,t),e.trigger("error",e,i,t)}}}=
.call(this),n("backbone",["underscore","domlib"],function(e){return =
function(){var t,n;return n=3Dfunction(e,t){return =
this.Backbone.$=3Dt,this.Backbone},t=3Dn.apply(e,arguments),t||e.Backbone=
}}(this)),n("apps/recentActivity/models/Activity",["require","backbone","=
underscore"],function(e){var =
t=3De("backbone"),n=3De("underscore");return =
t.Model.extend({defaults:{id:null,action:"",title:"",url:"#",timestamp:""=
,comment_count:null,breadcrumbs:[]},validate:function(e){var =
t=3D["article_created","article_updated","article_comment_added","post_cr=
eated","post_updated","post_comment_added","question_created","question_u=
pdated","answer_added"];return n.indexOf(t,e.action)<0?"Unknown action =
https://www.schematicsforfree.com/files/Manufacturing and Design/PC Board Design and Fabrication/PCB Design, Layout & Routing/type":void 0},parse:function(e){return =
e.title&&(e.title=3Dn.escape(e.title)),e}})}),n("apps/recentActivity/Medi=
ator",["require","backbone","underscore"],function(e){var =
t=3De("backbone"),n=3De("underscore"),i=3Dfunction(){this._events=3D{}};r=
eturn n.extend(i.prototype,t.Events),i.instance=3Dnew =
i,i}),n("apps/recentActivity/models/Pagination",["require","backbone","..=
/Mediator"],function(e){var =
t=3De("backbone"),n=3De("../Mediator").instance;return =
t.Model.extend({defaults:{page:0,previous_page:null,next_page:null,per_pa=
ge:5,page_count:null,count:0},initialize:function(){this.listenTo(this,"c=
hange:page_count",this.onChangePageCount,this),this.listenTo(this,"change=
:page",this.onChangePage,this)},onChangePageCount:function(){0=3D=3D=3Dth=
is.get("page_count")&&n.trigger("pagination:no_pages",this)},onChangePage=
:function(){this.get("page_count")>0&&n.trigger("pagination:changed",this=
)}})}),n("apps/recentActivity/collections/Activities",["require","backbon=
e","underscore","hcbridge","../models/Activity","../models/Pagination",".=
./Mediator"],function(e){var =
t=3De("backbone"),n=3De("underscore"),i=3De("hcbridge").instance,r=3De(".=
./models/Activity"),o=3De("../models/Pagination"),a=3De("../Mediator").in=
stance;return =
t.Collection.extend({model:r,initialize:function(e){e=3De||{},this.url=3D=
e.url,this.pagination=3Dnew =
o({per_page:5})},fetchMore:function(e){e=3De||{};var =
t=3Dthis.pagination.get("page")+1;return =
this.pagination.get("page")=3D=3D=3Dthis.pagination.get("page_count")?!1:=
(this.first()&&(e.data=3D{page:t,since:this.first().get("timestamp")}),th=
is.fetch(e))},fetch:function(e){var =
n=3Dthis;e=3De||{},e.data=3De.data||{},e.data.page=3De.data.page||this.pa=
gination.get("page"),e.data.per_page=3De.data.per_page||this.pagination.g=
et("per_page"),e.data.locale=3Di.get("current_session.locale"),e.error=3D=
function(){a.trigger("activities:loaderror",n)},e.complete=3Dfunction(){a=
.trigger("activities:loadend",n)},a.trigger("activities:loadstart",n),t.C=
ollection.prototype.fetch.call(this,e)},parse:function(e){var =
t=3D{},i=3De.activities||[],r=3Dn.keys(this.pagination.attributes);return=
=
n.each(r,function(n){t[n]=3De[n]},this),this.pagination.set(t),i}})}),n("=
text",["module"],function(e){var =
n,i,r,o,a,s=3D["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"]=
,u=3D/^\s*<\?xml(\s)+version=3D[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,l=3D/]*>\s*([\s\S]+)\s*<\/body>/im,c=3D"undefined"!=3Dtypeof =
location&&location.href,d=3Dc&&location.protocol&&location.protocol.repla=
ce(/\:/,""),p=3Dc&&location.hostname,f=3Dc&&(location.port||void =
0),h=3D{},m=3De.config&&e.config()||{};return =
n=3D{version:"2.0.12",strip:function(e){if(e){e=3De.replace(u,"");var =
t=3De.match(l);t&&(e=3Dt[1])}else e=3D"";return =
e},jsEscape:function(e){return =
e.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b"=
).replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").re=
place(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:m.=
createXhr||function(){var e,t,n;if("undefined"!=3Dtypeof =
XMLHttpRequest)return new XMLHttpRequest;if("undefined"!=3Dtypeof =
ActiveXObject)for(t=3D0;3>t;t+=3D1){n=3Ds[t];try{e=3Dnew =
ActiveXObject(n)}catch(i){}if(e){s=3D[n];break}}return =
e},parseName:function(e){var =
t,n,i,r=3D!1,o=3De.indexOf("."),a=3D0=3D=3D=3De.indexOf("./")||0=3D=3D=3D=
e.indexOf("../");return-1!=3D=3Do&&(!a||o>1)?(t=3De.substring(0,o),n=3De.=
substring(o+1,e.length)):t=3De,i=3Dn||t,o=3Di.indexOf("!"),-1!=3D=3Do&&(r=
=3D"strip"=3D=3D=3Di.substring(o+1),i=3Di.substring(0,o),n?n=3Di:t=3Di),{=
moduleName:t,ext:n,strip:r}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:=
function(e,t,i,r){var o,a,s,u=3Dn.xdRegExp.exec(e);return =
u?(o=3Du[2],a=3Du[3],a=3Da.split(":"),s=3Da[1],a=3Da[0],!(o&&o!=3D=3Dt||a=
&&a.toLowerCase()!=3D=3Di.toLowerCase()||(s||a)&&s!=3D=3Dr)):!0},finishLo=
ad:function(e,t,i,r){i=3Dt?n.strip(i):i,m.isBuild&&(h[e]=3Di),r(i)},load:=
function(e,t,i,r){if(r&&r.isBuild&&!r.inlineText)return void =
i();m.isBuild=3Dr&&r.isBuild;var =
o=3Dn.parseName(e),a=3Do.moduleName+(o.ext?"."+o.ext:""),s=3Dt.toUrl(a),u=
=3Dm.useXhr||n.useXhr;return 0=3D=3D=3Ds.indexOf("empty:")?void =
i():void(!c||u(s,d,p,f)?n.get(s,function(t){n.finishLoad(e,o.strip,t,i)},=
function(e){i.error&&i.error(e)}):t([a],function(e){n.finishLoad(o.module=
Name+"."+o.ext,o.strip,e,i)}))},write:function(e,t,i){if(h.hasOwnProperty=
(t)){var r=3Dn.jsEscape(h[t]);i.asModule(e+"!"+t,"define(function () { =
return '"+r+"';});\n")}},writeFile:function(e,t,i,r,o){var =
a=3Dn.parseName(t),s=3Da.ext?"."+a.ext:"",u=3Da.moduleName+s,l=3Di.toUrl(=
a.moduleName+s)+".js";n.load(u,i,function(){var t=3Dfunction(e){return =
r(l,e)};t.asModule=3Dfunction(e,t){return =
r.asModule(e,l,t)},n.write(e,u,t,o)},o)}},"node"=3D=3D=3Dm.env||!m.env&&"=
undefined"!=3Dtypeof =
process&&process.versions&&process.versions.node&&!process.versions["node=
-webkit"]?(i=3Dt.nodeRequire("fs"),n.get=3Dfunction(e,t,n){try{var =
r=3Di.readFileSync(e,"utf8");0=3D=3D=3Dr.indexOf("=EF=BB=BF")&&(r=3Dr.sub=
string(1)),t(r)}catch(o){n&&n(o)}}):"xhr"=3D=3D=3Dm.env||!m.env&&n.create=
Xhr()?n.get=3Dfunction(e,t,i,r){var =
o,a=3Dn.createXhr();if(a.open("GET",e,!0),r)for(o in =
r)r.hasOwnProperty(o)&&a.setRequestHeader(o.toLowerCase(),r[o]);m.onXhr&&=
m.onXhr(a,e),a.onreadystatechange=3Dfunction(){var =
n,r;4=3D=3D=3Da.readyState&&(n=3Da.status||0,n>399&&600>n?(r=3Dnew =
Error(e+" HTTP status: =
"+n),r.xhr=3Da,i&&i(r)):t(a.responseText),m.onXhrComplete&&m.onXhrComplet=
e(a,e))},a.send(null)}:"rhino"=3D=3D=3Dm.env||!m.env&&"undefined"!=3Dtype=
of Packages&&"undefined"!=3Dtypeof java?n.get=3Dfunction(e,t){var =
n,i,r=3D"utf-8",o=3Dnew =
java.io.File(e),a=3Djava.lang.System.getProperty("line.separator"),s=3Dne=
w java.io.BufferedReader(new java.io.InputStreamReader(new =
java.io.FileInputStream(o),r)),u=3D"";try{for(n=3Dnew =
java.lang.StringBuffer,i=3Ds.readLine(),i&&i.length()&&65279=3D=3D=3Di.ch=
arAt(0)&&(i=3Di.substring(1)),null!=3D=3Di&&n.append(i);null!=3D=3D(i=3Ds=
.readLine());)n.append(a),n.append(i);u=3DString(n.toString())}finally{s.=
close()}t(u)}:("xpconnect"=3D=3D=3Dm.env||!m.env&&"undefined"!=3Dtypeof =
Components&&Components.classes&&Components.interfaces)&&(r=3DComponents.c=
lasses,o=3DComponents.interfaces,Components.utils["import"]("resource://g=
re/modules/FileUtils.jsm"),a=3D"@mozilla.org/windows-registry-key;1"in =
r,n.get=3Dfunction(e,t){var =
n,i,s,u=3D{};a&&(e=3De.replace(/\//g,"\\")),s=3Dnew =
FileUtils.File(e);try{n=3Dr["@mozilla.org/network/file-input-stream;1"].c=
reateInstance(o.nsIFileInputStream),n.init(s,1,0,!1),i=3Dr["@mozilla.org/=
intl/converter-input-stream;1"].createInstance(o.nsIConverterInputStream)=
,i.init(n,"utf-8",n.available(),o.nsIConverterInputStream.DEFAULT_REPLACE=
MENT_CHARACTER),i.readString(n.available(),u),i.close(),n.close(),t(u.val=
ue)}catch(l){throw new Error((s&&s.path||"")+": =
"+l)}}),n}),n("text!apps/recentActivity/templates/activity.html",[],funct=
ion(){return'"><%=3D parent_name %> \n"><%=3D title =
%> \n\n\n'}),n("apps/recentActivity/views/Activity",["r=
equire","backbone","underscore","i18n","moment","text!../templates/activi=
ty.html"],function(e){var =
t=3De("backbone"),n=3De("underscore"),i=3De("i18n"),r=3De("moment"),o=3De=
("text!../templates/activity.html");return =
t.View.extend({tagName:"li",className:"recent-activity-item",initialize:f=
unction(){this.template=3Dn.template(o),this.render()},getTranslationForA=
ction:function(){var e,t,n,r;return =
e=3Dthis.model.get("action"),t=3D{article_comment_added:!0,post_comment_a=
dded:!0,answer_added:!0},n=3Dt[e]?"comment.added":e.replace("_","."),r=3D=
"views.admin.shared.recent_activity."+n,i.t(r)},render:function(){var =
e,i,o,a,s,u,l;i=3Dthis.model.get("timestamp"),o=3Dthis.getTranslationForA=
ction(),o=3Do.replace("%{time}",r(i).fromNow()),a=3Dthis.model.get("bread=
crumbs"),s=3Dn.last(a),u=3Ds.url||"#",l=3Ds.name||"",e=3Dn.extend({time_t=
ext:o,parent_name:l,parent_url:u},this.model.toJSON()),this.$el.attr("dat=
a-recent-activity-action",e.action),this.$el.html(t.$.parseHTML(this.temp=
late(e)))}})}),n("apps/recentActivity/views/Activities",["require","backb=
one","./Activity"],function(e){var =
t=3De("backbone"),n=3De("./Activity");return =
t.View.extend({tagName:"ul",className:"recent-activity-list",initialize:f=
unction(){this.listenTo(this.collection,"reset",this.render,this),this.li=
stenTo(this.collection,"add",this.onAdd,this),this.hide()},onAdd:function=
(e){var t=3Dnew =
n({model:e});this.el.appendChild(t.el)},hide:function(){this.$el.hide()},=
show:function(){this.$el.show()},render:function(){var =
e=3Ddocument.createDocumentFragment();this.collection.each(function(t){va=
r i=3Dnew =
n({model:t});e.appendChild(i.el)},this),this.el.appendChild(e),this.show(=
)}})}),n("apps/recentActivity/views/Loader",["require","backbone","../Med=
iator"],function(e){var =
t=3De("backbone"),n=3De("../Mediator").instance;return =
t.View.extend({className:"recent-activity-loader",initialize:function(){t=
his.hide(),this.render(),this.listenTo(n,"activities:loadend",this.hide,t=
his),this.listenTo(n,"activities:loadstart",this.show,this)},hide:functio=
n(){this.$el.hide()},show:function(){this.$el.show()},render:function(){t=
his.el.innerHTML=3D"..."}})}),n("apps/recentActivity/views/Header",["requ=
ire","backbone","i18n"],function(e){var =
t=3De("backbone"),n=3De("i18n");return =
t.View.extend({tagName:"h2",className:"recent-activity-header",initialize=
:function(){this.render()},render:function(){this.$el.text(n.t("views.adm=
in.shared.recent_activity.title"))}})}),n("text!apps/recentActivity/templ=
ates/controls.html",[],function(){return'<%=3D see_more =
%> \n'}),n("apps/recentActivity/views/Controls",["require","backbone",=
"underscore","i18n","text!../templates/controls.html","../Mediator"],func=
tion(e){var =
t=3De("backbone"),n=3De("underscore"),i=3De("i18n"),r=3De("text!../templa=
tes/controls.html"),o=3De("../Mediator").instance;return =
t.View.extend({className:"recent-activity-controls",initialize:function()=
{this.listenTo(o,"activities:loadstart",this.hide,this),this.listenTo(o,"=
activities:loaderror",this.hide,this),this.listenTo(o,"pagination:no_page=
s",this.hide,this),this.listenTo(o,"pagination:changed",this.onPagination=
Change,this),this.template=3Dn.template(r),this.render()},events:{"click =
[data-recent-activity-seemore]":"onClick"},hide:function(){this.$el.hide(=
)},show:function(){this.$el.show()},onPaginationChange:function(e){e.get(=
"page")=3D=3D=3De.get("page_count")?this.hide():this.show()},onClick:func=
tion(e){e.preventDefault(),o.trigger("controls:showmore")},render:functio=
n(){this.el.innerHTML=3Dthis.template({see_more:i.t("views.admin.shared.r=
ecent_activity.see_more")})}})}),n("apps/recentActivity/views/Empty",["re=
quire","backbone","i18n","../Mediator"],function(e){var =
t=3De("backbone"),n=3De("i18n"),i=3De("../Mediator").instance;return =
t.View.extend({className:"recent-activity-no-activities",initialize:funct=
ion(){this.listenTo(this.collection,"reset",this.render,this),this.listen=
To(i,"pagination:no_pages",this.onNoPages,this),this.listenTo(i,"activiti=
es:loaderror",this.onLoadError,this)},onLoadError:function(e){0=3D=3D=3De=
.pagination.get("page")&&this.$el.show()},onNoPages:function(){this.$el.s=
how()},render:function(){if(this.collection.length>0)this.$el.hide();else=
{var =
e=3Dn.t("views.admin.shared.recent_activity.no_activities");this.$el.text=
(e),this.$el.show()}}})}),n("apps/recentActivity/views/Master",["require"=
,"backbone","./Activities","./Loader","./Header","./Controls","./Empty","=
../Mediator"],function(e){var =
t=3De("backbone"),n=3De("./Activities"),i=3De("./Loader"),r=3De("./Header=
"),o=3De("./Controls"),a=3De("./Empty"),s=3De("../Mediator").instance,u=3D=
t.View.extend({className:"recent-activity",initialize:function(){this.vie=
ws=3D{},this.views.header=3Dnew r,this.views.loader=3Dnew =
i,this.views.controls=3Dnew o,this.views.empty=3Dnew =
a({collection:this.collection}),this.views.activities=3Dnew =
n({collection:this.collection}),this.listenTo(s,"controls:showmore",this.=
onShowMore,this),this.render()},onShowMore:function(){this.collection.fet=
chMore()},render:function(){var =
e=3Ddocument.createDocumentFragment();e.appendChild(this.views.header.el)=
,e.appendChild(this.views.activities.el),e.appendChild(this.views.empty.e=
l),e.appendChild(this.views.loader.el),e.appendChild(this.views.controls.=
el),this.el.appendChild(e)}});return =
u}),n("apps/recentActivity/App",["require","mout/object/mixIn","./collect=
ions/Activities","./views/Master"],function(e){var =
t,n=3De("mout/object/mixIn"),i=3De("./collections/Activities"),r=3De("./v=
iews/Master");return t=3Dfunction(e){var =
t=3D[];this.options=3Dn({el:'[data-app=3D"recent-activity"]',root_url:"/h=
c/api/internal",ressource:"recent_activities.json",content_type:null,cont=
ent_id:null},e||{}),"string"=3D=3Dtypeof =
this.options.el&&(this.options.el=3Ddocument.querySelector(this.options.e=
l)),"string"=3D=3Dtypeof =
this.options.el.innerHTML&&(t.push(this.options.root_url),this.options.co=
ntent_type&&this.options.content_id?t.push(this.options.content_type,this=
.options.content_id,this.options.ressource):t.push(this.options.ressource=
),this.activities=3Dnew =
i,this.activities.url=3Dt.join("/"),this.master=3Dnew =
r({collection:this.activities}),this.options.el.appendChild(this.master.e=
l),this.activities.fetch({reset:!0,data:{page:1}}))}}),n("apps/snippets/s=
etupRecentActivity",["require","apps/recentActivity/App"],function(e){for=
(var =
t=3De("apps/recentActivity/App"),n=3Ddocument.querySelectorAll("[data-app=
=3Drecent-activity]"),i=3D0;i [role=3Dbutton]":"toggleDropdown","blur > =
[role=3Dmenu]":"closeDropdown"},initialize:function(e){this.label=3De.lab=
el,this.views=3D{toggle:this.buildToggle(),menu:this.buildMenu()},this.re=
nder()},buildToggle:function(){return new =
t.View({tagName:"span",attributes:{role:"button"},className:"wysiwyg-icon=
-formats"})},buildMenu:function(){var e=3Dnew =
t.View({tagName:"span",attributes:{role:"menu","aria-hidden":!0,tabindex:=
"-1"}});return this.collection.each(function(t){var i=3Dnew =
n({model:t}),r=3Dt.get("label"),o=3Dt.get("value");i.$el.text(r).attr("da=
ta-block",o),e.$el.append(i.el)},this),e},render:function(){this.$el.appe=
nd([this.views.toggle.el,this.views.menu.el])},toggleDropdown:function(e)=
{e.stopPropagation(),this.$el.attr({"aria-expanded":!0}),this.$("> =
[role=3Dbutton]").attr({"aria-selected":!0}),this.$("> =
[role=3Dmenu]").attr({"aria-hidden":!1}).focus()},closeDropdown:function(=
){this.$el.attr({"aria-expanded":!1}),this.$("> =
[role=3Dbutton]").attr({"aria-selected":!1}),this.$("> =
[role=3Dmenu]").attr({"aria-hidden":!0})}})}),n("apps/wysiwyg/emitter",["=
require","underscore","backbone"],function(e){var =
t=3De("underscore"),n=3De("backbone");return =
t.clone(n.Events)}),function(e){"function"=3D=3Dtypeof =
n&&n.amd?n("jquery.ui.widget",["jquery"],e):e("object"=3D=3Dtypeof =
exports?t("jquery"):jQuery)}(function(e){var =
t=3D0,n=3DArray.prototype.slice;e.cleanData=3Dfunction(t){return =
function(n){var =
i,r,o;for(o=3D0;null!=3D(r=3Dn[o]);o++)try{i=3De._data(r,"events"),i&&i.r=
emove&&e(r).triggerHandler("remove")}catch(a){}t(n)}}(e.cleanData),e.widg=
et=3Dfunction(t,n,i){var r,o,a,s,u=3D{},l=3Dt.split(".")[0];return =
t=3Dt.split(".")[1],r=3Dl+"-"+t,i||(i=3Dn,n=3De.Widget),e.expr[":"][r.toL=
owerCase()]=3Dfunction(t){return!!e.data(t,r)},e[l]=3De[l]||{},o=3De[l][t=
],a=3De[l][t]=3Dfunction(e,t){return =
this._createWidget?void(arguments.length&&this._createWidget(e,t)):new =
a(e,t)},e.extend(a,o,{version:i.version,_proto:e.extend({},i),_childConst=
ructors:[]}),s=3Dnew =
n,s.options=3De.widget.extend({},s.options),e.each(i,function(t,i){return=
e.isFunction(i)?void(u[t]=3Dfunction(){var e=3Dfunction(){return =
n.prototype[t].apply(this,arguments)},r=3Dfunction(e){return =
n.prototype[t].apply(this,e)};return function(){var =
t,n=3Dthis._super,o=3Dthis._superApply;return =
this._super=3De,this._superApply=3Dr,t=3Di.apply(this,arguments),this._su=
per=3Dn,this._superApply=3Do,t}}()):void(u[t]=3Di)}),a.prototype=3De.widg=
et.extend(s,{widgetEventPrefix:o?s.widgetEventPrefix||t:t},u,{constructor=
:a,namespace:l,widgetName:t,widgetFullName:r}),o?(e.each(o._childConstruc=
tors,function(t,n){var =
i=3Dn.prototype;e.widget(i.namespace+"."+i.widgetName,a,n._proto)}),delet=
e =
o._childConstructors):n._childConstructors.push(a),e.widget.bridge(t,a),a=
},e.widget.extend=3Dfunction(t){for(var =
i,r,o=3Dn.call(arguments,1),a=3D0,s=3Do.length;s>a;a++)for(i in =
o[a])r=3Do[a][i],o[a].hasOwnProperty(i)&&void =
0!=3D=3Dr&&(t[i]=3De.isPlainObject(r)?e.isPlainObject(t[i])?e.widget.exte=
nd({},t[i],r):e.widget.extend({},r):r);return =
t},e.widget.bridge=3Dfunction(t,i){var =
r=3Di.prototype.widgetFullName||t;e.fn[t]=3Dfunction(o){var =
a=3D"string"=3D=3Dtypeof o,s=3Dn.call(arguments,1),u=3Dthis;return =
o=3D!a&&s.length?e.widget.extend.apply(null,[o].concat(s)):o,this.each(a?=
function(){var =
n,i=3De.data(this,r);return"instance"=3D=3D=3Do?(u=3Di,!1):i?e.isFunction=
(i[o])&&"_"!=3D=3Do.charAt(0)?(n=3Di[o].apply(i,s),n!=3D=3Di&&void =
0!=3D=3Dn?(u=3Dn&&n.jquery?u.pushStack(n.get()):n,!1):void =
0):e.error("no such method '"+o+"' for "+t+" widget =
instance"):e.error("cannot call methods on "+t+" prior to =
initialization; attempted to call method '"+o+"'")}:function(){var =
t=3De.data(this,r);t?(t.option(o||{}),t._init&&t._init()):e.data(this,r,n=
ew =
i(o,this))}),u}},e.Widget=3Dfunction(){},e.Widget._childConstructors=3D[]=
,e.Widget.prototype=3D{widgetName:"widget",widgetEventPrefix:"",defaultEl=
ement:"",options:{disabled:!1,create:null},_createWidget:function(n,=
i){i=3De(i||this.defaultElement||this)[0],this.element=3De(i),this.uuid=3D=
t++,this.eventNamespace=3D"."+this.widgetName+this.uuid,this.options=3De.=
widget.extend({},this.options,this._getCreateOptions(),n),this.bindings=3D=
e(),this.hoverable=3De(),this.focusable=3De(),i!=3D=3Dthis&&(e.data(i,thi=
s.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.tar=
get=3D=3D=3Di&&this.destroy()}}),this.document=3De(i.style?i.ownerDocumen=
t:i.document||i),this.window=3De(this.document[0].defaultView||this.docum=
ent[0].parentWindow)),this._create(),this._trigger("create",null,this._ge=
tCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEven=
tData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy=
(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullNam=
e).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this=
.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullN=
ame+"-disabled =
ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hovera=
ble.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-fo=
cus")},_destroy:e.noop,widget:function(){return =
this.element},option:function(t,n){var =
i,r,o,a=3Dt;if(0=3D=3D=3Darguments.length)return =
e.widget.extend({},this.options);if("string"=3D=3Dtypeof =
t)if(a=3D{},i=3Dt.split("."),t=3Di.shift(),i.length){for(r=3Da[t]=3De.wid=
get.extend({},this.options[t]),o=3D0;o
').prop("disabled")),e.support.xhrFileUpload=3D!(!window.Pr=
ogressEvent||!window.FileReader),e.support.xhrFormDataFileUpload=3D!!wind=
ow.FormData,e.support.blobSlice=3Dwindow.Blob&&(Blob.prototype.slice||Blo=
b.prototype.webkitSlice||Blob.prototype.mozSlice),e.widget("blueimp.fileu=
pload",{options:{dropZone:e(document),pasteZone:void 0,fileInput:void =
0,replaceFileInput:!0,paramName:void =
0,singleFileUploads:!0,limitMultiFileUploads:void =
0,limitMultiFileUploadSize:void =
0,limitMultiFileUploadSizeOverhead:512,sequentialUploads:!1,limitConcurre=
ntUploads:void 0,forceIframeTransport:!1,redirect:void =
0,redirectParamName:void 0,postMessage:void =
0,multipart:!0,maxChunkSize:void 0,uploadedBytes:void =
0,recalculateProgress:!0,progressInterval:100,bitrateInterval:500,autoUpl=
oad:!0,messages:{uploadedBytes:"Uploaded bytes exceed file =
size"},i18n:function(t,n){return =
t=3Dthis.messages[t]||t.toString(),n&&e.each(n,function(e,n){t=3Dt.replac=
e("{"+e+"}",n)=0A=
}),t},formData:function(e){return =
e.serializeArray()},add:function(t,n){return =
t.isDefaultPrevented()?!1:void((n.autoUpload||n.autoUpload!=3D=3D!1&&e(th=
is).fileupload("option","autoUpload"))&&n.process().done(function(){n.sub=
mit()}))},processData:!1,contentType:!1,cache:!1},_specialOptions:["fileI=
nput","dropZone","pasteZone","multipart","forceIframeTransport"],_blobSli=
ce:e.support.blobSlice&&function(){var =
e=3Dthis.slice||this.webkitSlice||this.mozSlice;return =
e.apply(this,arguments)},_BitrateTimer:function(){this.timestamp=3DDate.n=
ow?Date.now():(new =
Date).getTime(),this.loaded=3D0,this.bitrate=3D0,this.getBitrate=3Dfuncti=
on(e,t,n){var =
i=3De-this.timestamp;return(!this.bitrate||!n||i>n)&&(this.bitrate=3D(t-t=
his.loaded)*(1e3/i)*8,this.loaded=3Dt,this.timestamp=3De),this.bitrate}},=
_isXHRUpload:function(t){return!t.forceIframeTransport&&(!t.multipart&&e.=
support.xhrFileUpload||e.support.xhrFormDataFileUpload)},_getFormData:fun=
ction(t){var =
n;return"function"=3D=3D=3De.type(t.formData)?t.formData(t.form):e.isArra=
y(t.formData)?t.formData:"object"=3D=3D=3De.type(t.formData)?(n=3D[],e.ea=
ch(t.formData,function(e,t){n.push({name:e,value:t})}),n):[]},_getTotal:f=
unction(t){var n=3D0;return =
e.each(t,function(e,t){n+=3Dt.size||1}),n},_initProgressObject:function(t=
){var =
n=3D{loaded:0,total:0,bitrate:0};t._progress?e.extend(t._progress,n):t._p=
rogress=3Dn},_initResponseObject:function(e){var t;if(e._response)for(t =
in e._response)e._response.hasOwnProperty(t)&&delete e._response[t];else =
e._response=3D{}},_onProgress:function(t,n){if(t.lengthComputable){var =
i,r=3DDate.now?Date.now():(new =
Date).getTime();if(n._time&&n.progressInterval&&r-n._time").prop("href",t.url).prop("host");t.dataType=3D"iframe =
"+(t.dataType||""),t.formData=3Dthis._getFormData(t),t.redirect&&n&&n!=3D=
=3Dlocation.host&&t.formData.push({name:t.redirectParamName||"redirect",v=
alue:t.redirect})},_initDataSettings:function(e){this._isXHRUpload(e)?(th=
is._chunkedUpload(e,!0)||(e.data||this._initXHRData(e),this._initProgress=
Listener(e)),e.postMessage&&(e.dataType=3D"postmessage =
"+(e.dataType||""))):this._initIframeSettings(e)},_getParamName:function(=
t){var n=3De(t.fileInput),i=3Dt.paramName;return =
i?e.isArray(i)||(i=3D[i]):(i=3D[],n.each(function(){for(var =
t=3De(this),n=3Dt.prop("name")||"files[]",r=3D(t.prop("files")||[1]).leng=
th;r;)i.push(n),r-=3D1}),i.length||(i=3D[n.prop("name")||"files[]"])),i},=
_initFormSettings:function(t){t.form&&t.form.length||(t.form=3De(t.fileIn=
put.prop("form")),t.form.length||(t.form=3De(this.options.fileInput.prop(=
"form")))),t.paramName=3Dthis._getParamName(t),t.url||(t.url=3Dt.form.pro=
p("action")||location.href),t.type=3D(t.type||"string"=3D=3D=3De.type(t.f=
orm.prop("method"))&&t.form.prop("method")||"").toUpperCase(),"POST"!=3D=3D=
t.type&&"PUT"!=3D=3Dt.type&&"PATCH"!=3D=3Dt.type&&(t.type=3D"POST"),t.for=
mAcceptCharset||(t.formAcceptCharset=3Dt.form.attr("accept-charset"))},_g=
etAJAXSettings:function(t){var n=3De.extend({},this.options,t);return =
this._initFormSettings(n),this._initDataSettings(n),n},_getDeferredState:=
function(e){return =
e.state?e.state():e.isResolved()?"resolved":e.isRejected()?"rejected":"pe=
nding"},_enhancePromise:function(e){return =
e.success=3De.done,e.error=3De.fail,e.complete=3De.always,e},_getXHRPromi=
se:function(t,n,i){var r=3De.Deferred(),o=3Dr.promise();return =
n=3Dn||this.options.context||o,t=3D=3D=3D!0?r.resolveWith(n,i):t=3D=3D=3D=
!1&&r.rejectWith(n,i),o.abort=3Dr.promise,this._enhancePromise(o)},_addCo=
nvenienceMethods:function(t,n){var i=3Dthis,r=3Dfunction(t){return =
e.Deferred().resolveWith(i,t).promise()};n.process=3Dfunction(t,o){return=
(t||o)&&(n._processQueue=3Dthis._processQueue=3D(this._processQueue||r([t=
his])).pipe(function(){return =
n.errorThrown?e.Deferred().rejectWith(i,[n]).promise():r(arguments)}).pip=
e(t,o)),this._processQueue||r([this])},n.submit=3Dfunction(){return"pendi=
ng"!=3D=3Dthis.state()&&(n.jqXHR=3Dthis.jqXHR=3Di._trigger("submit",e.Eve=
nt("submit",{delegatedEvent:t}),this)!=3D=3D!1&&i._onSend(t,this)),this.j=
qXHR||i._getXHRPromise()},n.abort=3Dfunction(){return =
this.jqXHR?this.jqXHR.abort():(this.errorThrown=3D"abort",i._trigger("fai=
l",null,this),i._getXHRPromise(!1))},n.state=3Dfunction(){return =
this.jqXHR?i._getDeferredState(this.jqXHR):this._processQueue?i._getDefer=
redState(this._processQueue):void =
0},n.processing=3Dfunction(){return!this.jqXHR&&this._processQueue&&"pend=
ing"=3D=3D=3Di._getDeferredState(this._processQueue)},n.progress=3Dfuncti=
on(){return this._progress},n.response=3Dfunction(){return =
this._response}},_getUploadedBytes:function(e){var =
t=3De.getResponseHeader("Range"),n=3Dt&&t.split("-"),i=3Dn&&n.length>1&&p=
arseInt(n[1],10);return =
i&&i+1},_chunkedUpload:function(t,n){t.uploadedBytes=3Dt.uploadedBytes||0=
;var =
i,r,o=3Dthis,a=3Dt.files[0],s=3Da.size,u=3Dt.uploadedBytes,l=3Dt.maxChunk=
Size||s,c=3Dthis._blobSlice,d=3De.Deferred(),p=3Dd.promise();return =
this._isXHRUpload(t)&&c&&(u||s>l)&&!t.data?n?!0:u>=3Ds?(a.error=3Dt.i18n(=
"uploadedBytes"),this._getXHRPromise(!1,t.context,[null,"error",a.error])=
):(r=3Dfunction(){var =
n=3De.extend({},t),p=3Dn._progress.loaded;n.blob=3Dc.call(a,u,u+l,a.type)=
,n.chunkSize=3Dn.blob.size,n.contentRange=3D"bytes =
"+u+"-"+(u+n.chunkSize-1)+"/"+s,o._initXHRData(n),o._initProgressListener=
(n),i=3D(o._trigger("chunksend",null,n)!=3D=3D!1&&e.ajax(n)||o._getXHRPro=
mise(!1,n.context)).done(function(i,a,l){u=3Do._getUploadedBytes(l)||u+n.=
chunkSize,p+n.chunkSize-n._progress.loaded&&o._onProgress(e.Event("progre=
ss",{lengthComputable:!0,loaded:u-n.uploadedBytes,total:u-n.uploadedBytes=
}),n),t.uploadedBytes=3Dn.uploadedBytes=3Du,n.result=3Di,n.textStatus=3Da=
,n.jqXHR=3Dl,o._trigger("chunkdone",null,n),o._trigger("chunkalways",null=
,n),s>u?r():d.resolveWith(n.context,[i,a,l])}).fail(function(e,t,i){n.jqX=
HR=3De,n.textStatus=3Dt,n.errorThrown=3Di,o._trigger("chunkfail",null,n),=
o._trigger("chunkalways",null,n),d.rejectWith(n.context,[e,t,i])})},this.=
_enhancePromise(p),p.abort=3Dfunction(){return =
i.abort()},r(),p):!1},_beforeSend:function(e,t){0=3D=3D=3Dthis._active&&(=
this._trigger("start"),this._bitrateTimer=3Dnew =
this._BitrateTimer,this._progress.loaded=3Dthis._progress.total=3D0,this.=
_progress.bitrate=3D0),this._initResponseObject(t),this._initProgressObje=
ct(t),t._progress.loaded=3Dt.loaded=3Dt.uploadedBytes||0,t._progress.tota=
l=3Dt.total=3Dthis._getTotal(t.files)||1,t._progress.bitrate=3Dt.bitrate=3D=
0,this._active+=3D1,this._progress.loaded+=3Dt.loaded,this._progress.tota=
l+=3Dt.total},_onDone:function(t,n,i,r){var =
o=3Dr._progress.total,a=3Dr._response;r._progress.loadeds._sending)for(var =
i=3Ds._slots.shift();i;){if("pending"=3D=3D=3Ds._getDeferredState(i)){i.r=
esolve();break}i=3Ds._slots.shift()}0=3D=3D=3Ds._active&&s._trigger("stop=
")})};return =
this._beforeSend(t,u),this.options.sequentialUploads||this.options.limitC=
oncurrentUploads&&this.options.limitConcurrentUploads<=3Dthis._sending?(t=
his.options.limitConcurrentUploads>1?(o=3De.Deferred(),this._slots.push(o=
),a=3Do.pipe(l)):(this._sequence=3Dthis._sequence.pipe(l,l),a=3Dthis._seq=
uence),a.abort=3Dfunction(){return r=3D[void =
0,"abort","abort"],i?i.abort():(o&&o.rejectWith(u.context,r),l())},this._=
enhancePromise(a)):l()},_onAdd:function(t,n){var =
i,r,o,a,s=3Dthis,u=3D!0,l=3De.extend({},this.options,n),c=3Dn.files,d=3Dc=
.length,p=3Dl.limitMultiFileUploads,f=3Dl.limitMultiFileUploadSize,h=3Dl.=
limitMultiFileUploadSizeOverhead,m=3D0,g=3Dthis._getParamName(l),v=3D0;if=
(!f||d&&void 0!=3D=3Dc[0].size||(f=3Dvoid =
0),(l.singleFileUploads||p||f)&&this._isXHRUpload(l))if(l.singleFileUploa=
ds||f||!p)if(!l.singleFileUploads&&f)for(o=3D[],i=3D[],a=3D0;d>a;a+=3D1)m=
+=3Dc[a].size+h,(a+1=3D=3D=3Dd||m+c[a+1].size+h>f||p&&a+1-v>=3Dp)&&(o.pus=
h(c.slice(v,a+1)),r=3Dg.slice(v,a+1),r.length||(r=3Dg),i.push(r),v=3Da+1,=
m=3D0);else i=3Dg;else =
for(o=3D[],i=3D[],a=3D0;d>a;a+=3Dp)o.push(c.slice(a,a+p)),r=3Dg.slice(a,a=
+p),r.length||(r=3Dg),i.push(r);else o=3D[c],i=3D[g];return =
n.originalFiles=3Dc,e.each(o||c,function(r,a){var =
l=3De.extend({},n);return =
l.files=3Do?a:[a],l.paramName=3Di[r],s._initResponseObject(l),s._initProg=
ressObject(l),s._addConvenienceMethods(t,l),u=3Ds._trigger("add",e.Event(=
"add",{delegatedEvent:t}),l)}),u},_replaceFileInput:function(t){var =
n=3Dt.fileInput,i=3Dn.clone(!0);t.fileInputClone=3Di,e("").a=
ppend(i)[0].reset(),n.after(i).detach(),e.cleanData(n.unbind("remove")),t=
his.options.fileInput=3Dthis.options.fileInput.map(function(e,t){return =
t=3D=3D=3Dn[0]?i[0]:t}),n[0]=3D=3D=3Dthis.element[0]&&(this.element=3Di)}=
,_handleFileTreeEntry:function(t,n){var =
i,r=3Dthis,o=3De.Deferred(),a=3Dfunction(e){e&&!e.entry&&(e.entry=3Dt),o.=
resolve([e])},s=3Dfunction(e){r._handleFileTreeEntries(e,n+t.name+"/").do=
ne(function(e){o.resolve(e)}).fail(a)},u=3Dfunction(){i.readEntries(funct=
ion(e){e.length?(l=3Dl.concat(e),u()):s(l)},a)},l=3D[];return =
n=3Dn||"",t.isFile?t._file?(t._file.relativePath=3Dn,o.resolve(t._file)):=
t.file(function(e){e.relativePath=3Dn,o.resolve(e)},a):t.isDirectory?(i=3D=
t.createReader(),u()):o.resolve([]),o.promise()},_handleFileTreeEntries:f=
unction(t,n){var i=3Dthis;return =
e.when.apply(e,e.map(t,function(e){return =
i._handleFileTreeEntry(e,n)})).pipe(function(){return =
Array.prototype.concat.apply([],arguments)})},_getDroppedFiles:function(t=
){t=3Dt||{};var n=3Dt.items;return =
n&&n.length&&(n[0].webkitGetAsEntry||n[0].getAsEntry)?this._handleFileTre=
eEntries(e.map(n,function(e){var t;return =
e.webkitGetAsEntry?(t=3De.webkitGetAsEntry(),t&&(t._file=3De.getAsFile())=
,t):e.getAsEntry()})):e.Deferred().resolve(e.makeArray(t.files)).promise(=
)},_getSingleFileInputFiles:function(t){t=3De(t);var =
n,i,r=3Dt.prop("webkitEntries")||t.prop("entries");if(r&&r.length)return =
this._handleFileTreeEntries(r);if(n=3De.makeArray(t.prop("files")),n.leng=
th)void =
0=3D=3D=3Dn[0].name&&n[0].fileName&&e.each(n,function(e,t){t.name=3Dt.fil=
eName,t.size=3Dt.fileSize});else{if(i=3Dt.prop("value"),!i)return =
e.Deferred().resolve([]).promise();n=3D[{name:i.replace(/^.*\\/,"")}]}ret=
urn =
e.Deferred().resolve(n).promise()},_getFileInputFiles:function(t){return =
t instanceof =
e&&1!=3D=3Dt.length?e.when.apply(e,e.map(t,this._getSingleFileInputFiles)=
).pipe(function(){return =
Array.prototype.concat.apply([],arguments)}):this._getSingleFileInputFile=
s(t)},_onChange:function(t){var =
n=3Dthis,i=3D{fileInput:e(t.target),form:e(t.target.form)};this._getFileI=
nputFiles(i.fileInput).always(function(r){i.files=3Dr,n.options.replaceFi=
leInput&&n._replaceFileInput(i),n._trigger("change",e.Event("change",{del=
egatedEvent:t}),i)!=3D=3D!1&&n._onAdd(t,i)})},_onPaste:function(t){var =
n=3Dt.originalEvent&&t.originalEvent.clipboardData&&t.originalEvent.clipb=
oardData.items,i=3D{files:[]};n&&n.length&&(e.each(n,function(e,t){var =
n=3Dt.getAsFile&&t.getAsFile();n&&i.files.push(n)}),this._trigger("paste"=
,e.Event("paste",{delegatedEvent:t}),i)!=3D=3D!1&&this._onAdd(t,i))},_onD=
rop:function(t){t.dataTransfer=3Dt.originalEvent&&t.originalEvent.dataTra=
nsfer;var =
n=3Dthis,i=3Dt.dataTransfer,r=3D{};i&&i.files&&i.files.length&&(t.prevent=
Default(),this._getDroppedFiles(i).always(function(i){r.files=3Di,n._trig=
ger("drop",e.Event("drop",{delegatedEvent:t}),r)!=3D=3D!1&&n._onAdd(t,r)}=
))},_onDragOver:t("dragover"),_onDragEnter:t("dragenter"),_onDragLeave:t(=
"dragleave"),_initEventHandlers:function(){this._isXHRUpload(this.options=
)&&(this._on(this.options.dropZone,{dragover:this._onDragOver,drop:this._=
onDrop,dragenter:this._onDragEnter,dragleave:this._onDragLeave}),this._on=
(this.options.pasteZone,{paste:this._onPaste})),e.support.fileInput&&this=
._on(this.options.fileInput,{change:this._onChange})},_destroyEventHandle=
rs:function(){this._off(this.options.dropZone,"dragenter dragleave =
dragover =
drop"),this._off(this.options.pasteZone,"paste"),this._off(this.options.f=
ileInput,"change")},_setOption:function(t,n){var =
i=3D-1!=3D=3De.inArray(t,this._specialOptions);i&&this._destroyEventHandl=
ers(),this._super(t,n),i&&(this._initSpecialOptions(),this._initEventHand=
lers())},_initSpecialOptions:function(){var t=3Dthis.options;void =
0=3D=3D=3Dt.fileInput?t.fileInput=3Dthis.element.is('input[type=3D"file"]=
')?this.element:this.element.find('input[type=3D"file"]'):t.fileInput =
instanceof e||(t.fileInput=3De(t.fileInput)),t.dropZone instanceof =
e||(t.dropZone=3De(t.dropZone)),t.pasteZone instanceof =
e||(t.pasteZone=3De(t.pasteZone))},_getRegExp:function(e){var =
t=3De.split("/"),n=3Dt.pop();return t.shift(),new =
RegExp(t.join("/"),n)},_isRegExpOption:function(t,n){return"url"!=3D=3Dt&=
&"string"=3D=3D=3De.type(n)&&/^\/.*\/[igm]{0,3}$/.test(n)},_initDataAttri=
butes:function(){var =
t=3Dthis,n=3Dthis.options,i=3Dthis.element.data();e.each(this.element[0].=
attributes,function(e,r){var =
o,a=3Dr.name.toLowerCase();/^data-/.test(a)&&(a=3Da.slice(5).replace(/-[a=
-z]/g,function(e){return =
e.charAt(1).toUpperCase()}),o=3Di[a],t._isRegExpOption(a,o)&&(o=3Dt._getR=
egExp(o)),n[a]=3Do)})},_create:function(){this._initDataAttributes(),this=
._initSpecialOptions(),this._slots=3D[],this._sequence=3Dthis._getXHRProm=
ise(!0),this._sending=3Dthis._active=3D0,this._initProgressObject(this),t=
his._initEventHandlers()},active:function(){return =
this._active},progress:function(){return =
this._progress},add:function(t){var =
n=3Dthis;t&&!this.options.disabled&&(t.fileInput&&!t.files?this._getFileI=
nputFiles(t.fileInput).always(function(e){t.files=3De,n._onAdd(null,t)}):=
(t.files=3De.makeArray(t.files),this._onAdd(null,t)))},send:function(t){i=
f(t&&!this.options.disabled){if(t.fileInput&&!t.files){var =
n,i,r=3Dthis,o=3De.Deferred(),a=3Do.promise();return =
a.abort=3Dfunction(){return =
i=3D!0,n?n.abort():(o.reject(null,"abort","abort"),a)},this._getFileInput=
Files(t.fileInput).always(function(e){if(!i){if(!e.length)return void =
o.reject();t.files=3De,n=3Dr._onSend(null,t),n.then(function(e,t,n){o.res=
olve(e,t,n)},function(e,t,n){o.reject(e,t,n)})}}),this._enhancePromise(a)=
}if(t.files=3De.makeArray(t.files),t.files.length)return =
this._onSend(null,t)}return =
this._getXHRPromise(!1,t&&t.context)}})}),n("apps/wysiwyg/views/Image",["=
require","domlib","underscore","i18n","./Command","hcbridge","../emitter"=
,"jquery.fileupload"],function(e){var =
t=3De("domlib"),n=3De("underscore"),i=3De("i18n"),r=3De("./Command"),o=3D=
e("hcbridge").instance,a=3De("../emitter");return =
e("jquery.fileupload"),r.extend({events:{},initialize:function(){r.protot=
ype.initialize.apply(this,arguments),this.listenTo(a,"upload:filesdropped=
",this.filesDropped),this.imageOpacityStart=3D.15,this.render()},render:f=
unction(){var e=3Dt(" ");e.fileupload({url:"/hc/user_images",dataType:"json",type:"POS=
T",acceptFileTypes:/(\.|\/)(gif|jpe?g|png)$/i,formData:[{name:"authentici=
ty_token",value:o.get("current_session.csrf_token")}],paramName:"file",dr=
opZone:null,add:n.bind(this.add,this),progress:n.bind(this.progress,this)=
,done:n.bind(this.done,this),fail:n.bind(this.fail,this),always:n.bind(th=
is.always,this)}),this.$el.append(e)},add:function(e,t){if(t.files[0].siz=
e>2097152)return void =
a.trigger("upload:denied",{message:i.t("views.shared.image_upload_generic=
_error",{max_size:2})});if(!window.FileReader)return void t.submit();var =
n=3Dt.files[0];this.insertPreview(n).done(t.submit.bind(t))},insertPrevie=
w:function(e){var i=3Dt.Deferred(),r=3Dnew window.FileReader;return =
r.onload=3Dfunction(e,t){var =
r=3Dt.target.result,o=3Dn.uniqueId("wysiwyg_image_"),s=3D" ";this.model.set({value:s}),this.execCommand(),e.wysiwygImgI=
D=3Do,a.trigger("upload:preview",{imageId:o}),i.resolve()}.bind(this,e),r=
.readAsDataURL(e),i.promise()},progress:function(e,t){var =
n=3DparseInt(t.loaded/t.total*100,10),i=3Dt.files[0].wysiwygImgID;a.trigg=
er("upload:progress",{imageOpacityStart:this.imageOpacityStart,progress:n=
,imageId:i})},done:function(e,t){var =
n=3Dt.result.image.relative_url,i=3Dt.files[0].wysiwygImgID;i?a.trigger("=
upload:success",{imageURL:n,imageId:i}):(this.model.set({value:" "}),this.execCommand(),a.trigger("upload:success"))},fail:function(e,t)=
{var =
n=3Dt.files[0].wysiwygImgID,r=3Dt.jqXHR.responseJSON?t.jqXHR.responseJSON=
.error:i.t("views.shared.image_upload_generic_error",{max_size:2});a.trig=
ger("upload:error",{message:r,imageId:n})},always:function(e,t){var =
n=3Dt.files[0].wysiwygImgID;a.trigger("upload:complete",{imageId:n})},fil=
esDropped:function(e){this.$("input").fileupload("add",{files:e})}})}),n(=
"apps/wysiwyg/views/Link",["require","./Command","../emitter"],function(e=
){var t=3De("./Command"),n=3De("../emitter");return =
t.extend({events:{click:"prompt"},initialize:function(){t.prototype.initi=
alize.apply(this,arguments),this.listenTo(n,"link:submit",this.submit)},p=
rompt:function(){var =
e=3Dthis.editor.selection.getNode(),t=3De.getAttribute("href"),i=3Dt||"";=
n.trigger("link:prompt",{url:i})},submit:function(e){var =
t=3Dthis.editor.selection.getNode(),n=3Dthis.editor.selection.getContent(=
{format:"text"}),i=3De.url,r=3Dt.getAttribute("href");return =
i?(i=3D"http"=3D=3D=3Di.substring(0,4)?i:"http://"+i,r?(t.setAttribute("h=
ref",i),void =
t.setAttribute("data-mce-href",i)):(this.model.set(n?{command:"mceInsertL=
ink",value:{href:i,target:"_blank",rel:null}}:{command:"mceInsertContent"=
,value:""+i+" "}),void =
this.execCommand())):void =
this.editor.execCommand("unlink")}})}),n("apps/wysiwyg/views/Toolbar",["r=
equire","underscore","backbone","i18n","../models/Command","./Formats",".=
/Command","./Image","./Link"],function(e){var =
t=3De("underscore"),n=3De("backbone"),i=3De("i18n"),r=3De("../models/Comm=
and"),o=3De("./Formats"),a=3De("./Command"),s=3De("./Image"),u=3De("./Lin=
k");return =
n.View.extend({attributes:{role:"toolbar"},initialize:function(e){this.vi=
ews=3D[],t.each(e.items,function(e){switch(e){case"|":this.buildSeparator=
();break;case"bold":this.buildBoldButton();break;case"italic":this.buildI=
talicButton();break;case"numlist":this.buildOlButton();break;case"bullist=
":this.buildUlButton();break;case"formats":this.buildFormatsButton();brea=
k;case"image":this.buildImageButton();break;case"link":this.buildLinkButt=
on()}},this),this.render()},buildSeparator:function(){var e=3Dnew =
n.View({tagName:"span",attributes:{role:"separator"}});this.views.push(e)=
},buildBoldButton:function(){var e=3Dnew =
a({className:"wysiwyg-icon-bold",model:new =
r({command:"bold",name:"bold"})});this.views.push(e)},buildItalicButton:f=
unction(){var e=3Dnew a({className:"wysiwyg-icon-italic",model:new =
r({command:"italic",name:"italic"})});this.views.push(e)},buildOlButton:f=
unction(){var e=3Dnew a({className:"wysiwyg-icon-numlist",model:new =
r({command:"InsertOrderedList",name:"numlist",selector:"ol > =
li"})});this.views.push(e)},buildUlButton:function(){var e=3Dnew =
a({className:"wysiwyg-icon-bullist",model:new =
r({command:"InsertUnorderedList",name:"bullist",selector:"ul > =
li"})});this.views.push(e)},buildFormatsButton:function(){var e=3Dnew =
n.Collection([{command:"FormatBlock",value:"p",label:i.t("txt.help_center=
.views.shared._wysiwyg.normal_text"),selector:"p"},{command:"FormatBlock"=
,value:"pre",label:i.t("txt.help_center.views.shared._wysiwyg.code"),sele=
ctor:"pre"},{command:"FormatBlock",value:"h2",label:i.t("txt.help_center.=
views.shared._wysiwyg.header_2"),selector:"h2"},{command:"FormatBlock",va=
lue:"h3",label:i.t("txt.help_center.views.shared._wysiwyg.header_3"),sele=
ctor:"h3"},{command:"FormatBlock",value:"h4",label:i.t("txt.help_center.v=
iews.shared._wysiwyg.header_4"),selector:"h4"}],{model:r}),t=3Dnew =
o({collection:e});this.views.push(t)},buildImageButton:function(){var =
e=3Dnew s({className:"wysiwyg-icon-image",model:new =
r({command:"mceInsertContent",name:"image",selector:"img"})});this.views.=
push(e)},buildLinkButton:function(){var e=3Dnew =
u({className:"wysiwyg-icon-link",model:new =
r({name:"link",selector:"a[href]"})});this.views.push(e)},render:function=
(){this.$el.append(t.pluck(this.views,"el"))}})}),n("apps/wysiwyg/views/I=
frame",["require","underscore","backbone","../emitter","../editor"],funct=
ion(e){var =
t=3De("underscore"),n=3De("backbone"),i=3De("../emitter"),r=3De("../edito=
r").instance;return =
n.View.extend({attributes:{role:"group"},events:{dragover:"emitDragoverEv=
ent"},initialize:function(){this.editor=3Dr.getEditor(),this.$images=3D{}=
,this.listenTo(i,"upload:error",this.uploadError),this.listenTo(i,"upload=
:preview",this.uploadPreview),this.listenTo(i,"upload:progress",this.upda=
teProgress),this.listenTo(i,"upload:success",this.uploadSuccess),this.lis=
tenTo(i,"upload:complete",this.uploadComplete),this.editor.on("init",t.bi=
nd(function(){this.editor.iframeElement.removeAttribute("title"),this.set=
Element(this.editor.iframeElement.contentWindow.document),this.delegateEv=
ents()},this))},emitDragoverEvent:function(){i.trigger("iframe:dragover")=
},uploadPreview:function(e){var =
t=3Dthis.$("#"+e.imageId);this.$images[e.imageId]=3Dt},updateProgress:fun=
ction(e){if(e.progress%5=3D=3D=3D0){var =
t=3Dthis.$images[e.imageId];t.parent().attr({role:"progressbar","aria-val=
uenow":e.progress});var =
n=3De.imageOpacityStart,i=3D.01*e.progress;if(!(n>i)){var =
r=3D"opacity:"+i+";";t.attr({style:r,"data-mce-style":r})}}},uploadSucces=
s:function(e){var =
t=3Dthis.$images[e.imageId];t.attr({src:e.imageURL,"data-mce-src":e.image=
URL,style:"","data-mce-style":""}).parent().removeAttr("role").removeAttr=
("aria-valuenow").removeAttr("contenteditable")},uploadError:function(e){=
var =
t=3Dthis.$images[e.imageId];t.parent().remove()},uploadComplete:function(=
e){delete =
this.$images[e.imageId]}})}),n("apps/wysiwyg/views/Dropzone",["require","=
backbone","../emitter"],function(e){var =
t=3De("backbone"),n=3De("../emitter");return =
t.View.extend({tagName:"a",attributes:{"aria-dropeffect":"execute","aria-=
hidden":"true",title:"Drop file =
here"},initialize:function(){if(window.File&&window.FileList&&window.File=
Reader){var e=3Dnew =
XMLHttpRequest;e.upload&&(this.listenTo(n,"iframe:dragover",this.show.bin=
d(this)),document.addEventListener("dragover",this.dragover.bind(this)),d=
ocument.addEventListener("drop",function(e){e.preventDefault()}),this.el.=
addEventListener("drop",this.drop.bind(this),!1))}},show:function(){this.=
$el.attr("aria-hidden",!1)},hide:function(){this.$el.attr("aria-hidden",!=
0)},dragover:function(e){e.preventDefault(),this.timeout?clearTimeout(thi=
s.timeout):this.show(),this.timeout=3DsetTimeout(function(){this.timeout=3D=
null,this.hide()}.bind(this),100)},drop:function(e){e.stopPropagation(),e=
.preventDefault();var =
t=3De.target.files||e.dataTransfer.files;n.trigger("upload:filesdropped",=
t)}})}),n("text!apps/wysiwyg/templates/link-form.html",[],function(){retu=
rn'<%=3D i18n.t("views.shared._wysiwyg.link") %>: \n " placeholder=3D"http://">\n<%=3D i18n.t("views.admin.shared.ok") %> \n<%=3D i18n.t("views.admin.shared.cancel") =
%> \n'}),n("apps/wysiwyg/views/LinkForm",["require","underscore","b=
ackbone","text!../templates/link-form.html","../emitter","i18n"],function=
(e){var =
t=3De("underscore"),n=3De("backbone"),i=3De("text!../templates/link-form.=
html"),r=3De("../emitter"),o=3De("i18n");return =
n.View.extend({attributes:{role:"form","aria-expanded":!1},template:t.tem=
plate(i),events:{"click [role=3Dbutton]:first":"submit","click =
[role=3Dbutton]:last":"close","keydown =
input":"keydown"},initialize:function(){this.listenTo(r,"link:prompt",thi=
s.render)},render:function(e){this.$el.html(this.template({url:e.url.repl=
ace(/"/g,""")||"",i18n:o})).attr("aria-expanded",!0).find("input").f=
ocus()},submit:function(){var =
e=3Dthis.$("input").val();r.trigger("link:submit",{url:e}),this.close()},=
close:function(){this.$el.attr("aria-expanded",!1)},keydown:function(e){s=
witch(e.keyCode){case 13:e.preventDefault(),this.submit();break;case =
27:e.stopPropagation(),this.close()}}})}),n("text!apps/wysiwyg/templates/=
error.html",[],function(){return'\n \n =
<%=3D message =
%> \n \n'}),n("apps/wysiwyg/views/Error",["require","undersco=
re","backbone","../emitter","text!../templates/error.html"],function(e){v=
ar =
t=3De("underscore"),n=3De("backbone"),i=3De("../emitter"),r=3De("text!../=
templates/error.html");return =
n.View.extend({attributes:{role:"alert","aria-hidden":!0},template:t.temp=
late(r),initialize:function(){this.listenTo(i,"upload:denied",this.error)=
,this.listenTo(i,"upload:error",this.error),this.listenTo(i,"upload:succe=
ss",this.success)},render:function(e){this.$el.html(this.template({messag=
e:e}))},error:function(e){var =
t=3De.message;this.render(t),this.$el.attr("aria-hidden",!1)},success:fun=
ction(){this.$el.attr("aria-hidden",!0)}})}),n("apps/wysiwyg/views/Contai=
ner",["require","backbone","./Toolbar","./Iframe","./Dropzone","./LinkFor=
m","./Error"],function(e){var =
t=3De("backbone"),n=3De("./Toolbar"),i=3De("./Iframe"),r=3De("./Dropzone"=
),o=3De("./LinkForm"),a=3De("./Error");return =
t.View.extend({id:"hc-wysiwyg",attributes:{role:"application"},initialize=
:function(e){this.views=3D{toolbar:new =
n({items:e.editor.settings.toolbar.split(" ")}),LinkForm:new =
o,iframe:new i,dropzone:new r,error:new =
a},this.render()},render:function(){this.$el.append([this.views.toolbar.e=
l,this.views.LinkForm.el,this.views.iframe.el,this.views.dropzone.el,this=
.views.error.el])}})}),n("text!apps/wysiwyg/content.css",[],function(){re=
turn'body {\n background: #FFF;\n font: normal normal 13px =
sans-serif;\n line-height: 1.3;\n}\n\nimg {\n display: block;\n =
max-width: 100%;\n transition: opacity 1s;\n}\n\npre {\n background: =
rgba(0,0,0, .015);\n border: 1px solid rgba(0,0,0, .025);\n =
border-radius: 2px;\n padding: 5px;\n}\n\nimg[width] { width: auto; =
}\n\nimg[height] { height: auto; }\n\n[role=3Dprogressbar] { position: =
relative; }\n\n[role=3Dprogressbar]:before {\n content: =
attr(aria-valuenow)"%" ;\n position: absolute;\n color: #FFF;\n =
font-weight: bold;\n width: 50px;\n height: 50px;\n margin-left: =
-25px;\n margin-top: -25px;\n line-height: 50px;\n left: 50%;\n top: =
50%;\n border-radius: 50%;\n background: rgba(0,0,0, .5);\n =
text-align: center;\n z-index: =
1;\n}\n'}),n("apps/wysiwyg/submit",["require","underscore"],function(e){f=
unction t(){var =
e=3Dthis,t=3De.iframeElement.contentDocument,i=3Dt.querySelectorAll("pre"=
);n.each(i,function(e){var =
t=3De.children;(1!=3D=3Dt.length||"CODE"!=3D=3Dt[0].nodeName)&&(e.innerHT=
ML=3D""+e.innerHTML+"
")}),e.save()}var =
n=3De("underscore");return =
t}),n("apps/wysiwyg/theme",["require","underscore","./views/Container","t=
ext!./content.css","./emitter","./editor","./submit"],function(e){functio=
n t(e,t,o){t=3Dt.setEditor(o);var a=3Dt.targetElm,u=3Dnew =
i({editor:t});n.defaults(t.settings,{content_style:r,browser_spellcheck:!=
0,auto_focus:t.id,height:"100%",inline:!0}),n.extend(t.settings,{object_r=
esizing:!1,relative_urls:!1,plugins:"paste",paste_data_images:!0,paste_me=
rge_formats:!0}),u.$el.insertAfter(a),this.renderUI=3Dfunction(){return{e=
ditorContainer:u.el,iframeContainer:u.views.iframe.el}},t.on("submit",s)}=
var =
n=3De("underscore"),i=3De("./views/Container"),r=3De("text!./content.css"=
),o=3De("./emitter"),a=3De("./editor").instance,s=3De("./submit");return =
n.bind(t,null,o,a)}),n("apps/snippets/setupTinyMCESlim",["require","domli=
b","tinymce-adapter","apps/wysiwyg/theme"],function(e){var =
t=3De("domlib"),n=3De("tinymce-adapter"),i=3De("apps/wysiwyg/theme");retu=
rn =
function(e){if(n&&n.ThemeManager){n.ThemeManager.add("custom",i),e.theme=3D=
"custom";var =
r=3Dt(e.selector);r.val()&&n.init(e),r.one("focus",function(){n.init(e)})=
}}}),n("pages/enduser/comments",["require","apps/snippets/setupTinyMCESli=
m"],function(e){var =
t=3De("apps/snippets/setupTinyMCESlim");t({selector:"textarea[name=3D'com=
munity_comment[body]']",toolbar:"bold italic | bullist numlist | image =
link"})}),n("apps/snippets/dismissNotification",["domlib"],function(e){re=
turn =
function(){e(".notification-dismiss").click(function(t){t.preventDefault(=
),e(this).closest(".notification").hide()})}}),n("apps/snippets/avatarUrl=
",["require","domlib","hcbridge"],function(e){var =
t=3De("domlib"),n=3De("hcbridge").instance;return function(){var =
e=3Dn.get("user.avatar_url");t("img.user-avatar").attr("src",e)}}),n("app=
s/snippets/preventEmptySearch",["domlib"],function(e){return =
function(){e(".search, .search-small").submit(function(){return =
0!=3D=3De(this).find("input[type=3Dsearch]").val().length})}}),n("apps/us=
erDropdown/models/User",["require","underscore","backbone"],function(e){v=
ar t=3De("underscore"),n=3De("backbone");return =
n.Model.extend({url:"/hc/user_profile",emailUrl:"/hc/user_email",verifica=
tionUrl:"/hc/user_email/resend_verification",passwordUrl:"/hc/user_passwo=
rd",saveProfile:function(e){var =
i=3Dn.$.ajax({url:this.url,method:"PUT",data:{profile:{name:e.name,phone:=
e.phone,time_zone:e.time_zone}}});return =
i.fail(this.trigger.bind(this,"error")),i.done(function(e){this.set(t.isS=
tring(e)?JSON.parse(e):e)}.bind(this)),i},saveEmail:function(e){var =
t=3Dn.$.ajax({url:this.emailUrl,method:"PUT",data:{user_info:{email:e}}})=
;return =
t.fail(this.trigger.bind(this,"error")),t.done(this.set.bind(this)),t},se=
ndVerificationEmail:function(){var =
e=3Dthis.get("identities"),i=3De.filter(function(e){return!e.verified});n=
.$.post(this.verificationUrl,{user_info:{email:t.last(i).value}})},savePa=
ssword:function(e,t){return =
n.$.ajax({url:this.passwordUrl,method:"PUT",data:{password:{previous_pass=
word:e,password:t}}})}})}),n("apps/userDropdown/views/Profile",["require"=
,"underscore","hcbridge","backbone","i18n","jquery.fileupload"],function(=
e){var =
t=3De("underscore"),n=3De("hcbridge").instance,i=3De("backbone"),r=3De("i=
18n");return =
e("jquery.fileupload"),i.View.extend({el:"#user-profile",events:{"change =
#profile-email":"saveEmail","change #profile-name, #profile-phone, =
#profile-time-zone":"saveProfile","click =
#profile-photo-input":"uploadAvatar","click =
#user-resend-email":"resendEmail"},initialize:function(){this.listenTo(th=
is.model,"sync",this.render),this.listenTo(this.model,"change",this.rende=
r),this.listenTo(this.model,"error",this.render)=0A=
},render:function(){var =
e=3Dt.last(this.model.get("identities"));this.$("#profile-name").val(this=
.model.get("name")),this.$("#profile-photo =
img").attr("src",this.model.get("avatar_url")),this.$("#profile-phone").v=
al(this.model.get("phone")),this.$("#profile-time-zone").val(this.model.g=
et("time_zone")),this.$("#profile-email").val(this.model.get("email")),th=
is.$("#user-email-notification =
strong").text(e?e.value:""),this.$("#user-email-notification")[e&&e.verif=
ied?"hide":"show"]()},show:function(){this.el.style.display=3D"block"},hi=
de:function(){this.render(),this.el.style.display=3D"none"},saveEmail:fun=
ction(){var =
e=3Dthis.$("#profile-email").val();this.startLoader(),this.model.saveEmai=
l(e).always(this.stopLoader.bind(this))},saveProfile:function(){var =
e=3D{name:this.$("#profile-name").val(),phone:this.$("#profile-phone").va=
l(),time_zone:this.$("#profile-time-zone").val()};this.startLoader(),this=
.model.saveProfile(e).always(this.stopLoader.bind(this))},resendEmail:fun=
ction(e){e.preventDefault(),this.model.sendVerificationEmail()},uploadAva=
tar:function(e){var =
t=3Dthis.$(e.target);this.startLoader(),this.hideErrorMessage(),t.fileupl=
oad({autoUpload:!0,acceptFileTypes:/(\.|\/)(gif|jpe?g|png)$/i,url:this.mo=
del.url,type:"POST",dataType:"json",formData:[{name:"authenticity_token",=
value:n.get("current_session.csrf_token")},{name:"_method",value:"put"},{=
name:"utf8",value:"=E2=9C=93"}],done:function(e,t){this.model.set(t.resul=
t),this.render()}.bind(this),fail:function(){this.model.set("avatar_url",=
"/hc/assets/user_avatar.png"),this.render(),this.showErrorMessage()}.bind=
(this),always:this.stopLoader.bind(this)})},showErrorMessage:function(){v=
ar =
e=3Dr.t("txt.help_center.helpers.application.user_info.profile_invalid_ph=
oto");this.$("#profile-flash").attr("class","profile-flash-error").html(e=
).show()},hideErrorMessage:function(){this.$("#profile-flash").hide()},st=
artLoader:function(){this.$("[role=3D'separator']").attr("data-loading","=
true")},stopLoader:function(){this.$("[role=3D'separator']").removeAttr("=
data-loading")}})}),n("apps/userDropdown/views/Password",["require","back=
bone","i18n"],function(e){var t=3De("backbone"),n=3De("i18n");return =
t.View.extend({el:"#user-password",events:{"click =
#password-submit":"submit"},show:function(){this.$el.show()},hide:functio=
n(){this.$("input[type=3Dpassword]").val(""),this.$el.hide()},submit:func=
tion(e){e.preventDefault();var =
t=3Dthis.$("#password-current").val(),n=3Dthis.$("#password-new").val();t=
his.startLoader(),this.model.savePassword(t,n).always(this.stopLoader.bin=
d(this)).always(this.feedback.bind(this))},feedback:function(e,i){var =
r;if("success"=3D=3D=3Di)r=3Dn.t("txt.help_center.controllers.user_passwo=
rds_controller.update.success");else{var =
o=3De.responseText?t.$.parseJSON(e.responseText):e;r=3Do.join(" ")}thi=
s.$("#password-flash").attr("class","password-flash-"+i).html(r).fadeOut(=
).fadeIn()},startLoader:function(){this.$("[role=3D'separator']").attr("d=
ata-loading","true")},stopLoader:function(){this.$("[role=3D'separator']"=
).removeAttr("data-loading")}})}),n("apps/userDropdown/views/Menu",["requ=
ire","backbone","./Profile","./Password"],function(e){var =
t=3De("backbone"),n=3De("./Profile"),i=3De("./Password");return =
t.View.extend({el:"#user-menu",events:{"click =
#profile-open:not([data-loading=3Dtrue])":"openProfile","click =
#password-change":"changePassword"},initialize:function(){this.views=3D{p=
rofile:new n({model:this.model}),password:new =
i({model:this.model})}},openProfile:function(e){e.stopPropagation(),this.=
startProfileLoader(),this.model.fetch().done(function(){this.hide(),this.=
views.profile.show()}.bind(this)).always(this.stopProfileLoader.bind(this=
)).fail(this.showErrorMessage.bind(this))},changePassword:function(e){e.s=
topPropagation(),this.hide(),this.views.password.show()},hide:function(){=
this.el.style.display=3D"none"},show:function(){this.el.style.display=3D"=
block"},startProfileLoader:function(){this.$("#profile-open").attr("data-=
loading","true")},stopProfileLoader:function(){this.$("#profile-open").re=
moveAttr("data-loading")},showErrorMessage:function(){this.$("#profile-fa=
il").show()},hideErrorMessage:function(){this.$("#profile-fail").hide()},=
reset:function(){this.show(),this.hideErrorMessage(),this.views.profile.h=
ide(),this.views.password.hide()}})}),n("apps/userDropdown/views/Dropdown=
",["require","domlib","backbone","./Menu"],function(e){var =
t=3De("domlib"),n=3De("backbone"),i=3De("./Menu");return =
n.View.extend({el:"#user-dropdown",events:{mousedown:"stopPropagation"},i=
nitialize:function(){this.views=3D{menu:new =
i({model:this.model})},document.addEventListener?document.addEventListene=
r("mousedown",this.close.bind(this)):t(document).on("mousedown",t.proxy(t=
his.close,this))},stopPropagation:function(e){e.stopPropagation()},show:f=
unction(){this.$el.show()},hide:function(){this.$el.hide()},close:functio=
n(){this.hide(),this.views.menu.reset()},isVisible:function(){return =
this.$el.is(":visible")}})}),n("apps/userDropdown/views/User",["require",=
"backbone","./Dropdown"],function(e){var =
t=3De("backbone"),n=3De("./Dropdown");return =
t.View.extend({el:"#user",events:{"mousedown =
.dropdown-toggle":"toggle"},initialize:function(){this.views=3D{dropdown:=
new n({model:this.model})},this.listenTo(this.model,"change:avatar_url =
change:name",this.render)},render:function(){this.$("#user-avatar").attr(=
"src",this.model.get("avatar_url")),this.$("#user-name").text(this.model.=
get("name"))},toggle:function(e){e.stopPropagation();var =
t=3Dthis.views.dropdown.isVisible()?"close":"show";this.views.dropdown[t]=
()}})}),n("apps/userDropdown/App",["require","hcbridge","./models/User","=
./views/User"],function(e){function t(){new r({model:new =
i(n.get("user"))})}var =
n=3De("hcbridge").instance,i=3De("./models/User"),r=3De("./views/User");r=
eturn t}),n("apps/dropdowns",["require","domlib"],function(e){function =
t(){o(".dropdown-menu").attr("aria-expanded",!1)}function n(){var =
e=3Do(this).siblings(".dropdown-menu"),t=3D"true"=3D=3D=3De.attr("aria-ex=
panded");return e.attr("aria-expanded",!t),!1}function =
i(e){e.stopPropagation()}function =
r(){o(document).on("click",t).on("click",".dropdown-toggle",t).on("click"=
,".dropdown-toggle",n).on("click",".dropdown-menu",i).on("click",".dropdo=
wn-menu [role=3D'menuitem']",t)}var o=3De("domlib");return =
r}),function(e){"function"=3D=3Dtypeof =
n&&n.amd?n("jquery.partial",["jquery"],e):e(jQuery)}(function(e){var =
t;e.fn.partial=3Dfunction(n){return =
t=3De.extend({},n),this.each(function(){var =
t=3De(this),n=3Dt.attr("data-partial"),i=3D/^\/\w+/;i.test(n)&&e.get(n,fu=
nction(e){t.replaceWith(e)},"html")}),this}}),n("apps/snippets/setupParti=
al",["domlib","jquery.partial"],function(e){return =
function(){e(function(){e("[data-partial]").partial()})}}),n("apps/HC/App=
",["require","hcbridge","mout/array/indexOf","mout/object/mixIn"],functio=
n(e){var =
t=3De("hcbridge").instance,n=3De("mout/array/indexOf"),i=3De("mout/object=
/mixIn"),r=3Dfunction(){};return =
r.prototype=3D{api:function(e,r){if("string"!=3Dtypeof e)throw new =
Error("Missing path argument");var =
o=3D["user","account"],a=3Di({},t.get(e,{}));if(!(n(o,e)>-1))throw new =
Error("Unsupported =
path");setTimeout(function(){r.call(window,a)},0)}},r}),n("apps/snippets/=
setupHC",["require","apps/HC/App"],function(e){var =
t=3De("apps/HC/App");return function(){var e=3Dnew =
t;window.HC=3De}}),n("zendesk-adapter",[],function(){return =
window.Zendesk}),n("polyfills/ie8/array/foreach",[],function(){Array.prot=
otype.forEach||(Array.prototype.forEach=3Dfunction(e,t){var =
n,i;if(null=3D=3Dthis)throw new TypeError(" this is null or not =
defined");var r=3DObject(this),o=3Dr.length>>>0;if("function"!=3Dtypeof =
e)throw new TypeError(e+" is not a =
function");for(arguments.length>1&&(n=3Dt),i=3D0;o>i;){var a;i in =
r&&(a=3Dr[i],e.call(n,a,i,r)),i++}})}),n("polyfills/ie8/function/bind",[]=
,function(){Function.prototype.bind||(Function.prototype.bind=3Dfunction(=
e){if("function"!=3Dtypeof this)throw new =
TypeError("Function.prototype.bind - what is trying to be bound is not =
callable");var =
t=3DArray.prototype.slice.call(arguments,1),n=3Dthis,i=3Dfunction(){},r=3D=
function(){return n.apply(this instanceof =
i&&e?this:e,t.concat(Array.prototype.slice.call(arguments)))};return =
i.prototype=3Dthis.prototype,r.prototype=3Dnew =
i,r})}),n("apps/snippets/setupAuth",["require","domlib","zendesk-adapter"=
,"polyfills/ie8/array/foreach","polyfills/ie8/function/bind"],function(e)=
{var =
t=3De("domlib"),n=3De("zendesk-adapter");e("polyfills/ie8/array/foreach")=
,e("polyfills/ie8/function/bind");var i=3Dfunction(e){var =
t=3De.currentTarget.getAttribute("data-auth-action");n.Auth&&(e.preventDe=
fault(),n.Auth({action:t}))};return =
function(){t(function(){t("body").on("click","[data-auth-action]",i)})}})=
,n("apps/snippets/ajaxVotes",["require","domlib"],function(e){function =
t(e,t,n){var =
r=3Di(e),o=3Dr.hasClass("vote-voted"),a=3Do?"DELETE":"POST";i.ajax({url:t=
,type:a,dataType:"json",data:{value:n},success:function(e){return =
e.redirect_to?void(window.location.href=3De.redirect_to):void =
r.toggleClass("vote-voted").siblings(".vote-up, =
.vote-down").removeClass("vote-voted").siblings(".vote-sum").text(e.vote_=
sum)}})}function n(e){var =
t=3Di(e).closest(".comment").attr("id"),n=3Dt.replace("community_comment_=
","");return r+"/comments/"+n+"/vote"}var =
i=3De("domlib"),r=3Dwindow.location.pathname;i(".post-vote =
.vote-up").click(function(){return =
t(this,r+"/vote","up"),!1}),i(".post-vote =
.vote-down").click(function(){return =
t(this,r+"/vote","down"),!1}),i(".comment-vote =
.vote-up").click(function(){return =
t(this,n(this),"up"),!1}),i(".comment-vote =
.vote-down").click(function(){return =
t(this,n(this),"down"),!1})}),n("pages/enduser/common",["require","hcbrid=
ge","apps/modalEdit","apps/snippets/dismissNotification","apps/snippets/a=
vatarUrl","apps/snippets/preventEmptySearch","apps/snippets/formatDateTim=
e","apps/userDropdown/App","apps/dropdowns","apps/snippets/setupPartial",=
"apps/snippets/setupHC","apps/snippets/setupAuth","mout/string/endsWith",=
"apps/snippets/recentArticles","apps/snippets/ajaxVotes"],function(e){var=
=
t=3De("hcbridge").instance,n=3De("apps/modalEdit"),i=3De("apps/snippets/d=
ismissNotification"),r=3De("apps/snippets/avatarUrl"),o=3De("apps/snippet=
s/preventEmptySearch"),a=3De("apps/snippets/formatDateTime"),s=3De("apps/=
userDropdown/App"),u=3De("apps/dropdowns"),l=3De("apps/snippets/setupPart=
ial"),c=3De("apps/snippets/setupHC"),d=3De("apps/snippets/setupAuth"),p=3D=
e("mout/string/endsWith"),f=3De("apps/snippets/recentArticles");e("apps/s=
nippets/ajaxVotes"),i(),r(),o(),a(),u(),l(),c(),d();var h=3Dnew =
f;if(h.populateRecentArticles(),t.get("user")){var =
m=3Dt.get("user.role");"end_user"=3D=3D=3Dm&&new =
s,"anonymous"=3D=3D=3Dm||t.get("user.email")||n("/hc/user_email/new",func=
tion(){var =
e=3Dthis.contentWindow.location.href;p(e,"/new")||(this.contentDocument.b=
ody.style.display=3D"none",window.location.reload())}),!t.get("settings.z=
opim_enabled")||"anonymous"!=3D=3Dm&&"end_user"!=3D=3Dm||"undefined"=3D=3D=
typeof =
$zopim||$zopim(function(){"end_user"=3D=3D=3Dm&&($zopim.livechat.setName(=
t.get("user.name")),$zopim.livechat.setEmail(t.get("user.email"))),$zopim=
.livechat.setLanguage(t.get("current_session.locale"))})}}),n("pages/endu=
ser/help_center",["require","apps/asynchtmlSetup","apps/snippets/setupRec=
entActivity"],function(e){e("apps/asynchtmlSetup"),e("apps/snippets/setup=
RecentActivity")}),n("pages/enduser/post_escalations",["require","nesty"]=
,function(e){for(var =
t=3De("nesty"),n=3Ddocument.querySelectorAll(".form-field =
select"),i=3D0;i\n <%=3D title %> \n \n\n'}),n("apps/editPost/views/Title",["require","underscor=
e","backbone","text!../templates/editable-box.html","i18n"],function(e){v=
ar =
t=3De("underscore"),n=3De("backbone"),i=3De("text!../templates/editable-b=
ox.html"),r=3De("i18n");return =
n.View.extend({template:t.template(i),events:{"click =
.hc-editable-footer":"moveCaretToEnd","click =
.hc-editable-save":"save","click .hc-editable-cancel":"cancel","keydown =
[contenteditable]":"keydown"},initialize:function(){this.render(),this.mo=
veCaretToEnd()},render:function(){this.$el.html(this.template({title:this=
.model.get("title"),i18n:r}))},moveCaretToEnd:function(){var =
e=3Dthis.$("[contenteditable]")[0];e.focus();var =
t=3Ddocument.createRange();t.selectNodeContents(e),t.collapse(!1);var =
n=3Dwindow.getSelection();n.removeAllRanges(),n.addRange(t)},cancel:funct=
ion(e){e.stopPropagation(),this.close()},close:function(){this.$el.html(t=
his.model.get("title")),this.undelegateEvents()},keydown:function(e){var =
t=3D{ESCAPE:27,ENTER:13};switch(e.keyCode){case =
t.ESCAPE:this.close();break;case =
t.ENTER:e.preventDefault(),this.save()}},save:function(){var =
e=3Dthis.$("[contenteditable]").text();this.model.save({title:e},{type:"p=
ut",patch:!0,wait:!0}).always(this.close.bind(this))}})}),n("apps/editPos=
t/App",["require","./models/Post","./views/Title"],function(e){function =
t(e){var t=3Ddocument.querySelector(e);if(!t.children.length){var =
r=3Dnew n({title:t.innerHTML}),o=3Dnew i({el:t,model:r});return o}}var =
n=3De("./models/Post"),i=3De("./views/Title");return =
t}),function(e){"function"=3D=3Dtypeof =
n&&n.amd?n("jquery.searchbox",["jquery"],e):e(jQuery)}(function(e){e.fn.s=
earchbox=3Dfunction(t){return this.each(function(){function =
n(){d.stop().slideUp("fast")}function =
i(){d.stop().slideDown("fast")}function =
r(){u.attr("data-loading",!0)}function o(t){var =
r=3D[];u.attr("data-loading",!1),e.each(t.results,function(t,n){var =
i=3De(" ",{href:p.url_filter(n.html_url),text:n.name}),o=3De(" ").=
html(i);r.push(o)});var =
o=3De("").html(r);c.empty(),c.html(o),r.length>0?i():n()}function =
a(){var =
t,i,a,s,c;t=3De.trim(l.val()),t=3Dt.toLowerCase(),c=3Dt.charCodeAt(0),i=3D=
encodeURIComponent(t),a=3Dp.url.replace("{{query}}",i),1=3D=3D=3Dm.readyS=
tate&&(m.abort(),u.attr("data-loading",!1)),s=3Dc>=3D19968&&195103>=3Dc?t=
.length>=3D2:t.length>=3Dp.minChars,s?h[t]?o(h[t]):m=3De.ajax(a,{beforeSe=
nd:r,success:function(e){h[t]=3De,o.apply(this,arguments)}}):n()}function=
s(){f&&clearTimeout(f),f=3DsetTimeout(a,p.threshold)}var =
u,l,c,d,p,f,h=3D{},m=3D{};return =
p=3De.extend({input:"#request_subject",eventName:"keyup",minChars:2,thres=
hold:300,title:"",url:"",url_filter:function(e){return =
e}},t),u=3De(this),l=3Dp.input instanceof =
e?p.input:e(p.input),u.data("searchbox")?!0:(u.data("searchbox",!0),c=3De=
('
'),d=3De(''+p.title+"
").hide(),d.append(c)=
,u.append(d),void =
l.on(p.eventName,s))}),this}}),n("pages/enduser/posts",["require","domlib=
","i18n","apps/modalEdit","nesty","apps/snippets/setupTinyMCESlim","apps/=
snippets/populatePendingComments","apps/snippets/populateCommunityComment=
Vote","apps/snippets/disableSubmitButton","apps/editPost/App","mout/query=
String","mout/string","jquery.searchbox"],function(e){var =
t=3De("domlib"),n=3De("i18n"),i=3De("apps/modalEdit"),r=3De("nesty"),o=3D=
e("apps/snippets/setupTinyMCESlim"),a=3De("apps/snippets/populatePendingC=
omments"),s=3De("apps/snippets/populateCommunityCommentVote"),u=3De("apps=
/snippets/disableSubmitButton"),l=3De("apps/editPost/App"),c=3De("mout/qu=
eryString"),d=3De("mout/string");e("jquery.searchbox"),t(".form-field =
select").each(function(){new =
r(this)}),o({selector:"textarea[name=3D'community_post[details]']",toolba=
r:"formats | bold italic | bullist numlist | image =
link"}),o({selector:"textarea[name=3D'community_comment[body]']",toolbar:=
"formats | bold italic | bullist numlist | image link"}),a();var =
p=3Dt("#comments").attr("data-voting-callback");t.getJSON(p,function(e){t=
.each(e.votes,s)}),u(t(".new_community_comment")),u(t(".new_community_pos=
t")),t(".post-actions, =
.comment-actions").on("click","[data-action=3Dedit-title]",function(e){e.=
preventDefault(),new l(".post-header =
h1")}).on("click","[data-modal-escalate]",function(e){e.preventDefault(),=
i(this.href,function(){d.endsWith(this.contentWindow.location.href,"/new"=
)||(this.contentDocument.body.style.display=3D"none",window.location.relo=
ad())})}).on("click","[data-modal-edit]",function(e){e.preventDefault(),i=
(this.href,function(){c.getParam(this.contentWindow.location.href,"update=
d")&&(this.contentDocument.body.style.display=3D"none",window.location.ha=
sh=3Dthis.contentWindow.location.hash,window.location.reload())})}),t(fun=
ction(){var =
e=3D"/hc/api/v2/community_posts/search?per_page=3D4&query=3D{{query}}";t(=
"[data-searchbox]").searchbox({input:t("[data-searchbox] =
input"),url:e,title:n.t("views.community.posts.similar_posts"),eventName:=
"keyup",threshold:500,minChars:3,url_filter:function(e){var =
n=3Dt("[data-searchbox] input").val();n=3Dt.trim(n);var =
i=3De+"?input_string=3D"+encodeURIComponent(n);return =
i}})})}),n("apps/snippets/populateVote",["domlib"],function(e){return =
function(t,n){var i=3De("section.answers =
div.vote-controls[data-record-id=3D"+n.dom_id+"]"),r=3Di.find("a.vote-up"=
),o=3Di.find("a.vote-down");"up"=3D=3D=3Dn.direction?(r.attr({"data-metho=
d":"delete","aria-selected":!0}),o.attr({"data-method":"put"})):"down"=3D=
=3D=3Dn.direction&&(o.attr({"data-method":"delete","aria-selected":!0}),r=
.attr({"data-method":"put"}))}}),n("pages/enduser/questions",["require","=
domlib","apps/modalEdit","hcbridge","apps/snippets/disableSubmitButton","=
apps/snippets/populateVote","nesty","mout/queryString"],function(e){var =
t=3De("domlib"),n=3De("apps/modalEdit"),i=3De("hcbridge").instance,r=3De(=
"apps/snippets/disableSubmitButton"),o=3De("apps/snippets/populateVote"),=
a=3De("nesty"),s=3De("mout/queryString");t(function(){t(".form-field =
select").each(function(){new =
a(this)}),t(document).on("click",".question-edit, =
.answer-edit",function(e){e.preventDefault(),n(this.href,function(){var =
e=3Dthis.contentWindow.location.href;s.getParam(e,"updated")&&(this.conte=
ntDocument.body.style.display=3D"none",window.location.reload())})});var =
e=3Di.get("user.identifier");t(".answer[data-author-identifier=3D"+e+"]")=
.find(".answer-delete").removeAttr("hidden");var =
u=3Dt(".question-form");r(u);var =
l=3Dt(".answer-form");if(r(l),"anonymous"!=3D=3Di.get("user.role")){var =
c=3Dt(".answer-list-heading").attr("data-callback");void =
0!=3D=3Dc&&t.getJSON(c,function(e){t.each(e.votes,o)});var =
d=3Dt(".pending-answers-list");d.length>0&&d.load(d.attr("data-url"))}})}=
),n("apps/snippets/preventInputNumberScroll",["domlib"],function(e){retur=
n =
function(){e("input[type=3Dnumber]").bind("mousewheel",function(){this.bl=
ur()})}}),n("apps/snippets/selectRequestIssueType",["domlib"],function(e)=
{return function(){e("#request_issue_type_select").change(function(){var =
t=3De(this).find("option:selected").attr("data-url");window.location.href=
=3Dt})}}),n("apps/Screencast",["domlib","i18n"],function(e,t){var =
n=3Dfunction(n){if(n.length){this.$recorder=3Dn,this.$pool=3De("#"+this.$=
recorder.data("pool"));var =
i=3De("#"+this.$pool.data("template")).html();this.$template=3De(e.trim(i=
)),this.recorderId=3Dthis.$recorder.data("recorder-id"),this.host=3Dthis.=
$recorder.data("host"),this.name=3Dthis.$recorder.data("name"),this.count=
er=3D0,this.screencastI18nName=3Dt.t("txt.help_center.javascripts.screenc=
asts.name"),this.init()}};return n.prototype=3D{init:function(){var =
t,n;this.populate(),this.events(),t=3Dthis.screenrUrl(),n=3De.proxy(this.=
setupScreenr,this),e.getScript(t,n)},populate:function(){var =
t=3Dthis.$pool.data("screencasts"),n=3Dthis;e.each(t||[],function(e,t){t.=
position>n.counter&&(n.counter=3Dt.position-1),n.append(t)})},events:func=
tion(){this.$recorder.click(function(e){e.preventDefault()}),this.$pool.o=
n("click","[data-upload-remove]",e.proxy(this.remove,this))},remove:funct=
ion(t){e(t.target).closest("[data-upload-item]").remove()},screenrUrl:fun=
ction(){var =
e=3Dthis.host.replace(/.*?:\/\//g,""),t=3Ddocument.location.protocol+"//"=
;return =
t+e+"/api/recorder"},setupScreenr:function(){if(window.Screenr){var =
t=3Dwindow.Screenr,n=3Dt.Recorder({id:this.recorderId,hideAllFields:!0,sc=
rollToTop:!0});n.attachTo(this.$recorder.attr("id")),n.setUserName("",!1)=
,n.setUserEmail("",!1),n.setSubject("",!1),n.setDescription("",!1),n.setO=
nComplete(e.proxy(this.append,this))}},append:function(e){this.counter+=3D=
1;var =
t=3Dthis.render({id:e.id,content_url:e.content_url||e.embedUrl,thumbnail_=
url:e.thumbnail_url||e.thumbnailUrl,position:e.position||this.counter});t=
his.$pool.append(t)},render:function(e){var =
t=3Dthis.$template.clone();return =
t.addClass("upload-item-screencast"),t.find("[data-upload-link]").attr("h=
ref",e.content_url).text(this.screencastI18nName+e.position),t.find("inpu=
t:hidden").attr("name",this.name).val(JSON.stringify(e)),t}},n}),function=
(e,i){var r;if("object"=3D=3Dtypeof =
exports){try{r=3Dt("moment")}catch(o){}module.exports=3Di(r)}else"functio=
n"=3D=3Dtypeof n&&n.amd?n("pikaday",["require"],function(e){var =
t=3D"moment";try{r=3De(t)}catch(n){}return =
i(r)}):e.Pikaday=3Di(e.moment)}(this,function(e){var =
t=3D"function"=3D=3Dtypeof =
e,n=3D!!window.addEventListener,i=3Dwindow.document,r=3Dwindow.setTimeout=
,o=3Dfunction(e,t,i,r){n?e.addEventListener(t,i,!!r):e.attachEvent("on"+t=
,i)},a=3Dfunction(e,t,i,r){n?e.removeEventListener(t,i,!!r):e.detachEvent=
("on"+t,i)},s=3Dfunction(e,t,n){var =
r;i.createEvent?(r=3Di.createEvent("HTMLEvents"),r.initEvent(t,!0,!1),r=3D=
y(r,n),e.dispatchEvent(r)):i.createEventObject&&(r=3Di.createEventObject(=
),r=3Dy(r,n),e.fireEvent("on"+t,r))},u=3Dfunction(e){return =
e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},l=3Dfunction(e,t){return-1!=3D=
=3D(" "+e.className+" ").indexOf(" "+t+" =
")},c=3Dfunction(e,t){l(e,t)||(e.className=3D""=3D=3D=3De.className?t:e.c=
lassName+" "+t)},d=3Dfunction(e,t){e.className=3Du((" "+e.className+" =
").replace(" "+t+" "," =
"))},p=3Dfunction(e){return/Array/.test(Object.prototype.toString.call(e)=
)},f=3Dfunction(e){return/Date/.test(Object.prototype.toString.call(e))&&=
!isNaN(e.getTime())},h=3Dfunction(e){return =
e%4=3D=3D=3D0&&e%100!=3D=3D0||e%400=3D=3D=3D0},m=3Dfunction(e,t){return[3=
1,h(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},g=3Dfunction(e){f(e)&&e.s=
etHours(0,0,0,0)},v=3Dfunction(e,t){return =
e.getTime()=3D=3D=3Dt.getTime()},y=3Dfunction(e,t,n){var i,r;for(i in =
t)r=3Dvoid 0!=3D=3De[i],r&&"object"=3D=3Dtypeof =
t[i]&&null!=3D=3Dt[i]&&void =
0=3D=3D=3Dt[i].nodeName?f(t[i])?n&&(e[i]=3Dnew =
Date(t[i].getTime())):p(t[i])?n&&(e[i]=3Dt[i].slice(0)):e[i]=3Dy({},t[i],=
n):(n||!r)&&(e[i]=3Dt[i]);return e},b=3Dfunction(e){return =
e.month<0&&(e.year-=3DMath.ceil(Math.abs(e.month)/12),e.month+=3D12),e.mo=
nth>11&&(e.year+=3DMath.floor(Math.abs(e.month)/12),e.month-=3D12),e},w=3D=
{field:null,bound:void 0,position:"bottom =
left",reposition:!0,format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!=
1,firstDay:0,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,min=
Year:0,maxYear:9999,minMonth:void 0,maxMonth:void =
0,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,numberOfMonths:1,mainCalen=
dar:"left",container:void 0,i18n:{previousMonth:"Previous =
Month",nextMonth:"Next =
Month",months:["January","February","March","April","May","June","July","=
August","September","October","November","December"],weekdays:["Sunday","=
Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysSho=
rt:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},onSelect:null,onOpen:null=
,onClose:null,onDraw:null},_=3Dfunction(e,t,n){for(t+=3De.firstDay;t>=3D7=
;)t-=3D7;return =
n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},x=3Dfunction(e,t,n,i,r,o,a)=
{if(a)return' ';var s=3D[];return =
o&&s.push("is-disabled"),r&&s.push("is-today"),i&&s.push("is-selected"),'=
'+e+" "},k=3Dfunction(e,t,n){var =
i=3Dnew Date(n,0,1),r=3DMath.ceil(((new =
Date(n,t,e)-i)/864e5+i.getDay()+1)/7);return''+r+" "},T=3Dfunction(e,t){return""+(t?e.reve=
rse():e).join("")+" "},C=3Dfunction(e){return""+e.join("")+"=
tbody>"},S=3Dfunction(e){var =
t,n=3D[];for(e.showWeekNumber&&n.push(" "),t=3D0;7>t;t++)n.push('=
'+_(e,t,!0)+" ");return""+(e.isRTL=
?n.reverse():n).join("")+" "},E=3Dfunction(e,t,n,i,r){var =
o,a,s,u,l,c=3De._o,d=3Dn=3D=3D=3Dc.minYear,f=3Dn=3D=3D=3Dc.maxYear,h=3D'<=
div =
class=3D"pika-title">',m=3D!0,g=3D!0;for(s=3D[],o=3D0;12>o;o++)s.push('c.maxMonth?"disabled":"")+">"+c.i18n=
.months[o]+"");for(u=3D''+c.i18n.months[i]+''+s.join("")+"
",p(c.yearRange)?(o=3Dc.y=
earRange[0],a=3Dc.yearRange[1]+1):(o=3Dn-c.yearRange,a=3D1+n+c.yearRange)=
,s=3D[];a>o&&o<=3Dc.maxYear;o++)o>=3Dc.minYear&&s.push('"+o+" ");return =
l=3D''+n+c.yearSuffix+''+s.join("")+"
",h+=3Dc.showMonthAfterYea=
r?l+u:u+l,d&&(0=3D=3D=3Di||c.minMonth>=3Di)&&(m=3D!1),f&&(11=3D=3D=3Di||c=
.maxMonth<=3Di)&&(g=3D!1),0=3D=3D=3Dt&&(h+=3D''+c.i18n.previousMonth+" "),t=3D=3D=3De._o.number=
OfMonths-1&&(h+=3D''+c.i18n.nextMonth+" "),h+=3D""},D=3Dfuncti=
on(e,t){return'"},N=3Dfunction(a){var =
s=3Dthis,u=3Ds.config(a);s._onMouseDown=3Dfunction(e){if(s._v){e=3De||win=
dow.event;var =
t=3De.target||e.srcElement;if(t){if(!l(t,"is-disabled")){if(l(t,"pika-but=
ton")&&!l(t,"is-empty"))return s.setDate(new =
Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t=
.getAttribute("data-pika-day"))),void(u.bound&&r(function(){s.hide(),u.fi=
eld&&u.field.blur()},100));l(t,"pika-prev")?s.prevMonth():l(t,"pika-next"=
)&&s.nextMonth()}if(l(t,"pika-select"))s._c=3D!0;else{if(!e.preventDefaul=
t)return =
e.returnValue=3D!1,!1;e.preventDefault()}}}},s._onChange=3Dfunction(e){e=3D=
e||window.event;var =
t=3De.target||e.srcElement;t&&(l(t,"pika-select-month")?s.gotoMonth(t.val=
ue):l(t,"pika-select-year")&&s.gotoYear(t.value))},s._onInputChange=3Dfun=
ction(n){var =
i;n.firedBy!=3D=3Ds&&(t?(i=3De(u.field.value,u.format),i=3Di&&i.isValid()=
?i.toDate():null):i=3Dnew =
Date(Date.parse(u.field.value)),s.setDate(f(i)?i:null),s._v||s.show())},s=
._onInputFocus=3Dfunction(){s.show()},s._onInputClick=3Dfunction(){s.show=
()},s._onInputBlur=3Dfunction(){s._c||(s._b=3Dr(function(){s.hide()},50))=
,s._c=3D!1},s._onClick=3Dfunction(e){e=3De||window.event;var =
t=3De.target||e.srcElement,i=3Dt;if(t){!n&&l(t,"pika-select")&&(t.onchang=
e||(t.setAttribute("onchange","return;"),o(t,"change",s._onChange)));do =
if(i=3D=3D=3Du.trigger)return;while(i=3Di.parentNode);s._v&&i!=3D=3Du.tri=
gger&&s.hide()}},s.el=3Di.createElement("div"),s.el.className=3D"pika-sin=
gle"+(u.isRTL?" =
is-rtl":""),o(s.el,"mousedown",s._onMouseDown,!0),o(s.el,"change",s._onCh=
ange),u.field&&(u.container?u.container.appendChild(s.el):u.bound?i.body.=
appendChild(s.el):u.field.parentNode.insertBefore(s.el,u.field.nextSiblin=
g),o(u.field,"change",s._onInputChange),u.defaultDate||(u.defaultDate=3Dt=
&&u.field.value?e(u.field.value,u.format).toDate():new =
Date(Date.parse(u.field.value)),u.setDefaultDate=3D!0));var =
c=3Du.defaultDate;f(c)?u.setDefaultDate?s.setDate(c,!0):s.gotoDate(c):s.g=
otoDate(new Date),u.bound?(this.hide(),s.el.className+=3D" =
is-bound",o(u.trigger,"click",s._onInputClick),o(u.trigger,"focus",s._onI=
nputFocus),o(u.trigger,"blur",s._onInputBlur)):this.show()};return =
N.prototype=3D{config:function(e){this._o||(this._o=3Dy({},w,!0));var =
t=3Dy(this._o,e,!0);t.isRTL=3D!!t.isRTL,t.field=3Dt.field&&t.field.nodeNa=
me?t.field:null,t.bound=3D!!(void =
0!=3D=3Dt.bound?t.field&&t.bound:t.field),t.trigger=3Dt.trigger&&t.trigge=
r.nodeName?t.trigger:t.field;var =
n=3DparseInt(t.numberOfMonths,10)||1;if(t.numberOfMonths=3Dn>4?4:n,f(t.mi=
nDate)||(t.minDate=3D!1),f(t.maxDate)||(t.maxDate=3D!1),t.minDate&&t.maxD=
ate&&t.maxDate100&&(t.yearRange=3D100);return t},toString:function(n){return =
f(this._d)?t?e(this._d).format(n||this._o.format):this._d.toDateString():=
""},getMoment:function(){return =
t?e(this._d):null},setMoment:function(n,i){t&&e.isMoment(n)&&this.setDate=
(n.toDate(),i)},getDate:function(){return f(this._d)?new =
Date(this._d.getTime()):null},setDate:function(e,t){if(!e)return =
this._d=3Dnull,this._o.field&&(this._o.field.value=3D"",s(this._o.field,"=
change",{firedBy:this})),this.draw();if("string"=3D=3Dtypeof e&&(e=3Dnew =
Date(Date.parse(e))),f(e)){var =
n=3Dthis._o.minDate,i=3Dthis._o.maxDate;f(n)&&n>e?e=3Dn:f(i)&&e>i&&(e=3Di=
),this._d=3Dnew =
Date(e.getTime()),g(this._d),this.gotoDate(this._d),this._o.field&&(this.=
_o.field.value=3Dthis.toString(),s(this._o.field,"change",{firedBy:this})=
),t||"function"!=3Dtypeof =
this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:f=
unction(e){var t=3D!0;if(f(e)){if(this.calendars){var n=3Dnew =
Date(this.calendars[0].year,this.calendars[0].month,1),i=3Dnew =
Date(this.calendars[this.calendars.length-1].year,this.calendars[this.cal=
endars.length-1].month,1),r=3De.getTime();i.setMonth(i.getMonth()+1),i.se=
tDate(i.getDate()-1),t=3Dr=3Di&&(this._y=3Di,!isNaN(a)&&this._m>a&&(this._m=3Da));for(var =
u=3D0;u'+E(this,u,this.calendars[u].year,this.calendars[u]=
.month,this.calendars[0].year)+this.render(this.calendars[u].year,this.ca=
lendars[u].month)+"";if(this.el.innerHTML=3Ds,t.bound&&"hidden"!=3D=
=3Dt.field.type&&r(function(){t.trigger.focus()},1),"function"=3D=3Dtypeo=
f this._o.onDraw){var =
l=3Dthis;r(function(){l._o.onDraw.call(l)},0)}}},adjustPosition:function(=
){if(!this._o.container){var =
e,t,n,r=3Dthis._o.trigger,o=3Dr,a=3Dthis.el.offsetWidth,s=3Dthis.el.offse=
tHeight,u=3Dwindow.innerWidth||i.documentElement.clientWidth,l=3Dwindow.i=
nnerHeight||i.documentElement.clientHeight,c=3Dwindow.pageYOffset||i.body=
.scrollTop||i.documentElement.scrollTop;if("function"=3D=3Dtypeof =
r.getBoundingClientRect)n=3Dr.getBoundingClientRect(),e=3Dn.left+window.p=
ageXOffset,t=3Dn.bottom+window.pageYOffset;else =
for(e=3Do.offsetLeft,t=3Do.offsetTop+o.offsetHeight;o=3Do.offsetParent;)e=
+=3Do.offsetLeft,t+=3Do.offsetTop;(this._o.reposition&&e+a>u||this._o.pos=
ition.indexOf("right")>-1&&e-a+r.offsetWidth>0)&&(e=3De-a+r.offsetWidth),=
(this._o.reposition&&t+s>l+c||this._o.position.indexOf("top")>-1&&t-s-r.o=
ffsetHeight>0)&&(t=3Dt-s-r.offsetHeight),this.el.style.cssText=3D["positi=
on: absolute","left: "+e+"px","top: "+t+"px"].join(";")=0A=
}},render:function(e,t){var n=3Dthis._o,i=3Dnew Date,r=3Dm(e,t),o=3Dnew =
Date(e,t,1).getDay(),a=3D[],s=3D[];g(i),n.firstDay>0&&(o-=3Dn.firstDay,0>=
o&&(o+=3D7));for(var u=3Dr+o,l=3Du;l>7;)l-=3D7;u+=3D7-l;for(var =
c=3D0,d=3D0;u>c;c++){var p=3Dnew =
Date(e,t,1+(c-o)),h=3Dn.minDate&&pn.maxDate,y=3D=
f(this._d)?v(p,this._d):!1,b=3Dv(p,i),w=3Do>c||c>=3Dr+o;s.push(x(1+(c-o),=
t,e,y,b,h,w)),7=3D=3D=3D++d&&(n.showWeekNumber&&s.unshift(k(c-o,t,e)),a.p=
ush(T(s,n.isRTL)),s=3D[],d=3D0)}return =
D(n,a)},isVisible:function(){return =
this._v},show:function(){this._v||(d(this.el,"is-hidden"),this._v=3D!0,th=
is.draw(),this._o.bound&&(o(i,"click",this._onClick),this.adjustPosition(=
)),"function"=3D=3Dtypeof =
this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var =
e=3Dthis._v;e!=3D=3D!1&&(this._o.bound&&a(i,"click",this._onClick),this.e=
l.style.cssText=3D"",c(this.el,"is-hidden"),this._v=3D!1,void =
0!=3D=3De&&"function"=3D=3Dtypeof =
this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hid=
e(),a(this.el,"mousedown",this._onMouseDown,!0),a(this.el,"change",this._=
onChange),this._o.field&&(a(this._o.field,"change",this._onInputChange),t=
his._o.bound&&(a(this._o.trigger,"click",this._onInputClick),a(this._o.tr=
igger,"focus",this._onInputFocus),a(this._o.trigger,"blur",this._onInputB=
lur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},N}),=
n("apps/Datepicker",["domlib","moment","pikaday","i18n"],function(e,t,n,i=
){function =
r(t){this.$input=3De(t),this.$datepicker=3De([]),this.render(),this.obfus=
cate(),this.pikaday=3Dthis.initPikaday()}var =
o=3D"YYYY-MM-DD",a=3Di.t("date.datepicker.date_format"),s=3Da.replace("dd=
","_01_").replace("d","_02_").replace("oo","_03_").replace("o","_04_").re=
place("DD","_05_").replace("D","_06_").replace("mm","_07_").replace("m","=
_08_").replace("MM","_09_").replace("M","_10_").replace("yy","_11_").repl=
ace("y","_12_"),u=3Ds.replace("_01_","DD").replace("_02_","D").replace("_=
03_","DDDD").replace("_04_","DDD").replace("_05_","dddd").replace("_06_",=
"ddd").replace("_07_","MM").replace("_08_","M").replace("_09_","MMMM").re=
place("_10_","MMM").replace("_11_","YYYY").replace("_12_","YY");return =
r.prototype=3D{obfuscate:function(){this.$input.attr({"class":"",readonly=
:!0}).hide()},render:function(){this.$datepicker=3De(" ",{"class":=
this.$input.attr("class"),value:this.localizedDate(),type:"text"}).insert=
Before(this.$input)},localizedDate:function(){var =
e=3Dthis.$input.val();return =
e.length?t(e,o).format(u):""},initPikaday:function(){return new =
n({field:this.$datepicker[0],format:u,onSelect:e.proxy(this.formatAndSync=
,this),firstDay:Number(i.t("date.datepicker.first_day")),isRTL:"rtl"=3D=3D=
=3Di.direction,showMonthAfterYear:Boolean(Number(i.t("date.datepicker.sho=
w_month_after_year"))),yearSuffix:i.t("date.datepicker.year_suffix"),i18n=
:{previousMonth:i.t("date.datepicker.prev_text"),nextMonth:i.t("date.date=
picker.next_text"),months:i.t("date.month_names").slice(1),weekdays:i.t("=
date.min_day_names"),weekdaysShort:i.t("date.min_day_names")}})},formatAn=
dSync:function(){var =
e=3Dthis.pikaday.getDate(),n=3Dt(e).format(o);this.$datepicker.val(t(n,o)=
.format(u)),this.$input.val(n)}},r}),n("apps/snippets/organizationSubmitt=
er",["domlib"],function(e){return function(){var =
t=3De(this),n=3Dt.closest("form"),i=3Dn.prop("action"),r=3Dn.serialize();=
t.prop("disabled","disabled"),e.post(i,r,null,"json").always(function(){t=
.removeProp("disabled")})}}),n("apps/bootstrapNestedDropdowns/bootstrapNe=
stedDropdowns",["domlib","i18n","nesty"],function(e,t,n){var =
i=3Ddocument.all&&!document.addEventListener;return =
function(){e("[data-tagger]").each(function(){var =
r=3De(this),o=3Dr.data("tagger"),a=3Dnew =
n({options:o},{backLabel:t.t("txt.help_center.views.admin.shared.back")})=
;r.after(a.input.el),/Version\/7.\d.\d =
Safari/.test(navigator.userAgent)||Object.defineProperty(r.get(0),"value"=
,{configurable:!0,enumerable:!i,set:function(e){a.api.setSelection(e),"st=
ring"=3D=3Dtypeof =
e?this.setAttribute("value",e):this.removeAttribute("value")},get:functio=
n(){return =
this.getAttribute("value")}}),r.on("change",function(){a.api.setSelection=
(this.value)}),a.on("change",function(e){e&&r.val(e.value);var =
t;document.createEvent?(t=3Ddocument.createEvent("HTMLEvents"),t.initEven=
t("change",!0,!0),r[0].dispatchEvent(t)):(t=3Ddocument.createEventObject(=
),t.eventType=3D"change",r[0].fireEvent("on"+t.eventType,t))})})}}),n("ap=
ps/snippets/attachRecentArticlesToRequest",["require","domlib","hcbridge"=
],function(e){var t=3De("domlib"),n=3De("hcbridge").instance;return =
function(){var =
e=3DlocalStorage.getItem(["hc",n.get("user.identifier"),"recently_visited=
_articles"].join(":"));t(" ",{type:"hidden",name:"recent_articles"=
,value:e}).prependTo("#new_request")}}),n("upload",["require","hcbridge",=
"jquery","jquery.fileupload"],function(e){var =
t=3De("hcbridge").instance,n=3De("jquery");e("jquery.fileupload");var =
i=3Dfunction(e){this.$uploader=3Dn(e),this.$dropzone=3Dn("#"+this.$upload=
er.data("dropzone")),this.$error=3Dn("#"+this.$uploader.data("error")),th=
is.$pool=3Dn("#"+this.$uploader.data("pool"));var =
t=3Dn("#"+this.$pool.data("template")).html();this.$template=3Dn(n.trim(t=
)),this.url=3Dthis.$uploader.data("create-url"),this.name=3Dthis.$uploade=
r.data("name"),this.deleteConfirmMsg=3Dthis.$uploader.data("delete-confir=
m-msg"),this.serialiazedObject=3D-1=3D=3D=3Dthis.name.indexOf("_ids][]"),=
this.init()};i.prototype=3D{init:function(){this.cleanup(),this.populate(=
),this.setup()},cleanup:function(){this.$pool.empty(),this.$error.hide()}=
,populate:function(){function e(){var i=3Dt.shift();if(i){var =
r=3Dn.render(i.display_file_name||i.file_name);n.setupload(r,i),n.append(=
r),setTimeout(e,4)}}var =
t=3Dthis.$pool.data("uploads")||[],n=3Dthis;e()},render:function(e){var =
t=3Dthis.$template.clone();return =
this.setLinkText(t,e),this.setInputName(t),t},append:function(e){this.$po=
ol.append(e)},setupload:function(e,t){this.setLinkUrl(e,t.url),this.setPa=
thUrl(e,t.url),this.setRemoveUrl(e,t.delete_url),this.setInputValue(e,t),=
this.setProgress(e,100),this.setRemoveEvent(e)},setLinkText:function(e,t)=
{e.find("[data-upload-link]").text(t)},setInputName:function(e){e.find("i=
nput:hidden").attr("name",this.name)},setLinkUrl:function(e,t){e.find("[d=
ata-upload-link]").attr("href",t)},setPathUrl:function(e,t){e.find("[data=
-upload-path]").text(t)},setRemoveUrl:function(e,t){e.find("[data-upload-=
remove]").data("delete-url",t)},setInputValue:function(e,t){var =
n=3Dthis.serialiazedObject?t:t.id;e.find("input:hidden").val(JSON.stringi=
fy(n))},setProgress:function(e,t){e.find("[data-upload-progress]").css("w=
idth",t+"%")},setRemoveEvent:function(e){e.find("[data-upload-remove]").c=
lick(n.proxy(this.remove,this))},setup:function(){this.$uploader.fileuplo=
ad({dropZone:this.$dropzone,pasteZone:null,url:this.url,dataType:"json",t=
ype:"POST",formData:[{name:"authenticity_token",value:t.get("current_sess=
ion.csrf_token")}],paramName:"file",singleFileUploads:!0,dragover:n.proxy=
(this.dragover,this),add:n.proxy(this.add,this),progress:n.proxy(this.pro=
gress,this),done:n.proxy(this.done,this),fail:n.proxy(this.error,this)})}=
,dragover:function(){var =
e=3Dthis,t=3Dwindow.dropZoneTimeout;t?clearTimeout(t):this.$dropzone.attr=
("data-hover",!0),window.dropZoneTimeout=3DsetTimeout(function(){window.d=
ropZoneTimeout=3Dnull,e.$dropzone.attr("data-hover",!1)},100)},add:functi=
on(e,t){var n=3Dt.files[0];if(this.exists(n.name))return void =
this.flash("File already exists",n.name);if("undefined"!=3Dtypeof =
n.size&&!this.valid(n))return void this.flash("File invalid");var =
i=3Dthis.render(n.name);i.attr("aria-busy",!0),t.context=3Di,this.append(=
i),t.submit()},exists:function(e){return =
this.$pool.find("a").filter(function(){return =
this.innerText=3D=3D=3De}).length?!0:!1},valid:function(e){return =
e.size>0},progress:function(e,t){var n=3Dt.context;if(n){var =
i=3DparseInt(t.loaded/t.total*100,10);90>=3Di&&this.setProgress(n,i)}},do=
ne:function(e,t){var =
n=3Dt.context,i=3Dthis.errorDetails(t);i?this.error(e,t):(this.setupload(=
n,t.result),setTimeout(function(){n.attr("aria-busy",!1)},1e3))},remove:f=
unction(e){var =
t=3Dthis.deleteConfirmMsg;if(!t.length||window.confirm(t)){var =
i=3Dn(e.target),r=3Di.closest("[data-upload-item]"),o=3Di.data("delete-ur=
l"),a=3Dthis;this.destroy(o).done(function(){r.remove(),a.$uploader.trigg=
er("fileuploadremove")})}},destroy:function(e){return =
n.post(e,{_method:"DELETE"})},error:function(e,t){var =
n=3Dt.context,i=3Dthis.errorDetails(t);n.remove(),this.flash(t.errorThrow=
n,i)},errorDetails:function(e){return =
e.jqXHR.responseJSON[0]&&e.jqXHR.responseJSON[0].error||null},flash:funct=
ion(e,t){var n;switch(e){case"Bad =
Request":n=3DI18n.t("txt.help_center.views.shared.upload_error.file_too_b=
ig");break;case"File too =
big":n=3DI18n.t("txt.help_center.views.shared.upload_error.file_too_big")=
;break;case"File =
invalid":n=3DI18n.t("txt.help_center.views.shared.upload_error.file_inval=
id");break;case"File already =
exists":n=3DI18n.t("txt.help_center.views.shared.upload_error.file_alread=
y_exist",{filename:t});break;case"Unprocessable =
Entity":n=3DI18n.t("txt.help_center.views.shared.upload_error.file_too_bi=
g_with_limit",{limit:t.size_limit});break;default:n=3DI18n.t("txt.help_ce=
nter.views.shared.upload_error.connection_lost")}this.$error.show().find(=
"[data-upload-error-message]").text(n)}},n.fn.upload=3Dfunction(){return =
this.each(function(){n.data(this,"upload",new =
i(this))})}}),n("pages/enduser/requests",["require","domlib","hcbridge","=
apps/snippets/preventInputNumberScroll","apps/snippets/selectRequestIssue=
Type","apps/Screencast","apps/Datepicker","apps/snippets/organizationSubm=
itter","i18n","apps/snippets/disableSubmitButton","apps/bootstrapNestedDr=
opdowns/bootstrapNestedDropdowns","apps/snippets/attachRecentArticlesToRe=
quest","nesty","mout/queryString","upload","jquery.searchbox"],function(e=
){function t(){var =
e=3Dn("#quick-search").val(),t=3Dn("#request-status-select").val(),i=3Dn(=
"#request-organization-select").val(),r=3Dwindow.location.href;r=3Dh.setP=
aram(r,"page","1"),r=3Dh.setParam(r,"query",e),r=3Dh.setParam(r,"status",=
t),i&&(r=3Dh.setParam(r,"organization_id",i)),window.location.href=3Dr}va=
r =
n=3De("domlib"),i=3De("hcbridge").instance,r=3De("apps/snippets/preventIn=
putNumberScroll"),o=3De("apps/snippets/selectRequestIssueType"),a=3De("ap=
ps/Screencast"),s=3De("apps/Datepicker"),u=3De("apps/snippets/organizatio=
nSubmitter"),l=3De("i18n"),c=3De("apps/snippets/disableSubmitButton"),d=3D=
e("apps/bootstrapNestedDropdowns/bootstrapNestedDropdowns"),p=3De("apps/s=
nippets/attachRecentArticlesToRequest"),f=3De("nesty"),h=3De("mout/queryS=
tring");e("upload"),e("jquery.searchbox"),n(".form-field =
select").each(function(){new =
f(this)}),d(),r(),o(),p(),n(".satisfaction-box").on("click",'[for=3D"sati=
sfaction_rating_score_good"]',function(){n("#satisfaction_rating_score_ba=
d").removeAttr("checked"),n("#satisfaction_rating_score_good").attr("chec=
ked","checked")}),n(".satisfaction-box").on("click",'[for=3D"satisfaction=
_rating_score_bad"]',function(){n("#satisfaction_rating_score_good").remo=
veAttr("checked"),n("#satisfaction_rating_score_bad").attr("checked","che=
cked")}),new =
a(n("#request-screencasts")),n("#quick-search").keypress(function(e){13=3D=
=3D=3De.which&&t()}),n("#request-status-select, =
#request-organization-select").change(function(){t()}),n("[data-datepicke=
r]").each(function(){new =
s(this)}),n("#request_type").change(function(e){var =
t=3De.target||e.srcElement,i=3D"task"=3D=3D=3Dt.value;n("[data-due-date]"=
).toggle(i)}),n("#request-organization =
select").change(u),n(function(){function =
e(e){d&&(e.preventDefault(),u.prop("disabled",!0)),p=3D!0}function =
t(){d=3D!0}function r(){d=3D!1,p&&s.submit()}var =
o=3D"/hc/api/v2/search.json?per_page=3D4&locale=3D"+i.get("current_sessio=
n.locale")+"&query=3D{{query}}";n("[data-searchbox]").searchbox({url:o,ti=
tle:l.t("txt.help_center.views.requests.suggested_solutions"),eventName:"=
keyup",threshold:500,minChars:3,url_filter:function(e){var =
t=3Dn("[data-searchbox] input").val();t=3Dn.trim(t);var =
i=3De+"?input_string=3D"+encodeURIComponent(t);return i}});var =
a=3Dn("#request-attachments"),s=3Da.length?a.closest("form"):n("#new_requ=
est"),u=3Ds.find("[type=3Dsubmit]"),d=3D!1,p=3D!1;a.on("fileuploadstart",=
t),a.on("fileuploadstop",r),s.on("submit",e),c(s),a.upload()})}),n("apps/=
snippets/searchStorage",["require","hcbridge","mout/queryString"],functio=
n(e){var t=3De("hcbridge").instance,n=3De("mout/queryString");return =
function(){var =
e=3Dt.get("user.role");if("end_user"=3D=3D=3De||"anonymous"=3D=3D=3De){va=
r =
i=3D["hc",t.get("user.identifier"),"last_search"].join(":"),r=3Dn.getPara=
m(window.location.href,"query"),o=3Dn.getParam(window.location.href,"page=
"),a=3DJSON.parse(localStorage.getItem(i)),s=3DDate.now(),u=3Ds-6e4;a&&a.=
query=3D=3D=3Dr&&a.time>u?(a.time=3Ds,localStorage.setItem(i,JSON.stringi=
fy(a))):(null=3D=3D=3Do||"1"=3D=3D=3Do)&&localStorage.setItem(i,JSON.stri=
ngify({query:r,resultsCount:t.get("search_results_count"),clicked:!1,time=
:s}))}}}),n("pages/enduser/search",["require","apps/snippets/searchStorag=
e"],function(e){var =
t=3De("apps/snippets/searchStorage");t()}),n("pages/enduser/sections",["r=
equire","apps/snippets/setupRecentActivity"],function(e){e("apps/snippets=
/setupRecentActivity")}),t(["hcbootstrap"])}).call({});=0A=
//# sourceMappingURL=3Dhc_enduser.js.map
------=_NextPart_000_0000_01D0979C.68AB3F10--
Comments
Please sign=20 in to leave a comment.