UNPKG

@project-sunbird/sunbird-video-player-web-component

Version:

The web component package for the sunbird video player

11 lines 2.85 MB
(()=>{"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:(q,ye,De)=>{"use strict";De(4124),De(9056)},9056:()=>{ /*! (C) Andrea Giammarchi - @WebReflection - ISC Style License */ !function(q,ye){"use strict";function De(){var t=Ke.splice(0,Ke.length);for(D=0;t.length;)t.shift().call(null,t.shift())}function Ue(t,o){for(var f=0,h=t.length;f<h;f++)je(t[f],o)}function Be(t){return function(o){Pe(o)&&(je(o,t),n.length&&Ue(o.querySelectorAll(n),t))}}function We(t){var o=c.call(t,"is"),f=t.nodeName.toUpperCase(),h=i.call(Ge,o?Ae+o.toUpperCase():xe+f);return o&&-1<h&&!tt(f,o)?-1:h}function tt(t,o){return-1<n.indexOf(t+'[is="'+o+'"]')}function nt(t){var o=t.currentTarget,f=t.attrChange,h=t.attrName,_=t.target,w=t[et]||2,C=t[lt]||3;!$||_&&_!==o||!o[He]||"style"===h||t.prevValue===t.newValue&&(""!==t.newValue||f!==w&&f!==C)||o[He](h,f===w?null:t.prevValue,f===C?null:t.newValue)}function Oe(t){var o=Be(t);return function(f){Ke.push(o,f.target),D&&clearTimeout(D),D=setTimeout(De,1)}}function Le(t){K&&(K=!1,t.currentTarget.removeEventListener(pt,Le)),n.length&&Ue((t.target||x).querySelectorAll(n),t.detail===Ce?Ce:Se),te&&function z(){for(var t,o=0,f=me.length;o<f;o++)t=me[o],l.contains(t)||(f--,me.splice(o--,1),je(t,Ce))}()}function ze(t,o){var f=this;be.call(f,t,o),ct.call(f,{target:f})}function rt(t,o,f){var h=o.apply(t,f),_=We(h);return-1<_&&ke(h,e[_]),f.pop()&&n.length&&function ht(t){for(var o,f=0,h=t.length;f<h;f++)o=t[f],ke(o,e[We(o)])}(h.querySelectorAll(n)),h}function Xe(t,o){U(t,o),Fe?Fe.observe(t,T):(S&&(t.setAttribute=ze,t[Re]=ve(t),t[ge](yt,ct)),t[ge](Ie,nt)),t[Qe]&&$&&(t.created=!0,t[Qe](),t.created=!1)}function Ye(t){throw new Error("A "+t+" type is already registered")}function je(t,o){var f,h,_=We(t);-1<_&&!s.call(t,"TEMPLATE")&&(at(t,e[_]),_=0,o!==Se||t[Se]?o!==Ce||t[Ce]||(t[Se]=!1,t[Ce]=!0,h="disconnected",_=1):(t[Ce]=!1,t[Se]=!0,h="connected",_=1,te&&i.call(me,t)<0&&me.push(t)),_&&(f=t[o+he]||t[h+he])&&f.call(t))}function fe(){}function dt(t,o,f){var h=f&&f[qe]||"",_=o.prototype,w=g(_),C=o.observedAttributes||H,ae={prototype:w};ne(w,Qe,{value:function(){if(W)W=!1;else if(!this[G]){this[G]=!0,new o(this),_[Qe]&&_[Qe].call(this);var Z=se[y.get(o)];(!ee||Z.create.length>1)&&ut(this)}}}),ne(w,He,{value:function(Z){-1<i.call(C,Z)&&_[He]&&_[He].apply(this,arguments)}}),_[_t]&&ne(w,Tt,{value:_[_t]}),_[ft]&&ne(w,gt,{value:_[ft]}),h&&(ae[qe]=h),t=t.toUpperCase(),se[t]={constructor:o,create:h?[h,X(t)]:[t]},y.set(o,t),x[Ve](t.toLowerCase(),ae),st(t),V[t].r()}function ot(t){var o=se[t.toUpperCase()];return o&&o.constructor}function mt(t){return"string"==typeof t?t:t&&t.is||""}function ut(t){for(var o,f=t[He],h=f?t.attributes:H,_=h.length;_--;)o=h[_],f.call(t,o.name||o.nodeName,null,o.value||o.nodeValue)}function st(t){return(t=t.toUpperCase())in V||(V[t]={},V[t].p=new de(function(o){V[t].r=o})),V[t].p}function $e(){oe&&delete q.customElements,p(q,"customElements",{configurable:!0,value:new fe}),p(q,"CustomElementRegistry",{configurable:!0,value:fe});for(var t=it.get(/^HTML[A-Z]*[a-z]/),o=t.length;o--;function(f){var h=q[f];if(h){q[f]=function(_){var w,C;return _||(_=this),_[G]||(W=!0,w=se[y.get(_.constructor)],(_=(C=ee&&1===w.create.length)?Reflect.construct(h,H,w.constructor):x.createElement.apply(x,w.create))[G]=!0,W=!1,C||ut(_)),_},q[f].prototype=h.prototype;try{h.prototype.constructor=q[f]}catch{!0,p(h,G,{value:q[f]})}}}(t[o]));x.createElement=function(f,h){var _=mt(h);return _?a.call(this,f,X(_)):a.call(this,f)},M||(A=!0,x[Ve](""))}var x=q.document,pe=q.Object,it=function(t){var o,f,h,_,w=/^[A-Z]+[a-z]/,ae=function(le,ue){(ue=ue.toLowerCase())in Z||(Z[le]=(Z[le]||[]).concat(ue),Z[ue]=Z[ue.toUpperCase()]=le)},Z=(pe.create||pe)(null),ie={};for(f in t)for(_ in t[f])for(h=t[f][_],Z[_]=h,o=0;o<h.length;o++)Z[h[o].toLowerCase()]=Z[h[o].toUpperCase()]=_;return ie.get=function(le){return"string"==typeof le?Z[le]||(w.test(le)?[]:""):function(le){var ue,Ee=[];for(ue in Z)le.test(ue)&&Ee.push(ue);return Ee}(le)},ie.set=function(le,ue){return w.test(le)?ae(le,ue):ae(ue,le),ie},ie}({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 ye&&(ye={type:ye||"auto"});var Ke,ct,Je,ve,Fe,we,at,ke,Ne,t,o,f,h,_,Ve="registerElement",Et=1e5*q.Math.random()|0,Re="__"+Ve+Et,ge="addEventListener",Se="attached",he="Callback",Ce="detached",qe="extends",He="attributeChanged"+he,Tt=Se+he,_t="connected"+he,ft="disconnected"+he,Qe="created"+he,gt=Ce+he,et="ADDITION",lt="REMOVAL",Ie="DOMAttrModified",pt="DOMContentLoaded",yt="DOMSubtreeModified",xe="<",Ae="=",vt=/^[A-Z][._A-Z0-9]*-[-._A-Z0-9]*$/,kt=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],Ge=[],e=[],n="",l=x.documentElement,i=Ge.indexOf||function(t){for(var o=this.length;o--&&this[o]!==t;);return o},u=pe.prototype,d=u.hasOwnProperty,v=u.isPrototypeOf,p=pe.defineProperty,H=[],P=pe.getOwnPropertyDescriptor,b=pe.getOwnPropertyNames,B=pe.getPrototypeOf,j=pe.setPrototypeOf,F=!!pe.__proto__,G="__dreCEv1",oe=q.customElements,ee=!/^force/.test(ye.type)&&!!(oe&&oe.define&&oe.get&&oe.whenDefined),R=pe.create||pe,k=q.Map||function(){var t,o=[],f=[];return{get:function(h){return f[i.call(o,h)]},set:function(h,_){(t=i.call(o,h))<0?f[o.push(h)-1]=_:f[t]=_}}},de=q.Promise||function(t){function o(w){for(h=!0;f.length;)f.shift()(w)}var f=[],h=!1,_={catch:function(){return _},then:function(w){return f.push(w),h&&setTimeout(o,1),_}};return t(o),_},W=!1,se=R(null),V=R(null),y=new k,X=function(t){return t.toLowerCase()},g=pe.create||function t(o){return o?(t.prototype=o,new t):this},U=j||(F?function(t,o){return t.__proto__=o,t}:b&&P?function(){function t(o,f){for(var h,_=b(f),w=0,C=_.length;w<C;w++)h=_[w],d.call(o,h)||p(o,h,P(f,h))}return function(o,f){do{t(o,f)}while((f=B(f))&&!v.call(f,o));return o}}():function(t,o){for(var f in o)t[f]=o[f];return t}),O=q.MutationObserver||q.WebKitMutationObserver,Te=q.HTMLAnchorElement,J=(q.HTMLElement||q.Element||q.Node).prototype,te=!v.call(J,l),ne=te?function(t,o,f){return t[o]=f.value,t}:p,Pe=te?function(t){return 1===t.nodeType}:function(t){return v.call(J,t)},me=te&&[],ce=J.attachShadow,Y=J.cloneNode,s=J.closest||function(t){for(var o=this;o&&o.nodeName!==t;)o=o.parentNode;return o},r=J.dispatchEvent,c=J.getAttribute,N=J.hasAttribute,Q=J.removeAttribute,be=J.setAttribute,E=x.createElement,m=x.importNode,a=E,T=O&&{attributes:!0,characterData:!0,attributeOldValue:!0},L=O||function(t){S=!1,l.removeEventListener(Ie,L)},D=0,M=Ve in x&&!/^force-all/.test(ye.type),I=!0,A=!1,S=!0,K=!0,$=!0;if(O&&((Ne=x.createElement("div")).innerHTML="<div><div></div></div>",new O(function(t,o){if(t[0]&&"childList"==t[0].type&&!t[0].removedNodes[0].childNodes.length){var f=(Ne=P(J,"innerHTML"))&&Ne.set;f&&p(J,"innerHTML",{set:function(h){for(;this.lastChild;)this.removeChild(this.lastChild);f.call(this,h)}})}o.disconnect(),Ne=null}).observe(Ne,{childList:!0,subtree:!0}),Ne.innerHTML=""),M||(j||F?(at=function(t,o){v.call(o,t)||Xe(t,o)},ke=Xe):(at=function(t,o){t[Re]||(t[Re]=pe(!0),Xe(t,o))},ke=at),te?(S=!1,t=P(J,ge),o=t.value,f=function(w){var C=new CustomEvent(Ie,{bubbles:!0});C.attrName=w,C.prevValue=c.call(this,w),C.newValue=null,C[lt]=C.attrChange=2,Q.call(this,w),r.call(this,C)},h=function(w,C){var ae=N.call(this,w),Z=ae&&c.call(this,w),ie=new CustomEvent(Ie,{bubbles:!0});be.call(this,w,C),ie.attrName=w,ie.prevValue=ae?Z:null,ie.newValue=C,ae?ie.MODIFICATION=ie.attrChange=1:ie[et]=ie.attrChange=0,r.call(this,ie)},_=function(w){var C,ae=w.currentTarget,Z=ae[Re],ie=w.propertyName;Z.hasOwnProperty(ie)&&(Z=Z[ie],(C=new CustomEvent(Ie,{bubbles:!0})).attrName=Z.name,C.prevValue=Z.value||null,C.newValue=Z.value=ae[ie]||null,null==C.prevValue?C[et]=C.attrChange=0:C.MODIFICATION=C.attrChange=1,r.call(ae,C))},t.value=function(w,C,ae){w===Ie&&this[He]&&this.setAttribute!==h&&(this[Re]={className:{name:"class",value:this.className}},this.setAttribute=h,this.removeAttribute=f,o.call(this,"propertychange",_)),o.call(this,w,C,ae)},p(J,ge,t)):O||(l[ge](Ie,L),l.setAttribute(Re,1),l.removeAttribute(Re),S&&(ct=function(t){var o,f,h,_=this;if(_===t.target){for(h in o=_[Re],_[Re]=f=ve(_),f){if(!(h in o))return Je(0,_,h,o[h],f[h],et);if(f[h]!==o[h])return Je(1,_,h,o[h],f[h],"MODIFICATION")}for(h in o)if(!(h in f))return Je(2,_,h,o[h],f[h],lt)}},Je=function(t,o,f,h,_,w){var C={attrChange:t,currentTarget:o,attrName:f,prevValue:h,newValue:_};C[w]=t,nt(C)},ve=function(t){for(var o,f,h={},_=t.attributes,w=0,C=_.length;w<C;w++)"setAttribute"!==(f=(o=_[w]).name)&&(h[f]=o.value);return h})),x[Ve]=function(t,o){if(f=t.toUpperCase(),I&&(I=!1,O?(Fe=function(Z,ie){function le(ue,Ee){for(var _e=0,Me=ue.length;_e<Me;Ee(ue[_e++]));}return new O(function(ue){for(var Ee,_e,Me,Ze=0,bt=ue.length;Ze<bt;Ze++)"childList"===(Ee=ue[Ze]).type?(le(Ee.addedNodes,Z),le(Ee.removedNodes,ie)):(_e=Ee.target,$&&_e[He]&&"style"!==Ee.attributeName&&(Me=c.call(_e,Ee.attributeName))!==Ee.oldValue&&_e[He](Ee.attributeName,Ee.oldValue,Me))})}(Be(Se),Be(Ce)),(we=function(Z){return Fe.observe(Z,{childList:!0,subtree:!0}),Z})(x),ce&&(J.attachShadow=function(){return we(ce.apply(this,arguments))})):(Ke=[],x[ge]("DOMNodeInserted",Oe(Se)),x[ge]("DOMNodeRemoved",Oe(Ce))),x[ge](pt,Le),x[ge]("readystatechange",Le),x.importNode=function(Z,ie){switch(Z.nodeType){case 1:return rt(x,m,[Z,!!ie]);case 11:for(var le=x.createDocumentFragment(),ue=Z.childNodes,Ee=ue.length,_e=0;_e<Ee;_e++)le.appendChild(x.importNode(ue[_e],!!ie));return le;default:return Y.call(Z,!!ie)}},J.cloneNode=function(Z){return rt(this,Y,[!!Z])}),A)return A=!1;if(-2<i.call(Ge,Ae+f)+i.call(Ge,xe+f)&&Ye(t),!vt.test(f)||-1<i.call(kt,f))throw new Error("The type "+t+" is invalid");var f,h,_=function(){return C?x.createElement(ae,f):x.createElement(ae)},w=o||u,C=d.call(w,qe),ae=C?o[qe].toUpperCase():f;return C&&-1<i.call(Ge,xe+ae)&&Ye(ae),h=Ge.push((C?Ae:xe)+f)-1,n=n.concat(n.length?",":"",C?ae+'[is="'+t.toLowerCase()+'"]':ae),_.prototype=e[h]=d.call(w,"prototype")?w.prototype:g(J),n.length&&Ue(x.querySelectorAll(n),Se),_},x.createElement=a=function(t,o){var f=mt(o),h=f?E.call(x,t,X(f)):E.call(x,t),_=""+t,w=i.call(Ge,(f?Ae:xe)+(f||_).toUpperCase()),C=-1<w;return f&&(h.setAttribute("is",f=f.toLowerCase()),C&&(C=tt(_.toUpperCase(),f))),$=!x.createElement.innerHTMLHelper,C&&ke(h,e[w]),h}),addEventListener("beforeunload",function(){delete x.createElement,delete x.importNode,delete x[Ve]},!1),fe.prototype={constructor:fe,define:ee?function(t,o,f){if(f)dt(t,o,f);else{var h=t.toUpperCase();se[h]={constructor:o,create:[h]},y.set(o,h),oe.define(t,o)}}:dt,get:ee?function(t){return oe.get(t)||ot(t)}:ot,whenDefined:ee?function(t){return de.race([oe.whenDefined(t),st(t)])}:st},!oe||/^force/.test(ye.type))$e();else if(!ye.noBuiltIn)try{!function(t,o,f){var h=new RegExp("^<a\\s+is=('|\")"+f+"\\1></a>$");if(o[qe]="a",t.prototype=g(Te.prototype),t.prototype.constructor=t,q.customElements.define(f,t,o),!h.test(x.createElement("a",{is:f}).outerHTML)||!h.test((new t).outerHTML))throw o}(function t(){return Reflect.construct(Te,[],t)},{},"document-register-element-a"+Et)}catch{$e()}if(!ye.noBuiltIn)try{if(E.call(x,"a","a").outerHTML.indexOf("is")<0)throw{}}catch{X=function(o){return{is:o.toLowerCase()}}}}(window)},4124:()=>{"use strict"; /** * @license Angular v<unknown> * (c) 2010-2022 Google LLC. https://angular.io/ * License: MIT */!function(e){const n=e.performance;function l(Y){n&&n.mark&&n.mark(Y)}function i(Y,s){n&&n.measure&&n.measure(Y,s)}l("Zone");const u=e.__Zone_symbol_prefix||"__zone_symbol__";function d(Y){return u+Y}const v=!0===e[d("forceDuplicateZoneCheck")];if(e.Zone){if(v||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}class p{static#e=this.__symbol__=d;static assertZonePatched(){if(e.Promise!==J.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 s=p.current;for(;s.parent;)s=s.parent;return s}static get current(){return ne.zone}static get currentTask(){return Pe}static __load_patch(s,r,c=!1){if(J.hasOwnProperty(s)){if(!c&&v)throw Error("Already loaded patch: "+s)}else if(!e["__Zone_disable_"+s]){const N="Zone:"+s;l(N),J[s]=r(e,p,te),i(N,N)}}get parent(){return this._parent}get name(){return this._name}constructor(s,r){this._parent=s,this._name=r?r.name||"unnamed":"<root>",this._properties=r&&r.properties||{},this._zoneDelegate=new P(this,this._parent&&this._parent._zoneDelegate,r)}get(s){const r=this.getZoneWith(s);if(r)return r._properties[s]}getZoneWith(s){let r=this;for(;r;){if(r._properties.hasOwnProperty(s))return r;r=r._parent}return null}fork(s){if(!s)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,s)}wrap(s,r){if("function"!=typeof s)throw new Error("Expecting function got: "+s);const c=this._zoneDelegate.intercept(this,s,r),N=this;return function(){return N.runGuarded(c,this,arguments,r)}}run(s,r,c,N){ne={parent:ne,zone:this};try{return this._zoneDelegate.invoke(this,s,r,c,N)}finally{ne=ne.parent}}runGuarded(s,r=null,c,N){ne={parent:ne,zone:this};try{try{return this._zoneDelegate.invoke(this,s,r,c,N)}catch(Q){if(this._zoneDelegate.handleError(this,Q))throw Q}}finally{ne=ne.parent}}runTask(s,r,c){if(s.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(s.zone||de).name+"; Execution: "+this.name+")");if(s.state===W&&(s.type===Te||s.type===O))return;const N=s.state!=y;N&&s._transitionTo(y,V),s.runCount++;const Q=Pe;Pe=s,ne={parent:ne,zone:this};try{s.type==O&&s.data&&!s.data.isPeriodic&&(s.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,s,r,c)}catch(be){if(this._zoneDelegate.handleError(this,be))throw be}}finally{s.state!==W&&s.state!==g&&(s.type==Te||s.data&&s.data.isPeriodic?N&&s._transitionTo(V,y):(s.runCount=0,this._updateTaskCount(s,-1),N&&s._transitionTo(W,y,W))),ne=ne.parent,Pe=Q}}scheduleTask(s){if(s.zone&&s.zone!==this){let c=this;for(;c;){if(c===s.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${s.zone.name}`);c=c.parent}}s._transitionTo(se,W);const r=[];s._zoneDelegates=r,s._zone=this;try{s=this._zoneDelegate.scheduleTask(this,s)}catch(c){throw s._transitionTo(g,se,W),this._zoneDelegate.handleError(this,c),c}return s._zoneDelegates===r&&this._updateTaskCount(s,1),s.state==se&&s._transitionTo(V,se),s}scheduleMicroTask(s,r,c,N){return this.scheduleTask(new b(U,s,r,c,N,void 0))}scheduleMacroTask(s,r,c,N,Q){return this.scheduleTask(new b(O,s,r,c,N,Q))}scheduleEventTask(s,r,c,N,Q){return this.scheduleTask(new b(Te,s,r,c,N,Q))}cancelTask(s){if(s.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(s.zone||de).name+"; Execution: "+this.name+")");if(s.state===V||s.state===y){s._transitionTo(X,V,y);try{this._zoneDelegate.cancelTask(this,s)}catch(r){throw s._transitionTo(g,X),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(s,-1),s._transitionTo(W,X),s.runCount=0,s}}_updateTaskCount(s,r){const c=s._zoneDelegates;-1==r&&(s._zoneDelegates=null);for(let N=0;N<c.length;N++)c[N]._updateTaskCount(s.type,r)}}const H={name:"",onHasTask:(Y,s,r,c)=>Y.hasTask(r,c),onScheduleTask:(Y,s,r,c)=>Y.scheduleTask(r,c),onInvokeTask:(Y,s,r,c,N,Q)=>Y.invokeTask(r,c,N,Q),onCancelTask:(Y,s,r,c)=>Y.cancelTask(r,c)};class P{constructor(s,r,c){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=s,this._parentDelegate=r,this._forkZS=c&&(c&&c.onFork?c:r._forkZS),this._forkDlgt=c&&(c.onFork?r:r._forkDlgt),this._forkCurrZone=c&&(c.onFork?this.zone:r._forkCurrZone),this._interceptZS=c&&(c.onIntercept?c:r._interceptZS),this._interceptDlgt=c&&(c.onIntercept?r:r._interceptDlgt),this._interceptCurrZone=c&&(c.onIntercept?this.zone:r._interceptCurrZone),this._invokeZS=c&&(c.onInvoke?c:r._invokeZS),this._invokeDlgt=c&&(c.onInvoke?r:r._invokeDlgt),this._invokeCurrZone=c&&(c.onInvoke?this.zone:r._invokeCurrZone),this._handleErrorZS=c&&(c.onHandleError?c:r._handleErrorZS),this._handleErrorDlgt=c&&(c.onHandleError?r:r._handleErrorDlgt),this._handleErrorCurrZone=c&&(c.onHandleError?this.zone:r._handleErrorCurrZone),this._scheduleTaskZS=c&&(c.onScheduleTask?c:r._scheduleTaskZS),this._scheduleTaskDlgt=c&&(c.onScheduleTask?r:r._scheduleTaskDlgt),this._scheduleTaskCurrZone=c&&(c.onScheduleTask?this.zone:r._scheduleTaskCurrZone),this._invokeTaskZS=c&&(c.onInvokeTask?c:r._invokeTaskZS),this._invokeTaskDlgt=c&&(c.onInvokeTask?r:r._invokeTaskDlgt),this._invokeTaskCurrZone=c&&(c.onInvokeTask?this.zone:r._invokeTaskCurrZone),this._cancelTaskZS=c&&(c.onCancelTask?c:r._cancelTaskZS),this._cancelTaskDlgt=c&&(c.onCancelTask?r:r._cancelTaskDlgt),this._cancelTaskCurrZone=c&&(c.onCancelTask?this.zone:r._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const N=c&&c.onHasTask,Q=r&&r._hasTaskZS;(N||Q)&&(this._hasTaskZS=N?c:H,this._hasTaskDlgt=r,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=s,c.onScheduleTask||(this._scheduleTaskZS=H,this._scheduleTaskDlgt=r,this._scheduleTaskCurrZone=this.zone),c.onInvokeTask||(this._invokeTaskZS=H,this._invokeTaskDlgt=r,this._invokeTaskCurrZone=this.zone),c.onCancelTask||(this._cancelTaskZS=H,this._cancelTaskDlgt=r,this._cancelTaskCurrZone=this.zone))}fork(s,r){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,s,r):new p(s,r)}intercept(s,r,c){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,s,r,c):r}invoke(s,r,c,N,Q){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,s,r,c,N,Q):r.apply(c,N)}handleError(s,r){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,s,r)}scheduleTask(s,r){let c=r;if(this._scheduleTaskZS)this._hasTaskZS&&c._zoneDelegates.push(this._hasTaskDlgtOwner),c=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,s,r),c||(c=r);else if(r.scheduleFn)r.scheduleFn(r);else{if(r.type!=U)throw new Error("Task is missing scheduleFn.");R(r)}return c}invokeTask(s,r,c,N){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,s,r,c,N):r.callback.apply(c,N)}cancelTask(s,r){let c;if(this._cancelTaskZS)c=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,s,r);else{if(!r.cancelFn)throw Error("Task is not cancelable");c=r.cancelFn(r)}return c}hasTask(s,r){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,s,r)}catch(c){this.handleError(s,c)}}_updateTaskCount(s,r){const c=this._taskCounts,N=c[s],Q=c[s]=N+r;if(Q<0)throw new Error("More tasks executed then were scheduled.");if(0==N||0==Q){const be={microTask:c.microTask>0,macroTask:c.macroTask>0,eventTask:c.eventTask>0,change:s};this.hasTask(this.zone,be)}}}class b{constructor(s,r,c,N,Q,be){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=s,this.source=r,this.data=N,this.scheduleFn=Q,this.cancelFn=be,!c)throw new Error("callback is not defined");this.callback=c;const E=this;s===Te&&N&&N.useG?this.invoke=b.invokeTask:this.invoke=function(){return b.invokeTask.call(e,E,this,arguments)}}static invokeTask(s,r,c){s||(s=this),me++;try{return s.runCount++,s.zone.runTask(s,r,c)}finally{1==me&&k(),me--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(W,se)}_transitionTo(s,r,c){if(this._state!==r&&this._state!==c)throw new Error(`${this.type} '${this.source}': can not transition to '${s}', expecting state '${r}'${c?" or '"+c+"'":""}, was '${this._state}'.`);this._state=s,s==W&&(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 B=d("setTimeout"),j=d("Promise"),F=d("then");let oe,re=[],G=!1;function ee(Y){if(oe||e[j]&&(oe=e[j].resolve(0)),oe){let s=oe[F];s||(s=oe.then),s.call(oe,Y)}else e[B](Y,0)}function R(Y){0===me&&0===re.length&&ee(k),Y&&re.push(Y)}function k(){if(!G){for(G=!0;re.length;){const Y=re;re=[];for(let s=0;s<Y.length;s++){const r=Y[s];try{r.zone.runTask(r,null,null)}catch(c){te.onUnhandledError(c)}}}te.microtaskDrainDone(),G=!1}}const de={name:"NO ZONE"},W="notScheduled",se="scheduling",V="scheduled",y="running",X="canceling",g="unknown",U="microTask",O="macroTask",Te="eventTask",J={},te={symbol:d,currentZoneFrame:()=>ne,onUnhandledError:ce,microtaskDrainDone:ce,scheduleMicroTask:R,showUncaughtError:()=>!p[d("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:ce,patchMethod:()=>ce,bindArguments:()=>[],patchThen:()=>ce,patchMacroTask:()=>ce,patchEventPrototype:()=>ce,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>ce,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>ce,wrapWithCurrentZone:()=>ce,filterProperties:()=>[],attachOriginToPatched:()=>ce,_redefineProperty:()=>ce,patchCallbacks:()=>ce,nativeScheduleMicroTask:ee};let ne={parent:null,zone:new p(null,null)},Pe=null,me=0;function ce(){}i("Zone","Zone"),e.Zone=p}(globalThis);const q=Object.getOwnPropertyDescriptor,ye=Object.defineProperty,De=Object.getPrototypeOf,Ue=Object.create,ht=Array.prototype.slice,Be="addEventListener",We="removeEventListener",tt=Zone.__symbol__(Be),nt=Zone.__symbol__(We),Oe="true",Le="false",ze=Zone.__symbol__("");function rt(e,n){return Zone.current.wrap(e,n)}function Xe(e,n,l,i,u){return Zone.current.scheduleMacroTask(e,n,l,i,u)}const z=Zone.__symbol__,Ye=typeof window<"u",je=Ye?window:void 0,fe=Ye&&je||globalThis,dt="removeAttribute";function ot(e,n){for(let l=e.length-1;l>=0;l--)"function"==typeof e[l]&&(e[l]=rt(e[l],n+"_"+l));return e}function ut(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const st=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,$e=!("nw"in fe)&&typeof fe.process<"u"&&"[object process]"==={}.toString.call(fe.process),x=!$e&&!st&&!(!Ye||!je.HTMLElement),pe=typeof fe.process<"u"&&"[object process]"==={}.toString.call(fe.process)&&!st&&!(!Ye||!je.HTMLElement),it={},Ke=function(e){if(!(e=e||fe.event))return;let n=it[e.type];n||(n=it[e.type]=z("ON_PROPERTY"+e.type));const l=this||e.target||fe,i=l[n];let u;if(x&&l===je&&"error"===e.type){const d=e;u=i&&i.call(this,d.message,d.filename,d.lineno,d.colno,d.error),!0===u&&e.preventDefault()}else u=i&&i.apply(this,arguments),null!=u&&!u&&e.preventDefault();return u};function ct(e,n,l){let i=q(e,n);if(!i&&l&&q(l,n)&&(i={enumerable:!0,configurable:!0}),!i||!i.configurable)return;const u=z("on"+n+"patched");if(e.hasOwnProperty(u)&&e[u])return;delete i.writable,delete i.value;const d=i.get,v=i.set,p=n.slice(2);let H=it[p];H||(H=it[p]=z("ON_PROPERTY"+p)),i.set=function(P){let b=this;!b&&e===fe&&(b=fe),b&&("function"==typeof b[H]&&b.removeEventListener(p,Ke),v&&v.call(b,null),b[H]=P,"function"==typeof P&&b.addEventListener(p,Ke,!1))},i.get=function(){let P=this;if(!P&&e===fe&&(P=fe),!P)return null;const b=P[H];if(b)return b;if(d){let B=d.call(this);if(B)return i.set.call(this,B),"function"==typeof P[dt]&&P.removeAttribute(n),B}return null},ye(e,n,i),e[u]=!0}function Je(e,n,l){if(n)for(let i=0;i<n.length;i++)ct(e,"on"+n[i],l);else{const i=[];for(const u in e)"on"==u.slice(0,2)&&i.push(u);for(let u=0;u<i.length;u++)ct(e,i[u],l)}}const ve=z("originalInstance");function Fe(e){const n=fe[e];if(!n)return;fe[z(e)]=n,fe[e]=function(){const u=ot(arguments,e);switch(u.length){case 0:this[ve]=new n;break;case 1:this[ve]=new n(u[0]);break;case 2:this[ve]=new n(u[0],u[1]);break;case 3:this[ve]=new n(u[0],u[1],u[2]);break;case 4:this[ve]=new n(u[0],u[1],u[2],u[3]);break;default:throw new Error("Arg list too long.")}},ke(fe[e],n);const l=new n(function(){});let i;for(i in l)"XMLHttpRequest"===e&&"responseBlob"===i||function(u){"function"==typeof l[u]?fe[e].prototype[u]=function(){return this[ve][u].apply(this[ve],arguments)}:ye(fe[e].prototype,u,{set:function(d){"function"==typeof d?(this[ve][u]=rt(d,e+"."+u),ke(this[ve][u],d)):this[ve][u]=d},get:function(){return this[ve][u]}})}(i);for(i in n)"prototype"!==i&&n.hasOwnProperty(i)&&(fe[e][i]=n[i])}function we(e,n,l){let i=e;for(;i&&!i.hasOwnProperty(n);)i=De(i);!i&&e[n]&&(i=e);const u=z(n);let d=null;if(i&&(!(d=i[u])||!i.hasOwnProperty(u))){d=i[u]=i[n];if(ut(i&&q(i,n))){const p=l(d,u,n);i[n]=function(){return p(this,arguments)},ke(i[n],d)}}return d}function at(e,n,l){let i=null;function u(d){const v=d.data;return v.args[v.cbIdx]=function(){d.invoke.apply(this,arguments)},i.apply(v.target,v.args),d}i=we(e,n,d=>function(v,p){const H=l(v,p);return H.cbIdx>=0&&"function"==typeof p[H.cbIdx]?Xe(H.name,p[H.cbIdx],H,u):d.apply(v,p)})}function ke(e,n){e[z("OriginalDelegate")]=n}let Ne=!1,Ve=!1;function Re(){if(Ne)return Ve;Ne=!0;try{const e=je.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ve=!0)}catch{}return Ve}Zone.__load_patch("ZoneAwarePromise",(e,n,l)=>{const i=Object.getOwnPropertyDescriptor,u=Object.defineProperty;const v=l.symbol,p=[],H=!1!==e[v("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],P=v("Promise"),b=v("then"),B="__creationTrace__";l.onUnhandledError=E=>{if(l.showUncaughtError()){const m=E&&E.rejection;m?console.error("Unhandled Promise rejection:",m instanceof Error?m.message:m,"; Zone:",E.zone.name,"; Task:",E.task&&E.task.source,"; Value:",m,m instanceof Error?m.stack:void 0):console.error(E)}},l.microtaskDrainDone=()=>{for(;p.length;){const E=p.shift();try{E.zone.runGuarded(()=>{throw E.throwOriginal?E.rejection:E})}catch(m){F(m)}}};const j=v("unhandledPromiseRejectionHandler");function F(E){l.onUnhandledError(E);try{const m=n[j];"function"==typeof m&&m.call(this,E)}catch{}}function re(E){return E&&E.then}function G(E){return E}function oe(E){return r.reject(E)}const ee=v("state"),R=v("value"),k=v("finally"),de=v("parentPromiseValue"),W=v("parentPromiseState"),se="Promise.then",V=null,y=!0,X=!1,g=0;function U(E,m){return a=>{try{te(E,m,a)}catch(T){te(E,!1,T)}}}const O=function(){let E=!1;return function(a){return function(){E||(E=!0,a.apply(null,arguments))}}},Te="Promise resolved with itself",J=v("currentTaskTrace");function te(E,m,a){const T=O();if(E===a)throw new TypeError(Te);if(E[ee]===V){let L=null;try{("object"==typeof a||"function"==typeof a)&&(L=a&&a.then)}catch(D){return T(()=>{te(E,!1,D)})(),E}if(m!==X&&a instanceof r&&a.hasOwnProperty(ee)&&a.hasOwnProperty(R)&&a[ee]!==V)Pe(a),te(E,a[ee],a[R]);else if(m!==X&&"function"==typeof L)try{L.call(a,T(U(E,m)),T(U(E,!1)))}catch(D){T(()=>{te(E,!1,D)})()}else{E[ee]=m;const D=E[R];if(E[R]=a,E[k]===k&&m===y&&(E[ee]=E[W],E[R]=E[de]),m===X&&a instanceof Error){const M=n.currentTask&&n.currentTask.data&&n.currentTask.data[B];M&&u(a,J,{configurable:!0,enumerable:!1,writable:!0,value:M})}for(let M=0;M<D.length;)me(E,D[M++],D[M++],D[M++],D[M++]);if(0==D.length&&m==X){E[ee]=g;let M=a;try{throw new Error("Uncaught (in promise): "+function d(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)}(a)+(a&&a.stack?"\n"+a.stack:""))}catch(I){M=I}H&&(M.throwOriginal=!0),M.rejection=a,M.promise=E,M.zone=n.current,M.task=n.currentTask,p.push(M),l.scheduleMicroTask()}}}return E}const ne=v("rejectionHandledHandler");function Pe(E){if(E[ee]===g){try{const m=n[ne];m&&"function"==typeof m&&m.call(this,{rejection:E[R],promise:E})}catch{}E[ee]=X;for(let m=0;m<p.length;m++)E===p[m].promise&&p.splice(m,1)}}function me(E,m,a,T,L){Pe(E);const D=E[ee],M=D?"function"==typeof T?T:G:"function"==typeof L?L:oe;m.scheduleMicroTask(se,()=>{try{const I=E[R],A=!!a&&k===a[k];A&&(a[de]=I,a[W]=D);const S=m.run(M,void 0,A&&M!==oe&&M!==G?[]:[I]);te(a,!0,S)}catch(I){te(a,!1,I)}},a)}const Y=function(){},s=e.AggregateError;class r{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(m){return m instanceof r?m:te(new this(null),y,m)}static reject(m){return te(new this(null),X,m)}static withResolvers(){const m={};return m.promise=new r((a,T)=>{m.resolve=a,m.reject=T}),m}static any(m){if(!m||"function"!=typeof m[Symbol.iterator])return Promise.reject(new s([],"All promises were rejected"));const a=[];let T=0;try{for(let M of m)T++,a.push(r.resolve(M))}catch{return Promise.reject(new s([],"All promises were rejected"))}if(0===T)return Promise.reject(new s([],"All promises were rejected"));let L=!1;const D=[];return new r((M,I)=>{for(let A=0;A<a.length;A++)a[A].then(S=>{L||(L=!0,M(S))},S=>{D.push(S),T--,0===T&&(L=!0,I(new s(D,"All promises were rejected")))})})}static race(m){let a,T,L=new this((I,A)=>{a=I,T=A});function D(I){a(I)}function M(I){T(I)}for(let I of m)re(I)||(I=this.resolve(I)),I.then(D,M);return L}static all(m){return r.allWithCallback(m)}static allSettled(m){return(this&&this.prototype instanceof r?this:r).allWithCallback(m,{thenCallback:T=>({status:"fulfilled",value:T}),errorCallback:T=>({status:"rejected",reason:T})})}static allWithCallback(m,a){let T,L,D=new this((S,K)=>{T=S,L=K}),M=2,I=0;const A=[];for(let S of m){re(S)||(S=this.resolve(S));const K=I;try{S.then($=>{A[K]=a?a.thenCallback($):$,M--,0===M&&T(A)},$=>{a?(A[K]=a.errorCallback($),M--,0===M&&T(A)):L($)})}catch($){L($)}M++,I++}return M-=2,0===M&&T(A),D}constructor(m){const a=this;if(!(a instanceof r))throw new Error("Must be an instanceof Promise.");a[ee]=V,a[R]=[];try{const T=O();m&&m(T(U(a,y)),T(U(a,X)))}catch(T){te(a,!1,T)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return r}then(m,a){let T=this.constructor?.[Symbol.species];(!T||"function"!=typeof T)&&(T=this.constructor||r);const L=new T(Y),D=n.current;return this[ee]==V?this[R].push(D,L,m,a):me(this,D,L,m,a),L}catch(m){return this.then(null,m)}finally(m){let a=this.constructor?.[Symbol.species];(!a||"function"!=typeof a)&&(a=r);const T=new a(Y);T[k]=k;const L=n.current;return this[ee]==V?this[R].push(L,T,m,m):me(this,L,T,m,m),T}}r.resolve=r.resolve,r.reject=r.reject,r.race=r.race,r.all=r.all;const c=e[P]=e.Promise;e.Promise=r;const N=v("thenPatched");function Q(E){const m=E.prototype,a=i(m,"then");if(a&&(!1===a.writable||!a.configurable))return;const T=m.then;m[b]=T,E.prototype.then=function(L,D){return new r((I,A)=>{T.call(this,I,A)}).then(L,D)},E[N]=!0}return l.patchThen=Q,c&&(Q(c),we(e,"fetch",E=>function be(E){return function(m,a){let T=E.apply(m,a);if(T instanceof r)return T;let L=T.constructor;return L[N]||Q(L),T}}(E))),Promise[n.__symbol__("uncaughtPromiseErrors")]=p,r}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,l=z("OriginalDelegate"),i=z("Promise"),u=z("Error"),d=function(){if("function"==typeof this){const P=this[l];if(P)return"function"==typeof P?n.call(P):Object.prototype.toString.call(P);if(this===Promise){const b=e[i];if(b)return n.call(b)}if(this===Error){const b=e[u];if(b)return n.call(b)}}return n.call(this)};d[l]=n,Function.prototype.toString=d;const v=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":v.call(this)}});let ge=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){ge=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ge=!1}const Se={useG:!0},he={},Ce={},qe=new RegExp("^"+ze+"(\\w+)(true|false)$"),He=z("propagationStopped");function Tt(e,n){const l=(n?n(e):e)+Le,i=(n?n(e):e)+Oe,u=ze+l,d=ze+i;he[e]={},he[e][Le]=u,he[e][Oe]=d}function _t(e,n,l,i){const u=i&&i.add||Be,d=i&&i.rm||We,v=i&&i.listeners||"eventListeners",p=i&&i.rmAll||"removeAllListeners",H=z(u),P="."+u+":",b="prependListener",B="."+b+":",j=function(R,k,de){if(R.isRemoved)return;const W=R.callback;let se;"object"==typeof W&&W.handleEvent&&(R.callback=y=>W.handleEvent(y),R.originalDelegate=W);try{R.invoke(R,k,[de])}catch(y){se=y}const V=R.options;if(V&&"object"==typeof V&&V.once){const y=R.originalDelegate?R.originalDelegate:R.callback;k[d].call(k,de.type,y,V)}return se};function F(R,k,de){if(!(k=k||e.event))return;const W=R||k.target||e,se=W[he[k.type][de?Oe:Le]];if(se){const V=[];if(1===se.length){const y=j(se[0],W,k);y&&V.push(y)}else{const y=se.slice();for(let X=0;X<y.length&&(!k||!0!==k[He]);X++){const g=j(y[X],W,k);g&&V.push(g)}}if(1===V.length)throw V[0];for(let y=0;y<V.length;y++){const X=V[y];n.nativeScheduleMicroTask(()=>{throw X})}}}const re=function(R){return F(this,R,!1)},G=function(R){return F(this,R,!0)};function oe(R,k){if(!R)return!1;let de=!0;k&&void 0!==k.useG&&(de=k.useG);const W=k&&k.vh;let se=!0;k&&void 0!==k.chkDup&&(se=k.chkDup);let V=!1;k&&void 0!==k.rt&&(V=k.rt);let y=R;for(;y&&!y.hasOwnProperty(u);)y=De(y);if(!y&&R[u]&&(y=R),!y||y[H])return!1;const X=k&&k.eventNameToString,g={},U=y[H]=y[u],O=y[z(d)]=y[d],Te=y[z(v)]=y[v],J=y[z(p)]=y[p];let te;k&&k.prepend&&(te=y[z(k.prepend)]=y[k.prepend]);const r=de?function(a){if(!g.isExisting)return U.call(g.target,g.eventName,g.capture?G:re,g.options)}:function(a){return U.call(g.target,g.eventName,a.invoke,g.options)},c=de?function(a){if(!a.isRemoved){const T=he[a.eventName];let L;T&&(L=T[a.capture?Oe:Le]);const D=L&&a.target[L];if(D)for(let M=0;M<D.length;M++)if(D[M]===a){D.splice(M,1),a.isRemoved=!0,0===D.length&&(a.allRemoved=!0,a.target[L]=null);break}}if(a.allRemoved)return O.call(a.target,a.eventName,a.capture?G:re,a.options)}:function(a){return O.call(a.target,a.eventName,a.invoke,a.options)},Q=k&&k.diff?k.diff:function(a,T){const L=typeof T;return"function"===L&&a.callback===T||"object"===L&&a.originalDelegate===T},be=Zone[z("UNPATCHED_EVENTS")],E=e[z("PASSIVE_EVENTS")],m=function(a,T,L,D,M=!1,I=!1){return function(){const A=this||e;let S=arguments[0];k&&k.transferEventName&&(S=k.transferEventName(S));let K=arguments[1];if(!K)return a.apply(this,arguments);if($e&&"uncaughtException"===S)return a.apply(this,arguments);let $=!1;if("function"!=typeof K){if(!K.handleEvent)return a.apply(this,arguments);$=!0}if(W&&!W(a,K,A,arguments))return;const t=ge&&!!E&&-1!==E.indexOf(S),o=function ne(a,T){return!ge&&"object"==typeof a&&a?!!a.capture:ge&&T?"boolean"==typeof a?{capture:a,passive:!0}:a?"object"==typeof a&&!1!==a.passive?{...a,passive:!0}:a:{passive:!0}:a}(arguments[2],t),f=o&&"object"==typeof o&&o.signal&&"object"==typeof o.signal?o.signal:void 0;if(f?.aborted)return;if(be)for(let Ze=0;Ze<be.length;Ze++)if(S===be[Ze])return t?a.call(A,S,K,o):a.apply(this,arguments);const h=!!o&&("boolean"==typeof o||o.capture),_=!(!o||"object"!=typeof o)&&o.once,w=Zone.current;let C=he[S];C||(Tt(S,X),C=he[S]);const ae=C[h?Oe:Le];let le,Z=A[ae],ie=!1;if(Z){if(ie=!0,se)for(let Ze=0;Ze<Z.length;Ze++)if(Q(Z[Ze],K))return}else Z=A[ae]=[];const ue=A.constructor.name,Ee=Ce[ue];Ee&&(le=Ee[S]),le||(le=ue+T+(X?X(S):S)),g.options=o,_&&(g.options.once=!1),g.target=A,g.capture=h,g.eventName=S,g.isExisting=ie;const _e=de?Se:void 0;_e&&(_e.taskData=g),f&&(g.options.signal=void 0);const Me=w.scheduleEventTask(le,K,_e,L,D);return f&&(g.options.signal=f,a.call(f,"abort",()=>{Me.zone.cancelTask(Me)},{once:!0})),g.target=null,_e&&(_e.taskData=null),_&&(o.once=!0),!ge&&"boolean"==typeof Me.options||(Me.options=o),Me.target=A,Me.capture=h,Me.eventName=S,$&&(Me.originalDelegate=K),I?Z.unshift(Me):Z.push(Me),M?A:void 0}};return y[u]=m(U,P,r,c,V),te&&(y[b]=m(te,B,function(a){return te.call(g.target,g.eventName,a.invoke,g.options)},c,V,!0)),y[d]=function(){const a=this||e;let T=arguments[0];k&&k.transferEventName&&(T=k.transferEventName(T));const L=arguments[2],D=!!L&&("boolean"==typeof L||L.capture),M=arguments[1];if(!M)return O.apply(this,arguments);if(W&&!W(O,M,a,arguments))return;const I=he[T];let A;I&&(A=I[D?Oe:Le]);const S=A&&a[A];if(S)for(let K=0;K<S.length;K++){const $=S[K];if(Q($,M)){if(S.splice(K,1),$.isRemoved=!0,0===S.length&&($.allRemoved=!0,a[A]=null,"string"==typeof T)){a[ze+"ON_PROPERTY"+T]=null}return $.zone.cancelTask($),V?a:void 0}}return O.apply(this,arguments)},y[v]=function(){const a=this||e;let T=arguments[0];k&&k.transferEventName&&(T=k.transferEventName(T));const L=[],D=ft(a,X?X(T):T);for(let M=0;M<D.length;M++){const I=D[M];let A=I.originalDelegate?I.originalDelegate:I.callback;L.push(A)}return L},y[p]=function(){const a=this||e;let T=arguments[0];if(T){k&&k.transferEventName&&(T=k.transferEventName(T));const L=he[T];if(L){const D=L[Le],M=L[Oe],I=a[D],A=a[M];if(I){const S=I.slice();for(let K=0;K<S.length;K++){const $=S[K];let t=$.originalDelegate?$.originalDelegate:$.callback;this[d].call(this,T,t,$.options)}}if(A){const S=A.slice();for(let K=0;K<S.length;K++){const $=S[K];let t=$.originalDelegate?$.originalDelegate:$.callback;this[d].call(this,T,t,$.options)}}}}else{const L=Object.keys(a);for(let D=0;D<L.length;D++){const M=L[D],I=qe.exec(M);let A=I&&I[1];A&&"removeListener"!==A&&this[p].call(this,A)}this[p].call(this,"removeListener")}if(V)return this},ke(y[u],U),ke(y[d],O),J&&ke(y[p],J),Te&&ke(y[v],Te),!0}let ee=[];for(let R=0;R<l.length;R++)ee[R]=oe(l[R],i);return ee}function ft(e,n){if(!n){const d=[];for(let v in e){const p=qe.exec(v);let H=p&&p[1];if(H&&(!n||H===n)){const P=e[v];if(P)for(let b=0;b<P.length;b++)d.push(P[b])}}return d}let l=he[n];l||(Tt(n),l=he[n]);const i=e[l[Le]],u=e[l[Oe]];return i?u?i.concat(u):i.slice():u?u.slice():[]}function Qe(e,n){const l=e.Event;l&&l.prototype&&n.patchMethod(l.prototype,"stopImmediatePropagation",i=>function(u,d){u[He]=!0,i&&i.apply(u,d)})}function gt(e,n,l,i,u){const d=Zone.__symbol__(i);if(n[d])return;const v=n[d]=n[i];n[i]=function(p,H,P){return H&&H.prototype&&u.forEach(function(b){const B=`${l}.${i}::`+b,j=H.prototype;try{if(j.hasOwnProperty(b)){const F=e.ObjectGetOwnPropertyDescriptor(j,b);F&&F.value?(F.value=e.wrapWithCurrentZone(F.value,B),e._redefineProperty(H.prototype,b,F)):j[b]&&(j[b]=e.wrapWithCurrentZone(j[b],B))}else j[b]&&(j[b]=e.wrapWithCurrentZone(j[b],B))}catch{}}),v.call(n,p,H,P)},e.attachOriginToPatched(n[i],v)}function et(e,n,l){if(!l||0===l.length)return n;const i=l.filter(d=>d.target===e);if(!i||0===i.length)return n;const u=i[0].ignoreProperties;return n.filter(d=>-1===u.indexOf(d))}function lt(e,n,l,i){if(!e)return;Je(e,et(e,n,l),i)}function Ie(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function pt(e,n){if($e&&!pe||Zone[e.symbol("patchEvents")])return;const l=n.__Zone_ignore_on_properties;let i=[];if(x){const u=window;i=i.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const d=function Et(){try{const e=je.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:u,ignoreProperties:["error"]}]:[];lt(u,Ie(u),l&&l.concat(d),De(u))}i=i.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let u=0;u<i.length;u++){const d=n[i[u]];d&&d.prototype&&lt(d.prototype,Ie(d.prototype),l)}}Zone.__load_patch("util",(e,n,l)=>{const i=Ie(e);l.patchOnProperties=Je,l.patchMethod=we,l.bindArguments=ot,l.patchMacroTask=at;const u=n.__symbol__("BLACK_LISTED_EVENTS"),d=n.__symbol__("UNPATCHED_EVENTS");e[d]&&(e[u]=e[d]),e[u]&&(n[u]=n[d]=e[u]),l.patchEventPrototype=Qe,l.patchEventTarget=_t,l.isIEOrEdge=Re,l.ObjectDefineProperty=ye,l.ObjectGetOwnPropertyDescriptor=q,l.ObjectCreate=Ue,l.ArraySlice=ht,l.patchClass=Fe,l.wrapWithCurrentZone=rt,l.filterProperties=et,l.attachOriginToPatched=ke,l._redefineProperty=Object.defineProperty,l.patchCallbacks=gt,l.getGlobalObjects=()=>({globalSources:Ce,zoneSymbolEventNames:he,eventNames:i,isBrowser:x,isMix:pe,isNode:$e,TRUE_STR:Oe,FALSE_STR:Le,ZONE_SYMBOL_PREFIX:ze,ADD_EVENT_LISTENER_STR:Be,REMOVE_EVENT_LISTENER_STR:We})});const xe=z("zoneTask");function Ae(e,n,l,i){let u=null,d=null;l+=i;const v={};function p(P){const b=P.data;return b.args[0]=function(){return P.invoke.apply(this,arguments)},b.handleId=u.apply(e,b.args),P}function H(P){return d.call(e,P.data.handleId)}u=we(e,n+=i,P=>function(b,B){if("function"==typeof B[0]){const j={isPeriodic:"Interval"===i,delay:"Timeout"===i||"Interval"===i?B[1]||0:void 0,args:B},F=B[0];B[0]=function(){try{return F.apply(this,arguments)}finally{j.isPeriodic||("number"==typeof j.handleId?delete v[j.handleId]:j.handleId&&(j.handleId[xe]=null))}};const re=Xe(n,B[0],j,p,H);if(!re)return re;const G=re.data.handleId;return"number"==typeof G?v[G]=re:G&&(G[xe]=re),G&&G.ref&&G.unref&&"function"==typeof G.ref&&"function"==typeof G.unref&&(re.ref=G.ref.bind(G),re.unref=G.unref.bind(G)),"number"==typeof G||G?G:re}return P.apply(e,B)}),d=we(e,l,P=>function(b,B){const j=B[0];let F;"number"==typeof j?F=v[j]:(F=j&&j[xe],F||(F=j)),F&&"string"==typeof F.type?"notScheduled"!==F.state&&(F.cancelFn&&F.data.isPeriodic||0===F.runCount)&&("number"==typeof j?delete v[j]:j&&(j[xe]=null),F.zone.cancelTask(F)):P.apply(e,B)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("timers",e=>{const n="set",l="clear";Ae(e,n,l,"Timeout"),Ae(e,n,l,"Interval"),Ae(e,n,l,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{Ae(e,"request","cancel","AnimationFrame"),Ae(e,"mozRequest","mozCancel","AnimationFrame"),Ae(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const l=["alert","prompt","confirm"];for(let i=0;i<l.length;i++){const u=l[i];we(e,u,(d,v,p)=>function(H,P){return n.current.run(d,e,P,p)})}}),Zone.__load_patch("EventTarget",(e,n,l)=>{(function Ge(e,n){n.patchEventPrototype(e,n)})(e,l),function kt(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:l,zoneSymbolEventNames:i,TRUE_STR:u,FALSE_STR:d,ZONE_SYMBOL_PREFIX:v}=n.getGlobalObjects();for(let H=0;H<l.length;H++){const P=l[H],j=v+(P+d),F=v+(P+u);i[P]={},i[P][d]=j,i[P][u]=F}const p=e.EventTarget;return p&&p.prototype?(n.patchEventTarget(e,n,[p&&p.prototype]),!0):void 0}(e,l);const i=e.XMLHttpRequestEventTarget;i&&i.prototype&&l.patchEventTarget(e,l,[i.prototype])}),Zone.__load_patch("MutationObserver",(e,n,l)=>{Fe("MutationObserver"),Fe("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,l)=>{Fe("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,l)=>{Fe("FileReader")}),Zone.__load_patch("on_property",(e,n,l)=>{pt(l,e)}),Zone.__load_patch("customElements",(e,n,l)=>{!function vt(e,n){const{isBrowser:l,isMix:i}=n.getGlobalObjects();if(!l&&!i||!e.customElements||!("customElements"in e))return;n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(e,l)}),Zone.__load_patch("XHR",(e,n)=>{!function H(P){const b=P.XMLHttpRequest;if(!b)return;const B=b.prototype;let F=B[tt],re=B[nt];if(!F){const g=P.XMLHttpRequestEventTarget;if(g){const U=g.prototype;F=U[tt],re=U[nt]}}const G="readystatechange",oe="scheduled";function ee(g){const U=g.data,O=U.target;O[d]=!1,O[p]=!1;const Te=O[u];F||(F=O[tt],re=O[nt]),Te&&re.call(O,G,Te);const J=O[u]=()=>{if(O.readyState===O.DONE)if(!U.aborted&&O[d]&&g.state===oe){const ne=O[n.__symbol__("loadfalse")];if(0!==O.status&&ne&&ne.length>0){const Pe=g.invoke;g.invoke=function(){const me=O[n.__symbol__("loadfalse")];for(let ce=0;ce<me.length;ce++)me[ce]===g&&me.splice(ce,1);!U.aborted&&g.state===oe&&Pe.call(g)},ne.push(g)}else g.invoke()}else!U.aborted&&!1===O[d]&&(O[p]=!0)};return F.call(O,G,J),O[l]||(O[l]=g),y.apply(O,U.args),O[d]=!0,g}function R(){}function k(g){const U=g.data;return U.aborted=!0,X.apply(U.target,U.args)}const de=we(B,"open",()=>function(g,U){return g[i]=0==U[2],g[v]=U[1],de.apply(g,U)}),se=z("fetchTaskAborting"),V=z("fetchTaskScheduling"),y=we(B,"send",()=>function(g,U){if(!0===n.current[V]||g[i])return y.apply(g,U);{const O={target:g,url:g[v],isPeriodic:!1,args:U,aborted:!1},Te=Xe("XMLHttpRequest.send",R,O,ee,k);g&&!0===g[p]&&!O.aborted&&Te.state===oe&&Te.invoke()}}),X=we(B,"abort",()=>function(g,U){const O=function j(g){return g[l]}(g);if(O&&"string"==typeof O.type){if(null==O.cancelFn||O.data&&O.data.aborted)return;O.zone.cancelTask(O)}else if(!0===n.current[se])return X.apply(g,U)})}(e);const l=z("xhrTask"),i=z("xhrSync"),u=z("xhrListener"),d=z("xhrScheduled"),v=z("xhrURL"),p=z("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function mt(e,n){const l=e.constructor.name;for(let i=0;i<n.length;i++){const u=n[i],d=e[u];if(d){if(!ut(q(e,u)))continue;e[u]=(p=>{const H=function(){return p.apply(this,ot(arguments,l+"."+u))};return ke(H,p),H})(d)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function l(i){return function(u){ft(e,i).forEach(v=>{const p=e.PromiseRejectionEvent;if(p){const H=new p(i,{promise:u.promise,reason:u.rejection});v.invoke(H)}})}}e.PromiseRejectionEvent&&(n[z("unhandledPromiseRejectionHandler")]=l("unhandledrejection"),n[z("rejectionHandledHandler")]=l("rejectionhandled"))}),Zone.__load_patch("queueMicrotask",(e,n,l)=>{!function yt(e,n){n.patchMethod(e,"queueMicrotask",l=>function(i,u){Zone.current.scheduleMicroTask("queueMicrotask",u[0])})}(e,l)})}},q=>{var Ue;Ue=5832,q(q.s=Ue)}]); //# sourc