mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-01 04:38:12 +00:00
1 line
40 KiB
JavaScript
1 line
40 KiB
JavaScript
(self.webpackChunkgns3_web_ui=self.webpackChunkgns3_web_ui||[]).push([[429],{82908:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.default=e.exports,e.exports.__esModule=!0},45478:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0},29545:function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e},e.exports.default=e.exports,e.exports.__esModule=!0},76567:function(e,t,n){var r=n(54850);e.exports=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,a=function(){};return{s:a,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw i}}}},e.exports.default=e.exports,e.exports.__esModule=!0},54850:function(e,t,n){var r=n(82908);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.default=e.exports,e.exports.__esModule=!0},18787:function(e,t,n){"use strict";var r=n(76567).default,o=n(45478).default,a=n(29545).default,i=(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 i=e.__Zone_symbol_prefix||"__zone_symbol__";function s(e){return i+e}var c=!0===e[s("forceDuplicateZoneCheck")];if(e.Zone){if(c||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}var u=function(){function t(e,n){o(this,t),this._parent=e,this._name=n?n.name||"unnamed":"<root>",this._properties=n&&n.properties||{},this._zoneDelegate=new h(this,this._parent&&this._parent._zoneDelegate,n)}return a(t,[{key:"parent",get:function(){return this._parent}},{key:"name",get:function(){return this._name}},{key:"get",value:function(e){var t=this.getZoneWith(e);if(t)return t._properties[e]}},{key:"getZoneWith",value:function(e){for(var t=this;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null}},{key:"fork",value:function(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}},{key:"wrap",value: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)}}},{key:"run",value:function(e,t,n,r){x={parent:x,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,r)}finally{x=x.parent}}},{key:"runGuarded",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;x={parent:x,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,r)}catch(o){if(this._zoneDelegate.handleError(this,o))throw o}}finally{x=x.parent}}},{key:"runTask",value: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||b).name+"; Execution: "+this.name+")");if(e.state!==T||e.type!==C&&e.type!==O){var r=e.state!=Z;r&&e._transitionTo(Z,E),e.runCount++;var o=I;I=e,x={parent:x,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!==T&&e.state!==D&&(e.type==C||e.data&&e.data.isPeriodic?r&&e._transitionTo(E,Z):(e.runCount=0,this._updateTaskCount(e,-1),r&&e._transitionTo(T,Z,T))),x=x.parent,I=o}}}},{key:"scheduleTask",value:function(e){if(e.zone&&e.zone!==this)for(var t=this;t;){if(t===e.zone)throw Error("can not reschedule task to ".concat(this.name," which is descendants of the original zone ").concat(e.zone.name));t=t.parent}e._transitionTo(w,T);var n=[];e._zoneDelegates=n,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(r){throw e._transitionTo(D,w,T),this._zoneDelegate.handleError(this,r),r}return e._zoneDelegates===n&&this._updateTaskCount(e,1),e.state==w&&e._transitionTo(E,w),e}},{key:"scheduleMicroTask",value:function(e,t,n,r){return this.scheduleTask(new p(P,e,t,n,r,void 0))}},{key:"scheduleMacroTask",value:function(e,t,n,r,o){return this.scheduleTask(new p(O,e,t,n,r,o))}},{key:"scheduleEventTask",value:function(e,t,n,r,o){return this.scheduleTask(new p(C,e,t,n,r,o))}},{key:"cancelTask",value:function(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||b).name+"; Execution: "+this.name+")");e._transitionTo(S,E,Z);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(D,S),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(T,S),e.runCount=0,e}},{key:"_updateTaskCount",value: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)}}],[{key:"assertZonePatched",value:function(){if(e.Promise!==z.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.)")}},{key:"root",get:function(){for(var e=t.current;e.parent;)e=e.parent;return e}},{key:"current",get:function(){return x.zone}},{key:"currentTask",get:function(){return I}},{key:"__load_patch",value:function(o,a){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(z.hasOwnProperty(o)){if(!i&&c)throw Error("Already loaded patch: "+o)}else if(!e["__Zone_disable_"+o]){var s="Zone:"+o;n(s),z[o]=a(e,t,j),r(s,s)}}}]),t}();u.__symbol__=s;var l,f={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)}},h=function(){function e(t,n,r){o(this,e),this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=t,this._parentDelegate=n,this._forkZS=r&&(r&&r.onFork?r:n._forkZS),this._forkDlgt=r&&(r.onFork?n:n._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:n._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:n._interceptZS),this._interceptDlgt=r&&(r.onIntercept?n:n._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:n._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:n._invokeZS),this._invokeDlgt=r&&(r.onInvoke?n:n._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:n._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:n._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?n:n._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:n._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:n._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?n:n._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:n._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:n._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?n:n._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:n._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:n._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?n:n._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:n._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;var a=r&&r.onHasTask;(a||n&&n._hasTaskZS)&&(this._hasTaskZS=a?r:f,this._hasTaskDlgt=n,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=t,r.onScheduleTask||(this._scheduleTaskZS=f,this._scheduleTaskDlgt=n,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=f,this._invokeTaskDlgt=n,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=f,this._cancelTaskDlgt=n,this._cancelTaskCurrZone=this.zone))}return a(e,[{key:"fork",value:function(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new u(e,t)}},{key:"intercept",value:function(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t}},{key:"invoke",value: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)}},{key:"handleError",value:function(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)}},{key:"scheduleTask",value: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!=P)throw new Error("Task is missing scheduleFn.");_(t)}return n}},{key:"invokeTask",value:function(e,t,n,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,r):t.callback.apply(n,r)}},{key:"cancelTask",value: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}},{key:"hasTask",value:function(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(n){this.handleError(e,n)}}},{key:"_updateTaskCount",value: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}(),p=function(){function t(n,r,a,i,s,c){if(o(this,t),this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=r,this.data=i,this.scheduleFn=s,this.cancelFn=c,!a)throw new Error("callback is not defined");this.callback=a;var u=this;this.invoke=n===C&&i&&i.useG?t.invokeTask:function(){return t.invokeTask.call(e,u,this,arguments)}}return a(t,[{key:"zone",get:function(){return this._zone}},{key:"state",get:function(){return this._state}},{key:"cancelScheduleRequest",value:function(){this._transitionTo(T,w)}},{key:"_transitionTo",value:function(e,t,n){if(this._state!==t&&this._state!==n)throw new Error("".concat(this.type," '").concat(this.source,"': can not transition to '").concat(e,"', expecting state '").concat(t,"'").concat(n?" or '"+n+"'":"",", was '").concat(this._state,"'."));this._state=e,e==T&&(this._zoneDelegates=null)}},{key:"toString",value:function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}},{key:"toJSON",value:function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}],[{key:"invokeTask",value:function(e,t,n){e||(e=this),M++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==M&&m(),M--}}}]),t}(),v=s("setTimeout"),d=s("Promise"),k=s("then"),g=[],y=!1;function _(t){if(0===M&&0===g.length)if(l||e[d]&&(l=e[d].resolve(0)),l){var n=l[k];n||(n=l.then),n.call(l,m)}else e[v](m,0);t&&g.push(t)}function m(){if(!y){for(y=!0;g.length;){var e=g;g=[];for(var t=0;t<e.length;t++){var n=e[t];try{n.zone.runTask(n,null,null)}catch(r){j.onUnhandledError(r)}}}j.microtaskDrainDone(),y=!1}}var b={name:"NO ZONE"},T="notScheduled",w="scheduling",E="scheduled",Z="running",S="canceling",D="unknown",P="microTask",O="macroTask",C="eventTask",z={},j={symbol:s,currentZoneFrame:function(){return x},onUnhandledError:R,microtaskDrainDone:R,scheduleMicroTask:_,showUncaughtError:function(){return!u[s("ignoreConsoleErrorUncaughtError")]},patchEventTarget:function(){return[]},patchOnProperties:R,patchMethod:function(){return R},bindArguments:function(){return[]},patchThen:function(){return R},patchMacroTask:function(){return R},patchEventPrototype:function(){return R},isIEOrEdge:function(){return!1},getGlobalObjects:function(){},ObjectDefineProperty:function(){return R},ObjectGetOwnPropertyDescriptor:function(){},ObjectCreate:function(){},ArraySlice:function(){return[]},patchClass:function(){return R},wrapWithCurrentZone:function(){return R},filterProperties:function(){return[]},attachOriginToPatched:function(){return R},_redefineProperty:function(){return R},patchCallbacks:function(){return R}},x={parent:null,zone:new u(null,null)},I=null,M=0;function R(){}r("Zone","Zone"),e.Zone=u}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global),Object.getOwnPropertyDescriptor),s=Object.defineProperty,c=Object.getPrototypeOf,u=Object.create,l=Array.prototype.slice,f="addEventListener",h="removeEventListener",p=Zone.__symbol__(f),v=Zone.__symbol__(h),d="true",k="false",g=Zone.__symbol__("");function y(e,t){return Zone.current.wrap(e,t)}function _(e,t,n,r,o){return Zone.current.scheduleMacroTask(e,t,n,r,o)}var m=Zone.__symbol__,b="undefined"!=typeof window,T=b?window:void 0,w=b&&T||"object"==typeof self&&self||global,E=[null];function Z(e,t){for(var n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=y(e[n],t+"_"+n));return e}function S(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var D="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,P=!("nw"in w)&&void 0!==w.process&&"[object process]"==={}.toString.call(w.process),O=!P&&!D&&!(!b||!T.HTMLElement),C=void 0!==w.process&&"[object process]"==={}.toString.call(w.process)&&!D&&!(!b||!T.HTMLElement),z={},j=function(e){if(e=e||w.event){var t=z[e.type];t||(t=z[e.type]=m("ON_PROPERTY"+e.type));var n,r=this||e.target||w,o=r[t];if(O&&r===T&&"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 x(e,t,n){var r=i(e,t);if(!r&&n&&i(n,t)&&(r={enumerable:!0,configurable:!0}),r&&r.configurable){var o=m("on"+t+"patched");if(!e.hasOwnProperty(o)||!e[o]){delete r.writable,delete r.value;var a=r.get,c=r.set,u=t.substr(2),l=z[u];l||(l=z[u]=m("ON_PROPERTY"+u)),r.set=function(t){var n=this;n||e!==w||(n=w),n&&(n[l]&&n.removeEventListener(u,j),c&&c.apply(n,E),"function"==typeof t?(n[l]=t,n.addEventListener(u,j,!1)):n[l]=null)},r.get=function(){var n=this;if(n||e!==w||(n=w),!n)return null;var o=n[l];if(o)return o;if(a){var i=a&&a.call(this);if(i)return r.set.call(this,i),"function"==typeof n.removeAttribute&&n.removeAttribute(t),i}return null},s(e,t,r),e[o]=!0}}}function I(e,t,n){if(t)for(var r=0;r<t.length;r++)x(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++)x(e,o[i],n)}}var M=m("originalInstance");function R(e){var t=w[e];if(t){w[m(e)]=t,w[e]=function(){var n=Z(arguments,e);switch(n.length){case 0:this[M]=new t;break;case 1:this[M]=new t(n[0]);break;case 2:this[M]=new t(n[0],n[1]);break;case 3:this[M]=new t(n[0],n[1],n[2]);break;case 4:this[M]=new t(n[0],n[1],n[2],n[3]);break;default:throw new Error("Arg list too long.")}},L(w[e],t);var n,r=new t(function(){});for(n in r)"XMLHttpRequest"===e&&"responseBlob"===n||function(t){"function"==typeof r[t]?w[e].prototype[t]=function(){return this[M][t].apply(this[M],arguments)}:s(w[e].prototype,t,{set:function(n){"function"==typeof n?(this[M][t]=y(n,e+"."+t),L(this[M][t],n)):this[M][t]=n},get:function(){return this[M][t]}})}(n);for(n in t)"prototype"!==n&&t.hasOwnProperty(n)&&(w[e][n]=t[n])}}function N(e,t,n){for(var r=e;r&&!r.hasOwnProperty(t);)r=c(r);!r&&e[t]&&(r=e);var o=m(t),a=null;if(r&&(!(a=r[o])||!r.hasOwnProperty(o))&&(a=r[o]=r[t],S(r&&i(r,t)))){var s=n(a,o,t);r[t]=function(){return s(this,arguments)},L(r[t],a)}return a}function A(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=N(e,t,function(e){return function(t,r){var a=n(t,r);return a.cbIdx>=0&&"function"==typeof r[a.cbIdx]?_(a.name,r[a.cbIdx],a,o):e.apply(t,r)}})}function L(e,t){e[m("OriginalDelegate")]=t}var H=!1,F=!1;function q(){if(H)return F;H=!0;try{var e=T.navigator.userAgent;-1===e.indexOf("MSIE ")&&-1===e.indexOf("Trident/")&&-1===e.indexOf("Edge/")||(F=!0)}catch(t){}return F}Zone.__load_patch("ZoneAwarePromise",function(e,t,n){var i=Object.getOwnPropertyDescriptor,s=Object.defineProperty,c=n.symbol,u=[],l=!0===e[c("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],f=c("Promise"),h=c("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(var e=function(){var e=u.shift();try{e.zone.runGuarded(function(){if(e.throwOriginal)throw e.rejection;throw e})}catch(r){!function(e){n.onUnhandledError(e);try{var r=t[p];"function"==typeof r&&r.call(this,e)}catch(o){}}(r)}};u.length;)e()};var p=c("unhandledPromiseRejectionHandler");function v(e){return e&&e.then}function d(e){return e}function k(e){return j.reject(e)}var g=c("state"),y=c("value"),_=c("finally"),m=c("parentPromiseValue"),b=c("parentPromiseState"),T=null,w=!0,E=!1;function Z(e,t){return function(n){try{D(e,t,n)}catch(r){D(e,!1,r)}}}var S=c("currentTaskTrace");function D(e,r,o){var a,i,c=(a=!1,function(e){return function(){a||(a=!0,e.apply(null,arguments))}});if(e===o)throw new TypeError("Promise resolved with itself");if(e[g]===T){var f=null;try{"object"!=typeof o&&"function"!=typeof o||(f=o&&o.then)}catch(k){return c(function(){D(e,!1,k)})(),e}if(r!==E&&o instanceof j&&o.hasOwnProperty(g)&&o.hasOwnProperty(y)&&o[g]!==T)O(o),D(e,o[g],o[y]);else if(r!==E&&"function"==typeof f)try{f.call(o,c(Z(e,r)),c(Z(e,!1)))}catch(k){c(function(){D(e,!1,k)})()}else{e[g]=r;var h=e[y];if(e[y]=o,e[_]===_&&r===w&&(e[g]=e[b],e[y]=e[m]),r===E&&o instanceof Error){var p=t.currentTask&&t.currentTask.data&&t.currentTask.data.__creationTrace__;p&&s(o,S,{configurable:!0,enumerable:!1,writable:!0,value:p})}for(var v=0;v<h.length;)C(e,h[v++],h[v++],h[v++],h[v++]);if(0==h.length&&r==E){e[g]=0;var d=o;try{throw new Error("Uncaught (in promise): "+((i=o)&&i.toString===Object.prototype.toString?(i.constructor&&i.constructor.name||"")+": "+JSON.stringify(i):i?i.toString():Object.prototype.toString.call(i))+(o&&o.stack?"\n"+o.stack:""))}catch(k){d=k}l&&(d.throwOriginal=!0),d.rejection=o,d.promise=e,d.zone=t.current,d.task=t.currentTask,u.push(d),n.scheduleMicroTask()}}}return e}var P=c("rejectionHandledHandler");function O(e){if(0===e[g]){try{var n=t[P];n&&"function"==typeof n&&n.call(this,{rejection:e[y],promise:e})}catch(o){}e[g]=E;for(var r=0;r<u.length;r++)e===u[r].promise&&u.splice(r,1)}}function C(e,t,n,r,o){O(e);var a=e[g],i=a?"function"==typeof r?r:d:"function"==typeof o?o:k;t.scheduleMicroTask("Promise.then",function(){try{var r=e[y],o=!!n&&_===n[_];o&&(n[m]=r,n[b]=a);var s=t.run(i,void 0,o&&i!==k&&i!==d?[]:[r]);D(n,!0,s)}catch(c){D(n,!1,c)}},n)}var z=function(){},j=function(){function e(t){o(this,e);var n=this;if(!(n instanceof e))throw new Error("Must be an instanceof Promise.");n[g]=T,n[y]=[];try{t&&t(Z(n,w),Z(n,E))}catch(r){D(n,!1,r)}}return a(e,[{key:Symbol.toStringTag,get:function(){return"Promise"}},{key:Symbol.species,get:function(){return e}},{key:"then",value:function(n,r){var o=this.constructor[Symbol.species];o&&"function"==typeof o||(o=this.constructor||e);var a=new o(z),i=t.current;return this[g]==T?this[y].push(i,a,n,r):C(this,i,a,n,r),a}},{key:"catch",value:function(e){return this.then(null,e)}},{key:"finally",value:function(n){var r=this.constructor[Symbol.species];r&&"function"==typeof r||(r=e);var o=new r(z);o[_]=_;var a=t.current;return this[g]==T?this[y].push(a,o,n,n):C(this,a,o,n,n),o}}],[{key:"toString",value:function(){return"function ZoneAwarePromise() { [native code] }"}},{key:"resolve",value:function(e){return D(new this(null),w,e)}},{key:"reject",value:function(e){return D(new this(null),E,e)}},{key:"race",value:function(e){var t,n,o=new this(function(e,r){t=e,n=r});function a(e){t(e)}function i(e){n(e)}var s,c=r(e);try{for(c.s();!(s=c.n()).done;){var u=s.value;v(u)||(u=this.resolve(u)),u.then(a,i)}}catch(l){c.e(l)}finally{c.f()}return o}},{key:"all",value:function(t){return e.allWithCallback(t)}},{key:"allSettled",value:function(t){return(this&&this.prototype instanceof e?this:e).allWithCallback(t,{thenCallback:function(e){return{status:"fulfilled",value:e}},errorCallback:function(e){return{status:"rejected",reason:e}}})}},{key:"allWithCallback",value:function(e,t){var n,o,a,i=this,s=new this(function(e,t){n=e,o=t}),c=2,u=0,l=[],f=r(e);try{var h=function(){var e=a.value;v(e)||(e=i.resolve(e));var r=u;try{e.then(function(e){l[r]=t?t.thenCallback(e):e,0==--c&&n(l)},function(e){t?(l[r]=t.errorCallback(e),0==--c&&n(l)):o(e)})}catch(s){o(s)}c++,u++};for(f.s();!(a=f.n()).done;)h()}catch(p){f.e(p)}finally{f.f()}return 0==(c-=2)&&n(l),s}}]),e}();j.resolve=j.resolve,j.reject=j.reject,j.race=j.race,j.all=j.all;var x=e[f]=e.Promise;e.Promise=j;var I=c("thenPatched");function M(e){var t=e.prototype,n=i(t,"then");if(!n||!1!==n.writable&&n.configurable){var r=t.then;t[h]=r,e.prototype.then=function(e,t){var n=this;return new j(function(e,t){r.call(n,e,t)}).then(e,t)},e[I]=!0}}return n.patchThen=M,x&&(M(x),N(e,"fetch",function(e){return t=e,function(e,n){var r=t.apply(e,n);if(r instanceof j)return r;var o=r.constructor;return o[I]||M(o),r};var t})),Promise[t.__symbol__("uncaughtPromiseErrors")]=u,j}),Zone.__load_patch("toString",function(e){var t=Function.prototype.toString,n=m("OriginalDelegate"),r=m("Promise"),o=m("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 s=e[o];if(s)return t.call(s)}}return t.call(this)};a[n]=t,Function.prototype.toString=a;var i=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":i.call(this)}});var G=!1;if("undefined"!=typeof window)try{var B=Object.defineProperty({},"passive",{get:function(){G=!0}});window.addEventListener("test",B,B),window.removeEventListener("test",B,B)}catch(ge){G=!1}var U={useG:!0},W={},V={},X=new RegExp("^"+g+"(\\w+)(true|false)$"),Y=m("propagationStopped");function J(e,t){var n=(t?t(e):e)+k,r=(t?t(e):e)+d,o=g+n,a=g+r;W[e]={},W[e].false=o,W[e].true=a}function K(e,t,n){var r=n&&n.add||f,o=n&&n.rm||h,a=n&&n.listeners||"eventListeners",i=n&&n.rmAll||"removeAllListeners",s=m(r),u="."+r+":",l=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 a=e.options;a&&"object"==typeof a&&a.once&&t[o].call(t,n.type,e.originalDelegate?e.originalDelegate:e.callback,a)}},p=function(t){if(t=t||e.event){var n=this||t.target||e,r=n[W[t.type].false];if(r)if(1===r.length)l(r[0],n,t);else for(var o=r.slice(),a=0;a<o.length&&(!t||!0!==t[Y]);a++)l(o[a],n,t)}},v=function(t){if(t=t||e.event){var n=this||t.target||e,r=n[W[t.type].true];if(r)if(1===r.length)l(r[0],n,t);else for(var o=r.slice(),a=0;a<o.length&&(!t||!0!==t[Y]);a++)l(o[a],n,t)}};function y(t,n){if(!t)return!1;var l=!0;n&&void 0!==n.useG&&(l=n.useG);var f=n&&n.vh,h=!0;n&&void 0!==n.chkDup&&(h=n.chkDup);var y=!1;n&&void 0!==n.rt&&(y=n.rt);for(var _=t;_&&!_.hasOwnProperty(r);)_=c(_);if(!_&&t[r]&&(_=t),!_)return!1;if(_[s])return!1;var b,T=n&&n.eventNameToString,w={},E=_[s]=_[r],Z=_[m(o)]=_[o],S=_[m(a)]=_[a],D=_[m(i)]=_[i];function O(e,t){return!G&&"object"==typeof e&&e?!!e.capture:G&&t?"boolean"==typeof e?{capture:e,passive:!0}:e?"object"==typeof e&&!1!==e.passive?Object.assign(Object.assign({},e),{passive:!0}):e:{passive:!0}:e}n&&n.prepend&&(b=_[m(n.prepend)]=_[n.prepend]);var C=l?function(e){if(!w.isExisting)return E.call(w.target,w.eventName,w.capture?v:p,w.options)}:function(e){return E.call(w.target,w.eventName,e.invoke,w.options)},z=l?function(e){if(!e.isRemoved){var t,n=W[e.eventName];n&&(t=n[e.capture?d:k]);var r=t&&e.target[t];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[t]=null);break}}if(e.allRemoved)return Z.call(e.target,e.eventName,e.capture?v:p,e.options)}:function(e){return Z.call(e.target,e.eventName,e.invoke,e.options)},j=n&&n.diff?n.diff:function(e,t){var n=typeof t;return"function"===n&&e.callback===t||"object"===n&&e.originalDelegate===t},x=Zone[m("UNPATCHED_EVENTS")],I=e[m("PASSIVE_EVENTS")],M=function(t,r,o,a){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return function(){var c=this||e,u=arguments[0];n&&n.transferEventName&&(u=n.transferEventName(u));var p=arguments[1];if(!p)return t.apply(this,arguments);if(P&&"uncaughtException"===u)return t.apply(this,arguments);var v=!1;if("function"!=typeof p){if(!p.handleEvent)return t.apply(this,arguments);v=!0}if(!f||f(t,p,c,arguments)){var g=G&&!!I&&-1!==I.indexOf(u),y=O(arguments[2],g);if(x)for(var _=0;_<x.length;_++)if(u===x[_])return g?t.call(c,u,p,y):t.apply(this,arguments);var m=!!y&&("boolean"==typeof y||y.capture),b=!(!y||"object"!=typeof y)&&y.once,E=Zone.current,Z=W[u];Z||(J(u,T),Z=W[u]);var S,D=Z[m?d:k],C=c[D],z=!1;if(C){if(z=!0,h)for(var M=0;M<C.length;M++)if(j(C[M],p))return}else C=c[D]=[];var R=c.constructor.name,N=V[R];N&&(S=N[u]),S||(S=R+r+(T?T(u):u)),w.options=y,b&&(w.options.once=!1),w.target=c,w.capture=m,w.eventName=u,w.isExisting=z;var A=l?U:void 0;A&&(A.taskData=w);var L=E.scheduleEventTask(S,p,A,o,a);return w.target=null,A&&(A.taskData=null),b&&(y.once=!0),(G||"boolean"!=typeof L.options)&&(L.options=y),L.target=c,L.capture=m,L.eventName=u,v&&(L.originalDelegate=p),s?C.unshift(L):C.push(L),i?c:void 0}}};return _[r]=M(E,u,C,z,y),b&&(_.prependListener=M(b,".prependListener:",function(e){return b.call(w.target,w.eventName,e.invoke,w.options)},z,y,!0)),_[o]=function(){var t=this||e,r=arguments[0];n&&n.transferEventName&&(r=n.transferEventName(r));var o=arguments[2],a=!!o&&("boolean"==typeof o||o.capture),i=arguments[1];if(!i)return Z.apply(this,arguments);if(!f||f(Z,i,t,arguments)){var s,c=W[r];c&&(s=c[a?d:k]);var u=s&&t[s];if(u)for(var l=0;l<u.length;l++){var h=u[l];if(j(h,i)){if(u.splice(l,1),h.isRemoved=!0,0===u.length&&(h.allRemoved=!0,t[s]=null,"string"==typeof r)){var p=g+"ON_PROPERTY"+r;t[p]=null}return h.zone.cancelTask(h),y?t:void 0}}return Z.apply(this,arguments)}},_[a]=function(){var t=this||e,r=arguments[0];n&&n.transferEventName&&(r=n.transferEventName(r));for(var o=[],a=$(t,T?T(r):r),i=0;i<a.length;i++){var s=a[i],c=s.originalDelegate?s.originalDelegate:s.callback;o.push(c)}return o},_[i]=function(){var t=this||e,r=arguments[0];if(r){n&&n.transferEventName&&(r=n.transferEventName(r));var a=W[r];if(a){var s=a.false,c=a.true,u=t[s],l=t[c];if(u)for(var f=u.slice(),h=0;h<f.length;h++){var p=f[h],v=p.originalDelegate?p.originalDelegate:p.callback;this[o].call(this,r,v,p.options)}if(l)for(var d=l.slice(),k=0;k<d.length;k++){var g=d[k],_=g.originalDelegate?g.originalDelegate:g.callback;this[o].call(this,r,_,g.options)}}}else{for(var m=Object.keys(t),b=0;b<m.length;b++){var T=m[b],w=X.exec(T),E=w&&w[1];E&&"removeListener"!==E&&this[i].call(this,E)}this[i].call(this,"removeListener")}if(y)return this},L(_[r],E),L(_[o],Z),D&&L(_[i],D),S&&L(_[a],S),!0}for(var _=[],b=0;b<t.length;b++)_[b]=y(t[b],n);return _}function $(e,t){if(!t){var n=[];for(var r in e){var o=X.exec(r),a=o&&o[1];if(a&&(!t||a===t)){var i=e[r];if(i)for(var s=0;s<i.length;s++)n.push(i[s])}}return n}var c=W[t];c||(J(t),c=W[t]);var u=e[c.false],l=e[c.true];return u?l?u.concat(l):u.slice():l?l.slice():[]}function Q(e,t){var n=e.Event;n&&n.prototype&&t.patchMethod(n.prototype,"stopImmediatePropagation",function(e){return function(t,n){t[Y]=!0,e&&e.apply(t,n)}})}function ee(e,t,n,r,o){var a=Zone.__symbol__(r);if(!t[a]){var i=t[a]=t[r];t[r]=function(a,s,c){return s&&s.prototype&&o.forEach(function(t){var o="".concat(n,".").concat(r,"::")+t,a=s.prototype;if(a.hasOwnProperty(t)){var i=e.ObjectGetOwnPropertyDescriptor(a,t);i&&i.value?(i.value=e.wrapWithCurrentZone(i.value,o),e._redefineProperty(s.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,s,c)},e.attachOriginToPatched(t[r],i)}}var te=["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","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],ne=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],re=["load"],oe=["blur","error","focus","load","resize","scroll","messageerror"],ae=["bounce","finish","start"],ie=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],se=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],ce=["close","error","open","message"],ue=["error","message"],le=["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"],te,["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 fe(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 he(e,t,n,r){e&&I(e,fe(e,t,n),r)}function pe(e,t){if((!P||C)&&!Zone[e.symbol("patchEvents")]){var n="undefined"!=typeof WebSocket,r=t.__Zone_ignore_on_properties;if(O){var o=window,a=function(){try{var e=T.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(t){}return!1}()?[{target:o,ignoreProperties:["error"]}]:[];he(o,le.concat(["messageerror"]),r?r.concat(a):r,c(o)),he(Document.prototype,le,r),void 0!==o.SVGElement&&he(o.SVGElement.prototype,le,r),he(Element.prototype,le,r),he(HTMLElement.prototype,le,r),he(HTMLMediaElement.prototype,ne,r),he(HTMLFrameSetElement.prototype,te.concat(oe),r),he(HTMLBodyElement.prototype,te.concat(oe),r),he(HTMLFrameElement.prototype,re,r),he(HTMLIFrameElement.prototype,re,r);var i=o.HTMLMarqueeElement;i&&he(i.prototype,ae,r);var s=o.Worker;s&&he(s.prototype,ue,r)}var u=t.XMLHttpRequest;u&&he(u.prototype,ie,r);var l=t.XMLHttpRequestEventTarget;l&&he(l&&l.prototype,ie,r),"undefined"!=typeof IDBIndex&&(he(IDBIndex.prototype,se,r),he(IDBRequest.prototype,se,r),he(IDBOpenDBRequest.prototype,se,r),he(IDBDatabase.prototype,se,r),he(IDBTransaction.prototype,se,r),he(IDBCursor.prototype,se,r)),n&&he(WebSocket.prototype,ce,r)}}Zone.__load_patch("util",function(e,t,n){n.patchOnProperties=I,n.patchMethod=N,n.bindArguments=Z,n.patchMacroTask=A;var r=t.__symbol__("BLACK_LISTED_EVENTS"),o=t.__symbol__("UNPATCHED_EVENTS");e[o]&&(e[r]=e[o]),e[r]&&(t[r]=t[o]=e[r]),n.patchEventPrototype=Q,n.patchEventTarget=K,n.isIEOrEdge=q,n.ObjectDefineProperty=s,n.ObjectGetOwnPropertyDescriptor=i,n.ObjectCreate=u,n.ArraySlice=l,n.patchClass=R,n.wrapWithCurrentZone=y,n.filterProperties=fe,n.attachOriginToPatched=L,n._redefineProperty=Object.defineProperty,n.patchCallbacks=ee,n.getGlobalObjects=function(){return{globalSources:V,zoneSymbolEventNames:W,eventNames:le,isBrowser:O,isMix:C,isNode:P,TRUE_STR:d,FALSE_STR:k,ZONE_SYMBOL_PREFIX:g,ADD_EVENT_LISTENER_STR:f,REMOVE_EVENT_LISTENER_STR:h}}});var ve=m("zoneTask");function de(e,t,n,r){var o=null,a=null;n+=r;var i={};function s(t){var n=t.data;return n.args[0]=function(){return t.invoke.apply(this,arguments)},n.handleId=o.apply(e,n.args),t}function c(t){return a.call(e,t.data.handleId)}o=N(e,t+=r,function(n){return function(o,a){if("function"==typeof a[0]){var u={isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?a[1]||0:void 0,args:a},l=a[0];a[0]=function(){try{return l.apply(this,arguments)}finally{u.isPeriodic||("number"==typeof u.handleId?delete i[u.handleId]:u.handleId&&(u.handleId[ve]=null))}};var f=_(t,a[0],u,s,c);if(!f)return f;var h=f.data.handleId;return"number"==typeof h?i[h]=f:h&&(h[ve]=f),h&&h.ref&&h.unref&&"function"==typeof h.ref&&"function"==typeof h.unref&&(f.ref=h.ref.bind(h),f.unref=h.unref.bind(h)),"number"==typeof h||h?h:f}return n.apply(e,a)}}),a=N(e,n,function(t){return function(n,r){var o,a=r[0];"number"==typeof a?o=i[a]:(o=a&&a[ve])||(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[ve]=null),o.zone.cancelTask(o)):t.apply(e,r)}})}function ke(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,s=n.ZONE_SYMBOL_PREFIX,c=0;c<r.length;c++){var u=r[c],l=s+(u+i),f=s+(u+a);o[u]={},o[u][i]=l,o[u][a]=f}var h=e.EventTarget;if(h&&h.prototype)return t.patchEventTarget(e,[h&&h.prototype]),!0}}Zone.__load_patch("legacy",function(e){var t=e[Zone.__symbol__("legacyPatch")];t&&t()}),Zone.__load_patch("queueMicrotask",function(e,t,n){n.patchMethod(e,"queueMicrotask",function(e){return function(e,n){t.current.scheduleMicroTask("queueMicrotask",n[0])}})}),Zone.__load_patch("timers",function(e){var t="set",n="clear";de(e,t,n,"Timeout"),de(e,t,n,"Interval"),de(e,t,n,"Immediate")}),Zone.__load_patch("requestAnimationFrame",function(e){de(e,"request","cancel","AnimationFrame"),de(e,"mozRequest","mozCancel","AnimationFrame"),de(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",function(e,t){for(var n=["alert","prompt","confirm"],r=0;r<n.length;r++)N(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),ke(e,n);var r=e.XMLHttpRequestEventTarget;r&&r.prototype&&n.patchEventTarget(e,[r.prototype])}),Zone.__load_patch("MutationObserver",function(e,t,n){R("MutationObserver"),R("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",function(e,t,n){R("IntersectionObserver")}),Zone.__load_patch("FileReader",function(e,t,n){R("FileReader")}),Zone.__load_patch("on_property",function(e,t,n){pe(n,e)}),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 c=e.XMLHttpRequest;if(c){var u=c.prototype,l=u[p],f=u[v];if(!l){var h=e.XMLHttpRequestEventTarget;if(h){var d=h.prototype;l=d[p],f=d[v]}}var k="readystatechange",g="scheduled",y=N(u,"open",function(){return function(e,t){return e[r]=0==t[2],e[i]=t[1],y.apply(e,t)}}),b=m("fetchTaskAborting"),T=m("fetchTaskScheduling"),w=N(u,"send",function(){return function(e,n){if(!0===t.current[T])return w.apply(e,n);if(e[r])return w.apply(e,n);var o={target:e,url:e[i],isPeriodic:!1,args:n,aborted:!1},a=_("XMLHttpRequest.send",S,o,Z,D);e&&!0===e[s]&&!o.aborted&&a.state===g&&a.invoke()}}),E=N(u,"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[b])return E.apply(e,r)}})}function Z(e){var r=e.data,i=r.target;i[a]=!1,i[s]=!1;var c=i[o];l||(l=i[p],f=i[v]),c&&f.call(i,k,c);var u=i[o]=function(){if(i.readyState===i.DONE)if(!r.aborted&&i[a]&&e.state===g){var n=i[t.__symbol__("loadfalse")];if(0!==i.status&&n&&n.length>0){var o=e.invoke;e.invoke=function(){for(var n=i[t.__symbol__("loadfalse")],a=0;a<n.length;a++)n[a]===e&&n.splice(a,1);r.aborted||e.state!==g||o.call(e)},n.push(e)}else e.invoke()}else r.aborted||!1!==i[a]||(i[s]=!0)};return l.call(i,k,u),i[n]||(i[n]=e),w.apply(i,r.args),i[a]=!0,e}function S(){}function D(e){var t=e.data;return t.aborted=!0,E.apply(t.target,t.args)}}(e);var n=m("xhrTask"),r=m("xhrSync"),o=m("xhrListener"),a=m("xhrScheduled"),i=m("xhrURL"),s=m("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",function(e){e.navigator&&e.navigator.geolocation&&function(e,t){for(var n=e.constructor.name,r=function(r){var o=t[r],a=e[o];if(a){if(!S(i(e,o)))return"continue";e[o]=function(e){var t=function(){return e.apply(this,Z(arguments,n+"."+o))};return L(t,e),t}(a)}},o=0;o<t.length;o++)r(o)}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",function(e,t){function n(t){return function(n){$(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[m("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[m("rejectionHandledHandler")]=n("rejectionhandled"))})},60818:function(e,t,n){"use strict";n(18787)}},function(e){"use strict";e(e.s=60818)}]); |