diff options
Diffstat (limited to 'core/js/dist/login.js')
-rw-r--r-- | core/js/dist/login.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/js/dist/login.js b/core/js/dist/login.js index 05d32655583..21aca3a274a 100644 --- a/core/js/dist/login.js +++ b/core/js/dist/login.js @@ -44,7 +44,7 @@ function(e){var t,n,r,i,a,o,s,u,c,l,d,f,h,p,m,_,y,v,g,M="sizzle"+1*new Date,L=e. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - */var $={YES_NO_BUTTONS:70,OK_BUTTONS:71,FILEPICKER_TYPE_CHOOSE:1,FILEPICKER_TYPE_MOVE:2,FILEPICKER_TYPE_COPY:3,FILEPICKER_TYPE_COPY_MOVE:4,FILEPICKER_TYPE_CUSTOM:5,dialogsCounter:0,alert:function(e,t,n,r){this.message(e,t,"alert",$.OK_BUTTON,n,r)},info:function(e,t,n,r){this.message(e,t,"info",$.OK_BUTTON,n,r)},confirm:function(e,t,n,r){return this.message(e,t,"notice",$.YES_NO_BUTTONS,n,r)},confirmDestructive:function(e,t,n,r,i){return this.message(e,t,"none",n,r,i)},confirmHtml:function(e,t,n,r){return this.message(e,t,"notice",$.YES_NO_BUTTONS,n,r,!0)},prompt:function(e,n,r,i,a,o){return s.a.when(this._getMessageTemplate()).then((function(u){var c="oc-dialog-"+$.dialogsCounter+"-content",d="#"+c,f=u.octemplate({dialog_name:c,title:n,message:e,type:"notice"}),h=s()("<input/>");h.attr("type",o?"password":"text").attr("id",c+"-input").attr("placeholder",a);var p=s()("<label/>").attr("for",c+"-input").text(a+": ");f.append(p),f.append(h),void 0===i&&(i=!1),s()("body").append(f),void 0!==r&&(r=l.default.once(r));var m=[{text:t("core","No"),click:function(){void 0!==r&&r(!1,h.val()),s()(d).ocdialog("close")}},{text:t("core","Yes"),click:function(){void 0!==r&&r(!0,h.val()),s()(d).ocdialog("close")},defaultButton:!0}];s()(d).ocdialog({closeOnEscape:!0,modal:i,buttons:m,close:function(){void 0!==r&&r(!1,h.val())}}),h.focus(),$.dialogsCounter++}))},filepicker:function(e,n,r,i,a,o,u,c){var d=this;if(this.filepicker.sortField="name",this.filepicker.sortOrder="asc",!this.filepicker.loading){void 0===o&&(o=this.FILEPICKER_TYPE_CHOOSE);var f=t("core","No files in here"),h=t("files","New folder");o!==this.FILEPICKER_TYPE_COPY&&o!==this.FILEPICKER_TYPE_MOVE&&o!==this.FILEPICKER_TYPE_COPY_MOVE||(f=t("core","No more subfolders in here")),this.filepicker.loading=!0,this.filepicker.filesClient=F.a.Sharing&&F.a.Sharing.PublicApp&&F.a.Sharing.PublicApp.fileList?F.a.Sharing.PublicApp.fileList.filesClient:pe.Files.getClient(),this.filelist=null,u=u||"",c=Object.assign({allowDirectoryChooser:!1},c),s.a.when(this._getFilePickerTemplate()).then((function(p){d.filepicker.loading=!1;d.$filePicker&&d.$filePicker.ocdialog("close"),null==i&&(i=[]),"string"==typeof i&&(i=[i]),d.$filePicker=p.octemplate({dialog_name:"oc-dialog-filepicker-content",title:e,emptytext:f,newtext:h,nameCol:t("core","Name"),sizeCol:t("core","Size"),modifiedCol:t("core","Modified")}).data("path",u).data("multiselect",r).data("mimetype",i).data("allowDirectoryChooser",c.allowDirectoryChooser),void 0===a&&(a=!1),void 0===r&&(r=!1),pe.Util.isIE()&&(d.$filePicker.find("#picker-view-toggle").remove(),d.$filePicker.find("#picker-filestable").removeClass("view-grid")),s()("body").append(d.$filePicker),d.$showGridView=s()("input#picker-showgridview"),d.$showGridView.on("change",l.default.bind(d._onGridviewChange,d)),pe.Util.isIE()||d._getGridSettings();var m=d.$filePicker.find(".actions.creatable .button-add");o!==d.FILEPICKER_TYPE_CHOOSE||c.allowDirectoryChooser||m.hide(),m.on("focus",(function(){d.$filePicker.ocdialog("setEnterCallback",(function(){event.stopImmediatePropagation(),event.preventDefault(),m.click()}))})),m.on("blur",(function(){d.$filePicker.ocdialog("unsetEnterCallback")})),pe.registerMenu(m,d.$filePicker.find(".menu"),(function(){y.focus(),d.$filePicker.ocdialog("setEnterCallback",(function(){event.stopImmediatePropagation(),event.preventDefault(),d.$filePicker.submit()}));var e=y.val(),t=e.lastIndexOf(".");-1===t&&(t=e.length),y.selectRange(0,t)}));var _=d.$filePicker.find(".filenameform"),y=_.find("input[type='text']");_.find("input[type='submit']").on("click",(function(e){e.stopImmediatePropagation(),e.preventDefault(),_.submit()}));var v=function(){var e=y.val();try{if(function(e){var n=e.trim();if("."===n||".."===n)throw t("files",'"{name}" is an invalid file name.',{name:e});if(0===n.length)throw t("files","File name cannot be empty.");if(-1!==n.indexOf("/"))throw t("files",'"/" is not allowed inside a file name.');if(n.match(pe.config.blacklist_files_regex))throw t("files",'"{name}" is not an allowed filetype',{name:e});return!0}(e)){if(d.filelist.find((function(e){return e.name===this}),e))throw t("files","{newName} already exists",{newName:e},void 0,{escape:!1});return!0}}catch(e){y.attr("title",e),y.tooltip({placement:"right",trigger:"manual",container:".newFolderMenu"}),y.tooltip("fixTitle"),y.tooltip("show"),y.addClass("error")}return!1};_.on("submit",(function(e){if(e.stopPropagation(),e.preventDefault(),v()){var t=y.val();d.filepicker.filesClient.createDirectory(d.$filePicker.data("path")+"/"+t).always((function(e){d._fillFilePicker(d.$filePicker.data("path")+"/"+t)})),pe.hideMenus(),d.$filePicker.ocdialog("unsetEnterCallback"),d.$filePicker.click(),y.val(h)}})),y.keypress((function(e){13!==e.keyCode&&13!==e.which||(e.stopImmediatePropagation(),e.preventDefault(),_.submit())})),d.$filePicker.ready((function(){d.$fileListHeader=d.$filePicker.find(".filelist thead tr"),d.$filelist=d.$filePicker.find(".filelist tbody"),d.$filelistContainer=d.$filePicker.find(".filelist-container"),d.$dirTree=d.$filePicker.find(".dirtree"),d.$dirTree.on("click","div:not(:last-child)",d,(function(e){d._handleTreeListSelect(e,o)})),d.$filelist.on("click","tr",(function(e){d._handlePickerClick(e,s()(this),o)})),d.$fileListHeader.on("click","a",(function(e){var t=d.$filePicker.data("path");d.filepicker.sortField=s()(e.currentTarget).data("sort"),d.filepicker.sortOrder="asc"===d.filepicker.sortOrder?"desc":"asc",d._fillFilePicker(t)})),d._fillFilePicker(u)}));var g=function(e){if(void 0!==n){var t;if(!0===r)t=[],d.$filelist.find("tr.filepicker_element_selected").each((function(e,n){t.push(d.$filePicker.data("path")+"/"+s()(n).data("entryname"))}));else{t=d.$filePicker.data("path");var i=d.$filelist.find("tr.filepicker_element_selected").data("entryname");i&&(t+="/"+i)}n(t,e),d.$filePicker.ocdialog("close")}},M=[];o===$.FILEPICKER_TYPE_CHOOSE?M.push({text:t("core","Choose"),click:function(){g($.FILEPICKER_TYPE_CHOOSE)},defaultButton:!0}):o===$.FILEPICKER_TYPE_CUSTOM?c.buttons.forEach((function(e){M.push({text:e.text,click:function(){g(e.type)},defaultButton:e.defaultButton})})):(o!==$.FILEPICKER_TYPE_COPY&&o!==$.FILEPICKER_TYPE_COPY_MOVE||M.push({text:t("core","Copy"),click:function(){g($.FILEPICKER_TYPE_COPY)},defaultButton:!1}),o!==$.FILEPICKER_TYPE_MOVE&&o!==$.FILEPICKER_TYPE_COPY_MOVE||M.push({text:t("core","Move"),click:function(){g($.FILEPICKER_TYPE_MOVE)},defaultButton:!0})),d.$filePicker.ocdialog({closeOnEscape:!0,width:600,height:500,modal:a,buttons:M,style:{buttons:"aside"},close:function(){try{s()(this).ocdialog("destroy").remove()}catch(e){}d.$filePicker=null}});var L=d.$filePicker.closest(".oc-dialog").find(".primary");-1!==d.$filePicker.data("mimetype").indexOf("httpd/unix-directory")||d.$filePicker.data("allowDirectoryChooser")?L.prop("disabled",!1):L.prop("disabled",!0)})).fail((function(e,n){d.filepicker.loading=!1,0!==e&&alert(t("core","Error loading file picker template: {error}",{error:n}))}))}},message:function(e,n,r,i,a,o,u){return s.a.when(this._getMessageTemplate()).then((function(c){var l="oc-dialog-"+$.dialogsCounter+"-content",d="#"+l,f=c.octemplate({dialog_name:l,title:n,message:e,type:r},u?{escapeFunction:""}:{});void 0===o&&(o=!1),s()("body").append(f);var h=[];switch(i){case $.YES_NO_BUTTONS:h=[{text:t("core","No"),click:function(){void 0!==a&&a(!1),s()(d).ocdialog("close")}},{text:t("core","Yes"),click:function(){void 0!==a&&a(!0),s()(d).ocdialog("close")},defaultButton:!0}];break;case $.OK_BUTTON:h[0]={text:t("core","OK"),click:function(){s()(d).ocdialog("close"),void 0!==a&&a()},defaultButton:!0};break;default:if("object"===W(i))switch(i.type){case $.YES_NO_BUTTONS:h=[{text:i.cancel||t("core","No"),click:function(){void 0!==a&&a(!1),s()(d).ocdialog("close")}},{text:i.confirm||t("core","Yes"),click:function(){void 0!==a&&a(!0),s()(d).ocdialog("close")},defaultButton:!0,classes:i.confirmClasses}]}}s()(d).ocdialog({closeOnEscape:!0,modal:o,buttons:h}),$.dialogsCounter++})).fail((function(r,i){0===r?alert(n+": "+e):alert(t("core","Error loading message template: {error}",{error:i}))}))},_fileexistsshown:!1,fileexists:function(e,r,i,a){var o=this,u=new s.a.Deferred,c=function(e){var t,n,r,i=document.createElement("canvas"),a=e.width,o=e.height;return a>o?(n=0,t=(a-o)/2):(n=(o-a)/2,t=0),r=Math.min(a,o),i.width=r,i.height=r,i.getContext("2d").drawImage(e,t,n,r,r,0,0,r,r),l(i,r,r,96,96),i.toDataURL("image/png",.7)},l=function(e,t,n,r,i){r=Math.round(r),i=Math.round(i);for(var a=e.getContext("2d").getImageData(0,0,t,n),o=e.getContext("2d").getImageData(0,0,r,i),s=a.data,u=o.data,c=t/r,l=n/i,d=Math.ceil(c/2),f=Math.ceil(l/2),h=0;h<i;h++)for(var p=0;p<r;p++){for(var m=4*(p+h*r),_=0,y=0,v=0,g=0,M=0,L=0,b=0,w=(h+.5)*l,k=Math.floor(h*l);k<(h+1)*l;k++)for(var Y=Math.abs(w-(k+.5))/f,T=(p+.5)*c,x=Y*Y,D=Math.floor(p*c);D<(p+1)*c;D++){var S=Math.abs(T-(D+.5))/d,E=Math.sqrt(x+S*S);E>=-1&&E<=1&&(_=2*E*E*E-3*E*E+1)>0&&(b+=_*s[(S=4*(D+k*t))+3],v+=_,s[S+3]<255&&(_=_*s[S+3]/250),g+=_*s[S],M+=_*s[S+1],L+=_*s[S+2],y+=_)}u[m]=g/y,u[m+1]=M/y,u[m+2]=L/y,u[m+3]=b/v}e.getContext("2d").clearRect(0,0,Math.max(t,r),Math.max(n,i)),e.width=r,e.height=i,e.getContext("2d").putImageData(o,0,0)},d=function(n,r,i){var a=n.find(".template").clone().removeClass("template").addClass("conflict"),o=a.find(".original"),u=a.find(".replacement");a.data("data",e),a.find(".filename").text(r.name),o.find(".size").text(pe.Util.humanFileSize(r.size)),o.find(".mtime").text(formatDate(r.mtime)),i.size&&i.lastModifiedDate&&(u.find(".size").text(pe.Util.humanFileSize(i.size)),u.find(".mtime").text(formatDate(i.lastModifiedDate)));var l=r.directory+"/"+r.name,d={file:l,x:96,y:96,c:r.etag,forceIcon:0},f=Files.generatePreviewUrl(d);f=f.replace(/'/g,"%27"),o.find(".icon").css({"background-image":"url('"+f+"')"}),function(e){var t=new s.a.Deferred,n=e.type&&e.type.split("/").shift();if(window.FileReader&&"image"===n){var r=new FileReader;r.onload=function(e){var n=new Blob([e.target.result]);window.URL=window.URL||window.webkitURL;var r=window.URL.createObjectURL(n),i=new Image;i.src=r,i.onload=function(){var e=c(i);t.resolve(e)}},r.readAsArrayBuffer(e)}else t.reject();return t}(i).then((function(e){u.find(".icon").css("background-image","url("+e+")")}),(function(){l=pe.MimeType.getIconUrl(i.type),u.find(".icon").css("background-image","url("+l+")")}));var h=n.find(".conflict").length;o.find("input:checkbox").attr("id","checkbox_original_"+h),u.find("input:checkbox").attr("id","checkbox_replacement_"+h),n.append(a),i.lastModifiedDate&&i.lastModifiedDate.getTime()>r.mtime?u.find(".mtime").css("font-weight","bold"):i.lastModifiedDate&&i.lastModifiedDate.getTime()<r.mtime&&o.find(".mtime").css("font-weight","bold"),i.size&&i.size>r.size?u.find(".size").css("font-weight","bold"):i.size&&i.size<r.size&&o.find(".size").css("font-weight","bold"),"readonly"===r.status&&(o.addClass("readonly").find('input[type="checkbox"]').prop("checked",!0).prop("disabled",!0),o.find(".message").text(t("core","read-only")))},f="#oc-dialog-fileexists-content";if(this._fileexistsshown){var h=s()(f+" .conflicts");d(h,r,i);var p=s()(f+" .conflict").length,m=n("core","{count} file conflict","{count} file conflicts",p,{count:p});s()(f).parent().children(".oc-dialog-title").text(m),s()(window).trigger("resize"),u.resolve()}else this._fileexistsshown=!0,s.a.when(this._getFileExistsTemplate()).then((function(n){var c=t("core","One file conflict"),l=n.octemplate({dialog_name:"oc-dialog-fileexists-content",title:c,type:"fileexists",allnewfiles:t("core","New Files"),allexistingfiles:t("core","Already existing files"),why:t("core","Which files do you want to keep?"),what:t("core","If you select both versions, the copied file will have a number added to its name.")});if(s()("body").append(l),r&&i){var h=l.find(".conflicts");d(h,r,i)}var p=[{text:t("core","Cancel"),classes:"cancel",click:function(){void 0!==a.onCancel&&a.onCancel(e),s()(f).ocdialog("close")}},{text:t("core","Continue"),classes:"continue",click:function(){void 0!==a.onContinue&&a.onContinue(s()(f+" .conflict")),s()(f).ocdialog("close")}}];s()(f).ocdialog({width:500,closeOnEscape:!0,modal:!0,buttons:p,closeButton:null,close:function(){o._fileexistsshown=!1,s()(this).ocdialog("destroy").remove()}}),s()(f).css("height","auto");var m=l.closest(".oc-dialog").find("button.continue");function _(){var e=l.find(".conflicts .checkbox:checked").length;m.prop("disabled",0===e)}m.prop("disabled",!0),s()(f).find(".allnewfiles").on("click",(function(){s()(f).find('.conflict .replacement input[type="checkbox"]').prop("checked",s()(this).prop("checked"))})),s()(f).find(".allexistingfiles").on("click",(function(){s()(f).find('.conflict .original:not(.readonly) input[type="checkbox"]').prop("checked",s()(this).prop("checked"))})),s()(f).find(".conflicts").on("click",".replacement,.original:not(.readonly)",(function(){var e=s()(this).find('input[type="checkbox"]');e.prop("checked",!e.prop("checked"))})),s()(f).find(".conflicts").on("click",'.replacement input[type="checkbox"],.original:not(.readonly) input[type="checkbox"]',(function(){var e=s()(this);e.prop("checked",!e.prop("checked"))})),s()(f).on("click",".replacement,.allnewfiles",(function(){var e=s()(f).find('.conflict .replacement input[type="checkbox"]:checked').length;e===s()(f+" .conflict").length?(s()(f).find(".allnewfiles").prop("checked",!0),s()(f).find(".allnewfiles + .count").text(t("core","(all selected)"))):e>0?(s()(f).find(".allnewfiles").prop("checked",!1),s()(f).find(".allnewfiles + .count").text(t("core","({count} selected)",{count:e}))):(s()(f).find(".allnewfiles").prop("checked",!1),s()(f).find(".allnewfiles + .count").text("")),_()})),s()(f).on("click",".original,.allexistingfiles",(function(){var e=s()(f).find('.conflict .original input[type="checkbox"]:checked').length;e===s()(f+" .conflict").length?(s()(f).find(".allexistingfiles").prop("checked",!0),s()(f).find(".allexistingfiles + .count").text(t("core","(all selected)"))):e>0?(s()(f).find(".allexistingfiles").prop("checked",!1),s()(f).find(".allexistingfiles + .count").text(t("core","({count} selected)",{count:e}))):(s()(f).find(".allexistingfiles").prop("checked",!1),s()(f).find(".allexistingfiles + .count").text("")),_()})),u.resolve()})).fail((function(){u.reject(),alert(t("core","Error loading file exists template"))}));return u.promise()},_getGridSettings:function(){var e=this;s.a.get(pe.generateUrl("/apps/files/api/v1/showgridview"),(function(t){e.$showGridView.get(0).checked=t.gridview,e.$showGridView.next("#picker-view-toggle").removeClass("icon-toggle-filelist icon-toggle-pictures").addClass(t.gridview?"icon-toggle-filelist":"icon-toggle-pictures"),s()(".list-container").toggleClass("view-grid",t.gridview)}))},_onGridviewChange:function(){var e=this.$showGridView.is(":checked");pe.currentUser&&s.a.post(pe.generateUrl("/apps/files/api/v1/showgridview"),{show:e}),this.$showGridView.next("#picker-view-toggle").removeClass("icon-toggle-filelist icon-toggle-pictures").addClass(e?"icon-toggle-filelist":"icon-toggle-pictures"),s()(".list-container").toggleClass("view-grid",e)},_getFilePickerTemplate:function(){var e=s.a.Deferred();if(this.$filePickerTemplate)e.resolve(this.$filePickerTemplate);else{var t=this;s.a.get(pe.filePath("core","templates","filepicker.html"),(function(n){t.$filePickerTemplate=s()(n),t.$listTmpl=t.$filePickerTemplate.find(".filelist tbody tr:first-child").detach(),e.resolve(t.$filePickerTemplate)})).fail((function(t,n,r){e.reject(t.status,r)}))}return e.promise()},_getMessageTemplate:function(){var e=s.a.Deferred();if(this.$messageTemplate)e.resolve(this.$messageTemplate);else{var t=this;s.a.get(pe.filePath("core","templates","message.html"),(function(n){t.$messageTemplate=s()(n),e.resolve(t.$messageTemplate)})).fail((function(t,n,r){e.reject(t.status,r)}))}return e.promise()},_getFileExistsTemplate:function(){var e=s.a.Deferred();if(this.$fileexistsTemplate)e.resolve(this.$fileexistsTemplate);else{var t=this;s.a.get(pe.filePath("files","templates","fileexists.html"),(function(n){t.$fileexistsTemplate=s()(n),e.resolve(t.$fileexistsTemplate)})).fail((function(){e.reject()}))}return e.promise()},_getFileList:function(e,t){return"string"==typeof t&&(t=[t]),s.a.getJSON(pe.filePath("files","ajax","list.php"),{dir:e,mimetypes:JSON.stringify(t)})},_fillFilePicker:function(e){var n=this;this.$filelist.empty(),this.$filePicker.find(".emptycontent").hide(),this.$filelistContainer.addClass("icon-loading"),this.$filePicker.data("path",e);var r=this.$filePicker.data("mimetype");"string"==typeof r&&(r=[r]),n.$fileListHeader.find(".sort-indicator").addClass("hidden").removeClass("icon-triangle-n").removeClass("icon-triangle-s"),n.$fileListHeader.find("[data-sort="+n.filepicker.sortField+"] .sort-indicator").removeClass("hidden"),"asc"===n.filepicker.sortOrder?n.$fileListHeader.find("[data-sort="+n.filepicker.sortField+"] .sort-indicator").addClass("icon-triangle-n"):n.$fileListHeader.find("[data-sort="+n.filepicker.sortField+"] .sort-indicator").addClass("icon-triangle-s"),n.filepicker.filesClient.getFolderContents(e).then((function(i,a){n.filelist=a,r&&r.length>0&&-1===r.indexOf("*")&&(a=a.filter((function(e){return"dir"===e.type||-1!==r.indexOf(e.mimetype)})));var o={name:function(e,t){return"dir"===e.type&&"dir"!==t.type?-1:"dir"!==e.type&&"dir"===t.type?1:pe.Util.naturalSortCompare(e.name,t.name)},size:function(e,t){return e.size-t.size},mtime:function(e,t){return e.mtime-t.mtime}},u=o[n.filepicker.sortField]||o.name;a=a.sort((function(e,t){var r=function(e){return e.tags&&e.tags.indexOf(pe.TAG_FAVORITE)>=0};return r(e)&&!r(t)?-1:!r(e)&&r(t)?1:"asc"===n.filepicker.sortOrder?u(e,t):-u(e,t)})),n._fillSlug(),0===a.length?(n.$filePicker.find(".emptycontent").show(),n.$fileListHeader.hide()):(n.$filePicker.find(".emptycontent").hide(),n.$fileListHeader.show()),s.a.each(a,(function(r,i){var a,o;if(i.icon=pe.MimeType.getIconUrl(i.mimetype),void 0!==i.size&&i.size>=0?(a=pe.Util.humanFileSize(parseInt(i.size,10),!0),o=Math.round(160-Math.pow(i.size/1048576,2))):(a=t("files","Pending"),o=80),i.name.length>=10)var u=Math.min(Math.floor(i.name.length/2),10),c=i.name.substr(0,i.name.length-u),l=i.name.substr(i.name.length-u);else c=i.name,l="";var d=n.$listTmpl.octemplate({type:i.type,dir:e,filename:i.name,filename1:c,filename2:l,date:pe.Util.relativeModifiedDate(i.mtime),size:a,sizeColor:o,icon:i.icon});if("file"===i.type){var f={file:e+"/"+i.name,x:100,y:100},h=new Image,p=pe.generateUrl("/core/preview.png?")+s.a.param(f);h.onload=function(){h.width>5&&d.find("td.filename").attr("style","background-image:url("+p+")")},h.src=p}n.$filelist.append(d)})),n.$filelistContainer.removeClass("icon-loading")}))},_fillSlug:function(){this.$dirTree.empty();var e=this,t=this.$filePicker.data("path"),n=s()('<div data-dir="{dir}"><a>{name}</a></div>').addClass("crumb");if(t){var r=t.split("/");s.a.each(r,(function(t,i){if(""===(i=r.pop()))return!1;e.$dirTree.prepend(n.octemplate({dir:r.join("/")+"/"+i,name:i}))}))}n.octemplate({dir:"",name:""},{escapeFunction:null}).prependTo(this.$dirTree)},_handleTreeListSelect:function(e,t){var n=e.data,r=s()(e.target).closest(".crumb").data("dir");n._fillFilePicker(r);var i=e.target.closest(".oc-dialog"),a=s()(".primary",i);this._changeButtonsText(t,r.split(/[/]+/).pop()),-1!==this.$filePicker.data("mimetype").indexOf("httpd/unix-directory")||this.$filePicker.data("allowDirectoryChooser")?a.prop("disabled",!1):a.prop("disabled",!0)},_handlePickerClick:function(e,t,n){var r=this.$filePicker.closest(".oc-dialog").find(".primary");"file"===t.data("type")?(!0===this.$filePicker.data("multiselect")&&e.ctrlKey||this.$filelist.find(".filepicker_element_selected").removeClass("filepicker_element_selected"),t.toggleClass("filepicker_element_selected"),r.prop("disabled",!1)):"dir"===t.data("type")&&(this._fillFilePicker(this.$filePicker.data("path")+"/"+t.data("entryname")),this._changeButtonsText(n,t.data("entryname")),-1!==this.$filePicker.data("mimetype").indexOf("httpd/unix-directory")||this.$filePicker.data("allowDirectoryChooser")?r.prop("disabled",!1):r.prop("disabled",!0))},_changeButtonsText:function(e,n){var r=""===n?t("core","Copy"):t("core","Copy to {folder}",{folder:n}),i=""===n?t("core","Move"):t("core","Move to {folder}",{folder:n}),a=s()(".oc-dialog-buttonrow button");switch(e){case this.FILEPICKER_TYPE_CHOOSE:case this.FILEPICKER_TYPE_CUSTOM:break;case this.FILEPICKER_TYPE_COPY:a.text(r);break;case this.FILEPICKER_TYPE_MOVE:a.text(i);break;case this.FILEPICKER_TYPE_COPY_MOVE:a.eq(0).text(r),a.eq(1).text(i)}}},z=$,U=i(63),B=function e(t,n){var r,i,a="";if(this.typelessListeners=[],this.closed=!1,this.listeners={},n)for(r in n)a+=r+"="+encodeURIComponent(n[r])+"&";if(a+="requesttoken="+encodeURIComponent(Object(U.a)()),this.useFallBack||"undefined"==typeof EventSource){var o="oc_eventsource_iframe_"+e.iframeCount;e.fallBackSources[e.iframeCount]=this,this.iframe=s()("<iframe/>"),this.iframe.attr("id",o),this.iframe.hide(),i="&",-1===t.indexOf("?")&&(i="?"),this.iframe.attr("src",t+i+"fallback=true&fallback_id="+e.iframeCount+"&"+a),s()("body").append(this.iframe),this.useFallBack=!0,e.iframeCount++}else i="&",-1===t.indexOf("?")&&(i="?"),this.source=new EventSource(t+i+a),this.source.onmessage=function(e){for(var t=0;t<this.typelessListeners.length;t++)this.typelessListeners[t](JSON.parse(e.data))}.bind(this);this.listen("__internal__",function(e){"close"===e&&this.close()}.bind(this))};B.fallBackSources=[],B.iframeCount=0,B.fallBackCallBack=function(e,t,n){B.fallBackSources[e].fallBackCallBack(t,n)},B.prototype={typelessListeners:[],iframe:null,listeners:{},useFallBack:!1,fallBackCallBack:function(e,t){var n;if(!this.closed)if(e){if(void 0!==this.listeners.done)for(n=0;n<this.listeners[e].length;n++)this.listeners[e][n](t)}else for(n=0;n<this.typelessListeners.length;n++)this.typelessListeners[n](t)},lastLength:0,listen:function(e,t){t&&t.call&&(e?this.useFallBack?(this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)):this.source.addEventListener(e,(function(e){void 0!==e.data?t(JSON.parse(e.data)):t("")}),!1):this.typelessListeners.push(t))},close:function(){this.closed=!0,void 0!==this.source&&this.source.close()}};var q=B,J=window._oc_capabilities||{},G=function(){return J},V=null,K=function(e){if(V){var t=V;V.trigger(new s.a.Event("beforeHide")),V.slideUp(C.j,(function(){t.trigger(new s.a.Event("afterHide")),e&&e.apply(this,arguments)}))}s()(".menutoggle").attr("aria-expanded",!1),s()(".openedMenu").removeClass("openedMenu"),V=null,null},X=!!window._oc_isadmin,Z=i(56),Q=i(25),ee={startSaving:function(e){this.startAction(e,t("core","Saving …"))},startAction:function(e,t){s()(e).text(t).removeClass("success").removeClass("error").stop(!0,!0).show()},finishedSaving:function(e,t){this.finishedAction(e,t)},finishedAction:function(e,t){"success"===t.status?this.finishedSuccess(e,t.data.message):this.finishedError(e,t.data.message)},finishedSuccess:function(e,t){s()(e).text(t).addClass("success").removeClass("error").stop(!0,!0).delay(3e3).fadeOut(900).show()},finishedError:function(e,t){s()(e).text(t).addClass("error").removeClass("success").show()}},te=i(228),ne=function(e){pe.Search.search(e,null,0,30)}; + */var $={YES_NO_BUTTONS:70,OK_BUTTONS:71,FILEPICKER_TYPE_CHOOSE:1,FILEPICKER_TYPE_MOVE:2,FILEPICKER_TYPE_COPY:3,FILEPICKER_TYPE_COPY_MOVE:4,FILEPICKER_TYPE_CUSTOM:5,dialogsCounter:0,alert:function(e,t,n,r){this.message(e,t,"alert",$.OK_BUTTON,n,r)},info:function(e,t,n,r){this.message(e,t,"info",$.OK_BUTTON,n,r)},confirm:function(e,t,n,r){return this.message(e,t,"notice",$.YES_NO_BUTTONS,n,r)},confirmDestructive:function(e,t,n,r,i){return this.message(e,t,"none",n,r,i)},confirmHtml:function(e,t,n,r){return this.message(e,t,"notice",$.YES_NO_BUTTONS,n,r,!0)},prompt:function(e,n,r,i,a,o){return s.a.when(this._getMessageTemplate()).then((function(u){var c="oc-dialog-"+$.dialogsCounter+"-content",d="#"+c,f=u.octemplate({dialog_name:c,title:n,message:e,type:"notice"}),h=s()("<input/>");h.attr("type",o?"password":"text").attr("id",c+"-input").attr("placeholder",a);var p=s()("<label/>").attr("for",c+"-input").text(a+": ");f.append(p),f.append(h),void 0===i&&(i=!1),s()("body").append(f),void 0!==r&&(r=l.default.once(r));var m=[{text:t("core","No"),click:function(){void 0!==r&&r(!1,h.val()),s()(d).ocdialog("close")}},{text:t("core","Yes"),click:function(){void 0!==r&&r(!0,h.val()),s()(d).ocdialog("close")},defaultButton:!0}];s()(d).ocdialog({closeOnEscape:!0,modal:i,buttons:m,close:function(){void 0!==r&&r(!1,h.val())}}),h.focus(),$.dialogsCounter++}))},filepicker:function(e,n,r,i,a,o,u,c){var d=this;if(this.filepicker.sortField="name",this.filepicker.sortOrder="asc",!this.filepicker.loading){void 0===o&&(o=this.FILEPICKER_TYPE_CHOOSE);var f=t("core","No files in here"),h=t("files","New folder");o!==this.FILEPICKER_TYPE_COPY&&o!==this.FILEPICKER_TYPE_MOVE&&o!==this.FILEPICKER_TYPE_COPY_MOVE||(f=t("core","No more subfolders in here")),this.filepicker.loading=!0,this.filepicker.filesClient=F.a.Sharing&&F.a.Sharing.PublicApp&&F.a.Sharing.PublicApp.fileList?F.a.Sharing.PublicApp.fileList.filesClient:pe.Files.getClient(),this.filelist=null,u=u||"",c=Object.assign({allowDirectoryChooser:!1},c),s.a.when(this._getFilePickerTemplate()).then((function(p){d.filepicker.loading=!1;d.$filePicker&&d.$filePicker.ocdialog("close"),null==i&&(i=[]),"string"==typeof i&&(i=[i]),d.$filePicker=p.octemplate({dialog_name:"oc-dialog-filepicker-content",title:e,emptytext:f,newtext:h,nameCol:t("core","Name"),sizeCol:t("core","Size"),modifiedCol:t("core","Modified")}).data("path",u).data("multiselect",r).data("mimetype",i).data("allowDirectoryChooser",c.allowDirectoryChooser),void 0===a&&(a=!1),void 0===r&&(r=!1),pe.Util.isIE()&&(d.$filePicker.find("#picker-view-toggle").remove(),d.$filePicker.find("#picker-filestable").removeClass("view-grid")),s()("body").append(d.$filePicker),d.$showGridView=s()("input#picker-showgridview"),d.$showGridView.on("change",l.default.bind(d._onGridviewChange,d)),pe.Util.isIE()||d._getGridSettings();var m=d.$filePicker.find(".actions.creatable .button-add");o!==d.FILEPICKER_TYPE_CHOOSE||c.allowDirectoryChooser||m.hide(),m.on("focus",(function(){d.$filePicker.ocdialog("setEnterCallback",(function(){event.stopImmediatePropagation(),event.preventDefault(),m.click()}))})),m.on("blur",(function(){d.$filePicker.ocdialog("unsetEnterCallback")})),pe.registerMenu(m,d.$filePicker.find(".menu"),(function(){y.focus(),d.$filePicker.ocdialog("setEnterCallback",(function(){event.stopImmediatePropagation(),event.preventDefault(),d.$filePicker.submit()}));var e=y.val(),t=e.lastIndexOf(".");-1===t&&(t=e.length),y.selectRange(0,t)}));var _=d.$filePicker.find(".filenameform"),y=_.find("input[type='text']");_.find("input[type='submit']").on("click",(function(e){e.stopImmediatePropagation(),e.preventDefault(),_.submit()}));var v=function(){var e=y.val();try{if(function(e){var n=e.trim();if("."===n||".."===n)throw t("files",'"{name}" is an invalid file name.',{name:e});if(0===n.length)throw t("files","File name cannot be empty.");if(-1!==n.indexOf("/"))throw t("files",'"/" is not allowed inside a file name.');if(n.match(pe.config.blacklist_files_regex))throw t("files",'"{name}" is not an allowed filetype',{name:e});return!0}(e)){if(d.filelist.find((function(e){return e.name===this}),e))throw t("files","{newName} already exists",{newName:e},void 0,{escape:!1});return!0}}catch(e){y.attr("title",e),y.tooltip({placement:"right",trigger:"manual",container:".newFolderMenu"}),y.tooltip("fixTitle"),y.tooltip("show"),y.addClass("error")}return!1};_.on("submit",(function(e){if(e.stopPropagation(),e.preventDefault(),v()){var t=y.val();d.filepicker.filesClient.createDirectory(d.$filePicker.data("path")+"/"+t).always((function(e){d._fillFilePicker(d.$filePicker.data("path")+"/"+t)})),pe.hideMenus(),d.$filePicker.ocdialog("unsetEnterCallback"),d.$filePicker.click(),y.val(h)}})),y.keypress((function(e){13!==e.keyCode&&13!==e.which||(e.stopImmediatePropagation(),e.preventDefault(),_.submit())})),d.$filePicker.ready((function(){d.$fileListHeader=d.$filePicker.find(".filelist thead tr"),d.$filelist=d.$filePicker.find(".filelist tbody"),d.$filelistContainer=d.$filePicker.find(".filelist-container"),d.$dirTree=d.$filePicker.find(".dirtree"),d.$dirTree.on("click","div:not(:last-child)",d,(function(e){d._handleTreeListSelect(e,o)})),d.$filelist.on("click","tr",(function(e){d._handlePickerClick(e,s()(this),o)})),d.$fileListHeader.on("click","a",(function(e){var t=d.$filePicker.data("path");d.filepicker.sortField=s()(e.currentTarget).data("sort"),d.filepicker.sortOrder="asc"===d.filepicker.sortOrder?"desc":"asc",d._fillFilePicker(t)})),d._fillFilePicker(u)}));var g=function(e){if(void 0!==n){var t;if(!0===r)t=[],d.$filelist.find("tr.filepicker_element_selected").each((function(e,n){t.push(d.$filePicker.data("path")+"/"+s()(n).data("entryname"))}));else{t=d.$filePicker.data("path");var i=d.$filelist.find("tr.filepicker_element_selected").data("entryname");i&&(t+="/"+i)}n(t,e),d.$filePicker.ocdialog("close")}},M=[];o===$.FILEPICKER_TYPE_CHOOSE?M.push({text:t("core","Choose"),click:function(){g($.FILEPICKER_TYPE_CHOOSE)},defaultButton:!0}):o===$.FILEPICKER_TYPE_CUSTOM?c.buttons.forEach((function(e){M.push({text:e.text,click:function(){g(e.type)},defaultButton:e.defaultButton})})):(o!==$.FILEPICKER_TYPE_COPY&&o!==$.FILEPICKER_TYPE_COPY_MOVE||M.push({text:t("core","Copy"),click:function(){g($.FILEPICKER_TYPE_COPY)},defaultButton:!1}),o!==$.FILEPICKER_TYPE_MOVE&&o!==$.FILEPICKER_TYPE_COPY_MOVE||M.push({text:t("core","Move"),click:function(){g($.FILEPICKER_TYPE_MOVE)},defaultButton:!0})),d.$filePicker.ocdialog({closeOnEscape:!0,width:600,height:500,modal:a,buttons:M,style:{buttons:"aside"},close:function(){try{s()(this).ocdialog("destroy").remove()}catch(e){}d.$filePicker=null}});var L=d.$filePicker.closest(".oc-dialog").find(".primary");-1!==d.$filePicker.data("mimetype").indexOf("httpd/unix-directory")||d.$filePicker.data("allowDirectoryChooser")?L.prop("disabled",!1):L.prop("disabled",!0)})).fail((function(e,n){d.filepicker.loading=!1,0!==e&&alert(t("core","Error loading file picker template: {error}",{error:n}))}))}},message:function(e,n,r,i,a,o,u){return s.a.when(this._getMessageTemplate()).then((function(c){var l="oc-dialog-"+$.dialogsCounter+"-content",d="#"+l,f=c.octemplate({dialog_name:l,title:n,message:e,type:r},u?{escapeFunction:""}:{});void 0===o&&(o=!1),s()("body").append(f);var h=[];switch(i){case $.YES_NO_BUTTONS:h=[{text:t("core","No"),click:function(){void 0!==a&&a(!1),s()(d).ocdialog("close")}},{text:t("core","Yes"),click:function(){void 0!==a&&a(!0),s()(d).ocdialog("close")},defaultButton:!0}];break;case $.OK_BUTTON:h[0]={text:t("core","OK"),click:function(){s()(d).ocdialog("close"),void 0!==a&&a()},defaultButton:!0};break;default:if("object"===W(i))switch(i.type){case $.YES_NO_BUTTONS:h=[{text:i.cancel||t("core","No"),click:function(){void 0!==a&&a(!1),s()(d).ocdialog("close")}},{text:i.confirm||t("core","Yes"),click:function(){void 0!==a&&a(!0),s()(d).ocdialog("close")},defaultButton:!0,classes:i.confirmClasses}]}}s()(d).ocdialog({closeOnEscape:!0,modal:o,buttons:h}),$.dialogsCounter++})).fail((function(r,i){0===r?alert(n+": "+e):alert(t("core","Error loading message template: {error}",{error:i}))}))},_fileexistsshown:!1,fileexists:function(e,r,i,a){var o=this,u=new s.a.Deferred,c=function(e){var t,n,r,i=document.createElement("canvas"),a=e.width,o=e.height;return a>o?(n=0,t=(a-o)/2):(n=(o-a)/2,t=0),r=Math.min(a,o),i.width=r,i.height=r,i.getContext("2d").drawImage(e,t,n,r,r,0,0,r,r),l(i,r,r,96,96),i.toDataURL("image/png",.7)},l=function(e,t,n,r,i){r=Math.round(r),i=Math.round(i);for(var a=e.getContext("2d").getImageData(0,0,t,n),o=e.getContext("2d").getImageData(0,0,r,i),s=a.data,u=o.data,c=t/r,l=n/i,d=Math.ceil(c/2),f=Math.ceil(l/2),h=0;h<i;h++)for(var p=0;p<r;p++){for(var m=4*(p+h*r),_=0,y=0,v=0,g=0,M=0,L=0,b=0,w=(h+.5)*l,k=Math.floor(h*l);k<(h+1)*l;k++)for(var Y=Math.abs(w-(k+.5))/f,T=(p+.5)*c,x=Y*Y,D=Math.floor(p*c);D<(p+1)*c;D++){var S=Math.abs(T-(D+.5))/d,E=Math.sqrt(x+S*S);E>=-1&&E<=1&&(_=2*E*E*E-3*E*E+1)>0&&(b+=_*s[(S=4*(D+k*t))+3],v+=_,s[S+3]<255&&(_=_*s[S+3]/250),g+=_*s[S],M+=_*s[S+1],L+=_*s[S+2],y+=_)}u[m]=g/y,u[m+1]=M/y,u[m+2]=L/y,u[m+3]=b/v}e.getContext("2d").clearRect(0,0,Math.max(t,r),Math.max(n,i)),e.width=r,e.height=i,e.getContext("2d").putImageData(o,0,0)},d=function(n,r,i){var a=n.find(".template").clone().removeClass("template").addClass("conflict"),o=a.find(".original"),u=a.find(".replacement");a.data("data",e),a.find(".filename").text(r.name),o.find(".size").text(pe.Util.humanFileSize(r.size)),o.find(".mtime").text(formatDate(r.mtime)),i.size&&i.lastModifiedDate&&(u.find(".size").text(pe.Util.humanFileSize(i.size)),u.find(".mtime").text(formatDate(i.lastModifiedDate)));var l=r.directory+"/"+r.name,d={file:l,x:96,y:96,c:r.etag,forceIcon:0},f=Files.generatePreviewUrl(d);f=f.replace(/'/g,"%27"),o.find(".icon").css({"background-image":"url('"+f+"')"}),function(e){var t=new s.a.Deferred,n=e.type&&e.type.split("/").shift();if(window.FileReader&&"image"===n){var r=new FileReader;r.onload=function(e){var n=new Blob([e.target.result]);window.URL=window.URL||window.webkitURL;var r=window.URL.createObjectURL(n),i=new Image;i.src=r,i.onload=function(){var e=c(i);t.resolve(e)}},r.readAsArrayBuffer(e)}else t.reject();return t}(i).then((function(e){u.find(".icon").css("background-image","url("+e+")")}),(function(){l=pe.MimeType.getIconUrl(i.type),u.find(".icon").css("background-image","url("+l+")")}));var h=n.find(".conflict").length;o.find("input:checkbox").attr("id","checkbox_original_"+h),u.find("input:checkbox").attr("id","checkbox_replacement_"+h),n.append(a),i.lastModifiedDate&&i.lastModifiedDate.getTime()>r.mtime?u.find(".mtime").css("font-weight","bold"):i.lastModifiedDate&&i.lastModifiedDate.getTime()<r.mtime&&o.find(".mtime").css("font-weight","bold"),i.size&&i.size>r.size?u.find(".size").css("font-weight","bold"):i.size&&i.size<r.size&&o.find(".size").css("font-weight","bold"),"readonly"===r.status&&(o.addClass("readonly").find('input[type="checkbox"]').prop("checked",!0).prop("disabled",!0),o.find(".message").text(t("core","read-only")))},f="#oc-dialog-fileexists-content";if(this._fileexistsshown){var h=s()(f+" .conflicts");d(h,r,i);var p=s()(f+" .conflict").length,m=n("core","{count} file conflict","{count} file conflicts",p,{count:p});s()(f).parent().children(".oc-dialog-title").text(m),s()(window).trigger("resize"),u.resolve()}else this._fileexistsshown=!0,s.a.when(this._getFileExistsTemplate()).then((function(n){var c=t("core","One file conflict"),l=n.octemplate({dialog_name:"oc-dialog-fileexists-content",title:c,type:"fileexists",allnewfiles:t("core","New Files"),allexistingfiles:t("core","Already existing files"),why:t("core","Which files do you want to keep?"),what:t("core","If you select both versions, the copied file will have a number added to its name.")});if(s()("body").append(l),r&&i){var h=l.find(".conflicts");d(h,r,i)}var p=[{text:t("core","Cancel"),classes:"cancel",click:function(){void 0!==a.onCancel&&a.onCancel(e),s()(f).ocdialog("close")}},{text:t("core","Continue"),classes:"continue",click:function(){void 0!==a.onContinue&&a.onContinue(s()(f+" .conflict")),s()(f).ocdialog("close")}}];s()(f).ocdialog({width:500,closeOnEscape:!0,modal:!0,buttons:p,closeButton:null,close:function(){o._fileexistsshown=!1,s()(this).ocdialog("destroy").remove()}}),s()(f).css("height","auto");var m=l.closest(".oc-dialog").find("button.continue");function _(){var e=l.find(".conflicts .checkbox:checked").length;m.prop("disabled",0===e)}m.prop("disabled",!0),s()(f).find(".allnewfiles").on("click",(function(){s()(f).find('.conflict .replacement input[type="checkbox"]').prop("checked",s()(this).prop("checked"))})),s()(f).find(".allexistingfiles").on("click",(function(){s()(f).find('.conflict .original:not(.readonly) input[type="checkbox"]').prop("checked",s()(this).prop("checked"))})),s()(f).find(".conflicts").on("click",".replacement,.original:not(.readonly)",(function(){var e=s()(this).find('input[type="checkbox"]');e.prop("checked",!e.prop("checked"))})),s()(f).find(".conflicts").on("click",'.replacement input[type="checkbox"],.original:not(.readonly) input[type="checkbox"]',(function(){var e=s()(this);e.prop("checked",!e.prop("checked"))})),s()(f).on("click",".replacement,.allnewfiles",(function(){var e=s()(f).find('.conflict .replacement input[type="checkbox"]:checked').length;e===s()(f+" .conflict").length?(s()(f).find(".allnewfiles").prop("checked",!0),s()(f).find(".allnewfiles + .count").text(t("core","(all selected)"))):e>0?(s()(f).find(".allnewfiles").prop("checked",!1),s()(f).find(".allnewfiles + .count").text(t("core","({count} selected)",{count:e}))):(s()(f).find(".allnewfiles").prop("checked",!1),s()(f).find(".allnewfiles + .count").text("")),_()})),s()(f).on("click",".original,.allexistingfiles",(function(){var e=s()(f).find('.conflict .original input[type="checkbox"]:checked').length;e===s()(f+" .conflict").length?(s()(f).find(".allexistingfiles").prop("checked",!0),s()(f).find(".allexistingfiles + .count").text(t("core","(all selected)"))):e>0?(s()(f).find(".allexistingfiles").prop("checked",!1),s()(f).find(".allexistingfiles + .count").text(t("core","({count} selected)",{count:e}))):(s()(f).find(".allexistingfiles").prop("checked",!1),s()(f).find(".allexistingfiles + .count").text("")),_()})),u.resolve()})).fail((function(){u.reject(),alert(t("core","Error loading file exists template"))}));return u.promise()},_getGridSettings:function(){var e=this;s.a.get(pe.generateUrl("/apps/files/api/v1/showgridview"),(function(t){e.$showGridView.get(0).checked=t.gridview,e.$showGridView.next("#picker-view-toggle").removeClass("icon-toggle-filelist icon-toggle-pictures").addClass(t.gridview?"icon-toggle-filelist":"icon-toggle-pictures"),s()(".list-container").toggleClass("view-grid",t.gridview)}))},_onGridviewChange:function(){var e=this.$showGridView.is(":checked");pe.currentUser&&s.a.post(pe.generateUrl("/apps/files/api/v1/showgridview"),{show:e}),this.$showGridView.next("#picker-view-toggle").removeClass("icon-toggle-filelist icon-toggle-pictures").addClass(e?"icon-toggle-filelist":"icon-toggle-pictures"),s()(".list-container").toggleClass("view-grid",e)},_getFilePickerTemplate:function(){var e=s.a.Deferred();if(this.$filePickerTemplate)e.resolve(this.$filePickerTemplate);else{var t=this;s.a.get(pe.filePath("core","templates","filepicker.html"),(function(n){t.$filePickerTemplate=s()(n),t.$listTmpl=t.$filePickerTemplate.find(".filelist tbody tr:first-child").detach(),e.resolve(t.$filePickerTemplate)})).fail((function(t,n,r){e.reject(t.status,r)}))}return e.promise()},_getMessageTemplate:function(){var e=s.a.Deferred();if(this.$messageTemplate)e.resolve(this.$messageTemplate);else{var t=this;s.a.get(pe.filePath("core","templates","message.html"),(function(n){t.$messageTemplate=s()(n),e.resolve(t.$messageTemplate)})).fail((function(t,n,r){e.reject(t.status,r)}))}return e.promise()},_getFileExistsTemplate:function(){var e=s.a.Deferred();if(this.$fileexistsTemplate)e.resolve(this.$fileexistsTemplate);else{var t=this;s.a.get(pe.filePath("files","templates","fileexists.html"),(function(n){t.$fileexistsTemplate=s()(n),e.resolve(t.$fileexistsTemplate)})).fail((function(){e.reject()}))}return e.promise()},_getFileList:function(e,t){return"string"==typeof t&&(t=[t]),s.a.getJSON(pe.filePath("files","ajax","list.php"),{dir:e,mimetypes:JSON.stringify(t)})},_fillFilePicker:function(e){var n=this;this.$filelist.empty(),this.$filePicker.find(".emptycontent").hide(),this.$filelistContainer.addClass("icon-loading"),this.$filePicker.data("path",e);var r=this.$filePicker.data("mimetype");"string"==typeof r&&(r=[r]),n.$fileListHeader.find(".sort-indicator").addClass("hidden").removeClass("icon-triangle-n").removeClass("icon-triangle-s"),n.$fileListHeader.find("[data-sort="+n.filepicker.sortField+"] .sort-indicator").removeClass("hidden"),"asc"===n.filepicker.sortOrder?n.$fileListHeader.find("[data-sort="+n.filepicker.sortField+"] .sort-indicator").addClass("icon-triangle-n"):n.$fileListHeader.find("[data-sort="+n.filepicker.sortField+"] .sort-indicator").addClass("icon-triangle-s"),n.filepicker.filesClient.getFolderContents(e).then((function(i,a){n.filelist=a,r&&r.length>0&&-1===r.indexOf("*")&&(a=a.filter((function(e){return"dir"===e.type||-1!==r.indexOf(e.mimetype)})));var o={name:function(e,t){return"dir"===e.type&&"dir"!==t.type?-1:"dir"!==e.type&&"dir"===t.type?1:pe.Util.naturalSortCompare(e.name,t.name)},size:function(e,t){return e.size-t.size},mtime:function(e,t){return e.mtime-t.mtime}},u=o[n.filepicker.sortField]||o.name;a=a.sort((function(e,t){var r=function(e){return e.tags&&e.tags.indexOf(pe.TAG_FAVORITE)>=0};return r(e)&&!r(t)?-1:!r(e)&&r(t)?1:"asc"===n.filepicker.sortOrder?u(e,t):-u(e,t)})),n._fillSlug(),0===a.length?(n.$filePicker.find(".emptycontent").show(),n.$fileListHeader.hide()):(n.$filePicker.find(".emptycontent").hide(),n.$fileListHeader.show()),s.a.each(a,(function(r,i){var a,o;if(i.icon=pe.MimeType.getIconUrl(i.mimetype),void 0!==i.size&&i.size>=0?(a=pe.Util.humanFileSize(parseInt(i.size,10),!0),o=Math.round(160-Math.pow(i.size/1048576,2))):(a=t("files","Pending"),o=80),i.name.length>=10)var u=Math.min(Math.floor(i.name.length/2),10),c=i.name.substr(0,i.name.length-u),l=i.name.substr(i.name.length-u);else c=i.name,l="";var d=n.$listTmpl.octemplate({type:i.type,dir:e,filename:i.name,filename1:c,filename2:l,date:pe.Util.relativeModifiedDate(i.mtime),size:a,sizeColor:o,icon:i.icon});if("file"===i.type){var f={file:e+"/"+i.name,x:100,y:100},h=new Image,p=pe.generateUrl("/core/preview.png?")+s.a.param(f);h.onload=function(){h.width>5&&d.find("td.filename").attr("style","background-image:url("+p+")")},h.src=p}n.$filelist.append(d)})),n.$filelistContainer.removeClass("icon-loading")}))},_fillSlug:function(){var e=this.$dirTree.find(".actions.creatable").detach();this.$dirTree.empty();var t=this;t.$dirTree.append(e);var n=this.$filePicker.data("path"),r=s()('<div data-dir="{dir}"><a>{name}</a></div>').addClass("crumb");if(n){var i=n.split("/");s.a.each(i,(function(e,n){if(""===(n=i.pop()))return!1;t.$dirTree.prepend(r.octemplate({dir:i.join("/")+"/"+n,name:n}))}))}r.octemplate({dir:"",name:""},{escapeFunction:null}).prependTo(this.$dirTree)},_handleTreeListSelect:function(e,t){var n=e.data,r=s()(e.target).closest(".crumb").data("dir");n._fillFilePicker(r);var i=e.target.closest(".oc-dialog"),a=s()(".primary",i);this._changeButtonsText(t,r.split(/[/]+/).pop()),-1!==this.$filePicker.data("mimetype").indexOf("httpd/unix-directory")||this.$filePicker.data("allowDirectoryChooser")?a.prop("disabled",!1):a.prop("disabled",!0)},_handlePickerClick:function(e,t,n){var r=this.$filePicker.closest(".oc-dialog").find(".primary");"file"===t.data("type")?(!0===this.$filePicker.data("multiselect")&&e.ctrlKey||this.$filelist.find(".filepicker_element_selected").removeClass("filepicker_element_selected"),t.toggleClass("filepicker_element_selected"),r.prop("disabled",!1)):"dir"===t.data("type")&&(this._fillFilePicker(this.$filePicker.data("path")+"/"+t.data("entryname")),this._changeButtonsText(n,t.data("entryname")),-1!==this.$filePicker.data("mimetype").indexOf("httpd/unix-directory")||this.$filePicker.data("allowDirectoryChooser")?r.prop("disabled",!1):r.prop("disabled",!0))},_changeButtonsText:function(e,n){var r=""===n?t("core","Copy"):t("core","Copy to {folder}",{folder:n}),i=""===n?t("core","Move"):t("core","Move to {folder}",{folder:n}),a=s()(".oc-dialog-buttonrow button");switch(e){case this.FILEPICKER_TYPE_CHOOSE:case this.FILEPICKER_TYPE_CUSTOM:break;case this.FILEPICKER_TYPE_COPY:a.text(r);break;case this.FILEPICKER_TYPE_MOVE:a.text(i);break;case this.FILEPICKER_TYPE_COPY_MOVE:a.eq(0).text(r),a.eq(1).text(i)}}},z=$,U=i(63),B=function e(t,n){var r,i,a="";if(this.typelessListeners=[],this.closed=!1,this.listeners={},n)for(r in n)a+=r+"="+encodeURIComponent(n[r])+"&";if(a+="requesttoken="+encodeURIComponent(Object(U.a)()),this.useFallBack||"undefined"==typeof EventSource){var o="oc_eventsource_iframe_"+e.iframeCount;e.fallBackSources[e.iframeCount]=this,this.iframe=s()("<iframe/>"),this.iframe.attr("id",o),this.iframe.hide(),i="&",-1===t.indexOf("?")&&(i="?"),this.iframe.attr("src",t+i+"fallback=true&fallback_id="+e.iframeCount+"&"+a),s()("body").append(this.iframe),this.useFallBack=!0,e.iframeCount++}else i="&",-1===t.indexOf("?")&&(i="?"),this.source=new EventSource(t+i+a),this.source.onmessage=function(e){for(var t=0;t<this.typelessListeners.length;t++)this.typelessListeners[t](JSON.parse(e.data))}.bind(this);this.listen("__internal__",function(e){"close"===e&&this.close()}.bind(this))};B.fallBackSources=[],B.iframeCount=0,B.fallBackCallBack=function(e,t,n){B.fallBackSources[e].fallBackCallBack(t,n)},B.prototype={typelessListeners:[],iframe:null,listeners:{},useFallBack:!1,fallBackCallBack:function(e,t){var n;if(!this.closed)if(e){if(void 0!==this.listeners.done)for(n=0;n<this.listeners[e].length;n++)this.listeners[e][n](t)}else for(n=0;n<this.typelessListeners.length;n++)this.typelessListeners[n](t)},lastLength:0,listen:function(e,t){t&&t.call&&(e?this.useFallBack?(this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)):this.source.addEventListener(e,(function(e){void 0!==e.data?t(JSON.parse(e.data)):t("")}),!1):this.typelessListeners.push(t))},close:function(){this.closed=!0,void 0!==this.source&&this.source.close()}};var q=B,J=window._oc_capabilities||{},G=function(){return J},V=null,K=function(e){if(V){var t=V;V.trigger(new s.a.Event("beforeHide")),V.slideUp(C.j,(function(){t.trigger(new s.a.Event("afterHide")),e&&e.apply(this,arguments)}))}s()(".menutoggle").attr("aria-expanded",!1),s()(".openedMenu").removeClass("openedMenu"),V=null,null},X=!!window._oc_isadmin,Z=i(56),Q=i(25),ee={startSaving:function(e){this.startAction(e,t("core","Saving …"))},startAction:function(e,t){s()(e).text(t).removeClass("success").removeClass("error").stop(!0,!0).show()},finishedSaving:function(e,t){this.finishedAction(e,t)},finishedAction:function(e,t){"success"===t.status?this.finishedSuccess(e,t.data.message):this.finishedError(e,t.data.message)},finishedSuccess:function(e,t){s()(e).text(t).addClass("success").removeClass("error").stop(!0,!0).delay(3e3).fadeOut(900).show()},finishedError:function(e,t){s()(e).text(t).addClass("error").removeClass("success").show()}},te=i(228),ne=function(e){pe.Search.search(e,null,0,30)}; /** * @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at> * @@ -310,10 +310,10 @@ var r=Object.freeze({});function i(e){return null==e}function a(e){return null!= * * Copyright (C) 2018 Varun A P */ -var r,i;r=this,i=function(e){var t=function(e){return new t.lib.init(e)};function n(e,t){return!(!e||"string"!=typeof t||!(e.className&&e.className.trim().split(/\s+/gi).indexOf(t)>-1))}return t.lib=t.prototype={toastify:"1.7.0",constructor:t,init:function(e){return e||(e={}),this.options={},this.toastElement=null,this.options.text=e.text||"Hi there!",this.options.duration=0===e.duration?0:e.duration||3e3,this.options.selector=e.selector,this.options.callback=e.callback||function(){},this.options.destination=e.destination,this.options.newWindow=e.newWindow||!1,this.options.close=e.close||!1,this.options.gravity="bottom"===e.gravity?"toastify-bottom":"toastify-top",this.options.positionLeft=e.positionLeft||!1,this.options.position=e.position||"",this.options.backgroundColor=e.backgroundColor,this.options.avatar=e.avatar||"",this.options.className=e.className||"",this.options.stopOnFocus=void 0===e.stopOnFocus||e.stopOnFocus,this.options.onClick=e.onClick,this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var e=document.createElement("div");if(e.className="toastify on "+this.options.className,this.options.position?e.className+=" toastify-"+this.options.position:!0===this.options.positionLeft?(e.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):e.className+=" toastify-right",e.className+=" "+this.options.gravity,this.options.backgroundColor&&(e.style.background=this.options.backgroundColor),e.innerHTML=this.options.text,""!==this.options.avatar){var t=document.createElement("img");t.src=this.options.avatar,t.className="toastify-avatar","left"==this.options.position||!0===this.options.positionLeft?e.appendChild(t):e.insertAdjacentElement("beforeend",t)}if(!0===this.options.close){var n=document.createElement("span");n.innerHTML="✖",n.className="toast-close",n.addEventListener("click",function(e){e.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}.bind(this));var r=window.innerWidth>0?window.innerWidth:screen.width;("left"==this.options.position||!0===this.options.positionLeft)&&r>360?e.insertAdjacentElement("afterbegin",n):e.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0){const t=this;e.addEventListener("mouseover",(function(t){window.clearTimeout(e.timeOutValue)})),e.addEventListener("mouseleave",(function(){e.timeOutValue=window.setTimeout((function(){t.removeElement(e)}),t.options.duration)}))}return void 0!==this.options.destination&&e.addEventListener("click",function(e){e.stopPropagation(),!0===this.options.newWindow?window.open(this.options.destination,"_blank"):window.location=this.options.destination}.bind(this)),"function"==typeof this.options.onClick&&void 0===this.options.destination&&e.addEventListener("click",function(e){e.stopPropagation(),this.options.onClick()}.bind(this)),e},showToast:function(){var e;if(this.toastElement=this.buildToast(),!(e=void 0===this.options.selector?document.body:document.getElementById(this.options.selector)))throw"Root element is not defined";return e.insertBefore(this.toastElement,e.firstChild),t.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(function(){this.removeElement(this.toastElement)}.bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(e){e.className=e.className.replace(" on",""),window.setTimeout(function(){e.parentNode&&e.parentNode.removeChild(e),this.options.callback.call(e),t.reposition()}.bind(this),400)}},t.reposition=function(){for(var e,t={top:15,bottom:15},r={top:15,bottom:15},i={top:15,bottom:15},a=document.getElementsByClassName("toastify"),o=0;o<a.length;o++){e=!0===n(a[o],"toastify-top")?"toastify-top":"toastify-bottom";var s=a[o].offsetHeight;e=e.substr(9,e.length-1),(window.innerWidth>0?window.innerWidth:screen.width)<=360?(a[o].style[e]=i[e]+"px",i[e]+=s+15):!0===n(a[o],"toastify-left")?(a[o].style[e]=t[e]+"px",t[e]+=s+15):(a[o].style[e]=r[e]+"px",r[e]+=s+15)}return this},t.lib.init.prototype=t.lib,t},e.exports?e.exports=i():r.Toastify=i()},function(e,t,n){var r=n(93);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var a,o=e.lambda,s=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<img src="'+s(o(null!=(a=null!=t?u(t,"contact"):t)?u(a,"avatar"):a,t))+'&size=32" class="avatar" srcset="'+s(o(null!=(a=null!=t?u(t,"contact"):t)?u(a,"avatar"):a,t))+"&size=32 1x, "+s(o(null!=(a=null!=t?u(t,"contact"):t)?u(a,"avatar"):a,t))+"&size=64 2x, "+s(o(null!=(a=null!=t?u(t,"contact"):t)?u(a,"avatar"):a,t))+'&size=128 4x" alt="">\n'},3:function(e,t,n,r,i){return'<div class="avatar"></div>\n'},5:function(e,t,n,r,i){var a,o=e.lambda,s=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a class="top-action" href="'+s(o(null!=(a=null!=(a=null!=t?u(t,"contact"):t)?u(a,"topAction"):a)?u(a,"hyperlink"):a,t))+'" title="'+s(o(null!=(a=null!=(a=null!=t?u(t,"contact"):t)?u(a,"topAction"):a)?u(a,"title"):a,t))+'">\n\t<img src="'+s(o(null!=(a=null!=(a=null!=t?u(t,"contact"):t)?u(a,"topAction"):a)?u(a,"icon"):a,t))+'" alt="'+s(o(null!=(a=null!=(a=null!=t?u(t,"contact"):t)?u(a,"topAction"):a)?u(a,"title"):a,t))+'">\n</a>\n'},7:function(e,t,n,r,i){var a,o=e.lambda,s=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a class="second-action" href="'+s(o(null!=(a=null!=(a=null!=t?u(t,"contact"):t)?u(a,"secondAction"):a)?u(a,"hyperlink"):a,t))+'" title="'+s(o(null!=(a=null!=(a=null!=t?u(t,"contact"):t)?u(a,"secondAction"):a)?u(a,"title"):a,t))+'">\n\t<img src="'+s(o(null!=(a=null!=(a=null!=t?u(t,"contact"):t)?u(a,"secondAction"):a)?u(a,"icon"):a,t))+'" alt="'+s(o(null!=(a=null!=(a=null!=t?u(t,"contact"):t)?u(a,"secondAction"):a)?u(a,"title"):a,t))+'">\n</a>\n'},9:function(e,t,n,r,i){var a,o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'\t<span class="other-actions icon-more"></span>\n\t<div class="menu popovermenu">\n\t\t<ul>\n'+(null!=(a=o(n,"each").call(null!=t?t:e.nullContext||{},null!=(a=null!=t?o(t,"contact"):t)?o(a,"actions"):a,{name:"each",hash:{},fn:e.program(10,i,0),inverse:e.noop,data:i,loc:{start:{line:24,column:3},end:{line:31,column:12}}}))?a:"")+"\t\t</ul>\n\t</div>\n"},10:function(e,t,n,r,i){var a,o=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'\t\t\t<li>\n\t\t\t\t<a href="'+u("function"==typeof(a=null!=(a=c(n,"hyperlink")||(null!=t?c(t,"hyperlink"):t))?a:s)?a.call(o,{name:"hyperlink",hash:{},data:i,loc:{start:{line:26,column:13},end:{line:26,column:26}}}):a)+'">\n\t\t\t\t\t<img src="'+u("function"==typeof(a=null!=(a=c(n,"icon")||(null!=t?c(t,"icon"):t))?a:s)?a.call(o,{name:"icon",hash:{},data:i,loc:{start:{line:27,column:15},end:{line:27,column:23}}}):a)+'" alt="">\n\t\t\t\t\t<span>'+u("function"==typeof(a=null!=(a=c(n,"title")||(null!=t?c(t,"title"):t))?a:s)?a.call(o,{name:"title",hash:{},data:i,loc:{start:{line:28,column:11},end:{line:28,column:20}}}):a)+"</span>\n\t\t\t\t</a>\n\t\t\t</li>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var a,o=null!=t?t:e.nullContext||{},s=e.lambda,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(a=c(n,"if").call(o,null!=(a=null!=t?c(t,"contact"):t)?c(a,"avatar"):a,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i,loc:{start:{line:1,column:0},end:{line:5,column:7}}}))?a:"")+'<div class="body">\n\t<div class="full-name">'+u(s(null!=(a=null!=t?c(t,"contact"):t)?c(a,"fullName"):a,t))+'</div>\n\t<div class="last-message">'+u(s(null!=(a=null!=t?c(t,"contact"):t)?c(a,"lastMessage"):a,t))+"</div>\n</div>\n"+(null!=(a=c(n,"if").call(o,null!=(a=null!=t?c(t,"contact"):t)?c(a,"topAction"):a,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i,loc:{start:{line:10,column:0},end:{line:14,column:7}}}))?a:"")+(null!=(a=c(n,"if").call(o,null!=(a=null!=t?c(t,"contact"):t)?c(a,"hasTwoActions"):a,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i,loc:{start:{line:15,column:0},end:{line:19,column:7}}}))?a:"")+(null!=(a=c(n,"if").call(o,null!=(a=null!=t?c(t,"contact"):t)?c(a,"hasManyActions"):a,{name:"if",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i,loc:{start:{line:20,column:0},end:{line:34,column:7}}}))?a:"")},useData:!0})},function(e,t,n){"use strict";t.__esModule=!0;var r=n(33);t.default=function(e){e.registerHelper("blockHelperMissing",(function(t,n){var i=n.inverse,a=n.fn;if(!0===t)return a(this);if(!1===t||null==t)return i(this);if(r.isArray(t))return t.length>0?(n.ids&&(n.ids=[n.name]),e.helpers.each(t,n)):i(this);if(n.data&&n.ids){var o=r.createFrame(n.data);o.contextPath=r.appendContextPath(n.data.contextPath,n.name),n={data:o}}return a(t,n)}))},e.exports=t.default},function(e,t,n){"use strict";(function(r){t.__esModule=!0;var i,a=n(33),o=n(60),s=(i=o)&&i.__esModule?i:{default:i};t.default=function(e){e.registerHelper("each",(function(e,t){if(!t)throw new s.default("Must pass iterator to #each");var n,i=t.fn,o=t.inverse,u=0,c="",l=void 0,d=void 0;function f(t,n,r){l&&(l.key=t,l.index=n,l.first=0===n,l.last=!!r,d&&(l.contextPath=d+t)),c+=i(e[t],{data:l,blockParams:a.blockParams([e[t],t],[d+t,null])})}if(t.data&&t.ids&&(d=a.appendContextPath(t.data.contextPath,t.ids[0])+"."),a.isFunction(e)&&(e=e.call(this)),t.data&&(l=a.createFrame(t.data)),e&&"object"==typeof e)if(a.isArray(e))for(var h=e.length;u<h;u++)u in e&&f(u,u,u===e.length-1);else if(r.Symbol&&e[r.Symbol.iterator]){for(var p=[],m=e[r.Symbol.iterator](),_=m.next();!_.done;_=m.next())p.push(_.value);for(h=(e=p).length;u<h;u++)f(u,u,u===e.length-1)}else n=void 0,Object.keys(e).forEach((function(e){void 0!==n&&f(n,u-1),n=e,u++})),void 0!==n&&f(n,u-1,!0);return 0===u&&(c=o(this)),c}))},e.exports=t.default}).call(this,n(24))},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(60),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("helperMissing",(function(){if(1!==arguments.length)throw new a.default('Missing helper: "'+arguments[arguments.length-1].name+'"')}))},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(33),a=n(60),o=(r=a)&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("if",(function(e,t){if(2!=arguments.length)throw new o.default("#if requires exactly one argument");return i.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||i.isEmpty(e)?t.inverse(this):t.fn(this)})),e.registerHelper("unless",(function(t,n){if(2!=arguments.length)throw new o.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:n.inverse,inverse:n.fn,hash:n.hash})}))},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("log",(function(){for(var t=[void 0],n=arguments[arguments.length-1],r=0;r<arguments.length-1;r++)t.push(arguments[r]);var i=1;null!=n.hash.level?i=n.hash.level:n.data&&null!=n.data.level&&(i=n.data.level),t[0]=i,e.log.apply(e,t)}))},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("lookup",(function(e,t,n){return e?n.lookupProperty(e,t):e}))},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(33),a=n(60),o=(r=a)&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("with",(function(e,t){if(2!=arguments.length)throw new o.default("#with requires exactly one argument");i.isFunction(e)&&(e=e.call(this));var n=t.fn;if(i.isEmpty(e))return t.inverse(this);var r=t.data;return t.data&&t.ids&&((r=i.createFrame(t.data)).contextPath=i.appendContextPath(t.data.contextPath,t.ids[0])),n(e,{data:r,blockParams:i.blockParams([e],[r&&r.contextPath])})}))},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.registerDefaultDecorators=function(e){a.default(e)};var r,i=n(507),a=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(33);t.default=function(e){e.registerDecorator("inline",(function(e,t,n,i){var a=e;return t.partials||(t.partials={},a=function(i,a){var o=n.partials;n.partials=r.extend({},o,t.partials);var s=e(i,a);return n.partials=o,s}),t.partials[i.args[0]]=i.fn,a}))},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.createNewLookupObject=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.extend.apply(void 0,[Object.create(null)].concat(t))};var r=n(33)},function(e,t,n){"use strict";function r(e){this.string=e}t.__esModule=!0,r.prototype.toString=r.prototype.toHTML=function(){return""+this.string},t.default=r,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.checkRevision=function(e){var t=e&&e[0]||1,n=s.COMPILER_REVISION;if(t>=s.LAST_COMPATIBLE_COMPILER_REVISION&&t<=s.COMPILER_REVISION)return;if(t<s.LAST_COMPATIBLE_COMPILER_REVISION){var r=s.REVISION_CHANGES[n],i=s.REVISION_CHANGES[t];throw new o.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+i+").")}throw new o.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")},t.template=function(e,t){if(!t)throw new o.default("No environment passed to template");if(!e||!e.main)throw new o.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var n=e.compiler&&7===e.compiler[0];var r={strict:function(e,t,n){if(!e||!(t in e))throw new o.default('"'+t+'" not defined in '+e,{loc:n});return e[t]},lookupProperty:function(e,t){var n=e[t];return null==n||Object.prototype.hasOwnProperty.call(e,t)||l.resultIsAllowed(n,r.protoAccessControl,t)?n:void 0},lookup:function(e,t){for(var n=e.length,i=0;i<n;i++){if(null!=(e[i]&&r.lookupProperty(e[i],t)))return e[i][t]}},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:i.escapeExpression,invokePartial:function(n,r,a){a.hash&&(r=i.extend({},r,a.hash),a.ids&&(a.ids[0]=!0)),n=t.VM.resolvePartial.call(this,n,r,a);var s=i.extend({},a,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),u=t.VM.invokePartial.call(this,n,r,s);if(null==u&&t.compile&&(a.partials[a.name]=t.compile(n,e.compilerOptions,t),u=a.partials[a.name](r,s)),null!=u){if(a.indent){for(var c=u.split("\n"),l=0,d=c.length;l<d&&(c[l]||l+1!==d);l++)c[l]=a.indent+c[l];u=c.join("\n")}return u}throw new o.default("The partial "+a.name+" could not be compiled when running in runtime-only mode")},fn:function(t){var n=e[t];return n.decorator=e[t+"_d"],n},programs:[],program:function(e,t,n,r,i){var a=this.programs[e],o=this.fn(e);return t||i||r||n?a=d(this,e,o,t,n,r,i):a||(a=this.programs[e]=d(this,e,o)),a},data:function(e,t){for(;e&&t--;)e=e._parent;return e},mergeIfNeeded:function(e,t){var n=e||t;return e&&t&&e!==t&&(n=i.extend({},t,e)),n},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function a(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=n.data;a._setup(n),!n.partial&&e.useData&&(i=h(t,i));var o=void 0,s=e.useBlockParams?[]:void 0;function u(t){return""+e.main(r,t,r.helpers,r.partials,i,s,o)}return e.useDepths&&(o=n.depths?t!=n.depths[0]?[t].concat(n.depths):n.depths:[t]),(u=p(e.main,u,r,n.depths||[],i,s))(t,n)}return a.isTop=!0,a._setup=function(a){if(a.partial)r.protoAccessControl=a.protoAccessControl,r.helpers=a.helpers,r.partials=a.partials,r.decorators=a.decorators,r.hooks=a.hooks;else{var o=i.extend({},t.helpers,a.helpers);!function(e,t){Object.keys(e).forEach((function(n){var r=e[n];e[n]=function(e,t){var n=t.lookupProperty;return c.wrapHelper(e,(function(e){return i.extend({lookupProperty:n},e)}))}(r,t)}))}(o,r),r.helpers=o,e.usePartial&&(r.partials=r.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(r.decorators=i.extend({},t.decorators,a.decorators)),r.hooks={},r.protoAccessControl=l.createProtoAccessControl(a);var s=a.allowCallsToHelperMissing||n;u.moveHelperToHooks(r,"helperMissing",s),u.moveHelperToHooks(r,"blockHelperMissing",s)}},a._child=function(t,n,i,a){if(e.useBlockParams&&!i)throw new o.default("must pass block params");if(e.useDepths&&!a)throw new o.default("must pass parent depths");return d(r,t,e[t],n,0,i,a)},a},t.wrapProgram=d,t.resolvePartial=function(e,t,n){e?e.call||n.name||(n.name=e,e=n.partials[e]):e="@partial-block"===n.name?n.data["partial-block"]:n.partials[n.name];return e},t.invokePartial=function(e,t,n){var r=n.data&&n.data["partial-block"];n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var a=void 0;n.fn&&n.fn!==f&&function(){n.data=s.createFrame(n.data);var e=n.fn;a=n.data["partial-block"]=function(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return n.data=s.createFrame(n.data),n.data["partial-block"]=r,e(t,n)},e.partials&&(n.partials=i.extend({},n.partials,e.partials))}();void 0===e&&a&&(e=a);if(void 0===e)throw new o.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)},t.noop=f;var r,i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(33)),a=n(60),o=(r=a)&&r.__esModule?r:{default:r},s=n(261),u=n(262),c=n(511),l=n(264);function d(e,t,n,r,i,a,o){function s(t){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o;return!o||t==o[0]||t===e.nullContext&&null===o[0]||(s=[t].concat(o)),n(e,t,e.helpers,e.partials,i.data||r,a&&[i.blockParams].concat(a),s)}return(s=p(n,s,e,o,r,a)).program=t,s.depth=o?o.length:0,s.blockParams=i||0,s}function f(){return""}function h(e,t){return t&&"root"in t||((t=t?s.createFrame(t):{}).root=e),t}function p(e,t,n,r,a,o){if(e.decorator){var s={};t=e.decorator(t,s,n,r&&r[0],a,o,r),i.extend(t,s)}return t}},function(e,t,n){"use strict";t.__esModule=!0,t.wrapHelper=function(e,t){if("function"!=typeof e)return e;return function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=t(n),e.apply(this,arguments)}}},function(e,t,n){"use strict";(function(n){t.__esModule=!0,t.default=function(e){var t=void 0!==n?n:window,r=t.Handlebars;e.noConflict=function(){return t.Handlebars===e&&(t.Handlebars=r),e}},e.exports=t.default}).call(this,n(24))},function(e,t,n){var r=n(93);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var a,o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="emptycontent">\n\t<div class="icon-loading"></div>\n\t<h2>'+e.escapeExpression("function"==typeof(a=null!=(a=o(n,"loadingText")||(null!=t?o(t,"loadingText"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"loadingText",hash:{},data:i,loc:{start:{line:3,column:5},end:{line:3,column:20}}}):a)+"</h2>\n</div>\n"},useData:!0})},function(e,t,n){var r=n(93);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var a,o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="emptycontent">\n\t<div class="icon-search"></div>\n\t<h2>'+e.escapeExpression("function"==typeof(a=null!=(a=o(n,"couldNotLoadText")||(null!=t?o(t,"couldNotLoadText"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"couldNotLoadText",hash:{},data:i,loc:{start:{line:3,column:5},end:{line:3,column:25}}}):a)+"</h2>\n</div>\n"},useData:!0})},function(e,t,n){var r=n(93);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var a,o=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<label class="hidden-visually" for="contactsmenu-search">'+u("function"==typeof(a=null!=(a=c(n,"searchContactsText")||(null!=t?c(t,"searchContactsText"):t))?a:s)?a.call(o,{name:"searchContactsText",hash:{},data:i,loc:{start:{line:1,column:57},end:{line:1,column:79}}}):a)+'</label>\n<input id="contactsmenu-search" type="search" placeholder="'+u("function"==typeof(a=null!=(a=c(n,"searchContactsText")||(null!=t?c(t,"searchContactsText"):t))?a:s)?a.call(o,{name:"searchContactsText",hash:{},data:i,loc:{start:{line:2,column:59},end:{line:2,column:81}}}):a)+'" value="'+u("function"==typeof(a=null!=(a=c(n,"searchTerm")||(null!=t?c(t,"searchTerm"):t))?a:s)?a.call(o,{name:"searchTerm",hash:{},data:i,loc:{start:{line:2,column:90},end:{line:2,column:104}}}):a)+'">\n<div class="content">\n</div>\n'},useData:!0})},function(e,t,n){var r=n(93);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var a,o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="emptycontent">\n\t<div class="icon-search"></div>\n\t<h2>'+e.escapeExpression("function"==typeof(a=null!=(a=o(n,"noContactsFoundText")||(null!=t?o(t,"noContactsFoundText"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"noContactsFoundText",hash:{},data:i,loc:{start:{line:4,column:5},end:{line:4,column:28}}}):a)+"</h2>\n</div>\n"},3:function(e,t,n,r,i){var a,o=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="footer"><a href="'+u("function"==typeof(a=null!=(a=c(n,"contactsAppURL")||(null!=t?c(t,"contactsAppURL"):t))?a:s)?a.call(o,{name:"contactsAppURL",hash:{},data:i,loc:{start:{line:9,column:29},end:{line:9,column:47}}}):a)+'">'+u("function"==typeof(a=null!=(a=c(n,"showAllContactsText")||(null!=t?c(t,"showAllContactsText"):t))?a:s)?a.call(o,{name:"showAllContactsText",hash:{},data:i,loc:{start:{line:9,column:49},end:{line:9,column:72}}}):a)+"</a></div>\n"},5:function(e,t,n,r,i){var a,o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(a=o(n,"if").call(null!=t?t:e.nullContext||{},null!=t?o(t,"canInstallApp"):t,{name:"if",hash:{},fn:e.program(6,i,0),inverse:e.noop,data:i,loc:{start:{line:10,column:0},end:{line:12,column:0}}}))?a:""},6:function(e,t,n,r,i){var a,o=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="footer"><a href="'+u("function"==typeof(a=null!=(a=c(n,"contactsAppMgmtURL")||(null!=t?c(t,"contactsAppMgmtURL"):t))?a:s)?a.call(o,{name:"contactsAppMgmtURL",hash:{},data:i,loc:{start:{line:11,column:29},end:{line:11,column:51}}}):a)+'">'+u("function"==typeof(a=null!=(a=c(n,"contactsAppMgmtText")||(null!=t?c(t,"contactsAppMgmtText"):t))?a:s)?a.call(o,{name:"contactsAppMgmtText",hash:{},data:i,loc:{start:{line:11,column:53},end:{line:11,column:76}}}):a)+"</a></div>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var a,o=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(a=s(n,"unless").call(o,null!=(a=null!=t?s(t,"contacts"):t)?s(a,"length"):a,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:6,column:11}}}))?a:"")+'<div id="contactsmenu-contacts"></div>\n'+(null!=(a=s(n,"if").call(o,null!=t?s(t,"contactsAppEnabled"):t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.program(5,i,0),data:i,loc:{start:{line:8,column:0},end:{line:12,column:7}}}))?a:"")},useData:!0})},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r={"./af":265,"./af.js":265,"./ar":266,"./ar-dz":267,"./ar-dz.js":267,"./ar-kw":268,"./ar-kw.js":268,"./ar-ly":269,"./ar-ly.js":269,"./ar-ma":270,"./ar-ma.js":270,"./ar-sa":271,"./ar-sa.js":271,"./ar-tn":272,"./ar-tn.js":272,"./ar.js":266,"./az":273,"./az.js":273,"./be":274,"./be.js":274,"./bg":275,"./bg.js":275,"./bm":276,"./bm.js":276,"./bn":277,"./bn.js":277,"./bo":278,"./bo.js":278,"./br":279,"./br.js":279,"./bs":280,"./bs.js":280,"./ca":281,"./ca.js":281,"./cs":282,"./cs.js":282,"./cv":283,"./cv.js":283,"./cy":284,"./cy.js":284,"./da":285,"./da.js":285,"./de":286,"./de-at":287,"./de-at.js":287,"./de-ch":288,"./de-ch.js":288,"./de.js":286,"./dv":289,"./dv.js":289,"./el":290,"./el.js":290,"./en-SG":291,"./en-SG.js":291,"./en-au":292,"./en-au.js":292,"./en-ca":293,"./en-ca.js":293,"./en-gb":294,"./en-gb.js":294,"./en-ie":295,"./en-ie.js":295,"./en-il":296,"./en-il.js":296,"./en-nz":297,"./en-nz.js":297,"./eo":298,"./eo.js":298,"./es":299,"./es-do":300,"./es-do.js":300,"./es-us":301,"./es-us.js":301,"./es.js":299,"./et":302,"./et.js":302,"./eu":303,"./eu.js":303,"./fa":304,"./fa.js":304,"./fi":305,"./fi.js":305,"./fo":306,"./fo.js":306,"./fr":307,"./fr-ca":308,"./fr-ca.js":308,"./fr-ch":309,"./fr-ch.js":309,"./fr.js":307,"./fy":310,"./fy.js":310,"./ga":311,"./ga.js":311,"./gd":312,"./gd.js":312,"./gl":313,"./gl.js":313,"./gom-latn":314,"./gom-latn.js":314,"./gu":315,"./gu.js":315,"./he":316,"./he.js":316,"./hi":317,"./hi.js":317,"./hr":318,"./hr.js":318,"./hu":319,"./hu.js":319,"./hy-am":320,"./hy-am.js":320,"./id":321,"./id.js":321,"./is":322,"./is.js":322,"./it":323,"./it-ch":324,"./it-ch.js":324,"./it.js":323,"./ja":325,"./ja.js":325,"./jv":326,"./jv.js":326,"./ka":327,"./ka.js":327,"./kk":328,"./kk.js":328,"./km":329,"./km.js":329,"./kn":330,"./kn.js":330,"./ko":331,"./ko.js":331,"./ku":332,"./ku.js":332,"./ky":333,"./ky.js":333,"./lb":334,"./lb.js":334,"./lo":335,"./lo.js":335,"./lt":336,"./lt.js":336,"./lv":337,"./lv.js":337,"./me":338,"./me.js":338,"./mi":339,"./mi.js":339,"./mk":340,"./mk.js":340,"./ml":341,"./ml.js":341,"./mn":342,"./mn.js":342,"./mr":343,"./mr.js":343,"./ms":344,"./ms-my":345,"./ms-my.js":345,"./ms.js":344,"./mt":346,"./mt.js":346,"./my":347,"./my.js":347,"./nb":348,"./nb.js":348,"./ne":349,"./ne.js":349,"./nl":350,"./nl-be":351,"./nl-be.js":351,"./nl.js":350,"./nn":352,"./nn.js":352,"./pa-in":353,"./pa-in.js":353,"./pl":354,"./pl.js":354,"./pt":355,"./pt-br":356,"./pt-br.js":356,"./pt.js":355,"./ro":357,"./ro.js":357,"./ru":358,"./ru.js":358,"./sd":359,"./sd.js":359,"./se":360,"./se.js":360,"./si":361,"./si.js":361,"./sk":362,"./sk.js":362,"./sl":363,"./sl.js":363,"./sq":364,"./sq.js":364,"./sr":365,"./sr-cyrl":366,"./sr-cyrl.js":366,"./sr.js":365,"./ss":367,"./ss.js":367,"./sv":368,"./sv.js":368,"./sw":369,"./sw.js":369,"./ta":370,"./ta.js":370,"./te":371,"./te.js":371,"./tet":372,"./tet.js":372,"./tg":373,"./tg.js":373,"./th":374,"./th.js":374,"./tl-ph":375,"./tl-ph.js":375,"./tlh":376,"./tlh.js":376,"./tr":377,"./tr.js":377,"./tzl":378,"./tzl.js":378,"./tzm":379,"./tzm-latn":380,"./tzm-latn.js":380,"./tzm.js":379,"./ug-cn":381,"./ug-cn.js":381,"./uk":382,"./uk.js":382,"./ur":383,"./ur.js":383,"./uz":384,"./uz-latn":385,"./uz-latn.js":385,"./uz.js":384,"./vi":386,"./vi.js":386,"./x-pseudo":387,"./x-pseudo.js":387,"./yo":388,"./yo.js":388,"./zh-cn":389,"./zh-cn.js":389,"./zh-hk":390,"./zh-hk.js":390,"./zh-tw":391,"./zh-tw.js":391};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=518},function(e,t,n){var r=n(520),i=n(539);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(e,t,n){var r=n(40),i=n(392).f,a=n(141),o=n(523),s=n(208),u=n(530),c=n(538);e.exports=function(e,t){var n,l,d,f,h,p=e.target,m=e.global,_=e.stat;if(n=m?r:_?r[p]||s(p,{}):(r[p]||{}).prototype)for(l in t){if(f=t[l],d=e.noTargetGet?(h=i(n,l))&&h.value:n[l],!c(m?l:p+(_?".":"#")+l,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;u(f,d)}(e.sham||d&&d.sham)&&a(f,"sham",!0),o(n,l,f,e)}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(40),i=n(140),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},function(e,t,n){var r=n(40),i=n(141),a=n(101),o=n(208),s=n(401),u=n(524),c=u.get,l=u.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var u=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||i(n,"name",t),l(n).source=d.join("string"==typeof t?t:"")),e!==r?(u?!f&&e[t]&&(c=!0):delete e[t],c?e[t]=n:i(e,t,n)):c?e[t]=n:o(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},function(e,t,n){var r,i,a,o=n(525),s=n(40),u=n(140),c=n(141),l=n(101),d=n(526),f=n(403),h=s.WeakMap;if(o){var p=new h,m=p.get,_=p.has,y=p.set;r=function(e,t){return y.call(p,e,t),t},i=function(e){return m.call(p,e)||{}},a=function(e){return _.call(p,e)}}else{var v=d("state");f[v]=!0,r=function(e,t){return c(e,v,t),t},i=function(e){return l(e,v)?e[v]:{}},a=function(e){return l(e,v)}}e.exports={set:r,get:i,has:a,enforce:function(e){return a(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(40),i=n(401),a=r.WeakMap;e.exports="function"==typeof a&&/native code/.test(i(a))},function(e,t,n){var r=n(527),i=n(529),a=r("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},function(e,t,n){var r=n(528),i=n(402);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!1},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){var r=n(101),i=n(531),a=n(392),o=n(399);e.exports=function(e,t){for(var n=i(t),s=o.f,u=a.f,c=0;c<n.length;c++){var l=n[c];r(e,l)||s(e,l,u(t,l))}}},function(e,t,n){var r=n(532),i=n(534),a=n(407),o=n(400);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(o(e)),n=a.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(533),i=n(40),a=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e])||a(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t,n){var r=n(40);e.exports=r},function(e,t,n){var r=n(404),i=n(406).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(207),i=n(536),a=n(537),o=function(e){return function(t,n,o){var s,u=r(t),c=i(u.length),l=a(o,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,n){var r=n(405),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(405),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},function(e,t,n){var r=n(100),i=/#|\.prototype\./,a=function(e,t){var n=s[o(e)];return n==c||n!=u&&("function"==typeof t?r(t):!!t)},o=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},function(e,t,n){"use strict";var r=n(99),i=n(100),a=n(540),o=n(407),s=n(393),u=n(541),c=n(395),l=Object.assign,d=Object.defineProperty;e.exports=!l||i((function(){if(r&&1!==l({b:1},l(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||"abcdefghijklmnopqrst"!=a(l({},t)).join("")}))?function(e,t){for(var n=u(e),i=arguments.length,l=1,d=o.f,f=s.f;i>l;)for(var h,p=c(arguments[l++]),m=d?a(p).concat(d(p)):a(p),_=m.length,y=0;_>y;)h=m[y++],r&&!f.call(p,h)||(n[h]=p[h]);return n}:l},function(e,t,n){var r=n(404),i=n(406);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(396);e.exports=function(e){return Object(r(e))}},function(e,t,n){e.exports=n(543)},function(e,t,n){"use strict";var r=n(23),i=n(408),a=n(544),o=n(414);function s(e){var t=new a(e),n=i(a.prototype.request,t);return r.extend(n,a.prototype,t),r.extend(n,t),n}var u=s(n(411));u.Axios=a,u.create=function(e){return s(o(u.defaults,e))},u.Cancel=n(415),u.CancelToken=n(557),u.isCancel=n(410),u.all=function(e){return Promise.all(e)},u.spread=n(558),e.exports=u,e.exports.default=u},function(e,t,n){"use strict";var r=n(23),i=n(409),a=n(545),o=n(546),s=n(414);function u(e){this.defaults=e,this.interceptors={request:new a,response:new a}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[o,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},u.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,i){return this.request(r.merge(i||{},{method:e,url:t,data:n}))}})),e.exports=u},function(e,t,n){"use strict";var r=n(23);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";var r=n(23),i=n(547),a=n(410),o=n(411);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(23);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";var r=n(23);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(413);e.exports=function(e,t,n){var i=n.config.validateStatus;!i||i(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(552),i=n(553);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(23),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,o={};return e?(r.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(o[t]&&i.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},function(e,t,n){"use strict";var r=n(23);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(23);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,a,o){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(415);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";n(148),Object.defineProperty(t,"__esModule",{value:!0}),t.getRequestToken=function(){return a},t.onRequestTokenUpdate=function(e){o.push(e)};var r=n(55),i=document.getElementsByTagName("head")[0],a=i?i.getAttribute("data-requesttoken"):null,o=[];(0,r.subscribe)("csrf-token-update",(function(e){a=e.token,o.forEach((function(t){try{t(e.token)}catch(e){console.error("error updating CSRF token observer",e)}}))}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCurrentUser=function(){if(null===i)return null;return{uid:i,displayName:o}};var r=document.getElementsByTagName("head")[0],i=r?r.getAttribute("data-user"):null,a=document.getElementsByTagName("head")[0],o=a?a.getAttribute("data-user-displayname"):null},,,,function(e,t,n){var r,i;(i=function(){"use strict";var e={DAY:864e5,HOUR:36e5,MINUTE:6e4,SECOND:1e3,BASELINE_YEAR:2014,MAX_SCORE:864e6,AMBIGUITIES:{"America/Denver":["America/Mazatlan"],"America/Chicago":["America/Mexico_City"],"America/Asuncion":["America/Campo_Grande","America/Santiago"],"America/Montevideo":["America/Sao_Paulo","America/Santiago"],"Asia/Beirut":["Asia/Amman","Asia/Jerusalem","Europe/Helsinki","Asia/Damascus","Africa/Cairo","Asia/Gaza","Europe/Minsk","Africa/Windhoek"],"Pacific/Auckland":["Pacific/Fiji"],"America/Los_Angeles":["America/Santa_Isabel"],"America/New_York":["America/Havana"],"America/Halifax":["America/Goose_Bay"],"America/Godthab":["America/Miquelon"],"Asia/Dubai":["Asia/Yerevan"],"Asia/Jakarta":["Asia/Krasnoyarsk"],"Asia/Shanghai":["Asia/Irkutsk","Australia/Perth"],"Australia/Sydney":["Australia/Lord_Howe"],"Asia/Tokyo":["Asia/Yakutsk"],"Asia/Dhaka":["Asia/Omsk"],"Asia/Baku":["Asia/Yerevan"],"Australia/Brisbane":["Asia/Vladivostok"],"Pacific/Noumea":["Asia/Vladivostok"],"Pacific/Majuro":["Asia/Kamchatka","Pacific/Fiji"],"Pacific/Tongatapu":["Pacific/Apia"],"Asia/Baghdad":["Europe/Minsk","Europe/Moscow"],"Asia/Karachi":["Asia/Yekaterinburg"],"Africa/Johannesburg":["Asia/Gaza","Africa/Cairo"]}},t=function(e){var t=-e.getTimezoneOffset();return null!==t?t:0},n=function(){for(var n=[],r=0;r<=11;r++)for(var i=1;i<=28;i++){var a=t(new Date(e.BASELINE_YEAR,r,i));n?n&&n[n.length-1]!==a&&n.push(a):n.push()}return n},r=function(){var e=0,t=n();return t.length>1&&(e=t[0]-t[1]),t.length>3?t[0]+",1,weird":e<0?t[0]+",1":e>0?t[1]+",1,s":t[0]+",0"},a=function(e){for(var t=new Date(e,0,1,0,0,1,0).getTime(),n=new Date(e,12,31,23,59,59).getTime(),r=t,i=new Date(r).getTimezoneOffset(),a=null,s=null;r<n-864e5;){var u=new Date(r),c=u.getTimezoneOffset();c!==i&&(c<i&&(a=u),c>i&&(s=u),i=c),r+=864e5}return!(!a||!s)&&{s:o(a).getTime(),e:o(s).getTime()}},o=function t(n,r,i){void 0===r&&(r=e.DAY,i=e.HOUR);for(var a=new Date(n.getTime()-r).getTime(),o=n.getTime()+r,s=new Date(a).getTimezoneOffset(),u=a,c=null;u<o-i;){var l=new Date(u);if(l.getTimezoneOffset()!==s){c=l;break}u+=i}return r===e.DAY?t(c,e.HOUR,e.MINUTE):r===e.HOUR?t(c,e.MINUTE,e.SECOND):c},s=function(t,n){for(var r=function(r){for(var i=0,a=0;a<t.length;a++)if(r.rules[a]&&t[a]){if(!(t[a].s>=r.rules[a].s&&t[a].e<=r.rules[a].e)){i="N/A";break}if(i=0,i+=Math.abs(t[a].s-r.rules[a].s),(i+=Math.abs(r.rules[a].e-t[a].e))>e.MAX_SCORE){i="N/A";break}}return function(e,t,n,r){if("N/A"!==n)return n;if("Asia/Beirut"===t){if("Africa/Cairo"===r.name&&13983768e5===e[6].s&&14116788e5===e[6].e)return 0;if("Asia/Jerusalem"===r.name&&13959648e5===e[6].s&&14118588e5===e[6].e)return 0}else if("America/Santiago"===t){if("America/Asuncion"===r.name&&14124816e5===e[6].s&&1397358e6===e[6].e)return 0;if("America/Campo_Grande"===r.name&&14136912e5===e[6].s&&13925196e5===e[6].e)return 0}else if("America/Montevideo"===t){if("America/Sao_Paulo"===r.name&&14136876e5===e[6].s&&1392516e6===e[6].e)return 0}else if("Pacific/Auckland"===t&&"Pacific/Fiji"===r.name&&14142456e5===e[6].s&&13961016e5===e[6].e)return 0;return n}(t,n,i,r)},a={},o=i.olson.dst_rules.zones,s=o.length,u=e.AMBIGUITIES[n],c=0;c<s;c++){var l=o[c],d=r(o[c]);"N/A"!==d&&(a[l.name]=d)}for(var f in a)if(a.hasOwnProperty(f))for(var h=0;h<u.length;h++)if(u[h]===f)return f;return n},u=function(e){var t=function(){for(var e=[],t=0;t<i.olson.dst_rules.years.length;t++){var n=a(i.olson.dst_rules.years[t]);e.push(n)}return e}();return function(e){for(var t=0;t<e.length;t++)if(!1!==e[t])return!0;return!1}(t)?s(t,e):e};return{determine:function(t){var a=!1,o=r();return(t||void 0===t)&&(a=function(){var e,t;if(Intl&&"undefined"!=typeof Intl&&void 0!==Intl.DateTimeFormat&&void 0!==(e=Intl.DateTimeFormat())&&void 0!==e.resolvedOptions)return(t=e.resolvedOptions().timeZone)&&(t.indexOf("/")>-1||"UTC"===t)?t:void 0}()),a||(a=i.olson.timezones[o],void 0!==e.AMBIGUITIES[a]&&(a=u(a))),{name:function(){return a},using_intl:t||void 0===t,needle:o,offsets:n()}}}}()).olson=i.olson||{},i.olson.timezones={"-720,0":"Etc/GMT+12","-660,0":"Pacific/Pago_Pago","-660,1,s":"Pacific/Apia","-600,1":"America/Adak","-600,0":"Pacific/Honolulu","-570,0":"Pacific/Marquesas","-540,0":"Pacific/Gambier","-540,1":"America/Anchorage","-480,1":"America/Los_Angeles","-480,0":"Pacific/Pitcairn","-420,0":"America/Phoenix","-420,1":"America/Denver","-360,0":"America/Guatemala","-360,1":"America/Chicago","-360,1,s":"Pacific/Easter","-300,0":"America/Bogota","-300,1":"America/New_York","-270,0":"America/Caracas","-240,1":"America/Halifax","-240,0":"America/Santo_Domingo","-240,1,s":"America/Asuncion","-210,1":"America/St_Johns","-180,1":"America/Godthab","-180,0":"America/Buenos_Aires","-180,1,s":"America/Montevideo","-120,0":"America/Noronha","-120,1":"America/Noronha","-60,1":"Atlantic/Azores","-60,0":"Atlantic/Cape_Verde","0,0":"UTC","0,1":"Europe/London","0,1,weird":"Africa/Casablanca","60,1":"Europe/Berlin","60,0":"Africa/Lagos","60,1,weird":"Africa/Casablanca","120,1":"Asia/Beirut","120,1,weird":"Africa/Cairo","120,0":"Africa/Johannesburg","180,0":"Asia/Baghdad","180,1":"Europe/Moscow","210,1":"Asia/Tehran","240,0":"Asia/Dubai","240,1":"Asia/Baku","270,0":"Asia/Kabul","300,1":"Asia/Yekaterinburg","300,0":"Asia/Karachi","330,0":"Asia/Calcutta","345,0":"Asia/Katmandu","360,0":"Asia/Dhaka","360,1":"Asia/Omsk","390,0":"Asia/Rangoon","420,1":"Asia/Krasnoyarsk","420,0":"Asia/Jakarta","480,0":"Asia/Shanghai","480,1":"Asia/Irkutsk","525,0":"Australia/Eucla","525,1,s":"Australia/Eucla","540,1":"Asia/Yakutsk","540,0":"Asia/Tokyo","570,0":"Australia/Darwin","570,1,s":"Australia/Adelaide","600,0":"Australia/Brisbane","600,1":"Asia/Vladivostok","600,1,s":"Australia/Sydney","630,1,s":"Australia/Lord_Howe","660,1":"Asia/Kamchatka","660,0":"Pacific/Noumea","690,0":"Pacific/Norfolk","720,1,s":"Pacific/Auckland","720,0":"Pacific/Majuro","765,1,s":"Pacific/Chatham","780,0":"Pacific/Tongatapu","780,1,s":"Pacific/Apia","840,0":"Pacific/Kiritimati"},i.olson.dst_rules={years:[2008,2009,2010,2011,2012,2013,2014],zones:[{name:"Africa/Cairo",rules:[{e:12199572e5,s:12090744e5},{e:1250802e6,s:1240524e6},{e:12858804e5,s:12840696e5},!1,!1,!1,{e:14116788e5,s:1406844e6}]},{name:"America/Asuncion",rules:[{e:12050316e5,s:12243888e5},{e:12364812e5,s:12558384e5},{e:12709548e5,s:12860784e5},{e:13024044e5,s:1317528e6},{e:1333854e6,s:13495824e5},{e:1364094e6,s:1381032e6},{e:13955436e5,s:14124816e5}]},{name:"America/Campo_Grande",rules:[{e:12032172e5,s:12243888e5},{e:12346668e5,s:12558384e5},{e:12667212e5,s:1287288e6},{e:12981708e5,s:13187376e5},{e:13302252e5,s:1350792e6},{e:136107e7,s:13822416e5},{e:13925196e5,s:14136912e5}]},{name:"America/Goose_Bay",rules:[{e:122559486e4,s:120503526e4},{e:125704446e4,s:123648486e4},{e:128909886e4,s:126853926e4},{e:13205556e5,s:129998886e4},{e:13520052e5,s:13314456e5},{e:13834548e5,s:13628952e5},{e:14149044e5,s:13943448e5}]},{name:"America/Havana",rules:[{e:12249972e5,s:12056436e5},{e:12564468e5,s:12364884e5},{e:12885012e5,s:12685428e5},{e:13211604e5,s:13005972e5},{e:13520052e5,s:13332564e5},{e:13834548e5,s:13628916e5},{e:14149044e5,s:13943412e5}]},{name:"America/Mazatlan",rules:[{e:1225008e6,s:12074724e5},{e:12564576e5,s:1238922e6},{e:1288512e6,s:12703716e5},{e:13199616e5,s:13018212e5},{e:13514112e5,s:13332708e5},{e:13828608e5,s:13653252e5},{e:14143104e5,s:13967748e5}]},{name:"America/Mexico_City",rules:[{e:12250044e5,s:12074688e5},{e:1256454e6,s:12389184e5},{e:12885084e5,s:1270368e6},{e:1319958e6,s:13018176e5},{e:13514076e5,s:13332672e5},{e:13828572e5,s:13653216e5},{e:14143068e5,s:13967712e5}]},{name:"America/Miquelon",rules:[{e:12255984e5,s:12050388e5},{e:1257048e6,s:12364884e5},{e:12891024e5,s:12685428e5},{e:1320552e6,s:12999924e5},{e:13520016e5,s:1331442e6},{e:13834512e5,s:13628916e5},{e:14149008e5,s:13943412e5}]},{name:"America/Santa_Isabel",rules:[{e:12250116e5,s:1207476e6},{e:12564612e5,s:12389256e5},{e:12891204e5,s:12685608e5},{e:132057e7,s:13000104e5},{e:13520196e5,s:133146e7},{e:13834692e5,s:13629096e5},{e:14149188e5,s:13943592e5}]},{name:"America/Santiago",rules:[{e:1206846e6,s:1223784e6},{e:1237086e6,s:12552336e5},{e:127035e7,s:12866832e5},{e:13048236e5,s:13138992e5},{e:13356684e5,s:13465584e5},{e:1367118e6,s:13786128e5},{e:13985676e5,s:14100624e5}]},{name:"America/Sao_Paulo",rules:[{e:12032136e5,s:12243852e5},{e:12346632e5,s:12558348e5},{e:12667176e5,s:12872844e5},{e:12981672e5,s:1318734e6},{e:13302216e5,s:13507884e5},{e:13610664e5,s:1382238e6},{e:1392516e6,s:14136876e5}]},{name:"Asia/Amman",rules:[{e:1225404e6,s:12066552e5},{e:12568536e5,s:12381048e5},{e:12883032e5,s:12695544e5},{e:13197528e5,s:13016088e5},!1,!1,{e:14147064e5,s:13959576e5}]},{name:"Asia/Damascus",rules:[{e:12254868e5,s:120726e7},{e:125685e7,s:12381048e5},{e:12882996e5,s:12701592e5},{e:13197492e5,s:13016088e5},{e:13511988e5,s:13330584e5},{e:13826484e5,s:1364508e6},{e:14147028e5,s:13959576e5}]},{name:"Asia/Dubai",rules:[!1,!1,!1,!1,!1,!1,!1]},{name:"Asia/Gaza",rules:[{e:12199572e5,s:12066552e5},{e:12520152e5,s:12381048e5},{e:1281474e6,s:126964086e4},{e:1312146e6,s:130160886e4},{e:13481784e5,s:13330584e5},{e:13802292e5,s:1364508e6},{e:1414098e6,s:13959576e5}]},{name:"Asia/Irkutsk",rules:[{e:12249576e5,s:12068136e5},{e:12564072e5,s:12382632e5},{e:12884616e5,s:12697128e5},!1,!1,!1,!1]},{name:"Asia/Jerusalem",rules:[{e:12231612e5,s:12066624e5},{e:1254006e6,s:1238112e6},{e:1284246e6,s:12695616e5},{e:131751e7,s:1301616e6},{e:13483548e5,s:13330656e5},{e:13828284e5,s:13645152e5},{e:1414278e6,s:13959648e5}]},{name:"Asia/Kamchatka",rules:[{e:12249432e5,s:12067992e5},{e:12563928e5,s:12382488e5},{e:12884508e5,s:12696984e5},!1,!1,!1,!1]},{name:"Asia/Krasnoyarsk",rules:[{e:12249612e5,s:12068172e5},{e:12564108e5,s:12382668e5},{e:12884652e5,s:12697164e5},!1,!1,!1,!1]},{name:"Asia/Omsk",rules:[{e:12249648e5,s:12068208e5},{e:12564144e5,s:12382704e5},{e:12884688e5,s:126972e7},!1,!1,!1,!1]},{name:"Asia/Vladivostok",rules:[{e:12249504e5,s:12068064e5},{e:12564e8,s:1238256e6},{e:12884544e5,s:12697056e5},!1,!1,!1,!1]},{name:"Asia/Yakutsk",rules:[{e:1224954e6,s:120681e7},{e:12564036e5,s:12382596e5},{e:1288458e6,s:12697092e5},!1,!1,!1,!1]},{name:"Asia/Yekaterinburg",rules:[{e:12249684e5,s:12068244e5},{e:1256418e6,s:1238274e6},{e:12884724e5,s:12697236e5},!1,!1,!1,!1]},{name:"Asia/Yerevan",rules:[{e:1224972e6,s:1206828e6},{e:12564216e5,s:12382776e5},{e:1288476e6,s:12697272e5},{e:13199256e5,s:13011768e5},!1,!1,!1]},{name:"Australia/Lord_Howe",rules:[{e:12074076e5,s:12231342e5},{e:12388572e5,s:12545838e5},{e:12703068e5,s:12860334e5},{e:13017564e5,s:1317483e6},{e:1333206e6,s:13495374e5},{e:13652604e5,s:1380987e6},{e:139671e7,s:14124366e5}]},{name:"Australia/Perth",rules:[{e:12068136e5,s:12249576e5},!1,!1,!1,!1,!1,!1]},{name:"Europe/Helsinki",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]},{name:"Europe/Minsk",rules:[{e:12249792e5,s:12068352e5},{e:12564288e5,s:12382848e5},{e:12884832e5,s:12697344e5},!1,!1,!1,!1]},{name:"Europe/Moscow",rules:[{e:12249756e5,s:12068316e5},{e:12564252e5,s:12382812e5},{e:12884796e5,s:12697308e5},!1,!1,!1,!1]},{name:"Pacific/Apia",rules:[!1,!1,!1,{e:13017528e5,s:13168728e5},{e:13332024e5,s:13489272e5},{e:13652568e5,s:13803768e5},{e:13967064e5,s:14118264e5}]},{name:"Pacific/Fiji",rules:[!1,!1,{e:12696984e5,s:12878424e5},{e:13271544e5,s:1319292e6},{e:1358604e6,s:13507416e5},{e:139005e7,s:1382796e6},{e:14215032e5,s:14148504e5}]},{name:"Europe/London",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]},{name:"Africa/Windhoek",rules:[{e:12207492e5,s:120744e7},{e:12521988e5,s:12388896e5},{e:12836484e5,s:12703392e5},{e:1315098e6,s:13017888e5},{e:13465476e5,s:13332384e5},{e:13779972e5,s:13652928e5},{e:14100516e5,s:13967424e5}]}]},void 0!==e.exports?e.exports=i:null!==n(576)&&null!=n(577)?void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r):window.jstz=i},,,,,,,function(e,t,n){var r=n(657);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(103).default)("48c4ac20",r,!0,{})},function(e,t,n){var r=n(659);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(103).default)("354c4fe7",r,!0,{})},function(e,t,n){var r=n(661);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(103).default)("901db158",r,!0,{})},,,function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new a(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(579),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(24))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,a,o,s,u=1,c={},l=!1,d=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){p(e.data)},r=function(e){a.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(i=d.documentElement,r=function(e){var t=d.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(p,0,e)}:(o="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&p(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(o+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return c[u]=i,r(u),u++},f.clearImmediate=h}function h(e){delete c[e]}function p(e){if(l)setTimeout(p,0,e);else{var t=c[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{h(e),l=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(24),n(126))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(653),i=n(654),a=n(655);function o(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function s(e){var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function u(e,t){var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=i({arrayFormat:"none"},t)),r=Object.create(null);return"string"!=typeof e?r:(e=e.trim().replace(/^[?#&]/,""))?(e.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("="),i=t.shift(),o=t.length>0?t.join("="):void 0;o=void 0===o?null:a(o),n(a(i),o,r)})),Object.keys(r).sort().reduce((function(e,t){var n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return t[e]})):t}(n):e[t]=n,e}),Object.create(null))):r}t.extract=s,t.parse=u,t.stringify=function(e,t){!1===(t=i({encode:!0,strict:!0,arrayFormat:"none"},t)).sort&&(t.sort=function(){});var n=function(e){switch(e.arrayFormat){case"index":return function(t,n,r){return null===n?[o(t,e),"[",r,"]"].join(""):[o(t,e),"[",o(r,e),"]=",o(n,e)].join("")};case"bracket":return function(t,n){return null===n?o(t,e):[o(t,e),"[]=",o(n,e)].join("")};default:return function(t,n){return null===n?o(t,e):[o(t,e),"=",o(n,e)].join("")}}}(t);return e?Object.keys(e).sort(t.sort).map((function(r){var i=e[r];if(void 0===i)return"";if(null===i)return o(r,t);if(Array.isArray(i)){var a=[];return i.slice().forEach((function(e){void 0!==e&&a.push(n(r,e,a.length))})),a.join("&")}return o(r,t)+"="+o(i,t)})).filter((function(e){return e.length>0})).join("&"):""},t.parseUrl=function(e,t){return{url:e.split("?")[0]||"",query:u(s(e),t)}}},,,,,function(e,t,n){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}},function(e,t,n){"use strict"; +var r,i;r=this,i=function(e){var t=function(e){return new t.lib.init(e)};function n(e,t){return!(!e||"string"!=typeof t||!(e.className&&e.className.trim().split(/\s+/gi).indexOf(t)>-1))}return t.lib=t.prototype={toastify:"1.7.0",constructor:t,init:function(e){return e||(e={}),this.options={},this.toastElement=null,this.options.text=e.text||"Hi there!",this.options.duration=0===e.duration?0:e.duration||3e3,this.options.selector=e.selector,this.options.callback=e.callback||function(){},this.options.destination=e.destination,this.options.newWindow=e.newWindow||!1,this.options.close=e.close||!1,this.options.gravity="bottom"===e.gravity?"toastify-bottom":"toastify-top",this.options.positionLeft=e.positionLeft||!1,this.options.position=e.position||"",this.options.backgroundColor=e.backgroundColor,this.options.avatar=e.avatar||"",this.options.className=e.className||"",this.options.stopOnFocus=void 0===e.stopOnFocus||e.stopOnFocus,this.options.onClick=e.onClick,this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var e=document.createElement("div");if(e.className="toastify on "+this.options.className,this.options.position?e.className+=" toastify-"+this.options.position:!0===this.options.positionLeft?(e.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):e.className+=" toastify-right",e.className+=" "+this.options.gravity,this.options.backgroundColor&&(e.style.background=this.options.backgroundColor),e.innerHTML=this.options.text,""!==this.options.avatar){var t=document.createElement("img");t.src=this.options.avatar,t.className="toastify-avatar","left"==this.options.position||!0===this.options.positionLeft?e.appendChild(t):e.insertAdjacentElement("beforeend",t)}if(!0===this.options.close){var n=document.createElement("span");n.innerHTML="✖",n.className="toast-close",n.addEventListener("click",function(e){e.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}.bind(this));var r=window.innerWidth>0?window.innerWidth:screen.width;("left"==this.options.position||!0===this.options.positionLeft)&&r>360?e.insertAdjacentElement("afterbegin",n):e.appendChild(n)}if(this.options.stopOnFocus&&this.options.duration>0){const t=this;e.addEventListener("mouseover",(function(t){window.clearTimeout(e.timeOutValue)})),e.addEventListener("mouseleave",(function(){e.timeOutValue=window.setTimeout((function(){t.removeElement(e)}),t.options.duration)}))}return void 0!==this.options.destination&&e.addEventListener("click",function(e){e.stopPropagation(),!0===this.options.newWindow?window.open(this.options.destination,"_blank"):window.location=this.options.destination}.bind(this)),"function"==typeof this.options.onClick&&void 0===this.options.destination&&e.addEventListener("click",function(e){e.stopPropagation(),this.options.onClick()}.bind(this)),e},showToast:function(){var e;if(this.toastElement=this.buildToast(),!(e=void 0===this.options.selector?document.body:document.getElementById(this.options.selector)))throw"Root element is not defined";return e.insertBefore(this.toastElement,e.firstChild),t.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(function(){this.removeElement(this.toastElement)}.bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(e){e.className=e.className.replace(" on",""),window.setTimeout(function(){e.parentNode&&e.parentNode.removeChild(e),this.options.callback.call(e),t.reposition()}.bind(this),400)}},t.reposition=function(){for(var e,t={top:15,bottom:15},r={top:15,bottom:15},i={top:15,bottom:15},a=document.getElementsByClassName("toastify"),o=0;o<a.length;o++){e=!0===n(a[o],"toastify-top")?"toastify-top":"toastify-bottom";var s=a[o].offsetHeight;e=e.substr(9,e.length-1),(window.innerWidth>0?window.innerWidth:screen.width)<=360?(a[o].style[e]=i[e]+"px",i[e]+=s+15):!0===n(a[o],"toastify-left")?(a[o].style[e]=t[e]+"px",t[e]+=s+15):(a[o].style[e]=r[e]+"px",r[e]+=s+15)}return this},t.lib.init.prototype=t.lib,t},e.exports?e.exports=i():r.Toastify=i()},function(e,t,n){var r=n(93);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var a,o=e.lambda,s=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<img src="'+s(o(null!=(a=null!=t?u(t,"contact"):t)?u(a,"avatar"):a,t))+'&size=32" class="avatar" srcset="'+s(o(null!=(a=null!=t?u(t,"contact"):t)?u(a,"avatar"):a,t))+"&size=32 1x, "+s(o(null!=(a=null!=t?u(t,"contact"):t)?u(a,"avatar"):a,t))+"&size=64 2x, "+s(o(null!=(a=null!=t?u(t,"contact"):t)?u(a,"avatar"):a,t))+'&size=128 4x" alt="">\n'},3:function(e,t,n,r,i){return'<div class="avatar"></div>\n'},5:function(e,t,n,r,i){var a,o=e.lambda,s=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a class="top-action" href="'+s(o(null!=(a=null!=(a=null!=t?u(t,"contact"):t)?u(a,"topAction"):a)?u(a,"hyperlink"):a,t))+'" title="'+s(o(null!=(a=null!=(a=null!=t?u(t,"contact"):t)?u(a,"topAction"):a)?u(a,"title"):a,t))+'">\n\t<img src="'+s(o(null!=(a=null!=(a=null!=t?u(t,"contact"):t)?u(a,"topAction"):a)?u(a,"icon"):a,t))+'" alt="'+s(o(null!=(a=null!=(a=null!=t?u(t,"contact"):t)?u(a,"topAction"):a)?u(a,"title"):a,t))+'">\n</a>\n'},7:function(e,t,n,r,i){var a,o=e.lambda,s=e.escapeExpression,u=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<a class="second-action" href="'+s(o(null!=(a=null!=(a=null!=t?u(t,"contact"):t)?u(a,"secondAction"):a)?u(a,"hyperlink"):a,t))+'" title="'+s(o(null!=(a=null!=(a=null!=t?u(t,"contact"):t)?u(a,"secondAction"):a)?u(a,"title"):a,t))+'">\n\t<img src="'+s(o(null!=(a=null!=(a=null!=t?u(t,"contact"):t)?u(a,"secondAction"):a)?u(a,"icon"):a,t))+'" alt="'+s(o(null!=(a=null!=(a=null!=t?u(t,"contact"):t)?u(a,"secondAction"):a)?u(a,"title"):a,t))+'">\n</a>\n'},9:function(e,t,n,r,i){var a,o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'\t<span class="other-actions icon-more"></span>\n\t<div class="menu popovermenu">\n\t\t<ul>\n'+(null!=(a=o(n,"each").call(null!=t?t:e.nullContext||{},null!=(a=null!=t?o(t,"contact"):t)?o(a,"actions"):a,{name:"each",hash:{},fn:e.program(10,i,0),inverse:e.noop,data:i,loc:{start:{line:24,column:3},end:{line:31,column:12}}}))?a:"")+"\t\t</ul>\n\t</div>\n"},10:function(e,t,n,r,i){var a,o=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'\t\t\t<li>\n\t\t\t\t<a href="'+u("function"==typeof(a=null!=(a=c(n,"hyperlink")||(null!=t?c(t,"hyperlink"):t))?a:s)?a.call(o,{name:"hyperlink",hash:{},data:i,loc:{start:{line:26,column:13},end:{line:26,column:26}}}):a)+'">\n\t\t\t\t\t<img src="'+u("function"==typeof(a=null!=(a=c(n,"icon")||(null!=t?c(t,"icon"):t))?a:s)?a.call(o,{name:"icon",hash:{},data:i,loc:{start:{line:27,column:15},end:{line:27,column:23}}}):a)+'" alt="">\n\t\t\t\t\t<span>'+u("function"==typeof(a=null!=(a=c(n,"title")||(null!=t?c(t,"title"):t))?a:s)?a.call(o,{name:"title",hash:{},data:i,loc:{start:{line:28,column:11},end:{line:28,column:20}}}):a)+"</span>\n\t\t\t\t</a>\n\t\t\t</li>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var a,o=null!=t?t:e.nullContext||{},s=e.lambda,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(a=c(n,"if").call(o,null!=(a=null!=t?c(t,"contact"):t)?c(a,"avatar"):a,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i,loc:{start:{line:1,column:0},end:{line:5,column:7}}}))?a:"")+'<div class="body">\n\t<div class="full-name">'+u(s(null!=(a=null!=t?c(t,"contact"):t)?c(a,"fullName"):a,t))+'</div>\n\t<div class="last-message">'+u(s(null!=(a=null!=t?c(t,"contact"):t)?c(a,"lastMessage"):a,t))+"</div>\n</div>\n"+(null!=(a=c(n,"if").call(o,null!=(a=null!=t?c(t,"contact"):t)?c(a,"topAction"):a,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i,loc:{start:{line:10,column:0},end:{line:14,column:7}}}))?a:"")+(null!=(a=c(n,"if").call(o,null!=(a=null!=t?c(t,"contact"):t)?c(a,"hasTwoActions"):a,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i,loc:{start:{line:15,column:0},end:{line:19,column:7}}}))?a:"")+(null!=(a=c(n,"if").call(o,null!=(a=null!=t?c(t,"contact"):t)?c(a,"hasManyActions"):a,{name:"if",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i,loc:{start:{line:20,column:0},end:{line:34,column:7}}}))?a:"")},useData:!0})},function(e,t,n){"use strict";t.__esModule=!0;var r=n(33);t.default=function(e){e.registerHelper("blockHelperMissing",(function(t,n){var i=n.inverse,a=n.fn;if(!0===t)return a(this);if(!1===t||null==t)return i(this);if(r.isArray(t))return t.length>0?(n.ids&&(n.ids=[n.name]),e.helpers.each(t,n)):i(this);if(n.data&&n.ids){var o=r.createFrame(n.data);o.contextPath=r.appendContextPath(n.data.contextPath,n.name),n={data:o}}return a(t,n)}))},e.exports=t.default},function(e,t,n){"use strict";(function(r){t.__esModule=!0;var i,a=n(33),o=n(60),s=(i=o)&&i.__esModule?i:{default:i};t.default=function(e){e.registerHelper("each",(function(e,t){if(!t)throw new s.default("Must pass iterator to #each");var n,i=t.fn,o=t.inverse,u=0,c="",l=void 0,d=void 0;function f(t,n,r){l&&(l.key=t,l.index=n,l.first=0===n,l.last=!!r,d&&(l.contextPath=d+t)),c+=i(e[t],{data:l,blockParams:a.blockParams([e[t],t],[d+t,null])})}if(t.data&&t.ids&&(d=a.appendContextPath(t.data.contextPath,t.ids[0])+"."),a.isFunction(e)&&(e=e.call(this)),t.data&&(l=a.createFrame(t.data)),e&&"object"==typeof e)if(a.isArray(e))for(var h=e.length;u<h;u++)u in e&&f(u,u,u===e.length-1);else if(r.Symbol&&e[r.Symbol.iterator]){for(var p=[],m=e[r.Symbol.iterator](),_=m.next();!_.done;_=m.next())p.push(_.value);for(h=(e=p).length;u<h;u++)f(u,u,u===e.length-1)}else n=void 0,Object.keys(e).forEach((function(e){void 0!==n&&f(n,u-1),n=e,u++})),void 0!==n&&f(n,u-1,!0);return 0===u&&(c=o(this)),c}))},e.exports=t.default}).call(this,n(24))},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(60),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("helperMissing",(function(){if(1!==arguments.length)throw new a.default('Missing helper: "'+arguments[arguments.length-1].name+'"')}))},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(33),a=n(60),o=(r=a)&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("if",(function(e,t){if(2!=arguments.length)throw new o.default("#if requires exactly one argument");return i.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||i.isEmpty(e)?t.inverse(this):t.fn(this)})),e.registerHelper("unless",(function(t,n){if(2!=arguments.length)throw new o.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:n.inverse,inverse:n.fn,hash:n.hash})}))},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("log",(function(){for(var t=[void 0],n=arguments[arguments.length-1],r=0;r<arguments.length-1;r++)t.push(arguments[r]);var i=1;null!=n.hash.level?i=n.hash.level:n.data&&null!=n.data.level&&(i=n.data.level),t[0]=i,e.log.apply(e,t)}))},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){e.registerHelper("lookup",(function(e,t,n){return e?n.lookupProperty(e,t):e}))},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(33),a=n(60),o=(r=a)&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("with",(function(e,t){if(2!=arguments.length)throw new o.default("#with requires exactly one argument");i.isFunction(e)&&(e=e.call(this));var n=t.fn;if(i.isEmpty(e))return t.inverse(this);var r=t.data;return t.data&&t.ids&&((r=i.createFrame(t.data)).contextPath=i.appendContextPath(t.data.contextPath,t.ids[0])),n(e,{data:r,blockParams:i.blockParams([e],[r&&r.contextPath])})}))},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.registerDefaultDecorators=function(e){a.default(e)};var r,i=n(507),a=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(33);t.default=function(e){e.registerDecorator("inline",(function(e,t,n,i){var a=e;return t.partials||(t.partials={},a=function(i,a){var o=n.partials;n.partials=r.extend({},o,t.partials);var s=e(i,a);return n.partials=o,s}),t.partials[i.args[0]]=i.fn,a}))},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.createNewLookupObject=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.extend.apply(void 0,[Object.create(null)].concat(t))};var r=n(33)},function(e,t,n){"use strict";function r(e){this.string=e}t.__esModule=!0,r.prototype.toString=r.prototype.toHTML=function(){return""+this.string},t.default=r,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.checkRevision=function(e){var t=e&&e[0]||1,n=s.COMPILER_REVISION;if(t>=s.LAST_COMPATIBLE_COMPILER_REVISION&&t<=s.COMPILER_REVISION)return;if(t<s.LAST_COMPATIBLE_COMPILER_REVISION){var r=s.REVISION_CHANGES[n],i=s.REVISION_CHANGES[t];throw new o.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+i+").")}throw new o.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")},t.template=function(e,t){if(!t)throw new o.default("No environment passed to template");if(!e||!e.main)throw new o.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var n=e.compiler&&7===e.compiler[0];var r={strict:function(e,t,n){if(!e||!(t in e))throw new o.default('"'+t+'" not defined in '+e,{loc:n});return e[t]},lookupProperty:function(e,t){var n=e[t];return null==n||Object.prototype.hasOwnProperty.call(e,t)||l.resultIsAllowed(n,r.protoAccessControl,t)?n:void 0},lookup:function(e,t){for(var n=e.length,i=0;i<n;i++){if(null!=(e[i]&&r.lookupProperty(e[i],t)))return e[i][t]}},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:i.escapeExpression,invokePartial:function(n,r,a){a.hash&&(r=i.extend({},r,a.hash),a.ids&&(a.ids[0]=!0)),n=t.VM.resolvePartial.call(this,n,r,a);var s=i.extend({},a,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),u=t.VM.invokePartial.call(this,n,r,s);if(null==u&&t.compile&&(a.partials[a.name]=t.compile(n,e.compilerOptions,t),u=a.partials[a.name](r,s)),null!=u){if(a.indent){for(var c=u.split("\n"),l=0,d=c.length;l<d&&(c[l]||l+1!==d);l++)c[l]=a.indent+c[l];u=c.join("\n")}return u}throw new o.default("The partial "+a.name+" could not be compiled when running in runtime-only mode")},fn:function(t){var n=e[t];return n.decorator=e[t+"_d"],n},programs:[],program:function(e,t,n,r,i){var a=this.programs[e],o=this.fn(e);return t||i||r||n?a=d(this,e,o,t,n,r,i):a||(a=this.programs[e]=d(this,e,o)),a},data:function(e,t){for(;e&&t--;)e=e._parent;return e},mergeIfNeeded:function(e,t){var n=e||t;return e&&t&&e!==t&&(n=i.extend({},t,e)),n},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function a(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=n.data;a._setup(n),!n.partial&&e.useData&&(i=h(t,i));var o=void 0,s=e.useBlockParams?[]:void 0;function u(t){return""+e.main(r,t,r.helpers,r.partials,i,s,o)}return e.useDepths&&(o=n.depths?t!=n.depths[0]?[t].concat(n.depths):n.depths:[t]),(u=p(e.main,u,r,n.depths||[],i,s))(t,n)}return a.isTop=!0,a._setup=function(a){if(a.partial)r.protoAccessControl=a.protoAccessControl,r.helpers=a.helpers,r.partials=a.partials,r.decorators=a.decorators,r.hooks=a.hooks;else{var o=i.extend({},t.helpers,a.helpers);!function(e,t){Object.keys(e).forEach((function(n){var r=e[n];e[n]=function(e,t){var n=t.lookupProperty;return c.wrapHelper(e,(function(e){return i.extend({lookupProperty:n},e)}))}(r,t)}))}(o,r),r.helpers=o,e.usePartial&&(r.partials=r.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(r.decorators=i.extend({},t.decorators,a.decorators)),r.hooks={},r.protoAccessControl=l.createProtoAccessControl(a);var s=a.allowCallsToHelperMissing||n;u.moveHelperToHooks(r,"helperMissing",s),u.moveHelperToHooks(r,"blockHelperMissing",s)}},a._child=function(t,n,i,a){if(e.useBlockParams&&!i)throw new o.default("must pass block params");if(e.useDepths&&!a)throw new o.default("must pass parent depths");return d(r,t,e[t],n,0,i,a)},a},t.wrapProgram=d,t.resolvePartial=function(e,t,n){e?e.call||n.name||(n.name=e,e=n.partials[e]):e="@partial-block"===n.name?n.data["partial-block"]:n.partials[n.name];return e},t.invokePartial=function(e,t,n){var r=n.data&&n.data["partial-block"];n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var a=void 0;n.fn&&n.fn!==f&&function(){n.data=s.createFrame(n.data);var e=n.fn;a=n.data["partial-block"]=function(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return n.data=s.createFrame(n.data),n.data["partial-block"]=r,e(t,n)},e.partials&&(n.partials=i.extend({},n.partials,e.partials))}();void 0===e&&a&&(e=a);if(void 0===e)throw new o.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)},t.noop=f;var r,i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(33)),a=n(60),o=(r=a)&&r.__esModule?r:{default:r},s=n(261),u=n(262),c=n(511),l=n(264);function d(e,t,n,r,i,a,o){function s(t){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=o;return!o||t==o[0]||t===e.nullContext&&null===o[0]||(s=[t].concat(o)),n(e,t,e.helpers,e.partials,i.data||r,a&&[i.blockParams].concat(a),s)}return(s=p(n,s,e,o,r,a)).program=t,s.depth=o?o.length:0,s.blockParams=i||0,s}function f(){return""}function h(e,t){return t&&"root"in t||((t=t?s.createFrame(t):{}).root=e),t}function p(e,t,n,r,a,o){if(e.decorator){var s={};t=e.decorator(t,s,n,r&&r[0],a,o,r),i.extend(t,s)}return t}},function(e,t,n){"use strict";t.__esModule=!0,t.wrapHelper=function(e,t){if("function"!=typeof e)return e;return function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=t(n),e.apply(this,arguments)}}},function(e,t,n){"use strict";(function(n){t.__esModule=!0,t.default=function(e){var t=void 0!==n?n:window,r=t.Handlebars;e.noConflict=function(){return t.Handlebars===e&&(t.Handlebars=r),e}},e.exports=t.default}).call(this,n(24))},function(e,t,n){var r=n(93);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var a,o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="emptycontent">\n\t<div class="icon-loading"></div>\n\t<h2>'+e.escapeExpression("function"==typeof(a=null!=(a=o(n,"loadingText")||(null!=t?o(t,"loadingText"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"loadingText",hash:{},data:i,loc:{start:{line:3,column:5},end:{line:3,column:20}}}):a)+"</h2>\n</div>\n"},useData:!0})},function(e,t,n){var r=n(93);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var a,o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="emptycontent">\n\t<div class="icon-search"></div>\n\t<h2>'+e.escapeExpression("function"==typeof(a=null!=(a=o(n,"couldNotLoadText")||(null!=t?o(t,"couldNotLoadText"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"couldNotLoadText",hash:{},data:i,loc:{start:{line:3,column:5},end:{line:3,column:25}}}):a)+"</h2>\n</div>\n"},useData:!0})},function(e,t,n){var r=n(93);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var a,o=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<label class="hidden-visually" for="contactsmenu-search">'+u("function"==typeof(a=null!=(a=c(n,"searchContactsText")||(null!=t?c(t,"searchContactsText"):t))?a:s)?a.call(o,{name:"searchContactsText",hash:{},data:i,loc:{start:{line:1,column:57},end:{line:1,column:79}}}):a)+'</label>\n<input id="contactsmenu-search" type="search" placeholder="'+u("function"==typeof(a=null!=(a=c(n,"searchContactsText")||(null!=t?c(t,"searchContactsText"):t))?a:s)?a.call(o,{name:"searchContactsText",hash:{},data:i,loc:{start:{line:2,column:59},end:{line:2,column:81}}}):a)+'" value="'+u("function"==typeof(a=null!=(a=c(n,"searchTerm")||(null!=t?c(t,"searchTerm"):t))?a:s)?a.call(o,{name:"searchTerm",hash:{},data:i,loc:{start:{line:2,column:90},end:{line:2,column:104}}}):a)+'">\n<div class="content">\n</div>\n'},useData:!0})},function(e,t,n){var r=n(93);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var a,o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="emptycontent">\n\t<div class="icon-search"></div>\n\t<h2>'+e.escapeExpression("function"==typeof(a=null!=(a=o(n,"noContactsFoundText")||(null!=t?o(t,"noContactsFoundText"):t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"noContactsFoundText",hash:{},data:i,loc:{start:{line:4,column:5},end:{line:4,column:28}}}):a)+"</h2>\n</div>\n"},3:function(e,t,n,r,i){var a,o=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="footer"><a href="'+u("function"==typeof(a=null!=(a=c(n,"contactsAppURL")||(null!=t?c(t,"contactsAppURL"):t))?a:s)?a.call(o,{name:"contactsAppURL",hash:{},data:i,loc:{start:{line:9,column:29},end:{line:9,column:47}}}):a)+'">'+u("function"==typeof(a=null!=(a=c(n,"showAllContactsText")||(null!=t?c(t,"showAllContactsText"):t))?a:s)?a.call(o,{name:"showAllContactsText",hash:{},data:i,loc:{start:{line:9,column:49},end:{line:9,column:72}}}):a)+"</a></div>\n"},5:function(e,t,n,r,i){var a,o=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return null!=(a=o(n,"if").call(null!=t?t:e.nullContext||{},null!=t?o(t,"canInstallApp"):t,{name:"if",hash:{},fn:e.program(6,i,0),inverse:e.noop,data:i,loc:{start:{line:10,column:0},end:{line:12,column:0}}}))?a:""},6:function(e,t,n,r,i){var a,o=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u=e.escapeExpression,c=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return'<div class="footer"><a href="'+u("function"==typeof(a=null!=(a=c(n,"contactsAppMgmtURL")||(null!=t?c(t,"contactsAppMgmtURL"):t))?a:s)?a.call(o,{name:"contactsAppMgmtURL",hash:{},data:i,loc:{start:{line:11,column:29},end:{line:11,column:51}}}):a)+'">'+u("function"==typeof(a=null!=(a=c(n,"contactsAppMgmtText")||(null!=t?c(t,"contactsAppMgmtText"):t))?a:s)?a.call(o,{name:"contactsAppMgmtText",hash:{},data:i,loc:{start:{line:11,column:53},end:{line:11,column:76}}}):a)+"</a></div>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var a,o=null!=t?t:e.nullContext||{},s=e.lookupProperty||function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]};return(null!=(a=s(n,"unless").call(o,null!=(a=null!=t?s(t,"contacts"):t)?s(a,"length"):a,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i,loc:{start:{line:1,column:0},end:{line:6,column:11}}}))?a:"")+'<div id="contactsmenu-contacts"></div>\n'+(null!=(a=s(n,"if").call(o,null!=t?s(t,"contactsAppEnabled"):t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.program(5,i,0),data:i,loc:{start:{line:8,column:0},end:{line:12,column:7}}}))?a:"")},useData:!0})},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r={"./af":265,"./af.js":265,"./ar":266,"./ar-dz":267,"./ar-dz.js":267,"./ar-kw":268,"./ar-kw.js":268,"./ar-ly":269,"./ar-ly.js":269,"./ar-ma":270,"./ar-ma.js":270,"./ar-sa":271,"./ar-sa.js":271,"./ar-tn":272,"./ar-tn.js":272,"./ar.js":266,"./az":273,"./az.js":273,"./be":274,"./be.js":274,"./bg":275,"./bg.js":275,"./bm":276,"./bm.js":276,"./bn":277,"./bn.js":277,"./bo":278,"./bo.js":278,"./br":279,"./br.js":279,"./bs":280,"./bs.js":280,"./ca":281,"./ca.js":281,"./cs":282,"./cs.js":282,"./cv":283,"./cv.js":283,"./cy":284,"./cy.js":284,"./da":285,"./da.js":285,"./de":286,"./de-at":287,"./de-at.js":287,"./de-ch":288,"./de-ch.js":288,"./de.js":286,"./dv":289,"./dv.js":289,"./el":290,"./el.js":290,"./en-SG":291,"./en-SG.js":291,"./en-au":292,"./en-au.js":292,"./en-ca":293,"./en-ca.js":293,"./en-gb":294,"./en-gb.js":294,"./en-ie":295,"./en-ie.js":295,"./en-il":296,"./en-il.js":296,"./en-nz":297,"./en-nz.js":297,"./eo":298,"./eo.js":298,"./es":299,"./es-do":300,"./es-do.js":300,"./es-us":301,"./es-us.js":301,"./es.js":299,"./et":302,"./et.js":302,"./eu":303,"./eu.js":303,"./fa":304,"./fa.js":304,"./fi":305,"./fi.js":305,"./fo":306,"./fo.js":306,"./fr":307,"./fr-ca":308,"./fr-ca.js":308,"./fr-ch":309,"./fr-ch.js":309,"./fr.js":307,"./fy":310,"./fy.js":310,"./ga":311,"./ga.js":311,"./gd":312,"./gd.js":312,"./gl":313,"./gl.js":313,"./gom-latn":314,"./gom-latn.js":314,"./gu":315,"./gu.js":315,"./he":316,"./he.js":316,"./hi":317,"./hi.js":317,"./hr":318,"./hr.js":318,"./hu":319,"./hu.js":319,"./hy-am":320,"./hy-am.js":320,"./id":321,"./id.js":321,"./is":322,"./is.js":322,"./it":323,"./it-ch":324,"./it-ch.js":324,"./it.js":323,"./ja":325,"./ja.js":325,"./jv":326,"./jv.js":326,"./ka":327,"./ka.js":327,"./kk":328,"./kk.js":328,"./km":329,"./km.js":329,"./kn":330,"./kn.js":330,"./ko":331,"./ko.js":331,"./ku":332,"./ku.js":332,"./ky":333,"./ky.js":333,"./lb":334,"./lb.js":334,"./lo":335,"./lo.js":335,"./lt":336,"./lt.js":336,"./lv":337,"./lv.js":337,"./me":338,"./me.js":338,"./mi":339,"./mi.js":339,"./mk":340,"./mk.js":340,"./ml":341,"./ml.js":341,"./mn":342,"./mn.js":342,"./mr":343,"./mr.js":343,"./ms":344,"./ms-my":345,"./ms-my.js":345,"./ms.js":344,"./mt":346,"./mt.js":346,"./my":347,"./my.js":347,"./nb":348,"./nb.js":348,"./ne":349,"./ne.js":349,"./nl":350,"./nl-be":351,"./nl-be.js":351,"./nl.js":350,"./nn":352,"./nn.js":352,"./pa-in":353,"./pa-in.js":353,"./pl":354,"./pl.js":354,"./pt":355,"./pt-br":356,"./pt-br.js":356,"./pt.js":355,"./ro":357,"./ro.js":357,"./ru":358,"./ru.js":358,"./sd":359,"./sd.js":359,"./se":360,"./se.js":360,"./si":361,"./si.js":361,"./sk":362,"./sk.js":362,"./sl":363,"./sl.js":363,"./sq":364,"./sq.js":364,"./sr":365,"./sr-cyrl":366,"./sr-cyrl.js":366,"./sr.js":365,"./ss":367,"./ss.js":367,"./sv":368,"./sv.js":368,"./sw":369,"./sw.js":369,"./ta":370,"./ta.js":370,"./te":371,"./te.js":371,"./tet":372,"./tet.js":372,"./tg":373,"./tg.js":373,"./th":374,"./th.js":374,"./tl-ph":375,"./tl-ph.js":375,"./tlh":376,"./tlh.js":376,"./tr":377,"./tr.js":377,"./tzl":378,"./tzl.js":378,"./tzm":379,"./tzm-latn":380,"./tzm-latn.js":380,"./tzm.js":379,"./ug-cn":381,"./ug-cn.js":381,"./uk":382,"./uk.js":382,"./ur":383,"./ur.js":383,"./uz":384,"./uz-latn":385,"./uz-latn.js":385,"./uz.js":384,"./vi":386,"./vi.js":386,"./x-pseudo":387,"./x-pseudo.js":387,"./yo":388,"./yo.js":388,"./zh-cn":389,"./zh-cn.js":389,"./zh-hk":390,"./zh-hk.js":390,"./zh-tw":391,"./zh-tw.js":391};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=518},function(e,t,n){var r=n(520),i=n(539);r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(e,t,n){var r=n(40),i=n(392).f,a=n(141),o=n(523),s=n(208),u=n(530),c=n(538);e.exports=function(e,t){var n,l,d,f,h,p=e.target,m=e.global,_=e.stat;if(n=m?r:_?r[p]||s(p,{}):(r[p]||{}).prototype)for(l in t){if(f=t[l],d=e.noTargetGet?(h=i(n,l))&&h.value:n[l],!c(m?l:p+(_?".":"#")+l,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;u(f,d)}(e.sham||d&&d.sham)&&a(f,"sham",!0),o(n,l,f,e)}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(40),i=n(140),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},function(e,t,n){var r=n(40),i=n(141),a=n(101),o=n(208),s=n(401),u=n(524),c=u.get,l=u.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var u=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||i(n,"name",t),l(n).source=d.join("string"==typeof t?t:"")),e!==r?(u?!f&&e[t]&&(c=!0):delete e[t],c?e[t]=n:i(e,t,n)):c?e[t]=n:o(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},function(e,t,n){var r,i,a,o=n(525),s=n(40),u=n(140),c=n(141),l=n(101),d=n(526),f=n(403),h=s.WeakMap;if(o){var p=new h,m=p.get,_=p.has,y=p.set;r=function(e,t){return y.call(p,e,t),t},i=function(e){return m.call(p,e)||{}},a=function(e){return _.call(p,e)}}else{var v=d("state");f[v]=!0,r=function(e,t){return c(e,v,t),t},i=function(e){return l(e,v)?e[v]:{}},a=function(e){return l(e,v)}}e.exports={set:r,get:i,has:a,enforce:function(e){return a(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(40),i=n(401),a=r.WeakMap;e.exports="function"==typeof a&&/native code/.test(i(a))},function(e,t,n){var r=n(527),i=n(529),a=r("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},function(e,t,n){var r=n(528),i=n(402);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!1},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){var r=n(101),i=n(531),a=n(392),o=n(399);e.exports=function(e,t){for(var n=i(t),s=o.f,u=a.f,c=0;c<n.length;c++){var l=n[c];r(e,l)||s(e,l,u(t,l))}}},function(e,t,n){var r=n(532),i=n(534),a=n(407),o=n(400);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(o(e)),n=a.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(533),i=n(40),a=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e])||a(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t,n){var r=n(40);e.exports=r},function(e,t,n){var r=n(404),i=n(406).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(207),i=n(536),a=n(537),o=function(e){return function(t,n,o){var s,u=r(t),c=i(u.length),l=a(o,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,n){var r=n(405),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(405),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},function(e,t,n){var r=n(100),i=/#|\.prototype\./,a=function(e,t){var n=s[o(e)];return n==c||n!=u&&("function"==typeof t?r(t):!!t)},o=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},function(e,t,n){"use strict";var r=n(99),i=n(100),a=n(540),o=n(407),s=n(393),u=n(541),c=n(395),l=Object.assign,d=Object.defineProperty;e.exports=!l||i((function(){if(r&&1!==l({b:1},l(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||"abcdefghijklmnopqrst"!=a(l({},t)).join("")}))?function(e,t){for(var n=u(e),i=arguments.length,l=1,d=o.f,f=s.f;i>l;)for(var h,p=c(arguments[l++]),m=d?a(p).concat(d(p)):a(p),_=m.length,y=0;_>y;)h=m[y++],r&&!f.call(p,h)||(n[h]=p[h]);return n}:l},function(e,t,n){var r=n(404),i=n(406);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(396);e.exports=function(e){return Object(r(e))}},function(e,t,n){e.exports=n(543)},function(e,t,n){"use strict";var r=n(23),i=n(408),a=n(544),o=n(414);function s(e){var t=new a(e),n=i(a.prototype.request,t);return r.extend(n,a.prototype,t),r.extend(n,t),n}var u=s(n(411));u.Axios=a,u.create=function(e){return s(o(u.defaults,e))},u.Cancel=n(415),u.CancelToken=n(557),u.isCancel=n(410),u.all=function(e){return Promise.all(e)},u.spread=n(558),e.exports=u,e.exports.default=u},function(e,t,n){"use strict";var r=n(23),i=n(409),a=n(545),o=n(546),s=n(414);function u(e){this.defaults=e,this.interceptors={request:new a,response:new a}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[o,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},u.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,i){return this.request(r.merge(i||{},{method:e,url:t,data:n}))}})),e.exports=u},function(e,t,n){"use strict";var r=n(23);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";var r=n(23),i=n(547),a=n(410),o=n(411);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(23);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";var r=n(23);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(413);e.exports=function(e,t,n){var i=n.config.validateStatus;!i||i(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(552),i=n(553);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(23),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,o={};return e?(r.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(o[t]&&i.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},function(e,t,n){"use strict";var r=n(23);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(23);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,a,o){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(415);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";n(148),Object.defineProperty(t,"__esModule",{value:!0}),t.getRequestToken=function(){return a},t.onRequestTokenUpdate=function(e){o.push(e)};var r=n(55),i=document.getElementsByTagName("head")[0],a=i?i.getAttribute("data-requesttoken"):null,o=[];(0,r.subscribe)("csrf-token-update",(function(e){a=e.token,o.forEach((function(t){try{t(e.token)}catch(e){console.error("error updating CSRF token observer",e)}}))}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCurrentUser=function(){if(null===i)return null;return{uid:i,displayName:o}};var r=document.getElementsByTagName("head")[0],i=r?r.getAttribute("data-user"):null,a=document.getElementsByTagName("head")[0],o=a?a.getAttribute("data-user-displayname"):null},,,,function(e,t,n){var r,i;(i=function(){"use strict";var e={DAY:864e5,HOUR:36e5,MINUTE:6e4,SECOND:1e3,BASELINE_YEAR:2014,MAX_SCORE:864e6,AMBIGUITIES:{"America/Denver":["America/Mazatlan"],"America/Chicago":["America/Mexico_City"],"America/Asuncion":["America/Campo_Grande","America/Santiago"],"America/Montevideo":["America/Sao_Paulo","America/Santiago"],"Asia/Beirut":["Asia/Amman","Asia/Jerusalem","Europe/Helsinki","Asia/Damascus","Africa/Cairo","Asia/Gaza","Europe/Minsk","Africa/Windhoek"],"Pacific/Auckland":["Pacific/Fiji"],"America/Los_Angeles":["America/Santa_Isabel"],"America/New_York":["America/Havana"],"America/Halifax":["America/Goose_Bay"],"America/Godthab":["America/Miquelon"],"Asia/Dubai":["Asia/Yerevan"],"Asia/Jakarta":["Asia/Krasnoyarsk"],"Asia/Shanghai":["Asia/Irkutsk","Australia/Perth"],"Australia/Sydney":["Australia/Lord_Howe"],"Asia/Tokyo":["Asia/Yakutsk"],"Asia/Dhaka":["Asia/Omsk"],"Asia/Baku":["Asia/Yerevan"],"Australia/Brisbane":["Asia/Vladivostok"],"Pacific/Noumea":["Asia/Vladivostok"],"Pacific/Majuro":["Asia/Kamchatka","Pacific/Fiji"],"Pacific/Tongatapu":["Pacific/Apia"],"Asia/Baghdad":["Europe/Minsk","Europe/Moscow"],"Asia/Karachi":["Asia/Yekaterinburg"],"Africa/Johannesburg":["Asia/Gaza","Africa/Cairo"]}},t=function(e){var t=-e.getTimezoneOffset();return null!==t?t:0},n=function(){for(var n=[],r=0;r<=11;r++)for(var i=1;i<=28;i++){var a=t(new Date(e.BASELINE_YEAR,r,i));n?n&&n[n.length-1]!==a&&n.push(a):n.push()}return n},r=function(){var e=0,t=n();return t.length>1&&(e=t[0]-t[1]),t.length>3?t[0]+",1,weird":e<0?t[0]+",1":e>0?t[1]+",1,s":t[0]+",0"},a=function(e){for(var t=new Date(e,0,1,0,0,1,0).getTime(),n=new Date(e,12,31,23,59,59).getTime(),r=t,i=new Date(r).getTimezoneOffset(),a=null,s=null;r<n-864e5;){var u=new Date(r),c=u.getTimezoneOffset();c!==i&&(c<i&&(a=u),c>i&&(s=u),i=c),r+=864e5}return!(!a||!s)&&{s:o(a).getTime(),e:o(s).getTime()}},o=function t(n,r,i){void 0===r&&(r=e.DAY,i=e.HOUR);for(var a=new Date(n.getTime()-r).getTime(),o=n.getTime()+r,s=new Date(a).getTimezoneOffset(),u=a,c=null;u<o-i;){var l=new Date(u);if(l.getTimezoneOffset()!==s){c=l;break}u+=i}return r===e.DAY?t(c,e.HOUR,e.MINUTE):r===e.HOUR?t(c,e.MINUTE,e.SECOND):c},s=function(t,n){for(var r=function(r){for(var i=0,a=0;a<t.length;a++)if(r.rules[a]&&t[a]){if(!(t[a].s>=r.rules[a].s&&t[a].e<=r.rules[a].e)){i="N/A";break}if(i=0,i+=Math.abs(t[a].s-r.rules[a].s),(i+=Math.abs(r.rules[a].e-t[a].e))>e.MAX_SCORE){i="N/A";break}}return function(e,t,n,r){if("N/A"!==n)return n;if("Asia/Beirut"===t){if("Africa/Cairo"===r.name&&13983768e5===e[6].s&&14116788e5===e[6].e)return 0;if("Asia/Jerusalem"===r.name&&13959648e5===e[6].s&&14118588e5===e[6].e)return 0}else if("America/Santiago"===t){if("America/Asuncion"===r.name&&14124816e5===e[6].s&&1397358e6===e[6].e)return 0;if("America/Campo_Grande"===r.name&&14136912e5===e[6].s&&13925196e5===e[6].e)return 0}else if("America/Montevideo"===t){if("America/Sao_Paulo"===r.name&&14136876e5===e[6].s&&1392516e6===e[6].e)return 0}else if("Pacific/Auckland"===t&&"Pacific/Fiji"===r.name&&14142456e5===e[6].s&&13961016e5===e[6].e)return 0;return n}(t,n,i,r)},a={},o=i.olson.dst_rules.zones,s=o.length,u=e.AMBIGUITIES[n],c=0;c<s;c++){var l=o[c],d=r(o[c]);"N/A"!==d&&(a[l.name]=d)}for(var f in a)if(a.hasOwnProperty(f))for(var h=0;h<u.length;h++)if(u[h]===f)return f;return n},u=function(e){var t=function(){for(var e=[],t=0;t<i.olson.dst_rules.years.length;t++){var n=a(i.olson.dst_rules.years[t]);e.push(n)}return e}();return function(e){for(var t=0;t<e.length;t++)if(!1!==e[t])return!0;return!1}(t)?s(t,e):e};return{determine:function(t){var a=!1,o=r();return(t||void 0===t)&&(a=function(){var e,t;if(Intl&&"undefined"!=typeof Intl&&void 0!==Intl.DateTimeFormat&&void 0!==(e=Intl.DateTimeFormat())&&void 0!==e.resolvedOptions)return(t=e.resolvedOptions().timeZone)&&(t.indexOf("/")>-1||"UTC"===t)?t:void 0}()),a||(a=i.olson.timezones[o],void 0!==e.AMBIGUITIES[a]&&(a=u(a))),{name:function(){return a},using_intl:t||void 0===t,needle:o,offsets:n()}}}}()).olson=i.olson||{},i.olson.timezones={"-720,0":"Etc/GMT+12","-660,0":"Pacific/Pago_Pago","-660,1,s":"Pacific/Apia","-600,1":"America/Adak","-600,0":"Pacific/Honolulu","-570,0":"Pacific/Marquesas","-540,0":"Pacific/Gambier","-540,1":"America/Anchorage","-480,1":"America/Los_Angeles","-480,0":"Pacific/Pitcairn","-420,0":"America/Phoenix","-420,1":"America/Denver","-360,0":"America/Guatemala","-360,1":"America/Chicago","-360,1,s":"Pacific/Easter","-300,0":"America/Bogota","-300,1":"America/New_York","-270,0":"America/Caracas","-240,1":"America/Halifax","-240,0":"America/Santo_Domingo","-240,1,s":"America/Asuncion","-210,1":"America/St_Johns","-180,1":"America/Godthab","-180,0":"America/Buenos_Aires","-180,1,s":"America/Montevideo","-120,0":"America/Noronha","-120,1":"America/Noronha","-60,1":"Atlantic/Azores","-60,0":"Atlantic/Cape_Verde","0,0":"UTC","0,1":"Europe/London","0,1,weird":"Africa/Casablanca","60,1":"Europe/Berlin","60,0":"Africa/Lagos","60,1,weird":"Africa/Casablanca","120,1":"Asia/Beirut","120,1,weird":"Africa/Cairo","120,0":"Africa/Johannesburg","180,0":"Asia/Baghdad","180,1":"Europe/Moscow","210,1":"Asia/Tehran","240,0":"Asia/Dubai","240,1":"Asia/Baku","270,0":"Asia/Kabul","300,1":"Asia/Yekaterinburg","300,0":"Asia/Karachi","330,0":"Asia/Calcutta","345,0":"Asia/Katmandu","360,0":"Asia/Dhaka","360,1":"Asia/Omsk","390,0":"Asia/Rangoon","420,1":"Asia/Krasnoyarsk","420,0":"Asia/Jakarta","480,0":"Asia/Shanghai","480,1":"Asia/Irkutsk","525,0":"Australia/Eucla","525,1,s":"Australia/Eucla","540,1":"Asia/Yakutsk","540,0":"Asia/Tokyo","570,0":"Australia/Darwin","570,1,s":"Australia/Adelaide","600,0":"Australia/Brisbane","600,1":"Asia/Vladivostok","600,1,s":"Australia/Sydney","630,1,s":"Australia/Lord_Howe","660,1":"Asia/Kamchatka","660,0":"Pacific/Noumea","690,0":"Pacific/Norfolk","720,1,s":"Pacific/Auckland","720,0":"Pacific/Majuro","765,1,s":"Pacific/Chatham","780,0":"Pacific/Tongatapu","780,1,s":"Pacific/Apia","840,0":"Pacific/Kiritimati"},i.olson.dst_rules={years:[2008,2009,2010,2011,2012,2013,2014],zones:[{name:"Africa/Cairo",rules:[{e:12199572e5,s:12090744e5},{e:1250802e6,s:1240524e6},{e:12858804e5,s:12840696e5},!1,!1,!1,{e:14116788e5,s:1406844e6}]},{name:"America/Asuncion",rules:[{e:12050316e5,s:12243888e5},{e:12364812e5,s:12558384e5},{e:12709548e5,s:12860784e5},{e:13024044e5,s:1317528e6},{e:1333854e6,s:13495824e5},{e:1364094e6,s:1381032e6},{e:13955436e5,s:14124816e5}]},{name:"America/Campo_Grande",rules:[{e:12032172e5,s:12243888e5},{e:12346668e5,s:12558384e5},{e:12667212e5,s:1287288e6},{e:12981708e5,s:13187376e5},{e:13302252e5,s:1350792e6},{e:136107e7,s:13822416e5},{e:13925196e5,s:14136912e5}]},{name:"America/Goose_Bay",rules:[{e:122559486e4,s:120503526e4},{e:125704446e4,s:123648486e4},{e:128909886e4,s:126853926e4},{e:13205556e5,s:129998886e4},{e:13520052e5,s:13314456e5},{e:13834548e5,s:13628952e5},{e:14149044e5,s:13943448e5}]},{name:"America/Havana",rules:[{e:12249972e5,s:12056436e5},{e:12564468e5,s:12364884e5},{e:12885012e5,s:12685428e5},{e:13211604e5,s:13005972e5},{e:13520052e5,s:13332564e5},{e:13834548e5,s:13628916e5},{e:14149044e5,s:13943412e5}]},{name:"America/Mazatlan",rules:[{e:1225008e6,s:12074724e5},{e:12564576e5,s:1238922e6},{e:1288512e6,s:12703716e5},{e:13199616e5,s:13018212e5},{e:13514112e5,s:13332708e5},{e:13828608e5,s:13653252e5},{e:14143104e5,s:13967748e5}]},{name:"America/Mexico_City",rules:[{e:12250044e5,s:12074688e5},{e:1256454e6,s:12389184e5},{e:12885084e5,s:1270368e6},{e:1319958e6,s:13018176e5},{e:13514076e5,s:13332672e5},{e:13828572e5,s:13653216e5},{e:14143068e5,s:13967712e5}]},{name:"America/Miquelon",rules:[{e:12255984e5,s:12050388e5},{e:1257048e6,s:12364884e5},{e:12891024e5,s:12685428e5},{e:1320552e6,s:12999924e5},{e:13520016e5,s:1331442e6},{e:13834512e5,s:13628916e5},{e:14149008e5,s:13943412e5}]},{name:"America/Santa_Isabel",rules:[{e:12250116e5,s:1207476e6},{e:12564612e5,s:12389256e5},{e:12891204e5,s:12685608e5},{e:132057e7,s:13000104e5},{e:13520196e5,s:133146e7},{e:13834692e5,s:13629096e5},{e:14149188e5,s:13943592e5}]},{name:"America/Santiago",rules:[{e:1206846e6,s:1223784e6},{e:1237086e6,s:12552336e5},{e:127035e7,s:12866832e5},{e:13048236e5,s:13138992e5},{e:13356684e5,s:13465584e5},{e:1367118e6,s:13786128e5},{e:13985676e5,s:14100624e5}]},{name:"America/Sao_Paulo",rules:[{e:12032136e5,s:12243852e5},{e:12346632e5,s:12558348e5},{e:12667176e5,s:12872844e5},{e:12981672e5,s:1318734e6},{e:13302216e5,s:13507884e5},{e:13610664e5,s:1382238e6},{e:1392516e6,s:14136876e5}]},{name:"Asia/Amman",rules:[{e:1225404e6,s:12066552e5},{e:12568536e5,s:12381048e5},{e:12883032e5,s:12695544e5},{e:13197528e5,s:13016088e5},!1,!1,{e:14147064e5,s:13959576e5}]},{name:"Asia/Damascus",rules:[{e:12254868e5,s:120726e7},{e:125685e7,s:12381048e5},{e:12882996e5,s:12701592e5},{e:13197492e5,s:13016088e5},{e:13511988e5,s:13330584e5},{e:13826484e5,s:1364508e6},{e:14147028e5,s:13959576e5}]},{name:"Asia/Dubai",rules:[!1,!1,!1,!1,!1,!1,!1]},{name:"Asia/Gaza",rules:[{e:12199572e5,s:12066552e5},{e:12520152e5,s:12381048e5},{e:1281474e6,s:126964086e4},{e:1312146e6,s:130160886e4},{e:13481784e5,s:13330584e5},{e:13802292e5,s:1364508e6},{e:1414098e6,s:13959576e5}]},{name:"Asia/Irkutsk",rules:[{e:12249576e5,s:12068136e5},{e:12564072e5,s:12382632e5},{e:12884616e5,s:12697128e5},!1,!1,!1,!1]},{name:"Asia/Jerusalem",rules:[{e:12231612e5,s:12066624e5},{e:1254006e6,s:1238112e6},{e:1284246e6,s:12695616e5},{e:131751e7,s:1301616e6},{e:13483548e5,s:13330656e5},{e:13828284e5,s:13645152e5},{e:1414278e6,s:13959648e5}]},{name:"Asia/Kamchatka",rules:[{e:12249432e5,s:12067992e5},{e:12563928e5,s:12382488e5},{e:12884508e5,s:12696984e5},!1,!1,!1,!1]},{name:"Asia/Krasnoyarsk",rules:[{e:12249612e5,s:12068172e5},{e:12564108e5,s:12382668e5},{e:12884652e5,s:12697164e5},!1,!1,!1,!1]},{name:"Asia/Omsk",rules:[{e:12249648e5,s:12068208e5},{e:12564144e5,s:12382704e5},{e:12884688e5,s:126972e7},!1,!1,!1,!1]},{name:"Asia/Vladivostok",rules:[{e:12249504e5,s:12068064e5},{e:12564e8,s:1238256e6},{e:12884544e5,s:12697056e5},!1,!1,!1,!1]},{name:"Asia/Yakutsk",rules:[{e:1224954e6,s:120681e7},{e:12564036e5,s:12382596e5},{e:1288458e6,s:12697092e5},!1,!1,!1,!1]},{name:"Asia/Yekaterinburg",rules:[{e:12249684e5,s:12068244e5},{e:1256418e6,s:1238274e6},{e:12884724e5,s:12697236e5},!1,!1,!1,!1]},{name:"Asia/Yerevan",rules:[{e:1224972e6,s:1206828e6},{e:12564216e5,s:12382776e5},{e:1288476e6,s:12697272e5},{e:13199256e5,s:13011768e5},!1,!1,!1]},{name:"Australia/Lord_Howe",rules:[{e:12074076e5,s:12231342e5},{e:12388572e5,s:12545838e5},{e:12703068e5,s:12860334e5},{e:13017564e5,s:1317483e6},{e:1333206e6,s:13495374e5},{e:13652604e5,s:1380987e6},{e:139671e7,s:14124366e5}]},{name:"Australia/Perth",rules:[{e:12068136e5,s:12249576e5},!1,!1,!1,!1,!1,!1]},{name:"Europe/Helsinki",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]},{name:"Europe/Minsk",rules:[{e:12249792e5,s:12068352e5},{e:12564288e5,s:12382848e5},{e:12884832e5,s:12697344e5},!1,!1,!1,!1]},{name:"Europe/Moscow",rules:[{e:12249756e5,s:12068316e5},{e:12564252e5,s:12382812e5},{e:12884796e5,s:12697308e5},!1,!1,!1,!1]},{name:"Pacific/Apia",rules:[!1,!1,!1,{e:13017528e5,s:13168728e5},{e:13332024e5,s:13489272e5},{e:13652568e5,s:13803768e5},{e:13967064e5,s:14118264e5}]},{name:"Pacific/Fiji",rules:[!1,!1,{e:12696984e5,s:12878424e5},{e:13271544e5,s:1319292e6},{e:1358604e6,s:13507416e5},{e:139005e7,s:1382796e6},{e:14215032e5,s:14148504e5}]},{name:"Europe/London",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]},{name:"Africa/Windhoek",rules:[{e:12207492e5,s:120744e7},{e:12521988e5,s:12388896e5},{e:12836484e5,s:12703392e5},{e:1315098e6,s:13017888e5},{e:13465476e5,s:13332384e5},{e:13779972e5,s:13652928e5},{e:14100516e5,s:13967424e5}]}]},void 0!==e.exports?e.exports=i:null!==n(576)&&null!=n(577)?void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r):window.jstz=i},,,,,,,function(e,t,n){var r=n(657);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(103).default)("7ba2c365",r,!0,{})},function(e,t,n){var r=n(659);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(103).default)("354c4fe7",r,!0,{})},function(e,t,n){var r=n(661);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,n(103).default)("901db158",r,!0,{})},,,function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new a(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(579),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(24))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,a,o,s,u=1,c={},l=!1,d=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){p(e.data)},r=function(e){a.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(i=d.documentElement,r=function(e){var t=d.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(p,0,e)}:(o="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&p(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(o+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return c[u]=i,r(u),u++},f.clearImmediate=h}function h(e){delete c[e]}function p(e){if(l)setTimeout(p,0,e);else{var t=c[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{h(e),l=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(24),n(126))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(653),i=n(654),a=n(655);function o(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function s(e){var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function u(e,t){var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=i({arrayFormat:"none"},t)),r=Object.create(null);return"string"!=typeof e?r:(e=e.trim().replace(/^[?#&]/,""))?(e.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("="),i=t.shift(),o=t.length>0?t.join("="):void 0;o=void 0===o?null:a(o),n(a(i),o,r)})),Object.keys(r).sort().reduce((function(e,t){var n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return t[e]})):t}(n):e[t]=n,e}),Object.create(null))):r}t.extract=s,t.parse=u,t.stringify=function(e,t){!1===(t=i({encode:!0,strict:!0,arrayFormat:"none"},t)).sort&&(t.sort=function(){});var n=function(e){switch(e.arrayFormat){case"index":return function(t,n,r){return null===n?[o(t,e),"[",r,"]"].join(""):[o(t,e),"[",o(r,e),"]=",o(n,e)].join("")};case"bracket":return function(t,n){return null===n?o(t,e):[o(t,e),"[]=",o(n,e)].join("")};default:return function(t,n){return null===n?o(t,e):[o(t,e),"=",o(n,e)].join("")}}}(t);return e?Object.keys(e).sort(t.sort).map((function(r){var i=e[r];if(void 0===i)return"";if(null===i)return o(r,t);if(Array.isArray(i)){var a=[];return i.slice().forEach((function(e){void 0!==e&&a.push(n(r,e,a.length))})),a.join("&")}return o(r,t)+"="+o(i,t)})).filter((function(e){return e.length>0})).join("&"):""},t.parseUrl=function(e,t){return{url:e.split("?")[0]||"",query:u(s(e),t)}}},,,,,function(e,t,n){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}},function(e,t,n){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT -*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,u=o(e),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))i.call(n,l)&&(u[l]=n[l]);if(r){s=r(n);for(var d=0;d<s.length;d++)a.call(n,s[d])&&(u[s[d]]=n[s[d]])}}return u}},function(e,t,n){"use strict";var r=new RegExp("%[a-f0-9]{2}","gi"),i=new RegExp("(%[a-f0-9]{2})+","gi");function a(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],a(n),a(r))}function o(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r),n=1;n<t.length;n++)t=(e=a(t,n).join("")).match(r);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=i.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var r=o(n[0]);r!==n[0]&&(t[n[0]]=r)}n=i.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var u=a[s];e=e.replace(new RegExp(u,"g"),t[u])}return e}(e)}}},function(e,t,n){"use strict";var r=n(571);n.n(r).a},function(e,t,n){(t=n(102)(!1)).push([e.i,"\n.update[data-v-82df092a] {\n\twidth: auto;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";var r=n(572);n.n(r).a},function(e,t,n){(t=n(102)(!1)).push([e.i,"\nfieldset[data-v-69af6aa5] {\n\ttext-align: center;\n}\ninput[type=submit][data-v-69af6aa5] {\n\tmargin-top: 20px;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";var r=n(573);n.n(r).a},function(e,t,n){(t=n(102)(!1)).push([e.i,"\n.fade-enter-active, .fade-leave-active {\n\ttransition: opacity .3s;\n}\n.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {\n\topacity: 0;\n}\n",""]),e.exports=t},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,n,r){"use strict";r.r(n);var i=r(416),a=r(648),o=r.n(a),s=r(448),u=r(4),c=r(564),l=r.n(c),d={name:"LoginButton",props:{loading:{type:Boolean,required:!0},invertedColors:{type:Boolean,default:!1}}},f=r(122),h=Object(f.a)(d,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"submit-wrapper"},on:{click:function(t){return e.$emit("click")}}},[n("input",{staticClass:"login primary",attrs:{id:"submit-form",type:"submit",title:""},domProps:{value:e.loading?e.t("core","Logging in …"):e.t("core","Log in")}}),e._v(" "),n("div",{staticClass:"submit-icon",class:{"icon-confirm-white":!e.loading,"icon-loading-small":e.loading&&e.invertedColors,"icon-loading-small-dark":e.loading&&!e.invertedColors}})])}),[],!1,null,"125b100b",null).exports,p={name:"LoginForm",components:{LoginButton:h},props:{username:{type:String,default:""},redirectUrl:{type:String},errors:{type:Array,default:function(){return[]}},messages:{type:Array,default:function(){return[]}},throttleDelay:{type:Number},invertedColors:{type:Boolean,default:!1},autoCompleteAllowed:{type:Boolean,default:!0},directLogin:{type:Boolean,default:!1}},data:function(){return{loading:!1,timezone:l.a.determine().name(),timezoneOffset:-(new Date).getTimezoneOffset()/60,user:this.username,password:"",passwordInputType:"password"}},computed:{apacheAuthFailed:function(){return-1!==this.errors.indexOf("apacheAuthFailed")},internalException:function(){return-1!==this.errors.indexOf("internalexception")},invalidPassword:function(){return-1!==this.errors.indexOf("invalidpassword")},userDisabled:function(){return-1!==this.errors.indexOf("userdisabled")}},mounted:function(){""===this.username?this.$refs.user.focus():this.$refs.password.focus()},methods:{togglePassword:function(){"password"===this.passwordInputType?this.passwordInputType="text":this.passwordInputType="password"},updateUsername:function(){this.$emit("update:username",this.user)},submit:function(){this.loading=!0,this.$emit("submit")}}},m=Object(f.a)(p,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{ref:"loginForm",attrs:{method:"post",name:"login",action:e.OC.generateUrl("login")},on:{submit:e.submit}},[n("fieldset",[e.apacheAuthFailed?n("div",{staticClass:"warning"},[e._v("\n\t\t\t"+e._s(e.t("core","Server side authentication failed!"))),n("br"),e._v(" "),n("small",[e._v(e._s(e.t("core","Please contact your administrator."))+"\n\t\t\t")])]):e._e(),e._v(" "),e._l(e.messages,(function(t,r){return n("div",{key:r,staticClass:"warning"},[e._v("\n\t\t\t"+e._s(t)),n("br")])})),e._v(" "),e.internalException?n("div",{staticClass:"warning"},[e._v("\n\t\t\t"+e._s(e.t("core","An internal error occurred."))),n("br"),e._v(" "),n("small",[e._v(e._s(e.t("core","Please try again or contact your administrator."))+"\n\t\t\t")])]):e._e(),e._v(" "),n("div",{staticClass:"hidden",attrs:{id:"message"}},[n("img",{staticClass:"float-spinner",attrs:{alt:"",src:e.OC.imagePath("core","loading-dark.gif")}}),e._v(" "),n("span",{attrs:{id:"messageText"}}),e._v(" "),n("div",{staticStyle:{clear:"both"}})]),e._v(" "),n("p",{staticClass:"grouptop",class:{shake:e.invalidPassword}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.user,expression:"user"}],ref:"user",attrs:{id:"user",type:"text",name:"user",autocomplete:e.autoCompleteAllowed?"on":"off",placeholder:e.t("core","Username or email"),"aria-label":e.t("core","Username or email"),required:""},domProps:{value:e.user},on:{change:e.updateUsername,input:function(t){t.target.composing||(e.user=t.target.value)}}}),e._v(" "),n("label",{staticClass:"infield",attrs:{for:"user"}},[e._v(e._s(e.t("core","Username or\temail")))])]),e._v(" "),n("p",{staticClass:"groupbottom",class:{shake:e.invalidPassword}},[n("input",{ref:"password",staticClass:"password-with-toggle",attrs:{id:"password",type:e.passwordInputType,name:"password",autocomplete:e.autoCompleteAllowed?"on":"off",placeholder:e.t("core","Password"),"aria-label":e.t("core","Password"),required:""}}),e._v(" "),n("label",{staticClass:"infield",attrs:{for:"password"}},[e._v(e._s(e.t("Password")))]),e._v(" "),n("a",{staticClass:"toggle-password",attrs:{href:"#"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.togglePassword(t)}}},[n("img",{attrs:{src:e.OC.imagePath("core","actions/toggle.svg")}})])]),e._v(" "),n("LoginButton",{attrs:{loading:e.loading,"inverted-colors":e.invertedColors}}),e._v(" "),e.invalidPassword?n("p",{staticClass:"warning wrongPasswordMsg"},[e._v("\n\t\t\t"+e._s(e.t("core","Wrong username or password."))+"\n\t\t")]):e.userDisabled?n("p",{staticClass:"warning userDisabledMsg"},[e._v("\n\t\t\t"+e._s(e.t("lib","User disabled"))+"\n\t\t")]):e._e(),e._v(" "),e.throttleDelay&&e.throttleDelay>5e3?n("p",{staticClass:"warning throttledMsg"},[e._v("\n\t\t\t"+e._s(e.t("core","We have detected multiple invalid login attempts from your IP. Therefore your next login is throttled up to 30 seconds."))+"\n\t\t")]):e._e(),e._v(" "),e.redirectUrl?n("input",{attrs:{type:"hidden",name:"redirect_url"},domProps:{value:e.redirectUrl}}):e._e(),e._v(" "),n("input",{attrs:{type:"hidden",name:"timezone"},domProps:{value:e.timezone}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"timezone_offset"},domProps:{value:e.timezoneOffset}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"requesttoken"},domProps:{value:e.OC.requestToken}}),e._v(" "),e.directLogin?n("input",{attrs:{type:"hidden",name:"direct",value:"1"}}):e._e()],2)])}),[],!1,null,"7b285fb6",null).exports,_=r(144),y=r.n(_),v=r(25);function g(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function T(e){var t="function"==typeof Map?new Map:void 0;return(T=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return x(e,arguments,E(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),S(r,e)})(e)}function x(e,t,n){return(x=D()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&S(i,n.prototype),i}).apply(null,arguments)}function D(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(r,e);var t,n=(t=r,function(){var e,n=E(t);if(D()){var r=E(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Y(this,e)});function r(){return k(this,r),n.apply(this,arguments)}return r}(T(Error)),j={name:"PasswordLessLoginForm",components:{LoginButton:h},props:{username:{type:String,default:""},redirectUrl:{type:String},invertedColors:{type:Boolean,default:!1},autoCompleteAllowed:{type:Boolean,default:!0},isHttps:{type:Boolean,default:!1},hasPublicKeyCredential:{type:Boolean,default:!1}},data:function(){return{user:this.username,loading:!1,validCredentials:!0}},methods:{authenticate:function(){var e=this;console.debug("passwordless login initiated"),this.getAuthenticationData(this.user).then((function(e){return console.debug(e),e})).then(this.sign).then(this.completeAuthentication).catch((function(t){t instanceof O?e.validCredentials=!1:console.debug(t)}))},getAuthenticationData:function(e){var t,n,r=function(e){var t=(e=e.replace(/-/g,"+").replace(/_/g,"/")).length%4;if(t){if(1===t)throw new Error("InvalidLengthError: Input base64url string is the wrong length to determine padding");e+=new Array(5-t).join("=")}return window.atob(e)};return(t=e,n=Object(v.generateUrl)("/login/webauthn/start"),y.a.post(n,{loginName:t}).then((function(e){return e.data}))).then((function(e){if(console.debug("Obtained PublicKeyCredentialRequestOptions"),console.debug(e),!Object.prototype.hasOwnProperty.call(e,"allowCredentials"))throw console.debug("No credentials found."),new O;return e.challenge=Uint8Array.from(r(e.challenge),(function(e){return e.charCodeAt(0)})),e.allowCredentials=e.allowCredentials.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{id:Uint8Array.from(r(e.id),(function(e){return e.charCodeAt(0)}))})})),console.debug("Converted PublicKeyCredentialRequestOptions"),console.debug(e),e})).catch((function(e){throw console.debug("Error while obtaining data"),e}))},sign:function(e){var t=function(e){return window.btoa(String.fromCharCode.apply(String,g(e)))};return navigator.credentials.get({publicKey:e}).then((function(e){return console.debug(e),console.debug(new Uint8Array(e.rawId)),console.debug(t(new Uint8Array(e.rawId))),{id:e.id,type:e.type,rawId:t(new Uint8Array(e.rawId)),response:{authenticatorData:t(new Uint8Array(e.response.authenticatorData)),clientDataJSON:t(new Uint8Array(e.response.clientDataJSON)),signature:t(new Uint8Array(e.response.signature)),userHandle:e.response.userHandle?t(new Uint8Array(e.response.userHandle)):null}}})).then((function(e){return console.debug(e),e})).catch((function(e){console.debug("GOT AN ERROR!"),console.debug(e)}))},completeAuthentication:function(e){console.debug("TIME TO COMPLETE");var t,n,r=this.redirectUrl;return(t=JSON.stringify(e),n=Object(v.generateUrl)("/login/webauthn/finish"),y.a.post(n,{data:t}).then((function(e){return e.data}))).then((function(e){console.debug("Logged in redirecting"),window.location.href=r})).catch((function(e){console.debug("GOT AN ERROR WHILE SUBMITTING CHALLENGE!"),console.debug(e)}))},submit:function(){}}},A=Object(f.a)(j,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isHttps&&e.hasPublicKeyCredential?n("form",{ref:"loginForm",attrs:{method:"post",name:"login"},on:{submit:function(t){return t.preventDefault(),e.submit(t)}}},[n("fieldset",[n("p",{staticClass:"grouptop groupbottom"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.user,expression:"user"}],ref:"user",attrs:{id:"user",type:"text",name:"user",autocomplete:e.autoCompleteAllowed?"on":"off",placeholder:e.t("core","Username or email"),"aria-label":e.t("core","Username or email"),required:""},domProps:{value:e.user},on:{change:function(t){return e.$emit("update:username",e.user)},input:function(t){t.target.composing||(e.user=t.target.value)}}}),e._v(" "),n("label",{staticClass:"infield",attrs:{for:"user"}},[e._v(e._s(e.t("core","Username or\temail")))])]),e._v(" "),e.validCredentials?e._e():n("div",[e._v("\n\t\t\t"+e._s(e.t("core","Your account is not setup for passwordless login."))+"\n\t\t")]),e._v(" "),e.validCredentials?n("LoginButton",{attrs:{loading:e.loading,"inverted-colors":e.invertedColors},on:{click:e.authenticate}}):e._e()],1)]):e.hasPublicKeyCredential?e.isHttps?e._e():n("div",[e._v("\n\t"+e._s(e.t("core","Passwordless authentication is only available over a secure connection."))+"\n")]):n("div",[e._v("\n\t"+e._s(e.t("core","Passwordless authentication is not supported in your browser."))+"\n")])}),[],!1,null,"18d0e0b8",null).exports,P=r(70),C={name:"ResetPassword",props:{username:{type:String,required:!0},resetPasswordLink:{type:String,required:!0},invertedColors:{type:Boolean,default:!1}},data:function(){return{error:!1,loading:!1,message:void 0,user:this.username}},watch:{username:function(e){this.user=e}},methods:{updateUsername:function(){this.$emit("update:username",this.user)},submit:function(){var e=this;this.loading=!0,this.error=!1,this.message="";var t=Object(P.b)("/lostpassword/email"),n={user:this.user};return y.a.post(t,n).then((function(e){return e.data})).then((function(t){if("success"!==t.status)throw new Error("got status ".concat(t.status));e.message="send-success"})).catch((function(t){console.error("could not send reset e-mail request",t),e.error=!0,e.message="send-error"})).then((function(){e.loading=!1}))}}},H=(r(656),Object(f.a)(C,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{on:{submit:function(t){return t.preventDefault(),e.submit(t)}}},[n("fieldset",[n("p",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.user,expression:"user"}],attrs:{id:"user",type:"text",name:"user",placeholder:e.t("core","Username or email"),"aria-label":e.t("core","Username or email"),required:""},domProps:{value:e.user},on:{change:e.updateUsername,input:function(t){t.target.composing||(e.user=t.target.value)}}}),e._v(" "),n("label",{staticClass:"infield",attrs:{for:"user"}},[e._v(e._s(e.t("core","Username or email")))])]),e._v(" "),n("div",{attrs:{id:"reset-password-wrapper"}},[n("input",{staticClass:"login primary",attrs:{id:"reset-password-submit",type:"submit",title:""},domProps:{value:e.t("core","Reset password")}}),e._v(" "),n("div",{staticClass:"submit-icon",class:{"icon-confirm-white":!e.loading,"icon-loading-small":e.loading&&e.invertedColors,"icon-loading-small-dark":e.loading&&!e.invertedColors}})]),e._v(" "),"send-success"===e.message?n("p",{staticClass:"update"},[e._v("\n\t\t\t"+e._s(e.t("core","A password reset message has been sent to the e-mail address of this account. If you do not receive it, check your spam/junk folders or ask your local administrator for help."))+"\n\t\t\t"),n("br"),e._v("\n\t\t\t"+e._s(e.t("core","If it is not there ask your local administrator."))+"\n\t\t")]):"send-error"===e.message?n("p",{staticClass:"update warning"},[e._v("\n\t\t\t"+e._s(e.t("core","Couldn't send reset email. Please contact your administrator."))+"\n\t\t")]):"reset-error"===e.message?n("p",{staticClass:"update warning"},[e._v("\n\t\t\t"+e._s(e.t("core","Password can not be changed. Please contact your administrator."))+"\n\t\t")]):e.message?n("p",{staticClass:"update",class:{warning:e.error}}):e._e(),e._v(" "),n("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.$emit("abort")}}},[e._v("\n\t\t\t"+e._s(e.t("core","Back to login"))+"\n\t\t")])])])}),[],!1,null,"82df092a",null).exports);function N(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}var I={name:"UpdatePassword",props:{username:{type:String,required:!0},resetPasswordTarget:{type:String,required:!0},invertedColors:{type:Boolean,default:!1}},data:function(){return{error:!1,loading:!1,message:void 0,user:this.username,password:"",encrypted:!1,proceed:!1}},watch:{username:function(e){this.user=e}},methods:{submit:function(){var e,n=this;return(e=regeneratorRuntime.mark((function e(){var r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.loading=!0,n.error=!1,n.message="",e.prev=3,e.next=6,y.a.post(n.resetPasswordTarget,{password:n.password,proceed:n.proceed});case 6:if(r=e.sent,!(i=r.data)||"success"!==i.status){e.next=14;break}n.message="send-success",n.$emit("update:username",n.user),n.$emit("done"),e.next=23;break;case 14:if(!i||!i.encryption){e.next=18;break}n.encrypted=!0,e.next=23;break;case 18:if(!i||!i.msg){e.next=22;break}throw new Error(i.msg);case 22:throw new Error;case 23:e.next=29;break;case 25:e.prev=25,e.t0=e.catch(3),n.error=!0,n.message=e.t0.message?e.t0.message:t("core","Password can not be changed. Please contact your administrator.");case 29:return e.prev=29,n.loading=!1,e.finish(29);case 32:case"end":return e.stop()}}),e,null,[[3,25,29,32]])})),function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){N(a,r,i,o,s,"next",e)}function s(e){N(a,r,i,o,s,"throw",e)}o(void 0)}))})()}}},R=(r(658),{name:"Login",components:{LoginForm:m,PasswordLessLoginForm:A,ResetPassword:H,UpdatePassword:Object(f.a)(I,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{on:{submit:function(t){return t.preventDefault(),e.submit(t)}}},[n("fieldset",[n("p",[n("label",{staticClass:"infield",attrs:{for:"password"}},[e._v(e._s(e.t("core","New password")))]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],attrs:{id:"password",type:"password",name:"password",required:"",placeholder:e.t("core","New password")},domProps:{value:e.password},on:{input:function(t){t.target.composing||(e.password=t.target.value)}}})]),e._v(" "),e.encrypted?n("div",{staticClass:"update"},[n("p",[e._v("\n\t\t\t\t"+e._s(e.t("core","Your files are encrypted. There will be no way to get your data back after your password is reset. If you are not sure what to do, please contact your administrator before you continue. Do you really want to continue?"))+"\n\t\t\t")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.proceed,expression:"proceed"}],staticClass:"checkbox",attrs:{id:"encrypted-continue",type:"checkbox"},domProps:{checked:Array.isArray(e.proceed)?e._i(e.proceed,null)>-1:e.proceed},on:{change:function(t){var n=e.proceed,r=t.target,i=!!r.checked;if(Array.isArray(n)){var a=e._i(n,null);r.checked?a<0&&(e.proceed=n.concat([null])):a>-1&&(e.proceed=n.slice(0,a).concat(n.slice(a+1)))}else e.proceed=i}}}),e._v(" "),n("label",{attrs:{for:"encrypted-continue"}},[e._v("\n\t\t\t\t"+e._s(e.t("core","I know what I'm doing"))+"\n\t\t\t")])]):e._e(),e._v(" "),n("div",{attrs:{id:"submit-wrapper"}},[n("input",{staticClass:"login primary",attrs:{id:"submit",type:"submit",title:""},domProps:{value:e.loading?e.t("core","Resetting password"):e.t("core","Reset password")}}),e._v(" "),n("div",{staticClass:"submit-icon",class:{"icon-loading-small":e.loading&&e.invertedColors,"icon-loading-small-dark":e.loading&&!e.invertedColors}})]),e._v(" "),e.error&&e.message?n("p",{class:{warning:e.error}},[e._v("\n\t\t\t"+e._s(e.message)+"\n\t\t")]):e._e()])])}),[],!1,null,"69af6aa5",null).exports},props:{username:{type:String,default:""},redirectUrl:{type:String},errors:{type:Array,default:function(){return[]}},messages:{type:Array,default:function(){return[]}},throttleDelay:{type:Number},canResetPassword:{type:Boolean,default:!1},resetPasswordLink:{type:String},resetPasswordTarget:{type:String},invertedColors:{type:Boolean,default:!1},autoCompleteAllowed:{type:Boolean,default:!0},directLogin:{type:Boolean,default:!1},hasPasswordless:{type:Boolean,default:!1},isHttps:{type:Boolean,default:!1},hasPublicKeyCredential:{type:Boolean,default:!1}},data:function(){return{loading:!1,user:this.username,passwordlessLogin:!1,resetPassword:!1}},methods:{passwordResetFinished:function(){this.resetPasswordTarget="",this.directLogin=!0}}}),F=(r(660),Object(f.a)(R,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("transition",{attrs:{name:"fade",mode:"out-in"}},[e.passwordlessLogin||e.resetPassword||""!==e.resetPasswordTarget?!e.loading&&e.passwordlessLogin?n("div",{key:"reset",staticClass:"login-additional"},[n("PasswordLessLoginForm",{attrs:{username:e.user,"redirect-url":e.redirectUrl,"inverted-colors":e.invertedColors,"auto-complete-allowed":e.autoCompleteAllowed,isHttps:e.isHttps,hasPublicKeyCredential:e.hasPublicKeyCredential},on:{"update:username":function(t){e.user=t},submit:function(t){e.loading=!0}}}),e._v(" "),n("a",{on:{click:function(t){t.preventDefault(),e.passwordlessLogin=!1}}},[e._v("\n\t\t\t\t"+e._s(e.t("core","Back"))+"\n\t\t\t")])],1):!e.loading&&e.canResetPassword?n("div",{key:"reset",staticClass:"login-additional"},[n("div",{staticClass:"lost-password-container"},[e.resetPassword?n("ResetPassword",{attrs:{username:e.user,"reset-password-link":e.resetPasswordLink,"inverted-colors":e.invertedColors},on:{"update:username":function(t){e.user=t},abort:function(t){e.resetPassword=!1}}}):e._e()],1)]):""!==e.resetPasswordTarget?n("div",[n("UpdatePassword",{attrs:{username:e.user,"reset-password-target":e.resetPasswordTarget,"inverted-colors":e.invertedColors},on:{"update:username":function(t){e.user=t},done:e.passwordResetFinished}})],1):e._e():n("div",{key:"login"},[n("LoginForm",{attrs:{username:e.user,"redirect-url":e.redirectUrl,"direct-login":e.directLogin,messages:e.messages,errors:e.errors,"throttle-delay":e.throttleDelay,"inverted-colors":e.invertedColors,"auto-complete-allowed":e.autoCompleteAllowed},on:{"update:username":function(t){e.user=t},submit:function(t){e.loading=!0}}}),e._v(" "),e.canResetPassword&&""!==e.resetPasswordLink?n("a",{attrs:{id:"lost-password",href:e.resetPasswordLink}},[e._v("\n\t\t\t\t"+e._s(e.t("core","Forgot password?"))+"\n\t\t\t")]):e.canResetPassword&&!e.resetPassword?n("a",{attrs:{id:"lost-password",href:e.resetPasswordLink},on:{click:function(t){t.preventDefault(),e.resetPassword=!0}}},[e._v("\n\t\t\t\t"+e._s(e.t("core","Forgot password?"))+"\n\t\t\t")]):e._e(),e._v(" "),n("br"),e._v(" "),e.hasPasswordless?n("a",{on:{click:function(t){t.preventDefault(),e.passwordlessLogin=!0}}},[e._v("\n\t\t\t\t"+e._s(e.t("core","Log in with a device"))+"\n\t\t\t")]):e._e()],1)])],1)}),[],!1,null,null,null).exports),W=r(56),$={data:function(){return{OC:u.a}},methods:{t:W.a.translate.bind(W.a),n:W.a.translatePlural.bind(W.a)}},z=o.a.parse(location.search);if("1"===z.clear)try{window.localStorage.clear(),window.sessionStorage.clear(),console.debug("Browser storage cleared")}catch(e){console.error("Could not clear browser storage",e)}s.a.mixin($);var U=function(e,t){try{return Object(i.loadState)("core",e)}catch(e){return t}};new(s.a.extend(F))({propsData:{errors:U("loginErrors",[]),messages:U("loginMessages",[]),redirectUrl:U("loginRedirectUrl",void 0),username:U("loginUsername",""),throttleDelay:U("loginThrottleDelay",0),invertedColors:OCA.Theming&&OCA.Theming.inverted,canResetPassword:U("loginCanResetPassword",!1),resetPasswordLink:U("loginResetPasswordLink",""),autoCompleteAllowed:U("loginAutocomplete",!0),resetPasswordTarget:U("resetPasswordTarget",""),resetPasswordUser:U("resetPasswordUser",""),directLogin:"1"===z.direct,hasPasswordless:U("webauthn-available",!1),isHttps:"https:"===window.location.protocol,hasPublicKeyCredential:void 0!==window.PublicKeyCredential}}).$mount("#login")}]); +*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,u=o(e),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))i.call(n,l)&&(u[l]=n[l]);if(r){s=r(n);for(var d=0;d<s.length;d++)a.call(n,s[d])&&(u[s[d]]=n[s[d]])}}return u}},function(e,t,n){"use strict";var r=new RegExp("%[a-f0-9]{2}","gi"),i=new RegExp("(%[a-f0-9]{2})+","gi");function a(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],a(n),a(r))}function o(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r),n=1;n<t.length;n++)t=(e=a(t,n).join("")).match(r);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=i.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var r=o(n[0]);r!==n[0]&&(t[n[0]]=r)}n=i.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),s=0;s<a.length;s++){var u=a[s];e=e.replace(new RegExp(u,"g"),t[u])}return e}(e)}}},function(e,t,n){"use strict";var r=n(571);n.n(r).a},function(e,t,n){(t=n(102)(!1)).push([e.i,"\n.update[data-v-131e44c6] {\n\twidth: auto;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";var r=n(572);n.n(r).a},function(e,t,n){(t=n(102)(!1)).push([e.i,"\nfieldset[data-v-69af6aa5] {\n\ttext-align: center;\n}\ninput[type=submit][data-v-69af6aa5] {\n\tmargin-top: 20px;\n}\n",""]),e.exports=t},function(e,t,n){"use strict";var r=n(573);n.n(r).a},function(e,t,n){(t=n(102)(!1)).push([e.i,"\n.fade-enter-active, .fade-leave-active {\n\ttransition: opacity .3s;\n}\n.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {\n\topacity: 0;\n}\n",""]),e.exports=t},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,n,r){"use strict";r.r(n);var i=r(416),a=r(648),o=r.n(a),s=r(448),u=r(4),c=r(564),l=r.n(c),d={name:"LoginButton",props:{loading:{type:Boolean,required:!0},invertedColors:{type:Boolean,default:!1}}},f=r(122),h=Object(f.a)(d,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"submit-wrapper"},on:{click:function(t){return e.$emit("click")}}},[n("input",{staticClass:"login primary",attrs:{id:"submit-form",type:"submit",title:""},domProps:{value:e.loading?e.t("core","Logging in …"):e.t("core","Log in")}}),e._v(" "),n("div",{staticClass:"submit-icon",class:{"icon-confirm-white":!e.loading,"icon-loading-small":e.loading&&e.invertedColors,"icon-loading-small-dark":e.loading&&!e.invertedColors}})])}),[],!1,null,"125b100b",null).exports,p={name:"LoginForm",components:{LoginButton:h},props:{username:{type:String,default:""},redirectUrl:{type:String},errors:{type:Array,default:function(){return[]}},messages:{type:Array,default:function(){return[]}},throttleDelay:{type:Number},invertedColors:{type:Boolean,default:!1},autoCompleteAllowed:{type:Boolean,default:!0},directLogin:{type:Boolean,default:!1}},data:function(){return{loading:!1,timezone:l.a.determine().name(),timezoneOffset:-(new Date).getTimezoneOffset()/60,user:this.username,password:"",passwordInputType:"password"}},computed:{apacheAuthFailed:function(){return-1!==this.errors.indexOf("apacheAuthFailed")},internalException:function(){return-1!==this.errors.indexOf("internalexception")},invalidPassword:function(){return-1!==this.errors.indexOf("invalidpassword")},userDisabled:function(){return-1!==this.errors.indexOf("userdisabled")}},mounted:function(){""===this.username?this.$refs.user.focus():this.$refs.password.focus()},methods:{togglePassword:function(){"password"===this.passwordInputType?this.passwordInputType="text":this.passwordInputType="password"},updateUsername:function(){this.$emit("update:username",this.user)},submit:function(){this.loading=!0,this.$emit("submit")}}},m=Object(f.a)(p,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{ref:"loginForm",attrs:{method:"post",name:"login",action:e.OC.generateUrl("login")},on:{submit:e.submit}},[n("fieldset",[e.apacheAuthFailed?n("div",{staticClass:"warning"},[e._v("\n\t\t\t"+e._s(e.t("core","Server side authentication failed!"))),n("br"),e._v(" "),n("small",[e._v(e._s(e.t("core","Please contact your administrator."))+"\n\t\t\t")])]):e._e(),e._v(" "),e._l(e.messages,(function(t,r){return n("div",{key:r,staticClass:"warning"},[e._v("\n\t\t\t"+e._s(t)),n("br")])})),e._v(" "),e.internalException?n("div",{staticClass:"warning"},[e._v("\n\t\t\t"+e._s(e.t("core","An internal error occurred."))),n("br"),e._v(" "),n("small",[e._v(e._s(e.t("core","Please try again or contact your administrator."))+"\n\t\t\t")])]):e._e(),e._v(" "),n("div",{staticClass:"hidden",attrs:{id:"message"}},[n("img",{staticClass:"float-spinner",attrs:{alt:"",src:e.OC.imagePath("core","loading-dark.gif")}}),e._v(" "),n("span",{attrs:{id:"messageText"}}),e._v(" "),n("div",{staticStyle:{clear:"both"}})]),e._v(" "),n("p",{staticClass:"grouptop",class:{shake:e.invalidPassword}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.user,expression:"user"}],ref:"user",attrs:{id:"user",type:"text",name:"user",autocapitalize:"off",autocomplete:e.autoCompleteAllowed?"on":"off",placeholder:e.t("core","Username or email"),"aria-label":e.t("core","Username or email"),required:""},domProps:{value:e.user},on:{change:e.updateUsername,input:function(t){t.target.composing||(e.user=t.target.value)}}}),e._v(" "),n("label",{staticClass:"infield",attrs:{for:"user"}},[e._v(e._s(e.t("core","Username or\temail")))])]),e._v(" "),n("p",{staticClass:"groupbottom",class:{shake:e.invalidPassword}},[n("input",{ref:"password",staticClass:"password-with-toggle",attrs:{id:"password",type:e.passwordInputType,name:"password",autocomplete:e.autoCompleteAllowed?"on":"off",placeholder:e.t("core","Password"),"aria-label":e.t("core","Password"),required:""}}),e._v(" "),n("label",{staticClass:"infield",attrs:{for:"password"}},[e._v(e._s(e.t("Password")))]),e._v(" "),n("a",{staticClass:"toggle-password",attrs:{href:"#"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.togglePassword(t)}}},[n("img",{attrs:{src:e.OC.imagePath("core","actions/toggle.svg")}})])]),e._v(" "),n("LoginButton",{attrs:{loading:e.loading,"inverted-colors":e.invertedColors}}),e._v(" "),e.invalidPassword?n("p",{staticClass:"warning wrongPasswordMsg"},[e._v("\n\t\t\t"+e._s(e.t("core","Wrong username or password."))+"\n\t\t")]):e.userDisabled?n("p",{staticClass:"warning userDisabledMsg"},[e._v("\n\t\t\t"+e._s(e.t("lib","User disabled"))+"\n\t\t")]):e._e(),e._v(" "),e.throttleDelay&&e.throttleDelay>5e3?n("p",{staticClass:"warning throttledMsg"},[e._v("\n\t\t\t"+e._s(e.t("core","We have detected multiple invalid login attempts from your IP. Therefore your next login is throttled up to 30 seconds."))+"\n\t\t")]):e._e(),e._v(" "),e.redirectUrl?n("input",{attrs:{type:"hidden",name:"redirect_url"},domProps:{value:e.redirectUrl}}):e._e(),e._v(" "),n("input",{attrs:{type:"hidden",name:"timezone"},domProps:{value:e.timezone}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"timezone_offset"},domProps:{value:e.timezoneOffset}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"requesttoken"},domProps:{value:e.OC.requestToken}}),e._v(" "),e.directLogin?n("input",{attrs:{type:"hidden",name:"direct",value:"1"}}):e._e()],2)])}),[],!1,null,"389d6773",null).exports,_=r(144),y=r.n(_),v=r(25);function g(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function T(e){var t="function"==typeof Map?new Map:void 0;return(T=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return x(e,arguments,E(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),S(r,e)})(e)}function x(e,t,n){return(x=D()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&S(i,n.prototype),i}).apply(null,arguments)}function D(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(r,e);var t,n=(t=r,function(){var e,n=E(t);if(D()){var r=E(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Y(this,e)});function r(){return k(this,r),n.apply(this,arguments)}return r}(T(Error)),j={name:"PasswordLessLoginForm",components:{LoginButton:h},props:{username:{type:String,default:""},redirectUrl:{type:String},invertedColors:{type:Boolean,default:!1},autoCompleteAllowed:{type:Boolean,default:!0},isHttps:{type:Boolean,default:!1},hasPublicKeyCredential:{type:Boolean,default:!1}},data:function(){return{user:this.username,loading:!1,validCredentials:!0}},methods:{authenticate:function(){var e=this;console.debug("passwordless login initiated"),this.getAuthenticationData(this.user).then((function(e){return console.debug(e),e})).then(this.sign).then(this.completeAuthentication).catch((function(t){t instanceof O?e.validCredentials=!1:console.debug(t)}))},getAuthenticationData:function(e){var t,n,r=function(e){var t=(e=e.replace(/-/g,"+").replace(/_/g,"/")).length%4;if(t){if(1===t)throw new Error("InvalidLengthError: Input base64url string is the wrong length to determine padding");e+=new Array(5-t).join("=")}return window.atob(e)};return(t=e,n=Object(v.generateUrl)("/login/webauthn/start"),y.a.post(n,{loginName:t}).then((function(e){return e.data}))).then((function(e){if(console.debug("Obtained PublicKeyCredentialRequestOptions"),console.debug(e),!Object.prototype.hasOwnProperty.call(e,"allowCredentials"))throw console.debug("No credentials found."),new O;return e.challenge=Uint8Array.from(r(e.challenge),(function(e){return e.charCodeAt(0)})),e.allowCredentials=e.allowCredentials.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{id:Uint8Array.from(r(e.id),(function(e){return e.charCodeAt(0)}))})})),console.debug("Converted PublicKeyCredentialRequestOptions"),console.debug(e),e})).catch((function(e){throw console.debug("Error while obtaining data"),e}))},sign:function(e){var t=function(e){return window.btoa(String.fromCharCode.apply(String,g(e)))};return navigator.credentials.get({publicKey:e}).then((function(e){return console.debug(e),console.debug(new Uint8Array(e.rawId)),console.debug(t(new Uint8Array(e.rawId))),{id:e.id,type:e.type,rawId:t(new Uint8Array(e.rawId)),response:{authenticatorData:t(new Uint8Array(e.response.authenticatorData)),clientDataJSON:t(new Uint8Array(e.response.clientDataJSON)),signature:t(new Uint8Array(e.response.signature)),userHandle:e.response.userHandle?t(new Uint8Array(e.response.userHandle)):null}}})).then((function(e){return console.debug(e),e})).catch((function(e){console.debug("GOT AN ERROR!"),console.debug(e)}))},completeAuthentication:function(e){console.debug("TIME TO COMPLETE");var t,n,r=this.redirectUrl;return(t=JSON.stringify(e),n=Object(v.generateUrl)("/login/webauthn/finish"),y.a.post(n,{data:t}).then((function(e){return e.data}))).then((function(e){console.debug("Logged in redirecting"),window.location.href=r})).catch((function(e){console.debug("GOT AN ERROR WHILE SUBMITTING CHALLENGE!"),console.debug(e)}))},submit:function(){}}},A=Object(f.a)(j,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isHttps&&e.hasPublicKeyCredential?n("form",{ref:"loginForm",attrs:{method:"post",name:"login"},on:{submit:function(t){return t.preventDefault(),e.submit(t)}}},[n("fieldset",[n("p",{staticClass:"grouptop groupbottom"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.user,expression:"user"}],ref:"user",attrs:{id:"user",type:"text",name:"user",autocomplete:e.autoCompleteAllowed?"on":"off",placeholder:e.t("core","Username or email"),"aria-label":e.t("core","Username or email"),required:""},domProps:{value:e.user},on:{change:function(t){return e.$emit("update:username",e.user)},input:function(t){t.target.composing||(e.user=t.target.value)}}}),e._v(" "),n("label",{staticClass:"infield",attrs:{for:"user"}},[e._v(e._s(e.t("core","Username or\temail")))])]),e._v(" "),e.validCredentials?e._e():n("div",[e._v("\n\t\t\t"+e._s(e.t("core","Your account is not setup for passwordless login."))+"\n\t\t")]),e._v(" "),e.validCredentials?n("LoginButton",{attrs:{loading:e.loading,"inverted-colors":e.invertedColors},on:{click:e.authenticate}}):e._e()],1)]):e.hasPublicKeyCredential?e.isHttps?e._e():n("div",[e._v("\n\t"+e._s(e.t("core","Passwordless authentication is only available over a secure connection."))+"\n")]):n("div",[e._v("\n\t"+e._s(e.t("core","Passwordless authentication is not supported in your browser."))+"\n")])}),[],!1,null,"18d0e0b8",null).exports,P=r(70),C={name:"ResetPassword",props:{username:{type:String,required:!0},resetPasswordLink:{type:String,required:!0},invertedColors:{type:Boolean,default:!1}},data:function(){return{error:!1,loading:!1,message:void 0,user:this.username}},watch:{username:function(e){this.user=e}},methods:{updateUsername:function(){this.$emit("update:username",this.user)},submit:function(){var e=this;this.loading=!0,this.error=!1,this.message="";var t=Object(P.b)("/lostpassword/email"),n={user:this.user};return y.a.post(t,n).then((function(e){return e.data})).then((function(t){if("success"!==t.status)throw new Error("got status ".concat(t.status));e.message="send-success"})).catch((function(t){console.error("could not send reset e-mail request",t),e.error=!0,e.message="send-error"})).then((function(){e.loading=!1}))}}},H=(r(656),Object(f.a)(C,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{on:{submit:function(t){return t.preventDefault(),e.submit(t)}}},[n("fieldset",[n("p",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.user,expression:"user"}],attrs:{id:"user",type:"text",name:"user",autocapitalize:"off",placeholder:e.t("core","Username or email"),"aria-label":e.t("core","Username or email"),required:""},domProps:{value:e.user},on:{change:e.updateUsername,input:function(t){t.target.composing||(e.user=t.target.value)}}}),e._v(" "),n("label",{staticClass:"infield",attrs:{for:"user"}},[e._v(e._s(e.t("core","Username or email")))])]),e._v(" "),n("div",{attrs:{id:"reset-password-wrapper"}},[n("input",{staticClass:"login primary",attrs:{id:"reset-password-submit",type:"submit",title:""},domProps:{value:e.t("core","Reset password")}}),e._v(" "),n("div",{staticClass:"submit-icon",class:{"icon-confirm-white":!e.loading,"icon-loading-small":e.loading&&e.invertedColors,"icon-loading-small-dark":e.loading&&!e.invertedColors}})]),e._v(" "),"send-success"===e.message?n("p",{staticClass:"update"},[e._v("\n\t\t\t"+e._s(e.t("core","A password reset message has been sent to the e-mail address of this account. If you do not receive it, check your spam/junk folders or ask your local administrator for help."))+"\n\t\t\t"),n("br"),e._v("\n\t\t\t"+e._s(e.t("core","If it is not there ask your local administrator."))+"\n\t\t")]):"send-error"===e.message?n("p",{staticClass:"update warning"},[e._v("\n\t\t\t"+e._s(e.t("core","Couldn't send reset email. Please contact your administrator."))+"\n\t\t")]):"reset-error"===e.message?n("p",{staticClass:"update warning"},[e._v("\n\t\t\t"+e._s(e.t("core","Password can not be changed. Please contact your administrator."))+"\n\t\t")]):e.message?n("p",{staticClass:"update",class:{warning:e.error}}):e._e(),e._v(" "),n("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.$emit("abort")}}},[e._v("\n\t\t\t"+e._s(e.t("core","Back to login"))+"\n\t\t")])])])}),[],!1,null,"131e44c6",null).exports);function N(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}var I={name:"UpdatePassword",props:{username:{type:String,required:!0},resetPasswordTarget:{type:String,required:!0},invertedColors:{type:Boolean,default:!1}},data:function(){return{error:!1,loading:!1,message:void 0,user:this.username,password:"",encrypted:!1,proceed:!1}},watch:{username:function(e){this.user=e}},methods:{submit:function(){var e,n=this;return(e=regeneratorRuntime.mark((function e(){var r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.loading=!0,n.error=!1,n.message="",e.prev=3,e.next=6,y.a.post(n.resetPasswordTarget,{password:n.password,proceed:n.proceed});case 6:if(r=e.sent,!(i=r.data)||"success"!==i.status){e.next=14;break}n.message="send-success",n.$emit("update:username",n.user),n.$emit("done"),e.next=23;break;case 14:if(!i||!i.encryption){e.next=18;break}n.encrypted=!0,e.next=23;break;case 18:if(!i||!i.msg){e.next=22;break}throw new Error(i.msg);case 22:throw new Error;case 23:e.next=29;break;case 25:e.prev=25,e.t0=e.catch(3),n.error=!0,n.message=e.t0.message?e.t0.message:t("core","Password can not be changed. Please contact your administrator.");case 29:return e.prev=29,n.loading=!1,e.finish(29);case 32:case"end":return e.stop()}}),e,null,[[3,25,29,32]])})),function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){N(a,r,i,o,s,"next",e)}function s(e){N(a,r,i,o,s,"throw",e)}o(void 0)}))})()}}},R=(r(658),{name:"Login",components:{LoginForm:m,PasswordLessLoginForm:A,ResetPassword:H,UpdatePassword:Object(f.a)(I,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("form",{on:{submit:function(t){return t.preventDefault(),e.submit(t)}}},[n("fieldset",[n("p",[n("label",{staticClass:"infield",attrs:{for:"password"}},[e._v(e._s(e.t("core","New password")))]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],attrs:{id:"password",type:"password",name:"password",required:"",placeholder:e.t("core","New password")},domProps:{value:e.password},on:{input:function(t){t.target.composing||(e.password=t.target.value)}}})]),e._v(" "),e.encrypted?n("div",{staticClass:"update"},[n("p",[e._v("\n\t\t\t\t"+e._s(e.t("core","Your files are encrypted. There will be no way to get your data back after your password is reset. If you are not sure what to do, please contact your administrator before you continue. Do you really want to continue?"))+"\n\t\t\t")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.proceed,expression:"proceed"}],staticClass:"checkbox",attrs:{id:"encrypted-continue",type:"checkbox"},domProps:{checked:Array.isArray(e.proceed)?e._i(e.proceed,null)>-1:e.proceed},on:{change:function(t){var n=e.proceed,r=t.target,i=!!r.checked;if(Array.isArray(n)){var a=e._i(n,null);r.checked?a<0&&(e.proceed=n.concat([null])):a>-1&&(e.proceed=n.slice(0,a).concat(n.slice(a+1)))}else e.proceed=i}}}),e._v(" "),n("label",{attrs:{for:"encrypted-continue"}},[e._v("\n\t\t\t\t"+e._s(e.t("core","I know what I'm doing"))+"\n\t\t\t")])]):e._e(),e._v(" "),n("div",{attrs:{id:"submit-wrapper"}},[n("input",{staticClass:"login primary",attrs:{id:"submit",type:"submit",title:""},domProps:{value:e.loading?e.t("core","Resetting password"):e.t("core","Reset password")}}),e._v(" "),n("div",{staticClass:"submit-icon",class:{"icon-loading-small":e.loading&&e.invertedColors,"icon-loading-small-dark":e.loading&&!e.invertedColors}})]),e._v(" "),e.error&&e.message?n("p",{class:{warning:e.error}},[e._v("\n\t\t\t"+e._s(e.message)+"\n\t\t")]):e._e()])])}),[],!1,null,"69af6aa5",null).exports},props:{username:{type:String,default:""},redirectUrl:{type:String},errors:{type:Array,default:function(){return[]}},messages:{type:Array,default:function(){return[]}},throttleDelay:{type:Number},canResetPassword:{type:Boolean,default:!1},resetPasswordLink:{type:String},resetPasswordTarget:{type:String},invertedColors:{type:Boolean,default:!1},autoCompleteAllowed:{type:Boolean,default:!0},directLogin:{type:Boolean,default:!1},hasPasswordless:{type:Boolean,default:!1},isHttps:{type:Boolean,default:!1},hasPublicKeyCredential:{type:Boolean,default:!1}},data:function(){return{loading:!1,user:this.username,passwordlessLogin:!1,resetPassword:!1}},methods:{passwordResetFinished:function(){this.resetPasswordTarget="",this.directLogin=!0}}}),F=(r(660),Object(f.a)(R,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("transition",{attrs:{name:"fade",mode:"out-in"}},[e.passwordlessLogin||e.resetPassword||""!==e.resetPasswordTarget?!e.loading&&e.passwordlessLogin?n("div",{key:"reset",staticClass:"login-additional"},[n("PasswordLessLoginForm",{attrs:{username:e.user,"redirect-url":e.redirectUrl,"inverted-colors":e.invertedColors,"auto-complete-allowed":e.autoCompleteAllowed,isHttps:e.isHttps,hasPublicKeyCredential:e.hasPublicKeyCredential},on:{"update:username":function(t){e.user=t},submit:function(t){e.loading=!0}}}),e._v(" "),n("a",{on:{click:function(t){t.preventDefault(),e.passwordlessLogin=!1}}},[e._v("\n\t\t\t\t"+e._s(e.t("core","Back"))+"\n\t\t\t")])],1):!e.loading&&e.canResetPassword?n("div",{key:"reset",staticClass:"login-additional"},[n("div",{staticClass:"lost-password-container"},[e.resetPassword?n("ResetPassword",{attrs:{username:e.user,"reset-password-link":e.resetPasswordLink,"inverted-colors":e.invertedColors},on:{"update:username":function(t){e.user=t},abort:function(t){e.resetPassword=!1}}}):e._e()],1)]):""!==e.resetPasswordTarget?n("div",[n("UpdatePassword",{attrs:{username:e.user,"reset-password-target":e.resetPasswordTarget,"inverted-colors":e.invertedColors},on:{"update:username":function(t){e.user=t},done:e.passwordResetFinished}})],1):e._e():n("div",{key:"login"},[n("LoginForm",{attrs:{username:e.user,"redirect-url":e.redirectUrl,"direct-login":e.directLogin,messages:e.messages,errors:e.errors,"throttle-delay":e.throttleDelay,"inverted-colors":e.invertedColors,"auto-complete-allowed":e.autoCompleteAllowed},on:{"update:username":function(t){e.user=t},submit:function(t){e.loading=!0}}}),e._v(" "),e.canResetPassword&&""!==e.resetPasswordLink?n("a",{attrs:{id:"lost-password",href:e.resetPasswordLink}},[e._v("\n\t\t\t\t"+e._s(e.t("core","Forgot password?"))+"\n\t\t\t")]):e.canResetPassword&&!e.resetPassword?n("a",{attrs:{id:"lost-password",href:e.resetPasswordLink},on:{click:function(t){t.preventDefault(),e.resetPassword=!0}}},[e._v("\n\t\t\t\t"+e._s(e.t("core","Forgot password?"))+"\n\t\t\t")]):e._e(),e._v(" "),n("br"),e._v(" "),e.hasPasswordless?n("a",{on:{click:function(t){t.preventDefault(),e.passwordlessLogin=!0}}},[e._v("\n\t\t\t\t"+e._s(e.t("core","Log in with a device"))+"\n\t\t\t")]):e._e()],1)])],1)}),[],!1,null,null,null).exports),W=r(56),$={data:function(){return{OC:u.a}},methods:{t:W.a.translate.bind(W.a),n:W.a.translatePlural.bind(W.a)}},z=o.a.parse(location.search);if("1"===z.clear)try{window.localStorage.clear(),window.sessionStorage.clear(),console.debug("Browser storage cleared")}catch(e){console.error("Could not clear browser storage",e)}s.a.mixin($);var U=function(e,t){try{return Object(i.loadState)("core",e)}catch(e){return t}};new(s.a.extend(F))({propsData:{errors:U("loginErrors",[]),messages:U("loginMessages",[]),redirectUrl:U("loginRedirectUrl",void 0),username:U("loginUsername",""),throttleDelay:U("loginThrottleDelay",0),invertedColors:OCA.Theming&&OCA.Theming.inverted,canResetPassword:U("loginCanResetPassword",!1),resetPasswordLink:U("loginResetPasswordLink",""),autoCompleteAllowed:U("loginAutocomplete",!0),resetPasswordTarget:U("resetPasswordTarget",""),resetPasswordUser:U("resetPasswordUser",""),directLogin:"1"===z.direct,hasPasswordless:U("webauthn-available",!1),isHttps:"https:"===window.location.protocol,hasPublicKeyCredential:void 0!==window.PublicKeyCredential}}).$mount("#login")}]); //# sourceMappingURL=login.js.map
\ No newline at end of file |