/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */ !function(e){function t(n){if(i[n])return i[n].exports;var o=i[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var i={};return t.m=e,t.c=i,t.p="rainloop/v/0.0.0/static/js/min/",t(0)}([function(e,t,i){i(69)(i(18))},function(e,t,i){!function(){"use strict";var t=null,n={},o=i(10),s=i(2),r=i(13),a=i(3),l=i(71),c=i(72),u=i(48),p=i(4),d=i(8);n.trim=r.trim,n.inArray=r.inArray,n.isArray=s.isArray,n.isFunc=s.isFunction,n.isUnd=s.isUndefined,n.isNull=s.isNull,n.emptyFunction=function(){},n.isNormal=function(e){return!n.isUnd(e)&&!n.isNull(e)},n.windowResize=s.debounce(function(e){n.isUnd(e)?d.$win.resize():o.setTimeout(function(){d.$win.resize()},e)},50),n.windowResizeCallback=function(){n.windowResize()},n.isPosNumeric=function(e,t){return n.isNormal(e)?(n.isUnd(t)?0:!t)?/^[1-9]+[0-9]*$/.test(e.toString()):/^[0-9]*$/.test(e.toString()):!1},n.pInt=function(e,t){var i=n.isNormal(e)&&""!==e?o.parseInt(e,10):t||0;return o.isNaN(i)?t||0:i},n.pString=function(e){return n.isNormal(e)?""+e:""},n.encodeURIComponent=function(e){return o.encodeURIComponent(e)},n.isNonEmptyArray=function(e){return n.isArray(e)&&0s;s++)n=i[s].split("="),t[o.decodeURIComponent(n[0])]=o.decodeURIComponent(n[1]);return t},n.mailToHelper=function(e,t){if(e&&"mailto:"===e.toString().substr(0,7).toLowerCase()){e=e.toString().substr(7);var s={},r=null,a=null,l=null,c=e.replace(/\?.+$/,""),u=e.replace(/^[^\?]*\?/,""),d=i(25);return r=new d,r.parse(o.decodeURIComponent(c)),s=n.simpleQueryParser(u),n.isUnd(s.cc)||(a=new d,a.parse(o.decodeURIComponent(s.cc))),n.isUnd(s.bcc)||(l=new d,l.parse(o.decodeURIComponent(s.bcc))),i(5).showScreenPopup(t,[p.ComposeType.Empty,null,r&&r.email?[r]:null,a&&a.email?[a]:null,l&&l.email?[l]:null,n.isUnd(s.subject)?null:n.pString(s.subject),n.isUnd(s.body)?null:n.plainToHtml(n.pString(s.body))]),!0}return!1},n.rsaObject=function(e){return c&&e&&(null===t||t&&t.__sPublicKey!==e)&&o.crypto&&o.crypto.getRandomValues?(t=new c,t.setPublicKey(e),t.__sPublicKey=e):t=!1,t},n.rsaEncode=function(e,t){if(o.crypto&&o.crypto.getRandomValues&&t){var i=!1,s=n.rsaObject(t);if(s&&(i=s.encrypt(n.fakeMd5()+":"+e+":"+n.fakeMd5()),!1!==i&&n.isNormal(i)))return"rsa:xxx:"+i}return e},n.rsaEncode.supported=!1,n.encodeHtml=function(e){return n.isNormal(e)?e.toString().replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"):""},n.splitPlainText=function(e,t){var i="",o="",s=e,r=0,a=0;for(t=n.isUnd(t)?100:t;s.length>t;)o=s.substring(0,t),r=o.lastIndexOf(" "),a=o.lastIndexOf("\n"),-1!==a&&(r=a),-1===r&&(r=t),i+=o.substring(0,r)+"\n",s=s.substring(r+1);return i+s},n.timeOutAction=function(){var e={};return function(t,i,s){n.isUnd(e[t])&&(e[t]=0),o.clearTimeout(e[t]),e[t]=o.setTimeout(i,s)}}(),n.timeOutActionSecond=function(){var e={};return function(t,i,n){e[t]||(e[t]=o.setTimeout(function(){i(),e[t]=0},n))}}(),n.audio=function(){var e=!1;return function(t,i){if(!1===e)if(d.bIsiOSDevice)e=null;else{var n=!1,s=!1,r=o.Audio?new o.Audio:null;r&&r.canPlayType&&r.play?(n=""!==r.canPlayType('audio/mpeg; codecs="mp3"'),n||(s=""!==r.canPlayType('audio/ogg; codecs="vorbis"')),n||s?(e=r,e.preload="none",e.loop=!1,e.autoplay=!1,e.muted=!1,e.src=n?t:i):e=null):e=null}return e}}(),n.hos=function(e,t){return e&&o.Object&&o.Object.hasOwnProperty?o.Object.hasOwnProperty.call(e,t):!1},n.inFocus=function(){return o.document.activeElement?(n.isUnd(o.document.activeElement.__inFocusCache)&&(o.document.activeElement.__inFocusCache=r(o.document.activeElement).is("input,textarea,iframe,.cke_editable")),!!o.document.activeElement.__inFocusCache):!1},n.removeInFocus=function(){if(o.document&&o.document.activeElement&&o.document.activeElement.blur){var e=r(o.document.activeElement);e.is("input,textarea")&&o.document.activeElement.blur()}},n.removeSelection=function(){if(o&&o.getSelection){var e=o.getSelection();e&&e.removeAllRanges&&e.removeAllRanges()}else o.document&&o.document.selection&&o.document.selection.empty&&o.document.selection.empty()},n.replySubjectAdd=function(e,t){e=n.trim(e.toUpperCase()),t=n.trim(t.replace(/[\s]+/g," "));var i=!1,o=[],r="RE"===e,a="FWD"===e,l=!a;return""!==t&&s.each(t.split(":"),function(e){var t=n.trim(e);i||!/^(RE|FWD)$/i.test(t)&&!/^(RE|FWD)[\[\(][\d]+[\]\)]$/i.test(t)?(o.push(e),i=!0):(r||(r=!!/^RE/i.test(t)),a||(a=!!/^FWD/i.test(t)))}),l?r=!1:a=!1,n.trim((l?"Re: ":"Fwd: ")+(r?"Re: ":"")+(a?"Fwd: ":"")+n.trim(o.join(":")))},n.roundNumber=function(e,t){return o.Math.round(e*o.Math.pow(10,t))/o.Math.pow(10,t)},n.friendlySize=function(e){return e=n.pInt(e),e>=1073741824?n.roundNumber(e/1073741824,1)+"GB":e>=1048576?n.roundNumber(e/1048576,1)+"MB":e>=1024?n.roundNumber(e/1024,0)+"KB":e+"B"},n.log=function(e){o.console&&o.console.log&&o.console.log(e)},n.delegateRun=function(e,t,i,o){e&&e[t]&&(o=n.pInt(o),0>=o?e[t].apply(e,n.isArray(i)?i:[]):s.delay(function(){e[t].apply(e,n.isArray(i)?i:[])},o))},n.killCtrlAandS=function(e){if(e=e||o.event,e&&e.ctrlKey&&!e.shiftKey&&!e.altKey){var t=e.target||e.srcElement,i=e.keyCode||e.which;if(i===p.EventKeyCode.S)return void e.preventDefault();if(t&&t.tagName&&t.tagName.match(/INPUT|TEXTAREA/i))return;i===p.EventKeyCode.A&&(o.getSelection?o.getSelection().removeAllRanges():o.document.selection&&o.document.selection.clear&&o.document.selection.clear(),e.preventDefault())}},n.createCommand=function(e,t,i){var o=function(){return s&&s.canExecute&&s.canExecute()&&t.apply(e,Array.prototype.slice.call(arguments)),!1},s=t?o:n.emptyFunction;return s.enabled=a.observable(!0),i=n.isUnd(i)?!0:i,s.canExecute=a.computed(n.isFunc(i)?function(){return s.enabled()&&i.call(e)}:function(){return s.enabled()&&!!i}),s},n.createMomentDate=function(e){return n.isUnd(e.moment)&&(e.moment=a.observable(moment())),a.computed(function(){d.momentTrigger();var e=this.moment();return 1970===e.year()?"":e.fromNow()},e)},n.createMomentShortDate=function(e){return a.computed(function(){var e="",t=moment(),n=this.moment(),o=this.momentDate();return e=1970===n.year()?"":4>=t.diff(n,"hours")?o:t.format("L")===n.format("L")?i(7).i18n("MESSAGE_LIST/TODAY_AT",{TIME:n.format("LT")}):t.clone().subtract("days",1).format("L")===n.format("L")?i(7).i18n("MESSAGE_LIST/YESTERDAY_AT",{TIME:n.format("LT")}):n.format(t.year()===n.year()?"D MMM.":"LL")},e)},n.convertThemeName=function(e){return"@custom"===e.substr(-7)&&(e=n.trim(e.substring(0,e.length-7))),n.trim(e.replace(/[^a-zA-Z0-9]+/g," ").replace(/([A-Z])/g," $1").replace(/[\s]+/g," "))},n.quoteName=function(e){return e.replace(/["]/g,'\\"')},n.microtime=function(){return(new Date).getTime()},n.timestamp=function(){return o.Math.round(n.microtime()/1e3)},n.convertLangName=function(e,t){return i(7).i18n("LANGS_NAMES"+(!0===t?"_EN":"")+"/LANG_"+e.toUpperCase().replace(/[^a-zA-Z0-9]+/g,"_"),null,e)},n.fakeMd5=function(e){var t="",i="0123456789abcdefghijklmnopqrstuvwxyz";for(e=n.isUnd(e)?32:n.pInt(e);t.length ').appendTo("#rl-hidden")},n.defautOptionsAfterRender=function(e,t){t&&!n.isUnd(t.disabled)&&e&&r(e).toggleClass("disabled",t.disabled).prop("disabled",t.disabled)},n.windowPopupKnockout=function(e,t,s,l){var c=null,u=o.open(""),p="__OpenerApplyBindingsUid"+n.fakeMd5()+"__",d=r("#"+t);o[p]=function(){if(u&&u.document.body&&d&&d[0]){var t=r(u.document.body);r("#rl-content",t).html(d.html()),r("html",u.document).addClass("external "+r("html").attr("class")),i(7).i18nToNode(t),e&&r("#rl-content",t)[0]&&a.applyBindings(e,r("#rl-content",t)[0]),o[p]=null,l(u)}},u.document.open(),u.document.write(''+n.encodeHtml(s)+'
'),u.document.close(),c=u.document.createElement("script"),c.type="text/javascript",c.innerHTML="if(window&&window.opener&&window.opener['"+p+"']){window.opener['"+p+"']();window.opener['"+p+"']=null}",u.document.getElementsByTagName("head")[0].appendChild(c)},n.settingsSaveHelperFunction=function(e,t,i,o){return i=i||null,o=n.isUnd(o)?1e3:n.pInt(o),function(n,r,a,l,c){t.call(i,r&&r.Result?p.SaveSettingsStep.TrueResult:p.SaveSettingsStep.FalseResult),e&&e.call(i,n,r,a,l,c),s.delay(function(){t.call(i,p.SaveSettingsStep.Idle)},o)}},n.settingsSaveHelperSimpleFunction=function(e,t){return n.settingsSaveHelperFunction(null,e,t,1e3)},n.settingsSaveHelperSubscribeFunction=function(e,t,i,o){return function(s){if(e){switch(i){default:s=n.pString(s);break;case"bool":case"boolean":s=s?"1":"0";break;case"int":case"integer":case"number":s=n.pInt(s);break;case"trim":s=n.trim(s)}var r={};r[t]=s,e.saveAdminConfig?e.saveAdminConfig(o||null,r):e.saveSettings&&e.saveSettings(o||null,r)}}},n.htmlToPlain=function(e){var t=0,i=0,n=0,o=0,s=0,a="",l=function(e){for(var t=100,i="",n="",o=e,s=0,r=0;o.length>t;)n=o.substring(0,t),s=n.lastIndexOf(" "),r=n.lastIndexOf("\n"),-1!==r&&(s=r),-1===s&&(s=t),i+=n.substring(0,s)+"\n",o=o.substring(s+1);return i+o},c=function(e){return e=l(r.trim(e)),e="> "+e.replace(/\n/gm,"\n> "),e.replace(/(^|\n)([> ]+)/gm,function(){return arguments&&2]*>([\s\S\r\n]*)<\/div>/gim,u),e="\n"+r.trim(e)+"\n"),e}return""},p=function(){return arguments&&1"):""},h=function(){return arguments&&1/g,">"):""},g=function(){return arguments&&1]*>([\s\S\r\n]*)<\/pre>/gim,p).replace(/[\s]+/gm," ").replace(/((?:href|data)\s?=\s?)("[^"]+?"|'[^']+?')/gim,h).replace(/]*>/gim,"\n").replace(/<\/h[\d]>/gi,"\n").replace(/<\/p>/gi,"\n\n").replace(/<\/li>/gi,"\n").replace(/<\/td>/gi,"\n").replace(/<\/tr>/gi,"\n").replace(/]*>/gim,"\n_______________________________\n\n").replace(/]*>([\s\S\r\n]*)<\/div>/gim,u).replace(/]*>/gim,"\n__bq__start__\n").replace(/<\/blockquote>/gim,"\n__bq__end__\n").replace(/]*>([\s\S\r\n]*?)<\/a>/gim,g).replace(/<\/div>/gi,"\n").replace(/ /gi," ").replace(/"/gi,'"').replace(/<[^>]*>/gm,""),a=d.$div.html(a).text(),a=a.replace(/\n[ \t]+/gm,"\n").replace(/[\n]{3,}/gm,"\n\n").replace(/>/gi,">").replace(/</gi,"<").replace(/&/gi,"&"),t=0,s=100;s>0&&(s--,i=a.indexOf("__bq__start__",t),i>-1);)n=a.indexOf("__bq__start__",i+5),o=a.indexOf("__bq__end__",i+5),(-1===n||n>o)&&o>i?(a=a.substring(0,i)+c(a.substring(i+13,o))+a.substring(o+11),t=0):t=n>-1&&o>n?n-1:0;return a=a.replace(/__bq__start__/gm,"").replace(/__bq__end__/gm,"")},n.plainToHtml=function(e,t){e=e.toString().replace(/\r/g,""),t=n.isUnd(t)?!1:!!t;var i=!1,o=!0,s=!0,r=[],a="",l=0,c=e.split("\n");do{for(o=!1,r=[],l=0;l"===a.substr(0,1),s&&!i?(o=!0,i=!0,r.push("~~~blockquote~~~"),r.push(a.substr(1))):!s&&i?""!==a?(i=!1,r.push("~~~/blockquote~~~"),r.push(a)):r.push(a):r.push(s&&i?a.substr(1):a);i&&(i=!1,r.push("~~~/blockquote~~~")),c=r}while(o);return e=c.join("\n"),e=e.replace(/&/g,"&").replace(/>/g,">").replace(/").replace(/[\s]*~~~\/blockquote~~~/g,"").replace(/\n/g,"
"),t?n.findEmailAndLinks(e):e},o.rainloop_Utils_htmlToPlain=n.htmlToPlain,o.rainloop_Utils_plainToHtml=n.plainToHtml,n.findEmailAndLinks=function(e){return e=l.link(e,{newWindow:!0,stripPrefix:!1,urls:!0,email:!0,twitter:!1,replaceFn:function(e,t){return!(e&&t&&"url"===t.getType()&&t.matchedText&&0!==t.matchedText.indexOf("http"))}})},n.resizeAndCrop=function(e,t,i){var n=new o.Image;n.onload=function(){var e=[0,0],n=o.document.createElement("canvas"),s=n.getContext("2d");n.width=t,n.height=t,e=this.width>this.height?[this.width-this.height,0]:[0,this.height-this.width],s.fillStyle="#fff",s.fillRect(0,0,t,t),s.drawImage(this,e[0]/2,e[1]/2,this.width-e[0],this.height-e[1],0,0,t,t),i(n.toDataURL("image/jpeg"))},n.src=e},n.folderListOptionsBuilder=function(e,t,i,s,r,a,l,c,u,d){var h=null,g=!1,m=0,f=0,b="   ",v=[];for(d=n.isUnd(d)?!1:!!d,u=n.isNormal(u)?u:0m;m++)v.push({id:s[m][0],name:s[m][1],system:!1,seporator:!1,disabled:!1});for(g=!0,m=0,f=e.length;f>m;m++)h=e[m],(l?l.call(null,h):!0)&&(g&&0m;m++)h=t[m],!h.subScribed()&&h.existen&&!d||!h.selectable&&!h.hasSubScribedSubfolders()||(l?l.call(null,h):!0)&&(p.FolderType.User===h.type()||!u||h.hasSubScribedSubfolders())&&(g&&01||c>0&&l>c){for(l>c?(u(c),i=c,s=c):((3>=l||l>=c-2)&&(r+=2),u(l),i=l,s=l);r>0;)if(i-=1,s+=1,i>0&&(u(i,!1),r--),c>=s)u(s,!0),r--;else if(0>=i)break;3===i?u(2,!1):i>3&&u(o.Math.round((i-1)/2),!1,"..."),c-2===s?u(c-1,!0):c-2>s&&u(o.Math.round((c+s)/2),!0,"..."),i>1&&u(1,!1),c>s&&u(c,!0)}return a}},n.selectElement=function(e){var t,i;o.getSelection?(t=o.getSelection(),t.removeAllRanges(),i=o.document.createRange(),i.selectNodeContents(e),t.addRange(i)):o.document.selection&&(i=o.document.body.createTextRange(),i.moveToElementText(e),i.select())},n.detectDropdownVisibility=s.debounce(function(){d.dropdownVisibility(!!s.find(d.aBootstrapDropdowns,function(e){return e.hasClass("open")}))},50),n.triggerAutocompleteInputChange=function(e){var t=function(){r(".checkAutocomplete").trigger("change")};(n.isUnd(e)?1:!e)?t():s.delay(t,100)},n.setHeadViewport=function(e){var t=[];s.each(e,function(e,i){t.push(""+e+"="+i)}),r("#rl-head-viewport").attr("content",t.join(", "))},n.getFileExtension=function(e){e=n.trim(e).toLowerCase();var t=e.split(".").pop();return t===e?"":t},n.mimeContentType=function(e){var t="",i="application/octet-stream";return e=n.trim(e).toLowerCase(),"winmail.dat"===e?"application/ms-tnef":(t=n.getFileExtension(e),t&&0'),a.after(l),a.remove()),l&&l[0]&&(l.attr("data-href",c).attr("data-theme",e[0]),l[0].styleSheet&&!n.isUnd(l[0].styleSheet.cssText)?l[0].styleSheet.cssText=e[1]:l.text(e[1])),s){var o=r("#rl-bg");t?o.backstretch(s.publicLink(t),{fade:d.bAnimationSupported?1e3:0,centeredX:!0,centeredY:!0}):o.data("backstretch")&&o.backstretch("destroy").attr("style","")}i(p.SaveSettingsStep.TrueResult)}}).always(function(){n.__themeTimer=o.setTimeout(function(){i(p.SaveSettingsStep.Idle)},1e3),n.__themeAjax=null}))},e.exports=n}()},function(e){e.exports=window._},function(e,t,i){!function(t){"use strict";var n=i(10),o=i(2),s=i(13),r=function(e,i,n){t.utils.domNodeDisposal.addDisposeCallback(e,function(){n&&n.dispose&&n.dispose(),i&&(i.off("click.koTooltip"),i.tooltip&&i.tooltip("destroy")),i=null})};t.bindingHandlers.tooltip={init:function(e,n){var o=null,a=!0,l="",c="",u=null,p=i(8),d=i(7);p.bMobileDevice||(o=s(e),l=o.data("tooltip-class")||"",a="on"===(o.data("tooltip-i18n")||"on"),c=o.data("tooltip-placement")||"top",o.tooltip({delay:{show:500,hide:100},html:!0,container:"body",placement:c,trigger:"hover",title:function(){var e=a?t.unwrap(n()):n()();return""===e||o.is(".disabled")||p.dropdownVisibility()?"":''+(a?d.i18n(e):e)+""}}).on("click.koTooltip",function(){o.tooltip("hide")}),u=p.tooltipTrigger.subscribe(function(){o.tooltip("hide")}),r(e,o,u))}},t.bindingHandlers.tooltipForTest={init:function(e){var t=s(e),o=null,a=i(8);t.tooltip({container:"body",trigger:"hover manual",title:function(){return t.data("tooltip3-data")||""}}),s(n.document).on("click",function(){t.tooltip("hide")}),o=a.tooltipTrigger.subscribe(function(){t.tooltip("hide")}),r(e,t,o)},update:function(e,i){var n=t.unwrap(i());""===n?s(e).data("tooltip3-data","").tooltip("hide"):(s(e).data("tooltip3-data",n),o.delay(function(){s(e).is(":visible")&&s(e).tooltip("show")},100))}},t.bindingHandlers.registrateBootstrapDropdown={init:function(e){var t=i(8);t&&t.aBootstrapDropdowns&&t.aBootstrapDropdowns.push(s(e))}},t.bindingHandlers.openDropdownTrigger={update:function(e,n){if(t.unwrap(n())){var o=s(e),r=i(1);o.hasClass("open")||(o.find(".dropdown-toggle").dropdown("toggle"),r.detectDropdownVisibility()),n()(!1)}}},t.bindingHandlers.dropdownCloser={init:function(e){s(e).closest(".dropdown").on("click",".e-item",function(){s(e).dropdown("toggle")})}},t.bindingHandlers.popover={init:function(e,i){s(e).popover(t.unwrap(i())),t.utils.domNodeDisposal.addDisposeCallback(e,function(){s(e).popover("destroy")})}},t.bindingHandlers.csstext={init:function(e,n){var o=i(1);e&&e.styleSheet&&!o.isUnd(e.styleSheet.cssText)?e.styleSheet.cssText=t.unwrap(n()):s(e).text(t.unwrap(n()))},update:function(e,n){var o=i(1);e&&e.styleSheet&&!o.isUnd(e.styleSheet.cssText)?e.styleSheet.cssText=t.unwrap(n()):s(e).text(t.unwrap(n()))}},t.bindingHandlers.resizecrop={init:function(e){s(e).addClass("resizecrop").resizecrop({width:"100",height:"100",wrapperCSS:{"border-radius":"10px"}})},update:function(e,t){t()(),s(e).resizecrop({width:"100",height:"100"})}},t.bindingHandlers.onEnter={init:function(e,i,o,r){s(e).on("keypress.koOnEnter",function(t){t&&13===n.parseInt(t.keyCode,10)&&(s(e).trigger("change"),i().call(r))}),t.utils.domNodeDisposal.addDisposeCallback(e,function(){s(e).off("keypress.koOnEnter")})}},t.bindingHandlers.onEsc={init:function(e,i,o,r){s(e).on("keypress.koOnEsc",function(t){t&&27===n.parseInt(t.keyCode,10)&&(s(e).trigger("change"),i().call(r))}),t.utils.domNodeDisposal.addDisposeCallback(e,function(){s(e).off("keypress.koOnEsc")})}},t.bindingHandlers.clickOnTrue={update:function(e,i){t.unwrap(i())&&s(e).click()}},t.bindingHandlers.modal={init:function(e,n){var o=i(8),r=i(1);s(e).toggleClass("fade",!o.bMobileDevice).modal({keyboard:!1,show:t.unwrap(n())}).on("shown.koModal",r.windowResizeCallback).find(".close").on("click.koModal",function(){n()(!1)}),t.utils.domNodeDisposal.addDisposeCallback(e,function(){s(e).off("shown.koModal").find(".close").off("click.koModal")})},update:function(e,i){s(e).modal(t.unwrap(i())?"show":"hide")}},t.bindingHandlers.i18nInit={init:function(e){i(7).i18nToNode(e)}},t.bindingHandlers.i18nUpdate={update:function(e,n){t.unwrap(n()),i(7).i18nToNode(e)}},t.bindingHandlers.link={update:function(e,i){s(e).attr("href",t.unwrap(i()))}},t.bindingHandlers.title={update:function(e,i){s(e).attr("title",t.unwrap(i()))}},t.bindingHandlers.textF={init:function(e,i){s(e).text(t.unwrap(i()))}},t.bindingHandlers.initDom={init:function(e,t){t()(e)}},t.bindingHandlers.initFixedTrigger={init:function(e,i){var o=t.unwrap(i()),r=null,a=s(e),l=null,c=o[1]||0;r=s(o[0]||null),r=r[0]?r:null,r&&s(n).resize(function(){l=r.offset(),l&&l.top&&a.css("top",l.top+c)})}},t.bindingHandlers.initResizeTrigger={init:function(e,i){var n=t.unwrap(i());s(e).css({height:n[1],"min-height":n[1]})},update:function(e,n){var o=i(1),r=i(8),a=t.unwrap(n()),l=o.pInt(a[1]),c=0,u=s(e).offset().top;u>0&&(u+=o.pInt(a[2]),c=r.$win.height()-u,c>l&&(l=c),s(e).css({height:l,"min-height":l}))}},t.bindingHandlers.appendDom={update:function(e,i){s(e).hide().empty().append(t.unwrap(i())).show()}},t.bindingHandlers.draggable={init:function(e,o,r){var a=i(8),l=i(1);if(!a.bMobileDevice){var c=100,u=3,p=r(),d=p&&p.droppableSelector?p.droppableSelector:"",h={distance:20,handle:".dragHandle",cursorAt:{top:22,left:3},refreshPositions:!0,scroll:!0};d&&(h.drag=function(e){s(d).each(function(){var t=null,i=null,o=s(this),r=o.offset(),a=r.top+o.height();n.clearInterval(o.data("timerScroll")),o.data("timerScroll",!1),e.pageX>=r.left&&e.pageX<=r.left+o.width()&&(e.pageY>=a-c&&e.pageY<=a&&(t=function(){o.scrollTop(o.scrollTop()+u),l.windowResize()},o.data("timerScroll",n.setInterval(t,10)),t()),e.pageY>=r.top&&e.pageY<=r.top+c&&(i=function(){o.scrollTop(o.scrollTop()-u),l.windowResize()},o.data("timerScroll",n.setInterval(i,10)),i()))})},h.stop=function(){s(d).each(function(){n.clearInterval(s(this).data("timerScroll")),s(this).data("timerScroll",!1)})}),h.helper=function(e){return o()(e&&e.target?t.dataFor(e.target):null)},s(e).draggable(h).on("mousedown.koDraggable",function(){l.removeInFocus()}),t.utils.domNodeDisposal.addDisposeCallback(e,function(){s(e).off("mousedown.koDraggable").draggable("destroy")})}}},t.bindingHandlers.droppable={init:function(e,n,o){var r=i(8);if(!r.bMobileDevice){var a=n(),l=o(),c=l&&l.droppableOver?l.droppableOver:null,u=l&&l.droppableOut?l.droppableOut:null,p={tolerance:"pointer",hoverClass:"droppableHover"};a&&(p.drop=function(e,t){a(e,t)},c&&(p.over=function(e,t){c(e,t)}),u&&(p.out=function(e,t){u(e,t)}),s(e).droppable(p),t.utils.domNodeDisposal.addDisposeCallback(e,function(){s(e).droppable("destroy")}))}}},t.bindingHandlers.nano={init:function(e){var t=i(8);t.bDisableNanoScroll||s(e).addClass("nano").nanoScroller({iOSNativeScrolling:!1,preventPageScrolling:!0})}},t.bindingHandlers.saveTrigger={init:function(e){var t=s(e);t.data("save-trigger-type",t.is("input[type=text],input[type=email],input[type=password],select,textarea")?"input":"custom"),"custom"===t.data("save-trigger-type")?t.append('  ').addClass("settings-saved-trigger"):t.addClass("settings-saved-trigger-input")},update:function(e,i){var n=t.unwrap(i()),o=s(e);if("custom"===o.data("save-trigger-type"))switch(n.toString()){case"1":o.find(".animated,.error").hide().removeClass("visible").end().find(".success").show().addClass("visible");break;case"0":o.find(".animated,.success").hide().removeClass("visible").end().find(".error").show().addClass("visible");break;case"-2":o.find(".error,.success").hide().removeClass("visible").end().find(".animated").show().addClass("visible");break;default:o.find(".animated").hide().end().find(".error,.success").removeClass("visible")}else switch(n.toString()){case"1":o.addClass("success").removeClass("error");break;case"0":o.addClass("error").removeClass("success");break;case"-2":break;default:o.removeClass("error success")}}},t.bindingHandlers.emailsTags={init:function(e,t,n){var r=i(1),a=i(25),l=s(e),c=t(),u=n(),p=u.autoCompleteSource||null,d=function(e){c&&c.focusTrigger&&c.focusTrigger(e)};l.inputosaurus({parseOnBlur:!0,allowDragAndDrop:!0,focusCallback:d,inputDelimiters:[",",";"],autoCompleteSource:p,parseHook:function(e){return o.map(e,function(e){var t=r.trim(e),i=null;return""!==t?(i=new a,i.mailsoParse(t),[i.toLine(!1),i]):[t,null]})},change:o.bind(function(e){l.data("EmailsTagsValue",e.target.value),c(e.target.value)},this)})},update:function(e,i,n){var o=s(e),r=n(),a=r.emailsTagsFilter||null,l=t.unwrap(i());o.data("EmailsTagsValue")!==l&&(o.val(l),o.data("EmailsTagsValue",l),o.inputosaurus("refresh")),a&&t.unwrap(a)&&o.inputosaurus("focus")}},t.bindingHandlers.command={init:function(e,i,n,o){var r=s(e),a=i();if(!a||!a.enabled||!a.canExecute)throw new Error("You are not using command function");r.addClass("command"),t.bindingHandlers[r.is("form")?"submit":"click"].init.apply(o,arguments)},update:function(e,t){var i=!0,n=s(e),o=t();i=o.enabled(),n.toggleClass("command-not-enabled",!i),i&&(i=o.canExecute(),n.toggleClass("command-can-not-be-execute",!i)),n.toggleClass("command-disabled disable disabled",!i).toggleClass("no-disabled",!!i),(n.is("input")||n.is("button"))&&n.prop("disabled",!i)}},t.extenders.trimmer=function(e){var n=i(1),o=t.computed({read:e,write:function(t){e(n.trim(t.toString()))},owner:this});return o(e()),o},t.extenders.posInterer=function(e,n){var o=i(1),s=t.computed({read:e,write:function(t){var i=o.pInt(t.toString(),n);0>=i&&(i=n),i===e()&&""+i!=""+t&&e(i+1),e(i)}});return s(e()),s},t.extenders.limitedList=function(e,n){var o=i(1),s=t.computed({read:e,write:function(i){var s=t.unwrap(e),r=t.unwrap(n);o.isNonEmptyArray(r)?-1").addClass("rl-view-model").addClass("RL-"+r.viewModelTemplate()).hide(),d.appendTo(p),r.viewModelDom=d,e.__dom=d,"Popups"===a&&(r.cancelCommand=r.closeCommand=u.createCommand(r,function(){i.hideScreenPopup(e)}),r.modalVisibility.subscribe(function(e){var t=this;e?(this.viewModelDom.show(),this.storeAndSetKeyScope(),l.popupVisibilityNames.push(this.viewModelName),r.viewModelDom.css("z-index",3e3+l.popupVisibilityNames().length+10),u.delegateRun(this,"onFocus",[],500)):(u.delegateRun(this,"onHide"),this.onHideTrigger&&this.onHideTrigger(!this.onHideTrigger()),this.restoreKeyScope(),n.each(this.viewModelNames,function(e){c.runHook("view-model-on-hide",[e,t])}),l.popupVisibilityNames.remove(this.viewModelName),r.viewModelDom.css("z-index",2e3),l.tooltipTrigger(!l.tooltipTrigger()),n.delay(function(){t.viewModelDom.hide()},300))},r)),n.each(e.__names,function(e){c.runHook("view-model-pre-build",[e,r,d])}),s.applyBindingAccessorsToNode(d[0],{i18nInit:!0,template:function(){return{name:r.viewModelTemplate()}}},r),u.delegateRun(r,"onBuild",[d]),r&&"Popups"===a&&r.registerPopupKeyDown(),n.each(e.__names,function(e){c.runHook("view-model-post-build",[e,r,d])})):u.log("Cannot find view model position: "+a)}return e?e.__vm:null},t.prototype.hideScreenPopup=function(e){e&&e.__vm&&e.__dom&&e.__vm.modalVisibility(!1)},t.prototype.showScreenPopup=function(e,t){e&&(this.buildViewModel(e),e.__vm&&e.__dom&&(e.__vm.modalVisibility(!0),u.delegateRun(e.__vm,"onShow",t||[]),e.__vm.onShowTrigger&&e.__vm.onShowTrigger(!e.__vm.onShowTrigger()),n.each(e.__names,function(i){c.runHook("view-model-on-show",[i,e.__vm,t||[]])})))},t.prototype.isPopupVisible=function(e){return e&&e.__vm?e.__vm.modalVisibility():!1},t.prototype.screenOnRoute=function(e,t){var i=this,o=null,s=null;""===u.pString(e)&&(e=this.sDefaultScreenName),""!==e&&(o=this.screen(e),o||(o=this.screen(this.sDefaultScreenName),o&&(t=e+"/"+t,e=this.sDefaultScreenName)),o&&o.__started&&(o.__builded||(o.__builded=!0,u.isNonEmptyArray(o.viewModels())&&n.each(o.viewModels(),function(e){this.buildViewModel(e,o)},this),u.delegateRun(o,"onBuild")),n.defer(function(){i.oCurrentScreen&&(u.delegateRun(i.oCurrentScreen,"onHide"),i.oCurrentScreen.onHideTrigger&&i.oCurrentScreen.onHideTrigger(!i.oCurrentScreen.onHideTrigger()),u.isNonEmptyArray(i.oCurrentScreen.viewModels())&&n.each(i.oCurrentScreen.viewModels(),function(e){e.__vm&&e.__dom&&"Popups"!==e.__vm.viewModelPosition()&&(e.__dom.hide(),e.__vm.viewModelVisibility(!1),u.delegateRun(e.__vm,"onHide"),e.__vm.onHideTrigger&&e.__vm.onHideTrigger(!e.__vm.onHideTrigger()))})),i.oCurrentScreen=o,i.oCurrentScreen&&(u.delegateRun(i.oCurrentScreen,"onShow"),i.oCurrentScreen.onShowTrigger&&i.oCurrentScreen.onShowTrigger(!i.oCurrentScreen.onShowTrigger()),c.runHook("screen-on-show",[i.oCurrentScreen.screenName(),i.oCurrentScreen]),u.isNonEmptyArray(i.oCurrentScreen.viewModels())&&n.each(i.oCurrentScreen.viewModels(),function(e){e.__vm&&e.__dom&&"Popups"!==e.__vm.viewModelPosition()&&(e.__dom.show(),e.__vm.viewModelVisibility(!0),u.delegateRun(e.__vm,"onShow"),e.__vm.onShowTrigger&&e.__vm.onShowTrigger(!e.__vm.onShowTrigger()),u.delegateRun(e.__vm,"onFocus",[],200),n.each(e.__names,function(t){c.runHook("view-model-on-show",[t,e.__vm])}))},i)),s=o.__cross?o.__cross():null,s&&s.parse(t)})))},t.prototype.startScreens=function(e){o("#rl-content").css({visibility:"hidden"}),n.each(e,function(e){var t=new e,i=t?t.screenName():"";t&&""!==i&&(""===this.sDefaultScreenName&&(this.sDefaultScreenName=i),this.oScreens[i]=t)},this),n.each(this.oScreens,function(e){e&&!e.__started&&e.__start&&(e.__started=!0,e.__start(),c.runHook("screen-pre-start",[e.screenName(),e]),u.delegateRun(e,"onStart"),c.runHook("screen-post-start",[e.screenName(),e]))},this);var t=a.create();t.addRoute(/^([a-zA-Z0-9\-]*)\/?(.*)$/,n.bind(this.screenOnRoute,this)),r.initialized.add(t.parse,t),r.changed.add(t.parse,t),r.init(),o("#rl-content").css({visibility:"visible"}),n.delay(function(){l.$html.removeClass("rl-started-trigger").addClass("rl-started")},50),n.delay(function(){l.$html.addClass("rl-started-delay")},200)},t.prototype.setHash=function(e,t,i){e="#"===e.substr(0,1)?e.substr(1):e,e="/"===e.substr(0,1)?e.substr(1):e,i=u.isUnd(i)?!1:!!i,(u.isUnd(t)?1:!t)?(r.changed.active=!0,r[i?"replaceHash":"setHash"](e),r.setHash(e)):(r.changed.active=!1,r[i?"replaceHash":"setHash"](e),r.changed.active=!0)},e.exports=new t}()},,function(e,t,i){!function(){"use strict";function t(){this.data=n.rainloopI18N||{},this.notificationI18N={},this.trigger=r.observable(!1),this.i18n=s.bind(this.i18n,this)}var n=i(10),o=i(13),s=i(2),r=i(3),a=i(4),l=i(8);t.prototype.data={},t.prototype.notificationI18N={},t.prototype.i18n=function(e,t,i){var n="",o=s.isUndefined(this.data[e])?s.isUndefined(i)?e:i:this.data[e];if(!s.isUndefined(t)&&!s.isNull(t))for(n in t)s.has(t,n)&&(o=o.replace("%"+n+"%",t[n]));return o},t.prototype.i18nToNode=function(e,t){var i=this;s.defer(function(){o(".i18n",e).each(function(){var e=o(this),t="";t=e.data("i18n-text"),t?e.text(i.i18n(t)):(t=e.data("i18n-html"),t&&e.html(i.i18n(t)),t=e.data("i18n-placeholder"),t&&e.attr("placeholder",i.i18n(t)),t=e.data("i18n-title"),t&&e.attr("title",i.i18n(t)))}),t&&l.bAnimationSupported&&o(".i18n-animation.i18n",e).letterfx({fx:"fall fade",backwards:!1,timing:50,fx_duration:"50ms",letter_end:"restore",element_end:"restore"})})},t.prototype.reloadData=function(){n.rainloopI18N&&(this.data=n.rainloopI18N||{},this.i18nToNode(o(n.document),!0),this.trigger(!this.trigger())),n.rainloopI18N=null},t.prototype.initNotificationLanguage=function(){var e=this.notificationI18N||{};e[a.Notification.InvalidToken]=this.i18n("NOTIFICATIONS/INVALID_TOKEN"),e[a.Notification.AuthError]=this.i18n("NOTIFICATIONS/AUTH_ERROR"),e[a.Notification.AccessError]=this.i18n("NOTIFICATIONS/ACCESS_ERROR"),e[a.Notification.ConnectionError]=this.i18n("NOTIFICATIONS/CONNECTION_ERROR"),e[a.Notification.CaptchaError]=this.i18n("NOTIFICATIONS/CAPTCHA_ERROR"),e[a.Notification.SocialFacebookLoginAccessDisable]=this.i18n("NOTIFICATIONS/SOCIAL_FACEBOOK_LOGIN_ACCESS_DISABLE"),e[a.Notification.SocialTwitterLoginAccessDisable]=this.i18n("NOTIFICATIONS/SOCIAL_TWITTER_LOGIN_ACCESS_DISABLE"),e[a.Notification.SocialGoogleLoginAccessDisable]=this.i18n("NOTIFICATIONS/SOCIAL_GOOGLE_LOGIN_ACCESS_DISABLE"),e[a.Notification.DomainNotAllowed]=this.i18n("NOTIFICATIONS/DOMAIN_NOT_ALLOWED"),e[a.Notification.AccountNotAllowed]=this.i18n("NOTIFICATIONS/ACCOUNT_NOT_ALLOWED"),e[a.Notification.AccountTwoFactorAuthRequired]=this.i18n("NOTIFICATIONS/ACCOUNT_TWO_FACTOR_AUTH_REQUIRED"),e[a.Notification.AccountTwoFactorAuthError]=this.i18n("NOTIFICATIONS/ACCOUNT_TWO_FACTOR_AUTH_ERROR"),e[a.Notification.CouldNotSaveNewPassword]=this.i18n("NOTIFICATIONS/COULD_NOT_SAVE_NEW_PASSWORD"),e[a.Notification.CurrentPasswordIncorrect]=this.i18n("NOTIFICATIONS/CURRENT_PASSWORD_INCORRECT"),e[a.Notification.NewPasswordShort]=this.i18n("NOTIFICATIONS/NEW_PASSWORD_SHORT"),e[a.Notification.NewPasswordWeak]=this.i18n("NOTIFICATIONS/NEW_PASSWORD_WEAK"),e[a.Notification.NewPasswordForbidden]=this.i18n("NOTIFICATIONS/NEW_PASSWORD_FORBIDDENT"),e[a.Notification.ContactsSyncError]=this.i18n("NOTIFICATIONS/CONTACTS_SYNC_ERROR"),e[a.Notification.CantGetMessageList]=this.i18n("NOTIFICATIONS/CANT_GET_MESSAGE_LIST"),e[a.Notification.CantGetMessage]=this.i18n("NOTIFICATIONS/CANT_GET_MESSAGE"),e[a.Notification.CantDeleteMessage]=this.i18n("NOTIFICATIONS/CANT_DELETE_MESSAGE"),e[a.Notification.CantMoveMessage]=this.i18n("NOTIFICATIONS/CANT_MOVE_MESSAGE"),e[a.Notification.CantCopyMessage]=this.i18n("NOTIFICATIONS/CANT_MOVE_MESSAGE"),e[a.Notification.CantSaveMessage]=this.i18n("NOTIFICATIONS/CANT_SAVE_MESSAGE"),e[a.Notification.CantSendMessage]=this.i18n("NOTIFICATIONS/CANT_SEND_MESSAGE"),e[a.Notification.InvalidRecipients]=this.i18n("NOTIFICATIONS/INVALID_RECIPIENTS"),e[a.Notification.CantSaveFilters]=this.i18n("NOTIFICATIONS/CANT_SAVE_FILTERS"),e[a.Notification.CantGetFilters]=this.i18n("NOTIFICATIONS/CANT_GET_FILTERS"),e[a.Notification.FiltersAreNotCorrect]=this.i18n("NOTIFICATIONS/FILTERS_ARE_NOT_CORRECT"),e[a.Notification.CantCreateFolder]=this.i18n("NOTIFICATIONS/CANT_CREATE_FOLDER"),e[a.Notification.CantRenameFolder]=this.i18n("NOTIFICATIONS/CANT_RENAME_FOLDER"),e[a.Notification.CantDeleteFolder]=this.i18n("NOTIFICATIONS/CANT_DELETE_FOLDER"),e[a.Notification.CantDeleteNonEmptyFolder]=this.i18n("NOTIFICATIONS/CANT_DELETE_NON_EMPTY_FOLDER"),e[a.Notification.CantSubscribeFolder]=this.i18n("NOTIFICATIONS/CANT_SUBSCRIBE_FOLDER"),e[a.Notification.CantUnsubscribeFolder]=this.i18n("NOTIFICATIONS/CANT_UNSUBSCRIBE_FOLDER"),e[a.Notification.CantSaveSettings]=this.i18n("NOTIFICATIONS/CANT_SAVE_SETTINGS"),e[a.Notification.CantSavePluginSettings]=this.i18n("NOTIFICATIONS/CANT_SAVE_PLUGIN_SETTINGS"),e[a.Notification.DomainAlreadyExists]=this.i18n("NOTIFICATIONS/DOMAIN_ALREADY_EXISTS"),e[a.Notification.CantInstallPackage]=this.i18n("NOTIFICATIONS/CANT_INSTALL_PACKAGE"),e[a.Notification.CantDeletePackage]=this.i18n("NOTIFICATIONS/CANT_DELETE_PACKAGE"),e[a.Notification.InvalidPluginPackage]=this.i18n("NOTIFICATIONS/INVALID_PLUGIN_PACKAGE"),e[a.Notification.UnsupportedPluginPackage]=this.i18n("NOTIFICATIONS/UNSUPPORTED_PLUGIN_PACKAGE"),e[a.Notification.LicensingServerIsUnavailable]=this.i18n("NOTIFICATIONS/LICENSING_SERVER_IS_UNAVAILABLE"),e[a.Notification.LicensingExpired]=this.i18n("NOTIFICATIONS/LICENSING_EXPIRED"),e[a.Notification.LicensingBanned]=this.i18n("NOTIFICATIONS/LICENSING_BANNED"),e[a.Notification.DemoSendMessageError]=this.i18n("NOTIFICATIONS/DEMO_SEND_MESSAGE_ERROR"),e[a.Notification.DemoAccountError]=this.i18n("NOTIFICATIONS/DEMO_ACCOUNT_ERROR"),e[a.Notification.AccountAlreadyExists]=this.i18n("NOTIFICATIONS/ACCOUNT_ALREADY_EXISTS"),e[a.Notification.AccountDoesNotExist]=this.i18n("NOTIFICATIONS/ACCOUNT_DOES_NOT_EXIST"),e[a.Notification.MailServerError]=this.i18n("NOTIFICATIONS/MAIL_SERVER_ERROR"),e[a.Notification.InvalidInputArgument]=this.i18n("NOTIFICATIONS/INVALID_INPUT_ARGUMENT"),e[a.Notification.UnknownNotification]=this.i18n("NOTIFICATIONS/UNKNOWN_ERROR"),e[a.Notification.UnknownError]=this.i18n("NOTIFICATIONS/UNKNOWN_ERROR")},t.prototype.initOnStartOrLangChange=function(e,t,i){e&&e.call(t),i?this.trigger.subscribe(function(){e&&e.call(t),i.call(t)}):e&&this.trigger.subscribe(e,t)},t.prototype.getNotification=function(e,t){return e=n.parseInt(e,10)||0,a.Notification.ClientViewError===e&&t?t:s.isUndefined(this.notificationI18N[e])?"":this.notificationI18N[e]},t.prototype.getUploadErrorDescByCode=function(e){var t="";switch(n.parseInt(e,10)||0){case a.UploadErrorCode.FileIsTooBig:t=this.i18n("UPLOAD/ERROR_FILE_IS_TOO_BIG");break;case a.UploadErrorCode.FilePartiallyUploaded:t=this.i18n("UPLOAD/ERROR_FILE_PARTIALLY_UPLOADED");break;case a.UploadErrorCode.FileNoUploaded:t=this.i18n("UPLOAD/ERROR_NO_FILE_UPLOADED");break;case a.UploadErrorCode.MissingTempFolder:t=this.i18n("UPLOAD/ERROR_MISSING_TEMP_FOLDER");break;case a.UploadErrorCode.FileOnSaveingError:t=this.i18n("UPLOAD/ERROR_ON_SAVING_FILE");break;case a.UploadErrorCode.FileType:t=this.i18n("UPLOAD/ERROR_FILE_TYPE");break;default:t=this.i18n("UPLOAD/ERROR_UNKNOWN")}return t},t.prototype.reload=function(e,t,n){var r=this,a=o("html"),l=function(){},c=(new Date).getTime();a.addClass("rl-changing-language"),o.ajax({url:i(12).langLink(e),dataType:"script",cache:!0}).fail(n||l).done(function(){s.delay(function(){r.reloadData(),(t||l)(),a.removeClass("rl-changing-language")},500<(new Date).getTime()-c?1:500)})},e.exports=new t}()},function(e,t,i){!function(){"use strict";var t={},n=i(10),o=i(2),s=i(13),r=i(3),a=i(21),l=i(4);t.$win=s(n),t.$doc=s(n.document),t.$html=s("html"),t.$div=s("
"),t.now=(new n.Date).getTime(),t.momentTrigger=r.observable(!0),t.dropdownVisibility=r.observable(!1).extend({rateLimit:0}),t.tooltipTrigger=r.observable(!1).extend({rateLimit:0}),t.useKeyboardShortcuts=r.observable(!0),t.iAjaxErrorCount=0,t.iTokenErrorCount=0,t.iMessageBodyCacheCount=0,t.bUnload=!1,t.sUserAgent=(n.navigator.userAgent||"").toLowerCase(),t.bIsiOSDevice=-11&&(n=n.replace(/[\/]+$/,""),n+="/p"+t),""!==i&&(n=n.replace(/[\/]+$/,""),n+="/"+encodeURI(i)),n},t.prototype.phpInfo=function(){return this.sServer+"Info"},t.prototype.langLink=function(e){return this.sServer+"/Lang/0/"+encodeURI(e)+"/"+this.sVersion+"/"},t.prototype.exportContactsVcf=function(){return this.sServer+"/Raw/"+this.sSubQuery+this.sSpecSuffix+"/ContactsVcf/"},t.prototype.exportContactsCsv=function(){return this.sServer+"/Raw/"+this.sSubQuery+this.sSpecSuffix+"/ContactsCsv/"},t.prototype.emptyContactPic=function(){return this.sStaticPrefix+"css/images/empty-contact.png"},t.prototype.sound=function(e){return this.sStaticPrefix+"sounds/"+e},t.prototype.themePreviewLink=function(e){var t="rainloop/v/"+this.sVersion+"/";return"@custom"===e.substr(-7)&&(e=o.trim(e.substring(0,e.length-7)),t=""),t+"themes/"+n.encodeURI(e)+"/images/preview.png"},t.prototype.notificationMailIcon=function(){return this.sStaticPrefix+"css/images/icom-message-notification.png"},t.prototype.openPgpJs=function(){return this.sStaticPrefix+"js/min/openpgp.js"},t.prototype.socialGoogle=function(){return this.sServer+"SocialGoogle"+(""!==this.sSpecSuffix?"/"+this.sSubQuery+this.sSpecSuffix+"/":"")},t.prototype.socialTwitter=function(){return this.sServer+"SocialTwitter"+(""!==this.sSpecSuffix?"/"+this.sSubQuery+this.sSpecSuffix+"/":"")},t.prototype.socialFacebook=function(){return this.sServer+"SocialFacebook"+(""!==this.sSpecSuffix?"/"+this.sSubQuery+this.sSpecSuffix+"/":"")},e.exports=new t}()},function(e){e.exports=window.jQuery},,,function(e,t,i){(function(e){!function(){"use strict";var t={};t.Values={},t.DataImages={},t.Defaults={},t.Defaults.MessagesPerPage=20,t.Defaults.ContactsPerPage=50,t.Defaults.MessagesPerPageArray=[10,20,30,50,100],t.Defaults.DefaultAjaxTimeout=3e4,t.Defaults.SearchAjaxTimeout=3e5,t.Defaults.SendMessageAjaxTimeout=3e5,t.Defaults.SaveMessageAjaxTimeout=2e5,t.Defaults.ContactsSyncAjaxTimeout=2e5,t.Values.UnuseOptionValue="__UNUSE__",t.Values.ClientSideStorageIndexName="rlcsc",t.Values.ImapDefaulPort=143,t.Values.ImapDefaulSecurePort=993,t.Values.SieveDefaulPort=4190,t.Values.SmtpDefaulPort=25,t.Values.SmtpDefaulSecurePort=465,t.Values.MessageBodyCacheLimit=15,t.Values.AjaxErrorLimit=7,t.Values.TokenErrorLimit=10,t.Values.RainLoopTrialKey="RAINLOOP-TRIAL-KEY",t.DataImages.UserDotPic="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAYAAABXuSs3AAAHHklEQVRoQ7VZW08bVxCeXRuwIbTGXIwNtBBaqjwgVUiR8lDlbza9qe1DpVZ9aNQ/0KpPeaJK07SpcuEeCEmUAObm21bfrL9lONjexSYrWfbunj37zXdmvpkz9oIgCKTD0Wg0xPd94TDP83Q0zvWa50vzklSrdanVanqf4/D84GBGr+F+Op3S8fqoJxLOdnZgTvsO/nYhenHA+UC7CWF1uXwkb9++ldPTUwVerVbVqFQqpR8YPjQ0JCMjI5LNDijoRgP3PQVu5+5Eor2XGLg7IV4GkIdHJ/LmzRs5ODiIwNbrdR0O0GCcq4Xz4eFhmZyclP7+tDQaIik/BG5XKQn4SwG3zJTLZXn9+rUclI8UHD5YVoDDN8bSzXhONwL48fFxGR4eilzFZT1uFRIB5yT8BqCdnR3Z3d0VP9Un6XRawYJpggVrZBv38ME4XKtUKnLt2jUplUoy1PR/l3U7T6sVSAQcgMAkj8PDQ9ne3pajoyMRL7zeKsYZWHgWYDGmv78/mmdwcFA+mJlSgziHDWrERrsjEXDXegTi1tZW+DLxI2bxIrqFNYTXyDyCFweMAHCwb8e4RnTNuOsqe3t7sra21pTD0Kct666E8XlcZyzw9/RUUXK5nK5oUinUQI6TQ3cynO/v78vq6qrKXCNwlTiJJpyNGc3nZHp6uqV2dwrQWOCtZBDAV1ZWwsQk7f0wiQn5kffbAu/0/KWBYzIC1+XukfGx0RGZmppKlC2tIV0Bh4aDcZW7HhkfH8urLLZL7T2pihvlkMNnz56FiadHxicL41IsFpN41bkxsYxbRdFo9jwB8KdPn14J8KnSpBQKhQs63nPmbCVRcBUAR2Lq1VVmpksyMTFxAXjcEsQybiegESionjx5osCZOeNe1O4+EhCAX7bQSgQcxRHTMgAgcz5+/Dis/hL4uHU3/B4YGNASGHIKxuEql0k+l05AeIAF1vPnz5VxFFmdDlaJrMtZITJeSsXCOTlMunKxjLtMYOKNjQ158eJFuAuKkUOb5sEwgff19SkJUBVkThZUbnXZrtCKBQ6gbnWIkjZpyne3ejAWoGnA7Icz6irvBLgbOMicCM6TkxPx/LAkbXfgWcsazuE2kFRsKD5Z+CiqDumKncpZvieWcS6dDVD8xiYCNflpJdwcdwJOf9airLmVQ7DPzMxIYWLsXGXoVqLt5k0M3K3JUVPDZdbWNzsCp48TPFdvdnZWUz32nDha7bJ63kgAJPzSdRks9/Kf9xMJAQ1gq2NpaUmy2Yz4zar4nQC3xb99AQwCcGzLAAwuhG8YiWvcOKts+r4GOe5nMhm5efOm9lUA3E3vSZJRrKvE0fnPv//Jy5cvo5cTHIPQbSjhOoqq69evS19f6lxDKK4+sVhigZPtKJqbrQeqxd5+WR4+fKgqgT0k2XX3nhiPgETWXFhYkFzuPZ2yVq1GTSOXpE47/VjgNnD4m4GG7/LhsTx69EiwD4Vr2MwIIxgbAH18fKx1yfz8vEogNvGtWnCuhLZa9UTAreVWFsHy/b/+Vrbdl7E5REMQD2jDoUbByty+/ZnU64GkU2HzyJLhktU1cLv8nARgkYS2d3ajAgwG8qU2oLmDZ92CMaOjo7K4uCiZgbDWaRWgnZhPxLhrMUCvr69riwKZk1LHF7XqrWAO9hJxH6ozNzcnCx/PqztZg9mf6SQMscCtm2C5ke4BGMlHWTUp36036AJajDVrFMzBrhhWslQsSrFYiOqVpMriNYIgqFRq2j3FAb/zffT6zuxFXxsNzs3NTXn16lW4gYiW96w1FyedF+83xG/2FNGCRpU4NjamMsn+OZ9xE5RXqdaDdPpib6RWCzuwKF9RxqI2AVNQBwQYJoK0wdBejnqtEikP3pfP51XjUTESl12FqJEKxsEorARYDD44ONTeID7YpsEnrRvQfWAI2e8WfDaTUSIwJ0iBCmFOtOUAHvVMPp/TPwvYFVYFIuP8l+DBgwdaa2Miqwa0GgYwfeMltovbDfh6c1vIgMYcliSsKv4IWFr6VDHxvldvBAH+1sA+cnl5WYOPmmr9ir+1l9I0Cgz0yjhXjfJJ0JROnmezWbl165ayr/5fqwcBNr7IfhjMqKcvESSM4eRcCasQ3bDNObmKPLdGUGpZsN24cUNLBm9zazu4d++e6qpNBFaTuUS26U5dpuR1CxyA7J9ddrMRqlz4pwLLYawymPd++/2PADt2ugcGwq9gCCdhQ96C6xWwa6j1ceuq+I0EhW0i8MAIVJfeL3d/DVD8EKi12P6/2S2jV/EccVB54O/ejz/9HGCpoBBMta5rXMXLu53D1XAwjhXwvvv+h4BAXVe4bOu3O3ChxF08LiZFG3fel199G9CH3fLyqv24NcB44MRhpdK788U3CpyKwsCw590xmfSpzsBt0Fqc3ud3vtZigxWcVZCklVpSiN0w3q5E/h9TGMIUuA3+EQAAAABJRU5ErkJggg==",t.DataImages.TranspPic="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQIW2NkAAIAAAoAAggA9GkAAAAASUVORK5CYII=",e.exports=t}(e)}).call(t,i(70)(e))},function(e,t,i){!function(){"use strict";function t(){o.call(this),this.oRequests={}}var n=i(2),o=i(59);n.extend(t.prototype,o.prototype),t.prototype.adminLogin=function(e,t,i){this.defaultRequest(e,"AdminLogin",{Login:t,Password:i})},t.prototype.adminLogout=function(e){this.defaultRequest(e,"AdminLogout")},t.prototype.saveAdminConfig=function(e,t){this.defaultRequest(e,"AdminSettingsUpdate",t)},t.prototype.domainList=function(e){this.defaultRequest(e,"AdminDomainList")},t.prototype.pluginList=function(e){this.defaultRequest(e,"AdminPluginList")},t.prototype.packagesList=function(e){this.defaultRequest(e,"AdminPackagesList")},t.prototype.coreData=function(e){this.defaultRequest(e,"AdminCoreData")},t.prototype.updateCoreData=function(e){this.defaultRequest(e,"AdminUpdateCoreData",{},9e4)},t.prototype.packageInstall=function(e,t){this.defaultRequest(e,"AdminPackageInstall",{Id:t.id,Type:t.type,File:t.file},6e4)},t.prototype.packageDelete=function(e,t){this.defaultRequest(e,"AdminPackageDelete",{Id:t.id})},t.prototype.domain=function(e,t){this.defaultRequest(e,"AdminDomainLoad",{Name:t})},t.prototype.plugin=function(e,t){this.defaultRequest(e,"AdminPluginLoad",{Name:t})},t.prototype.domainDelete=function(e,t){this.defaultRequest(e,"AdminDomainDelete",{Name:t})},t.prototype.domainDisable=function(e,t,i){return this.defaultRequest(e,"AdminDomainDisable",{Name:t,Disabled:i?"1":"0"})},t.prototype.pluginSettingsUpdate=function(e,t){return this.defaultRequest(e,"AdminPluginSettingsUpdate",t)},t.prototype.licensing=function(e,t){return this.defaultRequest(e,"AdminLicensing",{Force:t?"1":"0"})},t.prototype.licensingActivate=function(e,t,i){return this.defaultRequest(e,"AdminLicensingActivate",{Domain:t,Key:i})},t.prototype.pluginDisable=function(e,t,i){return this.defaultRequest(e,"AdminPluginDisable",{Name:t,Disabled:i?"1":"0"})},t.prototype.createOrUpdateDomain=function(e,t,i,n,o,s,r,a,l,c,u,p,d,h,g,m,f,b,v){this.defaultRequest(e,"AdminDomainSave",{Create:t?"1":"0",Name:i,IncHost:n,IncPort:o,IncSecure:s,IncShortLogin:r?"1":"0",UseSieve:a?"1":"0",SieveAllowRaw:l?"1":"0",SieveHost:c,SievePort:u,SieveSecure:p,OutHost:d,OutPort:h,OutSecure:g,OutShortLogin:m?"1":"0",OutAuth:f?"1":"0",OutUsePhpMail:b?"1":"0",WhiteList:v})},t.prototype.testConnectionForDomain=function(e,t,i,n,o,s,r,a,l,c,u,p,d,h){this.defaultRequest(e,"AdminDomainTest",{Name:t,IncHost:i,IncPort:n,IncSecure:o,UseSieve:s?"1":"0",SieveHost:r,SievePort:a,SieveSecure:l,OutHost:c,OutPort:u,OutSecure:p,OutAuth:d?"1":"0",OutUsePhpMail:h?"1":"0"})},t.prototype.testContacts=function(e,t){this.defaultRequest(e,"AdminContactsTest",t)},t.prototype.saveNewAdminPassword=function(e,t){this.defaultRequest(e,"AdminPasswordUpdate",t)},t.prototype.adminPing=function(e){this.defaultRequest(e,"AdminPing")},e.exports=new t}()},function(e,t,i){!function(){"use strict";function t(){y.call(this,v)}var n=i(10),o=i(2),s=i(3),r=i(75),a=i(4),l=i(1),c=i(12),u=i(7),p=i(9),d=i(37),h=i(61),g=i(64),m=i(62),f=i(63),b=i(82),v=i(17),S=i(5),y=i(46);o.extend(t.prototype,y.prototype),t.prototype.remote=function(){return v},t.prototype.reloadDomainList=function(){h.domains.loading(!0),v.domainList(function(e,t){if(h.domains.loading(!1),a.StorageResultType.Success===e&&t&&t.Result){var i=o.map(t.Result,function(e,t){return{name:t,disabled:s.observable(!e),deleteAccess:s.observable(!1)}},this);h.domains(i)}})},t.prototype.reloadPluginList=function(){g.plugins.loading(!0),v.pluginList(function(e,t){if(g.plugins.loading(!1),a.StorageResultType.Success===e&&t&&t.Result){var i=o.map(t.Result,function(e){return{name:e.Name,disabled:s.observable(!e.Enabled),configured:s.observable(!!e.Configured)}},this);g.plugins(i)}})},t.prototype.reloadPackagesList=function(){f.packages.loading(!0),f.packagesReal(!0),v.packagesList(function(e,t){if(f.packages.loading(!1),a.StorageResultType.Success===e&&t&&t.Result){f.packagesReal(!!t.Result.Real),f.packagesMainUpdatable(!!t.Result.MainUpdatable);var i=[],n={};o.each(f.packages(),function(e){e&&e.loading()&&(n[e.file]=e)}),l.isArray(t.Result.List)&&(i=o.compact(o.map(t.Result.List,function(e){return e?(e.loading=s.observable(!l.isUnd(n[e.file])),"core"!==e.type||e.canBeInstalled?e:null):null}))),f.packages(i)}else f.packagesReal(!1)})},t.prototype.updateCoreData=function(){b.coreUpdating(!0),v.updateCoreData(function(e,t){b.coreUpdating(!1),b.coreRemoteVersion(""),b.coreRemoteRelease(""),b.coreVersionCompare(-2),a.StorageResultType.Success===e&&t&&t.Result?(b.coreReal(!0),n.location.reload()):b.coreReal(!1)})},t.prototype.reloadCoreData=function(){b.coreChecking(!0),b.coreReal(!0),v.coreData(function(e,t){b.coreChecking(!1),a.StorageResultType.Success===e&&t&&t.Result?(b.coreReal(!!t.Result.Real),b.coreChannel(t.Result.Channel||"stable"),b.coreType(t.Result.Type||"stable"),b.coreUpdatable(!!t.Result.Updatable),b.coreAccess(!!t.Result.Access),b.coreRemoteVersion(t.Result.RemoteVersion||""),b.coreRemoteRelease(t.Result.RemoteRelease||""),b.coreVersionCompare(l.pInt(t.Result.VersionCompare))):(b.coreReal(!1),b.coreChannel("stable"),b.coreType("stable"),b.coreRemoteVersion(""),b.coreRemoteRelease(""),b.coreVersionCompare(-2))})},t.prototype.reloadLicensing=function(e){e=l.isUnd(e)?!1:!!e,m.licensingProcess(!0),m.licenseError(""),v.licensing(function(e,t){m.licensingProcess(!1),a.StorageResultType.Success===e&&t&&t.Result&&l.isNormal(t.Result.Expired)?(m.licenseValid(!0),m.licenseExpired(l.pInt(t.Result.Expired)),m.licenseError(""),m.licensing(!0),d.prem(!0)):t&&t.ErrorCode&&-1,]+)>?,? ?/g,i=t.exec(e);i?(this.name=i[1]||"",this.email=i[2]||"",this.clearDuplicateName()):/^[^@]+@[^@]+$/.test(e)&&(this.name="",this.email=e)},t.prototype.initByJson=function(e){var t=!1;return e&&"Object/Email"===e["@Object"]&&(this.name=n.trim(e.Name),this.email=n.trim(e.Email),this.dkimStatus=n.trim(e.DkimStatus||""),this.dkimValue=n.trim(e.DkimValue||""),t=""!==this.email,this.clearDuplicateName()),t},t.prototype.toLine=function(e,t,i){var o="";return""!==this.email&&(t=n.isUnd(t)?!1:!!t,i=n.isUnd(i)?!1:!!i,e&&""!==this.name?o=t?'
")+'" target="_blank" tabindex="-1">'+n.encodeHtml(this.name)+"":i?n.encodeHtml(this.name):this.name:(o=this.email,""!==this.name?t?o=n.encodeHtml('"'+this.name+'" <')+'")+'" target="_blank" tabindex="-1">'+n.encodeHtml(o)+""+n.encodeHtml(">"):(o='"'+this.name+'" <'+o+">",i&&(o=n.encodeHtml(o))):t&&(o=''+n.encodeHtml(this.email)+""))),o},t.prototype.mailsoParse=function(e){if(e=n.trim(e),""===e)return!1;for(var t=function(e,t,i){e+="";var n=e.length;return 0>t&&(t+=n),n="undefined"==typeof i?n:0>i?i+n:i+t,t>=e.length||0>t||t>n?!1:e.slice(t,n)},i=function(e,t,i,n){return 0>i&&(i+=e.length),n=void 0!==n?n:e.length,0>n&&(n=n+e.length-i),e.slice(0,i)+t.substr(0,n)+t.slice(n)+e.slice(i+n)},o="",s="",r="",a=!1,l=!1,c=!1,u=null,p=0,d=0,h=0;h0&&0===o.length&&(o=t(e,0,h)),l=!0,p=h);break;case">":l&&(d=h,s=t(e,p+1,d-p-1),e=i(e,"",p,d-p+1),d=0,h=0,p=0,l=!1);break;case"(":a||l||c||(c=!0,p=h);break;case")":c&&(d=h,r=t(e,p+1,d-p-1),e=i(e,"",p,d-p+1),d=0,h=0,p=0,c=!1);break;case"\\":h++}h++}return 0===s.length&&(u=e.match(/[^@\s]+@\S+/i),u&&u[0]?s=u[0]:o=e),s.length>0&&0===o.length&&0===r.length&&(o=e.replace(s,"")),s=n.trim(s).replace(/^[<]+/,"").replace(/[>]+$/,""),o=n.trim(o).replace(/^["']+/,"").replace(/["']+$/,""),r=n.trim(r).replace(/^[(]+/,"").replace(/[)]+$/,""),o=o.replace(/\\\\(.)/g,"$1"),r=r.replace(/\\\\(.)/g,"$1"),this.name=o,this.email=s,this.clearDuplicateName(),!0},e.exports=t}()},,,function(e,t,i){!function(){"use strict";function t(){this.oSubs={}}var n=i(2),o=i(1),s=i(23);t.prototype.oSubs={},t.prototype.sub=function(e,t,i){return o.isUnd(this.oSubs[e])&&(this.oSubs[e]=[]),this.oSubs[e].push([t,i]),this},t.prototype.pub=function(e,t){return s.runHook("rl-pub",[e,t]),o.isUnd(this.oSubs[e])||n.each(this.oSubs[e],function(e){e[0]&&e[0].apply(e[1]||null,t||[])}),this},e.exports=new t}()},function(e,t,i){!function(){"use strict";function t(){this.disposable=[]}var n=i(2),o=i(3),s=i(1);t.prototype.disposable=[],t.prototype.dispose=function(){n.each(this.disposable,function(e){e&&e.dispose&&e.dispose()})},t.componentExportHelper=function(e,t){return{viewModel:{createViewModel:function(t,n){return t=t||{},t.element=null,n.element&&(t.element=$(n.element),i(7).i18nToNode(t.element),!s.isUnd(t.inline)&&o.unwrap(t.inline)&&t.element.css("display","inline-block")),new e(t)}},template:{element:t}}},e.exports=t}()},,function(e,t,i){!function(){"use strict";function t(){this.languages=n.observableArray([]),this.language=n.observable("").extend({limitedList:this.languages})}var n=i(3),o=i(1),s=i(9);t.prototype.populate=function(){var e=s.settingsGet("Languages");this.languages(o.isArray(e)?e:[]),this.language(s.settingsGet("Language"))},e.exports=new t}()},,function(e,t,i){!function(){"use strict";function t(e){a.call(this),this.value=e.value||"",this.size=e.size||0,this.label=e.label||"",this.preLabel=e.preLabel||"",this.enable=r.isUnd(e.enable)?!0:e.enable,this.trigger=e.trigger&&e.trigger.subscribe?e.trigger:null,this.placeholder=e.placeholder||"",this.labeled=!r.isUnd(e.label),this.preLabeled=!r.isUnd(e.preLabel),this.triggered=!r.isUnd(e.trigger)&&!!this.trigger,this.classForTrigger=o.observable(""),this.className=o.computed(function(){var e=o.unwrap(this.size),t=this.trigger?" "+r.trim("settings-saved-trigger-input "+this.classForTrigger()):"";return(e>0?"span"+e:"")+t},this),!r.isUnd(e.width)&&e.element&&e.element.find("input,select,textarea").css("width",e.width),this.disposable.push(this.className),this.trigger&&(this.setTriggerState(this.trigger()),this.disposable.push(this.trigger.subscribe(this.setTriggerState,this)))}var n=i(2),o=i(3),s=i(4),r=i(1),a=i(29);t.prototype.setTriggerState=function(e){switch(r.pInt(e)){case s.SaveSettingsStep.TrueResult:this.classForTrigger("success");break;case s.SaveSettingsStep.FalseResult:this.classForTrigger("error");break;default:this.classForTrigger("")}},n.extend(t.prototype,a.prototype),t.componentExportHelper=a.componentExportHelper,e.exports=t}()},function(e,t,i){!function(){"use strict";function t(e,t){this.sScreenName=e,this.aViewModels=s.isArray(t)?t:[]}var n=i(2),o=i(41),s=i(1);t.prototype.oCross=null,t.prototype.sScreenName="",t.prototype.aViewModels=[],t.prototype.viewModels=function(){return this.aViewModels},t.prototype.screenName=function(){return this.sScreenName},t.prototype.routes=function(){return null},t.prototype.__cross=function(){return this.oCross},t.prototype.__start=function(){var e=this.routes(),t=null,i=null;s.isNonEmptyArray(e)&&(i=n.bind(this.onRoute||s.emptyFunction,this),t=o.create(),n.each(e,function(e){t.addRoute(e[0],i).rules=e[1]}),this.oCross=t)},e.exports=t}()},function(e,t,i){!function(){"use strict";function t(){this.google={},this.twitter={},this.facebook={},this.dropbox={},this.google.enabled=n.observable(!1),this.google.clientID=n.observable(""),this.google.clientSecret=n.observable(""),this.google.apiKey=n.observable(""),this.google.loading=n.observable(!1),this.google.userName=n.observable(""),this.google.loggined=n.computed(function(){return""!==this.google.userName()},this),this.google.capa={},this.google.capa.auth=n.observable(!1),this.google.capa.drive=n.observable(!1),this.google.capa.preview=n.observable(!1),this.google.require={},this.google.require.clientSettings=n.computed(function(){return this.google.enabled()&&(this.google.capa.auth()||this.google.capa.drive())},this),this.google.require.apiKeySettings=n.computed(function(){return this.google.enabled()&&this.google.capa.drive()},this),this.facebook.enabled=n.observable(!1),this.facebook.appID=n.observable(""),this.facebook.appSecret=n.observable(""),this.facebook.loading=n.observable(!1),this.facebook.userName=n.observable(""),this.facebook.supported=n.observable(!1),this.facebook.loggined=n.computed(function(){return""!==this.facebook.userName()},this),this.twitter.enabled=n.observable(!1),this.twitter.consumerKey=n.observable(""),this.twitter.consumerSecret=n.observable(""),this.twitter.loading=n.observable(!1),this.twitter.userName=n.observable(""),this.twitter.loggined=n.computed(function(){return""!==this.twitter.userName()},this),this.dropbox.enabled=n.observable(!1),this.dropbox.apiKey=n.observable("")}var n=i(3);t.prototype.google={},t.prototype.twitter={},t.prototype.facebook={},t.prototype.dropbox={},t.prototype.populate=function(){var e=i(9);this.google.enabled(!!e.settingsGet("AllowGoogleSocial")),this.google.clientID(e.settingsGet("GoogleClientID")),this.google.clientSecret(e.settingsGet("GoogleClientSecret")),this.google.apiKey(e.settingsGet("GoogleApiKey")),this.google.capa.auth(!!e.settingsGet("AllowGoogleSocialAuth")),this.google.capa.drive(!!e.settingsGet("AllowGoogleSocialDrive")),this.google.capa.preview(!!e.settingsGet("AllowGoogleSocialPreview")),this.facebook.enabled(!!e.settingsGet("AllowFacebookSocial")),this.facebook.appID(e.settingsGet("FacebookAppID")),this.facebook.appSecret(e.settingsGet("FacebookAppSecret")),this.facebook.supported(!!e.settingsGet("SupportedFacebookSocial")),this.twitter.enabled=n.observable(!!e.settingsGet("AllowTwitterSocial")),this.twitter.consumerKey=n.observable(e.settingsGet("TwitterConsumerKey")),this.twitter.consumerSecret=n.observable(e.settingsGet("TwitterConsumerSecret")),this.dropbox.enabled(!!e.settingsGet("AllowDropboxSocial")),this.dropbox.apiKey(e.settingsGet("DropboxApiKey"))},e.exports=new t}()},function(e){e.exports=window.moment},function(e,t,i){!function(){"use strict";function t(){s.call(this),this.determineUserLanguage=n.observable(!1),this.determineUserDomain=n.observable(!1),this.weakPassword=n.observable(!1),this.useLocalProxyForExternalImages=n.observable(!1)}var n=i(3),o=i(9),s=i(65);t.prototype.populate=function(){s.prototype.populate.call(this),this.determineUserLanguage(!!o.settingsGet("DetermineUserLanguage")),this.determineUserDomain(!!o.settingsGet("DetermineUserDomain")),this.weakPassword(!!o.settingsGet("WeakPassword")),this.useLocalProxyForExternalImages(!!o.settingsGet("UseLocalProxyForExternalImages"))},e.exports=new t}()},function(e,t,i){!function(){"use strict";function t(e){r.call(this),this.value=e.value,(s.isUnd(this.value)||!this.value.subscribe)&&(this.value=o.observable(s.isUnd(this.value)?!1:!!this.value)),this.enable=e.enable,(s.isUnd(this.enable)||!this.enable.subscribe)&&(this.enable=o.observable(s.isUnd(this.enable)?!0:!!this.enable)),this.disable=e.disable,(s.isUnd(this.disable)||!this.disable.subscribe)&&(this.disable=o.observable(s.isUnd(this.disable)?!1:!!this.disable)),this.label=e.label||"",this.inline=s.isUnd(e.inline)?!1:e.inline,this.readOnly=s.isUnd(e.readOnly)?!1:!!e.readOnly,this.inverted=s.isUnd(e.inverted)?!1:!!e.inverted,this.labeled=!s.isUnd(e.label)}var n=i(2),o=i(3),s=i(1),r=i(29);n.extend(t.prototype,r.prototype),t.prototype.click=function(){this.readOnly||!this.enable()||this.disable()||this.value(!this.value())},t.componentExportHelper=r.componentExportHelper,e.exports=t}()},function(e,t,i){!function(){"use strict";function t(){this.themes=n.observableArray([]),this.themeBackgroundName=n.observable(""),this.themeBackgroundHash=n.observable(""),this.theme=n.observable("").extend({limitedList:this.themes})}var n=i(3),o=i(1),s=i(9);t.prototype.populate=function(){var e=s.settingsGet("Themes");this.themes(o.isArray(e)?e:[]),this.theme(s.settingsGet("Theme")),this.themeBackgroundName(s.settingsGet("UserBackgroundName")),this.themeBackgroundHash(s.settingsGet("UserBackgroundHash"))},e.exports=new t}()},function(e,t,i){!function(){"use strict";function t(){u.call(this,"Popups","PopupsAsk"),this.askDesc=o.observable(""),this.yesButton=o.observable(""),this.noButton=o.observable(""),this.yesFocus=o.observable(!1),this.noFocus=o.observable(!1),this.fYesAction=null,this.fNoAction=null,this.bFocusYesOnShow=!0,this.bDisabeCloseOnEsc=!0,this.sDefaultKeyScope=r.KeyState.PopupAsk,c.constructorEnd(this)}var n=i(2),o=i(3),s=i(21),r=i(4),a=i(1),l=i(7),c=i(5),u=i(11);c.extendAsViewModel(["View/Popup/Ask","PopupsAskViewModel"],t),n.extend(t.prototype,u.prototype),t.prototype.clearPopup=function(){this.askDesc(""),this.yesButton(l.i18n("POPUPS_ASK/BUTTON_YES")),this.noButton(l.i18n("POPUPS_ASK/BUTTON_NO")),this.yesFocus(!1),this.noFocus(!1),this.fYesAction=null,this.fNoAction=null},t.prototype.yesClick=function(){this.cancelCommand(),a.isFunc(this.fYesAction)&&this.fYesAction.call(null)},t.prototype.noClick=function(){this.cancelCommand(),a.isFunc(this.fNoAction)&&this.fNoAction.call(null)},t.prototype.onShow=function(e,t,i,n,o,s){this.clearPopup(),this.fYesAction=t||null,this.fNoAction=i||null,this.askDesc(e||""),n&&this.yesButton(n),n&&this.yesButton(o),this.bFocusYesOnShow=a.isUnd(s)?!0:!!s},t.prototype.onFocus=function(){this.bFocusYesOnShow&&this.yesFocus(!0)},t.prototype.onBuild=function(){s("tab, shift+tab, right, left",r.KeyState.PopupAsk,n.bind(function(){return this.yesFocus()?this.noFocus(!0):this.yesFocus(!0),!1},this)),s("esc",r.KeyState.PopupAsk,n.bind(function(){return this.noClick(),!1},this))},e.exports=t}()},function(e){e.exports=window.crossroads},function(e,t,i){!function(){"use strict";function t(){this.additionalAccounts=n.observable(!1),this.additionalIdentities=n.observable(!1),this.gravatar=n.observable(!1),this.attachmentThumbnails=n.observable(!1),this.sieve=n.observable(!1),this.themes=n.observable(!0),this.userBackground=n.observable(!1),this.openPGP=n.observable(!1),this.twoFactorAuth=n.observable(!1)}var n=i(3),o=i(4),s=i(9);t.prototype.populate=function(){this.additionalAccounts(s.capa(o.Capa.AdditionalAccounts)),this.additionalIdentities(s.capa(o.Capa.AdditionalIdentities)),this.gravatar(s.capa(o.Capa.Gravatar)),this.attachmentThumbnails(s.capa(o.Capa.AttachmentThumbnails)),this.sieve(s.capa(o.Capa.Sieve)),this.themes(s.capa(o.Capa.Themes)),this.userBackground(s.capa(o.Capa.UserBackground)),this.openPGP(s.capa(o.Capa.OpenPGP)),this.twoFactorAuth(s.capa(o.Capa.TwoFactor))},e.exports=new t}()},,,function(e,t,i){!function(){"use strict";function t(){a.call(this,"Popups","PopupsLanguages"),this.LanguageStore=i(31),this.exp=o.observable(!1),this.languages=o.computed(function(){return n.map(this.LanguageStore.languages(),function(e){return{key:e,selected:o.observable(!1),fullName:s.convertLangName(e)}})},this),this.LanguageStore.language.subscribe(function(){this.resetMainLanguage()},this),r.constructorEnd(this)}var n=i(2),o=i(3),s=i(1),r=i(5),a=i(11);r.extendAsViewModel(["View/Popup/Languages","PopupsLanguagesViewModel"],t),n.extend(t.prototype,a.prototype),t.prototype.languageEnName=function(e){var t=s.convertLangName(e,!0);return"English"===t?"":t},t.prototype.resetMainLanguage=function(){var e=this.LanguageStore.language();n.each(this.languages(),function(t){t.selected(t.key===e)})},t.prototype.onShow=function(){this.exp(!0),this.resetMainLanguage()},t.prototype.onHide=function(){this.exp(!1)},t.prototype.changeLanguage=function(e){this.LanguageStore.language(e),this.cancelCommand()},e.exports=t}()},function(e,t,i){!function(){"use strict";function t(e){d.call(this),this.isLocalAutocomplete=!0,this.iframe=s('