@project-sunbird/sunbird-video-player-web-component
Version:
The web component package for the sunbird video player
10 lines • 2.79 MB
JavaScript
(()=>{"use strict";var e,i={},_={};function a(e){var n=_[e];if(void 0!==n)return n.exports;var r=_[e]={id:e,loaded:!1,exports:{}};return i[e].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}a.m=i,e=[],a.O=(n,r,c,t)=>{if(!r){var u=1/0;for(l=0;l<e.length;l++){for(var[r,c,t]=e[l],o=!0,f=0;f<r.length;f++)(!1&t||u>=t)&&Object.keys(a.O).every(h=>a.O[h](r[f]))?r.splice(f--,1):(o=!1,t<u&&(u=t));if(o){e.splice(l--,1);var s=c();void 0!==s&&(n=s)}}return n}t=t||0;for(var l=e.length;l>0&&e[l-1][2]>t;l--)e[l]=e[l-1];e[l]=[r,c,t]},a.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return a.d(n,{a:n}),n},a.d=(e,n)=>{for(var r in n)a.o(n,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},a.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={runtime:0};a.O.j=c=>0===e[c];var n=(c,t)=>{var f,s,[l,u,o]=t,v=0;if(l.some(p=>0!==e[p])){for(f in u)a.o(u,f)&&(a.m[f]=u[f]);if(o)var d=o(a)}for(c&&c(t);v<l.length;v++)s=l[v],a.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return a.O(d)},r=self.webpackChunkvideo_player_wc=self.webpackChunkvideo_player_wc||[];r.forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r))})()})();
//# sourceMappingURL=runtime.js.map
(self.webpackChunkvideo_player_wc=self.webpackChunkvideo_player_wc||[]).push([["polyfills"],{5832:(F,K,He)=>{"use strict";He(4124),He(9056)},9056:()=>{
/*! (C) Andrea Giammarchi - @WebReflection - ISC Style License */
!function(F,K){"use strict";function He(){var e=Se.splice(0,Se.length);for(z=0;e.length;)e.shift().call(null,e.shift())}function Re(e,n){for(var t=0,o=e.length;t<o;t++)Xe(e[t],n)}function Ne(e){return function(n){J(n)&&(Xe(n,e),ue.length&&Re(n.querySelectorAll(ue),e))}}function je(e){var n=w.call(e,"is"),t=e.nodeName.toUpperCase(),o=pe.call(Ae,n?be+n.toUpperCase():De+t);return n&&-1<o&&!pt(t,n)?-1:o}function pt(e,n){return-1<ue.indexOf(e+'[is="'+n+'"]')}function gt(e){var n=e.currentTarget,t=e.attrChange,o=e.attrName,f=e.target,m=e[Qe]||2,d=e[ht]||3;!Le||f&&f!==n||!n[_e]||"style"===o||e.prevValue===e.newValue&&(""!==e.newValue||t!==m&&t!==d)||n[_e](o,t===m?null:e.prevValue,t===d?null:e.newValue)}function tt(e){var n=Ne(e);return function(t){Se.push(n,t.target),z&&clearTimeout(z),z=setTimeout(He,1)}}function qe(e){ie&&(ie=!1,e.currentTarget.removeEventListener(kt,qe)),ue.length&&Re((e.target||V).querySelectorAll(ue),e.detail===Ee?Ee:me),j&&function ve(){for(var e,n=0,t=G.length;n<t;n++)e=G[n],Oe.contains(e)||(t--,G.splice(n--,1),Xe(e,Ee))}()}function lt(e,n){var t=this;$.call(t,e,n),$e.call(t,{target:t})}function nt(e,n,t){var o=n.apply(e,t),f=je(o);return-1<f&&Be(o,We[f]),t.pop()&&ue.length&&function Ze(e){for(var n,t=0,o=e.length;t<o;t++)n=e[t],Be(n,We[je(n)])}(o.querySelectorAll(ue)),o}function fe(e,n){oe(e,n),ot?ot.observe(e,a):(ye&&(e.setAttribute=lt,e[ke]=Ue(e),e[re](Ct,$e)),e[re](we,gt)),e[ze]&&Le&&(e.created=!0,e[ze](),e.created=!1)}function Fe(e){throw new Error("A "+e+" type is already registered")}function Xe(e,n){var t,o,f=je(e);-1<f&&!A.call(e,"TEMPLATE")&&(Je(e,We[f]),f=0,n!==me||e[me]?n!==Ee||e[Ee]||(e[me]=!1,e[Ee]=!0,o="disconnected",f=1):(e[Ee]=!1,e[me]=!0,o="connected",f=1,j&&pe.call(G,e)<0&&G.push(e)),f&&(t=e[n+Te]||e[o+Te])&&t.call(e))}function Ve(){}function x(e,n,t){var o=t&&t[Ge]||"",f=n.prototype,m=ne(f),d=n.observedAttributes||Tt,g={prototype:m};B(m,ze,{value:function(){if(p)p=!1;else if(!this[u]){this[u]=!0,new n(this),f[ze]&&f[ze].call(this);var _=D[U.get(n)];(!v||_.create.length>1)&&Q(this)}}}),B(m,_e,{value:function(_){-1<pe.call(d,_)&&f[_e]&&f[_e].apply(this,arguments)}}),f[le]&&B(m,Mt,{value:f[le]}),f[ft]&&B(m,vt,{value:f[ft]}),o&&(g[Ge]=o),e=e.toUpperCase(),D[e]={constructor:n,create:o?[o,W(e)]:[e]},U.set(n,e),V[he](e.toLowerCase(),g),ut(e),N[e].r()}function Ye(e){var n=D[e.toUpperCase()];return n&&n.constructor}function xe(e){return"string"==typeof e?e:e&&e.is||""}function Q(e){for(var n,t=e[_e],o=t?e.attributes:Tt,f=o.length;f--;)n=o[f],t.call(e,n.name||n.nodeName,null,n.value||n.nodeValue)}function ut(e){return(e=e.toUpperCase())in N||(N[e]={},N[e].p=new H(function(n){N[e].r=n})),N[e].p}function rt(){T&&delete F.customElements,Ie(F,"customElements",{configurable:!0,value:new Ve}),Ie(F,"CustomElementRegistry",{configurable:!0,value:Ve});for(var e=yt.get(/^HTML[A-Z]*[a-z]/),n=e.length;n--;function(t){var o=F[t];if(o){F[t]=function(f){var m,d;return f||(f=this),f[u]||(p=!0,m=D[U.get(f.constructor)],(f=(d=v&&1===m.create.length)?Reflect.construct(o,Tt,m.constructor):V.createElement.apply(V,m.create))[u]=!0,p=!1,d||Q(f)),f},F[t].prototype=o.prototype;try{o.prototype.constructor=F[t]}catch{Ie(o,u,{value:F[t]})}}}(e[n]));V.createElement=function(t,o){var f=xe(o);return f?l.call(this,t,W(f)):l.call(this,t)},ce||(ge=!0,V[he](""))}var V=F.document,ae=F.Object,yt=function(e){var n,t,o,f,m=/^[A-Z]+[a-z]/,g=function(R,P){(P=P.toLowerCase())in _||(_[R]=(_[R]||[]).concat(P),_[P]=_[P.toUpperCase()]=R)},_=(ae.create||ae)(null),y={};for(t in e)for(f in e[t])for(o=e[t][f],_[f]=o,n=0;n<o.length;n++)_[o[n].toLowerCase()]=_[o[n].toUpperCase()]=f;return y.get=function(R){return"string"==typeof R?_[R]||(m.test(R)?[]:""):function(R){var P,Y=[];for(P in _)R.test(P)&&Y.push(P);return Y}(R)},y.set=function(R,P){return m.test(R)?g(R,P):g(P,R),y},y}({collections:{HTMLAllCollection:["all"],HTMLCollection:["forms"],HTMLFormControlsCollection:["elements"],HTMLOptionsCollection:["options"]},elements:{Element:["element"],HTMLAnchorElement:["a"],HTMLAppletElement:["applet"],HTMLAreaElement:["area"],HTMLAttachmentElement:["attachment"],HTMLAudioElement:["audio"],HTMLBRElement:["br"],HTMLBaseElement:["base"],HTMLBodyElement:["body"],HTMLButtonElement:["button"],HTMLCanvasElement:["canvas"],HTMLContentElement:["content"],HTMLDListElement:["dl"],HTMLDataElement:["data"],HTMLDataListElement:["datalist"],HTMLDetailsElement:["details"],HTMLDialogElement:["dialog"],HTMLDirectoryElement:["dir"],HTMLDivElement:["div"],HTMLDocument:["document"],HTMLElement:["element","abbr","address","article","aside","b","bdi","bdo","cite","code","command","dd","dfn","dt","em","figcaption","figure","footer","header","i","kbd","mark","nav","noscript","rp","rt","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr"],HTMLEmbedElement:["embed"],HTMLFieldSetElement:["fieldset"],HTMLFontElement:["font"],HTMLFormElement:["form"],HTMLFrameElement:["frame"],HTMLFrameSetElement:["frameset"],HTMLHRElement:["hr"],HTMLHeadElement:["head"],HTMLHeadingElement:["h1","h2","h3","h4","h5","h6"],HTMLHtmlElement:["html"],HTMLIFrameElement:["iframe"],HTMLImageElement:["img"],HTMLInputElement:["input"],HTMLKeygenElement:["keygen"],HTMLLIElement:["li"],HTMLLabelElement:["label"],HTMLLegendElement:["legend"],HTMLLinkElement:["link"],HTMLMapElement:["map"],HTMLMarqueeElement:["marquee"],HTMLMediaElement:["media"],HTMLMenuElement:["menu"],HTMLMenuItemElement:["menuitem"],HTMLMetaElement:["meta"],HTMLMeterElement:["meter"],HTMLModElement:["del","ins"],HTMLOListElement:["ol"],HTMLObjectElement:["object"],HTMLOptGroupElement:["optgroup"],HTMLOptionElement:["option"],HTMLOutputElement:["output"],HTMLParagraphElement:["p"],HTMLParamElement:["param"],HTMLPictureElement:["picture"],HTMLPreElement:["pre"],HTMLProgressElement:["progress"],HTMLQuoteElement:["blockquote","q","quote"],HTMLScriptElement:["script"],HTMLSelectElement:["select"],HTMLShadowElement:["shadow"],HTMLSlotElement:["slot"],HTMLSourceElement:["source"],HTMLSpanElement:["span"],HTMLStyleElement:["style"],HTMLTableCaptionElement:["caption"],HTMLTableCellElement:["td","th"],HTMLTableColElement:["col","colgroup"],HTMLTableElement:["table"],HTMLTableRowElement:["tr"],HTMLTableSectionElement:["thead","tbody","tfoot"],HTMLTemplateElement:["template"],HTMLTextAreaElement:["textarea"],HTMLTimeElement:["time"],HTMLTitleElement:["title"],HTMLTrackElement:["track"],HTMLUListElement:["ul"],HTMLUnknownElement:["unknown","vhgroupv","vkeygen"],HTMLVideoElement:["video"]},nodes:{Attr:["node"],Audio:["audio"],CDATASection:["node"],CharacterData:["node"],Comment:["#comment"],Document:["#document"],DocumentFragment:["#document-fragment"],DocumentType:["node"],HTMLDocument:["#document"],Image:["img"],Option:["option"],ProcessingInstruction:["node"],ShadowRoot:["#shadow-root"],Text:["#text"],XMLDocument:["xml"]}});"object"!=typeof K&&(K={type:K||"auto"});var Se,$e,Ke,Ue,ot,st,Je,Be,te,e,n,t,o,f,he="registerElement",de=1e5*F.Math.random()|0,ke="__"+he+de,re="addEventListener",me="attached",Te="Callback",Ee="detached",Ge="extends",_e="attributeChanged"+Te,Mt=me+Te,le="connected"+Te,ft="disconnected"+Te,ze="created"+Te,vt=Ee+Te,Qe="ADDITION",ht="REMOVAL",we="DOMAttrModified",kt="DOMContentLoaded",Ct="DOMSubtreeModified",De="<",be="=",wt=/^[A-Z][._A-Z0-9]*-[-._A-Z0-9]*$/,Dt=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],Ae=[],We=[],ue="",Oe=V.documentElement,pe=Ae.indexOf||function(e){for(var n=this.length;n--&&this[n]!==e;);return n},dt=ae.prototype,mt=dt.hasOwnProperty,it=dt.isPrototypeOf,Ie=ae.defineProperty,Tt=[],at=ae.getOwnPropertyDescriptor,Et=ae.getOwnPropertyNames,s=ae.getPrototypeOf,i=ae.setPrototypeOf,h=!!ae.__proto__,u="__dreCEv1",T=F.customElements,v=!/^force/.test(K.type)&&!!(T&&T.define&&T.get&&T.whenDefined),k=ae.create||ae,M=F.Map||function(){var e,n=[],t=[];return{get:function(o){return t[pe.call(n,o)]},set:function(o,f){(e=pe.call(n,o))<0?t[n.push(o)-1]=f:t[e]=f}}},H=F.Promise||function(e){function n(m){for(o=!0;t.length;)t.shift()(m)}var t=[],o=!1,f={catch:function(){return f},then:function(m){return t.push(m),o&&setTimeout(n,1),f}};return e(n),f},p=!1,D=k(null),N=k(null),U=new M,W=function(e){return e.toLowerCase()},ne=ae.create||function e(n){return n?(e.prototype=n,new e):this},oe=i||(h?function(e,n){return e.__proto__=n,e}:Et&&at?function(){function e(n,t){for(var o,f=Et(t),m=0,d=f.length;m<d;m++)o=f[m],mt.call(n,o)||Ie(n,o,at(t,o))}return function(n,t){do{e(n,t)}while((t=s(t))&&!it.call(t,n));return n}}():function(e,n){for(var t in n)e[t]=n[t];return e}),q=F.MutationObserver||F.WebKitMutationObserver,C=F.HTMLAnchorElement,E=(F.HTMLElement||F.Element||F.Node).prototype,j=!it.call(E,Oe),B=j?function(e,n,t){return e[n]=t.value,e}:Ie,J=j?function(e){return 1===e.nodeType}:function(e){return it.call(E,e)},G=j&&[],L=E.attachShadow,X=E.cloneNode,A=E.closest||function(e){for(var n=this;n&&n.nodeName!==e;)n=n.parentNode;return n},O=E.dispatchEvent,w=E.getAttribute,S=E.hasAttribute,se=E.removeAttribute,$=E.setAttribute,I=V.createElement,c=V.importNode,l=I,a=q&&{attributes:!0,characterData:!0,attributeOldValue:!0},b=q||function(e){ye=!1,Oe.removeEventListener(we,b)},z=0,ce=he in V&&!/^force-all/.test(K.type),Z=!0,ge=!1,ye=!0,ie=!0,Le=!0;if(q&&((te=V.createElement("div")).innerHTML="<div><div></div></div>",new q(function(e,n){if(e[0]&&"childList"==e[0].type&&!e[0].removedNodes[0].childNodes.length){var t=(te=at(E,"innerHTML"))&&te.set;t&&Ie(E,"innerHTML",{set:function(o){for(;this.lastChild;)this.removeChild(this.lastChild);t.call(this,o)}})}n.disconnect(),te=null}).observe(te,{childList:!0,subtree:!0}),te.innerHTML=""),ce||(i||h?(Je=function(e,n){it.call(n,e)||fe(e,n)},Be=fe):(Je=function(e,n){e[ke]||(e[ke]=ae(!0),fe(e,n))},Be=Je),j?(ye=!1,e=at(E,re),n=e.value,t=function(m){var d=new CustomEvent(we,{bubbles:!0});d.attrName=m,d.prevValue=w.call(this,m),d.newValue=null,d[ht]=d.attrChange=2,se.call(this,m),O.call(this,d)},o=function(m,d){var g=S.call(this,m),_=g&&w.call(this,m),y=new CustomEvent(we,{bubbles:!0});$.call(this,m,d),y.attrName=m,y.prevValue=g?_:null,y.newValue=d,g?y.MODIFICATION=y.attrChange=1:y[Qe]=y.attrChange=0,O.call(this,y)},f=function(m){var d,g=m.currentTarget,_=g[ke],y=m.propertyName;_.hasOwnProperty(y)&&(_=_[y],(d=new CustomEvent(we,{bubbles:!0})).attrName=_.name,d.prevValue=_.value||null,d.newValue=_.value=g[y]||null,null==d.prevValue?d[Qe]=d.attrChange=0:d.MODIFICATION=d.attrChange=1,O.call(g,d))},e.value=function(m,d,g){m===we&&this[_e]&&this.setAttribute!==o&&(this[ke]={className:{name:"class",value:this.className}},this.setAttribute=o,this.removeAttribute=t,n.call(this,"propertychange",f)),n.call(this,m,d,g)},Ie(E,re,e)):q||(Oe[re](we,b),Oe.setAttribute(ke,1),Oe.removeAttribute(ke),ye&&($e=function(e){var n,t,o,f=this;if(f===e.target){for(o in n=f[ke],f[ke]=t=Ue(f),t){if(!(o in n))return Ke(0,f,o,n[o],t[o],Qe);if(t[o]!==n[o])return Ke(1,f,o,n[o],t[o],"MODIFICATION")}for(o in n)if(!(o in t))return Ke(2,f,o,n[o],t[o],ht)}},Ke=function(e,n,t,o,f,m){var d={attrChange:e,currentTarget:n,attrName:t,prevValue:o,newValue:f};d[m]=e,gt(d)},Ue=function(e){for(var n,t,o={},f=e.attributes,m=0,d=f.length;m<d;m++)"setAttribute"!==(t=(n=f[m]).name)&&(o[t]=n.value);return o})),V[he]=function(e,n){if(t=e.toUpperCase(),Z&&(Z=!1,q?(ot=function(_,y){function R(P,Y){for(var ee=0,Me=P.length;ee<Me;Y(P[ee++]));}return new q(function(P){for(var Y,ee,Me,et=0,bt=P.length;et<bt;et++)"childList"===(Y=P[et]).type?(R(Y.addedNodes,_),R(Y.removedNodes,y)):(ee=Y.target,Le&&ee[_e]&&"style"!==Y.attributeName&&(Me=w.call(ee,Y.attributeName))!==Y.oldValue&&ee[_e](Y.attributeName,Y.oldValue,Me))})}(Ne(me),Ne(Ee)),(st=function(_){return ot.observe(_,{childList:!0,subtree:!0}),_})(V),L&&(E.attachShadow=function(){return st(L.apply(this,arguments))})):(Se=[],V[re]("DOMNodeInserted",tt(me)),V[re]("DOMNodeRemoved",tt(Ee))),V[re](kt,qe),V[re]("readystatechange",qe),V.importNode=function(_,y){switch(_.nodeType){case 1:return nt(V,c,[_,!!y]);case 11:for(var R=V.createDocumentFragment(),P=_.childNodes,Y=P.length,ee=0;ee<Y;ee++)R.appendChild(V.importNode(P[ee],!!y));return R;default:return X.call(_,!!y)}},E.cloneNode=function(_){return nt(this,X,[!!_])}),ge)return ge=!1;if(-2<pe.call(Ae,be+t)+pe.call(Ae,De+t)&&Fe(e),!wt.test(t)||-1<pe.call(Dt,t))throw new Error("The type "+e+" is invalid");var t,o,f=function(){return d?V.createElement(g,t):V.createElement(g)},m=n||dt,d=mt.call(m,Ge),g=d?n[Ge].toUpperCase():t;return d&&-1<pe.call(Ae,De+g)&&Fe(g),o=Ae.push((d?be:De)+t)-1,ue=ue.concat(ue.length?",":"",d?g+'[is="'+e.toLowerCase()+'"]':g),f.prototype=We[o]=mt.call(m,"prototype")?m.prototype:ne(E),ue.length&&Re(V.querySelectorAll(ue),me),f},V.createElement=l=function(e,n){var t=xe(n),o=t?I.call(V,e,W(t)):I.call(V,e),f=""+e,m=pe.call(Ae,(t?be:De)+(t||f).toUpperCase()),d=-1<m;return t&&(o.setAttribute("is",t=t.toLowerCase()),d&&(d=pt(f.toUpperCase(),t))),Le=!V.createElement.innerHTMLHelper,d&&Be(o,We[m]),o}),addEventListener("beforeunload",function(){delete V.createElement,delete V.importNode,delete V[he]},!1),Ve.prototype={constructor:Ve,define:v?function(e,n,t){if(t)x(e,n,t);else{var o=e.toUpperCase();D[o]={constructor:n,create:[o]},U.set(n,o),T.define(e,n)}}:x,get:v?function(e){return T.get(e)||Ye(e)}:Ye,whenDefined:v?function(e){return H.race([T.whenDefined(e),ut(e)])}:ut},!T||/^force/.test(K.type))rt();else if(!K.noBuiltIn)try{!function(e,n,t){var o=new RegExp("^<a\\s+is=('|\")"+t+"\\1></a>$");if(n[Ge]="a",e.prototype=ne(C.prototype),e.prototype.constructor=e,F.customElements.define(t,e,n),!o.test(V.createElement("a",{is:t}).outerHTML)||!o.test((new e).outerHTML))throw n}(function e(){return Reflect.construct(C,[],e)},{},"document-register-element-a"+de)}catch{rt()}if(!K.noBuiltIn)try{if(I.call(V,"a","a").outerHTML.indexOf("is")<0)throw{}}catch{W=function(n){return{is:n.toLowerCase()}}}}(window)},4124:()=>{"use strict";
/**
* @license Angular v<unknown>
* (c) 2010-2025 Google LLC. https://angular.io/
* License: MIT
*/const F=globalThis;function K(s){return(F.__Zone_symbol_prefix||"__zone_symbol__")+s}const Ze=Object.getOwnPropertyDescriptor,Ne=Object.defineProperty,je=Object.getPrototypeOf,pt=Object.create,gt=Array.prototype.slice,tt="addEventListener",qe="removeEventListener",lt=K(tt),nt=K(qe),fe="true",ve="false",Fe=K("");function Xe(s,i){return Zone.current.wrap(s,i)}function Ve(s,i,h,r,u){return Zone.current.scheduleMacroTask(s,i,h,r,u)}const x=K,Ye=typeof window<"u",xe=Ye?window:void 0,Q=Ye&&xe||globalThis;function rt(s,i){for(let h=s.length-1;h>=0;h--)"function"==typeof s[h]&&(s[h]=Xe(s[h],i+"_"+h));return s}function ae(s){return!s||!1!==s.writable&&!("function"==typeof s.get&&typeof s.set>"u")}const yt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Se=!("nw"in Q)&&typeof Q.process<"u"&&"[object process]"===Q.process.toString(),$e=!Se&&!yt&&!(!Ye||!xe.HTMLElement),Ke=typeof Q.process<"u"&&"[object process]"===Q.process.toString()&&!yt&&!(!Ye||!xe.HTMLElement),Ue={},ot=x("enable_beforeunload"),st=function(s){if(!(s=s||Q.event))return;let i=Ue[s.type];i||(i=Ue[s.type]=x("ON_PROPERTY"+s.type));const h=this||s.target||Q,r=h[i];let u;if($e&&h===xe&&"error"===s.type){const T=s;u=r&&r.call(this,T.message,T.filename,T.lineno,T.colno,T.error),!0===u&&s.preventDefault()}else u=r&&r.apply(this,arguments),"beforeunload"===s.type&&Q[ot]&&"string"==typeof u?s.returnValue=u:null!=u&&!u&&s.preventDefault();return u};function Je(s,i,h){let r=Ze(s,i);if(!r&&h&&Ze(h,i)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;const u=x("on"+i+"patched");if(s.hasOwnProperty(u)&&s[u])return;delete r.writable,delete r.value;const T=r.get,v=r.set,k=i.slice(2);let M=Ue[k];M||(M=Ue[k]=x("ON_PROPERTY"+k)),r.set=function(H){let p=this;!p&&s===Q&&(p=Q),p&&("function"==typeof p[M]&&p.removeEventListener(k,st),v?.call(p,null),p[M]=H,"function"==typeof H&&p.addEventListener(k,st,!1))},r.get=function(){let H=this;if(!H&&s===Q&&(H=Q),!H)return null;const p=H[M];if(p)return p;if(T){let D=T.call(this);if(D)return r.set.call(this,D),"function"==typeof H.removeAttribute&&H.removeAttribute(i),D}return null},Ne(s,i,r),s[u]=!0}function Be(s,i,h){if(i)for(let r=0;r<i.length;r++)Je(s,"on"+i[r],h);else{const r=[];for(const u in s)"on"==u.slice(0,2)&&r.push(u);for(let u=0;u<r.length;u++)Je(s,r[u],h)}}const te=x("originalInstance");function he(s){const i=Q[s];if(!i)return;Q[x(s)]=i,Q[s]=function(){const u=rt(arguments,s);switch(u.length){case 0:this[te]=new i;break;case 1:this[te]=new i(u[0]);break;case 2:this[te]=new i(u[0],u[1]);break;case 3:this[te]=new i(u[0],u[1],u[2]);break;case 4:this[te]=new i(u[0],u[1],u[2],u[3]);break;default:throw new Error("Arg list too long.")}},re(Q[s],i);const h=new i(function(){});let r;for(r in h)"XMLHttpRequest"===s&&"responseBlob"===r||function(u){"function"==typeof h[u]?Q[s].prototype[u]=function(){return this[te][u].apply(this[te],arguments)}:Ne(Q[s].prototype,u,{set:function(T){"function"==typeof T?(this[te][u]=Xe(T,s+"."+u),re(this[te][u],T)):this[te][u]=T},get:function(){return this[te][u]}})}(r);for(r in i)"prototype"!==r&&i.hasOwnProperty(r)&&(Q[s][r]=i[r])}function de(s,i,h){let r=s;for(;r&&!r.hasOwnProperty(i);)r=je(r);!r&&s[i]&&(r=s);const u=x(i);let T=null;if(r&&(!(T=r[u])||!r.hasOwnProperty(u))){T=r[u]=r[i];if(ae(r&&Ze(r,i))){const k=h(T,u,i);r[i]=function(){return k(this,arguments)},re(r[i],T)}}return T}function ke(s,i,h){let r=null;function u(T){const v=T.data;return v.args[v.cbIdx]=function(){T.invoke.apply(this,arguments)},r.apply(v.target,v.args),T}r=de(s,i,T=>function(v,k){const M=h(v,k);return M.cbIdx>=0&&"function"==typeof k[M.cbIdx]?Ve(M.name,k[M.cbIdx],M,u):T.apply(v,k)})}function re(s,i){s[x("OriginalDelegate")]=i}let me=!1,Te=!1;function Ee(){if(me)return Te;me=!0;try{const s=xe.navigator.userAgent;(-1!==s.indexOf("MSIE ")||-1!==s.indexOf("Trident/")||-1!==s.indexOf("Edge/"))&&(Te=!0)}catch{}return Te}function Ge(s){return"function"==typeof s}function _e(s){return"number"==typeof s}const Mt={useG:!0},le={},ft={},ze=new RegExp("^"+Fe+"(\\w+)(true|false)$"),vt=x("propagationStopped");function Qe(s,i){const h=(i?i(s):s)+ve,r=(i?i(s):s)+fe,u=Fe+h,T=Fe+r;le[s]={},le[s][ve]=u,le[s][fe]=T}function ht(s,i,h,r){const u=r&&r.add||tt,T=r&&r.rm||qe,v=r&&r.listeners||"eventListeners",k=r&&r.rmAll||"removeAllListeners",M=x(u),H="."+u+":",p="prependListener",D="."+p+":",N=function(C,E,j){if(C.isRemoved)return;const B=C.callback;let J;"object"==typeof B&&B.handleEvent&&(C.callback=L=>B.handleEvent(L),C.originalDelegate=B);try{C.invoke(C,E,[j])}catch(L){J=L}const G=C.options;if(G&&"object"==typeof G&&G.once){const L=C.originalDelegate?C.originalDelegate:C.callback;E[T].call(E,j.type,L,G)}return J};function U(C,E,j){if(!(E=E||s.event))return;const B=C||E.target||s,J=B[le[E.type][j?fe:ve]];if(J){const G=[];if(1===J.length){const L=N(J[0],B,E);L&&G.push(L)}else{const L=J.slice();for(let X=0;X<L.length&&(!E||!0!==E[vt]);X++){const A=N(L[X],B,E);A&&G.push(A)}}if(1===G.length)throw G[0];for(let L=0;L<G.length;L++){const X=G[L];i.nativeScheduleMicroTask(()=>{throw X})}}}const W=function(C){return U(this,C,!1)},ne=function(C){return U(this,C,!0)};function oe(C,E){if(!C)return!1;let j=!0;E&&void 0!==E.useG&&(j=E.useG);const B=E&&E.vh;let J=!0;E&&void 0!==E.chkDup&&(J=E.chkDup);let G=!1;E&&void 0!==E.rt&&(G=E.rt);let L=C;for(;L&&!L.hasOwnProperty(u);)L=je(L);if(!L&&C[u]&&(L=C),!L||L[M])return!1;const X=E&&E.eventNameToString,A={},O=L[M]=L[u],w=L[x(T)]=L[T],S=L[x(v)]=L[v],se=L[x(k)]=L[k];let $;E&&E.prepend&&($=L[x(E.prepend)]=L[E.prepend]);const ce=j?function(t){if(!A.isExisting)return O.call(A.target,A.eventName,A.capture?ne:W,A.options)}:function(t){return O.call(A.target,A.eventName,t.invoke,A.options)},Z=j?function(t){if(!t.isRemoved){const o=le[t.eventName];let f;o&&(f=o[t.capture?fe:ve]);const m=f&&t.target[f];if(m)for(let d=0;d<m.length;d++)if(m[d]===t){m.splice(d,1),t.isRemoved=!0,t.removeAbortListener&&(t.removeAbortListener(),t.removeAbortListener=null),0===m.length&&(t.allRemoved=!0,t.target[f]=null);break}}if(t.allRemoved)return w.call(t.target,t.eventName,t.capture?ne:W,t.options)}:function(t){return w.call(t.target,t.eventName,t.invoke,t.options)},ye=E?.diff||function(t,o){const f=typeof o;return"function"===f&&t.callback===o||"object"===f&&t.originalDelegate===o},ie=Zone[x("UNPATCHED_EVENTS")],Le=s[x("PASSIVE_EVENTS")];const n=function(t,o,f,m,d=!1,g=!1){return function(){const _=this||s;let y=arguments[0];E&&E.transferEventName&&(y=E.transferEventName(y));let R=arguments[1];if(!R)return t.apply(this,arguments);if(Se&&"uncaughtException"===y)return t.apply(this,arguments);let P=!1;if("function"!=typeof R){if(!R.handleEvent)return t.apply(this,arguments);P=!0}if(B&&!B(t,R,_,arguments))return;const Y=!!Le&&-1!==Le.indexOf(y),ee=function e(t){if("object"==typeof t&&null!==t){const o={...t};return t.signal&&(o.signal=t.signal),o}return t}(function I(t,o){return o?"boolean"==typeof t?{capture:t,passive:!0}:t?"object"==typeof t&&!1!==t.passive?{...t,passive:!0}:t:{passive:!0}:t}(arguments[2],Y)),Me=ee?.signal;if(Me?.aborted)return;if(ie)for(let Pe=0;Pe<ie.length;Pe++)if(y===ie[Pe])return Y?t.call(_,y,R,ee):t.apply(this,arguments);const et=!!ee&&("boolean"==typeof ee||ee.capture),bt=!(!ee||"object"!=typeof ee)&&ee.once,St=Zone.current;let Ot=le[y];Ot||(Qe(y,X),Ot=le[y]);const Pt=Ot[et?fe:ve];let Lt,ct=_[Pt],Ht=!1;if(ct){if(Ht=!0,J)for(let Pe=0;Pe<ct.length;Pe++)if(ye(ct[Pe],R))return}else ct=_[Pt]=[];const Rt=_.constructor.name,Nt=ft[Rt];Nt&&(Lt=Nt[y]),Lt||(Lt=Rt+o+(X?X(y):y)),A.options=ee,bt&&(A.options.once=!1),A.target=_,A.capture=et,A.eventName=y,A.isExisting=Ht;const _t=j?Mt:void 0;_t&&(_t.taskData=A),Me&&(A.options.signal=void 0);const Ce=St.scheduleEventTask(Lt,R,_t,f,m);if(Me){A.options.signal=Me;const Pe=()=>Ce.zone.cancelTask(Ce);t.call(Me,"abort",Pe,{once:!0}),Ce.removeAbortListener=()=>Me.removeEventListener("abort",Pe)}return A.target=null,_t&&(_t.taskData=null),bt&&(A.options.once=!0),"boolean"!=typeof Ce.options&&(Ce.options=ee),Ce.target=_,Ce.capture=et,Ce.eventName=y,P&&(Ce.originalDelegate=R),g?ct.unshift(Ce):ct.push(Ce),d?_:void 0}};return L[u]=n(O,H,ce,Z,G),$&&(L[p]=n($,D,function(t){return $.call(A.target,A.eventName,t.invoke,A.options)},Z,G,!0)),L[T]=function(){const t=this||s;let o=arguments[0];E&&E.transferEventName&&(o=E.transferEventName(o));const f=arguments[2],m=!!f&&("boolean"==typeof f||f.capture),d=arguments[1];if(!d)return w.apply(this,arguments);if(B&&!B(w,d,t,arguments))return;const g=le[o];let _;g&&(_=g[m?fe:ve]);const y=_&&t[_];if(y)for(let R=0;R<y.length;R++){const P=y[R];if(ye(P,d)){if(y.splice(R,1),P.isRemoved=!0,0===y.length&&(P.allRemoved=!0,t[_]=null,!m&&"string"==typeof o)){t[Fe+"ON_PROPERTY"+o]=null}return P.zone.cancelTask(P),G?t:void 0}}return w.apply(this,arguments)},L[v]=function(){const t=this||s;let o=arguments[0];E&&E.transferEventName&&(o=E.transferEventName(o));const f=[],m=we(t,X?X(o):o);for(let d=0;d<m.length;d++){const g=m[d];let _=g.originalDelegate?g.originalDelegate:g.callback;f.push(_)}return f},L[k]=function(){const t=this||s;let o=arguments[0];if(o){E&&E.transferEventName&&(o=E.transferEventName(o));const f=le[o];if(f){const m=f[ve],d=f[fe],g=t[m],_=t[d];if(g){const y=g.slice();for(let R=0;R<y.length;R++){const P=y[R];let Y=P.originalDelegate?P.originalDelegate:P.callback;this[T].call(this,o,Y,P.options)}}if(_){const y=_.slice();for(let R=0;R<y.length;R++){const P=y[R];let Y=P.originalDelegate?P.originalDelegate:P.callback;this[T].call(this,o,Y,P.options)}}}}else{const f=Object.keys(t);for(let m=0;m<f.length;m++){const d=f[m],g=ze.exec(d);let _=g&&g[1];_&&"removeListener"!==_&&this[k].call(this,_)}this[k].call(this,"removeListener")}if(G)return this},re(L[u],O),re(L[T],w),se&&re(L[k],se),S&&re(L[v],S),!0}let q=[];for(let C=0;C<h.length;C++)q[C]=oe(h[C],r);return q}function we(s,i){if(!i){const T=[];for(let v in s){const k=ze.exec(v);let M=k&&k[1];if(M&&(!i||M===i)){const H=s[v];if(H)for(let p=0;p<H.length;p++)T.push(H[p])}}return T}let h=le[i];h||(Qe(i),h=le[i]);const r=s[h[ve]],u=s[h[fe]];return r?u?r.concat(u):r.slice():u?u.slice():[]}function kt(s,i){const h=s.Event;h&&h.prototype&&i.patchMethod(h.prototype,"stopImmediatePropagation",r=>function(u,T){u[vt]=!0,r&&r.apply(u,T)})}const De=x("zoneTask");function be(s,i,h,r){let u=null,T=null;h+=r;const v={};function k(H){const p=H.data;p.args[0]=function(){return H.invoke.apply(this,arguments)};const D=u.apply(s,p.args);return _e(D)?p.handleId=D:(p.handle=D,p.isRefreshable=Ge(D.refresh)),H}function M(H){const{handle:p,handleId:D}=H.data;return T.call(s,p??D)}u=de(s,i+=r,H=>function(p,D){if(Ge(D[0])){const N={isRefreshable:!1,isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?D[1]||0:void 0,args:D},U=D[0];D[0]=function(){try{return U.apply(this,arguments)}finally{const{handle:j,handleId:B,isPeriodic:J,isRefreshable:G}=N;!J&&!G&&(B?delete v[B]:j&&(j[De]=null))}};const W=Ve(i,D[0],N,k,M);if(!W)return W;const{handleId:ne,handle:oe,isRefreshable:q,isPeriodic:C}=W.data;if(ne)v[ne]=W;else if(oe&&(oe[De]=W,q&&!C)){const E=oe.refresh;oe.refresh=function(){const{zone:j,state:B}=W;return"notScheduled"===B?(W._state="scheduled",j._updateTaskCount(W,1)):"running"===B&&(W._state="scheduling"),E.call(this)}}return oe??ne??W}return H.apply(s,D)}),T=de(s,h,H=>function(p,D){const N=D[0];let U;_e(N)?(U=v[N],delete v[N]):(U=N?.[De],U?N[De]=null:U=N),U?.type?U.cancelFn&&U.zone.cancelTask(U):H.apply(s,D)})}function We(s,i,h){if(!h||0===h.length)return i;const r=h.filter(T=>T.target===s);if(0===r.length)return i;const u=r[0].ignoreProperties;return i.filter(T=>-1===u.indexOf(T))}function ue(s,i,h,r){if(!s)return;Be(s,We(s,i,h),r)}function Oe(s){return Object.getOwnPropertyNames(s).filter(i=>i.startsWith("on")&&i.length>2).map(i=>i.substring(2))}function mt(s){s.__load_patch("ZoneAwarePromise",(i,h,r)=>{const u=Object.getOwnPropertyDescriptor,T=Object.defineProperty;const k=r.symbol,M=[],H=!1!==i[k("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],p=k("Promise"),D=k("then");r.onUnhandledError=e=>{if(r.showUncaughtError()){const n=e&&e.rejection;n?console.error("Unhandled Promise rejection:",n instanceof Error?n.message:n,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",n,n instanceof Error?n.stack:void 0):console.error(e)}},r.microtaskDrainDone=()=>{for(;M.length;){const e=M.shift();try{e.zone.runGuarded(()=>{throw e.throwOriginal?e.rejection:e})}catch(n){W(n)}}};const U=k("unhandledPromiseRejectionHandler");function W(e){r.onUnhandledError(e);try{const n=h[U];"function"==typeof n&&n.call(this,e)}catch{}}function ne(e){return e&&"function"==typeof e.then}function oe(e){return e}function q(e){return Z.reject(e)}const C=k("state"),E=k("value"),j=k("finally"),B=k("parentPromiseValue"),J=k("parentPromiseState"),L=null,X=!0,A=!1;function w(e,n){return t=>{try{I(e,n,t)}catch(o){I(e,!1,o)}}}const S=function(){let e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}},se="Promise resolved with itself",$=k("currentTaskTrace");function I(e,n,t){const o=S();if(e===t)throw new TypeError(se);if(e[C]===L){let f=null;try{("object"==typeof t||"function"==typeof t)&&(f=t&&t.then)}catch(m){return o(()=>{I(e,!1,m)})(),e}if(n!==A&&t instanceof Z&&t.hasOwnProperty(C)&&t.hasOwnProperty(E)&&t[C]!==L)l(t),I(e,t[C],t[E]);else if(n!==A&&"function"==typeof f)try{f.call(t,o(w(e,n)),o(w(e,!1)))}catch(m){o(()=>{I(e,!1,m)})()}else{e[C]=n;const m=e[E];if(e[E]=t,e[j]===j&&n===X&&(e[C]=e[J],e[E]=e[B]),n===A&&t instanceof Error){const d=h.currentTask&&h.currentTask.data&&h.currentTask.data.__creationTrace__;d&&T(t,$,{configurable:!0,enumerable:!1,writable:!0,value:d})}for(let d=0;d<m.length;)a(e,m[d++],m[d++],m[d++],m[d++]);if(0==m.length&&n==A){e[C]=0;let d=t;try{throw new Error("Uncaught (in promise): "+function v(e){if(e&&e.toString===Object.prototype.toString)return(e.constructor&&e.constructor.name||"")+": "+JSON.stringify(e);return e?e.toString():Object.prototype.toString.call(e)}(t)+(t&&t.stack?"\n"+t.stack:""))}catch(g){d=g}H&&(d.throwOriginal=!0),d.rejection=t,d.promise=e,d.zone=h.current,d.task=h.currentTask,M.push(d),r.scheduleMicroTask()}}}return e}const c=k("rejectionHandledHandler");function l(e){if(0===e[C]){try{const n=h[c];n&&"function"==typeof n&&n.call(this,{rejection:e[E],promise:e})}catch{}e[C]=A;for(let n=0;n<M.length;n++)e===M[n].promise&&M.splice(n,1)}}function a(e,n,t,o,f){l(e);const m=e[C],d=m?"function"==typeof o?o:oe:"function"==typeof f?f:q;n.scheduleMicroTask("Promise.then",()=>{try{const g=e[E],_=!!t&&j===t[j];_&&(t[B]=g,t[J]=m);const y=n.run(d,void 0,_&&d!==q&&d!==oe?[]:[g]);I(t,!0,y)}catch(g){I(t,!1,g)}},t)}const z=function(){},ce=i.AggregateError;class Z{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(n){return n instanceof Z?n:I(new this(null),X,n)}static reject(n){return I(new this(null),A,n)}static withResolvers(){const n={};return n.promise=new Z((t,o)=>{n.resolve=t,n.reject=o}),n}static any(n){if(!n||"function"!=typeof n[Symbol.iterator])return Promise.reject(new ce([],"All promises were rejected"));const t=[];let o=0;try{for(let d of n)o++,t.push(Z.resolve(d))}catch{return Promise.reject(new ce([],"All promises were rejected"))}if(0===o)return Promise.reject(new ce([],"All promises were rejected"));let f=!1;const m=[];return new Z((d,g)=>{for(let _=0;_<t.length;_++)t[_].then(y=>{f||(f=!0,d(y))},y=>{m.push(y),o--,0===o&&(f=!0,g(new ce(m,"All promises were rejected")))})})}static race(n){let t,o,f=new this((g,_)=>{t=g,o=_});function m(g){t(g)}function d(g){o(g)}for(let g of n)ne(g)||(g=this.resolve(g)),g.then(m,d);return f}static all(n){return Z.allWithCallback(n)}static allSettled(n){return(this&&this.prototype instanceof Z?this:Z).allWithCallback(n,{thenCallback:o=>({status:"fulfilled",value:o}),errorCallback:o=>({status:"rejected",reason:o})})}static allWithCallback(n,t){let o,f,m=new this((y,R)=>{o=y,f=R}),d=2,g=0;const _=[];for(let y of n){ne(y)||(y=this.resolve(y));const R=g;try{y.then(P=>{_[R]=t?t.thenCallback(P):P,d--,0===d&&o(_)},P=>{t?(_[R]=t.errorCallback(P),d--,0===d&&o(_)):f(P)})}catch(P){f(P)}d++,g++}return d-=2,0===d&&o(_),m}constructor(n){const t=this;if(!(t instanceof Z))throw new Error("Must be an instanceof Promise.");t[C]=L,t[E]=[];try{const o=S();n&&n(o(w(t,X)),o(w(t,A)))}catch(o){I(t,!1,o)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return Z}then(n,t){let o=this.constructor?.[Symbol.species];(!o||"function"!=typeof o)&&(o=this.constructor||Z);const f=new o(z),m=h.current;return this[C]==L?this[E].push(m,f,n,t):a(this,m,f,n,t),f}catch(n){return this.then(null,n)}finally(n){let t=this.constructor?.[Symbol.species];(!t||"function"!=typeof t)&&(t=Z);const o=new t(z);o[j]=j;const f=h.current;return this[C]==L?this[E].push(f,o,n,n):a(this,f,o,n,n),o}}Z.resolve=Z.resolve,Z.reject=Z.reject,Z.race=Z.race,Z.all=Z.all;const ge=i[p]=i.Promise;i.Promise=Z;const ye=k("thenPatched");function ie(e){const n=e.prototype,t=u(n,"then");if(t&&(!1===t.writable||!t.configurable))return;const o=n.then;n[D]=o,e.prototype.then=function(f,m){return new Z((g,_)=>{o.call(this,g,_)}).then(f,m)},e[ye]=!0}return r.patchThen=ie,ge&&(ie(ge),de(i,"fetch",e=>function Le(e){return function(n,t){let o=e.apply(n,t);if(o instanceof Z)return o;let f=o.constructor;return f[ye]||ie(f),o}}(e))),Promise[h.__symbol__("uncaughtPromiseErrors")]=M,Z})}function Ie(s,i,h,r,u){const T=Zone.__symbol__(r);if(i[T])return;const v=i[T]=i[r];i[r]=function(k,M,H){return M&&M.prototype&&u.forEach(function(p){const D=`${h}.${r}::`+p,N=M.prototype;try{if(N.hasOwnProperty(p)){const U=s.ObjectGetOwnPropertyDescriptor(N,p);U&&U.value?(U.value=s.wrapWithCurrentZone(U.value,D),s._redefineProperty(M.prototype,p,U)):N[p]&&(N[p]=s.wrapWithCurrentZone(N[p],D))}else N[p]&&(N[p]=s.wrapWithCurrentZone(N[p],D))}catch{}}),v.call(i,k,M,H)},s.attachOriginToPatched(i[r],v)}const Et=function Re(){const s=globalThis,i=!0===s[K("forceDuplicateZoneCheck")];if(s.Zone&&(i||"function"!=typeof s.Zone.__symbol__))throw new Error("Zone already loaded.");return s.Zone??=function He(){const s=F.performance;function i(I){s&&s.mark&&s.mark(I)}function h(I,c){s&&s.measure&&s.measure(I,c)}i("Zone");class r{static __symbol__=K;static assertZonePatched(){if(F.Promise!==A.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 c=r.current;for(;c.parent;)c=c.parent;return c}static get current(){return w.zone}static get currentTask(){return S}static __load_patch(c,l,a=!1){if(A.hasOwnProperty(c)){const b=!0===F[K("forceDuplicateZoneCheck")];if(!a&&b)throw Error("Already loaded patch: "+c)}else if(!F["__Zone_disable_"+c]){const b="Zone:"+c;i(b),A[c]=l(F,r,O),h(b,b)}}get parent(){return this._parent}get name(){return this._name}_parent;_name;_properties;_zoneDelegate;constructor(c,l){this._parent=c,this._name=l?l.name||"unnamed":"<root>",this._properties=l&&l.properties||{},this._zoneDelegate=new T(this,this._parent&&this._parent._zoneDelegate,l)}get(c){const l=this.getZoneWith(c);if(l)return l._properties[c]}getZoneWith(c){let l=this;for(;l;){if(l._properties.hasOwnProperty(c))return l;l=l._parent}return null}fork(c){if(!c)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,c)}wrap(c,l){if("function"!=typeof c)throw new Error("Expecting function got: "+c);const a=this._zoneDelegate.intercept(this,c,l),b=this;return function(){return b.runGuarded(a,this,arguments,l)}}run(c,l,a,b){w={parent:w,zone:this};try{return this._zoneDelegate.invoke(this,c,l,a,b)}finally{w=w.parent}}runGuarded(c,l=null,a,b){w={parent:w,zone:this};try{try{return this._zoneDelegate.invoke(this,c,l,a,b)}catch(z){if(this._zoneDelegate.handleError(this,z))throw z}}finally{w=w.parent}}runTask(c,l,a){if(c.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(c.zone||oe).name+"; Execution: "+this.name+")");const b=c,{type:z,data:{isPeriodic:ce=!1,isRefreshable:Z=!1}={}}=c;if(c.state===q&&(z===X||z===L))return;const ge=c.state!=j;ge&&b._transitionTo(j,E);const ye=S;S=b,w={parent:w,zone:this};try{z==L&&c.data&&!ce&&!Z&&(c.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,b,l,a)}catch(ie){if(this._zoneDelegate.handleError(this,ie))throw ie}}finally{const ie=c.state;if(ie!==q&&ie!==J)if(z==X||ce||Z&&ie===C)ge&&b._transitionTo(E,j,C);else{const Le=b._zoneDelegates;this._updateTaskCount(b,-1),ge&&b._transitionTo(q,j,q),Z&&(b._zoneDelegates=Le)}w=w.parent,S=ye}}scheduleTask(c){if(c.zone&&c.zone!==this){let a=this;for(;a;){if(a===c.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${c.zone.name}`);a=a.parent}}c._transitionTo(C,q);const l=[];c._zoneDelegates=l,c._zone=this;try{c=this._zoneDelegate.scheduleTask(this,c)}catch(a){throw c._transitionTo(J,C,q),this._zoneDelegate.handleError(this,a),a}return c._zoneDelegates===l&&this._updateTaskCount(c,1),c.state==C&&c._transitionTo(E,C),c}scheduleMicroTask(c,l,a,b){return this.scheduleTask(new v(G,c,l,a,b,void 0))}scheduleMacroTask(c,l,a,b,z){return this.scheduleTask(new v(L,c,l,a,b,z))}scheduleEventTask(c,l,a,b,z){return this.scheduleTask(new v(X,c,l,a,b,z))}cancelTask(c){if(c.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(c.zone||oe).name+"; Execution: "+this.name+")");if(c.state===E||c.state===j){c._transitionTo(B,E,j);try{this._zoneDelegate.cancelTask(this,c)}catch(l){throw c._transitionTo(J,B),this._zoneDelegate.handleError(this,l),l}return this._updateTaskCount(c,-1),c._transitionTo(q,B),c.runCount=-1,c}}_updateTaskCount(c,l){const a=c._zoneDelegates;-1==l&&(c._zoneDelegates=null);for(let b=0;b<a.length;b++)a[b]._updateTaskCount(c.type,l)}}const u={name:"",onHasTask:(I,c,l,a)=>I.hasTask(l,a),onScheduleTask:(I,c,l,a)=>I.scheduleTask(l,a),onInvokeTask:(I,c,l,a,b,z)=>I.invokeTask(l,a,b,z),onCancelTask:(I,c,l,a)=>I.cancelTask(l,a)};class T{get zone(){return this._zone}_zone;_taskCounts={microTask:0,macroTask:0,eventTask:0};_parentDelegate;_forkDlgt;_forkZS;_forkCurrZone;_interceptDlgt;_interceptZS;_interceptCurrZone;_invokeDlgt;_invokeZS;_invokeCurrZone;_handleErrorDlgt;_handleErrorZS;_handleErrorCurrZone;_scheduleTaskDlgt;_scheduleTaskZS;_scheduleTaskCurrZone;_invokeTaskDlgt;_invokeTaskZS;_invokeTaskCurrZone;_cancelTaskDlgt;_cancelTaskZS;_cancelTaskCurrZone;_hasTaskDlgt;_hasTaskDlgtOwner;_hasTaskZS;_hasTaskCurrZone;constructor(c,l,a){this._zone=c,this._parentDelegate=l,this._forkZS=a&&(a&&a.onFork?a:l._forkZS),this._forkDlgt=a&&(a.onFork?l:l._forkDlgt),this._forkCurrZone=a&&(a.onFork?this._zone:l._forkCurrZone),this._interceptZS=a&&(a.onIntercept?a:l._interceptZS),this._interceptDlgt=a&&(a.onIntercept?l:l._interceptDlgt),this._interceptCurrZone=a&&(a.onIntercept?this._zone:l._interceptCurrZone),this._invokeZS=a&&(a.onInvoke?a:l._invokeZS),this._invokeDlgt=a&&(a.onInvoke?l:l._invokeDlgt),this._invokeCurrZone=a&&(a.onInvoke?this._zone:l._invokeCurrZone),this._handleErrorZS=a&&(a.onHandleError?a:l._handleErrorZS),this._handleErrorDlgt=a&&(a.onHandleError?l:l._handleErrorDlgt),this._handleErrorCurrZone=a&&(a.onHandleError?this._zone:l._handleErrorCurrZone),this._scheduleTaskZS=a&&(a.onScheduleTask?a:l._scheduleTaskZS),this._scheduleTaskDlgt=a&&(a.onScheduleTask?l:l._scheduleTaskDlgt),this._scheduleTaskCurrZone=a&&(a.onScheduleTask?this._zone:l._scheduleTaskCurrZone),this._invokeTaskZS=a&&(a.onInvokeTask?a:l._invokeTaskZS),this._invokeTaskDlgt=a&&(a.onInvokeTask?l:l._invokeTaskDlgt),this._invokeTaskCurrZone=a&&(a.onInvokeTask?this._zone:l._invokeTaskCurrZone),this._cancelTaskZS=a&&(a.onCancelTask?a:l._cancelTaskZS),this._cancelTaskDlgt=a&&(a.onCancelTask?l:l._cancelTaskDlgt),this._cancelTaskCurrZone=a&&(a.onCancelTask?this._zone:l._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const b=a&&a.onHasTask,z=l&&l._hasTaskZS;(b||z)&&(this._hasTaskZS=b?a:u,this._hasTaskDlgt=l,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,a.onScheduleTask||(this._scheduleTaskZS=u,this._scheduleTaskDlgt=l,this._scheduleTaskCurrZone=this._zone),a.onInvokeTask||(this._invokeTaskZS=u,this._invokeTaskDlgt=l,this._invokeTaskCurrZone=this._zone),a.onCancelTask||(this._cancelTaskZS=u,this._cancelTaskDlgt=l,this._cancelTaskCurrZone=this._zone))}fork(c,l){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,c,l):new r(c,l)}intercept(c,l,a){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,c,l,a):l}invoke(c,l,a,b,z){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,c,l,a,b,z):l.apply(a,b)}handleError(c,l){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,c,l)}scheduleTask(c,l){let a=l;if(this._scheduleTaskZS)this._hasTaskZS&&a._zoneDelegates.push(this._hasTaskDlgtOwner),a=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,c,l),a||(a=l);else if(l.scheduleFn)l.scheduleFn(l);else{if(l.type!=G)throw new Error("Task is missing scheduleFn.");W(l)}return a}invokeTask(c,l,a,b){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,c,l,a,b):l.callback.apply(a,b)}cancelTask(c,l){let a;if(this._cancelTaskZS)a=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,c,l);else{if(!l.cancelFn)throw Error("Task is not cancelable");a=l.cancelFn(l)}return a}hasTask(c,l){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,c,l)}catch(a){this.handleError(c,a)}}_updateTaskCount(c,l){const a=this._taskCounts,b=a[c],z=a[c]=b+l;if(z<0)throw new Error("More tasks executed then were scheduled.");if(0==b||0==z){const ce={microTask:a.microTask>0,macroTask:a.macroTask>0,eventTask:a.eventTask>0,change:c};this.hasTask(this._zone,ce)}}}class v{type;source;invoke;callback;data;scheduleFn;cancelFn;_zone=null;runCount=0;_zoneDelegates=null;_state="notScheduled";constructor(c,l,a,b,z,ce){if(this.type=c,this.source=l,this.data=b,this.scheduleFn=z,this.cancelFn=ce,!a)throw new Error("callback is not defined");this.callback=a;const Z=this;c===X&&b&&b.useG?this.invoke=v.invokeTask:this.invoke=function(){return v.invokeTask.call(F,Z,this,arguments)}}static invokeTask(c,l,a){c||(c=this),se++;try{return c.runCount++,c.zone.runTask(c,l,a)}finally{1==se&&ne(),se--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(q,C)}_transitionTo(c,l,a){if(this._state!==l&&this._state!==a)throw new Error(`${this.type} '${this.source}': can not transition to '${c}', expecting state '${l}'${a?" or '"+a+"'":""}, was '${this._state}'.`);this._state=c,c==q&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?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 k=K("setTimeout"),M=K("Promise"),H=K("then");let N,p=[],D=!1;function U(I){if(N||F[M]&&(N=F[M].resolve(0)),N){let c=N[H];c||(c=N.then),c.call(N,I)}else F[k](I,0)}function W(I){0===se&&0===p.length&&U(ne),I&&p.push(I)}function ne(){if(!D){for(D=!0;p.length;){const I=p;p=[];for(let c=0;c<I.length;c++){const l=I[c];try{l.zone.runTask(l,null,null)}catch(a){O.onUnhandledError(a)}}}O.microtaskDrainDone(),D=!1}}const oe={name:"NO ZONE"},q="notScheduled",C="scheduling",E="scheduled",j="running",B="canceling",J="unknown",G="microTask",L="macroTask",X="eventTask",A={},O={symbol:K,currentZoneFrame:()=>w,onUnhandledError:$,microtaskDrainDone:$,scheduleMicroTask:W,showUncaughtError:()=>!r[K("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:$,patchMethod:()=>$,bindArguments:()=>[],patchThen:()=>$,patchMacroTask:()=>$,patchEventPrototype:()=>$,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>$,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>$,wrapWithCurrentZone:()=>$,filterProperties:()=>[],attachOriginToPatched:()=>$,_redefineProperty:()=>$,patchCallbacks:()=>$,nativeScheduleMicroTask:U};let w={parent:null,zone:new r(null,null)},S=null,se=0;function $(){}return h("Zone","Zone"),r}(),s.Zone}();(function at(s){mt(s),function it(s){s.__load_patch("toString",i=>{const h=Function.prototype.toString,r=x("OriginalDelegate"),u=x("Promise"),T=x("Error"),v=function(){if("function"==typeof this){const p=this[r];if(p)return"function"==typeof p?h.call(p):Object.prototype.toString.call(p);if(this===Promise){const D=i[u];if(D)return h.call(D)}if(this===Error){const D=i[T];if(D)return h.call(D)}}return h.call(this)};v[r]=h,Function.prototype.toString=v;const k=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":k.call(this)}})}(s),function Tt(s){s.__load_patch("util",(i,h,r)=>{const u=Oe(i);r.patchOnProperties=Be,r.patchMethod=de,r.bindArguments=rt,r.patchMacroTask=ke;const T=h.__symbol__("BLACK_LISTED_EVENTS"),v=h.__symbol__("UNPATCHED_EVENTS");i[v]&&(i[T]=i[v]),i[T]&&(h[T]=h[v]=i[T]),r.patchEventPrototype=kt,r.patchEventTarget=ht,r.isIEOrEdge=Ee,r.ObjectDefineProperty=Ne,r.ObjectGetOwnPropertyDescriptor=Ze,r.ObjectCreate=pt,r.ArraySlice=gt,r.patchClass=he,r.wrapWithCurrentZone=Xe,r.filterProperties=We,r.attachOriginToPatched=re,r._redefineProperty=Object.defineProperty,r.patchCallbacks=Ie,r.getGlobalObjects=()=>({globalSources:ft,zoneSymbolEventNames:le,eventNames:u,isBrowser:$e,isMix:Ke,isNode:Se,TRUE_STR:fe,FALSE_STR:ve,ZONE_SYMBOL_PREFIX:Fe,ADD_EVENT_LISTENER_STR:tt,REMOVE_EVENT_LISTENER_STR:qe})})}(s)})(Et),function dt(s){s.__load_patch("legacy",i=>{const h=i[s.__symbol__("legacyPatch")];h&&h()}),s.__load_patch("timers",i=>{const h="set",r="clear";be(i,h,r,"Timeout"),be(i,h,r,"Interval"),be(i,h,r,"Immediate")}),s.__load_patch("requestAnimationFrame",i=>{be(i,"request","cancel","AnimationFrame"),be(i,"mozRequest","mozCancel","AnimationFrame"),be(i,"webkitRequest","webkitCancel","AnimationFrame")}),s.__load_patch("blocking",(i,h)=>{const r=["alert","prompt","confirm"];for(let u=0;u<r.length;u++){const T=r[u];de(i,T,(v,k,M)=>function(H,p){return h.current.run(v,i,p,M)})}}),s.__load_patch("EventTarget",(i,h,r)=>{(function Ae(s,i){i.patchEventPrototype(s,i)})(i,r),function Dt(s,i){if(Zone[i.symbol("patchEventTarget")])return;const{eventNames:h,zoneSymbolEventNames:r,TRUE_STR:u,FALSE_STR:T,ZONE_SYMBOL_PREFIX:v}=i.getGlobalObjects();for(let M=0;M<h.length;M++){const H=h[M],N=v+(H+T),U=v+(H+u);r[H]={},r[H][T]=N,r[H][u]=U}const k=s.EventTarget;return k&&k.prototype?(i.patchEventTarget(s,i,[k&&k.prototype]),!0):void 0}(i,r);const u=i.XMLHttpRequestEventTarget;u&&u.prototype&&r.patchEventTarget(i,r,[u.prototype])}),s.__load_patch("MutationObserver",(i,h,r)=>{he("MutationObserver"),he("WebKitMutationObserver")}),s.__load_patch("IntersectionObserver",(i,h,r)=>{he("IntersectionObserver")}),s.__load_patch("FileReader",(i,h,r)=>{he("FileReader")}),s.__load_patch("on_property",(i,h,r)=>{!function pe(s,i){if(Se&&!Ke||Zone[s.symbol("patchEvents")])return;const h=i.__Zone_ignore_on_properties;let r=[];if($e){const u=window;r=r.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const T=[];ue(u,Oe(u),h&&h.concat(T),je(u))}r=r.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let u=0;u<r.length;u++){const T=i[r[u]];T?.prototype&&ue(T.prototype,Oe(T.prototype),h)}}(r,i)}),s.__load_patch("customElements",(i,h,r)=>{!function wt(s,i){const{isBrowser:h,isMix:r}=i.getGlobalObjects();if(!h&&!r||!s.customElements||!("customElements"in s))return;i.patchCallbacks(i,s.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(i,r)}),s.__load_patch("XHR",(i,h)=>{!function H(p){const D=p.XMLHttpRequest;if(!D)return;const N=D.prototype;let W=N[lt],ne=N[nt];if(!W){const O=p.XMLHttpRequestEventTarget;if(O){const w=O.prototype;W=w[lt],ne=w[nt]}}const oe="readystatechange",q="scheduled";function C(O){const w=O.data,S=w.target;S[v]=!1,S[M]=!1;const se=S[T];W||(W=S[lt],ne=S[nt]),se&&ne.call(S,oe,se);const $=S[T]=()=>{if(S.readyState===S.DONE)if(!w.aborted&&S[v]&&O.state===q){const c=S[h.__symbol__("loadfalse")];if(0!==S.status&&c&&c.length>0){const l=O.invoke;O.invoke=function(){const a=S[h.__symbol__("loadfalse")];for(let b=0;b<a.length;b++)a[b]===O&&a.splice(b,1);!w.aborted&&O.state===q&&l.call(O)},c.push(O)}else O.invoke()}else!w.aborted&&!1===S[v]&&(S[M]=!0)};return W.call(S,oe,$),S[r]||(S[r]=O),X.apply(S,w.args),S[v]=!0,O}function E(){}function j(O){const w=O.data;return w.aborted=!0,A.apply(w.target,w.args)}const B=de(N,"open",()=>function(O,w){return O[u]=0==w[2],O[k]=w[1],B.apply(O,w)}),G=x("fetchTaskAborting"),L=x("fetchTaskScheduling"),X=de(N,"send",()=>function(O,w){if(!0===h.current[L]||O[u])return X.apply(O,w);{const S={target:O,url:O[k],isPeriodic:!1,args:w,aborted:!1},se=Ve("XMLHttpRequest.send",E,S,C,j);O&&!0===O[M]&&!S.aborted&&se.state===q&&se.invoke()}}),A=de(N,"abort",()=>function(O,w){const S=function U(O){return O[r]}(O);if(S&&"string"==typeof S.type){if(null==S.cancelFn||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(!0===h.current[G])return A.apply(O,w)})}(i);const r=x("xhrTask"),u=x("xhrSync"),T=x("xhrListener"),v=x("xhrScheduled"),k=x("xhrURL"),M=x("xhrErrorBeforeScheduled")}),s.__load_patch("geolocation",i=>{i.navigator&&i.navigator.geolocation&&function V(s,i){const h=s.constructor.name;for(let r=0;r<i.length;r++){const u=i[r],T=s[u];if(T){if(!ae(Ze(s,u)))continue;s[u]=(k=>{const M=function(){return k.apply(this,rt(arguments,h+"."+u))};return re(M,k),M})(T)}}}(i.navigator.geolocation,["getCurrentPosition","watchPosition"])}),s.__load_patch("PromiseRejectionEvent",(i,h)=>{function r(u){return function(T){we(i,u).forEach(k