angular2
Version:
Angular 2 - a web framework for modern web apps
1 lines • 29.3 kB
JavaScript
!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){(function(t){"use strict";var e=n(1),r=n(2),o=n(6),i=n(10);o.Zone.prototype.scheduleMicrotask?console.warn("Zone-microtasks already exported on window the object!"):(e.addMicrotaskSupport(o.Zone),t.Zone=o.Zone,t.zone=new t.Zone,t.Promise=r.Promise,i.apply())}).call(e,function(){return this}())},function(t,e,n){(function(t){function r(t){c._asap(this.bind(t))}function o(t){return t.prototype.scheduleMicrotask=r,t}var i,a="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]"),u=t.navigator&&t.navigator.userAgent.toLowerCase().indexOf("firefox")>-1;a&&!u&&(i=Promise.resolve());var c=n(2).Promise;i&&c._setScheduler(function(t){i.then(t)}),c._setAsap(function(e,n){t.zone.scheduleMicrotask(function(){e(n)})}),e.addMicrotaskSupport=o}).call(e,function(){return this}())},function(t,e,n){var r;(function(t,o){(function(){"use strict";function i(t){return"function"==typeof t||"object"==typeof t&&null!==t}function a(t){return"function"==typeof t}function u(t){return"object"==typeof t&&null!==t}function c(t){X=t}function s(t){V=t}function f(){return function(){process.nextTick(y)}}function p(){return function(){U(y)}}function l(){var t=0,e=new Q(y),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function h(){var t=new MessageChannel;return t.port1.onmessage=y,function(){t.port2.postMessage(0)}}function d(){return function(){setTimeout(y,1)}}function y(){for(var t=0;B>t;t+=2){var e=nt[t],n=nt[t+1];e(n),nt[t]=void 0,nt[t+1]=void 0}B=0}function v(){try{var t=n(4);return U=t.runOnLoop||t.runOnContext,p()}catch(e){return d()}}function g(){}function m(){return new TypeError("You cannot resolve a promise with itself")}function b(){return new TypeError("A promises callback cannot return that same promise.")}function w(t){try{return t.then}catch(e){return at.error=e,at}}function k(t,e,n,r){try{t.call(e,n,r)}catch(o){return o}}function _(t,e,n){V(function(t){var r=!1,o=k(n,e,function(n){r||(r=!0,e!==n?P(t,n):j(t,n))},function(e){r||(r=!0,M(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,M(t,o))},t)}function E(t,e){e._state===ot?j(t,e._result):e._state===it?M(t,e._result):S(e,void 0,function(e){P(t,e)},function(e){M(t,e)})}function T(t,e){if(e.constructor===t.constructor)E(t,e);else{var n=w(e);n===at?M(t,at.error):void 0===n?j(t,e):a(n)?_(t,e,n):j(t,e)}}function P(t,e){t===e?M(t,m()):i(e)?T(t,e):j(t,e)}function O(t){t._onerror&&t._onerror(t._result),A(t)}function j(t,e){t._state===rt&&(t._result=e,t._state=ot,0!==t._subscribers.length&&V(A,t))}function M(t,e){t._state===rt&&(t._state=it,t._result=e,V(O,t))}function S(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+ot]=n,o[i+it]=r,0===i&&t._state&&V(A,t)}function A(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r,o,i=t._result,a=0;a<e.length;a+=3)r=e[a],o=e[a+n],r?L(n,r,o,i):o(i);t._subscribers.length=0}}function z(){this.error=null}function x(t,e){try{return t(e)}catch(n){return ut.error=n,ut}}function L(t,e,n,r){var o,i,u,c,s=a(n);if(s){if(o=x(n,r),o===ut?(c=!0,i=o.error,o=null):u=!0,e===o)return void M(e,b())}else o=r,u=!0;e._state!==rt||(s&&u?P(e,o):c?M(e,i):t===ot?j(e,o):t===it&&M(e,o))}function F(t,e){try{e(function(e){P(t,e)},function(e){M(t,e)})}catch(n){M(t,n)}}function R(t,e){var n=this;n._instanceConstructor=t,n.promise=new t(g),n._validateInput(e)?(n._input=e,n.length=e.length,n._remaining=e.length,n._init(),0===n.length?j(n.promise,n._result):(n.length=n.length||0,n._enumerate(),0===n._remaining&&j(n.promise,n._result))):M(n.promise,n._validationError())}function C(t){return new ct(this,t).promise}function W(t){function e(t){P(o,t)}function n(t){M(o,t)}var r=this,o=new r(g);if(!K(t))return M(o,new TypeError("You must pass an array to race.")),o;for(var i=t.length,a=0;o._state===rt&&i>a;a++)S(r.resolve(t[a]),void 0,e,n);return o}function q(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(g);return P(n,t),n}function Z(t){var e=this,n=new e(g);return M(n,t),n}function I(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function D(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function N(t){this._id=ht++,this._state=void 0,this._result=void 0,this._subscribers=[],g!==t&&(a(t)||I(),this instanceof N||D(),F(this,t))}function $(){var e;if("undefined"!=typeof t)e=t;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(n){throw new Error("polyfill failed because global object is unavailable in this environment")}var r=e.Promise;(!r||"[object Promise]"!==Object.prototype.toString.call(r.resolve())||r.cast)&&(e.Promise=dt)}var H;H=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var U,X,G,K=H,B=0,V=({}.toString,function(t,e){nt[B]=t,nt[B+1]=e,B+=2,2===B&&(X?X(y):G())}),Y="undefined"!=typeof window?window:void 0,J=Y||{},Q=J.MutationObserver||J.WebKitMutationObserver,tt="undefined"!=typeof process&&"[object process]"==={}.toString.call(process),et="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,nt=new Array(1e3);G=tt?f():Q?l():et?h():void 0===Y?v():d();var rt=void 0,ot=1,it=2,at=new z,ut=new z;R.prototype._validateInput=function(t){return K(t)},R.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},R.prototype._init=function(){this._result=new Array(this.length)};var ct=R;R.prototype._enumerate=function(){for(var t=this,e=t.length,n=t.promise,r=t._input,o=0;n._state===rt&&e>o;o++)t._eachEntry(r[o],o)},R.prototype._eachEntry=function(t,e){var n=this,r=n._instanceConstructor;u(t)?t.constructor===r&&t._state!==rt?(t._onerror=null,n._settledAt(t._state,e,t._result)):n._willSettleAt(r.resolve(t),e):(n._remaining--,n._result[e]=t)},R.prototype._settledAt=function(t,e,n){var r=this,o=r.promise;o._state===rt&&(r._remaining--,t===it?M(o,n):r._result[e]=n),0===r._remaining&&j(o,r._result)},R.prototype._willSettleAt=function(t,e){var n=this;S(t,void 0,function(t){n._settledAt(ot,e,t)},function(t){n._settledAt(it,e,t)})};var st=C,ft=W,pt=q,lt=Z,ht=0,dt=N;N.all=st,N.race=ft,N.resolve=pt,N.reject=lt,N._setScheduler=c,N._setAsap=s,N._asap=V,N.prototype={constructor:N,then:function(t,e){var n=this,r=n._state;if(r===ot&&!t||r===it&&!e)return this;var o=new this.constructor(g),i=n._result;if(r){var a=arguments[r-1];V(function(){L(r,o,a,i)})}else S(n,o,t,e);return o},"catch":function(t){return this.then(null,t)}};var yt=$,vt={Promise:dt,polyfill:yt};n(5).amd?(r=function(){return vt}.call(e,n,e,o),!(void 0!==r&&(o.exports=r))):"undefined"!=typeof o&&o.exports?o.exports=vt:"undefined"!=typeof this&&(this.ES6Promise=vt),yt()}).call(this)}).call(e,function(){return this}(),n(3)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e){},function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},function(t,e,n){(function(t){function r(t,e){a.hasOwnProperty(t)||(a[t]=!0,console.warn("DEPRECATION WARNING: '"+t+"' is no longer supported and will be removed in next major release. "+e))}var o=n(7),i=n(8),a={},u=function(){function e(t,n){this.parent=null,this.onError=null;var r=arguments.length?Object.create(t):this;return r.parent=t||null,Object.keys(n||{}).forEach(function(e){var o=e.substr(1);"$"===e[0]?r[o]=n[e](t[o]||function(){}):"+"===e[0]?t[o]?r[o]=function(){var r=t[o].apply(this,arguments);return n[e].apply(this,arguments),r}:r[o]=n[e]:"-"===e[0]?t[o]?r[o]=function(){return n[e].apply(this,arguments),t[o].apply(this,arguments)}:r[o]=n[e]:r[e]="object"==typeof n[e]?JSON.parse(JSON.stringify(n[e])):n[e]}),r.$id=e.nextId++,r}return e.prototype.fork=function(t){return this.onZoneCreated(),new e(this,t)},e.prototype.bind=function(t,e){if("function"!=typeof t)throw new Error("Expecting function got: "+t);e||this.enqueueTask(t);var n=this.isRootZone()?this:this.fork();return function(){return n.run(t,this,arguments)}},e.prototype.bindOnce=function(t){r("bindOnce","There is no replacement.");var e=this;return this.bind(function(){var n=t.apply(this,arguments);return e.dequeueTask(t),n})},e.prototype.isRootZone=function(){return null===this.parent},e.prototype.run=function(e,n,r){r=r||[];var o=t.zone;t.zone=this;try{return this.beforeTask(),e.apply(n,r)}catch(i){if(!this.onError)throw i;this.onError(i)}finally{this.afterTask(),t.zone=o}},e.prototype.beforeTask=function(){},e.prototype.onZoneCreated=function(){},e.prototype.afterTask=function(){},e.prototype.enqueueTask=function(t){r("enqueueTask","Use addTask/addRepeatingTask/addMicroTask")},e.prototype.dequeueTask=function(t){r("dequeueTask","Use removeTask/removeRepeatingTask/removeMicroTask")},e.prototype.addTask=function(t){this.enqueueTask(t)},e.prototype.removeTask=function(t){this.dequeueTask(t)},e.prototype.addRepeatingTask=function(t){this.enqueueTask(t)},e.prototype.removeRepeatingTask=function(t){this.dequeueTask(t)},e.prototype.addMicrotask=function(t){this.enqueueTask(t)},e.prototype.removeMicrotask=function(t){this.dequeueTask(t)},e.prototype.addEventListener=function(){return this[o.common.addEventListener].apply(this,arguments)},e.prototype.removeEventListener=function(){return this[o.common.removeEventListener].apply(this,arguments)},e.nextId=1,e.bindPromiseFn=i.bindPromiseFn,e}();e.Zone=u}).call(e,function(){return this}())},function(t,e){function n(t){return"_zone$"+t}e.create=n,e.common={addEventListener:n("addEventListener"),removeEventListener:n("removeEventListener")}},function(t,e,n){(function(r){function o(t,n){var o=r,i=t.every(function(t){return o=o[t]});i&&n.forEach(function(t){var n=o[t];n&&(o[t]=e.bindPromiseFn(n))})}function i(t){var e=t.then;t.then=function(){var n=u.bindArguments(arguments),r=e.apply(t,n);return i(r)};var n=t["catch"];return t["catch"]=function(){var e=u.bindArguments(arguments),r=n.apply(t,e);return i(r)},t}function a(){if(r.Promise){u.patchPrototype(Promise.prototype,["then","catch"]);var t=[[[],["fetch"]],[["Response","prototype"],["arrayBuffer","blob","json","text"]]];t.forEach(function(t){o(t[0],t[1])})}}var u=n(9);r.Promise?e.bindPromiseFn=function(t){return function(){var e=t.apply(this,arguments);return e instanceof Promise?e:new Promise(function(t,n){e.then(t,n)})}}:e.bindPromiseFn=function(t){return function(){return i(t.apply(this,arguments))}},e.apply=a,t.exports={apply:a,bindPromiseFn:e.bindPromiseFn}}).call(e,function(){return this}())},function(t,e,n){(function(t){function r(e){for(var n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=t.zone.bind(e[n]));return e}function o(t,e){e.forEach(function(e){var n=t[e];n&&(t[e]=function(){return n.apply(this,r(arguments))})})}function i(){return"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope}function a(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function u(t,e){var n=Object.getOwnPropertyDescriptor(t,e)||{enumerable:!0,configurable:!0};delete n.writable,delete n.value;var r=e.substr(2),o="_"+e;n.set=function(t){this[o]&&this.removeEventListener(r,this[o]),"function"==typeof t?(this[o]=t,this.addEventListener(r,t,!1)):this[o]=null},n.get=function(){return this[o]},Object.defineProperty(t,e,n)}function c(t,e){(e||function(){var e=[];for(var n in t)e.push(n);return e}().filter(function(t){return"on"===t.substr(0,2)})).forEach(function(e){u(t,e)})}function s(e){e[p.common.addEventListener]=e.addEventListener,e.addEventListener=function(e,n,r){if(n&&"[object FunctionWrapper]"!==n.toString()){var o,i=e+(r?"$capturing":"$bubbling");o=n.handleEvent?function(t){return function(){t.handleEvent.apply(t,arguments)}}(n):n,n[l]=o,n[h]=n[h]||{},n[h][i]=n[h][i]||t.zone.bind(o),arguments[1]=n[h][i]}var a=this||t;return t.zone.addEventListener.apply(a,arguments)},e[p.common.removeEventListener]=e.removeEventListener,e.removeEventListener=function(e,n,r){var o=e+(r?"$capturing":"$bubbling");if(n&&n[h]&&n[h][o]){var i=n[h];arguments[1]=i[o],delete i[o],t.zone.dequeueTask(n[l])}var a=this||t,u=t.zone.removeEventListener.apply(a,arguments);return u}}function f(e){var n=t[e];if(n){t[e]=function(){var t=r(arguments);switch(t.length){case 0:this[d]=new n;break;case 1:this[d]=new n(t[0]);break;case 2:this[d]=new n(t[0],t[1]);break;case 3:this[d]=new n(t[0],t[1],t[2]);break;case 4:this[d]=new n(t[0],t[1],t[2],t[3]);break;default:throw new Error("what are you even doing?")}};var o,i=new n;for(o in i)!function(n){"function"==typeof i[n]?t[e].prototype[n]=function(){return this[d][n].apply(this[d],arguments)}:Object.defineProperty(t[e].prototype,n,{set:function(e){"function"==typeof e?this[d][n]=t.zone.bind(e):this[d][n]=e},get:function(){return this[d][n]}})}(o);for(o in n)"prototype"!==o&&n.hasOwnProperty(o)&&(t[e][o]=n[o])}}var p=n(7);e.bindArguments=r,e.patchPrototype=o,e.isWebWorker=i,e.isNode=a,e.patchProperty=u,e.patchProperties=c;var l=p.create("originalFn"),h=p.create("boundFns");e.patchEventTargetMethods=s;var d=p.create("originalInstance");e.patchClass=f}).call(e,function(){return this}())},function(t,e,n){(function(t){function r(){o.patchSetClearFunction(t,t.Zone,[["setTimeout","clearTimeout",!1,!1],["setInterval","clearInterval",!0,!1],["setImmediate","clearImmediate",!1,!1],["requestAnimationFrame","cancelAnimationFrame",!1,!0],["mozRequestAnimationFrame","mozCancelAnimationFrame",!1,!0],["webkitRequestAnimationFrame","webkitCancelAnimationFrame",!1,!0]]),o.patchFunction(t,["alert","prompt"]),s.apply(),f.apply(),i.apply(),a.patchClass("MutationObserver"),a.patchClass("WebKitMutationObserver"),u.apply(),c.apply(),p.apply(),l.apply()}var o=n(11),i=n(8),a=n(13),u=n(14),c=n(15),s=n(16),f=n(17),p=n(19),l=n(20);e.apply=r}).call(e,function(){return this}())},function(t,e,n){(function(t){function r(e,n,r){function o(r,o,a,u){var c=e[r],s=e[o],f={};if(c){var p=i.createEvent("Zone#"+r+"(uint32 zone, uint32 id, uint32 delay)"),l=i.createEvent("Zone#"+o+"(uint32 zone, uint32 id)"),h=i.createScope("Zone#cb:"+r+"(uint32 zone, uint32 id, uint32 delay)");e[r]=function(){return t.zone[r].apply(t.zone,arguments)},e[o]=function(){return t.zone[o].apply(t.zone,arguments)},n.prototype[r]=function(t,n){var r=t;"function"!=typeof r&&c.apply(e,arguments);var o=this,s=null;return arguments[0]=function(){var t=o.isRootZone()||u?o:o.fork(),e=this,c=arguments;return i.leaveScope(h(t.$id,s,n),t.run(function(){return a||(delete f[s],t.removeTask(r)),r.apply(e,c)}))},a?o.addRepeatingTask(r):o.addTask(r),s=c.apply(e,arguments),f[s]=r,p(o.$id,s,n),s},n.prototype[r+"Unpatched"]=function(){return c.apply(e,arguments)},n.prototype[o]=function(t){if(l(this.$id,t),f.hasOwnProperty(t)){var n=f[t];delete f[t],a?this.removeRepeatingTask(n):this.removeTask(n)}return s.apply(e,arguments)},n.prototype[o+"Unpatched"]=function(){return s.apply(e,arguments)}}}r.forEach(function(t){o.apply(null,t)})}function o(e,n){n.forEach(function(n){var r=e[n];t.zone[n]=function(){return r.apply(e,arguments)},e[n]=function(){return t.zone[n].apply(this,arguments)}})}var i=n(12);e.patchSetClearFunction=r,e.patchFunction=o}).call(e,function(){return this}())},function(t,e){(function(t){function n(){}var r=null,o=null,i=function(){var e=t.wtf;return e&&(r=e.trace)?(o=r.events,!0):!1}();e.enabled=i,e.createScope=i?function(t,e){return o.createScope(t,e)}:function(t,e){return n},e.createEvent=i?function(t,e){return o.createInstance(t,e)}:function(t,e){return n},e.leaveScope=i?function(t,e){return r.leaveScope(t,e),e}:function(t,e){return e},e.beginTimeRange=i?function(t,e){return r.beginTimeRange(t,e)}:function(t,e){return null},e.endTimeRange=i?function(t){r.endTimeRange(t)}:function(t){}}).call(e,function(){return this}())},function(t,e,n){(function(t){function r(e){var n=t[e];if(n){t[e]=function(e){this[i]=new n(t.zone.bind(e,!0)),this[a]=t.zone};var r=new n(function(){});t[e].prototype.disconnect=function(){var t=this[i].disconnect.apply(this[i],arguments);return this[u]&&(this[a].dequeueTask(),this[u]=!1),t},t[e].prototype.observe=function(){return this[u]||(this[a].enqueueTask(),this[u]=!0),this[i].observe.apply(this[i],arguments)};var o;for(o in r)!function(n){"undefined"==typeof t[e].prototype&&("function"==typeof r[n]?t[e].prototype[n]=function(){return this[i][n].apply(this[i],arguments)}:Object.defineProperty(t[e].prototype,n,{set:function(e){"function"==typeof e?this[i][n]=t.zone.bind(e):this[i][n]=e},get:function(){return this[i][n]}}))}(o)}}var o=n(7),i=o.create("originalInstance"),a=o.create("creationZone"),u=o.create("isActive");e.patchClass=r}).call(e,function(){return this}())},function(t,e,n){function r(){Object.defineProperty=function(t,e,n){if(i(t,e))throw new TypeError("Cannot assign to read only property '"+e+"' of "+t);return"prototype"!==e&&(n=a(t,e,n)),c(t,e,n)},Object.defineProperties=function(t,e){return Object.keys(e).forEach(function(n){Object.defineProperty(t,n,e[n])}),t},Object.create=function(t,e){return"object"==typeof e&&Object.keys(e).forEach(function(n){e[n]=a(t,n,e[n])}),f(t,e)},Object.getOwnPropertyDescriptor=function(t,e){var n=s(t,e);return i(t,e)&&(n.configurable=!1),n}}function o(t,e,n){return n=a(t,e,n),c(t,e,n)}function i(t,e){return t&&t[p]&&t[p][e]}function a(t,e,n){return n.configurable=!0,n.configurable||(t[p]||c(t,p,{writable:!0,value:{}}),t[p][e]=!0),n}var u=n(7),c=Object.defineProperty,s=Object.getOwnPropertyDescriptor,f=Object.create,p=u.create("unconfigurables");e.apply=r,e._redefineProperty=o},function(t,e,n){(function(t){function r(){if(!i.isWebWorker()&&!i.isNode()&&"registerElement"in t.document){var e=document.registerElement,n=["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"];document.registerElement=function(r,i){return i&&i.prototype&&n.forEach(function(e){if(i.prototype.hasOwnProperty(e)){var n=Object.getOwnPropertyDescriptor(i.prototype,e);n&&n.value?(n.value=t.zone.bind(n.value),o._redefineProperty(i.prototype,e,n)):i.prototype[e]=t.zone.bind(i.prototype[e])}else i.prototype[e]&&(i.prototype[e]=t.zone.bind(i.prototype[e]))}),e.apply(document,[r,i])}}}var o=n(14),i=n(9);e.apply=r}).call(e,function(){return this}())},function(t,e,n){(function(t){"use strict";function r(){if(t.EventTarget)o.patchEventTargetMethods(t.EventTarget.prototype);else{var e=["ApplicationCache","EventSource","FileReader","InputMethodContext","MediaController","MessagePort","Node","Performance","SVGElementInstance","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebKitNamedFlow","Worker","WorkerGlobalScope","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];e.forEach(function(e){var n=t[e]&&t[e].prototype;n&&n.addEventListener&&o.patchEventTargetMethods(n)}),"undefined"!=typeof window&&o.patchEventTargetMethods(window)}}var o=n(9);e.apply=r}).call(e,function(){return this}())},function(t,e,n){(function(t){function r(){if(!u.isNode()){var t="undefined"!=typeof WebSocket;if(o()){if(!u.isWebWorker()){var e=s.map(function(t){return"on"+t});u.patchProperties(HTMLElement.prototype,e)}u.patchProperties(XMLHttpRequest.prototype),t&&u.patchProperties(WebSocket.prototype)}else u.isWebWorker()||i(),u.patchClass("XMLHttpRequest"),t&&a.apply()}}function o(){if(!u.isWebWorker()&&!Object.getOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var t=Object.getOwnPropertyDescriptor(Element.prototype,"onclick");if(t&&!t.configurable)return!1}Object.defineProperty(XMLHttpRequest.prototype,"onreadystatechange",{get:function(){return!0}});var e=new XMLHttpRequest,n=!!e.onreadystatechange;return Object.defineProperty(XMLHttpRequest.prototype,"onreadystatechange",{}),n}function i(){s.forEach(function(e){var n="on"+e;document.addEventListener(e,function(e){for(var r,o=e.target;o;)o[n]&&!o[n][f]&&(r=t.zone.bind(o[n]),r[f]=o[n],o[n]=r),o=o.parentElement},!0)})}var a=n(18),u=n(9),c=n(7),s="copy cut paste abort blur focus canplay canplaythrough change click contextmenu dblclick drag dragend dragenter dragleave dragover dragstart drop durationchange emptied ended input invalid keydown keypress keyup load loadeddata loadedmetadata loadstart message mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup pause play playing progress ratechange reset scroll seeked seeking select show stalled submit suspend timeupdate volumechange waiting mozfullscreenchange mozfullscreenerror mozpointerlockchange mozpointerlockerror error webglcontextrestored webglcontextlost webglcontextcreationerror".split(" ");e.apply=r;var f=c.create("unbound")}).call(e,function(){return this}())},function(t,e,n){(function(t){function r(){var e=t.WebSocket;t.EventTarget||o.patchEventTargetMethods(e.prototype),t.WebSocket=function(t,n){var r,i=arguments.length>1?new e(t,n):new e(t),a=Object.getOwnPropertyDescriptor(i,"onmessage");return a&&a.configurable===!1?(r=Object.create(i),["addEventListener","removeEventListener","send","close"].forEach(function(t){r[t]=function(){return i[t].apply(i,arguments)}})):r=i,o.patchProperties(r,["onclose","onerror","onmessage","onopen"]),r}}var o=n(9);e.apply=r}).call(e,function(){return this}())},function(t,e,n){(function(t){function r(){t.navigator&&t.navigator.geolocation&&o.patchPrototype(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}var o=n(9);e.apply=r}).call(e,function(){return this}())},function(t,e,n){function r(){o.patchClass("FileReader")}var o=n(9);e.apply=r}]),function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){(function(t){var e=n(1);if(!t.Zone)throw new Error("zone.js should be installed before loading the long stack trace zone");t.Zone.longStackTraceZone=e.longStackTraceZone}).call(e,function(){return this}())},function(t,e){(function(t){"use strict";function n(t){this._e=t}function r(){return new n(new Error)}function o(){try{throw new Error}catch(t){return new n(t)}}n.prototype.get=function(){return t.zone.stackFramesFilter&&this._e.stack?this._e.stack.split("\n").filter(t.zone.stackFramesFilter).join("\n"):this._e.stack};var i=r(),a=i&&i._e.stack?r:o;e.longStackTraceZone={getLongStacktrace:function(t){var e=[],n=this;t&&(n.stackFramesFilter&&t.stack?e.push(t.stack.split("\n").filter(n.stackFramesFilter).join("\n")):e.push(t.stack));for(var r=Date.now();n&&n.constructedAtException;)e.push("--- "+new Date(n.constructedAtTime).toString()+" - "+(r-n.constructedAtTime)+"ms ago",n.constructedAtException.get()),n=n.parent;return e.join("\n")},stackFramesFilter:function(t){return!/zone(-microtask)?(\.min)?\.js/.test(t)},onError:function(t){var e=this.reporter||console.log.bind(console);e(t.toString()),e(this.getLongStacktrace(t))},$fork:function(t){return function(){var e=t.apply(this,arguments);return e.constructedAtException=a(),e.constructedAtTime=Date.now(),e}}}}).call(e,function(){return this}())}]);var Reflect;!function(t){function e(t,e,n,r){if(_(r)){if(_(n)){if(!E(t))throw new TypeError;if(!P(e))throw new TypeError;return p(t,e)}if(!E(t))throw new TypeError;if(!T(e))throw new TypeError;return n=j(n),h(t,e,n)}if(!E(t))throw new TypeError;if(!T(e))throw new TypeError;if(_(n))throw new TypeError;if(!T(r))throw new TypeError;return n=j(n),l(t,e,n,r)}function n(t,e){function n(n,r){if(_(r)){if(!P(n))throw new TypeError;b(t,e,n,void 0)}else{if(!T(n))throw new TypeError;r=j(r),b(t,e,n,r)}}return n}function r(t,e,n,r){if(!T(n))throw new TypeError;return _(r)||(r=j(r)),b(t,e,n,r)}function o(t,e,n){if(!T(e))throw new TypeError;return _(n)||(n=j(n)),y(t,e,n)}function i(t,e,n){if(!T(e))throw new TypeError;return _(n)||(n=j(n)),v(t,e,n)}function a(t,e,n){if(!T(e))throw new TypeError;return _(n)||(n=j(n)),g(t,e,n)}function u(t,e,n){if(!T(e))throw new TypeError;return _(n)||(n=j(n)),m(t,e,n)}function c(t,e){if(!T(t))throw new TypeError;return _(e)||(e=j(e)),w(t,e)}function s(t,e){if(!T(t))throw new TypeError;return _(e)||(e=j(e)),k(t,e)}function f(t,e,n){if(!T(e))throw new TypeError;_(n)||(n=j(n));var r=d(e,n,!1);if(_(r))return!1;if(!r["delete"](t))return!1;if(r.size>0)return!0;var o=C.get(e);return o["delete"](n),o.size>0?!0:(C["delete"](e),!0)}function p(t,e){for(var n=t.length-1;n>=0;--n){var r=t[n],o=r(e);if(!_(o)){if(!P(o))throw new TypeError;e=o}}return e}function l(t,e,n,r){for(var o=t.length-1;o>=0;--o){var i=t[o],a=i(e,n,r);if(!_(a)){if(!T(a))throw new TypeError;r=a}}return r}function h(t,e,n){for(var r=t.length-1;r>=0;--r){var o=t[r];o(e,n)}}function d(t,e,n){var r=C.get(t);if(!r){if(!n)return;r=new L,C.set(t,r)}var o=r.get(e);if(!o){if(!n)return;o=new L,r.set(e,o)}return o}function y(t,e,n){var r=v(t,e,n);if(r)return!0;var o=M(e);return null!==o?y(t,o,n):!1}function v(t,e,n){var r=d(e,n,!1);return void 0===r?!1:Boolean(r.has(t))}function g(t,e,n){var r=v(t,e,n);if(r)return m(t,e,n);var o=M(e);return null!==o?g(t,o,n):void 0}function m(t,e,n){var r=d(e,n,!1);if(void 0!==r)return r.get(t)}function b(t,e,n,r){var o=d(n,r,!0);o.set(t,e)}function w(t,e){var n=k(t,e),r=M(t);if(null===r)return n;var o=w(r,e);if(o.length<=0)return n;if(n.length<=0)return o;for(var i=new F,a=[],u=0;u<n.length;u++){var c=n[u],s=i.has(c);s||(i.add(c),a.push(c))}for(var f=0;f<o.length;f++){var c=o[f],s=i.has(c);s||(i.add(c),a.push(c))}return a}function k(t,e){var n=d(t,e,!1),r=[];return n&&n.forEach(function(t,e){return r.push(e)}),r}function _(t){return void 0===t}function E(t){return Array.isArray(t)}function T(t){return"object"==typeof t?null!==t:"function"==typeof t}function P(t){return"function"==typeof t}function O(t){return"symbol"==typeof t}function j(t){return O(t)?t:String(t)}function M(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===x)return e;if(e!==x)return e;var n=t.prototype,r=Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return e;var o=r.constructor;return"function"!=typeof o?e:o===t?e:o}function S(){function t(){this._keys=[],this._values=[],this._cache=e}var e={};return t.prototype={get size(){return this._keys.length},has:function(t){return t===this._cache?!0:this._find(t)>=0?(this._cache=t,!0):!1},get:function(t){var e=this._find(t);return e>=0?(this._cache=t,this._values[e]):void 0},set:function(t,e){return this["delete"](t),this._keys.push(t),this._values.push(e),this._cache=t,this},"delete":function(t){var n=this._find(t);return n>=0?(this._keys.splice(n,1),this._values.splice(n,1),this._cache=e,!0):!1},clear:function(){this._keys.length=0,this._values.length=0,this._cache=e},forEach:function(t,e){for(var n=this.size,r=0;n>r;++r){var o=this._keys[r],i=this._values[r];this._cache=o,t.call(this,i,o,this)}},_find:function(t){for(var e=this._keys,n=e.length,r=0;n>r;++r)if(e[r]===t)return r;return-1}},t}function A(){function t(){this._map=new L}return t.prototype={get size(){return this._map.length},has:function(t){return this._map.has(t)},add:function(t){return this._map.set(t,t),this},"delete":function(t){return this._map["delete"](t)},clear:function(){this._map.clear()},forEach:function(t,e){this._map.forEach(t,e)}},t}function z(){function t(){this._key=o()}function e(t,e){for(var n=0;e>n;++n)t[n]=255*Math.random()|0}function n(t){if(c){var n=c.randomBytes(t);return n}if("function"==typeof Uint8Array){var n=new Uint8Array(t);return"undefined"!=typeof crypto?crypto.getRandomValues(n):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(n):e(n,t),n}var n=new Array(t);return e(n,t),n}function r(){var t=n(a);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;a>r;++r){var o=t[r];(4===r||6===r||8===r)&&(e+="-"),16>o&&(e+="0"),e+=o.toString(16).toLowerCase()}return e}function o(){var t;do t="@@WeakMap@@"+r();while(s.call(f,t));return f[t]=!0,t}function i(t,e){if(!s.call(t,p)){if(!e)return;Object.defineProperty(t,p,{value:Object.create(null)})}return t[p]}var a=16,u="undefined"!=typeof global&&"[object process]"===Object.prototype.toString.call(global.process),c=u&&require("crypto"),s=Object.prototype.hasOwnProperty,f={},p=o();return t.prototype={has:function(t){var e=i(t,!1);return e?this._key in e:!1},get:function(t){var e=i(t,!1);return e?e[this._key]:void 0},set:function(t,e){var n=i(t,!0);return n[this._key]=e,this},"delete":function(t){var e=i(t,!1);return e&&this._key in e?delete e[this._key]:!1},clear:function(){this._key=o()}},t}var x=Object.getPrototypeOf(Function),L="function"==typeof Map?Map:S(),F="function"==typeof Set?Set:A(),R="function"==typeof WeakMap?WeakMap:z(),C=new R;t.decorate=e,t.metadata=n,t.defineMetadata=r,t.hasMetadata=o,t.hasOwnMetadata=i,t.getMetadata=a,t.getOwnMetadata=u,t.getMetadataKeys=c,t.getOwnMetadataKeys=s,t.deleteMetadata=f,function(e){if("undefined"!=typeof e.Reflect){if(e.Reflect!==t)for(var n in t)e.Reflect[n]=t[n]}else e.Reflect=t}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope?self:"undefined"!=typeof global?global:Function("return this;")())}(Reflect||(Reflect={}));