nextcloud/dist/core-login.js
Ferdinand Thiessen 7b7d74fda2
chore: compile assets
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-02-10 14:53:19 +01:00

2 lines
No EOL
121 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(()=>{var e,r,s,i={24050(e,r,s){"use strict";var i={};s.r(i),s.d(i,{clearIconCache:()=>gt,getIconUrl:()=>ft});var o=s(85471),a=s(81222),l=s(63814),c=s(82490),u=s(74095),d=s(371),h=s(53334),p=s(46855),f=s(32073),m=s(16044),g=s(82182);const v={name:"LoginButton",components:{ArrowRight:s(33691).A,NcButton:u.A},props:{value:{type:String,default:(0,h.Tl)("core","Log in")},valueLoading:{type:String,default:(0,h.Tl)("core","Logging in …")},loading:{type:Boolean,required:!0},invertedColors:{type:Boolean,default:!1}}};var y=s(85072),b=s.n(y),w=s(97825),A=s.n(w),_=s(77659),x=s.n(_),C=s(55056),k=s.n(C),P=s(10540),E=s.n(P),S=s(41113),T=s.n(S),N=s(14430),O={};O.styleTagTransform=T(),O.setAttributes=k(),O.insert=x().bind(null,"head"),O.domAPI=A(),O.insertStyleElement=E(),b()(N.A,O),N.A&&N.A.locals&&N.A.locals;var j=s(14486);const I=(0,j.A)(v,function(){var e=this,t=e._self._c;return t("NcButton",{attrs:{variant:"primary",type:"submit",wide:!0,disabled:e.loading},on:{click:function(t){return e.$emit("click")}},scopedSlots:e._u([{key:"icon",fn:function(){return[e.loading?t("div",{staticClass:"submit-wrapper__icon icon-loading-small-dark"}):t("ArrowRight",{staticClass:"submit-wrapper__icon"})]},proxy:!0}])},[e._v("\n\t"+e._s(e.loading?e.valueLoading:e.value)+"\n\t")])},[],!1,null,"bbf83d00",null).exports,L={computed:{userNameInputLengthIs255(){return this.user.length>=255},userInputHelperText(){if(this.userNameInputLengthIs255)return t("core","Email length is at max (255)")}}},M={name:"LoginForm",components:{LoginButton:I,NcCheckboxRadioSwitch:f.A,NcPasswordField:m.A,NcTextField:g.A,NcNoteCard:d.A},mixins:[L],props:{username:{type:String,default:""},redirectUrl:{type:[Boolean,String],default:!1},errors:{type:Array,default:()=>[]},messages:{type:Array,default:()=>[]},throttleDelay:{type:Number,default:0},autoCompleteAllowed:{type:Boolean,default:!0},remembermeAllowed:{type:Boolean,default:!0},directLogin:{type:Boolean,default:!1},emailStates:{type:Array,default:()=>[]}},setup:()=>({t:h.Tl,headlineText:(0,h.Tl)("core","Log in to {productName}",{productName:OC.theme.name},void 0,{sanitize:!1,escape:!1}),loginTimeout:(0,a.C)("core","loginTimeout",300),requestToken:window.OC.requestToken,timezone:(new Intl.DateTimeFormat)?.resolvedOptions()?.timeZone,timezoneOffset:-(new Date).getTimezoneOffset()/60}),data:e=>({loading:!1,user:e.username,password:"",rememberme:["1"],visible:!1}),computed:{resetFormTimeout(){return this.loginTimeout<=0?()=>{}:(0,p.A)(this.handleResetForm,1e3*this.loginTimeout)},isError(){return this.invalidPassword||this.userDisabled||this.throttleDelay>5e3},errorLabel(){return this.invalidPassword?(0,h.Tl)("core","Wrong login or password."):this.userDisabled?(0,h.Tl)("core","This account is disabled"):this.throttleDelay>5e3?(0,h.Tl)("core","Too many incorrect login attempts. Please try again in 30 seconds."):void 0},apacheAuthFailed(){return-1!==this.errors.indexOf("apacheAuthFailed")},csrfCheckFailed(){return-1!==this.errors.indexOf("csrfCheckFailed")},internalException(){return-1!==this.errors.indexOf("internalexception")},invalidPassword(){return-1!==this.errors.indexOf("invalidpassword")},userDisabled(){return-1!==this.errors.indexOf("userdisabled")},loadingIcon:()=>(0,l.d0)("core","loading-dark.gif"),loginActionUrl:()=>(0,l.Jv)("login"),emailEnabled(){return this.emailStates.every(e=>"1"===e)},loginText(){return this.emailEnabled?(0,h.Tl)("core","Account name or email"):(0,h.Tl)("core","Account name")}},watch:{password(){this.resetFormTimeout()}},mounted(){""===this.username?this.$refs.user.$refs.inputField.$refs.input.focus():this.$refs.password.$refs.inputField.$refs.input.focus()},methods:{handleResetForm(){this.password=""},updateUsername(){this.$emit("update:username",this.user)},submit(e){this.visible=!1,this.loading?e.preventDefault():(this.loading=!0,this.$emit("submit"))}}};var R=s(44098),B={};B.styleTagTransform=T(),B.setAttributes=k(),B.insert=x().bind(null,"head"),B.domAPI=A(),B.insertStyleElement=E(),b()(R.A,B),R.A&&R.A.locals&&R.A.locals;const F=(0,j.A)(M,function(){var e=this,t=e._self._c;return t("form",{ref:"loginForm",staticClass:"login-form",attrs:{method:"post",name:"login",action:e.loginActionUrl},on:{submit:e.submit}},[t("fieldset",{staticClass:"login-form__fieldset",attrs:{"data-login-form":""}},[e.apacheAuthFailed?t("NcNoteCard",{attrs:{title:e.t("core","Server side authentication failed!"),type:"warning"}},[e._v("\n\t\t\t"+e._s(e.t("core","Please contact your administrator."))+"\n\t\t")]):e._e(),e._v(" "),e.csrfCheckFailed?t("NcNoteCard",{attrs:{heading:e.t("core","Session error"),type:"error"}},[e._v("\n\t\t\t"+e._s(e.t("core","It appears your session token has expired, please refresh the page and try again."))+"\n\t\t")]):e._e(),e._v(" "),e.messages.length>0?t("NcNoteCard",e._l(e.messages,function(n,r){return t("div",{key:r},[e._v("\n\t\t\t\t"+e._s(n)),t("br")])}),0):e._e(),e._v(" "),e.internalException?t("NcNoteCard",{class:e.t("core","An internal error occurred."),attrs:{type:"warning"}},[e._v("\n\t\t\t"+e._s(e.t("core","Please try again or contact your administrator."))+"\n\t\t")]):e._e(),e._v(" "),t("div",{staticClass:"hidden",attrs:{id:"message"}},[t("img",{staticClass:"float-spinner",attrs:{alt:"",src:e.loadingIcon}}),e._v(" "),t("span",{attrs:{id:"messageText"}}),e._v(" "),t("div",{staticStyle:{clear:"both"}})]),e._v(" "),t("h2",{staticClass:"login-form__headline",attrs:{"data-login-form-headline":""}},[e._v("\n\t\t\t"+e._s(e.headlineText)+"\n\t\t")]),e._v(" "),t("NcTextField",{ref:"user",class:{shake:e.invalidPassword},attrs:{id:"user",label:e.loginText,name:"user",maxlength:255,autocapitalize:"none",spellchecking:!1,autocomplete:e.autoCompleteAllowed?"username":"off",required:"",error:e.userNameInputLengthIs255,"helper-text":e.userInputHelperText,"data-login-form-input-user":""},on:{change:e.updateUsername},model:{value:e.user,callback:function(t){e.user=t},expression:"user"}}),e._v(" "),t("NcPasswordField",{ref:"password",class:{shake:e.invalidPassword},attrs:{id:"password",name:"password",spellchecking:!1,autocapitalize:"none",autocomplete:e.autoCompleteAllowed?"current-password":"off",label:e.t("core","Password"),"helper-text":e.errorLabel,error:e.isError,visible:e.visible,"data-login-form-input-password":"",required:""},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}}),e._v(" "),e.remembermeAllowed?t("NcCheckboxRadioSwitch",{ref:"rememberme",attrs:{id:"rememberme",name:"rememberme",value:"1","data-login-form-input-rememberme":""},model:{value:e.rememberme,callback:function(t){e.rememberme=t},expression:"rememberme"}},[e._v("\n\t\t\t"+e._s(e.t("core","Remember me"))+"\n\t\t")]):e._e(),e._v(" "),t("LoginButton",{attrs:{"data-login-form-submit":"",loading:e.loading}}),e._v(" "),e.redirectUrl?t("input",{attrs:{type:"hidden",name:"redirect_url"},domProps:{value:e.redirectUrl}}):e._e(),e._v(" "),t("input",{attrs:{type:"hidden",name:"timezone"},domProps:{value:e.timezone}}),e._v(" "),t("input",{attrs:{type:"hidden",name:"timezone_offset"},domProps:{value:e.timezoneOffset}}),e._v(" "),t("input",{attrs:{type:"hidden",name:"requesttoken"},domProps:{value:e.requestToken}}),e._v(" "),e.directLogin?t("input",{attrs:{type:"hidden",name:"direct",value:"1"}}):e._e()],1)])},[],!1,null,"f91ba7fe",null).exports;function H(){return U.stubThis(void 0!==globalThis?.PublicKeyCredential&&"function"==typeof globalThis.PublicKeyCredential)}const U={stubThis:e=>e};class D extends Error{constructor({message:e,code:t,cause:n,name:r}){super(e,{cause:n}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=r??n.name,this.code=t}}const z=new class{constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}createNewAbortSignal(){if(this.controller){const e=new Error("Cancelling existing WebAuthn API call for new one");e.name="AbortError",this.controller.abort(e)}const e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){const e=new Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}};function q(e){const t=new Uint8Array(e);let n="";for(const e of t)n+=String.fromCharCode(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function $(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),n=(4-t.length%4)%4,r=t.padEnd(t.length+n,"="),s=atob(r),i=new ArrayBuffer(s.length),o=new Uint8Array(i);for(let e=0;e<s.length;e++)o[e]=s.charCodeAt(e);return i}const V=e=>e;function Y(e){const{id:t}=e;return{...e,id:$(t),transports:e.transports}}const K=["cross-platform","platform"];function W(e){if(e&&!(K.indexOf(e)<0))return e}var J=s(42507),G=s(41423);const X={name:"LockOpenIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Q=(0,j.A)(X,function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon lock-open-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(t){return e.$emit("click",t)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V10A2,2 0 0,1 6,8H15V6A3,3 0 0,0 12,3A3,3 0 0,0 9,6H7A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,17A2,2 0 0,0 14,15A2,2 0 0,0 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},[],!1,null,null,null).exports;var Z=s(21777),ee=s(35947);const te=null===(ne=(0,Z.HW)())?(0,ee.YK)().setApp("core").build():(0,ee.YK)().setApp("core").setUid(ne.uid).build();var ne;(0,ee.YK)().setApp("unified-search").detectUser().build();var re=s(19051);class se extends Error{}const ie=(0,o.pM)({name:"PasswordLessLoginForm",components:{LoginButton:I,InformationIcon:G.A,LockOpenIcon:Q,NcEmptyContent:J.A,NcTextField:g.A},props:{username:{type:String,default:""},redirectUrl:{type:[Boolean,String],default:!1},autoCompleteAllowed:{type:Boolean,default:!0},isHttps:{type:Boolean,default:!1},isLocalhost:{type:Boolean,default:!1}},setup:()=>({supportsWebauthn:H()}),data(){return{user:this.username,loading:!1,validCredentials:!0}},methods:{async authenticate(){if(this.$refs.loginForm.checkValidity()){te.debug("passwordless login initiated");try{const e=await async function(e){const t=(0,l.Jv)("/login/webauthn/start"),{data:n}=await re.Ay.post(t,{loginName:e});if(!n.allowCredentials||0===n.allowCredentials.length)throw te.error("No valid credentials returned for webauthn"),new se;return await async function(e){!e.optionsJSON&&e.challenge&&(console.warn("startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});const{optionsJSON:t,useBrowserAutofill:n=!1,verifyBrowserAutofillInput:r=!0}=e;if(!H())throw new Error("WebAuthn is not supported in this browser");let s;0!==t.allowCredentials?.length&&(s=t.allowCredentials?.map(Y));const i={...t,challenge:$(t.challenge),allowCredentials:s},o={};if(n){if(!await function(){if(!H())return V(new Promise(e=>e(!1)));const e=globalThis.PublicKeyCredential;return V(void 0===e?.isConditionalMediationAvailable?new Promise(e=>e(!1)):e.isConditionalMediationAvailable())}())throw Error("Browser does not support WebAuthn autofill");if(document.querySelectorAll("input[autocomplete$='webauthn']").length<1&&r)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');o.mediation="conditional",i.allowCredentials=[]}let a;o.publicKey=i,o.signal=z.createNewAbortSignal();try{a=await navigator.credentials.get(o)}catch(e){throw function({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if("AbortError"===e.name){if(t.signal instanceof AbortSignal)return new D({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if("NotAllowedError"===e.name)return new D({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if("SecurityError"===e.name){const t=globalThis.location.hostname;if("localhost"!==(r=t)&&!/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(r))return new D({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e});if(n.rpId!==t)return new D({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else if("UnknownError"===e.name)return new D({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}var r;return e}({error:e,options:o})}if(!a)throw new Error("Authentication was not completed");const{id:l,rawId:c,response:u,type:d}=a;let h;return u.userHandle&&(h=q(u.userHandle)),{id:l,rawId:q(c),response:{authenticatorData:q(u.authenticatorData),clientDataJSON:q(u.clientDataJSON),signature:q(u.signature),userHandle:h},type:d,clientExtensionResults:a.getClientExtensionResults(),authenticatorAttachment:W(a.authenticatorAttachment)}}({optionsJSON:n})}(this.user);await this.completeAuthentication(e)}catch(e){if(e instanceof se)return void(this.validCredentials=!1);te.debug(e)}}},changeUsername(e){this.user=e,this.$emit("update:username",this.user)},completeAuthentication(e){const t=this.redirectUrl;return async function(e){const t=(0,l.Jv)("/login/webauthn/finish"),{data:n}=await re.Ay.post(t,{data:JSON.stringify(e)});return n}(e).then(({defaultRedirectUrl:e})=>{te.debug("Logged in redirecting"),window.location.href=t||e}).catch(e=>{te.debug("GOT AN ERROR WHILE SUBMITTING CHALLENGE!",{error:e})})},submit(){}}});var oe=s(57056),ae={};ae.styleTagTransform=T(),ae.setAttributes=k(),ae.insert=x().bind(null,"head"),ae.domAPI=A(),ae.insertStyleElement=E(),b()(oe.A,ae),oe.A&&oe.A.locals&&oe.A.locals;var le=(0,j.A)(ie,function(){var e=this,t=e._self._c;return e._self._setupProxy,(e.isHttps||e.isLocalhost)&&e.supportsWebauthn?t("form",{ref:"loginForm",staticClass:"password-less-login-form",attrs:{"aria-labelledby":"password-less-login-form-title",method:"post",name:"login"},on:{submit:function(t){return t.preventDefault(),e.submit.apply(null,arguments)}}},[t("h2",{attrs:{id:"password-less-login-form-title"}},[e._v("\n\t\t"+e._s(e.t("core","Log in with a device"))+"\n\t")]),e._v(" "),t("NcTextField",{attrs:{required:"","model-value":e.user,autocomplete:e.autoCompleteAllowed?"on":"off",error:!e.validCredentials,label:e.t("core","Login or email"),placeholder:e.t("core","Login or email"),"helper-text":e.validCredentials?"":e.t("core","Your account is not setup for passwordless login.")},on:{"update:value":e.changeUsername}}),e._v(" "),e.validCredentials?t("LoginButton",{attrs:{loading:e.loading},on:{click:e.authenticate}}):e._e()],1):e.isHttps||e.isLocalhost?t("NcEmptyContent",{attrs:{name:e.t("core","Browser not supported"),description:e.t("core","Passwordless authentication is not supported in your browser.")},scopedSlots:e._u([{key:"icon",fn:function(){return[t("InformationIcon")]},proxy:!0}])}):t("NcEmptyContent",{attrs:{name:e.t("core","Your connection is not secure"),description:e.t("core","Passwordless authentication is only available over a secure connection.")},scopedSlots:e._u([{key:"icon",fn:function(){return[t("LockOpenIcon")]},proxy:!0}])})},[],!1,null,"0b57a680",null);const ce=le.exports,ue=(0,o.pM)({name:"ResetPassword",components:{LoginButton:I,NcButton:u.A,NcNoteCard:d.A,NcTextField:g.A},mixins:[L],props:{username:{type:String,required:!0},resetPasswordLink:{type:String,required:!0}},data(){return{error:!1,loading:!1,message:"",user:this.username}},watch:{username(e){this.user=e}},methods:{updateUsername(){this.$emit("update:username",this.user)},async submit(){this.loading=!0,this.error=!1,this.message="";const e=(0,l.Jv)("/lostpassword/email");try{const{data:t}=await re.Ay.post(e,{user:this.user});if("success"!==t.status)throw new Error(`got status ${t.status}`);this.message="send-success"}catch(e){te.error("could not send reset email request",{error:e}),this.error=!0,this.message="send-error"}finally{this.loading=!1}}}});var de=s(99322),he={};he.styleTagTransform=T(),he.setAttributes=k(),he.insert=x().bind(null,"head"),he.domAPI=A(),he.insertStyleElement=E(),b()(de.A,he),de.A&&de.A.locals&&de.A.locals;var pe=(0,j.A)(ue,function(){var e=this,t=e._self._c;return e._self._setupProxy,t("form",{staticClass:"reset-password-form",on:{submit:function(t){return t.preventDefault(),e.submit.apply(null,arguments)}}},[t("h2",[e._v(e._s(e.t("core","Reset password")))]),e._v(" "),t("NcTextField",{attrs:{id:"user",name:"user",maxlength:255,autocapitalize:"off",label:e.t("core","Login or email"),error:e.userNameInputLengthIs255,"helper-text":e.userInputHelperText,required:""},on:{change:e.updateUsername},model:{value:e.user,callback:function(t){e.user=t},expression:"user"}}),e._v(" "),t("LoginButton",{attrs:{loading:e.loading,value:e.t("core","Reset password")}}),e._v(" "),t("NcButton",{attrs:{variant:"tertiary",wide:""},on:{click:function(t){return e.$emit("abort")}}},[e._v("\n\t\t"+e._s(e.t("core","Back to login"))+"\n\t")]),e._v(" "),"send-success"===e.message?t("NcNoteCard",{attrs:{type:"success"}},[e._v("\n\t\t"+e._s(e.t("core","If this account exists, a password reset message has been sent to its email address. If you do not receive it, verify your email address and/or Login, check your spam/junk folders or ask your local administration for help."))+"\n\t")]):"send-error"===e.message?t("NcNoteCard",{attrs:{type:"error"}},[e._v("\n\t\t"+e._s(e.t("core","Couldn't send reset email. Please contact your administrator."))+"\n\t")]):"reset-error"===e.message?t("NcNoteCard",{attrs:{type:"error"}},[e._v("\n\t\t"+e._s(e.t("core","Password cannot be changed. Please contact your administrator."))+"\n\t")]):e._e()],1)},[],!1,null,"759a0fdd",null);const fe=pe.exports,me={name:"UpdatePassword",components:{LoginButton:I},props:{username:{type:String,required:!0},resetPasswordTarget:{type:String,required:!0}},data(){return{error:!1,loading:!1,message:void 0,user:this.username,password:"",encrypted:!1,proceed:!1}},watch:{username(e){this.user=e}},methods:{async submit(){this.loading=!0,this.error=!1,this.message="";try{const{data:e}=await re.Ay.post(this.resetPasswordTarget,{password:this.password,proceed:this.proceed});if(e&&"success"===e.status)this.message="send-success",this.$emit("update:username",this.user),this.$emit("done");else{if(!e||!e.encryption)throw e&&e.msg?new Error(e.msg):new Error;this.encrypted=!0}}catch(e){this.error=!0,this.message=e.message?e.message:t("core","Password cannot be changed. Please contact your administrator.")}finally{this.loading=!1}}}};var ge=s(81604),ve={};ve.styleTagTransform=T(),ve.setAttributes=k(),ve.insert=x().bind(null,"head"),ve.domAPI=A(),ve.insertStyleElement=E(),b()(ge.A,ve),ge.A&&ge.A.locals&&ge.A.locals;var ye=(0,j.A)(me,function(){var e=this,t=e._self._c;return t("form",{on:{submit:function(t){return t.preventDefault(),e.submit.apply(null,arguments)}}},[t("fieldset",[t("p",[t("label",{staticClass:"infield",attrs:{for:"password"}},[e._v(e._s(e.t("core","New password")))]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.password,expression:"password"}],attrs:{id:"password",type:"password",name:"password",autocomplete:"new-password",autocapitalize:"none",spellcheck:"false",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?t("div",{staticClass:"update"},[t("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(" "),t("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,s=!!r.checked;if(Array.isArray(n)){var i=e._i(n,null);r.checked?i<0&&(e.proceed=n.concat([null])):i>-1&&(e.proceed=n.slice(0,i).concat(n.slice(i+1)))}else e.proceed=s}}}),e._v(" "),t("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(" "),t("LoginButton",{attrs:{loading:e.loading,value:e.t("core","Reset password"),"value-loading":e.t("core","Resetting password")}}),e._v(" "),e.error&&e.message?t("p",{class:{warning:e.error}},[e._v("\n\t\t\t"+e._s(e.message)+"\n\t\t")]):e._e()],1)])},[],!1,null,"2c0ecaf9",null);const be=ye.exports;const we=c.A.parse(location.search);"1"===we.clear&&async function(){try{window.localStorage.clear(),window.sessionStorage.clear();const e=await window.indexedDB.databases();for(const t of e)await window.indexedDB.deleteDatabase(t.name);te.debug("Browser storages cleared")}catch(e){te.error("Could not clear browser storages",{error:e})}}();const Ae={name:"Login",components:{LoginForm:F,PasswordLessLoginForm:ce,ResetPassword:fe,UpdatePassword:be,NcButton:u.A,NcNoteCard:d.A},data:()=>({loading:!1,user:(0,a.C)("core","loginUsername",""),passwordlessLogin:!1,resetPassword:!1,errors:(0,a.C)("core","loginErrors",[]),messages:(0,a.C)("core","loginMessages",[]),redirectUrl:(0,a.C)("core","loginRedirectUrl",!1),throttleDelay:(0,a.C)("core","loginThrottleDelay",0),canResetPassword:(0,a.C)("core","loginCanResetPassword",!1),resetPasswordLink:(0,a.C)("core","loginResetPasswordLink",""),autoCompleteAllowed:(0,a.C)("core","loginAutocomplete",!0),remembermeAllowed:(0,a.C)("core","loginCanRememberme",!0),resetPasswordTarget:(0,a.C)("core","resetPasswordTarget",""),resetPasswordUser:(0,a.C)("core","resetPasswordUser",""),directLogin:"1"===we.direct,hasPasswordless:(0,a.C)("core","webauthn-available",!1),countAlternativeLogins:(0,a.C)("core","countAlternativeLogins",!1),alternativeLogins:(0,a.C)("core","alternativeLogins",[]),isHttps:"https:"===window.location.protocol,isLocalhost:"localhost"===window.location.hostname,hideLoginForm:(0,a.C)("core","hideLoginForm",!1),emailStates:(0,a.C)("core","emailStates",[])}),methods:{passwordResetFinished(){window.location.href=(0,l.Jv)("login")+"?direct=1"}}};var _e=s(11999),xe={};xe.styleTagTransform=T(),xe.setAttributes=k(),xe.insert=x().bind(null,"head"),xe.domAPI=A(),xe.insertStyleElement=E(),b()(_e.A,xe),_e.A&&_e.A.locals&&_e.A.locals;const Ce=(0,j.A)(Ae,function(){var e=this,t=e._self._c;return t("div",{staticClass:"guest-box login-box"},[!e.hideLoginForm||e.directLogin?[t("transition",{attrs:{name:"fade",mode:"out-in"}},[e.passwordlessLogin||e.resetPassword||""!==e.resetPasswordTarget?!e.loading&&e.passwordlessLogin?t("div",{key:"reset-pw-less",staticClass:"login-additional login-box__wrapper"},[t("PasswordLessLoginForm",{attrs:{username:e.user,"redirect-url":e.redirectUrl,"auto-complete-allowed":e.autoCompleteAllowed,"is-https":e.isHttps,"is-localhost":e.isLocalhost},on:{"update:username":function(t){e.user=t},submit:function(t){e.loading=!0}}}),e._v(" "),t("NcButton",{attrs:{variant:"tertiary","aria-label":e.t("core","Back to login form"),wide:!0},on:{click:function(t){e.passwordlessLogin=!1}}},[e._v("\n\t\t\t\t\t"+e._s(e.t("core","Back"))+"\n\t\t\t\t")])],1):!e.loading&&e.canResetPassword?t("div",{key:"reset-can-reset",staticClass:"login-additional"},[t("div",{staticClass:"lost-password-container"},[e.resetPassword?t("ResetPassword",{attrs:{username:e.user,"reset-password-link":e.resetPasswordLink},on:{"update:username":function(t){e.user=t},abort:function(t){e.resetPassword=!1}}}):e._e()],1)]):""!==e.resetPasswordTarget?t("div",[t("UpdatePassword",{attrs:{username:e.user,"reset-password-target":e.resetPasswordTarget},on:{"update:username":function(t){e.user=t},done:e.passwordResetFinished}})],1):e._e():t("div",{staticClass:"login-box__wrapper"},[t("LoginForm",{attrs:{username:e.user,"redirect-url":e.redirectUrl,"direct-login":e.directLogin,messages:e.messages,errors:e.errors,"throttle-delay":e.throttleDelay,"auto-complete-allowed":e.autoCompleteAllowed,"rememberme-allowed":e.remembermeAllowed,"email-states":e.emailStates},on:{"update:username":function(t){e.user=t},submit:function(t){e.loading=!0}}}),e._v(" "),e.hasPasswordless?t("NcButton",{attrs:{variant:"tertiary",wide:""},on:{click:function(t){t.preventDefault(),e.passwordlessLogin=!0}}},[e._v("\n\t\t\t\t\t"+e._s(e.t("core","Log in with a device"))+"\n\t\t\t\t")]):e._e(),e._v(" "),e.canResetPassword&&""!==e.resetPasswordLink?t("NcButton",{attrs:{id:"lost-password",href:e.resetPasswordLink,variant:"tertiary-no-background",wide:""}},[e._v("\n\t\t\t\t\t"+e._s(e.t("core","Forgot password?"))+"\n\t\t\t\t")]):e.canResetPassword&&!e.resetPassword?t("NcButton",{attrs:{id:"lost-password",variant:"tertiary",wide:""},on:{click:function(t){t.preventDefault(),e.resetPassword=!0}}},[e._v("\n\t\t\t\t\t"+e._s(e.t("core","Forgot password?"))+"\n\t\t\t\t")]):e._e()],1)])]:[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("NcNoteCard",{attrs:{type:"info",title:e.t("core","Login form is disabled.")}},[e._v("\n\t\t\t\t"+e._s(e.t("core","The Nextcloud login form is disabled. Use another login option if available or contact your administration."))+"\n\t\t\t")])],1)],e._v(" "),t("div",{staticClass:"login-box__alternative-logins",attrs:{id:"alternative-logins"}},e._l(e.alternativeLogins,function(n,r){return t("NcButton",{key:r,class:[n.class],attrs:{variant:"secondary",wide:!0,role:"link",href:n.href}},[e._v("\n\t\t\t"+e._s(n.name)+"\n\t\t")])}),1)],2)},[],!1,null,"518c0816",null).exports;var ke=s(61338),Pe=s(71225);const Ee=!!window._oc_isadmin,Se=window.oc_appconfig||{};var Te=s(74692),Ne=s.n(Te);let Oe=!1;const je={enableDynamicSlideToggle(){Oe=!0},showAppSidebar:function(e){(e||Ne()("#app-sidebar")).removeClass("disappear").show(),Ne()("#app-content").trigger(new(Ne().Event)("appresized"))},hideAppSidebar:function(e){(e||Ne()("#app-sidebar")).hide().addClass("disappear"),Ne()("#app-content").trigger(new(Ne().Event)("appresized"))}},Ie=je,Le=void 0!==window._oc_appswebroots&&window._oc_appswebroots;var Me=s(21391),Re=s.n(Me),Be=s(78112),Fe=s(86860);const He={create:"POST",update:"PROPPATCH",patch:"PROPPATCH",delete:"DELETE",read:"PROPFIND"};function Ue(e,t){if(Fe.default.isArray(e))return Fe.default.map(e,function(e){return Ue(e,t)});const n={href:e.href};return Fe.default.each(e.propStat,function(e){if("HTTP/1.1 200 OK"===e.status)for(const r in e.properties){let s=r;r in t&&(s=t[r]),n[s]=e.properties[r]}}),n.id||(n.id=De(n.href)),n}function De(e){const t=e.indexOf("?");t>0&&(e=e.substr(0,t));const n=e.split("/");let r;do{r=n[n.length-1],n.pop()}while(!r&&n.length>0);return r}function ze(e){return e>=200&&e<=299}function qe(e,t,n,r){return e.propPatch(t.url,function(e,t){const n={};let r;for(r in e){let s=t[r],i=e[r];s||(te.warn('No matching DAV property for property "'+r),s=r),(Fe.default.isBoolean(i)||Fe.default.isNumber(i))&&(i=""+i),n[s]=i}return n}(n.changed,t.davProperties),r).then(function(e){ze(e.status)?Fe.default.isFunction(t.success)&&t.success(n.toJSON()):Fe.default.isFunction(t.error)&&t.error(e)})}const $e=Re().noConflict();Object.assign($e,{davCall:function(e,t){const n=new Be.dav.Client({baseUrl:e.url,xmlNamespaces:Fe.default.extend({"DAV:":"d","http://owncloud.org/ns":"oc"},e.xmlNamespaces||{})});n.resolveUrl=function(){return e.url};const r=Fe.default.extend({"X-Requested-With":"XMLHttpRequest",requesttoken:OC.requestToken},e.headers);return"PROPFIND"===e.type?function(e,t,n,r){return e.propFind(t.url,Fe.default.values(t.davProperties)||[],t.depth,r).then(function(e){if(ze(e.status)){if(Fe.default.isFunction(t.success)){const n=Fe.default.invert(t.davProperties),r=Ue(e.body,n);t.depth>0&&r.shift(),t.success(r)}}else Fe.default.isFunction(t.error)&&t.error(e)})}(n,e,0,r):"PROPPATCH"===e.type?qe(n,e,t,r):"MKCOL"===e.type?function(e,t,n,r){return e.request(t.type,t.url,r,null).then(function(s){ze(s.status)?qe(e,t,n,r):Fe.default.isFunction(t.error)&&t.error(s)})}(n,e,t,r):function(e,t,n,r){return r["Content-Type"]="application/json",e.request(t.type,t.url,r,t.data).then(function(e){if(ze(e.status)){if(Fe.default.isFunction(t.success)){if("PUT"===t.type||"POST"===t.type||"MKCOL"===t.type){const r=e.body||n.toJSON(),s=e.xhr.getResponseHeader("Content-Location");return"POST"===t.type&&s&&(r.id=De(s)),void t.success(r)}if(207===e.status){const n=Fe.default.invert(t.davProperties);t.success(Ue(e.body,n))}else t.success(e.body)}}else Fe.default.isFunction(t.error)&&t.error(e)})}(n,e,t,r)},davSync:function(e){return(t,n,r)=>{const s={type:He[t]||t},i=n instanceof e.Collection;if("update"===t&&(n.hasInnerCollection?s.type="MKCOL":(n.usePUT||n.collection&&n.collection.usePUT)&&(s.type="PUT")),r.url||(s.url=Fe.default.result(n,"url")||function(){throw new Error('A "url" property or function must be specified')}()),null!=r.data||!n||"create"!==t&&"update"!==t&&"patch"!==t||(s.data=JSON.stringify(r.attrs||n.toJSON(r))),"PROPFIND"!==s.type&&(s.processData=!1),"PROPFIND"===s.type||"PROPPATCH"===s.type){let e=n.davProperties;!e&&n.model&&(e=n.model.prototype.davProperties),e&&(Fe.default.isFunction(e)?s.davProperties=e.call(n):s.davProperties=e),s.davProperties=Fe.default.extend(s.davProperties||{},r.davProperties),Fe.default.isUndefined(r.depth)&&(r.depth=i?1:0)}const o=r.error;r.error=function(e,t,n){r.textStatus=t,r.errorThrown=n,o&&o.call(r.context,e,t,n)};const a=r.xhr=e.davCall(Fe.default.extend(s,r),n);return n.trigger("request",n,a,r),a}}($e)});const Ve=$e;var Ye=s(87485);const Ke=window._oc_config||{},We=document.getElementsByTagName("head")[0].getAttribute("data-user"),Je=document.getElementsByTagName("head")[0].getAttribute("data-user-displayname"),Ge=void 0!==We&&We,Xe=window._oc_debug;var Qe=s(21363),Ze=s(85168),et=s(98469),tt=s(43627);const nt={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,alert:function(e,t,n,r){this.message(e,t,"alert",nt.OK_BUTTON,n,r)},info:function(e,t,n,r){this.message(e,t,"info",nt.OK_BUTTON,n,r)},confirm:function(e,t,n,r){return this.message(e,t,"notice",nt.YES_NO_BUTTONS,n,r)},confirmDestructive:function(e,t,n=nt.OK_BUTTONS,r=()=>{}){return(new Ze.ik).setName(t).setText(e).setButtons(n===nt.OK_BUTTONS?[{label:(0,h.t)("core","Yes"),variant:"error",callback:()=>{r.clicked=!0,r(!0)}}]:nt._getLegacyButtons(n,r)).build().show().then(()=>{r.clicked||r(!1)})},confirmHtml:function(e,t,n){return(new Ze.ik).setName(t).setText("").setButtons([{label:(0,h.t)("core","No"),callback:()=>{}},{label:(0,h.t)("core","Yes"),variant:"primary",callback:()=>{n.clicked=!0,n(!0)}}]).build().setHTML(e).show().then(()=>{n.clicked||n(!1)})},prompt:function(e,t,n,r,i,a){return new Promise(r=>{(0,et.S)((0,o.$V)(()=>Promise.all([s.e(4208),s.e(9553)]).then(s.bind(s,99553))),{text:e,name:t,callback:n,inputName:i,isPassword:!!a},(...e)=>{n(...e),r()})})},filepicker(e,t,n=!1,r=void 0,s=void 0,i=Ze.bh.Choose,o=void 0,a=void 0){const l=(e,t)=>{const r=e=>{const t=e?.root||"";let n=e?.path||"";return n.startsWith(t)&&(n=n.slice(t.length)||"/"),n};return n?n=>e(n.map(r),t):n=>e(r(n[0]),t)},c=(0,Ze.a1)(e);i===this.FILEPICKER_TYPE_CUSTOM?(a.buttons||[]).forEach(e=>{c.addButton({callback:l(t,e.type),label:e.text,variant:e.defaultButton?"primary":"secondary"})}):c.setButtonFactory((e,n)=>{const r=[],[s]=e,o=s?.displayname||s?.basename||(0,tt.basename)(n);return i===Ze.bh.Choose&&r.push({callback:l(t,Ze.bh.Choose),label:s&&!this.multiSelect?(0,h.t)("core","Choose {file}",{file:o}):(0,h.t)("core","Choose"),variant:"primary"}),i!==Ze.bh.CopyMove&&i!==Ze.bh.Copy||r.push({callback:l(t,Ze.bh.Copy),label:o?(0,h.t)("core","Copy to {target}",{target:o}):(0,h.t)("core","Copy"),variant:"primary",icon:Qe}),i!==Ze.bh.Move&&i!==Ze.bh.CopyMove||r.push({callback:l(t,Ze.bh.Move),label:o?(0,h.t)("core","Move to {target}",{target:o}):(0,h.t)("core","Move"),variant:i===Ze.bh.Move?"primary":"secondary",icon:'<svg xmlns="http://www.w3.org/2000/svg" id="mdi-folder-move" viewBox="0 0 24 24"><path d="M14,18V15H10V11H14V8L19,13M20,6H12L10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6Z" /></svg>'}),r}),r&&c.setMimeTypeFilter("string"==typeof r?[r]:r||[]),"function"==typeof a?.filter&&c.setFilter(e=>a.filter((e=>({id:e.fileid||null,path:e.path,mimetype:e.mime||null,mtime:e.mtime?.getTime()||null,permissions:e.permissions,name:e.attributes?.displayName||e.basename,etag:e.attributes?.etag||null,hasPreview:e.attributes?.hasPreview||null,mountType:e.attributes?.mountType||null,quotaAvailableBytes:e.attributes?.quotaAvailableBytes||null,icon:null,sharePermissions:null}))(e))),c.allowDirectories(!0===a?.allowDirectoryChooser||r?.includes("httpd/unix-directory")||!1).setMultiSelect(n).startAt(o).build().pick()},message:function(e,t,n,r,s=()=>{},i,o){const a=(new Ze.ik).setName(t).setText(o?"":e).setButtons(nt._getLegacyButtons(r,s));switch(n){case"alert":a.setSeverity("warning");break;case"notice":a.setSeverity("info")}const l=a.build();return o&&l.setHTML(e),l.show().then(()=>{s._clicked||s(!1)})},_getLegacyButtons(e,t){const n=[];switch("object"==typeof e?e.type:e){case nt.YES_NO_BUTTONS:n.push({label:e?.cancel??(0,h.t)("core","No"),callback:()=>{t._clicked=!0,t(!1)}}),n.push({label:e?.confirm??(0,h.t)("core","Yes"),variant:"primary",callback:()=>{t._clicked=!0,t(!0)}});break;case nt.OK_BUTTONS:n.push({label:e?.confirm??(0,h.t)("core","OK"),variant:"primary",callback:()=>{t._clicked=!0,t(!0)}});break;default:te.error("Invalid call to OC.dialogs")}return n},_fileexistsshown:!1,fileexists:function(e,t,r,s){const i=this,o=new(Ne().Deferred),a=function(t,n,r){const s=t.find(".template").clone().removeClass("template").addClass("conflict"),i=s.find(".original"),o=s.find(".replacement");s.data("data",e),s.find(".filename").text(n.name),i.find(".size").text(Lt.Util.humanFileSize(n.size)),i.find(".mtime").text(Lt.Util.formatDate(n.mtime)),r.size&&r.lastModified&&(o.find(".size").text(Lt.Util.humanFileSize(r.size)),o.find(".mtime").text(Lt.Util.formatDate(r.lastModified)));let a=n.directory+"/"+n.name;const l={file:a,x:96,y:96,c:n.etag,forceIcon:0};let c=Files.generatePreviewUrl(l);c=c.replace(/'/g,"%27"),i.find(".icon").css({"background-image":"url('"+c+"')"}),function(e){const t=new(Ne().Deferred),n=e.type&&e.type.split("/").shift();if(window.FileReader&&"image"===n){const n=new FileReader;n.onload=function(e){const n=new Blob([e.target.result]);window.URL=window.URL||window.webkitURL;const r=window.URL.createObjectURL(n),s=new Image;s.src=r,s.onload=function(){const e=function(e){const t=document.createElement("canvas"),n=e.width,r=e.height;let s,i;n>r?(i=0,s=(n-r)/2):(i=(r-n)/2,s=0);const o=Math.min(n,r);return t.width=o,t.height=o,t.getContext("2d").drawImage(e,s,i,o,o,0,0,o,o),function(e,t,n,r,s){r=Math.round(r),s=Math.round(s);const i=e.getContext("2d").getImageData(0,0,t,n),o=e.getContext("2d").getImageData(0,0,r,s),a=i.data,l=o.data,c=t/r,u=n/s,d=Math.ceil(c/2),h=Math.ceil(u/2);for(let e=0;e<s;e++)for(let n=0;n<r;n++){const s=4*(n+e*r);let i=0,o=0,p=0,f=0,m=0,g=0,v=0;const y=(e+.5)*u;for(let r=Math.floor(e*u);r<(e+1)*u;r++){const e=Math.abs(y-(r+.5))/h,s=(n+.5)*c,l=e*e;for(let e=Math.floor(n*c);e<(n+1)*c;e++){let n=Math.abs(s-(e+.5))/d;const c=Math.sqrt(l+n*n);c>=-1&&c<=1&&(i=2*c*c*c-3*c*c+1,i>0&&(n=4*(e+r*t),v+=i*a[n+3],p+=i,a[n+3]<255&&(i=i*a[n+3]/250),f+=i*a[n],m+=i*a[n+1],g+=i*a[n+2],o+=i))}}l[s]=f/o,l[s+1]=m/o,l[s+2]=g/o,l[s+3]=v/p}e.getContext("2d").clearRect(0,0,Math.max(t,r),Math.max(n,s)),e.width=r,e.height=s,e.getContext("2d").putImageData(o,0,0)}(t,o,o,96,96),t.toDataURL("image/png",.7)}(s);t.resolve(e)}},n.readAsArrayBuffer(e)}else t.reject();return t}(r).then(function(e){o.find(".icon").css("background-image","url("+e+")")},function(){a=Lt.MimeType.getIconUrl(r.type),o.find(".icon").css("background-image","url("+a+")")});const u=t.find(".conflict").length;i.find("input:checkbox").attr("id","checkbox_original_"+u),o.find("input:checkbox").attr("id","checkbox_replacement_"+u),t.append(s),r.lastModified>n.mtime?o.find(".mtime").css("font-weight","bold"):r.lastModified<n.mtime&&i.find(".mtime").css("font-weight","bold"),r.size&&r.size>n.size?o.find(".size").css("font-weight","bold"):r.size&&r.size<n.size&&i.find(".size").css("font-weight","bold"),"readonly"===n.status&&(i.addClass("readonly").find('input[type="checkbox"]').prop("checked",!0).prop("disabled",!0),i.find(".message").text((0,h.t)("core","read-only")))},l="oc-dialog-fileexists-content",c="#"+l;if(this._fileexistsshown){const e=Ne()(c+" .conflicts");a(e,t,r);const s=Ne()(c+" .conflict").length,i=n("core","{count} file conflict","{count} file conflicts",s,{count:s});Ne()(c).parent().children(".oc-dialog-title").text(i),Ne()(window).trigger("resize"),o.resolve()}else this._fileexistsshown=!0,Ne().when(this._getFileExistsTemplate()).then(function(n){const u=(0,h.t)("core","One file conflict"),d=n.octemplate({dialog_name:l,title:u,type:"fileexists",allnewfiles:(0,h.t)("core","New Files"),allexistingfiles:(0,h.t)("core","Already existing files"),why:(0,h.t)("core","Which files do you want to keep?"),what:(0,h.t)("core","If you select both versions, the copied file will have a number added to its name.")});if(Ne()("body").append(d),t&&r){const e=d.find(".conflicts");a(e,t,r)}const p=[{text:(0,h.t)("core","Cancel"),classes:"cancel",click:function(){void 0!==s.onCancel&&s.onCancel(e),Ne()(c).ocdialog("close")}},{text:(0,h.t)("core","Continue"),classes:"continue",click:function(){void 0!==s.onContinue&&s.onContinue(Ne()(c+" .conflict")),Ne()(c).ocdialog("close")}}];Ne()(c).ocdialog({width:500,closeOnEscape:!0,modal:!0,buttons:p,closeButton:null,close:function(){i._fileexistsshown=!1;try{Ne()(this).ocdialog("destroy").remove()}catch{}}}),Ne()(c).css("height","auto");const f=d.closest(".oc-dialog").find("button.continue");function m(){const e=d.find(".conflicts .checkbox:checked").length;f.prop("disabled",0===e)}f.prop("disabled",!0),Ne()(c).find(".allnewfiles").on("click",function(){Ne()(c).find('.conflict .replacement input[type="checkbox"]').prop("checked",Ne()(this).prop("checked"))}),Ne()(c).find(".allexistingfiles").on("click",function(){Ne()(c).find('.conflict .original:not(.readonly) input[type="checkbox"]').prop("checked",Ne()(this).prop("checked"))}),Ne()(c).find(".conflicts").on("click",".replacement,.original:not(.readonly)",function(){const e=Ne()(this).find('input[type="checkbox"]');e.prop("checked",!e.prop("checked"))}),Ne()(c).find(".conflicts").on("click",'.replacement input[type="checkbox"],.original:not(.readonly) input[type="checkbox"]',function(){const e=Ne()(this);e.prop("checked",!e.prop("checked"))}),Ne()(c).on("click",".replacement,.allnewfiles",function(){const e=Ne()(c).find('.conflict .replacement input[type="checkbox"]:checked').length;e===Ne()(c+" .conflict").length?(Ne()(c).find(".allnewfiles").prop("checked",!0),Ne()(c).find(".allnewfiles + .count").text((0,h.t)("core","(all selected)"))):e>0?(Ne()(c).find(".allnewfiles").prop("checked",!1),Ne()(c).find(".allnewfiles + .count").text((0,h.t)("core","({count} selected)",{count:e}))):(Ne()(c).find(".allnewfiles").prop("checked",!1),Ne()(c).find(".allnewfiles + .count").text("")),m()}),Ne()(c).on("click",".original,.allexistingfiles",function(){const e=Ne()(c).find('.conflict .original input[type="checkbox"]:checked').length;e===Ne()(c+" .conflict").length?(Ne()(c).find(".allexistingfiles").prop("checked",!0),Ne()(c).find(".allexistingfiles + .count").text((0,h.t)("core","(all selected)"))):e>0?(Ne()(c).find(".allexistingfiles").prop("checked",!1),Ne()(c).find(".allexistingfiles + .count").text((0,h.t)("core","({count} selected)",{count:e}))):(Ne()(c).find(".allexistingfiles").prop("checked",!1),Ne()(c).find(".allexistingfiles + .count").text("")),m()}),o.resolve()}).fail(function(){o.reject(),alert((0,h.t)("core","Error loading file exists template"))});return o.promise()},_getFileExistsTemplate:function(){const e=Ne().Deferred();if(this.$fileexistsTemplate)e.resolve(this.$fileexistsTemplate);else{const t=this;Ne().get(Lt.filePath("core","templates/legacy","fileexists.html"),function(n){t.$fileexistsTemplate=Ne()(n),e.resolve(t.$fileexistsTemplate)}).fail(function(){e.reject()})}return e.promise()}},rt=nt;function st(){return document.head.dataset.requesttoken}function it(e,t){let n,r,s="";if(this.typelessListeners=[],this.closed=!1,this.listeners={},t)for(n in t)s+=n+"="+encodeURIComponent(t[n])+"&";if(s+="requesttoken="+encodeURIComponent(st()),this.useFallBack||"undefined"==typeof EventSource){const t="oc_eventsource_iframe_"+it.iframeCount;it.fallBackSources[it.iframeCount]=this;const n=document.createElement("iframe");n.id=t,n.style.display="none",r="&",-1===e.indexOf("?")&&(r="?"),n.src=e+r+"fallback=true&fallback_id="+it.iframeCount+"&"+s,this.iframe=n,document.body.appendChild(this.iframe),this.useFallBack=!0,it.iframeCount++}else r="&",-1===e.indexOf("?")&&(r="?"),this.source=new EventSource(e+r+s),this.source.onmessage=function(e){for(let 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))}it.fallBackSources=[],it.iframeCount=0,it.fallBackCallBack=function(e,t,n){it.fallBackSources[e].fallBackCallBack(t,n)},it.prototype={typelessListeners:[],iframe:null,listeners:{},useFallBack:!1,fallBackCallBack:function(e,t){let 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()}};const ot=it;var at=s(93633),lt=s.n(at);const ct={load:h.Zi,register:h.kz,_unregister:h.ht,translate:h.Tl,translatePlural:h.zw};lt().registerHelper("t",function(e,t){return(0,h.Tl)(e,t)});let ut=null,dt=null;function ht(e){if(ut){const t=ut;ut.trigger(new(Ne().Event)("beforeHide")),ut.slideUp(50,function(){t.trigger(new(Ne().Event)("afterHide")),e&&e.apply(this,arguments)})}Ne()(".menutoggle").attr("aria-expanded",!1),dt&&dt.attr("aria-expanded",!1),Ne()(".openedMenu").removeClass("openedMenu"),ut=null,dt=null}const pt=new Map;function ft(e){if(void 0!==e){for(;e in window.OC.MimeTypeList.aliases;)e=window.OC.MimeTypeList.aliases[e];if(!pt.has(e)){let t=!1,n="";if(""!==OC.theme.folder&&Array.isArray(OC.MimeTypeList.themes[OC.theme.folder])){n=(0,l.aU)()+"/themes/"+window.OC.theme.folder+"/core/img/filetypes/";const r=mt(e,window.OC.MimeTypeList.themes[OC.theme.folder]);r&&(t=!0,n+=r+".svg")}t||(n=(0,l.Jv)("/apps/theming/img/core/filetypes/"+mt(e,window.OC.MimeTypeList.files)+".svg")),n+="?v="+window.OCA.Theming.cacheBuster,pt.set(e,n)}return pt.get(e)}}function mt(e,t){const n=e.replace(new RegExp("/","g"),"-");return"dir"===e&&t.includes("folder")?"folder":"dir-encrypted"===e&&t.includes("folder-encrypted")?"folder-encrypted":"dir-shared"===e&&t.includes("folder-shared")?"folder-shared":"dir-public"===e&&t.includes("folder-public")?"folder-public":"dir-external"!==e&&"dir-external-root"!==e||!t.includes("folder-external")?t.includes(n)?n:t.includes(n.split("-")[0])?n.split("-")[0]:t.includes("file")?"file":null:"folder-external"}function gt(){pt.clear()}const vt={startSaving(e){this.startAction(e,(0,h.t)("core","Saving …"))},startAction(e,t){const n=document.querySelector(e);n&&n instanceof HTMLElement&&(n.textContent=t,n.classList.remove("success"),n.classList.remove("error"),n.getAnimations?.().forEach(e=>e.cancel()),n.style.display="block")},finishedSaving(e,t){this.finishedAction(e,t)},finishedAction(e,t){"success"===t.status?this.finishedSuccess(e,t.data.message):this.finishedError(e,t.data.message)},finishedSuccess(e,t){const n=document.querySelector(e);n&&n instanceof HTMLElement&&(n.textContent=t,n.classList.remove("error"),n.classList.add("success"),n.getAnimations?.().forEach(e=>e.cancel()),window.setTimeout(function(){if(!(n&&n instanceof HTMLElement))return;const e=n.animate?.([{opacity:1},{opacity:0}],{duration:900,fill:"forwards"});e?e.addEventListener("finish",()=>{n.style.display="none"}):window.setTimeout(()=>{n.style.display="none"},900)},3e3),n.style.display="block")},finishedError(e,t){const n=document.querySelector(e);n&&n instanceof HTMLElement&&(n.textContent=t,n.classList.remove("success"),n.classList.add("error"),n.style.display="block")}},yt={updatableNotification:null,getDefaultNotificationFunction:null,setDefault(e){this.getDefaultNotificationFunction=e},hide(e,t){Fe.default.isFunction(e)&&(t=e,e=void 0),e?(e.each(function(){Ne()(this)[0].toastify?Ne()(this)[0].toastify.hideToast():te.error("cannot hide toast because object is not set"),this===this.updatableNotification&&(this.updatableNotification=null)}),t&&t.call(),this.getDefaultNotificationFunction&&this.getDefaultNotificationFunction()):te.error("Missing argument $row in OC.Notification.hide() call, caller needs to be adjusted to only dismiss its own notification")},showHtml(e,t){(t=t||{}).isHTML=!0,t.timeout=t.timeout?t.timeout:Ze.DH;const n=(0,Ze.rG)(e,t);return n.toastElement.toastify=n,Ne()(n.toastElement)},show(e,t){(t=t||{}).timeout=t.timeout?t.timeout:Ze.DH;const n=(0,Ze.rG)(function(e){return e.toString().split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;").split('"').join("&quot;").split("'").join("&#039;")}(e),t);return n.toastElement.toastify=n,Ne()(n.toastElement)},showUpdate(e){return this.updatableNotification&&this.updatableNotification.hideToast(),this.updatableNotification=(0,Ze.rG)(e,{timeout:Ze.DH}),this.updatableNotification.toastElement.toastify=this.updatableNotification,Ne()(this.updatableNotification.toastElement)},showTemporary(e,t){(t=t||{}).timeout=t.timeout||Ze.aR;const n=(0,Ze.rG)(e,t);return n.toastElement.toastify=n,Ne()(n.toastElement)},isHidden:()=>!Ne()("#content").find(".toastify").length};var bt=s(47176);const wt={requiresPasswordConfirmation:()=>(0,bt.oB)(),requirePasswordConfirmation(e,t,n){(0,bt.C5)().then(e,n)}},At={_plugins:{},register(e,t){let n=this._plugins[e];n||(n=this._plugins[e]=[]),n.push(t)},getPlugins(e){return this._plugins[e]||[]},attach(e,t,n){const r=this.getPlugins(e);for(let e=0;e<r.length;e++)r[e].attach&&r[e].attach(t,n)},detach(e,t,n){const r=this.getPlugins(e);for(let e=0;e<r.length;e++)r[e].detach&&r[e].detach(t,n)}},_t={_cachedGroups:null,escapeHTML:function(e){return e.toString().split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;").split('"').join("&quot;").split("'").join("&#039;")},async rebuildNavigation(){const{data:e}=await re.Ay.get((0,l.KT)("core/navigation",2)+"/apps?format=json");200===e.ocs.meta.statuscode&&((0,ke.Ic)("nextcloud:app-menu.refresh",{apps:e.ocs.data}),window.dispatchEvent(new Event("resize")))},setupGroupsSelect:function(e,n,r){const s=this;r=r||{},e.length>0&&Ne().ajax({url:(0,l.KT)("cloud/groups/details"),dataType:"json",success:function(i){const o=[];i.ocs.data.groups&&i.ocs.data.groups.length>0?(i.ocs.data.groups.forEach(function(e){r.excludeAdmins&&"admin"===e.id||o.push({id:e.id,displayname:e.displayname})}),e.select2(Fe.default.extend({placeholder:t("core","Groups"),allowClear:!0,multiple:!0,toggleSelect:!0,separator:"|",data:{results:o,text:"displayname"},initSelection:function(e,t){const n=Ne()(e).val();let r;n&&o.length>0?r=Fe.default.map(Fe.default.filter((n||[]).split("|").sort(),function(e){return void 0!==o.find(function(t){return t.id===e})}),function(e){return{id:e,displayname:o.find(function(t){return t.id===e}).displayname}}):n&&(r=Fe.default.map((n||[]).split("|").sort(),function(e){return{id:e,displayname:e}})),t(r)},formatResult:function(e){return s.escapeHTML(e.displayname)},formatSelection:function(e){return s.escapeHTML(e.displayname)},escapeMarkup:function(e){return e}},n||{}))):(OC.Notification.show(t("core","Group list is empty"),{type:"error"}),te.debug(i))},error:function(e){OC.Notification.show(t("core","Unable to retrieve the group list"),{type:"error"}),te.debug(e)}})}},xt=window._theme||{};s(96464);var Ct=s(380);Object.freeze({DEFAULT:"default",HIDDEN:"hidden"}),Ct.m,Object.freeze({UploadFromDevice:0,CreateNew:1,Other:2}),Object.freeze({ReservedName:"reserved name",Character:"character",Extension:"extension"}),Error;const kt=["B","KB","MB","GB","TB","PB"],Pt=["B","KiB","MiB","GiB","TiB","PiB"];Object.freeze({Name:"basename",Modified:"mtime",Size:"size"});var Et=s(95093),St=s.n(Et);const Tt={_handlers:[],_pushState(e,t,n){let r;if(r="string"==typeof e?e:Lt.buildQueryString(e),window.history.pushState){if(t=t||location.pathname+"?"+r,navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&parseInt(navigator.userAgent.split("/").pop())<51){const e=document.querySelectorAll('[fill^="url(#"], [stroke^="url(#"], [filter^="url(#invert"]');for(let t,n=0,r=e.length;n<r;n++)t=e[n],t.style.fill=t.style.fill,t.style.stroke=t.style.stroke,t.removeAttribute("filter"),t.setAttribute("filter","url(#invert)")}n?window.history.replaceState(e,"",t):window.history.pushState(e,"",t)}else window.location.hash="?"+r,this._cancelPop=!0},pushState(e,t){this._pushState(e,t,!1)},replaceState(e,t){this._pushState(e,t,!0)},addOnPopStateHandler(e){this._handlers.push(e)},_parseHashQuery(){const e=window.location.hash,t=e.indexOf("?");return t>=0?e.substr(t+1):e.length?e.substr(1):""},_decodeQuery:e=>e.replace(/\+/g," "),parseUrlQuery(){const e=this._parseHashQuery();let t;return e&&(t=Lt.parseQueryString(this._decodeQuery(e))),t=Fe.default.extend(t||{},Lt.parseQueryString(this._decodeQuery(location.search))),t||{}},_onPopState(e){if(this._cancelPop)return void(this._cancelPop=!1);let t;if(this._handlers.length){t=e&&e.state,Fe.default.isString(t)?t=Lt.parseQueryString(t):t||(t=this.parseUrlQuery()||{});for(let e=0;e<this._handlers.length;e++)this._handlers[e](t)}}};function Nt(e){const t=[];let n,r=0,s=-1,i=0;for(;r<e.length;){n=e.charAt(r);const o=!i&&"."===n||n>="0"&&n<="9";o!==i&&(s++,t[s]="",i=o),t[s]+=n,r++}return t}const Ot={History:Tt,humanFileSize:function(e,t=!1,n=!1,r=!1){n=n&&!r,"string"==typeof e&&(e=Number(e));let s=e>0?Math.floor(Math.log(e)/Math.log(r?1e3:1024)):0;s=Math.min((n?Pt.length:kt.length)-1,s);const i=n?Pt[s]:kt[s];let o=(e/Math.pow(r?1e3:1024,s)).toFixed(1);return!0===t&&0===s?("0.0"!==o?"< 1 ":"0 ")+(n?Pt[1]:kt[1]):(o=s<2?parseFloat(o).toFixed(0):parseFloat(o).toLocaleString((0,h.lO)()),o+" "+i)},computerFileSize(e){if("string"!=typeof e)return null;const t=e.toLowerCase().trim();let n=null;const r=t.match(/^[\s+]?([0-9]*)(\.([0-9]+))?( +)?([kmgtp]?b?)$/i);return null===r?null:(n=parseFloat(t),isFinite(n)?(r[5]&&(n*={b:1,k:1024,kb:1024,mb:1048576,m:1048576,gb:1073741824,g:1073741824,tb:1099511627776,t:1099511627776,pb:0x4000000000000,p:0x4000000000000}[r[5]]),n=Math.round(n),n):null)},formatDate:(e,t)=>(void 0===window.TESTING&&Lt.debug&&te.warn("OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment"),t=t||"LLL",St()(e).format(t)),relativeModifiedDate(e){void 0===window.TESTING&&Lt.debug&&te.warn("OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment");const n=St()().diff(St()(e));return n>=0&&n<45e3?t("core","seconds ago"):St()(e).fromNow()},getScrollBarWidth(){if(this._scrollBarWidth)return this._scrollBarWidth;const e=document.createElement("p");e.style.width="100%",e.style.height="200px";const t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.appendChild(e),document.body.appendChild(t);const n=e.offsetWidth;t.style.overflow="scroll";let r=e.offsetWidth;return n===r&&(r=t.clientWidth),document.body.removeChild(t),this._scrollBarWidth=n-r,this._scrollBarWidth},stripTime:e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),naturalSortCompare(e,t){let n;const r=Nt(e),s=Nt(t);for(n=0;r[n]&&s[n];n++)if(r[n]!==s[n]){const e=Number(r[n]),t=Number(s[n]);return e==r[n]&&t==s[n]?e-t:r[n].localeCompare(s[n],Lt.getLanguage())}return r.length-s.length},waitFor(e,t){const n=function(){!0!==e()&&setTimeout(n,t)};n()},isCookieSetToValue(e,t){const n=document.cookie.split(";");for(let r=0;r<n.length;r++){const s=n[r].split("=");if(s[0].trim()===e&&s[1].trim()===t)return!0}return!1}};let jt=window._oc_webroot;if(void 0===jt){jt=location.pathname;const e=jt.indexOf("/index.php/");jt=-1!==e?jt.substr(0,e):jt.substr(0,jt.lastIndexOf("/"))}const It=jt,Lt={coreApps:["","admin","log","core/search","core","3rdparty"],menuSpeed:50,PERMISSION_ALL:31,PERMISSION_CREATE:4,PERMISSION_DELETE:8,PERMISSION_NONE:0,PERMISSION_READ:1,PERMISSION_SHARE:16,PERMISSION_UPDATE:2,TAG_FAVORITE:"_$!<Favorite>!$_",Apps:Ie,appConfig:Se,appswebroots:Le,Backbone:Ve,config:Ke,currentUser:Ge,dialogs:rt,EventSource:ot,MimeType:i,getCurrentUser:function(){return{uid:Ge,displayName:Je}},isUserAdmin:()=>Ee,L10N:ct,registerXHRForErrorProcessing:()=>{},getCapabilities:function(){return OC.debug&&te.warn("OC.getCapabilities is deprecated and will be removed in Nextcloud 21. See @nextcloud/capabilities"),(0,Ye.F)()},hideMenus:ht,registerMenu:function(e,t,n,r){t.addClass("menu");const s="A"===e.prop("tagName")||"BUTTON"===e.prop("tagName");e.on(s?"click.menu":"click.menu keyup.menu",function(s){s.preventDefault(),s.key&&"Enter"!==s.key||(t.is(ut)?ht():(ut&&ht(),!0===r&&t.parent().addClass("openedMenu"),e.attr("aria-expanded",!0),t.slideToggle(50,n),ut=t,dt=e))})},showMenu:function(e,t,n){t.is(ut)||(ht(),ut=t,dt=e,t.trigger(new(Ne().Event)("beforeShow")),t.show(),t.trigger(new(Ne().Event)("afterShow")),Fe.default.isFunction(n)&&n())},unregisterMenu:function(e,t){t.is(ut)&&ht(),e.off("click.menu").removeClass("menutoggle"),t.removeClass("menu")},basename:Pe.P8,encodePath:Pe.O0,dirname:Pe.pD,isSamePath:Pe.ys,joinPaths:Pe.fj,getCanonicalLocale:h.lO,getLocale:h.JK,getLanguage:h.Z0,buildQueryString:function(e){return e?new URLSearchParams(e).toString():""},parseQueryString:function(e){const t=new URLSearchParams(e);return Object.fromEntries(t.entries())},msg:vt,Notification:yt,PasswordConfirmation:wt,Plugins:At,Settings:_t,theme:xt,Util:Ot,debug:Xe,filePath:l.fg,generateUrl:l.Jv,getRootPath:l.aU,imagePath:l.d0,requestToken:st(),linkTo:l.uM,linkToOCS:(e,t)=>(0,l.KT)(e,{},{ocsVersion:t||1})+"/",linkToRemote:l.dC,linkToRemoteBase:function(e){return(0,l.aU)()+"/remote.php/"+e},webroot:It};(0,ke.B1)("csrf-token-update",e=>{OC.requestToken=e.token,te.info("OC.requestToken changed",{token:e.token})});const Mt={data:()=>({OC:Lt}),methods:{t:ct.translate.bind(ct),n:ct.translatePlural.bind(ct)}};o.Ay.mixin(Mt),(new(o.Ay.extend(Ce))).$mount("#login")},21391(e,t,n){var r,s,i;i="object"==typeof self&&self.self===self&&self||"object"==typeof globalThis&&globalThis.global===globalThis&&globalThis,r=[n(86860),n(74692),t],s=function(e,t,n){i.Backbone=function(e,t,n,r){var s=e.Backbone,i=Array.prototype.slice;t.VERSION="1.6.1",t.$=r,t.noConflict=function(){return e.Backbone=s,this},t.emulateHTTP=!1,t.emulateJSON=!1;var o,a=t.Events={},l=/\s+/,c=function(e,t,r,s,i){var o,a=0;if(r&&"object"==typeof r){void 0!==s&&"context"in i&&void 0===i.context&&(i.context=s);for(o=n.keys(r);a<o.length;a++)t=c(e,t,o[a],r[o[a]],i)}else if(r&&l.test(r))for(o=r.split(l);a<o.length;a++)t=e(t,o[a],s,i);else t=e(t,r,s,i);return t};a.on=function(e,t,n){return this._events=c(u,this._events||{},e,t,{context:n,ctx:this,listening:o}),o&&((this._listeners||(this._listeners={}))[o.id]=o,o.interop=!1),this},a.listenTo=function(e,t,r){if(!e)return this;var s=e._listenId||(e._listenId=n.uniqueId("l")),i=this._listeningTo||(this._listeningTo={}),a=o=i[s];a||(this._listenId||(this._listenId=n.uniqueId("l")),a=o=i[s]=new g(this,e));var l=d(e,t,r,this);if(o=void 0,l)throw l;return a.interop&&a.on(t,r),this};var u=function(e,t,n,r){if(n){var s=e[t]||(e[t]=[]),i=r.context,o=r.ctx,a=r.listening;a&&a.count++,s.push({callback:n,context:i,ctx:i||o,listening:a})}return e},d=function(e,t,n,r){try{e.on(t,n,r)}catch(e){return e}};a.off=function(e,t,n){return this._events?(this._events=c(h,this._events,e,t,{context:n,listeners:this._listeners}),this):this},a.stopListening=function(e,t,r){var s=this._listeningTo;if(!s)return this;for(var i=e?[e._listenId]:n.keys(s),o=0;o<i.length;o++){var a=s[i[o]];if(!a)break;a.obj.off(t,r,this),a.interop&&a.off(t,r)}return n.isEmpty(s)&&(this._listeningTo=void 0),this};var h=function(e,t,r,s){if(e){var i,o=s.context,a=s.listeners,l=0;if(t||o||r){for(i=t?[t]:n.keys(e);l<i.length;l++){var c=e[t=i[l]];if(!c)break;for(var u=[],d=0;d<c.length;d++){var h=c[d];if(r&&r!==h.callback&&r!==h.callback._callback||o&&o!==h.context)u.push(h);else{var p=h.listening;p&&p.off(t,r)}}u.length?e[t]=u:delete e[t]}return e}for(i=n.keys(a);l<i.length;l++)a[i[l]].cleanup()}};a.once=function(e,t,n){var r=c(p,{},e,t,this.off.bind(this));return"string"==typeof e&&null==n&&(t=void 0),this.on(r,t,n)},a.listenToOnce=function(e,t,n){var r=c(p,{},t,n,this.stopListening.bind(this,e));return this.listenTo(e,r)};var p=function(e,t,r,s){if(r){var i=e[t]=n.once(function(){s(t,i),r.apply(this,arguments)});i._callback=r}return e};a.trigger=function(e){if(!this._events)return this;for(var t=Math.max(0,arguments.length-1),n=Array(t),r=0;r<t;r++)n[r]=arguments[r+1];return c(f,this._events,e,void 0,n),this};var f=function(e,t,n,r){if(e){var s=e[t],i=e.all;s&&i&&(i=i.slice()),s&&m(s,r),i&&m(i,[t].concat(r))}return e},m=function(e,t){var n,r=-1,s=e.length,i=t[0],o=t[1],a=t[2];switch(t.length){case 0:for(;++r<s;)(n=e[r]).callback.call(n.ctx);return;case 1:for(;++r<s;)(n=e[r]).callback.call(n.ctx,i);return;case 2:for(;++r<s;)(n=e[r]).callback.call(n.ctx,i,o);return;case 3:for(;++r<s;)(n=e[r]).callback.call(n.ctx,i,o,a);return;default:for(;++r<s;)(n=e[r]).callback.apply(n.ctx,t);return}},g=function(e,t){this.id=e._listenId,this.listener=e,this.obj=t,this.interop=!0,this.count=0,this._events=void 0};g.prototype.on=a.on,g.prototype.off=function(e,t){var n;this.interop?(this._events=c(h,this._events,e,t,{context:void 0,listeners:void 0}),n=!this._events):(this.count--,n=0===this.count),n&&this.cleanup()},g.prototype.cleanup=function(){delete this.listener._listeningTo[this.obj._listenId],this.interop||delete this.obj._listeners[this.id]},a.bind=a.on,a.unbind=a.off,n.extend(t,a);var v=t.Model=function(e,t){var r=e||{};t||(t={}),this.preinitialize.apply(this,arguments),this.cid=n.uniqueId(this.cidPrefix),this.attributes={},t.collection&&(this.collection=t.collection),t.parse&&(r=this.parse(r,t)||{});var s=n.result(this,"defaults");r=n.defaults(n.extend({},s,r),s),this.set(r,t),this.changed={},this.initialize.apply(this,arguments)};n.extend(v.prototype,a,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",preinitialize:function(){},initialize:function(){},toJSON:function(e){return n.clone(this.attributes)},sync:function(){return t.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return n.escape(this.get(e))},has:function(e){return null!=this.get(e)},matches:function(e){return!!n.iteratee(e,this)(this.attributes)},set:function(e,t,r){if(null==e)return this;var s;if("object"==typeof e?(s=e,r=t):(s={})[e]=t,r||(r={}),!this._validate(s,r))return!1;var i=r.unset,o=r.silent,a=[],l=this._changing;this._changing=!0,l||(this._previousAttributes=n.clone(this.attributes),this.changed={});var c=this.attributes,u=this.changed,d=this._previousAttributes;for(var h in s)t=s[h],n.isEqual(c[h],t)||a.push(h),n.isEqual(d[h],t)?delete u[h]:u[h]=t,i?delete c[h]:c[h]=t;if(this.idAttribute in s){var p=this.id;this.id=this.get(this.idAttribute),this.id!==p&&this.trigger("changeId",this,p,r)}if(!o){a.length&&(this._pending=r);for(var f=0;f<a.length;f++)this.trigger("change:"+a[f],this,c[a[f]],r)}if(l)return this;if(!o)for(;this._pending;)r=this._pending,this._pending=!1,this.trigger("change",this,r);return this._pending=!1,this._changing=!1,this},unset:function(e,t){return this.set(e,void 0,n.extend({},t,{unset:!0}))},clear:function(e){var t={};for(var r in this.attributes)t[r]=void 0;return this.set(t,n.extend({},e,{unset:!0}))},hasChanged:function(e){return null==e?!n.isEmpty(this.changed):n.has(this.changed,e)},changedAttributes:function(e){if(!e)return!!this.hasChanged()&&n.clone(this.changed);var t,r=this._changing?this._previousAttributes:this.attributes,s={};for(var i in e){var o=e[i];n.isEqual(r[i],o)||(s[i]=o,t=!0)}return!!t&&s},previous:function(e){return null!=e&&this._previousAttributes?this._previousAttributes[e]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(e){e=n.extend({parse:!0},e);var t=this,r=e.success;return e.success=function(n){var s=e.parse?t.parse(n,e):n;if(!t.set(s,e))return!1;r&&r.call(e.context,t,n,e),t.trigger("sync",t,n,e)},$(this,e),this.sync("read",this,e)},save:function(e,t,r){var s;null==e||"object"==typeof e?(s=e,r=t):(s={})[e]=t;var i=(r=n.extend({validate:!0,parse:!0},r)).wait;if(s&&!i){if(!this.set(s,r))return!1}else if(!this._validate(s,r))return!1;var o=this,a=r.success,l=this.attributes;r.success=function(e){o.attributes=l;var t=r.parse?o.parse(e,r):e;if(i&&(t=n.extend({},s,t)),t&&!o.set(t,r))return!1;a&&a.call(r.context,o,e,r),o.trigger("sync",o,e,r)},$(this,r),s&&i&&(this.attributes=n.extend({},l,s));var c=this.isNew()?"create":r.patch?"patch":"update";"patch"!==c||r.attrs||(r.attrs=s);var u=this.sync(c,this,r);return this.attributes=l,u},destroy:function(e){e=e?n.clone(e):{};var t=this,r=e.success,s=e.wait,i=function(){t.stopListening(),t.trigger("destroy",t,t.collection,e)};e.success=function(n){s&&i(),r&&r.call(e.context,t,n,e),t.isNew()||t.trigger("sync",t,n,e)};var o=!1;return this.isNew()?n.defer(e.success):($(this,e),o=this.sync("delete",this,e)),s||i(),o},url:function(){var e=n.result(this,"urlRoot")||n.result(this.collection,"url")||q();if(this.isNew())return e;var t=this.get(this.idAttribute);return e.replace(/[^\/]$/,"$&/")+encodeURIComponent(t)},parse:function(e,t){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(e){return this._validate({},n.extend({},e,{validate:!0}))},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=n.extend({},this.attributes,e);var r=this.validationError=this.validate(e,t)||null;return!r||(this.trigger("invalid",this,r,n.extend(t,{validationError:r})),!1)}});var y=t.Collection=function(e,t){t||(t={}),this.preinitialize.apply(this,arguments),t.model&&(this.model=t.model),void 0!==t.comparator&&(this.comparator=t.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,n.extend({silent:!0},t))},b={add:!0,remove:!0,merge:!0},w={add:!0,remove:!1},A=function(e,t,n){n=Math.min(Math.max(n,0),e.length);var r,s=Array(e.length-n),i=t.length;for(r=0;r<s.length;r++)s[r]=e[r+n];for(r=0;r<i;r++)e[r+n]=t[r];for(r=0;r<s.length;r++)e[r+i+n]=s[r]};n.extend(y.prototype,a,{model:v,preinitialize:function(){},initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return t.sync.apply(this,arguments)},add:function(e,t){return this.set(e,n.extend({merge:!1},t,w))},remove:function(e,t){t=n.extend({},t);var r=!n.isArray(e);e=r?[e]:e.slice();var s=this._removeModels(e,t);return!t.silent&&s.length&&(t.changes={added:[],merged:[],removed:s},this.trigger("update",this,t)),r?s[0]:s},set:function(e,t){if(null!=e){(t=n.extend({},b,t)).parse&&!this._isModel(e)&&(e=this.parse(e,t)||[]);var r=!n.isArray(e);e=r?[e]:e.slice();var s=t.at;null!=s&&(s=+s),s>this.length&&(s=this.length),s<0&&(s+=this.length+1);var i,o,a=[],l=[],c=[],u=[],d={},h=t.add,p=t.merge,f=t.remove,m=!1,g=this.comparator&&null==s&&!1!==t.sort,v=n.isString(this.comparator)?this.comparator:null;for(o=0;o<e.length;o++){i=e[o];var y=this.get(i);if(y){if(p&&i!==y){var w=this._isModel(i)?i.attributes:i;t.parse&&(w=y.parse(w,t)),y.set(w,t),c.push(y),g&&!m&&(m=y.hasChanged(v))}d[y.cid]||(d[y.cid]=!0,a.push(y)),e[o]=y}else h&&(i=e[o]=this._prepareModel(i,t))&&(l.push(i),this._addReference(i,t),d[i.cid]=!0,a.push(i))}if(f){for(o=0;o<this.length;o++)d[(i=this.models[o]).cid]||u.push(i);u.length&&this._removeModels(u,t)}var _=!1,x=!g&&h&&f;if(a.length&&x?(_=this.length!==a.length||n.some(this.models,function(e,t){return e!==a[t]}),this.models.length=0,A(this.models,a,0),this.length=this.models.length):l.length&&(g&&(m=!0),A(this.models,l,null==s?this.length:s),this.length=this.models.length),m&&this.sort({silent:!0}),!t.silent){for(o=0;o<l.length;o++)null!=s&&(t.index=s+o),(i=l[o]).trigger("add",i,this,t);(m||_)&&this.trigger("sort",this,t),(l.length||u.length||c.length)&&(t.changes={added:l,removed:u,merged:c},this.trigger("update",this,t))}return r?e[0]:e}},reset:function(e,t){t=t?n.clone(t):{};for(var r=0;r<this.models.length;r++)this._removeReference(this.models[r],t);return t.previousModels=this.models,this._reset(),e=this.add(e,n.extend({silent:!0},t)),t.silent||this.trigger("reset",this,t),e},push:function(e,t){return this.add(e,n.extend({at:this.length},t))},pop:function(e){var t=this.at(this.length-1);return this.remove(t,e)},unshift:function(e,t){return this.add(e,n.extend({at:0},t))},shift:function(e){var t=this.at(0);return this.remove(t,e)},slice:function(){return i.apply(this.models,arguments)},get:function(e){if(null!=e)return this._byId[e]||this._byId[this.modelId(this._isModel(e)?e.attributes:e,e.idAttribute)]||e.cid&&this._byId[e.cid]},has:function(e){return null!=this.get(e)},at:function(e){return e<0&&(e+=this.length),this.models[e]},where:function(e,t){return this[t?"find":"filter"](e)},findWhere:function(e){return this.where(e,!0)},sort:function(e){var t=this.comparator;if(!t)throw new Error("Cannot sort a set without a comparator");e||(e={});var r=t.length;return n.isFunction(t)&&(t=t.bind(this)),1===r||n.isString(t)?this.models=this.sortBy(t):this.models.sort(t),e.silent||this.trigger("sort",this,e),this},pluck:function(e){return this.map(e+"")},fetch:function(e){var t=(e=n.extend({parse:!0},e)).success,r=this;return e.success=function(n){var s=e.reset?"reset":"set";r[s](n,e),t&&t.call(e.context,r,n,e),r.trigger("sync",r,n,e)},$(this,e),this.sync("read",this,e)},create:function(e,t){var r=(t=t?n.clone(t):{}).wait;if(!(e=this._prepareModel(e,t)))return!1;r||this.add(e,t);var s=this,i=t.success;return t.success=function(e,t,n){r&&(e.off("error",s._forwardPristineError,s),s.add(e,n)),i&&i.call(n.context,e,t,n)},r&&e.once("error",this._forwardPristineError,this),e.save(null,t),e},parse:function(e,t){return e},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(e,t){return e[t||this.model.prototype.idAttribute||"id"]},values:function(){return new x(this,C)},keys:function(){return new x(this,k)},entries:function(){return new x(this,P)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,t){return this._isModel(e)?(e.collection||(e.collection=this),e):((t=t?n.clone(t):{}).collection=this,(r=this.model.prototype?new this.model(e,t):this.model(e,t)).validationError?(this.trigger("invalid",this,r.validationError,t),!1):r);var r},_removeModels:function(e,t){for(var n=[],r=0;r<e.length;r++){var s=this.get(e[r]);if(s){var i=this.indexOf(s);this.models.splice(i,1),this.length--,delete this._byId[s.cid];var o=this.modelId(s.attributes,s.idAttribute);null!=o&&delete this._byId[o],t.silent||(t.index=i,s.trigger("remove",s,this,t)),n.push(s),this._removeReference(s,t)}}return e.length>0&&!t.silent&&delete t.index,n},_isModel:function(e){return e instanceof v},_addReference:function(e,t){this._byId[e.cid]=e;var n=this.modelId(e.attributes,e.idAttribute);null!=n&&(this._byId[n]=e),e.on("all",this._onModelEvent,this)},_removeReference:function(e,t){delete this._byId[e.cid];var n=this.modelId(e.attributes,e.idAttribute);null!=n&&delete this._byId[n],this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,n,r){if(t){if(("add"===e||"remove"===e)&&n!==this)return;if("destroy"===e&&this.remove(t,r),"changeId"===e){var s=this.modelId(t.previousAttributes(),t.idAttribute),i=this.modelId(t.attributes,t.idAttribute);null!=s&&delete this._byId[s],null!=i&&(this._byId[i]=t)}}this.trigger.apply(this,arguments)},_forwardPristineError:function(e,t,n){this.has(e)||this._onModelEvent("error",e,t,n)}});var _="function"==typeof Symbol&&Symbol.iterator;_&&(y.prototype[_]=y.prototype.values);var x=function(e,t){this._collection=e,this._kind=t,this._index=0},C=1,k=2,P=3;_&&(x.prototype[_]=function(){return this}),x.prototype.next=function(){if(this._collection){if(this._index<this._collection.length){var e,t=this._collection.at(this._index);if(this._index++,this._kind===C)e=t;else{var n=this._collection.modelId(t.attributes,t.idAttribute);e=this._kind===k?n:[n,t]}return{value:e,done:!1}}this._collection=void 0}return{value:void 0,done:!0}};var E=t.View=function(e){this.cid=n.uniqueId("view"),this.preinitialize.apply(this,arguments),n.extend(this,n.pick(e,T)),this._ensureElement(),this.initialize.apply(this,arguments)},S=/^(\S+)\s*(.*)$/,T=["model","collection","el","id","attributes","className","tagName","events"];n.extend(E.prototype,a,{tagName:"div",$:function(e){return this.$el.find(e)},preinitialize:function(){},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(e){return this.undelegateEvents(),this._setElement(e),this.delegateEvents(),this},_setElement:function(e){this.$el=e instanceof t.$?e:t.$(e),this.el=this.$el[0]},delegateEvents:function(e){if(e||(e=n.result(this,"events")),!e)return this;for(var t in this.undelegateEvents(),e){var r=e[t];if(n.isFunction(r)||(r=this[r]),r){var s=t.match(S);this.delegate(s[1],s[2],r.bind(this))}}return this},delegate:function(e,t,n){return this.$el.on(e+".delegateEvents"+this.cid,t,n),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(e,t,n){return this.$el.off(e+".delegateEvents"+this.cid,t,n),this},_createElement:function(e){return document.createElement(e)},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"));else{var e=n.extend({},n.result(this,"attributes"));this.id&&(e.id=n.result(this,"id")),this.className&&(e.class=n.result(this,"className")),this.setElement(this._createElement(n.result(this,"tagName"))),this._setAttributes(e)}},_setAttributes:function(e){this.$el.attr(e)}});var N=function(e,t,r,s){n.each(r,function(n,r){t[r]&&(e.prototype[r]=function(e,t,n,r){switch(t){case 1:return function(){return e[n](this[r])};case 2:return function(t){return e[n](this[r],t)};case 3:return function(t,s){return e[n](this[r],O(t,this),s)};case 4:return function(t,s,i){return e[n](this[r],O(t,this),s,i)};default:return function(){var t=i.call(arguments);return t.unshift(this[r]),e[n].apply(e,t)}}}(t,n,r,s))})},O=function(e,t){return n.isFunction(e)?e:n.isObject(e)&&!t._isModel(e)?j(e):n.isString(e)?function(t){return t.get(e)}:e},j=function(e){var t=n.matches(e);return function(e){return t(e.attributes)}};n.each([[y,{forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3},"models"],[v,{keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1},"attributes"]],function(e){var t=e[0],r=e[1],s=e[2];t.mixin=function(e){var r=n.reduce(n.functions(e),function(e,t){return e[t]=0,e},{});N(t,e,r,s)},N(t,n,r,s)}),t.sync=function(e,r,s){var i=I[e];n.defaults(s||(s={}),{emulateHTTP:t.emulateHTTP,emulateJSON:t.emulateJSON});var o={type:i,dataType:"json"};if(s.url||(o.url=n.result(r,"url")||q()),null!=s.data||!r||"create"!==e&&"update"!==e&&"patch"!==e||(o.contentType="application/json",o.data=JSON.stringify(s.attrs||r.toJSON(s))),s.emulateJSON&&(o.contentType="application/x-www-form-urlencoded",o.data=o.data?{model:o.data}:{}),s.emulateHTTP&&("PUT"===i||"DELETE"===i||"PATCH"===i)){o.type="POST",s.emulateJSON&&(o.data._method=i);var a=s.beforeSend;s.beforeSend=function(e){if(e.setRequestHeader("X-HTTP-Method-Override",i),a)return a.apply(this,arguments)}}"GET"===o.type||s.emulateJSON||(o.processData=!1);var l=s.error;s.error=function(e,t,n){s.textStatus=t,s.errorThrown=n,l&&l.call(s.context,e,t,n)};var c=s.xhr=t.ajax(n.extend(o,s));return r.trigger("request",r,c,s),c};var I={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};t.ajax=function(){return t.$.ajax.apply(t.$,arguments)};var L=t.Router=function(e){e||(e={}),this.preinitialize.apply(this,arguments),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},M=/\((.*?)\)/g,R=/(\(\?)?:\w+/g,B=/\*\w+/g,F=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(L.prototype,a,{preinitialize:function(){},initialize:function(){},route:function(e,r,s){n.isRegExp(e)||(e=this._routeToRegExp(e)),n.isFunction(r)&&(s=r,r=""),s||(s=this[r]);var i=this;return t.history.route(e,function(n){var o=i._extractParameters(e,n);!1!==i.execute(s,o,r)&&(i.trigger.apply(i,["route:"+r].concat(o)),i.trigger("route",r,o),t.history.trigger("route",i,r,o))}),this},execute:function(e,t,n){e&&e.apply(this,t)},navigate:function(e,n){return t.history.navigate(e,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var e,t=n.keys(this.routes);null!=(e=t.pop());)this.route(e,this.routes[e])}},_routeToRegExp:function(e){return e=e.replace(F,"\\$&").replace(M,"(?:$1)?").replace(R,function(e,t){return t?e:"([^/?]+)"}).replace(B,"([^?]*?)"),new RegExp("^"+e+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(e,t){var r=e.exec(t).slice(1);return n.map(r,function(e,t){return t===r.length-1?e||null:e?decodeURIComponent(e):null})}});var H=t.History=function(){this.handlers=[],this.checkUrl=this.checkUrl.bind(this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},U=/^[#\/]|\s+$/g,D=/^\/+|\/+$/g,z=/#.*$/;H.started=!1,n.extend(H.prototype,a,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root&&!this.getSearch()},matchRoot:function(){return this.decodeFragment(this.location.pathname).slice(0,this.root.length-1)+"/"===this.root},decodeFragment:function(e){return decodeURI(e.replace(/%25/g,"%2525"))},getSearch:function(){var e=this.location.href.replace(/#.*/,"").match(/\?.+/);return e?e[0]:""},getHash:function(e){var t=(e||this).location.href.match(/#(.*)$/);return t?t[1]:""},getPath:function(){var e=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===e.charAt(0)?e.slice(1):e},getFragment:function(e){return null==e&&(e=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),e.replace(U,"")},start:function(e){if(H.started)throw new Error("Backbone.history has already been started");if(H.started=!0,this.options=n.extend({root:"/"},this.options,e),this.root=this.options.root,this._trailingSlash=this.options.trailingSlash,this._wantsHashChange=!1!==this.options.hashChange,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(D,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var t=this.root.slice(0,-1)||"/";return this.location.replace(t+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var r=document.body,s=r.insertBefore(this.iframe,r.firstChild).contentWindow;s.document.open(),s.document.close(),s.location.hash="#"+this.fragment}var i=window.addEventListener||function(e,t){return attachEvent("on"+e,t)};if(this._usePushState?i("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?i("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var e=window.removeEventListener||function(e,t){return detachEvent("on"+e,t)};this._usePushState?e("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&e("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),H.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();if(t===this.fragment&&this.iframe&&(t=this.getHash(this.iframe.contentWindow)),t===this.fragment)return!this.matchRoot()&&this.notfound();this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(e){return this.matchRoot()?(e=this.fragment=this.getFragment(e),n.some(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0})||this.notfound()):this.notfound()},notfound:function(){return this.trigger("notfound"),!1},navigate:function(e,t){if(!H.started)return!1;t&&!0!==t||(t={trigger:!!t}),e=this.getFragment(e||"");var n=this.root;this._trailingSlash||""!==e&&"?"!==e.charAt(0)||(n=n.slice(0,-1)||"/");var r=n+e;e=e.replace(z,"");var s=this.decodeFragment(e);if(this.fragment!==s){if(this.fragment=s,this._usePushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,r);else{if(!this._wantsHashChange)return this.location.assign(r);if(this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getHash(this.iframe.contentWindow)){var i=this.iframe.contentWindow;t.replace||(i.document.open(),i.document.close()),this._updateHash(i.location,e,t.replace)}}return t.trigger?this.loadUrl(e):void 0}},_updateHash:function(e,t,n){if(n){var r=e.href.replace(/(javascript:|#).*$/,"");e.replace(r+"#"+t)}else e.hash="#"+t}}),t.history=new H;v.extend=y.extend=L.extend=E.extend=H.extend=function(e,t){var r,s=this;return r=e&&n.has(e,"constructor")?e.constructor:function(){return s.apply(this,arguments)},n.extend(r,s,t),r.prototype=n.create(s.prototype,e),r.prototype.constructor=r,r.__super__=s.prototype,r};var q=function(){throw new Error('A "url" property or function must be specified')},$=function(e,t){var n=t.error;t.error=function(r){n&&n.call(t.context,e,r,t),e.trigger("error",e,r,t)}};return t._debug=function(){return{root:e,_:n}},t}(i,n,e,t)}.apply(t,r),void 0===s||(e.exports=s)},14430(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(71354),s=n.n(r),i=n(76314),o=n.n(i)()(s());o.push([e.id,".button-vue[data-v-bbf83d00]{margin-top:.5rem}","",{version:3,sources:["webpack://./core/src/components/login/LoginButton.vue"],names:[],mappings:"AACA,6BACC,gBAAA",sourcesContent:["\n.button-vue {\n\tmargin-top: .5rem;\n}\n"],sourceRoot:""}]);const a=o},44098(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(71354),s=n.n(r),i=n(76314),o=n.n(i)()(s());o.push([e.id,".login-form[data-v-f91ba7fe]{text-align:start;font-size:1rem;margin:0}.login-form__fieldset[data-v-f91ba7fe]{width:100%;display:flex;flex-direction:column;gap:.5rem}.login-form__headline[data-v-f91ba7fe]{text-align:center;overflow-wrap:anywhere}.login-form[data-v-f91ba7fe] input:invalid:not(:user-invalid){border-color:var(--color-border-maxcontrast) !important}","",{version:3,sources:["webpack://./core/src/components/login/LoginForm.vue"],names:[],mappings:"AACA,6BACC,gBAAA,CACA,cAAA,CACA,QAAA,CAEA,uCACC,UAAA,CACA,YAAA,CACA,qBAAA,CACA,SAAA,CAGD,uCACC,iBAAA,CACA,sBAAA,CAID,8DACC,uDAAA",sourcesContent:["\n.login-form {\n\ttext-align: start;\n\tfont-size: 1rem;\n\tmargin: 0;\n\n\t&__fieldset {\n\t\twidth: 100%;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: .5rem;\n\t}\n\n\t&__headline {\n\t\ttext-align: center;\n\t\toverflow-wrap: anywhere;\n\t}\n\n\t// Only show the error state if the user interacted with the login box\n\t:deep(input:invalid:not(:user-invalid)) {\n\t\tborder-color: var(--color-border-maxcontrast) !important;\n\t}\n}\n"],sourceRoot:""}]);const a=o},57056(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(71354),s=n.n(r),i=n(76314),o=n.n(i)()(s());o.push([e.id,".password-less-login-form[data-v-0b57a680]{display:flex;flex-direction:column;gap:.5rem;margin:0}","",{version:3,sources:["webpack://./core/src/components/login/PasswordLessLoginForm.vue"],names:[],mappings:"AACA,2CACC,YAAA,CACA,qBAAA,CACA,SAAA,CACA,QAAA",sourcesContent:["\n.password-less-login-form {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 0.5rem;\n\tmargin: 0;\n}\n"],sourceRoot:""}]);const a=o},99322(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(71354),s=n.n(r),i=n(76314),o=n.n(i)()(s());o.push([e.id,".reset-password-form[data-v-759a0fdd]{display:flex;flex-direction:column;gap:.5rem;width:100%}","",{version:3,sources:["webpack://./core/src/components/login/ResetPassword.vue"],names:[],mappings:"AACA,sCACC,YAAA,CACA,qBAAA,CACA,SAAA,CACA,UAAA",sourcesContent:["\n.reset-password-form {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: .5rem;\n\twidth: 100%;\n}\n"],sourceRoot:""}]);const a=o},11999(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(71354),s=n.n(r),i=n(76314),o=n.n(i)()(s());o.push([e.id,".login-box[data-v-518c0816]{width:320px;box-sizing:border-box}.login-box__wrapper[data-v-518c0816]{display:flex;flex-direction:column;gap:calc(2*var(--default-grid-baseline))}.login-box__alternative-logins[data-v-518c0816]{display:flex;flex-direction:column;gap:.75rem}.fade-enter-active[data-v-518c0816],.fade-leave-active[data-v-518c0816]{transition:opacity .3s}.fade-enter[data-v-518c0816],.fade-leave-to[data-v-518c0816]{opacity:0}","",{version:3,sources:["webpack://./core/src/views/Login.vue"],names:[],mappings:"AACA,4BAEC,WAAA,CACA,qBAAA,CAEA,qCACC,YAAA,CACA,qBAAA,CACA,wCAAA,CAGD,gDACC,YAAA,CACA,qBAAA,CACA,UAAA,CAIF,wEACC,sBAAA,CAGD,6DACC,SAAA",sourcesContent:["\n.login-box {\n\t// Same size as dashboard panels\n\twidth: 320px;\n\tbox-sizing: border-box;\n\n\t&__wrapper {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: calc(2 * var(--default-grid-baseline));\n\t}\n\n\t&__alternative-logins {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: 0.75rem;\n\t}\n}\n\n.fade-enter-active, .fade-leave-active {\n\ttransition: opacity .3s;\n}\n\n.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {\n\topacity: 0;\n}\n"],sourceRoot:""}]);const a=o},81604(e,t,n){"use strict";n.d(t,{A:()=>a});var r=n(71354),s=n.n(r),i=n(76314),o=n.n(i)()(s());o.push([e.id,"\nfieldset[data-v-2c0ecaf9] {\n\ttext-align: center;\n}\ninput[type=submit][data-v-2c0ecaf9] {\n\tmargin-top: 20px;\n}\n","",{version:3,sources:["webpack://./core/src/components/login/UpdatePassword.vue"],names:[],mappings:";AAmIA;CACA,kBAAA;AACA;AAEA;CACA,gBAAA;AACA",sourcesContent:["\x3c!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n--\x3e\n\n<template>\n\t<form @submit.prevent=\"submit\">\n\t\t<fieldset>\n\t\t\t<p>\n\t\t\t\t<label for=\"password\" class=\"infield\">{{ t('core', 'New password') }}</label>\n\t\t\t\t<input\n\t\t\t\t\tid=\"password\"\n\t\t\t\t\tv-model=\"password\"\n\t\t\t\t\ttype=\"password\"\n\t\t\t\t\tname=\"password\"\n\t\t\t\t\tautocomplete=\"new-password\"\n\t\t\t\t\tautocapitalize=\"none\"\n\t\t\t\t\tspellcheck=\"false\"\n\t\t\t\t\trequired\n\t\t\t\t\t:placeholder=\"t('core', 'New password')\">\n\t\t\t</p>\n\n\t\t\t<div v-if=\"encrypted\" class=\"update\">\n\t\t\t\t<p>\n\t\t\t\t\t{{ 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\t</p>\n\t\t\t\t<input\n\t\t\t\t\tid=\"encrypted-continue\"\n\t\t\t\t\tv-model=\"proceed\"\n\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\tclass=\"checkbox\">\n\t\t\t\t<label for=\"encrypted-continue\">\n\t\t\t\t\t{{ t('core', 'I know what I\\'m doing') }}\n\t\t\t\t</label>\n\t\t\t</div>\n\n\t\t\t<LoginButton\n\t\t\t\t:loading=\"loading\"\n\t\t\t\t:value=\"t('core', 'Reset password')\"\n\t\t\t\t:value-loading=\"t('core', 'Resetting password')\" />\n\n\t\t\t<p v-if=\"error && message\" :class=\"{ warning: error }\">\n\t\t\t\t{{ message }}\n\t\t\t</p>\n\t\t</fieldset>\n\t</form>\n</template>\n\n<script>\nimport Axios from '@nextcloud/axios'\nimport LoginButton from './LoginButton.vue'\n\nexport default {\n\tname: 'UpdatePassword',\n\tcomponents: {\n\t\tLoginButton,\n\t},\n\n\tprops: {\n\t\tusername: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\n\t\tresetPasswordTarget: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\terror: false,\n\t\t\tloading: false,\n\t\t\tmessage: undefined,\n\t\t\tuser: this.username,\n\t\t\tpassword: '',\n\t\t\tencrypted: false,\n\t\t\tproceed: false,\n\t\t}\n\t},\n\n\twatch: {\n\t\tusername(value) {\n\t\t\tthis.user = value\n\t\t},\n\t},\n\n\tmethods: {\n\t\tasync submit() {\n\t\t\tthis.loading = true\n\t\t\tthis.error = false\n\t\t\tthis.message = ''\n\n\t\t\ttry {\n\t\t\t\tconst { data } = await Axios.post(this.resetPasswordTarget, {\n\t\t\t\t\tpassword: this.password,\n\t\t\t\t\tproceed: this.proceed,\n\t\t\t\t})\n\t\t\t\tif (data && data.status === 'success') {\n\t\t\t\t\tthis.message = 'send-success'\n\t\t\t\t\tthis.$emit('update:username', this.user)\n\t\t\t\t\tthis.$emit('done')\n\t\t\t\t} else if (data && data.encryption) {\n\t\t\t\t\tthis.encrypted = true\n\t\t\t\t} else if (data && data.msg) {\n\t\t\t\t\tthrow new Error(data.msg)\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Error()\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\tthis.error = true\n\t\t\t\tthis.message = e.message ? e.message : t('core', 'Password cannot be changed. Please contact your administrator.')\n\t\t\t} finally {\n\t\t\t\tthis.loading = false\n\t\t\t}\n\t\t},\n\t},\n}\n<\/script>\n\n<style scoped>\n\tfieldset {\n\t\ttext-align: center;\n\t}\n\n\tinput[type=submit] {\n\t\tmargin-top: 20px;\n\t}\n</style>\n"],sourceRoot:""}]);const a=o},78112(e){const t={_XML_CHAR_MAP:{"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&apos;"},_escapeXml:function(e){return e.replace(/[<>&"']/g,function(e){return t._XML_CHAR_MAP[e]})},Client:function(e){var t;for(t in e)this[t]=e[t]}};t.Client.prototype={baseUrl:null,userName:null,password:null,xmlNamespaces:{"DAV:":"d"},propFind:function(e,t,n,r){void 0===n&&(n="0"),n=""+n,(r=r||{}).Depth=n,r["Content-Type"]="application/xml; charset=utf-8";var s,i='<?xml version="1.0"?>\n<d:propfind ';for(s in this.xmlNamespaces)i+=" xmlns:"+this.xmlNamespaces[s]+'="'+s+'"';for(var o in i+=">\n <d:prop>\n",t)if(t.hasOwnProperty(o)){var a=this.parseClarkNotation(t[o]);this.xmlNamespaces[a.namespace]?i+=" <"+this.xmlNamespaces[a.namespace]+":"+a.name+" />\n":i+=" <x:"+a.name+' xmlns:x="'+a.namespace+'" />\n'}return i+=" </d:prop>\n",i+="</d:propfind>",this.request("PROPFIND",e,r,i).then(function(e){return"0"===n?{status:e.status,body:e.body[0],xhr:e.xhr}:{status:e.status,body:e.body,xhr:e.xhr}}.bind(this))},_renderPropSet:function(e){var n=" <d:set>\n <d:prop>\n";for(var r in e)if(e.hasOwnProperty(r)){var s,i=this.parseClarkNotation(r),o=e[r];"d:resourcetype"!=(s=this.xmlNamespaces[i.namespace]?this.xmlNamespaces[i.namespace]+":"+i.name:"x:"+i.name+' xmlns:x="'+i.namespace+'"')&&(o=t._escapeXml(o)),n+=" <"+s+">"+o+"</"+s+">\n"}return(n+=" </d:prop>\n")+" </d:set>\n"},propPatch:function(e,t,n){(n=n||{})["Content-Type"]="application/xml; charset=utf-8";var r,s='<?xml version="1.0"?>\n<d:propertyupdate ';for(r in this.xmlNamespaces)s+=" xmlns:"+this.xmlNamespaces[r]+'="'+r+'"';return s+=">\n"+this._renderPropSet(t),s+="</d:propertyupdate>",this.request("PROPPATCH",e,n,s).then(function(e){return{status:e.status,body:e.body,xhr:e.xhr}}.bind(this))},mkcol:function(e,t,n){var r="";if((n=n||{})["Content-Type"]="application/xml; charset=utf-8",t){var s;for(s in r='<?xml version="1.0"?>\n<d:mkcol',this.xmlNamespaces)r+=" xmlns:"+this.xmlNamespaces[s]+'="'+s+'"';r+=">\n"+this._renderPropSet(t),r+="</d:mkcol>"}return this.request("MKCOL",e,n,r).then(function(e){return{status:e.status,body:e.body,xhr:e.xhr}}.bind(this))},request:function(e,t,n,r,s,i){var o,a=this,l=this.xhrProvider();for(o in n=n||{},s=s||"",this.userName&&(n.Authorization="Basic "+btoa(this.userName+":"+this.password)),l.open(e,this.resolveUrl(t),!0),n)l.setRequestHeader(o,n[o]);return l.responseType=s,i&&"function"==typeof i.onProgress&&("PUT"===e||"POST"===e?l.upload.addEventListener("progress",function(e){i.onProgress(e)},!1):l.addEventListener("progress",function(e){i.onProgress(e)},!1)),void 0===r?l.send():l.send(r),new Promise(function(e,t){l.onreadystatechange=function(){if(4===l.readyState){var t=l.response;207===l.status&&(t=a.parseMultiStatus(l.response)),e({body:t,status:l.status,xhr:l})}},l.ontimeout=function(){t(new Error("Timeout exceeded"))}})},xhrProvider:function(){return new XMLHttpRequest},_parsePropNode:function(e){var t=null;if(e.childNodes&&e.childNodes.length>0){for(var n=[],r=0;r<e.childNodes.length;r++){var s=e.childNodes[r];1===s.nodeType&&n.push(s)}n.length&&(t=n)}return t||e.textContent||e.text||""},parseMultiStatus:function(e){for(var t=(new DOMParser).parseFromString(e,"application/xml"),n=function(e){var t;for(t in this.xmlNamespaces)if(this.xmlNamespaces[t]===e)return t}.bind(this),r=t.evaluate("/d:multistatus/d:response",t,n,XPathResult.ANY_TYPE,null),s=[],i=r.iterateNext();i;){var o={href:null,propStat:[]};o.href=t.evaluate("string(d:href)",i,n,XPathResult.ANY_TYPE,null).stringValue;for(var a=t.evaluate("d:propstat",i,n,XPathResult.ANY_TYPE,null),l=a.iterateNext();l;){for(var c={status:t.evaluate("string(d:status)",l,n,XPathResult.ANY_TYPE,null).stringValue,properties:{}},u=t.evaluate("d:prop/*",l,n,XPathResult.ANY_TYPE,null),d=u.iterateNext();d;){var h=this._parsePropNode(d);c.properties["{"+d.namespaceURI+"}"+d.localName]=h,d=u.iterateNext()}o.propStat.push(c),l=a.iterateNext()}s.push(o),i=r.iterateNext()}return s},resolveUrl:function(e){if(/^https?:\/\//i.test(e))return e;var t=this.parseUrl(this.baseUrl);return e.charAt("/")?t.root+e:(t.root,-1!==t.path.lastIndexOf("/")&&t.path.subString(0,t.path.lastIndexOf("/")),e)},parseUrl:function(e){var t=e.match(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/),n={url:t[0],scheme:t[1],host:t[3],port:t[4],path:t[5],query:t[6],fragment:t[7]};return n.root=n.scheme+"://"+n.host+(n.port?":"+n.port:""),n},parseClarkNotation:function(e){var t=e.match(/^{([^}]+)}(.*)$/);if(t)return{name:t[2],namespace:t[1]}}},e.exports={dav:t,Client:t.Client},e.exports={dav:t}},20261(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function s(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}t.__esModule=!0;var i=s(n(82871)),o=r(n(19613)),a=r(n(13769)),l=s(n(82849)),c=s(n(7624)),u=r(n(91148));function d(){var e=new i.HandlebarsEnvironment;return l.extend(e,i),e.SafeString=o.default,e.Exception=a.default,e.Utils=l,e.escapeExpression=l.escapeExpression,e.VM=c,e.template=function(t){return c.template(t,e)},e}var h=d();h.create=d,u.default(h),h.default=h,t.default=h,e.exports=t.default},82871(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.HandlebarsEnvironment=d;var s=n(82849),i=r(n(13769)),o=n(2277),a=n(75940),l=r(n(40566)),c=n(63865);t.VERSION="4.7.8",t.COMPILER_REVISION=8,t.LAST_COMPATIBLE_COMPILER_REVISION=7,t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};var u="[object Object]";function d(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},o.registerDefaultHelpers(this),a.registerDefaultDecorators(this)}d.prototype={constructor:d,logger:l.default,log:l.default.log,registerHelper:function(e,t){if(s.toString.call(e)===u){if(t)throw new i.default("Arg not supported with multiple helpers");s.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(s.toString.call(e)===u)s.extend(this.partials,e);else{if(void 0===t)throw new i.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if(s.toString.call(e)===u){if(t)throw new i.default("Arg not supported with multiple decorators");s.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){c.resetLoggedProperties()}};var h=l.default.log;t.log=h,t.createFrame=s.createFrame,t.logger=l.default},75940(e,t,n){"use strict";t.__esModule=!0,t.registerDefaultDecorators=function(e){s.default(e)};var r,s=(r=n(77430))&&r.__esModule?r:{default:r}},77430(e,t,n){"use strict";t.__esModule=!0;var r=n(82849);t.default=function(e){e.registerDecorator("inline",function(e,t,n,s){var i=e;return t.partials||(t.partials={},i=function(s,i){var o=n.partials;n.partials=r.extend({},o,t.partials);var a=e(s,i);return n.partials=o,a}),t.partials[s.args[0]]=s.fn,i})},e.exports=t.default},13769(e,t){"use strict";t.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function r(e,t){var s=t&&t.loc,i=void 0,o=void 0,a=void 0,l=void 0;s&&(i=s.start.line,o=s.end.line,a=s.start.column,l=s.end.column,e+=" - "+i+":"+a);for(var c=Error.prototype.constructor.call(this,e),u=0;u<n.length;u++)this[n[u]]=c[n[u]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{s&&(this.lineNumber=i,this.endLineNumber=o,Object.defineProperty?(Object.defineProperty(this,"column",{value:a,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:l,enumerable:!0})):(this.column=a,this.endColumn=l))}catch(e){}}r.prototype=new Error,t.default=r,e.exports=t.default},2277(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.registerDefaultHelpers=function(e){s.default(e),i.default(e),o.default(e),a.default(e),l.default(e),c.default(e),u.default(e)},t.moveHelperToHooks=function(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||delete e.helpers[t])};var s=r(n(26097)),i=r(n(46785)),o=r(n(14353)),a=r(n(82355)),l=r(n(85300)),c=r(n(37466)),u=r(n(50908))},26097(e,t,n){"use strict";t.__esModule=!0;var r=n(82849);t.default=function(e){e.registerHelper("blockHelperMissing",function(t,n){var s=n.inverse,i=n.fn;if(!0===t)return i(this);if(!1===t||null==t)return s(this);if(r.isArray(t))return t.length>0?(n.ids&&(n.ids=[n.name]),e.helpers.each(t,n)):s(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 i(t,n)})},e.exports=t.default},46785(e,t,n){"use strict";t.__esModule=!0;var r,s=n(82849),i=(r=n(13769))&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("each",function(e,t){if(!t)throw new i.default("Must pass iterator to #each");var n,r=t.fn,o=t.inverse,a=0,l="",c=void 0,u=void 0;function d(t,n,i){c&&(c.key=t,c.index=n,c.first=0===n,c.last=!!i,u&&(c.contextPath=u+t)),l+=r(e[t],{data:c,blockParams:s.blockParams([e[t],t],[u+t,null])})}if(t.data&&t.ids&&(u=s.appendContextPath(t.data.contextPath,t.ids[0])+"."),s.isFunction(e)&&(e=e.call(this)),t.data&&(c=s.createFrame(t.data)),e&&"object"==typeof e)if(s.isArray(e))for(var h=e.length;a<h;a++)a in e&&d(a,a,a===e.length-1);else if("function"==typeof Symbol&&e[Symbol.iterator]){for(var p=[],f=e[Symbol.iterator](),m=f.next();!m.done;m=f.next())p.push(m.value);for(h=(e=p).length;a<h;a++)d(a,a,a===e.length-1)}else n=void 0,Object.keys(e).forEach(function(e){void 0!==n&&d(n,a-1),n=e,a++}),void 0!==n&&d(n,a-1,!0);return 0===a&&(l=o(this)),l})},e.exports=t.default},14353(e,t,n){"use strict";t.__esModule=!0;var r,s=(r=n(13769))&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("helperMissing",function(){if(1!==arguments.length)throw new s.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default},82355(e,t,n){"use strict";t.__esModule=!0;var r,s=n(82849),i=(r=n(13769))&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("if",function(e,t){if(2!=arguments.length)throw new i.default("#if requires exactly one argument");return s.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||s.isEmpty(e)?t.inverse(this):t.fn(this)}),e.registerHelper("unless",function(t,n){if(2!=arguments.length)throw new i.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},85300(e,t){"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 s=1;null!=n.hash.level?s=n.hash.level:n.data&&null!=n.data.level&&(s=n.data.level),t[0]=s,e.log.apply(e,t)})},e.exports=t.default},37466(e,t){"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},50908(e,t,n){"use strict";t.__esModule=!0;var r,s=n(82849),i=(r=n(13769))&&r.__esModule?r:{default:r};t.default=function(e){e.registerHelper("with",function(e,t){if(2!=arguments.length)throw new i.default("#with requires exactly one argument");s.isFunction(e)&&(e=e.call(this));var n=t.fn;if(s.isEmpty(e))return t.inverse(this);var r=t.data;return t.data&&t.ids&&((r=s.createFrame(t.data)).contextPath=s.appendContextPath(t.data.contextPath,t.ids[0])),n(e,{data:r,blockParams:s.blockParams([e],[r&&r.contextPath])})})},e.exports=t.default},89726(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(82849)},63865(e,t,n){"use strict";t.__esModule=!0,t.createProtoAccessControl=function(e){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var n=Object.create(null);return n.__proto__=!1,{properties:{whitelist:s.createNewLookupObject(n,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:s.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}},t.resultIsAllowed=function(e,t,n){return function(e,t){return void 0!==e.whitelist[t]?!0===e.whitelist[t]:void 0!==e.defaultValue?e.defaultValue:(function(e){!0!==o[e]&&(o[e]=!0,i.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'))}(t),!1)}("function"==typeof e?t.methods:t.properties,n)},t.resetLoggedProperties=function(){Object.keys(o).forEach(function(e){delete o[e]})};var r,s=n(89726),i=(r=n(40566))&&r.__esModule?r:{default:r},o=Object.create(null)},72614(e,t){"use strict";t.__esModule=!0,t.wrapHelper=function(e,t){return"function"!=typeof e?e:function(){return arguments[arguments.length-1]=t(arguments[arguments.length-1]),e.apply(this,arguments)}}},40566(e,t,n){"use strict";t.__esModule=!0;var r=n(82849),s={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=r.indexOf(s.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=s.lookupLevel(e),"undefined"!=typeof console&&s.lookupLevel(s.level)<=e){var t=s.methodMap[e];console[t]||(t="log");for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];console[t].apply(console,r)}}};t.default=s,e.exports=t.default},91148(e,t){"use strict";t.__esModule=!0,t.default=function(e){"object"!=typeof globalThis&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__);var t=globalThis.Handlebars;e.noConflict=function(){return globalThis.Handlebars===e&&(globalThis.Handlebars=t),e}},e.exports=t.default},7624(e,t,n){"use strict";t.__esModule=!0,t.checkRevision=function(e){var t=e&&e[0]||1,n=o.COMPILER_REVISION;if(!(t>=o.LAST_COMPATIBLE_COMPILER_REVISION&&t<=o.COMPILER_REVISION)){if(t<o.LAST_COMPATIBLE_COMPILER_REVISION){var r=o.REVISION_CHANGES[n],s=o.REVISION_CHANGES[t];throw new i.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 ("+s+").")}throw new i.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 i.default("No environment passed to template");if(!e||!e.main)throw new i.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],r={strict:function(e,t,n){if(!e||!(t in e))throw new i.default('"'+t+'" not defined in '+e,{loc:n});return r.lookupProperty(e,t)},lookupProperty:function(e,t){var n=e[t];return null==n||Object.prototype.hasOwnProperty.call(e,t)||c.resultIsAllowed(n,r.protoAccessControl,t)?n:void 0},lookup:function(e,t){for(var n=e.length,s=0;s<n;s++)if(null!=(e[s]&&r.lookupProperty(e[s],t)))return e[s][t]},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:s.escapeExpression,invokePartial:function(n,r,o){o.hash&&(r=s.extend({},r,o.hash),o.ids&&(o.ids[0]=!0)),n=t.VM.resolvePartial.call(this,n,r,o);var a=s.extend({},o,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),l=t.VM.invokePartial.call(this,n,r,a);if(null==l&&t.compile&&(o.partials[o.name]=t.compile(n,e.compilerOptions,t),l=o.partials[o.name](r,a)),null!=l){if(o.indent){for(var c=l.split("\n"),u=0,d=c.length;u<d&&(c[u]||u+1!==d);u++)c[u]=o.indent+c[u];l=c.join("\n")}return l}throw new i.default("The partial "+o.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,s){var i=this.programs[e],o=this.fn(e);return t||s||r||n?i=u(this,e,o,t,n,r,s):i||(i=this.programs[e]=u(this,e,o)),i},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=s.extend({},t,e)),n},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function d(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=n.data;d._setup(n),!n.partial&&e.useData&&(s=function(e,t){return t&&"root"in t||((t=t?o.createFrame(t):{}).root=e),t}(t,s));var i=void 0,a=e.useBlockParams?[]:void 0;function l(t){return""+e.main(r,t,r.helpers,r.partials,s,a,i)}return e.useDepths&&(i=n.depths?t!=n.depths[0]?[t].concat(n.depths):n.depths:[t]),(l=h(e.main,l,r,n.depths||[],s,a))(t,n)}return d.isTop=!0,d._setup=function(i){if(i.partial)r.protoAccessControl=i.protoAccessControl,r.helpers=i.helpers,r.partials=i.partials,r.decorators=i.decorators,r.hooks=i.hooks;else{var o=s.extend({},t.helpers,i.helpers);!function(e,t){Object.keys(e).forEach(function(n){var r=e[n];e[n]=function(e,t){var n=t.lookupProperty;return l.wrapHelper(e,function(e){return s.extend({lookupProperty:n},e)})}(r,t)})}(o,r),r.helpers=o,e.usePartial&&(r.partials=r.mergeIfNeeded(i.partials,t.partials)),(e.usePartial||e.useDecorators)&&(r.decorators=s.extend({},t.decorators,i.decorators)),r.hooks={},r.protoAccessControl=c.createProtoAccessControl(i);var u=i.allowCallsToHelperMissing||n;a.moveHelperToHooks(r,"helperMissing",u),a.moveHelperToHooks(r,"blockHelperMissing",u)}},d._child=function(t,n,s,o){if(e.useBlockParams&&!s)throw new i.default("must pass block params");if(e.useDepths&&!o)throw new i.default("must pass parent depths");return u(r,t,e[t],n,0,s,o)},d},t.wrapProgram=u,t.resolvePartial=function(e,t,n){return 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],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;if(n.fn&&n.fn!==d&&function(){n.data=o.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=o.createFrame(n.data),n.data["partial-block"]=r,e(t,n)},e.partials&&(n.partials=s.extend({},n.partials,e.partials))}(),void 0===e&&a&&(e=a),void 0===e)throw new i.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)},t.noop=d;var r,s=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(82849)),i=(r=n(13769))&&r.__esModule?r:{default:r},o=n(82871),a=n(2277),l=n(72614),c=n(63865);function u(e,t,n,r,s,i,o){function a(t){var s=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],a=o;return!o||t==o[0]||t===e.nullContext&&null===o[0]||(a=[t].concat(o)),n(e,t,e.helpers,e.partials,s.data||r,i&&[s.blockParams].concat(i),a)}return(a=h(n,a,e,o,r,i)).program=t,a.depth=o?o.length:0,a.blockParams=s||0,a}function d(){return""}function h(e,t,n,r,i,o){if(e.decorator){var a={};t=e.decorator(t,a,n,r&&r[0],i,o,r),s.extend(t,a)}return t}},19613(e,t){"use strict";function n(e){this.string=e}t.__esModule=!0,n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t.default=n,e.exports=t.default},82849(e,t){"use strict";t.__esModule=!0,t.extend=o,t.indexOf=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},t.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}return s.test(e)?e.replace(r,i):e},t.isEmpty=function(e){return!e&&0!==e||!(!c(e)||0!==e.length)},t.createFrame=function(e){var t=o({},e);return t._parent=e,t},t.blockParams=function(e,t){return e.path=t,e},t.appendContextPath=function(e,t){return(e?e+".":"")+t};var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},r=/[&<>"'`=]/g,s=/[&<>"'`=]/;function i(e){return n[e]}function o(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}var a=Object.prototype.toString;t.toString=a;var l=function(e){return"function"==typeof e};l(/x/)&&(t.isFunction=l=function(e){return"function"==typeof e&&"[object Function]"===a.call(e)}),t.isFunction=l;var c=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===a.call(e)};t.isArray=c},93633(e,t,n){e.exports=n(20261).default},35358(e,t,n){var r={"./af":25177,"./af.js":25177,"./ar":61509,"./ar-dz":41488,"./ar-dz.js":41488,"./ar-kw":58676,"./ar-kw.js":58676,"./ar-ly":42353,"./ar-ly.js":42353,"./ar-ma":24496,"./ar-ma.js":24496,"./ar-ps":6947,"./ar-ps.js":6947,"./ar-sa":27444,"./ar-sa.js":27444,"./ar-tn":89756,"./ar-tn.js":89756,"./ar.js":61509,"./az":95533,"./az.js":95533,"./be":28959,"./be.js":28959,"./bg":47777,"./bg.js":47777,"./bm":54903,"./bm.js":54903,"./bn":61290,"./bn-bd":17357,"./bn-bd.js":17357,"./bn.js":61290,"./bo":31545,"./bo.js":31545,"./br":11470,"./br.js":11470,"./bs":44429,"./bs.js":44429,"./ca":7306,"./ca.js":7306,"./cs":56464,"./cs.js":56464,"./cv":73635,"./cv.js":73635,"./cy":64226,"./cy.js":64226,"./da":93601,"./da.js":93601,"./de":77853,"./de-at":26111,"./de-at.js":26111,"./de-ch":54697,"./de-ch.js":54697,"./de.js":77853,"./dv":60708,"./dv.js":60708,"./el":54691,"./el.js":54691,"./en-au":53872,"./en-au.js":53872,"./en-ca":28298,"./en-ca.js":28298,"./en-gb":56195,"./en-gb.js":56195,"./en-ie":66584,"./en-ie.js":66584,"./en-il":65543,"./en-il.js":65543,"./en-in":9033,"./en-in.js":9033,"./en-nz":79402,"./en-nz.js":79402,"./en-sg":43004,"./en-sg.js":43004,"./eo":32934,"./eo.js":32934,"./es":97650,"./es-do":20838,"./es-do.js":20838,"./es-mx":17730,"./es-mx.js":17730,"./es-us":56575,"./es-us.js":56575,"./es.js":97650,"./et":3035,"./et.js":3035,"./eu":3508,"./eu.js":3508,"./fa":119,"./fa.js":119,"./fi":90527,"./fi.js":90527,"./fil":95995,"./fil.js":95995,"./fo":52477,"./fo.js":52477,"./fr":85498,"./fr-ca":26435,"./fr-ca.js":26435,"./fr-ch":37892,"./fr-ch.js":37892,"./fr.js":85498,"./fy":37071,"./fy.js":37071,"./ga":41734,"./ga.js":41734,"./gd":70217,"./gd.js":70217,"./gl":77329,"./gl.js":77329,"./gom-deva":32124,"./gom-deva.js":32124,"./gom-latn":93383,"./gom-latn.js":93383,"./gu":95050,"./gu.js":95050,"./he":11713,"./he.js":11713,"./hi":43861,"./hi.js":43861,"./hr":26308,"./hr.js":26308,"./hu":90609,"./hu.js":90609,"./hy-am":17160,"./hy-am.js":17160,"./id":74063,"./id.js":74063,"./is":89374,"./is.js":89374,"./it":88383,"./it-ch":21827,"./it-ch.js":21827,"./it.js":88383,"./ja":23827,"./ja.js":23827,"./jv":89722,"./jv.js":89722,"./ka":41794,"./ka.js":41794,"./kk":27088,"./kk.js":27088,"./km":96870,"./km.js":96870,"./kn":84451,"./kn.js":84451,"./ko":63164,"./ko.js":63164,"./ku":98174,"./ku-kmr":6181,"./ku-kmr.js":6181,"./ku.js":98174,"./ky":78474,"./ky.js":78474,"./lb":79680,"./lb.js":79680,"./lo":15867,"./lo.js":15867,"./lt":45766,"./lt.js":45766,"./lv":69532,"./lv.js":69532,"./me":58076,"./me.js":58076,"./mi":41848,"./mi.js":41848,"./mk":30306,"./mk.js":30306,"./ml":73739,"./ml.js":73739,"./mn":99053,"./mn.js":99053,"./mr":86169,"./mr.js":86169,"./ms":73386,"./ms-my":92297,"./ms-my.js":92297,"./ms.js":73386,"./mt":77075,"./mt.js":77075,"./my":72264,"./my.js":72264,"./nb":22274,"./nb.js":22274,"./ne":8235,"./ne.js":8235,"./nl":92572,"./nl-be":43784,"./nl-be.js":43784,"./nl.js":92572,"./nn":54566,"./nn.js":54566,"./oc-lnc":69330,"./oc-lnc.js":69330,"./pa-in":29849,"./pa-in.js":29849,"./pl":94418,"./pl.js":94418,"./pt":79834,"./pt-br":48303,"./pt-br.js":48303,"./pt.js":79834,"./ro":24457,"./ro.js":24457,"./ru":82271,"./ru.js":82271,"./sd":1221,"./sd.js":1221,"./se":33478,"./se.js":33478,"./si":17538,"./si.js":17538,"./sk":5784,"./sk.js":5784,"./sl":46637,"./sl.js":46637,"./sq":86794,"./sq.js":86794,"./sr":45719,"./sr-cyrl":3322,"./sr-cyrl.js":3322,"./sr.js":45719,"./ss":56e3,"./ss.js":56e3,"./sv":41011,"./sv.js":41011,"./sw":40748,"./sw.js":40748,"./ta":11025,"./ta.js":11025,"./te":11885,"./te.js":11885,"./tet":28861,"./tet.js":28861,"./tg":86571,"./tg.js":86571,"./th":55802,"./th.js":55802,"./tk":59527,"./tk.js":59527,"./tl-ph":29231,"./tl-ph.js":29231,"./tlh":31052,"./tlh.js":31052,"./tr":85096,"./tr.js":85096,"./tzl":79846,"./tzl.js":79846,"./tzm":81765,"./tzm-latn":97711,"./tzm-latn.js":97711,"./tzm.js":81765,"./ug-cn":48414,"./ug-cn.js":48414,"./uk":16618,"./uk.js":16618,"./ur":57777,"./ur.js":57777,"./uz":57609,"./uz-latn":72475,"./uz-latn.js":72475,"./uz.js":57609,"./vi":21135,"./vi.js":21135,"./x-pseudo":64051,"./x-pseudo.js":64051,"./yo":82218,"./yo.js":82218,"./zh-cn":52648,"./zh-cn.js":52648,"./zh-hk":1632,"./zh-hk.js":1632,"./zh-mo":31541,"./zh-mo.js":31541,"./zh-tw":50304,"./zh-tw.js":50304};function s(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}s.keys=function(){return Object.keys(r)},s.resolve=i,e.exports=s,s.id=35358},86860(e,t,n){"use strict";n.r(t),n.d(t,{VERSION:()=>s.VERSION,after:()=>s.after,all:()=>s.all,allKeys:()=>s.allKeys,any:()=>s.any,assign:()=>s.assign,before:()=>s.before,bind:()=>s.bind,bindAll:()=>s.bindAll,chain:()=>s.chain,chunk:()=>s.chunk,clone:()=>s.clone,collect:()=>s.collect,compact:()=>s.compact,compose:()=>s.compose,constant:()=>s.constant,contains:()=>s.contains,countBy:()=>s.countBy,create:()=>s.create,debounce:()=>s.debounce,default:()=>r.A,defaults:()=>s.defaults,defer:()=>s.defer,delay:()=>s.delay,detect:()=>s.detect,difference:()=>s.difference,drop:()=>s.drop,each:()=>s.each,escape:()=>s.escape,every:()=>s.every,extend:()=>s.extend,extendOwn:()=>s.extendOwn,filter:()=>s.filter,find:()=>s.find,findIndex:()=>s.findIndex,findKey:()=>s.findKey,findLastIndex:()=>s.findLastIndex,findWhere:()=>s.findWhere,first:()=>s.first,flatten:()=>s.flatten,foldl:()=>s.foldl,foldr:()=>s.foldr,forEach:()=>s.forEach,functions:()=>s.functions,get:()=>s.get,groupBy:()=>s.groupBy,has:()=>s.has,head:()=>s.head,identity:()=>s.identity,include:()=>s.include,includes:()=>s.includes,indexBy:()=>s.indexBy,indexOf:()=>s.indexOf,initial:()=>s.initial,inject:()=>s.inject,intersection:()=>s.intersection,invert:()=>s.invert,invoke:()=>s.invoke,isArguments:()=>s.isArguments,isArray:()=>s.isArray,isArrayBuffer:()=>s.isArrayBuffer,isBoolean:()=>s.isBoolean,isDataView:()=>s.isDataView,isDate:()=>s.isDate,isElement:()=>s.isElement,isEmpty:()=>s.isEmpty,isEqual:()=>s.isEqual,isError:()=>s.isError,isFinite:()=>s.isFinite,isFunction:()=>s.isFunction,isMap:()=>s.isMap,isMatch:()=>s.isMatch,isNaN:()=>s.isNaN,isNull:()=>s.isNull,isNumber:()=>s.isNumber,isObject:()=>s.isObject,isRegExp:()=>s.isRegExp,isSet:()=>s.isSet,isString:()=>s.isString,isSymbol:()=>s.isSymbol,isTypedArray:()=>s.isTypedArray,isUndefined:()=>s.isUndefined,isWeakMap:()=>s.isWeakMap,isWeakSet:()=>s.isWeakSet,iteratee:()=>s.iteratee,keys:()=>s.keys,last:()=>s.last,lastIndexOf:()=>s.lastIndexOf,map:()=>s.map,mapObject:()=>s.mapObject,matcher:()=>s.matcher,matches:()=>s.matches,max:()=>s.max,memoize:()=>s.memoize,methods:()=>s.methods,min:()=>s.min,mixin:()=>s.mixin,negate:()=>s.negate,noop:()=>s.noop,now:()=>s.now,object:()=>s.object,omit:()=>s.omit,once:()=>s.once,pairs:()=>s.pairs,partial:()=>s.partial,partition:()=>s.partition,pick:()=>s.pick,pluck:()=>s.pluck,property:()=>s.property,propertyOf:()=>s.propertyOf,random:()=>s.random,range:()=>s.range,reduce:()=>s.reduce,reduceRight:()=>s.reduceRight,reject:()=>s.reject,rest:()=>s.rest,restArguments:()=>s.restArguments,result:()=>s.result,sample:()=>s.sample,select:()=>s.select,shuffle:()=>s.shuffle,size:()=>s.size,some:()=>s.some,sortBy:()=>s.sortBy,sortedIndex:()=>s.sortedIndex,tail:()=>s.tail,take:()=>s.take,tap:()=>s.tap,template:()=>s.template,templateSettings:()=>s.templateSettings,throttle:()=>s.throttle,times:()=>s.times,toArray:()=>s.toArray,toPath:()=>s.toPath,transpose:()=>s.transpose,unescape:()=>s.unescape,union:()=>s.union,uniq:()=>s.uniq,unique:()=>s.unique,uniqueId:()=>s.uniqueId,unzip:()=>s.unzip,values:()=>s.values,where:()=>s.where,without:()=>s.without,wrap:()=>s.wrap,zip:()=>s.zip});var r=n(36210),s=n(50082)},50082(e,t,n){"use strict";n.r(t),n.d(t,{VERSION:()=>r.xv,after:()=>Ae.A,all:()=>Fe.A,allKeys:()=>j.A,any:()=>He.A,assign:()=>F.A,before:()=>_e.A,bind:()=>de.A,bindAll:()=>he.A,chain:()=>le.A,chunk:()=>yt.A,clone:()=>D.A,collect:()=>Ie.A,compact:()=>at.A,compose:()=>we.A,constant:()=>K.A,contains:()=>Ue.A,countBy:()=>Xe.A,create:()=>U.A,debounce:()=>ve.A,default:()=>wt.A,defaults:()=>H.A,defer:()=>me.A,delay:()=>fe.A,detect:()=>Ne.A,difference:()=>pt.A,drop:()=>ot.A,each:()=>je.A,escape:()=>ne.A,every:()=>Fe.A,extend:()=>B.A,extendOwn:()=>F.A,filter:()=>Re.A,find:()=>Ne.A,findIndex:()=>ke.A,findKey:()=>Ce.A,findLastIndex:()=>Pe.A,findWhere:()=>Oe.A,first:()=>rt.A,flatten:()=>lt.A,foldl:()=>Le.A,foldr:()=>Me.A,forEach:()=>je.A,functions:()=>R.A,get:()=>q.A,groupBy:()=>Je.A,has:()=>$.A,head:()=>rt.A,identity:()=>Y.A,include:()=>Ue.A,includes:()=>Ue.A,indexBy:()=>Ge.A,indexOf:()=>Se.A,initial:()=>st.A,inject:()=>Le.A,intersection:()=>ht.A,invert:()=>M.A,invoke:()=>De.A,isArguments:()=>w.A,isArray:()=>y.A,isArrayBuffer:()=>g.A,isBoolean:()=>l.A,isDataView:()=>v.A,isDate:()=>h.A,isElement:()=>c.A,isEmpty:()=>C.A,isEqual:()=>P.A,isError:()=>f.A,isFinite:()=>A.A,isFunction:()=>b.A,isMap:()=>E.A,isMatch:()=>k.A,isNaN:()=>_.A,isNull:()=>o.A,isNumber:()=>d.A,isObject:()=>i.A,isRegExp:()=>p.A,isSet:()=>T.A,isString:()=>u.A,isSymbol:()=>m.A,isTypedArray:()=>x.A,isUndefined:()=>a.A,isWeakMap:()=>S.A,isWeakSet:()=>N.A,iteratee:()=>ce.A,keys:()=>O.A,last:()=>it.A,lastIndexOf:()=>Te.A,map:()=>Ie.A,mapObject:()=>V.A,matcher:()=>Q.A,matches:()=>Q.A,max:()=>$e.A,memoize:()=>pe.A,methods:()=>R.A,min:()=>Ve.A,mixin:()=>bt.A,negate:()=>be.A,noop:()=>W.A,now:()=>te.A,object:()=>gt.A,omit:()=>nt.A,once:()=>xe.A,pairs:()=>L.A,partial:()=>ue.A,partition:()=>Qe.A,pick:()=>tt.A,pluck:()=>ze.A,property:()=>G.A,propertyOf:()=>X.A,random:()=>ee.A,range:()=>vt.A,reduce:()=>Le.A,reduceRight:()=>Me.A,reject:()=>Be.A,rest:()=>ot.A,restArguments:()=>s.A,result:()=>oe.A,sample:()=>Ke.A,select:()=>Re.A,shuffle:()=>Ye.A,size:()=>et.A,some:()=>He.A,sortBy:()=>We.A,sortedIndex:()=>Ee.A,tail:()=>ot.A,take:()=>rt.A,tap:()=>z.A,template:()=>ie.A,templateSettings:()=>se.A,throttle:()=>ge.A,times:()=>Z.A,toArray:()=>Ze.A,toPath:()=>J.A,transpose:()=>ft.A,unescape:()=>re.A,union:()=>dt.A,uniq:()=>ut.A,unique:()=>ut.A,uniqueId:()=>ae.A,unzip:()=>ft.A,values:()=>I.A,where:()=>qe.A,without:()=>ct.A,wrap:()=>ye.A,zip:()=>mt.A});var r=n(28794),s=n(11508),i=n(44099),o=n(21949),a=n(96734),l=n(85142),c=n(1138),u=n(90573),d=n(72897),h=n(88848),p=n(50093),f=n(82940),m=n(18628),g=n(38993),v=n(84933),y=n(15811),b=n(11380),w=n(66494),A=n(48215),_=n(58855),x=n(32271),C=n(31611),k=n(29143),P=n(71435),E=n(71940),S=n(30296),T=n(95094),N=n(9634),O=n(75144),j=n(88445),I=n(78850),L=n(55895),M=n(38024),R=n(66343),B=n(3080),F=n(19478),H=n(19318),U=n(50656),D=n(46463),z=n(73323),q=n(63854),$=n(7930),V=n(42687),Y=n(69702),K=n(86524),W=n(964),J=n(18398),G=n(35957),X=n(95048),Q=n(70104),Z=n(12672),ee=n(19291),te=n(52414),ne=n(20235),re=n(47868),se=n(2155),ie=n(74394),oe=n(60301),ae=n(64230),le=n(36503),ce=n(48557),ue=n(63015),de=n(95619),he=n(93964),pe=n(630),fe=n(52933),me=n(26622),ge=n(58448),ve=n(99527),ye=n(62112),be=n(66058),we=n(81734),Ae=n(86800),_e=n(73939),xe=n(55481),Ce=n(72532),ke=n(80843),Pe=n(58699),Ee=n(43481),Se=n(30899),Te=n(95379),Ne=n(9671),Oe=n(22888),je=n(79901),Ie=n(15928),Le=n(68518),Me=n(8606),Re=n(62478),Be=n(37183),Fe=n(47601),He=n(54580),Ue=n(38973),De=n(75112),ze=n(44339),qe=n(17453),$e=n(96624),Ve=n(3374),Ye=n(14875),Ke=n(86666),We=n(74849),Je=n(30824),Ge=n(43639),Xe=n(72232),Qe=n(90268),Ze=n(65228),et=n(39005),tt=n(88571),nt=n(54585),rt=n(42892),st=n(72826),it=n(10328),ot=n(59750),at=n(78707),lt=n(72704),ct=n(63182),ut=n(8037),dt=n(25981),ht=n(65665),pt=n(14299),ft=n(9176),mt=n(58877),gt=n(85919),vt=n(29271),yt=n(84327),bt=n(23991),wt=n(37643)}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.m=i,e=[],a.O=(t,n,r,s)=>{if(!n){var i=1/0;for(u=0;u<e.length;u++){for(var[n,r,s]=e[u],o=!0,l=0;l<n.length;l++)(!1&s||i>=s)&&Object.keys(a.O).every(e=>a.O[e](n[l]))?n.splice(l--,1):(o=!1,s<i&&(i=s));if(o){e.splice(u--,1);var c=r();void 0!==c&&(t=c)}}return t}s=s||0;for(var u=e.length;u>0&&e[u-1][2]>s;u--)e[u]=e[u-1];e[u]=[n,r,s]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce((t,n)=>(a.f[n](e,t),t),[])),a.u=e=>e+"-"+e+".js?v="+{2710:"0319a4b5398392025378",4471:"9b3c8620f038b7593241",7004:"da5a822695a273d4d2eb",7394:"9b9a710e7fcefb63fcb4",7859:"449c6cbdb74832a2f6c7",8127:"8825f856581210b8af66",8453:"d4f76450bf0c442af291",9553:"c8ce7bd4445f06a11ae6"}[e],a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},s="nextcloud-ui-legacy:",a.l=(e,t,n,i)=>{if(r[e])r[e].push(t);else{var o,l;if(void 0!==n)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==s+n){o=d;break}}o||(l=!0,(o=document.createElement("script")).charset="utf-8",a.nc&&o.setAttribute("nonce",a.nc),o.setAttribute("data-webpack",s+n),o.src=e),r[e]=[t];var h=(t,n)=>{o.onerror=o.onload=null,clearTimeout(p);var s=r[e];if(delete r[e],o.parentNode&&o.parentNode.removeChild(o),s&&s.forEach(e=>e(n)),t)return t(n)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=h.bind(null,o.onerror),o.onload=h.bind(null,o.onload),l&&document.head.appendChild(o)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.j=1418,(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{a.b="undefined"!=typeof document&&document.baseURI||self.location.href;var e={1418:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var s=new Promise((n,s)=>r=e[t]=[n,s]);n.push(r[2]=s);var i=a.p+a.u(t),o=new Error;a.l(i,n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var s=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;o.message="Loading chunk "+t+" failed.\n("+s+": "+i+")",o.name="ChunkLoadError",o.type=s,o.request=i,r[1](o)}},"chunk-"+t,t)}},a.O.j=t=>0===e[t];var t=(t,n)=>{var r,s,[i,o,l]=n,c=0;if(i.some(t=>0!==e[t])){for(r in o)a.o(o,r)&&(a.m[r]=o[r]);if(l)var u=l(a)}for(t&&t(n);c<i.length;c++)s=i[c],a.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return a.O(u)},n=globalThis.webpackChunknextcloud_ui_legacy=globalThis.webpackChunknextcloud_ui_legacy||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a.nc=void 0;var l=a.O(void 0,[4208],()=>a(24050));l=a.O(l)})();
//# sourceMappingURL=core-login.js.map?v=26dbd4f8601032142680