functionsprintf(){vart=/%%|%(\d+\$)?([-+\'#0 ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([scboxXuideEfFgG])/g,e=arguments,i=0,o=e[i++],n=function(t,e,i,o){i||(i=" ");varn=t.length>=e?"":newArray(1+e-t.length>>>0).join(i);returno?t+n:n+t},r=function(t,e,i,o,r,a){vars=o-t.length;returns>0&&(t=i||!r?n(t,o,a,i):t.slice(0,e.length)+n("",s,"0",!0)+t.slice(e.length)),t},a=function(t,e,i,o,a,s,l){varc=t>>>0;returni=i&&c&&{2:"0b",8:"0",16:"0x"}[e]||"",t=i+n(c.toString(e),s||0,"0",!1),r(t,i,o,a,l)},s=function(t,e,i,o,n,a){returnnull!=o&&(t=t.slice(0,o)),r(t,"",e,i,n,a)},l=function(t,o,l,c,u,d,h){varf,p,g,m,b;if("%%"===t)return"%";for(varv=!1,y="",w=!1,P=!1,$=" ",F=l.length,x=0;l&&x<F;x++)switch(l.charAt(x)){case" ":y=" ";break;case"+":y="+";break;case"-":v=!0;break;case"'":$=l.charAt(x+1);break;case"0":w=!0,$="0";break;case"#":P=!0}if(c=c?"*"===c?+e[i++]:"*"==c.charAt(0)?+e[c.slice(1,-1)]:+c:0,c<0&&(c=-c,v=!0),!isFinite(c))thrownewError("sprintf: (minimum-)width must be finite");switch(d=d?"*"===d?+e[i++]:"*"==d.charAt(0)?+e[d.slice(1,-1)]:+d:"fFeE".indexOf(h)>-1?6:"d"===h?0:void0,b=o?e[o.slice(0,-1)]:e[i++],h){case"s":returns(String(b),v,c,d,w,$);case"c":returns(String.fromCharCode(+b),v,c,d,w);case"b":returna(b,2,P,v,c,d,w);case"o":returna(b,8,P,v,c,d,w);case"x":returna(b,16,P,v,c,d,w);case"X":returna(b,16,P,v,c,d,w).toUpperCase();case"u":returna(b,10,P,v,c,d,w);case"i":case"d":returnf=+b||0,f=Math.round(f-f%1),p=f<0?"-":y,b=p+n(String(Math.abs(f)),d,"0",!1),r(b,p,v,c,w);case"e":case"E":case"f":case"F":case"g":case"G":returnf=+b,p=f<0?"-":y,g=["toExponential","toFixed","toPrecision"]["efg".indexOf(h.toLowerCase())],m=["toString","toUpperCase"]["eEfFgG".indexOf(h)%2],b=p+Math.abs(f)[g](d),r(b,p,v,c,w)[m]();default:returnt}};returno.replace(t,l)}functiontestPassword(t){vare=0,i="weak",o="",n=0;returnt.length<5?(e+=3,o=o+"3 points for length ("+t.length+")\n"):t.length>4&&t.length<8?(e+=6,o=o+"6 points for length ("+t.length+")\n"):t.length>7&&t.length<16?(e+=12,o=o+"12 points for length ("+t.length+")\n"):t.length>15&&(e+=18,o=o+"18 point for length ("+t.length+")\n"),t.match(/[a-z]/)&&(e+=1,o+="1 point for at least one lower case char\n"),t.match(/[A-Z]/)&&(e+=5,o+="5 points for at least one upper case char\n"),t.match(/\d+/)&&(e+=5,o+="5 points for at least one number\n"),t.match(/(.*[0-9].*[0-9].*[0-9])/)&&(e+=5,o+="5 points for at least three numbers\n"),t.match(/.[!,@,#,$,%,^,&,*,?,_,~]/)&&(e+=5,o+="5 points for at least one special char\n"),t.match(/(.*[!,@,#,$,%,^,&,*,?,_,~].*[!,@,#,$,%,^,&,*,?,_,~])/)&&(e+=5,o+="5 points for at least two special chars\n"),t.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)&&(e+=2,o+="2 combo points for upper and lower letters\n"),t.match(/([a-zA-Z])/)&&t.match(/([0-9])/)&&(e+=2,o+="2 combo points for letters and numbers\n"),t.match(/([a-zA-Z0-9].*[!,@,#,$,%,^,&,*,?,_,~])|([!,@,#,$,%,^,&,*,?,_,~].*[a-zA-Z0-9])/)&&(e+=2,o+="2 combo points for letters, numbers and special chars\n"),0==t.length&&(e=0),i=e<16?"very weak":e>15&&e<25?"weak":e>24&&e<35?"average":e>34&&e<45?"strong":"stronger",n=Math.round(Math.min(100,100*e/45))/100,{score:e,ratio:n,percent:100*n+"%",verdict:i,log:o}}$(function(){vart={url:PF.obj.config.json_api,cache:!1,dataType:"json",data:{auth_token:PF.obj.config.auth_token}};void0!==PF.obj.config.session_id&&(t.data.session_id=PF.obj.config.session_id),$.ajaxSetup(t),$(window).bind("beforeunload",function(){if("continue"!=$("form",PF.obj.modal.selectors.root).data("beforeunload"))return$(PF.obj.modal.selectors.root).is(":visible")&&PF.fn.form_modal_has_changed()?PF.fn._s("All the changes that you have made will be lost if you continue."):void0}),$(window).bind("hashchange",function(){"#edit"!=window.location.hash||$(PF.obj.modal.selectors.root).exists()||$("[data-modal=edit]").first().click()}),PF.fn.bindtipTip();vare,i,o=$(window).width();if($(window).on("resize",function(){PF.fn.growl.fixPosition(),PF.fn.modal.fixScrollbars();vart=PF.fn.getDeviceName(),n=["phone","phablet"],r=["tablet","laptop","desktop"];clearTimeout(e),clearTimeout(i),i=setTimeout(f
f.pushState(r.id,r.title,r.url),h.Adapter.trigger(t,"popstate")),!0},h.replaceState=function(e,i,o,n){if(h.getHashByUrl(o)&&h.emulated.pushState)thrownewError("History.js does not support states with fragement-identifiers (hashes/anchors).");if(!1!==n&&h.busy())returnh.pushQueue({scope:h,callback:h.replaceState,args:arguments,queue:n}),!1;h.busy(!0);varr=h.createStateObject(e,i,o);returnh.isLastSavedState(r)?h.busy(!1):(h.storeState(r),h.expectedStateId=r.id,f.replaceState(r.id,r.title,r.url),h.Adapter.trigger(t,"popstate")),!0};if(r){try{h.store=u.parse(r.getItem("History.store"))||{}}catch(t){h.store={}}h.normalizeStore()}elseh.store={},h.normalizeStore();h.Adapter.bind(t,"unload",h.clearAllIntervals),h.saveState(h.storeState(h.extractState(h.getLocationHref(),!0))),r&&(h.onUnload=function(){vart,e,i;try{t=u.parse(r.getItem("History.store"))||{}}catch(e){t={}}for(eint.idToState=t.idToState||{},t.urlToId=t.urlToId||{},t.stateToId=t.stateToId||{},h.idToState)h.idToState.hasOwnProperty(e)&&(t.idToState[e]=h.idToState[e]);for(einh.urlToId)h.urlToId.hasOwnProperty(e)&&(t.urlToId[e]=h.urlToId[e]);for(einh.stateToId)h.stateToId.hasOwnProperty(e)&&(t.stateToId[e]=h.stateToId[e]);h.store=t,h.normalizeStore(),i=u.stringify(t);try{r.setItem("History.store",i)}catch(t){if(t.code!==DOMException.QUOTA_EXCEEDED_ERR)throwt;r.length&&(r.removeItem("History.store"),r.setItem("History.store",i))}},h.intervalList.push(l(h.onUnload,h.options.storeInterval)),h.Adapter.bind(t,"beforeunload",h.onUnload),h.Adapter.bind(t,"unload",h.onUnload)),h.emulated.pushState||(h.bugs.safariPoll&&h.intervalList.push(l(h.safariStatePoll,h.options.safariPollInterval)),"Apple Computer, Inc."!==n.vendor&&"Mozilla"!==(n.appCodeName||"")||(h.Adapter.bind(t,"hashchange",function(){h.Adapter.trigger(t,"popstate")}),h.getHash()&&h.Adapter.onDomLoad(function(){h.Adapter.trigger(t,"hashchange")})))},(!h.options||!h.options.delayInit)&&h.init()}(window),function(t){"function"==typeofdefine&&define.amd?define(["jquery"],t):t(window.jQuery)}(function(t){vare=0;t.ajaxTransport("iframe",function(i){varo,n,r;if(i.async)return{send:function(a,s){o=t('<form style="display:none;"></form>'),o.attr("accept-charset",i.formAcceptCharset),r=/\?/.test(i.url)?"&":"?","DELETE"===i.type?(i.url=i.url+r+"_method=DELETE",i.type="POST"):"PUT"===i.type?(i.url=i.url+r+"_method=PUT",i.type="POST"):"PATCH"===i.type&&(i.url=i.url+r+"_method=PATCH",i.type="POST"),e+=1,n=t('<iframe src="javascript:false;" name="iframe-transport-'+e+'"></iframe>').bind("load",function(){vare,r=t.isArray(i.paramName)?i.paramName:[i.paramName];n.unbind("load").bind("load",function(){vare;try{if(e=n.contents(),!e.length||!e[0].firstChild)thrownewError}catch(t){e=void0}s(200,"success",{iframe:e}),t('<iframe src="javascript:false;"></iframe>').appendTo(o),window.setTimeout(function(){o.remove()},0)}),o.prop("target",n.prop("name")).prop("action",i.url).prop("method",i.type),i.formData&&t.each(i.formData,function(e,i){t('<input type="hidden"/>').prop("name",i.name).val(i.value).appendTo(o)}),i.fileInput&&i.fileInput.length&&"POST"===i.type&&(e=i.fileInput.clone(),i.fileInput.after(function(t){returne[t]}),i.paramName&&i.fileInput.each(function(e){t(this).prop("name",r[e]||i.paramName)}),o.append(i.fileInput).prop("enctype","multipart/form-data").prop("encoding","multipart/form-data")),o.submit(),e&&e.length&&i.fileInput.each(function(i,o){varn=t(e[i]);t(o).prop("name",n.prop("name")),n.replaceWith(o)})}),o.append(n).appendTo(document.body)},abort:function(){n&&n.unbind("load").prop("src","javascript".concat(":false;")),o&&o.remove()}}}),t.ajaxSetup({converters:{"iframe text":function(e){returne&&t(e[0].body).text()},"iframe json":function(e){returne&&t.parseJSON(t(e[0].body).text())},"iframe html":function(e){returne&&t(e[0].body).html()},"iframe xml":function(e){vari=e&&e[0];returni&&t.isXMLDoc(i)?i:t.parseXML(i.XMLDocument&&i.XMLDocument.xml||t(i.body).html())},"iframe script":function(e){returne&&t.globalEval(t(e[0].body).text())}}})}),function(t,e){"object"==typeofexports?module.expo