UNPKG

vue-loginservice

Version:
16 lines 179 kB
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vue-loginservice"]=e():t["vue-loginservice"]=e()})("undefined"!==typeof self?self:this,function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="fb15")}({"014b":function(t,e,r){"use strict";var n=r("e53d"),i=r("07e3"),o=r("8e60"),s=r("63b6"),a=r("9138"),c=r("ebfd").KEY,u=r("294c"),l=r("dbdb"),f=r("45f2"),h=r("62a0"),d=r("5168"),p=r("ccb9"),v=r("6718"),g=r("47ee"),m=r("9003"),b=r("e4ae"),y=r("f772"),w=r("36c3"),_=r("1bc3"),C=r("aebd"),x=r("a159"),S=r("0395"),E=r("bf0b"),P=r("d9f6"),O=r("c3a1"),R=E.f,A=P.f,k=S.f,U=n.Symbol,T=n.JSON,L=T&&T.stringify,j="prototype",I=d("_hidden"),N=d("toPrimitive"),$={}.propertyIsEnumerable,M=l("symbol-registry"),F=l("symbols"),B=l("op-symbols"),D=Object[j],q="function"==typeof U,W=n.QObject,V=!W||!W[j]||!W[j].findChild,Y=o&&u(function(){return 7!=x(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=R(D,e);n&&delete D[e],A(t,e,r),n&&t!==D&&A(D,e,n)}:A,z=function(t){var e=F[t]=x(U[j]);return e._k=t,e},G=q&&"symbol"==typeof U.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof U},H=function(t,e,r){return t===D&&H(B,e,r),b(t),e=_(e,!0),b(r),i(F,e)?(r.enumerable?(i(t,I)&&t[I][e]&&(t[I][e]=!1),r=x(r,{enumerable:C(0,!1)})):(i(t,I)||A(t,I,C(1,{})),t[I][e]=!0),Y(t,e,r)):A(t,e,r)},J=function(t,e){b(t);var r,n=g(e=w(e)),i=0,o=n.length;while(o>i)H(t,r=n[i++],e[r]);return t},K=function(t,e){return void 0===e?x(t):J(x(t),e)},X=function(t){var e=$.call(this,t=_(t,!0));return!(this===D&&i(F,t)&&!i(B,t))&&(!(e||!i(this,t)||!i(F,t)||i(this,I)&&this[I][t])||e)},Z=function(t,e){if(t=w(t),e=_(e,!0),t!==D||!i(F,e)||i(B,e)){var r=R(t,e);return!r||!i(F,e)||i(t,I)&&t[I][e]||(r.enumerable=!0),r}},Q=function(t){var e,r=k(w(t)),n=[],o=0;while(r.length>o)i(F,e=r[o++])||e==I||e==c||n.push(e);return n},tt=function(t){var e,r=t===D,n=k(r?B:w(t)),o=[],s=0;while(n.length>s)!i(F,e=n[s++])||r&&!i(D,e)||o.push(F[e]);return o};q||(U=function(){if(this instanceof U)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(r){this===D&&e.call(B,r),i(this,I)&&i(this[I],t)&&(this[I][t]=!1),Y(this,t,C(1,r))};return o&&V&&Y(D,t,{configurable:!0,set:e}),z(t)},a(U[j],"toString",function(){return this._k}),E.f=Z,P.f=H,r("6abf").f=S.f=Q,r("355d").f=X,r("9aa9").f=tt,o&&!r("b8e3")&&a(D,"propertyIsEnumerable",X,!0),p.f=function(t){return z(d(t))}),s(s.G+s.W+s.F*!q,{Symbol:U});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;et.length>rt;)d(et[rt++]);for(var nt=O(d.store),it=0;nt.length>it;)v(nt[it++]);s(s.S+s.F*!q,"Symbol",{for:function(t){return i(M,t+="")?M[t]:M[t]=U(t)},keyFor:function(t){if(!G(t))throw TypeError(t+" is not a symbol!");for(var e in M)if(M[e]===t)return e},useSetter:function(){V=!0},useSimple:function(){V=!1}}),s(s.S+s.F*!q,"Object",{create:K,defineProperty:H,defineProperties:J,getOwnPropertyDescriptor:Z,getOwnPropertyNames:Q,getOwnPropertySymbols:tt}),T&&s(s.S+s.F*(!q||u(function(){var t=U();return"[null]"!=L([t])||"{}"!=L({a:t})||"{}"!=L(Object(t))})),"JSON",{stringify:function(t){var e,r,n=[t],i=1;while(arguments.length>i)n.push(arguments[i++]);if(r=e=n[1],(y(e)||void 0!==t)&&!G(t))return m(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!G(e))return e}),n[1]=e,L.apply(T,n)}}),U[j][N]||r("35e8")(U[j],N,U[j].valueOf),f(U,"Symbol"),f(Math,"Math",!0),f(n.JSON,"JSON",!0)},"01f9":function(t,e,r){"use strict";var n=r("2d00"),i=r("5ca1"),o=r("2aba"),s=r("32e9"),a=r("84f2"),c=r("41a0"),u=r("7f20"),l=r("38fd"),f=r("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),d="@@iterator",p="keys",v="values",g=function(){return this};t.exports=function(t,e,r,m,b,y,w){c(r,e,m);var _,C,x,S=function(t){if(!h&&t in R)return R[t];switch(t){case p:return function(){return new r(this,t)};case v:return function(){return new r(this,t)}}return function(){return new r(this,t)}},E=e+" Iterator",P=b==v,O=!1,R=t.prototype,A=R[f]||R[d]||b&&R[b],k=A||S(b),U=b?P?S("entries"):k:void 0,T="Array"==e&&R.entries||A;if(T&&(x=l(T.call(new t)),x!==Object.prototype&&x.next&&(u(x,E,!0),n||"function"==typeof x[f]||s(x,f,g))),P&&A&&A.name!==v&&(O=!0,k=function(){return A.call(this)}),n&&!w||!h&&!O&&R[f]||s(R,f,k),a[e]=k,a[E]=g,b)if(_={values:P?k:S(v),keys:y?k:S(p),entries:U},w)for(C in _)C in R||o(R,C,_[C]);else i(i.P+i.F*(h||O),e,_);return _}},"02f4":function(t,e,r){var n=r("4588"),i=r("be13");t.exports=function(t){return function(e,r){var o,s,a=String(i(e)),c=n(r),u=a.length;return c<0||c>=u?t?"":void 0:(o=a.charCodeAt(c),o<55296||o>56319||c+1===u||(s=a.charCodeAt(c+1))<56320||s>57343?t?a.charAt(c):o:t?a.slice(c,c+2):s-56320+(o-55296<<10)+65536)}}},"0390":function(t,e,r){"use strict";var n=r("02f4")(!0);t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},"0395":function(t,e,r){var n=r("36c3"),i=r("6abf").f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return i(t)}catch(e){return s.slice()}};t.exports.f=function(t){return s&&"[object Window]"==o.call(t)?a(t):i(n(t))}},"044b":function(t,e){function r(t){return!!t.constructor&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function n(t){return"function"===typeof t.readFloatLE&&"function"===typeof t.slice&&r(t.slice(0,0))}
/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */
t.exports=function(t){return null!=t&&(r(t)||n(t)||!!t._isBuffer)}},"04e1":function(t,e,r){"use strict";var n=r("7afa");function i(t){this.message=t}i.prototype=new Error,i.prototype.name="InvalidTokenError",t.exports=function(t,e){if("string"!==typeof t)throw new i("Invalid token specified");e=e||{};var r=!0===e.header?0:1;try{return JSON.parse(n(t.split(".")[r]))}catch(o){throw new i("Invalid token specified: "+o.message)}},t.exports.InvalidTokenError=i},"07e3":function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},"0a06":function(t,e,r){"use strict";var n=r("2444"),i=r("c532"),o=r("f6b4"),s=r("5270");function a(t){this.defaults=t,this.interceptors={request:new o,response:new o}}a.prototype.request=function(t){"string"===typeof t&&(t=i.merge({url:arguments[0]},arguments[1])),t=i.merge(n,{method:"get"},this.defaults,t),t.method=t.method.toLowerCase();var e=[s,void 0],r=Promise.resolve(t);this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});while(e.length)r=r.then(e.shift(),e.shift());return r},i.forEach(["delete","get","head","options"],function(t){a.prototype[t]=function(e,r){return this.request(i.merge(r||{},{method:t,url:e}))}}),i.forEach(["post","put","patch"],function(t){a.prototype[t]=function(e,r,n){return this.request(i.merge(n||{},{method:t,url:e,data:r}))}}),t.exports=a},"0b16":function(t,e,r){"use strict";var n=r("1985"),i=r("35e86");function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=_,e.resolve=x,e.resolveObject=S,e.format=C,e.Url=o;var s=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["<",">",'"',"`"," ","\r","\n","\t"],l=["{","}","|","\\","^","`"].concat(u),f=["'"].concat(l),h=["%","/","?",";","#"].concat(f),d=["/","?","#"],p=255,v=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},w=r("b383");function _(t,e,r){if(t&&i.isObject(t)&&t instanceof o)return t;var n=new o;return n.parse(t,e,r),n}function C(t){return i.isString(t)&&(t=_(t)),t instanceof o?t.format():o.prototype.format.call(t)}function x(t,e){return _(t,!1,!0).resolve(e)}function S(t,e){return t?_(t,!1,!0).resolveObject(e):e}o.prototype.parse=function(t,e,r){if(!i.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),a=-1!==o&&o<t.indexOf("#")?"?":"#",u=t.split(a),l=/\\/g;u[0]=u[0].replace(l,"/"),t=u.join(a);var _=t;if(_=_.trim(),!r&&1===t.split("#").length){var C=c.exec(_);if(C)return this.path=_,this.href=_,this.pathname=C[1],C[2]?(this.search=C[2],this.query=e?w.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var x=s.exec(_);if(x){x=x[0];var S=x.toLowerCase();this.protocol=S,_=_.substr(x.length)}if(r||x||_.match(/^\/\/[^@\/]+@[^@\/]+/)){var E="//"===_.substr(0,2);!E||x&&b[x]||(_=_.substr(2),this.slashes=!0)}if(!b[x]&&(E||x&&!y[x])){for(var P,O,R=-1,A=0;A<d.length;A++){var k=_.indexOf(d[A]);-1!==k&&(-1===R||k<R)&&(R=k)}O=-1===R?_.lastIndexOf("@"):_.lastIndexOf("@",R),-1!==O&&(P=_.slice(0,O),_=_.slice(O+1),this.auth=decodeURIComponent(P)),R=-1;for(A=0;A<h.length;A++){k=_.indexOf(h[A]);-1!==k&&(-1===R||k<R)&&(R=k)}-1===R&&(R=_.length),this.host=_.slice(0,R),_=_.slice(R),this.parseHost(),this.hostname=this.hostname||"";var U="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!U)for(var T=this.hostname.split(/\./),L=(A=0,T.length);A<L;A++){var j=T[A];if(j&&!j.match(v)){for(var I="",N=0,$=j.length;N<$;N++)j.charCodeAt(N)>127?I+="x":I+=j[N];if(!I.match(v)){var M=T.slice(0,A),F=T.slice(A+1),B=j.match(g);B&&(M.push(B[1]),F.unshift(B[2])),F.length&&(_="/"+F.join(".")+_),this.hostname=M.join(".");break}}}this.hostname.length>p?this.hostname="":this.hostname=this.hostname.toLowerCase(),U||(this.hostname=n.toASCII(this.hostname));var D=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+D,this.href+=this.host,U&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==_[0]&&(_="/"+_))}if(!m[S])for(A=0,L=f.length;A<L;A++){var W=f[A];if(-1!==_.indexOf(W)){var V=encodeURIComponent(W);V===W&&(V=escape(W)),_=_.split(W).join(V)}}var Y=_.indexOf("#");-1!==Y&&(this.hash=_.substr(Y),_=_.slice(0,Y));var z=_.indexOf("?");if(-1!==z?(this.search=_.substr(z),this.query=_.substr(z+1),e&&(this.query=w.parse(this.query)),_=_.slice(0,z)):e&&(this.search="",this.query={}),_&&(this.pathname=_),y[S]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){D=this.pathname||"";var G=this.search||"";this.path=D+G}return this.href=this.format(),this},o.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,s="";this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(s=w.stringify(this.query));var a=this.search||s&&"?"+s||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||y[e])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),r=r.replace(/[?#]/g,function(t){return encodeURIComponent(t)}),a=a.replace("#","%23"),e+o+r+a+n},o.prototype.resolve=function(t){return this.resolveObject(_(t,!1,!0)).format()},o.prototype.resolveObject=function(t){if(i.isString(t)){var e=new o;e.parse(t,!1,!0),t=e}for(var r=new o,n=Object.keys(this),s=0;s<n.length;s++){var a=n[s];r[a]=this[a]}if(r.hash=t.hash,""===t.href)return r.href=r.format(),r;if(t.slashes&&!t.protocol){for(var c=Object.keys(t),u=0;u<c.length;u++){var l=c[u];"protocol"!==l&&(r[l]=t[l])}return y[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(t.protocol&&t.protocol!==r.protocol){if(!y[t.protocol]){for(var f=Object.keys(t),h=0;h<f.length;h++){var d=f[h];r[d]=t[d]}return r.href=r.format(),r}if(r.protocol=t.protocol,t.host||b[t.protocol])r.pathname=t.pathname;else{var p=(t.pathname||"").split("/");while(p.length&&!(t.host=p.shift()));t.host||(t.host=""),t.hostname||(t.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),r.pathname=p.join("/")}if(r.search=t.search,r.query=t.query,r.host=t.host||"",r.auth=t.auth,r.hostname=t.hostname||t.host,r.port=t.port,r.pathname||r.search){var v=r.pathname||"",g=r.search||"";r.path=v+g}return r.slashes=r.slashes||t.slashes,r.href=r.format(),r}var m=r.pathname&&"/"===r.pathname.charAt(0),w=t.host||t.pathname&&"/"===t.pathname.charAt(0),_=w||m||r.host&&t.pathname,C=_,x=r.pathname&&r.pathname.split("/")||[],S=(p=t.pathname&&t.pathname.split("/")||[],r.protocol&&!y[r.protocol]);if(S&&(r.hostname="",r.port=null,r.host&&(""===x[0]?x[0]=r.host:x.unshift(r.host)),r.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===p[0]?p[0]=t.host:p.unshift(t.host)),t.host=null),_=_&&(""===p[0]||""===x[0])),w)r.host=t.host||""===t.host?t.host:r.host,r.hostname=t.hostname||""===t.hostname?t.hostname:r.hostname,r.search=t.search,r.query=t.query,x=p;else if(p.length)x||(x=[]),x.pop(),x=x.concat(p),r.search=t.search,r.query=t.query;else if(!i.isNullOrUndefined(t.search)){if(S){r.hostname=r.host=x.shift();var E=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");E&&(r.auth=E.shift(),r.host=r.hostname=E.shift())}return r.search=t.search,r.query=t.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!x.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var P=x.slice(-1)[0],O=(r.host||t.host||x.length>1)&&("."===P||".."===P)||""===P,R=0,A=x.length;A>=0;A--)P=x[A],"."===P?x.splice(A,1):".."===P?(x.splice(A,1),R++):R&&(x.splice(A,1),R--);if(!_&&!C)for(;R--;R)x.unshift("..");!_||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),O&&"/"!==x.join("/").substr(-1)&&x.push("");var k=""===x[0]||x[0]&&"/"===x[0].charAt(0);if(S){r.hostname=r.host=k?"":x.length?x.shift():"";E=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");E&&(r.auth=E.shift(),r.host=r.hostname=E.shift())}return _=_||r.host&&x.length,_&&!k&&x.unshift(""),x.length?r.pathname=x.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},"0bfb":function(t,e,r){"use strict";var n=r("cb7c");t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"0d58":function(t,e,r){var n=r("ce10"),i=r("e11e");t.exports=Object.keys||function(t){return n(t,i)}},"0df6":function(t,e,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},"0fc9":function(t,e,r){var n=r("3a38"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=n(t),t<0?i(t+e,0):o(t,e)}},1173:function(t,e){t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},"11e9":function(t,e,r){var n=r("52a7"),i=r("4630"),o=r("6821"),s=r("6a99"),a=r("69a8"),c=r("c69a"),u=Object.getOwnPropertyDescriptor;e.f=r("9e1e")?u:function(t,e){if(t=o(t),e=s(e,!0),c)try{return u(t,e)}catch(r){}if(a(t,e))return i(!n.f.call(t,e),t[e])}},1495:function(t,e,r){var n=r("86cc"),i=r("cb7c"),o=r("0d58");t.exports=r("9e1e")?Object.defineProperties:function(t,e){i(t);var r,s=o(e),a=s.length,c=0;while(a>c)n.f(t,r=s[c++],e[r]);return t}},1654:function(t,e,r){"use strict";var n=r("71c1")(!0);r("30f1")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},1691:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},1985:function(t,e,r){(function(t,n){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */(function(o){e&&e.nodeType,t&&t.nodeType;var s="object"==typeof n&&n;s.global!==s&&s.window!==s&&s.self;var a,c=2147483647,u=36,l=1,f=26,h=38,d=700,p=72,v=128,g="-",m=/^xn--/,b=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=u-l,C=Math.floor,x=String.fromCharCode;function S(t){throw new RangeError(w[t])}function E(t,e){var r=t.length,n=[];while(r--)n[r]=e(t[r]);return n}function P(t,e){var r=t.split("@"),n="";r.length>1&&(n=r[0]+"@",t=r[1]),t=t.replace(y,".");var i=t.split("."),o=E(i,e).join(".");return n+o}function O(t){var e,r,n=[],i=0,o=t.length;while(i<o)e=t.charCodeAt(i++),e>=55296&&e<=56319&&i<o?(r=t.charCodeAt(i++),56320==(64512&r)?n.push(((1023&e)<<10)+(1023&r)+65536):(n.push(e),i--)):n.push(e);return n}function R(t){return E(t,function(t){var e="";return t>65535&&(t-=65536,e+=x(t>>>10&1023|55296),t=56320|1023&t),e+=x(t),e}).join("")}function A(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:u}function k(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function U(t,e,r){var n=0;for(t=r?C(t/d):t>>1,t+=C(t/e);t>_*f>>1;n+=u)t=C(t/_);return C(n+(_+1)*t/(t+h))}function T(t){var e,r,n,i,o,s,a,h,d,m,b=[],y=t.length,w=0,_=v,x=p;for(r=t.lastIndexOf(g),r<0&&(r=0),n=0;n<r;++n)t.charCodeAt(n)>=128&&S("not-basic"),b.push(t.charCodeAt(n));for(i=r>0?r+1:0;i<y;){for(o=w,s=1,a=u;;a+=u){if(i>=y&&S("invalid-input"),h=A(t.charCodeAt(i++)),(h>=u||h>C((c-w)/s))&&S("overflow"),w+=h*s,d=a<=x?l:a>=x+f?f:a-x,h<d)break;m=u-d,s>C(c/m)&&S("overflow"),s*=m}e=b.length+1,x=U(w-o,e,0==o),C(w/e)>c-_&&S("overflow"),_+=C(w/e),w%=e,b.splice(w++,0,_)}return R(b)}function L(t){var e,r,n,i,o,s,a,h,d,m,b,y,w,_,E,P=[];for(t=O(t),y=t.length,e=v,r=0,o=p,s=0;s<y;++s)b=t[s],b<128&&P.push(x(b));n=i=P.length,i&&P.push(g);while(n<y){for(a=c,s=0;s<y;++s)b=t[s],b>=e&&b<a&&(a=b);for(w=n+1,a-e>C((c-r)/w)&&S("overflow"),r+=(a-e)*w,e=a,s=0;s<y;++s)if(b=t[s],b<e&&++r>c&&S("overflow"),b==e){for(h=r,d=u;;d+=u){if(m=d<=o?l:d>=o+f?f:d-o,h<m)break;E=h-m,_=u-m,P.push(x(k(m+E%_,0))),h=C(E/_)}P.push(x(k(h,0))),o=U(r,w,n==i),r=0,++n}++r,++e}return P.join("")}function j(t){return P(t,function(t){return m.test(t)?T(t.slice(4).toLowerCase()):t})}function I(t){return P(t,function(t){return b.test(t)?"xn--"+L(t):t})}a={version:"1.4.1",ucs2:{decode:O,encode:R},decode:T,encode:L,toASCII:I,toUnicode:j},i=function(){return a}.call(e,r,e,t),void 0===i||(t.exports=i)})()}).call(this,r("62e4")(t),r("c8ba"))},"1af6":function(t,e,r){var n=r("63b6");n(n.S,"Array",{isArray:r("9003")})},"1bc3":function(t,e,r){var n=r("f772");t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"1d2b":function(t,e,r){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}}},"1ec9":function(t,e,r){var n=r("f772"),i=r("e53d").document,o=n(i)&&n(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"1fb5":function(t,e,r){"use strict";e.byteLength=l,e.toByteArray=h,e.fromByteArray=v;for(var n=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=s.length;a<c;++a)n[a]=s[a],i[s.charCodeAt(a)]=a;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function l(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n}function f(t,e,r){return 3*(e+r)/4-r}function h(t){for(var e,r=u(t),n=r[0],s=r[1],a=new o(f(t,n,s)),c=0,l=s>0?n-4:n,h=0;h<l;h+=4)e=i[t.charCodeAt(h)]<<18|i[t.charCodeAt(h+1)]<<12|i[t.charCodeAt(h+2)]<<6|i[t.charCodeAt(h+3)],a[c++]=e>>16&255,a[c++]=e>>8&255,a[c++]=255&e;return 2===s&&(e=i[t.charCodeAt(h)]<<2|i[t.charCodeAt(h+1)]>>4,a[c++]=255&e),1===s&&(e=i[t.charCodeAt(h)]<<10|i[t.charCodeAt(h+1)]<<4|i[t.charCodeAt(h+2)]>>2,a[c++]=e>>8&255,a[c++]=255&e),a}function d(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function p(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(d(n));return i.join("")}function v(t){for(var e,r=t.length,i=r%3,o=[],s=16383,a=0,c=r-i;a<c;a+=s)o.push(p(t,a,a+s>c?c:a+s));return 1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"20fd":function(t,e,r){"use strict";var n=r("d9f6"),i=r("aebd");t.exports=function(t,e,r){e in t?n.f(t,e,i(0,r)):t[e]=r}},"214f":function(t,e,r){"use strict";r("b0c5");var n=r("2aba"),i=r("32e9"),o=r("79e5"),s=r("be13"),a=r("2b4c"),c=r("520a"),u=a("species"),l=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),f=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();t.exports=function(t,e,r){var h=a(t),d=!o(function(){var e={};return e[h]=function(){return 7},7!=""[t](e)}),p=d?!o(function(){var e=!1,r=/a/;return r.exec=function(){return e=!0,null},"split"===t&&(r.constructor={},r.constructor[u]=function(){return r}),r[h](""),!e}):void 0;if(!d||!p||"replace"===t&&!l||"split"===t&&!f){var v=/./[h],g=r(s,h,""[t],function(t,e,r,n,i){return e.exec===c?d&&!i?{done:!0,value:v.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),m=g[0],b=g[1];n(String.prototype,t,m),i(RegExp.prototype,h,2==e?function(t,e){return b.call(t,this,e)}:function(t){return b.call(t,this)})}}},"230e":function(t,e,r){var n=r("d3f4"),i=r("7726").document,o=n(i)&&n(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"23c6":function(t,e,r){var n=r("2d95"),i=r("2b4c")("toStringTag"),o="Arguments"==n(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(r){}};t.exports=function(t){var e,r,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=s(e=Object(t),i))?r:o?n(e):"Object"==(a=n(e))&&"function"==typeof e.callee?"Arguments":a}},"241e":function(t,e,r){var n=r("25eb");t.exports=function(t){return Object(n(t))}},2444:function(t,e,r){"use strict";(function(e){var n=r("c532"),i=r("c8af"),o={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function a(){var t;return"undefined"!==typeof XMLHttpRequest?t=r("b50d"):"undefined"!==typeof e&&(t=r("b50d")),t}var c={adapter:a(),transformRequest:[function(t,e){return i(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t)?t:n.isArrayBufferView(t)?t.buffer:n.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):n.isObject(t)?(s(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"===typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],function(t){c.headers[t]={}}),n.forEach(["post","put","patch"],function(t){c.headers[t]=n.merge(o)}),t.exports=c}).call(this,r("4362"))},"24c5":function(t,e,r){"use strict";var n,i,o,s,a=r("b8e3"),c=r("e53d"),u=r("d864"),l=r("40c3"),f=r("63b6"),h=r("f772"),d=r("79aa"),p=r("1173"),v=r("a22a"),g=r("f201"),m=r("4178").set,b=r("aba2")(),y=r("656e"),w=r("4439"),_=r("bc13"),C=r("cd78"),x="Promise",S=c.TypeError,E=c.process,P=E&&E.versions,O=P&&P.v8||"",R=c[x],A="process"==l(E),k=function(){},U=i=y.f,T=!!function(){try{var t=R.resolve(1),e=(t.constructor={})[r("5168")("species")]=function(t){t(k,k)};return(A||"function"==typeof PromiseRejectionEvent)&&t.then(k)instanceof e&&0!==O.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(n){}}(),L=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},j=function(t,e){if(!t._n){t._n=!0;var r=t._c;b(function(){var n=t._v,i=1==t._s,o=0,s=function(e){var r,o,s,a=i?e.ok:e.fail,c=e.resolve,u=e.reject,l=e.domain;try{a?(i||(2==t._h&&$(t),t._h=1),!0===a?r=n:(l&&l.enter(),r=a(n),l&&(l.exit(),s=!0)),r===e.promise?u(S("Promise-chain cycle")):(o=L(r))?o.call(r,c,u):c(r)):u(n)}catch(f){l&&!s&&l.exit(),u(f)}};while(r.length>o)s(r[o++]);t._c=[],t._n=!1,e&&!t._h&&I(t)})}},I=function(t){m.call(c,function(){var e,r,n,i=t._v,o=N(t);if(o&&(e=w(function(){A?E.emit("unhandledRejection",i,t):(r=c.onunhandledrejection)?r({promise:t,reason:i}):(n=c.console)&&n.error&&n.error("Unhandled promise rejection",i)}),t._h=A||N(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},$=function(t){m.call(c,function(){var e;A?E.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},M=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),j(e,!0))},F=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw S("Promise can't be resolved itself");(e=L(t))?b(function(){var n={_w:r,_d:!1};try{e.call(t,u(F,n,1),u(M,n,1))}catch(i){M.call(n,i)}}):(r._v=t,r._s=1,j(r,!1))}catch(n){M.call({_w:r,_d:!1},n)}}};T||(R=function(t){p(this,R,x,"_h"),d(t),n.call(this);try{t(u(F,this,1),u(M,this,1))}catch(e){M.call(this,e)}},n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=r("5c95")(R.prototype,{then:function(t,e){var r=U(g(this,R));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=A?E.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&j(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n;this.promise=t,this.resolve=u(F,t,1),this.reject=u(M,t,1)},y.f=U=function(t){return t===R||t===s?new o(t):i(t)}),f(f.G+f.W+f.F*!T,{Promise:R}),r("45f2")(R,x),r("4c95")(x),s=r("584a")[x],f(f.S+f.F*!T,x,{reject:function(t){var e=U(this),r=e.reject;return r(t),e.promise}}),f(f.S+f.F*(a||!T),x,{resolve:function(t){return C(a&&this===s?R:this,t)}}),f(f.S+f.F*!(T&&r("4ee1")(function(t){R.all(t)["catch"](k)})),x,{all:function(t){var e=this,r=U(e),n=r.resolve,i=r.reject,o=w(function(){var r=[],o=0,s=1;v(t,!1,function(t){var a=o++,c=!1;r.push(void 0),s++,e.resolve(t).then(function(t){c||(c=!0,r[a]=t,--s||n(r))},i)}),--s||n(r)});return o.e&&i(o.v),r.promise},race:function(t){var e=this,r=U(e),n=r.reject,i=w(function(){v(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},"25eb":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},"268f":function(t,e,r){t.exports=r("fde4")},"27c3":function(t,e,r){"use strict";r("6b54")},"28a5":function(t,e,r){"use strict";var n=r("aae3"),i=r("cb7c"),o=r("ebd6"),s=r("0390"),a=r("9def"),c=r("5f1b"),u=r("520a"),l=r("79e5"),f=Math.min,h=[].push,d="split",p="length",v="lastIndex",g=4294967295,m=!l(function(){RegExp(g,"y")});r("214f")("split",2,function(t,e,r,l){var b;return b="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[p]||2!="ab"[d](/(?:ab)*/)[p]||4!="."[d](/(.?)(.?)/)[p]||"."[d](/()()/)[p]>1||""[d](/.?/)[p]?function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!n(t))return r.call(i,t,e);var o,s,a,c=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,d=void 0===e?g:e>>>0,m=new RegExp(t.source,l+"g");while(o=u.call(m,i)){if(s=m[v],s>f&&(c.push(i.slice(f,o.index)),o[p]>1&&o.index<i[p]&&h.apply(c,o.slice(1)),a=o[0][p],f=s,c[p]>=d))break;m[v]===o.index&&m[v]++}return f===i[p]?!a&&m.test("")||c.push(""):c.push(i.slice(f)),c[p]>d?c.slice(0,d):c}:"0"[d](void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:r.call(this,t,e)}:r,[function(r,n){var i=t(this),o=void 0==r?void 0:r[e];return void 0!==o?o.call(r,i,n):b.call(String(i),r,n)},function(t,e){var n=l(b,t,this,e,b!==r);if(n.done)return n.value;var u=i(t),h=String(this),d=o(u,RegExp),p=u.unicode,v=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(m?"y":"g"),y=new d(m?u:"^(?:"+u.source+")",v),w=void 0===e?g:e>>>0;if(0===w)return[];if(0===h.length)return null===c(y,h)?[h]:[];var _=0,C=0,x=[];while(C<h.length){y.lastIndex=m?C:0;var S,E=c(y,m?h:h.slice(C));if(null===E||(S=f(a(y.lastIndex+(m?0:C)),h.length))===_)C=s(h,C,p);else{if(x.push(h.slice(_,C)),x.length===w)return x;for(var P=1;P<=E.length-1;P++)if(x.push(E[P]),x.length===w)return x;C=_=S}}return x.push(h.slice(_)),x}]})},"294c":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"2aba":function(t,e,r){var n=r("7726"),i=r("32e9"),o=r("69a8"),s=r("ca5a")("src"),a=r("fa5b"),c="toString",u=(""+a).split(c);r("8378").inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,r,a){var c="function"==typeof r;c&&(o(r,"name")||i(r,"name",e)),t[e]!==r&&(c&&(o(r,s)||i(r,s,t[e]?""+t[e]:u.join(String(e)))),t===n?t[e]=r:a?t[e]?t[e]=r:i(t,e,r):(delete t[e],i(t,e,r)))})(Function.prototype,c,function(){return"function"==typeof this&&this[s]||a.call(this)})},"2aeb":function(t,e,r){var n=r("cb7c"),i=r("1495"),o=r("e11e"),s=r("613b")("IE_PROTO"),a=function(){},c="prototype",u=function(){var t,e=r("230e")("iframe"),n=o.length,i="<",s=">";e.style.display="none",r("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+s+"document.F=Object"+i+"/script"+s),t.close(),u=t.F;while(n--)delete u[c][o[n]];return u()};t.exports=Object.create||function(t,e){var r;return null!==t?(a[c]=n(t),r=new a,a[c]=null,r[s]=t):r=u(),void 0===e?r:i(r,e)}},"2b4c":function(t,e,r){var n=r("5537")("wks"),i=r("ca5a"),o=r("7726").Symbol,s="function"==typeof o,a=t.exports=function(t){return n[t]||(n[t]=s&&o[t]||(s?o:i)("Symbol."+t))};a.store=n},"2d00":function(t,e){t.exports=!1},"2d83":function(t,e,r){"use strict";var n=r("387f");t.exports=function(t,e,r,i,o){var s=new Error(t);return n(s,e,r,i,o)}},"2d95":function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},"2e67":function(t,e,r){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},"2f21":function(t,e,r){"use strict";var n=r("79e5");t.exports=function(t,e){return!!t&&n(function(){e?t.call(null,function(){},1):t.call(null)})}},"2fdb":function(t,e,r){"use strict";var n=r("5ca1"),i=r("d2c8"),o="includes";n(n.P+n.F*r("5147")(o),"String",{includes:function(t){return!!~i(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},3024:function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},"30b5":function(t,e,r){"use strict";var n=r("c532");function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,r){if(!e)return t;var o;if(r)o=r(e);else if(n.isURLSearchParams(e))o=e.toString();else{var s=[];n.forEach(e,function(t,e){null!==t&&"undefined"!==typeof t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),s.push(i(e)+"="+i(t))}))}),o=s.join("&")}return o&&(t+=(-1===t.indexOf("?")?"?":"&")+o),t}},"30f1":function(t,e,r){"use strict";var n=r("b8e3"),i=r("63b6"),o=r("9138"),s=r("35e8"),a=r("481b"),c=r("8f60"),u=r("45f2"),l=r("53e2"),f=r("5168")("iterator"),h=!([].keys&&"next"in[].keys()),d="@@iterator",p="keys",v="values",g=function(){return this};t.exports=function(t,e,r,m,b,y,w){c(r,e,m);var _,C,x,S=function(t){if(!h&&t in R)return R[t];switch(t){case p:return function(){return new r(this,t)};case v:return function(){return new r(this,t)}}return function(){return new r(this,t)}},E=e+" Iterator",P=b==v,O=!1,R=t.prototype,A=R[f]||R[d]||b&&R[b],k=A||S(b),U=b?P?S("entries"):k:void 0,T="Array"==e&&R.entries||A;if(T&&(x=l(T.call(new t)),x!==Object.prototype&&x.next&&(u(x,E,!0),n||"function"==typeof x[f]||s(x,f,g))),P&&A&&A.name!==v&&(O=!0,k=function(){return A.call(this)}),n&&!w||!h&&!O&&R[f]||s(R,f,k),a[e]=k,a[E]=g,b)if(_={values:P?k:S(v),keys:y?k:S(p),entries:U},w)for(C in _)C in R||o(R,C,_[C]);else i(i.P+i.F*(h||O),e,_);return _}},"32a6":function(t,e,r){var n=r("241e"),i=r("c3a1");r("ce7e")("keys",function(){return function(t){return i(n(t))}})},"32e9":function(t,e,r){var n=r("86cc"),i=r("4630");t.exports=r("9e1e")?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},"32fc":function(t,e,r){var n=r("e53d").document;t.exports=n&&n.documentElement},"335c":function(t,e,r){var n=r("6b4c");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},"355d":function(t,e){e.f={}.propertyIsEnumerable},"35e8":function(t,e,r){var n=r("d9f6"),i=r("aebd");t.exports=r("8e60")?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},"35e86":function(t,e,r){"use strict";t.exports={isString:function(t){return"string"===typeof t},isObject:function(t){return"object"===typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},"36c3":function(t,e,r){var n=r("335c"),i=r("25eb");t.exports=function(t){return n(i(t))}},3702:function(t,e,r){var n=r("481b"),i=r("5168")("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[i]===t)}},3846:function(t,e,r){r("9e1e")&&"g"!=/./g.flags&&r("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:r("0bfb")})},"386d":function(t,e,r){"use strict";var n=r("cb7c"),i=r("83a1"),o=r("5f1b");r("214f")("search",1,function(t,e,r,s){return[function(r){var n=t(this),i=void 0==r?void 0:r[e];return void 0!==i?i.call(r,n):new RegExp(r)[e](String(n))},function(t){var e=s(r,t,this);if(e.done)return e.value;var a=n(t),c=String(this),u=a.lastIndex;i(u,0)||(a.lastIndex=0);var l=o(a,c);return i(a.lastIndex,u)||(a.lastIndex=u),null===l?-1:l.index}]})},"387f":function(t,e,r){"use strict";t.exports=function(t,e,r,n,i){return t.config=e,r&&(t.code=r),t.request=n,t.response=i,t}},"38fd":function(t,e,r){var n=r("69a8"),i=r("4bf8"),o=r("613b")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},3934:function(t,e,r){"use strict";var n=r("c532");t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=i(window.location.href),function(e){var r=n.isString(e)?i(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return function(){return!0}}()},"3a38":function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},"3b2b":function(t,e,r){var n=r("7726"),i=r("5dbc"),o=r("86cc").f,s=r("9093").f,a=r("aae3"),c=r("0bfb"),u=n.RegExp,l=u,f=u.prototype,h=/a/g,d=/a/g,p=new u(h)!==h;if(r("9e1e")&&(!p||r("79e5")(function(){return d[r("2b4c")("match")]=!1,u(h)!=h||u(d)==d||"/a/i"!=u(h,"i")}))){u=function(t,e){var r=this instanceof u,n=a(t),o=void 0===e;return!r&&n&&t.constructor===u&&o?t:i(p?new l(n&&!o?t.source:t,e):l((n=t instanceof u)?t.source:t,n&&o?c.call(t):e),r?this:f,u)};for(var v=function(t){t in u||o(u,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})},g=s(l),m=0;g.length>m;)v(g[m++]);f.constructor=u,u.prototype=f,r("2aba")(n,"RegExp",u)}r("7a56")("RegExp")},"3c11":function(t,e,r){"use strict";var n=r("63b6"),i=r("584a"),o=r("e53d"),s=r("f201"),a=r("cd78");n(n.P+n.R,"Promise",{finally:function(t){var e=s(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return a(e,t()).then(function(){return r})}:t,r?function(r){return a(e,t()).then(function(){throw r})}:t)}})},"3cfb":function(t,e,r){},"3ea9":function(t,e,r){},"40c3":function(t,e,r){var n=r("6b4c"),i=r("5168")("toStringTag"),o="Arguments"==n(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(r){}};t.exports=function(t){var e,r,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=s(e=Object(t),i))?r:o?n(e):"Object"==(a=n(e))&&"function"==typeof e.callee?"Arguments":a}},4178:function(t,e,r){var n,i,o,s=r("d864"),a=r("3024"),c=r("32fc"),u=r("1ec9"),l=r("e53d"),f=l.process,h=l.setImmediate,d=l.clearImmediate,p=l.MessageChannel,v=l.Dispatch,g=0,m={},b="onreadystatechange",y=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},w=function(t){y.call(t.data)};h&&d||(h=function(t){var e=[],r=1;while(arguments.length>r)e.push(arguments[r++]);return m[++g]=function(){a("function"==typeof t?t:Function(t),e)},n(g),g},d=function(t){delete m[t]},"process"==r("6b4c")(f)?n=function(t){f.nextTick(s(y,t,1))}:v&&v.now?n=function(t){v.now(s(y,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=w,n=s(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(t){l.postMessage(t+"","*")},l.addEventListener("message",w,!1)):n=b in u("script")?function(t){c.appendChild(u("script"))[b]=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(s(y,t,1),0)}),t.exports={set:h,clear:d}},"41a0":function(t,e,r){"use strict";var n=r("2aeb"),i=r("4630"),o=r("7f20"),s={};r("32e9")(s,r("2b4c")("iterator"),function(){return this}),t.exports=function(t,e,r){t.prototype=n(s,{next:i(1,r)}),o(t,e+" Iterator")}},4362:function(t,e,r){e.nextTick=function(t){setTimeout(t,0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,n="/";e.cwd=function(){return n},e.chdir=function(e){t||(t=r("df7c")),n=t.resolve(e,n)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"43fc":function(t,e,r){"use strict";var n=r("63b6"),i=r("656e"),o=r("4439");n(n.S,"Promise",{try:function(t){var e=i.f(this),r=o(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},4439:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(e){return{e:!0,v:e}}}},"454f":function(t,e,r){r("46a7");var n=r("584a").Object;t.exports=function(t,e,r){return n.defineProperty(t,e,r)}},4588:function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},"45f2":function(t,e,r){var n=r("d9f6").f,i=r("07e3"),o=r("5168")("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"467f":function(t,e,r){"use strict";var n=r("2d83");t.exports=function(t,e,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?e(n("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},"46a7":function(t,e,r){var n=r("63b6");n(n.S+n.F*!r("8e60"),"Object",{defineProperty:r("d9f6").f})},"47ee":function(t,e,r){var n=r("c3a1"),i=r("9aa9"),o=r("355d");t.exports=function(t){var e=n(t),r=i.f;if(r){var s,a=r(t),c=o.f,u=0;while(a.length>u)c.call(t,s=a[u++])&&e.push(s)}return e}},"481b":function(t,e){t.exports={}},"4bf8":function(t,e,r){var n=r("be13");t.exports=function(t){return Object(n(t))}},"4c95":function(t,e,r){"use strict";var n=r("e53d"),i=r("584a"),o=r("d9f6"),s=r("8e60"),a=r("5168")("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:n[t];s&&e&&!e[a]&&o.f(e,a,{configurable:!0,get:function(){return this}})}},"4ee1":function(t,e,r){var n=r("5168")("iterator"),i=!1;try{var o=[7][n]();o["return"]=function(){i=!0},Array.from(o,function(){throw 2})}catch(s){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},t(o)}catch(s){}return r}},"50ed":function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},5147:function(t,e,r){var n=r("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,!"/./"[t](e)}catch(i){}}return!0}},5168:function(t,e,r){var n=r("dbdb")("wks"),i=r("62a0"),o=r("e53d").Symbol,s="function"==typeof o,a=t.exports=function(t){return n[t]||(n[t]=s&&o[t]||(s?o:i)("Symbol."+t))};a.store=n},"520a":function(t,e,r){"use strict";var n=r("0bfb"),i=RegExp.prototype.exec,o=String.prototype.replace,s=i,a="lastIndex",c=function(){var t=/a/,e=/b*/g;return i.call(t,"a"),i.call(e,"a"),0!==t[a]||0!==e[a]}(),u=void 0!==/()??/.exec("")[1],l=c||u;l&&(s=function(t){var e,r,s,l,f=this;return u&&(r=new RegExp("^"+f.source+"$(?!\\s)",n.call(f))),c&&(e=f[a]),s=i.call(f,t),c&&s&&(f[a]=f.global?s.index+s[0].length:e),u&&s&&s.length>1&&o.call(s[0],r,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(s[l]=void 0)}),s}),t.exports=s},5270:function(t,e,r){"use strict";var n=r("c532"),i=r("c401"),o=r("2e67"),s=r("2444"),a=r("d925"),c=r("e683");function u(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){u(t),t.baseURL&&!a(t.url)&&(t.url=c(t.baseURL,t.url)),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),n.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]});var e=t.adapter||s.adapter;return e(t).then(function(e){return u(t),e.data=i(e.data,e.headers,t.transformResponse),e},function(e){return o(e)||(u(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},"52a7":function(t,e){e.f={}.propertyIsEnumerable},"534d":function(t,e,r){"use strict";(function(t){r("6b54"),r("386d");var n=r("72bf"),i=r.n(n),o=r("0b16"),s=r.n(o),a="authservice-jwt",c=3;function u(e,r){var n=i.a.parse(window.location.search),o=n["AUTHSERVICE_JWT"],u=n["next"];n["debug"]&&(r=!0),o&&!Date&&(console.log("*** setting JWT cookie ".concat(a)),l(a,o,c));var f=new t(u,"base64").toString("ascii"),h=n["AUTHSERVICE_EMAIL_TOKEN"];if(h){var d=s.a.parse(f,!0);d.query["AUTHSERVICE_EMAIL_TOKEN"]=h,f=s.a.format(d)}r||(window.location=f)}function l(t,e,r){console.log("setCookie("+t+")");var n=new Date;n.setTime(n.getTime()+24*r*60*60*1e3);var i="expires="+n.toUTCString();document.cookie=t+"="+e+";"+i+";path=/"}e["a"]={name:"authservice-bounce-component",props:["debug"],data:function(){return{url:""}},computed:{bounceURL:function(){return this.$route.params.url}},created:function(){this.$route&&this.$route.params&&"undefined"!=typeof window&&u(this,!1)}}}).call(this,r("b639").Buffer)},"53e2":function(t,e,r){var n=r("07e3"),i=r("241e"),o=r("5559")("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},"549b":function(t,e,r){"use strict";var n=r("d864"),i=r("63b6"),o=r("241e"),s=r("b0dc"),a=r("3702"),c=r("b447"),u=r("20fd"),l=r("7cd6");i(i.S+i.F*!r("4ee1")(function(t){Array.from(t)}),"Array",{from:function(t){var e,r,i,f,h=o(t),d="function"==typeof this?this:Array,p=arguments.length,v=p>1?arguments[1]:void 0,g=void 0!==v,m=0,b=l(h);if(g&&(v=n(v,p>2?arguments[2]:void 0,2)),void 0==b||d==Array&&a(b))for(e=c(h.length),r=new d(e);e>m;m++)u(r,m,g?v(h[m],m):h[m]);else for(f=b.call(h),r=new d;!(i=f.next()).done;m++)u(r,m,g?s(f,v,[i.value,m],!0):i.value);return r.length=m,r}})},"54a1":function(t,e,r){r("6c1c"),r("1654"),t.exports=r("95d5")},5537:function(t,e,r){var n=r("8378"),i=r("7726"),o="__core-js_shared__",s=i[o]||(i[o]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},5559:function(t,e,r){var n=r("dbdb")("keys"),i=r("62a0");t.exports=function(t){return n[t]||(n[t]=i(t))}},"55dd":function(t,e,r){"use strict";var n=r("5ca1"),i=r("d8e8"),o=r("4bf8"),s=r("79e5"),a=[].sort,c=[1,2,3];n(n.P+n.F*(s(function(){c.sort(void 0)})||!s(function(){c.sort(null)})||!r("2f21")(a)),"Array",{sort:function(t){return void 0===t?a.call(o(this)):a.call(o(this),i(t))}})},"584a":function(t,e){var r=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=r)},"5b4e":function(t,e,r){var n=r("36c3"),i=r("b447"),o=r("0fc9");t.exports=function(t){return function(e,r,s){var a,c=n(e),u=i(c.length),l=o(s,u);if(t&&r!=r){while(u>l)if(a=c[l++],a!=a)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===r)return t||l||0;return!t&&-1}}},"5c95":function(t,e,r){var n=r("35e8");t.exports=function(t,e,r){for(var i in e)r&&t[i]?t[i]=e[i]:n(t,i,e[i]);return t}},"5ca1":function(t,e,r){var n=r("7726"),i=r("8378"),o=r("32e9"),s=r("2aba"),a=r("9b43"),c="prototype",u=function(t,e,r){var l,f,h,d,p=t&u.F,v=t&u.G,g=t&u.S,m=t&u.P,b=t&u.B,y=v?n:g?n[e]||(n[e]={}):(n[e]||{})[c],w=v?i:i[e]||(i[e]={}),_=w[c]||(w[c]={});for(l in v&&(r=e),r)f=!p&&y&&void 0!==y[l],h=(f?y:r)[l],d=b&&f?a(h,n):m&&"function"==typeof h?a(Function.call,h):h,y&&s(y,l,h,t&u.U),w[l]!=h&&o(w,l,d),m&&_[l]!=h&&(_[l]=h)};n.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},"5d58":function(t,e,r){t.exports=r("d8d6")},"5d6b":function(t,e,r){var n=r("e53d").parseInt,i=r("a1ce").trim,o=r("e692"),s=/^[-+]?0[xX]/;t.exports=8!==n(o+"08")||22!==n(o+"0x16")?function(t,e){var r=i(String(t),3);return n(r,e>>>0||(s.test(r)?16:10))}:n},"5dbc":function(t,e,r){var n=r("d3f4"),i=r("8b97").set;t.exports=function(t,e,r){var o,s=e.constructor;return s!==r&&"function"==typeof s&&(o=s.prototype)!==r.prototype&&n(o)&&i&&i(t,o),t}},"5f1b":function(t,e,r){"use strict";var n=r("23c6"),i=RegExp.prototype.exec;t.exports=function(t,e){var r=t.exec;if("function"===typeof r){var o=r.call(t,e);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},"613b":function(t,e,r){var n=r("5537")("keys"),i=r("ca5a");t.exports=function(t){return n[t]||(n[t]=i(t))}},"618f":function(t,e,r){"use strict";var n=r("6d9c"),i=r.n(n);i.a},"626a":function(t,e,r){var n=r("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},"62a0":function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},"62e4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"63b6":function(t,e,r){var n=r("e53d"),i=r("584a"),o=r("d864"),s=r("35e8"),a=r("07e3"),c="prototype",u=function(t,e,r){var l,f,h,d=t&u.F,p=t&u.G,v=t&u.S,g=t&u.P,m=t&u.B,b=t&u.W,y=p?i:i[e]||(i[e]={}),w=y[c],_=p?n:v?n[e]:(n[e]||{})[c];for(l in p&&(r=e),r)f=!d&&_&&void 0!==_[l],f&&a(y,l)||(h=f?_[l]:r[l],y[l]=p&&"function"!=typeof _[l]?r[l]:m&&f?o(h,n):b&&_[l]==h?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e[c]=t[c],e}(h):g&&"function"==typeof h?o(Function.call,h):h,g&&((y.virtual||(y.virtual={}))[l]=h,t&u.R&&w&&!w[l]&&s(w,l,h)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},"63e6":function(t,e,r){"use strict";var n=r("d9ab"),i=r.n(n);i.a},6453:function(t,e,r){"use strict";t.exports=(t=>encodeURIComponent(t).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`))},"656e":function(t,e,r){"use strict";var n=r("79aa");function i(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n}),this.resolve=n(e),this.reject=n(r)}t.exports.f=function(t){return new i(t)}},6718:function(t,e,r){var n=r("e53d"),i=r("584a"),o=r("b8e3"),s=r("ccb9"),a=r("d9f6").f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},6762:function(t,e,r){"use strict";var n=r("5ca1"),i=r("c366")(!0);n(n.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),r("9c6c")("includes")},"67bb":function(t,e,r){t.exports=r("f921")},6821:function(t,e,r){var n=r("626a"),i=r("be13");t.exports=function(t){return n(i(t))}},"696e":function(t,e,r){r("c207"),r("1654"),r("6c1c"),r("24c5"),r("3c11"),r("43fc"),t.exports=r("584a").Promise},"69a8":function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},"69d3":function(t,e,r){r("6718")("asyncIterator")},"6a99":function(t,e,r){var n=r("d3f4");t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"6abf":function(t,e,r){var n=r("e6f3"),i=r("1691").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},"6b4c":function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},"6b54":function(t,e,r){"use strict";r("3846");var n=r("cb7c"),i=r("0bfb"),o=r("9e1e"),s="toString",a=/./[s],c=function(t){r("2aba")(RegExp.prototype,s,t,!0)};r("79e5")(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?c(function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):a.name!=s&&c(function(){return a.call(this)})},"6c1c":function(t,e,r){r("c367");for(var n=r("e53d"),i=r("35e8"),o=r("481b"),s=r("5168")("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<a.length;c++){var u=a[c],l=n[u],f=l&&l.prototype;f&&!f[s]&&i(f,s,u),o[u]=o.Array}},"6d9c":function(t,e,r){},"71c1":function(t,e,r){var n=r("3a38"),i=r("25eb");t.exports=function(t){return function(e,r){var o,s,a=String(i(e)),c=n(r),u=a.length;return c<0||c>=u?t?"":void 0:(o=a.charCodeAt(c),o<55296||o>56319||c+1===u||(s=a.charCodeAt(c+1))<56320||s>57343?t?a.charAt(c):o:t?a.slice(c,c+2):s-56320+(o-55296<<10)+65536)}}},"72bf":function(t,e,r){"use strict";const n=r("6453"),i=r("f234");function o(t){switch(t.arrayFormat){case"index":return(e,r,n)=>{return null===r?[a(e,t),"[",n,"]"].join(""):[a(e,t),"[",a(n,t),"]=",a(r,t)].join("")};case"bracket":return(e,r)=>{return null===r?[a(e,t),"[]"].join(""):[a(e,t),"[]=",a(r,t)].join("")};default:return(e,r)=>{return null===r?a(e,t):[a(e,t),"=",a(r,t)].join("")}}}function s(t){let e;switch(t.arrayFormat){case"index":return(t,r,n)=>{e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===n[t]&&(n[t]={}),n[t][e[1]]=r):n[t]=r};case"bracket":return(t,r,n)=>{e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==n[t]?n[t]=[].concat(n[t],r):n[t]=[r]:n[t]=r};default:return(t,e,r)=>{void 0!==r[t]?r[t]=[].concat(r[t],e):r[t]=e}}}function a(t,e){return e.encode?e.strict?n(t):encodeURIComponent(t):t}function c(t,e){return e.decode?i(t):t}function u(t){return Array.isArray(t)?t.sort():"object"===typeof t?u(Object.keys(t)).sort((t,e)=>Number(t)-Number(e)).map(e=>t[e]):t}function l(t){const e=t.indexOf("?");return-1===e?"":t.slice(e+1)}function f(t,e){e=Object.assign({decode:!0,arrayFormat:"none"},e);const r=s(e),n=Object.create(null);if("string"!==typeof t)return n;if(t=t.trim().replace(/^[?#&]/,""),!t)return n;for(const i of t.split("&")){let[t,o]=i.replace(/\+/g," ").split("=");o=void 0===o?null:c(o,e),r(c(t,e),o,n)}return Object.keys(n).sort().reduce((t,e)=>{const r=n[e];return Boolean(r)&&"object"===typeof r&&!Array.isArray(r)?t[e]=u(r):t[e]=r,t},Object.create(null))}e.extract=l,e.parse=f,e.stringify=((t,e)=>{if(!t)return"";e=Object.assign({encode:!0,strict:!0,arrayFormat:"none"},e);const r=o(e),n=Object.keys(t);return!1!==e.sort&&n.sort(e.sort),n.map(n=>{const i=t[n];if(void 0===i)return"";if(null===i)return a(n,e);if(Array.isArray(i)){const t=[];for(const e of i.slice())void 0!==e&&t.push(r(n,e,t.length));return t.join("&")}return a(n,e)+"="+a(i,e)}).filter(t=>t.length>0).join("&")}),e.parseUrl=((t,e)=>{const r=t.indexOf("#");return-1!==r&&(t=t.slice(0,r)),{url:t.split("?")[0]||"",query:f(l(t),e)}})},7445:function(t,e,r){var n=r("63b6"),i=r("5d6b");n(n.G+n.F*(parseInt!=i),{parseInt:i})},7618:function(t,e,r){"use strict";r.d(e,"a",function(){return c});var n=r("5d58"),i=r.n(n),o=r("67bb"),s=r.n(o);function a(t){return a="function"===typeof s.a&&"symbol"===typeof i.a?function(t){return typeof t}:function(t){return t&&"function"===typeof s.a&&t.constructor===s.a&&t!==s.a.prototype?"symbol":typeof t},a(t)}function c(t){return c="function"===typeof s.a&&"symbol"===a(i.a)?function(t){return a(t)}:function(t){return t&&"function"===typeof s.a&&t.constructor===s.a&&t!==s.a.prototype?"symbol":a(t)},c(t)}},"765d":function(t,e,r){r("6718")("observable")},7726:function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},"774e":function(t,e,r){t.exports=r("d2d5")},"77f1":function(t,e,r){var n=r("4588"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=n(t),t<0?i(t+e,0):o(t,e)}},"794b":function(t,e,r){t.exports=!r("8e60")&&!r("294c")(function(){return 7!=Object.defineProperty(r("1ec9")("div"),"a",{get:function(){return 7}}).a})},"795b":function(t,e,r){t.exports=r("696e")},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"7a56":function(t,e,r){"use strict";var n=r("7726"),i=r("86cc"),o=r("9e1e"),s=r("2b4c")("species");t.exports=function(t){var e=n[t];o&&e&&!e[s]&&i.f(e,s,{configurable:!0,get:function(){return this}})}},"7a77":function(t,e,r){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},"7aac":function(t,e,r){"use strict";var n=r("c532");t.exports=n.isStandardBrowserEnv()?function(){return{write:function(t,e,r,i,o,s){var a=[];a.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(i)&&a.push("path="+i),n.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7afa":function(t,e,r){var n=r("9b81");function i(t){return decodeURIComponent(n(t).replace(/(.)/g,function(t,e){var r=e.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}t.exports=function(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return i(e)}catch(r){return n(e)}}},"7cd6":function(t,e,r){var n=r("40c3"),i=r("5168")("iterator"),o=r("481b");t.exports=r("584a").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[n(t)]}},"7e90":function(t,e,r){var n=r("d9f6"),i=r("e4ae"),o=r("c3a1");t.exports=r("8e60")?Object.defineProperties:function(t,e){i(t);var r,s=o(e),a=s.length,c=0;while(a>c)n.f(t,r=s[c++],e[r]);return t}},"7f20":function(t,e,r){var n=r("86cc").f,i=r("69a8"),o=r("2b4c")("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},"7f7f":function(t,e,r){var n=r("86cc").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,s="name";s in i||r("9e1e")&&n(i,s,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},8378:function(t,e){var r=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=r)},"83a1":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},8436:function(t,e){t.exports=function(){}},"84f2":function(t,e){t.exports={}},8578:function(t,e,r){"use strict";var n=r("3ea9"),i=r.n(n);i.a},"85f2":function(t,e,r){t.exports=r("454f")},"86cc":function(t,e,r){var n=r("cb7c"),i=r("c69a"),o=r("6a99"),s=Object.defineProperty;e.f=r("9e1e")?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return s(t,e,r)}catch(a){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},8882:function(t,e,r){},"8aae":function(t,e,r){r("32a6"),t.exports=r("584a").Object.keys},"8b97":function(t,e,r){var n=r("d3f4"),i=r("cb7c"),o=function(t,e){if(i(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{n=r("9b43")(Function.call,r("11e9").f(Object.prototype,"__proto__").set,2),n(t,[]),e=!(t instanceof Array)}catch(i){e=!0}return function(t,r){return o(t,r),e?t.__proto__=r:n(t,r),t}}({},!1):void 0),check:o}},"8df4":function(t,e,r){"use strict";var n=r("7a77");function i(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var r=this;t(function(t){r.reason||(r.reason=new n(t),e(r.reason))})}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t,e=new i(function(e){t=e});return{token:e,cancel:t}},t.exports=i},"8e60":function(t,e,r){t.exports=!r("294c")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"8f60":function(t,e,r){"use strict";var n=r("a159"),i=r("aebd"),o=r("45f2"),s={};r("35e8")(s,r("5168")("iterator"),function(){return this}),t.exports=function(t,e,r){t.prototype=n(s,{next:i(1,r)}),o(t,e+" Iterator")}},9003:function(t,e,r){var n=r("6b4c");t.exports=Array.isArray||function(t){return"Array"==n(t)}},9093:function(t,e,r){var n=r("ce10"),i=r("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},9138:function(t,e,r){t.exports=r("35e8")},9152:function(t,e){e.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,c=(1<<a)-1,u=c>>1,l=-7,f=r?i-1:0,h=r?-1:1,d=t[e+f];for(f+=h,o=d&(1<<-l)-1,d>>=-l,l+=a;l>0;o=256*o+t[e+f],f+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+t[e+f],f+=h,l-=8);if(0===o)o=1-u;else{if(o===c)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),o-=u}return(d?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,a,c,u=8*o-i-1,l=(1<<u)-1,f=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),e+=s+f>=1?h/c:h*Math.pow(2,1-f),e*c>=2&&(s++,c/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(e*c-1)*Math.pow(2,i),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;t[r+d]=255&a,d+=p,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;t[r+d]=255&s,d+=p,s/=256,u-=8);t[r+d-p]|=128*v}},"91dd":function(t,e,r){"use strict";function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,r,o){e=e||"&",r=r||"=";var s={};if("string"!==typeof t||0===t.length)return s;var a=/\+/g;t=t.split(e);var c=1e3;o&&"number"===typeof o.maxKeys&&(c=o.maxKeys);var u=t.length;c>0&&u>c&&(u=c);for(var l=0;l<u;++l){var f,h,d,p,v=t[l].replace(a,"%20"),g=v.indexOf(r);g>=0?(f=v.substr(0,g),h=v.substr(g+1)):(f=v,h=""),d=decodeURIComponent(f),p=decodeURIComponent(h),n(s,d)?i(s[d])?s[d].push(p):s[d]=[s[d],p]:s[d]=p}return s};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},"95d5":function(t,e,r){var n=r("40c3"),i=r("5168")("iterator"),o=r("481b");t.exports=r("584a").isIterable=function(t){var e=Object(t);return void 0!==e[i]||"@@iterator"in e||o.hasOwnProperty(n(e))}},"9a91":function(t,e,r){"use strict";var n=r("8882"),i=r.n(n);i.a},"9aa9":function(t,e){e.f=Object.getOwnPropertySymbols},"9b43":function(t,e,r){var n=r("d8e8");t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},"9b81":function(t,e){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function n(t){this.message=t}function i(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var i,o,s=0,a=0,c="";o=e.charAt(a++);~o&&(i=s%4?64*i+o:o,s++%4)?c+=String.fromCharCode(255&i>>(-2*s&6)):0)o=r.indexOf(o);return c}n.prototype=new Error,n.prototype.name="InvalidCharacterError",t.exports="undefined"!==typeof window&&window.atob&&window.atob.bind(window)||i},"9c6c":function(t,e,r){var n=r("2b4c")("unscopables"),i=Array.prototype;void 0==i[n]&&r("32e9")(i,n,{}),t.exports=function(t){i[n][t]=!0}},"9def":function(t,e,r){var n=r("4588"),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},"9e1e":function(t,e,r){t.exports=!r("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"9fa6":function(t,e,r){"use strict";var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function i(){this.message="String contains an invalid character"}function o(t){for(var e,r,o=String(t),s="",a=0,c=n;o.charAt(0|a)||(c="=",a%1);s+=c.charAt(63&e>>8-a%1*8)){if(r=o.charCodeAt(a+=.75),r>255)throw new i;e=e<<8|r}return s}i.prototype=new Error,i.prototype.code=5,i.prototype.name="InvalidCharacterError",t.exports=o},a159:function(t,e,r){var n=r("e4ae"),i=r("7e90"),o=r("1691"),s=r("5559")("IE_PROTO"),a=function(){},c="prototype",u=function(){var t,e=r("1ec9")("iframe"),n=o.length,i="<",s=">";e.style.display="none",r("32fc").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+s+"document.F=Object"+i+"/script"+s),t.close(),u=t.F;while(n--)delete u[c][o[n]];return u()};t.exports=Object.create||function(t,e){var r;return null!==t?(a[c]=n(t),r=new a,a[c]=null,r[s]=t):r=u(),void 0===e?r:i(r,e)}},a1ce:function(t,e,r){var n=r("63b6"),i=r("25eb"),o=r("294c"),s=r("e692"),a="["+s+"]",c="​…",u=RegExp("^"+a+a+"*"),l=RegExp(a+a+"*$"),f=function(t,e,r){var i={},a=o(function(){return!!s[t]()||c[t]()!=c}),u=i[t]=a?e(h):s[t];r&&(i[r]=u),n(n.P+n.F*a,"String",i)},h=f.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(l,"")),t};t.exports=f},a22a:function(t,e,r){var n=r("d864"),i=r("b0dc"),o=r("3702"),s=r("e4ae"),a=r("b447"),c=r("7cd6"),u={},l={};e=t.exports=function(t,e,r,f,h){var d,p,v,g,m=h?function(){return t}:c(t),b=n(r,f,e?2:1),y=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(d=a(t.length);d>y;y++)if(g=e?b(s(p=t[y])[0],p[1]):b(t[y]),g===u||g===l)return g}else for(v=m.call(t);!(p=v.next()).done;)if(g=i(v,b,p.value,e),g===u||g===l)return g};e.BREAK=u,e.RETURN=l},a481:function(t,e,r){"use strict";var n=r("cb7c"),i=r("4bf8"),o=r("9def"),s=r("4588"),a=r("0390"),c=r("5f1b"),u=Math.max,l=Math.min,f=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g,p=function(t){return void 0===t?t:String(t)};r("214f")("replace",2,function(t,e,r,v){return[function(n,i){var o=t(this),s=void 0==n?void 0:n[e];return void 0!==s?s.call(n,o,i):r.call(String(o),n,i)},function(t,e){var i=v(r,t,this,e);if(i.done)return i.value;var f=n(t),h=String(this),d="function"===typeof e;d||(e=String(e));var m=f.global;if(m){var b=f.unicode;f.lastIndex=0}var y=[];while(1){var w=c(f,h);if(null===w)break;if(y.push(w),!m)break;var _=String(w[0]);""===_&&(f.lastIndex=a(h,o(f.lastIndex),b))}for(var C="",x=0,S=0;S<y.length;S++){w=y[S];for(var E=String(w[0]),P=u(l(s(w.index),h.length),0),O=[],R=1;R<w.length;R++)O.push(p(w[R]));var A=w.groups;if(d){var k=[E].concat(O,P,h);void 0!==A&&k.push(A);var U=String(e.apply(void 0,k))}else U=g(E,h,P,O,A,e);P>=x&&(C+=h.slice(x,P)+U,x=P+E.length)}return C+h.slice(x)}];function g(t,e,n,o,s,a){var c=n+t.length,u=o.length,l=d;return void 0!==s&&(s=i(s),l=h),r.call(a,l,function(r,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(c);case"<":a=s[i.slice(1,-1)];break;default:var l=+i;if(0===l)return r;if(l>u){var h=f(l/10);return 0===h?r:h<=u?void 0===o[h-1]?i.charAt(1):o[h-1]+i.charAt(1):r}a=o[l-1]}return void 0===a?"":a})}})},a4bb:function(t,e,r){t.exports=r("8aae")},a5de:function(t,e,r){"use strict";var n=r("3cfb"),i=r.n(n);i.a},a745:function(t,e,r){t.exports=r("f410")},aa77:function(t,e,r){var n=r("5ca1"),i=r("be13"),o=r("79e5"),s=r("fdef"),a="["+s+"]",c="​…",u=RegExp("^"+a+a+"*"),l=RegExp(a+a+"*$"),f=function(t,e,r){var i={},a=o(function(){return!!s[t]()||c[t]()!=c}),u=i[t]=a?e(h):s[t];r&&(i[r]=u),n(n.P+n.F*a,"String",i)},h=f.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(l,"")),t};t.exports=f},aae3:function(t,e,r){var n=r("d3f4"),i=r("2d95"),o=r("2b4c")("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},aba2:function(t,e,r){var n=r("e53d"),i=r("4178").set,o=n.MutationObserver||n.WebKitMutationObserver,s=n.process,a=n.Promise,c="process"==r("6b4c")(s);t.exports=function(){var t,e,r,u=function(){var n,i;c&&(n=s.domain)&&n.exit();while(t){i=t.fn,t=t.next;try{i()}catch(o){throw t?r():e=void 0,o}}e=void 0,n&&n.enter()};if(c)r=function(){s.nextTick(u)};else if(!o||n.navigator&&n.navigator.standalone)if(a&&a.resolve){var l=a.resolve(void 0);r=function(){l.then(u)}}else r=function(){i.call(n,u)};else{var f=!0,h=document.createTextNode("");new o(u).observe(h,{characterData:!0}),r=function(){h.data=f=!f}}return function(n){var i={fn:n,next:void 0};e&&(e.next=i),t||(t=i,r()),e=i}}},ac6a:function(t,e,r){for(var n=r("cadf"),i=r("0d58"),o=r("2aba"),s=r("7726"),a=r("32e9"),c=r("84f2"),u=r("2b4c"),l=u("iterator"),f=u("toStringTag"),h=c.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(d),v=0;v<p.length;v++){var g,m=p[v],b=d[m],y=s[m],w=y&&y.prototype;if(w&&(w[l]||a(w,l,h),w[f]||a(w,f,m),c[m]=h,b))for(g in n)w[g]||o(w,g,n[g],!0)}},aebd:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},b012:function(t,e){function r(t,e,r){var n,i,o,s,a;function c(){var u=Date.now()-s;u<e&&u>=0?n=setTimeout(c,e-u):(n=null,r||(a=t.apply(o,i),o=i=null))}null==e&&(e=100);var u=function(){o=this,i=arguments,s=Date.now();var u=r&&!n;return n||(n=setTimeout(c,e)),u&&(a=t.apply(o,i),o=i=null),a};return u.clear=function(){n&&(clearTimeout(n),n=null)},u.flush=function(){n&&(a=t.apply(o,i),o=i=null,clearTimeout(n),n=null)},u}r.debounce=r,t.exports=r},b0b4:function(t,e,r){"use strict";r.d(e,"a",function(){return s});var n=r("85f2"),i=r.n(n);function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),i()(t,n.key,n)}}function s(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),t}},b0c5:function(t,e,r){"use strict";var n=r("520a");r("5ca1")({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},b0dc:function(t,e,r){var n=r("e4ae");t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(s){var o=t["return"];throw void 0!==o&&n(o.call(t)),s}}},b383:function(t,e,r){"use strict";e.decode=e.parse=r("91dd"),e.encode=e.stringify=r("e099")},b447:function(t,e,r){var n=r("3a38"),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},b50d:function(t,e,r){"use strict";var n=r("c532"),i=r("467f"),o=r("30b5"),s=r("c345"),a=r("3934"),c=r("2d83"),u="undefined"!==typeof window&&window.btoa&&window.btoa.bind(window)||r("9fa6");t.exports=function(t){return new Promise(function(e,l){var f=t.data,h=t.headers;n.isFormData(f)&&delete h["Content-Type"];var d=new XMLHttpRequest,p="onreadystatechange",v=!1;if("undefined"===typeof window||!window.XDomainRequest||"withCredentials"in d||a(t.url)||(d=new window.XDomainRequest,p="onload",v=!0,d.onprogress=function(){},d.ontimeout=function(){}),t.auth){var g=t.auth.username||"",m=t.auth.password||"";h.Authorization="Basic "+u(g+":"+m)}if(d.open(t.method.toUpperCase(),o(t.url,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d[p]=function(){if(d&&(4===d.readyState||v)&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?s(d.getAllResponseHeaders()):null,n=t.responseType&&"text"!==t.responseType?d.response:d.responseText,o={data:n,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:r,config:t,request:d};i(e,l,o),d=null}},d.onerror=function(){l(c("Network Error",t,null,d)),d=null},d.ontimeout=function(){l(c("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",d)),d=null},n.isStandardBrowserEnv()){var b=r("7aac"),y=(t.withCredentials||a(t.url))&&t.xsrfCookieName?b.read(t.xsrfCookieName):void 0;y&&(h[t.xsrfHeaderName]=y)}if("setRequestHeader"in d&&n.forEach(h,function(t,e){"undefined"===typeof f&&"content-type"===e.toLowerCase()?delete h[e]:d.setRequestHeader(e,t)}),t.withCredentials&&(d.withCredentials=!0),t.responseType)try{d.responseType=t.responseType}catch(w){if("json"!==t.responseType)throw w}"function"===typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){d&&(d.abort(),l(t),d=null)}),void 0===f&&(f=null),d.send(f)})}},b639:function(t,e,r){"use strict";(function(t){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */
var n=r("1fb5"),i=r("9152"),o=r("e3db");function s(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=u.prototype):(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,r){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(t,e,r);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return d(this,t)}return l(this,t,e,r)}function l(t,e,r,n){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?g(t,e,r,n):"string"===typeof e?p(t,e,r):m(t,e)}function f(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e,r,n){return f(e),e<=0?c(t,e):void 0!==r?"string"===typeof n?c(t,e).fill(r,n):c(t,e).fill(r):c(t,e)}function d(t,e){if(f(e),t=c(t,e<0?0:0|b(e)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function p(t,e,r){if("string"===typeof r&&""!==r||(r="utf8"),!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|w(e,r);t=c(t,n);var i=t.write(e,r);return i!==n&&(t=t.slice(0,i)),t}function v(t,e){var r=e.length<0?0:0|b(e.length);t=c(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function g(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n),u.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=u.prototype):t=v(t,e),t}function m(t,e){if(u.isBuffer(e)){var r=0|b(e.length);return t=c(t,r),0===t.length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?c(t,0):v(t,e);if("Buffer"===e.type&&o(e.data))return v(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function b(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function y(t){return+t!=t&&(t=0),u.alloc(+t)}function w(t,e){if(u.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Q(t).length;default:if(n)return K(t).length;e=(""+e).toLowerCase(),n=!0}}function _(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return $(this,e,r);case"utf8":case"utf-8":return T(this,e,r);case"ascii":return I(this,e,r);case"latin1":case"binary":return N(this,e,r);case"base64":return U(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function C(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function x(t,e,r,n,i){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:S(t,e,r,n,i);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):S(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function S(t,e,r,n,i){var o,s=1,a=t.length,c=e.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,r/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var l=-1;for(o=r;o<a;o++)if(u(t,o)===u(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*s}else-1!==l&&(o-=o-l),l=-1}else for(r+c>a&&(r=a-c),o=r;o>=0;o--){for(var f=!0,h=0;h<c;h++)if(u(t,o+h)!==u(e,h)){f=!1;break}if(f)return o}return-1}function E(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[r+s]=a}return s}function P(t,e,r,n){return tt(K(e,t.length-r),t,r,n)}function O(t,e,r,n){return tt(X(e),t,r,n)}function R(t,e,r,n){return O(t,e,r,n)}function A(t,e,r,n){return tt(Q(e),t,r,n)}function k(t,e,r,n){return tt(Z(e,t.length-r),t,r,n)}function U(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function T(t,e,r){r=Math.min(t.length,r);var n=[],i=e;while(i<r){var o,s,a,c,u=t[i],l=null,f=u>239?4:u>223?3:u>191?2:1;if(i+f<=r)switch(f){case 1:u<128&&(l=u);break;case 2:o=t[i+1],128===(192&o)&&(c=(31&u)<<6|63&o,c>127&&(l=c));break;case 3:o=t[i+1],s=t[i+2],128===(192&o)&&128===(192&s)&&(c=(15&u)<<12|(63&o)<<6|63&s,c>2047&&(c<55296||c>57343)&&(l=c));break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128===(192&o)&&128===(192&s)&&128===(192&a)&&(c=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a,c>65535&&c<1114112&&(l=c))}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=f}return j(n)}e.Buffer=u,e.SlowBuffer=y,e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:s(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return l(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,r){return h(null,t,e,r)},u.allocUnsafe=function(t){return d(null,t)},u.allocUnsafeSlow=function(t){return d(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=u.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var s=t[r];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,i),i+=s.length}return n},u.byteLength=w,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)C(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)C(this,e,e+3),C(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)C(this,e,e+7),C(this,e+1,e+6),C(this,e+2,e+5),C(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?T(this,0,t):_.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,r,n,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,s=r-e,a=Math.min(o,s),c=this.slice(n,i),l=t.slice(e,r),f=0;f<a;++f)if(c[f]!==l[f]){o=c[f],s=l[f];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return x(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return x(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"===typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return E(this,t,e,r);case"utf8":case"utf-8":return P(this,t,e,r);case"ascii":return O(this,t,e,r);case"latin1":case"binary":return R(this,t,e,r);case"base64":return A(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var L=4096;function j(t){var e=t.length;if(e<=L)return String.fromCharCode.apply(String,t);var r="",n=0;while(n<e)r+=String.fromCharCode.apply(String,t.slice(n,n+=L));return r}function I(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function N(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function $(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=J(t[o]);return i}function M(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function F(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function B(t,e,r,n,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function D(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function q(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function W(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function V(t,e,r,n,o){return o||W(t,e,r,4,3.4028234663852886e38,-3.4028234663852886e38),i.write(t,e,r,n,23,4),r+4}function Y(t,e,r,n,o){return o||W(t,e,r,8,1.7976931348623157e308,-1.7976931348623157e308),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if(t=~~t,e=void 0===e?n:~~e,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)r=this.subarray(t,e),r.__proto__=u.prototype;else{var i=e-t;r=new u(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+t]}return r},u.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||F(t,e,this.length);var n=this[t],i=1,o=0;while(++o<e&&(i*=256))n+=this[t+o]*i;return n},u.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||F(t,e,this.length);var n=this[t+--e],i=1;while(e>0&&(i*=256))n+=this[t+--e]*i;return n},u.prototype.readUInt8=function(t,e){return e||F(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||F(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||F(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||F(t,e,this.length);var n=this[t],i=1,o=0;while(++o<e&&(i*=256))n+=this[t+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||F(t,e,this.length);var n=e,i=1,o=this[t+--n];while(n>0&&(i*=256))o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||F(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||F(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||F(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||F(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||F(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||F(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||F(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;B(this,t,e,r,i,0)}var o=1,s=0;this[e]=255&t;while(++s<r&&(o*=256))this[e+s]=t/o&255;return e+r},u.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;B(this,t,e,r,i,0)}var o=r-1,s=1;this[e+o]=255&t;while(--o>=0&&(s*=256))this[e+o]=t/s&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):q(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):q(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);B(this,t,e,r,i-1,-i)}var o=0,s=1,a=0;this[e]=255&t;while(++o<r&&(s*=256))t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);B(this,t,e,r,i-1,-i)}var o=r-1,s=1,a=0;this[e+o]=255&t;while(--o>=0&&(s*=256))t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):q(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||B(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):q(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return V(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return V(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return Y(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return Y(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},u.prototype.fill=function(t,e,r,n){if("string"===typeof t){if("string"===typeof e?(n=e,e=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(o=e;o<r;++o)this[o]=t;else{var s=u.isBuffer(t)?t:K(new u(t,n).toString()),a=s.length;for(o=0;o<r-e;++o)this[o+e]=s[o%a]}return this};var z=/[^+\/0-9A-Za-z-_]/g;function G(t){if(t=H(t).replace(z,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function H(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function J(t){return t<16?"0"+t.toString(16):t.toString(16)}function K(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function X(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function Z(t,e){for(var r,n,i,o=[],s=0;s<t.length;++s){if((e-=2)<0)break;r=t.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n)}return o}function Q(t){return n.toByteArray(G(t))}function tt(t,e,r,n){for(var i=0;i<n;++i){if(i+r>=e.length||i>=t.length)break;e[i+r]=t[i]}return i}function et(t){return t!==t}}).call(this,r("c8ba"))},b8e3:function(t,e){t.exports=!0},b9e9:function(t,e,r){r("7445"),t.exports=r("584a").parseInt},bc13:function(t,e,r){var n=r("e53d"),i=n.navigator;t.exports=i&&i.userAgent||""},bc3a:function(t,e,r){t.exports=r("cee4")},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},bf0b:function(t,e,r){var n=r("355d"),i=r("aebd"),o=r("36c3"),s=r("1bc3"),a=r("07e3"),c=r("794b"),u=Object.getOwnPropertyDescriptor;e.f=r("8e60")?u:function(t,e){if(t=o(t),e=s(e,!0),c)try{return u(t,e)}catch(r){}if(a(t,e))return i(!n.f.call(t,e),t[e])}},bf11:function(t,e,r){"use strict";(function(t){r("f559"),r("28a5"),r("7f7f"),r("ac6a"),r("a481"),r("3b2b"),r("6b54"),r("386d");var n=r("795b"),i=r.n(n),o=r("7618"),s=r("d225"),a=r("b0b4"),c=r("04e1"),u=r.n(c),l=r("bc3a"),f=r.n(l),h=r("72bf"),d=r.n(h);r("27c3");console.log("(LoginService.js) 1"),console.log("(LoginService.js) 2");var p="authservice-jwt",v=3,g="Could not contact authentication server",m=function(){function e(t){var r=this;Object(s["a"])(this,e),console.log("&&& LoginService constructor",t),this.host=t.host?t.host:"api.authservice.io",this.port=t.port?t.port:443,this.version=t.version?t.version:"v2",this.apikey=t.apikey,this.protocol="http",!t.protocol||"http"!==t.protocol&&"https"!==t.protocol?80===this.port?this.protocol="http":443===this.port&&(this.protocol="https"):this.protocol=t.protocol,this.defaultIconPack=t.defaultIconPack?t.defaultIconPack:"fa",this.icons=function(t){return r.defaultIconPack===t},t.hints&&t.hints.login&&"undefined"!==typeof t.hints.login.email&&!t.hints.login.email?(console.log("LoginService(): Email is NOT enabled"),this.emailSupported=!1):(console.log("LoginService(): Email IS enabled"),this.emailSupported=!0),this.loginResume=null,this.loginFail=null,t.hints&&t.hints.login&&(t.hints.login.resumeURL&&("string"!==typeof t.hints.login.resumeURL?(console.error("options.hints.login.resumeURL must be a string"),console.log("Will return to current page after login")):(this.loginResume=this.URLOnThisWebsite(t.hints.login.resumeURL),null===this.loginResume&&(console.error("options.hints.login.resumeURL not on this website: (".concat(t.hints.login.resumeURL,")")),console.log("Will return to current page after login")))),t.hints.login.failURL&&("string"!==typeof t.hints.login.failURL?(console.error("options.hints.login.failURL must be a string"),console.log("Will return to current page on error")):(this.loginFail=this.URLOnThisWebsite(t.hints.login.failURL),null===this.loginFail&&(console.error("options.hints.login.failURL not on this website: (".concat(t.hints.login.failURL,")")),console.log("Will return to current page on error"))))),this.emailSupported?t.hints&&"undefined"!==typeof t.hints.register&&!t.hints.register?(console.log("LoginService(): Registration is NOT supported"),this.registrationSupported=!1):"object"!==Object(o["a"])(t.hints.register)?(this.registrationSupported=!1,console.error("options.hints.register must be false, or an object")):t.hints.register.resumeURL?"string"!==typeof t.hints.register.resumeURL?(this.registrationSupported=!1,console.log("LoginService(): Registration is NOT supported"),console.error("options.hints.register.resumeURL must be a string")):(this.registerResume=this.URLOnThisWebsite(t.hints.register.resumeURL),null===this.registerResume?(console.error("LoginService(): Registration will NOT be supported"),console.log("options.hints.register.resumeURL not on this website: (".concat(t.hints.register.resumeURL,")")),this.registrationSupported=!1):(console.log("LoginService(): Registration enabled"),this.registrationSupported=!0)):(this.registrationSupported=!1,console.log("LoginService(): Registration is NOT supported"),console.error("options.hints.register.resumeURL must be provided")):(console.log("LoginService(): Registration is NOT supported"),console.log("(because email is not supported)"),this.registrationSupported=!1),this.emailSupported?t.hints&&"undefined"!==typeof t.hints.forgot&&!t.hints.forgot?this.forgottenPasswordSupported=!1:"object"!==Object(o["a"])(t.hints.forgot)?(console.error("LoginService(): Forgotten password will NOT be supported"),console.log("options.hints.forgot must be false, or an object"),this.forgottenPasswordSupported=!1):t.hints.forgot&&t.hints.forgot.resumeURL?"string"!==typeof t.hints.forgot.resumeURL?(console.error("LoginService(): Forgotten password will NOT be supported"),console.log("options.hints.forgot.resumeURL must be a string"),this.forgottenPasswordSupported=!1):(this.forgotResume=this.URLOnThisWebsite(t.hints.forgot.resumeURL),null===this.forgotResume?(console.error("LoginService(): Forgotten password will NOT be supported"),console.log("options.hints.forgot.resumeURL not on this website: (".concat(t.hints.forgot.resumeURL,")")),this.forgottenPasswordSupported=!1):(console.log("LoginService(): Forgotten password enabled"),this.forgottenPasswordSupported=!0)):(console.error("LoginService(): Forgotten password will NOT be supported"),console.log("options.hints.forgot.resumeURL must be provided"),this.forgottenPasswordSupported=!1):(console.error("LoginService(): Forgotten password will NOT be supported"),console.log("(because email is not supported)"),this.forgottenPasswordSupported=!1),this.options=t,this.user=null,this.jwt=null,this.fromCache=!1}return Object(a["a"])(e,[{key:"init",value:function(t){console.log("&&& MyComponent init")}},{key:"endpoint",value:function(){var t="";"http"===this.protocol&&80!==this.port?t=":".concat(this.port):"https"===this.protocol&&443!==this.port&&(t=":".concat(this.port));var e="".concat(this.protocol,"://").concat(this.host).concat(t,"/").concat(this.version,"/").concat(this.apikey);return e}},{key:"checkInitialLoginStatus",value:function(t){if(t=!0,console.log("+++++ checkInitialLoginStatus ++++++"),window){var e=this.getURLParameterByName("AUTHSERVICE_JWT");if(e){t&&(console.log("***"),console.log("***"),console.log("*** LOGINSERVICE_JWT IN URL"),console.log("***"),console.log("***"));var r=!1;return this.setCurrentUserFromJWT(e,r)?(this.setCookie(p,e,v),!0):(this.removeCookie(p),!1)}}var n=this.getCookie(p);if(n){t&&(console.log("***"),console.log("***"),console.log("*** LOGINSERVICE_JWT IN A COOKIE"),console.log("***"),console.log("***"));var i=!1;return!!this.setCurrentUserFromJWT(n,i)||(this.removeCookie(p),!1)}t&&(console.log("***"),console.log("***"),console.log("*** LOGINSERVICE_JWT NOT IN URL OR COOKIE"),console.log("***"),console.log("***"));var o=!1;return this.setCurrentUserFromJWT(null,o),!1}},{key:"login",value:function(t,e){var r=this;return new i.a(function(n,i){console.log("login(email="+t+")"),f()({method:"post",url:r.endpoint()+"/email/login",headers:{"Content-Type":"application/json",Accept:"application/json"},data:{email:t,password:e}}).then(function(t){if("ok"===t.data.status){var e=t.data.jwt,o=!1;return r.setCurrentUserFromJWT(e,o)?(r.setCookie(p,e,v),void n(r.user.id)):(console.log("ok 4"),r.removeCookie(p),console.log("ok 5"),void i("Invalid credentials"))}var s=!1;return r.setCurrentUserFromJWT(null,s),r.removeCookie(p),void i(t.data.message)}).catch(function(t){var e=!1;return r.setCurrentUserFromJWT(null,e),r.removeCookie(p),console.log("e=",t),console.log("e.response:",t.response),console.log("e.status:",t.status),t.response?(console.log("e:",t),console.log("e.response:",t.response),console.log("e.data:",t.data),void i(t.response.data.message)):void i(g)})})}},{key:"initiateOAuth",value:function(e,r){var n;if(console.log("initiateOAuth(me, ".concat(r,")")),this.loginResume)n=this.URLOnThisWebsite(this.loginResume);else{var i=window.location;console.log("resume to current page after oauth login",i);var o=d.a.parse(i.search);delete o["LOGINSERVICE_JWT"],delete o["AUTHSERVICE_ERROR"];var s=d.a.stringify(o);n=i.protocol+"//"+i.host+i.pathname,s&&(n+="?"+s),n+=i.hash,console.log("\n\nresumeURL=",n),console.log(new t(n).toString("base64"))}var a=new t(n).toString("base64"),c=d.a.stringify({next:a}),u="",l=this.URLOnThisWebsite("/authservice-bounce?".concat(c,"#").concat(u));console.log("\n\nbounceURL=",l);var f,h=l;f=this.loginFail?this.loginFail:l,console.log("successURL="+h),console.log("successURL="+encodeURIComponent(h)),console.log("failURL="+f),console.log("failURL="+encodeURIComponent(f));var p="".concat(protocol,"://").concat(this.host,":").concat(this.port,"/").concat(this.version,"/oauth2/initiate/").concat(this.apikey,"/").concat(r);p+="?success="+encodeURIComponent(h),p+="&fail="+encodeURIComponent(f),window.location=p}},{key:"logout",value:function(){var t=this;return new i.a(function(e,r){var n=!1;t.setCurrentUserFromJWT(null,n),t.removeCookie(p),e(0)})}},{key:"register",value:function(t){var e=this;return console.log("$authservice.register()",t),new i.a(function(r,n){if(console.log("INside the promise:",n),e.registrationSupported){switch(Object(o["a"])(t.email)){case"string":t.email.indexOf("@")<1&&n("Please enter a valid email address");break;case"undefined":return n("options.email must be provided");default:return n("options.email must be a string")}var i={email:t.email,resume:e.registerResume};switch(console.log("username is "+t.username),Object(o["a"])(t.username)){case"string":var s=t.username.trim().toLowerCase();if(s.indexOf(" ")>=0)return void n("Username may not contain spaces");if(s.indexOf("@")>=0)return void n("Username may not contain @");i.username=s;break;case"undefined":i.username=i.email;break;default:return n("If provided, options.username must be a string")}switch(Object(o["a"])(t.password)){case"string":if(t.password.length<5)return n("Please enter a longer password");i.password=t.password;break;case"undefined":break;default:return n("If provided, options.password must be a string")}switch(Object(o["a"])(t.firstName)){case"string":if(t.firstName.length<1)return n("Please enter a first name");i.firstName=t.firstName;break;case"undefined":break;default:return n("If provided, options.firstName must be a string")}switch(Object(o["a"])(t.middleName)){case"string":if(t.middleName.length<1)return n("Please enter a middle name");i.middleName=t.middleName;break;case"undefined":break;default:return n("If provided, options.middleName must be a string")}switch(Object(o["a"])(t.lastName)){case"string":if(t.lastName.length<1)return n("Please enter a last name");i.lastName=t.lastName;break;case"undefined":break;default:return n("If provided, options.lastName must be a string")}console.log("params=",i),f()({method:"put",url:e.endpoint()+"/email/register",headers:{"Content-Type":"application/json",Accept:"application/json"},data:i}).then(function(t){if(console.log("response is ",t),t.data&&"ok"===t.data.status){if(t.jwt){var i=t.jwt,o=!1;e.setCurrentUserFromJWT(i,o)?e.setCookie(p,i,v):e.removeCookie(p)}r(i)}else{var s=t.data&&t.data.message?t.data.message:"Error while registering";n(s)}}).catch(function(t){if(t.response){var e=t.response.data&&t.response.data.Error?t.response.data.Error:"Error while registering";n(e)}else n(g)})}else{var a="Registration is not available.";n(a)}})}},{key:"forgot",value:function(e,r){var n=this;return new i.a(function(r,i){if(n.forgottenPasswordSupported)if(null===e||e.indexOf("@")<1){var o="Please enter a valid email address";i(o)}else{var s=new t(n.forgotResume).toString("base64"),a=d.a.stringify({next:s}),c=n.URLOnThisWebsite("/authservice-bounce?".concat(a));f()({method:"post",url:n.endpoint()+"/email/forgot",headers:{"Content-Type":"application/json",Accept:"application/json"},data:{email:e,resume:c}}).then(function(t){if("ok"!==t.data.status){var e=t.data&&t.data.message?t.data.message:"Error while sending email";i(e)}else r(t.data)}).catch(function(t){if(t.response){var e=t.response.data&&t.response.data.message?t.response.data.message:"Error while sending email";i(e)}else i(g)})}else{var u="Password retrieval is not available.";i(u)}})}},{key:"getURLParameterByName",value:function(t){var e=RegExp("[?&]"+t+"=([^&]*)").exec(window.location.search);return e&&decodeURIComponent(e[1].replace(/\+/g," "))}},{key:"setCurrentUserFromJWT",value:function(t,e){var r=!1,n=null;if(t)try{var i=u()(t);console.log("decoded=",i),n=i.identity,r=!0}catch(s){console.log("Error decoding JWT: ",s),r=!1}if(r){var o={tenant:n.tenant,authority:n.authority,avatar:n.avatar,email:n.email,emailStatus:n.email_status,entityType:n.entity_type,firstname:n.first_name,fullname:n.full_name,gender:n.gender,id:n.id,isAdmin:n.is_admin,languages:n.languages,lastname:n.last_name,locale:n.locale,location:n.location,mediaPage:n.media_page,middlename:n.middle_name,privileges:n.privileges,status:n.status,timezone:n.timezone,username:n.username,rights:[]};return n.rights?n.rights.forEach(function(t){var e={realm:t.realm,name:t.name,sequence:t.sequence,value:t.value};o.rights.push(e)}):console.error("JWT does not contain field {rights}."),this.user=o,this.jwt=t,this.fromCache=e,!0}return this.user=null,this.jwt=null,this.fromCache=!1,!1}},{key:"usernameAvailability",value:function(t){var e=this;return new i.a(function(r,n){if(t=t.trim().toLowerCase(),t.length<3)n("Username must be 3 or more characters");else{var i=e.endpoint()+"/username-availability/"+encodeURIComponent(t);f()({method:"get",url:i,headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(function(t){return"available"===t.data.status?void r(null):void r(t.data.error)}).catch(function(t){if(t.response){var e=t.response.data.Error?t.response.data.Error:"Could not check availability";n(e)}else n(g)})}})}},{key:"emailAvailability",value:function(t){var e=this;return console.log("emailAvailability()",t),new i.a(function(r,n){var i=e.endpoint()+"/email-availability/"+encodeURIComponent(t);f()({method:"get",url:i,headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(function(t){return"available"===t.data.status?void r(null):void r(t.data.error)}).catch(function(t){if(t.response){var e=t.response.data.Error?t.response.data.Error:"Could not check availability";n(e)}else n(g)})})}},{key:"setCookie",value:function(t,e,r){e?console.log("setting cookie ("+t+")"):console.log("clearing cookie ("+t+")");var n=new Date;n.setTime(n.getTime()+24*r*60*60*1e3);var i="expires="+n.toUTCString();document.cookie=t+"="+e+";"+i+";path=/"}},{key:"getCookie",value:function(t){for(var e=t+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){var i=r[n];while(" "===i.charAt(0))i=i.substring(1);if(0===i.indexOf(e))return i.substring(e.length,i.length)}return""}},{key:"removeCookie",value:function(t){this.setCookie(t,null,0)}},{key:"isEmailSupported",value:function(){return this.emailSupported}},{key:"isRegistrationSupported",value:function(){return this.registrationSupported}},{key:"isForgottenPasswordSupported",value:function(){return this.forgottenPasswordSupported}},{key:"URLOnThisWebsite",value:function(t){var e=window.location,r="".concat(e.protocol,"//").concat(e.hostname);if(e.port&&("http"===e.protocol&&80===e.port||"https"===e.protocol&&443===e.port||(r+=":".concat(e.port))),t.startsWith("http"))return t.startsWith(r)?t:(console.log("URL ".concat(t," is not on current website ").concat(r)),null);t.startsWith("/")||(baseUrl+="/");var n=r+t;return n}}]),e}();console.log("(LoginService.js) 3"),m.version="__VERSION__",console.log("(LoginService.js) 5"),e["a"]=m}).call(this,r("b639").Buffer)},bf90:function(t,e,r){var n=r("36c3"),i=r("bf0b").f;r("ce7e")("getOwnPropertyDescriptor",function(){return function(t,e){return i(n(t),e)}})},c207:function(t,e){},c345:function(t,e,r){"use strict";var n=r("c532"),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,r,o,s={};return t?(n.forEach(t.split("\n"),function(t){if(o=t.indexOf(":"),e=n.trim(t.substr(0,o)).toLowerCase(),r=n.trim(t.substr(o+1)),e){if(s[e]&&i.indexOf(e)>=0)return;s[e]="set-cookie"===e?(s[e]?s[e]:[]).concat([r]):s[e]?s[e]+", "+r:r}}),s):s}},c366:function(t,e,r){var n=r("6821"),i=r("9def"),o=r("77f1");t.exports=function(t){return function(e,r,s){var a,c=n(e),u=i(c.length),l=o(s,u);if(t&&r!=r){while(u>l)if(a=c[l++],a!=a)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===r)return t||l||0;return!t&&-1}}},c367:function(t,e,r){"use strict";var n=r("8436"),i=r("50ed"),o=r("481b"),s=r("36c3");t.exports=r("30f1")(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},c3a1:function(t,e,r){var n=r("e6f3"),i=r("1691");t.exports=Object.keys||function(t){return n(t,i)}},c401:function(t,e,r){"use strict";var n=r("c532");t.exports=function(t,e,r){return n.forEach(r,function(r){t=r(t,e)}),t}},c532:function(t,e,r){"use strict";var n=r("1d2b"),i=r("044b"),o=Object.prototype.toString;function s(t){return"[object Array]"===o.call(t)}function a(t){return"[object ArrayBuffer]"===o.call(t)}function c(t){return"undefined"!==typeof FormData&&t instanceof FormData}function u(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function l(t){return"string"===typeof t}function f(t){return"number"===typeof t}function h(t){return"undefined"===typeof t}function d(t){return null!==t&&"object"===typeof t}function p(t){return"[object Date]"===o.call(t)}function v(t){return"[object File]"===o.call(t)}function g(t){return"[object Blob]"===o.call(t)}function m(t){return"[object Function]"===o.call(t)}function b(t){return d(t)&&m(t.pipe)}function y(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function w(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function _(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function C(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),s(t))for(var r=0,n=t.length;r<n;r++)e.call(null,t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}function x(){var t={};function e(e,r){"object"===typeof t[r]&&"object"===typeof e?t[r]=x(t[r],e):t[r]=e}for(var r=0,n=arguments.length;r<n;r++)C(arguments[r],e);return t}function S(t,e,r){return C(e,function(e,i){t[i]=r&&"function"===typeof e?n(e,r):e}),t}t.exports={isArray:s,isArrayBuffer:a,isBuffer:i,isFormData:c,isArrayBufferView:u,isString:l,isNumber:f,isObject:d,isUndefined:h,isDate:p,isFile:v,isBlob:g,isFunction:m,isStream:b,isURLSearchParams:y,isStandardBrowserEnv:_,forEach:C,merge:x,extend:S,trim:w}},c5f6:function(t,e,r){"use strict";var n=r("7726"),i=r("69a8"),o=r("2d95"),s=r("5dbc"),a=r("6a99"),c=r("79e5"),u=r("9093").f,l=r("11e9").f,f=r("86cc").f,h=r("aa77").trim,d="Number",p=n[d],v=p,g=p.prototype,m=o(r("2aeb")(g))==d,b="trim"in String.prototype,y=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){e=b?e.trim():h(e,3);var r,n,i,o=e.charCodeAt(0);if(43===o||45===o){if(r=e.charCodeAt(2),88===r||120===r)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+e}for(var s,c=e.slice(2),u=0,l=c.length;u<l;u++)if(s=c.charCodeAt(u),s<48||s>i)return NaN;return parseInt(c,n)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof p&&(m?c(function(){g.valueOf.call(r)}):o(r)!=d)?s(new v(y(e)),r,p):y(e)};for(var w,_=r("9e1e")?u(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),C=0;_.length>C;C++)i(v,w=_[C])&&!i(p,w)&&f(p,w,l(v,w));p.prototype=g,g.constructor=p,r("2aba")(n,d,p)}},c69a:function(t,e,r){t.exports=!r("9e1e")&&!r("79e5")(function(){return 7!=Object.defineProperty(r("230e")("div"),"a",{get:function(){return 7}}).a})},c8af:function(t,e,r){"use strict";var n=r("c532");t.exports=function(t,e){n.forEach(t,function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])})}},c8ba:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}t.exports=r},c8bb:function(t,e,r){t.exports=r("54a1")},ca5a:function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},cadf:function(t,e,r){"use strict";var n=r("9c6c"),i=r("d53b"),o=r("84f2"),s=r("6821");t.exports=r("01f9")(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?r:"values"==e?t[r]:[r,t[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},cb7c:function(t,e,r){var n=r("d3f4");t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},cc28:function(t,e){t.exports=function(t,e,r,n){console.log("API ERROR"),console.log("---------v");var i="Error calling server";console.error("Error calling API server:"),console.log("".concat(e)),r&&console.log(r),n.response?(console.log("Status: ".concat(n.response.status," ").concat(n.response.statusText)),n.response.data&&(n.response.data.Error&&console.log("Error: ".concat(n.response.data.Error)),n.response.data.Code&&console.log("Code: ".concat(n.response.data.code)),n.response.data.Message&&(console.log("Message: ".concat(n.response.data.message)),i=n.response.data.message),console.log("response.data: ",n.response.data))):(console.error("Could not contact server."),console.log("Error:",n),i="Could not communicate with server"),t&&t.$toast?t.$toast.open({message:"".concat(i),type:"is-danger"}):alert(i)}},ccb9:function(t,e,r){e.f=r("5168")},cd78:function(t,e,r){var n=r("e4ae"),i=r("f772"),o=r("656e");t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t),s=r.resolve;return s(e),r.promise}},ce10:function(t,e,r){var n=r("69a8"),i=r("6821"),o=r("c366")(!1),s=r("613b")("IE_PROTO");t.exports=function(t,e){var r,a=i(t),c=0,u=[];for(r in a)r!=s&&n(a,r)&&u.push(r);while(e.length>c)n(a,r=e[c++])&&(~o(u,r)||u.push(r));return u}},ce7e:function(t,e,r){var n=r("63b6"),i=r("584a"),o=r("294c");t.exports=function(t,e){var r=(i.Object||{})[t]||Object[t],s={};s[t]=e(r),n(n.S+n.F*o(function(){r(1)}),"Object",s)}},cee4:function(t,e,r){"use strict";var n=r("c532"),i=r("1d2b"),o=r("0a06"),s=r("2444");function a(t){var e=new o(t),r=i(o.prototype.request,e);return n.extend(r,o.prototype,e),n.extend(r,e),r}var c=a(s);c.Axios=o,c.create=function(t){return a(n.merge(s,t))},c.Cancel=r("7a77"),c.CancelToken=r("8df4"),c.isCancel=r("2e67"),c.all=function(t){return Promise.all(t)},c.spread=r("0df6"),t.exports=c,t.exports.default=c},d225:function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}r.d(e,"a",function(){return n})},d2c8:function(t,e,r){var n=r("aae3"),i=r("be13");t.exports=function(t,e,r){if(n(e))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(t))}},d2d5:function(t,e,r){r("1654"),r("549b"),t.exports=r("584a").Array.from},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d864:function(t,e,r){var n=r("79aa");t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},d8d6:function(t,e,r){r("1654"),r("6c1c"),t.exports=r("ccb9").f("iterator")},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d925:function(t,e,r){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},d9ab:function(t,e,r){},d9f6:function(t,e,r){var n=r("e4ae"),i=r("794b"),o=r("1bc3"),s=Object.defineProperty;e.f=r("8e60")?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return s(t,e,r)}catch(a){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},dbdb:function(t,e,r){var n=r("584a"),i=r("e53d"),o="__core-js_shared__",s=i[o]||(i[o]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r("b8e3")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},dbf1:function(t,e,r){},df7c:function(t,e,r){(function(t){function r(t,e){for(var r=0,n=t.length-1;n>=0;n--){var i=t[n];"."===i?t.splice(n,1):".."===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}var n=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(t){return n.exec(t).slice(1)};function o(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n<t.length;n++)e(t[n],n,t)&&r.push(t[n]);return r}e.resolve=function(){for(var e="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var s=i>=0?arguments[i]:t.cwd();if("string"!==typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(e=s+"/"+e,n="/"===s.charAt(0))}return e=r(o(e.split("/"),function(t){return!!t}),!n).join("/"),(n?"/":"")+e||"."},e.normalize=function(t){var n=e.isAbsolute(t),i="/"===s(t,-1);return t=r(o(t.split("/"),function(t){return!!t}),!n).join("/"),t||n||(t="."),t&&i&&(t+="/"),(n?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(o(t,function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},e.relative=function(t,r){function n(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var r=t.length-1;r>=0;r--)if(""!==t[r])break;return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var i=n(t.split("/")),o=n(r.split("/")),s=Math.min(i.length,o.length),a=s,c=0;c<s;c++)if(i[c]!==o[c]){a=c;break}var u=[];for(c=a;c<i.length;c++)u.push("..");return u=u.concat(o.slice(a)),u.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){var e=i(t),r=e[0],n=e[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},e.basename=function(t,e){var r=i(t)[2];return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},e.extname=function(t){return i(t)[3]};var s="b"==="ab".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}}).call(this,r("4362"))},df9a:function(t,e,r){"use strict";var n=r("dbf1"),i=r.n(n);i.a},e099:function(t,e,r){"use strict";var n=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,r,a){return e=e||"&",r=r||"=",null===t&&(t=void 0),"object"===typeof t?o(s(t),function(s){var a=encodeURIComponent(n(s))+r;return i(t[s])?o(t[s],function(t){return a+encodeURIComponent(n(t))}).join(e):a+encodeURIComponent(n(t[s]))}).join(e):a?encodeURIComponent(n(a))+r+encodeURIComponent(n(t)):""};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function o(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n<t.length;n++)r.push(e(t[n],n));return r}var s=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e265:function(t,e,r){t.exports=r("ed33")},e3db:function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},e4ae:function(t,e,r){var n=r("f772");t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},e53d:function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},e683:function(t,e,r){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},e692:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},e6f3:function(t,e,r){var n=r("07e3"),i=r("36c3"),o=r("5b4e")(!1),s=r("5559")("IE_PROTO");t.exports=function(t,e){var r,a=i(t),c=0,u=[];for(r in a)r!=s&&n(a,r)&&u.push(r);while(e.length>c)n(a,r=e[c++])&&(~o(u,r)||u.push(r));return u}},e814:function(t,e,r){t.exports=r("b9e9")},ebd6:function(t,e,r){var n=r("cb7c"),i=r("d8e8"),o=r("2b4c")("species");t.exports=function(t,e){var r,s=n(t).constructor;return void 0===s||void 0==(r=n(s)[o])?e:i(r)}},ebfd:function(t,e,r){var n=r("62a0")("meta"),i=r("f772"),o=r("07e3"),s=r("d9f6").f,a=0,c=Object.isExtensible||function(){return!0},u=!r("294c")(function(){return c(Object.preventExtensions({}))}),l=function(t){s(t,n,{value:{i:"O"+ ++a,w:{}}})},f=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!c(t))return"F";if(!e)return"E";l(t)}return t[n].i},h=function(t,e){if(!o(t,n)){if(!c(t))return!0;if(!e)return!1;l(t)}return t[n].w},d=function(t){return u&&p.NEED&&c(t)&&!o(t,n)&&l(t),t},p=t.exports={KEY:n,NEED:!1,fastKey:f,getWeak:h,onFreeze:d}},ed33:function(t,e,r){r("014b"),t.exports=r("584a").Object.getOwnPropertySymbols},f201:function(t,e,r){var n=r("e4ae"),i=r("79aa"),o=r("5168")("species");t.exports=function(t,e){var r,s=n(t).constructor;return void 0===s||void 0==(r=n(s)[o])?e:i(r)}},f234:function(t,e,r){"use strict";var n="%[a-f0-9]{2}",i=new RegExp(n,"gi"),o=new RegExp("("+n+")+","gi");function s(t,e){try{return decodeURIComponent(t.join(""))}catch(i){}if(1===t.length)return t;e=e||1;var r=t.slice(0,e),n=t.slice(e);return Array.prototype.concat.call([],s(r),s(n))}function a(t){try{return decodeURIComponent(t)}catch(n){for(var e=t.match(i),r=1;r<e.length;r++)t=s(e,r).join(""),e=t.match(i);return t}}function c(t){var e={"%FE%FF":"��","%FF%FE":"��"},r=o.exec(t);while(r){try{e[r[0]]=decodeURIComponent(r[0])}catch(u){var n=a(r[0]);n!==r[0]&&(e[r[0]]=n)}r=o.exec(t)}e["%C2"]="�";for(var i=Object.keys(e),s=0;s<i.length;s++){var c=i[s];t=t.replace(new RegExp(c,"g"),e[c])}return t}t.exports=function(t){if("string"!==typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return c(t)}}},f410:function(t,e,r){r("1af6"),t.exports=r("584a").Array.isArray},f559:function(t,e,r){"use strict";var n=r("5ca1"),i=r("9def"),o=r("d2c8"),s="startsWith",a=""[s];n(n.P+n.F*r("5147")(s),"String",{startsWith:function(t){var e=o(this,t,s),r=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return a?a.call(e,n,r):e.slice(r,r+n.length)===n}})},f6b4:function(t,e,r){"use strict";var n=r("c532");function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){n.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=i},f772:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},f921:function(t,e,r){r("014b"),r("c207"),r("69d3"),r("765d"),t.exports=r("584a").Symbol},fa5b:function(t,e,r){t.exports=r("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,r){var n=r("7726").document;t.exports=n&&n.documentElement},fb15:function(t,e,r){"use strict";var n;(r.r(e),"undefined"!==typeof window)&&((n=window.document.currentScript)&&(n=n.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(r.p=n[1]));var i=r("bf11"),o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"authservice-login"},["login"===t.mode?r("div",{staticClass:"card",attrs:{href:""}},[t._m(0),r("div",{staticClass:"card-content"},[r("div",{staticClass:"content"},[r("div",{staticClass:"has-text-centered"},[t.allowFacebookLogin?r("div",[r("a",{staticClass:"button social-button is-primary",on:{click:function(e){return t.facebookLogin()}}},[r("div",{staticClass:"social-button-icon"},[t.$authservice.icons("fas")?r("i",{staticClass:"fab fa-facebook-f has-text-white"}):r("i",{staticClass:"fa fa-facebook-f has-text-white"})]),r("div",{staticClass:"social-button-text"},[t._v("  Login with Facebook")])]),r("br")]):t._e(),t.allowGoogleLogin?r("div",[r("a",{staticClass:"button social-button is-primary",on:{click:function(e){return t.googleLogin()}}},[r("div",{staticClass:"social-button-icon"},[t.$authservice.icons("fas")?r("i",{staticClass:"fab fa-google has-text-white"}):r("i",{staticClass:"fa fa-google has-text-white"})]),r("div",{staticClass:"social-button-text"},[t._v("  Login with Google")])]),r("br")]):t._e(),t.allowGithubLogin?r("div",[r("a",{staticClass:"button social-button is-primary",attrs:{variant:"secondary",tabindex:"38"},on:{click:function(e){return t.githubLogin()}}},[r("div",{staticClass:"social-button-icon"},[t.$authservice.icons("fas")?r("i",{staticClass:"fab fa-github has-text-white"}):r("i",{staticClass:"fa fa-github has-text-white"})]),r("div",{staticClass:"social-button-text"},[t._v("  Login with Github")])]),r("br")]):t._e(),t.allowLinkedinLogin?r("div",[r("a",{staticClass:"button social-button is-primary",attrs:{variant:"secondary",tabindex:"38"},on:{click:function(e){return t.linkedinLogin()}}},[r("div",{staticClass:"social-button-icon"},[t.$authservice.icons("fas")?r("i",{staticClass:"fab fa-linkedin has-text-white"}):r("i",{staticClass:"fa fa-linkedin has-text-white"})]),r("div",{staticClass:"social-button-text"},[t._v("  Login with LinkedIn")])]),r("br")]):t._e(),t.allowTwitterLogin?r("div",[r("a",{staticClass:"button social-button is-primary",attrs:{variant:"secondary",tabindex:"38"},on:{click:function(e){return t.twitterLogin()}}},[r("div",{staticClass:"social-button-icon"},[t.$authservice.icons("fas")?r("i",{staticClass:"fab fa-twitter has-text-white"}):r("i",{staticClass:"fa fa-twitter has-text-white"})]),r("div",{staticClass:"social-button-text"},[t._v("  Login with Twitter")])]),r("br")]):t._e()]),t.allowSocialLogin&&t.loginWithEmail?r("div",{staticClass:"has-text-centered"},[r("br"),r("b",[t._v("- or -   ")]),r("br"),r("br")]):t._e(),t.loginWithEmail?r("div",[t.loginWithUsername?r("div",{staticClass:"field"},[r("label",{staticClass:"label"},[t._v("User Name")]),r("div",{staticClass:"control has-icons-left"},[r("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.email,expression:"email",modifiers:{trim:!0}}],staticClass:"input",attrs:{type:"text",placeholder:"Enter your User Name"},domProps:{value:t.email},on:{input:function(e){e.target.composing||(t.email=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}},nativeOn:{keydown:function(e){return t.keyhandler(e)}}}),r("span",{staticClass:"icon is-small is-left"},[t.$authservice.icons("fas")?r("i",{staticClass:"fas fa-user"}):r("i",{staticClass:"fa fa-user"})])])]):r("div",{staticClass:"field"},[r("label",{staticClass:"label"},[t._v("Email")]),r("div",{staticClass:"control has-icons-left"},[r("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.email,expression:"email",modifiers:{trim:!0}}],staticClass:"input",attrs:{type:"text",placeholder:"Enter an Account Email"},domProps:{value:t.email},on:{input:function(e){e.target.composing||(t.email=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}},nativeOn:{keydown:function(e){return t.keyhandler(e)}}}),r("span",{staticClass:"icon is-small is-left"},[t.$authservice.icons("fas")?r("i",{staticClass:"far fa-envelope-open"}):r("i",{staticClass:"fa fa-envelope-o"})])])]),r("div",{staticClass:"field"},[r("label",{staticClass:"label"},[t._v("Password")]),r("div",{staticClass:"control has-icons-left"},[r("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.password,expression:"password",modifiers:{trim:!0}}],staticClass:"input",attrs:{type:"password",autocomplete:"current-password",placeholder:"Enter your Password"},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}},nativeOn:{keydown:function(e){return t.keyhandler(e)}}}),r("span",{staticClass:"icon is-small is-left"},[t.$authservice.icons("fas")?r("i",{staticClass:"fas fa-lock"}):r("i",{staticClass:"fa fa-lock"})])])]),r("br"),t.loginError?r("div",{staticClass:"notification is-danger"},[t._v(t._s(t.loginError)),r("br")]):t._e(),r("a",{staticClass:"button is-primary is-pulled-right",class:{"is-loading":t.loginInProgress},attrs:{tabindex:"33"},on:{click:t.doLogin}},[t._v("Login")]),t.provideForgottenPassword?r("a",{attrs:{href:"#"},on:{click:function(e){return t.setMode("forgot")}}},[t._v("Forgot Login Info?")]):t._e()]):t._e(),r("br")])]),t.loginWithEmail&&t.provideRegistration?r("div",{staticClass:"card-footer"},[r("div",{staticClass:"card-footer-item"},[t._v(t._s(t.loginSignupMessage)+"   "),r("a",{attrs:{href:"#"},on:{click:function(e){return t.setMode("register")}}},[t._v("Sign up")])])]):t._e()]):t._e(),"loggedIn"===t.mode?r("div",{staticClass:"card"},[r("div",{staticClass:"card-content"},[t._v("You are logged in as "),r("strong",[t._v(t._s(t.$authservice.user.fullname))]),t._v(" ("+t._s(t.$authservice.user.authority)+")"),r("br"),t.$authservice.user.avatar?r("img",{attrs:{src:t.$authservice.user.avatar,alt:""}}):t._e(),r("br"),t._v("$loginservice.user:"),r("br"),r("div",{staticClass:"box is-size-7"},[t._v(t._s(t.$authservice.user))]),r("br"),r("a",{on:{click:function(e){return t.doSignout()}}},[t._v(t._s(t.signin?"Sign out":"Logout"))])])]):t._e(),"register"===t.mode?r("div",{staticClass:"card"},[t._m(1),r("div",{staticClass:"card-content"},[t.registerRequiresUsername?r("div",{staticClass:"field"},[r("label",{staticClass:"label"},[t._v("User Name")]),r("div",{staticClass:"control has-icons-left"},[r("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.registerUsername,expression:"registerUsername",modifiers:{trim:!0}}],staticClass:"input",attrs:{type:"text",state:t.registerUsernameState,autocomplete:"off",placeholder:"Choose a user name"},domProps:{value:t.registerUsername},on:{input:[function(e){e.target.composing||(t.registerUsername=e.target.value.trim())},t.validateUsername],blur:function(e){return t.$forceUpdate()}},nativeOn:{keydown:function(e){return t.keyhandler(e)}}}),r("span",{staticClass:"icon is-small is-left"},[t.$authservice.icons("fas")?r("i",{staticClass:"fas fa-user"}):r("i",{staticClass:"fa fa-user"})])]),t.registerUsernameError?r("div",{staticClass:"notification is-danger"},[t._v(t._s(t.registerUsernameError)),r("br")]):t._e()]):t._e(),r("div",{staticClass:"field"},[r("label",{staticClass:"label"},[t._v("Email")]),r("div",{staticClass:"control has-icons-left"},[r("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.registerEmail,expression:"registerEmail",modifiers:{trim:!0}}],staticClass:"input",attrs:{type:"text",placeholder:"Enter your email address"},domProps:{value:t.registerEmail},on:{input:function(e){e.target.composing||(t.registerEmail=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}},nativeOn:{keydown:function(e){return t.keyhandler(e)}}}),r("span",{staticClass:"icon is-small is-left"},[t.$authservice.icons("fas")?r("i",{staticClass:"far fa-envelope-open"}):r("i",{staticClass:"fa fa-envelope-o"})])])]),t.registerRequiresPassword?r("div",{staticClass:"field"},[r("label",{staticClass:"label"},[t._v("Password")]),r("div",{staticClass:"control has-icons-left"},[r("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.registerPassword,expression:"registerPassword",modifiers:{trim:!0}}],staticClass:"input",attrs:{type:"password",autocomplete:"off",placeholder:"Choose a password"},domProps:{value:t.registerPassword},on:{input:function(e){e.target.composing||(t.registerPassword=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}},nativeOn:{keydown:function(e){return t.keyhandler(e)}}}),r("span",{staticClass:"icon is-small is-left"},[t.$authservice.icons("fas")?r("i",{staticClass:"fas fa-lock"}):r("i",{staticClass:"fa fa-lock"})])])]):t._e(),t.registerRequiresFirstName?r("div",{staticClass:"field"},[r("label",{staticClass:"label"},[t._v("First name")]),r("div",{staticClass:"control"},[r("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.registerFirstName,expression:"registerFirstName",modifiers:{trim:!0}}],staticClass:"input",domProps:{value:t.registerFirstName},on:{input:function(e){e.target.composing||(t.registerFirstName=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}},nativeOn:{keydown:function(e){return t.keyhandler(e)}}})])]):t._e(),t.registerRequiresMiddleName?r("div",{staticClass:"field"},[r("label",{staticClass:"label"},[t._v("Middle name")]),r("div",{staticClass:"control"},[r("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.registerMiddleName,expression:"registerMiddleName",modifiers:{trim:!0}}],staticClass:"input",domProps:{value:t.registerMiddleName},on:{input:function(e){e.target.composing||(t.registerMiddleName=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}},nativeOn:{keydown:function(e){return t.keyhandler(e)}}})])]):t._e(),t.registerRequiresLastName?r("div",{staticClass:"field"},[r("label",{staticClass:"label"},[t._v("Last name")]),r("div",{staticClass:"control"},[r("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.registerLastName,expression:"registerLastName",modifiers:{trim:!0}}],staticClass:"input",domProps:{value:t.registerLastName},on:{input:function(e){e.target.composing||(t.registerLastName=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}},nativeOn:{keydown:function(e){return t.keyhandler(e)}}})])]):t._e(),r("br"),t.registerError?r("div",{staticClass:"notification is-danger"},[t._v(t._s(t.registerError)),r("br")]):t._e(),r("a",{staticClass:"button is-primary is-pulled-right",class:{"is-loading":t.registerInProgress},on:{click:t.register}},[t._v("SIGN UP")]),r("span",{staticClass:"is-pulled-left"},[t._v("Already have an account?  "),r("a",{attrs:{href:"#"},on:{click:function(e){return t.setMode("login")}}},[t._v("Log in")])]),r("br")]),t.termsMessage?r("div",{staticClass:"card-footer"},[r("div",{staticClass:"card-footer-item has-text-centered"},[t._v(t._s(t.termsMessage)),t.termsRoute?r("div",{staticClass:"is-small"},[t._v("  ("),r("a",{staticClass:"is-small",attrs:{href:t.termsRoute}},[t._v("link")]),t._v(")")]):t._e()])]):t._e()]):t._e(),"registerAfter"===t.mode?r("div",{staticClass:"card"},[t._m(2),r("div",{staticClass:"card-content"},[r("p",[t._v("Congratulations, you now have a user account.\nWe have sent you an email to verify your email address.")]),r("p",[t._v("Please take a moment to check your email and complete\nthe registration process.")]),r("br"),r("button",{staticClass:"button is-pulled-right is-primary",attrs:{type:"submit"},on:{click:function(e){return t.setMode("login")}}},[t._v("OK")]),r("br"),r("br")])]):t._e(),"forgot"===t.mode?r("div",[r("br"),r("br"),r("div",{staticClass:"card"},[t._m(3),r("div",{staticClass:"card-content"},[t._v("Enter your email address and we'll send you an email with recovery instructions."),r("br"),r("br"),r("div",{staticClass:"field"},[r("label",{staticClass:"label"},[t._v("Email")]),r("div",{staticClass:"control has-icons-left"},[r("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.forgotEmail,expression:"forgotEmail",modifiers:{trim:!0}}],staticClass:"input",attrs:{type:"text",placeholder:"Enter your Email Address"},domProps:{value:t.forgotEmail},on:{input:function(e){e.target.composing||(t.forgotEmail=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}},nativeOn:{keydown:function(e){return t.keyhandler(e)}}}),r("span",{staticClass:"icon is-small is-left"},[t.$authservice.icons("fas")?r("i",{staticClass:"far fa-envelope-open"}):r("i",{staticClass:"fa fa-envelope-o"})])])]),t.forgotError?r("div",{staticClass:"notification is-danger",attrs:{show:""}},[t._v(t._s(t.forgotError))]):t._e(),r("br"),r("a",{staticClass:"button is-primary is-pulled-right",class:{"is-loading":t.forgotInProgress},on:{click:t.forgot}},[t._v("Send the Email")]),r("div",{staticClass:"is-pulled-right"},[t._v("  ")]),r("a",{staticClass:"button is-pulled-right",on:{click:function(e){return t.setMode("login")}}},[t._v("Cancel")]),r("br")])]),r("br"),r("br")]):t._e(),"forgotAfter"===t.mode?r("div",{staticClass:"card"},[t._m(4),r("div",{staticClass:"card-content"},[t._v("We have sent an email to "+t._s(t.forgotEmail)+" with\ninstructions to reset your password."),r("br"),r("br"),r("a",{staticClass:"button is-primary is-pulled-right",on:{click:function(e){return t.setMode("login")}}},[t._v("Ok")]),r("br")])]):t._e()])},s=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("header",{staticClass:"card-header"},[r("p",{staticClass:"card-header-title"},[t._v("Login / Sign In")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("header",{staticClass:"card-header"},[r("p",{staticClass:"card-header-title"},[t._v("SIGN UP")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("header",{staticClass:"card-header"},[r("p",{staticClass:"card-header-title"},[t._v("Congratulations")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("header",{staticClass:"card-header"},[r("p",{staticClass:"card-header-title"},[t._v("Forgot your Login Information?")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("header",{staticClass:"card-header"},[r("p",{staticClass:"card-header-title"},[t._v("Forgotten Password")])])}],a=(r("28a5"),r("b012")),c=r.n(a),u=(r("6b54"),r("e814")),l=r.n(u),f=(r("a481"),r("85f2")),h=r.n(f);function d(t,e,r){return e in t?h()(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}r("c5f6");var p=r("a745"),v=r.n(p);function g(t){if(v()(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}var m=r("774e"),b=r.n(m),y=r("c8bb"),w=r.n(y);function _(t){if(w()(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return b()(t)}function C(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function x(t){return g(t)||_(t)||C()}r("7f7f"),r("ac6a");function S(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return r.forEach(function(e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var E={},P={name:"fa-icon",render:function(t){if(null===this.name)return t();var e={class:this.klass,style:this.style,attrs:{role:this.label?"img":"presentation","aria-label":this.label||null,tabindex:this.tabindex,x:this.x,y:this.y,width:this.width,height:this.height,viewBox:this.box,focusable:this.focusable}};return this.raw&&(e.domProps={innerHTML:this.raw}),t("svg",e,this.raw&&this.icon?null:this.$slots.default||[].concat(x(this.icon.paths.map(function(e,r){return t("path",{attrs:e,key:"path-".concat(r)})})),x(this.icon.polygons.map(function(e,r){return t("polygon",{attrs:e,key:"polygon-".concat(r)})}))))},props:{name:{type:String,validator:function(t){return!t||t in E||(console.warn('Invalid prop: prop "name" is referring to an unregistered icon "'.concat(t,'".')+"\nPlease make sure you have imported this icon before using it."),!1)}},scale:[Number,String],spin:Boolean,inverse:Boolean,pulse:Boolean,flip:{validator:function(t){return"horizontal"===t||"vertical"===t}},label:String,tabindex:[Number,String]},data:function(){return{x:!1,y:!1,childrenWidth:0,childrenHeight:0,outerScale:1}},computed:{normalizedScale:function(){var t=this.scale;return t="undefined"===typeof t?1:Number(t),isNaN(t)||t<=0?(console.warn('Invalid prop: prop "scale" should be a number over 0.',this),this.outerScale):t*this.outerScale},klass:function(){return d({"fa-icon":!0,"fa-spin":this.spin,"fa-flip-horizontal":"horizontal"===this.flip,"fa-flip-vertical":"vertical"===this.flip,"fa-inverse":this.inverse,"fa-pulse":this.pulse},this.$options.name,!0)},icon:function(){return this.name?E[this.name]:null},box:function(){return this.icon?"0 0 ".concat(this.icon.width," ").concat(this.icon.height):"0 0 ".concat(this.width," ").concat(this.height)},ratio:function(){if(!this.icon)return 1;var t=this.icon,e=t.width,r=t.height;return Math.max(e,r)/16},width:function(){return this.childrenWidth||this.icon&&this.icon.width/this.ratio*this.normalizedScale||0},height:function(){return this.childrenHeight||this.icon&&this.icon.height/this.ratio*this.normalizedScale||0},style:function(){return 1!==this.normalizedScale&&{fontSize:this.normalizedScale+"em"}},raw:function(){if(!this.icon||!this.icon.raw)return null;var t=this.icon.raw,e={};return t=t.replace(/\s(?:xml:)?id=(["']?)([^"')\s]+)\1/g,function(t,r,n){var i=R();return e[n]=i,' id="'.concat(i,'"')}),t=t.replace(/#(?:([^'")\s]+)|xpointer\(id\((['"]?)([^')]+)\2\)\))/g,function(t,r,n,i){var o=r||i;return o&&e[o]?"#".concat(e[o]):t}),t},focusable:function(){var t=this.tabindex;if(null==t)return"false";var e="string"===typeof t?l()(t,10):t;return e>=0?null:"false"}},mounted:function(){var t=this;if(this.name||null===this.name||0!==this.$children.length){if(!this.icon){var e=0,r=0;this.$children.forEach(function(n){n.outerScale=t.normalizedScale,e=Math.max(e,n.width),r=Math.max(r,n.height)}),this.childrenWidth=e,this.childrenHeight=r,this.$children.forEach(function(t){t.x=(e-t.width)/2,t.y=(r-t.height)/2})}}else console.warn('Invalid prop: prop "name" is required.')},register:function(t){for(var e in t){var r=t[e],n=r.paths,i=void 0===n?[]:n,o=r.d,s=r.polygons,a=void 0===s?[]:s,c=r.points;o&&i.push({d:o}),c&&a.push({points:c}),E[e]=S({},r,{paths:i,polygons:a})}},icons:E},O=870711;function R(){return"fa-".concat((O++).toString(16))}var A,k,U=P;r("df9a");function T(t,e,r,n,i,o,s,a){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),s?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=c):i&&(c=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:t,options:u}}var L=T(U,A,k,!1,null,null,null),j=L.exports,I={name:"authservice-login",components:{Icon:j},props:{signin:{type:Boolean,default:!1},hideRegister:{type:Boolean,default:!1},hideForgot:{type:Boolean,default:!1},hideAvatar:{type:Boolean,default:!1},hideLogout:{type:Boolean,default:!1},registerFields:String,registerResume:String,forgotResume:String,initialMode:String,nocomma:String},data:function(){return{username:"",email:"",password:"",loggedIn:!1,mode:this.$authservice&&this.$authservice.user?"loggedIn":"login",loginError:"",loginInProgress:"",forgotEmail:"",forgotError:"",forgotInProgress:!1,registerEmail:"",registerUsername:"",registerFirstName:"",registerMiddleName:"",registerLastName:"",registerPassword:"",registerError:"",registerInProgress:!1,user:null,jwt:null,fromCache:!1,registerUsernameState:!1,registerUsernameError:""}},computed:{headerName:function(){return this.$authservice.user?this.$authservice.user.username?this.$authservice.user.username:this.$authservice.user.firstname?this.$authservice.user.firstname:this.$authservice.user.email:"-"},loginWithEmail:function(){return!!this.optionValue("hints.login.email",!0)},loginWithUsername:function(){var t=this.optionValue("hints.usernames",!1);return console.log("loginWithUsername: ".concat(t)),!!this.optionValue("hints.usernames",!1)},allowFacebookLogin:function(){return!!this.optionValue("hints.login.facebook",!1)},allowGithubLogin:function(){return!!this.optionValue("hints.login.github",!1)},allowGoogleLogin:function(){return!!this.optionValue("hints.login.google",!1)},allowLinkedinLogin:function(){return!!this.optionValue("hints.login.linkedin",!1)},allowTwitterLogin:function(){return!!this.optionValue("hints.login.twitter",!1)},allowSocialLogin:function(){return this.allowFacebookLogin||this.allowGithubLogin||this.allowGoogleLogin||this.allowLinkedinLogin||this.allowTwitterLogin},loginSignupMessage:function(){var t=this.optionValue("hints.sitename","this site"),e="New to ".concat(t,"?");return this.optionValue("hints.login.registerMessage",e)},termsMessage:function(){var t=this.optionValue("hints.sitename","this site"),e="By signing up to ".concat(t," you agree to our EULA.");return this.optionValue("hints.register.termsMessage",e)},termsRoute:function(){return this.optionValue("hints.register.termsRoute",null)},registerRequiresUsername:function(){return!!this.optionValue("hints.usernames",!1)},registerRequiresPassword:function(){return!!this.optionValue("hints.register.password",!0)},registerRequiresFirstName:function(){return!!this.optionValue("hints.register.firstname",!1)},registerRequiresMiddleName:function(){return!!this.optionValue("hints.register.middlename",!1)},registerRequiresLastName:function(){return!!this.optionValue("hints.register.lastname",!1)},provideEmailLogin:function(){return this.$authservice&&this.$authservice.isEmailSupported()},provideRegistration:function(){return this.$authservice&&this.$authservice.isRegistrationSupported()},provideForgottenPassword:function(){return this.$authservice&&this.$authservice.isForgottenPasswordSupported()}},created:function(){this.$authservice&&this.$authservice.user?this.mode="loggedIn":"login"!==this.initialMode&&"forgot"!==this.initialMode&&"register"!==this.initialMode||(this.mode=this.initialMode)},methods:{keyhandler:function(t){t.stopPropagation()},optionValue:function(t,e){if(!this.$authservice)return console.log("this.$authservice not found"),e;if(!this.$authservice.options)return console.log("this.$authservice.options not found"),e;for(var r=t.split("."),n=this.$authservice.options,i=0;i<r.length;i++){var o=r[i];if("undefined"===typeof n[o])return e;n=n[o]}return n},doLogin:function(t){var e=this;console.log("doLogin("+this.email+", "+this.password+")");var r=this.password;return this.password="",this.loginError="",this.loginInProgress=!0,this.$authservice.login(this.email,r).then(function(t){e.loginError="",e.loginInProgress=!1,e.mode="loggedIn",e.$emit("userchange",e.$authservice.user.id)}).catch(function(t){e.loginError=t,e.loginInProgress=!1,e.mode="login",e.$emit("userchange",0)}),!1},doSignout:function(){this.mode="login",this.email="",this.password="",this.$authservice.logout()},facebookLogin:function(){this.$authservice.initiateOAuth(this,"facebook")},githubLogin:function(){this.$authservice.initiateOAuth(this,"github")},googleLogin:function(){this.$authservice.initiateOAuth(this,"google")},linkedinLogin:function(){this.$authservice.initiateOAuth(this,"linkedin")},twitterLogin:function(){this.$authservice.initiateOAuth(this,"twitter")},validateUsername:function(){if(""!==this.registerUsername)return this.registerUsername.length<3?(this.registerUsernameState=!1,void(this.registerUsernameError="Username must be 3 or more characters")):this.validateUsernameRemoteBit();this.registerUsernameError=""},validateUsernameRemoteBit:c()(function(){var t=this;this.validatingUsername=!0,this.registerUsernameError="",this.$authservice.usernameAvailability(this.registerUsername).then(function(e){t.registerUsernameError=e,t.validatingUsername=!1,t.registerUsernameState=null===e}).catch(function(e){t.registerUsernameError=e,t.validatingUsername=!1,t.registerUsernameState=!1})},500),register:function(){var t=this,e={email:this.registerEmail};return this.registerRequiresUsername&&(e.username=this.registerUsername),this.registerRequiresPassword&&(e.password=this.registerPassword),this.registerRequiresFirstName&&(e.firstName=this.registerFirstName),this.registerRequiresMiddleName&&(e.middleName=this.registerMiddleName),this.registerRequiresLastName&&(e.lastName=this.registerLastName),this.registerError="",this.registerInProgress=!0,this.$authservice.register(e).then(function(e){console.log("all is okay",e),t.registerError="",t.registerInProgress=!1,t.mode="registerAfter"}).catch(function(e){console.log("have error",e),t.registerError=e,t.registerInProgress=!1}),!1},forgot:function(){var t=this;return this.forgotInProgress=!0,this.$authservice.forgot(this.forgotEmail,{forgotResume:this.forgotResume}).then(function(e){t.forgotError="",t.forgotInProgress=!1,t.mode="forgotAfter"}).catch(function(e){t.forgotError=e,t.forgotInProgress=!1}),!0},setMode:function(t){return this.mode=t,!1}}};var N=I,$=(r("63e6"),T(N,o,s,!1,null,"b84d2108",null)),M=$.exports,F=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("p",[r("br"),t._v("      "),r("a",{attrs:{href:t.url}},[t._v(t._s(t.url))])])},B=[],D=r("534d"),q=D["a"],W=T(q,F,B,!1,null,null,null),V=W.exports,Y=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{directives:[{name:"show",rawName:"v-show",value:"loaded"==t.selectStatus,expression:"selectStatus == 'loaded'"}],staticClass:"list"},[r("div",{staticClass:"columns"},[r("div",{staticClass:"column is-2 is-offset-10"},[r("div",{staticClass:"field"},[r("div",{staticClass:"control has-icons-right"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.filterKey,expression:"filterKey"}],staticClass:"input is-small is-rounded",attrs:{type:"text",placeholder:"filter users",autocomplete:"off"},domProps:{value:t.filterKey},on:{input:function(e){e.target.composing||(t.filterKey=e.target.value)}}}),t._m(0)])])])]),r("table",{staticClass:"table is-fullwidth is-bordered is-narrow",class:{"is-hoverable":"string"===typeof t.pathForDetails}},[r("thead",[r("tr",t._l(t.ourColumns,function(e){return r("th",{class:{active:t.sortKey==e},on:{click:function(r){return t.sortBy(e)}}},[t._v(t._s(t._f("capitalize")(e))),r("span",{staticClass:"arrow",class:t.sortOrders[e]>0?"asc":"dsc"})])}),0)]),r("tbody",t._l(t.filteredData,function(e){return r("tr",{on:{click:function(r){return t.selectUser(e)}}},t._l(t.ourColumns,function(n){return r("td",{class:t.classForStatus(e,n)},["icon"===n?r("div",{staticClass:"has-text-centered"},[r("i",{staticClass:"fa type-icon",class:t.iconClass(e)})]):r("span",[t._v(t._s(e[n]))])])}),0)}),0)])])},z=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"icon is-small is-right"},[r("i",{staticClass:"fa fa-search"})])}],G=(r("6762"),r("2fdb"),r("7618")),H=(r("55dd"),r("a4bb")),J=r.n(H),K=r("bc3a"),X=r.n(K),Z=r("cc28"),Q=r.n(Z),tt={name:"userList",props:{pathForDetails:String,data:Array,columns:Array,tenant:String},data:function(){var t=this.columns;"undefined"===typeof this.columns&&(t=["icon","authority","first_name","last_name","username","email","id","status"]);var e={};return t.forEach(function(t){e[t]=1}),{sortKey:"",sortOrders:e,filterKey:"",ourColumns:t,locallySelectedUsers:[],selectStatus:"init"}},computed:{filteredData:function(){var t=this.sortKey,e=this.filterKey&&this.filterKey.toLowerCase(),r=this.sortOrders[t]||1,n=this.data?this.data:this.locallySelectedUsers;return e&&(n=n.filter(function(t){return J()(t).some(function(r){return String(t[r]).toLowerCase().indexOf(e)>-1})})),t&&(n=n.slice().sort(function(e,n){return e=e[t],n=n[t],(e===n?0:e>n?1:-1)*r})),n}},filters:{capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}},methods:{sortBy:function(t){this.sortKey=t,this.sortOrders[t]=-1*this.sortOrders[t]},selectUser:function(t){if(console.log("Selected user:",t),console.log("pathForDetails:",Object(G["a"])(this.pathForDetails)),this.pathForDetails){var e="{TENANT}",r="{USERID}",n=(this.pathForDetails.includes(e),this.pathForDetails.includes(r));if(n){var i=this.pathForDetails;i=i.replace(e,t.tenant),i=i.replace(r,t.id),this.$router.push({path:i})}else console.error("path-for-details must include ".concat(r,". e.g. /user-details/").concat(e,"/").concat(r))}},classForStatus:function(t,e){return"status"===e?"status-".concat(t.status," status-field"):"status-".concat(t.status)},iconClass:function(t,e){var r;if(t.is_admin)r="fa-bolt";else switch(t.entity_type){case"user":r="fa-user";break;case"organisation":r="fa-users";break;default:r="fa-question"}return r}},created:function(){var t=this;if(this.data)console.log("authservice-user-list has data:",this.data.length);else if(this.tenant){console.log("authservice-user-list is selecting users");var e="".concat(this.$authservice.endpoint(),"/").concat(this.tenant,"/users");e+="?relationship=trainer_student&relationship_entity_1=me";var r={method:"get",url:e,headers:{Authorization:"Bearer "+this.$authservice.jwt,"Content-Type":"application/json",Accept:"application/json"}};console.log("params:",r),X()(r).then(function(e){console.log("RESPONSE IS",e.data),t.locallySelectedUsers=e.data,t.selectStatus="loaded"}).catch(function(n){console.log("Error selecting users:",n),Q()(t,e,r,n),t.selectStatus="error"})}else console.error("authservice-user-list requires either data or tenant prop")}},et=tt,rt=(r("8578"),T(et,Y,z,!1,null,"234a5e6c",null)),nt=rt.exports,it=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"authservice-profile"},[t.selectError?r("div",[t._m(0)]):r("div",[r("div",{staticClass:"columns"},[r("div",{staticClass:"column is-3 has-text-centered"},[t.$authservice.icons("fas")?r("div",{staticClass:"authservice-logo"},["email"===t.user.authority?r("i",{staticClass:"far fa-envelope-open"}):"facebook"===t.user.authority?r("i",{staticClass:"fab fa-facebook-square"}):"github"===t.user.authority?r("i",{staticClass:"fab fa-github"}):"google"===t.user.authority?r("i",{staticClass:"fab fa-google"}):"linkedin"===t.user.authority?r("i",{staticClass:"fab fa-linkedin"}):"twitter"===t.user.authority?r("i",{staticClass:"fab fa-twitter"}):t._e()]):r("div",{staticClass:"authservice-logo"},["email"===t.user.authority?r("i",{staticClass:"fa fa-envelope-o"}):"facebook"===t.user.authority?r("i",{staticClass:"fa fa-facebook-official"}):"github"===t.user.authority?r("i",{staticClass:"fa fa-github"}):"google"===t.user.authority?r("i",{staticClass:"fa fa-google"}):"linkedin"===t.user.authority?r("i",{staticClass:"fa fa-linkedin-square"}):"twitter"===t.user.authority?r("i",{staticClass:"fa fa-twitter"}):t._e()]),r("h3",{staticClass:"is-5"},[t._v(t._s(t.loginDescription))]),r("span",{directives:[{name:"show",rawName:"v-show",value:t.user.is_admin,expression:"user.is_admin"}]},[t._v("[administrator]")]),r("br"),r("br"),r("br"),r("br"),r("br"),r("br"),t.mayUpdateUser?r("button",{staticClass:"button is-info",on:{click:t.onSubmit}},[t._v("Update")]):t._e(),t.mayChangePassword?r("div",[r("br"),r("br"),t.mayChangePassword?r("authservice-change-password",{attrs:{user:t.user,demo:t.demo,"email-token":t.emailToken}}):t._e()],1):t._e()]),r("div",{staticClass:"column is-8"},[r("form",["email"===t.user.authority?r("div",{staticClass:"field"},[r("div",{staticClass:"label"},[t._v("Username")]),r("div",{staticClass:"control"},[t._v(t._s(t.user.username))])]):t._e(),r("div",{staticClass:"field"},[r("div",{staticClass:"columns"},[r("div",{staticClass:"column is-6"},[r("div",{staticClass:"label"},[t._v("Tenant")]),r("div",{staticClass:"control"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.user.tenant,expression:"user.tenant"}],staticClass:"input",attrs:{type:"text",placeholder:"First name",autocomplete:"foo",disabled:""},domProps:{value:t.user.tenant},on:{input:function(e){e.target.composing||t.$set(t.user,"tenant",e.target.value)}}})])]),r("div",{staticClass:"column is-6"},[r("div",{staticClass:"label"},[t._v("Email")]),r("div",{staticClass:"control"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.user.email,expression:"user.email"}],staticClass:"input",attrs:{type:"text",placeholder:"First name",autocomplete:"foo",disabled:""},domProps:{value:t.user.email},on:{input:function(e){e.target.composing||t.$set(t.user,"email",e.target.value)}}})])])])]),r("div",{staticClass:"field"},[r("div",{staticClass:"label"},[t._v("Name")]),r("div",{staticClass:"columns"},[r("div",{staticClass:"column is-4"},[r("div",{staticClass:"control"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.user.first_name,expression:"user.first_name"}],staticClass:"input",attrs:{type:"text",placeholder:"First name",autocomplete:"foo",disabled:!t.mayUpdateName},domProps:{value:t.user.first_name},on:{input:function(e){e.target.composing||t.$set(t.user,"first_name",e.target.value)}}})])]),r("div",{staticClass:"column is-4"},[r("div",{staticClass:"control"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.user.middle_name,expression:"user.middle_name"}],staticClass:"input",attrs:{type:"text",placeholder:"Middle name",autocomplete:"foo",disabled:!t.mayUpdateName},domProps:{value:t.user.middle_name},on:{input:function(e){e.target.composing||t.$set(t.user,"middle_name",e.target.value)}}})])]),r("div",{staticClass:"column is-4"},[r("div",{staticClass:"control"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.user.last_name,expression:"user.last_name"}],staticClass:"input",attrs:{type:"text",placeholder:"Last name",autocomplete:"foo",disabled:!t.mayUpdateName},domProps:{value:t.user.last_name},on:{input:function(e){e.target.composing||t.$set(t.user,"last_name",e.target.value)}}})])])])]),r("div",{staticClass:"field"},[r("div",{staticClass:"label"},[t._v("Full Name")]),r("div",{staticClass:"control"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.user.full_name,expression:"user.full_name"}],staticClass:"input",attrs:{type:"text",placeholder:"Fullname",autocomplete:"foo",disabled:!t.mayUpdateName},domProps:{value:t.user.full_name},on:{input:function(e){e.target.composing||t.$set(t.user,"full_name",e.target.value)}}})])]),t.showStatusFields?r("div",[r("br"),r("hr"),r("br"),t._m(1),t.mayUpdateStatus&&t.editingOwnDetails?r("div",{staticClass:"notification is-warning"},[t._m(2)]):t._e(),r("div",{staticClass:"columns"},[r("div",{staticClass:"column is-1"}),r("div",{staticClass:"column is-4"},[r("div",{staticClass:"field"},[r("div",{staticClass:"label"},[t._v("User Status")]),r("div",{staticClass:"control"},[r("div",{staticClass:"select"},[r("select",{directives:[{name:"model",rawName:"v-model",value:t.user.status,expression:"user.status"}],staticClass:"input",attrs:{disabled:!t.mayUpdateStatus},on:{change:function(e){var r=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){var e="_value"in t?t._value:t.value;return e});t.$set(t.user,"status",e.target.multiple?r:r[0])}}},[r("option",{attrs:{value:"active"}},[t._v("Active")]),r("option",{attrs:{value:"blacklisted"}},[t._v("Blacklisted")]),r("option",{attrs:{value:"closed"}},[t._v("Closed")]),r("option",{attrs:{value:"pending"}},[t._v("Waiting for Verification")]),r("option",{attrs:{value:"suspended"}},[t._v("Suspended")])])])])])]),"email"===t.user.authority?r("div",{staticClass:"column is-4"},[r("div",{staticClass:"field"},[r("div",{staticClass:"label"},[t._v("Email Address Status")]),r("div",{staticClass:"control"},[r("div",{staticClass:"select"},[r("select",{directives:[{name:"model",rawName:"v-model",value:t.user.email_status,expression:"user.email_status"}],staticClass:"input",attrs:{disabled:!t.mayUpdateStatus},on:{change:function(e){var r=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){var e="_value"in t?t._value:t.value;return e});t.$set(t.user,"email_status",e.target.multiple?r:r[0])}}},[r("option",{attrs:{value:"blacklisted"}},[t._v("Blacklisted")]),r("option",{attrs:{value:"disabled"}},[t._v("Disabled")]),r("option",{attrs:{value:"unverified"}},[t._v("Unverified")]),r("option",{attrs:{value:"verified"}},[t._v("Verified")])])])])])]):t._e(),r("div",{staticClass:"column is-4"},[r("div",{staticClass:"field"},[r("div",{staticClass:"label"},[t._v("Is Administrator")]),r("div",{staticClass:"control"},[r("div",{staticClass:"select"},[r("select",{directives:[{name:"model",rawName:"v-model",value:t.user.is_admin,expression:"user.is_admin"}],staticClass:"input",attrs:{disabled:!t.mayUpdateStatus},on:{change:function(e){var r=Array.prototype.filter.call(e.target.options,function(t){return t.selected}).map(function(t){var e="_value"in t?t._value:t.value;return e});t.$set(t.user,"is_admin",e.target.multiple?r:r[0])}}},[r("option",{domProps:{value:!1}},[t._v("No")]),r("option",{domProps:{value:!0}},[t._v("Yes")])])])])])])])]):t._e(),t.showSocialMediaFields?r("div",[r("br"),r("br"),r("hr"),t._m(3),r("figure",{staticClass:"image is-64x64 is-pulled-right"},[r("img",{attrs:{src:t.user.avatar}})]),r("div",{staticClass:"field"},[r("div",{staticClass:"label"},[t._v("Media Page")]),r("div",{staticClass:"control"},[r("a",{attrs:{href:t.user.media_page,target:"_blank"}},[t._v(t._s(t.user.media_page))])])]),r("div",{staticClass:"field"},[r("div",{staticClass:"label"},[t._v("Languages")]),r("div",{staticClass:"control"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.user.languages,expression:"user.languages"}],staticClass:"input",attrs:{type:"text",autocomplete:"foo",disabled:""},domProps:{value:t.user.languages},on:{input:function(e){e.target.composing||t.$set(t.user,"languages",e.target.value)}}})])]),r("div",{staticClass:"field"},[r("div",{staticClass:"label"},[t._v("Locale")]),r("div",{staticClass:"control"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.user.locale,expression:"user.locale"}],staticClass:"input",attrs:{type:"text",autocomplete:"foo",disabled:""},domProps:{value:t.user.locale},on:{input:function(e){e.target.composing||t.$set(t.user,"locale",e.target.value)}}})])]),r("div",{staticClass:"field"},[r("div",{staticClass:"label"},[t._v("Location")]),r("div",{staticClass:"control"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.user.location,expression:"user.location"}],staticClass:"input",attrs:{type:"text",autocomplete:"foo",disabled:""},domProps:{value:t.user.location},on:{input:function(e){e.target.composing||t.$set(t.user,"location",e.target.value)}}})])]),r("div",{staticClass:"field"},[r("div",{staticClass:"label"},[t._v("Timezone")]),r("div",{staticClass:"control"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.user.timezone,expression:"user.timezone"}],staticClass:"input",attrs:{type:"text",autocomplete:"foo",disabled:""},domProps:{value:t.user.timezone},on:{input:function(e){e.target.composing||t.$set(t.user,"timezone",e.target.value)}}})])])]):t._e(),t.showPermissionFields?r("div",[r("br"),r("br"),r("hr"),t._m(4),r("div",{staticClass:"field"},[r("div",{staticClass:"label"},[t._v("Rights")]),r("div",{staticClass:"control"},[t._v("    "+t._s(t.user.rights))])]),r("div",{staticClass:"field"},[r("div",{staticClass:"label"},[t._v("Privileges")]),r("div",{staticClass:"control"},[t._v("    "+t._s(t.user.privileges))])])]):t._e()]),r("br"),r("br"),r("br"),r("br"),r("div",{staticClass:"has-text-right is-size-7"},[t._v("[ID="+t._s(t.user.id)+"]")])])])])])},ot=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"notification is-danger"},[r("p",[t._v("Error: We were unable to select the user details.")]),r("p",[t._v("This may mean that you do not have permission, or it could be a network or server error.")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"has-text-centered"},[r("h2",{staticClass:"title is-3"},[t._v("Account Status")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("p",[t._v("WARNING!"),r("br"),t._v("Updating these fields may remove your ability to log in or act as administrator.")])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"has-text-centered"},[r("h2",{staticClass:"title is-3"},[t._v("Social Media Login")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"has-text-centered"},[r("h2",{staticClass:"title is-3"},[t._v("Permissions")])])}],st=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"authservice-change-password"},[r("button",{staticClass:"button is-small",class:{"is-disabled":!t.mayChangePassword},on:{click:t.togglePasswordModal}},[t._v("Change password ")]),r("div",{staticClass:"modal has-text-left",class:{"is-active":t.showPasswordModal}},[r("div",{staticClass:"modal-background"}),r("div",{staticClass:"modal-card"},[r("header",{staticClass:"modal-card-head"},[r("p",{staticClass:"modal-card-title"},[t._v("Change password for user  "),r("b",[t._v(t._s(t.userLabel))])]),r("button",{staticClass:"delete",attrs:{"aria-label":"close"},on:{click:t.togglePasswordModal}})]),r("section",{staticClass:"modal-card-body"},[t.warningMsg?r("div",{staticClass:"notification is-danger"},[t._v(t._s(t.warningMsg))]):t._e(),r("form",[t.requireOldPassword?r("div",{staticClass:"field"},[r("div",{staticClass:"label"},[t._v("Existing password")]),r("div",{staticClass:"control"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.oldPassword,expression:"oldPassword"}],staticClass:"input",attrs:{type:"password",placeholder:"Existing password",autocomplete:"off"},domProps:{value:t.oldPassword},on:{input:function(e){e.target.composing||(t.oldPassword=e.target.value)}}})])]):t._e(),r("div",{staticClass:"field"},[r("div",{staticClass:"label"},[t._v("New password")]),r("div",{staticClass:"control"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.newPassword,expression:"newPassword"}],staticClass:"input",attrs:{type:"password",placeholder:"Please enter a password",autocomplete:"off"},domProps:{value:t.newPassword},on:{input:function(e){e.target.composing||(t.newPassword=e.target.value)}}})])]),r("div",{staticClass:"field"},[r("div",{staticClass:"label"},[t._v("Confirm")]),r("div",{staticClass:"control"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.newPasswordConfirm,expression:"newPasswordConfirm"}],staticClass:"input",attrs:{type:"password",placeholder:"Enter the same password again",autocomplete:"off"},domProps:{value:t.newPasswordConfirm},on:{input:function(e){e.target.composing||(t.newPasswordConfirm=e.target.value)}}})])]),r("div",{staticClass:"field"},[r("div",{staticClass:"label passwordError"},[t._v(t._s(t.newPasswordError))])])])]),r("footer",{staticClass:"modal-card-foot"},[r("button",{staticClass:"button is-success",attrs:{disabled:null!==t.newPasswordError},on:{click:t.updatePassword}},[t._v("Update password")]),r("button",{staticClass:"button",on:{click:t.togglePasswordModal}},[t._v("Cancel")])])])])])},at=[],ct=(r("f559"),{name:"authservice-change-password",props:{user:Object,emailToken:{type:String,required:!1},demo:{type:String|Boolean,default:null}},data:function(){return{modalIsActive:!1,autoOpen:!0,oldPassword:"",newPassword:"",newPasswordConfirm:""}},computed:{isDemo:function(){return"boolean"==typeof this.demo&&this.demo||"string"==typeof this.demo&&""!==this.demo},showPasswordModal:function(){return this.modalIsActive||this.autoOpen&&null!=this.emailToken},warningMsg:function(){return this.user&&"genesis/a3"===this.user.tenant&&("genesis"===this.user.username||this.user.isAdmin)?"\n            WARNING!!!\n            Password retrieval is disabled for A3 administrators.\n            If you lose the password, you will not be able to reset it\n            via email.\n          ":null},userLabel:function(){return this.user?this.user.username?this.user.username:this.user.id:"?"},newPasswordError:function(){return this.requireOldPassword&&!this.oldPassword?"Please enter your existing password":this.newPassword?!this.newPassword||this.newPassword.length<8?"Passwords must be eight or more character":this.newPasswordConfirm?this.newPassword!==this.newPasswordConfirm?"Passwords do not match":null:"Need confirmation password":"Please enter your new password"},mayChangePassword:function(){return console.log("* mayChangePassword"),(this.isCurrentUser||this.haveOverridePermission)&&!this.newPasswordError},isCurrentUser:function(){if(console.log("*** isCurrentUser()"),this.$authservice&&this.$authservice.user&&this.user){if(this.$authservice.user.tenant===this.user.tenant&&this.$authservice.user.id===this.user.id)return console.log("- Is current user"),!0;console.log("- Not current user")}return!1},haveOverridePermission:function(){if(console.log("*** haveOverridePermission()"),console.log("".concat(this.$authservice.user.tenant,":").concat(this.$authservice.user.username).concat(this.$authservice.user.isAdmin?"(admin)":"")),this.$authservice&&this.$authservice.user&&this.user){if("genesis/a3"===this.$authservice.user.tenant){if(this.$authservice.user.isAdmin)return console.log("- A3 admin"),!0;if(this.$authservice.user.username){var t="".concat(this.user.username,"/");if(this.user.tenant.startsWith(t))return console.log("- Owner of the application"),!0}}if(this.$authservice.user.tenant===this.user.tenant&&this.$authservice.user.isAdmin)return console.log("- Current application's admin"),!0}return!1},requireOldPassword:function(){return!this.emailToken&&!this.haveOverridePermission}},methods:{togglePasswordModal:function(t){console.log("togglePasswordModal()"),this.showPasswordModal?(this.modalIsActive=!1,this.autoOpen=!1):this.modalIsActive=!0},updatePassword:function(){var t=this;if(this.isDemo)return this.modalIsActive=!1,void this.$toast.open({message:"Password not updated (demo mode)",type:"is-info",duration:4e3});var e="".concat(this.$authservice.endpoint(),"/user"),r={method:"post",url:e,headers:{Authorization:"Bearer "+this.$authservice.jwt,"Content-Type":"application/json",Accept:"application/json"},data:{tenant:this.user.tenant,id:this.user.id,password:this.newPassword}};this.emailToken&&(r.data.email_token=this.emailToken),this.requireOldPassword&&(r.data.old_password=this.oldPassword),console.log("params = ",r),X()(r).then(function(e){console.log("ok. response=",e),e.data&&"ok"===e.data.status?(t.$toast.open({message:"Password updated",type:"is-success",duration:4e3}),t.oldPassword="",t.newPassword="",t.newPasswordConfirm="",t.modalIsActive=!1,t.autoOpen=!1):(console.log("Unexpected result while updating password. response=",e),t.$toast.open({message:"Error: Password might not have been updated",type:"is-danger",duration:4e3}))}).catch(function(n){console.log("response is",n.response),404===n.response.status&&n.response.data&&n.response.data.Error?t.$toast.open({message:'The password could not be updated: "'.concat(n.response.data.Error,'"'),type:"is-danger",duration:4e3}):Q()(t,e,r,n)})}},created:function(){this.isDemo&&console.error("DEMO MODE: authservice-change-password")}}),ut=ct,lt=(r("9a91"),T(ut,st,at,!1,null,"dfe8c15a",null)),ft=lt.exports,ht={name:"authservice-profile",components:{AuthserviceChangePassword:ft},props:{tenant:{type:String,required:!0},userId:{type:String,required:!0},demo:{type:Boolean|String,default:!1},showStatus:{type:Boolean|String,default:!1},showPermissions:{type:Boolean|String,default:!1},changePassword:{type:Boolean|String,default:!1}},data:function(){return{user:{},selectError:!1}},computed:{loginDescription:function(){if(this.user&&this.user.authority){if("email"===this.user.authority)return this.user.Username?"Username / Password":"Email / Password";var t=this.user.authority.substring(0,1).toUpperCase(),e=this.user.authority.substring(1);return"Login using ".concat(t).concat(e)}return null},useUsername:function(){return!1},mayUpdateName:function(){return(this.editingOwnDetails||this.haveAdminPrivileges)&&this.user&&"email"===this.user.authority},mayUpdateUser:function(){return this.editingOwnDetails||this.haveAdminPrivileges},mayUpdateStatus:function(){return this.haveAdminPrivileges},isDemo:function(){return"boolean"==typeof this.demo&&this.demo||"string"==typeof this.demo&&""!==this.demo},showStatusFields:function(){return console.log("this.showStatus",this.showStatus),console.log("this.showStatus",Object(G["a"])(this.showStatus)),"boolean"==typeof this.showStatus&&this.showStatus||"string"==typeof this.showStatus&&"false"!==this.showStatus},showSocialMediaFields:function(){return this.user&&"email"!==this.user.authority},showPermissionFields:function(){return console.log("this.showPermissions",this.showPermissions),console.log("this.showPermissions",Object(G["a"])(this.showPermissions)),"boolean"==typeof this.showPermissions&&this.showPermissions||"string"==typeof this.showPermissions&&"false"!==this.showPermissions},editingOwnDetails:function(){return this.$authservice.user.tenant===this.user.tenant&&this.$authservice.user.id===this.user.id&&(console.log("- User updating themself"),!0)},haveAdminPrivileges:function(){if(console.log("haveAdminPrivileges()"),console.log("$authservice.user=",this.$authservice.user),console.log("this.user=",this.user),"genesis/a3"===this.$authservice.user.tenant){if(this.$authservice.user.isAdmin)return console.log("- A3 admin"),!0;if(this.$route.params.username===this.$authservice.user.username)return console.log("- Owner of the application"),!0}return!(!this.$authservice.user.isAdmin||this.$authservice.user.tenant!=="".concat(this.$route.params.username,"/").concat(this.$route.params.appname))&&(console.log("- Current application's admin"),!0)},mayChangePassword:function(){return console.log("this.changePassword",this.changePassword),console.log("this.changePassword",Object(G["a"])(this.changePassword)),!("boolean"==typeof this.changePassword&&!this.changePassword||"string"==typeof this.changePassword&&"false"===this.changePassword)&&(!(!this.user||"email"!==this.user.authority)&&(this.editingOwnDetails||this.haveAdminPrivileges))},emailToken:function(){if(this.editingOwnDetails){var t=this.$route.query["AUTHSERVICE_EMAIL_TOKEN"];return t}return null}},methods:{loadUserDetails:function(){var t=this;console.log("AuthserviceUserDetails.loadUserDetails()");var e="".concat(this.$authservice.endpoint(),"/").concat(this.tenant,"/user/").concat(this.userId);console.log("url is ".concat(e));var r={method:"get",url:e,headers:{Authorization:"Bearer "+this.$authservice.jwt,"Content-Type":"application/json",Accept:"application/json"}};X()(r).then(function(e){e&&e.data&&e.data.length>0?(console.log("RESPONSE IS",e.data),t.user=e.data[0]):(console.error("User ".concat(t.tenant,"/").concat(t.userId," not found")),t.selectError=!0)}).catch(function(n){Q()(t,e,r,n),t.selectError=!0})},onSubmit:function(t){var e=this;if(this.isDemo)return this.modalIsActive=!1,void this.$toast.open({message:"Password not updated (demo mode)",type:"is-info",duration:4e3});t.preventDefault();var r={tenant:this.tenant,id:this.userId};this.mayUpdateName&&(r.first_name=this.user.first_name,r.middle_name=this.user.middle_name,r.last_name=this.user.last_name,r.full_name=this.user.full_name),this.mayUpdateStatus&&(r.status=this.user.status,r.email_status=this.user.email_status,r.is_admin=this.user.is_admin),console.log("Saving:",this.user);var n="".concat(this.$authservice.endpoint(),"/user"),i={method:"post",url:n,headers:{Authorization:"Bearer "+this.$authservice.jwt,"Content-Type":"application/json",Accept:"application/json"},data:r};X()(i).then(function(t){console.log("ok. response=",t),t.data&&"ok"===t.data.status?(e.$toast.open({message:"Changes saved",type:"is-success",duration:4e3}),e.loadUserDetails()):(console.log("Unexpected result while updating user record. response=",t),e.$toast.open({message:"Error: User details might not have been updated",type:"is-danger"}))}).catch(function(t){console.log("error. e=",t),Q()(e,n,i,t)})}},created:function(){this.loadUserDetails()}},dt=ht,pt=(r("618f"),T(dt,it,ot,!1,null,"65e1d6f0",null)),vt=pt.exports,gt=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"banner",class:"banner__"+t.position,style:t.bannerStyles},[t._v("\n  THIS IS THE BANNER\n  "),t.msg?r("p"):t._e(),r("br"),t._v("\n  ("+t._s(t.msg)+")\n  "),r("br"),t._t("default")],2)},mt=[],bt=r("268f"),yt=r.n(bt),wt=r("e265"),_t=r.n(wt);function Ct(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=J()(r);"function"===typeof _t.a&&(n=n.concat(_t()(r).filter(function(t){return yt()(r,t).enumerable}))),n.forEach(function(e){d(t,e,r[e])})}return t}var xt,St={left:0,right:0},Et={props:{msg:{type:String},position:{type:String,default:"top",validator:function(t){return["top","bottom"].indexOf(t)>-1}},styles:{type:Object,default:function(){return{}}}},data:function(){return{bannerStyles:Ct({},St,this.styles)}}},Pt=Et,Ot=(r("a5de"),T(Pt,gt,mt,!1,null,"6cb971dc",null)),Rt=Ot.exports,At=null;function kt(t,e){if(console.log("vue-loginservice.install()",e),!At)return At=new i["a"](e),At.checkInitialLoginStatus(!1),xt=t,t.mixin({beforeCreate:function(){this.$parent?this._authserviceRoot=this.$parent&&this.$parent._authserviceRoot||this:(this._authserviceRoot=this,this._authservice=At,this._loginservice=At,t.util.defineReactive(this,"_authservice",this.$authservice),t.util.defineReactive(this,"_loginservice",this.$authservice))},destroyed:function(){}}),Object.defineProperty(t.prototype,"$authservice",{get:function(){return this._authserviceRoot._authservice}}),Object.defineProperty(t.prototype,"$loginservice",{get:function(){return this._authserviceRoot._authservice}}),t.component("authservice-login",M),t.component("authservice-bounce-component",V),t.component("authservice-change-password",ft),t.component("authservice-user-list",nt),t.component("authservice-user-details",vt),t.component("loginservice-login",M),t.component("loginservice-bounce-component",V),t.component("loginservice-change-password",ft),t.component("loginservice-user-list",nt),t.component("loginservice-user-details",vt),t.component("banner",Rt),At;console.error("Vue.use(LoginService) has already been called.")}var Ut={install:kt};Object.defineProperty(Ut,"_authservice",{get:function(){return At}});var Tt=Ut;"undefined"!==typeof window&&window.Vue&&(window.LoginService=Ut),r.d(e,"_Vue",function(){return xt});e["default"]=Tt},fde4:function(t,e,r){r("bf90");var n=r("584a").Object;t.exports=function(t,e){return n.getOwnPropertyDescriptor(t,e)}},fdef:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}})});
//# sourceMappingURL=vue-loginservice.umd.min.js.map