|
|
(()=>{var e,r,s,i={2277:(t,e,n)=>{"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.registerDefaultHelpers=function(t){s.default(t),i.default(t),o.default(t),a.default(t),l.default(t),c.default(t),u.default(t)},e.moveHelperToHooks=function(t,e,n){t.helpers[e]&&(t.hooks[e]=t.helpers[e],n||delete t.helpers[e])};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))},7624:(t,e,n)=>{"use strict";e.__esModule=!0,e.checkRevision=function(t){var e=t&&t[0]||1,n=o.COMPILER_REVISION;if(!(e>=o.LAST_COMPATIBLE_COMPILER_REVISION&&e<=o.COMPILER_REVISION)){if(e<o.LAST_COMPATIBLE_COMPILER_REVISION){var r=o.REVISION_CHANGES[n],s=o.REVISION_CHANGES[e];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 ("+t[1]+").")}},e.template=function(t,e){if(!e)throw new i.default("No environment passed to template");if(!t||!t.main)throw new i.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var n=t.compiler&&7===t.compiler[0],r={strict:function(t,e,n){if(!t||!(e in t))throw new i.default('"'+e+'" not defined in '+t,{loc:n});return r.lookupProperty(t,e)},lookupProperty:function(t,e){var n=t[e];return null==n||Object.prototype.hasOwnProperty.call(t,e)||c.resultIsAllowed(n,r.protoAccessControl,e)?n:void 0},lookup:function(t,e){for(var n=t.length,s=0;s<n;s++)if(null!=(t[s]&&r.lookupProperty(t[s],e)))return t[s][e]},lambda:function(t,e){return"function"==typeof t?t.call(e):t},escapeExpression:s.escapeExpression,invokePartial:function(n,r,o){o.hash&&(r=s.extend({},r,o.hash),o.ids&&(o.ids[0]=!0)),n=e.VM.resolvePartial.call(this,n,r,o);var a=s.extend({},o,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),l=e.VM.invokePartial.call(this,n,r,a);if(null==l&&e.compile&&(o.partials[o.name]=e.compile(n,t.compilerOptions,e),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(e){var n=t[e];return n.decorator=t[e+"_d"],n},programs:[],program:function(t,e,n,r,s){var i=this.programs[t],o=this.fn(t);return e||s||r||n?i=u(this,t,o,e,n,r,s):i||(i=this.programs[t]=u(this,t,o)),i},data:function(t,e){for(;t&&e--;)t=t._parent;return t},mergeIfNeeded:function(t,e){var n=t||e;return t&&e&&t!==e&&(n=s.extend({},e,t)),n},nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function d(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=n.data;d._setup(n),!n.partial&&t.useData&&(s=function(t,e){return e&&"root"in e||((e=e?o.createFrame(e):{}).root=t),e}(e,s));var i=void 0,a=t.useBlockParams?[]:void 0;function l(e){return""+t.main(r,e,r.helpers,r.partials,s,a,i)}return t.useDepths&&(i=n.depths?e!=n.depths[0]?[e].concat(n.depths):n.depths:[e]),(l=h(t.main,l,r,n.depths||[],s,a))(e,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({},e.helpers,i.helpers);!function(t,e){Object.keys(t).forEach(function(n){var r=t[n];t[n]=function(t,e){var n=e.lookupProperty;return l.wrapHelper(t,function(t){return s.extend({lookupProperty:n},t)})}(r,e)})}(o,r),r.helpers=o,t.usePartial&&(r.partials=r.mergeIfNeeded(i.partials,e.partials)),(t.usePartial||t.useDecorators)&&(r.decorators=s.extend({},e.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(e,n,s,o){if(t.useBlockParams&&!s)throw new i.default("must pass block params");if(t.useDepths&&!o)throw new i.default("must pass parent depths");return u(r,e,t[e],n,0,s,o)},d},e.wrapProgram=u,e.resolvePartial=function(t,e,n){return t?t.call||n.name||(n.name=t,t=n.partials[t]):t="@partial-block"===n.name?n.data["partial-block"]:n.partials[n.name],t},e.invokePartial=function(t,e,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 t=n.fn;a=n.data["partial-block"]=function(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return n.data=o.createFrame(n.data),n.data["partial-block"]=r,t(e,n)},t.partials&&(n.partials=s.extend({},n.partials,t.partials))}(),void 0===t&&a&&(t=a),void 0===t)throw new i.default("The partial "+n.name+" could not be found");if(t instanceof Function)return t(e,n)},e.noop=d;var r,s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(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(t,e,n,r,s,i,o){function a(e){var s=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],a=o;return!o||e==o[0]||e===t.nullContext&&null===o[0]||(a=[e].concat(o)),n(t,e,t.helpers,t.partials,s.data||r,i&&[s.blockParams].concat(i),a)}return(a=h(n,a,t,o,r,i)).program=e,a.depth=o?o.length:0,a.blockParams=s||0,a}function d(){return""}function h(t,e,n,r,i,o){if(t.decorator){var a={};e=t.decorator(e,a,n,r&&r[0],i,o,r),s.extend(e,a)}return e}},11999:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(71354),s=n.n(r),i=n(76314),o=n.n(i)()(s());o.push([t.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},13769:(t,e)=>{"use strict";e.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function r(t,e){var s=e&&e.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,t+=" - "+i+":"+a);for(var c=Error.prototype.constructor.call(this,t),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(t){}}r.prototype=new Error,e.default=r,t.exports=e.default},14353:(t,e,n)=>{"use strict";e.__esModule=!0;var r,s=(r=n(13769))&&r.__esModule?r:{default:r};e.default=function(t){t.registerHelper("helperMissing",function(){if(1!==arguments.length)throw new s.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},t.exports=e.default},14430:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(71354),s=n.n(r),i=n(76314),o=n.n(i)()(s());o.push([t.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},15340:()=>{},19613:(t,e)=>{"use strict";function n(t){this.string=t}e.__esModule=!0,n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},e.default=n,t.exports=e.default},20261:(t,e,n)=>{"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}e.__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 t=new i.HandlebarsEnvironment;return l.extend(t,i),t.SafeString=o.default,t.Exception=a.default,t.Utils=l,t.escapeExpression=l.escapeExpression,t.VM=c,t.template=function(e){return c.template(e,t)},t}var h=d();h.create=d,u.default(h),h.default=h,e.default=h,t.exports=e.default},21391:(t,e,n)=>{var r,s,i;i="object"==typeof self&&self.self===self&&self||"object"==typeof n.g&&n.g.global===n.g&&n.g,r=[n(12111),n(74692),e],s=function(t,e,n){i.Backbone=function(t,e,n,r){var s=t.Backbone,i=Array.prototype.slice;e.VERSION="1.6.1",e.$=r,e.noConflict=function(){return t.Backbone=s,this},e.emulateHTTP=!1,e.emulateJSON=!1;var o,a=e.Events={},l=/\s+/,c=function(t,e,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++)e=c(t,e,o[a],r[o[a]],i)}else if(r&&l.test(r))for(o=r.split(l);a<o.length;a++)e=t(e,o[a],s,i);else e=t(e,r,s,i);return e};a.on=function(t,e,n){return this._events=c(u,this._events||{},t,e,{context:n,ctx:this,listening:o}),o&&((this._listeners||(this._listeners={}))[o.id]=o,o.interop=!1),this},a.listenTo=function(t,e,r){if(!t)return this;var s=t._listenId||(t._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,t));var l=d(t,e,r,this);if(o=void 0,l)throw l;return a.interop&&a.on(e,r),this};var u=function(t,e,n,r){if(n){var s=t[e]||(t[e]=[]),i=r.context,o=r.ctx,a=r.listening;a&&a.count++,s.push({callback:n,context:i,ctx:i||o,listening:a})}return t},d=function(t,e,n,r){try{t.on(e,n,r)}catch(t){return t}};a.off=function(t,e,n){return this._events?(this._events=c(h,this._events,t,e,{context:n,listeners:this._listeners}),this):this},a.stopListening=function(t,e,r){var s=this._listeningTo;if(!s)return this;for(var i=t?[t._listenId]:n.keys(s),o=0;o<i.length;o++){var a=s[i[o]];if(!a)break;a.obj.off(e,r,this),a.interop&&a.off(e,r)}return n.isEmpty(s)&&(this._listeningTo=void 0),this};var h=function(t,e,r,s){if(t){var i,o=s.context,a=s.listeners,l=0;if(e||o||r){for(i=e?[e]:n.keys(t);l<i.length;l++){var c=t[e=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(e,r)}}u.length?t[e]=u:delete t[e]}return t}for(i=n.keys(a);l<i.length;l++)a[i[l]].cleanup()}};a.once=function(t,e,n){var r=c(p,{},t,e,this.off.bind(this));return"string"==typeof t&&null==n&&(e=void 0),this.on(r,e,n)},a.listenToOnce=function(t,e,n){var r=c(p,{},e,n,this.stopListening.bind(this,t));return this.listenTo(t,r)};var p=function(t,e,r,s){if(r){var i=t[e]=n.once(function(){s(e,i),r.apply(this,arguments)});i._callback=r}return t};a.trigger=function(t){if(!this._events)return this;for(var e=Math.max(0,arguments.length-1),n=Array(e),r=0;r<e;r++)n[r]=arguments[r+1];return c(f,this._events,t,void 0,n),this};var f=function(t,e,n,r){if(t){var s=t[e],i=t.all;s&&i&&(i=i.slice()),s&&m(s,r),i&&m(i,[e].concat(r))}return t},m=function(t,e){var n,r=-1,s=t.length,i=e[0],o=e[1],a=e[2];switch(e.length){case 0:for(;++r<s;)(n=t[r]).callback.call(n.ctx);return;case 1:for(;++r<s;)(n=t[r]).callback.call(n.ctx,i);return;case 2:for(;++r<s;)(n=t[r]).callback.call(n.ctx,i,o);return;case 3:for(;++r<s;)(n=t[r]).callback.call(n.ctx,i,o,a);return;default:for(;++r<s;)(n=t[r]).callback.apply(n.ctx,e);return}},g=function(t,e){this.id=t._listenId,this.listener=t,this.obj=e,this.interop=!0,this.count=0,this._events=void 0};g.prototype.on=a.on,g.prototype.off=function(t,e){var n;this.interop?(this._events=c(h,this._events,t,e,{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(e,a);var v=e.Model=function(t,e){var r=t||{};e||(e={}),this.preinitialize.apply(this,arguments),this.cid=n.uniqueId(this.cidPrefix),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(r=this.parse(r,e)||{});var s=n.result(this,"defaults");r=n.defaults(n.extend({},s,r),s),this.set(r,e),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(t){return n.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return n.escape(this.get(t))},has:function(t){return null!=this.get(t)},matches:function(t){return!!n.iteratee(t,this)(this.attributes)},set:function(t,e,r){if(null==t)return this;var s;if("object"==typeof t?(s=t,r=e):(s={})[t]=e,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)e=s[h],n.isEqual(c[h],e)||a.push(h),n.isEqual(d[h],e)?delete u[h]:u[h]=e,i?delete c[h]:c[h]=e;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(t,e){return this.set(t,void 0,n.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var r in this.attributes)e[r]=void 0;return this.set(e,n.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!n.isEmpty(this.changed):n.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&n.clone(this.changed);var e,r=this._changing?this._previousAttributes:this.attributes,s={};for(var i in t){var o=t[i];n.isEqual(r[i],o)||(s[i]=o,e=!0)}return!!e&&s},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(t){t=n.extend({parse:!0},t);var e=this,r=t.success;return t.success=function(n){var s=t.parse?e.parse(n,t):n;if(!e.set(s,t))return!1;r&&r.call(t.context,e,n,t),e.trigger("sync",e,n,t)},$(this,t),this.sync("read",this,t)},save:function(t,e,r){var s;null==t||"object"==typeof t?(s=t,r=e):(s={})[t]=e;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(t){o.attributes=l;var e=r.parse?o.parse(t,r):t;if(i&&(e=n.extend({},s,e)),e&&!o.set(e,r))return!1;a&&a.call(r.context,o,t,r),o.trigger("sync",o,t,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(t){t=t?n.clone(t):{};var e=this,r=t.success,s=t.wait,i=function(){e.stopListening(),e.trigger("destroy",e,e.collection,t)};t.success=function(n){s&&i(),r&&r.call(t.context,e,n,t),e.isNew()||e.trigger("sync",e,n,t)};var o=!1;return this.isNew()?n.defer(t.success):($(this,t),o=this.sync("delete",this,t)),s||i(),o},url:function(){var t=n.result(this,"urlRoot")||n.result(this.collection,"url")||q();if(this.isNew())return t;var e=this.get(this.idAttribute);return t.replace(/[^\/]$/,"$&/")+encodeURIComponent(e)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},n.extend({},t,{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=n.extend({},this.attributes,t);var r=this.validationError=this.validate(t,e)||null;return!r||(this.trigger("invalid",this,r,n.extend(e,{validationError:r})),!1)}});var w=e.Collection=function(t,e){e||(e={}),this.preinitialize.apply(this,arguments),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,n.extend({silent:!0},e))},b={add:!0,remove:!0,merge:!0},y={add:!0,remove:!1},_=function(t,e,n){n=Math.min(Math.max(n,0),t.length);var r,s=Array(t.length-n),i=e.length;for(r=0;r<s.length;r++)s[r]=t[r+n];for(r=0;r<i;r++)t[r+n]=e[r];for(r=0;r<s.length;r++)t[r+i+n]=s[r]};n.extend(w.prototype,a,{model:v,preinitialize:function(){},initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,n.extend({merge:!1},e,y))},remove:function(t,e){e=n.extend({},e);var r=!n.isArray(t);t=r?[t]:t.slice();var s=this._removeModels(t,e);return!e.silent&&s.length&&(e.changes={added:[],merged:[],removed:s},this.trigger("update",this,e)),r?s[0]:s},set:function(t,e){if(null!=t){(e=n.extend({},b,e)).parse&&!this._isModel(t)&&(t=this.parse(t,e)||[]);var r=!n.isArray(t);t=r?[t]:t.slice();var s=e.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=e.add,p=e.merge,f=e.remove,m=!1,g=this.comparator&&null==s&&!1!==e.sort,v=n.isString(this.comparator)?this.comparator:null;for(o=0;o<t.length;o++){i=t[o];var w=this.get(i);if(w){if(p&&i!==w){var y=this._isModel(i)?i.attributes:i;e.parse&&(y=w.parse(y,e)),w.set(y,e),c.push(w),g&&!m&&(m=w.hasChanged(v))}d[w.cid]||(d[w.cid]=!0,a.push(w)),t[o]=w}else h&&(i=t[o]=this._prepareModel(i,e))&&(l.push(i),this._addReference(i,e),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,e)}var x=!1,A=!g&&h&&f;if(a.length&&A?(x=this.length!==a.length||n.some(this.models,function(t,e){return t!==a[e]}),this.models.length=0,_(this.models,a,0),this.length=this.models.length):l.length&&(g&&(m=!0),_(this.models,l,null==s?this.length:s),this.length=this.models.length),m&&this.sort({silent:!0}),!e.silent){for(o=0;o<l.length;o++)null!=s&&(e.index=s+o),(i=l[o]).trigger("add",i,this,e);(m||x)&&this.trigger("sort",this,e),(l.length||u.length||c.length)&&(e.changes={added:l,removed:u,merged:c},this.trigger("update",this,e))}return r?t[0]:t}},reset:function(t,e){e=e?n.clone(e):{};for(var r=0;r<this.models.length;r++)this._removeReference(this.models[r],e);return e.previousModels=this.models,this._reset(),t=this.add(t,n.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,n.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t)},unshift:function(t,e){return this.add(t,n.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return i.apply(this.models,arguments)},get:function(t){if(null!=t)return this._byId[t]||this._byId[this.modelId(this._isModel(t)?t.attributes:t,t.idAttribute)]||t.cid&&this._byId[t.cid]},has:function(t){return null!=this.get(t)},at:function(t){return t<0&&(t+=this.length),this.models[t]},where:function(t,e){return this[e?"find":"filter"](t)},findWhere:function(t){return this.where(t,!0)},sort:function(t){var e=this.comparator;if(!e)throw new Error("Cannot sort a set without a comparator");t||(t={});var r=e.length;return n.isFunction(e)&&(e=e.bind(this)),1===r||n.isString(e)?this.models=this.sortBy(e):this.models.sort(e),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return this.map(t+"")},fetch:function(t){var e=(t=n.extend({parse:!0},t)).success,r=this;return t.success=function(n){var s=t.reset?"reset":"set";r[s](n,t),e&&e.call(t.context,r,n,t),r.trigger("sync",r,n,t)},$(this,t),this.sync("read",this,t)},create:function(t,e){var r=(e=e?n.clone(e):{}).wait;if(!(t=this._prepareModel(t,e)))return!1;r||this.add(t,e);var s=this,i=e.success;return e.success=function(t,e,n){r&&(t.off("error",s._forwardPristineError,s),s.add(t,n)),i&&i.call(n.context,t,e,n)},r&&t.once("error",this._forwardPristineError,this),t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t,e){return t[e||this.model.prototype.idAttribute||"id"]},values:function(){return new A(this,C)},keys:function(){return new A(this,k)},entries:function(){return new A(this,P)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){return this._isModel(t)?(t.collection||(t.collection=this),t):((e=e?n.clone(e):{}).collection=this,(r=this.model.prototype?new this.model(t,e):this.model(t,e)).validationError?(this.trigger("invalid",this,r.validationError,e),!1):r);var r},_removeModels:function(t,e){for(var n=[],r=0;r<t.length;r++){var s=this.get(t[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],e.silent||(e.index=i,s.trigger("remove",s,this,e)),n.push(s),this._removeReference(s,e)}}return t.length>0&&!e.silent&&delete e.index,n},_isModel:function(t){return t instanceof v},_addReference:function(t,e){this._byId[t.cid]=t;var n=this.modelId(t.attributes,t.idAttribute);null!=n&&(this._byId[n]=t),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){delete this._byId[t.cid];var n=this.modelId(t.attributes,t.idAttribute);null!=n&&delete this._byId[n],this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,n,r){if(e){if(("add"===t||"remove"===t)&&n!==this)return;if("destroy"===t&&this.remove(e,r),"changeId"===t){var s=this.modelId(e.previousAttributes(),e.idAttribute),i=this.modelId(e.attributes,e.idAttribute);null!=s&&delete this._byId[s],null!=i&&(this._byId[i]=e)}}this.trigger.apply(this,arguments)},_forwardPristineError:function(t,e,n){this.has(t)||this._onModelEvent("error",t,e,n)}});var x="function"==typeof Symbol&&Symbol.iterator;x&&(w.prototype[x]=w.prototype.values);var A=function(t,e){this._collection=t,this._kind=e,this._index=0},C=1,k=2,P=3;x&&(A.prototype[x]=function(){return this}),A.prototype.next=function(){if(this._collection){if(this._index<this._collection.length){var t,e=this._collection.at(this._index);if(this._index++,this._kind===C)t=e;else{var n=this._collection.modelId(e.attributes,e.idAttribute);t=this._kind===k?n:[n,e]}return{value:t,done:!1}}this._collection=void 0}return{value:void 0,done:!0}};var E=e.View=function(t){this.cid=n.uniqueId("view"),this.preinitialize.apply(this,arguments),n.extend(this,n.pick(t,S)),this._ensureElement(),this.initialize.apply(this,arguments)},T=/^(\S+)\s*(.*)$/,S=["model","collection","el","id","attributes","className","tagName","events"];n.extend(E.prototype,a,{tagName:"div",$:function(t){return this.$el.find(t)},preinitialize:function(){},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(t){return this.undelegateEvents(),this._setElement(t),this.delegateEvents(),this},_setElement:function(t){this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0]},delegateEvents:function(t){if(t||(t=n.result(this,"events")),!t)return this;for(var e in this.undelegateEvents(),t){var r=t[e];if(n.isFunction(r)||(r=this[r]),r){var s=e.match(T);this.delegate(s[1],s[2],r.bind(this))}}return this},delegate:function(t,e,n){return this.$el.on(t+".delegateEvents"+this.cid,e,n),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(t,e,n){return this.$el.off(t+".delegateEvents"+this.cid,e,n),this},_createElement:function(t){return document.createElement(t)},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"));else{var t=n.extend({},n.result(this,"attributes"));this.id&&(t.id=n.result(this,"id")),this.className&&(t.class=n.result(this,"className")),this.setElement(this._createElement(n.result(this,"tagName"))),this._setAttributes(t)}},_setAttributes:function(t){this.$el.attr(t)}});var N=function(t,e,r,s){n.each(r,function(n,r){e[r]&&(t.prototype[r]=function(t,e,n,r){switch(e){case 1:return function(){return t[n](this[r])};case 2:return function(e){return t[n](this[r],e)};case 3:return function(e,s){return t[n](this[r],O(e,this),s)};case 4:return function(e,s,i){return t[n](this[r],O(e,this),s,i)};default:return function(){var e=i.call(arguments);return e.unshift(this[r]),t[n].apply(t,e)}}}(e,n,r,s))})},O=function(t,e){return n.isFunction(t)?t:n.isObject(t)&&!e._isModel(t)?j(t):n.isString(t)?function(e){return e.get(t)}:t},j=function(t){var e=n.matches(t);return function(t){return e(t.attributes)}};n.each([[w,{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(t){var e=t[0],r=t[1],s=t[2];e.mixin=function(t){var r=n.reduce(n.functions(t),function(t,e){return t[e]=0,t},{});N(e,t,r,s)},N(e,n,r,s)}),e.sync=function(t,r,s){var i=I[t];n.defaults(s||(s={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var o={type:i,dataType:"json"};if(s.url||(o.url=n.result(r,"url")||q()),null!=s.data||!r||"create"!==t&&"update"!==t&&"patch"!==t||(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(t){if(t.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(t,e,n){s.textStatus=e,s.errorThrown=n,l&&l.call(s.context,t,e,n)};var c=s.xhr=e.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"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var L=e.Router=function(t){t||(t={}),this.preinitialize.apply(this,arguments),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},M=/\((.*?)\)/g,R=/(\(\?)?:\w+/g,B=/\*\w+/g,H=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(L.prototype,a,{preinitialize:function(){},initialize:function(){},route:function(t,r,s){n.isRegExp(t)||(t=this._routeToRegExp(t)),n.isFunction(r)&&(s=r,r=""),s||(s=this[r]);var i=this;return e.history.route(t,function(n){var o=i._extractParameters(t,n);!1!==i.execute(s,o,r)&&(i.trigger.apply(i,["route:"+r].concat(o)),i.trigger("route",r,o),e.history.trigger("route",i,r,o))}),this},execute:function(t,e,n){t&&t.apply(this,e)},navigate:function(t,n){return e.history.navigate(t,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var t,e=n.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(H,"\\$&").replace(M,"(?:$1)?").replace(R,function(t,e){return e?t:"([^/?]+)"}).replace(B,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var r=t.exec(e).slice(1);return n.map(r,function(t,e){return e===r.length-1?t||null:t?decodeURIComponent(t):null})}});var U=e.History=function(){this.handlers=[],this.checkUrl=this.checkUrl.bind(this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},F=/^[#\/]|\s+$/g,D=/^\/+|\/+$/g,z=/#.*$/;U.started=!1,n.extend(U.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(t){return decodeURI(t.replace(/%25/g,"%2525"))},getSearch:function(){var t=this.location.href.replace(/#.*/,"").match(/\?.+/);return t?t[0]:""},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getPath:function(){var t=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===t.charAt(0)?t.slice(1):t},getFragment:function(t){return null==t&&(t=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),t.replace(F,"")},start:function(t){if(U.started)throw new Error("Backbone.history has already been started");if(U.started=!0,this.options=n.extend({root:"/"},this.options,t),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 e=this.root.slice(0,-1)||"/";return this.location.replace(e+"#"+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(t,e){return attachEvent("on"+t,e)};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 t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&t("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),U.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe&&(e=this.getHash(this.iframe.contentWindow)),e===this.fragment)return!this.matchRoot()&&this.notfound();this.iframe&&this.navigate(e),this.loadUrl()},loadUrl:function(t){return this.matchRoot()?(t=this.fragment=this.getFragment(t),n.some(this.handlers,function(e){if(e.route.test(t))return e.callback(t),!0})||this.notfound()):this.notfound()},notfound:function(){return this.trigger("notfound"),!1},navigate:function(t,e){if(!U.started)return!1;e&&!0!==e||(e={trigger:!!e}),t=this.getFragment(t||"");var n=this.root;this._trailingSlash||""!==t&&"?"!==t.charAt(0)||(n=n.slice(0,-1)||"/");var r=n+t;t=t.replace(z,"");var s=this.decodeFragment(t);if(this.fragment!==s){if(this.fragment=s,this._usePushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,r);else{if(!this._wantsHashChange)return this.location.assign(r);if(this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var i=this.iframe.contentWindow;e.replace||(i.document.open(),i.document.close()),this._updateHash(i.location,t,e.replace)}}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){if(n){var r=t.href.replace(/(javascript:|#).*$/,"");t.replace(r+"#"+e)}else t.hash="#"+e}}),e.history=new U;v.extend=w.extend=L.extend=E.extend=U.extend=function(t,e){var r,s=this;return r=t&&n.has(t,"constructor")?t.constructor:function(){return s.apply(this,arguments)},n.extend(r,s,e),r.prototype=n.create(s.prototype,t),r.prototype.constructor=r,r.__super__=s.prototype,r};var q=function(){throw new Error('A "url" property or function must be specified')},$=function(t,e){var n=e.error;e.error=function(r){n&&n.call(e.context,t,r,e),t.trigger("error",t,r,e)}};return e._debug=function(){return{root:t,_:n}},e}(i,n,t,e)}.apply(e,r),void 0===s||(t.exports=s)},26097:(t,e,n)=>{"use strict";e.__esModule=!0;var r=n(82849);e.default=function(t){t.registerHelper("blockHelperMissing",function(e,n){var s=n.inverse,i=n.fn;if(!0===e)return i(this);if(!1===e||null==e)return s(this);if(r.isArray(e))return e.length>0?(n.ids&&(n.ids=[n.name]),t.helpers.each(e,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(e,n)})},t.exports=e.default},26874:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(71354),s=n.n(r),i=n(76314),o=n.n(i)()(s());o.push([t.id,".reset-password-form[data-v-122e1cbd]{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},35358:(t,e,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":60301,"./ar-sa.js":60301,"./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(t){var e=i(t);return n(e)}function i(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}s.keys=function(){return Object.keys(r)},s.resolve=i,t.exports=s,s.id=35358},37466:(t,e)=>{"use strict";e.__esModule=!0,e.default=function(t){t.registerHelper("lookup",function(t,e,n){return t?n.lookupProperty(t,e):t})},t.exports=e.default},40566:(t,e,n)=>{"use strict";e.__esModule=!0;var r=n(82849),s={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(t){if("string"==typeof t){var e=r.indexOf(s.methodMap,t.toLowerCase());t=e>=0?e:parseInt(t,10)}return t},log:function(t){if(t=s.lookupLevel(t),"undefined"!=typeof console&&s.lookupLevel(s.level)<=t){var e=s.methodMap[t];console[e]||(e="log");for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];console[e].apply(console,r)}}};e.default=s,t.exports=e.default},46785:(t,e,n)=>{"use strict";e.__esModule=!0;var r,s=n(82849),i=(r=n(13769))&&r.__esModule?r:{default:r};e.default=function(t){t.registerHelper("each",function(t,e){if(!e)throw new i.default("Must pass iterator to #each");var n,r=e.fn,o=e.inverse,a=0,l="",c=void 0,u=void 0;function d(e,n,i){c&&(c.key=e,c.index=n,c.first=0===n,c.last=!!i,u&&(c.contextPath=u+e)),l+=r(t[e],{data:c,blockParams:s.blockParams([t[e],e],[u+e,null])})}if(e.data&&e.ids&&(u=s.appendContextPath(e.data.contextPath,e.ids[0])+"."),s.isFunction(t)&&(t=t.call(this)),e.data&&(c=s.createFrame(e.data)),t&&"object"==typeof t)if(s.isArray(t))for(var h=t.length;a<h;a++)a in t&&d(a,a,a===t.length-1);else if("function"==typeof Symbol&&t[Symbol.iterator]){for(var p=[],f=t[Symbol.iterator](),m=f.next();!m.done;m=f.next())p.push(m.value);for(h=(t=p).length;a<h;a++)d(a,a,a===t.length-1)}else n=void 0,Object.keys(t).forEach(function(t){void 0!==n&&d(n,a-1),n=t,a++}),void 0!==n&&d(n,a-1,!0);return 0===a&&(l=o(this)),l})},t.exports=e.default},47790:()=>{},48926:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(71354),s=n.n(r),i=n(76314),o=n.n(i)()(s());o.push([t.id,".login-form[data-v-dff2521a]{text-align:start;font-size:1rem;margin:0}.login-form__fieldset[data-v-dff2521a]{width:100%;display:flex;flex-direction:column;gap:.5rem}.login-form__headline[data-v-dff2521a]{text-align:center;overflow-wrap:anywhere}.login-form[data-v-dff2521a] 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},50908:(t,e,n)=>{"use strict";e.__esModule=!0;var r,s=n(82849),i=(r=n(13769))&&r.__esModule?r:{default:r};e.default=function(t){t.registerHelper("with",function(t,e){if(2!=arguments.length)throw new i.default("#with requires exactly one argument");s.isFunction(t)&&(t=t.call(this));var n=e.fn;if(s.isEmpty(t))return e.inverse(this);var r=e.data;return e.data&&e.ids&&((r=s.createFrame(e.data)).contextPath=s.appendContextPath(e.data.contextPath,e.ids[0])),n(t,{data:r,blockParams:s.blockParams([t],[r&&r.contextPath])})})},t.exports=e.default},51069:()=>{},57388:(e,r,s)=>{"use strict";var i={};s.r(i),s.d(i,{clearIconCache:()=>fe,getIconUrl:()=>he});var o=s(85471),a=s(81222),l=s(63814),c=s(82490),u=s(74095),d=s(31133),h=s(53334),p=s(17334),f=s.n(p),m=s(32073),g=s(93663),v=s(82182);const w={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 b=s(85072),y=s.n(b),_=s(97825),x=s.n(_),A=s(77659),C=s.n(A),k=s(55056),P=s.n(k),E=s(10540),T=s.n(E),S=s(41113),N=s.n(S),O=s(14430),j={};j.styleTagTransform=N(),j.setAttributes=P(),j.insert=C().bind(null,"head"),j.domAPI=x(),j.insertStyleElement=T(),y()(O.A,j),O.A&&O.A.locals&&O.A.locals;var I=s(14486);const L=(0,I.A)(w,function(){var t=this,e=t._self._c;return e("NcButton",{attrs:{variant:"primary",type:"submit",wide:!0,disabled:t.loading},on:{click:function(e){return t.$emit("click")}},scopedSlots:t._u([{key:"icon",fn:function(){return[t.loading?e("div",{staticClass:"submit-wrapper__icon icon-loading-small-dark"}):e("ArrowRight",{staticClass:"submit-wrapper__icon"})]},proxy:!0}])},[t._v("\n\t"+t._s(t.loading?t.valueLoading:t.value)+"\n\t")])},[],!1,null,"bbf83d00",null).exports,M={computed:{userNameInputLengthIs255(){return this.user.length>=255},userInputHelperText(){if(this.userNameInputLengthIs255)return t("core","Email length is at max (255)")}}},R={name:"LoginForm",components:{LoginButton:L,NcCheckboxRadioSwitch:m.A,NcPasswordField:g.A,NcTextField:v.A,NcNoteCard:d.A},mixins:[M],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:t=>({loading:!1,user:t.username,password:"",rememberme:["1"],visible:!1}),computed:{resetFormTimeout(){return this.loginTimeout<=0?()=>{}:f()(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","We have detected multiple invalid login attempts from your IP. Therefore your next login is throttled up to 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(t=>"1"===t)},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(t){this.visible=!1,this.loading?t.preventDefault():(this.loading=!0,this.$emit("submit"))}}};var B=s(48926),H={};H.styleTagTransform=N(),H.setAttributes=P(),H.insert=C().bind(null,"head"),H.domAPI=x(),H.insertStyleElement=T(),y()(B.A,H),B.A&&B.A.locals&&B.A.locals;const U=(0,I.A)(R,function(){var t=this,e=t._self._c;return e("form",{ref:"loginForm",staticClass:"login-form",attrs:{method:"post",name:"login",action:t.loginActionUrl},on:{submit:t.submit}},[e("fieldset",{staticClass:"login-form__fieldset",attrs:{"data-login-form":""}},[t.apacheAuthFailed?e("NcNoteCard",{attrs:{title:t.t("core","Server side authentication failed!"),type:"warning"}},[t._v("\n\t\t\t"+t._s(t.t("core","Please contact your administrator."))+"\n\t\t")]):t._e(),t._v(" "),t.csrfCheckFailed?e("NcNoteCard",{attrs:{heading:t.t("core","Session error"),type:"error"}},[t._v("\n\t\t\t"+t._s(t.t("core","It appears your session token has expired, please refresh the page and try again."))+"\n\t\t")]):t._e(),t._v(" "),t.messages.length>0?e("NcNoteCard",t._l(t.messages,function(n,r){return e("div",{key:r},[t._v("\n\t\t\t\t"+t._s(n)),e("br")])}),0):t._e(),t._v(" "),t.internalException?e("NcNoteCard",{class:t.t("core","An internal error occurred."),attrs:{type:"warning"}},[t._v("\n\t\t\t"+t._s(t.t("core","Please try again or contact your administrator."))+"\n\t\t")]):t._e(),t._v(" "),e("div",{staticClass:"hidden",attrs:{id:"message"}},[e("img",{staticClass:"float-spinner",attrs:{alt:"",src:t.loadingIcon}}),t._v(" "),e("span",{attrs:{id:"messageText"}}),t._v(" "),e("div",{staticStyle:{clear:"both"}})]),t._v(" "),e("h2",{staticClass:"login-form__headline",attrs:{"data-login-form-headline":""}},[t._v("\n\t\t\t"+t._s(t.headlineText)+"\n\t\t")]),t._v(" "),e("NcTextField",{ref:"user",class:{shake:t.invalidPassword},attrs:{id:"user",label:t.loginText,name:"user",maxlength:255,value:t.user,autocapitalize:"none",spellchecking:!1,autocomplete:t.autoCompleteAllowed?"username":"off",required:"",error:t.userNameInputLengthIs255,"helper-text":t.userInputHelperText,"data-login-form-input-user":""},on:{"update:value":function(e){t.user=e},change:t.updateUsername}}),t._v(" "),e("NcPasswordField",{ref:"password",class:{shake:t.invalidPassword},attrs:{id:"password",name:"password",value:t.password,spellchecking:!1,autocapitalize:"none",autocomplete:t.autoCompleteAllowed?"current-password":"off",label:t.t("core","Password"),"helper-text":t.errorLabel,error:t.isError,visible:t.visible,"data-login-form-input-password":"",required:""},on:{"update:value":function(e){t.password=e}}}),t._v(" "),t.remembermeAllowed?e("NcCheckboxRadioSwitch",{ref:"rememberme",attrs:{id:"rememberme",name:"rememberme",value:"1",checked:t.rememberme,"data-login-form-input-rememberme":""},on:{"update:checked":function(e){t.rememberme=e}}},[t._v("\n\t\t\t"+t._s(t.t("core","Remember me"))+"\n\t\t")]):t._e(),t._v(" "),e("LoginButton",{attrs:{"data-login-form-submit":"",loading:t.loading}}),t._v(" "),t.redirectUrl?e("input",{attrs:{type:"hidden",name:"redirect_url"},domProps:{value:t.redirectUrl}}):t._e(),t._v(" "),e("input",{attrs:{type:"hidden",name:"timezone"},domProps:{value:t.timezone}}),t._v(" "),e("input",{attrs:{type:"hidden",name:"timezone_offset"},domProps:{value:t.timezoneOffset}}),t._v(" "),e("input",{attrs:{type:"hidden",name:"requesttoken"},domProps:{value:t.requestToken}}),t._v(" "),t.directLogin?e("input",{attrs:{type:"hidden",name:"direct",value:"1"}}):t._e()],1)])},[],!1,null,"dff2521a",null).exports;function F(){return D.stubThis(void 0!==globalThis?.PublicKeyCredential&&"function"==typeof globalThis.PublicKeyCredential)}const D={stubThis:t=>t};class z extends Error{constructor({message:t,code:e,cause:n,name:r}){super(t,{cause:n}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=r??n.name,this.code=e}}const q=new class{constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}createNewAbortSignal(){if(this.controller){const t=new Error("Cancelling existing WebAuthn API call for new one");t.name="AbortError",this.controller.abort(t)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}};function $(t){const e=new Uint8Array(t);let n="";for(const t of e)n+=String.fromCharCode(t);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function V(t){const e=t.replace(/-/g,"+").replace(/_/g,"/"),n=(4-e.length%4)%4,r=e.padEnd(e.length+n,"="),s=atob(r),i=new ArrayBuffer(s.length),o=new Uint8Array(i);for(let t=0;t<s.length;t++)o[t]=s.charCodeAt(t);return i}const Y=t=>t;function J(t){const{id:e}=t;return{...t,id:V(e),transports:t.transports}}const K=["cross-platform","platform"];function W(t){if(t&&!(K.indexOf(t)<0))return t}var G=s(42507),X=s(41423);const Q={name:"LockOpenIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Z=(0,I.A)(Q,function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon lock-open-icon",attrs:{"aria-hidden":t.title?null:"true","aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("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"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])},[],!1,null,null,null).exports;var tt=s(21777),et=s(35947);const nt=null===(rt=(0,tt.HW)())?(0,et.YK)().setApp("core").build():(0,et.YK)().setApp("core").setUid(rt.uid).build();var rt;(0,et.YK)().setApp("unified-search").detectUser().build();var st=s(19051);class it extends Error{}const ot=(0,o.pM)({name:"PasswordLessLoginForm",components:{LoginButton:L,InformationIcon:X.A,LockOpenIcon:Z,NcEmptyContent:G.A,NcTextField:v.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:F()}),data(){return{user:this.username,loading:!1,validCredentials:!0}},methods:{async authenticate(){if(this.$refs.loginForm.checkValidity()){nt.debug("passwordless login initiated");try{const t=await async function(t){const e=(0,l.Jv)("/login/webauthn/start"),{data:n}=await st.Ay.post(e,{loginName:t});if(!n.allowCredentials||0===n.allowCredentials.length)throw nt.error("No valid credentials returned for webauthn"),new it;return await async function(t){!t.optionsJSON&&t.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."),t={optionsJSON:t});const{optionsJSON:e,useBrowserAutofill:n=!1,verifyBrowserAutofillInput:r=!0}=t;if(!F())throw new Error("WebAuthn is not supported in this browser");let s;0!==e.allowCredentials?.length&&(s=e.allowCredentials?.map(J));const i={...e,challenge:V(e.challenge),allowCredentials:s},o={};if(n){if(!await function(){if(!F())return Y(new Promise(t=>t(!1)));const t=globalThis.PublicKeyCredential;return Y(void 0===t?.isConditionalMediationAvailable?new Promise(t=>t(!1)):t.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=q.createNewAbortSignal();try{a=await navigator.credentials.get(o)}catch(t){throw function({error:t,options:e}){const{publicKey:n}=e;if(!n)throw Error("options was missing required publicKey property");if("AbortError"===t.name){if(e.signal instanceof AbortSignal)return new z({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if("NotAllowedError"===t.name)return new z({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if("SecurityError"===t.name){const e=globalThis.location.hostname;if("localhost"!==(r=e)&&!/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(r))return new z({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t});if(n.rpId!==e)return new z({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else if("UnknownError"===t.name)return new z({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}var r;return t}({error:t,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=$(u.userHandle)),{id:l,rawId:$(c),response:{authenticatorData:$(u.authenticatorData),clientDataJSON:$(u.clientDataJSON),signature:$(u.signature),userHandle:h},type:d,clientExtensionResults:a.getClientExtensionResults(),authenticatorAttachment:W(a.authenticatorAttachment)}}({optionsJSON:n})}(this.user);await this.completeAuthentication(t)}catch(t){if(t instanceof it)return void(this.validCredentials=!1);nt.debug(t)}}},changeUsername(t){this.user=t,this.$emit("update:username",this.user)},completeAuthentication(t){const e=this.redirectUrl;return async function(t){const e=(0,l.Jv)("/login/webauthn/finish"),{data:n}=await st.Ay.post(e,{data:JSON.stringify(t)});return n}(t).then(({defaultRedirectUrl:t})=>{nt.debug("Logged in redirecting"),window.location.href=e||t}).catch(t=>{nt.debug("GOT AN ERROR WHILE SUBMITTING CHALLENGE!",{error:t})})},submit(){}}});var at=s(94002),lt={};lt.styleTagTransform=N(),lt.setAttributes=P(),lt.insert=C().bind(null,"head"),lt.domAPI=x(),lt.insertStyleElement=T(),y()(at.A,lt),at.A&&at.A.locals&&at.A.locals;const ct=(0,I.A)(ot,function(){var t=this,e=t._self._c;return t._self._setupProxy,(t.isHttps||t.isLocalhost)&&t.supportsWebauthn?e("form",{ref:"loginForm",staticClass:"password-less-login-form",attrs:{"aria-labelledby":"password-less-login-form-title",method:"post",name:"login"},on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[e("h2",{attrs:{id:"password-less-login-form-title"}},[t._v("\n\t\t"+t._s(t.t("core","Log in with a device"))+"\n\t")]),t._v(" "),e("NcTextField",{attrs:{required:"",value:t.user,autocomplete:t.autoCompleteAllowed?"on":"off",error:!t.validCredentials,label:t.t("core","Login or email"),placeholder:t.t("core","Login or email"),"helper-text":t.validCredentials?"":t.t("core","Your account is not setup for passwordless login.")},on:{"update:value":t.changeUsername}}),t._v(" "),t.validCredentials?e("LoginButton",{attrs:{loading:t.loading},on:{click:t.authenticate}}):t._e()],1):t.isHttps||t.isLocalhost?e("NcEmptyContent",{attrs:{name:t.t("core","Browser not supported"),description:t.t("core","Passwordless authentication is not supported in your browser.")},scopedSlots:t._u([{key:"icon",fn:function(){return[e("InformationIcon")]},proxy:!0}])}):e("NcEmptyContent",{attrs:{name:t.t("core","Your connection is not secure"),description:t.t("core","Passwordless authentication is only available over a secure connection.")},scopedSlots:t._u([{key:"icon",fn:function(){return[e("LockOpenIcon")]},proxy:!0}])})},[],!1,null,"64bed448",null).exports,ut=(0,o.pM)({name:"ResetPassword",components:{LoginButton:L,NcButton:u.A,NcNoteCard:d.A,NcTextField:v.A},mixins:[M],props:{username:{type:String,required:!0},resetPasswordLink:{type:String,required:!0}},data(){return{error:!1,loading:!1,message:"",user:this.username}},watch:{username(t){this.user=t}},methods:{updateUsername(){this.$emit("update:username",this.user)},async submit(){this.loading=!0,this.error=!1,this.message="";const t=(0,l.Jv)("/lostpassword/email");try{const{data:e}=await st.Ay.post(t,{user:this.user});if("success"!==e.status)throw new Error(`got status ${e.status}`);this.message="send-success"}catch(t){nt.error("could not send reset email request",{error:t}),this.error=!0,this.message="send-error"}finally{this.loading=!1}}}});var dt=s(26874),ht={};ht.styleTagTransform=N(),ht.setAttributes=P(),ht.insert=C().bind(null,"head"),ht.domAPI=x(),ht.insertStyleElement=T(),y()(dt.A,ht),dt.A&&dt.A.locals&&dt.A.locals;const pt=(0,I.A)(ut,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("form",{staticClass:"reset-password-form",on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[e("h2",[t._v(t._s(t.t("core","Reset password")))]),t._v(" "),e("NcTextField",{attrs:{id:"user",value:t.user,name:"user",maxlength:255,autocapitalize:"off",label:t.t("core","Login or email"),error:t.userNameInputLengthIs255,"helper-text":t.userInputHelperText,required:""},on:{"update:value":function(e){t.user=e},change:t.updateUsername}}),t._v(" "),e("LoginButton",{attrs:{loading:t.loading,value:t.t("core","Reset password")}}),t._v(" "),e("NcButton",{attrs:{variant:"tertiary",wide:""},on:{click:function(e){return t.$emit("abort")}}},[t._v("\n\t\t"+t._s(t.t("core","Back to login"))+"\n\t")]),t._v(" "),"send-success"===t.message?e("NcNoteCard",{attrs:{type:"success"}},[t._v("\n\t\t"+t._s(t.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"===t.message?e("NcNoteCard",{attrs:{type:"error"}},[t._v("\n\t\t"+t._s(t.t("core","Couldn't send reset email. Please contact your administrator."))+"\n\t")]):"reset-error"===t.message?e("NcNoteCard",{attrs:{type:"error"}},[t._v("\n\t\t"+t._s(t.t("core","Password cannot be changed. Please contact your administrator."))+"\n\t")]):t._e()],1)},[],!1,null,"122e1cbd",null).exports,ft={name:"UpdatePassword",components:{LoginButton:L},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(t){this.user=t}},methods:{async submit(){this.loading=!0,this.error=!1,this.message="";try{const{data:t}=await st.Ay.post(this.resetPasswordTarget,{password:this.password,proceed:this.proceed});if(t&&"success"===t.status)this.message="send-success",this.$emit("update:username",this.user),this.$emit("done");else{if(!t||!t.encryption)throw t&&t.msg?new Error(t.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 mt=s(81604),gt={};gt.styleTagTransform=N(),gt.setAttributes=P(),gt.insert=C().bind(null,"head"),gt.domAPI=x(),gt.insertStyleElement=T(),y()(mt.A,gt),mt.A&&mt.A.locals&&mt.A.locals;const vt=(0,I.A)(ft,function(){var t=this,e=t._self._c;return e("form",{on:{submit:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[e("fieldset",[e("p",[e("label",{staticClass:"infield",attrs:{for:"password"}},[t._v(t._s(t.t("core","New password")))]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],attrs:{id:"password",type:"password",name:"password",autocomplete:"new-password",autocapitalize:"none",spellcheck:"false",required:"",placeholder:t.t("core","New password")},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})]),t._v(" "),t.encrypted?e("div",{staticClass:"update"},[e("p",[t._v("\n\t\t\t\t"+t._s(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._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.proceed,expression:"proceed"}],staticClass:"checkbox",attrs:{id:"encrypted-continue",type:"checkbox"},domProps:{checked:Array.isArray(t.proceed)?t._i(t.proceed,null)>-1:t.proceed},on:{change:function(e){var n=t.proceed,r=e.target,s=!!r.checked;if(Array.isArray(n)){var i=t._i(n,null);r.checked?i<0&&(t.proceed=n.concat([null])):i>-1&&(t.proceed=n.slice(0,i).concat(n.slice(i+1)))}else t.proceed=s}}}),t._v(" "),e("label",{attrs:{for:"encrypted-continue"}},[t._v("\n\t\t\t\t"+t._s(t.t("core","I know what I'm doing"))+"\n\t\t\t")])]):t._e(),t._v(" "),e("LoginButton",{attrs:{loading:t.loading,value:t.t("core","Reset password"),"value-loading":t.t("core","Resetting password")}}),t._v(" "),t.error&&t.message?e("p",{class:{warning:t.error}},[t._v("\n\t\t\t"+t._s(t.message)+"\n\t\t")]):t._e()],1)])},[],!1,null,"2c0ecaf9",null).exports;const wt=c.A.parse(location.search);"1"===wt.clear&&async function(){try{window.localStorage.clear(),window.sessionStorage.clear();const t=await window.indexedDB.databases();for(const e of t)await window.indexedDB.deleteDatabase(e.name);nt.debug("Browser storages cleared")}catch(t){nt.error("Could not clear browser storages",{error:t})}}();const bt={name:"Login",components:{LoginForm:U,PasswordLessLoginForm:ct,ResetPassword:pt,UpdatePassword:vt,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"===wt.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 yt=s(11999),_t={};_t.styleTagTransform=N(),_t.setAttributes=P(),_t.insert=C().bind(null,"head"),_t.domAPI=x(),_t.insertStyleElement=T(),y()(yt.A,_t),yt.A&&yt.A.locals&&yt.A.locals;const xt=(0,I.A)(bt,function(){var t=this,e=t._self._c;return e("div",{staticClass:"guest-box login-box"},[!t.hideLoginForm||t.directLogin?[e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.passwordlessLogin||t.resetPassword||""!==t.resetPasswordTarget?!t.loading&&t.passwordlessLogin?e("div",{key:"reset-pw-less",staticClass:"login-additional login-box__wrapper"},[e("PasswordLessLoginForm",{attrs:{username:t.user,"redirect-url":t.redirectUrl,"auto-complete-allowed":t.autoCompleteAllowed,"is-https":t.isHttps,"is-localhost":t.isLocalhost},on:{"update:username":function(e){t.user=e},submit:function(e){t.loading=!0}}}),t._v(" "),e("NcButton",{attrs:{variant:"tertiary","aria-label":t.t("core","Back to login form"),wide:!0},on:{click:function(e){t.passwordlessLogin=!1}}},[t._v("\n\t\t\t\t\t"+t._s(t.t("core","Back"))+"\n\t\t\t\t")])],1):!t.loading&&t.canResetPassword?e("div",{key:"reset-can-reset",staticClass:"login-additional"},[e("div",{staticClass:"lost-password-container"},[t.resetPassword?e("ResetPassword",{attrs:{username:t.user,"reset-password-link":t.resetPasswordLink},on:{"update:username":function(e){t.user=e},abort:function(e){t.resetPassword=!1}}}):t._e()],1)]):""!==t.resetPasswordTarget?e("div",[e("UpdatePassword",{attrs:{username:t.user,"reset-password-target":t.resetPasswordTarget},on:{"update:username":function(e){t.user=e},done:t.passwordResetFinished}})],1):t._e():e("div",{staticClass:"login-box__wrapper"},[e("LoginForm",{attrs:{username:t.user,"redirect-url":t.redirectUrl,"direct-login":t.directLogin,messages:t.messages,errors:t.errors,"throttle-delay":t.throttleDelay,"auto-complete-allowed":t.autoCompleteAllowed,"rememberme-allowed":t.remembermeAllowed,"email-states":t.emailStates},on:{"update:username":function(e){t.user=e},submit:function(e){t.loading=!0}}}),t._v(" "),t.hasPasswordless?e("NcButton",{attrs:{variant:"tertiary",wide:""},on:{click:function(e){e.preventDefault(),t.passwordlessLogin=!0}}},[t._v("\n\t\t\t\t\t"+t._s(t.t("core","Log in with a device"))+"\n\t\t\t\t")]):t._e(),t._v(" "),t.canResetPassword&&""!==t.resetPasswordLink?e("NcButton",{attrs:{id:"lost-password",href:t.resetPasswordLink,variant:"tertiary-no-background",wide:""}},[t._v("\n\t\t\t\t\t"+t._s(t.t("core","Forgot password?"))+"\n\t\t\t\t")]):t.canResetPassword&&!t.resetPassword?e("NcButton",{attrs:{id:"lost-password",variant:"tertiary",wide:""},on:{click:function(e){e.preventDefault(),t.resetPassword=!0}}},[t._v("\n\t\t\t\t\t"+t._s(t.t("core","Forgot password?"))+"\n\t\t\t\t")]):t._e()],1)])]:[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("NcNoteCard",{attrs:{type:"info",title:t.t("core","Login form is disabled.")}},[t._v("\n\t\t\t\t"+t._s(t.t("core","The Nextcloud login form is disabled. Use another login option if available or contact your administration."))+"\n\t\t\t")])],1)],t._v(" "),e("div",{staticClass:"login-box__alternative-logins",attrs:{id:"alternative-logins"}},t._l(t.alternativeLogins,function(n,r){return e("NcButton",{key:r,class:[n.class],attrs:{variant:"secondary",wide:!0,role:"link",href:n.href}},[t._v("\n\t\t\t"+t._s(n.name)+"\n\t\t")])}),1)],2)},[],!1,null,"518c0816",null).exports;var At=s(61338),Ct=s(71225);const kt=!!window._oc_isadmin,Pt=window.oc_appconfig||{};var Et=s(74692),Tt=s.n(Et);let St=!1;const Nt={enableDynamicSlideToggle(){St=!0},showAppSidebar:function(t){(t||Tt()("#app-sidebar")).removeClass("disappear").show(),Tt()("#app-content").trigger(new(Tt().Event)("appresized"))},hideAppSidebar:function(t){(t||Tt()("#app-sidebar")).hide().addClass("disappear"),Tt()("#app-content").trigger(new(Tt().Event)("appresized"))}},Ot=Nt,jt=void 0!==window._oc_appswebroots&&window._oc_appswebroots;var It=s(21391),Lt=s.n(It),Mt=s(78112),Rt=s(12111);const Bt={create:"POST",update:"PROPPATCH",patch:"PROPPATCH",delete:"DELETE",read:"PROPFIND"};function Ht(t,e){if(Rt.default.isArray(t))return Rt.default.map(t,function(t){return Ht(t,e)});const n={href:t.href};return Rt.default.each(t.propStat,function(t){if("HTTP/1.1 200 OK"===t.status)for(const r in t.properties){let s=r;r in e&&(s=e[r]),n[s]=t.properties[r]}}),n.id||(n.id=Ut(n.href)),n}function Ut(t){const e=t.indexOf("?");e>0&&(t=t.substr(0,e));const n=t.split("/");let r;do{r=n[n.length-1],n.pop()}while(!r&&n.length>0);return r}function Ft(t){return t>=200&&t<=299}function Dt(t,e,n,r){return t.propPatch(e.url,function(t,e){const n={};let r;for(r in t){let s=e[r],i=t[r];s||(nt.warn('No matching DAV property for property "'+r),s=r),(Rt.default.isBoolean(i)||Rt.default.isNumber(i))&&(i=""+i),n[s]=i}return n}(n.changed,e.davProperties),r).then(function(t){Ft(t.status)?Rt.default.isFunction(e.success)&&e.success(n.toJSON()):Rt.default.isFunction(e.error)&&e.error(t)})}const zt=Lt().noConflict();Object.assign(zt,{davCall:function(t,e){const n=new Mt.dav.Client({baseUrl:t.url,xmlNamespaces:Rt.default.extend({"DAV:":"d","http://owncloud.org/ns":"oc"},t.xmlNamespaces||{})});n.resolveUrl=function(){return t.url};const r=Rt.default.extend({"X-Requested-With":"XMLHttpRequest",requesttoken:OC.requestToken},t.headers);return"PROPFIND"===t.type?function(t,e,n,r){return t.propFind(e.url,Rt.default.values(e.davProperties)||[],e.depth,r).then(function(t){if(Ft(t.status)){if(Rt.default.isFunction(e.success)){const n=Rt.default.invert(e.davProperties),r=Ht(t.body,n);e.depth>0&&r.shift(),e.success(r)}}else Rt.default.isFunction(e.error)&&e.error(t)})}(n,t,0,r):"PROPPATCH"===t.type?Dt(n,t,e,r):"MKCOL"===t.type?function(t,e,n,r){return t.request(e.type,e.url,r,null).then(function(s){Ft(s.status)?Dt(t,e,n,r):Rt.default.isFunction(e.error)&&e.error(s)})}(n,t,e,r):function(t,e,n,r){return r["Content-Type"]="application/json",t.request(e.type,e.url,r,e.data).then(function(t){if(Ft(t.status)){if(Rt.default.isFunction(e.success)){if("PUT"===e.type||"POST"===e.type||"MKCOL"===e.type){const r=t.body||n.toJSON(),s=t.xhr.getResponseHeader("Content-Location");return"POST"===e.type&&s&&(r.id=Ut(s)),void e.success(r)}if(207===t.status){const n=Rt.default.invert(e.davProperties);e.success(Ht(t.body,n))}else e.success(t.body)}}else Rt.default.isFunction(e.error)&&e.error(t)})}(n,t,e,r)},davSync:function(t){return(e,n,r)=>{const s={type:Bt[e]||e},i=n instanceof t.Collection;if("update"===e&&(n.hasInnerCollection?s.type="MKCOL":(n.usePUT||n.collection&&n.collection.usePUT)&&(s.type="PUT")),r.url||(s.url=Rt.default.result(n,"url")||function(){throw new Error('A "url" property or function must be specified')}()),null!=r.data||!n||"create"!==e&&"update"!==e&&"patch"!==e||(s.data=JSON.stringify(r.attrs||n.toJSON(r))),"PROPFIND"!==s.type&&(s.processData=!1),"PROPFIND"===s.type||"PROPPATCH"===s.type){let t=n.davProperties;!t&&n.model&&(t=n.model.prototype.davProperties),t&&(Rt.default.isFunction(t)?s.davProperties=t.call(n):s.davProperties=t),s.davProperties=Rt.default.extend(s.davProperties||{},r.davProperties),Rt.default.isUndefined(r.depth)&&(r.depth=i?1:0)}const o=r.error;r.error=function(t,e,n){r.textStatus=e,r.errorThrown=n,o&&o.call(r.context,t,e,n)};const a=r.xhr=t.davCall(Rt.default.extend(s,r),n);return n.trigger("request",n,a,r),a}}(zt)});const qt=zt;var $t=s(87485);const Vt=window._oc_config||{},Yt=document.getElementsByTagName("head")[0].getAttribute("data-user"),Jt=document.getElementsByTagName("head")[0].getAttribute("data-user-displayname"),Kt=void 0!==Yt&&Yt,Wt=window._oc_debug;var Gt=s(21363),Xt=s(85168),Qt=s(98469),Zt=s(43627);const te={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(t,e,n,r){this.message(t,e,"alert",te.OK_BUTTON,n,r)},info:function(t,e,n,r){this.message(t,e,"info",te.OK_BUTTON,n,r)},confirm:function(t,e,n,r){return this.message(t,e,"notice",te.YES_NO_BUTTONS,n,r)},confirmDestructive:function(t,e,n=te.OK_BUTTONS,r=()=>{}){return(new Xt.ik).setName(e).setText(t).setButtons(n===te.OK_BUTTONS?[{label:(0,h.t)("core","Yes"),variant:"error",callback:()=>{r.clicked=!0,r(!0)}}]:te._getLegacyButtons(n,r)).build().show().then(()=>{r.clicked||r(!1)})},confirmHtml:function(t,e,n){return(new Xt.ik).setName(e).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(t).show().then(()=>{n.clicked||n(!1)})},prompt:function(t,e,n,r,i,a){return new Promise(r=>{(0,Qt.S)((0,o.$V)(()=>Promise.all([s.e(4208),s.e(5800)]).then(s.bind(s,85800))),{text:t,name:e,callback:n,inputName:i,isPassword:!!a},(...t)=>{n(...t),r()})})},filepicker(t,e,n=!1,r=void 0,s=void 0,i=Xt.bh.Choose,o=void 0,a=void 0){const l=(t,e)=>{const r=t=>{const e=t?.root||"";let n=t?.path||"";return n.startsWith(e)&&(n=n.slice(e.length)||"/"),n};return n?n=>t(n.map(r),e):n=>t(r(n[0]),e)},c=(0,Xt.a1)(t);i===this.FILEPICKER_TYPE_CUSTOM?(a.buttons||[]).forEach(t=>{c.addButton({callback:l(e,t.type),label:t.text,variant:t.defaultButton?"primary":"secondary"})}):c.setButtonFactory((t,n)=>{const r=[],[s]=t,o=s?.displayname||s?.basename||(0,Zt.basename)(n);return i===Xt.bh.Choose&&r.push({callback:l(e,Xt.bh.Choose),label:s&&!this.multiSelect?(0,h.t)("core","Choose {file}",{file:o}):(0,h.t)("core","Choose"),variant:"primary"}),i!==Xt.bh.CopyMove&&i!==Xt.bh.Copy||r.push({callback:l(e,Xt.bh.Copy),label:o?(0,h.t)("core","Copy to {target}",{target:o}):(0,h.t)("core","Copy"),variant:"primary",icon:Gt}),i!==Xt.bh.Move&&i!==Xt.bh.CopyMove||r.push({callback:l(e,Xt.bh.Move),label:o?(0,h.t)("core","Move to {target}",{target:o}):(0,h.t)("core","Move"),variant:i===Xt.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(t=>a.filter((t=>({id:t.fileid||null,path:t.path,mimetype:t.mime||null,mtime:t.mtime?.getTime()||null,permissions:t.permissions,name:t.attributes?.displayName||t.basename,etag:t.attributes?.etag||null,hasPreview:t.attributes?.hasPreview||null,mountType:t.attributes?.mountType||null,quotaAvailableBytes:t.attributes?.quotaAvailableBytes||null,icon:null,sharePermissions:null}))(t))),c.allowDirectories(!0===a?.allowDirectoryChooser||r?.includes("httpd/unix-directory")||!1).setMultiSelect(n).startAt(o).build().pick()},message:function(t,e,n,r,s=()=>{},i,o){const a=(new Xt.ik).setName(e).setText(o?"":t).setButtons(te._getLegacyButtons(r,s));switch(n){case"alert":a.setSeverity("warning");break;case"notice":a.setSeverity("info")}const l=a.build();return o&&l.setHTML(t),l.show().then(()=>{s._clicked||s(!1)})},_getLegacyButtons(t,e){const n=[];switch("object"==typeof t?t.type:t){case te.YES_NO_BUTTONS:n.push({label:t?.cancel??(0,h.t)("core","No"),callback:()=>{e._clicked=!0,e(!1)}}),n.push({label:t?.confirm??(0,h.t)("core","Yes"),variant:"primary",callback:()=>{e._clicked=!0,e(!0)}});break;case te.OK_BUTTONS:n.push({label:t?.confirm??(0,h.t)("core","OK"),variant:"primary",callback:()=>{e._clicked=!0,e(!0)}});break;default:nt.error("Invalid call to OC.dialogs")}return n},_fileexistsshown:!1,fileexists:function(t,e,r,s){const i=this,o=new(Tt().Deferred),a=function(e,n,r){const s=e.find(".template").clone().removeClass("template").addClass("conflict"),i=s.find(".original"),o=s.find(".replacement");s.data("data",t),s.find(".filename").text(n.name),i.find(".size").text(Ne.Util.humanFileSize(n.size)),i.find(".mtime").text(Ne.Util.formatDate(n.mtime)),r.size&&r.lastModified&&(o.find(".size").text(Ne.Util.humanFileSize(r.size)),o.find(".mtime").text(Ne.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(t){const e=new(Tt().Deferred),n=t.type&&t.type.split("/").shift();if(window.FileReader&&"image"===n){const n=new FileReader;n.onload=function(t){const n=new Blob([t.target.result]);window.URL=window.URL||window.webkitURL;const r=window.URL.createObjectURL(n),s=new Image;s.src=r,s.onload=function(){const t=function(t){const e=document.createElement("canvas"),n=t.width,r=t.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 e.width=o,e.height=o,e.getContext("2d").drawImage(t,s,i,o,o,0,0,o,o),function(t,e,n,r,s){r=Math.round(r),s=Math.round(s);const i=t.getContext("2d").getImageData(0,0,e,n),o=t.getContext("2d").getImageData(0,0,r,s),a=i.data,l=o.data,c=e/r,u=n/s,d=Math.ceil(c/2),h=Math.ceil(u/2);for(let t=0;t<s;t++)for(let n=0;n<r;n++){const s=4*(n+t*r);let i=0,o=0,p=0,f=0,m=0,g=0,v=0;const w=(t+.5)*u;for(let r=Math.floor(t*u);r<(t+1)*u;r++){const t=Math.abs(w-(r+.5))/h,s=(n+.5)*c,l=t*t;for(let t=Math.floor(n*c);t<(n+1)*c;t++){let n=Math.abs(s-(t+.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*(t+r*e),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}t.getContext("2d").clearRect(0,0,Math.max(e,r),Math.max(n,s)),t.width=r,t.height=s,t.getContext("2d").putImageData(o,0,0)}(e,o,o,96,96),e.toDataURL("image/png",.7)}(s);e.resolve(t)}},n.readAsArrayBuffer(t)}else e.reject();return e}(r).then(function(t){o.find(".icon").css("background-image","url("+t+")")},function(){a=Ne.MimeType.getIconUrl(r.type),o.find(".icon").css("background-image","url("+a+")")});const u=e.find(".conflict").length;i.find("input:checkbox").attr("id","checkbox_original_"+u),o.find("input:checkbox").attr("id","checkbox_replacement_"+u),e.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 t=Tt()(c+" .conflicts");a(t,e,r);const s=Tt()(c+" .conflict").length,i=n("core","{count} file conflict","{count} file conflicts",s,{count:s});Tt()(c).parent().children(".oc-dialog-title").text(i),Tt()(window).trigger("resize"),o.resolve()}else this._fileexistsshown=!0,Tt().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(Tt()("body").append(d),e&&r){const t=d.find(".conflicts");a(t,e,r)}const p=[{text:(0,h.t)("core","Cancel"),classes:"cancel",click:function(){void 0!==s.onCancel&&s.onCancel(t),Tt()(c).ocdialog("close")}},{text:(0,h.t)("core","Continue"),classes:"continue",click:function(){void 0!==s.onContinue&&s.onContinue(Tt()(c+" .conflict")),Tt()(c).ocdialog("close")}}];Tt()(c).ocdialog({width:500,closeOnEscape:!0,modal:!0,buttons:p,closeButton:null,close:function(){i._fileexistsshown=!1;try{Tt()(this).ocdialog("destroy").remove()}catch{}}}),Tt()(c).css("height","auto");const f=d.closest(".oc-dialog").find("button.continue");function m(){const t=d.find(".conflicts .checkbox:checked").length;f.prop("disabled",0===t)}f.prop("disabled",!0),Tt()(c).find(".allnewfiles").on("click",function(){Tt()(c).find('.conflict .replacement input[type="checkbox"]').prop("checked",Tt()(this).prop("checked"))}),Tt()(c).find(".allexistingfiles").on("click",function(){Tt()(c).find('.conflict .original:not(.readonly) input[type="checkbox"]').prop("checked",Tt()(this).prop("checked"))}),Tt()(c).find(".conflicts").on("click",".replacement,.original:not(.readonly)",function(){const t=Tt()(this).find('input[type="checkbox"]');t.prop("checked",!t.prop("checked"))}),Tt()(c).find(".conflicts").on("click",'.replacement input[type="checkbox"],.original:not(.readonly) input[type="checkbox"]',function(){const t=Tt()(this);t.prop("checked",!t.prop("checked"))}),Tt()(c).on("click",".replacement,.allnewfiles",function(){const t=Tt()(c).find('.conflict .replacement input[type="checkbox"]:checked').length;t===Tt()(c+" .conflict").length?(Tt()(c).find(".allnewfiles").prop("checked",!0),Tt()(c).find(".allnewfiles + .count").text((0,h.t)("core","(all selected)"))):t>0?(Tt()(c).find(".allnewfiles").prop("checked",!1),Tt()(c).find(".allnewfiles + .count").text((0,h.t)("core","({count} selected)",{count:t}))):(Tt()(c).find(".allnewfiles").prop("checked",!1),Tt()(c).find(".allnewfiles + .count").text("")),m()}),Tt()(c).on("click",".original,.allexistingfiles",function(){const t=Tt()(c).find('.conflict .original input[type="checkbox"]:checked').length;t===Tt()(c+" .conflict").length?(Tt()(c).find(".allexistingfiles").prop("checked",!0),Tt()(c).find(".allexistingfiles + .count").text((0,h.t)("core","(all selected)"))):t>0?(Tt()(c).find(".allexistingfiles").prop("checked",!1),Tt()(c).find(".allexistingfiles + .count").text((0,h.t)("core","({count} selected)",{count:t}))):(Tt()(c).find(".allexistingfiles").prop("checked",!1),Tt()(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 t=Tt().Deferred();if(this.$fileexistsTemplate)t.resolve(this.$fileexistsTemplate);else{const e=this;Tt().get(Ne.filePath("core","templates/legacy","fileexists.html"),function(n){e.$fileexistsTemplate=Tt()(n),t.resolve(e.$fileexistsTemplate)}).fail(function(){t.reject()})}return t.promise()}},ee=te;function ne(){return document.head.dataset.requesttoken}function re(t,e){let n,r,s="";if(this.typelessListeners=[],this.closed=!1,this.listeners={},e)for(n in e)s+=n+"="+encodeURIComponent(e[n])+"&";if(s+="requesttoken="+encodeURIComponent(ne()),this.useFallBack||"undefined"==typeof EventSource){const e="oc_eventsource_iframe_"+re.iframeCount;re.fallBackSources[re.iframeCount]=this,this.iframe=Tt()("<iframe></iframe>"),this.iframe.attr("id",e),this.iframe.hide(),r="&",-1===t.indexOf("?")&&(r="?"),this.iframe.attr("src",t+r+"fallback=true&fallback_id="+re.iframeCount+"&"+s),Tt()("body").append(this.iframe),this.useFallBack=!0,re.iframeCount++}else r="&",-1===t.indexOf("?")&&(r="?"),this.source=new EventSource(t+r+s),this.source.onmessage=function(t){for(let e=0;e<this.typelessListeners.length;e++)this.typelessListeners[e](JSON.parse(t.data))}.bind(this);this.listen("__internal__",function(t){"close"===t&&this.close()}.bind(this))}re.fallBackSources=[],re.iframeCount=0,re.fallBackCallBack=function(t,e,n){re.fallBackSources[t].fallBackCallBack(e,n)},re.prototype={typelessListeners:[],iframe:null,listeners:{},useFallBack:!1,fallBackCallBack:function(t,e){let n;if(!this.closed)if(t){if(void 0!==this.listeners.done)for(n=0;n<this.listeners[t].length;n++)this.listeners[t][n](e)}else for(n=0;n<this.typelessListeners.length;n++)this.typelessListeners[n](e)},lastLength:0,listen:function(t,e){e&&e.call&&(t?this.useFallBack?(this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)):this.source.addEventListener(t,function(t){void 0!==t.data?e(JSON.parse(t.data)):e("")},!1):this.typelessListeners.push(e))},close:function(){this.closed=!0,void 0!==this.source&&this.source.close()}};const se=re;var ie=s(93633),oe=s.n(ie);const ae={load:h.Zi,register:h.kz,_unregister:h.ht,translate:h.Tl,translatePlural:h.zw};oe().registerHelper("t",function(t,e){return(0,h.Tl)(t,e)});let le=null,ce=null;function ue(t){if(le){const e=le;le.trigger(new(Tt().Event)("beforeHide")),le.slideUp(50,function(){e.trigger(new(Tt().Event)("afterHide")),t&&t.apply(this,arguments)})}Tt()(".menutoggle").attr("aria-expanded",!1),ce&&ce.attr("aria-expanded",!1),Tt()(".openedMenu").removeClass("openedMenu"),le=null,ce=null}const de=new Map;function he(t){if(void 0!==t){for(;t in window.OC.MimeTypeList.aliases;)t=window.OC.MimeTypeList.aliases[t];if(!de.has(t)){let e=!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=pe(t,window.OC.MimeTypeList.themes[OC.theme.folder]);r&&(e=!0,n+=r+".svg")}e||(n=(0,l.Jv)("/apps/theming/img/core/filetypes/"+pe(t,window.OC.MimeTypeList.files)+".svg")),n+="?v="+window.OCA.Theming.cacheBuster,de.set(t,n)}return de.get(t)}}function pe(t,e){const n=t.replace(new RegExp("/","g"),"-");return"dir"===t&&e.includes("folder")?"folder":"dir-encrypted"===t&&e.includes("folder-encrypted")?"folder-encrypted":"dir-shared"===t&&e.includes("folder-shared")?"folder-shared":"dir-public"===t&&e.includes("folder-public")?"folder-public":"dir-external"!==t&&"dir-external-root"!==t||!e.includes("folder-external")?e.includes(n)?n:e.includes(n.split("-")[0])?n.split("-")[0]:e.includes("file")?"file":null:"folder-external"}function fe(){de.clear()}const me={startSaving(e){this.startAction(e,t("core","Saving …"))},startAction(t,e){Tt()(t).text(e).removeClass("success").removeClass("error").stop(!0,!0).show()},finishedSaving(t,e){this.finishedAction(t,e)},finishedAction(t,e){"success"===e.status?this.finishedSuccess(t,e.data.message):this.finishedError(t,e.data.message)},finishedSuccess(t,e){Tt()(t).text(e).addClass("success").removeClass("error").stop(!0,!0).delay(3e3).fadeOut(900).show()},finishedError(t,e){Tt()(t).text(e).addClass("error").removeClass("success").show()}},ge={updatableNotification:null,getDefaultNotificationFunction:null,setDefault(t){this.getDefaultNotificationFunction=t},hide(t,e){Rt.default.isFunction(t)&&(e=t,t=void 0),t?(t.each(function(){Tt()(this)[0].toastify?Tt()(this)[0].toastify.hideToast():nt.error("cannot hide toast because object is not set"),this===this.updatableNotification&&(this.updatableNotification=null)}),e&&e.call(),this.getDefaultNotificationFunction&&this.getDefaultNotificationFunction()):nt.error("Missing argument $row in OC.Notification.hide() call, caller needs to be adjusted to only dismiss its own notification")},showHtml(t,e){(e=e||{}).isHTML=!0,e.timeout=e.timeout?e.timeout:Xt.DH;const n=(0,Xt.rG)(t,e);return n.toastElement.toastify=n,Tt()(n.toastElement)},show(t,e){(e=e||{}).timeout=e.timeout?e.timeout:Xt.DH;const n=(0,Xt.rG)(function(t){return t.toString().split("&").join("&").split("<").join("<").split(">").join(">").split('"').join(""").split("'").join("'")}(t),e);return n.toastElement.toastify=n,Tt()(n.toastElement)},showUpdate(t){return this.updatableNotification&&this.updatableNotification.hideToast(),this.updatableNotification=(0,Xt.rG)(t,{timeout:Xt.DH}),this.updatableNotification.toastElement.toastify=this.updatableNotification,Tt()(this.updatableNotification.toastElement)},showTemporary(t,e){(e=e||{}).timeout=e.timeout||Xt.aR;const n=(0,Xt.rG)(t,e);return n.toastElement.toastify=n,Tt()(n.toastElement)},isHidden:()=>!Tt()("#content").find(".toastify").length};var ve=s(53073);const we={requiresPasswordConfirmation:()=>(0,ve.oB)(),requirePasswordConfirmation(t,e,n){(0,ve.C5)().then(t,n)}},be={_plugins:{},register(t,e){let n=this._plugins[t];n||(n=this._plugins[t]=[]),n.push(e)},getPlugins(t){return this._plugins[t]||[]},attach(t,e,n){const r=this.getPlugins(t);for(let t=0;t<r.length;t++)r[t].attach&&r[t].attach(e,n)},detach(t,e,n){const r=this.getPlugins(t);for(let t=0;t<r.length;t++)r[t].detach&&r[t].detach(e,n)}},ye=window._theme||{};var _e=s(35810),xe=s(95093),Ae=s.n(xe);const Ce={_handlers:[],_pushState(t,e,n){let r;if(r="string"==typeof t?t:Ne.buildQueryString(t),window.history.pushState){if(e=e||location.pathname+"?"+r,navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&parseInt(navigator.userAgent.split("/").pop())<51){const t=document.querySelectorAll('[fill^="url(#"], [stroke^="url(#"], [filter^="url(#invert"]');for(let e,n=0,r=t.length;n<r;n++)e=t[n],e.style.fill=e.style.fill,e.style.stroke=e.style.stroke,e.removeAttribute("filter"),e.setAttribute("filter","url(#invert)")}n?window.history.replaceState(t,"",e):window.history.pushState(t,"",e)}else window.location.hash="?"+r,this._cancelPop=!0},pushState(t,e){this._pushState(t,e,!1)},replaceState(t,e){this._pushState(t,e,!0)},addOnPopStateHandler(t){this._handlers.push(t)},_parseHashQuery(){const t=window.location.hash,e=t.indexOf("?");return e>=0?t.substr(e+1):t.length?t.substr(1):""},_decodeQuery:t=>t.replace(/\+/g," "),parseUrlQuery(){const t=this._parseHashQuery();let e;return t&&(e=Ne.parseQueryString(this._decodeQuery(t))),e=Rt.default.extend(e||{},Ne.parseQueryString(this._decodeQuery(location.search))),e||{}},_onPopState(t){if(this._cancelPop)return void(this._cancelPop=!1);let e;if(this._handlers.length){e=t&&t.state,Rt.default.isString(e)?e=Ne.parseQueryString(e):e||(e=this.parseUrlQuery()||{});for(let t=0;t<this._handlers.length;t++)this._handlers[t](e)}}};function ke(t){const e=[];let n,r=0,s=-1,i=0;for(;r<t.length;){n=t.charAt(r);const o=!i&&"."===n||n>="0"&&n<="9";o!==i&&(s++,e[s]="",i=o),e[s]+=n,r++}return e}const Pe={History:Ce,humanFileSize:_e.v7,computerFileSize(t){if("string"!=typeof t)return null;const e=t.toLowerCase().trim();let n=null;const r=e.match(/^[\s+]?([0-9]*)(\.([0-9]+))?( +)?([kmgtp]?b?)$/i);return null===r?null:(n=parseFloat(e),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:(t,e)=>(void 0===window.TESTING&&Ne.debug&&nt.warn("OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment"),e=e||"LLL",Ae()(t).format(e)),relativeModifiedDate(e){void 0===window.TESTING&&Ne.debug&&nt.warn("OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment");const n=Ae()().diff(Ae()(e));return n>=0&&n<45e3?t("core","seconds ago"):Ae()(e).fromNow()},getScrollBarWidth(){if(this._scrollBarWidth)return this._scrollBarWidth;const t=document.createElement("p");t.style.width="100%",t.style.height="200px";const e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.width="200px",e.style.height="150px",e.style.overflow="hidden",e.appendChild(t),document.body.appendChild(e);const n=t.offsetWidth;e.style.overflow="scroll";let r=t.offsetWidth;return n===r&&(r=e.clientWidth),document.body.removeChild(e),this._scrollBarWidth=n-r,this._scrollBarWidth},stripTime:t=>new Date(t.getFullYear(),t.getMonth(),t.getDate()),naturalSortCompare(t,e){let n;const r=ke(t),s=ke(e);for(n=0;r[n]&&s[n];n++)if(r[n]!==s[n]){const t=Number(r[n]),e=Number(s[n]);return t==r[n]&&e==s[n]?t-e:r[n].localeCompare(s[n],Ne.getLanguage())}return r.length-s.length},waitFor(t,e){const n=function(){!0!==t()&&setTimeout(n,e)};n()},isCookieSetToValue(t,e){const n=document.cookie.split(";");for(let r=0;r<n.length;r++){const s=n[r].split("=");if(s[0].trim()===t&&s[1].trim()===e)return!0}return!1}};let Ee=window._oc_webroot;if(void 0===Ee){Ee=location.pathname;const t=Ee.indexOf("/index.php/");Ee=-1!==t?Ee.substr(0,t):Ee.substr(0,Ee.lastIndexOf("/"))}const Te=Ee,Se=Rt.default.throttle(()=>{(0,Xt.I9)(t("core","Connection to server lost"))},7e3,{trailing:!1}),Ne={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:Ot,appConfig:Pt,appswebroots:jt,Backbone:qt,config:Vt,currentUser:Kt,dialogs:ee,EventSource:se,MimeType:i,getCurrentUser:function(){return{uid:Kt,displayName:Jt}},isUserAdmin:()=>kt,L10N:ae,_ajaxConnectionLostHandler:Se,_processAjaxError:function(t){(0!==t.status||"abort"!==t.statusText&&"timeout"!==t.statusText&&!Ne._reloadCalled)&&([302,303,307,401].includes(t.status)&&(0,tt.HW)()?setTimeout(function(){if(!Ne._userIsNavigatingAway&&!Ne._reloadCalled){let t=0;const e=5,r=setInterval(function(){ge.showUpdate(n("core","Problem loading page, reloading in %n second","Problem loading page, reloading in %n seconds",e-t)),t>=e&&(clearInterval(r),window.location.reload()),t++},1e3);Ne._reloadCalled=!0}},100):0===t.status&&setTimeout(function(){Ne._userIsNavigatingAway||Ne._reloadCalled||Ne._ajaxConnectionLostHandler()},100))},registerXHRForErrorProcessing:function(t){t.addEventListener&&(t.addEventListener("load",()=>{4===t.readyState&&(t.status>=200&&t.status<300||304===t.status||Tt()(document).trigger(new(Tt().Event)("ajaxError"),t))}),t.addEventListener("error",()=>{Tt()(document).trigger(new(Tt().Event)("ajaxError"),t)}))},getCapabilities:function(){return OC.debug&&nt.warn("OC.getCapabilities is deprecated and will be removed in Nextcloud 21. See @nextcloud/capabilities"),(0,$t.F)()},hideMenus:ue,registerMenu:function(t,e,n,r){e.addClass("menu");const s="A"===t.prop("tagName")||"BUTTON"===t.prop("tagName");t.on(s?"click.menu":"click.menu keyup.menu",function(s){s.preventDefault(),s.key&&"Enter"!==s.key||(e.is(le)?ue():(le&&ue(),!0===r&&e.parent().addClass("openedMenu"),t.attr("aria-expanded",!0),e.slideToggle(50,n),le=e,ce=t))})},showMenu:function(t,e,n){e.is(le)||(ue(),le=e,ce=t,e.trigger(new(Tt().Event)("beforeShow")),e.show(),e.trigger(new(Tt().Event)("afterShow")),Rt.default.isFunction(n)&&n())},unregisterMenu:function(t,e){e.is(le)&&ue(),t.off("click.menu").removeClass("menutoggle"),e.removeClass("menu")},basename:Ct.P8,encodePath:Ct.O0,dirname:Ct.pD,isSamePath:Ct.ys,joinPaths:Ct.HS,getCanonicalLocale:h.lO,getLocale:h.JK,getLanguage:h.Z0,buildQueryString:function(t){return t?Tt().map(t,function(t,e){let n=encodeURIComponent(e);return null!=t&&(n+="="+encodeURIComponent(t)),n}).join("&"):""},parseQueryString:function(t){let e,n;const r={};let s;if(!t)return null;e=t.indexOf("?"),e>=0&&(t=t.substr(e+1));const i=t.replace(/\+/g,"%20").split("&");for(let t=0;t<i.length;t++){const o=i[t];e=o.indexOf("="),n=e>=0?[o.substr(0,e),o.substr(e+1)]:[o],n.length&&(s=decodeURIComponent(n[0]),s&&(r[s]=n.length>1?decodeURIComponent(n[1]):null))}return r},msg:me,Notification:ge,PasswordConfirmation:we,Plugins:be,theme:ye,Util:Pe,debug:Wt,filePath:l.fg,generateUrl:l.Jv,getRootPath:l.aU,imagePath:l.d0,requestToken:ne(),linkTo:l.uM,linkToOCS:(t,e)=>(0,l.KT)(t,{},{ocsVersion:e||1})+"/",linkToRemote:l.dC,linkToRemoteBase:function(t){return(0,l.aU)()+"/remote.php/"+t},webroot:Te};(0,At.B1)("csrf-token-update",t=>{OC.requestToken=t.token,nt.info("OC.requestToken changed",{token:t.token})});const Oe={data:()=>({OC:Ne}),methods:{t:ae.translate.bind(ae),n:ae.translatePlural.bind(ae)}};o.Ay.mixin(Oe),(new(o.Ay.extend(xt))).$mount("#login")},63779:()=>{},63865:(t,e,n)=>{"use strict";e.__esModule=!0,e.createProtoAccessControl=function(t){var e=Object.create(null);e.constructor=!1,e.__defineGetter__=!1,e.__defineSetter__=!1,e.__lookupGetter__=!1;var n=Object.create(null);return n.__proto__=!1,{properties:{whitelist:s.createNewLookupObject(n,t.allowedProtoProperties),defaultValue:t.allowProtoPropertiesByDefault},methods:{whitelist:s.createNewLookupObject(e,t.allowedProtoMethods),defaultValue:t.allowProtoMethodsByDefault}}},e.resultIsAllowed=function(t,e,n){return function(t,e){return void 0!==t.whitelist[e]?!0===t.whitelist[e]:void 0!==t.defaultValue?t.defaultValue:(function(t){!0!==o[t]&&(o[t]=!0,i.default.log("error",'Handlebars: Access has been denied to resolve the property "'+t+'" 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'))}(e),!1)}("function"==typeof t?e.methods:e.properties,n)},e.resetLoggedProperties=function(){Object.keys(o).forEach(function(t){delete o[t]})};var r,s=n(89726),i=(r=n(40566))&&r.__esModule?r:{default:r},o=Object.create(null)},64688:()=>{},66089:()=>{},72614:(t,e)=>{"use strict";e.__esModule=!0,e.wrapHelper=function(t,e){return"function"!=typeof t?t:function(){return arguments[arguments.length-1]=e(arguments[arguments.length-1]),t.apply(this,arguments)}}},73776:()=>{},75940:(t,e,n)=>{"use strict";e.__esModule=!0,e.registerDefaultDecorators=function(t){s.default(t)};var r,s=(r=n(77430))&&r.__esModule?r:{default:r}},77199:()=>{},77430:(t,e,n)=>{"use strict";e.__esModule=!0;var r=n(82849);e.default=function(t){t.registerDecorator("inline",function(t,e,n,s){var i=t;return e.partials||(e.partials={},i=function(s,i){var o=n.partials;n.partials=r.extend({},o,e.partials);var a=t(s,i);return n.partials=o,a}),e.partials[s.args[0]]=s.fn,i})},t.exports=e.default},77965:()=>{},78112:t=>{const e={_XML_CHAR_MAP:{"<":"<",">":">","&":"&",'"':""","'":"'"},_escapeXml:function(t){return t.replace(/[<>&"']/g,function(t){return e._XML_CHAR_MAP[t]})},Client:function(t){var e;for(e in t)this[e]=t[e]}};e.Client.prototype={baseUrl:null,userName:null,password:null,xmlNamespaces:{"DAV:":"d"},propFind:function(t,e,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",e)if(e.hasOwnProperty(o)){var a=this.parseClarkNotation(e[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",t,r,i).then(function(t){return"0"===n?{status:t.status,body:t.body[0],xhr:t.xhr}:{status:t.status,body:t.body,xhr:t.xhr}}.bind(this))},_renderPropSet:function(t){var n=" <d:set>\n <d:prop>\n";for(var r in t)if(t.hasOwnProperty(r)){var s,i=this.parseClarkNotation(r),o=t[r];"d:resourcetype"!=(s=this.xmlNamespaces[i.namespace]?this.xmlNamespaces[i.namespace]+":"+i.name:"x:"+i.name+' xmlns:x="'+i.namespace+'"')&&(o=e._escapeXml(o)),n+=" <"+s+">"+o+"</"+s+">\n"}return(n+=" </d:prop>\n")+" </d:set>\n"},propPatch:function(t,e,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(e),s+="</d:propertyupdate>",this.request("PROPPATCH",t,n,s).then(function(t){return{status:t.status,body:t.body,xhr:t.xhr}}.bind(this))},mkcol:function(t,e,n){var r="";if((n=n||{})["Content-Type"]="application/xml; charset=utf-8",e){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(e),r+="</d:mkcol>"}return this.request("MKCOL",t,n,r).then(function(t){return{status:t.status,body:t.body,xhr:t.xhr}}.bind(this))},request:function(t,e,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(t,this.resolveUrl(e),!0),n)l.setRequestHeader(o,n[o]);return l.responseType=s,i&&"function"==typeof i.onProgress&&("PUT"===t||"POST"===t?l.upload.addEventListener("progress",function(t){i.onProgress(t)},!1):l.addEventListener("progress",function(t){i.onProgress(t)},!1)),void 0===r?l.send():l.send(r),new Promise(function(t,e){l.onreadystatechange=function(){if(4===l.readyState){var e=l.response;207===l.status&&(e=a.parseMultiStatus(l.response)),t({body:e,status:l.status,xhr:l})}},l.ontimeout=function(){e(new Error("Timeout exceeded"))}})},xhrProvider:function(){return new XMLHttpRequest},_parsePropNode:function(t){var e=null;if(t.childNodes&&t.childNodes.length>0){for(var n=[],r=0;r<t.childNodes.length;r++){var s=t.childNodes[r];1===s.nodeType&&n.push(s)}n.length&&(e=n)}return e||t.textContent||t.text||""},parseMultiStatus:function(t){for(var e=(new DOMParser).parseFromString(t,"application/xml"),n=function(t){var e;for(e in this.xmlNamespaces)if(this.xmlNamespaces[e]===t)return e}.bind(this),r=e.evaluate("/d:multistatus/d:response",e,n,XPathResult.ANY_TYPE,null),s=[],i=r.iterateNext();i;){var o={href:null,propStat:[]};o.href=e.evaluate("string(d:href)",i,n,XPathResult.ANY_TYPE,null).stringValue;for(var a=e.evaluate("d:propstat",i,n,XPathResult.ANY_TYPE,null),l=a.iterateNext();l;){for(var c={status:e.evaluate("string(d:status)",l,n,XPathResult.ANY_TYPE,null).stringValue,properties:{}},u=e.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(t){if(/^https?:\/\//i.test(t))return t;var e=this.parseUrl(this.baseUrl);return t.charAt("/")?e.root+t:(e.root,-1!==e.path.lastIndexOf("/")&&e.path.subString(0,e.path.lastIndexOf("/")),t)},parseUrl:function(t){var e=t.match(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/),n={url:e[0],scheme:e[1],host:e[3],port:e[4],path:e[5],query:e[6],fragment:e[7]};return n.root=n.scheme+"://"+n.host+(n.port?":"+n.port:""),n},parseClarkNotation:function(t){var e=t.match(/^{([^}]+)}(.*)$/);if(e)return{name:e[2],namespace:e[1]}}},t.exports={dav:e,Client:e.Client},t.exports={dav:e}},78982:()=>{},79368:()=>{},79838:()=>{},81604:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(71354),s=n.n(r),i=n(76314),o=n.n(i)()(s());o.push([t.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},82355:(t,e,n)=>{"use strict";e.__esModule=!0;var r,s=n(82849),i=(r=n(13769))&&r.__esModule?r:{default:r};e.default=function(t){t.registerHelper("if",function(t,e){if(2!=arguments.length)throw new i.default("#if requires exactly one argument");return s.isFunction(t)&&(t=t.call(this)),!e.hash.includeZero&&!t||s.isEmpty(t)?e.inverse(this):e.fn(this)}),t.registerHelper("unless",function(e,n){if(2!=arguments.length)throw new i.default("#unless requires exactly one argument");return t.helpers.if.call(this,e,{fn:n.inverse,inverse:n.fn,hash:n.hash})})},t.exports=e.default},82849:(t,e)=>{"use strict";e.__esModule=!0,e.extend=o,e.indexOf=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},e.escapeExpression=function(t){if("string"!=typeof t){if(t&&t.toHTML)return t.toHTML();if(null==t)return"";if(!t)return t+"";t=""+t}return s.test(t)?t.replace(r,i):t},e.isEmpty=function(t){return!t&&0!==t||!(!c(t)||0!==t.length)},e.createFrame=function(t){var e=o({},t);return e._parent=t,e},e.blockParams=function(t,e){return t.path=e,t},e.appendContextPath=function(t,e){return(t?t+".":"")+e};var n={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},r=/[&<>"'`=]/g,s=/[&<>"'`=]/;function i(t){return n[t]}function o(t){for(var e=1;e<arguments.length;e++)for(var n in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],n)&&(t[n]=arguments[e][n]);return t}var a=Object.prototype.toString;e.toString=a;var l=function(t){return"function"==typeof t};l(/x/)&&(e.isFunction=l=function(t){return"function"==typeof t&&"[object Function]"===a.call(t)}),e.isFunction=l;var c=Array.isArray||function(t){return!(!t||"object"!=typeof t)&&"[object Array]"===a.call(t)};e.isArray=c},82871:(t,e,n)=>{"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.HandlebarsEnvironment=d;var s=n(82849),i=r(n(13769)),o=n(2277),a=n(75940),l=r(n(40566)),c=n(63865);e.VERSION="4.7.8",e.COMPILER_REVISION=8,e.LAST_COMPATIBLE_COMPILER_REVISION=7,e.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(t,e,n){this.helpers=t||{},this.partials=e||{},this.decorators=n||{},o.registerDefaultHelpers(this),a.registerDefaultDecorators(this)}d.prototype={constructor:d,logger:l.default,log:l.default.log,registerHelper:function(t,e){if(s.toString.call(t)===u){if(e)throw new i.default("Arg not supported with multiple helpers");s.extend(this.helpers,t)}else this.helpers[t]=e},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,e){if(s.toString.call(t)===u)s.extend(this.partials,t);else{if(void 0===e)throw new i.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=e}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,e){if(s.toString.call(t)===u){if(e)throw new i.default("Arg not supported with multiple decorators");s.extend(this.decorators,t)}else this.decorators[t]=e},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){c.resetLoggedProperties()}};var h=l.default.log;e.log=h,e.createFrame=s.createFrame,e.logger=l.default},85300:(t,e)=>{"use strict";e.__esModule=!0,e.default=function(t){t.registerHelper("log",function(){for(var e=[void 0],n=arguments[arguments.length-1],r=0;r<arguments.length-1;r++)e.push(arguments[r]);var s=1;null!=n.hash.level?s=n.hash.level:n.data&&null!=n.data.level&&(s=n.data.level),e[0]=s,t.log.apply(t,e)})},t.exports=e.default},89726:(t,e,n)=>{"use strict";e.__esModule=!0,e.createNewLookupObject=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return r.extend.apply(void 0,[Object.create(null)].concat(e))};var r=n(82849)},91148:(t,e)=>{"use strict";e.__esModule=!0,e.default=function(t){"object"!=typeof globalThis&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__);var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}},t.exports=e.default},93633:(t,e,n)=>{t.exports=n(20261).default},94002:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var r=n(71354),s=n.n(r),i=n(76314),o=n.n(i)()(s());o.push([t.id,".password-less-login-form[data-v-64bed448]{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}},o={};function a(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={id:t,loaded:!1,exports:{}};return i[t].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(t=>a.O[t](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=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.f={},a.e=t=>Promise.all(Object.keys(a.f).reduce((e,n)=>(a.f[n](t,e),e),[])),a.u=t=>t+"-"+t+".js?v="+{594:"2c86902dfae9a5006399",620:"8f7783b39d802f10e22b",2391:"908fc68e4bc9b878c937",2880:"fdf99dc4a6f328ebe498",4325:"67df7ab13a8e8d214551",5800:"d32d8b421a3564c27652",5862:"d020c05f13d21afee82a",7145:"7889fe0b0ebc57e3d5f1",8339:"6cdca71a6b3b2d7bef33"}[t],a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r={},s="nextcloud-ui-legacy:",a.l=(t,e,n,i)=>{if(r[t])r[t].push(e);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")==t||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=t),r[t]=[e];var h=(e,n)=>{o.onerror=o.onload=null,clearTimeout(p);var s=r[t];if(delete r[t],o.parentNode&&o.parentNode.removeChild(o),s&&s.forEach(t=>t(n)),e)return e(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=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),a.j=1418,(()=>{var t;a.g.importScripts&&(t=a.g.location+"");var e=a.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!t||!/^http(s?):/.test(t));)t=n[r--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=t})(),(()=>{a.b="undefined"!=typeof document&&document.baseURI||self.location.href;var t={1418:0};a.f.j=(e,n)=>{var r=a.o(t,e)?t[e]:void 0;if(0!==r)if(r)n.push(r[2]);else{var s=new Promise((n,s)=>r=t[e]=[n,s]);n.push(r[2]=s);var i=a.p+a.u(e),o=new Error;a.l(i,n=>{if(a.o(t,e)&&(0!==(r=t[e])&&(t[e]=void 0),r)){var s=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;o.message="Loading chunk "+e+" failed.\n("+s+": "+i+")",o.name="ChunkLoadError",o.type=s,o.request=i,r[1](o)}},"chunk-"+e,e)}},a.O.j=e=>0===t[e];var e=(e,n)=>{var r,s,[i,o,l]=n,c=0;if(i.some(e=>0!==t[e])){for(r in o)a.o(o,r)&&(a.m[r]=o[r]);if(l)var u=l(a)}for(e&&e(n);c<i.length;c++)s=i[c],a.o(t,s)&&t[s]&&t[s][0](),t[s]=0;return a.O(u)},n=globalThis.webpackChunknextcloud_ui_legacy=globalThis.webpackChunknextcloud_ui_legacy||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),a.nc=void 0;var l=a.O(void 0,[4208],()=>a(57388));l=a.O(l)})();
|