2 lines
51 KiB
JavaScript
2 lines
51 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{2:function(e,t,n){e.exports=n("hN/g")},aVe3:function(e,t){(function(){"use strict";var e=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function t(t){var n=e.has(t);return t=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(t),!n&&t}function n(e){var t=e.isConnected;if(void 0!==t)return t;for(;e&&!(e.__CE_isImportDocument||e instanceof Document);)e=e.parentNode||(window.ShadowRoot&&e instanceof ShadowRoot?e.host:void 0);return!(!e||!(e.__CE_isImportDocument||e instanceof Document))}function o(e,t){for(;t&&t!==e&&!t.nextSibling;)t=t.parentNode;return t&&t!==e?t.nextSibling:null}function r(e,t,n){n=void 0===n?new Set:n;for(var i=e;i;){if(i.nodeType===Node.ELEMENT_NODE){var a=i;t(a);var s=a.localName;if("link"===s&&"import"===a.getAttribute("rel")){if((i=a.import)instanceof Node&&!n.has(i))for(n.add(i),i=i.firstChild;i;i=i.nextSibling)r(i,t,n);i=o(e,a);continue}if("template"===s){i=o(e,a);continue}if(a=a.__CE_shadowRoot)for(a=a.firstChild;a;a=a.nextSibling)r(a,t,n)}i=i.firstChild?i.firstChild:o(e,i)}}function i(e,t,n){e[t]=n}function a(){this.a=new Map,this.f=new Map,this.c=[],this.b=!1}function s(e,t){e.b=!0,e.c.push(t)}function c(e,t){e.b&&r(t,function(t){return l(e,t)})}function l(e,t){if(e.b&&!t.__CE_patched){t.__CE_patched=!0;for(var n=0;n<e.c.length;n++)e.c[n](t)}}function u(e,t){var n=[];for(r(t,function(e){return n.push(e)}),t=0;t<n.length;t++){var o=n[t];1===o.__CE_state?e.connectedCallback(o):f(e,o)}}function h(e,t){var n=[];for(r(t,function(e){return n.push(e)}),t=0;t<n.length;t++){var o=n[t];1===o.__CE_state&&e.disconnectedCallback(o)}}function p(e,t,n){var o=(n=void 0===n?{}:n).u||new Set,i=n.h||function(t){return f(e,t)},a=[];if(r(t,function(t){if("link"===t.localName&&"import"===t.getAttribute("rel")){var n=t.import;n instanceof Node&&(n.__CE_isImportDocument=!0,n.__CE_hasRegistry=!0),n&&"complete"===n.readyState?n.__CE_documentLoadHandled=!0:t.addEventListener("load",function(){var n=t.import;if(!n.__CE_documentLoadHandled){n.__CE_documentLoadHandled=!0;var r=new Set(o);r.delete(n),p(e,n,{u:r,h:i})}})}else a.push(t)},o),e.b)for(t=0;t<a.length;t++)l(e,a[t]);for(t=0;t<a.length;t++)i(a[t])}function f(e,t){if(void 0===t.__CE_state){var o=t.ownerDocument;if((o.defaultView||o.__CE_isImportDocument&&o.__CE_hasRegistry)&&(o=e.a.get(t.localName))){o.constructionStack.push(t);var r=o.constructorFunction;try{try{if(new r!==t)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{o.constructionStack.pop()}}catch(s){throw t.__CE_state=2,s}if(t.__CE_state=1,t.__CE_definition=o,o.attributeChangedCallback)for(o=o.observedAttributes,r=0;r<o.length;r++){var i=o[r],a=t.getAttribute(i);null!==a&&e.attributeChangedCallback(t,i,null,a,null)}n(t)&&e.connectedCallback(t)}}}function d(e){var t=document;this.c=e,this.a=t,this.b=void 0,p(this.c,this.a),"loading"===this.a.readyState&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function m(e){e.b&&e.b.disconnect()}function g(){var e=this;this.b=this.a=void 0,this.c=new Promise(function(t){e.b=t,e.a&&t(e.a)})}function _(e){if(e.a)throw Error("Already resolved.");e.a=void 0,e.b&&e.b(void 0)}function y(e){this.c=!1,this.a=e,this.j=new Map,this.f=function(e){return e()},this.b=!1,this.i=[],this.o=new d(e)}a.prototype.connectedCallback=function(e){var t=e.__CE_definition;t.connectedCallback&&t.connectedCallback.call(e)},a.prototype.disconnectedCallback=function(e){var t=e.__CE_definition;t.disconnectedCallback&&t.disconnectedCallback.call(e)},a.prototype.attributeChangedCallback=function(e,t,n,o,r){var i=e.__CE_definition;i.attributeChangedCallback&&-1<i.observedAttributes.indexOf(t)&&i.attributeChangedCallback.call(e,t,n,o,r)},d.prototype.f=function(e){var t=this.a.readyState;for("interactive"!==t&&"complete"!==t||m(this),t=0;t<e.length;t++)for(var n=e[t].addedNodes,o=0;o<n.length;o++)p(this.c,n[o])},y.prototype.l=function(e,n){var o=this;if(!(n instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!t(e))throw new SyntaxError("The element name '"+e+"' is not valid.");if(this.a.a.get(e))throw Error("A custom element with name '"+e+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var r=function(e){var t=i[e];if(void 0!==t&&!(t instanceof Function))throw Error("The '"+e+"' callback must be a function.");return t},i=n.prototype;if(!(i instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var a=r("connectedCallback"),s=r("disconnectedCallback"),c=r("adoptedCallback"),l=r("attributeChangedCallback"),u=n.observedAttributes||[]}catch(h){return}finally{this.c=!1}(function(e,t,n){e.a.set(t,n),e.f.set(n.constructorFunction,n)})(this.a,e,n={localName:e,constructorFunction:n,connectedCallback:a,disconnectedCallback:s,adoptedCallback:c,attributeChangedCallback:l,observedAttributes:u,constructionStack:[]}),this.i.push(n),this.b||(this.b=!0,this.f(function(){return function(e){if(!1!==e.b){e.b=!1;for(var t=e.i,n=[],o=new Map,r=0;r<t.length;r++)o.set(t[r].localName,[]);for(p(e.a,document,{h:function(t){if(void 0===t.__CE_state){var r=t.localName,i=o.get(r);i?i.push(t):e.a.a.get(r)&&n.push(t)}}}),r=0;r<n.length;r++)f(e.a,n[r]);for(;0<t.length;){var i=t.shift();r=i.localName,i=o.get(i.localName);for(var a=0;a<i.length;a++)f(e.a,i[a]);(r=e.j.get(r))&&_(r)}}}(o)}))},y.prototype.h=function(e){p(this.a,e)},y.prototype.get=function(e){if(e=this.a.a.get(e))return e.constructorFunction},y.prototype.m=function(e){if(!t(e))return Promise.reject(new SyntaxError("'"+e+"' is not a valid custom element name."));var n=this.j.get(e);return n||(n=new g,this.j.set(e,n),this.a.a.get(e)&&!this.i.some(function(t){return t.localName===e})&&_(n)),n.c},y.prototype.s=function(e){m(this.o);var t=this.f;this.f=function(n){return e(function(){return t(n)})}},window.CustomElementRegistry=y,y.prototype.define=y.prototype.l,y.prototype.upgrade=y.prototype.h,y.prototype.get=y.prototype.get,y.prototype.whenDefined=y.prototype.m,y.prototype.polyfillWrapFlushCallback=y.prototype.s;var v=window.Document.prototype.createElement,b=window.Document.prototype.createElementNS,k=window.Document.prototype.importNode,w=window.Document.prototype.prepend,E=window.Document.prototype.append,T=window.DocumentFragment.prototype.prepend,C=window.DocumentFragment.prototype.append,S=window.Node.prototype.cloneNode,D=window.Node.prototype.appendChild,Z=window.Node.prototype.insertBefore,O=window.Node.prototype.removeChild,P=window.Node.prototype.replaceChild,N=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),j=window.Element.prototype.attachShadow,z=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),M=window.Element.prototype.getAttribute,L=window.Element.prototype.setAttribute,A=window.Element.prototype.removeAttribute,x=window.Element.prototype.getAttributeNS,I=window.Element.prototype.setAttributeNS,R=window.Element.prototype.removeAttributeNS,H=window.Element.prototype.insertAdjacentElement,F=window.Element.prototype.insertAdjacentHTML,q=window.Element.prototype.prepend,G=window.Element.prototype.append,W=window.Element.prototype.before,B=window.Element.prototype.after,U=window.Element.prototype.replaceWith,V=window.Element.prototype.remove,$=window.HTMLElement,X=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),J=window.HTMLElement.prototype.insertAdjacentElement,Y=window.HTMLElement.prototype.insertAdjacentHTML,K=new function(){};function Q(e,t,o){function r(t){return function(o){for(var r=[],i=0;i<arguments.length;++i)r[i]=arguments[i];i=[];for(var a=[],s=0;s<r.length;s++){var c=r[s];if(c instanceof Element&&n(c)&&a.push(c),c instanceof DocumentFragment)for(c=c.firstChild;c;c=c.nextSibling)i.push(c);else i.push(c)}for(t.apply(this,r),r=0;r<a.length;r++)h(e,a[r]);if(n(this))for(r=0;r<i.length;r++)(a=i[r])instanceof Element&&u(e,a)}}void 0!==o.g&&(t.prepend=r(o.g)),void 0!==o.append&&(t.append=r(o.append))}var ee,te=window.customElements;if(!te||te.forcePolyfill||"function"!=typeof te.define||"function"!=typeof te.get){var ne=new a;ee=ne,window.HTMLElement=function(){function e(){var e=this.constructor,t=ee.f.get(e);if(!t)throw Error("The custom element being constructed was not registered with `customElements`.");var n=t.constructionStack;if(0===n.length)return n=v.call(document,t.localName),Object.setPrototypeOf(n,e.prototype),n.__CE_state=1,n.__CE_definition=t,l(ee,n),n;var o=n[t=n.length-1];if(o===K)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return n[t]=K,Object.setPrototypeOf(o,e.prototype),l(ee,o),o}return e.prototype=$.prototype,Object.defineProperty(e.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:e}),e}(),function(){var e=ne;i(Document.prototype,"createElement",function(t){if(this.__CE_hasRegistry){var n=e.a.get(t);if(n)return new n.constructorFunction}return t=v.call(this,t),l(e,t),t}),i(Document.prototype,"importNode",function(t,n){return t=k.call(this,t,!!n),this.__CE_hasRegistry?p(e,t):c(e,t),t}),i(Document.prototype,"createElementNS",function(t,n){if(this.__CE_hasRegistry&&(null===t||"http://www.w3.org/1999/xhtml"===t)){var o=e.a.get(n);if(o)return new o.constructorFunction}return t=b.call(this,t,n),l(e,t),t}),Q(e,Document.prototype,{g:w,append:E})}(),Q(ne,DocumentFragment.prototype,{g:T,append:C}),function(){function e(e,o){Object.defineProperty(e,"textContent",{enumerable:o.enumerable,configurable:!0,get:o.get,set:function(e){if(this.nodeType===Node.TEXT_NODE)o.set.call(this,e);else{var r=void 0;if(this.firstChild){var i=this.childNodes,a=i.length;if(0<a&&n(this)){r=Array(a);for(var s=0;s<a;s++)r[s]=i[s]}}if(o.set.call(this,e),r)for(e=0;e<r.length;e++)h(t,r[e])}}})}var t=ne;i(Node.prototype,"insertBefore",function(e,o){if(e instanceof DocumentFragment){var r=Array.prototype.slice.apply(e.childNodes);if(e=Z.call(this,e,o),n(this))for(o=0;o<r.length;o++)u(t,r[o]);return e}return r=n(e),o=Z.call(this,e,o),r&&h(t,e),n(this)&&u(t,e),o}),i(Node.prototype,"appendChild",function(e){if(e instanceof DocumentFragment){var o=Array.prototype.slice.apply(e.childNodes);if(e=D.call(this,e),n(this))for(var r=0;r<o.length;r++)u(t,o[r]);return e}return o=n(e),r=D.call(this,e),o&&h(t,e),n(this)&&u(t,e),r}),i(Node.prototype,"cloneNode",function(e){return e=S.call(this,!!e),this.ownerDocument.__CE_hasRegistry?p(t,e):c(t,e),e}),i(Node.prototype,"removeChild",function(e){var o=n(e),r=O.call(this,e);return o&&h(t,e),r}),i(Node.prototype,"replaceChild",function(e,o){if(e instanceof DocumentFragment){var r=Array.prototype.slice.apply(e.childNodes);if(e=P.call(this,e,o),n(this))for(h(t,o),o=0;o<r.length;o++)u(t,r[o]);return e}r=n(e);var i=P.call(this,e,o),a=n(this);return a&&h(t,o),r&&h(t,e),a&&u(t,e),i}),N&&N.get?e(Node.prototype,N):s(t,function(t){e(t,{enumerable:!0,configurable:!0,get:function(){for(var e=[],t=0;t<this.childNodes.length;t++)e.push(this.childNodes[t].textContent);return e.join("")},set:function(e){for(;this.firstChild;)O.call(this,this.firstChild);D.call(this,document.createTextNode(e))}})})}(),function(){function e(e,t){Object.defineProperty(e,"innerHTML",{enumerable:t.enumerable,configurable:!0,get:t.get,set:function(e){var o=this,i=void 0;if(n(this)&&(i=[],r(this,function(e){e!==o&&i.push(e)})),t.set.call(this,e),i)for(var s=0;s<i.length;s++){var l=i[s];1===l.__CE_state&&a.disconnectedCallback(l)}return this.ownerDocument.__CE_hasRegistry?p(a,this):c(a,this),e}})}function t(e,t){i(e,"insertAdjacentElement",function(e,o){var r=n(o);return e=t.call(this,e,o),r&&h(a,o),n(e)&&u(a,o),e})}function o(e,t){function n(e,t){for(var n=[];e!==t;e=e.nextSibling)n.push(e);for(t=0;t<n.length;t++)p(a,n[t])}i(e,"insertAdjacentHTML",function(e,o){if("beforebegin"===(e=e.toLowerCase())){var r=this.previousSibling;t.call(this,e,o),n(r||this.parentNode.firstChild,this)}else if("afterbegin"===e)r=this.firstChild,t.call(this,e,o),n(this.firstChild,r);else if("beforeend"===e)r=this.lastChild,t.call(this,e,o),n(r||this.firstChild,null);else{if("afterend"!==e)throw new SyntaxError("The value provided ("+String(e)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");r=this.nextSibling,t.call(this,e,o),n(this.nextSibling,r)}})}var a=ne;j&&i(Element.prototype,"attachShadow",function(e){return this.__CE_shadowRoot=j.call(this,e)}),z&&z.get?e(Element.prototype,z):X&&X.get?e(HTMLElement.prototype,X):s(a,function(t){e(t,{enumerable:!0,configurable:!0,get:function(){return S.call(this,!0).innerHTML},set:function(e){var t="template"===this.localName,n=t?this.content:this,o=b.call(document,this.namespaceURI,this.localName);for(o.innerHTML=e;0<n.childNodes.length;)O.call(n,n.childNodes[0]);for(e=t?o.content:o;0<e.childNodes.length;)D.call(n,e.childNodes[0])}})}),i(Element.prototype,"setAttribute",function(e,t){if(1!==this.__CE_state)return L.call(this,e,t);var n=M.call(this,e);L.call(this,e,t),t=M.call(this,e),a.attributeChangedCallback(this,e,n,t,null)}),i(Element.prototype,"setAttributeNS",function(e,t,n){if(1!==this.__CE_state)return I.call(this,e,t,n);var o=x.call(this,e,t);I.call(this,e,t,n),n=x.call(this,e,t),a.attributeChangedCallback(this,t,o,n,e)}),i(Element.prototype,"removeAttribute",function(e){if(1!==this.__CE_state)return A.call(this,e);var t=M.call(this,e);A.call(this,e),null!==t&&a.attributeChangedCallback(this,e,t,null,null)}),i(Element.prototype,"removeAttributeNS",function(e,t){if(1!==this.__CE_state)return R.call(this,e,t);var n=x.call(this,e,t);R.call(this,e,t);var o=x.call(this,e,t);n!==o&&a.attributeChangedCallback(this,t,n,o,e)}),J?t(HTMLElement.prototype,J):H?t(Element.prototype,H):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),Y?o(HTMLElement.prototype,Y):F?o(Element.prototype,F):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched."),Q(a,Element.prototype,{g:q,append:G}),function(e){function t(t){return function(o){for(var r=[],i=0;i<arguments.length;++i)r[i]=arguments[i];i=[];for(var a=[],s=0;s<r.length;s++){var c=r[s];if(c instanceof Element&&n(c)&&a.push(c),c instanceof DocumentFragment)for(c=c.firstChild;c;c=c.nextSibling)i.push(c);else i.push(c)}for(t.apply(this,r),r=0;r<a.length;r++)h(e,a[r]);if(n(this))for(r=0;r<i.length;r++)(a=i[r])instanceof Element&&u(e,a)}}var o=Element.prototype;void 0!==W&&(o.before=t(W)),void 0!==W&&(o.after=t(B)),void 0!==U&&i(o,"replaceWith",function(t){for(var o=[],r=0;r<arguments.length;++r)o[r]=arguments[r];r=[];for(var i=[],a=0;a<o.length;a++){var s=o[a];if(s instanceof Element&&n(s)&&i.push(s),s instanceof DocumentFragment)for(s=s.firstChild;s;s=s.nextSibling)r.push(s);else r.push(s)}for(a=n(this),U.apply(this,o),o=0;o<i.length;o++)h(e,i[o]);if(a)for(h(e,this),o=0;o<r.length;o++)(i=r[o])instanceof Element&&u(e,i)}),void 0!==V&&i(o,"remove",function(){var t=n(this);V.call(this),t&&h(e,this)})}(a)}(),document.__CE_hasRegistry=!0;var oe=new y(ne);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:oe})}}).call(self)},"hN/g":function(e,t,n){"use strict";n.r(t),n("m+po"),n("aVe3")},"m+po":function(e,t,n){"use strict";!function(e){const t=e.performance;function n(e){t&&t.mark&&t.mark(e)}function o(e,n){t&&t.measure&&t.measure(e,n)}n("Zone");const r=e.__Zone_symbol_prefix||"__zone_symbol__";function i(e){return r+e}const a=!0===e[i("forceDuplicateZoneCheck")];if(e.Zone){if(a||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}class s{constructor(e,t){this._parent=e,this._name=t?t.name||"unnamed":"<root>",this._properties=t&&t.properties||{},this._zoneDelegate=new l(this,this._parent&&this._parent._zoneDelegate,t)}static assertZonePatched(){if(e.Promise!==O.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.)")}static get root(){let e=s.current;for(;e.parent;)e=e.parent;return e}static get current(){return N.zone}static get currentTask(){return j}static __load_patch(t,r,i=!1){if(O.hasOwnProperty(t)){if(!i&&a)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const i="Zone:"+t;n(i),O[t]=r(e,s,P),o(i,i)}}get parent(){return this._parent}get name(){return this._name}get(e){const t=this.getZoneWith(e);if(t)return t._properties[e]}getZoneWith(e){let t=this;for(;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const n=this._zoneDelegate.intercept(this,e,t),o=this;return function(){return o.runGuarded(n,this,arguments,t)}}run(e,t,n,o){N={parent:N,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,o)}finally{N=N.parent}}runGuarded(e,t=null,n,o){N={parent:N,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,o)}catch(r){if(this._zoneDelegate.handleError(this,r))throw r}}finally{N=N.parent}}runTask(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||v).name+"; Execution: "+this.name+")");if(e.state===b&&(e.type===Z||e.type===D))return;const o=e.state!=E;o&&e._transitionTo(E,w),e.runCount++;const r=j;j=e,N={parent:N,zone:this};try{e.type==D&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(i){if(this._zoneDelegate.handleError(this,i))throw i}}finally{e.state!==b&&e.state!==C&&(e.type==Z||e.data&&e.data.isPeriodic?o&&e._transitionTo(w,E):(e.runCount=0,this._updateTaskCount(e,-1),o&&e._transitionTo(b,E,b))),N=N.parent,j=r}}scheduleTask(e){if(e.zone&&e.zone!==this){let t=this;for(;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(k,b);const t=[];e._zoneDelegates=t,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(n){throw e._transitionTo(C,k,b),this._zoneDelegate.handleError(this,n),n}return e._zoneDelegates===t&&this._updateTaskCount(e,1),e.state==k&&e._transitionTo(w,k),e}scheduleMicroTask(e,t,n,o){return this.scheduleTask(new u(S,e,t,n,o,void 0))}scheduleMacroTask(e,t,n,o,r){return this.scheduleTask(new u(D,e,t,n,o,r))}scheduleEventTask(e,t,n,o,r){return this.scheduleTask(new u(Z,e,t,n,o,r))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||v).name+"; Execution: "+this.name+")");e._transitionTo(T,w,E);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(C,T),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(b,T),e.runCount=0,e}_updateTaskCount(e,t){const n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(let o=0;o<n.length;o++)n[o]._updateTaskCount(e.type,t)}}s.__symbol__=i;const c={name:"",onHasTask:(e,t,n,o)=>e.hasTask(n,o),onScheduleTask:(e,t,n,o)=>e.scheduleTask(n,o),onInvokeTask:(e,t,n,o,r,i)=>e.invokeTask(n,o,r,i),onCancelTask:(e,t,n,o)=>e.cancelTask(n,o)};class l{constructor(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._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const o=n&&n.onHasTask;(o||t&&t._hasTaskZS)&&(this._hasTaskZS=o?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))}fork(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new s(e,t)}intercept(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t}invoke(e,t,n,o,r){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,o,r):t.apply(n,o)}handleError(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)}scheduleTask(e,t){let n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t),n||(n=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=S)throw new Error("Task is missing scheduleFn.");_(t)}return n}invokeTask(e,t,n,o){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,o):t.callback.apply(n,o)}cancelTask(e,t){let 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}hasTask(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(n){this.handleError(e,n)}}_updateTaskCount(e,t){const n=this._taskCounts,o=n[e],r=n[e]=o+t;if(r<0)throw new Error("More tasks executed then were scheduled.");0!=o&&0!=r||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})}}class u{constructor(t,n,o,r,i,a){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=t,this.source=n,this.data=r,this.scheduleFn=i,this.cancelFn=a,!o)throw new Error("callback is not defined");this.callback=o;const s=this;this.invoke=t===Z&&r&&r.useG?u.invokeTask:function(){return u.invokeTask.call(e,s,this,arguments)}}static invokeTask(e,t,n){e||(e=this),z++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==z&&y(),z--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(b,k)}_transitionTo(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==b&&(this._zoneDelegates=null)}toString(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const h=i("setTimeout"),p=i("Promise"),f=i("then");let d,m=[],g=!1;function _(t){if(0===z&&0===m.length)if(d||e[p]&&(d=e[p].resolve(0)),d){let e=d[f];e||(e=d.then),e.call(d,y)}else e[h](y,0);t&&m.push(t)}function y(){if(!g){for(g=!0;m.length;){const t=m;m=[];for(let n=0;n<t.length;n++){const o=t[n];try{o.zone.runTask(o,null,null)}catch(e){P.onUnhandledError(e)}}}P.microtaskDrainDone(),g=!1}}const v={name:"NO ZONE"},b="notScheduled",k="scheduling",w="scheduled",E="running",T="canceling",C="unknown",S="microTask",D="macroTask",Z="eventTask",O={},P={symbol:i,currentZoneFrame:()=>N,onUnhandledError:M,microtaskDrainDone:M,scheduleMicroTask:_,showUncaughtError:()=>!s[i("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:M,patchMethod:()=>M,bindArguments:()=>[],patchThen:()=>M,patchMacroTask:()=>M,patchEventPrototype:()=>M,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>M,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>M,wrapWithCurrentZone:()=>M,filterProperties:()=>[],attachOriginToPatched:()=>M,_redefineProperty:()=>M,patchCallbacks:()=>M};let N={parent:null,zone:new s(null,null)},j=null,z=0;function M(){}o("Zone","Zone"),e.Zone=s}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global);const o=Object.getOwnPropertyDescriptor,r=Object.defineProperty,i=Object.getPrototypeOf,a=Object.create,s=Array.prototype.slice,c=Zone.__symbol__("addEventListener"),l=Zone.__symbol__("removeEventListener"),u=Zone.__symbol__("");function h(e,t){return Zone.current.wrap(e,t)}function p(e,t,n,o,r){return Zone.current.scheduleMacroTask(e,t,n,o,r)}const f=Zone.__symbol__,d="undefined"!=typeof window,m=d?window:void 0,g=d&&m||"object"==typeof self&&self||global,_=[null];function y(e,t){for(let n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=h(e[n],t+"_"+n));return e}function v(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}const b="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,k=!("nw"in g)&&void 0!==g.process&&"[object process]"==={}.toString.call(g.process),w=!k&&!b&&!(!d||!m.HTMLElement),E=void 0!==g.process&&"[object process]"==={}.toString.call(g.process)&&!b&&!(!d||!m.HTMLElement),T={},C=function(e){if(!(e=e||g.event))return;let t=T[e.type];t||(t=T[e.type]=f("ON_PROPERTY"+e.type));const n=this||e.target||g,o=n[t];let r;if(w&&n===m&&"error"===e.type){const t=e;r=o&&o.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===r&&e.preventDefault()}else r=o&&o.apply(this,arguments),null==r||r||e.preventDefault();return r};function S(e,t,n){let i=o(e,t);if(!i&&n&&o(n,t)&&(i={enumerable:!0,configurable:!0}),!i||!i.configurable)return;const a=f("on"+t+"patched");if(e.hasOwnProperty(a)&&e[a])return;delete i.writable,delete i.value;const s=i.get,c=i.set,l=t.substr(2);let u=T[l];u||(u=T[l]=f("ON_PROPERTY"+l)),i.set=function(t){let n=this;n||e!==g||(n=g),n&&(n[u]&&n.removeEventListener(l,C),c&&c.apply(n,_),"function"==typeof t?(n[u]=t,n.addEventListener(l,C,!1)):n[u]=null)},i.get=function(){let n=this;if(n||e!==g||(n=g),!n)return null;const o=n[u];if(o)return o;if(s){let e=s&&s.call(this);if(e)return i.set.call(this,e),"function"==typeof n.removeAttribute&&n.removeAttribute(t),e}return null},r(e,t,i),e[a]=!0}function D(e,t,n){if(t)for(let o=0;o<t.length;o++)S(e,"on"+t[o],n);else{const t=[];for(const n in e)"on"==n.substr(0,2)&&t.push(n);for(let o=0;o<t.length;o++)S(e,t[o],n)}}const Z=f("originalInstance");function O(e){const t=g[e];if(!t)return;g[f(e)]=t,g[e]=function(){const n=y(arguments,e);switch(n.length){case 0:this[Z]=new t;break;case 1:this[Z]=new t(n[0]);break;case 2:this[Z]=new t(n[0],n[1]);break;case 3:this[Z]=new t(n[0],n[1],n[2]);break;case 4:this[Z]=new t(n[0],n[1],n[2],n[3]);break;default:throw new Error("Arg list too long.")}},j(g[e],t);const n=new t(function(){});let o;for(o in n)"XMLHttpRequest"===e&&"responseBlob"===o||function(t){"function"==typeof n[t]?g[e].prototype[t]=function(){return this[Z][t].apply(this[Z],arguments)}:r(g[e].prototype,t,{set:function(n){"function"==typeof n?(this[Z][t]=h(n,e+"."+t),j(this[Z][t],n)):this[Z][t]=n},get:function(){return this[Z][t]}})}(o);for(o in t)"prototype"!==o&&t.hasOwnProperty(o)&&(g[e][o]=t[o])}function P(e,t,n){let r=e;for(;r&&!r.hasOwnProperty(t);)r=i(r);!r&&e[t]&&(r=e);const a=f(t);let s=null;if(r&&(!(s=r[a])||!r.hasOwnProperty(a))&&(s=r[a]=r[t],v(r&&o(r,t)))){const e=n(s,a,t);r[t]=function(){return e(this,arguments)},j(r[t],s)}return s}function N(e,t,n){let o=null;function r(e){const t=e.data;return t.args[t.cbIdx]=function(){e.invoke.apply(this,arguments)},o.apply(t.target,t.args),e}o=P(e,t,e=>function(t,o){const i=n(t,o);return i.cbIdx>=0&&"function"==typeof o[i.cbIdx]?p(i.name,o[i.cbIdx],i,r):e.apply(t,o)})}function j(e,t){e[f("OriginalDelegate")]=t}let z=!1,M=!1;function L(){try{const e=m.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(e){}return!1}function A(){if(z)return M;z=!0;try{const e=m.navigator.userAgent;-1===e.indexOf("MSIE ")&&-1===e.indexOf("Trident/")&&-1===e.indexOf("Edge/")||(M=!0)}catch(e){}return M}Zone.__load_patch("ZoneAwarePromise",(e,t,n)=>{const o=Object.getOwnPropertyDescriptor,r=Object.defineProperty,i=n.symbol,a=[],s=!0===e[i("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],c=i("Promise"),l=i("then");n.onUnhandledError=e=>{if(n.showUncaughtError()){const 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=()=>{for(;a.length;){const t=a.shift();try{t.zone.runGuarded(()=>{if(t.throwOriginal)throw t.rejection;throw t})}catch(e){h(e)}}};const u=i("unhandledPromiseRejectionHandler");function h(e){n.onUnhandledError(e);try{const n=t[u];"function"==typeof n&&n.call(this,e)}catch(o){}}function p(e){return e&&e.then}function f(e){return e}function d(e){return D.reject(e)}const m=i("state"),g=i("value"),_=i("finally"),y=i("parentPromiseValue"),v=i("parentPromiseState");function b(e,t){return n=>{try{w(e,t,n)}catch(o){w(e,!1,o)}}}const k=i("currentTaskTrace");function w(e,o,i){const c=function(){let e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}}();if(e===i)throw new TypeError("Promise resolved with itself");if(null===e[m]){let h=null;try{"object"!=typeof i&&"function"!=typeof i||(h=i&&i.then)}catch(u){return c(()=>{w(e,!1,u)})(),e}if(!1!==o&&i instanceof D&&i.hasOwnProperty(m)&&i.hasOwnProperty(g)&&null!==i[m])T(i),w(e,i[m],i[g]);else if(!1!==o&&"function"==typeof h)try{h.call(i,c(b(e,o)),c(b(e,!1)))}catch(u){c(()=>{w(e,!1,u)})()}else{e[m]=o;const c=e[g];if(e[g]=i,e[_]===_&&!0===o&&(e[m]=e[v],e[g]=e[y]),!1===o&&i instanceof Error){const e=t.currentTask&&t.currentTask.data&&t.currentTask.data.__creationTrace__;e&&r(i,k,{configurable:!0,enumerable:!1,writable:!0,value:e})}for(let t=0;t<c.length;)C(e,c[t++],c[t++],c[t++],c[t++]);if(0==c.length&&0==o){e[m]=0;let o=i;try{throw new Error("Uncaught (in promise): "+((l=i)&&l.toString===Object.prototype.toString?(l.constructor&&l.constructor.name||"")+": "+JSON.stringify(l):l?l.toString():Object.prototype.toString.call(l))+(i&&i.stack?"\n"+i.stack:""))}catch(u){o=u}s&&(o.throwOriginal=!0),o.rejection=i,o.promise=e,o.zone=t.current,o.task=t.currentTask,a.push(o),n.scheduleMicroTask()}}}var l;return e}const E=i("rejectionHandledHandler");function T(e){if(0===e[m]){try{const n=t[E];n&&"function"==typeof n&&n.call(this,{rejection:e[g],promise:e})}catch(n){}e[m]=!1;for(let t=0;t<a.length;t++)e===a[t].promise&&a.splice(t,1)}}function C(e,t,n,o,r){T(e);const i=e[m],a=i?"function"==typeof o?o:f:"function"==typeof r?r:d;t.scheduleMicroTask("Promise.then",()=>{try{const o=e[g],r=!!n&&_===n[_];r&&(n[y]=o,n[v]=i);const s=t.run(a,void 0,r&&a!==d&&a!==f?[]:[o]);w(n,!0,s)}catch(o){w(n,!1,o)}},n)}const S=function(){};class D{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(e){return w(new this(null),!0,e)}static reject(e){return w(new this(null),!1,e)}static race(e){let t,n,o=new this((e,o)=>{t=e,n=o});function r(e){t(e)}function i(e){n(e)}for(let a of e)p(a)||(a=this.resolve(a)),a.then(r,i);return o}static all(e){return D.allWithCallback(e)}static allSettled(e){return(this&&this.prototype instanceof D?this:D).allWithCallback(e,{thenCallback:e=>({status:"fulfilled",value:e}),errorCallback:e=>({status:"rejected",reason:e})})}static allWithCallback(e,t){let n,o,r=new this((e,t)=>{n=e,o=t}),i=2,a=0;const s=[];for(let l of e){p(l)||(l=this.resolve(l));const e=a;try{l.then(o=>{s[e]=t?t.thenCallback(o):o,i--,0===i&&n(s)},r=>{t?(s[e]=t.errorCallback(r),i--,0===i&&n(s)):o(r)})}catch(c){o(c)}i++,a++}return i-=2,0===i&&n(s),r}constructor(e){const t=this;if(!(t instanceof D))throw new Error("Must be an instanceof Promise.");t[m]=null,t[g]=[];try{e&&e(b(t,!0),b(t,!1))}catch(n){w(t,!1,n)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return D}then(e,n){let o=this.constructor[Symbol.species];o&&"function"==typeof o||(o=this.constructor||D);const r=new o(S),i=t.current;return null==this[m]?this[g].push(i,r,e,n):C(this,i,r,e,n),r}catch(e){return this.then(null,e)}finally(e){let n=this.constructor[Symbol.species];n&&"function"==typeof n||(n=D);const o=new n(S);o[_]=_;const r=t.current;return null==this[m]?this[g].push(r,o,e,e):C(this,r,o,e,e),o}}D.resolve=D.resolve,D.reject=D.reject,D.race=D.race,D.all=D.all;const Z=e[c]=e.Promise;e.Promise=D;const O=i("thenPatched");function N(e){const t=e.prototype,n=o(t,"then");if(n&&(!1===n.writable||!n.configurable))return;const r=t.then;t[l]=r,e.prototype.then=function(e,t){return new D((e,t)=>{r.call(this,e,t)}).then(e,t)},e[O]=!0}return n.patchThen=N,Z&&(N(Z),P(e,"fetch",e=>{return t=e,function(e,n){let o=t.apply(e,n);if(o instanceof D)return o;let r=o.constructor;return r[O]||N(r),o};var t})),Promise[t.__symbol__("uncaughtPromiseErrors")]=a,D}),Zone.__load_patch("toString",e=>{const t=Function.prototype.toString,n=f("OriginalDelegate"),o=f("Promise"),r=f("Error"),i=function(){if("function"==typeof this){const i=this[n];if(i)return"function"==typeof i?t.call(i):Object.prototype.toString.call(i);if(this===Promise){const n=e[o];if(n)return t.call(n)}if(this===Error){const n=e[r];if(n)return t.call(n)}}return t.call(this)};i[n]=t,Function.prototype.toString=i;const a=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":a.call(this)}});let x=!1;if("undefined"!=typeof window)try{const e=Object.defineProperty({},"passive",{get:function(){x=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(ue){x=!1}const I={useG:!0},R={},H={},F=new RegExp("^"+u+"(\\w+)(true|false)$"),q=f("propagationStopped");function G(e,t){const n=(t?t(e):e)+"false",o=(t?t(e):e)+"true",r=u+n,i=u+o;R[e]={},R[e].false=r,R[e].true=i}function W(e,t,n){const o=n&&n.add||"addEventListener",r=n&&n.rm||"removeEventListener",a=n&&n.listeners||"eventListeners",s=n&&n.rmAll||"removeAllListeners",c=f(o),l="."+o+":",h=function(e,t,n){if(e.isRemoved)return;const o=e.callback;"object"==typeof o&&o.handleEvent&&(e.callback=e=>o.handleEvent(e),e.originalDelegate=o),e.invoke(e,t,[n]);const i=e.options;i&&"object"==typeof i&&i.once&&t[r].call(t,n.type,e.originalDelegate?e.originalDelegate:e.callback,i)},p=function(t){if(!(t=t||e.event))return;const n=this||t.target||e,o=n[R[t.type].false];if(o)if(1===o.length)h(o[0],n,t);else{const e=o.slice();for(let o=0;o<e.length&&(!t||!0!==t[q]);o++)h(e[o],n,t)}},d=function(t){if(!(t=t||e.event))return;const n=this||t.target||e,o=n[R[t.type].true];if(o)if(1===o.length)h(o[0],n,t);else{const e=o.slice();for(let o=0;o<e.length&&(!t||!0!==t[q]);o++)h(e[o],n,t)}};function m(t,n){if(!t)return!1;let h=!0;n&&void 0!==n.useG&&(h=n.useG);const m=n&&n.vh;let g=!0;n&&void 0!==n.chkDup&&(g=n.chkDup);let _=!1;n&&void 0!==n.rt&&(_=n.rt);let y=t;for(;y&&!y.hasOwnProperty(o);)y=i(y);if(!y&&t[o]&&(y=t),!y)return!1;if(y[c])return!1;const v=n&&n.eventNameToString,b={},w=y[c]=y[o],E=y[f(r)]=y[r],T=y[f(a)]=y[a],C=y[f(s)]=y[s];let S;function D(e,t){return!x&&"object"==typeof e&&e?!!e.capture:x&&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&&(S=y[f(n.prepend)]=y[n.prepend]);const Z=h?function(e){if(!b.isExisting)return w.call(b.target,b.eventName,b.capture?d:p,b.options)}:function(e){return w.call(b.target,b.eventName,e.invoke,b.options)},O=h?function(e){if(!e.isRemoved){const t=R[e.eventName];let n;t&&(n=t[e.capture?"true":"false"]);const o=n&&e.target[n];if(o)for(let r=0;r<o.length;r++)if(o[r]===e){o.splice(r,1),e.isRemoved=!0,0===o.length&&(e.allRemoved=!0,e.target[n]=null);break}}if(e.allRemoved)return E.call(e.target,e.eventName,e.capture?d:p,e.options)}:function(e){return E.call(e.target,e.eventName,e.invoke,e.options)},P=n&&n.diff?n.diff:function(e,t){const n=typeof t;return"function"===n&&e.callback===t||"object"===n&&e.originalDelegate===t},N=Zone[f("UNPATCHED_EVENTS")],z=e[f("PASSIVE_EVENTS")],M=function(t,o,r,i,a=!1,s=!1){return function(){const c=this||e;let l=arguments[0];n&&n.transferEventName&&(l=n.transferEventName(l));let u=arguments[1];if(!u)return t.apply(this,arguments);if(k&&"uncaughtException"===l)return t.apply(this,arguments);let p=!1;if("function"!=typeof u){if(!u.handleEvent)return t.apply(this,arguments);p=!0}if(m&&!m(t,u,c,arguments))return;const f=x&&!!z&&-1!==z.indexOf(l),d=D(arguments[2],f);if(N)for(let e=0;e<N.length;e++)if(l===N[e])return f?t.call(c,l,u,d):t.apply(this,arguments);const _=!!d&&("boolean"==typeof d||d.capture),y=!(!d||"object"!=typeof d)&&d.once,w=Zone.current;let E=R[l];E||(G(l,v),E=R[l]);const T=E[_?"true":"false"];let C,S=c[T],Z=!1;if(S){if(Z=!0,g)for(let e=0;e<S.length;e++)if(P(S[e],u))return}else S=c[T]=[];const O=c.constructor.name,j=H[O];j&&(C=j[l]),C||(C=O+o+(v?v(l):l)),b.options=d,y&&(b.options.once=!1),b.target=c,b.capture=_,b.eventName=l,b.isExisting=Z;const M=h?I:void 0;M&&(M.taskData=b);const L=w.scheduleEventTask(C,u,M,r,i);return b.target=null,M&&(M.taskData=null),y&&(d.once=!0),(x||"boolean"!=typeof L.options)&&(L.options=d),L.target=c,L.capture=_,L.eventName=l,p&&(L.originalDelegate=u),s?S.unshift(L):S.push(L),a?c:void 0}};return y[o]=M(w,l,Z,O,_),S&&(y.prependListener=M(S,".prependListener:",function(e){return S.call(b.target,b.eventName,e.invoke,b.options)},O,_,!0)),y[r]=function(){const t=this||e;let o=arguments[0];n&&n.transferEventName&&(o=n.transferEventName(o));const r=arguments[2],i=!!r&&("boolean"==typeof r||r.capture),a=arguments[1];if(!a)return E.apply(this,arguments);if(m&&!m(E,a,t,arguments))return;const s=R[o];let c;s&&(c=s[i?"true":"false"]);const l=c&&t[c];if(l)for(let e=0;e<l.length;e++){const n=l[e];if(P(n,a))return l.splice(e,1),n.isRemoved=!0,0===l.length&&(n.allRemoved=!0,t[c]=null,"string"==typeof o)&&(t[u+"ON_PROPERTY"+o]=null),n.zone.cancelTask(n),_?t:void 0}return E.apply(this,arguments)},y[a]=function(){const t=this||e;let o=arguments[0];n&&n.transferEventName&&(o=n.transferEventName(o));const r=[],i=B(t,v?v(o):o);for(let e=0;e<i.length;e++){const t=i[e];r.push(t.originalDelegate?t.originalDelegate:t.callback)}return r},y[s]=function(){const t=this||e;let o=arguments[0];if(o){n&&n.transferEventName&&(o=n.transferEventName(o));const e=R[o];if(e){const n=t[e.false],i=t[e.true];if(n){const e=n.slice();for(let t=0;t<e.length;t++){const n=e[t];this[r].call(this,o,n.originalDelegate?n.originalDelegate:n.callback,n.options)}}if(i){const e=i.slice();for(let t=0;t<e.length;t++){const n=e[t];this[r].call(this,o,n.originalDelegate?n.originalDelegate:n.callback,n.options)}}}}else{const e=Object.keys(t);for(let t=0;t<e.length;t++){const n=F.exec(e[t]);let o=n&&n[1];o&&"removeListener"!==o&&this[s].call(this,o)}this[s].call(this,"removeListener")}if(_)return this},j(y[o],w),j(y[r],E),C&&j(y[s],C),T&&j(y[a],T),!0}let g=[];for(let i=0;i<t.length;i++)g[i]=m(t[i],n);return g}function B(e,t){if(!t){const n=[];for(let o in e){const r=F.exec(o);let i=r&&r[1];if(i&&(!t||i===t)){const t=e[o];if(t)for(let e=0;e<t.length;e++)n.push(t[e])}}return n}let n=R[t];n||(G(t),n=R[t]);const o=e[n.false],r=e[n.true];return o?r?o.concat(r):o.slice():r?r.slice():[]}function U(e,t){const n=e.Event;n&&n.prototype&&t.patchMethod(n.prototype,"stopImmediatePropagation",e=>function(t,n){t[q]=!0,e&&e.apply(t,n)})}function V(e,t,n,o,r){const i=Zone.__symbol__(o);if(t[i])return;const a=t[i]=t[o];t[o]=function(i,s,c){return s&&s.prototype&&r.forEach(function(t){const r=`${n}.${o}::`+t,i=s.prototype;if(i.hasOwnProperty(t)){const n=e.ObjectGetOwnPropertyDescriptor(i,t);n&&n.value?(n.value=e.wrapWithCurrentZone(n.value,r),e._redefineProperty(s.prototype,t,n)):i[t]&&(i[t]=e.wrapWithCurrentZone(i[t],r))}else i[t]&&(i[t]=e.wrapWithCurrentZone(i[t],r))}),a.call(t,i,s,c)},e.attachOriginToPatched(t[o],a)}const $=["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"],X=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],J=["load"],Y=["blur","error","focus","load","resize","scroll","messageerror"],K=["bounce","finish","start"],Q=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],ee=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],te=["close","error","open","message"],ne=["error","message"],oe=["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 re(e,t,n){if(!n||0===n.length)return t;const o=n.filter(t=>t.target===e);if(!o||0===o.length)return t;const r=o[0].ignoreProperties;return t.filter(e=>-1===r.indexOf(e))}function ie(e,t,n,o){e&&D(e,re(e,t,n),o)}function ae(e,t){if(k&&!E)return;if(Zone[e.symbol("patchEvents")])return;const n="undefined"!=typeof WebSocket,o=t.__Zone_ignore_on_properties;if(w){const e=window,t=L()?[{target:e,ignoreProperties:["error"]}]:[];ie(e,oe.concat(["messageerror"]),o?o.concat(t):o,i(e)),ie(Document.prototype,oe,o),void 0!==e.SVGElement&&ie(e.SVGElement.prototype,oe,o),ie(Element.prototype,oe,o),ie(HTMLElement.prototype,oe,o),ie(HTMLMediaElement.prototype,X,o),ie(HTMLFrameSetElement.prototype,$.concat(Y),o),ie(HTMLBodyElement.prototype,$.concat(Y),o),ie(HTMLFrameElement.prototype,J,o),ie(HTMLIFrameElement.prototype,J,o);const n=e.HTMLMarqueeElement;n&&ie(n.prototype,K,o);const r=e.Worker;r&&ie(r.prototype,ne,o)}const r=t.XMLHttpRequest;r&&ie(r.prototype,Q,o);const a=t.XMLHttpRequestEventTarget;a&&ie(a&&a.prototype,Q,o),"undefined"!=typeof IDBIndex&&(ie(IDBIndex.prototype,ee,o),ie(IDBRequest.prototype,ee,o),ie(IDBOpenDBRequest.prototype,ee,o),ie(IDBDatabase.prototype,ee,o),ie(IDBTransaction.prototype,ee,o),ie(IDBCursor.prototype,ee,o)),n&&ie(WebSocket.prototype,te,o)}Zone.__load_patch("util",(e,t,n)=>{n.patchOnProperties=D,n.patchMethod=P,n.bindArguments=y,n.patchMacroTask=N;const i=t.__symbol__("BLACK_LISTED_EVENTS"),c=t.__symbol__("UNPATCHED_EVENTS");e[c]&&(e[i]=e[c]),e[i]&&(t[i]=t[c]=e[i]),n.patchEventPrototype=U,n.patchEventTarget=W,n.isIEOrEdge=A,n.ObjectDefineProperty=r,n.ObjectGetOwnPropertyDescriptor=o,n.ObjectCreate=a,n.ArraySlice=s,n.patchClass=O,n.wrapWithCurrentZone=h,n.filterProperties=re,n.attachOriginToPatched=j,n._redefineProperty=Object.defineProperty,n.patchCallbacks=V,n.getGlobalObjects=()=>({globalSources:H,zoneSymbolEventNames:R,eventNames:oe,isBrowser:w,isMix:E,isNode:k,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:u,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"})});const se=f("zoneTask");function ce(e,t,n,o){let r=null,i=null;n+=o;const a={};function s(t){const n=t.data;return n.args[0]=function(){return t.invoke.apply(this,arguments)},n.handleId=r.apply(e,n.args),t}function c(t){return i.call(e,t.data.handleId)}r=P(e,t+=o,n=>function(r,i){if("function"==typeof i[0]){const e={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?i[1]||0:void 0,args:i},n=i[0];i[0]=function(){try{return n.apply(this,arguments)}finally{e.isPeriodic||("number"==typeof e.handleId?delete a[e.handleId]:e.handleId&&(e.handleId[se]=null))}};const r=p(t,i[0],e,s,c);if(!r)return r;const l=r.data.handleId;return"number"==typeof l?a[l]=r:l&&(l[se]=r),l&&l.ref&&l.unref&&"function"==typeof l.ref&&"function"==typeof l.unref&&(r.ref=l.ref.bind(l),r.unref=l.unref.bind(l)),"number"==typeof l||l?l:r}return n.apply(e,i)}),i=P(e,n,t=>function(n,o){const r=o[0];let i;"number"==typeof r?i=a[r]:(i=r&&r[se],i||(i=r)),i&&"string"==typeof i.type?"notScheduled"!==i.state&&(i.cancelFn&&i.data.isPeriodic||0===i.runCount)&&("number"==typeof r?delete a[r]:r&&(r[se]=null),i.zone.cancelTask(i)):t.apply(e,o)})}function le(e,t){if(Zone[t.symbol("patchEventTarget")])return;const{eventNames:n,zoneSymbolEventNames:o,TRUE_STR:r,FALSE_STR:i,ZONE_SYMBOL_PREFIX:a}=t.getGlobalObjects();for(let c=0;c<n.length;c++){const e=n[c],t=a+(e+i),s=a+(e+r);o[e]={},o[e][i]=t,o[e][r]=s}const s=e.EventTarget;return s&&s.prototype?(t.patchEventTarget(e,[s&&s.prototype]),!0):void 0}Zone.__load_patch("legacy",e=>{const t=e[Zone.__symbol__("legacyPatch")];t&&t()}),Zone.__load_patch("queueMicrotask",(e,t,n)=>{n.patchMethod(e,"queueMicrotask",e=>function(e,n){t.current.scheduleMicroTask("queueMicrotask",n[0])})}),Zone.__load_patch("timers",e=>{ce(e,"set","clear","Timeout"),ce(e,"set","clear","Interval"),ce(e,"set","clear","Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{ce(e,"request","cancel","AnimationFrame"),ce(e,"mozRequest","mozCancel","AnimationFrame"),ce(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,t)=>{const n=["alert","prompt","confirm"];for(let o=0;o<n.length;o++)P(e,n[o],(n,o,r)=>function(o,i){return t.current.run(n,e,i,r)})}),Zone.__load_patch("EventTarget",(e,t,n)=>{!function(e,t){t.patchEventPrototype(e,t)}(e,n),le(e,n);const o=e.XMLHttpRequestEventTarget;o&&o.prototype&&n.patchEventTarget(e,[o.prototype])}),Zone.__load_patch("MutationObserver",(e,t,n)=>{O("MutationObserver"),O("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,t,n)=>{O("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,t,n)=>{O("FileReader")}),Zone.__load_patch("on_property",(e,t,n)=>{ae(n,e)}),Zone.__load_patch("customElements",(e,t,n)=>{!function(e,t){const{isBrowser:n,isMix:o}=t.getGlobalObjects();(n||o)&&e.customElements&&"customElements"in e&&t.patchCallbacks(t,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,n)}),Zone.__load_patch("XHR",(e,t)=>{!function(e){const u=e.XMLHttpRequest;if(!u)return;const h=u.prototype;let d=h[c],m=h[l];if(!d){const t=e.XMLHttpRequestEventTarget;if(t){const e=t.prototype;d=e[c],m=e[l]}}function g(e){const o=e.data,a=o.target;a[i]=!1,a[s]=!1;const u=a[r];d||(d=a[c],m=a[l]),u&&m.call(a,"readystatechange",u);const h=a[r]=()=>{if(a.readyState===a.DONE)if(!o.aborted&&a[i]&&"scheduled"===e.state){const n=a[t.__symbol__("loadfalse")];if(0!==a.status&&n&&n.length>0){const r=e.invoke;e.invoke=function(){const n=a[t.__symbol__("loadfalse")];for(let t=0;t<n.length;t++)n[t]===e&&n.splice(t,1);o.aborted||"scheduled"!==e.state||r.call(e)},n.push(e)}else e.invoke()}else o.aborted||!1!==a[i]||(a[s]=!0)};return d.call(a,"readystatechange",h),a[n]||(a[n]=e),w.apply(a,o.args),a[i]=!0,e}function _(){}function y(e){const t=e.data;return t.aborted=!0,E.apply(t.target,t.args)}const v=P(h,"open",()=>function(e,t){return e[o]=0==t[2],e[a]=t[1],v.apply(e,t)}),b=f("fetchTaskAborting"),k=f("fetchTaskScheduling"),w=P(h,"send",()=>function(e,n){if(!0===t.current[k])return w.apply(e,n);if(e[o])return w.apply(e,n);{const t={target:e,url:e[a],isPeriodic:!1,args:n,aborted:!1},o=p("XMLHttpRequest.send",_,t,g,y);e&&!0===e[s]&&!t.aborted&&"scheduled"===o.state&&o.invoke()}}),E=P(h,"abort",()=>function(e,o){const r=e[n];if(r&&"string"==typeof r.type){if(null==r.cancelFn||r.data&&r.data.aborted)return;r.zone.cancelTask(r)}else if(!0===t.current[b])return E.apply(e,o)})}(e);const n=f("xhrTask"),o=f("xhrSync"),r=f("xhrListener"),i=f("xhrScheduled"),a=f("xhrURL"),s=f("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function(e,t){const n=e.constructor.name;for(let r=0;r<t.length;r++){const i=t[r],a=e[i];if(a){if(!v(o(e,i)))continue;e[i]=(e=>{const t=function(){return e.apply(this,y(arguments,n+"."+i))};return j(t,e),t})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,t)=>{function n(t){return function(n){B(e,t).forEach(o=>{const r=e.PromiseRejectionEvent;if(r){const e=new r(t,{promise:n.promise,reason:n.rejection});o.invoke(e)}})}}e.PromiseRejectionEvent&&(t[f("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[f("rejectionHandledHandler")]=n("rejectionhandled"))})}},[[2,0]]]);
|
|
//# sourceMappingURL=polyfills-es2015.dab278a6cdc36392250c.js.map
|