mirror of
https://github.com/Ride-The-Lightning/RTL
synced 2024-11-17 15:29:30 +00:00
28e58e73fb
Bug fix spinner close on 401
1 line
48 KiB
JavaScript
1 line
48 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"0TWp":function(e,t,n){var r=n("mrSG").__values;!function(){"use strict";!function(e){var t=e.performance;function n(e){t&&t.mark&&t.mark(e)}function r(e,n){t&&t.measure&&t.measure(e,n)}n("Zone");var o=!0===e.__zone_symbol__forceDuplicateZoneCheck;if(e.Zone){if(o||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}var a,i=function(){function t(e,t){this._parent=e,this._name=t?t.name||"unnamed":"<root>",this._properties=t&&t.properties||{},this._zoneDelegate=new s(this,this._parent&&this._parent._zoneDelegate,t)}return t.assertZonePatched=function(){if(e.Promise!==P.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(t,"root",{get:function(){for(var e=t.current;e.parent;)e=e.parent;return e},enumerable:!0,configurable:!0}),Object.defineProperty(t,"current",{get:function(){return Z.zone},enumerable:!0,configurable:!0}),Object.defineProperty(t,"currentTask",{get:function(){return j},enumerable:!0,configurable:!0}),t.__load_patch=function(a,i){if(P.hasOwnProperty(a)){if(o)throw Error("Already loaded patch: "+a)}else if(!e["__Zone_disable_"+a]){var c="Zone:"+a;n(c),P[a]=i(e,t,D),r(c,c)}},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),t.prototype.get=function(e){var t=this.getZoneWith(e);if(t)return t._properties[e]},t.prototype.getZoneWith=function(e){for(var t=this;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null},t.prototype.fork=function(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)},t.prototype.wrap=function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);var n=this._zoneDelegate.intercept(this,e,t),r=this;return function(){return r.runGuarded(n,this,arguments,t)}},t.prototype.run=function(e,t,n,r){Z={parent:Z,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,r)}finally{Z=Z.parent}},t.prototype.runGuarded=function(e,t,n,r){void 0===t&&(t=null),Z={parent:Z,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,r)}catch(o){if(this._zoneDelegate.handleError(this,o))throw o}}finally{Z=Z.parent}},t.prototype.runTask=function(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||g).name+"; Execution: "+this.name+")");if(e.state!==_||e.type!==S&&e.type!==O){var r=e.state!=k;r&&e._transitionTo(k,b),e.runCount++;var o=j;j=e,Z={parent:Z,zone:this};try{e.type==O&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(a){if(this._zoneDelegate.handleError(this,a))throw a}}finally{e.state!==_&&e.state!==w&&(e.type==S||e.data&&e.data.isPeriodic?r&&e._transitionTo(b,k):(e.runCount=0,this._updateTaskCount(e,-1),r&&e._transitionTo(_,k,_))),Z=Z.parent,j=o}}},t.prototype.scheduleTask=function(e){if(e.zone&&e.zone!==this)for(var t=this;t;){if(t===e.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+e.zone.name);t=t.parent}e._transitionTo(m,_);var n=[];e._zoneDelegates=n,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(r){throw e._transitionTo(w,m,_),this._zoneDelegate.handleError(this,r),r}return e._zoneDelegates===n&&this._updateTaskCount(e,1),e.state==m&&e._transitionTo(b,m),e},t.prototype.scheduleMicroTask=function(e,t,n,r){return this.scheduleTask(new u(E,e,t,n,r,void 0))},t.prototype.scheduleMacroTask=function(e,t,n,r,o){return this.scheduleTask(new u(O,e,t,n,r,o))},t.prototype.scheduleEventTask=function(e,t,n,r,o){return this.scheduleTask(new u(S,e,t,n,r,o))},t.prototype.cancelTask=function(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||g).name+"; Execution: "+this.name+")");e._transitionTo(T,b,k);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(w,T),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(_,T),e.runCount=0,e},t.prototype._updateTaskCount=function(e,t){var n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(var r=0;r<n.length;r++)n[r]._updateTaskCount(e.type,t)},t.__symbol__=I,t}(),c={name:"",onHasTask:function(e,t,n,r){return e.hasTask(n,r)},onScheduleTask:function(e,t,n,r){return e.scheduleTask(n,r)},onInvokeTask:function(e,t,n,r,o,a){return e.invokeTask(n,r,o,a)},onCancelTask:function(e,t,n,r){return e.cancelTask(n,r)}},s=function(){function e(e,t,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=t,this._forkZS=n&&(n&&n.onFork?n:t._forkZS),this._forkDlgt=n&&(n.onFork?t:t._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:t.zone),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:t.zone),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:t.zone),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:t.zone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:t.zone),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:t.zone),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:t.zone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;var r=n&&n.onHasTask;(r||t&&t._hasTaskZS)&&(this._hasTaskZS=r?n:c,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=e,n.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}return e.prototype.fork=function(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new i(e,t)},e.prototype.intercept=function(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t},e.prototype.invoke=function(e,t,n,r,o){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,r,o):t.apply(n,r)},e.prototype.handleError=function(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)},e.prototype.scheduleTask=function(e,t){var n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),(n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t))||(n=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=E)throw new Error("Task is missing scheduleFn.");v(t)}return n},e.prototype.invokeTask=function(e,t,n,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,r):t.callback.apply(n,r)},e.prototype.cancelTask=function(e,t){var n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");n=t.cancelFn(t)}return n},e.prototype.hasTask=function(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(n){this.handleError(e,n)}},e.prototype._updateTaskCount=function(e,t){var n=this._taskCounts,r=n[e],o=n[e]=r+t;if(o<0)throw new Error("More tasks executed then were scheduled.");0!=r&&0!=o||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})},e}(),u=function(){function t(n,r,o,a,i,c){this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=r,this.data=a,this.scheduleFn=i,this.cancelFn=c,this.callback=o;var s=this;this.invoke=n===S&&a&&a.useG?t.invokeTask:function(){return t.invokeTask.call(e,s,this,arguments)}}return t.invokeTask=function(e,t,n){e||(e=this),z++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==z&&y(),z--}},Object.defineProperty(t.prototype,"zone",{get:function(){return this._zone},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),t.prototype.cancelScheduleRequest=function(){this._transitionTo(_,m)},t.prototype._transitionTo=function(e,t,n){if(this._state!==t&&this._state!==n)throw new Error(this.type+" '"+this.source+"': can not transition to '"+e+"', expecting state '"+t+"'"+(n?" or '"+n+"'":"")+", was '"+this._state+"'.");this._state=e,e==_&&(this._zoneDelegates=null)},t.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)},t.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},t}(),l=I("setTimeout"),f=I("Promise"),p=I("then"),h=[],d=!1;function v(t){if(0===z&&0===h.length)if(a||e[f]&&(a=e[f].resolve(0)),a){var n=a[p];n||(n=a.then),n.call(a,y)}else e[l](y,0);t&&h.push(t)}function y(){if(!d){for(d=!0;h.length;){var e=h;h=[];for(var t=0;t<e.length;t++){var n=e[t];try{n.zone.runTask(n,null,null)}catch(r){D.onUnhandledError(r)}}}D.microtaskDrainDone(),d=!1}}var g={name:"NO ZONE"},_="notScheduled",m="scheduling",b="scheduled",k="running",T="canceling",w="unknown",E="microTask",O="macroTask",S="eventTask",P={},D={symbol:I,currentZoneFrame:function(){return Z},onUnhandledError:C,microtaskDrainDone:C,scheduleMicroTask:v,showUncaughtError:function(){return!i[I("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:C,patchMethod:function(){return C},bindArguments:function(){return[]},patchThen:function(){return C},patchMacroTask:function(){return C},setNativePromise:function(e){e&&"function"==typeof e.resolve&&(a=e.resolve(0))},patchEventPrototype:function(){return C},isIEOrEdge:function(){return!1},getGlobalObjects:function(){},ObjectDefineProperty:function(){return C},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},ArraySlice:function(){return[]},patchClass:function(){return C},wrapWithCurrentZone:function(){return C},filterProperties:function(){return[]},attachOriginToPatched:function(){return C},_redefineProperty:function(){return C},patchCallbacks:function(){return C}},Z={parent:null,zone:new i(null,null)},j=null,z=0;function C(){}function I(e){return"__zone_symbol__"+e}r("Zone","Zone"),e.Zone=i}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global),Zone.__load_patch("ZoneAwarePromise",(function(e,t,n){var o=Object.getOwnPropertyDescriptor,a=Object.defineProperty,i=n.symbol,c=[],s=i("Promise"),u=i("then");n.onUnhandledError=function(e){if(n.showUncaughtError()){var t=e&&e.rejection;t?console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t,t instanceof Error?t.stack:void 0):console.error(e)}},n.microtaskDrainDone=function(){for(;c.length;)for(var e=function(){var e=c.shift();try{e.zone.runGuarded((function(){throw e}))}catch(t){f(t)}};c.length;)e()};var l=i("unhandledPromiseRejectionHandler");function f(e){n.onUnhandledError(e);try{var r=t[l];r&&"function"==typeof r&&r.call(this,e)}catch(o){}}function p(e){return e&&e.then}function h(e){return e}function d(e){return S.reject(e)}var v=i("state"),y=i("value"),g=i("finally"),_=i("parentPromiseValue"),m=i("parentPromiseState");function b(e,t){return function(n){try{T(e,t,n)}catch(r){T(e,!1,r)}}}var k=i("currentTaskTrace");function T(e,r,o){var i,s,u=(i=!1,function(e){return function(){i||(i=!0,e.apply(null,arguments))}});if(e===o)throw new TypeError("Promise resolved with itself");if(null===e[v]){var l=null;try{"object"!=typeof o&&"function"!=typeof o||(l=o&&o.then)}catch(w){return u((function(){T(e,!1,w)}))(),e}if(!1!==r&&o instanceof S&&o.hasOwnProperty(v)&&o.hasOwnProperty(y)&&null!==o[v])E(o),T(e,o[v],o[y]);else if(!1!==r&&"function"==typeof l)try{l.call(o,u(b(e,r)),u(b(e,!1)))}catch(w){u((function(){T(e,!1,w)}))()}else{e[v]=r;var f=e[y];if(e[y]=o,e[g]===g&&!0===r&&(e[v]=e[m],e[y]=e[_]),!1===r&&o instanceof Error){var p=t.currentTask&&t.currentTask.data&&t.currentTask.data.__creationTrace__;p&&a(o,k,{configurable:!0,enumerable:!1,writable:!0,value:p})}for(var h=0;h<f.length;)O(e,f[h++],f[h++],f[h++],f[h++]);if(0==f.length&&0==r){e[v]=0;try{throw new Error("Uncaught (in promise): "+((s=o)&&s.toString===Object.prototype.toString?(s.constructor&&s.constructor.name||"")+": "+JSON.stringify(s):s?s.toString():Object.prototype.toString.call(s))+(o&&o.stack?"\n"+o.stack:""))}catch(w){var d=w;d.rejection=o,d.promise=e,d.zone=t.current,d.task=t.currentTask,c.push(d),n.scheduleMicroTask()}}}}return e}var w=i("rejectionHandledHandler");function E(e){if(0===e[v]){try{var n=t[w];n&&"function"==typeof n&&n.call(this,{rejection:e[y],promise:e})}catch(o){}e[v]=!1;for(var r=0;r<c.length;r++)e===c[r].promise&&c.splice(r,1)}}function O(e,t,n,r,o){E(e);var a=e[v],i=a?"function"==typeof r?r:h:"function"==typeof o?o:d;t.scheduleMicroTask("Promise.then",(function(){try{var r=e[y],o=n&&g===n[g];o&&(n[_]=r,n[m]=a);var c=t.run(i,void 0,o&&i!==d&&i!==h?[]:[r]);T(n,!0,c)}catch(s){T(n,!1,s)}}),n)}var S=function(){function e(t){if(!(this instanceof e))throw new Error("Must be an instanceof Promise.");this[v]=null,this[y]=[];try{t&&t(b(this,!0),b(this,!1))}catch(n){T(this,!1,n)}}return e.toString=function(){return"function ZoneAwarePromise() { [native code] }"},e.resolve=function(e){return T(new this(null),!0,e)},e.reject=function(e){return T(new this(null),!1,e)},e.race=function(e){var t,n,o,a,i=new this((function(e,t){o=e,a=t}));function c(e){o(e)}function s(e){a(e)}try{for(var u=r(e),l=u.next();!l.done;l=u.next()){var f=l.value;p(f)||(f=this.resolve(f)),f.then(c,s)}}catch(h){t={error:h}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return i},e.all=function(e){var t,n,o,a,i=new this((function(e,t){o=e,a=t})),c=2,s=0,u=[],l=function(e){p(e)||(e=f.resolve(e));var t=s;e.then((function(e){u[t]=e,0==--c&&o(u)}),a),c++,s++},f=this;try{for(var h=r(e),d=h.next();!d.done;d=h.next())l(d.value)}catch(v){t={error:v}}finally{try{d&&!d.done&&(n=h.return)&&n.call(h)}finally{if(t)throw t.error}}return 0==(c-=2)&&o(u),i},Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return"Promise"},enumerable:!0,configurable:!0}),e.prototype.then=function(e,n){var r=new this.constructor(null),o=t.current;return null==this[v]?this[y].push(o,r,e,n):O(this,o,r,e,n),r},e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(e){var n=new this.constructor(null);n[g]=g;var r=t.current;return null==this[v]?this[y].push(r,n,e,e):O(this,r,n,e,e),n},e}();S.resolve=S.resolve,S.reject=S.reject,S.race=S.race,S.all=S.all;var P=e[s]=e.Promise,D=t.__symbol__("ZoneAwarePromise"),Z=o(e,"Promise");Z&&!Z.configurable||(Z&&delete Z.writable,Z&&delete Z.value,Z||(Z={configurable:!0,enumerable:!0}),Z.get=function(){return e[D]?e[D]:e[s]},Z.set=function(t){t===S?e[D]=t:(e[s]=t,t.prototype[u]||C(t),n.setNativePromise(t))},a(e,"Promise",Z)),e.Promise=S;var j,z=i("thenPatched");function C(e){var t=e.prototype,n=o(t,"then");if(!n||!1!==n.writable&&n.configurable){var r=t.then;t[u]=r,e.prototype.then=function(e,t){var n=this;return new S((function(e,t){r.call(n,e,t)})).then(e,t)},e[z]=!0}}if(n.patchThen=C,P){C(P);var I=e.fetch;"function"==typeof I&&(e[n.symbol("fetch")]=I,e.fetch=(j=I,function(){var e=j.apply(this,arguments);if(e instanceof S)return e;var t=e.constructor;return t[z]||C(t),e}))}return Promise[t.__symbol__("uncaughtPromiseErrors")]=c,S}));var e=Object.getOwnPropertyDescriptor,t=Object.defineProperty,n=Object.getPrototypeOf,o=Object.create,a=Array.prototype.slice,i=Zone.__symbol__("addEventListener"),c=Zone.__symbol__("removeEventListener");function s(e,t){return Zone.current.wrap(e,t)}function u(e,t,n,r,o){return Zone.current.scheduleMacroTask(e,t,n,r,o)}var l=Zone.__symbol__,f="undefined"!=typeof window,p=f?window:void 0,h=f&&p||"object"==typeof self&&self||global,d=[null];function v(e,t){for(var n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=s(e[n],t+"_"+n));return e}function y(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var g="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,_=!("nw"in h)&&void 0!==h.process&&"[object process]"==={}.toString.call(h.process),m=!_&&!g&&!(!f||!p.HTMLElement),b=void 0!==h.process&&"[object process]"==={}.toString.call(h.process)&&!g&&!(!f||!p.HTMLElement),k={},T=function(e){if(e=e||h.event){var t=k[e.type];t||(t=k[e.type]=l("ON_PROPERTY"+e.type));var n,r=this||e.target||h,o=r[t];if(m&&r===p&&"error"===e.type){var a=e;!0===(n=o&&o.call(this,a.message,a.filename,a.lineno,a.colno,a.error))&&e.preventDefault()}else null==(n=o&&o.apply(this,arguments))||n||e.preventDefault();return n}};function w(n,r,o){var a=e(n,r);if(!a&&o&&e(o,r)&&(a={enumerable:!0,configurable:!0}),a&&a.configurable){var i=l("on"+r+"patched");if(!n.hasOwnProperty(i)||!n[i]){delete a.writable,delete a.value;var c=a.get,s=a.set,u=r.substr(2),f=k[u];f||(f=k[u]=l("ON_PROPERTY"+u)),a.set=function(e){var t=this;t||n!==h||(t=h),t&&(t[f]&&t.removeEventListener(u,T),s&&s.apply(t,d),"function"==typeof e?(t[f]=e,t.addEventListener(u,T,!1)):t[f]=null)},a.get=function(){var e=this;if(e||n!==h||(e=h),!e)return null;var t=e[f];if(t)return t;if(c){var o=c&&c.call(this);if(o)return a.set.call(this,o),"function"==typeof e.removeAttribute&&e.removeAttribute(r),o}return null},t(n,r,a),n[i]=!0}}}function E(e,t,n){if(t)for(var r=0;r<t.length;r++)w(e,"on"+t[r],n);else{var o=[];for(var a in e)"on"==a.substr(0,2)&&o.push(a);for(var i=0;i<o.length;i++)w(e,o[i],n)}}var O=l("originalInstance");function S(e){var n=h[e];if(n){h[l(e)]=n,h[e]=function(){var t=v(arguments,e);switch(t.length){case 0:this[O]=new n;break;case 1:this[O]=new n(t[0]);break;case 2:this[O]=new n(t[0],t[1]);break;case 3:this[O]=new n(t[0],t[1],t[2]);break;case 4:this[O]=new n(t[0],t[1],t[2],t[3]);break;default:throw new Error("Arg list too long.")}},Z(h[e],n);var r,o=new n((function(){}));for(r in o)"XMLHttpRequest"===e&&"responseBlob"===r||function(n){"function"==typeof o[n]?h[e].prototype[n]=function(){return this[O][n].apply(this[O],arguments)}:t(h[e].prototype,n,{set:function(t){"function"==typeof t?(this[O][n]=s(t,e+"."+n),Z(this[O][n],t)):this[O][n]=t},get:function(){return this[O][n]}})}(r);for(r in n)"prototype"!==r&&n.hasOwnProperty(r)&&(h[e][r]=n[r])}}function P(t,r,o){for(var a=t;a&&!a.hasOwnProperty(r);)a=n(a);!a&&t[r]&&(a=t);var i=l(r),c=null;if(a&&!(c=a[i])&&(c=a[i]=a[r],y(a&&e(a,r)))){var s=o(c,i,r);a[r]=function(){return s(this,arguments)},Z(a[r],c)}return c}function D(e,t,n){var r=null;function o(e){var t=e.data;return t.args[t.cbIdx]=function(){e.invoke.apply(this,arguments)},r.apply(t.target,t.args),e}r=P(e,t,(function(e){return function(t,r){var a=n(t,r);return a.cbIdx>=0&&"function"==typeof r[a.cbIdx]?u(a.name,r[a.cbIdx],a,o):e.apply(t,r)}}))}function Z(e,t){e[l("OriginalDelegate")]=t}var j=!1,z=!1;function C(){try{var e=p.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(t){}return!1}function I(){if(j)return z;j=!0;try{var e=p.navigator.userAgent;-1===e.indexOf("MSIE ")&&-1===e.indexOf("Trident/")&&-1===e.indexOf("Edge/")||(z=!0)}catch(t){}return z}Zone.__load_patch("toString",(function(e){var t=Function.prototype.toString,n=l("OriginalDelegate"),r=l("Promise"),o=l("Error"),a=function(){if("function"==typeof this){var a=this[n];if(a)return"function"==typeof a?t.call(a):Object.prototype.toString.call(a);if(this===Promise){var i=e[r];if(i)return t.call(i)}if(this===Error){var c=e[o];if(c)return t.call(c)}}return t.call(this)};a[n]=t,Function.prototype.toString=a;var i=Object.prototype.toString;Object.prototype.toString=function(){return this instanceof Promise?"[object Promise]":i.call(this)}}));var R=!1;if("undefined"!=typeof window)try{var x=Object.defineProperty({},"passive",{get:function(){R=!0}});window.addEventListener("test",x,x),window.removeEventListener("test",x,x)}catch(ge){R=!1}var L={useG:!0},M={},N={},F=/^__zone_symbol__(\w+)(true|false)$/;function A(e,t,r){var o=r&&r.add||"addEventListener",a=r&&r.rm||"removeEventListener",i=r&&r.listeners||"eventListeners",c=r&&r.rmAll||"removeAllListeners",s=l(o),u="."+o+":",f=function(e,t,n){if(!e.isRemoved){var r=e.callback;"object"==typeof r&&r.handleEvent&&(e.callback=function(e){return r.handleEvent(e)},e.originalDelegate=r),e.invoke(e,t,[n]);var o=e.options;o&&"object"==typeof o&&o.once&&t[a].call(t,n.type,e.originalDelegate?e.originalDelegate:e.callback,o)}},p=function(t){if(t=t||e.event){var n=this||t.target||e,r=n[M[t.type].false];if(r)if(1===r.length)f(r[0],n,t);else for(var o=r.slice(),a=0;a<o.length&&(!t||!0!==t.__zone_symbol__propagationStopped);a++)f(o[a],n,t)}},h=function(t){if(t=t||e.event){var n=this||t.target||e,r=n[M[t.type].true];if(r)if(1===r.length)f(r[0],n,t);else for(var o=r.slice(),a=0;a<o.length&&(!t||!0!==t.__zone_symbol__propagationStopped);a++)f(o[a],n,t)}};function d(t,r){if(!t)return!1;var f=!0;r&&void 0!==r.useG&&(f=r.useG);var d=r&&r.vh,v=!0;r&&void 0!==r.chkDup&&(v=r.chkDup);var y=!1;r&&void 0!==r.rt&&(y=r.rt);for(var g=t;g&&!g.hasOwnProperty(o);)g=n(g);if(!g&&t[o]&&(g=t),!g)return!1;if(g[s])return!1;var m,b=r&&r.eventNameToString,k={},T=g[s]=g[o],w=g[l(a)]=g[a],E=g[l(i)]=g[i],O=g[l(c)]=g[c];function S(e){R||"boolean"==typeof k.options||null==k.options||(e.options=!!k.options.capture,k.options=e.options)}r&&r.prepend&&(m=g[l(r.prepend)]=g[r.prepend]);var P=f?function(e){if(!k.isExisting)return S(e),T.call(k.target,k.eventName,k.capture?h:p,k.options)}:function(e){return S(e),T.call(k.target,k.eventName,e.invoke,k.options)},D=f?function(e){if(!e.isRemoved){var t=M[e.eventName],n=void 0;t&&(n=t[e.capture?"true":"false"]);var r=n&&e.target[n];if(r)for(var o=0;o<r.length;o++)if(r[o]===e){r.splice(o,1),e.isRemoved=!0,0===r.length&&(e.allRemoved=!0,e.target[n]=null);break}}if(e.allRemoved)return w.call(e.target,e.eventName,e.capture?h:p,e.options)}:function(e){return w.call(e.target,e.eventName,e.invoke,e.options)},j=r&&r.diff?r.diff:function(e,t){var n=typeof t;return"function"===n&&e.callback===t||"object"===n&&e.originalDelegate===t},z=Zone[Zone.__symbol__("BLACK_LISTED_EVENTS")],C=function(t,n,r,o,a,i){return void 0===a&&(a=!1),void 0===i&&(i=!1),function(){var c=this||e,s=arguments[0],u=arguments[1];if(!u)return t.apply(this,arguments);if(_&&"uncaughtException"===s)return t.apply(this,arguments);var l=!1;if("function"!=typeof u){if(!u.handleEvent)return t.apply(this,arguments);l=!0}if(!d||d(t,u,c,arguments)){var p,h=arguments[2];if(z)for(var y=0;y<z.length;y++)if(s===z[y])return t.apply(this,arguments);var g=!1;void 0===h?p=!1:!0===h?p=!0:!1===h?p=!1:(p=!!h&&!!h.capture,g=!!h&&!!h.once);var m,T=Zone.current,w=M[s];if(w)m=w[p?"true":"false"];else{var E=(b?b(s):s)+"false",O=(b?b(s):s)+"true",S="__zone_symbol__"+E,P="__zone_symbol__"+O;M[s]={},M[s].false=S,M[s].true=P,m=p?P:S}var D,Z=c[m],C=!1;if(Z){if(C=!0,v)for(y=0;y<Z.length;y++)if(j(Z[y],u))return}else Z=c[m]=[];var I=c.constructor.name,x=N[I];x&&(D=x[s]),D||(D=I+n+(b?b(s):s)),k.options=h,g&&(k.options.once=!1),k.target=c,k.capture=p,k.eventName=s,k.isExisting=C;var F=f?L:void 0;F&&(F.taskData=k);var A=T.scheduleEventTask(D,u,F,r,o);return k.target=null,F&&(F.taskData=null),g&&(h.once=!0),(R||"boolean"!=typeof A.options)&&(A.options=h),A.target=c,A.capture=p,A.eventName=s,l&&(A.originalDelegate=u),i?Z.unshift(A):Z.push(A),a?c:void 0}}};return g[o]=C(T,u,P,D,y),m&&(g.prependListener=C(m,".prependListener:",(function(e){return m.call(k.target,k.eventName,e.invoke,k.options)}),D,y,!0)),g[a]=function(){var t,n=this||e,r=arguments[0],o=arguments[2];t=void 0!==o&&(!0===o||!1!==o&&!!o&&!!o.capture);var a=arguments[1];if(!a)return w.apply(this,arguments);if(!d||d(w,a,n,arguments)){var i,c=M[r];c&&(i=c[t?"true":"false"]);var s=i&&n[i];if(s)for(var u=0;u<s.length;u++){var l=s[u];if(j(l,a))return s.splice(u,1),l.isRemoved=!0,0===s.length&&(l.allRemoved=!0,n[i]=null),l.zone.cancelTask(l),y?n:void 0}return w.apply(this,arguments)}},g[i]=function(){for(var t=this||e,n=arguments[0],r=[],o=H(t,b?b(n):n),a=0;a<o.length;a++){var i=o[a],c=i.originalDelegate?i.originalDelegate:i.callback;r.push(c)}return r},g[c]=function(){var t=this||e,n=arguments[0];if(n){var r=M[n];if(r){var o=r.false,i=r.true,s=t[o],u=t[i];if(s){var l=s.slice();for(h=0;h<l.length;h++)this[a].call(this,n,(f=l[h]).originalDelegate?f.originalDelegate:f.callback,f.options)}if(u)for(l=u.slice(),h=0;h<l.length;h++){var f;this[a].call(this,n,(f=l[h]).originalDelegate?f.originalDelegate:f.callback,f.options)}}}else{for(var p=Object.keys(t),h=0;h<p.length;h++){var d=p[h],v=F.exec(d),g=v&&v[1];g&&"removeListener"!==g&&this[c].call(this,g)}this[c].call(this,"removeListener")}if(y)return this},Z(g[o],T),Z(g[a],w),O&&Z(g[c],O),E&&Z(g[i],E),!0}for(var v=[],y=0;y<t.length;y++)v[y]=d(t[y],r);return v}function H(e,t){var n=[];for(var r in e){var o=F.exec(r),a=o&&o[1];if(a&&(!t||a===t)){var i=e[r];if(i)for(var c=0;c<i.length;c++)n.push(i[c])}}return n}function G(e,t){var n=e.Event;n&&n.prototype&&t.patchMethod(n.prototype,"stopImmediatePropagation",(function(e){return function(t,n){t.__zone_symbol__propagationStopped=!0,e&&e.apply(t,n)}}))}function B(e,t,n,r,o){var a=Zone.__symbol__(r);if(!t[a]){var i=t[a]=t[r];t[r]=function(a,c,s){return c&&c.prototype&&o.forEach((function(t){var o=n+"."+r+"::"+t,a=c.prototype;if(a.hasOwnProperty(t)){var i=e.ObjectGetOwnPropertyDescriptor(a,t);i&&i.value?(i.value=e.wrapWithCurrentZone(i.value,o),e._redefineProperty(c.prototype,t,i)):a[t]&&(a[t]=e.wrapWithCurrentZone(a[t],o))}else a[t]&&(a[t]=e.wrapWithCurrentZone(a[t],o))})),i.call(t,a,c,s)},e.attachOriginToPatched(t[r],i)}}var W=Zone.__symbol__,q=Object[W("defineProperty")]=Object.defineProperty,U=Object[W("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,V=Object.create,X=W("unconfigurables");function Y(e,t,n){var r=n.configurable;return Q(e,t,n=K(e,t,n),r)}function J(e,t){return e&&e[X]&&e[X][t]}function K(e,t,n){return Object.isFrozen(n)||(n.configurable=!0),n.configurable||(e[X]||Object.isFrozen(e)||q(e,X,{writable:!0,value:{}}),e[X]&&(e[X][t]=!0)),n}function Q(e,t,n,r){try{return q(e,t,n)}catch(a){if(!n.configurable)throw a;void 0===r?delete n.configurable:n.configurable=r;try{return q(e,t,n)}catch(a){var o=null;try{o=JSON.stringify(n)}catch(a){o=n.toString()}console.log("Attempting to configure '"+t+"' with descriptor '"+o+"' on object '"+e+"' and got error, giving up: "+a)}}}var $=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplyconnected","vrdisplaydisconnected","vrdisplaypresentchange"],ee=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],te=["load"],ne=["blur","error","focus","load","resize","scroll","messageerror"],re=["bounce","finish","start"],oe=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],ae=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],ie=["close","error","open","message"],ce=["error","message"],se=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],$,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function ue(e,t,n){if(!n||0===n.length)return t;var r=n.filter((function(t){return t.target===e}));if(!r||0===r.length)return t;var o=r[0].ignoreProperties;return t.filter((function(e){return-1===o.indexOf(e)}))}function le(e,t,n,r){e&&E(e,ue(e,t,n),r)}function fe(e,t){if((!_||b)&&!Zone[e.symbol("patchEvents")]){var r="undefined"!=typeof WebSocket,o=t.__Zone_ignore_on_properties;if(m){var a=window,i=C?[{target:a,ignoreProperties:["error"]}]:[];le(a,se.concat(["messageerror"]),o?o.concat(i):o,n(a)),le(Document.prototype,se,o),void 0!==a.SVGElement&&le(a.SVGElement.prototype,se,o),le(Element.prototype,se,o),le(HTMLElement.prototype,se,o),le(HTMLMediaElement.prototype,ee,o),le(HTMLFrameSetElement.prototype,$.concat(ne),o),le(HTMLBodyElement.prototype,$.concat(ne),o),le(HTMLFrameElement.prototype,te,o),le(HTMLIFrameElement.prototype,te,o);var c=a.HTMLMarqueeElement;c&&le(c.prototype,re,o);var s=a.Worker;s&&le(s.prototype,ce,o)}var u=t.XMLHttpRequest;u&&le(u.prototype,oe,o);var l=t.XMLHttpRequestEventTarget;l&&le(l&&l.prototype,oe,o),"undefined"!=typeof IDBIndex&&(le(IDBIndex.prototype,ae,o),le(IDBRequest.prototype,ae,o),le(IDBOpenDBRequest.prototype,ae,o),le(IDBDatabase.prototype,ae,o),le(IDBTransaction.prototype,ae,o),le(IDBCursor.prototype,ae,o)),r&&le(WebSocket.prototype,ie,o)}}function pe(e,t){var n=t.getGlobalObjects(),r=n.eventNames,o=n.globalSources,a=n.zoneSymbolEventNames,i=n.TRUE_STR,c=n.FALSE_STR,s=n.ZONE_SYMBOL_PREFIX,u="Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video",l="ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Window,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex,WebSocket".split(","),f=[],p=e.wtf,h=u.split(",");p?f=h.map((function(e){return"HTML"+e+"Element"})).concat(l):e.EventTarget?f.push("EventTarget"):f=l;for(var d=e.__Zone_disable_IE_check||!1,v=e.__Zone_enable_cross_context_check||!1,y=t.isIEOrEdge(),g="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }",_=0;_<r.length;_++){var m=s+((E=r[_])+c),b=s+(E+i);a[E]={},a[E][c]=m,a[E][i]=b}for(_=0;_<u.length;_++)for(var k=h[_],T=o[k]={},w=0;w<r.length;w++){var E;T[E=r[w]]=k+".addEventListener:"+E}var O=[];for(_=0;_<f.length;_++){var S=e[f[_]];O.push(S&&S.prototype)}return t.patchEventTarget(e,O,{vh:function(e,t,n,r){if(!d&&y){if(v)try{var o;if("[object FunctionWrapper]"===(o=t.toString())||o==g)return e.apply(n,r),!1}catch(a){return e.apply(n,r),!1}else if("[object FunctionWrapper]"===(o=t.toString())||o==g)return e.apply(n,r),!1}else if(v)try{t.toString()}catch(a){return e.apply(n,r),!1}return!0}}),Zone[t.symbol("patchEventTarget")]=!!e.EventTarget,!0}function he(e,t){var n=e.getGlobalObjects();if((!n.isNode||n.isMix)&&!function(e,t){var n=e.getGlobalObjects();if((n.isBrowser||n.isMix)&&!e.ObjectGetOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var r=e.ObjectGetOwnPropertyDescriptor(Element.prototype,"onclick");if(r&&!r.configurable)return!1;if(r){e.ObjectDefineProperty(Element.prototype,"onclick",{enumerable:!0,configurable:!0,get:function(){return!0}});var o=!!document.createElement("div").onclick;return e.ObjectDefineProperty(Element.prototype,"onclick",r),o}}var a=t.XMLHttpRequest;if(!a)return!1;var i=a.prototype,c=e.ObjectGetOwnPropertyDescriptor(i,"onreadystatechange");if(c)return e.ObjectDefineProperty(i,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return!0}}),o=!!(u=new a).onreadystatechange,e.ObjectDefineProperty(i,"onreadystatechange",c||{}),o;var s=e.symbol("fake");e.ObjectDefineProperty(i,"onreadystatechange",{enumerable:!0,configurable:!0,get:function(){return this[s]},set:function(e){this[s]=e}});var u=new a,l=function(){};return u.onreadystatechange=l,o=u[s]===l,u.onreadystatechange=null,o}(e,t)){var r="undefined"!=typeof WebSocket;!function(e){for(var t=e.getGlobalObjects().eventNames,n=e.symbol("unbound"),r=function(r){var o=t[r],a="on"+o;self.addEventListener(o,(function(t){var r,o,i=t.target;for(o=i?i.constructor.name+"."+a:"unknown."+a;i;)i[a]&&!i[a][n]&&((r=e.wrapWithCurrentZone(i[a],o))[n]=i[a],i[a]=r),i=i.parentElement}),!0)},o=0;o<t.length;o++)r(o)}(e),e.patchClass("XMLHttpRequest"),r&&function(e,t){var n=e.getGlobalObjects(),r=n.ADD_EVENT_LISTENER_STR,o=n.REMOVE_EVENT_LISTENER_STR,a=t.WebSocket;t.EventTarget||e.patchEventTarget(t,[a.prototype]),t.WebSocket=function(t,n){var i,c,s=arguments.length>1?new a(t,n):new a(t),u=e.ObjectGetOwnPropertyDescriptor(s,"onmessage");return u&&!1===u.configurable?(i=e.ObjectCreate(s),c=s,[r,o,"send","close"].forEach((function(t){i[t]=function(){var n=e.ArraySlice.call(arguments);if(t===r||t===o){var a=n.length>0?n[0]:void 0;if(a){var c=Zone.__symbol__("ON_PROPERTY"+a);s[c]=i[c]}}return s[t].apply(s,n)}}))):i=s,e.patchOnProperties(i,["close","error","message","open"],c),i};var i=t.WebSocket;for(var c in a)i[c]=a[c]}(e,t),Zone[e.symbol("patchEvents")]=!0}}Zone.__load_patch("util",(function(n,r,i){i.patchOnProperties=E,i.patchMethod=P,i.bindArguments=v,i.patchMacroTask=D;var c=r.__symbol__("BLACK_LISTED_EVENTS"),u=r.__symbol__("UNPATCHED_EVENTS");n[u]&&(n[c]=n[u]),n[c]&&(r[c]=r[u]=n[c]),i.patchEventPrototype=G,i.patchEventTarget=A,i.isIEOrEdge=I,i.ObjectDefineProperty=t,i.ObjectGetOwnPropertyDescriptor=e,i.ObjectCreate=o,i.ArraySlice=a,i.patchClass=S,i.wrapWithCurrentZone=s,i.filterProperties=ue,i.attachOriginToPatched=Z,i._redefineProperty=Y,i.patchCallbacks=B,i.getGlobalObjects=function(){return{globalSources:N,zoneSymbolEventNames:M,eventNames:se,isBrowser:m,isMix:b,isNode:_,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:"__zone_symbol__",ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"}}})),function(e){e.__zone_symbol__legacyPatch=function(){var t=e.Zone;t.__load_patch("registerElement",(function(e,t,n){!function(e,t){var n=t.getGlobalObjects();(n.isBrowser||n.isMix)&&"registerElement"in e.document&&t.patchCallbacks(t,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])}(e,n)})),t.__load_patch("EventTargetLegacy",(function(e,t,n){pe(e,n),he(n,e)}))}}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global);var de=l("zoneTask");function ve(e,t,n,r){var o=null,a=null;n+=r;var i={};function c(t){var n=t.data;return n.args[0]=function(){try{t.invoke.apply(this,arguments)}finally{t.data&&t.data.isPeriodic||("number"==typeof n.handleId?delete i[n.handleId]:n.handleId&&(n.handleId[de]=null))}},n.handleId=o.apply(e,n.args),t}function s(e){return a(e.data.handleId)}o=P(e,t+=r,(function(n){return function(o,a){if("function"==typeof a[0]){var l=u(t,a[0],{isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?a[1]||0:void 0,args:a},c,s);if(!l)return l;var f=l.data.handleId;return"number"==typeof f?i[f]=l:f&&(f[de]=l),f&&f.ref&&f.unref&&"function"==typeof f.ref&&"function"==typeof f.unref&&(l.ref=f.ref.bind(f),l.unref=f.unref.bind(f)),"number"==typeof f||f?f:l}return n.apply(e,a)}})),a=P(e,n,(function(t){return function(n,r){var o,a=r[0];"number"==typeof a?o=i[a]:(o=a&&a[de])||(o=a),o&&"string"==typeof o.type?"notScheduled"!==o.state&&(o.cancelFn&&o.data.isPeriodic||0===o.runCount)&&("number"==typeof a?delete i[a]:a&&(a[de]=null),o.zone.cancelTask(o)):t.apply(e,r)}}))}function ye(e,t){if(!Zone[t.symbol("patchEventTarget")]){for(var n=t.getGlobalObjects(),r=n.eventNames,o=n.zoneSymbolEventNames,a=n.TRUE_STR,i=n.FALSE_STR,c=n.ZONE_SYMBOL_PREFIX,s=0;s<r.length;s++){var u=r[s],l=c+(u+i),f=c+(u+a);o[u]={},o[u][i]=l,o[u][a]=f}var p=e.EventTarget;if(p&&p.prototype)return t.patchEventTarget(e,[p&&p.prototype]),!0}}Zone.__load_patch("legacy",(function(e){var t=e[Zone.__symbol__("legacyPatch")];t&&t()})),Zone.__load_patch("timers",(function(e){ve(e,"set","clear","Timeout"),ve(e,"set","clear","Interval"),ve(e,"set","clear","Immediate")})),Zone.__load_patch("requestAnimationFrame",(function(e){ve(e,"request","cancel","AnimationFrame"),ve(e,"mozRequest","mozCancel","AnimationFrame"),ve(e,"webkitRequest","webkitCancel","AnimationFrame")})),Zone.__load_patch("blocking",(function(e,t){for(var n=["alert","prompt","confirm"],r=0;r<n.length;r++)P(e,n[r],(function(n,r,o){return function(r,a){return t.current.run(n,e,a,o)}}))})),Zone.__load_patch("EventTarget",(function(e,t,n){!function(e,t){t.patchEventPrototype(e,t)}(e,n),ye(e,n);var r=e.XMLHttpRequestEventTarget;r&&r.prototype&&n.patchEventTarget(e,[r.prototype]),S("MutationObserver"),S("WebKitMutationObserver"),S("IntersectionObserver"),S("FileReader")})),Zone.__load_patch("on_property",(function(e,t,n){fe(n,e),Object.defineProperty=function(e,t,n){if(J(e,t))throw new TypeError("Cannot assign to read only property '"+t+"' of "+e);var r=n.configurable;return"prototype"!==t&&(n=K(e,t,n)),Q(e,t,n,r)},Object.defineProperties=function(e,t){return Object.keys(t).forEach((function(n){Object.defineProperty(e,n,t[n])})),e},Object.create=function(e,t){return"object"!=typeof t||Object.isFrozen(t)||Object.keys(t).forEach((function(n){t[n]=K(e,n,t[n])})),V(e,t)},Object.getOwnPropertyDescriptor=function(e,t){var n=U(e,t);return n&&J(e,t)&&(n.configurable=!1),n}})),Zone.__load_patch("customElements",(function(e,t,n){!function(e,t){var n=t.getGlobalObjects();(n.isBrowser||n.isMix)&&e.customElements&&"customElements"in e&&t.patchCallbacks(t,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,n)})),Zone.__load_patch("XHR",(function(e,t){!function(e){var p=e.XMLHttpRequest;if(p){var h=p.prototype,d=h[i],v=h[c];if(!d){var y=e.XMLHttpRequestEventTarget;if(y){var g=y.prototype;d=g[i],v=g[c]}}var _=P(h,"open",(function(){return function(e,t){return e[r]=0==t[2],e[s]=t[1],_.apply(e,t)}})),m=l("fetchTaskAborting"),b=l("fetchTaskScheduling"),k=P(h,"send",(function(){return function(e,n){if(!0===t.current[b])return k.apply(e,n);if(e[r])return k.apply(e,n);var o={target:e,url:e[s],isPeriodic:!1,args:n,aborted:!1},a=u("XMLHttpRequest.send",E,o,w,O);e&&!0===e[f]&&!o.aborted&&"scheduled"===a.state&&a.invoke()}})),T=P(h,"abort",(function(){return function(e,r){var o=e[n];if(o&&"string"==typeof o.type){if(null==o.cancelFn||o.data&&o.data.aborted)return;o.zone.cancelTask(o)}else if(!0===t.current[m])return T.apply(e,r)}}))}function w(e){var t=e.data,r=t.target;r[a]=!1,r[f]=!1;var s=r[o];d||(d=r[i],v=r[c]),s&&v.call(r,"readystatechange",s);var u=r[o]=function(){if(r.readyState===r.DONE)if(!t.aborted&&r[a]&&"scheduled"===e.state){var n=r.__zone_symbol__loadfalse;if(n&&n.length>0){var o=e.invoke;e.invoke=function(){for(var n=r.__zone_symbol__loadfalse,a=0;a<n.length;a++)n[a]===e&&n.splice(a,1);t.aborted||"scheduled"!==e.state||o.call(e)},n.push(e)}else e.invoke()}else t.aborted||!1!==r[a]||(r[f]=!0)};return d.call(r,"readystatechange",u),r[n]||(r[n]=e),k.apply(r,t.args),r[a]=!0,e}function E(){}function O(e){var t=e.data;return t.aborted=!0,T.apply(t.target,t.args)}}(e);var n=l("xhrTask"),r=l("xhrSync"),o=l("xhrListener"),a=l("xhrScheduled"),s=l("xhrURL"),f=l("xhrErrorBeforeScheduled")})),Zone.__load_patch("geolocation",(function(t){t.navigator&&t.navigator.geolocation&&function(t,n){for(var r=t.constructor.name,o=function(o){var a=n[o],i=t[a];if(i){if(!y(e(t,a)))return"continue";t[a]=function(e){var t=function(){return e.apply(this,v(arguments,r+"."+a))};return Z(t,e),t}(i)}},a=0;a<n.length;a++)o(a)}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])})),Zone.__load_patch("PromiseRejectionEvent",(function(e,t){function n(t){return function(n){H(e,t).forEach((function(r){var o=e.PromiseRejectionEvent;if(o){var a=new o(t,{promise:n.promise,reason:n.rejection});r.invoke(a)}}))}}e.PromiseRejectionEvent&&(t[l("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[l("rejectionHandledHandler")]=n("rejectionhandled"))}))}()},2:function(e,t,n){e.exports=n("hN/g")},"hN/g":function(e,t,n){"use strict";n.r(t),n("0TWp")},mrSG:function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return o})),n.d(t,"__assign",(function(){return a})),n.d(t,"__rest",(function(){return i})),n.d(t,"__decorate",(function(){return c})),n.d(t,"__param",(function(){return s})),n.d(t,"__metadata",(function(){return u})),n.d(t,"__awaiter",(function(){return l})),n.d(t,"__generator",(function(){return f})),n.d(t,"__exportStar",(function(){return p})),n.d(t,"__values",(function(){return h})),n.d(t,"__read",(function(){return d})),n.d(t,"__spread",(function(){return v})),n.d(t,"__spreadArrays",(function(){return y})),n.d(t,"__await",(function(){return g})),n.d(t,"__asyncGenerator",(function(){return _})),n.d(t,"__asyncDelegator",(function(){return m})),n.d(t,"__asyncValues",(function(){return b})),n.d(t,"__makeTemplateObject",(function(){return k})),n.d(t,"__importStar",(function(){return T})),n.d(t,"__importDefault",(function(){return w}));var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function i(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function c(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i}function s(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{s(r.next(e))}catch(t){a(t)}}function c(e){try{s(r.throw(e))}catch(t){a(t)}}function s(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(i,c)}s((r=r.apply(e,t||[])).next())}))}function f(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(c){a=[6,c],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}function p(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function h(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function d(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(c){o={error:c}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(d(arguments[t]));return e}function y(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var a=arguments[t],i=0,c=a.length;i<c;i++,o++)r[o]=a[i];return r}function g(e){return this instanceof g?(this.v=e,this):new g(e)}function _(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),a=[];return r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r;function i(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){a.push([e,t,n,r])>1||c(e,t)}))})}function c(e,t){try{(n=o[e](t)).value instanceof g?Promise.resolve(n.value.v).then(s,u):l(a[0][2],n)}catch(r){l(a[0][3],r)}var n}function s(e){c("next",e)}function u(e){c("throw",e)}function l(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function m(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:g(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function b(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}function k(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function T(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function w(e){return e&&e.__esModule?e:{default:e}}}},[[2,0]]]); |