(self.webpackChunkapp=self.webpackChunkapp||[]).push([[179],{7881:(Ct,ae,p)=>{"use strict";p.d(ae,{Uw:()=>ye,fo:()=>ce});var r=p(5861);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global&&global;var F=(()=>{return(ue=F||(F={})).Unimplemented="UNIMPLEMENTED",ue.Unavailable="UNAVAILABLE",F;var ue})();class q extends Error{constructor(me,ze){super(me),this.message=me,this.code=ze}}const ee=ue=>{var me,ze,Pe,je,Fe;const Te=ue.CapacitorCustomPlatform||null,J=ue.Capacitor||{},We=J.Plugins=J.Plugins||{},Be=ue.CapacitorPlatforms,re=(null===(me=null==Be?void 0:Be.currentPlatform)||void 0===me?void 0:me.getPlatform)||(()=>null!==Te?Te.name:(ue=>{var me,ze;return(null==ue?void 0:ue.androidBridge)?"android":(null===(ze=null===(me=null==ue?void 0:ue.webkit)||void 0===me?void 0:me.messageHandlers)||void 0===ze?void 0:ze.bridge)?"ios":"web"})(ue)),N=(null===(ze=null==Be?void 0:Be.currentPlatform)||void 0===ze?void 0:ze.isNativePlatform)||(()=>"web"!==re()),ve=(null===(Pe=null==Be?void 0:Be.currentPlatform)||void 0===Pe?void 0:Pe.isPluginAvailable)||(Ue=>{const it=Re.get(Ue);return!(!(null==it?void 0:it.platforms.has(re()))&&!he(Ue))}),he=(null===(je=null==Be?void 0:Be.currentPlatform)||void 0===je?void 0:je.getPluginHeader)||(Ue=>{var it;return null===(it=J.PluginHeaders)||void 0===it?void 0:it.find(qe=>qe.name===Ue)}),Re=new Map,k=(null===(Fe=null==Be?void 0:Be.currentPlatform)||void 0===Fe?void 0:Fe.registerPlugin)||((Ue,it={})=>{const qe=Re.get(Ue);if(qe)return console.warn(`Capacitor plugin "${Ue}" already registered. Cannot register plugins twice.`),qe.proxy;const lt=re(),Mt=he(Ue);let Vt;const Zt=function(){var se=(0,r.Z)(function*(){return!Vt&&lt in it?Vt=Vt="function"==typeof it[lt]?yield it[lt]():it[lt]:null!==Te&&!Vt&&"web"in it&&(Vt=Vt="function"==typeof it.web?yield it.web():it.web),Vt});return function(){return se.apply(this,arguments)}}(),wn=se=>{let Se;const _e=(...at)=>{const Je=Zt().then(ke=>{const oe=((se,Se)=>{var _e,at;if(!Mt){if(se)return null===(at=se[Se])||void 0===at?void 0:at.bind(se);throw new q(`"${Ue}" plugin is not implemented on ${lt}`,F.Unimplemented)}{const Je=null==Mt?void 0:Mt.methods.find(ke=>Se===ke.name);if(Je)return"promise"===Je.rtype?ke=>J.nativePromise(Ue,Se.toString(),ke):(ke,oe)=>J.nativeCallback(Ue,Se.toString(),ke,oe);if(se)return null===(_e=se[Se])||void 0===_e?void 0:_e.bind(se)}})(ke,se);if(oe){const ft=oe(...at);return Se=null==ft?void 0:ft.remove,ft}throw new q(`"${Ue}.${se}()" is not implemented on ${lt}`,F.Unimplemented)});return"addListener"===se&&(Je.remove=(0,r.Z)(function*(){return Se()})),Je};return _e.toString=()=>`${se.toString()}() { [capacitor code] }`,Object.defineProperty(_e,"name",{value:se,writable:!1,configurable:!1}),_e},Bn=wn("addListener"),tt=wn("removeListener"),xe=(se,Se)=>{const _e=Bn({eventName:se},Se),at=function(){var ke=(0,r.Z)(function*(){const oe=yield _e;tt({eventName:se,callbackId:oe},Se)});return function(){return ke.apply(this,arguments)}}(),Je=new Promise(ke=>_e.then(()=>ke({remove:at})));return Je.remove=(0,r.Z)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield at()}),Je},O=new Proxy({},{get(se,Se){switch(Se){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return Mt?xe:Bn;case"removeListener":return tt;default:return wn(Se)}}});return We[Ue]=O,Re.set(Ue,{name:Ue,proxy:O,platforms:new Set([...Object.keys(it),...Mt?[lt]:[]])}),O});return J.convertFileSrc||(J.convertFileSrc=Ue=>Ue),J.getPlatform=re,J.handleError=Ue=>ue.console.error(Ue),J.isNativePlatform=N,J.isPluginAvailable=ve,J.pluginMethodNoop=(Ue,it,qe)=>Promise.reject(`${qe} does not have an implementation of "${it}".`),J.registerPlugin=k,J.Exception=q,J.DEBUG=!!J.DEBUG,J.isLoggingEnabled=!!J.isLoggingEnabled,J.platform=J.getPlatform(),J.isNative=J.isNativePlatform(),J},Y=(ue=>ue.Capacitor=ee(ue))("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),ce=Y.registerPlugin;class ye{constructor(me){this.listeners={},this.windowListeners={},me&&(console.warn(`Capacitor WebPlugin "${me.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=me)}addListener(me,ze){var Pe=this;this.listeners[me]||(this.listeners[me]=[]),this.listeners[me].push(ze);const Fe=this.windowListeners[me];Fe&&!Fe.registered&&this.addWindowListener(Fe);const Te=function(){var We=(0,r.Z)(function*(){return Pe.removeListener(me,ze)});return function(){return We.apply(this,arguments)}}(),J=Promise.resolve({remove:Te});return Object.defineProperty(J,"remove",{value:(We=(0,r.Z)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield Te()}),function(){return We.apply(this,arguments)})}),J;var We}removeAllListeners(){var me=this;return(0,r.Z)(function*(){me.listeners={};for(const ze in me.windowListeners)me.removeWindowListener(me.windowListeners[ze]);me.windowListeners={}})()}notifyListeners(me,ze){const Pe=this.listeners[me];Pe&&Pe.forEach(je=>je(ze))}hasListeners(me){return!!this.listeners[me].length}registerWindowListener(me,ze){this.windowListeners[ze]={registered:!1,windowEventName:me,pluginEventName:ze,handler:Pe=>{this.notifyListeners(ze,Pe)}}}unimplemented(me="not implemented"){return new Y.Exception(me,F.Unimplemented)}unavailable(me="not available"){return new Y.Exception(me,F.Unavailable)}removeListener(me,ze){var Pe=this;return(0,r.Z)(function*(){const je=Pe.listeners[me];if(!je)return;const Fe=je.indexOf(ze);Pe.listeners[me].splice(Fe,1),Pe.listeners[me].length||Pe.removeWindowListener(Pe.windowListeners[me])})()}addWindowListener(me){window.addEventListener(me.windowEventName,me.handler),me.registered=!0}removeWindowListener(me){!me||(window.removeEventListener(me.windowEventName,me.handler),me.registered=!1)}}},724:()=>{},5548:(Ct,ae,p)=>{"use strict";p.d(ae,{g:()=>m});const m=(0,p(7423).fo)("App",{web:()=>p.e(4477).then(p.bind(p,4477)).then(D=>new D.AppWeb)})},7423:(Ct,ae,p)=>{"use strict";p.d(ae,{Uw:()=>ye,Vn:()=>Ne,dV:()=>Y,fo:()=>ce});var r=p(5861);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global&&global;var F=(()=>{return(we=F||(F={})).Unimplemented="UNIMPLEMENTED",we.Unavailable="UNAVAILABLE",F;var we})();class q extends Error{constructor(re,z,N){super(re),this.message=re,this.code=z,this.data=N}}const ee=we=>{var re,z,N,pe,ve;const le=we.CapacitorCustomPlatform||null,he=we.Capacitor||{},Ae=he.Plugins=he.Plugins||{},be=we.CapacitorPlatforms,H=(null===(re=null==be?void 0:be.currentPlatform)||void 0===re?void 0:re.getPlatform)||(()=>null!==le?le.name:(we=>{var re,z;return(null==we?void 0:we.androidBridge)?"android":(null===(z=null===(re=null==we?void 0:we.webkit)||void 0===re?void 0:re.messageHandlers)||void 0===z?void 0:z.bridge)?"ios":"web"})(we)),Ue=(null===(z=null==be?void 0:be.currentPlatform)||void 0===z?void 0:z.isNativePlatform)||(()=>"web"!==H()),qe=(null===(N=null==be?void 0:be.currentPlatform)||void 0===N?void 0:N.isPluginAvailable)||(tt=>{const xe=Nt.get(tt);return!(!(null==xe?void 0:xe.platforms.has(H()))&&!Mt(tt))}),Mt=(null===(pe=null==be?void 0:be.currentPlatform)||void 0===pe?void 0:pe.getPluginHeader)||(tt=>{var xe;return null===(xe=he.PluginHeaders)||void 0===xe?void 0:xe.find(O=>O.name===tt)}),Nt=new Map,Bn=(null===(ve=null==be?void 0:be.currentPlatform)||void 0===ve?void 0:ve.registerPlugin)||((tt,xe={})=>{const O=Nt.get(tt);if(O)return console.warn(`Capacitor plugin "${tt}" already registered. Cannot register plugins twice.`),O.proxy;const se=H(),Se=Mt(tt);let _e;const at=function(){var St=(0,r.Z)(function*(){return!_e&&se in xe?_e=_e="function"==typeof xe[se]?yield xe[se]():xe[se]:null!==le&&!_e&&"web"in xe&&(_e=_e="function"==typeof xe.web?yield xe.web():xe.web),_e});return function(){return St.apply(this,arguments)}}(),ke=St=>{let Jt;const Ut=(...Xt)=>{const Nn=at().then(mn=>{const bn=((St,Jt)=>{var Ut,Xt;if(!Se){if(St)return null===(Xt=St[Jt])||void 0===Xt?void 0:Xt.bind(St);throw new q(`"${tt}" plugin is not implemented on ${se}`,F.Unimplemented)}{const Nn=null==Se?void 0:Se.methods.find(mn=>Jt===mn.name);if(Nn)return"promise"===Nn.rtype?mn=>he.nativePromise(tt,Jt.toString(),mn):(mn,bn)=>he.nativeCallback(tt,Jt.toString(),mn,bn);if(St)return null===(Ut=St[Jt])||void 0===Ut?void 0:Ut.bind(St)}})(mn,St);if(bn){const Yt=bn(...Xt);return Jt=null==Yt?void 0:Yt.remove,Yt}throw new q(`"${tt}.${St}()" is not implemented on ${se}`,F.Unimplemented)});return"addListener"===St&&(Nn.remove=(0,r.Z)(function*(){return Jt()})),Nn};return Ut.toString=()=>`${St.toString()}() { [capacitor code] }`,Object.defineProperty(Ut,"name",{value:St,writable:!1,configurable:!1}),Ut},oe=ke("addListener"),ft=ke("removeListener"),vt=(St,Jt)=>{const Ut=oe({eventName:St},Jt),Xt=function(){var mn=(0,r.Z)(function*(){const bn=yield Ut;ft({eventName:St,callbackId:bn},Jt)});return function(){return mn.apply(this,arguments)}}(),Nn=new Promise(mn=>Ut.then(()=>mn({remove:Xt})));return Nn.remove=(0,r.Z)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield Xt()}),Nn},gt=new Proxy({},{get(St,Jt){switch(Jt){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return Se?vt:oe;case"removeListener":return ft;default:return ke(Jt)}}});return Ae[tt]=gt,Nt.set(tt,{name:tt,proxy:gt,platforms:new Set([...Object.keys(xe),...Se?[se]:[]])}),gt});return he.convertFileSrc||(he.convertFileSrc=tt=>tt),he.getPlatform=H,he.handleError=tt=>we.console.error(tt),he.isNativePlatform=Ue,he.isPluginAvailable=qe,he.pluginMethodNoop=(tt,xe,O)=>Promise.reject(`${O} does not have an implementation of "${xe}".`),he.registerPlugin=Bn,he.Exception=q,he.DEBUG=!!he.DEBUG,he.isLoggingEnabled=!!he.isLoggingEnabled,he.platform=he.getPlatform(),he.isNative=he.isNativePlatform(),he},Y=(we=>we.Capacitor=ee(we))("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),ce=Y.registerPlugin,Ne=Y.Plugins;class ye{constructor(re){this.listeners={},this.windowListeners={},re&&(console.warn(`Capacitor WebPlugin "${re.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=re)}addListener(re,z){var N=this;this.listeners[re]||(this.listeners[re]=[]),this.listeners[re].push(z);const ve=this.windowListeners[re];ve&&!ve.registered&&this.addWindowListener(ve);const le=function(){var Ae=(0,r.Z)(function*(){return N.removeListener(re,z)});return function(){return Ae.apply(this,arguments)}}(),he=Promise.resolve({remove:le});return Object.defineProperty(he,"remove",{value:(Ae=(0,r.Z)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield le()}),function(){return Ae.apply(this,arguments)})}),he;var Ae}removeAllListeners(){var re=this;return(0,r.Z)(function*(){re.listeners={};for(const z in re.windowListeners)re.removeWindowListener(re.windowListeners[z]);re.windowListeners={}})()}notifyListeners(re,z){const N=this.listeners[re];N&&N.forEach(pe=>pe(z))}hasListeners(re){return!!this.listeners[re].length}registerWindowListener(re,z){this.windowListeners[z]={registered:!1,windowEventName:re,pluginEventName:z,handler:N=>{this.notifyListeners(z,N)}}}unimplemented(re="not implemented"){return new Y.Exception(re,F.Unimplemented)}unavailable(re="not available"){return new Y.Exception(re,F.Unavailable)}removeListener(re,z){var N=this;return(0,r.Z)(function*(){const pe=N.listeners[re];if(!pe)return;const ve=pe.indexOf(z);N.listeners[re].splice(ve,1),N.listeners[re].length||N.removeWindowListener(N.windowListeners[re])})()}addWindowListener(re){window.addEventListener(re.windowEventName,re.handler),re.registered=!0}removeWindowListener(re){!re||(window.removeEventListener(re.windowEventName,re.handler),re.registered=!1)}}const ue=we=>encodeURIComponent(we).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),me=we=>we.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class ze extends ye{getCookies(){return(0,r.Z)(function*(){const re=document.cookie,z={};return re.split(";").forEach(N=>{if(N.length<=0)return;let[pe,ve]=N.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");pe=me(pe).trim(),ve=me(ve).trim(),z[pe]=ve}),z})()}setCookie(re){return(0,r.Z)(function*(){try{const z=ue(re.key),N=ue(re.value),pe=`; expires=${(re.expires||"").replace("expires=","")}`,ve=(re.path||"/").replace("path=",""),le=null!=re.url&&re.url.length>0?`domain=${re.url}`:"";document.cookie=`${z}=${N||""}${pe}; path=${ve}; ${le};`}catch(z){return Promise.reject(z)}})()}deleteCookie(re){return(0,r.Z)(function*(){try{document.cookie=`${re.key}=; Max-Age=0`}catch(z){return Promise.reject(z)}})()}clearCookies(){return(0,r.Z)(function*(){try{const re=document.cookie.split(";")||[];for(const z of re)document.cookie=z.replace(/^ +/,"").replace(/=.*/,`=;expires=${(new Date).toUTCString()};path=/`)}catch(re){return Promise.reject(re)}})()}clearAllCookies(){var re=this;return(0,r.Z)(function*(){try{yield re.clearCookies()}catch(z){return Promise.reject(z)}})()}}ce("CapacitorCookies",{web:()=>new ze});const je=function(){var we=(0,r.Z)(function*(re){return new Promise((z,N)=>{const pe=new FileReader;pe.onload=()=>{const ve=pe.result;z(ve.indexOf(",")>=0?ve.split(",")[1]:ve)},pe.onerror=ve=>N(ve),pe.readAsDataURL(re)})});return function(z){return we.apply(this,arguments)}}();class We extends ye{request(re){return(0,r.Z)(function*(){const z=((we,re={})=>{const z=Object.assign({method:we.method||"GET",headers:we.headers},re),pe=((we={})=>{const re=Object.keys(we);return Object.keys(we).map(pe=>pe.toLocaleLowerCase()).reduce((pe,ve,le)=>(pe[ve]=we[re[le]],pe),{})})(we.headers)["content-type"]||"";if("string"==typeof we.data)z.body=we.data;else if(pe.includes("application/x-www-form-urlencoded")){const ve=new URLSearchParams;for(const[le,he]of Object.entries(we.data||{}))ve.set(le,he);z.body=ve.toString()}else if(pe.includes("multipart/form-data")){const ve=new FormData;if(we.data instanceof FormData)we.data.forEach((he,Ae)=>{ve.append(Ae,he)});else for(const he of Object.keys(we.data))ve.append(he,we.data[he]);z.body=ve;const le=new Headers(z.headers);le.delete("content-type"),z.headers=le}else(pe.includes("application/json")||"object"==typeof we.data)&&(z.body=JSON.stringify(we.data));return z})(re,re.webFetchExtra),N=((we,re=!0)=>we?Object.entries(we).reduce((N,pe)=>{const[ve,le]=pe;let he,Ae;return Array.isArray(le)?(Ae="",le.forEach(be=>{he=re?encodeURIComponent(be):be,Ae+=`${ve}=${he}&`}),Ae.slice(0,-1)):(he=re?encodeURIComponent(le):le,Ae=`${ve}=${he}`),`${N}&${Ae}`},"").substr(1):null)(re.params,re.shouldEncodeUrlParams),pe=N?`${re.url}?${N}`:re.url,ve=yield fetch(pe,z),le=ve.headers.get("content-type")||"";let Ae,be,{responseType:he="text"}=ve.ok?re:{};switch(le.includes("application/json")&&(he="json"),he){case"arraybuffer":case"blob":be=yield ve.blob(),Ae=yield je(be);break;case"json":Ae=yield ve.json();break;default:Ae=yield ve.text()}const Re={};return ve.headers.forEach((H,k)=>{Re[k]=H}),{data:Ae,headers:Re,status:ve.status,url:ve.url}})()}get(re){var z=this;return(0,r.Z)(function*(){return z.request(Object.assign(Object.assign({},re),{method:"GET"}))})()}post(re){var z=this;return(0,r.Z)(function*(){return z.request(Object.assign(Object.assign({},re),{method:"POST"}))})()}put(re){var z=this;return(0,r.Z)(function*(){return z.request(Object.assign(Object.assign({},re),{method:"PUT"}))})()}patch(re){var z=this;return(0,r.Z)(function*(){return z.request(Object.assign(Object.assign({},re),{method:"PATCH"}))})()}delete(re){var z=this;return(0,r.Z)(function*(){return z.request(Object.assign(Object.assign({},re),{method:"DELETE"}))})()}}ce("CapacitorHttp",{web:()=>new We})},5876:(Ct,ae,p)=>{const m=p(532),D=p(7554),j=p(179),U=p(1036);function V(P,F,q,Q,ee){const ne=[].slice.call(arguments,1),Y=ne.length,ce="function"==typeof ne[Y-1];if(!ce&&!m())throw new Error("Callback required as last argument");if(!ce){if(Y<1)throw new Error("Too few arguments provided");return 1===Y?(q=F,F=Q=void 0):2===Y&&!F.getContext&&(Q=q,q=F,F=void 0),new Promise(function(Ne,$e){try{const ye=D.create(q,Q);Ne(P(ye,F,Q))}catch(ye){$e(ye)}})}if(Y<2)throw new Error("Too few arguments provided");2===Y?(ee=q,q=F,F=Q=void 0):3===Y&&(F.getContext&&void 0===ee?(ee=Q,Q=void 0):(ee=Q,Q=q,q=F,F=void 0));try{const Ne=D.create(q,Q);ee(null,P(Ne,F,Q))}catch(Ne){ee(Ne)}}ae.rT=V.bind(null,j.render),ae.hz=V.bind(null,j.renderToDataURL),ae.toString=V.bind(null,function(P,F,q){return U.render(P,q)})},532:Ct=>{Ct.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},3012:(Ct,ae,p)=>{const r=p(4860).getSymbolSize;ae.getRowColCoords=function(D){if(1===D)return[];const j=Math.floor(D/7)+2,U=r(D),V=145===U?26:2*Math.ceil((U-13)/(2*j-2)),P=[U-7];for(let F=1;F<j-1;F++)P[F]=P[F-1]-V;return P.push(6),P.reverse()},ae.getPositions=function(D){const j=[],U=ae.getRowColCoords(D),V=U.length;for(let P=0;P<V;P++)for(let F=0;F<V;F++)0===P&&0===F||0===P&&F===V-1||P===V-1&&0===F||j.push([U[P],U[F]]);return j}},812:(Ct,ae,p)=>{const r=p(6906),m=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function D(j){this.mode=r.ALPHANUMERIC,this.data=j}D.getBitsLength=function(U){return 11*Math.floor(U/2)+U%2*6},D.prototype.getLength=function(){return this.data.length},D.prototype.getBitsLength=function(){return D.getBitsLength(this.data.length)},D.prototype.write=function(U){let V;for(V=0;V+2<=this.data.length;V+=2){let P=45*m.indexOf(this.data[V]);P+=m.indexOf(this.data[V+1]),U.put(P,11)}this.data.length%2&&U.put(m.indexOf(this.data[V]),6)},Ct.exports=D},3044:Ct=>{function ae(){this.buffer=[],this.length=0}ae.prototype={get:function(p){const r=Math.floor(p/8);return 1==(this.buffer[r]>>>7-p%8&1)},put:function(p,r){for(let m=0;m<r;m++)this.putBit(1==(p>>>r-m-1&1))},getLengthInBits:function(){return this.length},putBit:function(p){const r=Math.floor(this.length/8);this.buffer.length<=r&&this.buffer.push(0),p&&(this.buffer[r]|=128>>>this.length%8),this.length++}},Ct.exports=ae},1973:Ct=>{function ae(p){if(!p||p<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=p,this.data=new Uint8Array(p*p),this.reservedBit=new Uint8Array(p*p)}ae.prototype.set=function(p,r,m,D){const j=p*this.size+r;this.data[j]=m,D&&(this.reservedBit[j]=!0)},ae.prototype.get=function(p,r){return this.data[p*this.size+r]},ae.prototype.xor=function(p,r,m){this.data[p*this.size+r]^=m},ae.prototype.isReserved=function(p,r){return this.reservedBit[p*this.size+r]},Ct.exports=ae},1824:(Ct,ae,p)=>{const r=p(8419),m=p(6906);function D(j){this.mode=m.BYTE,this.data=new Uint8Array(r(j))}D.getBitsLength=function(U){return 8*U},D.prototype.getLength=function(){return this.data.length},D.prototype.getBitsLength=function(){return D.getBitsLength(this.data.length)},D.prototype.write=function(j){for(let U=0,V=this.data.length;U<V;U++)j.put(this.data[U],8)},Ct.exports=D},6194:(Ct,ae,p)=>{const r=p(9020),m=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],D=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ae.getBlocksCount=function(U,V){switch(V){case r.L:return m[4*(U-1)+0];case r.M:return m[4*(U-1)+1];case r.Q:return m[4*(U-1)+2];case r.H:return m[4*(U-1)+3];default:return}},ae.getTotalCodewordsCount=function(U,V){switch(V){case r.L:return D[4*(U-1)+0];case r.M:return D[4*(U-1)+1];case r.Q:return D[4*(U-1)+2];case r.H:return D[4*(U-1)+3];default:return}}},9020:(Ct,ae)=>{ae.L={bit:1},ae.M={bit:0},ae.Q={bit:3},ae.H={bit:2},ae.isValid=function(m){return m&&void 0!==m.bit&&m.bit>=0&&m.bit<4},ae.from=function(m,D){if(ae.isValid(m))return m;try{return function p(r){if("string"!=typeof r)throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return ae.L;case"m":case"medium":return ae.M;case"q":case"quartile":return ae.Q;case"h":case"high":return ae.H;default:throw new Error("Unknown EC Level: "+r)}}(m)}catch(j){return D}}},9172:(Ct,ae,p)=>{const r=p(4860).getSymbolSize;ae.getPositions=function(j){const U=r(j);return[[0,0],[U-7,0],[0,U-7]]}},611:(Ct,ae,p)=>{const r=p(4860),j=r.getBCHDigit(1335);ae.getEncodedBits=function(V,P){const F=V.bit<<3|P;let q=F<<10;for(;r.getBCHDigit(q)-j>=0;)q^=1335<<r.getBCHDigit(q)-j;return 21522^(F<<10|q)}},7794:(Ct,ae)=>{const p=new Uint8Array(512),r=new Uint8Array(256);(function(){let D=1;for(let j=0;j<255;j++)p[j]=D,r[D]=j,D<<=1,256&D&&(D^=285);for(let j=255;j<512;j++)p[j]=p[j-255]})(),ae.log=function(D){if(D<1)throw new Error("log("+D+")");return r[D]},ae.exp=function(D){return p[D]},ae.mul=function(D,j){return 0===D||0===j?0:p[r[D]+r[j]]}},8043:(Ct,ae,p)=>{const r=p(6906),m=p(4860);function D(j){this.mode=r.KANJI,this.data=j}D.getBitsLength=function(U){return 13*U},D.prototype.getLength=function(){return this.data.length},D.prototype.getBitsLength=function(){return D.getBitsLength(this.data.length)},D.prototype.write=function(j){let U;for(U=0;U<this.data.length;U++){let V=m.toSJIS(this.data[U]);if(V>=33088&&V<=40956)V-=33088;else{if(!(V>=57408&&V<=60351))throw new Error("Invalid SJIS character: "+this.data[U]+"\nMake sure your charset is UTF-8");V-=49472}V=192*(V>>>8&255)+(255&V),j.put(V,13)}},Ct.exports=D},7135:(Ct,ae)=>{ae.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function r(m,D,j){switch(m){case ae.Patterns.PATTERN000:return(D+j)%2==0;case ae.Patterns.PATTERN001:return D%2==0;case ae.Patterns.PATTERN010:return j%3==0;case ae.Patterns.PATTERN011:return(D+j)%3==0;case ae.Patterns.PATTERN100:return(Math.floor(D/2)+Math.floor(j/3))%2==0;case ae.Patterns.PATTERN101:return D*j%2+D*j%3==0;case ae.Patterns.PATTERN110:return(D*j%2+D*j%3)%2==0;case ae.Patterns.PATTERN111:return(D*j%3+(D+j)%2)%2==0;default:throw new Error("bad maskPattern:"+m)}}ae.isValid=function(D){return null!=D&&""!==D&&!isNaN(D)&&D>=0&&D<=7},ae.from=function(D){return ae.isValid(D)?parseInt(D,10):void 0},ae.getPenaltyN1=function(D){const j=D.size;let U=0,V=0,P=0,F=null,q=null;for(let Q=0;Q<j;Q++){V=P=0,F=q=null;for(let ee=0;ee<j;ee++){let ne=D.get(Q,ee);ne===F?V++:(V>=5&&(U+=V-5+3),F=ne,V=1),ne=D.get(ee,Q),ne===q?P++:(P>=5&&(U+=P-5+3),q=ne,P=1)}V>=5&&(U+=V-5+3),P>=5&&(U+=P-5+3)}return U},ae.getPenaltyN2=function(D){const j=D.size;let U=0;for(let V=0;V<j-1;V++)for(let P=0;P<j-1;P++){const F=D.get(V,P)+D.get(V,P+1)+D.get(V+1,P)+D.get(V+1,P+1);(4===F||0===F)&&U++}return 3*U},ae.getPenaltyN3=function(D){const j=D.size;let U=0,V=0,P=0;for(let F=0;F<j;F++){V=P=0;for(let q=0;q<j;q++)V=V<<1&2047|D.get(F,q),q>=10&&(1488===V||93===V)&&U++,P=P<<1&2047|D.get(q,F),q>=10&&(1488===P||93===P)&&U++}return 40*U},ae.getPenaltyN4=function(D){let j=0;const U=D.data.length;for(let P=0;P<U;P++)j+=D.data[P];return 10*Math.abs(Math.ceil(100*j/U/5)-10)},ae.applyMask=function(D,j){const U=j.size;for(let V=0;V<U;V++)for(let P=0;P<U;P++)j.isReserved(P,V)||j.xor(P,V,r(D,P,V))},ae.getBestMask=function(D,j){const U=Object.keys(ae.Patterns).length;let V=0,P=1/0;for(let F=0;F<U;F++){j(F),ae.applyMask(F,D);const q=ae.getPenaltyN1(D)+ae.getPenaltyN2(D)+ae.getPenaltyN3(D)+ae.getPenaltyN4(D);ae.applyMask(F,D),q<P&&(P=q,V=F)}return V}},6906:(Ct,ae,p)=>{const r=p(2316),m=p(4677);ae.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},ae.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},ae.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},ae.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},ae.MIXED={bit:-1},ae.getCharCountIndicator=function(U,V){if(!U.ccBits)throw new Error("Invalid mode: "+U);if(!r.isValid(V))throw new Error("Invalid version: "+V);return V>=1&&V<10?U.ccBits[0]:V<27?U.ccBits[1]:U.ccBits[2]},ae.getBestModeForData=function(U){return m.testNumeric(U)?ae.NUMERIC:m.testAlphanumeric(U)?ae.ALPHANUMERIC:m.testKanji(U)?ae.KANJI:ae.BYTE},ae.toString=function(U){if(U&&U.id)return U.id;throw new Error("Invalid mode")},ae.isValid=function(U){return U&&U.bit&&U.ccBits},ae.from=function(U,V){if(ae.isValid(U))return U;try{return function D(j){if("string"!=typeof j)throw new Error("Param is not a string");switch(j.toLowerCase()){case"numeric":return ae.NUMERIC;case"alphanumeric":return ae.ALPHANUMERIC;case"kanji":return ae.KANJI;case"byte":return ae.BYTE;default:throw new Error("Unknown mode: "+j)}}(U)}catch(P){return V}}},6002:(Ct,ae,p)=>{const r=p(6906);function m(D){this.mode=r.NUMERIC,this.data=D.toString()}m.getBitsLength=function(j){return 10*Math.floor(j/3)+(j%3?j%3*3+1:0)},m.prototype.getLength=function(){return this.data.length},m.prototype.getBitsLength=function(){return m.getBitsLength(this.data.length)},m.prototype.write=function(j){let U,V,P;for(U=0;U+3<=this.data.length;U+=3)V=this.data.substr(U,3),P=parseInt(V,10),j.put(P,10);const F=this.data.length-U;F>0&&(V=this.data.substr(U),P=parseInt(V,10),j.put(P,3*F+1))},Ct.exports=m},7793:(Ct,ae,p)=>{const r=p(7794);ae.mul=function(D,j){const U=new Uint8Array(D.length+j.length-1);for(let V=0;V<D.length;V++)for(let P=0;P<j.length;P++)U[V+P]^=r.mul(D[V],j[P]);return U},ae.mod=function(D,j){let U=new Uint8Array(D);for(;U.length-j.length>=0;){const V=U[0];for(let F=0;F<j.length;F++)U[F]^=r.mul(j[F],V);let P=0;for(;P<U.length&&0===U[P];)P++;U=U.slice(P)}return U},ae.generateECPolynomial=function(D){let j=new Uint8Array([1]);for(let U=0;U<D;U++)j=ae.mul(j,new Uint8Array([1,r.exp(U)]));return j}},7554:(Ct,ae,p)=>{const r=p(4860),m=p(9020),D=p(3044),j=p(1973),U=p(3012),V=p(9172),P=p(7135),F=p(6194),q=p(8098),Q=p(6602),ee=p(611),ne=p(6906),Y=p(9465);function De(je,Fe,Te){const J=je.size,We=ee.getEncodedBits(Fe,Te);let Be,we;for(Be=0;Be<15;Be++)we=1==(We>>Be&1),je.set(Be<6?Be:Be<8?Be+1:J-15+Be,8,we,!0),je.set(8,Be<8?J-Be-1:Be<9?15-Be-1+1:15-Be-1,we,!0);je.set(J-8,8,1,!0)}function Pe(je,Fe,Te,J){let We;if(Array.isArray(je))We=Y.fromArray(je);else{if("string"!=typeof je)throw new Error("Invalid data");{let N=Fe;if(!N){const pe=Y.rawSplit(je);N=Q.getBestVersionForData(pe,Te)}We=Y.fromString(je,N||40)}}const Be=Q.getBestVersionForData(We,Te);if(!Be)throw new Error("The amount of data is too big to be stored in a QR Code");if(Fe){if(Fe<Be)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+Be+".\n")}else Fe=Be;const we=function me(je,Fe,Te){const J=new D;Te.forEach(function(z){J.put(z.mode.bit,4),J.put(z.getLength(),ne.getCharCountIndicator(z.mode,je)),z.write(J)});const we=8*(r.getSymbolTotalCodewords(je)-F.getTotalCodewordsCount(je,Fe));for(J.getLengthInBits()+4<=we&&J.put(0,4);J.getLengthInBits()%8!=0;)J.putBit(0);const re=(we-J.getLengthInBits())/8;for(let z=0;z<re;z++)J.put(z%2?17:236,8);return function ze(je,Fe,Te){const J=r.getSymbolTotalCodewords(Fe),Be=J-F.getTotalCodewordsCount(Fe,Te),we=F.getBlocksCount(Fe,Te),z=we-J%we,N=Math.floor(J/we),pe=Math.floor(Be/we),ve=pe+1,le=N-pe,he=new q(le);let Ae=0;const be=new Array(we),Re=new Array(we);let H=0;const k=new Uint8Array(je.buffer);for(let Mt=0;Mt<we;Mt++){const Vt=Mt<z?pe:ve;be[Mt]=k.slice(Ae,Ae+Vt),Re[Mt]=he.encode(be[Mt]),Ae+=Vt,H=Math.max(H,Vt)}const Ue=new Uint8Array(J);let qe,lt,it=0;for(qe=0;qe<H;qe++)for(lt=0;lt<we;lt++)qe<be[lt].length&&(Ue[it++]=be[lt][qe]);for(qe=0;qe<le;qe++)for(lt=0;lt<we;lt++)Ue[it++]=Re[lt][qe];return Ue}(J,je,Fe)}(Fe,Te,We),re=r.getSymbolSize(Fe),z=new j(re);return function ce(je,Fe){const Te=je.size,J=V.getPositions(Fe);for(let We=0;We<J.length;We++){const Be=J[We][0],we=J[We][1];for(let re=-1;re<=7;re++)if(!(Be+re<=-1||Te<=Be+re))for(let z=-1;z<=7;z++)we+z<=-1||Te<=we+z||je.set(Be+re,we+z,re>=0&&re<=6&&(0===z||6===z)||z>=0&&z<=6&&(0===re||6===re)||re>=2&&re<=4&&z>=2&&z<=4,!0)}}(z,Fe),function Ne(je){const Fe=je.size;for(let Te=8;Te<Fe-8;Te++){const J=Te%2==0;je.set(Te,6,J,!0),je.set(6,Te,J,!0)}}(z),function $e(je,Fe){const Te=U.getPositions(Fe);for(let J=0;J<Te.length;J++){const We=Te[J][0],Be=Te[J][1];for(let we=-2;we<=2;we++)for(let re=-2;re<=2;re++)je.set(We+we,Be+re,-2===we||2===we||-2===re||2===re||0===we&&0===re,!0)}}(z,Fe),De(z,Te,0),Fe>=7&&function ye(je,Fe){const Te=je.size,J=Q.getEncodedBits(Fe);let We,Be,we;for(let re=0;re<18;re++)We=Math.floor(re/3),Be=re%3+Te-8-3,we=1==(J>>re&1),je.set(We,Be,we,!0),je.set(Be,We,we,!0)}(z,Fe),function ue(je,Fe){const Te=je.size;let J=-1,We=Te-1,Be=7,we=0;for(let re=Te-1;re>0;re-=2)for(6===re&&re--;;){for(let z=0;z<2;z++)if(!je.isReserved(We,re-z)){let N=!1;we<Fe.length&&(N=1==(Fe[we]>>>Be&1)),je.set(We,re-z,N),Be--,-1===Be&&(we++,Be=7)}if(We+=J,We<0||Te<=We){We-=J,J=-J;break}}}(z,we),isNaN(J)&&(J=P.getBestMask(z,De.bind(null,z,Te))),P.applyMask(J,z),De(z,Te,J),{modules:z,version:Fe,errorCorrectionLevel:Te,maskPattern:J,segments:We}}ae.create=function(Fe,Te){if(void 0===Fe||""===Fe)throw new Error("No input text");let We,Be,J=m.M;return void 0!==Te&&(J=m.from(Te.errorCorrectionLevel,m.M),We=Q.from(Te.version),Be=P.from(Te.maskPattern),Te.toSJISFunc&&r.setToSJISFunction(Te.toSJISFunc)),Pe(Fe,We,J,Be)}},8098:(Ct,ae,p)=>{const r=p(7793);function m(D){this.genPoly=void 0,this.degree=D,this.degree&&this.initialize(this.degree)}m.prototype.initialize=function(j){this.degree=j,this.genPoly=r.generateECPolynomial(this.degree)},m.prototype.encode=function(j){if(!this.genPoly)throw new Error("Encoder not initialized");const U=new Uint8Array(j.length+this.degree);U.set(j);const V=r.mod(U,this.genPoly),P=this.degree-V.length;if(P>0){const F=new Uint8Array(this.degree);return F.set(V,P),F}return V},Ct.exports=m},4677:(Ct,ae)=>{const p="[0-9]+";let m="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";m=m.replace(/u/g,"\\u");const D="(?:(?![A-Z0-9 $%*+\\-./:]|"+m+")(?:.|[\r\n]))+";ae.KANJI=new RegExp(m,"g"),ae.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),ae.BYTE=new RegExp(D,"g"),ae.NUMERIC=new RegExp(p,"g"),ae.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const j=new RegExp("^"+m+"$"),U=new RegExp("^"+p+"$"),V=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");ae.testKanji=function(F){return j.test(F)},ae.testNumeric=function(F){return U.test(F)},ae.testAlphanumeric=function(F){return V.test(F)}},9465:(Ct,ae,p)=>{const r=p(6906),m=p(6002),D=p(812),j=p(1824),U=p(8043),V=p(4677),P=p(4860),F=p(4901);function q(ye){return unescape(encodeURIComponent(ye)).length}function Q(ye,De,ue){const me=[];let ze;for(;null!==(ze=ye.exec(ue));)me.push({data:ze[0],index:ze.index,mode:De,length:ze[0].length});return me}function ee(ye){const De=Q(V.NUMERIC,r.NUMERIC,ye),ue=Q(V.ALPHANUMERIC,r.ALPHANUMERIC,ye);let me,ze;return P.isKanjiModeEnabled()?(me=Q(V.BYTE,r.BYTE,ye),ze=Q(V.KANJI,r.KANJI,ye)):(me=Q(V.BYTE_KANJI,r.BYTE,ye),ze=[]),De.concat(ue,me,ze).sort(function(je,Fe){return je.index-Fe.index}).map(function(je){return{data:je.data,mode:je.mode,length:je.length}})}function ne(ye,De){switch(De){case r.NUMERIC:return m.getBitsLength(ye);case r.ALPHANUMERIC:return D.getBitsLength(ye);case r.KANJI:return U.getBitsLength(ye);case r.BYTE:return j.getBitsLength(ye)}}function $e(ye,De){let ue;const me=r.getBestModeForData(ye);if(ue=r.from(De,me),ue!==r.BYTE&&ue.bit<me.bit)throw new Error('"'+ye+'" cannot be encoded with mode '+r.toString(ue)+".\n Suggested mode is: "+r.toString(me));switch(ue===r.KANJI&&!P.isKanjiModeEnabled()&&(ue=r.BYTE),ue){case r.NUMERIC:return new m(ye);case r.ALPHANUMERIC:return new D(ye);case r.KANJI:return new U(ye);case r.BYTE:return new j(ye)}}ae.fromArray=function(De){return De.reduce(function(ue,me){return"string"==typeof me?ue.push($e(me,null)):me.data&&ue.push($e(me.data,me.mode)),ue},[])},ae.fromString=function(De,ue){const ze=function ce(ye){const De=[];for(let ue=0;ue<ye.length;ue++){const me=ye[ue];switch(me.mode){case r.NUMERIC:De.push([me,{data:me.data,mode:r.ALPHANUMERIC,length:me.length},{data:me.data,mode:r.BYTE,length:me.length}]);break;case r.ALPHANUMERIC:De.push([me,{data:me.data,mode:r.BYTE,length:me.length}]);break;case r.KANJI:De.push([me,{data:me.data,mode:r.BYTE,length:q(me.data)}]);break;case r.BYTE:De.push([{data:me.data,mode:r.BYTE,length:q(me.data)}])}}return De}(ee(De,P.isKanjiModeEnabled())),Pe=function Ne(ye,De){const ue={},me={start:{}};let ze=["start"];for(let Pe=0;Pe<ye.length;Pe++){const je=ye[Pe],Fe=[];for(let Te=0;Te<je.length;Te++){const J=je[Te],We=""+Pe+Te;Fe.push(We),ue[We]={node:J,lastCount:0},me[We]={};for(let Be=0;Be<ze.length;Be++){const we=ze[Be];ue[we]&&ue[we].node.mode===J.mode?(me[we][We]=ne(ue[we].lastCount+J.length,J.mode)-ne(ue[we].lastCount,J.mode),ue[we].lastCount+=J.length):(ue[we]&&(ue[we].lastCount=J.length),me[we][We]=ne(J.length,J.mode)+4+r.getCharCountIndicator(J.mode,De))}}ze=Fe}for(let Pe=0;Pe<ze.length;Pe++)me[ze[Pe]].end=0;return{map:me,table:ue}}(ze,ue),je=F.find_path(Pe.map,"start","end"),Fe=[];for(let Te=1;Te<je.length-1;Te++)Fe.push(Pe.table[je[Te]].node);return ae.fromArray(function Y(ye){return ye.reduce(function(De,ue){const me=De.length-1>=0?De[De.length-1]:null;return me&&me.mode===ue.mode?(De[De.length-1].data+=ue.data,De):(De.push(ue),De)},[])}(Fe))},ae.rawSplit=function(De){return ae.fromArray(ee(De,P.isKanjiModeEnabled()))}},4860:(Ct,ae)=>{let p;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];ae.getSymbolSize=function(D){if(!D)throw new Error('"version" cannot be null or undefined');if(D<1||D>40)throw new Error('"version" should be in range from 1 to 40');return 4*D+17},ae.getSymbolTotalCodewords=function(D){return r[D]},ae.getBCHDigit=function(m){let D=0;for(;0!==m;)D++,m>>>=1;return D},ae.setToSJISFunction=function(D){if("function"!=typeof D)throw new Error('"toSJISFunc" is not a valid function.');p=D},ae.isKanjiModeEnabled=function(){return void 0!==p},ae.toSJIS=function(D){return p(D)}},2316:(Ct,ae)=>{ae.isValid=function(r){return!isNaN(r)&&r>=1&&r<=40}},6602:(Ct,ae,p)=>{const r=p(4860),m=p(6194),D=p(9020),j=p(6906),U=p(2316),P=r.getBCHDigit(7973);function q(ne,Y){return j.getCharCountIndicator(ne,Y)+4}function Q(ne,Y){let ce=0;return ne.forEach(function(Ne){ce+=q(Ne.mode,Y)+Ne.getBitsLength()}),ce}ae.from=function(Y,ce){return U.isValid(Y)?parseInt(Y,10):ce},ae.getCapacity=function(Y,ce,Ne){if(!U.isValid(Y))throw new Error("Invalid QR Code version");void 0===Ne&&(Ne=j.BYTE);const De=8*(r.getSymbolTotalCodewords(Y)-m.getTotalCodewordsCount(Y,ce));if(Ne===j.MIXED)return De;const ue=De-q(Ne,Y);switch(Ne){case j.NUMERIC:return Math.floor(ue/10*3);case j.ALPHANUMERIC:return Math.floor(ue/11*2);case j.KANJI:return Math.floor(ue/13);default:return Math.floor(ue/8)}},ae.getBestVersionForData=function(Y,ce){let Ne;const $e=D.from(ce,D.M);if(Array.isArray(Y)){if(Y.length>1)return function ee(ne,Y){for(let ce=1;ce<=40;ce++)if(Q(ne,ce)<=ae.getCapacity(ce,Y,j.MIXED))return ce}(Y,$e);if(0===Y.length)return 1;Ne=Y[0]}else Ne=Y;return function F(ne,Y,ce){for(let Ne=1;Ne<=40;Ne++)if(Y<=ae.getCapacity(Ne,ce,ne))return Ne}(Ne.mode,Ne.getLength(),$e)},ae.getEncodedBits=function(Y){if(!U.isValid(Y)||Y<7)throw new Error("Invalid QR Code version");let ce=Y<<12;for(;r.getBCHDigit(ce)-P>=0;)ce^=7973<<r.getBCHDigit(ce)-P;return Y<<12|ce}},179:(Ct,ae,p)=>{const r=p(714);ae.render=function(U,V,P){let F=P,q=V;void 0===F&&(!V||!V.getContext)&&(F=V,V=void 0),V||(q=function D(){try{return document.createElement("canvas")}catch(j){throw new Error("You need to specify a canvas element")}}()),F=r.getOptions(F);const Q=r.getImageWidth(U.modules.size,F),ee=q.getContext("2d"),ne=ee.createImageData(Q,Q);return r.qrToImageData(ne.data,U,F),function m(j,U,V){j.clearRect(0,0,U.width,U.height),U.style||(U.style={}),U.height=V,U.width=V,U.style.height=V+"px",U.style.width=V+"px"}(ee,q,Q),ee.putImageData(ne,0,0),q},ae.renderToDataURL=function(U,V,P){let F=P;return void 0===F&&(!V||!V.getContext)&&(F=V,V=void 0),F||(F={}),ae.render(U,V,F).toDataURL(F.type||"image/png",(F.rendererOpts||{}).quality)}},1036:(Ct,ae,p)=>{const r=p(714);function m(U,V){const P=U.a/255,F=V+'="'+U.hex+'"';return P<1?F+" "+V+'-opacity="'+P.toFixed(2).slice(1)+'"':F}function D(U,V,P){let F=U+V;return void 0!==P&&(F+=" "+P),F}ae.render=function(V,P,F){const q=r.getOptions(P),Q=V.modules.size,ee=V.modules.data,ne=Q+2*q.margin,Y=q.color.light.a?"<path "+m(q.color.light,"fill")+' d="M0 0h'+ne+"v"+ne+'H0z"/>':"",ce="<path "+m(q.color.dark,"stroke")+' d="'+function j(U,V,P){let F="",q=0,Q=!1,ee=0;for(let ne=0;ne<U.length;ne++){const Y=Math.floor(ne%V),ce=Math.floor(ne/V);!Y&&!Q&&(Q=!0),U[ne]?(ee++,ne>0&&Y>0&&U[ne-1]||(F+=Q?D("M",Y+P,.5+ce+P):D("m",q,0),q=0,Q=!1),Y+1<V&&U[ne+1]||(F+=D("h",ee),ee=0)):q++}return F}(ee,Q,q.margin)+'"/>',ye='<svg xmlns="http://www.w3.org/2000/svg" '+(q.width?'width="'+q.width+'" height="'+q.width+'" ':"")+'viewBox="0 0 '+ne+" "+ne+'" shape-rendering="crispEdges">'+Y+ce+"</svg>\n";return"function"==typeof F&&F(null,ye),ye}},714:(Ct,ae)=>{function p(r){if("number"==typeof r&&(r=r.toString()),"string"!=typeof r)throw new Error("Color should be defined as hex string");let m=r.slice().replace("#","").split("");if(m.length<3||5===m.length||m.length>8)throw new Error("Invalid hex color: "+r);(3===m.length||4===m.length)&&(m=Array.prototype.concat.apply([],m.map(function(j){return[j,j]}))),6===m.length&&m.push("F","F");const D=parseInt(m.join(""),16);return{r:D>>24&255,g:D>>16&255,b:D>>8&255,a:255&D,hex:"#"+m.slice(0,6).join("")}}ae.getOptions=function(m){m||(m={}),m.color||(m.color={});const j=m.width&&m.width>=21?m.width:void 0;return{width:j,scale:j?4:m.scale||4,margin:null==m.margin||m.margin<0?4:m.margin,color:{dark:p(m.color.dark||"#000000ff"),light:p(m.color.light||"#ffffffff")},type:m.type,rendererOpts:m.rendererOpts||{}}},ae.getScale=function(m,D){return D.width&&D.width>=m+2*D.margin?D.width/(m+2*D.margin):D.scale},ae.getImageWidth=function(m,D){const j=ae.getScale(m,D);return Math.floor((m+2*D.margin)*j)},ae.qrToImageData=function(m,D,j){const U=D.modules.size,V=D.modules.data,P=ae.getScale(U,j),F=Math.floor((U+2*j.margin)*P),q=j.margin*P,Q=[j.color.light,j.color.dark];for(let ee=0;ee<F;ee++)for(let ne=0;ne<F;ne++){let Y=4*(ee*F+ne),ce=j.color.light;ee>=q&&ne>=q&&ee<F-q&&ne<F-q&&(ce=Q[V[Math.floor((ee-q)/P)*U+Math.floor((ne-q)/P)]?1:0]),m[Y++]=ce.r,m[Y++]=ce.g,m[Y++]=ce.b,m[Y]=ce.a}}},5419:(Ct,ae,p)=>{"use strict";p.d(ae,{KY:()=>Fe,DM:()=>Te});var m=p(2916),D=p(3753),j={error:"cordova_not_available"},U={error:"plugin_not_installed"};function V(z){if("undefined"!=typeof window&&window.angular){var pe=window.document,ve=window.angular.element(pe.querySelector("[ng-app]")||pe.body).injector();if(ve)return ve.get("$q")(function(he,Ae){z(he,Ae)});console.warn("Angular 1 was detected but $q couldn't be retrieved. This is usually when the app is not bootstrapped on the html or body tag. Falling back to native promises which won't trigger an automatic digest when promises resolve.")}return function(){if(Promise)return new Promise(function(he,Ae){z(he,Ae)});console.error("No Promise support or polyfill found. To enable Ionic Native support, please add the es6-promise polyfill before this script, or run with a library like Angular or on a recent browser.")}()}function P(z,N,pe,ve){void 0===ve&&(ve={});var le,he,Ae=V(function(be,Re){le=ve.destruct?ce(z,N,pe,ve,function(){for(var H=[],k=0;k<arguments.length;k++)H[k]=arguments[k];return be(H)},function(){for(var H=[],k=0;k<arguments.length;k++)H[k]=arguments[k];return Re(H)}):ce(z,N,pe,ve,be,Re),he=Re});return le&&le.error&&(Ae.catch(function(){}),"function"==typeof he&&he(le.error)),Ae}function F(z,N,pe,ve){return void 0===ve&&(ve={}),V(function(le,he){var Ae=ce(z,N,pe,ve);Ae?Ae.error?he(Ae.error):Ae.then&&Ae.then(le).catch(he):he({error:"unexpected_error"})})}function q(z,N,pe,ve){return void 0===ve&&(ve={}),new m.y(function(le){var he;return he=ve.destruct?ce(z,N,pe,ve,function(){for(var Ae=[],be=0;be<arguments.length;be++)Ae[be]=arguments[be];return le.next(Ae)},function(){for(var Ae=[],be=0;be<arguments.length;be++)Ae[be]=arguments[be];return le.error(Ae)}):ce(z,N,pe,ve,le.next.bind(le),le.error.bind(le)),he&&he.error&&(le.error(he.error),le.complete()),function(){try{if(ve.clearFunction)return ve.clearWithArgs?ce(z,ve.clearFunction,pe,ve,le.next.bind(le),le.error.bind(le)):ce(z,ve.clearFunction,[])}catch(Ae){console.warn("Unable to clear the previous observable watch for",z.constructor.getPluginName(),N),console.warn(Ae)}}})}function Q(z,N){return N="undefined"!=typeof window&&N?ye(window,N):N||("undefined"!=typeof window?window:{}),(0,D.R)(N,z)}function ee(z,N,pe){var ve,le,he;return"string"==typeof z?ve=z:(ve=z.constructor.getPluginRef(),pe=z.constructor.getPluginName(),he=z.constructor.getPluginInstallName()),!(!(le=$e(ve))||N&&void 0===le[N])||("undefined"!=typeof window&&window.cordova?(function De(z,N,pe){console.warn(pe?"Native: tried calling "+z+"."+pe+", but the "+z+" plugin is not installed.":"Native: tried accessing the "+z+" plugin but it's not installed."),N&&console.warn("Install the "+z+" plugin: 'ionic cordova plugin add "+N+"'")}(pe,he,N),U):(function ue(z,N){"undefined"==typeof process&&console.warn(N?"Native: tried calling "+z+"."+N+", but Cordova is not available. Make sure to include cordova.js or run in a device/simulator":"Native: tried accessing the "+z+" plugin but Cordova is not available. Make sure to include cordova.js or run in a device/simulator")}(pe,N),j))}function ce(z,N,pe,ve,le,he){void 0===ve&&(ve={}),pe=function Y(z,N,pe,ve){if(void 0===N&&(N={}),N.sync)return z;if("reverse"===N.callbackOrder)z.unshift(ve),z.unshift(pe);else if("node"===N.callbackStyle)z.push(function(be,Re){be?ve(be):pe(Re)});else if("object"===N.callbackStyle&&N.successName&&N.errorName){var le={};le[N.successName]=pe,le[N.errorName]=ve,z.push(le)}else if(void 0!==N.successIndex||void 0!==N.errorIndex){var he=function(){N.successIndex>z.length?z[N.successIndex]=pe:z.splice(N.successIndex,0,pe)},Ae=function(){N.errorIndex>z.length?z[N.errorIndex]=ve:z.splice(N.errorIndex,0,ve)};N.successIndex>N.errorIndex?(Ae(),he()):(he(),Ae())}else z.push(pe),z.push(ve);return z}(pe,ve,le,he);var Ae=ee(z,N);if(!0===Ae){var be=$e(z.constructor.getPluginRef());return be[N].apply(be,pe)}return Ae}function $e(z){return"undefined"!=typeof window?ye(window,z):null}function ye(z,N){for(var pe=N.split("."),ve=z,le=0;le<pe.length;le++){if(!ve)return null;ve=ve[pe[le]]}return ve}var Fe=function(){function z(){}return z.installed=function(){return!0===ee(this.pluginRef)},z.getPlugin=function(){return"undefined"!=typeof window?function Pe(z,N){for(var pe=N.split("."),ve=z,le=0;le<pe.length;le++){if(!ve)return null;ve=ve[pe[le]]}return ve}(window,this.pluginRef):null},z.getPluginName=function(){return this.pluginName},z.getPluginRef=function(){return this.pluginRef},z.getPluginInstallName=function(){return this.plugin},z.getSupportedPlatforms=function(){return this.platforms},z.pluginName="",z.pluginRef="",z.plugin="",z.repo="",z.platforms=[],z.install="",z}();function Te(z,N,pe,ve){return function(z,N,pe){return void 0===pe&&(pe={}),function(){for(var ve=[],le=0;le<arguments.length;le++)ve[le]=arguments[le];return pe.sync?ce(z,N,ve,pe):pe.observable?q(z,N,ve,pe):pe.eventObservable&&pe.event?Q(pe.event,pe.element):pe.otherPromise?F(z,N,ve,pe):P(z,N,ve,pe)}}(z,N,pe).apply(this,ve)}!function r(){if("undefined"==typeof process){var z="undefined"!=typeof window?window:{},pe=Date.now(),ve=!1;z.document.addEventListener("deviceready",function(){console.log("Ionic Native: deviceready event fired after "+(Date.now()-pe)+" ms"),ve=!0}),setTimeout(function(){!ve&&z.cordova&&console.warn("Ionic Native: deviceready did not fire within 5000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.")},5e3)}}()},7618:(Ct,ae,p)=>{"use strict";p.d(ae,{b:()=>U});var r=p(655),m=p(5419),D=p(2916),j=p(2096),U=function(V){function P(){return null!==V&&V.apply(this,arguments)||this}return(0,r.ZT)(P,V),P.prototype.getCurrentPosition=function(F){return(0,m.DM)(this,"getCurrentPosition",{callbackOrder:"reverse"},arguments)},P.prototype.watchPosition=function(F){return new D.y(function(q){var Q=navigator.geolocation.watchPosition(q.next.bind(q),q.next.bind(q),F);return function(){return navigator.geolocation.clearWatch(Q)}})},P.pluginName="Geolocation",P.plugin="cordova-plugin-geolocation",P.pluginRef="navigator.geolocation",P.repo="https://github.com/apache/cordova-plugin-geolocation",P.install='ionic cordova plugin add cordova-plugin-geolocation --variable GEOLOCATION_USAGE_DESCRIPTION="To locate you"',P.installVariables=["GEOLOCATION_USAGE_DESCRIPTION"],P.platforms=["Amazon Fire OS","Android","Browser","iOS","Windows"],P.\u0275fac=function(){var F;return function(Q){return(F||(F=j.n5z(P)))(Q||P)}}(),P.\u0275prov=j.Yz7({token:P,factory:function(F){return P.\u0275fac(F)}}),P}(m.KY)},1856:(Ct,ae,p)=>{"use strict";p.d(ae,{Y:()=>j,s:()=>U});var r=p(655),m=p(5419),D=p(2096),j=function(){function V(){}return V.ASAuthorizationScopeFullName=0,V.ASAuthorizationScopeEmail=1,V}(),U=function(V){function P(){return null!==V&&V.apply(this,arguments)||this}return(0,r.ZT)(P,V),P.prototype.signin=function(F){return void 0===F&&(F={}),(0,m.DM)(this,"signin",{},arguments)},P.pluginName="Sign in with Apple",P.plugin="cordova-plugin-sign-in-with-apple",P.pluginRef="cordova.plugins.SignInWithApple",P.repo="https://github.com/twogate/cordova-plugin-sign-in-with-apple",P.platforms=["iOS"],P.\u0275fac=function(){var F;return function(Q){return(F||(F=D.n5z(P)))(Q||P)}}(),P.\u0275prov=D.Yz7({token:P,factory:function(F){return P.\u0275fac(F)}}),P}(m.KY)},8008:(Ct,ae,p)=>{"use strict";p.d(ae,{BX:()=>vr,Br:()=>Vi,w:()=>N,We:()=>Ue,eh:()=>it,dr:()=>qe,BJ:()=>lt,oU:()=>Mt,cs:()=>si,yp:()=>Zt,YG:()=>Bn,Sm:()=>tt,PM:()=>xe,FN:()=>O,Zi:()=>se,tO:()=>Se,Dq:()=>_e,nz:()=>at,hM:()=>Je,wI:()=>ke,W2:()=>oe,IJ:()=>gt,W4:()=>St,zq:()=>Jt,fr:()=>Ut,jY:()=>Xt,Gu:()=>Nn,gu:()=>mn,Xz:()=>bn,ju:()=>Yt,MB:()=>In,pK:()=>yn,Ie:()=>gr,Q$:()=>Un,q_:()=>nr,yh:()=>Zn,X7:()=>nt,nJ:()=>Fn,Wo:()=>Le,jP:()=>xr,Nd:()=>Ie,VI:()=>Ve,cJ:()=>dt,GO:()=>_t,t9:()=>Gt,n0:()=>Rt,A$:()=>en,Hr:()=>jt,PQ:()=>tn,yq:()=>Lt,ZU:()=>ln,UN:()=>hi,yW:()=>Tn,wd:()=>Ln,sr:()=>Dn,aJ:()=>Zr,Pc:()=>Ot,r4:()=>I,HT:()=>Pr,_q:()=>pi,IN:()=>ai,SH:()=>Gr,up:()=>Jr,t4:()=>Tr,Dh:()=>ei,YI:()=>Wr,Fo:()=>Yr,QI:()=>le,j9:()=>he,yF:()=>_r,Rw:()=>Mi});var r=p(2096),m=p(3075),D=p(655),j=p(3753),U=p(8929),V=p(591),P=p(1171),F=p(4464),q=p(2198),Q=p(7545),ee=p(5778),ne=p(9808),ce=p(1308);const $e=p(5179).i,ue=["*"],me=["outlet"],ze=[[["","slot","top"]],"*"],Pe=["[slot=top]","*"],Te=a=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(a):"function"==typeof requestAnimationFrame?requestAnimationFrame(a):setTimeout(a),J=a=>!!a.resolveComponentFactory;let We=(()=>{class a{constructor(l,w){this.injector=l,this.el=w,this.onChange=()=>{},this.onTouched=()=>{}}writeValue(l){this.el.nativeElement.value=this.lastValue=null==l?"":l,Be(this.el)}handleChangeEvent(l,w){l===this.el.nativeElement&&(w!==this.lastValue&&(this.lastValue=w,this.onChange(w)),Be(this.el))}_handleBlurEvent(l){l===this.el.nativeElement&&(this.onTouched(),Be(this.el))}registerOnChange(l){this.onChange=l}registerOnTouched(l){this.onTouched=l}setDisabledState(l){this.el.nativeElement.disabled=l}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let l;try{l=this.injector.get(m.a5)}catch(X){}if(!l)return;l.statusChanges&&(this.statusChanges=l.statusChanges.subscribe(()=>Be(this.el)));const w=l.control;w&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(ht=>{if(void 0!==w[ht]){const Ft=w[ht].bind(w);w[ht]=(...Bt)=>{Ft(...Bt),Be(this.el)}}})}}return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.zs3),r.Y36(r.SBq))},a.\u0275dir=r.lG2({type:a,hostBindings:function(l,w){1&l&&r.NdJ("ionBlur",function(ht){return w._handleBlurEvent(ht.target)})}}),a})();const Be=a=>{Te(()=>{const T=a.nativeElement,l=null!=T.value&&T.value.toString().length>0,w=we(T);re(T,w);const X=T.closest("ion-item");X&&re(X,l?[...w,"item-has-value"]:w)})},we=a=>{const T=a.classList,l=[];for(let w=0;w<T.length;w++){const X=T.item(w);null!==X&&z(X,"ng-")&&l.push(`ion-${X.substring(3)}`)}return l},re=(a,T)=>{const l=a.classList;l.remove("ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"),l.add(...T)},z=(a,T)=>a.substring(0,T.length)===T;let N=(()=>{class a extends We{constructor(l,w){super(l,w)}writeValue(l){this.el.nativeElement.checked=this.lastValue=null!=l&&l,Be(this.el)}_handleIonChange(l){this.handleChangeEvent(l,l.checked)}}return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.zs3),r.Y36(r.SBq))},a.\u0275dir=r.lG2({type:a,selectors:[["ion-checkbox"],["ion-toggle"]],hostBindings:function(l,w){1&l&&r.NdJ("ionChange",function(ht){return w._handleIonChange(ht.target)})},features:[r._Bn([{provide:m.JU,useExisting:a,multi:!0}]),r.qOj]}),a})(),le=(()=>{class a extends We{constructor(l,w){super(l,w)}_handleChangeEvent(l){this.handleChangeEvent(l,l.value)}}return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.zs3),r.Y36(r.SBq))},a.\u0275dir=r.lG2({type:a,selectors:[["ion-range"],["ion-select"],["ion-radio-group"],["ion-segment"],["ion-datetime"]],hostBindings:function(l,w){1&l&&r.NdJ("ionChange",function(ht){return w._handleChangeEvent(ht.target)})},features:[r._Bn([{provide:m.JU,useExisting:a,multi:!0}]),r.qOj]}),a})(),he=(()=>{class a extends We{constructor(l,w){super(l,w)}_handleInputEvent(l){this.handleChangeEvent(l,l.value)}}return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.zs3),r.Y36(r.SBq))},a.\u0275dir=r.lG2({type:a,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(l,w){1&l&&r.NdJ("ionChange",function(ht){return w._handleInputEvent(ht.target)})},features:[r._Bn([{provide:m.JU,useExisting:a,multi:!0}]),r.qOj]}),a})();const Ae=(a,T)=>{const l=a.prototype;T.forEach(w=>{Object.defineProperty(l,w,{get(){return this.el[w]},set(X){this.z.runOutsideAngular(()=>this.el[w]=X)}})})},be=(a,T)=>{const l=a.prototype;T.forEach(w=>{l[w]=function(){const X=arguments;return this.z.runOutsideAngular(()=>this.el[w].apply(this.el,X))}})},Re=(a,T,l)=>{l.forEach(w=>a[w]=(0,j.R)(T,w))};function k(a){return function(l){const{defineCustomElementFn:w,inputs:X,methods:ht}=a;return void 0!==w&&w(),X&&Ae(l,X),ht&&be(l,ht),l}}let Ue=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-accordion"]],inputs:{disabled:"disabled",mode:"mode",readonly:"readonly",toggleIcon:"toggleIcon",toggleIconSlot:"toggleIconSlot",value:"value"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["disabled","mode","readonly","toggleIcon","toggleIconSlot","value"]})],a),a})(),it=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement,Re(this,this.el,["ionChange"])}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-accordion-group"]],inputs:{animated:"animated",disabled:"disabled",expand:"expand",mode:"mode",multiple:"multiple",readonly:"readonly",value:"value"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["animated","disabled","expand","mode","multiple","readonly","value"]})],a),a})(),qe=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-app"]],ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0})],a),a})(),lt=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-avatar"]],ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0})],a),a})(),Mt=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-back-button"]],inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"]})],a),a})(),Zt=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-badge"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["color","mode"]})],a),a})(),Bn=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement,Re(this,this.el,["ionFocus","ionBlur"])}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",form:"form",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["buttonType","color","disabled","download","expand","fill","form","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],a),a})(),tt=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-buttons"]],inputs:{collapse:"collapse"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["collapse"]})],a),a})(),xe=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],a),a})(),O=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["mode"]})],a),a})(),se=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["color","mode","translucent"]})],a),a})(),Se=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-card-subtitle"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["color","mode"]})],a),a})(),_e=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-card-title"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["color","mode"]})],a),a})(),at=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement,Re(this,this.el,["ionChange","ionFocus","ionBlur"])}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-checkbox"]],inputs:{checked:"checked",color:"color",disabled:"disabled",indeterminate:"indeterminate",mode:"mode",name:"name",value:"value"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["checked","color","disabled","indeterminate","mode","name","value"]})],a),a})(),Je=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-chip"]],inputs:{color:"color",disabled:"disabled",mode:"mode",outline:"outline"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["color","disabled","mode","outline"]})],a),a})(),ke=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],a),a})(),oe=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement,Re(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-content"]],inputs:{color:"color",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["color","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],a),a})(),gt=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-fab"]],inputs:{activated:"activated",edge:"edge",horizontal:"horizontal",vertical:"vertical"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],a),a})(),St=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement,Re(this,this.el,["ionFocus","ionBlur"])}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-fab-button"]],inputs:{activated:"activated",closeIcon:"closeIcon",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",show:"show",size:"size",target:"target",translucent:"translucent",type:"type"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["activated","closeIcon","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","show","size","target","translucent","type"]})],a),a})(),Jt=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-fab-list"]],inputs:{activated:"activated",side:"side"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["activated","side"]})],a),a})(),Ut=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-footer"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["collapse","mode","translucent"]})],a),a})(),Xt=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["fixed"]})],a),a})(),Nn=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["collapse","mode","translucent"]})],a),a})(),mn=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-icon"]],inputs:{color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],a),a})(),bn=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement,Re(this,this.el,["ionImgWillLoad","ionImgDidLoad","ionError"])}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-img"]],inputs:{alt:"alt",src:"src"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["alt","src"]})],a),a})(),Yt=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement,Re(this,this.el,["ionInfinite"])}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-infinite-scroll"]],inputs:{disabled:"disabled",position:"position",threshold:"threshold"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["disabled","position","threshold"],methods:["complete"]})],a),a})(),In=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-infinite-scroll-content"]],inputs:{loadingSpinner:"loadingSpinner",loadingText:"loadingText"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["loadingSpinner","loadingText"]})],a),a})(),yn=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement,Re(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-input"]],inputs:{accept:"accept",autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearOnEdit:"clearOnEdit",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",size:"size",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["accept","autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearOnEdit","color","debounce","disabled","enterkeyhint","inputmode","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","size","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],a),a})(),gr=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-item"]],inputs:{button:"button",color:"color",counter:"counter",counterFormatter:"counterFormatter",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",fill:"fill",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",target:"target",type:"type"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["button","color","counter","counterFormatter","detail","detailIcon","disabled","download","fill","href","lines","mode","rel","routerAnimation","routerDirection","shape","target","type"]})],a),a})(),Un=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["color","mode","position"]})],a),a})(),nr=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],a),a})(),Zn=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-list-header"]],inputs:{color:"color",lines:"lines",mode:"mode"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["color","lines","mode"]})],a),a})(),nt=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-progress-bar"]],inputs:{buffer:"buffer",color:"color",mode:"mode",reversed:"reversed",type:"type",value:"value"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["buffer","color","mode","reversed","type","value"]})],a),a})(),Fn=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement,Re(this,this.el,["ionRefresh","ionPull","ionStart"])}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-refresher"]],inputs:{closeDuration:"closeDuration",disabled:"disabled",pullFactor:"pullFactor",pullMax:"pullMax",pullMin:"pullMin",snapbackDuration:"snapbackDuration"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["closeDuration","disabled","pullFactor","pullMax","pullMin","snapbackDuration"],methods:["complete","cancel","getProgress"]})],a),a})(),Le=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-refresher-content"]],inputs:{pullingIcon:"pullingIcon",pullingText:"pullingText",refreshingSpinner:"refreshingSpinner",refreshingText:"refreshingText"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["pullingIcon","pullingText","refreshingSpinner","refreshingText"]})],a),a})(),Ie=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-row"]],ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0})],a),a})(),Ve=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement,Re(this,this.el,["ionInput","ionChange","ionCancel","ionClear","ionBlur","ionFocus"])}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-searchbar"]],inputs:{animated:"animated",autocomplete:"autocomplete",autocorrect:"autocorrect",cancelButtonIcon:"cancelButtonIcon",cancelButtonText:"cancelButtonText",clearIcon:"clearIcon",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",mode:"mode",placeholder:"placeholder",searchIcon:"searchIcon",showCancelButton:"showCancelButton",showClearButton:"showClearButton",spellcheck:"spellcheck",type:"type",value:"value"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["animated","autocomplete","autocorrect","cancelButtonIcon","cancelButtonText","clearIcon","color","debounce","disabled","enterkeyhint","inputmode","mode","placeholder","searchIcon","showCancelButton","showClearButton","spellcheck","type","value"],methods:["setFocus","getInputElement"]})],a),a})(),dt=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement,Re(this,this.el,["ionChange"])}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-segment"]],inputs:{color:"color",disabled:"disabled",mode:"mode",scrollable:"scrollable",selectOnFocus:"selectOnFocus",swipeGesture:"swipeGesture",value:"value"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["color","disabled","mode","scrollable","selectOnFocus","swipeGesture","value"]})],a),a})(),_t=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-segment-button"]],inputs:{disabled:"disabled",layout:"layout",mode:"mode",type:"type",value:"value"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["disabled","layout","mode","type","value"]})],a),a})(),Gt=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement,Re(this,this.el,["ionChange","ionCancel","ionDismiss","ionFocus","ionBlur"])}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-select"]],inputs:{cancelText:"cancelText",compareWith:"compareWith",disabled:"disabled",interface:"interface",interfaceOptions:"interfaceOptions",mode:"mode",multiple:"multiple",name:"name",okText:"okText",placeholder:"placeholder",selectedText:"selectedText",value:"value"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["cancelText","compareWith","disabled","interface","interfaceOptions","mode","multiple","name","okText","placeholder","selectedText","value"],methods:["open"]})],a),a})(),Rt=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-select-option"]],inputs:{disabled:"disabled",value:"value"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["disabled","value"]})],a),a})(),en=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-slide"]],ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0})],a),a})(),jt=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement,Re(this,this.el,["ionSlidesDidLoad","ionSlideTap","ionSlideDoubleTap","ionSlideWillChange","ionSlideDidChange","ionSlideNextStart","ionSlidePrevStart","ionSlideNextEnd","ionSlidePrevEnd","ionSlideTransitionStart","ionSlideTransitionEnd","ionSlideDrag","ionSlideReachStart","ionSlideReachEnd","ionSlideTouchStart","ionSlideTouchEnd"])}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-slides"]],inputs:{mode:"mode",options:"options",pager:"pager",scrollbar:"scrollbar"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["mode","options","pager","scrollbar"],methods:["update","updateAutoHeight","slideTo","slideNext","slidePrev","getActiveIndex","getPreviousIndex","length","isEnd","isBeginning","startAutoplay","stopAutoplay","lockSwipeToNext","lockSwipeToPrev","lockSwipes","getSwiper"]})],a),a})(),tn=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-spinner"]],inputs:{color:"color",duration:"duration",name:"name",paused:"paused"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["color","duration","name","paused"]})],a),a})(),Lt=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-tab-bar"]],inputs:{color:"color",mode:"mode",selectedTab:"selectedTab",translucent:"translucent"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["color","mode","selectedTab","translucent"]})],a),a})(),ln=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-tab-button"]],inputs:{disabled:"disabled",download:"download",href:"href",layout:"layout",mode:"mode",rel:"rel",selected:"selected",tab:"tab",target:"target"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["disabled","download","href","layout","mode","rel","selected","tab","target"]})],a),a})(),Tn=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-text"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["color","mode"]})],a),a})(),Ln=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["color","size"]})],a),a})(),Dn=(()=>{let a=class{constructor(l,w,X){this.z=X,l.detach(),this.el=w.nativeElement}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.sBO),r.Y36(r.SBq),r.Y36(r.R0b))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({defineCustomElementFn:void 0,inputs:["color","mode"]})],a),a})();class ir{constructor(T={}){this.data=T}get(T){return this.data[T]}}let cr=(()=>{class a{constructor(l,w){this.zone=l,this.appRef=w}create(l,w,X,ht){return new L(l,w,X,this.appRef,this.zone,ht)}}return a.\u0275fac=function(l){return new(l||a)(r.LFG(r.R0b),r.LFG(r.z2F))},a.\u0275prov=r.Yz7({token:a,factory:a.\u0275fac}),a})();class L{constructor(T,l,w,X,ht,Ft){this.resolverOrInjector=T,this.injector=l,this.location=w,this.appRef=X,this.zone=ht,this.elementReferenceKey=Ft,this.elRefMap=new WeakMap,this.elEventsMap=new WeakMap}attachViewToDom(T,l,w,X){return this.zone.run(()=>new Promise(ht=>{const Ft=Object.assign({},w);void 0!==this.elementReferenceKey&&(Ft[this.elementReferenceKey]=T),ht(Ce(this.zone,this.resolverOrInjector,this.injector,this.location,this.appRef,this.elRefMap,this.elEventsMap,T,l,Ft,X))}))}removeViewFromDom(T,l){return this.zone.run(()=>new Promise(w=>{const X=this.elRefMap.get(l);if(X){X.destroy(),this.elRefMap.delete(l);const ht=this.elEventsMap.get(l);ht&&(ht(),this.elEventsMap.delete(l))}w()}))}}const Ce=(a,T,l,w,X,ht,Ft,Bt,S,E,b)=>{let W;const bt=r.zs3.create({providers:fe(E),parent:l});if(T&&J(T)){const Br=T.resolveComponentFactory(S);W=w?w.createComponent(Br,w.length,bt):Br.create(bt)}else{if(!w)return null;W=w.createComponent(S,{index:w.indexOf,injector:bt,environmentInjector:T})}const Wt=W.instance,$n=W.location.nativeElement;if(E&&Object.assign(Wt,E),b)for(const Br of b)$n.classList.add(Br);const fr=rt(a,Wt,$n);return Bt.appendChild($n),w||X.attachView(W.hostView),W.changeDetectorRef.reattach(),ht.set($n,W),Ft.set($n,fr),$n},et=[F.kx,F.re,F.EQ,F.Jd,F.F8],rt=(a,T,l)=>a.run(()=>{const w=et.filter(X=>"function"==typeof T[X]).map(X=>{const ht=Ft=>T[X](Ft.detail);return l.addEventListener(X,ht),()=>l.removeEventListener(X,ht)});return()=>w.forEach(X=>X())}),pt=new r.OlP("NavParamsToken"),fe=a=>[{provide:pt,useValue:a},{provide:ir,useFactory:Ke,deps:[pt]}],Ke=a=>new ir(a),mt=(a,T)=>((a=a.filter(l=>l.stackId!==T.stackId)).push(T),a),qt=(a,T)=>{const l=a.createUrlTree(["."],{relativeTo:T});return a.serializeUrl(l)},hn=(a,T)=>{if(!a)return;const l=er(T);for(let w=0;w<l.length;w++){if(w>=a.length)return l[w];if(l[w]!==a[w])return}},er=a=>a.split("/").map(T=>T.trim()).filter(T=>""!==T),qn=a=>{a&&(a.ref.destroy(),a.unlistenEvents())};class pr{constructor(T,l,w,X,ht,Ft){this.containerEl=l,this.router=w,this.navCtrl=X,this.zone=ht,this.location=Ft,this.views=[],this.skipTransition=!1,this.nextId=0,this.tabsPrefix=void 0!==T?er(T):void 0}createView(T,l){var w;const X=qt(this.router,l),ht=null===(w=null==T?void 0:T.location)||void 0===w?void 0:w.nativeElement,Ft=rt(this.zone,T.instance,ht);return{id:this.nextId++,stackId:hn(this.tabsPrefix,X),unlistenEvents:Ft,element:ht,ref:T,url:X}}getExistingView(T){const l=qt(this.router,T),w=this.views.find(X=>X.url===l);return w&&w.ref.changeDetectorRef.reattach(),w}setActive(T){var l,w;const X=this.navCtrl.consumeTransition();let{direction:ht,animation:Ft,animationBuilder:Bt}=X;const S=this.activeView,E=((a,T)=>!T||a.stackId!==T.stackId)(T,S);E&&(ht="back",Ft=void 0);const b=this.views.slice();let W;const bt=this.router;bt.getCurrentNavigation?W=bt.getCurrentNavigation():(null===(l=bt.navigations)||void 0===l?void 0:l.value)&&(W=bt.navigations.value),(null===(w=null==W?void 0:W.extras)||void 0===w?void 0:w.replaceUrl)&&this.views.length>0&&this.views.splice(-1,1);const Wt=this.views.includes(T),$n=this.insertView(T,ht);Wt||T.ref.changeDetectorRef.detectChanges();const fr=T.animationBuilder;return void 0===Bt&&"back"===ht&&!E&&void 0!==fr&&(Bt=fr),S&&(S.animationBuilder=Bt),this.zone.runOutsideAngular(()=>this.wait(()=>(S&&S.ref.changeDetectorRef.detach(),T.ref.changeDetectorRef.reattach(),this.transition(T,S,Ft,this.canGoBack(1),!1,Bt).then(()=>ur(T,$n,b,this.location,this.zone)).then(()=>({enteringView:T,direction:ht,animation:Ft,tabSwitch:E})))))}canGoBack(T,l=this.getActiveStackId()){return this.getStack(l).length>T}pop(T,l=this.getActiveStackId()){return this.zone.run(()=>{var w,X;const ht=this.getStack(l);if(ht.length<=T)return Promise.resolve(!1);const Ft=ht[ht.length-T-1];let Bt=Ft.url;const S=Ft.savedData;if(S){const b=S.get("primary");(null===(X=null===(w=null==b?void 0:b.route)||void 0===w?void 0:w._routerState)||void 0===X?void 0:X.snapshot.url)&&(Bt=b.route._routerState.snapshot.url)}const{animationBuilder:E}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(Bt,Object.assign(Object.assign({},Ft.savedExtras),{animation:E})).then(()=>!0)})}startBackTransition(){const T=this.activeView;if(T){const l=this.getStack(T.stackId),w=l[l.length-2],X=w.animationBuilder;return this.wait(()=>this.transition(w,T,"back",this.canGoBack(2),!0,X))}return Promise.resolve()}endBackTransition(T){T?(this.skipTransition=!0,this.pop(1)):this.activeView&&$r(this.activeView,this.views,this.views,this.location,this.zone)}getLastUrl(T){const l=this.getStack(T);return l.length>0?l[l.length-1]:void 0}getRootUrl(T){const l=this.getStack(T);return l.length>0?l[0]:void 0}getActiveStackId(){return this.activeView?this.activeView.stackId:void 0}hasRunningTask(){return void 0!==this.runningTask}destroy(){this.containerEl=void 0,this.views.forEach(qn),this.activeView=void 0,this.views=[]}getStack(T){return this.views.filter(l=>l.stackId===T)}insertView(T,l){return this.activeView=T,this.views=((a,T,l)=>"root"===l?mt(a,T):"forward"===l?((a,T)=>(a.indexOf(T)>=0?a=a.filter(w=>w.stackId!==T.stackId||w.id<=T.id):a.push(T),a))(a,T):((a,T)=>a.indexOf(T)>=0?a.filter(w=>w.stackId!==T.stackId||w.id<=T.id):mt(a,T))(a,T))(this.views,T,l),this.views.slice()}transition(T,l,w,X,ht,Ft){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(l===T)return Promise.resolve(!1);const Bt=T?T.element:void 0,S=l?l.element:void 0,E=this.containerEl;return Bt&&Bt!==S&&(Bt.classList.add("ion-page"),Bt.classList.add("ion-page-invisible"),Bt.parentElement!==E&&E.appendChild(Bt),E.commit)?E.commit(Bt,S,{deepWait:!0,duration:void 0===w?0:void 0,direction:w,showGoBack:X,progressAnimation:ht,animationBuilder:Ft}):Promise.resolve(!1)}wait(T){return(0,D.mG)(this,void 0,void 0,function*(){void 0!==this.runningTask&&(yield this.runningTask,this.runningTask=void 0);const l=this.runningTask=T();return l.finally(()=>this.runningTask=void 0),l})}}const ur=(a,T,l,w,X)=>"function"==typeof requestAnimationFrame?new Promise(ht=>{requestAnimationFrame(()=>{$r(a,T,l,w,X),ht()})}):Promise.resolve(),$r=(a,T,l,w,X)=>{X.run(()=>l.filter(ht=>!T.includes(ht)).forEach(qn)),T.forEach(ht=>{const Bt=w.path().split("?")[0].split("#")[0];if(ht!==a&&ht.url!==Bt){const S=ht.element;S.setAttribute("aria-hidden","true"),S.classList.add("ion-page-hidden"),ht.ref.changeDetectorRef.detach()}})};let Jn=(()=>{class a{get(l,w){const X=zr();return X?X.get(l,w):null}getBoolean(l,w){const X=zr();return!!X&&X.getBoolean(l,w)}getNumber(l,w){const X=zr();return X?X.getNumber(l,w):0}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275prov=r.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();const qr=new r.OlP("USERCONFIG"),zr=()=>{if("undefined"!=typeof window){const a=window.Ionic;if(null==a?void 0:a.config)return a.config}return null};let Tr=(()=>{class a{constructor(l,w){this.doc=l,this.backButton=new U.xQ,this.keyboardDidShow=new U.xQ,this.keyboardDidHide=new U.xQ,this.pause=new U.xQ,this.resume=new U.xQ,this.resize=new U.xQ,w.run(()=>{var X;let ht;this.win=l.defaultView,this.backButton.subscribeWithPriority=function(Ft,Bt){return this.subscribe(S=>S.register(Ft,E=>w.run(()=>Bt(E))))},Sr(this.pause,l,"pause"),Sr(this.resume,l,"resume"),Sr(this.backButton,l,"ionBackButton"),Sr(this.resize,this.win,"resize"),Sr(this.keyboardDidShow,this.win,"ionKeyboardDidShow"),Sr(this.keyboardDidHide,this.win,"ionKeyboardDidHide"),this._readyPromise=new Promise(Ft=>{ht=Ft}),(null===(X=this.win)||void 0===X?void 0:X.cordova)?l.addEventListener("deviceready",()=>{ht("cordova")},{once:!0}):ht("dom")})}is(l){return(0,F.n$)(this.win,l)}platforms(){return(0,F.AK)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(l){return Ai(this.win.location.href,l)}isLandscape(){return!this.isPortrait()}isPortrait(){var l,w;return null===(w=(l=this.win).matchMedia)||void 0===w?void 0:w.call(l,"(orientation: portrait)").matches}testUserAgent(l){const w=this.win.navigator;return!!((null==w?void 0:w.userAgent)&&w.userAgent.indexOf(l)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}}return a.\u0275fac=function(l){return new(l||a)(r.LFG(ne.K0),r.LFG(r.R0b))},a.\u0275prov=r.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();const Ai=(a,T)=>{T=T.replace(/[[\]\\]/g,"\\$&");const w=new RegExp("[\\?&]"+T+"=([^&#]*)").exec(a);return w?decodeURIComponent(w[1].replace(/\+/g," ")):null},Sr=(a,T,l)=>{T&&T.addEventListener(l,w=>{a.next(null!=w?w.detail:void 0)})};let Gr=(()=>{class a{constructor(l,w,X,ht){this.location=w,this.serializer=X,this.router=ht,this.direction=fi,this.animated=oi,this.guessDirection="forward",this.lastNavId=-1,ht&&ht.events.subscribe(Ft=>{if(Ft instanceof P.OD){const Bt=Ft.restoredState?Ft.restoredState.navigationId:Ft.id;this.guessDirection=Bt<this.lastNavId?"back":"forward",this.guessAnimation=Ft.restoredState?void 0:this.guessDirection,this.lastNavId="forward"===this.guessDirection?Ft.id:Bt}}),l.backButton.subscribeWithPriority(0,Ft=>{this.pop(),Ft()})}navigateForward(l,w={}){return this.setDirection("forward",w.animated,w.animationDirection,w.animation),this.navigate(l,w)}navigateBack(l,w={}){return this.setDirection("back",w.animated,w.animationDirection,w.animation),this.navigate(l,w)}navigateRoot(l,w={}){return this.setDirection("root",w.animated,w.animationDirection,w.animation),this.navigate(l,w)}back(l={animated:!0,animationDirection:"back"}){return this.setDirection("back",l.animated,l.animationDirection,l.animation),this.location.back()}pop(){return(0,D.mG)(this,void 0,void 0,function*(){let l=this.topOutlet;for(;l&&!(yield l.pop());)l=l.parentOutlet})}setDirection(l,w,X,ht){this.direction=l,this.animated=di(l,w,X),this.animationBuilder=ht}setTopOutlet(l){this.topOutlet=l}consumeTransition(){let w,l="root";const X=this.animationBuilder;return"auto"===this.direction?(l=this.guessDirection,w=this.guessAnimation):(w=this.animated,l=this.direction),this.direction=fi,this.animated=oi,this.animationBuilder=void 0,{direction:l,animation:w,animationBuilder:X}}navigate(l,w){if(Array.isArray(l))return this.router.navigate(l,w);{const X=this.serializer.parse(l.toString());return void 0!==w.queryParams&&(X.queryParams=Object.assign({},w.queryParams)),void 0!==w.fragment&&(X.fragment=w.fragment),this.router.navigateByUrl(X,w)}}}return a.\u0275fac=function(l){return new(l||a)(r.LFG(Tr),r.LFG(ne.Ye),r.LFG(P.Hx),r.LFG(P.F0,8))},a.\u0275prov=r.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();const di=(a,T,l)=>{if(!1!==T){if(void 0!==l)return l;if("forward"===a||"back"===a)return a;if("root"===a&&!0===T)return"forward"}},fi="auto",oi=void 0;let xr=(()=>{class a{constructor(l,w,X,ht,Ft,Bt,S,E,b,W,bt,Wt,$n){this.parentContexts=l,this.location=w,this.config=Ft,this.navCtrl=Bt,this.componentFactoryResolver=S,this.parentOutlet=$n,this.activated=null,this.activatedView=null,this._activatedRoute=null,this.proxyMap=new WeakMap,this.currentActivatedRoute$=new V.X(null),this.stackEvents=new r.vpe,this.activateEvents=new r.vpe,this.deactivateEvents=new r.vpe,this.nativeEl=b.nativeElement,this.name=X||P.eC,this.tabsPrefix="true"===ht?qt(W,Wt):void 0,this.stackCtrl=new pr(this.tabsPrefix,this.nativeEl,W,Bt,bt,E),l.onChildOutletCreated(this.name,this)}set animation(l){this.nativeEl.animation=l}set animated(l){this.nativeEl.animated=l}set swipeGesture(l){this._swipeGesture=l,this.nativeEl.swipeHandler=l?{canStart:()=>this.stackCtrl.canGoBack(1)&&!this.stackCtrl.hasRunningTask(),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:w=>this.stackCtrl.endBackTransition(w)}:void 0}ngOnDestroy(){this.stackCtrl.destroy()}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){if(!this.activated){const l=this.getContext();(null==l?void 0:l.route)&&this.activateWith(l.route,l.resolver||null)}new Promise(l=>(0,F.hh)(this.nativeEl,l)).then(()=>{void 0===this._swipeGesture&&(this.swipeGesture=this.config.getBoolean("swipeBackEnabled","ios"===this.nativeEl.mode))})}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){throw new Error("incompatible reuse strategy")}attach(l,w){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){const w=this.getContext();this.activatedView.savedData=new Map(w.children.contexts);const X=this.activatedView.savedData.get("primary");if(X&&w.route&&(X.route=Object.assign({},w.route)),this.activatedView.savedExtras={},w.route){const ht=w.route.snapshot;this.activatedView.savedExtras.queryParams=ht.queryParams,this.activatedView.savedExtras.fragment=ht.fragment}}const l=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(l)}}activateWith(l,w){var X;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=l;let ht,Ft=this.stackCtrl.getExistingView(l);if(Ft){ht=this.activated=Ft.ref;const Bt=Ft.savedData;Bt&&(this.getContext().children.contexts=Bt),this.updateActivatedRouteProxy(ht.instance,l)}else{const Bt=l._futureSnapshot;if(null==Bt.routeConfig.component&&null==this.environmentInjector)return void console.warn('[Ionic Warning]: You must supply an environmentInjector to use standalone components with routing:\n\nIn your component class, add:\n\n   import { EnvironmentInjector } from \'@angular/core\';\n   constructor(public environmentInjector: EnvironmentInjector) {}\n\nIn your router outlet template, add:\n\n   <ion-router-outlet [environmentInjector]="environmentInjector"></ion-router-outlet>\n\nAlternatively, if you are routing within ion-tabs:\n\n   <ion-tabs [environmentInjector]="environmentInjector"></ion-tabs>');const S=this.parentContexts.getOrCreateContext(this.name).children,E=new V.X(null),b=this.createActivatedRouteProxy(E,l),W=new $i(b,S,this.location.injector),bt=null!==(X=Bt.routeConfig.component)&&void 0!==X?X:Bt.component;if((w=w||this.componentFactoryResolver)&&J(w)){const Wt=w.resolveComponentFactory(bt);ht=this.activated=this.location.createComponent(Wt,this.location.length,W)}else ht=this.activated=this.location.createComponent(bt,{index:this.location.length,injector:W,environmentInjector:null!=w?w:this.environmentInjector});E.next(ht.instance),Ft=this.stackCtrl.createView(this.activated,l),this.proxyMap.set(ht.instance,b),this.currentActivatedRoute$.next({component:ht.instance,activatedRoute:l})}this.activatedView=Ft,this.navCtrl.setTopOutlet(this),this.stackCtrl.setActive(Ft).then(Bt=>{this.activateEvents.emit(ht.instance),this.stackEvents.emit(Bt)})}canGoBack(l=1,w){return this.stackCtrl.canGoBack(l,w)}pop(l=1,w){return this.stackCtrl.pop(l,w)}getLastUrl(l){const w=this.stackCtrl.getLastUrl(l);return w?w.url:void 0}getLastRouteView(l){return this.stackCtrl.getLastUrl(l)}getRootView(l){return this.stackCtrl.getRootUrl(l)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(l,w){const X=new P.gz;return X._futureSnapshot=w._futureSnapshot,X._routerState=w._routerState,X.snapshot=w.snapshot,X.outlet=w.outlet,X.component=w.component,X._paramMap=this.proxyObservable(l,"paramMap"),X._queryParamMap=this.proxyObservable(l,"queryParamMap"),X.url=this.proxyObservable(l,"url"),X.params=this.proxyObservable(l,"params"),X.queryParams=this.proxyObservable(l,"queryParams"),X.fragment=this.proxyObservable(l,"fragment"),X.data=this.proxyObservable(l,"data"),X}proxyObservable(l,w){return l.pipe((0,q.h)(X=>!!X),(0,Q.w)(X=>this.currentActivatedRoute$.pipe((0,q.h)(ht=>null!==ht&&ht.component===X),(0,Q.w)(ht=>ht&&ht.activatedRoute[w]),(0,ee.x)())))}updateActivatedRouteProxy(l,w){const X=this.proxyMap.get(l);if(!X)throw new Error("Could not find activated route proxy for view");X._futureSnapshot=w._futureSnapshot,X._routerState=w._routerState,X.snapshot=w.snapshot,X.outlet=w.outlet,X.component=w.component,this.currentActivatedRoute$.next({component:l,activatedRoute:w})}}return a.\u0275fac=function(l){return new(l||a)(r.Y36(P.y6),r.Y36(r.s_b),r.$8M("name"),r.$8M("tabs"),r.Y36(Jn),r.Y36(Gr),r.Y36(r._Vd,8),r.Y36(ne.Ye),r.Y36(r.SBq),r.Y36(P.F0),r.Y36(r.R0b),r.Y36(P.gz),r.Y36(a,12))},a.\u0275dir=r.lG2({type:a,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",mode:"mode",swipeGesture:"swipeGesture",environmentInjector:"environmentInjector"},outputs:{stackEvents:"stackEvents",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),a})();class $i{constructor(T,l,w){this.route=T,this.childContexts=l,this.parent=w}get(T,l){return T===P.gz?this.route:T===P.y6?this.childContexts:this.parent.get(T,l)}}let hi=(()=>{class a{constructor(l){this.navCtrl=l,this.ionTabsWillChange=new r.vpe,this.ionTabsDidChange=new r.vpe}onPageSelected(l){const w=l.enteringView.stackId;l.tabSwitch&&void 0!==w&&(this.ionTabsWillChange.emit({tab:w}),this.tabBar&&(this.tabBar.selectedTab=w),this.ionTabsDidChange.emit({tab:w}))}select(l){const w="string"==typeof l,X=w?l:l.detail.tab,ht=this.outlet.getActiveStackId()===X,Ft=`${this.outlet.tabsPrefix}/${X}`;if(w||l.stopPropagation(),ht){const Bt=this.outlet.getActiveStackId(),S=this.outlet.getLastRouteView(Bt);if((null==S?void 0:S.url)===Ft)return;const E=this.outlet.getRootView(X);return this.navCtrl.navigateRoot(Ft,Object.assign(Object.assign({},E&&Ft===E.url&&E.savedExtras),{animated:!0,animationDirection:"back"}))}{const Bt=this.outlet.getLastRouteView(X);return this.navCtrl.navigateRoot((null==Bt?void 0:Bt.url)||Ft,Object.assign(Object.assign({},null==Bt?void 0:Bt.savedExtras),{animated:!0,animationDirection:"back"}))}}getSelected(){return this.outlet.getActiveStackId()}}return a.\u0275fac=function(l){return new(l||a)(r.Y36(Gr))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-tabs"]],contentQueries:function(l,w,X){if(1&l&&r.Suo(X,Lt,5),2&l){let ht;r.iGM(ht=r.CRH())&&(w.tabBar=ht.first)}},viewQuery:function(l,w){if(1&l&&r.Gf(me,5,xr),2&l){let X;r.iGM(X=r.CRH())&&(w.outlet=X.first)}},hostBindings:function(l,w){1&l&&r.NdJ("ionTabButtonClick",function(ht){return w.select(ht)})},inputs:{environmentInjector:"environmentInjector"},outputs:{ionTabsWillChange:"ionTabsWillChange",ionTabsDidChange:"ionTabsDidChange"},ngContentSelectors:Pe,decls:5,vars:1,consts:[[1,"tabs-inner"],["tabs","true",3,"environmentInjector","stackEvents"],["outlet",""]],template:function(l,w){1&l&&(r.F$t(ze),r.Hsn(0),r.TgZ(1,"div",0)(2,"ion-router-outlet",1,2),r.NdJ("stackEvents",function(ht){return w.onPageSelected(ht)}),r.qZA()(),r.Hsn(4,1)),2&l&&(r.xp6(2),r.Q6J("environmentInjector",w.environmentInjector))},directives:[xr],styles:["[_nghost-%COMP%] {\n        display: flex;\n        position: absolute;\n        top: 0;\n        left: 0;\n        right: 0;\n        bottom: 0;\n\n        flex-direction: column;\n\n        width: 100%;\n        height: 100%;\n\n        contain: layout size style;\n        z-index: $z-index-page-container;\n      }\n      .tabs-inner[_ngcontent-%COMP%] {\n        position: relative;\n\n        flex: 1;\n\n        contain: layout size style;\n      }"]}),a})(),si=(()=>{class a{constructor(l,w,X){this.routerOutlet=l,this.navCtrl=w,this.config=X}onClick(l){var w;const X=this.defaultHref||this.config.get("backButtonDefaultHref");(null===(w=this.routerOutlet)||void 0===w?void 0:w.canGoBack())?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),l.preventDefault()):null!=X&&(this.navCtrl.navigateBack(X,{animation:this.routerAnimation}),l.preventDefault())}}return a.\u0275fac=function(l){return new(l||a)(r.Y36(xr,8),r.Y36(Gr),r.Y36(Jn))},a.\u0275dir=r.lG2({type:a,selectors:[["ion-back-button"]],hostBindings:function(l,w){1&l&&r.NdJ("click",function(ht){return w.onClick(ht)})},inputs:{defaultHref:"defaultHref",routerAnimation:"routerAnimation"}}),a})(),Wr=(()=>{class a{constructor(l,w,X,ht,Ft){this.locationStrategy=l,this.navCtrl=w,this.elementRef=X,this.router=ht,this.routerLink=Ft,this.routerDirection="forward"}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var l;if(null===(l=this.routerLink)||void 0===l?void 0:l.urlTree){const w=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=w}}onClick(l){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),l.preventDefault()}}return a.\u0275fac=function(l){return new(l||a)(r.Y36(ne.S$),r.Y36(Gr),r.Y36(r.SBq),r.Y36(P.F0),r.Y36(P.rH,8))},a.\u0275dir=r.lG2({type:a,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(l,w){1&l&&r.NdJ("click",function(ht){return w.onClick(ht)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[r.TTD]}),a})(),Yr=(()=>{class a{constructor(l,w,X,ht,Ft){this.locationStrategy=l,this.navCtrl=w,this.elementRef=X,this.router=ht,this.routerLink=Ft,this.routerDirection="forward"}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var l;if(null===(l=this.routerLink)||void 0===l?void 0:l.urlTree){const w=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=w}}onClick(){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation)}}return a.\u0275fac=function(l){return new(l||a)(r.Y36(ne.S$),r.Y36(Gr),r.Y36(r.SBq),r.Y36(P.F0),r.Y36(P.rH,8))},a.\u0275dir=r.lG2({type:a,selectors:[["a","routerLink",""],["area","routerLink",""]],hostBindings:function(l,w){1&l&&r.NdJ("click",function(){return w.onClick()})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[r.TTD]}),a})(),Vr=(()=>{class a{constructor(l){this.templateRef=l}}return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.Rgc))},a.\u0275dir=r.lG2({type:a,selectors:[["","virtualFooter",""]]}),a})(),Lr=(()=>{class a{constructor(l){this.templateRef=l}}return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.Rgc))},a.\u0275dir=r.lG2({type:a,selectors:[["","virtualHeader",""]]}),a})(),Mi=(()=>{class a{constructor(l,w){this.templateRef=l,this.viewContainer=w}}return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.Rgc),r.Y36(r.s_b))},a.\u0275dir=r.lG2({type:a,selectors:[["","virtualItem",""]]}),a})(),Zr=(()=>{let a=class{constructor(l,w,X){this.z=l,this.iterableDiffers=w,this.refMap=new WeakMap,this.el=X.nativeElement,this.el.nodeRender=this.nodeRender.bind(this)}ngOnChanges(l){if(this.trackBy&&"items"in l){const w=l.items.currentValue;if(void 0===this.differ&&null!=w)try{this.differ=this.iterableDiffers.find(w).create(this.trackBy)}catch(X){throw new Error(`Cannot find a differ supporting object '${w}'. VirtualScroll only supports binding to Iterables such as Arrays.`)}}}ngDoCheck(){null!==(void 0!==this.differ&&this.items?this.differ.diff(this.items):null)&&this.checkRange(0)}nodeRender(l,w,X){return this.z.run(()=>{let ht;if(l){ht=this.refMap.get(l);const Ft=ht.context;Ft.$implicit=w.value,Ft.index=w.index}else ht=this.itmTmp.viewContainer.createEmbeddedView(this.getComponent(w.type),{$implicit:w.value,index:X},X),l=Ii(ht),this.refMap.set(l,ht);return ht.detectChanges(),l})}getComponent(l){switch(l){case"item":return this.itmTmp.templateRef;case"header":return this.hdrTmp.templateRef;case"footer":return this.ftrTmp.templateRef;default:throw new Error("template for virtual item was not provided")}}};return a.\u0275fac=function(l){return new(l||a)(r.Y36(r.R0b),r.Y36(r.ZZ4),r.Y36(r.SBq))},a.\u0275cmp=r.Xpm({type:a,selectors:[["ion-virtual-scroll"]],contentQueries:function(l,w,X){if(1&l&&(r.Suo(X,Mi,5),r.Suo(X,Lr,5),r.Suo(X,Vr,5)),2&l){let ht;r.iGM(ht=r.CRH())&&(w.itmTmp=ht.first),r.iGM(ht=r.CRH())&&(w.hdrTmp=ht.first),r.iGM(ht=r.CRH())&&(w.ftrTmp=ht.first)}},inputs:{approxItemHeight:"approxItemHeight",approxHeaderHeight:"approxHeaderHeight",approxFooterHeight:"approxFooterHeight",headerFn:"headerFn",footerFn:"footerFn",items:"items",itemHeight:"itemHeight",headerHeight:"headerHeight",footerHeight:"footerHeight",trackBy:"trackBy"},features:[r.TTD],ngContentSelectors:ue,decls:1,vars:0,template:function(l,w){1&l&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),a=(0,D.gn)([k({inputs:["approxItemHeight","approxHeaderHeight","approxFooterHeight","headerFn","footerFn","items","itemHeight","headerHeight","footerHeight"],methods:["checkEnd","checkRange","positionForItem"]})],a),a})();const Ii=a=>{const T=a.rootNodes;for(let l=0;l<T.length;l++)if(1===T[l].nodeType)return T[l];throw new Error("virtual element was not created")};class Cr{constructor(T){this.ctrl=T}create(T){return this.ctrl.create(T||{})}dismiss(T,l,w){return this.ctrl.dismiss(T,l,w)}getTop(){return this.ctrl.getTop()}}let vr=(()=>{class a extends Cr{constructor(){super(F.BO)}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275prov=r.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),Vi=(()=>{class a extends Cr{constructor(){super(F.Cl)}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275prov=r.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),Pr=(()=>{class a extends Cr{constructor(){super(F.G0)}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275prov=r.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),pi=(()=>{class a{open(l){return F.Bk.open(l)}close(l){return F.Bk.close(l)}toggle(l){return F.Bk.toggle(l)}enable(l,w){return F.Bk.enable(l,w)}swipeGesture(l,w){return F.Bk.swipeGesture(l,w)}isOpen(l){return F.Bk.isOpen(l)}isEnabled(l){return F.Bk.isEnabled(l)}get(l){return F.Bk.get(l)}getOpen(){return F.Bk.getOpen()}getMenus(){return F.Bk.getMenus()}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275prov=r.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})(),Jr=(()=>{class a extends Cr{constructor(){super(F._E)}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275prov=r.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();class Kr{}let ai=(()=>{class a extends Cr{constructor(l,w,X,ht){super(F.Fy),this.angularDelegate=l,this.resolver=w,this.injector=X,this.environmentInjector=ht}create(l){var w;return super.create(Object.assign(Object.assign({},l),{delegate:this.angularDelegate.create(null!==(w=this.resolver)&&void 0!==w?w:this.environmentInjector,this.injector,void 0,"modal")}))}}return a.\u0275fac=function(l){return new(l||a)(r.LFG(cr),r.LFG(r._Vd),r.LFG(r.zs3),r.LFG(Kr,8))},a.\u0275prov=r.Yz7({token:a,factory:a.\u0275fac}),a})(),ei=(()=>{class a extends Cr{constructor(l,w,X,ht){super(F.oq),this.angularDelegate=l,this.resolver=w,this.injector=X,this.environmentInjector=ht}create(l){var w;return super.create(Object.assign(Object.assign({},l),{delegate:this.angularDelegate.create(null!==(w=this.resolver)&&void 0!==w?w:this.environmentInjector,this.injector,void 0,"popover")}))}}return a.\u0275fac=function(l){return new(l||a)(r.LFG(cr),r.LFG(r._Vd),r.LFG(r.zs3),r.LFG(Kr,8))},a.\u0275prov=r.Yz7({token:a,factory:a.\u0275fac}),a})(),_r=(()=>{class a extends Cr{constructor(){super(F.Mn)}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275prov=r.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),a})();class I{shouldDetach(T){return!1}shouldAttach(T){return!1}store(T,l){}retrieve(T){return null}shouldReuseRoute(T,l){if(T.routeConfig!==l.routeConfig)return!1;const w=T.params,X=l.params,ht=Object.keys(w),Ft=Object.keys(X);if(ht.length!==Ft.length)return!1;for(const Bt of ht)if(X[Bt]!==w[Bt])return!1;return!0}}const te=(a,T,l)=>()=>{if(T.defaultView&&"undefined"!=typeof window){(0,F.qc)(Object.assign(Object.assign({},a),{_zoneGate:ht=>l.run(ht)}));const X="__zone_symbol__addEventListener"in T.body?"__zone_symbol__addEventListener":"addEventListener";return function Y(){var a=[];if("undefined"!=typeof window){var T=window;(!T.customElements||T.Element&&(!T.Element.prototype.closest||!T.Element.prototype.matches||!T.Element.prototype.remove||!T.Element.prototype.getRootNode))&&a.push(p.e(6748).then(p.t.bind(p,723,23))),("function"!=typeof Object.assign||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||T.NodeList&&!T.NodeList.prototype.forEach||!T.fetch||!function(){try{var w=new URL("b","http://a");return w.pathname="c%20d","http://a/c%20d"===w.href&&w.searchParams}catch(X){return!1}}()||"undefined"==typeof WeakMap)&&a.push(p.e(2214).then(p.t.bind(p,4144,23)))}return Promise.all(a)}().then(()=>((a,T)=>"undefined"==typeof window?Promise.resolve():(0,ce.p)().then(()=>($e(),(0,ce.b)(JSON.parse('[["ion-menu_3",[[33,"ion-menu-button",{"color":[513],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"],[0,"keydown","onKeydown"]]],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[513],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64],"toggle":[64]}],[1,"ion-fab-list",{"activated":[4],"side":[1]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]}]]],["ion-back-button",[[33,"ion-back-button",{"color":[513],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"color":[513],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"layout":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"buttons":[16],"translucent":[4],"animated":[4],"icon":[1],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-card_5",[[33,"ion-card",{"color":[513],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[513],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[513]}],[33,"ion-card-title",{"color":[513]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[513],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]}]]],["ion-accordion_2",[[49,"ion-accordion",{"value":[1],"disabled":[4],"readonly":[4],"toggleIcon":[1,"toggle-icon"],"toggleIconSlot":[1,"toggle-icon-slot"],"state":[32],"isNext":[32],"isPrevious":[32]}],[33,"ion-accordion-group",{"animated":[4],"multiple":[4],"value":[1025],"disabled":[4],"readonly":[4],"expand":[1],"requestAccordionToggle":[64],"getAccordions":[64]},[[0,"keydown","onKeydown"]]]]],["ion-breadcrumb_2",[[33,"ion-breadcrumb",{"collapsed":[4],"last":[4],"showCollapsedIndicator":[4,"show-collapsed-indicator"],"color":[1],"active":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"separator":[4],"target":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}],[33,"ion-breadcrumbs",{"color":[1],"maxItems":[2,"max-items"],"itemsBeforeCollapse":[2,"items-before-collapse"],"itemsAfterCollapse":[2,"items-after-collapse"],"collapsed":[32],"activeChanged":[32]},[[0,"collapsedClick","onCollapsedClick"]]]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[4],"layout":[1],"type":[1],"value":[1],"checked":[32],"setFocus":[64]}],[33,"ion-segment",{"color":[513],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1025],"selectOnFocus":[4,"select-on-focus"],"activated":[32]},[[0,"keydown","onKeyDown"]]]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[513],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]}]]],["ion-chip",[[1,"ion-chip",{"color":[513],"outline":[4],"disabled":[4]}]]],["ion-datetime-button",[[33,"ion-datetime-button",{"color":[513],"disabled":[516],"datetime":[1],"datetimePresentation":[32],"dateText":[32],"timeText":[32],"datetimeActive":[32],"selectedButton":[32]}]]],["ion-input",[[34,"ion-input",{"fireFocusEvents":[4,"fire-focus-events"],"color":[513],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"inputmode":[1],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[513],"animated":[4],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[513],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"enableOnOffLabels":[4,"enable-on-off-labels"],"activated":[32]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[513]}],[1,"ion-thumbnail"]]],["ion-textarea",[[34,"ion-textarea",{"fireFocusEvents":[4,"fire-focus-events"],"color":[513],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[1028,"clear-on-edit"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[2],"rows":[2],"wrap":[1],"autoGrow":[516,"auto-grow"],"value":[1025],"hasFocus":[32],"setFocus":[64],"setBlur":[64],"getInputElement":[64]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-modal",[[33,"ion-modal",{"hasController":[4,"has-controller"],"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"breakpoints":[16],"initialBreakpoint":[2,"initial-breakpoint"],"backdropBreakpoint":[2,"backdrop-breakpoint"],"handle":[4],"handleBehavior":[1,"handle-behavior"],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"swipeToClose":[4,"swipe-to-close"],"presentingElement":[16],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"keepContentsMounted":[4,"keep-contents-mounted"],"canDismiss":[4,"can-dismiss"],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"setCurrentBreakpoint":[64],"getCurrentBreakpoint":[64]}]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]}],[0,"ion-route-redirect",{"from":[1],"to":[1]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[513],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-slide_2",[[0,"ion-slide"],[36,"ion-slides",{"options":[8],"pager":[4],"scrollbar":[4],"update":[64],"updateAutoHeight":[64],"slideTo":[64],"slideNext":[64],"slidePrev":[64],"getActiveIndex":[64],"getPreviousIndex":[64],"length":[64],"isEnd":[64],"isBeginning":[64],"startAutoplay":[64],"stopAutoplay":[64],"lockSwipeToNext":[64],"lockSwipeToPrev":[64],"lockSwipes":[64],"getSwiper":[64]}]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[513]}]]],["ion-range",[[33,"ion-range",{"color":[513],"debounce":[2],"name":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"pinFormatter":[16],"snaps":[4],"step":[2],"ticks":[4],"activeBarStart":[1026,"active-bar-start"],"disabled":[4],"value":[1026],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]}]]],["ion-text",[[1,"ion-text",{"color":[513]}]]],["ion-virtual-scroll",[[0,"ion-virtual-scroll",{"approxItemHeight":[2,"approx-item-height"],"approxHeaderHeight":[2,"approx-header-height"],"approxFooterHeight":[2,"approx-footer-height"],"headerFn":[16],"footerFn":[16],"items":[16],"itemHeight":[16],"headerHeight":[16],"footerHeight":[16],"renderItem":[16],"renderHeader":[16],"renderFooter":[16],"nodeRender":[16],"domRender":[16],"totalHeight":[32],"positionForItem":[64],"checkRange":[64],"checkEnd":[64]},[[9,"resize","onResize"]]]]],["ion-picker-column-internal",[[33,"ion-picker-column-internal",{"items":[16],"value":[1032],"color":[513],"numericInput":[4,"numeric-input"],"isActive":[32],"scrollActiveItemIntoView":[64],"setValue":[64]}]]],["ion-picker-internal",[[33,"ion-picker-internal",{"exitInputMode":[64]},[[1,"touchstart","preventTouchStartPropagation"]]]]],["ion-radio_2",[[33,"ion-radio",{"color":[513],"name":[1],"disabled":[4],"value":[8],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]]]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[513],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1],"form":[1]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32],"ariaLabel":[32]}]]],["ion-datetime_3",[[33,"ion-datetime",{"color":[1],"name":[1],"disabled":[4],"readonly":[4],"isDateEnabled":[16],"min":[1025],"max":[1025],"presentation":[1],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"clearText":[1,"clear-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"locale":[1],"firstDayOfWeek":[2,"first-day-of-week"],"titleSelectedDatesFormatter":[16],"multiple":[4],"highlightedDates":[16],"value":[1025],"showDefaultTitle":[4,"show-default-title"],"showDefaultButtons":[4,"show-default-buttons"],"showClearButton":[4,"show-clear-button"],"showDefaultTimeLabel":[4,"show-default-time-label"],"hourCycle":[1,"hour-cycle"],"size":[1],"preferWheel":[4,"prefer-wheel"],"showMonthAndYear":[32],"activeParts":[32],"workingParts":[32],"isPresented":[32],"isTimePopoverOpen":[32],"confirm":[64],"reset":[64],"cancel":[64]}],[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"htmlAttributes":[16],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]}],[32,"ion-picker-column",{"col":[16]}]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]]]]],["ion-popover",[[33,"ion-popover",{"hasController":[4,"has-controller"],"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"triggerAction":[1,"trigger-action"],"trigger":[1],"size":[1],"dismissOnSelect":[4,"dismiss-on-select"],"reference":[1],"side":[1],"alignment":[1025],"arrow":[4],"isOpen":[4,"is-open"],"keyboardEvents":[4,"keyboard-events"],"keepContentsMounted":[4,"keep-contents-mounted"],"presented":[32],"presentFromTrigger":[64],"present":[64],"dismiss":[64],"getParentPopover":[64],"onDidDismiss":[64],"onWillDismiss":[64]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[513],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[8]}]]],["ion-select_3",[[33,"ion-select",{"disabled":[4],"cancelText":[1,"cancel-text"],"okText":[1,"ok-text"],"placeholder":[1],"name":[1],"selectedText":[1,"selected-text"],"multiple":[4],"interface":[1],"interfaceOptions":[8,"interface-options"],"compareWith":[1,"compare-with"],"value":[1032],"isExpanded":[32],"open":[64]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}],[34,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"multiple":[4],"options":[16]},[[0,"ionChange","onSelect"]]]]],["ion-app_8",[[0,"ion-app",{"setFocus":[64]}],[1,"ion-content",{"color":[513],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"getBackgroundElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[8,"appload","onAppLoad"],[9,"resize","onResize"]]],[36,"ion-footer",{"collapse":[1],"translucent":[4],"keyboardVisible":[32]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]}],[33,"ion-title",{"color":[513],"size":[1]}],[33,"ion-toolbar",{"color":[513]},[[0,"ionStyle","childrenStyle"]]],[34,"ion-buttons",{"collapse":[4]}]]],["ion-spinner",[[1,"ion-spinner",{"color":[513],"duration":[2],"name":[1],"paused":[4]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[513],"sticky":[4]}],[32,"ion-item-group"],[1,"ion-skeleton-text",{"animated":[4]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[513],"lines":[1]}],[49,"ion-item",{"color":[513],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"fill":[1],"shape":[1],"href":[1],"rel":[1],"lines":[1],"counter":[4],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"counterFormatter":[16],"multipleInputs":[32],"focusable":[32],"counterString":[32]},[[0,"ionChange","handleIonChange"],[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]]],[34,"ion-label",{"color":[513],"position":[1],"noAnimate":[32]}],[33,"ion-note",{"color":[513]}]]]]'),T))))(0,{exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:Te,jmp:ht=>l.runOutsideAngular(ht),ael(ht,Ft,Bt,S){ht[X](Ft,Bt,S)},rel(ht,Ft,Bt,S){ht.removeEventListener(Ft,Bt,S)}}))}};let Ot=(()=>{class a{static forRoot(l){return{ngModule:a,providers:[{provide:qr,useValue:l},{provide:r.ip1,useFactory:te,multi:!0,deps:[qr,ne.K0,r.R0b]}]}}}return a.\u0275fac=function(l){return new(l||a)},a.\u0275mod=r.oAB({type:a}),a.\u0275inj=r.cJS({providers:[cr,ai,ei],imports:[[ne.ez]]}),a})()},181:(Ct,ae,p)=>{"use strict";p.d(ae,{c:()=>$e});var r=p(5730),m=p(3457);let D;const U=ye=>ye.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),V=ye=>{if(void 0===D){const ue=void 0!==ye.style.webkitAnimationName;D=void 0===ye.style.animationName&&ue?"-webkit-":""}return D},P=(ye,De,ue)=>{const me=De.startsWith("animation")?V(ye):"";ye.style.setProperty(me+De,ue)},F=(ye,De)=>{const ue=De.startsWith("animation")?V(ye):"";ye.style.removeProperty(ue+De)},ee=[],Ne=(ye=[],De)=>{if(void 0!==De){const ue=Array.isArray(De)?De:[De];return[...ye,...ue]}return ye},$e=ye=>{let De,ue,me,ze,Pe,je,Be,he,Ae,be,Re,it,qe,Fe=[],Te=[],J=[],We=!1,we={},re=[],z=[],N={},pe=0,ve=!1,le=!1,H=!0,k=!1,Ue=!0,lt=!1;const Mt=ye,Vt=[],Zt=[],Nt=[],wn=[],Bn=[],tt=[],xe=[],O=[],se=[],Se=[],_e="function"==typeof AnimationEffect||void 0!==m.w&&"function"==typeof m.w.AnimationEffect,at="function"==typeof Element&&"function"==typeof Element.prototype.animate&&_e,ke=()=>Se,St=(fe,Ke)=>(((null==Ke?void 0:Ke.oneTimeCallback)?Zt:Vt).push({c:fe,o:Ke}),qe),Ut=()=>{if(at)Se.forEach(fe=>{fe.cancel()}),Se.length=0;else{const fe=Nt.slice();(0,r.r)(()=>{fe.forEach(Ke=>{F(Ke,"animation-name"),F(Ke,"animation-duration"),F(Ke,"animation-timing-function"),F(Ke,"animation-iteration-count"),F(Ke,"animation-delay"),F(Ke,"animation-play-state"),F(Ke,"animation-fill-mode"),F(Ke,"animation-direction")})})}},Xt=()=>{Bn.forEach(fe=>{(null==fe?void 0:fe.parentNode)&&fe.parentNode.removeChild(fe)}),Bn.length=0},Un=()=>void 0!==Pe?Pe:Be?Be.getFill():"both",nr=()=>void 0!==Ae?Ae:void 0!==je?je:Be?Be.getDirection():"normal",Zn=()=>ve?"linear":void 0!==me?me:Be?Be.getEasing():"linear",Kn=()=>le?0:void 0!==be?be:void 0!==ue?ue:Be?Be.getDuration():0,On=()=>void 0!==ze?ze:Be?Be.getIterations():1,zn=()=>void 0!==Re?Re:void 0!==De?De:Be?Be.getDelay():0,dt=()=>{0!==pe&&(pe--,0===pe&&((()=>{Ln(),O.forEach(yt=>yt()),se.forEach(yt=>yt());const fe=H?1:0,Ke=re,st=z,mt=N;Nt.forEach(yt=>{const kt=yt.classList;Ke.forEach(qt=>kt.add(qt)),st.forEach(qt=>kt.remove(qt));for(const qt in mt)mt.hasOwnProperty(qt)&&P(yt,qt,mt[qt])}),Vt.forEach(yt=>yt.c(fe,qe)),Zt.forEach(yt=>yt.c(fe,qe)),Zt.length=0,Ue=!0,H&&(k=!0),H=!0})(),Be&&Be.animationFinish()))},_t=(fe=!0)=>{Xt();const Ke=(ye=>(ye.forEach(De=>{for(const ue in De)if(De.hasOwnProperty(ue)){const me=De[ue];if("easing"===ue)De["animation-timing-function"]=me,delete De[ue];else{const ze=U(ue);ze!==ue&&(De[ze]=me,delete De[ue])}}}),ye))(Fe);Nt.forEach(st=>{if(Ke.length>0){const mt=((ye=[])=>ye.map(De=>{const ue=De.offset,me=[];for(const ze in De)De.hasOwnProperty(ze)&&"offset"!==ze&&me.push(`${ze}: ${De[ze]};`);return`${100*ue}% { ${me.join(" ")} }`}).join(" "))(Ke);it=void 0!==ye?ye:(ye=>{let De=ee.indexOf(ye);return De<0&&(De=ee.push(ye)-1),`ion-animation-${De}`})(mt);const yt=((ye,De,ue)=>{var me;const ze=(ye=>{const De=void 0!==ye.getRootNode?ye.getRootNode():ye;return De.head||De})(ue),Pe=V(ue),je=ze.querySelector("#"+ye);if(je)return je;const Fe=(null!==(me=ue.ownerDocument)&&void 0!==me?me:document).createElement("style");return Fe.id=ye,Fe.textContent=`@${Pe}keyframes ${ye} { ${De} } @${Pe}keyframes ${ye}-alt { ${De} }`,ze.appendChild(Fe),Fe})(it,mt,st);Bn.push(yt),P(st,"animation-duration",`${Kn()}ms`),P(st,"animation-timing-function",Zn()),P(st,"animation-delay",`${zn()}ms`),P(st,"animation-fill-mode",Un()),P(st,"animation-direction",nr());const kt=On()===1/0?"infinite":On().toString();P(st,"animation-iteration-count",kt),P(st,"animation-play-state","paused"),fe&&P(st,"animation-name",`${yt.id}-alt`),(0,r.r)(()=>{P(st,"animation-name",yt.id||null)})}})},Rt=(fe=!0)=>{(()=>{tt.forEach(mt=>mt()),xe.forEach(mt=>mt());const fe=Te,Ke=J,st=we;Nt.forEach(mt=>{const yt=mt.classList;fe.forEach(kt=>yt.add(kt)),Ke.forEach(kt=>yt.remove(kt));for(const kt in st)st.hasOwnProperty(kt)&&P(mt,kt,st[kt])})})(),Fe.length>0&&(at?(Nt.forEach(fe=>{const Ke=fe.animate(Fe,{id:Mt,delay:zn(),duration:Kn(),easing:Zn(),iterations:On(),fill:Un(),direction:nr()});Ke.pause(),Se.push(Ke)}),Se.length>0&&(Se[0].onfinish=()=>{dt()})):_t(fe)),We=!0},xt=fe=>{if(fe=Math.min(Math.max(fe,0),.9999),at)Se.forEach(Ke=>{Ke.currentTime=Ke.effect.getComputedTiming().delay+Kn()*fe,Ke.pause()});else{const Ke=`-${Kn()*fe}ms`;Nt.forEach(st=>{Fe.length>0&&(P(st,"animation-delay",Ke),P(st,"animation-play-state","paused"))})}},en=fe=>{Se.forEach(Ke=>{Ke.effect.updateTiming({delay:zn(),duration:Kn(),easing:Zn(),iterations:On(),fill:Un(),direction:nr()})}),void 0!==fe&&xt(fe)},jt=(fe=!0,Ke)=>{(0,r.r)(()=>{Nt.forEach(st=>{P(st,"animation-name",it||null),P(st,"animation-duration",`${Kn()}ms`),P(st,"animation-timing-function",Zn()),P(st,"animation-delay",void 0!==Ke?`-${Ke*Kn()}ms`:`${zn()}ms`),P(st,"animation-fill-mode",Un()||null),P(st,"animation-direction",nr()||null);const mt=On()===1/0?"infinite":On().toString();P(st,"animation-iteration-count",mt),fe&&P(st,"animation-name",`${it}-alt`),(0,r.r)(()=>{P(st,"animation-name",it||null)})})})},tn=(fe=!1,Ke=!0,st)=>(fe&&wn.forEach(mt=>{mt.update(fe,Ke,st)}),at?en(st):jt(Ke,st),qe),Tn=()=>{We&&(at?Se.forEach(fe=>{fe.pause()}):Nt.forEach(fe=>{P(fe,"animation-play-state","paused")}),lt=!0)},rr=()=>{he=void 0,dt()},Ln=()=>{he&&clearTimeout(he)},L=fe=>new Promise(Ke=>{(null==fe?void 0:fe.sync)&&(le=!0,St(()=>le=!1,{oneTimeCallback:!0})),We||Rt(),k&&(at?(xt(0),en()):jt(),k=!1),Ue&&(pe=wn.length+1,Ue=!1),St(()=>Ke(),{oneTimeCallback:!0}),wn.forEach(st=>{st.play()}),at?(Se.forEach(fe=>{fe.play()}),(0===Fe.length||0===Nt.length)&&dt()):(()=>{if(Ln(),(0,r.r)(()=>{Nt.forEach(fe=>{Fe.length>0&&P(fe,"animation-play-state","running")})}),0===Fe.length||0===Nt.length)dt();else{const fe=zn()||0,Ke=Kn()||0,st=On()||1;isFinite(st)&&(he=setTimeout(rr,fe+Ke*st+100)),((ye,De)=>{let ue;const me={passive:!0},Pe=je=>{ye===je.target&&(ue&&ue(),Ln(),(0,r.r)(()=>{Nt.forEach(fe=>{F(fe,"animation-duration"),F(fe,"animation-delay"),F(fe,"animation-play-state")}),(0,r.r)(dt)}))};ye&&(ye.addEventListener("webkitAnimationEnd",Pe,me),ye.addEventListener("animationend",Pe,me),ue=()=>{ye.removeEventListener("webkitAnimationEnd",Pe,me),ye.removeEventListener("animationend",Pe,me)})})(Nt[0])}})(),lt=!1}),et=(fe,Ke)=>{const st=Fe[0];return void 0===st||void 0!==st.offset&&0!==st.offset?Fe=[{offset:0,[fe]:Ke},...Fe]:st[fe]=Ke,qe};return qe={parentAnimation:Be,elements:Nt,childAnimations:wn,id:Mt,animationFinish:dt,from:et,to:(fe,Ke)=>{const st=Fe[Fe.length-1];return void 0===st||void 0!==st.offset&&1!==st.offset?Fe=[...Fe,{offset:1,[fe]:Ke}]:st[fe]=Ke,qe},fromTo:(fe,Ke,st)=>et(fe,Ke).to(fe,st),parent:fe=>(Be=fe,qe),play:L,pause:()=>(wn.forEach(fe=>{fe.pause()}),Tn(),qe),stop:()=>{wn.forEach(fe=>{fe.stop()}),We&&(Ut(),We=!1),ve=!1,le=!1,Ue=!0,Ae=void 0,be=void 0,Re=void 0,pe=0,k=!1,H=!0,lt=!1},destroy:fe=>(wn.forEach(Ke=>{Ke.destroy(fe)}),(fe=>{Ut(),fe&&Xt()})(fe),Nt.length=0,wn.length=0,Fe.length=0,Vt.length=0,Zt.length=0,We=!1,Ue=!0,qe),keyframes:fe=>{const Ke=Fe!==fe;return Fe=fe,Ke&&(fe=>{at?ke().forEach(Ke=>{if(Ke.effect.setKeyframes)Ke.effect.setKeyframes(fe);else{const st=new KeyframeEffect(Ke.effect.target,fe,Ke.effect.getTiming());Ke.effect=st}}):_t()})(Fe),qe},addAnimation:fe=>{if(null!=fe)if(Array.isArray(fe))for(const Ke of fe)Ke.parent(qe),wn.push(Ke);else fe.parent(qe),wn.push(fe);return qe},addElement:fe=>{if(null!=fe)if(1===fe.nodeType)Nt.push(fe);else if(fe.length>=0)for(let Ke=0;Ke<fe.length;Ke++)Nt.push(fe[Ke]);else console.error("Invalid addElement value");return qe},update:tn,fill:fe=>(Pe=fe,tn(!0),qe),direction:fe=>(je=fe,tn(!0),qe),iterations:fe=>(ze=fe,tn(!0),qe),duration:fe=>(!at&&0===fe&&(fe=1),ue=fe,tn(!0),qe),easing:fe=>(me=fe,tn(!0),qe),delay:fe=>(De=fe,tn(!0),qe),getWebAnimations:ke,getKeyframes:()=>Fe,getFill:Un,getDirection:nr,getDelay:zn,getIterations:On,getEasing:Zn,getDuration:Kn,afterAddRead:fe=>(O.push(fe),qe),afterAddWrite:fe=>(se.push(fe),qe),afterClearStyles:(fe=[])=>{for(const Ke of fe)N[Ke]="";return qe},afterStyles:(fe={})=>(N=fe,qe),afterRemoveClass:fe=>(z=Ne(z,fe),qe),afterAddClass:fe=>(re=Ne(re,fe),qe),beforeAddRead:fe=>(tt.push(fe),qe),beforeAddWrite:fe=>(xe.push(fe),qe),beforeClearStyles:(fe=[])=>{for(const Ke of fe)we[Ke]="";return qe},beforeStyles:(fe={})=>(we=fe,qe),beforeRemoveClass:fe=>(J=Ne(J,fe),qe),beforeAddClass:fe=>(Te=Ne(Te,fe),qe),onFinish:St,isRunning:()=>0!==pe&&!lt,progressStart:(fe=!1,Ke)=>(wn.forEach(st=>{st.progressStart(fe,Ke)}),Tn(),ve=fe,We||Rt(),tn(!1,!0,Ke),qe),progressStep:fe=>(wn.forEach(Ke=>{Ke.progressStep(fe)}),xt(fe),qe),progressEnd:(fe,Ke,st)=>(ve=!1,wn.forEach(mt=>{mt.progressEnd(fe,Ke,st)}),void 0!==st&&(be=st),k=!1,H=!0,0===fe?(Ae="reverse"===nr()?"normal":"reverse","reverse"===Ae&&(H=!1),at?(tn(),xt(1-Ke)):(Re=(1-Ke)*Kn()*-1,tn(!1,!1))):1===fe&&(at?(tn(),xt(Ke)):(Re=Ke*Kn()*-1,tn(!1,!1))),void 0!==fe&&(St(()=>{be=void 0,Ae=void 0,Re=void 0},{oneTimeCallback:!0}),Be||L()),qe)}}},5820:(Ct,ae,p)=>{"use strict";p.d(ae,{E:()=>Q,I:()=>P,a:()=>r,s:()=>F});const r=ee=>{try{if(ee instanceof P)return ee.value;if(!j()||"string"!=typeof ee||""===ee)return ee;if(ee.includes("onload="))return"";const ne=document.createDocumentFragment(),Y=document.createElement("div");ne.appendChild(Y),Y.innerHTML=ee,V.forEach(ye=>{const De=ne.querySelectorAll(ye);for(let ue=De.length-1;ue>=0;ue--){const me=De[ue];me.parentNode?me.parentNode.removeChild(me):ne.removeChild(me);const ze=D(me);for(let Pe=0;Pe<ze.length;Pe++)m(ze[Pe])}});const ce=D(ne);for(let ye=0;ye<ce.length;ye++)m(ce[ye]);const Ne=document.createElement("div");Ne.appendChild(ne);const $e=Ne.querySelector("div");return null!==$e?$e.innerHTML:Ne.innerHTML}catch(ne){return console.error(ne),""}},m=ee=>{if(ee.nodeType&&1!==ee.nodeType)return;if("undefined"!=typeof NamedNodeMap&&!(ee.attributes instanceof NamedNodeMap))return void ee.remove();for(let Y=ee.attributes.length-1;Y>=0;Y--){const ce=ee.attributes.item(Y),Ne=ce.name;if(!U.includes(Ne.toLowerCase())){ee.removeAttribute(Ne);continue}const $e=ce.value,ye=ee[Ne];(null!=$e&&$e.toLowerCase().includes("javascript:")||null!=ye&&ye.toLowerCase().includes("javascript:"))&&ee.removeAttribute(Ne)}const ne=D(ee);for(let Y=0;Y<ne.length;Y++)m(ne[Y])},D=ee=>null!=ee.children?ee.children:ee.childNodes,j=()=>{var ee;const ne=window,Y=null===(ee=null==ne?void 0:ne.Ionic)||void 0===ee?void 0:ee.config;return!Y||(Y.get?Y.get("sanitizerEnabled",!0):!0===Y.sanitizerEnabled||void 0===Y.sanitizerEnabled)},U=["class","id","href","src","name","slot"],V=["script","style","iframe","meta","link","object","embed"];class P{constructor(ne){this.value=ne}}const F=ee=>{const ne=window,Y=ne.Ionic;if(!Y||!Y.config||"Object"===Y.config.constructor.name)return ne.Ionic=ne.Ionic||{},ne.Ionic.config=Object.assign(Object.assign({},ne.Ionic.config),ee),ne.Ionic.config},Q=!0},4349:(Ct,ae,p)=>{"use strict";p.d(ae,{G:()=>U});class m{constructor(P,F,q,Q,ee){this.id=F,this.name=q,this.disableScroll=ee,this.priority=1e6*Q+F,this.ctrl=P}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const P=this.ctrl.capture(this.name,this.id,this.priority);return P&&this.disableScroll&&this.ctrl.disableScroll(this.id),P}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class D{constructor(P,F,q,Q){this.id=F,this.disable=q,this.disableScroll=Q,this.ctrl=P}block(){if(this.ctrl){if(this.disable)for(const P of this.disable)this.ctrl.disableGesture(P,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const P of this.disable)this.ctrl.enableGesture(P,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const j="backdrop-no-scroll",U=new class r{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(P){var F;return new m(this,this.newID(),P.name,null!==(F=P.priority)&&void 0!==F?F:0,!!P.disableScroll)}createBlocker(P={}){return new D(this,this.newID(),P.disable,!!P.disableScroll)}start(P,F,q){return this.canStart(P)?(this.requestedStart.set(F,q),!0):(this.requestedStart.delete(F),!1)}capture(P,F,q){if(!this.start(P,F,q))return!1;const Q=this.requestedStart;let ee=-1e4;if(Q.forEach(ne=>{ee=Math.max(ee,ne)}),ee===q){this.capturedId=F,Q.clear();const ne=new CustomEvent("ionGestureCaptured",{detail:{gestureName:P}});return document.dispatchEvent(ne),!0}return Q.delete(F),!1}release(P){this.requestedStart.delete(P),this.capturedId===P&&(this.capturedId=void 0)}disableGesture(P,F){let q=this.disabledGestures.get(P);void 0===q&&(q=new Set,this.disabledGestures.set(P,q)),q.add(F)}enableGesture(P,F){const q=this.disabledGestures.get(P);void 0!==q&&q.delete(F)}disableScroll(P){this.disabledScroll.add(P),1===this.disabledScroll.size&&document.body.classList.add(j)}enableScroll(P){this.disabledScroll.delete(P),0===this.disabledScroll.size&&document.body.classList.remove(j)}canStart(P){return!(void 0!==this.capturedId||this.isDisabled(P))}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(P){const F=this.disabledGestures.get(P);return!!(F&&F.size>0)}newID(){return this.gestureId++,this.gestureId}}},7593:(Ct,ae,p)=>{"use strict";p.r(ae),p.d(ae,{MENU_BACK_BUTTON_PRIORITY:()=>U,OVERLAY_BACK_BUTTON_PRIORITY:()=>j,blockHardwareBackButton:()=>m,startHardwareBackButton:()=>D});var r=p(5861);const m=()=>{document.addEventListener("backbutton",()=>{})},D=()=>{const V=document;let P=!1;V.addEventListener("backbutton",()=>{if(P)return;let F=0,q=[];const Q=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(Y,ce){q.push({priority:Y,handler:ce,id:F++})}}});V.dispatchEvent(Q);const ee=function(){var Y=(0,r.Z)(function*(ce){try{if(null==ce?void 0:ce.handler){const Ne=ce.handler(ne);null!=Ne&&(yield Ne)}}catch(Ne){console.error(Ne)}});return function(Ne){return Y.apply(this,arguments)}}(),ne=()=>{if(q.length>0){let Y={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};q.forEach(ce=>{ce.priority>=Y.priority&&(Y=ce)}),P=!0,q=q.filter(ce=>ce.id!==Y.id),ee(Y).then(()=>P=!1)}};ne()})},j=100,U=99},5730:(Ct,ae,p)=>{"use strict";p.d(ae,{a:()=>P,b:()=>F,c:()=>D,d:()=>ce,e:()=>Ne,f:()=>Y,g:()=>q,h:()=>ze,i:()=>V,j:()=>j,k:()=>ne,l:()=>$e,m:()=>ee,n:()=>ye,o:()=>me,p:()=>ue,q:()=>Pe,r:()=>Q,s:()=>je,t:()=>r,u:()=>De});const r=(Fe,Te=0)=>new Promise(J=>{m(Fe,Te,J)}),m=(Fe,Te=0,J)=>{let We,Be;const we={passive:!0},z=()=>{We&&We()},N=pe=>{(void 0===pe||Fe===pe.target)&&(z(),J(pe))};return Fe&&(Fe.addEventListener("webkitTransitionEnd",N,we),Fe.addEventListener("transitionend",N,we),Be=setTimeout(N,Te+500),We=()=>{Be&&(clearTimeout(Be),Be=void 0),Fe.removeEventListener("webkitTransitionEnd",N,we),Fe.removeEventListener("transitionend",N,we)}),z},D=(Fe,Te)=>{Fe.componentOnReady?Fe.componentOnReady().then(J=>Te(J)):Q(()=>Te(Fe))},j=(Fe,Te=[])=>{const J={};return Te.forEach(We=>{Fe.hasAttribute(We)&&(null!==Fe.getAttribute(We)&&(J[We]=Fe.getAttribute(We)),Fe.removeAttribute(We))}),J},U=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],V=(Fe,Te)=>{let J=U;return Te&&Te.length>0&&(J=J.filter(We=>!Te.includes(We))),j(Fe,J)},P=(Fe,Te,J,We)=>{var Be;if("undefined"!=typeof window){const we=window,re=null===(Be=null==we?void 0:we.Ionic)||void 0===Be?void 0:Be.config;if(re){const z=re.get("_ael");if(z)return z(Fe,Te,J,We);if(re._ael)return re._ael(Fe,Te,J,We)}}return Fe.addEventListener(Te,J,We)},F=(Fe,Te,J,We)=>{var Be;if("undefined"!=typeof window){const we=window,re=null===(Be=null==we?void 0:we.Ionic)||void 0===Be?void 0:Be.config;if(re){const z=re.get("_rel");if(z)return z(Fe,Te,J,We);if(re._rel)return re._rel(Fe,Te,J,We)}}return Fe.removeEventListener(Te,J,We)},q=(Fe,Te=Fe)=>Fe.shadowRoot||Te,Q=Fe=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Fe):"function"==typeof requestAnimationFrame?requestAnimationFrame(Fe):setTimeout(Fe),ee=Fe=>!!Fe.shadowRoot&&!!Fe.attachShadow,ne=Fe=>{const Te=Fe.closest("ion-item");return Te?Te.querySelector("ion-label"):null},Y=Fe=>{if(Fe.focus(),Fe.classList.contains("ion-focusable")){const Te=Fe.closest("ion-app");Te&&Te.setFocus([Fe])}},ce=(Fe,Te)=>{let J;const We=Fe.getAttribute("aria-labelledby"),Be=Fe.id;let we=null!==We&&""!==We.trim()?We:Te+"-lbl",re=null!==We&&""!==We.trim()?document.getElementById(We):ne(Fe);return re?(null===We&&(re.id=we),J=re.textContent,re.setAttribute("aria-hidden","true")):""!==Be.trim()&&(re=document.querySelector(`label[for="${Be}"]`),re&&(""!==re.id?we=re.id:re.id=we=`${Be}-lbl`,J=re.textContent)),{label:re,labelId:we,labelText:J}},Ne=(Fe,Te,J,We,Be)=>{if(Fe||ee(Te)){let we=Te.querySelector("input.aux-input");we||(we=Te.ownerDocument.createElement("input"),we.type="hidden",we.classList.add("aux-input"),Te.appendChild(we)),we.disabled=Be,we.name=J,we.value=We||""}},$e=(Fe,Te,J)=>Math.max(Fe,Math.min(Te,J)),ye=(Fe,Te)=>{if(!Fe){const J="ASSERT: "+Te;throw console.error(J),new Error(J)}},De=Fe=>Fe.timeStamp||Date.now(),ue=Fe=>{if(Fe){const Te=Fe.changedTouches;if(Te&&Te.length>0){const J=Te[0];return{x:J.clientX,y:J.clientY}}if(void 0!==Fe.pageX)return{x:Fe.pageX,y:Fe.pageY}}return{x:0,y:0}},me=Fe=>{const Te="rtl"===document.dir;switch(Fe){case"start":return Te;case"end":return!Te;default:throw new Error(`"${Fe}" is not a valid value for [side]. Use "start" or "end" instead.`)}},ze=(Fe,Te)=>{const J=Fe._original||Fe;return{_original:Fe,emit:Pe(J.emit.bind(J),Te)}},Pe=(Fe,Te=0)=>{let J;return(...We)=>{clearTimeout(J),J=setTimeout(Fe,Te,...We)}},je=(Fe,Te)=>{if(null!=Fe||(Fe={}),null!=Te||(Te={}),Fe===Te)return!0;const J=Object.keys(Fe);if(J.length!==Object.keys(Te).length)return!1;for(const We of J)if(!(We in Te)||Fe[We]!==Te[We])return!1;return!0}},1843:(Ct,ae,p)=>{"use strict";p.d(ae,{L:()=>j,a:()=>U,b:()=>V,c:()=>P,d:()=>F,e:()=>Te,g:()=>Be,l:()=>je,s:()=>J,t:()=>ee});var r=p(5861),m=p(1308),D=p(5730);const j="ionViewWillEnter",U="ionViewDidEnter",V="ionViewWillLeave",P="ionViewDidLeave",F="ionViewWillUnload",ee=we=>new Promise((re,z)=>{(0,m.c)(()=>{ne(we),Y(we).then(N=>{N.animation&&N.animation.destroy(),ce(we),re(N)},N=>{ce(we),z(N)})})}),ne=we=>{const re=we.enteringEl,z=we.leavingEl;We(re,z,we.direction),we.showGoBack?re.classList.add("can-go-back"):re.classList.remove("can-go-back"),J(re,!1),re.style.setProperty("pointer-events","none"),z&&(J(z,!1),z.style.setProperty("pointer-events","none"))},Y=function(){var we=(0,r.Z)(function*(re){const z=yield Ne(re);return z&&m.B.isBrowser?$e(z,re):ye(re)});return function(z){return we.apply(this,arguments)}}(),ce=we=>{const re=we.enteringEl,z=we.leavingEl;re.classList.remove("ion-page-invisible"),re.style.removeProperty("pointer-events"),void 0!==z&&(z.classList.remove("ion-page-invisible"),z.style.removeProperty("pointer-events"))},Ne=function(){var we=(0,r.Z)(function*(re){return re.leavingEl&&re.animated&&0!==re.duration?re.animationBuilder?re.animationBuilder:"ios"===re.mode?(yield Promise.resolve().then(p.bind(p,6439))).iosTransitionAnimation:(yield Promise.resolve().then(p.bind(p,7838))).mdTransitionAnimation:void 0});return function(z){return we.apply(this,arguments)}}(),$e=function(){var we=(0,r.Z)(function*(re,z){yield De(z,!0);const N=re(z.baseEl,z);ze(z.enteringEl,z.leavingEl);const pe=yield me(N,z);return z.progressCallback&&z.progressCallback(void 0),pe&&Pe(z.enteringEl,z.leavingEl),{hasCompleted:pe,animation:N}});return function(z,N){return we.apply(this,arguments)}}(),ye=function(){var we=(0,r.Z)(function*(re){const z=re.enteringEl,N=re.leavingEl;return yield De(re,!1),ze(z,N),Pe(z,N),{hasCompleted:!0}});return function(z){return we.apply(this,arguments)}}(),De=function(){var we=(0,r.Z)(function*(re,z){const pe=(void 0!==re.deepWait?re.deepWait:z)?[Te(re.enteringEl),Te(re.leavingEl)]:[Fe(re.enteringEl),Fe(re.leavingEl)];yield Promise.all(pe),yield ue(re.viewIsReady,re.enteringEl)});return function(z,N){return we.apply(this,arguments)}}(),ue=function(){var we=(0,r.Z)(function*(re,z){re&&(yield re(z))});return function(z,N){return we.apply(this,arguments)}}(),me=(we,re)=>{const z=re.progressCallback,N=new Promise(pe=>{we.onFinish(ve=>pe(1===ve))});return z?(we.progressStart(!0),z(we)):we.play(),N},ze=(we,re)=>{je(re,V),je(we,j)},Pe=(we,re)=>{je(we,U),je(re,P)},je=(we,re)=>{if(we){const z=new CustomEvent(re,{bubbles:!1,cancelable:!1});we.dispatchEvent(z)}},Fe=we=>we?new Promise(re=>(0,D.c)(we,re)):Promise.resolve(),Te=function(){var we=(0,r.Z)(function*(re){const z=re;if(z){if(null!=z.componentOnReady){if(null!=(yield z.componentOnReady()))return}else if(null!=z.__registerHost)return void(yield new Promise(pe=>(0,D.r)(pe)));yield Promise.all(Array.from(z.children).map(Te))}});return function(z){return we.apply(this,arguments)}}(),J=(we,re)=>{re?(we.setAttribute("aria-hidden","true"),we.classList.add("ion-page-hidden")):(we.hidden=!1,we.removeAttribute("aria-hidden"),we.classList.remove("ion-page-hidden"))},We=(we,re,z)=>{void 0!==we&&(we.style.zIndex="back"===z?"99":"101"),void 0!==re&&(re.style.zIndex="100")},Be=we=>we.classList.contains("ion-page")?we:we.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||we},6369:(Ct,ae,p)=>{"use strict";p.d(ae,{m:()=>ee});var r=p(5861),m=p(7593),D=p(5730),j=p(5179),U=p(181);const V=ne=>(0,U.c)().duration(ne?400:300),P=ne=>{let Y,ce;const Ne=ne.width+8,$e=(0,U.c)(),ye=(0,U.c)();ne.isEndSide?(Y=Ne+"px",ce="0px"):(Y=-Ne+"px",ce="0px"),$e.addElement(ne.menuInnerEl).fromTo("transform",`translateX(${Y})`,`translateX(${ce})`);const ue="ios"===(0,j.b)(ne),me=ue?.2:.25;return ye.addElement(ne.backdropEl).fromTo("opacity",.01,me),V(ue).addAnimation([$e,ye])},F=ne=>{let Y,ce;const Ne=(0,j.b)(ne),$e=ne.width;ne.isEndSide?(Y=-$e+"px",ce=$e+"px"):(Y=$e+"px",ce=-$e+"px");const ye=(0,U.c)().addElement(ne.menuInnerEl).fromTo("transform",`translateX(${ce})`,"translateX(0px)"),De=(0,U.c)().addElement(ne.contentEl).fromTo("transform","translateX(0px)",`translateX(${Y})`),ue=(0,U.c)().addElement(ne.backdropEl).fromTo("opacity",.01,.32);return V("ios"===Ne).addAnimation([ye,De,ue])},q=ne=>{const Y=(0,j.b)(ne),ce=ne.width*(ne.isEndSide?-1:1)+"px",Ne=(0,U.c)().addElement(ne.contentEl).fromTo("transform","translateX(0px)",`translateX(${ce})`);return V("ios"===Y).addAnimation(Ne)},ee=(()=>{const ne=new Map,Y=[],ce=function(){var he=(0,r.Z)(function*(Ae){const be=yield ze(Ae);return!!be&&be.open()});return function(be){return he.apply(this,arguments)}}(),Ne=function(){var he=(0,r.Z)(function*(Ae){const be=yield void 0!==Ae?ze(Ae):Pe();return void 0!==be&&be.close()});return function(be){return he.apply(this,arguments)}}(),$e=function(){var he=(0,r.Z)(function*(Ae){const be=yield ze(Ae);return!!be&&be.toggle()});return function(be){return he.apply(this,arguments)}}(),ye=function(){var he=(0,r.Z)(function*(Ae,be){const Re=yield ze(be);return Re&&(Re.disabled=!Ae),Re});return function(be,Re){return he.apply(this,arguments)}}(),De=function(){var he=(0,r.Z)(function*(Ae,be){const Re=yield ze(be);return Re&&(Re.swipeGesture=Ae),Re});return function(be,Re){return he.apply(this,arguments)}}(),ue=function(){var he=(0,r.Z)(function*(Ae){if(null!=Ae){const be=yield ze(Ae);return void 0!==be&&be.isOpen()}return void 0!==(yield Pe())});return function(be){return he.apply(this,arguments)}}(),me=function(){var he=(0,r.Z)(function*(Ae){const be=yield ze(Ae);return!!be&&!be.disabled});return function(be){return he.apply(this,arguments)}}(),ze=function(){var he=(0,r.Z)(function*(Ae){return yield le(),"start"===Ae||"end"===Ae?ve(H=>H.side===Ae&&!H.disabled)||ve(H=>H.side===Ae):null!=Ae?ve(Re=>Re.menuId===Ae):ve(Re=>!Re.disabled)||(Y.length>0?Y[0].el:void 0)});return function(be){return he.apply(this,arguments)}}(),Pe=function(){var he=(0,r.Z)(function*(){return yield le(),z()});return function(){return he.apply(this,arguments)}}(),je=function(){var he=(0,r.Z)(function*(){return yield le(),N()});return function(){return he.apply(this,arguments)}}(),Fe=function(){var he=(0,r.Z)(function*(){return yield le(),pe()});return function(){return he.apply(this,arguments)}}(),Te=(he,Ae)=>{ne.set(he,Ae)},Be=he=>{const Ae=he.side;Y.filter(be=>be.side===Ae&&be!==he).forEach(be=>be.disabled=!0)},we=function(){var he=(0,r.Z)(function*(Ae,be,Re){if(pe())return!1;if(be){const H=yield Pe();H&&Ae.el!==H&&(yield H.setOpen(!1,!1))}return Ae._setOpen(be,Re)});return function(be,Re,H){return he.apply(this,arguments)}}(),z=()=>ve(he=>he._isOpen),N=()=>Y.map(he=>he.el),pe=()=>Y.some(he=>he.isAnimating),ve=he=>{const Ae=Y.find(he);if(void 0!==Ae)return Ae.el},le=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(he=>new Promise(Ae=>(0,D.c)(he,Ae))));return Te("reveal",q),Te("push",F),Te("overlay",P),"undefined"!=typeof document&&document.addEventListener("ionBackButton",he=>{const Ae=z();Ae&&he.detail.register(m.MENU_BACK_BUTTON_PRIORITY,()=>Ae.close())}),{registerAnimation:Te,get:ze,getMenus:je,getOpen:Pe,isEnabled:me,swipeGesture:De,isAnimating:Fe,isOpen:ue,enable:ye,toggle:$e,close:Ne,open:ce,_getOpenSync:z,_createAnimation:(he,Ae)=>{const be=ne.get(he);if(!be)throw new Error("animation not registered");return be(Ae)},_register:he=>{Y.indexOf(he)<0&&(he.disabled||Be(he),Y.push(he))},_unregister:he=>{const Ae=Y.indexOf(he);Ae>-1&&Y.splice(Ae,1)},_setOpen:we,_setActiveMenu:Be}})()},3457:(Ct,ae,p)=>{"use strict";p.d(ae,{w:()=>r});const r="undefined"!=typeof window?window:void 0},1898:(Ct,ae,p)=>{"use strict";p.r(ae),p.d(ae,{GESTURE_CONTROLLER:()=>r.G,createGesture:()=>q});var r=p(4349);const m=(Y,ce,Ne,$e)=>{const ye=D(Y)?{capture:!!$e.capture,passive:!!$e.passive}:!!$e.capture;let De,ue;return Y.__zone_symbol__addEventListener?(De="__zone_symbol__addEventListener",ue="__zone_symbol__removeEventListener"):(De="addEventListener",ue="removeEventListener"),Y[De](ce,Ne,ye),()=>{Y[ue](ce,Ne,ye)}},D=Y=>{if(void 0===j)try{const ce=Object.defineProperty({},"passive",{get:()=>{j=!0}});Y.addEventListener("optsTest",()=>{},ce)}catch(ce){j=!1}return!!j};let j;const P=Y=>Y instanceof Document?Y:Y.ownerDocument,q=Y=>{let ce=!1,Ne=!1,$e=!0,ye=!1;const De=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},Y),ue=De.canStart,me=De.onWillStart,ze=De.onStart,Pe=De.onEnd,je=De.notCaptured,Fe=De.onMove,Te=De.threshold,J=De.passive,We=De.blurOnStart,Be={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},we=((Y,ce,Ne)=>{const $e=Ne*(Math.PI/180),ye="x"===Y,De=Math.cos($e),ue=ce*ce;let me=0,ze=0,Pe=!1,je=0;return{start(Fe,Te){me=Fe,ze=Te,je=0,Pe=!0},detect(Fe,Te){if(!Pe)return!1;const J=Fe-me,We=Te-ze,Be=J*J+We*We;if(Be<ue)return!1;const we=Math.sqrt(Be),re=(ye?J:We)/we;return je=re>De?1:re<-De?-1:0,Pe=!1,!0},isGesture:()=>0!==je,getDirection:()=>je}})(De.direction,De.threshold,De.maxAngle),re=r.G.createGesture({name:Y.gestureName,priority:Y.gesturePriority,disableScroll:Y.disableScroll}),pe=()=>{!ce||(ye=!1,Fe&&Fe(Be))},ve=()=>!!re.capture()&&(ce=!0,$e=!1,Be.startX=Be.currentX,Be.startY=Be.currentY,Be.startTime=Be.currentTime,me?me(Be).then(he):he(),!0),he=()=>{We&&(()=>{if("undefined"!=typeof document){const k=document.activeElement;(null==k?void 0:k.blur)&&k.blur()}})(),ze&&ze(Be),$e=!0},Ae=()=>{ce=!1,Ne=!1,ye=!1,$e=!0,re.release()},be=k=>{const Ue=ce,it=$e;if(Ae(),it){if(Q(Be,k),Ue)return void(Pe&&Pe(Be));je&&je(Be)}},Re=((Y,ce,Ne,$e,ye)=>{let De,ue,me,ze,Pe,je,Fe,Te=0;const J=le=>{Te=Date.now()+2e3,ce(le)&&(!ue&&Ne&&(ue=m(Y,"touchmove",Ne,ye)),me||(me=m(le.target,"touchend",Be,ye)),ze||(ze=m(le.target,"touchcancel",Be,ye)))},We=le=>{Te>Date.now()||!ce(le)||(!je&&Ne&&(je=m(P(Y),"mousemove",Ne,ye)),Fe||(Fe=m(P(Y),"mouseup",we,ye)))},Be=le=>{re(),$e&&$e(le)},we=le=>{z(),$e&&$e(le)},re=()=>{ue&&ue(),me&&me(),ze&&ze(),ue=me=ze=void 0},z=()=>{je&&je(),Fe&&Fe(),je=Fe=void 0},N=()=>{re(),z()},pe=(le=!0)=>{le?(De||(De=m(Y,"touchstart",J,ye)),Pe||(Pe=m(Y,"mousedown",We,ye))):(De&&De(),Pe&&Pe(),De=Pe=void 0,N())};return{enable:pe,stop:N,destroy:()=>{pe(!1),$e=Ne=ce=void 0}}})(De.el,k=>{const Ue=ne(k);return!(Ne||!$e||(ee(k,Be),Be.startX=Be.currentX,Be.startY=Be.currentY,Be.startTime=Be.currentTime=Ue,Be.velocityX=Be.velocityY=Be.deltaX=Be.deltaY=0,Be.event=k,ue&&!1===ue(Be))||(re.release(),!re.start()))&&(Ne=!0,0===Te?ve():(we.start(Be.startX,Be.startY),!0))},k=>{ce?!ye&&$e&&(ye=!0,Q(Be,k),requestAnimationFrame(pe)):(Q(Be,k),we.detect(Be.currentX,Be.currentY)&&(!we.isGesture()||!ve())&&H())},be,{capture:!1,passive:J}),H=()=>{Ae(),Re.stop(),je&&je(Be)};return{enable(k=!0){k||(ce&&be(void 0),Ae()),Re.enable(k)},destroy(){re.destroy(),Re.destroy()}}},Q=(Y,ce)=>{if(!ce)return;const Ne=Y.currentX,$e=Y.currentY,ye=Y.currentTime;ee(ce,Y);const De=Y.currentX,ue=Y.currentY,ze=(Y.currentTime=ne(ce))-ye;if(ze>0&&ze<100){const je=(ue-$e)/ze;Y.velocityX=(De-Ne)/ze*.7+.3*Y.velocityX,Y.velocityY=.7*je+.3*Y.velocityY}Y.deltaX=De-Y.startX,Y.deltaY=ue-Y.startY,Y.event=ce},ee=(Y,ce)=>{let Ne=0,$e=0;if(Y){const ye=Y.changedTouches;if(ye&&ye.length>0){const De=ye[0];Ne=De.clientX,$e=De.clientY}else void 0!==Y.pageX&&(Ne=Y.pageX,$e=Y.pageY)}ce.currentX=Ne,ce.currentY=$e},ne=Y=>Y.timeStamp||Date.now()},1308:(Ct,ae,p)=>{"use strict";p.d(ae,{B:()=>cr,H:()=>Nt,a:()=>H,b:()=>Ie,c:()=>ir,e:()=>yn,f:()=>Dn,g:()=>k,h:()=>Vt,i:()=>In,j:()=>nr,k:()=>Ve,p:()=>$e,r:()=>Gt,s:()=>ce});var r=p(5861);let D,j,U,V=!1,P=!1,F=!1,q=!1,Q=!1;const ee="undefined"!=typeof window?window:{},ne=ee.document||{head:{}},Y={$flags$:0,$resourcesUrl$:"",jmp:L=>L(),raf:L=>requestAnimationFrame(L),ael:(L,Ce,et,rt)=>L.addEventListener(Ce,et,rt),rel:(L,Ce,et,rt)=>L.removeEventListener(Ce,et,rt),ce:(L,Ce)=>new CustomEvent(L,Ce)},ce=L=>{Object.assign(Y,L)},$e=L=>Promise.resolve(L),ye=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(L){}return!1})(),De=(L,Ce,et,rt)=>{et&&et.map(([pt,fe,Ke])=>{const st=me(L,pt),mt=ue(Ce,Ke),yt=ze(pt);Y.ael(st,fe,mt,yt),(Ce.$rmListeners$=Ce.$rmListeners$||[]).push(()=>Y.rel(st,fe,mt,yt))})},ue=(L,Ce)=>et=>{try{256&L.$flags$?L.$lazyInstance$[Ce](et):(L.$queuedListeners$=L.$queuedListeners$||[]).push([Ce,et])}catch(rt){en(rt)}},me=(L,Ce)=>4&Ce?ne:8&Ce?ee:16&Ce?ne.body:L,ze=L=>0!=(2&L),J="s-id",We="sty-id",re="http://www.w3.org/1999/xlink",pe=new WeakMap,ve=(L,Ce,et)=>{let rt=fn.get(L);ye&&et?(rt=rt||new CSSStyleSheet,"string"==typeof rt?rt=Ce:rt.replaceSync(Ce)):rt=Ce,fn.set(L,rt)},le=(L,Ce,et,rt)=>{let pt=Ae(Ce,et);const fe=fn.get(pt);if(L=11===L.nodeType?L:ne,fe)if("string"==typeof fe){let st,Ke=pe.get(L=L.head||L);Ke||pe.set(L,Ke=new Set),Ke.has(pt)||(L.host&&(st=L.querySelector(`[${We}="${pt}"]`))?st.innerHTML=fe:(st=ne.createElement("style"),st.innerHTML=fe,L.insertBefore(st,L.querySelector("link"))),Ke&&Ke.add(pt))}else L.adoptedStyleSheets.includes(fe)||(L.adoptedStyleSheets=[...L.adoptedStyleSheets,fe]);return pt},Ae=(L,Ce)=>"sc-"+(Ce&&32&L.$flags$?L.$tagName$+"-"+Ce:L.$tagName$),be=L=>L.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),H=L=>Lt.push(L),k=L=>_t(L).$modeName$,Ue={},Mt=L=>"object"==(L=typeof L)||"function"===L,Vt=(L,Ce,...et)=>{let rt=null,pt=null,fe=null,Ke=!1,st=!1;const mt=[],yt=qt=>{for(let dn=0;dn<qt.length;dn++)rt=qt[dn],Array.isArray(rt)?yt(rt):null!=rt&&"boolean"!=typeof rt&&((Ke="function"!=typeof L&&!Mt(rt))&&(rt=String(rt)),Ke&&st?mt[mt.length-1].$text$+=rt:mt.push(Ke?Zt(null,rt):rt),st=Ke)};if(yt(et),Ce){Ce.key&&(pt=Ce.key),Ce.name&&(fe=Ce.name);{const qt=Ce.className||Ce.class;qt&&(Ce.class="object"!=typeof qt?qt:Object.keys(qt).filter(dn=>qt[dn]).join(" "))}}if("function"==typeof L)return L(null===Ce?{}:Ce,mt,Bn);const kt=Zt(L,null);return kt.$attrs$=Ce,mt.length>0&&(kt.$children$=mt),kt.$key$=pt,kt.$name$=fe,kt},Zt=(L,Ce)=>({$flags$:0,$tag$:L,$text$:Ce,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),Nt={},Bn={forEach:(L,Ce)=>L.map(tt).forEach(Ce),map:(L,Ce)=>L.map(tt).map(Ce).map(xe)},tt=L=>({vattrs:L.$attrs$,vchildren:L.$children$,vkey:L.$key$,vname:L.$name$,vtag:L.$tag$,vtext:L.$text$}),xe=L=>{if("function"==typeof L.vtag){const et=Object.assign({},L.vattrs);return L.vkey&&(et.key=L.vkey),L.vname&&(et.name=L.vname),Vt(L.vtag,et,...L.vchildren||[])}const Ce=Zt(L.vtag,L.vtext);return Ce.$attrs$=L.vattrs,Ce.$children$=L.vchildren,Ce.$key$=L.vkey,Ce.$name$=L.vname,Ce},O=(L,Ce,et,rt,pt,fe)=>{if(et!==rt){let Ke=xt(L,Ce),st=Ce.toLowerCase();if("class"===Ce){const mt=L.classList,yt=Se(et),kt=Se(rt);mt.remove(...yt.filter(qt=>qt&&!kt.includes(qt))),mt.add(...kt.filter(qt=>qt&&!yt.includes(qt)))}else if("style"===Ce){for(const mt in et)(!rt||null==rt[mt])&&(mt.includes("-")?L.style.removeProperty(mt):L.style[mt]="");for(const mt in rt)(!et||rt[mt]!==et[mt])&&(mt.includes("-")?L.style.setProperty(mt,rt[mt]):L.style[mt]=rt[mt])}else if("key"!==Ce)if("ref"===Ce)rt&&rt(L);else if(Ke||"o"!==Ce[0]||"n"!==Ce[1]){const mt=Mt(rt);if((Ke||mt&&null!==rt)&&!pt)try{if(L.tagName.includes("-"))L[Ce]=rt;else{const kt=null==rt?"":rt;"list"===Ce?Ke=!1:(null==et||L[Ce]!=kt)&&(L[Ce]=kt)}}catch(kt){}let yt=!1;st!==(st=st.replace(/^xlink\:?/,""))&&(Ce=st,yt=!0),null==rt||!1===rt?(!1!==rt||""===L.getAttribute(Ce))&&(yt?L.removeAttributeNS(re,Ce):L.removeAttribute(Ce)):(!Ke||4&fe||pt)&&!mt&&(rt=!0===rt?"":rt,yt?L.setAttributeNS(re,Ce,rt):L.setAttribute(Ce,rt))}else Ce="-"===Ce[2]?Ce.slice(3):xt(ee,st)?st.slice(2):st[2]+Ce.slice(3),et&&Y.rel(L,Ce,et,!1),rt&&Y.ael(L,Ce,rt,!1)}},se=/\s/,Se=L=>L?L.split(se):[],_e=(L,Ce,et,rt)=>{const pt=11===Ce.$elm$.nodeType&&Ce.$elm$.host?Ce.$elm$.host:Ce.$elm$,fe=L&&L.$attrs$||Ue,Ke=Ce.$attrs$||Ue;for(rt in fe)rt in Ke||O(pt,rt,fe[rt],void 0,et,Ce.$flags$);for(rt in Ke)O(pt,rt,fe[rt],Ke[rt],et,Ce.$flags$)},at=(L,Ce,et,rt)=>{const pt=Ce.$children$[et];let Ke,st,mt,fe=0;if(V||(F=!0,"slot"===pt.$tag$&&(D&&rt.classList.add(D+"-s"),pt.$flags$|=pt.$children$?2:1)),null!==pt.$text$)Ke=pt.$elm$=ne.createTextNode(pt.$text$);else if(1&pt.$flags$)Ke=pt.$elm$=ne.createTextNode("");else{if(q||(q="svg"===pt.$tag$),Ke=pt.$elm$=ne.createElementNS(q?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&pt.$flags$?"slot-fb":pt.$tag$),q&&"foreignObject"===pt.$tag$&&(q=!1),_e(null,pt,q),(L=>null!=L)(D)&&Ke["s-si"]!==D&&Ke.classList.add(Ke["s-si"]=D),pt.$children$)for(fe=0;fe<pt.$children$.length;++fe)st=at(L,pt,fe,Ke),st&&Ke.appendChild(st);"svg"===pt.$tag$?q=!1:"foreignObject"===Ke.tagName&&(q=!0)}return Ke["s-hn"]=U,3&pt.$flags$&&(Ke["s-sr"]=!0,Ke["s-cr"]=j,Ke["s-sn"]=pt.$name$||"",mt=L&&L.$children$&&L.$children$[et],mt&&mt.$tag$===pt.$tag$&&L.$elm$&&Je(L.$elm$,!1)),Ke},Je=(L,Ce)=>{Y.$flags$|=1;const et=L.childNodes;for(let rt=et.length-1;rt>=0;rt--){const pt=et[rt];pt["s-hn"]!==U&&pt["s-ol"]&&(St(pt).insertBefore(pt,gt(pt)),pt["s-ol"].remove(),pt["s-ol"]=void 0,F=!0),Ce&&Je(pt,Ce)}Y.$flags$&=-2},ke=(L,Ce,et,rt,pt,fe)=>{let st,Ke=L["s-cr"]&&L["s-cr"].parentNode||L;for(Ke.shadowRoot&&Ke.tagName===U&&(Ke=Ke.shadowRoot);pt<=fe;++pt)rt[pt]&&(st=at(null,et,pt,L),st&&(rt[pt].$elm$=st,Ke.insertBefore(st,gt(Ce))))},oe=(L,Ce,et,rt,pt)=>{for(;Ce<=et;++Ce)(rt=L[Ce])&&(pt=rt.$elm$,bn(rt),P=!0,pt["s-ol"]?pt["s-ol"].remove():Je(pt,!0),pt.remove())},vt=(L,Ce)=>L.$tag$===Ce.$tag$&&("slot"===L.$tag$?L.$name$===Ce.$name$:L.$key$===Ce.$key$),gt=L=>L&&L["s-ol"]||L,St=L=>(L["s-ol"]?L["s-ol"]:L).parentNode,Jt=(L,Ce)=>{const et=Ce.$elm$=L.$elm$,rt=L.$children$,pt=Ce.$children$,fe=Ce.$tag$,Ke=Ce.$text$;let st;null===Ke?(q="svg"===fe||"foreignObject"!==fe&&q,"slot"===fe||_e(L,Ce,q),null!==rt&&null!==pt?((L,Ce,et,rt)=>{let er,qn,pt=0,fe=0,Ke=0,st=0,mt=Ce.length-1,yt=Ce[0],kt=Ce[mt],qt=rt.length-1,dn=rt[0],hn=rt[qt];for(;pt<=mt&&fe<=qt;)if(null==yt)yt=Ce[++pt];else if(null==kt)kt=Ce[--mt];else if(null==dn)dn=rt[++fe];else if(null==hn)hn=rt[--qt];else if(vt(yt,dn))Jt(yt,dn),yt=Ce[++pt],dn=rt[++fe];else if(vt(kt,hn))Jt(kt,hn),kt=Ce[--mt],hn=rt[--qt];else if(vt(yt,hn))("slot"===yt.$tag$||"slot"===hn.$tag$)&&Je(yt.$elm$.parentNode,!1),Jt(yt,hn),L.insertBefore(yt.$elm$,kt.$elm$.nextSibling),yt=Ce[++pt],hn=rt[--qt];else if(vt(kt,dn))("slot"===yt.$tag$||"slot"===hn.$tag$)&&Je(kt.$elm$.parentNode,!1),Jt(kt,dn),L.insertBefore(kt.$elm$,yt.$elm$),kt=Ce[--mt],dn=rt[++fe];else{for(Ke=-1,st=pt;st<=mt;++st)if(Ce[st]&&null!==Ce[st].$key$&&Ce[st].$key$===dn.$key$){Ke=st;break}Ke>=0?(qn=Ce[Ke],qn.$tag$!==dn.$tag$?er=at(Ce&&Ce[fe],et,Ke,L):(Jt(qn,dn),Ce[Ke]=void 0,er=qn.$elm$),dn=rt[++fe]):(er=at(Ce&&Ce[fe],et,fe,L),dn=rt[++fe]),er&&St(yt.$elm$).insertBefore(er,gt(yt.$elm$))}pt>mt?ke(L,null==rt[qt+1]?null:rt[qt+1].$elm$,et,rt,fe,qt):fe>qt&&oe(Ce,pt,mt)})(et,rt,Ce,pt):null!==pt?(null!==L.$text$&&(et.textContent=""),ke(et,null,Ce,pt,0,pt.length-1)):null!==rt&&oe(rt,0,rt.length-1),q&&"svg"===fe&&(q=!1)):(st=et["s-cr"])?st.parentNode.textContent=Ke:L.$text$!==Ke&&(et.data=Ke)},Ut=L=>{const Ce=L.childNodes;let et,rt,pt,fe,Ke,st;for(rt=0,pt=Ce.length;rt<pt;rt++)if(et=Ce[rt],1===et.nodeType){if(et["s-sr"])for(Ke=et["s-sn"],et.hidden=!1,fe=0;fe<pt;fe++)if(st=Ce[fe].nodeType,Ce[fe]["s-hn"]!==et["s-hn"]||""!==Ke){if(1===st&&Ke===Ce[fe].getAttribute("slot")){et.hidden=!0;break}}else if(1===st||3===st&&""!==Ce[fe].textContent.trim()){et.hidden=!0;break}Ut(et)}},Xt=[],Nn=L=>{let Ce,et,rt,pt,fe,Ke,st=0;const mt=L.childNodes,yt=mt.length;for(;st<yt;st++){if(Ce=mt[st],Ce["s-sr"]&&(et=Ce["s-cr"])&&et.parentNode)for(rt=et.parentNode.childNodes,pt=Ce["s-sn"],Ke=rt.length-1;Ke>=0;Ke--)et=rt[Ke],!et["s-cn"]&&!et["s-nr"]&&et["s-hn"]!==Ce["s-hn"]&&(mn(et,pt)?(fe=Xt.find(kt=>kt.$nodeToRelocate$===et),P=!0,et["s-sn"]=et["s-sn"]||pt,fe?fe.$slotRefNode$=Ce:Xt.push({$slotRefNode$:Ce,$nodeToRelocate$:et}),et["s-sr"]&&Xt.map(kt=>{mn(kt.$nodeToRelocate$,et["s-sn"])&&(fe=Xt.find(qt=>qt.$nodeToRelocate$===et),fe&&!kt.$slotRefNode$&&(kt.$slotRefNode$=fe.$slotRefNode$))})):Xt.some(kt=>kt.$nodeToRelocate$===et)||Xt.push({$nodeToRelocate$:et}));1===Ce.nodeType&&Nn(Ce)}},mn=(L,Ce)=>1===L.nodeType?null===L.getAttribute("slot")&&""===Ce||L.getAttribute("slot")===Ce:L["s-sn"]===Ce||""===Ce,bn=L=>{L.$attrs$&&L.$attrs$.ref&&L.$attrs$.ref(null),L.$children$&&L.$children$.map(bn)},In=L=>_t(L).$hostElement$,yn=(L,Ce,et)=>{const rt=In(L);return{emit:pt=>gr(rt,Ce,{bubbles:!!(4&et),composed:!!(2&et),cancelable:!!(1&et),detail:pt})}},gr=(L,Ce,et)=>{const rt=Y.ce(Ce,et);return L.dispatchEvent(rt),rt},un=(L,Ce)=>{Ce&&!L.$onRenderResolve$&&Ce["s-p"]&&Ce["s-p"].push(new Promise(et=>L.$onRenderResolve$=et))},lr=(L,Ce)=>{if(L.$flags$|=16,!(4&L.$flags$))return un(L,L.$ancestorComponent$),ir(()=>yr(L,Ce));L.$flags$|=512},yr=(L,Ce)=>{const rt=L.$lazyInstance$;let pt;return Ce&&(L.$flags$|=256,L.$queuedListeners$&&(L.$queuedListeners$.map(([fe,Ke])=>Kn(rt,fe,Ke)),L.$queuedListeners$=null),pt=Kn(rt,"componentWillLoad")),pt=On(pt,()=>Kn(rt,"componentWillRender")),On(pt,()=>nn(L,rt,Ce))},nn=function(){var L=(0,r.Z)(function*(Ce,et,rt){const pt=Ce.$hostElement$,Ke=pt["s-rc"];rt&&(L=>{const Ce=L.$cmpMeta$,et=L.$hostElement$,rt=Ce.$flags$,fe=le(et.shadowRoot?et.shadowRoot:et.getRootNode(),Ce,L.$modeName$);10&rt&&(et["s-sc"]=fe,et.classList.add(fe+"-h"),2&rt&&et.classList.add(fe+"-s"))})(Ce);Sn(Ce,et),Ke&&(Ke.map(mt=>mt()),pt["s-rc"]=void 0);{const mt=pt["s-p"],yt=()=>Un(Ce);0===mt.length?yt():(Promise.all(mt).then(yt),Ce.$flags$|=4,mt.length=0)}});return function(et,rt,pt){return L.apply(this,arguments)}}(),Sn=(L,Ce,et)=>{try{Ce=Ce.render&&Ce.render(),L.$flags$&=-17,L.$flags$|=2,((L,Ce)=>{const et=L.$hostElement$,rt=L.$cmpMeta$,pt=L.$vnode$||Zt(null,null),fe=(L=>L&&L.$tag$===Nt)(Ce)?Ce:Vt(null,null,Ce);if(U=et.tagName,rt.$attrsToReflect$&&(fe.$attrs$=fe.$attrs$||{},rt.$attrsToReflect$.map(([Ke,st])=>fe.$attrs$[st]=et[Ke])),fe.$tag$=null,fe.$flags$|=4,L.$vnode$=fe,fe.$elm$=pt.$elm$=et.shadowRoot||et,D=et["s-sc"],j=et["s-cr"],V=0!=(1&rt.$flags$),P=!1,Jt(pt,fe),Y.$flags$|=1,F){Nn(fe.$elm$);let Ke,st,mt,yt,kt,qt,dn=0;for(;dn<Xt.length;dn++)Ke=Xt[dn],st=Ke.$nodeToRelocate$,st["s-ol"]||(mt=ne.createTextNode(""),mt["s-nr"]=st,st.parentNode.insertBefore(st["s-ol"]=mt,st));for(dn=0;dn<Xt.length;dn++)if(Ke=Xt[dn],st=Ke.$nodeToRelocate$,Ke.$slotRefNode$){for(yt=Ke.$slotRefNode$.parentNode,kt=Ke.$slotRefNode$.nextSibling,mt=st["s-ol"];mt=mt.previousSibling;)if(qt=mt["s-nr"],qt&&qt["s-sn"]===st["s-sn"]&&yt===qt.parentNode&&(qt=qt.nextSibling,!qt||!qt["s-nr"])){kt=qt;break}(!kt&&yt!==st.parentNode||st.nextSibling!==kt)&&st!==kt&&(!st["s-hn"]&&st["s-ol"]&&(st["s-hn"]=st["s-ol"].parentNode.nodeName),yt.insertBefore(st,kt))}else 1===st.nodeType&&(st.hidden=!0)}P&&Ut(fe.$elm$),Y.$flags$&=-2,Xt.length=0})(L,Ce)}catch(rt){en(rt,L.$hostElement$)}return null},Un=L=>{const et=L.$hostElement$,pt=L.$lazyInstance$,fe=L.$ancestorComponent$;Kn(pt,"componentDidRender"),64&L.$flags$?Kn(pt,"componentDidUpdate"):(L.$flags$|=64,zn(et),Kn(pt,"componentDidLoad"),L.$onReadyResolve$(et),fe||Zn()),L.$onInstanceResolve$(et),L.$onRenderResolve$&&(L.$onRenderResolve$(),L.$onRenderResolve$=void 0),512&L.$flags$&&Gn(()=>lr(L,!1)),L.$flags$&=-517},nr=L=>{{const Ce=_t(L),et=Ce.$hostElement$.isConnected;return et&&2==(18&Ce.$flags$)&&lr(Ce,!1),et}},Zn=L=>{zn(ne.documentElement),Gn(()=>gr(ee,"appload",{detail:{namespace:"ionic"}}))},Kn=(L,Ce,et)=>{if(L&&L[Ce])try{return L[Ce](et)}catch(rt){en(rt)}},On=(L,Ce)=>L&&L.then?L.then(Ce):Ce(),zn=L=>L.classList.add("hydrated"),Ye=(L,Ce,et,rt,pt,fe,Ke)=>{let st,mt,yt,kt;if(1===fe.nodeType){for(st=fe.getAttribute("c-id"),st&&(mt=st.split("."),(mt[0]===Ke||"0"===mt[0])&&(yt={$flags$:0,$hostId$:mt[0],$nodeId$:mt[1],$depth$:mt[2],$index$:mt[3],$tag$:fe.tagName.toLowerCase(),$elm$:fe,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},Ce.push(yt),fe.removeAttribute("c-id"),L.$children$||(L.$children$=[]),L.$children$[yt.$index$]=yt,L=yt,rt&&"0"===yt.$depth$&&(rt[yt.$index$]=yt.$elm$))),kt=fe.childNodes.length-1;kt>=0;kt--)Ye(L,Ce,et,rt,pt,fe.childNodes[kt],Ke);if(fe.shadowRoot)for(kt=fe.shadowRoot.childNodes.length-1;kt>=0;kt--)Ye(L,Ce,et,rt,pt,fe.shadowRoot.childNodes[kt],Ke)}else if(8===fe.nodeType)mt=fe.nodeValue.split("."),(mt[1]===Ke||"0"===mt[1])&&(st=mt[0],yt={$flags$:0,$hostId$:mt[1],$nodeId$:mt[2],$depth$:mt[3],$index$:mt[4],$elm$:fe,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===st?(yt.$elm$=fe.nextSibling,yt.$elm$&&3===yt.$elm$.nodeType&&(yt.$text$=yt.$elm$.textContent,Ce.push(yt),fe.remove(),L.$children$||(L.$children$=[]),L.$children$[yt.$index$]=yt,rt&&"0"===yt.$depth$&&(rt[yt.$index$]=yt.$elm$))):yt.$hostId$===Ke&&("s"===st?(yt.$tag$="slot",fe["s-sn"]=mt[5]?yt.$name$=mt[5]:"",fe["s-sr"]=!0,rt&&(yt.$elm$=ne.createElement(yt.$tag$),yt.$name$&&yt.$elm$.setAttribute("name",yt.$name$),fe.parentNode.insertBefore(yt.$elm$,fe),fe.remove(),"0"===yt.$depth$&&(rt[yt.$index$]=yt.$elm$)),et.push(yt),L.$children$||(L.$children$=[]),L.$children$[yt.$index$]=yt):"r"===st&&(rt?fe.remove():(pt["s-cr"]=fe,fe["s-cn"]=!0))));else if(L&&"style"===L.$tag$){const qt=Zt(null,fe.textContent);qt.$elm$=fe,qt.$index$="0",L.$children$=[qt]}},Ee=(L,Ce)=>{if(1===L.nodeType){let et=0;for(;et<L.childNodes.length;et++)Ee(L.childNodes[et],Ce);if(L.shadowRoot)for(et=0;et<L.shadowRoot.childNodes.length;et++)Ee(L.shadowRoot.childNodes[et],Ce)}else if(8===L.nodeType){const et=L.nodeValue.split(".");"o"===et[0]&&(Ce.set(et[1]+"."+et[2],L),L.nodeValue="",L["s-en"]=et[3])}},sn=(L,Ce,et)=>{if(Ce.$members$){L.watchers&&(Ce.$watchers$=L.watchers);const rt=Object.entries(Ce.$members$),pt=L.prototype;if(rt.map(([fe,[Ke]])=>{31&Ke||2&et&&32&Ke?Object.defineProperty(pt,fe,{get(){return((L,Ce)=>_t(this).$instanceValues$.get(Ce))(0,fe)},set(st){((L,Ce,et,rt)=>{const pt=_t(L),fe=pt.$hostElement$,Ke=pt.$instanceValues$.get(Ce),st=pt.$flags$,mt=pt.$lazyInstance$;et=((L,Ce)=>null==L||Mt(L)?L:4&Ce?"false"!==L&&(""===L||!!L):2&Ce?parseFloat(L):1&Ce?String(L):L)(et,rt.$members$[Ce][0]);const yt=Number.isNaN(Ke)&&Number.isNaN(et);if((!(8&st)||void 0===Ke)&&et!==Ke&&!yt&&(pt.$instanceValues$.set(Ce,et),mt)){if(rt.$watchers$&&128&st){const qt=rt.$watchers$[Ce];qt&&qt.map(dn=>{try{mt[dn](et,Ke,Ce)}catch(hn){en(hn,fe)}})}2==(18&st)&&lr(pt,!1)}})(this,fe,st,Ce)},configurable:!0,enumerable:!0}):1&et&&64&Ke&&Object.defineProperty(pt,fe,{value(...st){const mt=_t(this);return mt.$onInstancePromise$.then(()=>mt.$lazyInstance$[fe](...st))}})}),1&et){const fe=new Map;pt.attributeChangedCallback=function(Ke,st,mt){Y.jmp(()=>{const yt=fe.get(Ke);if(this.hasOwnProperty(yt))mt=this[yt],delete this[yt];else if(pt.hasOwnProperty(yt)&&"number"==typeof this[yt]&&this[yt]==mt)return;this[yt]=(null!==mt||"boolean"!=typeof this[yt])&&mt})},L.observedAttributes=rt.filter(([Ke,st])=>15&st[0]).map(([Ke,st])=>{const mt=st[1]||Ke;return fe.set(mt,Ke),512&st[0]&&Ce.$attrsToReflect$.push([Ke,mt]),mt})}}return L},Fn=function(){var L=(0,r.Z)(function*(Ce,et,rt,pt,fe){if(0==(32&et.$flags$)){{if(et.$flags$|=32,(fe=tn(rt)).then){const yt=()=>{};fe=yield fe,yt()}fe.isProxied||(rt.$watchers$=fe.watchers,sn(fe,rt,2),fe.isProxied=!0);const mt=()=>{};et.$flags$|=8;try{new fe(et)}catch(yt){en(yt)}et.$flags$&=-9,et.$flags$|=128,mt(),Le(et.$lazyInstance$)}if(fe.style){let mt=fe.style;"string"!=typeof mt&&(mt=mt[et.$modeName$=(L=>Lt.map(Ce=>Ce(L)).find(Ce=>!!Ce))(Ce)]);const yt=Ae(rt,et.$modeName$);if(!fn.has(yt)){const kt=()=>{};ve(yt,mt,!!(1&rt.$flags$)),kt()}}}const Ke=et.$ancestorComponent$,st=()=>lr(et,!0);Ke&&Ke["s-rc"]?Ke["s-rc"].push(st):st()});return function(et,rt,pt,fe,Ke){return L.apply(this,arguments)}}(),Le=L=>{Kn(L,"connectedCallback")},$=L=>{const Ce=L["s-cr"]=ne.createComment("");Ce["s-cn"]=!0,L.insertBefore(Ce,L.firstChild)},Ie=(L,Ce={})=>{const rt=[],pt=Ce.exclude||[],fe=ee.customElements,Ke=ne.head,st=Ke.querySelector("meta[charset]"),mt=ne.createElement("style"),yt=[],kt=ne.querySelectorAll(`[${We}]`);let qt,dn=!0,hn=0;for(Object.assign(Y,Ce),Y.$resourcesUrl$=new URL(Ce.resourcesUrl||"./",ne.baseURI).href,Y.$flags$|=2;hn<kt.length;hn++)ve(kt[hn].getAttribute(We),be(kt[hn].innerHTML),!0);L.map(er=>{er[1].map(qn=>{const pr={$flags$:qn[0],$tagName$:qn[1],$members$:qn[2],$listeners$:qn[3]};pr.$members$=qn[2],pr.$listeners$=qn[3],pr.$attrsToReflect$=[],pr.$watchers$={};const ur=pr.$tagName$,$r=class extends HTMLElement{constructor(Jn){super(Jn),Rt(Jn=this,pr),1&pr.$flags$&&Jn.attachShadow({mode:"open",delegatesFocus:!!(16&pr.$flags$)})}connectedCallback(){qt&&(clearTimeout(qt),qt=null),dn?yt.push(this):Y.jmp(()=>(L=>{if(0==(1&Y.$flags$)){const Ce=_t(L),et=Ce.$cmpMeta$,rt=()=>{};if(1&Ce.$flags$)De(L,Ce,et.$listeners$),Le(Ce.$lazyInstance$);else{let pt;if(Ce.$flags$|=1,pt=L.getAttribute(J),pt){if(1&et.$flags$){const fe=le(L.shadowRoot,et,L.getAttribute("s-mode"));L.classList.remove(fe+"-h",fe+"-s")}((L,Ce,et,rt)=>{const fe=L.shadowRoot,Ke=[],mt=fe?[]:null,yt=rt.$vnode$=Zt(Ce,null);Y.$orgLocNodes$||Ee(ne.body,Y.$orgLocNodes$=new Map),L[J]=et,L.removeAttribute(J),Ye(yt,Ke,[],mt,L,L,et),Ke.map(kt=>{const qt=kt.$hostId$+"."+kt.$nodeId$,dn=Y.$orgLocNodes$.get(qt),hn=kt.$elm$;dn&&""===dn["s-en"]&&dn.parentNode.insertBefore(hn,dn.nextSibling),fe||(hn["s-hn"]=Ce,dn&&(hn["s-ol"]=dn,hn["s-ol"]["s-nr"]=hn)),Y.$orgLocNodes$.delete(qt)}),fe&&mt.map(kt=>{kt&&fe.appendChild(kt)})})(L,et.$tagName$,pt,Ce)}pt||12&et.$flags$&&$(L);{let fe=L;for(;fe=fe.parentNode||fe.host;)if(1===fe.nodeType&&fe.hasAttribute("s-id")&&fe["s-p"]||fe["s-p"]){un(Ce,Ce.$ancestorComponent$=fe);break}}et.$members$&&Object.entries(et.$members$).map(([fe,[Ke]])=>{if(31&Ke&&L.hasOwnProperty(fe)){const st=L[fe];delete L[fe],L[fe]=st}}),Gn(()=>Fn(L,Ce,et))}rt()}})(this))}disconnectedCallback(){Y.jmp(()=>(L=>{if(0==(1&Y.$flags$)){const Ce=_t(this),et=Ce.$lazyInstance$;Ce.$rmListeners$&&(Ce.$rmListeners$.map(rt=>rt()),Ce.$rmListeners$=void 0),Kn(et,"disconnectedCallback")}})())}componentOnReady(){return _t(this).$onReadyPromise$}};pr.$lazyBundleId$=er[0],!pt.includes(ur)&&!fe.get(ur)&&(rt.push(ur),fe.define(ur,sn($r,pr,1)))})}),mt.innerHTML=rt+"{visibility:hidden}.hydrated{visibility:inherit}",mt.setAttribute("data-styles",""),Ke.insertBefore(mt,st?st.nextSibling:Ke.firstChild),dn=!1,yt.length?yt.map(er=>er.connectedCallback()):Y.jmp(()=>qt=setTimeout(Zn,30))},Ve=L=>{const Ce=new URL(L,Y.$resourcesUrl$);return Ce.origin!==ee.location.origin?Ce.href:Ce.pathname},dt=new WeakMap,_t=L=>dt.get(L),Gt=(L,Ce)=>dt.set(Ce.$lazyInstance$=L,Ce),Rt=(L,Ce)=>{const et={$flags$:0,$hostElement$:L,$cmpMeta$:Ce,$instanceValues$:new Map};return et.$onInstancePromise$=new Promise(rt=>et.$onInstanceResolve$=rt),et.$onReadyPromise$=new Promise(rt=>et.$onReadyResolve$=rt),L["s-p"]=[],L["s-rc"]=[],De(L,et,Ce.$listeners$),dt.set(L,et)},xt=(L,Ce)=>Ce in L,en=(L,Ce)=>(0,console.error)(L,Ce),jt=new Map,tn=(L,Ce,et)=>{const rt=L.$tagName$.replace(/-/g,"_"),pt=L.$lazyBundleId$,fe=jt.get(pt);return fe?fe[rt]:p(863)(`./${pt}.entry.js`).then(Ke=>(jt.set(pt,Ke),Ke[rt]),en)},fn=new Map,Lt=[],ln=[],Tn=[],jn=(L,Ce)=>et=>{L.push(et),Q||(Q=!0,Ce&&4&Y.$flags$?Gn(Ln):Y.raf(Ln))},rr=L=>{for(let Ce=0;Ce<L.length;Ce++)try{L[Ce](performance.now())}catch(et){en(et)}L.length=0},Ln=()=>{rr(ln),rr(Tn),(Q=ln.length>0)&&Y.raf(Ln)},Gn=L=>$e().then(L),Dn=jn(ln,!1),ir=jn(Tn,!0),cr={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1}},4464:(Ct,ae,p)=>{"use strict";p.d(ae,{AK:()=>U.g,BO:()=>Q.b,Bk:()=>q.m,Cl:()=>Q.a,EQ:()=>F.b,F8:()=>F.d,Fy:()=>Q.m,G0:()=>Q.l,Jd:()=>F.c,Mn:()=>Q.t,Wy:()=>P.I,_E:()=>Q.p,hh:()=>V.c,kx:()=>F.L,n$:()=>U.a,oq:()=>Q.c,qc:()=>P.s,re:()=>F.a}),p(181),p(6439),p(7838),p(1898);var U=p(5179),V=p(5730),P=p(5820),F=p(1843),q=p(6369),Q=p(3539);p(3457),p(4349),p(1308)},5179:(Ct,ae,p)=>{"use strict";p.d(ae,{a:()=>ee,b:()=>pe,c:()=>D,g:()=>Q,i:()=>ve});var r=p(1308);class m{constructor(){this.m=new Map}reset(he){this.m=new Map(Object.entries(he))}get(he,Ae){const be=this.m.get(he);return void 0!==be?be:Ae}getBoolean(he,Ae=!1){const be=this.m.get(he);return void 0===be?Ae:"string"==typeof be?"true"===be:!!be}getNumber(he,Ae){const be=parseFloat(this.m.get(he));return isNaN(be)?void 0!==Ae?Ae:NaN:be}set(he,Ae){this.m.set(he,Ae)}}const D=new m,F="ionic:",q="ionic-persist-config",Q=le=>ne(le),ee=(le,he)=>("string"==typeof le&&(he=le,le=void 0),Q(le).includes(he)),ne=(le=window)=>{if(void 0===le)return[];le.Ionic=le.Ionic||{};let he=le.Ionic.platforms;return null==he&&(he=le.Ionic.platforms=Y(le),he.forEach(Ae=>le.document.documentElement.classList.add(`plt-${Ae}`))),he},Y=le=>{const he=D.get("platform");return Object.keys(z).filter(Ae=>{const be=null==he?void 0:he[Ae];return"function"==typeof be?be(le):z[Ae](le)})},Ne=le=>!!(we(le,/iPad/i)||we(le,/Macintosh/i)&&Pe(le)),De=le=>we(le,/android|sink/i),Pe=le=>re(le,"(any-pointer:coarse)"),Fe=le=>Te(le)||J(le),Te=le=>!!(le.cordova||le.phonegap||le.PhoneGap),J=le=>{const he=le.Capacitor;return!!(null==he?void 0:he.isNative)},we=(le,he)=>he.test(le.navigator.userAgent),re=(le,he)=>{var Ae;return null===(Ae=le.matchMedia)||void 0===Ae?void 0:Ae.call(le,he).matches},z={ipad:Ne,iphone:le=>we(le,/iPhone/i),ios:le=>we(le,/iPhone|iPod/i)||Ne(le),android:De,phablet:le=>{const he=le.innerWidth,Ae=le.innerHeight,be=Math.min(he,Ae),Re=Math.max(he,Ae);return be>390&&be<520&&Re>620&&Re<800},tablet:le=>{const he=le.innerWidth,Ae=le.innerHeight,be=Math.min(he,Ae),Re=Math.max(he,Ae);return Ne(le)||(le=>De(le)&&!we(le,/mobile/i))(le)||be>460&&be<820&&Re>780&&Re<1400},cordova:Te,capacitor:J,electron:le=>we(le,/electron/i),pwa:le=>{var he;return!(!(null===(he=le.matchMedia)||void 0===he?void 0:he.call(le,"(display-mode: standalone)").matches)&&!le.navigator.standalone)},mobile:Pe,mobileweb:le=>Pe(le)&&!Fe(le),desktop:le=>!Pe(le),hybrid:Fe};let N;const pe=le=>le&&(0,r.g)(le)||N,ve=(le={})=>{if("undefined"==typeof window)return;const he=window.document,Ae=window,be=Ae.Ionic=Ae.Ionic||{},Re={};le._ael&&(Re.ael=le._ael),le._rel&&(Re.rel=le._rel),le._ce&&(Re.ce=le._ce),(0,r.s)(Re);const H=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(le=>{try{const he=le.sessionStorage.getItem(q);return null!==he?JSON.parse(he):{}}catch(he){return{}}})(Ae)),{persistConfig:!1}),be.config),(le=>{const he={};return le.location.search.slice(1).split("&").map(Ae=>Ae.split("=")).map(([Ae,be])=>[decodeURIComponent(Ae),decodeURIComponent(be)]).filter(([Ae])=>((le,he)=>le.substr(0,he.length)===he)(Ae,F)).map(([Ae,be])=>[Ae.slice(F.length),be]).forEach(([Ae,be])=>{he[Ae]=be}),he})(Ae)),le);D.reset(H),D.getBoolean("persistConfig")&&((le,he)=>{try{le.sessionStorage.setItem(q,JSON.stringify(he))}catch(Ae){return}})(Ae,H),ne(Ae),be.config=D,be.mode=N=D.get("mode",he.documentElement.getAttribute("mode")||(ee(Ae,"ios")?"ios":"md")),D.set("mode",N),he.documentElement.setAttribute("mode",N),he.documentElement.classList.add(N),D.getBoolean("_testing")&&D.set("animated",!1);const k=it=>{var qe;return null===(qe=it.tagName)||void 0===qe?void 0:qe.startsWith("ION-")},Ue=it=>["ios","md"].includes(it);(0,r.a)(it=>{for(;it;){const qe=it.mode||it.getAttribute("mode");if(qe){if(Ue(qe))return qe;k(it)&&console.warn('Invalid ionic mode: "'+qe+'", expected: "ios" or "md"')}it=it.parentElement}return N})}},6439:(Ct,ae,p)=>{"use strict";p.r(ae),p.d(ae,{iosTransitionAnimation:()=>Y,shadow:()=>P});var r=p(181),m=p(1843);p(3457),p(1308);const V=ce=>document.querySelector(`${ce}.ion-cloned-element`),P=ce=>ce.shadowRoot||ce,F=ce=>{const Ne="ION-TABS"===ce.tagName?ce:ce.querySelector("ion-tabs"),$e="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=Ne){const ye=Ne.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=ye?ye.querySelector($e):null}return ce.querySelector($e)},q=(ce,Ne)=>{const $e="ION-TABS"===ce.tagName?ce:ce.querySelector("ion-tabs");let ye=[];if(null!=$e){const De=$e.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=De&&(ye=De.querySelectorAll("ion-buttons"))}else ye=ce.querySelectorAll("ion-buttons");for(const De of ye){const ue=De.closest("ion-header"),me=ue&&!ue.classList.contains("header-collapse-condense-inactive"),ze=De.querySelector("ion-back-button"),Pe=De.classList.contains("buttons-collapse"),je="start"===De.slot||""===De.slot;if(null!==ze&&je&&(Pe&&me&&Ne||!Pe))return ze}return null},ee=(ce,Ne,$e,ye,De,ue)=>{const me=Ne?`calc(100% - ${ue.right+4}px)`:ue.left-4+"px",ze=Ne?"7px":"-7px",Pe=Ne?"-4px":"4px",je=Ne?"-4px":"4px",Fe=Ne?"right":"left",Te=Ne?"left":"right",Be=$e?[{offset:0,opacity:1,transform:`translate3d(${Pe}, ${ue.top-46}px, 0) scale(1)`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${ze}, ${De.top-40}px, 0) scale(2.1)`}]:[{offset:0,opacity:0,transform:`translate3d(${ze}, ${De.top-40}px, 0) scale(2.1)`},{offset:1,opacity:1,transform:`translate3d(${Pe}, ${ue.top-46}px, 0) scale(1)`}],z=$e?[{offset:0,opacity:1,transform:`translate3d(${je}, ${ue.top-46}px, 0) scale(1)`},{offset:.2,opacity:0,transform:`translate3d(${je}, ${ue.top-41}px, 0) scale(0.6)`},{offset:1,opacity:0,transform:`translate3d(${je}, ${ue.top-41}px, 0) scale(0.6)`}]:[{offset:0,opacity:0,transform:`translate3d(${je}, ${ue.top-41}px, 0) scale(0.6)`},{offset:1,opacity:1,transform:`translate3d(${je}, ${ue.top-46}px, 0) scale(1)`}],N=(0,r.c)(),pe=(0,r.c)(),ve=V("ion-back-button"),le=P(ve).querySelector(".button-text"),he=P(ve).querySelector("ion-icon");ve.text=ye.text,ve.mode=ye.mode,ve.icon=ye.icon,ve.color=ye.color,ve.disabled=ye.disabled,ve.style.setProperty("display","block"),ve.style.setProperty("position","fixed"),pe.addElement(he),N.addElement(le),N.beforeStyles({"transform-origin":`${Fe} center`}).beforeAddWrite(()=>{ye.style.setProperty("display","none"),ve.style.setProperty(Fe,me)}).afterAddWrite(()=>{ye.style.setProperty("display",""),ve.style.setProperty("display","none"),ve.style.removeProperty(Fe)}).keyframes(Be),pe.beforeStyles({"transform-origin":`${Te} center`}).keyframes(z),ce.addAnimation([N,pe])},ne=(ce,Ne,$e,ye,De,ue)=>{const me=Ne?`calc(100% - ${De.right}px)`:`${De.left}px`,ze=Ne?"-18px":"18px",Pe=Ne?"right":"left",Te=$e?[{offset:0,opacity:0,transform:`translate3d(${ze}, ${ue.top-4}px, 0) scale(0.49)`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0, ${De.top-2}px, 0) scale(1)`}]:[{offset:0,opacity:.99,transform:`translate3d(0, ${De.top-2}px, 0) scale(1)`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${ze}, ${ue.top-4}px, 0) scale(0.5)`}],J=V("ion-title"),We=(0,r.c)();J.innerText=ye.innerText,J.size=ye.size,J.color=ye.color,We.addElement(J),We.beforeStyles({"transform-origin":`${Pe} center`,height:"46px",display:"",position:"relative",[Pe]:me}).beforeAddWrite(()=>{ye.style.setProperty("display","none")}).afterAddWrite(()=>{ye.style.setProperty("display",""),J.style.setProperty("display","none")}).keyframes(Te),ce.addAnimation(We)},Y=(ce,Ne)=>{var $e;try{const ye="cubic-bezier(0.32,0.72,0,1)",De="opacity",ue="transform",me="0%",Pe="rtl"===ce.ownerDocument.dir,je=Pe?"-99.5%":"99.5%",Fe=Pe?"33%":"-33%",Te=Ne.enteringEl,J=Ne.leavingEl,We="back"===Ne.direction,Be=Te.querySelector(":scope > ion-content"),we=Te.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),re=Te.querySelectorAll(":scope > ion-header > ion-toolbar"),z=(0,r.c)(),N=(0,r.c)();if(z.addElement(Te).duration((null!==($e=Ne.duration)&&void 0!==$e?$e:0)||540).easing(Ne.easing||ye).fill("both").beforeRemoveClass("ion-page-invisible"),J&&null!=ce){const he=(0,r.c)();he.addElement(ce),z.addAnimation(he)}if(Be||0!==re.length||0!==we.length?(N.addElement(Be),N.addElement(we)):N.addElement(Te.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),z.addAnimation(N),We?N.beforeClearStyles([De]).fromTo("transform",`translateX(${Fe})`,`translateX(${me})`).fromTo(De,.8,1):N.beforeClearStyles([De]).fromTo("transform",`translateX(${je})`,`translateX(${me})`),Be){const he=P(Be).querySelector(".transition-effect");if(he){const Ae=he.querySelector(".transition-cover"),be=he.querySelector(".transition-shadow"),Re=(0,r.c)(),H=(0,r.c)(),k=(0,r.c)();Re.addElement(he).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),H.addElement(Ae).beforeClearStyles([De]).fromTo(De,0,.1),k.addElement(be).beforeClearStyles([De]).fromTo(De,.03,.7),Re.addAnimation([H,k]),N.addAnimation([Re])}}const pe=Te.querySelector("ion-header.header-collapse-condense"),{forward:ve,backward:le}=((ce,Ne,$e,ye,De)=>{const ue=q(ye,$e),me=F(De),ze=F(ye),Pe=q(De,$e),je=null!==ue&&null!==me&&!$e,Fe=null!==ze&&null!==Pe&&$e;if(je){const Te=me.getBoundingClientRect(),J=ue.getBoundingClientRect();ne(ce,Ne,$e,me,Te,J),ee(ce,Ne,$e,ue,Te,J)}else if(Fe){const Te=ze.getBoundingClientRect(),J=Pe.getBoundingClientRect();ne(ce,Ne,$e,ze,Te,J),ee(ce,Ne,$e,Pe,Te,J)}return{forward:je,backward:Fe}})(z,Pe,We,Te,J);if(re.forEach(he=>{const Ae=(0,r.c)();Ae.addElement(he),z.addAnimation(Ae);const be=(0,r.c)();be.addElement(he.querySelector("ion-title"));const Re=(0,r.c)(),H=Array.from(he.querySelectorAll("ion-buttons,[menuToggle]")),k=he.closest("ion-header"),Ue=null==k?void 0:k.classList.contains("header-collapse-condense-inactive");let it;it=H.filter(We?Zt=>{const Nt=Zt.classList.contains("buttons-collapse");return Nt&&!Ue||!Nt}:Zt=>!Zt.classList.contains("buttons-collapse")),Re.addElement(it);const qe=(0,r.c)();qe.addElement(he.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const lt=(0,r.c)();lt.addElement(P(he).querySelector(".toolbar-background"));const Mt=(0,r.c)(),Vt=he.querySelector("ion-back-button");if(Vt&&Mt.addElement(Vt),Ae.addAnimation([be,Re,qe,lt,Mt]),Re.fromTo(De,.01,1),qe.fromTo(De,.01,1),We)Ue||be.fromTo("transform",`translateX(${Fe})`,`translateX(${me})`).fromTo(De,.01,1),qe.fromTo("transform",`translateX(${Fe})`,`translateX(${me})`),Mt.fromTo(De,.01,1);else if(pe||be.fromTo("transform",`translateX(${je})`,`translateX(${me})`).fromTo(De,.01,1),qe.fromTo("transform",`translateX(${je})`,`translateX(${me})`),lt.beforeClearStyles([De,"transform"]),(null==k?void 0:k.translucent)?lt.fromTo("transform",Pe?"translateX(-100%)":"translateX(100%)","translateX(0px)"):lt.fromTo(De,.01,"var(--opacity)"),ve||Mt.fromTo(De,.01,1),Vt&&!ve){const Nt=(0,r.c)();Nt.addElement(P(Vt).querySelector(".button-text")).fromTo("transform",Pe?"translateX(-100px)":"translateX(100px)","translateX(0px)"),Ae.addAnimation(Nt)}}),J){const he=(0,r.c)(),Ae=J.querySelector(":scope > ion-content"),be=J.querySelectorAll(":scope > ion-header > ion-toolbar"),Re=J.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(Ae||0!==be.length||0!==Re.length?(he.addElement(Ae),he.addElement(Re)):he.addElement(J.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),z.addAnimation(he),We){he.beforeClearStyles([De]).fromTo("transform",`translateX(${me})`,Pe?"translateX(-100%)":"translateX(100%)");const H=(0,m.g)(J);z.afterAddWrite(()=>{"normal"===z.getDirection()&&H.style.setProperty("display","none")})}else he.fromTo("transform",`translateX(${me})`,`translateX(${Fe})`).fromTo(De,1,.8);if(Ae){const H=P(Ae).querySelector(".transition-effect");if(H){const k=H.querySelector(".transition-cover"),Ue=H.querySelector(".transition-shadow"),it=(0,r.c)(),qe=(0,r.c)(),lt=(0,r.c)();it.addElement(H).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),qe.addElement(k).beforeClearStyles([De]).fromTo(De,.1,0),lt.addElement(Ue).beforeClearStyles([De]).fromTo(De,.7,.03),it.addAnimation([qe,lt]),he.addAnimation([it])}}be.forEach(H=>{const k=(0,r.c)();k.addElement(H);const Ue=(0,r.c)();Ue.addElement(H.querySelector("ion-title"));const it=(0,r.c)(),qe=H.querySelectorAll("ion-buttons,[menuToggle]"),lt=H.closest("ion-header"),Mt=null==lt?void 0:lt.classList.contains("header-collapse-condense-inactive"),Vt=Array.from(qe).filter(xe=>{const O=xe.classList.contains("buttons-collapse");return O&&!Mt||!O});it.addElement(Vt);const Zt=(0,r.c)(),Nt=H.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");Nt.length>0&&Zt.addElement(Nt);const wn=(0,r.c)();wn.addElement(P(H).querySelector(".toolbar-background"));const Bn=(0,r.c)(),tt=H.querySelector("ion-back-button");if(tt&&Bn.addElement(tt),k.addAnimation([Ue,it,Zt,Bn,wn]),z.addAnimation(k),Bn.fromTo(De,.99,0),it.fromTo(De,.99,0),Zt.fromTo(De,.99,0),We){if(Mt||Ue.fromTo("transform",`translateX(${me})`,Pe?"translateX(-100%)":"translateX(100%)").fromTo(De,.99,0),Zt.fromTo("transform",`translateX(${me})`,Pe?"translateX(-100%)":"translateX(100%)"),wn.beforeClearStyles([De,"transform"]),(null==lt?void 0:lt.translucent)?wn.fromTo("transform","translateX(0px)",Pe?"translateX(-100%)":"translateX(100%)"):wn.fromTo(De,"var(--opacity)",0),tt&&!le){const O=(0,r.c)();O.addElement(P(tt).querySelector(".button-text")).fromTo("transform",`translateX(${me})`,`translateX(${(Pe?-124:124)+"px"})`),k.addAnimation(O)}}else Mt||Ue.fromTo("transform",`translateX(${me})`,`translateX(${Fe})`).fromTo(De,.99,0).afterClearStyles([ue,De]),Zt.fromTo("transform",`translateX(${me})`,`translateX(${Fe})`).afterClearStyles([ue,De]),Bn.afterClearStyles([De]),Ue.afterClearStyles([De]),it.afterClearStyles([De])})}return z}catch(ye){throw ye}}},7838:(Ct,ae,p)=>{"use strict";p.r(ae),p.d(ae,{mdTransitionAnimation:()=>U});var r=p(181),m=p(1843);p(3457),p(1308);const U=(V,P)=>{var F,q,Q;const Y="back"===P.direction,Ne=P.leavingEl,$e=(0,m.g)(P.enteringEl),ye=$e.querySelector("ion-toolbar"),De=(0,r.c)();if(De.addElement($e).fill("both").beforeRemoveClass("ion-page-invisible"),Y?De.duration((null!==(F=P.duration)&&void 0!==F?F:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):De.duration((null!==(q=P.duration)&&void 0!==q?q:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),ye){const ue=(0,r.c)();ue.addElement(ye),De.addAnimation(ue)}if(Ne&&Y){De.duration((null!==(Q=P.duration)&&void 0!==Q?Q:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const ue=(0,r.c)();ue.addElement((0,m.g)(Ne)).onFinish(me=>{1===me&&ue.elements.length>0&&ue.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),De.addAnimation(ue)}return De}},3539:(Ct,ae,p)=>{"use strict";p.d(ae,{B:()=>Ae,G:()=>be,a:()=>F,b:()=>q,c:()=>Y,d:()=>We,e:()=>Ne,f:()=>we,g:()=>N,h:()=>V,i:()=>ve,j:()=>De,k:()=>Te,l:()=>Q,m:()=>ee,p:()=>ne,s:()=>he,t:()=>ce});var r=p(5861),m=p(5179),D=p(7593),j=p(5730);let U=0;const V=new WeakMap,P=Re=>({create:H=>$e(Re,H),dismiss:(H,k,Ue)=>je(document,H,k,Re,Ue),getTop:()=>(0,r.Z)(function*(){return Te(document,Re)})()}),F=P("ion-alert"),q=P("ion-action-sheet"),Q=P("ion-loading"),ee=P("ion-modal"),ne=P("ion-picker"),Y=P("ion-popover"),ce=P("ion-toast"),Ne=Re=>{"undefined"!=typeof document&&Pe(document);const H=U++;Re.overlayIndex=H,Re.hasAttribute("id")||(Re.id=`ion-overlay-${H}`)},$e=(Re,H)=>"undefined"!=typeof window&&void 0!==window.customElements?window.customElements.whenDefined(Re).then(()=>{const k=document.createElement(Re);return k.classList.add("overlay-hidden"),Object.assign(k,Object.assign(Object.assign({},H),{hasController:!0})),re(document).appendChild(k),new Promise(Ue=>(0,j.c)(k,Ue))}):Promise.resolve(),ye='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',De=(Re,H)=>{let k=Re.querySelector(ye);const Ue=null==k?void 0:k.shadowRoot;Ue&&(k=Ue.querySelector(ye)||k),k?(0,j.f)(k):H.focus()},me=(Re,H)=>{const k=Array.from(Re.querySelectorAll(ye));let Ue=k.length>0?k[k.length-1]:null;const it=null==Ue?void 0:Ue.shadowRoot;it&&(Ue=it.querySelector(ye)||Ue),Ue?Ue.focus():H.focus()},Pe=Re=>{0===U&&(U=1,Re.addEventListener("focus",H=>{((Re,H)=>{const k=Te(H,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover"),Ue=Re.target;k&&Ue&&!k.classList.contains("ion-disable-focus-trap")&&(k.shadowRoot?(()=>{if(k.contains(Ue))k.lastFocus=Ue;else{const lt=k.lastFocus;De(k,k),lt===H.activeElement&&me(k,k),k.lastFocus=H.activeElement}})():(()=>{if(k===Ue)k.lastFocus=void 0;else{const lt=(0,j.g)(k);if(!lt.contains(Ue))return;const Mt=lt.querySelector(".ion-overlay-wrapper");if(!Mt)return;if(Mt.contains(Ue))k.lastFocus=Ue;else{const Vt=k.lastFocus;De(Mt,k),Vt===H.activeElement&&me(Mt,k),k.lastFocus=H.activeElement}}})())})(H,Re)},!0),Re.addEventListener("ionBackButton",H=>{const k=Te(Re);(null==k?void 0:k.backdropDismiss)&&H.detail.register(D.OVERLAY_BACK_BUTTON_PRIORITY,()=>k.dismiss(void 0,Ae))}),Re.addEventListener("keyup",H=>{if("Escape"===H.key){const k=Te(Re);(null==k?void 0:k.backdropDismiss)&&k.dismiss(void 0,Ae)}}))},je=(Re,H,k,Ue,it)=>{const qe=Te(Re,Ue,it);return qe?qe.dismiss(H,k):Promise.reject("overlay does not exist")},Te=(Re,H,k)=>{const Ue=((Re,H)=>(void 0===H&&(H="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(Re.querySelectorAll(H)).filter(k=>k.overlayIndex>0)))(Re,H).filter(it=>!(Re=>Re.classList.contains("overlay-hidden"))(it));return void 0===k?Ue[Ue.length-1]:Ue.find(it=>it.id===k)},J=(Re=!1)=>{const k=re(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");!k||(Re?k.setAttribute("aria-hidden","true"):k.removeAttribute("aria-hidden"))},We=function(){var Re=(0,r.Z)(function*(H,k,Ue,it,qe){var lt,Mt;if(H.presented)return;J(!0),H.presented=!0,H.willPresent.emit(),null===(lt=H.willPresentShorthand)||void 0===lt||lt.emit();const Vt=(0,m.b)(H),Zt=H.enterAnimation?H.enterAnimation:m.c.get(k,"ios"===Vt?Ue:it);(yield z(H,Zt,H.el,qe))&&(H.didPresent.emit(),null===(Mt=H.didPresentShorthand)||void 0===Mt||Mt.emit()),"ION-TOAST"!==H.el.tagName&&Be(H.el),H.keyboardClose&&(null===document.activeElement||!H.el.contains(document.activeElement))&&H.el.focus()});return function(k,Ue,it,qe,lt){return Re.apply(this,arguments)}}(),Be=function(){var Re=(0,r.Z)(function*(H){let k=document.activeElement;if(!k)return;const Ue=null==k?void 0:k.shadowRoot;Ue&&(k=Ue.querySelector(ye)||k),yield H.onDidDismiss(),k.focus()});return function(k){return Re.apply(this,arguments)}}(),we=function(){var Re=(0,r.Z)(function*(H,k,Ue,it,qe,lt,Mt){var Vt,Zt;if(!H.presented)return!1;J(!1),H.presented=!1;try{H.el.style.setProperty("pointer-events","none"),H.willDismiss.emit({data:k,role:Ue}),null===(Vt=H.willDismissShorthand)||void 0===Vt||Vt.emit({data:k,role:Ue});const Nt=(0,m.b)(H),wn=H.leaveAnimation?H.leaveAnimation:m.c.get(it,"ios"===Nt?qe:lt);Ue!==be&&(yield z(H,wn,H.el,Mt)),H.didDismiss.emit({data:k,role:Ue}),null===(Zt=H.didDismissShorthand)||void 0===Zt||Zt.emit({data:k,role:Ue}),V.delete(H),H.el.classList.add("overlay-hidden"),H.el.style.removeProperty("pointer-events"),void 0!==H.el.lastFocus&&(H.el.lastFocus=void 0)}catch(Nt){console.error(Nt)}return H.el.remove(),!0});return function(k,Ue,it,qe,lt,Mt,Vt){return Re.apply(this,arguments)}}(),re=Re=>Re.querySelector("ion-app")||Re.body,z=function(){var Re=(0,r.Z)(function*(H,k,Ue,it){Ue.classList.remove("overlay-hidden");const lt=k(H.el,it);(!H.animated||!m.c.getBoolean("animated",!0))&&lt.duration(0),H.keyboardClose&&lt.beforeAddWrite(()=>{const Vt=Ue.ownerDocument.activeElement;(null==Vt?void 0:Vt.matches("input,ion-input, ion-textarea"))&&Vt.blur()});const Mt=V.get(H)||[];return V.set(H,[...Mt,lt]),yield lt.play(),!0});return function(k,Ue,it,qe){return Re.apply(this,arguments)}}(),N=(Re,H)=>{let k;const Ue=new Promise(it=>k=it);return pe(Re,H,it=>{k(it.detail)}),Ue},pe=(Re,H,k)=>{const Ue=it=>{(0,j.b)(Re,H,Ue),k(it)};(0,j.a)(Re,H,Ue)},ve=Re=>"cancel"===Re||Re===Ae,le=Re=>Re(),he=(Re,H)=>{if("function"==typeof Re)return m.c.get("_zoneGate",le)(()=>{try{return Re(H)}catch(Ue){throw Ue}})},Ae="backdrop",be="gesture"},5111:(Ct,ae,p)=>{"use strict";p.d(ae,{Z:()=>V});var r=p(2340);const{api_domain:m,cms_domain:D}=r.N.api,j=r.N.lifemag.domain,V={announcement:D+"/[lang]/api/news/mgh",popular:m+"/api/front/template/popular",latest:m+"/api/front/template/latest",bcms_menu:D+"/[lang]/menu/mgh-hashtag-",floating_menu:D+"/[lang]/menu/mgh-merchants-floating-menu",front_menu:D+"/[lang]/menu/ecoupon_front_menu",home_banner:D+"/[lang]/slider/mgh_home_banners",merchant_banner:D+"/[lang]/slider/mgh-front-[menu]-banners",areas:D+"/[lang]/menu/mgh-areas",home_nav:D+"/[lang]/slider/mgh_home_nav",redeem_banner:D+"/[lang]/slider/mgh_redeem_banner",account_menu:D+"/[lang]/menu/macauduck_account_menu",static:D+"/[lang]/sitecontent",statics:D+"/[lang]/sitecontent/macauduck_statics",search:m+"/api/search",template:m+"/api/front/template",iap_availability:m+"/api/ecoupon/template/iap",coupon:m+"/api/ecoupon/coupon",send_sms:m+"/api/user/sendVerifySMS/v2",sms_login:m+"/api/user/validateSMS",oauth:m+"/api/user/oauth",wallet:m+"/api/ecoupon/wallet",wallet_number:m+"/api/ecoupon/wallet/number",user:m+"/api/user",username:m+"/api/user/username",icon:m+"/api/user/icon",nearby:m+"/api/search/nearby",version:m+"/version/versioning.json",merchant:m+"/api/front/merchant",merchants:m+"/api/search/merchants",merchantTemplate:m+"/api/front/merchant/templates",merchant_template_top5:m+"/api/front/merchant/templates/top5",merchantBranches:m+"/api/front/merchant/branches",couponTemplate:m+"/api/ecoupon/template",ctm_oauth:m+"/api/user/buddy/oauth",theme:m+"/api/front/theme",event:m+"/api/front/event",list:m+"/api/front/list",token:m+"/api/ecoupon/token/register",outlet:m+"/api/front/outlet",tags:m+"/api/front/tags",lifemag_articles:j+"/[lang]/api/lifemag",popular_searchtags:m+"/api/front/searchtags",lifemag_content:j+"/zh_TW/api/lifemag",hashtags:m+"/api/front/hashtags",epos:m+"/api/front/epos",game_menu:D+"/[lang]/menu/mgh-games",nfts:m+"/api/user/nft",nft:m+"/api/front/nft"}},9822:(Ct,ae,p)=>{"use strict";p.d(ae,{R:()=>j});var r=p(7423),m=p(2096),D=p(8008);let j=(()=>{class U{constructor(P){this.platform=P}isApp(){return r.dV.isNativePlatform()}isMobile(){return this.platform.is("mobile")&&this.platform.is("mobileweb")}isIOSApp(){return this.platform.is("ios")&&!this.platform.is("mobileweb")}isAndroidApp(){return this.platform.is("android")&&!this.platform.is("mobileweb")}isDesktop(){return this.platform.is("desktop")}isBuddy(){var P,F,q,Q,ee;return!(!(null===(q=null===(F=null===(P=window)||void 0===P?void 0:P.webkit)||void 0===F?void 0:F.messageHandlers)||void 0===q?void 0:q.getChannel)&&!(null===(ee=null===(Q=window)||void 0===Q?void 0:Q.android)||void 0===ee?void 0:ee.getChannel()))}}return U.\u0275fac=function(P){return new(P||U)(m.LFG(D.t4))},U.\u0275prov=m.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})()},8548:(Ct,ae,p)=>{"use strict";p.d(ae,{O:()=>Fn});var Le,r=p(5861),m=p(491),j=(p(724),function(){function Le(){var ge=this;this.platform="web",this.isNative=!1,this.Plugins={},"undefined"!=typeof Proxy&&(this.Plugins=new Proxy(this.Plugins,{get:function($,de){if(void 0===$[de]){var Ie=ge;return new Proxy({},{get:function(Ve,dt){return void 0===Ve[dt]?Ie.pluginMethodNoop.bind(Ie,Ve,dt,de):Ve[dt]}})}return $[de]}}))}return Le.prototype.pluginMethodNoop=function(ge,$,de){return Promise.reject(de+" does not have web implementation.")},Le.prototype.getPlatform=function(){return this.platform},Le.prototype.isPluginAvailable=function(ge){return this.Plugins.hasOwnProperty(ge)},Le.prototype.convertFileSrc=function(ge){return ge},Le.prototype.handleError=function(ge){console.error(ge)},Le}()),V=((Le="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).Capacitor=Le.Capacitor||new j).Plugins,P=function(){function Le(){this.plugins={},this.loadedPlugins={}}return Le.prototype.addPlugin=function(ge){this.plugins[ge.config.name]=ge},Le.prototype.getPlugin=function(ge){return this.plugins[ge]},Le.prototype.loadPlugin=function(ge){var $=this.getPlugin(ge);$?$.load():console.error("Unable to load web plugin "+ge+", no such plugin found.")},Le.prototype.getPlugins=function(){var ge=[];for(var $ in this.plugins)ge.push(this.plugins[$]);return ge},Le}(),F=new P,q=function(){function Le(ge,$){this.config=ge,this.loaded=!1,this.listeners={},this.windowListeners={},$?$.addPlugin(this):F.addPlugin(this)}return Le.prototype.addWindowListener=function(ge){window.addEventListener(ge.windowEventName,ge.handler),ge.registered=!0},Le.prototype.removeWindowListener=function(ge){!ge||(window.removeEventListener(ge.windowEventName,ge.handler),ge.registered=!1)},Le.prototype.addListener=function(ge,$){var de=this;this.listeners[ge]||(this.listeners[ge]=[]),this.listeners[ge].push($);var Ve=this.windowListeners[ge];return Ve&&!Ve.registered&&this.addWindowListener(Ve),{remove:function(){de.removeListener(ge,$)}}},Le.prototype.removeListener=function(ge,$){var de=this.listeners[ge];if(de){var Ie=de.indexOf($);this.listeners[ge].splice(Ie,1),this.listeners[ge].length||this.removeWindowListener(this.windowListeners[ge])}},Le.prototype.removeAllListeners=function(){for(var ge in this.listeners={},this.windowListeners)this.removeWindowListener(this.windowListeners[ge]);this.windowListeners={}},Le.prototype.notifyListeners=function(ge,$){var de=this.listeners[ge];de&&de.forEach(function(Ie){return Ie($)})},Le.prototype.hasListeners=function(ge){return!!this.listeners[ge].length},Le.prototype.registerWindowListener=function(ge,$){var de=this;this.windowListeners[$]={registered:!1,windowEventName:ge,pluginEventName:$,handler:function(Ie){de.notifyListeners($,Ie)}}},Le.prototype.requestPermissions=function(){return Capacitor.isNative?Capacitor.nativePromise(this.config.name,"requestPermissions",{}):Promise.resolve({results:[]})},Le.prototype.load=function(){this.loaded=!0},Le}(),ne=function(Le,ge){Le.hasOwnProperty(ge.config.name)&&!function(Le){return Le.config.platforms&&Le.config.platforms.indexOf(Capacitor.platform)>=0}(ge)||(Le[ge.config.name]=ge)},Y=function(Le,ge){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,de){$.__proto__=de}||function($,de){for(var Ie in de)de.hasOwnProperty(Ie)&&($[Ie]=de[Ie])})(Le,ge)};function ce(Le,ge){function $(){this.constructor=Le}Y(Le,ge),Le.prototype=null===ge?Object.create(ge):($.prototype=ge.prototype,new $)}function me(Le,ge,$,de){return new($||($=Promise))(function(Ve,dt){function _t(xt){try{Rt(de.next(xt))}catch(en){dt(en)}}function Gt(xt){try{Rt(de.throw(xt))}catch(en){dt(en)}}function Rt(xt){xt.done?Ve(xt.value):function Ie(Ve){return Ve instanceof $?Ve:new $(function(dt){dt(Ve)})}(xt.value).then(_t,Gt)}Rt((de=de.apply(Le,ge||[])).next())})}function ze(Le,ge){var de,Ie,Ve,dt,$={label:0,sent:function(){if(1&Ve[0])throw Ve[1];return Ve[1]},trys:[],ops:[]};return dt={next:_t(0),throw:_t(1),return:_t(2)},"function"==typeof Symbol&&(dt[Symbol.iterator]=function(){return this}),dt;function _t(Rt){return function(xt){return function Gt(Rt){if(de)throw new TypeError("Generator is already executing.");for(;$;)try{if(de=1,Ie&&(Ve=2&Rt[0]?Ie.return:Rt[0]?Ie.throw||((Ve=Ie.return)&&Ve.call(Ie),0):Ie.next)&&!(Ve=Ve.call(Ie,Rt[1])).done)return Ve;switch(Ie=0,Ve&&(Rt=[2&Rt[0],Ve.value]),Rt[0]){case 0:case 1:Ve=Rt;break;case 4:return $.label++,{value:Rt[1],done:!1};case 5:$.label++,Ie=Rt[1],Rt=[0];continue;case 7:Rt=$.ops.pop(),$.trys.pop();continue;default:if(!(Ve=(Ve=$.trys).length>0&&Ve[Ve.length-1])&&(6===Rt[0]||2===Rt[0])){$=0;continue}if(3===Rt[0]&&(!Ve||Rt[1]>Ve[0]&&Rt[1]<Ve[3])){$.label=Rt[1];break}if(6===Rt[0]&&$.label<Ve[1]){$.label=Ve[1],Ve=Rt;break}if(Ve&&$.label<Ve[2]){$.label=Ve[2],$.ops.push(Rt);break}Ve[2]&&$.ops.pop(),$.trys.pop();continue}Rt=ge.call(Le,$)}catch(xt){Rt=[6,xt],Ie=0}finally{de=Ve=0}if(5&Rt[0])throw Rt[1];return{value:Rt[0]?Rt[1]:void 0,done:!0}}([Rt,xt])}}}var Ae=function(Le){function ge(){return Le.call(this,{name:"Accessibility",platforms:["web"]})||this}return ce(ge,Le),ge.prototype.isScreenReaderEnabled=function(){throw new Error("Feature not available in the browser")},ge.prototype.speak=function($){if(!("speechSynthesis"in window))return Promise.reject("Browser does not support the Speech Synthesis API");var de=new SpeechSynthesisUtterance($.value);return $.language&&(de.lang=$.language),window.speechSynthesis.speak(de),Promise.resolve()},ge}(q),Re=(new Ae,function(Le){function ge(){var $=Le.call(this,{name:"App",platforms:["web"]})||this;return"undefined"!=typeof document&&document.addEventListener("visibilitychange",$.handleVisibilityChange.bind($),!1),$}return ce(ge,Le),ge.prototype.exitApp=function(){throw new Error("Method not implemented.")},ge.prototype.canOpenUrl=function($){return Promise.resolve({value:!0})},ge.prototype.openUrl=function($){return Promise.resolve({completed:!0})},ge.prototype.getLaunchUrl=function(){return Promise.resolve({url:""})},ge.prototype.getState=function(){return Promise.resolve({isActive:!0!==document.hidden})},ge.prototype.handleVisibilityChange=function(){var $={isActive:!0!==document.hidden};this.notifyListeners("appStateChange",$)},ge}(q)),k=(new Re,function(Le){function ge(){return Le.call(this,{name:"Browser",platforms:["web"]})||this}return ce(ge,Le),ge.prototype.open=function($){return me(this,void 0,void 0,function(){return ze(this,function(de){return this._lastWindow=window.open($.url,$.windowName||"_blank"),[2,Promise.resolve()]})})},ge.prototype.prefetch=function($){return me(this,void 0,void 0,function(){return ze(this,function(de){return[2,Promise.resolve()]})})},ge.prototype.close=function(){return me(this,void 0,void 0,function(){return ze(this,function($){return this._lastWindow&&this._lastWindow.close(),[2,Promise.resolve()]})})},ge}(q)),it=(new k,(()=>(function(Le){Le.Prompt="PROMPT",Le.Camera="CAMERA",Le.Photos="PHOTOS"}(it||(it={})),it))()),qe=(()=>(function(Le){Le.Rear="REAR",Le.Front="FRONT"}(qe||(qe={})),qe))(),lt=(()=>(function(Le){Le.Uri="uri",Le.Base64="base64",Le.DataUrl="dataUrl"}(lt||(lt={})),lt))(),Mt=(()=>(function(Le){Le.Documents="DOCUMENTS",Le.Data="DATA",Le.Cache="CACHE",Le.External="EXTERNAL",Le.ExternalStorage="EXTERNAL_STORAGE"}(Mt||(Mt={})),Mt))(),xe=(()=>(function(Le){Le.Camera="camera",Le.Photos="photos",Le.Geolocation="geolocation",Le.Notifications="notifications",Le.ClipboardRead="clipboard-read",Le.ClipboardWrite="clipboard-write",Le.Microphone="microphone"}(xe||(xe={})),xe))(),_e=function(Le){function ge(){return Le.call(this,{name:"Camera",platforms:["web"]})||this}return ce(ge,Le),ge.prototype.getPhoto=function($){return me(this,void 0,void 0,function(){var de=this;return ze(this,function(Ie){return[2,new Promise(function(Ve,dt){return me(de,void 0,void 0,function(){var _t,Rt=this;return ze(this,function(xt){switch(xt.label){case 0:return $.webUseInput?(this.fileInputExperience($,Ve),[3,7]):[3,1];case 1:if(!customElements.get("pwa-camera-modal"))return[3,6];_t=document.createElement("pwa-camera-modal"),document.body.appendChild(_t),xt.label=2;case 2:return xt.trys.push([2,4,,5]),[4,_t.componentOnReady()];case 3:return xt.sent(),_t.addEventListener("onPhoto",function(en){return me(Rt,void 0,void 0,function(){var jt,tn;return ze(this,function(fn){switch(fn.label){case 0:return null!==(jt=en.detail)?[3,1]:(dt("User cancelled photos app"),[3,4]);case 1:return jt instanceof Error?(dt(jt.message),[3,4]):[3,2];case 2:return tn=Ve,[4,this._getCameraPhoto(jt,$)];case 3:tn.apply(void 0,[fn.sent()]),fn.label=4;case 4:return _t.dismiss(),document.body.removeChild(_t),[2]}})})}),_t.present(),[3,5];case 4:return xt.sent(),this.fileInputExperience($,Ve),[3,5];case 5:return[3,7];case 6:console.error("Unable to load PWA Element 'pwa-camera-modal'. See the docs: https://capacitorjs.com/docs/pwa-elements."),this.fileInputExperience($,Ve),xt.label=7;case 7:return[2]}})})})]})})},ge.prototype.fileInputExperience=function($,de){var Ie=document.querySelector("#_capacitor-camera-input"),Ve=function(){Ie.parentNode&&Ie.parentNode.removeChild(Ie)};Ie||((Ie=document.createElement("input")).id="_capacitor-camera-input",Ie.type="file",document.body.appendChild(Ie)),Ie.accept="image/*",Ie.capture=!0,$.source===it.Photos||$.source===it.Prompt?Ie.removeAttribute("capture"):$.direction===qe.Front?Ie.capture="user":$.direction===qe.Rear&&(Ie.capture="environment"),Ie.addEventListener("change",function(dt){var _t=Ie.files[0],Gt="jpeg";if("image/png"===_t.type?Gt="png":"image/gif"===_t.type&&(Gt="gif"),$.resultType===lt.DataUrl||$.resultType===lt.Base64){var Rt=new FileReader;Rt.addEventListener("load",function(){if($.resultType===lt.DataUrl)de({dataUrl:Rt.result,format:Gt});else if($.resultType===lt.Base64){var xt=Rt.result.split(",")[1];de({base64String:xt,format:Gt})}Ve()}),Rt.readAsDataURL(_t)}else de({webPath:URL.createObjectURL(_t),format:Gt}),Ve()}),Ie.click()},ge.prototype._getCameraPhoto=function($,de){return new Promise(function(Ie,Ve){var dt=new FileReader,_t=$.type.split("/")[1];de.resultType===lt.Uri?Ie({webPath:URL.createObjectURL($),format:_t}):(dt.readAsDataURL($),dt.onloadend=function(){var Gt=dt.result;Ie(de.resultType===lt.DataUrl?{dataUrl:Gt,format:_t}:{base64String:Gt.split(",")[1],format:_t})},dt.onerror=function(Gt){Ve(Gt)})})},ge}(q),Je=(new _e,function(Le){function ge(){return Le.call(this,{name:"Clipboard",platforms:["web"]})||this}return ce(ge,Le),ge.prototype.write=function($){return me(this,void 0,void 0,function(){var de,Ie,dt;return ze(this,function(_t){switch(_t.label){case 0:return navigator.clipboard?void 0!==$.string||$.url?navigator.clipboard.writeText?[4,navigator.clipboard.writeText(void 0!==$.string?$.string:$.url)]:[2,Promise.reject("Writting to clipboard not supported in this browser")]:[3,2]:[2,Promise.reject("Clipboard API not available in this browser")];case 1:return _t.sent(),[3,10];case 2:if(!$.image)return[3,9];if(!navigator.clipboard.write)return[2,Promise.reject("Setting images not supported in this browser")];_t.label=3;case 3:return _t.trys.push([3,7,,8]),[4,fetch($.image)];case 4:return[4,_t.sent().blob()];case 5:return de=_t.sent(),Ie=new ClipboardItem(((dt={})[de.type]=de,dt)),[4,navigator.clipboard.write([Ie])];case 6:return _t.sent(),[3,8];case 7:return _t.sent(),[2,Promise.reject("Failed to write image")];case 8:return[3,10];case 9:return[2,Promise.reject("Nothing to write")];case 10:return[2,Promise.resolve()]}})})},ge.prototype.read=function(){return me(this,void 0,void 0,function(){var $,de,Ie,Ve;return ze(this,function(_t){switch(_t.label){case 0:return navigator.clipboard?navigator.clipboard.read?[3,1]:navigator.clipboard.readText?[2,this.readText()]:[2,Promise.reject("Reading from clipboard not supported in this browser")]:[2,Promise.reject("Clipboard API not available in this browser")];case 1:return _t.trys.push([1,5,,6]),[4,navigator.clipboard.read()];case 2:return[4,($=_t.sent())[0].getType(de=$[0].types[0])];case 3:return Ie=_t.sent(),[4,this._getBlobData(Ie,de)];case 4:return Ve=_t.sent(),[2,Promise.resolve({value:Ve,type:de})];case 5:return _t.sent(),[2,this.readText()];case 6:return[2]}})})},ge.prototype.readText=function(){return me(this,void 0,void 0,function(){var $;return ze(this,function(de){switch(de.label){case 0:return[4,navigator.clipboard.readText()];case 1:return $=de.sent(),[2,Promise.resolve({value:$,type:"text/plain"})]}})})},ge.prototype._getBlobData=function($,de){return new Promise(function(Ie,Ve){var dt=new FileReader;de.includes("image")?dt.readAsDataURL($):dt.readAsText($),dt.onloadend=function(){Ie(dt.result)},dt.onerror=function(_t){Ve(_t)}})},ge}(q)),oe=(new Je,function(Le){function ge(){var $=Le.call(this,{name:"Filesystem",platforms:["web"]})||this;return $.DEFAULT_DIRECTORY=Mt.Data,$.DB_VERSION=1,$.DB_NAME="Disc",$._writeCmds=["add","put","delete"],$}return ce(ge,Le),ge.prototype.initDb=function(){return me(this,void 0,void 0,function(){var $=this;return ze(this,function(de){if(void 0!==this._db)return[2,this._db];if(!("indexedDB"in window))throw new Error("This browser doesn't support IndexedDB");return[2,new Promise(function(Ie,Ve){var dt=indexedDB.open($.DB_NAME,$.DB_VERSION);dt.onupgradeneeded=ge.doUpgrade,dt.onsuccess=function(){$._db=dt.result,Ie(dt.result)},dt.onerror=function(){return Ve(dt.error)},dt.onblocked=function(){console.warn("db blocked")}})]})})},ge.doUpgrade=function($){var Ie=$.target.result;Ie.objectStoreNames.contains("FileStorage")&&Ie.deleteObjectStore("FileStorage"),Ie.createObjectStore("FileStorage",{keyPath:"path"}).createIndex("by_folder","folder")},ge.prototype.dbRequest=function($,de){return me(this,void 0,void 0,function(){var Ie;return ze(this,function(Ve){return Ie=-1!==this._writeCmds.indexOf($)?"readwrite":"readonly",[2,this.initDb().then(function(dt){return new Promise(function(_t,Gt){var xt=dt.transaction(["FileStorage"],Ie).objectStore("FileStorage"),en=xt[$].apply(xt,de);en.onsuccess=function(){return _t(en.result)},en.onerror=function(){return Gt(en.error)}})})]})})},ge.prototype.dbIndexRequest=function($,de,Ie){return me(this,void 0,void 0,function(){var Ve;return ze(this,function(dt){return Ve=-1!==this._writeCmds.indexOf(de)?"readwrite":"readonly",[2,this.initDb().then(function(_t){return new Promise(function(Gt,Rt){var jt=_t.transaction(["FileStorage"],Ve).objectStore("FileStorage").index($),tn=jt[de].apply(jt,Ie);tn.onsuccess=function(){return Gt(tn.result)},tn.onerror=function(){return Rt(tn.error)}})})]})})},ge.prototype.getPath=function($,de){$=$||this.DEFAULT_DIRECTORY;var Ie=void 0!==de?de.replace(/^[/]+|[/]+$/g,""):"",Ve="/"+$;return""!==de&&(Ve+="/"+Ie),Ve},ge.prototype.clear=function(){return me(this,void 0,void 0,function(){var $;return ze(this,function(Ve){switch(Ve.label){case 0:return[4,this.initDb()];case 1:return $=Ve.sent(),$.transaction(["FileStorage"],"readwrite").objectStore("FileStorage").clear(),[2,{}]}})})},ge.prototype.readFile=function($){return me(this,void 0,void 0,function(){var de,Ie;return ze(this,function(Ve){switch(Ve.label){case 0:return de=this.getPath($.directory,$.path),[4,this.dbRequest("get",[de])];case 1:if(void 0===(Ie=Ve.sent()))throw Error("File does not exist.");return[2,{data:Ie.content}]}})})},ge.prototype.writeFile=function($){return me(this,void 0,void 0,function(){var de,Ie,Ve,dt,_t,Gt,xt,en,jt,tn;return ze(this,function(fn){switch(fn.label){case 0:return de=this.getPath($.directory,$.path),Ie=$.data,Ve=$.recursive,[4,this.dbRequest("get",[de])];case 1:if((dt=fn.sent())&&"directory"===dt.type)throw"The supplied path is a directory.";return _t=$.encoding,Gt=de.substr(0,de.lastIndexOf("/")),[4,this.dbRequest("get",[Gt])];case 2:return void 0!==fn.sent()||-1===(xt=Gt.indexOf("/",1))?[3,4]:(en=Gt.substr(xt),[4,this.mkdir({path:en,directory:$.directory,recursive:Ve})]);case 3:fn.sent(),fn.label=4;case 4:return jt=Date.now(),tn={path:de,folder:Gt,type:"file",size:Ie.length,ctime:jt,mtime:jt,content:!_t&&Ie.indexOf(",")>=0?Ie.split(",")[1]:Ie},[4,this.dbRequest("put",[tn])];case 5:return fn.sent(),[2,{uri:tn.path}]}})})},ge.prototype.appendFile=function($){return me(this,void 0,void 0,function(){var de,Ie,Ve,dt,_t,Gt,xt,en;return ze(this,function(tn){switch(tn.label){case 0:return de=this.getPath($.directory,$.path),Ie=$.data,Ve=de.substr(0,de.lastIndexOf("/")),dt=Date.now(),_t=dt,[4,this.dbRequest("get",[de])];case 1:if((Gt=tn.sent())&&"directory"===Gt.type)throw"The supplied path is a directory.";return[4,this.dbRequest("get",[Ve])];case 2:return void 0!==tn.sent()||-1===(xt=Ve.indexOf("/",1))?[3,4]:(en=Ve.substr(xt),[4,this.mkdir({path:en,directory:$.directory,recursive:!0})]);case 3:tn.sent(),tn.label=4;case 4:return void 0!==Gt&&(Ie=Gt.content+Ie,_t=Gt.ctime),[4,this.dbRequest("put",[{path:de,folder:Ve,type:"file",size:Ie.length,ctime:_t,mtime:dt,content:Ie}])];case 5:return tn.sent(),[2,{}]}})})},ge.prototype.deleteFile=function($){return me(this,void 0,void 0,function(){var de;return ze(this,function(dt){switch(dt.label){case 0:return de=this.getPath($.directory,$.path),[4,this.dbRequest("get",[de])];case 1:if(void 0===dt.sent())throw Error("File does not exist.");return[4,this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(de)])];case 2:if(0!==dt.sent().length)throw Error("Folder is not empty.");return[4,this.dbRequest("delete",[de])];case 3:return dt.sent(),[2,{}]}})})},ge.prototype.mkdir=function($){return me(this,void 0,void 0,function(){var de,Ie,Ve,dt,_t,Gt,Rt,xt;return ze(this,function(jt){switch(jt.label){case 0:return de=this.getPath($.directory,$.path),Ie=$.recursive,Ve=de.substr(0,de.lastIndexOf("/")),dt=(de.match(/\//g)||[]).length,[4,this.dbRequest("get",[Ve])];case 1:return _t=jt.sent(),[4,this.dbRequest("get",[de])];case 2:if(Gt=jt.sent(),1===dt)throw Error("Cannot create Root directory");if(void 0!==Gt)throw Error("Current directory does already exist.");if(!Ie&&2!==dt&&void 0===_t)throw Error("Parent directory must exist");return Ie&&2!==dt&&void 0===_t?(Rt=Ve.substr(Ve.indexOf("/",1)),[4,this.mkdir({path:Rt,directory:$.directory,recursive:Ie})]):[3,4];case 3:jt.sent(),jt.label=4;case 4:return xt=Date.now(),[4,this.dbRequest("put",[{path:de,folder:Ve,type:"directory",size:0,ctime:xt,mtime:xt}])];case 5:return jt.sent(),[2,{}]}})})},ge.prototype.rmdir=function($){return me(this,void 0,void 0,function(){var de,Ie,Ve,dt,_t,Gt,Rt,xt,jt;return ze(this,function(fn){switch(fn.label){case 0:return Ve=$.recursive,dt=this.getPath(Ie=$.directory,de=$.path),[4,this.dbRequest("get",[dt])];case 1:if(void 0===(_t=fn.sent()))throw Error("Folder does not exist.");if("directory"!==_t.type)throw Error("Requested path is not a directory");return[4,this.readdir({path:de,directory:Ie})];case 2:if(0!==(Gt=fn.sent()).files.length&&!Ve)throw Error("Folder is not empty");Rt=0,xt=Gt.files,fn.label=3;case 3:return Rt<xt.length?[4,this.stat({path:jt=de+"/"+xt[Rt],directory:Ie})]:[3,9];case 4:return"file"!==fn.sent().type?[3,6]:[4,this.deleteFile({path:jt,directory:Ie})];case 5:return fn.sent(),[3,8];case 6:return[4,this.rmdir({path:jt,directory:Ie,recursive:Ve})];case 7:fn.sent(),fn.label=8;case 8:return Rt++,[3,3];case 9:return[4,this.dbRequest("delete",[dt])];case 10:return fn.sent(),[2,{}]}})})},ge.prototype.readdir=function($){return me(this,void 0,void 0,function(){var de,Ie;return ze(this,function(_t){switch(_t.label){case 0:return de=this.getPath($.directory,$.path),[4,this.dbRequest("get",[de])];case 1:if(Ie=_t.sent(),""!==$.path&&void 0===Ie)throw Error("Folder does not exist.");return[4,this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(de)])];case 2:return[2,{files:_t.sent().map(function(Gt){return Gt.substring(de.length+1)})}]}})})},ge.prototype.getUri=function($){return me(this,void 0,void 0,function(){var de,Ie;return ze(this,function(Ve){switch(Ve.label){case 0:return de=this.getPath($.directory,$.path),[4,this.dbRequest("get",[de])];case 1:return void 0!==(Ie=Ve.sent())?[3,3]:[4,this.dbRequest("get",[de+"/"])];case 2:Ie=Ve.sent(),Ve.label=3;case 3:if(void 0===Ie)throw Error("Entry does not exist.");return[2,{uri:Ie.path}]}})})},ge.prototype.stat=function($){return me(this,void 0,void 0,function(){var de,Ie;return ze(this,function(Ve){switch(Ve.label){case 0:return de=this.getPath($.directory,$.path),[4,this.dbRequest("get",[de])];case 1:return void 0!==(Ie=Ve.sent())?[3,3]:[4,this.dbRequest("get",[de+"/"])];case 2:Ie=Ve.sent(),Ve.label=3;case 3:if(void 0===Ie)throw Error("Entry does not exist.");return[2,{type:Ie.type,size:Ie.size,ctime:Ie.ctime,mtime:Ie.mtime,uri:Ie.path}]}})})},ge.prototype.rename=function($){return me(this,void 0,void 0,function(){return ze(this,function(de){return[2,this._copy($,!0)]})})},ge.prototype.copy=function($){return me(this,void 0,void 0,function(){return ze(this,function(de){return[2,this._copy($,!1)]})})},ge.prototype._copy=function($,de){return void 0===de&&(de=!1),me(this,void 0,void 0,function(){var Ie,Ve,dt,_t,Gt,Rt,xt,jt,tn,Lt,ln,jn,Ln,Gn,Dn,ir,cr=this;return ze(this,function(L){switch(L.label){case 0:if(Ve=$.from,dt=$.directory,_t=$.toDirectory,!(Ie=$.to)||!Ve)throw Error("Both to and from must be provided");if(_t||(_t=dt),Gt=this.getPath(dt,Ve),Rt=this.getPath(_t,Ie),Gt===Rt)return[2,{}];if(Rt.startsWith(Gt))throw Error("To path cannot contain the from path");L.label=1;case 1:return L.trys.push([1,3,,6]),[4,this.stat({path:Ie,directory:_t})];case 2:return xt=L.sent(),[3,6];case 3:return L.sent(),(jt=Ie.split("/")).pop(),tn=jt.join("/"),jt.length>0?[4,this.stat({path:tn,directory:_t})]:[3,5];case 4:if("directory"!==L.sent().type)throw new Error("Parent directory of the to path is a file");L.label=5;case 5:return[3,6];case 6:if(xt&&"directory"===xt.type)throw new Error("Cannot overwrite a directory with a file");return[4,this.stat({path:Ve,directory:dt})];case 7:switch(Lt=L.sent(),ln=function(Ce,et,rt){return me(cr,void 0,void 0,function(){var pt,fe;return ze(this,function(Ke){switch(Ke.label){case 0:return pt=this.getPath(_t,Ce),[4,this.dbRequest("get",[pt])];case 1:return(fe=Ke.sent()).ctime=et,fe.mtime=rt,[4,this.dbRequest("put",[fe])];case 2:return Ke.sent(),[2]}})})},Lt.type){case"file":return[3,8];case"directory":return[3,15]}return[3,28];case 8:return[4,this.readFile({path:Ve,directory:dt})];case 9:return jn=L.sent(),de?[4,this.deleteFile({path:Ve,directory:dt})]:[3,11];case 10:L.sent(),L.label=11;case 11:return[4,this.writeFile({path:Ie,directory:_t,data:jn.data})];case 12:return L.sent(),de?[4,ln(Ie,Lt.ctime,Lt.mtime)]:[3,14];case 13:L.sent(),L.label=14;case 14:return[2,{}];case 15:if(xt)throw Error("Cannot move a directory over an existing object");L.label=16;case 16:return L.trys.push([16,20,,21]),[4,this.mkdir({path:Ie,directory:_t,recursive:!1})];case 17:return L.sent(),de?[4,ln(Ie,Lt.ctime,Lt.mtime)]:[3,19];case 18:L.sent(),L.label=19;case 19:return[3,21];case 20:return L.sent(),[3,21];case 21:return[4,this.readdir({path:Ve,directory:dt})];case 22:Ln=L.sent().files,Gn=0,Dn=Ln,L.label=23;case 23:return Gn<Dn.length?[4,this._copy({from:Ve+"/"+(ir=Dn[Gn]),to:Ie+"/"+ir,directory:dt,toDirectory:_t},de)]:[3,26];case 24:L.sent(),L.label=25;case 25:return Gn++,[3,23];case 26:return de?[4,this.rmdir({path:Ve,directory:dt})]:[3,28];case 27:L.sent(),L.label=28;case 28:return[2,{}]}})})},ge._debug=!0,ge}(q)),vt=(new oe,function(Le){for(var ge=[],$=1;$<arguments.length;$++)ge[$-1]=arguments[$];return ge.forEach(function(de){if(de&&"object"==typeof de)for(var Ie in de)de.hasOwnProperty(Ie)&&(Le[Ie]=de[Ie])}),Le}),St=function(Le){function ge(){return Le.call(this,{name:"Geolocation",platforms:["web"]})||this}return ce(ge,Le),ge.prototype.getCurrentPosition=function($){var de=this;return new Promise(function(Ie,Ve){return de.requestPermissions().then(function(dt){window.navigator.geolocation.getCurrentPosition(function(_t){Ie(_t)},function(_t){Ve(_t)},vt({enableHighAccuracy:!0,timeout:1e4,maximumAge:0},$))})})},ge.prototype.watchPosition=function($,de){return""+window.navigator.geolocation.watchPosition(function(Ve){de(Ve)},function(Ve){de(null,Ve)},vt({enableHighAccuracy:!0,timeout:1e4,maximumAge:0},$))},ge.prototype.clearWatch=function($){return window.navigator.geolocation.clearWatch(parseInt($.id,10)),Promise.resolve()},ge}(q),Ut=(new St,function(Le){function ge(){return Le.call(this,{name:"Device",platforms:["web"]})||this}return ce(ge,Le),ge.prototype.getInfo=function(){return me(this,void 0,void 0,function(){var $,de;return ze(this,function(Ie){return $=navigator.userAgent,de=this.parseUa($),[2,Promise.resolve({model:de.model,platform:"web",appVersion:"",appBuild:"",appId:"",appName:"",operatingSystem:de.operatingSystem,osVersion:de.osVersion,manufacturer:navigator.vendor,isVirtual:!1,uuid:this.getUid()})]})})},ge.prototype.getBatteryInfo=function(){return me(this,void 0,void 0,function(){var $;return ze(this,function(Ie){switch(Ie.label){case 0:$={},Ie.label=1;case 1:return Ie.trys.push([1,3,,4]),[4,navigator.getBattery()];case 2:return $=Ie.sent(),[3,4];case 3:return Ie.sent(),[3,4];case 4:return[2,Promise.resolve({batteryLevel:$.level,isCharging:$.charging})]}})})},ge.prototype.getLanguageCode=function(){return me(this,void 0,void 0,function(){return ze(this,function($){return[2,{value:navigator.language}]})})},ge.prototype.parseUa=function($){var de={},Ie=$.indexOf("(")+1,Ve=$.indexOf(") AppleWebKit");-1!==$.indexOf(") Gecko")&&(Ve=$.indexOf(") Gecko"));var dt=$.substring(Ie,Ve);if(-1!==$.indexOf("Android"))de.model=dt.replace("; wv","").split("; ").pop().split(" Build")[0],de.osVersion=dt.split("; ")[1];else if(de.model=dt.split("; ")[0],navigator.oscpu)de.osVersion=navigator.oscpu;else if(-1!==$.indexOf("Windows"))de.osVersion=dt;else{var _t=dt.split("; ").pop().replace(" like Mac OS X","").split(" ");de.osVersion=_t[_t.length-1].replace(/_/g,".")}return de.operatingSystem=/android/i.test($)?"android":/iPad|iPhone|iPod/.test($)&&!window.MSStream?"ios":/Win/.test($)?"windows":/Mac/i.test($)?"mac":"unknown",de},ge.prototype.getUid=function(){var $=window.localStorage.getItem("_capuid");return $||($="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(Le){var ge=16*Math.random()|0;return("x"===Le?ge:3&ge|8).toString(16)}),window.localStorage.setItem("_capuid",$),$)},ge}(q)),Nn=(new Ut,function(Le){function ge(){var $=Le.call(this,{name:"LocalNotifications",platforms:["web"]})||this;return $.pending=[],$}return ce(ge,Le),ge.prototype.createChannel=function($){throw new Error("Feature not available in the browser. "+$.id)},ge.prototype.deleteChannel=function($){throw new Error("Feature not available in the browser. "+$.id)},ge.prototype.listChannels=function(){throw new Error("Feature not available in the browser")},ge.prototype.sendPending=function(){var $=this,de=[],Ie=+new Date;this.pending.forEach(function(Ve){Ve.schedule&&Ve.schedule.at&&+Ve.schedule.at<=Ie&&($.buildNotification(Ve),de.push(Ve))}),console.log("Sent pending, removing",de),this.pending=this.pending.filter(function(Ve){return!de.find(function(dt){return dt===Ve})})},ge.prototype.sendNotification=function($){var de=this,Ie=$;if($.schedule&&$.schedule.at){var Ve=+$.schedule.at-+new Date;return this.pending.push(Ie),void setTimeout(function(){de.sendPending()},Ve)}this.buildNotification($)},ge.prototype.buildNotification=function($){return new Notification($.title,{body:$.body})},ge.prototype.schedule=function($){var de=this,Ie=[];return $.notifications.forEach(function(Ve){Ie.push(de.sendNotification(Ve))}),Promise.resolve({notifications:$.notifications.map(function(Ve){return{id:""+Ve.id}})})},ge.prototype.getPending=function(){return Promise.resolve({notifications:this.pending.map(function($){return{id:""+$.id}})})},ge.prototype.registerActionTypes=function($){throw new Error("Method not implemented.")},ge.prototype.cancel=function($){return console.log("Cancel these",$),this.pending=this.pending.filter(function(de){return!$.notifications.find(function(Ie){return Ie.id===""+de.id})}),Promise.resolve()},ge.prototype.areEnabled=function(){return Promise.resolve({value:"granted"===Notification.permission})},ge.prototype.requestPermission=function(){return new Promise(function($){Notification.requestPermission(function(de){var Ie=!0;("denied"===de||"default"===de)&&(Ie=!1),$({granted:Ie})})})},ge.prototype.requestPermissions=function(){return new Promise(function($,de){Notification.requestPermission(function(Ie){"denied"!==Ie&&"default"!==Ie?$({results:[Ie]}):de(Ie)})})},ge}(q)),bn=(new Nn,function(Le){function ge(){return Le.call(this,{name:"Share",platforms:["web"]})||this}return ce(ge,Le),ge.prototype.share=function($){return navigator.share?navigator.share({title:$.title,text:$.text,url:$.url}):Promise.reject("Web Share API not available")},ge}(q)),In=(new bn,function(Le){function ge(){return Le.call(this,{name:"Modals",platforms:["web"]})||this}return ce(ge,Le),ge.prototype.alert=function($){return me(this,void 0,void 0,function(){return ze(this,function(de){return window.alert($.message),[2,Promise.resolve()]})})},ge.prototype.prompt=function($){return me(this,void 0,void 0,function(){var de;return ze(this,function(Ie){return de=window.prompt($.message,$.inputText||""),[2,Promise.resolve({value:de,cancelled:null===de})]})})},ge.prototype.confirm=function($){return me(this,void 0,void 0,function(){var de;return ze(this,function(Ie){return de=window.confirm($.message),[2,Promise.resolve({value:de})]})})},ge.prototype.showActions=function($){return me(this,void 0,void 0,function(){var de=this;return ze(this,function(Ie){return[2,new Promise(function(Ve,dt){return me(de,void 0,void 0,function(){var _t,Gt=this;return ze(this,function(Rt){return(_t=document.querySelector("pwa-action-sheet"))||(_t=document.createElement("pwa-action-sheet"),document.body.appendChild(_t)),_t.header=$.title,_t.cancelable=!1,_t.options=$.options,_t.addEventListener("onSelection",function(xt){return me(Gt,void 0,void 0,function(){return ze(this,function(jt){return Ve({index:xt.detail}),[2]})})}),[2]})})})]})})},ge}(q)),gr=(new In,function(Le){function ge(){var $=Le.call(this,{name:"Motion"})||this;return $.registerWindowListener("devicemotion","accel"),$.registerWindowListener("deviceorientation","orientation"),$}return ce(ge,Le),ge}(q)),lr=(new gr,function(Le){function ge(){var $=Le.call(this,{name:"Network",platforms:["web"]})||this;return $.listenerFunction=null,$}return ce(ge,Le),ge.prototype.getStatus=function(){return new Promise(function($,de){if(window.navigator){var Ie=window.navigator.onLine,Ve=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection;$({connected:Ie,connectionType:Ie?Ve?Ve.type||Ve.effectiveType:"wifi":"none"})}else de("Network info not available")})},ge.prototype.addListener=function($,de){var Ve=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection,_t=de.bind(this,{connected:!0,connectionType:Ve?Ve.type||Ve.effectiveType:"wifi"}),Gt=de.bind(this,{connected:!1,connectionType:"none"});if(0===$.localeCompare("networkStatusChange"))return window.addEventListener("online",_t),window.addEventListener("offline",Gt),{remove:function(){window.removeEventListener("online",_t),window.removeEventListener("offline",Gt)}}},ge}(q)),nn=(new lr,function(Le){function ge(){return Le.call(this,{name:"Permissions"})||this}return ce(ge,Le),ge.prototype.query=function($){return me(this,void 0,void 0,function(){var de;return ze(this,function(dt){switch(dt.label){case 0:return(de=window.navigator).permissions?[4,de.permissions.query({name:$.name===xe.Photos?"camera":$.name})]:[2,Promise.reject("This browser does not support the Permissions API")];case 1:return[2,{state:dt.sent().state}]}})})},ge}(q)),Un=(new nn,function(Le){function ge(){return Le.call(this,{name:"SplashScreen",platforms:["web"]})||this}return ce(ge,Le),ge.prototype.show=function($,de){return Promise.resolve()},ge.prototype.hide=function($,de){return Promise.resolve()},ge}(q)),Zn=(new Un,function(Le){function ge(){var $=Le.call(this,{name:"Storage",platforms:["web"]})||this;return $.KEY_PREFIX="_cap_",$}return ce(ge,Le),ge.prototype.get=function($){var de=this;return new Promise(function(Ie,Ve){Ie({value:window.localStorage.getItem(de.makeKey($.key))})})},ge.prototype.set=function($){var de=this;return new Promise(function(Ie,Ve){window.localStorage.setItem(de.makeKey($.key),$.value),Ie()})},ge.prototype.remove=function($){var de=this;return new Promise(function(Ie,Ve){window.localStorage.removeItem(de.makeKey($.key)),Ie()})},ge.prototype.keys=function(){var $=this;return new Promise(function(de,Ie){de({keys:Object.keys(localStorage).filter(function(Ve){return $.isKey(Ve)}).map(function(Ve){return $.getKey(Ve)})})})},ge.prototype.clear=function(){var $=this;return new Promise(function(de,Ie){Object.keys(localStorage).filter(function(Ve){return $.isKey(Ve)}).forEach(function(Ve){return window.localStorage.removeItem(Ve)}),de()})},ge.prototype.makeKey=function($){return this.KEY_PREFIX+$},ge.prototype.isKey=function($){return 0===$.indexOf(this.KEY_PREFIX)},ge.prototype.getKey=function($){return $.substr(this.KEY_PREFIX.length)},ge}(q)),On=(new Zn,function(Le){function ge(){return Le.call(this,{name:"Toast",platforms:["web"]})||this}return ce(ge,Le),ge.prototype.show=function($){return me(this,void 0,void 0,function(){var de,Ie;return ze(this,function(Ve){return de=2e3,$.duration&&(de="long"===$.duration?3500:2e3),(Ie=document.createElement("pwa-toast")).duration=de,Ie.message=$.text,document.body.appendChild(Ie),[2]})})},ge}(q));new On,function(Le){for(var $=0,de=F.getPlugins();$<de.length;$++)ne(Le,de[$])}(V);var Ye=function(Le,ge,$,de){return new($||($=Promise))(function(Ve,dt){function _t(xt){try{Rt(de.next(xt))}catch(en){dt(en)}}function Gt(xt){try{Rt(de.throw(xt))}catch(en){dt(en)}}function Rt(xt){xt.done?Ve(xt.value):function Ie(Ve){return Ve instanceof $?Ve:new $(function(dt){dt(Ve)})}(xt.value).then(_t,Gt)}Rt((de=de.apply(Le,ge||[])).next())})};const nt=new class Ee extends q{constructor(){super({name:"FirebaseAnalytics",platforms:["web"]}),this.not_supported_mssg="This method is not supported",this.options_missing_mssg="Firebase options are missing",this.duplicate_app_mssg="Firebase app already exists",this.analytics_missing_mssg="Firebase analytics is not initialized. Make sure initializeFirebase() is called once",this.scripts=[{key:"firebase-app",src:"https://www.gstatic.com/firebasejs/8.2.3/firebase-app.js"},{key:"firebase-ac",src:"https://www.gstatic.com/firebasejs/8.2.3/firebase-analytics.js"}],this.ready=new Promise(ge=>this.readyResolver=ge),this.configure()}initializeFirebase(ge){return new Promise(($,de)=>Ye(this,void 0,void 0,function*(){if(yield this.ready,this.hasFirebaseInitialized())return void de(this.duplicate_app_mssg);if(!ge)return void de(this.options_missing_mssg);const Ie=window.firebase.initializeApp(ge);this.analyticsRef=Ie.analytics(),$(this.analyticsRef)}))}setUserId(ge){return new Promise(($,de)=>Ye(this,void 0,void 0,function*(){if(yield this.ready,!this.analyticsRef)return void de(this.analytics_missing_mssg);const{userId:Ie}=ge||{userId:void 0};Ie?(this.analyticsRef.setUserId(Ie),$()):de("userId property is missing")}))}setUserProperty(ge){return new Promise(($,de)=>Ye(this,void 0,void 0,function*(){if(yield this.ready,!this.analyticsRef)return void de(this.analytics_missing_mssg);const{name:Ie,value:Ve}=ge||{name:void 0,value:void 0};if(!Ie)return void de("name property is missing");if(!Ve)return void de("value property is missing");let dt={};dt[Ie]=Ve,this.analyticsRef.setUserProperties(dt),$()}))}getAppInstanceId(){return new Promise((ge,$)=>ge)}setScreenName(ge){return new Promise(($,de)=>$)}reset(){return new Promise((ge,$)=>ge)}logEvent(ge){return new Promise(($,de)=>Ye(this,void 0,void 0,function*(){if(yield this.ready,!this.analyticsRef)return void de(this.analytics_missing_mssg);const{name:Ie,params:Ve}=ge||{name:void 0,params:void 0};Ie?(this.analyticsRef.logEvent(Ie,Ve),$()):de("name property is missing")}))}setCollectionEnabled(ge){return new Promise(($,de)=>Ye(this,void 0,void 0,function*(){if(yield this.ready,!this.analyticsRef)return void de(this.analytics_missing_mssg);const{enabled:Ie}=ge||{enabled:!1};this.analyticsRef.setAnalyticsCollectionEnabled(Ie),$()}))}setSessionTimeoutDuration(ge){return new Promise(($,de)=>{de(this.not_supported_mssg)})}get remoteConfig(){return this.analyticsRef}enable(){return new Promise((ge,$)=>Ye(this,void 0,void 0,function*(){yield this.ready,this.analyticsRef?(this.analyticsRef.setAnalyticsCollectionEnabled(!0),ge()):$(this.analytics_missing_mssg)}))}disable(){return new Promise((ge,$)=>Ye(this,void 0,void 0,function*(){yield this.ready,this.analyticsRef?(this.analyticsRef.setAnalyticsCollectionEnabled(!1),ge()):$(this.analytics_missing_mssg)}))}configure(){return Ye(this,void 0,void 0,function*(){try{yield this.loadScripts(),window.firebase&&window.firebase.analytics&&this.hasFirebaseInitialized()&&(this.analyticsRef=window.firebase.analytics())}catch($){throw $}const ge=setInterval(()=>{!window.firebase||(clearInterval(ge),this.readyResolver())},50)})}loadScripts(){const ge=this.scripts[0],$=this.scripts[1];return new Promise((de,Ie)=>Ye(this,void 0,void 0,function*(){const Ve=this.scripts.map(dt=>dt.key);if(document.getElementById(Ve[0])&&document.getElementById(Ve[1]))return de();yield this.loadScript(ge.key,ge.src),yield this.loadScript($.key,$.src),de()}))}loadScript(ge,$){return new Promise((de,Ie)=>{const Ve=document.createElement("script");Ve.type="text/javascript",Ve.src=$,Ve.id=ge,Ve.onload=de,Ve.onerror=Ie,document.querySelector("head").appendChild(Ve)})}hasFirebaseInitialized(){if(!window.firebase)return!1;const ge=window.firebase.apps;return!(ge&&0===ge.length)}};!function(Le){ne(V,Le)}(nt);var Et=p(2096),Ht=p(9822);const sn={apiKey:"AIzaSyAPdwCCRVaspT_fMkrC8fLgwbfV0-PlX0w",authDomain:"macau-duck.firebaseapp.com",databaseURL:"https://macau-duck.firebaseio.com",projectId:"macau-duck",storageBucket:"macau-duck.appspot.com",messagingSenderId:"1068702649094",appId:"1:1068702649094:web:8ea21534cd29970d902c87",measurementId:"G-LXD2XC639E"};let Fn=(()=>{class Le{constructor($){this.agentService=$,this.initFirebase()}initFirebase(){var $=this;return(0,r.Z)(function*(){if($.agentService.isApp()||(yield nt.initializeFirebase(sn)),yield nt.setCollectionEnabled({enabled:!0}),localStorage.getItem("duck_jwt")){let de=localStorage.getItem("duck_jwt");$.setUserIdByToken(de)}})()}setUserIdByToken($){let de=m($);this.user_id=de._id,nt.setUserId({userId:this.user_id}),console.log("FirebaseAnalytics UserID: ",this.user_id)}logEvent($,de){de.user_id=this.user_id,nt.logEvent({name:$,params:de}).then(Ie=>{},Ie=>{console.log("FirebaseAnalytics LogEvent Rejected ",$,JSON.stringify(de),JSON.stringify(Ie))}).catch(Ie=>{console.log("FirebaseAnalytics LogEvent Err: ",Ie)})}setScreenName($){nt.setScreenName({screenName:$,nameOverride:""})}}return Le.\u0275fac=function($){return new($||Le)(Et.LFG(Ht.R))},Le.\u0275prov=Et.Yz7({token:Le,factory:Le.\u0275fac,providedIn:"root"}),Le})()},259:(Ct,ae,p)=>{"use strict";p.d(ae,{D:()=>j});var r=p(8929),m=p(2096),D=p(8548);let j=(()=>{class U{constructor(P){this.gaService=P,this.loggedIn=new r.xQ}clearData(){this.facebook_id=void 0,this.wechat_id=void 0,this.google_id=void 0,this.apple_id=void 0}storeToken(P,F){const q=1e3*F;localStorage.setItem("duck_jwt",P),localStorage.setItem("duck_jwt_expiry",q.toString()),this.loggedIn.next(!0),this.gaService.setUserIdByToken(P)}logout(){localStorage.removeItem("duck_jwt"),localStorage.removeItem("duck_jwt_expiry"),this.loggedIn.next(!1)}}return U.\u0275fac=function(P){return new(P||U)(m.LFG(D.O))},U.\u0275prov=m.Yz7({token:U,factory:U.\u0275fac,providedIn:"root"}),U})()},2340:(Ct,ae,p)=>{"use strict";p.d(ae,{N:()=>r});var r={production:!0,api:{cms_domain:"https://www.macaugoodhands.com/api/backend",api_domain:"https://www.macaugoodhands.com",ecoupon_domain:"https://cm.ad-on.mo"},frontend:{domain:"https://www.macaugoodhands.com"},survey:{domain:"https://survey.ad-on.mo"},lifemag:{front_domain:"https://lifemag.cyberctm.com",domain:"https://app.cyberctm.com"},mapbox:{accessToken:"pk.eyJ1IjoiYmVsbGlzcG1vIiwiYSI6ImNrZjNlbmszZTAyZm4ydmxzMGZxb2tlbjAifQ.YWwaOJn5s8-sNEvfWIrkSA"},buddy:{uri_sheme:"ctmBuddy://MacauDuck",url:"https://www.ctm.net/buddyAppDownLoad?MacauDuck"},websocket:{domain:"wss://www.macaugoodhands.com"},recaptcha:{key:"6LfbbKYlAAAAAHzhKsmEZ7hncH5RJJSNDFXwQFo5"},git_branch:"%git_branch",git_hash:"%git_hash"}},5052:(Ct,ae,p)=>{"use strict";var r=p(2313),m=p(2096),D=p(1171),j=p(8008),U=p(2466);class V{constructor(c,u="/assets/i18n/",_=".json"){this.http=c,this.prefix=u,this.suffix=_}getTranslation(c){return this.http.get(`${this.prefix}${c}${this.suffix}`)}}var P=p(520);const F=[{path:"",redirectTo:"tabs/home",pathMatch:"full"},{path:"token/:id",loadChildren:()=>p.e(6289).then(p.bind(p,6289)).then(M=>M.TokenPageModule)},{path:"",children:[{path:"tabs",loadChildren:()=>p.e(174).then(p.bind(p,5652)).then(M=>M.TabsPageModule)},{path:"coupon/template/:id",loadChildren:()=>Promise.all([p.e(3054),p.e(1719),p.e(9485),p.e(9573),p.e(5273)]).then(p.bind(p,5273)).then(M=>M.TemplatePageModule)},{path:"login/sms",loadChildren:()=>Promise.all([p.e(3054),p.e(6605)]).then(p.bind(p,6605)).then(M=>M.SmsPageModule)},{path:"login/ctm",loadChildren:()=>Promise.all([p.e(3054),p.e(9664)]).then(p.bind(p,9664)).then(M=>M.CtmPageModule)},{path:"account/terms",loadChildren:()=>p.e(8741).then(p.bind(p,8741)).then(M=>M.TermsPageModule)},{path:"coupon/detail/:id",loadChildren:()=>Promise.all([p.e(3054),p.e(1719),p.e(9485),p.e(9573),p.e(7337)]).then(p.bind(p,7337)).then(M=>M.DetailPageModule)},{path:"user/info",loadChildren:()=>Promise.all([p.e(3054),p.e(5242)]).then(p.bind(p,5242)).then(M=>M.InfoPageModule)},{path:"login/home",loadChildren:()=>Promise.all([p.e(3054),p.e(3418)]).then(p.bind(p,3418)).then(M=>M.LoginPageModule)},{path:"account/aboutus",loadChildren:()=>p.e(3185).then(p.bind(p,3185)).then(M=>M.AboutusPageModule)},{path:"account/guide",loadChildren:()=>p.e(7609).then(p.bind(p,7609)).then(M=>M.GuidePageModule)},{path:"merchant/:id",loadChildren:()=>Promise.all([p.e(3054),p.e(1719),p.e(9485),p.e(880),p.e(9573),p.e(8592),p.e(2305)]).then(p.bind(p,2305)).then(M=>M.MerchantPageModule)},{path:"merchants",loadChildren:()=>Promise.all([p.e(3054),p.e(1719),p.e(880),p.e(8592),p.e(9061)]).then(p.bind(p,9061)).then(M=>M.MerchantsPageModule)},{path:"search/all",loadChildren:()=>Promise.all([p.e(3054),p.e(8592),p.e(9196)]).then(p.bind(p,9196)).then(M=>M.Tab2PageModule)},{path:"content/:id",loadChildren:()=>Promise.all([p.e(3054),p.e(565)]).then(p.bind(p,565)).then(M=>M.ContentPageModule)},{path:"map",loadChildren:()=>Promise.all([p.e(3054),p.e(1719),p.e(8592),p.e(6445)]).then(p.bind(p,6445)).then(M=>M.MapPageModule)},{path:"lifemag",loadChildren:()=>Promise.all([p.e(3054),p.e(6109)]).then(p.bind(p,6109)).then(M=>M.LifemagPageModule)},{path:"search/merchants",loadChildren:()=>Promise.all([p.e(3054),p.e(1719),p.e(880),p.e(8592),p.e(9061)]).then(p.bind(p,9061)).then(M=>M.MerchantsPageModule)},{path:"nft/:currency/:contract/:index",loadChildren:()=>Promise.all([p.e(3054),p.e(7325)]).then(p.bind(p,7325)).then(M=>M.NftPageModule)}]},{path:"redirect",loadChildren:()=>Promise.all([p.e(3054),p.e(1534)]).then(p.bind(p,1534)).then(M=>M.RedirectPageModule)},{path:"lifemag/:id",loadChildren:()=>Promise.all([p.e(3054),p.e(6109)]).then(p.bind(p,6109)).then(M=>M.LifemagPageModule)},{path:"search",loadChildren:()=>Promise.all([p.e(3054),p.e(1719),p.e(9485),p.e(8592),p.e(6905)]).then(p.bind(p,6905)).then(M=>M.SearchPageModule)},{path:"nfts",loadChildren:()=>Promise.all([p.e(3054),p.e(5346)]).then(p.bind(p,5346)).then(M=>M.NftsPageModule)},{path:"**",loadChildren:()=>p.e(4426).then(p.bind(p,4426)).then(M=>M.NotfoundPageModule)}];let q=(()=>{class M{}return M.\u0275fac=function(u){return new(u||M)},M.\u0275mod=m.oAB({type:M}),M.\u0275inj=m.cJS({imports:[[D.Bz.forRoot(F,{preloadingStrategy:D.wm,initialNavigation:"enabled",onSameUrlNavigation:"reload",relativeLinkResolution:"legacy"})],D.Bz]}),M})();var Q=p(5861),ee=p(7423),ne=(()=>{return(M=ne||(ne={})).Dark="DARK",M.Light="LIGHT",M.Default="DEFAULT",ne;var M})();const $e=(0,ee.fo)("StatusBar"),ye=(0,ee.fo)("SplashScreen",{web:()=>p.e(2680).then(p.bind(p,2680)).then(M=>new M.SplashScreenWeb)}),De=(0,ee.fo)("TextZoom",{ios:()=>p.e(5330).then(p.bind(p,5330)).then(M=>new M.TextZoomIOS)});var ue=p(5548);const me=(0,ee.fo)("PushNotifications",{}),ze=(0,ee.fo)("AppTrackingTransparency",{web:()=>p.e(9557).then(p.bind(p,9557)).then(M=>new M.AppTrackingTransparencyWeb)}),je=(0,p(7881).fo)("FCM",{web:()=>p.e(8542).then(p.bind(p,8542)).then(M=>new M.FCMWeb)});var Fe=p(5111),Te_frontend_domain="https://www.macaugoodhands.com",J=p(655),We=p(5419),Be=function(M){function c(){return null!==M&&M.apply(this,arguments)||this}return(0,J.ZT)(c,M),c.prototype.open=function(u){return(0,We.DM)(this,"open",{callbackStyle:"object",successName:"success",errorName:"failure"},arguments)},c.prototype.search=function(u){return(0,We.DM)(this,"search",{callbackStyle:"object",successName:"success",errorName:"failure",platforms:["Android"]},arguments)},c.pluginName="Market",c.plugin="cordova-plugin-market",c.pluginRef="cordova.plugins.market",c.repo="https://github.com/xmartlabs/cordova-plugin-market",c.platforms=["Android","iOS"],c.\u0275fac=function(){var u;return function(B){return(u||(u=m.n5z(c)))(B||c)}}(),c.\u0275prov=m.Yz7({token:c,factory:function(u){return c.\u0275fac(u)}}),c}(We.KY),we=p(259),re=p(8548),z=p(9822),N=p(9808);function pe(M,c){if(1&M&&(m.TgZ(0,"div",3),m._uU(1," \u672c\u7db2\u7ad9\u70ba\u6e2c\u8a66\u7248\u672c\u53ca\u53ea\u4f9b\u6e2c\u8a66\u4f7f\u7528\uff0c\u8acb\u6309\u6b64\u9023\u7d50 "),m.TgZ(2,"a",4),m._uU(3),m.qZA(),m._uU(4," \u8fd4\u56de\u6b63\u5f0f\u7db2\u9801 "),m.qZA()),2&M){const u=m.oxw();m.xp6(2),m.Q6J("href",u.domain,m.LSH),m.xp6(1),m.hij("(",u.domain,")")}}function ve(M,c){if(1&M&&(m.ynx(0),m._UZ(1,"div",7),m.BQk()),2&M){const u=c.$implicit;m.xp6(1),m.Q6J("innerHTML",u,m.oJD)}}function le(M,c){if(1&M&&(m.TgZ(0,"div",5),m.YNc(1,ve,2,1,"ng-container",6),m.qZA()),2&M){const u=m.oxw();m.xp6(1),m.Q6J("ngForOf",u.snowflakes)}}let he=(()=>{class M{constructor(u,_,B,ie,He,Ge,ct,At,zt,an,En,xn,pn,Mn,Hn){var or=this;this.platform=u,this.translate=_,this.popoverController=B,this.titleService=ie,this.router=He,this.http=Ge,this.alertController=ct,this.market=At,this.menu=zt,this.zone=an,this.oauthService=En,this.meta=xn,this.gaService=pn,this.sanitizer=Mn,this.agent=Hn,this.isTesting=!1,this.lang="zh_TW",this.domain=Te_frontend_domain,this.snowflakes=[],this.addNotificationListeners=(0,Q.Z)(function*(){yield me.addListener("registration",kn=>{console.info("Registration token: ",kn.value),localStorage.setItem("mgh_push_token",kn.value),or.http.post(Fe.Z.token,{token:kn.value,group_slug:"mghgeneral",lang:"zh_MO",user:or.gaService.user_id,platform:or.platform.is("android")?"android":"ios"}).toPromise().then(Wn=>{console.log("Registered Firebase token to MPMS")}).catch(Wn=>{console.error("Failed to register Firebase token to MPMS")})}),yield me.addListener("registrationError",kn=>{console.error("Registration error: ",kn.error)}),yield me.addListener("pushNotificationActionPerformed",kn=>{console.log("Push action performed: "+JSON.stringify(kn.notification));const Wn=kn.notification.data;console.log(Wn),Wn["custom data"]&&or.router.navigateByUrl(JSON.parse(Wn["custom data"][0]).path),Wn.message&&or.router.navigateByUrl(JSON.parse(Wn.message).path)})}),this.registerNotifications=(0,Q.Z)(function*(){let kn=yield me.checkPermissions();if("prompt"===kn.receive&&(kn=yield me.requestPermissions()),"granted"!==kn.receive)throw new Error("User denied permissions!");me.register().then(()=>{}).catch(sr=>{console.log(sr)}),yield me.register();let Wn="general";je.subscribeTo({topic:Wn}).then(sr=>console.log("subscribed to topic"+Wn)).catch(sr=>console.log(sr))}),this.initializeApp(),this.oauthService.loggedIn.subscribe(kn=>{this.loggedIn=kn}),event instanceof D.m2&&this.gaService.logEvent("page_path",{url:event.urlAfterRedirects})}initializeApp(){var u=this;return(0,Q.Z)(function*(){window.navigator&&navigator.serviceWorker&&navigator.serviceWorker.getRegistrations().then(function(_){for(let B of _)B.unregister()}),u.platform.ready().then((0,Q.Z)(function*(){u.platform.backButton.subscribeWithPriority(10,()=>{history.back()}),(u.platform.is("desktop")||u.platform.is("mobileweb"))&&(u.isTesting=!location.host.includes("macaugoodhands.com")),u.platform.is("mobile")&&!u.platform.is("mobileweb")&&(yield ye.hide(),u.requestPermission(),$e.setStyle({style:ne.Light}),De.set({value:1}),u.addNotificationListeners(),u.registerNotifications(),u.checkAppVersion(),u.setupDeepLinks())})),u.checkTheme(),u.lang=localStorage.language||"zh_TW",u.translate.setDefaultLang(u.lang),u.translate.use(u.lang),console.log("Current this.language: "+u.lang),u.titleService.setTitle(u.translate.instant("title"))})()}addSmartbanner(){this.meta.addTags([{name:"smartbanner:title",content:"\u6fb3\u9580\u597d\u5e6b\u624b2.0"},{name:"smartbanner:author",content:" - \u672c\u5730\u96fb\u5b50\u512a\u60e0\u5238\u5e73\u53f0<br> - \u624b\u6a5fApp \u9ad4\u9a57\u66f4\u6d41\u66a2"},{name:"smartbanner:price",content:"\u514d\u8cbb\u5b89\u88dd"},{name:"smartbanner:price-suffix-apple",content:" - App Store"},{name:"smartbanner:price-suffix-google",content:" - Google Play"},{name:"smartbanner:icon-apple",content:"assets/icons/android-launchericon-192-192.png"},{name:"smartbanner:icon-google",content:"assets/icons/android-launchericon-192-192.png"},{name:"smartbanner:button",content:"\u{1f449}\u7acb\u5373\u4e0b\u8f09"},{name:"smartbanner:hide-ttl",content:"604800000"},{name:"smartbanner:button-url-apple",content:"https://itunes.apple.com/app/\u6fb3\u9580\u597d\u5e6b\u624b/id1190077581"},{name:"smartbanner:button-url-google",content:"https://play.google.com/store/apps/details?id:io.cordova.vmk_adnroid"},{name:"smartbanner:enabled-platforms",content:"android,ios"},{name:"smartbanner:custom-design-modifier",content:"ios"},{name:"smartbanner:close-label",content:"Close"}])}setupDeepLinks(){ue.g.addListener("appUrlOpen",u=>{this.zone.run(()=>{let B=u.url.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*(\?([^#]*))?(#(.*))?)/);const ie=B?B[5]:void 0;console.log(ie),ie&&this.router.navigateByUrl(ie)})})}exitApp(){navigator.app.exitApp()}checkTheme(){var u=this;return(0,Q.Z)(function*(){yield u.http.get(Fe.Z.theme).toPromise().then(_=>{if(_[0]){console.log("Using Theme: ",_[0]),Object.entries(_[0].colors).forEach(He=>{document.documentElement.style.setProperty(He[0],He[1])});let B=_[0].snowflakes,ie=12/B.length;B.forEach(He=>{for(let Ge=0;Ge<ie;Ge++)u.snowflakes.push(u.sanitizer.bypassSecurityTrustHtml(He))})}})})()}checkAppVersion(){var u=this;return(0,Q.Z)(function*(){const _=yield u.http.get(Fe.Z.version).toPromise(),B=yield ue.g.getInfo(),ie=Number(B.build),He=ee.dV.getPlatform();console.log(_),console.log("Current App Version: "+ie),_[He+"_code"]>ie&&(_[He+"_last_code"]>ie?u.presentAlert(_.message?_.message[u.lang]:"",He,!0):u.getWithExpiry("version_expiry")||(u.presentAlert(_.message?_.message[u.lang]:"",He),u.setWithExpiry("version_expiry","version",432e5)))})()}presentAlert(u,_,B=!1){var ie=this;return(0,Q.Z)(function*(){let He=[{text:ie.translate.instant("update.update_btn"),handler:()=>{"ios"==_?ie.market.open("id1190077581"):"android"==_&&ie.market.open("io.cordova.vmk_adnroid"),ie.exitApp(),1==B&&ie.presentAlert(u,_,B)}}],Ge="";0==B?He.unshift({text:ie.translate.instant("update.known_btn")}):Ge=ie.translate.instant("update.force_msg"),yield(yield ie.alertController.create({backdropDismiss:!1,header:ie.translate.instant("update.title"),subHeader:Ge,message:u,buttons:He})).present()})()}goTo(u){console.log(this.lang),this.router.navigateByUrl(u),this.menu.close("first")}setWithExpiry(u,_,B){const He={value:_,expiry:(new Date).getTime()+B};localStorage.setItem(u,JSON.stringify(He))}getWithExpiry(u){let _;if(_=localStorage.getItem(u),!_)return null;const B=JSON.parse(_);return(new Date).getTime()>B.expiry?(localStorage.removeItem(u),null):B.value}back2top(){document.body.scrollTop=0,document.documentElement.scrollTop=0}requestPermission(){return(0,Q.Z)(function*(){const u=yield ze.requestPermission();return console.log(u),u})()}}return M.\u0275fac=function(u){return new(u||M)(m.Y36(j.t4),m.Y36(U.sK),m.Y36(j.Dh),m.Y36(r.Dx),m.Y36(D.F0),m.Y36(P.eN),m.Y36(j.Br),m.Y36(Be),m.Y36(j._q),m.Y36(m.R0b),m.Y36(we.D),m.Y36(r.h_),m.Y36(re.O),m.Y36(r.H7),m.Y36(z.R))},M.\u0275cmp=m.Xpm({type:M,selectors:[["app-root"]],decls:5,vars:2,consts:[["style","\n      text-align: center;\n      font: 14px bold;\n      padding: 5px;\n      color: red;\n      font-family: 'openhuninn', 'Noto Sans TC', sans-serif;\n    ",4,"ngIf"],["forceOverscroll","false"],["class","snowflakes","aria-hidden","true",4,"ngIf"],[2,"text-align","center","font","14px bold","padding","5px","color","red","font-family","'openhuninn', 'Noto Sans TC', sans-serif"],[3,"href"],["aria-hidden","true",1,"snowflakes"],[4,"ngFor","ngForOf"],[1,"snowflake",3,"innerHTML"]],template:function(u,_){1&u&&(m.TgZ(0,"ion-app"),m.YNc(1,pe,5,2,"div",0),m.TgZ(2,"ion-content",1),m.YNc(3,le,2,1,"div",2),m._UZ(4,"ion-router-outlet"),m.qZA()()),2&u&&(m.xp6(1),m.Q6J("ngIf",_.isTesting),m.xp6(2),m.Q6J("ngIf",!0))},directives:[j.dr,N.O5,j.W2,N.sg,j.jP],styles:["@media only screen and (min-width: 600px){ion-app[_ngcontent-%COMP%]{width:600px;margin:0 auto}}.enable_pointer[_ngcontent-%COMP%]{pointer-events:auto!important}ion-label[_ngcontent-%COMP%]{padding-left:2em}  mat-option{font-family:openhuninn,Noto Sans TC,sans-serif!important;color:var(--ion-color-primary)!important}"]}),M})();var Ae=p(2868);let be=(()=>{class M{constructor(u,_){this.router=u,this.toastController=_}intercept(u,_){var B=this;if(u.headers.has("auth")&&"undefined"!=typeof window){Number(localStorage.getItem("duck_jwt_expiry"))<Date.now()&&(localStorage.removeItem("duck_jwt"),localStorage.removeItem("duck_jwt_expiry"));const Ge=localStorage.getItem("duck_jwt");u=(u=u.clone({headers:u.headers.delete("auth")})).clone({setHeaders:{Authorization:"Bearer "+Ge}})}return _.handle(u).pipe((0,Ae.b)(()=>{},function(){var He=(0,Q.Z)(function*(Ge){if(Ge instanceof P.UA){if(401!==Ge.status)return;"undefined"!=typeof window&&(localStorage.removeItem("duck_jwt"),localStorage.removeItem("duck_jwt_expiry")),B.router.navigate(["/login/home"],{queryParams:{redirectURL:B.router.url}}),(yield B.toastController.create({message:"\u8acb\u5148\u767b\u5165\u4ee5\u4f7f\u7528\u672c\u5e73\u53f0\u7684\u670d\u52d9\u3002",duration:5e3})).present()}});return function(Ge){return He.apply(this,arguments)}}()))}}return M.\u0275fac=function(u){return new(u||M)(m.LFG(D.F0),m.LFG(j.yF))},M.\u0275prov=m.Yz7({token:M,factory:M.\u0275fac}),M})();var Re=p(2340),H=p(925),k=p(1856),Ue=p(7618),it=p(5174),qe=p(3728),lt=p(1777);const Mt=!1;function Zt(M){return new m.vHH(3e3,Mt)}function Kn(){return"undefined"!=typeof window&&void 0!==window.document}function On(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function zn(M){switch(M.length){case 0:return new lt.ZN;case 1:return M[0];default:return new lt.ZE(M)}}function ot(M,c,u,_,B={},ie={}){const He=[],Ge=[];let ct=-1,At=null;if(_.forEach(zt=>{const an=zt.offset,En=an==ct,xn=En&&At||{};Object.keys(zt).forEach(pn=>{let Mn=pn,Hn=zt[pn];if("offset"!==pn)switch(Mn=c.normalizePropertyName(Mn,He),Hn){case lt.k1:Hn=B[pn];break;case lt.l3:Hn=ie[pn];break;default:Hn=c.normalizeStyleValue(pn,Mn,Hn,He)}xn[Mn]=Hn}),En||Ge.push(xn),At=xn,ct=an}),He.length)throw function Yt(M){return new m.vHH(3502,Mt)}();return Ge}function Ye(M,c,u,_){switch(c){case"start":M.onStart(()=>_(u&&Ee(u,"start",M)));break;case"done":M.onDone(()=>_(u&&Ee(u,"done",M)));break;case"destroy":M.onDestroy(()=>_(u&&Ee(u,"destroy",M)))}}function Ee(M,c,u){const _=u.totalTime,ie=nt(M.element,M.triggerName,M.fromState,M.toState,c||M.phaseName,null==_?M.totalTime:_,!!u.disabled),He=M._data;return null!=He&&(ie._data=He),ie}function nt(M,c,u,_,B="",ie=0,He){return{element:M,triggerName:c,fromState:u,toState:_,phaseName:B,totalTime:ie,disabled:!!He}}function Et(M,c,u){let _;return M instanceof Map?(_=M.get(c),_||M.set(c,_=u)):(_=M[c],_||(_=M[c]=u)),_}function Ht(M){const c=M.indexOf(":");return[M.substring(1,c),M.substr(c+1)]}let sn=(M,c)=>!1,Fn=(M,c,u)=>[],Le=null;function ge(M){const c=M.parentNode||M.host;return c===Le?null:c}(On()||"undefined"!=typeof Element)&&(Kn()?(Le=(()=>document.documentElement)(),sn=(M,c)=>{for(;c;){if(c===M)return!0;c=ge(c)}return!1}):sn=(M,c)=>M.contains(c),Fn=(M,c,u)=>{if(u)return Array.from(M.querySelectorAll(c));const _=M.querySelector(c);return _?[_]:[]});let Ie=null,Ve=!1;function dt(M){Ie||(Ie=function _t(){return"undefined"!=typeof document?document.body:null}()||{},Ve=!!Ie.style&&"WebkitAppearance"in Ie.style);let c=!0;return Ie.style&&!function de(M){return"ebkit"==M.substring(1,6)}(M)&&(c=M in Ie.style,!c&&Ve&&(c="Webkit"+M.charAt(0).toUpperCase()+M.substr(1)in Ie.style)),c}const Gt=sn,Rt=Fn;let en=(()=>{class M{validateStyleProperty(u){return dt(u)}matchesElement(u,_){return!1}containsElement(u,_){return Gt(u,_)}getParentElement(u){return ge(u)}query(u,_,B){return Rt(u,_,B)}computeStyle(u,_,B){return B||""}animate(u,_,B,ie,He,Ge=[],ct){return new lt.ZN(B,ie)}}return M.\u0275fac=function(u){return new(u||M)},M.\u0275prov=m.Yz7({token:M,factory:M.\u0275fac}),M})(),jt=(()=>{class M{}return M.NOOP=new en,M})();const ln="ng-enter",Tn="ng-leave",jn="ng-trigger",rr=".ng-trigger",Ln="ng-animating",Gn=".ng-animating";function Dn(M){if("number"==typeof M)return M;const c=M.match(/^(-?[\.\d]+)(m?s)/);return!c||c.length<2?0:ir(parseFloat(c[1]),c[2])}function ir(M,c){return"s"===c?1e3*M:M}function cr(M,c,u){return M.hasOwnProperty("duration")?M:function L(M,c,u){let B,ie=0,He="";if("string"==typeof M){const Ge=M.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Ge)return c.push(Zt()),{duration:0,delay:0,easing:""};B=ir(parseFloat(Ge[1]),Ge[2]);const ct=Ge[3];null!=ct&&(ie=ir(parseFloat(ct),Ge[4]));const At=Ge[5];At&&(He=At)}else B=M;if(!u){let Ge=!1,ct=c.length;B<0&&(c.push(function Nt(){return new m.vHH(3100,Mt)}()),Ge=!0),ie<0&&(c.push(function wn(){return new m.vHH(3101,Mt)}()),Ge=!0),Ge&&c.splice(ct,0,Zt())}return{duration:B,delay:ie,easing:He}}(M,c,u)}function Ce(M,c={}){return Object.keys(M).forEach(u=>{c[u]=M[u]}),c}function rt(M,c,u={}){if(c)for(let _ in M)u[_]=M[_];else Ce(M,u);return u}function pt(M,c,u){return u?c+":"+u+";":""}function fe(M){let c="";for(let u=0;u<M.style.length;u++){const _=M.style.item(u);c+=pt(0,_,M.style.getPropertyValue(_))}for(const u in M.style)M.style.hasOwnProperty(u)&&!u.startsWith("_")&&(c+=pt(0,pr(u),M.style[u]));M.setAttribute("style",c)}function Ke(M,c,u){M.style&&(Object.keys(c).forEach(_=>{const B=qn(_);u&&!u.hasOwnProperty(_)&&(u[_]=M.style[B]),M.style[B]=c[_]}),On()&&fe(M))}function st(M,c){M.style&&(Object.keys(c).forEach(u=>{const _=qn(u);M.style[_]=""}),On()&&fe(M))}function mt(M){return Array.isArray(M)?1==M.length?M[0]:(0,lt.vP)(M):M}const kt=new RegExp("{{\\s*(.+?)\\s*}}","g");function qt(M){let c=[];if("string"==typeof M){let u;for(;u=kt.exec(M);)c.push(u[1]);kt.lastIndex=0}return c}function dn(M,c,u){const _=M.toString(),B=_.replace(kt,(ie,He)=>{let Ge=c[He];return c.hasOwnProperty(He)||(u.push(function tt(M){return new m.vHH(3003,Mt)}()),Ge=""),Ge.toString()});return B==_?M:B}function hn(M){const c=[];let u=M.next();for(;!u.done;)c.push(u.value),u=M.next();return c}const er=/-+([a-z0-9])/g;function qn(M){return M.replace(er,(...c)=>c[1].toUpperCase())}function pr(M){return M.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Jn(M,c,u){switch(c.type){case 7:return M.visitTrigger(c,u);case 0:return M.visitState(c,u);case 1:return M.visitTransition(c,u);case 2:return M.visitSequence(c,u);case 3:return M.visitGroup(c,u);case 4:return M.visitAnimate(c,u);case 5:return M.visitKeyframes(c,u);case 6:return M.visitStyle(c,u);case 8:return M.visitReference(c,u);case 9:return M.visitAnimateChild(c,u);case 10:return M.visitAnimateRef(c,u);case 11:return M.visitQuery(c,u);case 12:return M.visitStagger(c,u);default:throw function xe(M){return new m.vHH(3004,Mt)}()}}function qr(M,c){return window.getComputedStyle(M)[c]}function xr(M,c){const u=[];return"string"==typeof M?M.split(/\s*,\s*/).forEach(_=>function $i(M,c,u){if(":"==M[0]){const ct=function hi(M,c){switch(M){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(u,_)=>parseFloat(_)>parseFloat(u);case":decrement":return(u,_)=>parseFloat(_)<parseFloat(u);default:return c.push(function Xt(M){return new m.vHH(3016,Mt)}()),"* => *"}}(M,u);if("function"==typeof ct)return void c.push(ct);M=ct}const _=M.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==_||_.length<4)return u.push(function Ut(M){return new m.vHH(3015,Mt)}()),c;const B=_[1],ie=_[2],He=_[3];c.push(Wr(B,He));"<"==ie[0]&&!("*"==B&&"*"==He)&&c.push(Wr(He,B))}(_,u,c)):u.push(M),u}const si=new Set(["true","1"]),Fr=new Set(["false","0"]);function Wr(M,c){const u=si.has(M)||Fr.has(M),_=si.has(c)||Fr.has(c);return(B,ie)=>{let He="*"==M||M==B,Ge="*"==c||c==ie;return!He&&u&&"boolean"==typeof B&&(He=B?si.has(M):Fr.has(M)),!Ge&&_&&"boolean"==typeof ie&&(Ge=ie?si.has(c):Fr.has(c)),He&&Ge}}const Vr=new RegExp("s*:selfs*,?","g");function Lr(M,c,u,_){return new Zr(M).build(c,u,_)}class Zr{constructor(c){this._driver=c}build(c,u,_){const B=new Ti(u);this._resetContextStyleTimingState(B);const ie=Jn(this,mt(c),B);return B.unsupportedCSSPropertiesFound.size&&B.unsupportedCSSPropertiesFound.keys(),ie}_resetContextStyleTimingState(c){c.currentQuerySelector="",c.collectedStyles={},c.collectedStyles[""]={},c.currentTime=0}visitTrigger(c,u){let _=u.queryCount=0,B=u.depCount=0;const ie=[],He=[];return"@"==c.name.charAt(0)&&u.errors.push(function se(){return new m.vHH(3006,Mt)}()),c.definitions.forEach(Ge=>{if(this._resetContextStyleTimingState(u),0==Ge.type){const ct=Ge,At=ct.name;At.toString().split(/\s*,\s*/).forEach(zt=>{ct.name=zt,ie.push(this.visitState(ct,u))}),ct.name=At}else if(1==Ge.type){const ct=this.visitTransition(Ge,u);_+=ct.queryCount,B+=ct.depCount,He.push(ct)}else u.errors.push(function Se(){return new m.vHH(3007,Mt)}())}),{type:7,name:c.name,states:ie,transitions:He,queryCount:_,depCount:B,options:null}}visitState(c,u){const _=this.visitStyle(c.styles,u),B=c.options&&c.options.params||null;if(_.containsDynamicStyles){const ie=new Set,He=B||{};_.styles.forEach(Ge=>{if(vr(Ge)){const ct=Ge;Object.keys(ct).forEach(At=>{qt(ct[At]).forEach(zt=>{He.hasOwnProperty(zt)||ie.add(zt)})})}}),ie.size&&(hn(ie.values()),u.errors.push(function _e(M,c){return new m.vHH(3008,Mt)}()))}return{type:0,name:c.name,style:_,options:B?{params:B}:null}}visitTransition(c,u){u.queryCount=0,u.depCount=0;const _=Jn(this,mt(c.animation),u);return{type:1,matchers:xr(c.expr,u.errors),animation:_,queryCount:u.queryCount,depCount:u.depCount,options:Pr(c.options)}}visitSequence(c,u){return{type:2,steps:c.steps.map(_=>Jn(this,_,u)),options:Pr(c.options)}}visitGroup(c,u){const _=u.currentTime;let B=0;const ie=c.steps.map(He=>{u.currentTime=_;const Ge=Jn(this,He,u);return B=Math.max(B,u.currentTime),Ge});return u.currentTime=B,{type:3,steps:ie,options:Pr(c.options)}}visitAnimate(c,u){const _=function Vi(M,c){if(M.hasOwnProperty("duration"))return M;if("number"==typeof M)return pi(cr(M,c).duration,0,"");const u=M;if(u.split(/\s+/).some(ie=>"{"==ie.charAt(0)&&"{"==ie.charAt(1))){const ie=pi(0,0,"");return ie.dynamic=!0,ie.strValue=u,ie}const B=cr(u,c);return pi(B.duration,B.delay,B.easing)}(c.timings,u.errors);u.currentAnimateTimings=_;let B,ie=c.styles?c.styles:(0,lt.oB)({});if(5==ie.type)B=this.visitKeyframes(ie,u);else{let He=c.styles,Ge=!1;if(!He){Ge=!0;const At={};_.easing&&(At.easing=_.easing),He=(0,lt.oB)(At)}u.currentTime+=_.duration+_.delay;const ct=this.visitStyle(He,u);ct.isEmptyStep=Ge,B=ct}return u.currentAnimateTimings=null,{type:4,timings:_,style:B,options:null}}visitStyle(c,u){const _=this._makeStyleAst(c,u);return this._validateStyleAst(_,u),_}_makeStyleAst(c,u){const _=[];Array.isArray(c.styles)?c.styles.forEach(He=>{"string"==typeof He?He==lt.l3?_.push(He):u.errors.push(function at(M){return new m.vHH(3002,Mt)}()):_.push(He)}):_.push(c.styles);let B=!1,ie=null;return _.forEach(He=>{if(vr(He)){const Ge=He,ct=Ge.easing;if(ct&&(ie=ct,delete Ge.easing),!B)for(let At in Ge)if(Ge[At].toString().indexOf("{{")>=0){B=!0;break}}}),{type:6,styles:_,easing:ie,offset:c.offset,containsDynamicStyles:B,options:null}}_validateStyleAst(c,u){const _=u.currentAnimateTimings;let B=u.currentTime,ie=u.currentTime;_&&ie>0&&(ie-=_.duration+_.delay),c.styles.forEach(He=>{"string"!=typeof He&&Object.keys(He).forEach(Ge=>{if(!this._driver.validateStyleProperty(Ge))return delete He[Ge],void u.unsupportedCSSPropertiesFound.add(Ge);const ct=u.collectedStyles[u.currentQuerySelector],At=ct[Ge];let zt=!0;At&&(ie!=B&&ie>=At.startTime&&B<=At.endTime&&(u.errors.push(function ke(M,c,u,_,B){return new m.vHH(3010,Mt)}()),zt=!1),ie=At.startTime),zt&&(ct[Ge]={startTime:ie,endTime:B}),u.options&&function yt(M,c,u){const _=c.params||{},B=qt(M);B.length&&B.forEach(ie=>{_.hasOwnProperty(ie)||u.push(function Bn(M){return new m.vHH(3001,Mt)}())})}(He[Ge],u.options,u.errors)})})}visitKeyframes(c,u){const _={type:5,styles:[],options:null};if(!u.currentAnimateTimings)return u.errors.push(function oe(){return new m.vHH(3011,Mt)}()),_;let ie=0;const He=[];let Ge=!1,ct=!1,At=0;const zt=c.steps.map(or=>{const kn=this._makeStyleAst(or,u);let Wn=null!=kn.offset?kn.offset:function Cr(M){if("string"==typeof M)return null;let c=null;if(Array.isArray(M))M.forEach(u=>{if(vr(u)&&u.hasOwnProperty("offset")){const _=u;c=parseFloat(_.offset),delete _.offset}});else if(vr(M)&&M.hasOwnProperty("offset")){const u=M;c=parseFloat(u.offset),delete u.offset}return c}(kn.styles),sr=0;return null!=Wn&&(ie++,sr=kn.offset=Wn),ct=ct||sr<0||sr>1,Ge=Ge||sr<At,At=sr,He.push(sr),kn});ct&&u.errors.push(function ft(){return new m.vHH(3012,Mt)}()),Ge&&u.errors.push(function vt(){return new m.vHH(3200,Mt)}());const an=c.steps.length;let En=0;ie>0&&ie<an?u.errors.push(function gt(){return new m.vHH(3202,Mt)}()):0==ie&&(En=1/(an-1));const xn=an-1,pn=u.currentTime,Mn=u.currentAnimateTimings,Hn=Mn.duration;return zt.forEach((or,kn)=>{const Wn=En>0?kn==xn?1:En*kn:He[kn],sr=Wn*Hn;u.currentTime=pn+Mn.delay+sr,Mn.duration=sr,this._validateStyleAst(or,u),or.offset=Wn,_.styles.push(or)}),_}visitReference(c,u){return{type:8,animation:Jn(this,mt(c.animation),u),options:Pr(c.options)}}visitAnimateChild(c,u){return u.depCount++,{type:9,options:Pr(c.options)}}visitAnimateRef(c,u){return{type:10,animation:this.visitReference(c.animation,u),options:Pr(c.options)}}visitQuery(c,u){const _=u.currentQuerySelector,B=c.options||{};u.queryCount++,u.currentQuery=c;const[ie,He]=function Ii(M){const c=!!M.split(/\s*,\s*/).find(u=>":self"==u);return c&&(M=M.replace(Vr,"")),M=M.replace(/@\*/g,rr).replace(/@\w+/g,u=>rr+"-"+u.substr(1)).replace(/:animating/g,Gn),[M,c]}(c.selector);u.currentQuerySelector=_.length?_+" "+ie:ie,Et(u.collectedStyles,u.currentQuerySelector,{});const Ge=Jn(this,mt(c.animation),u);return u.currentQuery=null,u.currentQuerySelector=_,{type:11,selector:ie,limit:B.limit||0,optional:!!B.optional,includeSelf:He,animation:Ge,originalSelector:c.selector,options:Pr(c.options)}}visitStagger(c,u){u.currentQuery||u.errors.push(function St(){return new m.vHH(3013,Mt)}());const _="full"===c.timings?{duration:0,delay:0,easing:"full"}:cr(c.timings,u.errors,!0);return{type:12,animation:Jn(this,mt(c.animation),u),timings:_,options:null}}}class Ti{constructor(c){this.errors=c,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function vr(M){return!Array.isArray(M)&&"object"==typeof M}function Pr(M){return M?(M=Ce(M)).params&&(M.params=function Nr(M){return M?Ce(M):null}(M.params)):M={},M}function pi(M,c,u){return{duration:M,delay:c,easing:u}}function Jr(M,c,u,_,B,ie,He=null,Ge=!1){return{type:1,element:M,keyframes:c,preStyleProps:u,postStyleProps:_,duration:B,delay:ie,totalTime:B+ie,easing:He,subTimeline:Ge}}class Kr{constructor(){this._map=new Map}get(c){return this._map.get(c)||[]}append(c,u){let _=this._map.get(c);_||this._map.set(c,_=[]),_.push(...u)}has(c){return this._map.has(c)}clear(){this._map.clear()}}const _r=new RegExp(":enter","g"),kr=new RegExp(":leave","g");function A(M,c,u,_,B,ie={},He={},Ge,ct,At=[]){return(new K).buildKeyframes(M,c,u,_,B,ie,He,Ge,ct,At)}class K{buildKeyframes(c,u,_,B,ie,He,Ge,ct,At,zt=[]){At=At||new Kr;const an=new te(c,u,At,B,ie,zt,[]);an.options=ct,an.currentTimeline.setStyles([He],null,an.errors,ct),Jn(this,_,an);const En=an.timelines.filter(xn=>xn.containsAnimation());if(Object.keys(Ge).length){let xn;for(let pn=En.length-1;pn>=0;pn--){const Mn=En[pn];if(Mn.element===u){xn=Mn;break}}xn&&!xn.allowOnlyTimelineStyles()&&xn.setStyles([Ge],null,an.errors,ct)}return En.length?En.map(xn=>xn.buildKeyframes()):[Jr(u,[],[],[],0,0,"",!1)]}visitTrigger(c,u){}visitState(c,u){}visitTransition(c,u){}visitAnimateChild(c,u){const _=u.subInstructions.get(u.element);if(_){const B=u.createSubContext(c.options),ie=u.currentTimeline.currentTime,He=this._visitSubInstructions(_,B,B.options);ie!=He&&u.transformIntoNewTimeline(He)}u.previousNode=c}visitAnimateRef(c,u){const _=u.createSubContext(c.options);_.transformIntoNewTimeline(),this.visitReference(c.animation,_),u.transformIntoNewTimeline(_.currentTimeline.currentTime),u.previousNode=c}_visitSubInstructions(c,u,_){let ie=u.currentTimeline.currentTime;const He=null!=_.duration?Dn(_.duration):null,Ge=null!=_.delay?Dn(_.delay):null;return 0!==He&&c.forEach(ct=>{const At=u.appendInstructionToTimeline(ct,He,Ge);ie=Math.max(ie,At.duration+At.delay)}),ie}visitReference(c,u){u.updateOptions(c.options,!0),Jn(this,c.animation,u),u.previousNode=c}visitSequence(c,u){const _=u.subContextCount;let B=u;const ie=c.options;if(ie&&(ie.params||ie.delay)&&(B=u.createSubContext(ie),B.transformIntoNewTimeline(),null!=ie.delay)){6==B.previousNode.type&&(B.currentTimeline.snapshotCurrentStyles(),B.previousNode=I);const He=Dn(ie.delay);B.delayNextStep(He)}c.steps.length&&(c.steps.forEach(He=>Jn(this,He,B)),B.currentTimeline.applyStylesToKeyframe(),B.subContextCount>_&&B.transformIntoNewTimeline()),u.previousNode=c}visitGroup(c,u){const _=[];let B=u.currentTimeline.currentTime;const ie=c.options&&c.options.delay?Dn(c.options.delay):0;c.steps.forEach(He=>{const Ge=u.createSubContext(c.options);ie&&Ge.delayNextStep(ie),Jn(this,He,Ge),B=Math.max(B,Ge.currentTimeline.currentTime),_.push(Ge.currentTimeline)}),_.forEach(He=>u.currentTimeline.mergeTimelineCollectedStyles(He)),u.transformIntoNewTimeline(B),u.previousNode=c}_visitTiming(c,u){if(c.dynamic){const _=c.strValue;return cr(u.params?dn(_,u.params,u.errors):_,u.errors)}return{duration:c.duration,delay:c.delay,easing:c.easing}}visitAnimate(c,u){const _=u.currentAnimateTimings=this._visitTiming(c.timings,u),B=u.currentTimeline;_.delay&&(u.incrementTime(_.delay),B.snapshotCurrentStyles());const ie=c.style;5==ie.type?this.visitKeyframes(ie,u):(u.incrementTime(_.duration),this.visitStyle(ie,u),B.applyStylesToKeyframe()),u.currentAnimateTimings=null,u.previousNode=c}visitStyle(c,u){const _=u.currentTimeline,B=u.currentAnimateTimings;!B&&_.getCurrentStyleProperties().length&&_.forwardFrame();const ie=B&&B.easing||c.easing;c.isEmptyStep?_.applyEmptyStep(ie):_.setStyles(c.styles,ie,u.errors,u.options),u.previousNode=c}visitKeyframes(c,u){const _=u.currentAnimateTimings,B=u.currentTimeline.duration,ie=_.duration,Ge=u.createSubContext().currentTimeline;Ge.easing=_.easing,c.styles.forEach(ct=>{Ge.forwardTime((ct.offset||0)*ie),Ge.setStyles(ct.styles,ct.easing,u.errors,u.options),Ge.applyStylesToKeyframe()}),u.currentTimeline.mergeTimelineCollectedStyles(Ge),u.transformIntoNewTimeline(B+ie),u.previousNode=c}visitQuery(c,u){const _=u.currentTimeline.currentTime,B=c.options||{},ie=B.delay?Dn(B.delay):0;ie&&(6===u.previousNode.type||0==_&&u.currentTimeline.getCurrentStyleProperties().length)&&(u.currentTimeline.snapshotCurrentStyles(),u.previousNode=I);let He=_;const Ge=u.invokeQuery(c.selector,c.originalSelector,c.limit,c.includeSelf,!!B.optional,u.errors);u.currentQueryTotal=Ge.length;let ct=null;Ge.forEach((At,zt)=>{u.currentQueryIndex=zt;const an=u.createSubContext(c.options,At);ie&&an.delayNextStep(ie),At===u.element&&(ct=an.currentTimeline),Jn(this,c.animation,an),an.currentTimeline.applyStylesToKeyframe(),He=Math.max(He,an.currentTimeline.currentTime)}),u.currentQueryIndex=0,u.currentQueryTotal=0,u.transformIntoNewTimeline(He),ct&&(u.currentTimeline.mergeTimelineCollectedStyles(ct),u.currentTimeline.snapshotCurrentStyles()),u.previousNode=c}visitStagger(c,u){const _=u.parentContext,B=u.currentTimeline,ie=c.timings,He=Math.abs(ie.duration),Ge=He*(u.currentQueryTotal-1);let ct=He*u.currentQueryIndex;switch(ie.duration<0?"reverse":ie.easing){case"reverse":ct=Ge-ct;break;case"full":ct=_.currentStaggerTime}const zt=u.currentTimeline;ct&&zt.delayNextStep(ct);const an=zt.currentTime;Jn(this,c.animation,u),u.previousNode=c,_.currentStaggerTime=B.currentTime-an+(B.startTime-_.currentTimeline.startTime)}}const I={};class te{constructor(c,u,_,B,ie,He,Ge,ct){this._driver=c,this.element=u,this.subInstructions=_,this._enterClassName=B,this._leaveClassName=ie,this.errors=He,this.timelines=Ge,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=I,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=ct||new Xe(this._driver,u,0),Ge.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(c,u){if(!c)return;const _=c;let B=this.options;null!=_.duration&&(B.duration=Dn(_.duration)),null!=_.delay&&(B.delay=Dn(_.delay));const ie=_.params;if(ie){let He=B.params;He||(He=this.options.params={}),Object.keys(ie).forEach(Ge=>{(!u||!He.hasOwnProperty(Ge))&&(He[Ge]=dn(ie[Ge],He,this.errors))})}}_copyOptions(){const c={};if(this.options){const u=this.options.params;if(u){const _=c.params={};Object.keys(u).forEach(B=>{_[B]=u[B]})}}return c}createSubContext(c=null,u,_){const B=u||this.element,ie=new te(this._driver,B,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(B,_||0));return ie.previousNode=this.previousNode,ie.currentAnimateTimings=this.currentAnimateTimings,ie.options=this._copyOptions(),ie.updateOptions(c),ie.currentQueryIndex=this.currentQueryIndex,ie.currentQueryTotal=this.currentQueryTotal,ie.parentContext=this,this.subContextCount++,ie}transformIntoNewTimeline(c){return this.previousNode=I,this.currentTimeline=this.currentTimeline.fork(this.element,c),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(c,u,_){const B={duration:null!=u?u:c.duration,delay:this.currentTimeline.currentTime+(null!=_?_:0)+c.delay,easing:""},ie=new wt(this._driver,c.element,c.keyframes,c.preStyleProps,c.postStyleProps,B,c.stretchStartingKeyframe);return this.timelines.push(ie),B}incrementTime(c){this.currentTimeline.forwardTime(this.currentTimeline.duration+c)}delayNextStep(c){c>0&&this.currentTimeline.delayNextStep(c)}invokeQuery(c,u,_,B,ie,He){let Ge=[];if(B&&Ge.push(this.element),c.length>0){c=(c=c.replace(_r,"."+this._enterClassName)).replace(kr,"."+this._leaveClassName);let At=this._driver.query(this.element,c,1!=_);0!==_&&(At=_<0?At.slice(At.length+_,At.length):At.slice(0,_)),Ge.push(...At)}return!ie&&0==Ge.length&&He.push(function Jt(M){return new m.vHH(3014,Mt)}()),Ge}}class Xe{constructor(c,u,_,B){this._driver=c,this.element=u,this.startTime=_,this._elementTimelineStylesLookup=B,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(u),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(u,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(c){const u=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||u?(this.forwardTime(this.currentTime+c),u&&this.snapshotCurrentStyles()):this.startTime+=c}fork(c,u){return this.applyStylesToKeyframe(),new Xe(this._driver,c,u||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(c){this.applyStylesToKeyframe(),this.duration=c,this._loadKeyframe()}_updateStyle(c,u){this._localTimelineStyles[c]=u,this._globalTimelineStyles[c]=u,this._styleSummary[c]={time:this.currentTime,value:u}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(c){c&&(this._previousKeyframe.easing=c),Object.keys(this._globalTimelineStyles).forEach(u=>{this._backFill[u]=this._globalTimelineStyles[u]||lt.l3,this._currentKeyframe[u]=lt.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(c,u,_,B){u&&(this._previousKeyframe.easing=u);const ie=B&&B.params||{},He=function a(M,c){const u={};let _;return M.forEach(B=>{"*"===B?(_=_||Object.keys(c),_.forEach(ie=>{u[ie]=lt.l3})):rt(B,!1,u)}),u}(c,this._globalTimelineStyles);Object.keys(He).forEach(Ge=>{const ct=dn(He[Ge],ie,_);this._pendingStyles[Ge]=ct,this._localTimelineStyles.hasOwnProperty(Ge)||(this._backFill[Ge]=this._globalTimelineStyles.hasOwnProperty(Ge)?this._globalTimelineStyles[Ge]:lt.l3),this._updateStyle(Ge,ct)})}applyStylesToKeyframe(){const c=this._pendingStyles,u=Object.keys(c);0!=u.length&&(this._pendingStyles={},u.forEach(_=>{this._currentKeyframe[_]=c[_]}),Object.keys(this._localTimelineStyles).forEach(_=>{this._currentKeyframe.hasOwnProperty(_)||(this._currentKeyframe[_]=this._localTimelineStyles[_])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(c=>{const u=this._localTimelineStyles[c];this._pendingStyles[c]=u,this._updateStyle(c,u)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const c=[];for(let u in this._currentKeyframe)c.push(u);return c}mergeTimelineCollectedStyles(c){Object.keys(c._styleSummary).forEach(u=>{const _=this._styleSummary[u],B=c._styleSummary[u];(!_||B.time>_.time)&&this._updateStyle(u,B.value)})}buildKeyframes(){this.applyStylesToKeyframe();const c=new Set,u=new Set,_=1===this._keyframes.size&&0===this.duration;let B=[];this._keyframes.forEach((Ge,ct)=>{const At=rt(Ge,!0);Object.keys(At).forEach(zt=>{const an=At[zt];an==lt.k1?c.add(zt):an==lt.l3&&u.add(zt)}),_||(At.offset=ct/this.duration),B.push(At)});const ie=c.size?hn(c.values()):[],He=u.size?hn(u.values()):[];if(_){const Ge=B[0],ct=Ce(Ge);Ge.offset=0,ct.offset=1,B=[Ge,ct]}return Jr(this.element,B,ie,He,this.duration,this.startTime,this.easing,!1)}}class wt extends Xe{constructor(c,u,_,B,ie,He,Ge=!1){super(c,u,He.delay),this.keyframes=_,this.preStyleProps=B,this.postStyleProps=ie,this._stretchStartingKeyframe=Ge,this.timings={duration:He.duration,delay:He.delay,easing:He.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let c=this.keyframes,{delay:u,duration:_,easing:B}=this.timings;if(this._stretchStartingKeyframe&&u){const ie=[],He=_+u,Ge=u/He,ct=rt(c[0],!1);ct.offset=0,ie.push(ct);const At=rt(c[0],!1);At.offset=Ot(Ge),ie.push(At);const zt=c.length-1;for(let an=1;an<=zt;an++){let En=rt(c[an],!1);En.offset=Ot((u+En.offset*_)/He),ie.push(En)}_=He,u=0,B="",c=ie}return Jr(this.element,c,this.preStyleProps,this.postStyleProps,_,u,B,!0)}}function Ot(M,c=3){const u=Math.pow(10,c-1);return Math.round(M*u)/u}class l{}class X extends l{normalizePropertyName(c,u){return qn(c)}normalizeStyleValue(c,u,_,B){let ie="";const He=_.toString().trim();if(ht[u]&&0!==_&&"0"!==_)if("number"==typeof _)ie="px";else{const Ge=_.match(/^[+-]?[\d\.]+([a-z]*)$/);Ge&&0==Ge[1].length&&B.push(function O(M,c){return new m.vHH(3005,Mt)}())}return He+ie}}const ht=(()=>function Ft(M){const c={};return M.forEach(u=>c[u]=!0),c}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Bt(M,c,u,_,B,ie,He,Ge,ct,At,zt,an,En){return{type:0,element:M,triggerName:c,isRemovalTransition:B,fromState:u,fromStyles:ie,toState:_,toStyles:He,timelines:Ge,queriedElements:ct,preStyleProps:At,postStyleProps:zt,totalTime:an,errors:En}}const S={};class E{constructor(c,u,_){this._triggerName=c,this.ast=u,this._stateStyles=_}match(c,u,_,B){return function b(M,c,u,_,B){return M.some(ie=>ie(c,u,_,B))}(this.ast.matchers,c,u,_,B)}buildStyles(c,u,_){const B=this._stateStyles["*"],ie=this._stateStyles[c],He=B?B.buildStyles(u,_):{};return ie?ie.buildStyles(u,_):He}build(c,u,_,B,ie,He,Ge,ct,At,zt){const an=[],En=this.ast.options&&this.ast.options.params||S,pn=this.buildStyles(_,Ge&&Ge.params||S,an),Mn=ct&&ct.params||S,Hn=this.buildStyles(B,Mn,an),or=new Set,kn=new Map,Wn=new Map,sr="void"===B,io={params:Object.assign(Object.assign({},En),Mn)},ni=zt?[]:A(c,u,this.ast.animation,ie,He,pn,Hn,io,At,an);let Ir=0;if(ni.forEach(bi=>{Ir=Math.max(bi.duration+bi.delay,Ir)}),an.length)return Bt(u,this._triggerName,_,B,sr,pn,Hn,[],[],kn,Wn,Ir,an);ni.forEach(bi=>{const jr=bi.element,oo=Et(kn,jr,{});bi.preStyleProps.forEach(li=>oo[li]=!0);const Pi=Et(Wn,jr,{});bi.postStyleProps.forEach(li=>Pi[li]=!0),jr!==u&&or.add(jr)});const vi=hn(or.values());return Bt(u,this._triggerName,_,B,sr,pn,Hn,ni,vi,kn,Wn,Ir)}}class W{constructor(c,u,_){this.styles=c,this.defaultParams=u,this.normalizer=_}buildStyles(c,u){const _={},B=Ce(this.defaultParams);return Object.keys(c).forEach(ie=>{const He=c[ie];null!=He&&(B[ie]=He)}),this.styles.styles.forEach(ie=>{if("string"!=typeof ie){const He=ie;Object.keys(He).forEach(Ge=>{let ct=He[Ge];ct.length>1&&(ct=dn(ct,B,u));const At=this.normalizer.normalizePropertyName(Ge,u);ct=this.normalizer.normalizeStyleValue(Ge,At,ct,u),_[At]=ct})}}),_}}class Wt{constructor(c,u,_){this.name=c,this.ast=u,this._normalizer=_,this.transitionFactories=[],this.states={},u.states.forEach(B=>{this.states[B.name]=new W(B.style,B.options&&B.options.params||{},_)}),fr(this.states,"true","1"),fr(this.states,"false","0"),u.transitions.forEach(B=>{this.transitionFactories.push(new E(c,B,this.states))}),this.fallbackTransition=function $n(M,c,u){return new E(M,{type:1,animation:{type:2,steps:[],options:null},matchers:[(He,Ge)=>!0],options:null,queryCount:0,depCount:0},c)}(c,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(c,u,_,B){return this.transitionFactories.find(He=>He.match(c,u,_,B))||null}matchStyles(c,u,_){return this.fallbackTransition.buildStyles(c,u,_)}}function fr(M,c,u){M.hasOwnProperty(c)?M.hasOwnProperty(u)||(M[u]=M[c]):M.hasOwnProperty(u)&&(M[c]=M[u])}const Br=new Kr;class xi{constructor(c,u,_){this.bodyNode=c,this._driver=u,this._normalizer=_,this._animations={},this._playersById={},this.players=[]}register(c,u){const _=[],ie=Lr(this._driver,u,_,[]);if(_.length)throw function In(M){return new m.vHH(3503,Mt)}();this._animations[c]=ie}_buildPlayer(c,u,_){const B=c.element,ie=ot(0,this._normalizer,0,c.keyframes,u,_);return this._driver.animate(B,ie,c.duration,c.delay,c.easing,[],!0)}create(c,u,_={}){const B=[],ie=this._animations[c];let He;const Ge=new Map;if(ie?(He=A(this._driver,u,ie,ln,Tn,{},{},_,Br,B),He.forEach(zt=>{const an=Et(Ge,zt.element,{});zt.postStyleProps.forEach(En=>an[En]=null)})):(B.push(function yn(){return new m.vHH(3300,Mt)}()),He=[]),B.length)throw function gr(M){return new m.vHH(3504,Mt)}();Ge.forEach((zt,an)=>{Object.keys(zt).forEach(En=>{zt[En]=this._driver.computeStyle(an,En,lt.l3)})});const At=zn(He.map(zt=>{const an=Ge.get(zt.element);return this._buildPlayer(zt,{},an)}));return this._playersById[c]=At,At.onDestroy(()=>this.destroy(c)),this.players.push(At),At}destroy(c){const u=this._getPlayer(c);u.destroy(),delete this._playersById[c];const _=this.players.indexOf(u);_>=0&&this.players.splice(_,1)}_getPlayer(c){const u=this._playersById[c];if(!u)throw function un(M){return new m.vHH(3301,Mt)}();return u}listen(c,u,_,B){const ie=nt(u,"","","");return Ye(this._getPlayer(c),_,ie,B),()=>{}}command(c,u,_,B){if("register"==_)return void this.register(c,B[0]);if("create"==_)return void this.create(c,u,B[0]||{});const ie=this._getPlayer(c);switch(_){case"play":ie.play();break;case"pause":ie.pause();break;case"reset":ie.reset();break;case"restart":ie.restart();break;case"finish":ie.finish();break;case"init":ie.init();break;case"setPosition":ie.setPosition(parseFloat(B[0]));break;case"destroy":this.destroy(c)}}}const An="ng-animate-queued",Mo="ng-animate-disabled",Hi=[],Io={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},xs={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Tt="__ng_removed";class Vn{constructor(c,u=""){this.namespaceId=u;const _=c&&c.hasOwnProperty("value");if(this.value=function To(M){return null!=M?M:null}(_?c.value:c),_){const ie=Ce(c);delete ie.value,this.options=ie}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(c){const u=c.params;if(u){const _=this.options.params;Object.keys(u).forEach(B=>{null==_[B]&&(_[B]=u[B])})}}}const ji="void",mr=new Vn(ji);class fo{constructor(c,u,_){this.id=c,this.hostElement=u,this._engine=_,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+c,br(u,this._hostClassName)}listen(c,u,_,B){if(!this._triggers.hasOwnProperty(u))throw function lr(M,c){return new m.vHH(3302,Mt)}();if(null==_||0==_.length)throw function yr(M){return new m.vHH(3303,Mt)}();if(!function ho(M){return"start"==M||"done"==M}(_))throw function nn(M,c){return new m.vHH(3400,Mt)}();const ie=Et(this._elementListeners,c,[]),He={name:u,phase:_,callback:B};ie.push(He);const Ge=Et(this._engine.statesByElement,c,{});return Ge.hasOwnProperty(u)||(br(c,jn),br(c,jn+"-"+u),Ge[u]=mr),()=>{this._engine.afterFlush(()=>{const ct=ie.indexOf(He);ct>=0&&ie.splice(ct,1),this._triggers[u]||delete Ge[u]})}}register(c,u){return!this._triggers[c]&&(this._triggers[c]=u,!0)}_getTrigger(c){const u=this._triggers[c];if(!u)throw function Sn(M){return new m.vHH(3401,Mt)}();return u}trigger(c,u,_,B=!0){const ie=this._getTrigger(u),He=new Hr(this.id,u,c);let Ge=this._engine.statesByElement.get(c);Ge||(br(c,jn),br(c,jn+"-"+u),this._engine.statesByElement.set(c,Ge={}));let ct=Ge[u];const At=new Vn(_,this.id);if(!(_&&_.hasOwnProperty("value"))&&ct&&At.absorbOptions(ct.options),Ge[u]=At,ct||(ct=mr),At.value!==ji&&ct.value===At.value){if(!function Wo(M,c){const u=Object.keys(M),_=Object.keys(c);if(u.length!=_.length)return!1;for(let B=0;B<u.length;B++){const ie=u[B];if(!c.hasOwnProperty(ie)||M[ie]!==c[ie])return!1}return!0}(ct.params,At.params)){const Mn=[],Hn=ie.matchStyles(ct.value,ct.params,Mn),or=ie.matchStyles(At.value,At.params,Mn);Mn.length?this._engine.reportError(Mn):this._engine.afterFlush(()=>{st(c,Hn),Ke(c,or)})}return}const En=Et(this._engine.playersByElement,c,[]);En.forEach(Mn=>{Mn.namespaceId==this.id&&Mn.triggerName==u&&Mn.queued&&Mn.destroy()});let xn=ie.matchTransition(ct.value,At.value,c,At.params),pn=!1;if(!xn){if(!B)return;xn=ie.fallbackTransition,pn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:c,triggerName:u,transition:xn,fromState:ct,toState:At,player:He,isFallbackTransition:pn}),pn||(br(c,An),He.onStart(()=>{ti(c,An)})),He.onDone(()=>{let Mn=this.players.indexOf(He);Mn>=0&&this.players.splice(Mn,1);const Hn=this._engine.playersByElement.get(c);if(Hn){let or=Hn.indexOf(He);or>=0&&Hn.splice(or,1)}}),this.players.push(He),En.push(He),He}deregister(c){delete this._triggers[c],this._engine.statesByElement.forEach((u,_)=>{delete u[c]}),this._elementListeners.forEach((u,_)=>{this._elementListeners.set(_,u.filter(B=>B.name!=c))})}clearElementCache(c){this._engine.statesByElement.delete(c),this._elementListeners.delete(c);const u=this._engine.playersByElement.get(c);u&&(u.forEach(_=>_.destroy()),this._engine.playersByElement.delete(c))}_signalRemovalForInnerTriggers(c,u){const _=this._engine.driver.query(c,rr,!0);_.forEach(B=>{if(B[Tt])return;const ie=this._engine.fetchNamespacesByElement(B);ie.size?ie.forEach(He=>He.triggerLeaveAnimation(B,u,!1,!0)):this.clearElementCache(B)}),this._engine.afterFlushAnimationsDone(()=>_.forEach(B=>this.clearElementCache(B)))}triggerLeaveAnimation(c,u,_,B){const ie=this._engine.statesByElement.get(c),He=new Map;if(ie){const Ge=[];if(Object.keys(ie).forEach(ct=>{if(He.set(ct,ie[ct].value),this._triggers[ct]){const At=this.trigger(c,ct,ji,B);At&&Ge.push(At)}}),Ge.length)return this._engine.markElementAsRemoved(this.id,c,!0,u,He),_&&zn(Ge).onDone(()=>this._engine.processLeaveNode(c)),!0}return!1}prepareLeaveAnimationListeners(c){const u=this._elementListeners.get(c),_=this._engine.statesByElement.get(c);if(u&&_){const B=new Set;u.forEach(ie=>{const He=ie.name;if(B.has(He))return;B.add(He);const ct=this._triggers[He].fallbackTransition,At=_[He]||mr,zt=new Vn(ji),an=new Hr(this.id,He,c);this._engine.totalQueuedPlayers++,this._queue.push({element:c,triggerName:He,transition:ct,fromState:At,toState:zt,player:an,isFallbackTransition:!0})})}}removeNode(c,u){const _=this._engine;if(c.childElementCount&&this._signalRemovalForInnerTriggers(c,u),this.triggerLeaveAnimation(c,u,!0))return;let B=!1;if(_.totalAnimations){const ie=_.players.length?_.playersByQueriedElement.get(c):[];if(ie&&ie.length)B=!0;else{let He=c;for(;He=He.parentNode;)if(_.statesByElement.get(He)){B=!0;break}}}if(this.prepareLeaveAnimationListeners(c),B)_.markElementAsRemoved(this.id,c,!1,u);else{const ie=c[Tt];(!ie||ie===Io)&&(_.afterFlush(()=>this.clearElementCache(c)),_.destroyInnerAnimations(c),_._onRemovalComplete(c,u))}}insertNode(c,u){br(c,this._hostClassName)}drainQueuedTransitions(c){const u=[];return this._queue.forEach(_=>{const B=_.player;if(B.destroyed)return;const ie=_.element,He=this._elementListeners.get(ie);He&&He.forEach(Ge=>{if(Ge.name==_.triggerName){const ct=nt(ie,_.triggerName,_.fromState.value,_.toState.value);ct._data=c,Ye(_.player,Ge.phase,ct,Ge.callback)}}),B.markedForDestroy?this._engine.afterFlush(()=>{B.destroy()}):u.push(_)}),this._queue=[],u.sort((_,B)=>{const ie=_.transition.ast.depCount,He=B.transition.ast.depCount;return 0==ie||0==He?ie-He:this._engine.driver.containsElement(_.element,B.element)?1:-1})}destroy(c){this.players.forEach(u=>u.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,c)}elementContainsData(c){let u=!1;return this._elementListeners.has(c)&&(u=!0),u=!!this._queue.find(_=>_.element===c)||u,u}}class no{constructor(c,u,_){this.bodyNode=c,this.driver=u,this._normalizer=_,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(B,ie)=>{}}_onRemovalComplete(c,u){this.onRemovalComplete(c,u)}get queuedPlayers(){const c=[];return this._namespaceList.forEach(u=>{u.players.forEach(_=>{_.queued&&c.push(_)})}),c}createNamespace(c,u){const _=new fo(c,u,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,u)?this._balanceNamespaceList(_,u):(this.newHostElements.set(u,_),this.collectEnterElement(u)),this._namespaceLookup[c]=_}_balanceNamespaceList(c,u){const _=this._namespaceList,B=this.namespacesByHostElement,ie=_.length-1;if(ie>=0){let He=!1;if(void 0!==this.driver.getParentElement){let Ge=this.driver.getParentElement(u);for(;Ge;){const ct=B.get(Ge);if(ct){const At=_.indexOf(ct);_.splice(At+1,0,c),He=!0;break}Ge=this.driver.getParentElement(Ge)}}else for(let Ge=ie;Ge>=0;Ge--)if(this.driver.containsElement(_[Ge].hostElement,u)){_.splice(Ge+1,0,c),He=!0;break}He||_.unshift(c)}else _.push(c);return B.set(u,c),c}register(c,u){let _=this._namespaceLookup[c];return _||(_=this.createNamespace(c,u)),_}registerTrigger(c,u,_){let B=this._namespaceLookup[c];B&&B.register(u,_)&&this.totalAnimations++}destroy(c,u){if(!c)return;const _=this._fetchNamespace(c);this.afterFlush(()=>{this.namespacesByHostElement.delete(_.hostElement),delete this._namespaceLookup[c];const B=this._namespaceList.indexOf(_);B>=0&&this._namespaceList.splice(B,1)}),this.afterFlushAnimationsDone(()=>_.destroy(u))}_fetchNamespace(c){return this._namespaceLookup[c]}fetchNamespacesByElement(c){const u=new Set,_=this.statesByElement.get(c);if(_){const B=Object.keys(_);for(let ie=0;ie<B.length;ie++){const He=_[B[ie]].namespaceId;if(He){const Ge=this._fetchNamespace(He);Ge&&u.add(Ge)}}}return u}trigger(c,u,_,B){if(xo(u)){const ie=this._fetchNamespace(c);if(ie)return ie.trigger(u,_,B),!0}return!1}insertNode(c,u,_,B){if(!xo(u))return;const ie=u[Tt];if(ie&&ie.setForRemoval){ie.setForRemoval=!1,ie.setForMove=!0;const He=this.collectedLeaveElements.indexOf(u);He>=0&&this.collectedLeaveElements.splice(He,1)}if(c){const He=this._fetchNamespace(c);He&&He.insertNode(u,_)}B&&this.collectEnterElement(u)}collectEnterElement(c){this.collectedEnterElements.push(c)}markElementAsDisabled(c,u){u?this.disabledNodes.has(c)||(this.disabledNodes.add(c),br(c,Mo)):this.disabledNodes.has(c)&&(this.disabledNodes.delete(c),ti(c,Mo))}removeNode(c,u,_,B){if(xo(u)){const ie=c?this._fetchNamespace(c):null;if(ie?ie.removeNode(u,B):this.markElementAsRemoved(c,u,!1,B),_){const He=this.namespacesByHostElement.get(u);He&&He.id!==c&&He.removeNode(u,B)}}else this._onRemovalComplete(u,B)}markElementAsRemoved(c,u,_,B,ie){this.collectedLeaveElements.push(u),u[Tt]={namespaceId:c,setForRemoval:B,hasAnimation:_,removedBeforeQueried:!1,previousTriggersValues:ie}}listen(c,u,_,B,ie){return xo(u)?this._fetchNamespace(c).listen(u,_,B,ie):()=>{}}_buildInstruction(c,u,_,B,ie){return c.transition.build(this.driver,c.element,c.fromState.value,c.toState.value,_,B,c.fromState.options,c.toState.options,u,ie)}destroyInnerAnimations(c){let u=this.driver.query(c,rr,!0);u.forEach(_=>this.destroyActiveAnimationsForElement(_)),0!=this.playersByQueriedElement.size&&(u=this.driver.query(c,Gn,!0),u.forEach(_=>this.finishActiveQueriedAnimationOnElement(_)))}destroyActiveAnimationsForElement(c){const u=this.playersByElement.get(c);u&&u.forEach(_=>{_.queued?_.markedForDestroy=!0:_.destroy()})}finishActiveQueriedAnimationOnElement(c){const u=this.playersByQueriedElement.get(c);u&&u.forEach(_=>_.finish())}whenRenderingDone(){return new Promise(c=>{if(this.players.length)return zn(this.players).onDone(()=>c());c()})}processLeaveNode(c){var u;const _=c[Tt];if(_&&_.setForRemoval){if(c[Tt]=Io,_.namespaceId){this.destroyInnerAnimations(c);const B=this._fetchNamespace(_.namespaceId);B&&B.clearElementCache(c)}this._onRemovalComplete(c,_.setForRemoval)}(null===(u=c.classList)||void 0===u?void 0:u.contains(Mo))&&this.markElementAsDisabled(c,!1),this.driver.query(c,".ng-animate-disabled",!0).forEach(B=>{this.markElementAsDisabled(B,!1)})}flush(c=-1){let u=[];if(this.newHostElements.size&&(this.newHostElements.forEach((_,B)=>this._balanceNamespaceList(_,B)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let _=0;_<this.collectedEnterElements.length;_++)br(this.collectedEnterElements[_],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const _=[];try{u=this._flushAnimations(_,c)}finally{for(let B=0;B<_.length;B++)_[B]()}}else for(let _=0;_<this.collectedLeaveElements.length;_++)this.processLeaveNode(this.collectedLeaveElements[_]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(_=>_()),this._flushFns=[],this._whenQuietFns.length){const _=this._whenQuietFns;this._whenQuietFns=[],u.length?zn(u).onDone(()=>{_.forEach(B=>B())}):_.forEach(B=>B())}}reportError(c){throw function Un(M){return new m.vHH(3402,Mt)}()}_flushAnimations(c,u){const _=new Kr,B=[],ie=new Map,He=[],Ge=new Map,ct=new Map,At=new Map,zt=new Set;this.disabledNodes.forEach(rn=>{zt.add(rn);const gn=this.driver.query(rn,".ng-animate-queued",!0);for(let _n=0;_n<gn.length;_n++)zt.add(gn[_n])});const an=this.bodyNode,En=Array.from(this.statesByElement.keys()),xn=Ar(En,this.collectedEnterElements),pn=new Map;let Mn=0;xn.forEach((rn,gn)=>{const _n=ln+Mn++;pn.set(gn,_n),rn.forEach(Yn=>br(Yn,_n))});const Hn=[],or=new Set,kn=new Set;for(let rn=0;rn<this.collectedLeaveElements.length;rn++){const gn=this.collectedLeaveElements[rn],_n=gn[Tt];_n&&_n.setForRemoval&&(Hn.push(gn),or.add(gn),_n.hasAnimation?this.driver.query(gn,".ng-star-inserted",!0).forEach(Yn=>or.add(Yn)):kn.add(gn))}const Wn=new Map,sr=Ar(En,Array.from(or));sr.forEach((rn,gn)=>{const _n=Tn+Mn++;Wn.set(gn,_n),rn.forEach(Yn=>br(Yn,_n))}),c.push(()=>{xn.forEach((rn,gn)=>{const _n=pn.get(gn);rn.forEach(Yn=>ti(Yn,_n))}),sr.forEach((rn,gn)=>{const _n=Wn.get(gn);rn.forEach(Yn=>ti(Yn,_n))}),Hn.forEach(rn=>{this.processLeaveNode(rn)})});const io=[],ni=[];for(let rn=this._namespaceList.length-1;rn>=0;rn--)this._namespaceList[rn].drainQueuedTransitions(u).forEach(_n=>{const Yn=_n.player,wr=_n.element;if(io.push(Yn),this.collectedEnterElements.length){const Oe=wr[Tt];if(Oe&&Oe.setForMove){if(Oe.previousTriggersValues&&Oe.previousTriggersValues.has(_n.triggerName)){const Qe=Oe.previousTriggersValues.get(_n.triggerName),Dt=this.statesByElement.get(_n.element);Dt&&Dt[_n.triggerName]&&(Dt[_n.triggerName].value=Qe)}return void Yn.destroy()}}const y=!an||!this.driver.containsElement(an,wr),h=Wn.get(wr),f=pn.get(wr),C=this._buildInstruction(_n,_,f,h,y);if(C.errors&&C.errors.length)return void ni.push(C);if(y)return Yn.onStart(()=>st(wr,C.fromStyles)),Yn.onDestroy(()=>Ke(wr,C.toStyles)),void B.push(Yn);if(_n.isFallbackTransition)return Yn.onStart(()=>st(wr,C.fromStyles)),Yn.onDestroy(()=>Ke(wr,C.toStyles)),void B.push(Yn);const x=[];C.timelines.forEach(Oe=>{Oe.stretchStartingKeyframe=!0,this.disabledNodes.has(Oe.element)||x.push(Oe)}),C.timelines=x,_.append(wr,C.timelines),He.push({instruction:C,player:Yn,element:wr}),C.queriedElements.forEach(Oe=>Et(Ge,Oe,[]).push(Yn)),C.preStyleProps.forEach((Oe,Qe)=>{const Dt=Object.keys(Oe);if(Dt.length){let Qt=ct.get(Qe);Qt||ct.set(Qe,Qt=new Set),Dt.forEach(Pn=>Qt.add(Pn))}}),C.postStyleProps.forEach((Oe,Qe)=>{const Dt=Object.keys(Oe);let Qt=At.get(Qe);Qt||At.set(Qe,Qt=new Set),Dt.forEach(Pn=>Qt.add(Pn))})});if(ni.length){const rn=[];ni.forEach(gn=>{rn.push(function Zn(M,c){return new m.vHH(3505,Mt)}())}),io.forEach(gn=>gn.destroy()),this.reportError(rn)}const Ir=new Map,vi=new Map;He.forEach(rn=>{const gn=rn.element;_.has(gn)&&(vi.set(gn,gn),this._beforeAnimationBuild(rn.player.namespaceId,rn.instruction,Ir))}),B.forEach(rn=>{const gn=rn.element;this._getPreviousPlayers(gn,!1,rn.namespaceId,rn.triggerName,null).forEach(Yn=>{Et(Ir,gn,[]).push(Yn),Yn.destroy()})});const bi=Hn.filter(rn=>Yo(rn,ct,At)),jr=new Map;mi(jr,this.driver,kn,At,lt.l3).forEach(rn=>{Yo(rn,ct,At)&&bi.push(rn)});const Pi=new Map;xn.forEach((rn,gn)=>{mi(Pi,this.driver,new Set(rn),ct,lt.k1)}),bi.forEach(rn=>{const gn=jr.get(rn),_n=Pi.get(rn);jr.set(rn,Object.assign(Object.assign({},gn),_n))});const li=[],so=[],Do={};He.forEach(rn=>{const{element:gn,player:_n,instruction:Yn}=rn;if(_.has(gn)){if(zt.has(gn))return _n.onDestroy(()=>Ke(gn,Yn.toStyles)),_n.disabled=!0,_n.overrideTotalTime(Yn.totalTime),void B.push(_n);let wr=Do;if(vi.size>1){let h=gn;const f=[];for(;h=h.parentNode;){const C=vi.get(h);if(C){wr=C;break}f.push(h)}f.forEach(C=>vi.set(C,wr))}const y=this._buildAnimation(_n.namespaceId,Yn,Ir,ie,Pi,jr);if(_n.setRealPlayer(y),wr===Do)li.push(_n);else{const h=this.playersByElement.get(wr);h&&h.length&&(_n.parentPlayer=zn(h)),B.push(_n)}}else st(gn,Yn.fromStyles),_n.onDestroy(()=>Ke(gn,Yn.toStyles)),so.push(_n),zt.has(gn)&&B.push(_n)}),so.forEach(rn=>{const gn=ie.get(rn.element);if(gn&&gn.length){const _n=zn(gn);rn.setRealPlayer(_n)}}),B.forEach(rn=>{rn.parentPlayer?rn.syncPlayerEvents(rn.parentPlayer):rn.destroy()});for(let rn=0;rn<Hn.length;rn++){const gn=Hn[rn],_n=gn[Tt];if(ti(gn,Tn),_n&&_n.hasAnimation)continue;let Yn=[];if(Ge.size){let y=Ge.get(gn);y&&y.length&&Yn.push(...y);let h=this.driver.query(gn,Gn,!0);for(let f=0;f<h.length;f++){let C=Ge.get(h[f]);C&&C.length&&Yn.push(...C)}}const wr=Yn.filter(y=>!y.destroyed);wr.length?zi(this,gn,wr):this.processLeaveNode(gn)}return Hn.length=0,li.forEach(rn=>{this.players.push(rn),rn.onDone(()=>{rn.destroy();const gn=this.players.indexOf(rn);this.players.splice(gn,1)}),rn.play()}),li}elementContainsData(c,u){let _=!1;const B=u[Tt];return B&&B.setForRemoval&&(_=!0),this.playersByElement.has(u)&&(_=!0),this.playersByQueriedElement.has(u)&&(_=!0),this.statesByElement.has(u)&&(_=!0),this._fetchNamespace(c).elementContainsData(u)||_}afterFlush(c){this._flushFns.push(c)}afterFlushAnimationsDone(c){this._whenQuietFns.push(c)}_getPreviousPlayers(c,u,_,B,ie){let He=[];if(u){const Ge=this.playersByQueriedElement.get(c);Ge&&(He=Ge)}else{const Ge=this.playersByElement.get(c);if(Ge){const ct=!ie||ie==ji;Ge.forEach(At=>{At.queued||!ct&&At.triggerName!=B||He.push(At)})}}return(_||B)&&(He=He.filter(Ge=>!(_&&_!=Ge.namespaceId||B&&B!=Ge.triggerName))),He}_beforeAnimationBuild(c,u,_){const ie=u.element,He=u.isRemovalTransition?void 0:c,Ge=u.isRemovalTransition?void 0:u.triggerName;for(const ct of u.timelines){const At=ct.element,zt=At!==ie,an=Et(_,At,[]);this._getPreviousPlayers(At,zt,He,Ge,u.toState).forEach(xn=>{const pn=xn.getRealPlayer();pn.beforeDestroy&&pn.beforeDestroy(),xn.destroy(),an.push(xn)})}st(ie,u.fromStyles)}_buildAnimation(c,u,_,B,ie,He){const Ge=u.triggerName,ct=u.element,At=[],zt=new Set,an=new Set,En=u.timelines.map(pn=>{const Mn=pn.element;zt.add(Mn);const Hn=Mn[Tt];if(Hn&&Hn.removedBeforeQueried)return new lt.ZN(pn.duration,pn.delay);const or=Mn!==ct,kn=function yi(M){const c=[];return Go(M,c),c}((_.get(Mn)||Hi).map(Ir=>Ir.getRealPlayer())).filter(Ir=>!!Ir.element&&Ir.element===Mn),Wn=ie.get(Mn),sr=He.get(Mn),io=ot(0,this._normalizer,0,pn.keyframes,Wn,sr),ni=this._buildPlayer(pn,io,kn);if(pn.subTimeline&&B&&an.add(Mn),or){const Ir=new Hr(c,Ge,Mn);Ir.setRealPlayer(ni),At.push(Ir)}return ni});At.forEach(pn=>{Et(this.playersByQueriedElement,pn.element,[]).push(pn),pn.onDone(()=>function Ui(M,c,u){let _;if(M instanceof Map){if(_=M.get(c),_){if(_.length){const B=_.indexOf(u);_.splice(B,1)}0==_.length&&M.delete(c)}}else if(_=M[c],_){if(_.length){const B=_.indexOf(u);_.splice(B,1)}0==_.length&&delete M[c]}return _}(this.playersByQueriedElement,pn.element,pn))}),zt.forEach(pn=>br(pn,Ln));const xn=zn(En);return xn.onDestroy(()=>{zt.forEach(pn=>ti(pn,Ln)),Ke(ct,u.toStyles)}),an.forEach(pn=>{Et(B,pn,[]).push(xn)}),xn}_buildPlayer(c,u,_){return u.length>0?this.driver.animate(c.element,u,c.duration,c.delay,c.easing,_):new lt.ZN(c.duration,c.delay)}}class Hr{constructor(c,u,_){this.namespaceId=c,this.triggerName=u,this.element=_,this._player=new lt.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(c){this._containsRealPlayer||(this._player=c,Object.keys(this._queuedCallbacks).forEach(u=>{this._queuedCallbacks[u].forEach(_=>Ye(c,u,void 0,_))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(c.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(c){this.totalTime=c}syncPlayerEvents(c){const u=this._player;u.triggerCallback&&c.onStart(()=>u.triggerCallback("start")),c.onDone(()=>this.finish()),c.onDestroy(()=>this.destroy())}_queueEvent(c,u){Et(this._queuedCallbacks,c,[]).push(u)}onDone(c){this.queued&&this._queueEvent("done",c),this._player.onDone(c)}onStart(c){this.queued&&this._queueEvent("start",c),this._player.onStart(c)}onDestroy(c){this.queued&&this._queueEvent("destroy",c),this._player.onDestroy(c)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(c){this.queued||this._player.setPosition(c)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(c){const u=this._player;u.triggerCallback&&u.triggerCallback(c)}}function xo(M){return M&&1===M.nodeType}function Ps(M,c){const u=M.style.display;return M.style.display=null!=c?c:"none",u}function mi(M,c,u,_,B){const ie=[];u.forEach(ct=>ie.push(Ps(ct)));const He=[];_.forEach((ct,At)=>{const zt={};ct.forEach(an=>{const En=zt[an]=c.computeStyle(At,an,B);(!En||0==En.length)&&(At[Tt]=xs,He.push(At))}),M.set(At,zt)});let Ge=0;return u.forEach(ct=>Ps(ct,ie[Ge++])),He}function Ar(M,c){const u=new Map;if(M.forEach(Ge=>u.set(Ge,[])),0==c.length)return u;const B=new Set(c),ie=new Map;function He(Ge){if(!Ge)return 1;let ct=ie.get(Ge);if(ct)return ct;const At=Ge.parentNode;return ct=u.has(At)?At:B.has(At)?1:He(At),ie.set(Ge,ct),ct}return c.forEach(Ge=>{const ct=He(Ge);1!==ct&&u.get(ct).push(Ge)}),u}function br(M,c){var u;null===(u=M.classList)||void 0===u||u.add(c)}function ti(M,c){var u;null===(u=M.classList)||void 0===u||u.remove(c)}function zi(M,c,u){zn(u).onDone(()=>M.processLeaveNode(c))}function Go(M,c){for(let u=0;u<M.length;u++){const _=M[u];_ instanceof lt.ZE?Go(_.players,c):c.push(_)}}function Yo(M,c,u){const _=u.get(M);if(!_)return!1;let B=c.get(M);return B?_.forEach(ie=>B.add(ie)):c.set(M,_),u.delete(M),!0}class po{constructor(c,u,_){this.bodyNode=c,this._driver=u,this._normalizer=_,this._triggerCache={},this.onRemovalComplete=(B,ie)=>{},this._transitionEngine=new no(c,u,_),this._timelineEngine=new xi(c,u,_),this._transitionEngine.onRemovalComplete=(B,ie)=>this.onRemovalComplete(B,ie)}registerTrigger(c,u,_,B,ie){const He=c+"-"+B;let Ge=this._triggerCache[He];if(!Ge){const ct=[],zt=Lr(this._driver,ie,ct,[]);if(ct.length)throw function bn(M,c){return new m.vHH(3404,Mt)}();Ge=function bt(M,c,u){return new Wt(M,c,u)}(B,zt,this._normalizer),this._triggerCache[He]=Ge}this._transitionEngine.registerTrigger(u,B,Ge)}register(c,u){this._transitionEngine.register(c,u)}destroy(c,u){this._transitionEngine.destroy(c,u)}onInsert(c,u,_,B){this._transitionEngine.insertNode(c,u,_,B)}onRemove(c,u,_,B){this._transitionEngine.removeNode(c,u,B||!1,_)}disableAnimations(c,u){this._transitionEngine.markElementAsDisabled(c,u)}process(c,u,_,B){if("@"==_.charAt(0)){const[ie,He]=Ht(_);this._timelineEngine.command(ie,u,He,B)}else this._transitionEngine.trigger(c,u,_,B)}listen(c,u,_,B,ie){if("@"==_.charAt(0)){const[He,Ge]=Ht(_);return this._timelineEngine.listen(He,u,Ge,ie)}return this._transitionEngine.listen(c,u,_,B,ie)}flush(c=-1){this._transitionEngine.flush(c)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let Oo=(()=>{class M{constructor(u,_,B){this._element=u,this._startStyles=_,this._endStyles=B,this._state=0;let ie=M.initialStylesByElement.get(u);ie||M.initialStylesByElement.set(u,ie={}),this._initialStyles=ie}start(){this._state<1&&(this._startStyles&&Ke(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ke(this._element,this._initialStyles),this._endStyles&&(Ke(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(M.initialStylesByElement.delete(this._element),this._startStyles&&(st(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(st(this._element,this._endStyles),this._endStyles=null),Ke(this._element,this._initialStyles),this._state=3)}}return M.initialStylesByElement=new WeakMap,M})();function go(M){let c=null;const u=Object.keys(M);for(let _=0;_<u.length;_++){const B=u[_];mo(B)&&(c=c||{},c[B]=M[B])}return c}function mo(M){return"display"===M||"position"===M}class Ko{constructor(c,u,_,B){this.element=c,this.keyframes=u,this.options=_,this._specialStyles=B,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=_.duration,this._delay=_.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(c=>c()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const c=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,c,this.options),this._finalKeyframe=c.length?c[c.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(c,u,_){return c.animate(u,_)}onStart(c){this._onStartFns.push(c)}onDone(c){this._onDoneFns.push(c)}onDestroy(c){this._onDestroyFns.push(c)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(c=>c()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(c=>c()),this._onDestroyFns=[])}setPosition(c){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=c*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const c={};if(this.hasStarted()){const u=this._finalKeyframe;Object.keys(u).forEach(_=>{"offset"!=_&&(c[_]=this._finished?u[_]:qr(this.element,_))})}this.currentSnapshot=c}triggerCallback(c){const u="start"==c?this._onStartFns:this._onDoneFns;u.forEach(_=>_()),u.length=0}}class Qo{validateStyleProperty(c){return dt(c)}matchesElement(c,u){return!1}containsElement(c,u){return Gt(c,u)}getParentElement(c){return ge(c)}query(c,u,_){return Rt(c,u,_)}computeStyle(c,u,_){return window.getComputedStyle(c)[u]}animate(c,u,_,B,ie,He=[]){const ct={duration:_,delay:B,fill:0==B?"both":"forwards"};ie&&(ct.easing=ie);const At={},zt=He.filter(En=>En instanceof Ko);(function ur(M,c){return 0===M||0===c})(_,B)&&zt.forEach(En=>{let xn=En.currentSnapshot;Object.keys(xn).forEach(pn=>At[pn]=xn[pn])}),u=function $r(M,c,u){const _=Object.keys(u);if(_.length&&c.length){let ie=c[0],He=[];if(_.forEach(Ge=>{ie.hasOwnProperty(Ge)||He.push(Ge),ie[Ge]=u[Ge]}),He.length)for(var B=1;B<c.length;B++){let Ge=c[B];He.forEach(function(ct){Ge[ct]=qr(M,ct)})}}return c}(c,u=u.map(En=>rt(En,!1)),At);const an=function Po(M,c){let u=null,_=null;return Array.isArray(c)&&c.length?(u=go(c[0]),c.length>1&&(_=go(c[c.length-1]))):c&&(u=go(c)),u||_?new Oo(M,u,_):null}(c,u);return new Ko(c,u,ct,an)}}let yo=(()=>{class M extends lt._j{constructor(u,_){super(),this._nextAnimationId=0,this._renderer=u.createRenderer(_.body,{id:"0",encapsulation:m.ifc.None,styles:[],data:{animation:[]}})}build(u){const _=this._nextAnimationId.toString();this._nextAnimationId++;const B=Array.isArray(u)?(0,lt.vP)(u):u;return vo(this._renderer,null,_,"register",[B]),new Xo(_,this._renderer)}}return M.\u0275fac=function(u){return new(u||M)(m.LFG(m.FYo),m.LFG(N.K0))},M.\u0275prov=m.Yz7({token:M,factory:M.\u0275fac}),M})();class Xo extends lt.LC{constructor(c,u){super(),this._id=c,this._renderer=u}create(c,u){return new qo(this._id,c,u||{},this._renderer)}}class qo{constructor(c,u,_,B){this.id=c,this.element=u,this._renderer=B,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",_)}_listen(c,u){return this._renderer.listen(this.element,`@@${this.id}:${c}`,u)}_command(c,...u){return vo(this._renderer,this.element,this.id,c,u)}onDone(c){this._listen("done",c)}onStart(c){this._listen("start",c)}onDestroy(c){this._listen("destroy",c)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(c){this._command("setPosition",c)}getPosition(){var c,u;return null!==(u=null===(c=this._renderer.engine.players[+this.id])||void 0===c?void 0:c.getPosition())&&void 0!==u?u:0}}function vo(M,c,u,_,B){return M.setProperty(c,`@@${u}:${_}`,B)}const Gi="@.disabled";let Zo=(()=>{class M{constructor(u,_,B){this.delegate=u,this.engine=_,this._zone=B,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),_.onRemovalComplete=(ie,He)=>{const Ge=null==He?void 0:He.parentNode(ie);Ge&&He.removeChild(Ge,ie)}}createRenderer(u,_){const ie=this.delegate.createRenderer(u,_);if(!(u&&_&&_.data&&_.data.animation)){let zt=this._rendererCache.get(ie);return zt||(zt=new Ro("",ie,this.engine),this._rendererCache.set(ie,zt)),zt}const He=_.id,Ge=_.id+"-"+this._currentId;this._currentId++,this.engine.register(Ge,u);const ct=zt=>{Array.isArray(zt)?zt.forEach(ct):this.engine.registerTrigger(He,Ge,u,zt.name,zt)};return _.data.animation.forEach(ct),new Mr(this,Ge,ie,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(u,_,B){u>=0&&u<this._microtaskId?this._zone.run(()=>_(B)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(ie=>{const[He,Ge]=ie;He(Ge)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([_,B]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return M.\u0275fac=function(u){return new(u||M)(m.LFG(m.FYo),m.LFG(po),m.LFG(m.R0b))},M.\u0275prov=m.Yz7({token:M,factory:M.\u0275fac}),M})();class Ro{constructor(c,u,_){this.namespaceId=c,this.delegate=u,this.engine=_,this.destroyNode=this.delegate.destroyNode?B=>u.destroyNode(B):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(c,u){return this.delegate.createElement(c,u)}createComment(c){return this.delegate.createComment(c)}createText(c){return this.delegate.createText(c)}appendChild(c,u){this.delegate.appendChild(c,u),this.engine.onInsert(this.namespaceId,u,c,!1)}insertBefore(c,u,_,B=!0){this.delegate.insertBefore(c,u,_),this.engine.onInsert(this.namespaceId,u,c,B)}removeChild(c,u,_){this.engine.onRemove(this.namespaceId,u,this.delegate,_)}selectRootElement(c,u){return this.delegate.selectRootElement(c,u)}parentNode(c){return this.delegate.parentNode(c)}nextSibling(c){return this.delegate.nextSibling(c)}setAttribute(c,u,_,B){this.delegate.setAttribute(c,u,_,B)}removeAttribute(c,u,_){this.delegate.removeAttribute(c,u,_)}addClass(c,u){this.delegate.addClass(c,u)}removeClass(c,u){this.delegate.removeClass(c,u)}setStyle(c,u,_,B){this.delegate.setStyle(c,u,_,B)}removeStyle(c,u,_){this.delegate.removeStyle(c,u,_)}setProperty(c,u,_){"@"==u.charAt(0)&&u==Gi?this.disableAnimations(c,!!_):this.delegate.setProperty(c,u,_)}setValue(c,u){this.delegate.setValue(c,u)}listen(c,u,_){return this.delegate.listen(c,u,_)}disableAnimations(c,u){this.engine.disableAnimations(c,u)}}class Mr extends Ro{constructor(c,u,_,B){super(u,_,B),this.factory=c,this.namespaceId=u}setProperty(c,u,_){"@"==u.charAt(0)?"."==u.charAt(1)&&u==Gi?this.disableAnimations(c,_=void 0===_||!!_):this.engine.process(this.namespaceId,c,u.substr(1),_):this.delegate.setProperty(c,u,_)}listen(c,u,_){if("@"==u.charAt(0)){const B=function wi(M){switch(M){case"body":return document.body;case"document":return document;case"window":return window;default:return M}}(c);let ie=u.substr(1),He="";return"@"!=ie.charAt(0)&&([ie,He]=function hr(M){const c=M.indexOf(".");return[M.substring(0,c),M.substr(c+1)]}(ie)),this.engine.listen(this.namespaceId,B,ie,He,Ge=>{this.factory.scheduleListenerCallback(Ge._data||-1,_,Ge)})}return this.delegate.listen(c,u,_)}}let Os=(()=>{class M extends po{constructor(u,_,B){super(u.body,_,B)}ngOnDestroy(){this.flush()}}return M.\u0275fac=function(u){return new(u||M)(m.LFG(N.K0),m.LFG(jt),m.LFG(l))},M.\u0275prov=m.Yz7({token:M,factory:M.\u0275fac}),M})();const es=new m.OlP("AnimationModuleType"),_o=[{provide:lt._j,useClass:yo},{provide:l,useFactory:function Rs(){return new X}},{provide:po,useClass:Os},{provide:m.FYo,useFactory:function Jo(M,c,u){return new Zo(M,c,u)},deps:[r.se,po,m.R0b]}],Fo=[{provide:jt,useFactory:()=>new Qo},{provide:es,useValue:"BrowserAnimations"},..._o],Eo=[{provide:jt,useClass:en},{provide:es,useValue:"NoopAnimations"},..._o];let Co=(()=>{class M{static withConfig(u){return{ngModule:M,providers:u.disableAnimations?Eo:Fo}}}return M.\u0275fac=function(u){return new(u||M)},M.\u0275mod=m.oAB({type:M}),M.\u0275inj=m.cJS({providers:Fo,imports:[r.b2]}),M})(),wo=(()=>{class M{}return M.\u0275fac=function(u){return new(u||M)},M.\u0275mod=m.oAB({type:M,bootstrap:[he]}),M.\u0275inj=m.cJS({providers:[{provide:D.wN,useClass:j.r4},{provide:P.TP,useClass:be,multi:!0},{provide:m.ip1,useFactory:Fs,deps:[U.sK],multi:!0},k.s,Be,Ue.b],imports:[[r.b2.withServerTransition({appId:"serverApp"}),j.Pc.forRoot({}),q,U.aw.forRoot({loader:{provide:U.Zw,useFactory:ts,deps:[P.eN]},defaultLanguage:"zh_TW"}),P.JF,it.N,qe.QG,H.ud,Co]]}),M})();function ts(M){let c;return c="undefined"!=typeof window?location.origin+"/assets/i18n/":Re.N.frontend.domain+"/assets/i18n/",new V(M,c,".json")}function Fs(M){return()=>{if("undefined"!=typeof window){let c=localStorage.getItem("language")||"zh_TW";return M.use(c).toPromise()}return M.use("zh_TW").toPromise()}}Re.N.production&&(0,m.G48)(),document.addEventListener("DOMContentLoaded",()=>{r.q6().bootstrapModule(wo).catch(M=>console.log(M))})},2466:(Ct,ae,p)=>{"use strict";p.d(ae,{X$:()=>le,Zw:()=>ne,aw:()=>Ae,sK:()=>pe});var r=p(2096),m=p(1086),D=p(4715),j=p(567),U=p(1221),V=p(8514),P=p(2986),F=p(7803),q=p(4850),Q=p(1406),ee=p(7545);class ne{}let Y=(()=>{class be extends ne{getTranslation(H){return(0,m.of)({})}}return be.\u0275fac=function(){let Re;return function(k){return(Re||(Re=r.n5z(be)))(k||be)}}(),be.\u0275prov=r.Yz7({token:be,factory:be.\u0275fac}),be})();class Ne{}let $e=(()=>{class be{handle(H){return H.key}}return be.\u0275fac=function(H){return new(H||be)},be.\u0275prov=r.Yz7({token:be,factory:be.\u0275fac}),be})();function ye(be,Re){if(be===Re)return!0;if(null===be||null===Re)return!1;if(be!=be&&Re!=Re)return!0;let Ue,it,qe,H=typeof be;if(H==typeof Re&&"object"==H){if(!Array.isArray(be)){if(Array.isArray(Re))return!1;for(it in qe=Object.create(null),be){if(!ye(be[it],Re[it]))return!1;qe[it]=!0}for(it in Re)if(!(it in qe)&&void 0!==Re[it])return!1;return!0}if(!Array.isArray(Re))return!1;if((Ue=be.length)==Re.length){for(it=0;it<Ue;it++)if(!ye(be[it],Re[it]))return!1;return!0}}return!1}function De(be){return null!=be}function ue(be){return be&&"object"==typeof be&&!Array.isArray(be)}function me(be,Re){let H=Object.assign({},be);return ue(be)&&ue(Re)&&Object.keys(Re).forEach(k=>{ue(Re[k])?k in be?H[k]=me(be[k],Re[k]):Object.assign(H,{[k]:Re[k]}):Object.assign(H,{[k]:Re[k]})}),H}class ze{}let Pe=(()=>{class be extends ze{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(H,k){let Ue;return Ue="string"==typeof H?this.interpolateString(H,k):"function"==typeof H?this.interpolateFunction(H,k):H,Ue}getValue(H,k){let Ue="string"==typeof k?k.split("."):[k];k="";do{k+=Ue.shift(),!De(H)||!De(H[k])||"object"!=typeof H[k]&&Ue.length?Ue.length?k+=".":H=void 0:(H=H[k],k="")}while(Ue.length);return H}interpolateFunction(H,k){return H(k)}interpolateString(H,k){return k?H.replace(this.templateMatcher,(Ue,it)=>{let qe=this.getValue(k,it);return De(qe)?qe:Ue}):H}}return be.\u0275fac=function(){let Re;return function(k){return(Re||(Re=r.n5z(be)))(k||be)}}(),be.\u0275prov=r.Yz7({token:be,factory:be.\u0275fac}),be})();class je{}let Fe=(()=>{class be extends je{compile(H,k){return H}compileTranslations(H,k){return H}}return be.\u0275fac=function(){let Re;return function(k){return(Re||(Re=r.n5z(be)))(k||be)}}(),be.\u0275prov=r.Yz7({token:be,factory:be.\u0275fac}),be})();class Te{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new r.vpe,this.onLangChange=new r.vpe,this.onDefaultLangChange=new r.vpe}}const J=new r.OlP("USE_STORE"),We=new r.OlP("USE_DEFAULT_LANG"),Be=new r.OlP("DEFAULT_LANGUAGE"),we=new r.OlP("USE_EXTEND");let pe=(()=>{class be{constructor(H,k,Ue,it,qe,lt=!0,Mt=!1,Vt=!1,Zt){this.store=H,this.currentLoader=k,this.compiler=Ue,this.parser=it,this.missingTranslationHandler=qe,this.useDefaultLang=lt,this.isolate=Mt,this.extend=Vt,this.pending=!1,this._onTranslationChange=new r.vpe,this._onLangChange=new r.vpe,this._onDefaultLangChange=new r.vpe,this._langs=[],this._translations={},this._translationRequests={},Zt&&this.setDefaultLang(Zt)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(H){this.isolate?this._defaultLang=H:this.store.defaultLang=H}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(H){this.isolate?this._currentLang=H:this.store.currentLang=H}get langs(){return this.isolate?this._langs:this.store.langs}set langs(H){this.isolate?this._langs=H:this.store.langs=H}get translations(){return this.isolate?this._translations:this.store.translations}set translations(H){this.isolate?this._translations=H:this.store.translations=H}setDefaultLang(H){if(H===this.defaultLang)return;let k=this.retrieveTranslations(H);void 0!==k?(null==this.defaultLang&&(this.defaultLang=H),k.pipe((0,P.q)(1)).subscribe(Ue=>{this.changeDefaultLang(H)})):this.changeDefaultLang(H)}getDefaultLang(){return this.defaultLang}use(H){if(H===this.currentLang)return(0,m.of)(this.translations[H]);let k=this.retrieveTranslations(H);return void 0!==k?(this.currentLang||(this.currentLang=H),k.pipe((0,P.q)(1)).subscribe(Ue=>{this.changeLang(H)}),k):(this.changeLang(H),(0,m.of)(this.translations[H]))}retrieveTranslations(H){let k;return(void 0===this.translations[H]||this.extend)&&(this._translationRequests[H]=this._translationRequests[H]||this.getTranslation(H),k=this._translationRequests[H]),k}getTranslation(H){this.pending=!0;const k=this.currentLoader.getTranslation(H).pipe((0,F.d)(1),(0,P.q)(1));return this.loadingTranslations=k.pipe((0,q.U)(Ue=>this.compiler.compileTranslations(Ue,H)),(0,F.d)(1),(0,P.q)(1)),this.loadingTranslations.subscribe({next:Ue=>{this.translations[H]=this.extend&&this.translations[H]?Object.assign(Object.assign({},Ue),this.translations[H]):Ue,this.updateLangs(),this.pending=!1},error:Ue=>{this.pending=!1}}),k}setTranslation(H,k,Ue=!1){k=this.compiler.compileTranslations(k,H),this.translations[H]=(Ue||this.extend)&&this.translations[H]?me(this.translations[H],k):k,this.updateLangs(),this.onTranslationChange.emit({lang:H,translations:this.translations[H]})}getLangs(){return this.langs}addLangs(H){H.forEach(k=>{-1===this.langs.indexOf(k)&&this.langs.push(k)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(H,k,Ue){let it;if(k instanceof Array){let qe={},lt=!1;for(let Mt of k)qe[Mt]=this.getParsedResult(H,Mt,Ue),(0,D.b)(qe[Mt])&&(lt=!0);if(lt){const Mt=k.map(Vt=>(0,D.b)(qe[Vt])?qe[Vt]:(0,m.of)(qe[Vt]));return(0,j.D)(Mt).pipe((0,q.U)(Vt=>{let Zt={};return Vt.forEach((Nt,wn)=>{Zt[k[wn]]=Nt}),Zt}))}return qe}if(H&&(it=this.parser.interpolate(this.parser.getValue(H,k),Ue)),void 0===it&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(it=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],k),Ue)),void 0===it){let qe={key:k,translateService:this};void 0!==Ue&&(qe.interpolateParams=Ue),it=this.missingTranslationHandler.handle(qe)}return void 0!==it?it:k}get(H,k){if(!De(H)||!H.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,Q.b)(Ue=>(Ue=this.getParsedResult(Ue,H,k),(0,D.b)(Ue)?Ue:(0,m.of)(Ue))));{let Ue=this.getParsedResult(this.translations[this.currentLang],H,k);return(0,D.b)(Ue)?Ue:(0,m.of)(Ue)}}getStreamOnTranslationChange(H,k){if(!De(H)||!H.length)throw new Error('Parameter "key" required');return(0,U.z)((0,V.P)(()=>this.get(H,k)),this.onTranslationChange.pipe((0,ee.w)(Ue=>{const it=this.getParsedResult(Ue.translations,H,k);return"function"==typeof it.subscribe?it:(0,m.of)(it)})))}stream(H,k){if(!De(H)||!H.length)throw new Error('Parameter "key" required');return(0,U.z)((0,V.P)(()=>this.get(H,k)),this.onLangChange.pipe((0,ee.w)(Ue=>{const it=this.getParsedResult(Ue.translations,H,k);return(0,D.b)(it)?it:(0,m.of)(it)})))}instant(H,k){if(!De(H)||!H.length)throw new Error('Parameter "key" required');let Ue=this.getParsedResult(this.translations[this.currentLang],H,k);if((0,D.b)(Ue)){if(H instanceof Array){let it={};return H.forEach((qe,lt)=>{it[H[lt]]=H[lt]}),it}return H}return Ue}set(H,k,Ue=this.currentLang){this.translations[Ue][H]=this.compiler.compile(k,Ue),this.updateLangs(),this.onTranslationChange.emit({lang:Ue,translations:this.translations[Ue]})}changeLang(H){this.currentLang=H,this.onLangChange.emit({lang:H,translations:this.translations[H]}),null==this.defaultLang&&this.changeDefaultLang(H)}changeDefaultLang(H){this.defaultLang=H,this.onDefaultLangChange.emit({lang:H,translations:this.translations[H]})}reloadLang(H){return this.resetLang(H),this.getTranslation(H)}resetLang(H){this._translationRequests[H]=void 0,this.translations[H]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let H=window.navigator.languages?window.navigator.languages[0]:null;return H=H||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==H?(-1!==H.indexOf("-")&&(H=H.split("-")[0]),-1!==H.indexOf("_")&&(H=H.split("_")[0]),H):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let H=window.navigator.languages?window.navigator.languages[0]:null;return H=H||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,H}}return be.\u0275fac=function(H){return new(H||be)(r.LFG(Te),r.LFG(ne),r.LFG(je),r.LFG(ze),r.LFG(Ne),r.LFG(We),r.LFG(J),r.LFG(we),r.LFG(Be))},be.\u0275prov=r.Yz7({token:be,factory:be.\u0275fac}),be})(),le=(()=>{class be{constructor(H,k){this.translate=H,this._ref=k,this.value=""}updateValue(H,k,Ue){let it=qe=>{this.value=void 0!==qe?qe:H,this.lastKey=H,this._ref.markForCheck()};if(Ue){let qe=this.translate.getParsedResult(Ue,H,k);(0,D.b)(qe.subscribe)?qe.subscribe(it):it(qe)}this.translate.get(H,k).subscribe(it)}transform(H,...k){if(!H||!H.length)return H;if(ye(H,this.lastKey)&&ye(k,this.lastParams))return this.value;let Ue;if(De(k[0])&&k.length)if("string"==typeof k[0]&&k[0].length){let it=k[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{Ue=JSON.parse(it)}catch(qe){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${k[0]}`)}}else"object"==typeof k[0]&&!Array.isArray(k[0])&&(Ue=k[0]);return this.lastKey=H,this.lastParams=k,this.updateValue(H,Ue),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(it=>{this.lastKey&&it.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(H,Ue,it.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(it=>{this.lastKey&&(this.lastKey=null,this.updateValue(H,Ue,it.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(H,Ue))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return be.\u0275fac=function(H){return new(H||be)(r.Y36(pe,16),r.Y36(r.sBO,16))},be.\u0275pipe=r.Yjl({name:"translate",type:be,pure:!1}),be.\u0275prov=r.Yz7({token:be,factory:be.\u0275fac}),be})(),Ae=(()=>{class be{static forRoot(H={}){return{ngModule:be,providers:[H.loader||{provide:ne,useClass:Y},H.compiler||{provide:je,useClass:Fe},H.parser||{provide:ze,useClass:Pe},H.missingTranslationHandler||{provide:Ne,useClass:$e},Te,{provide:J,useValue:H.isolate},{provide:We,useValue:H.useDefaultLang},{provide:we,useValue:H.extend},{provide:Be,useValue:H.defaultLanguage},pe]}}static forChild(H={}){return{ngModule:be,providers:[H.loader||{provide:ne,useClass:Y},H.compiler||{provide:je,useClass:Fe},H.parser||{provide:ze,useClass:Pe},H.missingTranslationHandler||{provide:Ne,useClass:$e},{provide:J,useValue:H.isolate},{provide:We,useValue:H.useDefaultLang},{provide:we,useValue:H.extend},{provide:Be,useValue:H.defaultLanguage},pe]}}}return be.\u0275fac=function(H){return new(H||be)},be.\u0275mod=r.oAB({type:be}),be.\u0275inj=r.cJS({}),be})()},4901:Ct=>{"use strict";var ae={single_source_shortest_paths:function(p,r,m){var D={},j={};j[r]=0;var V,P,F,q,Q,ne,U=ae.PriorityQueue.make();for(U.push(r,0);!U.empty();)for(F in q=(V=U.pop()).cost,Q=p[P=V.value]||{})Q.hasOwnProperty(F)&&(ne=q+Q[F],(void 0===j[F]||j[F]>ne)&&(j[F]=ne,U.push(F,ne),D[F]=P));if(void 0!==m&&void 0===j[m]){var Ne=["Could not find a path from ",r," to ",m,"."].join("");throw new Error(Ne)}return D},extract_shortest_path_from_predecessor_list:function(p,r){for(var m=[],D=r;D;)m.push(D),D=p[D];return m.reverse(),m},find_path:function(p,r,m){var D=ae.single_source_shortest_paths(p,r,m);return ae.extract_shortest_path_from_predecessor_list(D,m)},PriorityQueue:{make:function(p){var D,r=ae.PriorityQueue,m={};for(D in p=p||{},r)r.hasOwnProperty(D)&&(m[D]=r[D]);return m.queue=[],m.sorter=p.sorter||r.default_sorter,m},default_sorter:function(p,r){return p.cost-r.cost},push:function(p,r){this.queue.push({value:p,cost:r}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Ct.exports=ae},8419:Ct=>{"use strict";Ct.exports=function(p){for(var r=[],m=p.length,D=0;D<m;D++){var j=p.charCodeAt(D);if(j>=55296&&j<=56319&&m>D+1){var U=p.charCodeAt(D+1);U>=56320&&U<=57343&&(j=1024*(j-55296)+U-56320+65536,D+=1)}j<128?r.push(j):j<2048?(r.push(j>>6|192),r.push(63&j|128)):j<55296||j>=57344&&j<65536?(r.push(j>>12|224),r.push(j>>6&63|128),r.push(63&j|128)):j>=65536&&j<=1114111?(r.push(j>>18|240),r.push(j>>12&63|128),r.push(j>>6&63|128),r.push(63&j|128)):r.push(239,191,189)}return new Uint8Array(r).buffer}},3167:Ct=>{function p(m){this.message=m}(p.prototype=new Error).name="InvalidCharacterError",Ct.exports="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function r(m){var D=String(m).replace(/=+$/,"");if(D.length%4==1)throw new p("'atob' failed: The string to be decoded is not correctly encoded.");for(var U,V,j=0,P=0,F="";V=D.charAt(P++);~V&&(U=j%4?64*U+V:V,j++%4)?F+=String.fromCharCode(255&U>>(-2*j&6)):0)V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(V);return F}},6815:(Ct,ae,p)=>{var r=p(3167);Ct.exports=function(D){var j=D.replace(/-/g,"+").replace(/_/g,"/");switch(j.length%4){case 0:break;case 2:j+="==";break;case 3:j+="=";break;default:throw"Illegal base64url string!"}try{return function m(D){return decodeURIComponent(r(D).replace(/(.)/g,function(j,U){var V=U.charCodeAt(0).toString(16).toUpperCase();return V.length<2&&(V="0"+V),"%"+V}))}(j)}catch(U){return r(j)}}},491:(Ct,ae,p)=>{"use strict";var r=p(6815);function m(D){this.message=D}(m.prototype=new Error).name="InvalidTokenError",Ct.exports=function(D,j){if("string"!=typeof D)throw new m("Invalid token specified");var U=!0===(j=j||{}).header?0:1;try{return JSON.parse(r(D.split(".")[U]))}catch(V){throw new m("Invalid token specified: "+V.message)}},Ct.exports.InvalidTokenError=m},3728:(Ct,ae,p)=>{"use strict";p.d(ae,{ap:()=>Nt,QG:()=>wn,Ll:()=>Bn});var r=p(2096);function q(tt,xe,O,se){return new(O||(O=Promise))(function(_e,at){function Je(ft){try{oe(se.next(ft))}catch(vt){at(vt)}}function ke(ft){try{oe(se.throw(ft))}catch(vt){at(vt)}}function oe(ft){ft.done?_e(ft.value):function Se(_e){return _e instanceof O?_e:new O(function(at){at(_e)})}(ft.value).then(Je,ke)}oe((se=se.apply(tt,xe||[])).next())})}var J=p(9808),We=p(2313);const Be=["wrapper"],we=["sourceImage"];function re(tt,xe){if(1&tt){const O=r.EpF();r.TgZ(0,"img",4,5),r.NdJ("load",function(){return r.CHM(O),r.oxw().imageLoadedInView()}),r.qZA()}if(2&tt){const O=r.oxw();r.Udp("visibility",O.imageVisible?"visible":"hidden")("transform",O.safeTransformStyle),r.Q6J("src",O.safeImgDataUrl,r.LSH)}}function z(tt,xe){if(1&tt){const O=r.EpF();r.ynx(0),r.TgZ(1,"span",9),r.NdJ("mousedown",function(Se){r.CHM(O);const _e=r.oxw(2);return _e.startMove(Se,_e.moveTypes.Resize,"topleft")})("touchstart",function(Se){r.CHM(O);const _e=r.oxw(2);return _e.startMove(Se,_e.moveTypes.Resize,"topleft")}),r._UZ(2,"span",10),r.qZA(),r.TgZ(3,"span",11),r._UZ(4,"span",10),r.qZA(),r.TgZ(5,"span",12),r.NdJ("mousedown",function(Se){r.CHM(O);const _e=r.oxw(2);return _e.startMove(Se,_e.moveTypes.Resize,"topright")})("touchstart",function(Se){r.CHM(O);const _e=r.oxw(2);return _e.startMove(Se,_e.moveTypes.Resize,"topright")}),r._UZ(6,"span",10),r.qZA(),r.TgZ(7,"span",13),r._UZ(8,"span",10),r.qZA(),r.TgZ(9,"span",14),r.NdJ("mousedown",function(Se){r.CHM(O);const _e=r.oxw(2);return _e.startMove(Se,_e.moveTypes.Resize,"bottomright")})("touchstart",function(Se){r.CHM(O);const _e=r.oxw(2);return _e.startMove(Se,_e.moveTypes.Resize,"bottomright")}),r._UZ(10,"span",10),r.qZA(),r.TgZ(11,"span",15),r._UZ(12,"span",10),r.qZA(),r.TgZ(13,"span",16),r.NdJ("mousedown",function(Se){r.CHM(O);const _e=r.oxw(2);return _e.startMove(Se,_e.moveTypes.Resize,"bottomleft")})("touchstart",function(Se){r.CHM(O);const _e=r.oxw(2);return _e.startMove(Se,_e.moveTypes.Resize,"bottomleft")}),r._UZ(14,"span",10),r.qZA(),r.TgZ(15,"span",17),r._UZ(16,"span",10),r.qZA(),r.TgZ(17,"span",18),r.NdJ("mousedown",function(Se){r.CHM(O);const _e=r.oxw(2);return _e.startMove(Se,_e.moveTypes.Resize,"top")})("touchstart",function(Se){r.CHM(O);const _e=r.oxw(2);return _e.startMove(Se,_e.moveTypes.Resize,"top")}),r.qZA(),r.TgZ(18,"span",19),r.NdJ("mousedown",function(Se){r.CHM(O);const _e=r.oxw(2);return _e.startMove(Se,_e.moveTypes.Resize,"right")})("touchstart",function(Se){r.CHM(O);const _e=r.oxw(2);return _e.startMove(Se,_e.moveTypes.Resize,"right")}),r.qZA(),r.TgZ(19,"span",20),r.NdJ("mousedown",function(Se){r.CHM(O);const _e=r.oxw(2);return _e.startMove(Se,_e.moveTypes.Resize,"bottom")})("touchstart",function(Se){r.CHM(O);const _e=r.oxw(2);return _e.startMove(Se,_e.moveTypes.Resize,"bottom")}),r.qZA(),r.TgZ(20,"span",21),r.NdJ("mousedown",function(Se){r.CHM(O);const _e=r.oxw(2);return _e.startMove(Se,_e.moveTypes.Resize,"left")})("touchstart",function(Se){r.CHM(O);const _e=r.oxw(2);return _e.startMove(Se,_e.moveTypes.Resize,"left")}),r.qZA(),r.BQk()}}function N(tt,xe){if(1&tt){const O=r.EpF();r.TgZ(0,"div",6),r.NdJ("keydown",function(Se){return r.CHM(O),r.oxw().keyboardAccess(Se)}),r.TgZ(1,"div",7),r.NdJ("mousedown",function(Se){r.CHM(O);const _e=r.oxw();return _e.startMove(Se,_e.moveTypes.Move)})("touchstart",function(Se){r.CHM(O);const _e=r.oxw();return _e.startMove(Se,_e.moveTypes.Move)}),r.qZA(),r.YNc(2,z,21,0,"ng-container",8),r.qZA()}if(2&tt){const O=r.oxw();r.Udp("top",O.cropper.y1,"px")("left",O.cropper.x1,"px")("width",O.cropper.x2-O.cropper.x1,"px")("height",O.cropper.y2-O.cropper.y1,"px")("margin-left","center"===O.alignImage?O.marginLeft:null)("visibility",O.imageVisible?"visible":"hidden"),r.ekj("rounded",O.roundCropper),r.xp6(2),r.Q6J("ngIf",!O.hideResizeSquares)}}const ve={Move:"move",Resize:"resize",Pinch:"pinch"};class he{crop(xe,O,se,Se){const _e=this.getImagePosition(xe,O,se,Se),at=_e.x2-_e.x1,Je=_e.y2-_e.y1,ke=document.createElement("canvas");ke.width=at,ke.height=Je;const oe=ke.getContext("2d");if(!oe)return;null!=Se.backgroundColor&&(oe.fillStyle=Se.backgroundColor,oe.fillRect(0,0,at,Je));const ft=(Se.transform.scale||1)*(Se.transform.flipH?-1:1),vt=(Se.transform.scale||1)*(Se.transform.flipV?-1:1),gt=O.transformed;oe.setTransform(ft,0,0,vt,gt.size.width/2,gt.size.height/2),oe.translate(-_e.x1/ft,-_e.y1/vt),oe.rotate((Se.transform.rotate||0)*Math.PI/180),oe.drawImage(gt.image,-gt.size.width/2,-gt.size.height/2);const St={width:at,height:Je,imagePosition:_e,cropperPosition:Object.assign({},se)};Se.containWithinAspectRatio&&(St.offsetImagePosition=this.getOffsetImagePosition(xe,O,se,Se));const Jt=this.getResizeRatio(at,Je,Se);return 1!==Jt&&(St.width=Math.round(at*Jt),St.height=Se.maintainAspectRatio?Math.round(St.width/Se.aspectRatio):Math.round(Je*Jt),function le(tt,xe,O){const se=tt.width,Se=tt.height,_e=se/(xe=Math.round(xe)),at=Se/(O=Math.round(O)),Je=Math.ceil(_e/2),ke=Math.ceil(at/2),oe=tt.getContext("2d");if(oe){const ft=oe.getImageData(0,0,se,Se),vt=oe.createImageData(xe,O),gt=ft.data,St=vt.data;for(let Jt=0;Jt<O;Jt++)for(let Ut=0;Ut<xe;Ut++){const Xt=4*(Ut+Jt*xe),Nn=Jt*at;let mn=0,bn=0,Yt=0,In=0,yn=0,gr=0,un=0;const lr=Math.floor(Ut*_e),yr=Math.floor(Jt*at);let nn=Math.ceil((Ut+1)*_e),Sn=Math.ceil((Jt+1)*at);nn=Math.min(nn,se),Sn=Math.min(Sn,Se);for(let Un=yr;Un<Sn;Un++){const nr=Math.abs(Nn-Un)/ke,Zn=Ut*_e,Kn=nr*nr;for(let On=lr;On<nn;On++){const zn=Math.abs(Zn-On)/Je,ot=Math.sqrt(Kn+zn*zn);if(ot>=1)continue;mn=2*ot*ot*ot-3*ot*ot+1;const Ye=4*(On+Un*se);un+=mn*gt[Ye+3],Yt+=mn,gt[Ye+3]<255&&(mn=mn*gt[Ye+3]/250),In+=mn*gt[Ye],yn+=mn*gt[Ye+1],gr+=mn*gt[Ye+2],bn+=mn}}St[Xt]=In/bn,St[Xt+1]=yn/bn,St[Xt+2]=gr/bn,St[Xt+3]=un/Yt}tt.width=xe,tt.height=O,oe.putImageData(vt,0,0)}}(ke,St.width,St.height)),St.base64=ke.toDataURL("image/"+Se.format,this.getQuality(Se)),St}getImagePosition(xe,O,se,Se){const at=O.transformed.size.width/xe.nativeElement.offsetWidth,Je={x1:Math.round(se.x1*at),y1:Math.round(se.y1*at),x2:Math.round(se.x2*at),y2:Math.round(se.y2*at)};return Se.containWithinAspectRatio||(Je.x1=Math.max(Je.x1,0),Je.y1=Math.max(Je.y1,0),Je.x2=Math.min(Je.x2,O.transformed.size.width),Je.y2=Math.min(Je.y2,O.transformed.size.height)),Je}getOffsetImagePosition(xe,O,se,Se){const Je=O.transformed.size.width/xe.nativeElement.offsetWidth;let ke,oe;(Se.canvasRotation+O.exifTransform.rotate)%2?(ke=(O.transformed.size.width-O.original.size.height)/2,oe=(O.transformed.size.height-O.original.size.width)/2):(ke=(O.transformed.size.width-O.original.size.width)/2,oe=(O.transformed.size.height-O.original.size.height)/2);const ft={x1:Math.round(se.x1*Je)-ke,y1:Math.round(se.y1*Je)-oe,x2:Math.round(se.x2*Je)-ke,y2:Math.round(se.y2*Je)-oe};return Se.containWithinAspectRatio||(ft.x1=Math.max(ft.x1,0),ft.y1=Math.max(ft.y1,0),ft.x2=Math.min(ft.x2,O.transformed.size.width),ft.y2=Math.min(ft.y2,O.transformed.size.height)),ft}getResizeRatio(xe,O,se){const Se=se.resizeToWidth/xe,_e=se.resizeToHeight/O,at=new Array;se.resizeToWidth>0&&at.push(Se),se.resizeToHeight>0&&at.push(_e);const Je=0===at.length?1:Math.min(...at);return Je>1&&!se.onlyScaleDown?Je:Math.min(Je,1)}getQuality(xe){return Math.min(1,Math.max(0,xe.imageQuality/100))}}he.\u0275fac=function(xe){return new(xe||he)},he.\u0275prov=r.Yz7({token:he,factory:he.\u0275fac,providedIn:"root"}),he.ngInjectableDef=(0,r.Yz7)({factory:function(){return new he},token:he,providedIn:"root"});class Ae{constructor(){this.format="png",this.maintainAspectRatio=!0,this.transform={},this.aspectRatio=1,this.resizeToWidth=0,this.resizeToHeight=0,this.cropperMinWidth=0,this.cropperMinHeight=0,this.cropperMaxHeight=0,this.cropperMaxWidth=0,this.cropperStaticWidth=0,this.cropperStaticHeight=0,this.canvasRotation=0,this.initialStepSize=3,this.roundCropper=!1,this.onlyScaleDown=!1,this.imageQuality=92,this.autoCrop=!0,this.backgroundColor=void 0,this.containWithinAspectRatio=!1,this.hideResizeSquares=!1,this.alignImage="center",this.cropperScaledMinWidth=20,this.cropperScaledMinHeight=20,this.cropperScaledMaxWidth=20,this.cropperScaledMaxHeight=20,this.stepSize=this.initialStepSize}setOptions(xe){Object.keys(xe).filter(O=>O in this).forEach(O=>this[O]=xe[O])}setOptionsFromChanges(xe){Object.keys(xe).filter(O=>O in this).forEach(O=>this[O]=xe[O].currentValue)}}class qe{constructor(){this.autoRotateSupported=function Re(){return new Promise(tt=>{const xe=new Image;xe.onload=()=>{tt(1===xe.width&&2===xe.height)},xe.src="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q=="})}()}loadImageFile(xe,O){return new Promise((se,Se)=>{const _e=new FileReader;_e.onload=at=>{this.loadImage(at.target.result,xe.type,O).then(se).catch(Se)},_e.readAsDataURL(xe)})}loadImage(xe,O,se){return this.isValidImageType(O)?this.loadBase64Image(xe,se):Promise.reject(new Error("Invalid image type"))}isValidImageType(xe){return/image\/(png|jpg|jpeg|bmp|gif|tiff|webp)/.test(xe)}loadImageFromURL(xe,O){return new Promise((se,Se)=>{const _e=new Image;_e.onerror=()=>Se,_e.onload=()=>{const at=document.createElement("canvas"),Je=at.getContext("2d");at.width=_e.width,at.height=_e.height,Je.drawImage(_e,0,0),this.loadBase64Image(at.toDataURL(),O).then(se)},_e.crossOrigin="anonymous",_e.src=xe})}loadBase64Image(xe,O){return new Promise((se,Se)=>{const _e=new Image;_e.onload=()=>se({originalImage:_e,originalBase64:xe}),_e.onerror=Se,_e.src=xe}).then(se=>this.transformImageBase64(se,O))}transformImageBase64(xe,O){return q(this,void 0,void 0,function*(){const se=yield this.autoRotateSupported,Se=yield function H(tt){switch("string"==typeof tt&&(tt=function k(tt){const xe=new DataView(function Ue(tt){tt=tt.replace(/^data\:([^\;]+)\;base64,/gim,"");const xe=atob(tt),O=xe.length,se=new Uint8Array(O);for(let Se=0;Se<O;Se++)se[Se]=xe.charCodeAt(Se);return se.buffer}(tt));if(65496!=xe.getUint16(0,!1))return-2;const O=xe.byteLength;let se=2;for(;se<O;){if(xe.getUint16(se+2,!1)<=8)return-1;const Se=xe.getUint16(se,!1);if(se+=2,65505==Se){if(1165519206!=xe.getUint32(se+=2,!1))return-1;const _e=18761==xe.getUint16(se+=6,!1);se+=xe.getUint32(se+4,_e);const at=xe.getUint16(se,_e);se+=2;for(let Je=0;Je<at;Je++)if(274==xe.getUint16(se+12*Je,_e))return xe.getUint16(se+12*Je+8,_e)}else{if(65280!=(65280&Se))break;se+=xe.getUint16(se,!1)}}return-1}(tt)),tt){case 2:return{rotate:0,flip:!0};case 3:return{rotate:2,flip:!1};case 4:return{rotate:2,flip:!0};case 5:return{rotate:1,flip:!0};case 6:return{rotate:1,flip:!1};case 7:return{rotate:3,flip:!0};case 8:return{rotate:3,flip:!1};default:return{rotate:0,flip:!1}}}(se?-1:xe.originalBase64);return xe.originalImage&&xe.originalImage.complete?this.transformLoadedImage({original:{base64:xe.originalBase64,image:xe.originalImage,size:{width:xe.originalImage.naturalWidth,height:xe.originalImage.naturalHeight}},exifTransform:Se},O):Promise.reject(new Error("No image loaded"))})}transformLoadedImage(xe,O){return q(this,void 0,void 0,function*(){const se=O.canvasRotation+xe.exifTransform.rotate,Se={width:xe.original.image.naturalWidth,height:xe.original.image.naturalHeight};if(0===se&&!xe.exifTransform.flip&&!O.containWithinAspectRatio)return{original:{base64:xe.original.base64,image:xe.original.image,size:Object.assign({},Se)},transformed:{base64:xe.original.base64,image:xe.original.image,size:Object.assign({},Se)},exifTransform:xe.exifTransform};const _e=this.getTransformedSize(Se,xe.exifTransform,O),at=document.createElement("canvas");at.width=_e.width,at.height=_e.height;const Je=at.getContext("2d");Je.setTransform(xe.exifTransform.flip?-1:1,0,0,1,at.width/2,at.height/2),Je.rotate(Math.PI*(se/2)),Je.drawImage(xe.original.image,-Se.width/2,-Se.height/2);const ke=at.toDataURL(),oe=yield this.loadImageFromBase64(ke);return{original:{base64:xe.original.base64,image:xe.original.image,size:Object.assign({},Se)},transformed:{base64:ke,image:oe,size:{width:oe.width,height:oe.height}},exifTransform:xe.exifTransform}})}loadImageFromBase64(xe){return new Promise((O,se)=>{const Se=new Image;Se.onload=()=>O(Se),Se.onerror=se,Se.src=xe})}getTransformedSize(xe,O,se){const Se=se.canvasRotation+O.rotate;if(se.containWithinAspectRatio){if(Se%2){const at=xe.height/se.aspectRatio;return{width:Math.max(xe.height,xe.width*se.aspectRatio),height:Math.max(xe.width,at)}}{const at=xe.width/se.aspectRatio;return{width:Math.max(xe.width,xe.height*se.aspectRatio),height:Math.max(xe.height,at)}}}return Se%2?{height:xe.width,width:xe.height}:{width:xe.width,height:xe.height}}}qe.\u0275fac=function(xe){return new(xe||qe)},qe.\u0275prov=r.Yz7({token:qe,factory:qe.\u0275fac,providedIn:"root"}),qe.ngInjectableDef=(0,r.Yz7)({factory:function(){return new qe},token:qe,providedIn:"root"});class lt{resetCropperPosition(xe,O,se){const Se=xe.nativeElement;if(se.cropperStaticHeight&&se.cropperStaticWidth)O.x1=0,O.x2=Se.offsetWidth>se.cropperStaticWidth?se.cropperStaticWidth:Se.offsetWidth,O.y1=0,O.y2=Se.offsetHeight>se.cropperStaticHeight?se.cropperStaticHeight:Se.offsetHeight;else{const _e=Math.min(se.cropperScaledMaxWidth,Se.offsetWidth),at=Math.min(se.cropperScaledMaxHeight,Se.offsetHeight);if(se.maintainAspectRatio)if(_e/se.aspectRatio<at){O.x1=0,O.x2=_e;const Je=_e/se.aspectRatio;O.y1=(Se.offsetHeight-Je)/2,O.y2=O.y1+Je}else{O.y1=0,O.y2=at;const Je=at*se.aspectRatio;O.x1=(Se.offsetWidth-Je)/2,O.x2=O.x1+Je}else O.x1=0,O.x2=_e,O.y1=0,O.y2=at}}move(xe,O,se){const Se=this.getClientX(xe)-O.clientX,_e=this.getClientY(xe)-O.clientY;se.x1=O.x1+Se,se.y1=O.y1+_e,se.x2=O.x2+Se,se.y2=O.y2+_e}resize(xe,O,se,Se,_e){const at=this.getClientX(xe)-O.clientX,Je=this.getClientY(xe)-O.clientY;switch(O.position){case"left":se.x1=Math.min(Math.max(O.x1+at,se.x2-_e.cropperScaledMaxWidth),se.x2-_e.cropperScaledMinWidth);break;case"topleft":se.x1=Math.min(Math.max(O.x1+at,se.x2-_e.cropperScaledMaxWidth),se.x2-_e.cropperScaledMinWidth),se.y1=Math.min(Math.max(O.y1+Je,se.y2-_e.cropperScaledMaxHeight),se.y2-_e.cropperScaledMinHeight);break;case"top":se.y1=Math.min(Math.max(O.y1+Je,se.y2-_e.cropperScaledMaxHeight),se.y2-_e.cropperScaledMinHeight);break;case"topright":se.x2=Math.max(Math.min(O.x2+at,se.x1+_e.cropperScaledMaxWidth),se.x1+_e.cropperScaledMinWidth),se.y1=Math.min(Math.max(O.y1+Je,se.y2-_e.cropperScaledMaxHeight),se.y2-_e.cropperScaledMinHeight);break;case"right":se.x2=Math.max(Math.min(O.x2+at,se.x1+_e.cropperScaledMaxWidth),se.x1+_e.cropperScaledMinWidth);break;case"bottomright":se.x2=Math.max(Math.min(O.x2+at,se.x1+_e.cropperScaledMaxWidth),se.x1+_e.cropperScaledMinWidth),se.y2=Math.max(Math.min(O.y2+Je,se.y1+_e.cropperScaledMaxHeight),se.y1+_e.cropperScaledMinHeight);break;case"bottom":se.y2=Math.max(Math.min(O.y2+Je,se.y1+_e.cropperScaledMaxHeight),se.y1+_e.cropperScaledMinHeight);break;case"bottomleft":se.x1=Math.min(Math.max(O.x1+at,se.x2-_e.cropperScaledMaxWidth),se.x2-_e.cropperScaledMinWidth),se.y2=Math.max(Math.min(O.y2+Je,se.y1+_e.cropperScaledMaxHeight),se.y1+_e.cropperScaledMinHeight);break;case"center":const ke=xe.scale,oe=Math.min(Math.max(_e.cropperScaledMinWidth,Math.abs(O.x2-O.x1)*ke),_e.cropperScaledMaxWidth),ft=Math.min(Math.max(_e.cropperScaledMinHeight,Math.abs(O.y2-O.y1)*ke),_e.cropperScaledMaxHeight);se.x1=O.clientX-oe/2,se.x2=O.clientX+oe/2,se.y1=O.clientY-ft/2,se.y2=O.clientY+ft/2,se.x1<0?(se.x2-=se.x1,se.x1=0):se.x2>Se.width&&(se.x1-=se.x2-Se.width,se.x2=Se.width),se.y1<0?(se.y2-=se.y1,se.y1=0):se.y2>Se.height&&(se.y1-=se.y2-Se.height,se.y2=Se.height)}_e.maintainAspectRatio&&this.checkAspectRatio(O.position,se,Se,_e)}checkAspectRatio(xe,O,se,Se){let _e=0,at=0;switch(xe){case"top":O.x2=O.x1+(O.y2-O.y1)*Se.aspectRatio,_e=Math.max(O.x2-se.width,0),at=Math.max(0-O.y1,0),(_e>0||at>0)&&(O.x2-=at*Se.aspectRatio>_e?at*Se.aspectRatio:_e,O.y1+=at*Se.aspectRatio>_e?at:_e/Se.aspectRatio);break;case"bottom":O.x2=O.x1+(O.y2-O.y1)*Se.aspectRatio,_e=Math.max(O.x2-se.width,0),at=Math.max(O.y2-se.height,0),(_e>0||at>0)&&(O.x2-=at*Se.aspectRatio>_e?at*Se.aspectRatio:_e,O.y2-=at*Se.aspectRatio>_e?at:_e/Se.aspectRatio);break;case"topleft":O.y1=O.y2-(O.x2-O.x1)/Se.aspectRatio,_e=Math.max(0-O.x1,0),at=Math.max(0-O.y1,0),(_e>0||at>0)&&(O.x1+=at*Se.aspectRatio>_e?at*Se.aspectRatio:_e,O.y1+=at*Se.aspectRatio>_e?at:_e/Se.aspectRatio);break;case"topright":O.y1=O.y2-(O.x2-O.x1)/Se.aspectRatio,_e=Math.max(O.x2-se.width,0),at=Math.max(0-O.y1,0),(_e>0||at>0)&&(O.x2-=at*Se.aspectRatio>_e?at*Se.aspectRatio:_e,O.y1+=at*Se.aspectRatio>_e?at:_e/Se.aspectRatio);break;case"right":case"bottomright":O.y2=O.y1+(O.x2-O.x1)/Se.aspectRatio,_e=Math.max(O.x2-se.width,0),at=Math.max(O.y2-se.height,0),(_e>0||at>0)&&(O.x2-=at*Se.aspectRatio>_e?at*Se.aspectRatio:_e,O.y2-=at*Se.aspectRatio>_e?at:_e/Se.aspectRatio);break;case"left":case"bottomleft":O.y2=O.y1+(O.x2-O.x1)/Se.aspectRatio,_e=Math.max(0-O.x1,0),at=Math.max(O.y2-se.height,0),(_e>0||at>0)&&(O.x1+=at*Se.aspectRatio>_e?at*Se.aspectRatio:_e,O.y2-=at*Se.aspectRatio>_e?at:_e/Se.aspectRatio);break;case"center":O.x2=O.x1+(O.y2-O.y1)*Se.aspectRatio,O.y2=O.y1+(O.x2-O.x1)/Se.aspectRatio;const Je=Math.max(0-O.x1,0),ke=Math.max(O.x2-se.width,0),oe=Math.max(O.y2-se.height,0),ft=Math.max(0-O.y1,0);(Je>0||ke>0||oe>0||ft>0)&&(O.x1+=oe*Se.aspectRatio>Je?oe*Se.aspectRatio:Je,O.x2-=ft*Se.aspectRatio>ke?ft*Se.aspectRatio:ke,O.y1+=ft*Se.aspectRatio>ke?ft:ke/Se.aspectRatio,O.y2-=oe*Se.aspectRatio>Je?oe:Je/Se.aspectRatio)}}getClientX(xe){return(xe.touches&&xe.touches[0]?xe.touches[0].clientX:xe.clientX)||0}getClientY(xe){return(xe.touches&&xe.touches[0]?xe.touches[0].clientY:xe.clientY)||0}}lt.\u0275fac=function(xe){return new(xe||lt)},lt.\u0275prov=r.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt.ngInjectableDef=(0,r.Yz7)({factory:function(){return new lt},token:lt,providedIn:"root"});let Nt=(()=>{class tt{constructor(O,se,Se,_e,at){this.cropService=O,this.cropperPositionService=se,this.loadImageService=Se,this.sanitizer=_e,this.cd=at,this.Hammer="undefined"!=typeof window?window.Hammer:null,this.settings=new Ae,this.setImageMaxSizeRetries=0,this.marginLeft="0px",this.moveTypes=ve,this.imageVisible=!1,this.format=this.settings.format,this.transform={},this.maintainAspectRatio=this.settings.maintainAspectRatio,this.aspectRatio=this.settings.aspectRatio,this.resizeToWidth=this.settings.resizeToWidth,this.resizeToHeight=this.settings.resizeToHeight,this.cropperMinWidth=this.settings.cropperMinWidth,this.cropperMinHeight=this.settings.cropperMinHeight,this.cropperMaxHeight=this.settings.cropperMaxHeight,this.cropperMaxWidth=this.settings.cropperMaxWidth,this.cropperStaticWidth=this.settings.cropperStaticWidth,this.cropperStaticHeight=this.settings.cropperStaticHeight,this.canvasRotation=this.settings.canvasRotation,this.initialStepSize=this.settings.initialStepSize,this.roundCropper=this.settings.roundCropper,this.onlyScaleDown=this.settings.onlyScaleDown,this.imageQuality=this.settings.imageQuality,this.autoCrop=this.settings.autoCrop,this.backgroundColor=this.settings.backgroundColor,this.containWithinAspectRatio=this.settings.containWithinAspectRatio,this.hideResizeSquares=this.settings.hideResizeSquares,this.cropper={x1:-100,y1:-100,x2:1e4,y2:1e4},this.alignImage=this.settings.alignImage,this.disabled=!1,this.imageCropped=new r.vpe,this.startCropImage=new r.vpe,this.imageLoaded=new r.vpe,this.cropperReady=new r.vpe,this.loadImageFailed=new r.vpe,this.reset()}ngOnChanges(O){this.onChangesUpdateSettings(O),this.onChangesInputImage(O),this.loadedImage&&this.loadedImage.original.image.complete&&(O.containWithinAspectRatio||O.canvasRotation)&&this.loadImageService.transformLoadedImage(this.loadedImage,this.settings).then(se=>this.setLoadedImage(se)).catch(se=>this.loadImageError(se)),O.cropper&&(this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),this.checkCropperPosition(!1),this.doAutoCrop(),this.cd.markForCheck()),O.aspectRatio&&this.imageVisible&&this.resetCropperPosition(),O.transform&&(this.transform=this.transform||{},this.setCssTransform(),this.doAutoCrop())}onChangesUpdateSettings(O){this.settings.setOptionsFromChanges(O),this.settings.cropperStaticHeight&&this.settings.cropperStaticWidth&&this.settings.setOptions({hideResizeSquares:!0,cropperMinWidth:this.settings.cropperStaticWidth,cropperMinHeight:this.settings.cropperStaticHeight,cropperMaxHeight:this.settings.cropperStaticHeight,cropperMaxWidth:this.settings.cropperStaticWidth,maintainAspectRatio:!1})}onChangesInputImage(O){(O.imageChangedEvent||O.imageURL||O.imageBase64||O.imageFile)&&this.reset(),O.imageChangedEvent&&this.isValidImageChangedEvent()&&this.loadImageFile(this.imageChangedEvent.target.files[0]),O.imageURL&&this.imageURL&&this.loadImageFromURL(this.imageURL),O.imageBase64&&this.imageBase64&&this.loadBase64Image(this.imageBase64),O.imageFile&&this.imageFile&&this.loadImageFile(this.imageFile)}isValidImageChangedEvent(){return this.imageChangedEvent&&this.imageChangedEvent.target&&this.imageChangedEvent.target.files&&this.imageChangedEvent.target.files.length>0}setCssTransform(){this.safeTransformStyle=this.sanitizer.bypassSecurityTrustStyle("scaleX("+(this.transform.scale||1)*(this.transform.flipH?-1:1)+")scaleY("+(this.transform.scale||1)*(this.transform.flipV?-1:1)+")rotate("+(this.transform.rotate||0)+"deg)")}ngOnInit(){this.settings.stepSize=this.initialStepSize,this.activatePinchGesture()}reset(){this.imageVisible=!1,this.loadedImage=null,this.safeImgDataUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=",this.moveStart={active:!1,type:null,position:null,x1:0,y1:0,x2:0,y2:0,clientX:0,clientY:0},this.maxSize={width:0,height:0},this.cropper.x1=-100,this.cropper.y1=-100,this.cropper.x2=1e4,this.cropper.y2=1e4}loadImageFile(O){this.loadImageService.loadImageFile(O,this.settings).then(se=>this.setLoadedImage(se)).catch(se=>this.loadImageError(se))}loadBase64Image(O){this.loadImageService.loadBase64Image(O,this.settings).then(se=>this.setLoadedImage(se)).catch(se=>this.loadImageError(se))}loadImageFromURL(O){this.loadImageService.loadImageFromURL(O,this.settings).then(se=>this.setLoadedImage(se)).catch(se=>this.loadImageError(se))}setLoadedImage(O){this.loadedImage=O,this.safeImgDataUrl=this.sanitizer.bypassSecurityTrustResourceUrl(O.transformed.base64),this.cd.markForCheck()}loadImageError(O){console.error(O),this.loadImageFailed.emit()}imageLoadedInView(){null!=this.loadedImage&&(this.imageLoaded.emit(this.loadedImage),this.setImageMaxSizeRetries=0,setTimeout(()=>this.checkImageMaxSizeRecursively()))}checkImageMaxSizeRecursively(){this.setImageMaxSizeRetries>40?this.loadImageFailed.emit():this.sourceImageLoaded()?(this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),this.resetCropperPosition(),this.cropperReady.emit(Object.assign({},this.maxSize)),this.cd.markForCheck()):(this.setImageMaxSizeRetries++,setTimeout(()=>this.checkImageMaxSizeRecursively(),50))}sourceImageLoaded(){return this.sourceImage&&this.sourceImage.nativeElement&&this.sourceImage.nativeElement.offsetWidth>0}onResize(){!this.loadedImage||(this.resizeCropperPosition(),this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize())}activatePinchGesture(){if(this.Hammer){const O=new this.Hammer(this.wrapper.nativeElement);O.get("pinch").set({enable:!0}),O.on("pinchmove",this.onPinch.bind(this)),O.on("pinchend",this.pinchStop.bind(this)),O.on("pinchstart",this.startPinch.bind(this))}else(0,r.X6Q)()&&console.warn("[NgxImageCropper] Could not find HammerJS - Pinch Gesture won't work")}resizeCropperPosition(){const O=this.sourceImage.nativeElement;(this.maxSize.width!==O.offsetWidth||this.maxSize.height!==O.offsetHeight)&&(this.cropper.x1=this.cropper.x1*O.offsetWidth/this.maxSize.width,this.cropper.x2=this.cropper.x2*O.offsetWidth/this.maxSize.width,this.cropper.y1=this.cropper.y1*O.offsetHeight/this.maxSize.height,this.cropper.y2=this.cropper.y2*O.offsetHeight/this.maxSize.height)}resetCropperPosition(){this.cropperPositionService.resetCropperPosition(this.sourceImage,this.cropper,this.settings),this.doAutoCrop(),this.imageVisible=!0}keyboardAccess(O){this.changeKeyboardStepSize(O),this.keyboardMoveCropper(O)}changeKeyboardStepSize(O){O.key>="1"&&O.key<="9"&&(this.settings.stepSize=+O.key)}keyboardMoveCropper(O){if(!["ArrowUp","ArrowDown","ArrowRight","ArrowLeft"].includes(O.key))return;const Se=O.shiftKey?ve.Resize:ve.Move,_e=O.altKey?function Vt(tt){switch(tt){case"ArrowUp":return"bottom";case"ArrowRight":return"left";case"ArrowDown":return"top";default:return"right"}}(O.key):function Mt(tt){switch(tt){case"ArrowUp":return"top";case"ArrowRight":return"right";case"ArrowDown":return"bottom";default:return"left"}}(O.key),at=function Zt(tt,xe){switch(tt){case"ArrowUp":return{clientX:0,clientY:-1*xe};case"ArrowRight":return{clientX:xe,clientY:0};case"ArrowDown":return{clientX:0,clientY:xe};default:return{clientX:-1*xe,clientY:0}}}(O.key,this.settings.stepSize);O.preventDefault(),O.stopPropagation(),this.startMove({clientX:0,clientY:0},Se,_e),this.moveImg(at),this.moveStop()}startMove(O,se,Se=null){this.moveStart&&this.moveStart.active&&this.moveStart.type===ve.Pinch||(O.preventDefault&&O.preventDefault(),this.moveStart=Object.assign({active:!0,type:se,position:Se,clientX:this.cropperPositionService.getClientX(O),clientY:this.cropperPositionService.getClientY(O)},this.cropper))}startPinch(O){!this.safeImgDataUrl||(O.preventDefault&&O.preventDefault(),this.moveStart=Object.assign({active:!0,type:ve.Pinch,position:"center",clientX:this.cropper.x1+(this.cropper.x2-this.cropper.x1)/2,clientY:this.cropper.y1+(this.cropper.y2-this.cropper.y1)/2},this.cropper))}moveImg(O){this.moveStart.active&&(O.stopPropagation&&O.stopPropagation(),O.preventDefault&&O.preventDefault(),this.moveStart.type===ve.Move?(this.cropperPositionService.move(O,this.moveStart,this.cropper),this.checkCropperPosition(!0)):this.moveStart.type===ve.Resize&&(!this.cropperStaticWidth&&!this.cropperStaticHeight&&this.cropperPositionService.resize(O,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1)),this.cd.detectChanges())}onPinch(O){this.moveStart.active&&(O.stopPropagation&&O.stopPropagation(),O.preventDefault&&O.preventDefault(),this.moveStart.type===ve.Pinch&&(this.cropperPositionService.resize(O,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1)),this.cd.detectChanges())}setMaxSize(){if(this.sourceImage){const O=this.sourceImage.nativeElement;this.maxSize.width=O.offsetWidth,this.maxSize.height=O.offsetHeight,this.marginLeft=this.sanitizer.bypassSecurityTrustStyle("calc(50% - "+this.maxSize.width/2+"px)")}}setCropperScaledMinSize(){this.loadedImage&&this.loadedImage.transformed&&this.loadedImage.transformed.image?(this.setCropperScaledMinWidth(),this.setCropperScaledMinHeight()):(this.settings.cropperScaledMinWidth=20,this.settings.cropperScaledMinHeight=20)}setCropperScaledMinWidth(){this.settings.cropperScaledMinWidth=this.cropperMinWidth>0?Math.max(20,this.cropperMinWidth/this.loadedImage.transformed.image.width*this.maxSize.width):20}setCropperScaledMinHeight(){this.settings.cropperScaledMinHeight=this.maintainAspectRatio?Math.max(20,this.settings.cropperScaledMinWidth/this.aspectRatio):this.cropperMinHeight>0?Math.max(20,this.cropperMinHeight/this.loadedImage.transformed.image.height*this.maxSize.height):20}setCropperScaledMaxSize(){if(this.loadedImage&&this.loadedImage.transformed&&this.loadedImage.transformed.image){const O=this.loadedImage.transformed.size.width/this.maxSize.width;this.settings.cropperScaledMaxWidth=this.cropperMaxWidth>20?this.cropperMaxWidth/O:this.maxSize.width,this.settings.cropperScaledMaxHeight=this.cropperMaxHeight>20?this.cropperMaxHeight/O:this.maxSize.height,this.maintainAspectRatio&&(this.settings.cropperScaledMaxWidth>this.settings.cropperScaledMaxHeight*this.aspectRatio?this.settings.cropperScaledMaxWidth=this.settings.cropperScaledMaxHeight*this.aspectRatio:this.settings.cropperScaledMaxWidth<this.settings.cropperScaledMaxHeight*this.aspectRatio&&(this.settings.cropperScaledMaxHeight=this.settings.cropperScaledMaxWidth/this.aspectRatio))}else this.settings.cropperScaledMaxWidth=this.maxSize.width,this.settings.cropperScaledMaxHeight=this.maxSize.height}checkCropperPosition(O=!1){this.cropper.x1<0&&(this.cropper.x2-=O?this.cropper.x1:0,this.cropper.x1=0),this.cropper.y1<0&&(this.cropper.y2-=O?this.cropper.y1:0,this.cropper.y1=0),this.cropper.x2>this.maxSize.width&&(this.cropper.x1-=O?this.cropper.x2-this.maxSize.width:0,this.cropper.x2=this.maxSize.width),this.cropper.y2>this.maxSize.height&&(this.cropper.y1-=O?this.cropper.y2-this.maxSize.height:0,this.cropper.y2=this.maxSize.height)}moveStop(){this.moveStart.active&&(this.moveStart.active=!1,this.doAutoCrop())}pinchStop(){this.moveStart.active&&(this.moveStart.active=!1,this.doAutoCrop())}doAutoCrop(){this.autoCrop&&this.crop()}crop(){if(this.sourceImage&&this.sourceImage.nativeElement&&null!=this.loadedImage.transformed.image){this.startCropImage.emit();const O=this.cropService.crop(this.sourceImage,this.loadedImage,this.cropper,this.settings);return null!=O&&this.imageCropped.emit(O),O}return null}}return tt.\u0275fac=function(O){return new(O||tt)(r.Y36(he),r.Y36(lt),r.Y36(qe),r.Y36(We.H7),r.Y36(r.sBO))},tt.\u0275cmp=r.Xpm({type:tt,selectors:[["image-cropper"]],viewQuery:function(O,se){if(1&O&&(r.Gf(Be,7),r.Gf(we,5)),2&O){let Se;r.iGM(Se=r.CRH())&&(se.wrapper=Se.first),r.iGM(Se=r.CRH())&&(se.sourceImage=Se.first)}},hostVars:4,hostBindings:function(O,se){1&O&&r.NdJ("resize",function(){return se.onResize()},!1,r.Jf7)("mousemove",function(_e){return se.moveImg(_e)},!1,r.evT)("touchmove",function(_e){return se.moveImg(_e)},!1,r.evT)("mouseup",function(){return se.moveStop()},!1,r.evT)("touchend",function(){return se.moveStop()},!1,r.evT),2&O&&(r.Udp("text-align",se.alignImage),r.ekj("disabled",se.disabled))},inputs:{format:"format",transform:"transform",maintainAspectRatio:"maintainAspectRatio",aspectRatio:"aspectRatio",resizeToWidth:"resizeToWidth",resizeToHeight:"resizeToHeight",cropperMinWidth:"cropperMinWidth",cropperMinHeight:"cropperMinHeight",cropperMaxHeight:"cropperMaxHeight",cropperMaxWidth:"cropperMaxWidth",cropperStaticWidth:"cropperStaticWidth",cropperStaticHeight:"cropperStaticHeight",canvasRotation:"canvasRotation",initialStepSize:"initialStepSize",roundCropper:"roundCropper",onlyScaleDown:"onlyScaleDown",imageQuality:"imageQuality",autoCrop:"autoCrop",backgroundColor:"backgroundColor",containWithinAspectRatio:"containWithinAspectRatio",hideResizeSquares:"hideResizeSquares",cropper:"cropper",alignImage:"alignImage",disabled:"disabled",imageChangedEvent:"imageChangedEvent",imageURL:"imageURL",imageBase64:"imageBase64",imageFile:"imageFile"},outputs:{imageCropped:"imageCropped",startCropImage:"startCropImage",imageLoaded:"imageLoaded",cropperReady:"cropperReady",loadImageFailed:"loadImageFailed"},features:[r.TTD],decls:5,vars:10,consts:[["wrapper",""],["class","source-image",3,"src","visibility","transform","load",4,"ngIf"],[1,"overlay"],["class","cropper","tabindex","0",3,"rounded","top","left","width","height","margin-left","visibility","keydown",4,"ngIf"],[1,"source-image",3,"src","load"],["sourceImage",""],["tabindex","0",1,"cropper",3,"keydown"],[1,"move",3,"mousedown","touchstart"],[4,"ngIf"],[1,"resize","topleft",3,"mousedown","touchstart"],[1,"square"],[1,"resize","top"],[1,"resize","topright",3,"mousedown","touchstart"],[1,"resize","right"],[1,"resize","bottomright",3,"mousedown","touchstart"],[1,"resize","bottom"],[1,"resize","bottomleft",3,"mousedown","touchstart"],[1,"resize","left"],[1,"resize-bar","top",3,"mousedown","touchstart"],[1,"resize-bar","right",3,"mousedown","touchstart"],[1,"resize-bar","bottom",3,"mousedown","touchstart"],[1,"resize-bar","left",3,"mousedown","touchstart"]],template:function(O,se){1&O&&(r.TgZ(0,"div",null,0),r.YNc(2,re,2,5,"img",1),r._UZ(3,"div",2),r.YNc(4,N,3,15,"div",3),r.qZA()),2&O&&(r.Udp("background",se.imageVisible&&se.backgroundColor),r.xp6(2),r.Q6J("ngIf",se.safeImgDataUrl),r.xp6(1),r.Udp("width",se.maxSize.width,"px")("height",se.maxSize.height,"px")("margin-left","center"===se.alignImage?se.marginLeft:null),r.xp6(1),r.Q6J("ngIf",se.imageVisible))},directives:[J.O5],styles:['[_nghost-%COMP%]{display:flex;position:relative;width:100%;max-width:100%;max-height:100%;overflow:hidden;padding:5px;text-align:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{width:100%;position:relative}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   img.source-image[_ngcontent-%COMP%]{max-width:100%;max-height:100%;transform-origin:center}[_nghost-%COMP%]   .overlay[_ngcontent-%COMP%]{position:absolute;pointer-events:none;touch-action:none;outline:var(--cropper-overlay-color,#fff) solid 100vw;top:0;left:0}[_nghost-%COMP%]   .cropper[_ngcontent-%COMP%]{position:absolute;display:flex;color:#53535c;background:0 0;outline:rgba(255,255,255,.3) solid 100vw;outline:var(--cropper-outline-color,rgba(255,255,255,.3)) solid 100vw;touch-action:none}[_nghost-%COMP%]   .cropper[_ngcontent-%COMP%]:after{position:absolute;content:"";top:0;bottom:0;left:0;right:0;pointer-events:none;border:1px dashed;opacity:.75;color:inherit;z-index:1}[_nghost-%COMP%]   .cropper[_ngcontent-%COMP%]   .move[_ngcontent-%COMP%]{width:100%;cursor:move;border:1px solid rgba(255,255,255,.5)}[_nghost-%COMP%]   .cropper[_ngcontent-%COMP%]:focus   .move[_ngcontent-%COMP%]{border-color:#1e90ff;border-width:2px}[_nghost-%COMP%]   .cropper[_ngcontent-%COMP%]   .resize[_ngcontent-%COMP%]{position:absolute;display:inline-block;line-height:6px;padding:8px;opacity:.85;z-index:1}[_nghost-%COMP%]   .cropper[_ngcontent-%COMP%]   .resize[_ngcontent-%COMP%]   .square[_ngcontent-%COMP%]{display:inline-block;background:#53535c;width:6px;height:6px;border:1px solid rgba(255,255,255,.5);box-sizing:content-box}[_nghost-%COMP%]   .cropper[_ngcontent-%COMP%]   .resize.topleft[_ngcontent-%COMP%]{top:-12px;left:-12px;cursor:nwse-resize}[_nghost-%COMP%]   .cropper[_ngcontent-%COMP%]   .resize.top[_ngcontent-%COMP%]{top:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%]   .cropper[_ngcontent-%COMP%]   .resize.topright[_ngcontent-%COMP%]{top:-12px;right:-12px;cursor:nesw-resize}[_nghost-%COMP%]   .cropper[_ngcontent-%COMP%]   .resize.right[_ngcontent-%COMP%]{top:calc(50% - 12px);right:-12px;cursor:ew-resize}[_nghost-%COMP%]   .cropper[_ngcontent-%COMP%]   .resize.bottomright[_ngcontent-%COMP%]{bottom:-12px;right:-12px;cursor:nwse-resize}[_nghost-%COMP%]   .cropper[_ngcontent-%COMP%]   .resize.bottom[_ngcontent-%COMP%]{bottom:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%]   .cropper[_ngcontent-%COMP%]   .resize.bottomleft[_ngcontent-%COMP%]{bottom:-12px;left:-12px;cursor:nesw-resize}[_nghost-%COMP%]   .cropper[_ngcontent-%COMP%]   .resize.left[_ngcontent-%COMP%]{top:calc(50% - 12px);left:-12px;cursor:ew-resize}[_nghost-%COMP%]   .cropper[_ngcontent-%COMP%]   .resize-bar[_ngcontent-%COMP%]{position:absolute;z-index:1}[_nghost-%COMP%]   .cropper[_ngcontent-%COMP%]   .resize-bar.top[_ngcontent-%COMP%]{top:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%]   .cropper[_ngcontent-%COMP%]   .resize-bar.right[_ngcontent-%COMP%]{top:11px;right:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%]   .cropper[_ngcontent-%COMP%]   .resize-bar.bottom[_ngcontent-%COMP%]{bottom:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%]   .cropper[_ngcontent-%COMP%]   .resize-bar.left[_ngcontent-%COMP%]{top:11px;left:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%]   .cropper.rounded[_ngcontent-%COMP%]{outline-color:transparent}[_nghost-%COMP%]   .cropper.rounded[_ngcontent-%COMP%]:after{border-radius:100%;box-shadow:0 0 0 100vw rgba(255,255,255,.3);box-shadow:0 0 0 100vw var(--cropper-outline-color,rgba(255,255,255,.3))}@media (orientation:portrait){[_nghost-%COMP%]   .cropper[_ngcontent-%COMP%]{outline-width:100vh}[_nghost-%COMP%]   .cropper.rounded[_ngcontent-%COMP%]:after{box-shadow:0 0 0 100vh rgba(255,255,255,.3);box-shadow:0 0 0 100vh var(--cropper-outline-color,rgba(255,255,255,.3))}}[_nghost-%COMP%]   .cropper.rounded[_ngcontent-%COMP%]   .move[_ngcontent-%COMP%]{border-radius:100%}.disabled[_nghost-%COMP%]   .cropper[_ngcontent-%COMP%]   .move[_ngcontent-%COMP%], .disabled[_nghost-%COMP%]   .cropper[_ngcontent-%COMP%]   .resize[_ngcontent-%COMP%], .disabled[_nghost-%COMP%]   .cropper[_ngcontent-%COMP%]   .resize-bar[_ngcontent-%COMP%]{display:none}'],changeDetection:0}),tt})(),wn=(()=>{class tt{}return tt.\u0275fac=function(O){return new(O||tt)},tt.\u0275mod=r.oAB({type:tt}),tt.\u0275inj=r.cJS({imports:[[J.ez]]}),tt})();function Bn(tt){const xe=tt.split(","),O=xe[0].replace("data:","").replace(";base64",""),se=atob(xe[1]),Se=new ArrayBuffer(se.length),_e=new Uint8Array(Se);for(let at=0;at<se.length;at+=1)_e[at]=se.charCodeAt(at);return new Blob([Se],{type:O})}},591:(Ct,ae,p)=>{"use strict";p.d(ae,{X:()=>D});var r=p(8929),m=p(5279);class D extends r.xQ{constructor(U){super(),this._value=U}get value(){return this.getValue()}_subscribe(U){const V=super._subscribe(U);return V&&!V.closed&&U.next(this._value),V}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new m.N;return this._value}next(U){super.next(this._value=U)}}},2916:(Ct,ae,p)=>{"use strict";p.d(ae,{y:()=>ee});var r=p(3489),D=p(7668),j=p(3292),V=p(3821),P=p(5379);var Q=p(2830);let ee=(()=>{class Y{constructor(Ne){this._isScalar=!1,Ne&&(this._subscribe=Ne)}lift(Ne){const $e=new Y;return $e.source=this,$e.operator=Ne,$e}subscribe(Ne,$e,ye){const{operator:De}=this,ue=function U(Y,ce,Ne){if(Y){if(Y instanceof r.L)return Y;if(Y[D.b])return Y[D.b]()}return Y||ce||Ne?new r.L(Y,ce,Ne):new r.L(j.c)}(Ne,$e,ye);if(ue.add(De?De.call(ue,this.source):this.source||Q.v.useDeprecatedSynchronousErrorHandling&&!ue.syncErrorThrowable?this._subscribe(ue):this._trySubscribe(ue)),Q.v.useDeprecatedSynchronousErrorHandling&&ue.syncErrorThrowable&&(ue.syncErrorThrowable=!1,ue.syncErrorThrown))throw ue.syncErrorValue;return ue}_trySubscribe(Ne){try{return this._subscribe(Ne)}catch($e){Q.v.useDeprecatedSynchronousErrorHandling&&(Ne.syncErrorThrown=!0,Ne.syncErrorValue=$e),function m(Y){for(;Y;){const{closed:ce,destination:Ne,isStopped:$e}=Y;if(ce||$e)return!1;Y=Ne&&Ne instanceof r.L?Ne:null}return!0}(Ne)?Ne.error($e):console.warn($e)}}forEach(Ne,$e){return new($e=ne($e))((ye,De)=>{let ue;ue=this.subscribe(me=>{try{Ne(me)}catch(ze){De(ze),ue&&ue.unsubscribe()}},De,ye)})}_subscribe(Ne){const{source:$e}=this;return $e&&$e.subscribe(Ne)}[V.L](){return this}pipe(...Ne){return 0===Ne.length?this:function q(Y){return 0===Y.length?P.y:1===Y.length?Y[0]:function(Ne){return Y.reduce(($e,ye)=>ye($e),Ne)}}(Ne)(this)}toPromise(Ne){return new(Ne=ne(Ne))(($e,ye)=>{let De;this.subscribe(ue=>De=ue,ue=>ye(ue),()=>$e(De))})}}return Y.create=ce=>new Y(ce),Y})();function ne(Y){if(Y||(Y=Q.v.Promise||Promise),!Y)throw new Error("no Promise impl found");return Y}},3292:(Ct,ae,p)=>{"use strict";p.d(ae,{c:()=>D});var r=p(2830),m=p(2782);const D={closed:!0,next(j){},error(j){if(r.v.useDeprecatedSynchronousErrorHandling)throw j;(0,m.z)(j)},complete(){}}},8929:(Ct,ae,p)=>{"use strict";p.d(ae,{Yc:()=>P,xQ:()=>F});var r=p(2916),m=p(3489),D=p(2654),j=p(5279),U=p(5283),V=p(7668);class P extends m.L{constructor(ee){super(ee),this.destination=ee}}let F=(()=>{class Q extends r.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[V.b](){return new P(this)}lift(ne){const Y=new q(this,this);return Y.operator=ne,Y}next(ne){if(this.closed)throw new j.N;if(!this.isStopped){const{observers:Y}=this,ce=Y.length,Ne=Y.slice();for(let $e=0;$e<ce;$e++)Ne[$e].next(ne)}}error(ne){if(this.closed)throw new j.N;this.hasError=!0,this.thrownError=ne,this.isStopped=!0;const{observers:Y}=this,ce=Y.length,Ne=Y.slice();for(let $e=0;$e<ce;$e++)Ne[$e].error(ne);this.observers.length=0}complete(){if(this.closed)throw new j.N;this.isStopped=!0;const{observers:ne}=this,Y=ne.length,ce=ne.slice();for(let Ne=0;Ne<Y;Ne++)ce[Ne].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(ne){if(this.closed)throw new j.N;return super._trySubscribe(ne)}_subscribe(ne){if(this.closed)throw new j.N;return this.hasError?(ne.error(this.thrownError),D.w.EMPTY):this.isStopped?(ne.complete(),D.w.EMPTY):(this.observers.push(ne),new U.W(this,ne))}asObservable(){const ne=new r.y;return ne.source=this,ne}}return Q.create=(ee,ne)=>new q(ee,ne),Q})();class q extends F{constructor(ee,ne){super(),this.destination=ee,this.source=ne}next(ee){const{destination:ne}=this;ne&&ne.next&&ne.next(ee)}error(ee){const{destination:ne}=this;ne&&ne.error&&this.destination.error(ee)}complete(){const{destination:ee}=this;ee&&ee.complete&&this.destination.complete()}_subscribe(ee){const{source:ne}=this;return ne?this.source.subscribe(ee):D.w.EMPTY}}},5283:(Ct,ae,p)=>{"use strict";p.d(ae,{W:()=>m});var r=p(2654);class m extends r.w{constructor(j,U){super(),this.subject=j,this.subscriber=U,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const j=this.subject,U=j.observers;if(this.subject=null,!U||0===U.length||j.isStopped||j.closed)return;const V=U.indexOf(this.subscriber);-1!==V&&U.splice(V,1)}}},3489:(Ct,ae,p)=>{"use strict";p.d(ae,{L:()=>P});var r=p(7043),m=p(3292),D=p(2654),j=p(7668),U=p(2830),V=p(2782);class P extends D.w{constructor(Q,ee,ne){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=m.c;break;case 1:if(!Q){this.destination=m.c;break}if("object"==typeof Q){Q instanceof P?(this.syncErrorThrowable=Q.syncErrorThrowable,this.destination=Q,Q.add(this)):(this.syncErrorThrowable=!0,this.destination=new F(this,Q));break}default:this.syncErrorThrowable=!0,this.destination=new F(this,Q,ee,ne)}}[j.b](){return this}static create(Q,ee,ne){const Y=new P(Q,ee,ne);return Y.syncErrorThrowable=!1,Y}next(Q){this.isStopped||this._next(Q)}error(Q){this.isStopped||(this.isStopped=!0,this._error(Q))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(Q){this.destination.next(Q)}_error(Q){this.destination.error(Q),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:Q}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=Q,this}}class F extends P{constructor(Q,ee,ne,Y){super(),this._parentSubscriber=Q;let ce,Ne=this;(0,r.m)(ee)?ce=ee:ee&&(ce=ee.next,ne=ee.error,Y=ee.complete,ee!==m.c&&(Ne=Object.create(ee),(0,r.m)(Ne.unsubscribe)&&this.add(Ne.unsubscribe.bind(Ne)),Ne.unsubscribe=this.unsubscribe.bind(this))),this._context=Ne,this._next=ce,this._error=ne,this._complete=Y}next(Q){if(!this.isStopped&&this._next){const{_parentSubscriber:ee}=this;U.v.useDeprecatedSynchronousErrorHandling&&ee.syncErrorThrowable?this.__tryOrSetError(ee,this._next,Q)&&this.unsubscribe():this.__tryOrUnsub(this._next,Q)}}error(Q){if(!this.isStopped){const{_parentSubscriber:ee}=this,{useDeprecatedSynchronousErrorHandling:ne}=U.v;if(this._error)ne&&ee.syncErrorThrowable?(this.__tryOrSetError(ee,this._error,Q),this.unsubscribe()):(this.__tryOrUnsub(this._error,Q),this.unsubscribe());else if(ee.syncErrorThrowable)ne?(ee.syncErrorValue=Q,ee.syncErrorThrown=!0):(0,V.z)(Q),this.unsubscribe();else{if(this.unsubscribe(),ne)throw Q;(0,V.z)(Q)}}}complete(){if(!this.isStopped){const{_parentSubscriber:Q}=this;if(this._complete){const ee=()=>this._complete.call(this._context);U.v.useDeprecatedSynchronousErrorHandling&&Q.syncErrorThrowable?(this.__tryOrSetError(Q,ee),this.unsubscribe()):(this.__tryOrUnsub(ee),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(Q,ee){try{Q.call(this._context,ee)}catch(ne){if(this.unsubscribe(),U.v.useDeprecatedSynchronousErrorHandling)throw ne;(0,V.z)(ne)}}__tryOrSetError(Q,ee,ne){if(!U.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{ee.call(this._context,ne)}catch(Y){return U.v.useDeprecatedSynchronousErrorHandling?(Q.syncErrorValue=Y,Q.syncErrorThrown=!0,!0):((0,V.z)(Y),!0)}return!1}_unsubscribe(){const{_parentSubscriber:Q}=this;this._context=null,this._parentSubscriber=null,Q.unsubscribe()}}},2654:(Ct,ae,p)=>{"use strict";p.d(ae,{w:()=>V});var r=p(6688),m=p(7830),D=p(7043);const U=(()=>{function F(q){return Error.call(this),this.message=q?`${q.length} errors occurred during unsubscription:\n${q.map((Q,ee)=>`${ee+1}) ${Q.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=q,this}return F.prototype=Object.create(Error.prototype),F})();class V{constructor(q){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,q&&(this._ctorUnsubscribe=!0,this._unsubscribe=q)}unsubscribe(){let q;if(this.closed)return;let{_parentOrParents:Q,_ctorUnsubscribe:ee,_unsubscribe:ne,_subscriptions:Y}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,Q instanceof V)Q.remove(this);else if(null!==Q)for(let ce=0;ce<Q.length;++ce)Q[ce].remove(this);if((0,D.m)(ne)){ee&&(this._unsubscribe=void 0);try{ne.call(this)}catch(ce){q=ce instanceof U?P(ce.errors):[ce]}}if((0,r.k)(Y)){let ce=-1,Ne=Y.length;for(;++ce<Ne;){const $e=Y[ce];if((0,m.K)($e))try{$e.unsubscribe()}catch(ye){q=q||[],ye instanceof U?q=q.concat(P(ye.errors)):q.push(ye)}}}if(q)throw new U(q)}add(q){let Q=q;if(!q)return V.EMPTY;switch(typeof q){case"function":Q=new V(q);case"object":if(Q===this||Q.closed||"function"!=typeof Q.unsubscribe)return Q;if(this.closed)return Q.unsubscribe(),Q;if(!(Q instanceof V)){const Y=Q;Q=new V,Q._subscriptions=[Y]}break;default:throw new Error("unrecognized teardown "+q+" added to Subscription.")}let{_parentOrParents:ee}=Q;if(null===ee)Q._parentOrParents=this;else if(ee instanceof V){if(ee===this)return Q;Q._parentOrParents=[ee,this]}else{if(-1!==ee.indexOf(this))return Q;ee.push(this)}const ne=this._subscriptions;return null===ne?this._subscriptions=[Q]:ne.push(Q),Q}remove(q){const Q=this._subscriptions;if(Q){const ee=Q.indexOf(q);-1!==ee&&Q.splice(ee,1)}}}var F;function P(F){return F.reduce((q,Q)=>q.concat(Q instanceof U?Q.errors:Q),[])}V.EMPTY=((F=new V).closed=!0,F)},2830:(Ct,ae,p)=>{"use strict";p.d(ae,{v:()=>m});let r=!1;const m={Promise:void 0,set useDeprecatedSynchronousErrorHandling(D){if(D){const j=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+j.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=D},get useDeprecatedSynchronousErrorHandling(){return r}}},1177:(Ct,ae,p)=>{"use strict";p.d(ae,{Ds:()=>V,IY:()=>j,ft:()=>F});var r=p(3489),m=p(2916),D=p(9249);class j extends r.L{constructor(Q){super(),this.parent=Q}_next(Q){this.parent.notifyNext(Q)}_error(Q){this.parent.notifyError(Q),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class V extends r.L{notifyNext(Q){this.destination.next(Q)}notifyError(Q){this.destination.error(Q)}notifyComplete(){this.destination.complete()}}function F(q,Q){if(Q.closed)return;if(q instanceof m.y)return q.subscribe(Q);let ee;try{ee=(0,D.s)(q)(Q)}catch(ne){Q.error(ne)}return ee}},1762:(Ct,ae,p)=>{"use strict";p.d(ae,{N:()=>V,c:()=>U});var r=p(8929),m=p(2916),D=p(2654),j=p(4327);class U extends m.y{constructor(ee,ne){super(),this.source=ee,this.subjectFactory=ne,this._refCount=0,this._isComplete=!1}_subscribe(ee){return this.getSubject().subscribe(ee)}getSubject(){const ee=this._subject;return(!ee||ee.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let ee=this._connection;return ee||(this._isComplete=!1,ee=this._connection=new D.w,ee.add(this.source.subscribe(new P(this.getSubject(),this))),ee.closed&&(this._connection=null,ee=D.w.EMPTY)),ee}refCount(){return(0,j.x)()(this)}}const V=(()=>{const Q=U.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Q._subscribe},_isComplete:{value:Q._isComplete,writable:!0},getSubject:{value:Q.getSubject},connect:{value:Q.connect},refCount:{value:Q.refCount}}})();class P extends r.Yc{constructor(ee,ne){super(ee),this.connectable=ne}_error(ee){this._unsubscribe(),super._error(ee)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const ee=this.connectable;if(ee){this.connectable=null;const ne=ee._connection;ee._refCount=0,ee._subject=null,ee._connection=null,ne&&ne.unsubscribe()}}}},1221:(Ct,ae,p)=>{"use strict";p.d(ae,{z:()=>j});var r=p(1086),m=p(9146);function j(...U){return function D(){return(0,m.J)(1)}()((0,r.of)(...U))}},8514:(Ct,ae,p)=>{"use strict";p.d(ae,{P:()=>j});var r=p(2916),m=p(5254),D=p(8896);function j(U){return new r.y(V=>{let P;try{P=U()}catch(q){return void V.error(q)}return(P?(0,m.D)(P):(0,D.c)()).subscribe(V)})}},8896:(Ct,ae,p)=>{"use strict";p.d(ae,{E:()=>m,c:()=>D});var r=p(2916);const m=new r.y(U=>U.complete());function D(U){return U?function j(U){return new r.y(V=>U.schedule(()=>V.complete()))}(U):m}},567:(Ct,ae,p)=>{"use strict";p.d(ae,{D:()=>V});var r=p(2916),m=p(6688),D=p(4850),j=p(7830),U=p(5254);function V(...F){if(1===F.length){const q=F[0];if((0,m.k)(q))return P(q,null);if((0,j.K)(q)&&Object.getPrototypeOf(q)===Object.prototype){const Q=Object.keys(q);return P(Q.map(ee=>q[ee]),Q)}}if("function"==typeof F[F.length-1]){const q=F.pop();return P(F=1===F.length&&(0,m.k)(F[0])?F[0]:F,null).pipe((0,D.U)(Q=>q(...Q)))}return P(F,null)}function P(F,q){return new r.y(Q=>{const ee=F.length;if(0===ee)return void Q.complete();const ne=new Array(ee);let Y=0,ce=0;for(let Ne=0;Ne<ee;Ne++){const $e=(0,U.D)(F[Ne]);let ye=!1;Q.add($e.subscribe({next:De=>{ye||(ye=!0,ce++),ne[Ne]=De},error:De=>Q.error(De),complete:()=>{Y++,(Y===ee||!ye)&&(ce===ee&&Q.next(q?q.reduce((De,ue,me)=>(De[ue]=ne[me],De),{}):ne),Q.complete())}}))}})}},5254:(Ct,ae,p)=>{"use strict";p.d(ae,{D:()=>Ne});var r=p(2916),m=p(9249),D=p(2654),j=p(3821),P=p(6454),F=p(5430),ee=p(8955),ne=p(8515);function Ne($e,ye){return ye?function ce($e,ye){if(null!=$e){if(function Q($e){return $e&&"function"==typeof $e[j.L]}($e))return function U($e,ye){return new r.y(De=>{const ue=new D.w;return ue.add(ye.schedule(()=>{const me=$e[j.L]();ue.add(me.subscribe({next(ze){ue.add(ye.schedule(()=>De.next(ze)))},error(ze){ue.add(ye.schedule(()=>De.error(ze)))},complete(){ue.add(ye.schedule(()=>De.complete()))}}))})),ue})}($e,ye);if((0,ee.t)($e))return function V($e,ye){return new r.y(De=>{const ue=new D.w;return ue.add(ye.schedule(()=>$e.then(me=>{ue.add(ye.schedule(()=>{De.next(me),ue.add(ye.schedule(()=>De.complete()))}))},me=>{ue.add(ye.schedule(()=>De.error(me)))}))),ue})}($e,ye);if((0,ne.z)($e))return(0,P.r)($e,ye);if(function Y($e){return $e&&"function"==typeof $e[F.hZ]}($e)||"string"==typeof $e)return function q($e,ye){if(!$e)throw new Error("Iterable cannot be null");return new r.y(De=>{const ue=new D.w;let me;return ue.add(()=>{me&&"function"==typeof me.return&&me.return()}),ue.add(ye.schedule(()=>{me=$e[F.hZ](),ue.add(ye.schedule(function(){if(De.closed)return;let ze,Pe;try{const je=me.next();ze=je.value,Pe=je.done}catch(je){return void De.error(je)}Pe?De.complete():(De.next(ze),this.schedule())}))})),ue})}($e,ye)}throw new TypeError((null!==$e&&typeof $e||$e)+" is not observable")}($e,ye):$e instanceof r.y?$e:new r.y((0,m.s)($e))}},3009:(Ct,ae,p)=>{"use strict";p.d(ae,{n:()=>j});var r=p(2916),m=p(3650),D=p(6454);function j(U,V){return V?(0,D.r)(U,V):new r.y((0,m.V)(U))}},3753:(Ct,ae,p)=>{"use strict";p.d(ae,{R:()=>V});var r=p(2916),m=p(6688),D=p(7043),j=p(4850);function V(ee,ne,Y,ce){return(0,D.m)(Y)&&(ce=Y,Y=void 0),ce?V(ee,ne,Y).pipe((0,j.U)(Ne=>(0,m.k)(Ne)?ce(...Ne):ce(Ne))):new r.y(Ne=>{P(ee,ne,function $e(ye){Ne.next(arguments.length>1?Array.prototype.slice.call(arguments):ye)},Ne,Y)})}function P(ee,ne,Y,ce,Ne){let $e;if(function Q(ee){return ee&&"function"==typeof ee.addEventListener&&"function"==typeof ee.removeEventListener}(ee)){const ye=ee;ee.addEventListener(ne,Y,Ne),$e=()=>ye.removeEventListener(ne,Y,Ne)}else if(function q(ee){return ee&&"function"==typeof ee.on&&"function"==typeof ee.off}(ee)){const ye=ee;ee.on(ne,Y),$e=()=>ye.off(ne,Y)}else if(function F(ee){return ee&&"function"==typeof ee.addListener&&"function"==typeof ee.removeListener}(ee)){const ye=ee;ee.addListener(ne,Y),$e=()=>ye.removeListener(ne,Y)}else{if(!ee||!ee.length)throw new TypeError("Invalid event target");for(let ye=0,De=ee.length;ye<De;ye++)P(ee[ye],ne,Y,ce,Ne)}ce.add($e)}},1086:(Ct,ae,p)=>{"use strict";p.d(ae,{of:()=>j});var r=p(2866),m=p(3009),D=p(6454);function j(...U){let V=U[U.length-1];return(0,r.K)(V)?(U.pop(),(0,D.r)(U,V)):(0,m.n)(U)}},1737:(Ct,ae,p)=>{"use strict";p.d(ae,{_:()=>m});var r=p(2916);function m(j,U){return new r.y(U?V=>U.schedule(D,0,{error:j,subscriber:V}):V=>V.error(j))}function D({error:j,subscriber:U}){U.error(j)}},1406:(Ct,ae,p)=>{"use strict";p.d(ae,{b:()=>m});var r=p(1709);function m(D,j){return(0,r.zg)(D,j,1)}},5778:(Ct,ae,p)=>{"use strict";p.d(ae,{x:()=>m});var r=p(3489);function m(U,V){return P=>P.lift(new D(U,V))}class D{constructor(V,P){this.compare=V,this.keySelector=P}call(V,P){return P.subscribe(new j(V,this.compare,this.keySelector))}}class j extends r.L{constructor(V,P,F){super(V),this.keySelector=F,this.hasKey=!1,"function"==typeof P&&(this.compare=P)}compare(V,P){return V===P}_next(V){let P;try{const{keySelector:q}=this;P=q?q(V):V}catch(q){return this.destination.error(q)}let F=!1;if(this.hasKey)try{const{compare:q}=this;F=q(this.key,P)}catch(q){return this.destination.error(q)}else this.hasKey=!0;F||(this.key=P,this.destination.next(V))}}},2198:(Ct,ae,p)=>{"use strict";p.d(ae,{h:()=>m});var r=p(3489);function m(U,V){return function(F){return F.lift(new D(U,V))}}class D{constructor(V,P){this.predicate=V,this.thisArg=P}call(V,P){return P.subscribe(new j(V,this.predicate,this.thisArg))}}class j extends r.L{constructor(V,P,F){super(V),this.predicate=P,this.thisArg=F,this.count=0}_next(V){let P;try{P=this.predicate.call(this.thisArg,V,this.count++)}catch(F){return void this.destination.error(F)}P&&this.destination.next(V)}}},4850:(Ct,ae,p)=>{"use strict";p.d(ae,{U:()=>m});var r=p(3489);function m(U,V){return function(F){if("function"!=typeof U)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return F.lift(new D(U,V))}}class D{constructor(V,P){this.project=V,this.thisArg=P}call(V,P){return P.subscribe(new j(V,this.project,this.thisArg))}}class j extends r.L{constructor(V,P,F){super(V),this.project=P,this.count=0,this.thisArg=F||this}_next(V){let P;try{P=this.project.call(this.thisArg,V,this.count++)}catch(F){return void this.destination.error(F)}this.destination.next(P)}}},9146:(Ct,ae,p)=>{"use strict";p.d(ae,{J:()=>D});var r=p(1709),m=p(5379);function D(j=Number.POSITIVE_INFINITY){return(0,r.zg)(m.y,j)}},1709:(Ct,ae,p)=>{"use strict";p.d(ae,{zg:()=>j});var r=p(4850),m=p(5254),D=p(1177);function j(F,q,Q=Number.POSITIVE_INFINITY){return"function"==typeof q?ee=>ee.pipe(j((ne,Y)=>(0,m.D)(F(ne,Y)).pipe((0,r.U)((ce,Ne)=>q(ne,ce,Y,Ne))),Q)):("number"==typeof q&&(Q=q),ee=>ee.lift(new U(F,Q)))}class U{constructor(q,Q=Number.POSITIVE_INFINITY){this.project=q,this.concurrent=Q}call(q,Q){return Q.subscribe(new V(q,this.project,this.concurrent))}}class V extends D.Ds{constructor(q,Q,ee=Number.POSITIVE_INFINITY){super(q),this.project=Q,this.concurrent=ee,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(q){this.active<this.concurrent?this._tryNext(q):this.buffer.push(q)}_tryNext(q){let Q;const ee=this.index++;try{Q=this.project(q,ee)}catch(ne){return void this.destination.error(ne)}this.active++,this._innerSub(Q)}_innerSub(q){const Q=new D.IY(this),ee=this.destination;ee.add(Q);const ne=(0,D.ft)(q,Q);ne!==Q&&ee.add(ne)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(q){this.destination.next(q)}notifyComplete(){const q=this.buffer;this.active--,q.length>0?this._next(q.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},4327:(Ct,ae,p)=>{"use strict";p.d(ae,{x:()=>m});var r=p(3489);function m(){return function(V){return V.lift(new D(V))}}class D{constructor(V){this.connectable=V}call(V,P){const{connectable:F}=this;F._refCount++;const q=new j(V,F),Q=P.subscribe(q);return q.closed||(q.connection=F.connect()),Q}}class j extends r.L{constructor(V,P){super(V),this.connectable=P}_unsubscribe(){const{connectable:V}=this;if(!V)return void(this.connection=null);this.connectable=null;const P=V._refCount;if(P<=0)return void(this.connection=null);if(V._refCount=P-1,P>1)return void(this.connection=null);const{connection:F}=this,q=V._connection;this.connection=null,q&&(!F||q===F)&&q.unsubscribe()}}},7803:(Ct,ae,p)=>{"use strict";p.d(ae,{d:()=>je});var r=p(8929),m=p(6686),j=p(2268);const P=new class U extends j.v{}(class D extends m.o{constructor(J,We){super(J,We),this.scheduler=J,this.work=We}schedule(J,We=0){return We>0?super.schedule(J,We):(this.delay=We,this.state=J,this.scheduler.flush(this),this)}execute(J,We){return We>0||this.closed?super.execute(J,We):this._execute(J,We)}requestAsyncId(J,We,Be=0){return null!==Be&&Be>0||null===Be&&this.delay>0?super.requestAsyncId(J,We,Be):J.flush(this)}});var F=p(2654),q=p(3489),Q=p(8896),ee=p(1086),ne=p(1737);class ce{constructor(J,We,Be){this.kind=J,this.value=We,this.error=Be,this.hasValue="N"===J}observe(J){switch(this.kind){case"N":return J.next&&J.next(this.value);case"E":return J.error&&J.error(this.error);case"C":return J.complete&&J.complete()}}do(J,We,Be){switch(this.kind){case"N":return J&&J(this.value);case"E":return We&&We(this.error);case"C":return Be&&Be()}}accept(J,We,Be){return J&&"function"==typeof J.next?this.observe(J):this.do(J,We,Be)}toObservable(){switch(this.kind){case"N":return(0,ee.of)(this.value);case"E":return(0,ne._)(this.error);case"C":return(0,Q.c)()}throw new Error("unexpected notification kind value")}static createNext(J){return void 0!==J?new ce("N",J):ce.undefinedValueNotification}static createError(J){return new ce("E",void 0,J)}static createComplete(){return ce.completeNotification}}ce.completeNotification=new ce("C"),ce.undefinedValueNotification=new ce("N",void 0);class ye extends q.L{constructor(J,We,Be=0){super(J),this.scheduler=We,this.delay=Be}static dispatch(J){const{notification:We,destination:Be}=J;We.observe(Be),this.unsubscribe()}scheduleMessage(J){this.destination.add(this.scheduler.schedule(ye.dispatch,this.delay,new De(J,this.destination)))}_next(J){this.scheduleMessage(ce.createNext(J))}_error(J){this.scheduleMessage(ce.createError(J)),this.unsubscribe()}_complete(){this.scheduleMessage(ce.createComplete()),this.unsubscribe()}}class De{constructor(J,We){this.notification=J,this.destination=We}}var ue=p(5279),me=p(5283);class ze extends r.xQ{constructor(J=Number.POSITIVE_INFINITY,We=Number.POSITIVE_INFINITY,Be){super(),this.scheduler=Be,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=J<1?1:J,this._windowTime=We<1?1:We,We===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(J){if(!this.isStopped){const We=this._events;We.push(J),We.length>this._bufferSize&&We.shift()}super.next(J)}nextTimeWindow(J){this.isStopped||(this._events.push(new Pe(this._getNow(),J)),this._trimBufferThenGetEvents()),super.next(J)}_subscribe(J){const We=this._infiniteTimeWindow,Be=We?this._events:this._trimBufferThenGetEvents(),we=this.scheduler,re=Be.length;let z;if(this.closed)throw new ue.N;if(this.isStopped||this.hasError?z=F.w.EMPTY:(this.observers.push(J),z=new me.W(this,J)),we&&J.add(J=new ye(J,we)),We)for(let N=0;N<re&&!J.closed;N++)J.next(Be[N]);else for(let N=0;N<re&&!J.closed;N++)J.next(Be[N].value);return this.hasError?J.error(this.thrownError):this.isStopped&&J.complete(),z}_getNow(){return(this.scheduler||P).now()}_trimBufferThenGetEvents(){const J=this._getNow(),We=this._bufferSize,Be=this._windowTime,we=this._events,re=we.length;let z=0;for(;z<re&&!(J-we[z].time<Be);)z++;return re>We&&(z=Math.max(z,re-We)),z>0&&we.splice(0,z),we}}class Pe{constructor(J,We){this.time=J,this.value=We}}function je(Te,J,We){let Be;return Be=Te&&"object"==typeof Te?Te:{bufferSize:Te,windowTime:J,refCount:!1,scheduler:We},we=>we.lift(function Fe({bufferSize:Te=Number.POSITIVE_INFINITY,windowTime:J=Number.POSITIVE_INFINITY,refCount:We,scheduler:Be}){let we,z,re=0,N=!1,pe=!1;return function(le){let he;re++,!we||N?(N=!1,we=new ze(Te,J,Be),he=we.subscribe(this),z=le.subscribe({next(Ae){we.next(Ae)},error(Ae){N=!0,we.error(Ae)},complete(){pe=!0,z=void 0,we.complete()}}),pe&&(z=void 0)):he=we.subscribe(this),this.add(()=>{re--,he.unsubscribe(),he=void 0,z&&!pe&&We&&0===re&&(z.unsubscribe(),z=void 0,we=void 0)})}}(Be))}},1059:(Ct,ae,p)=>{"use strict";p.d(ae,{O:()=>D});var r=p(1221),m=p(2866);function D(...j){const U=j[j.length-1];return(0,m.K)(U)?(j.pop(),V=>(0,r.z)(j,V,U)):V=>(0,r.z)(j,V)}},7545:(Ct,ae,p)=>{"use strict";p.d(ae,{w:()=>j});var r=p(4850),m=p(5254),D=p(1177);function j(P,F){return"function"==typeof F?q=>q.pipe(j((Q,ee)=>(0,m.D)(P(Q,ee)).pipe((0,r.U)((ne,Y)=>F(Q,ne,ee,Y))))):q=>q.lift(new U(P))}class U{constructor(F){this.project=F}call(F,q){return q.subscribe(new V(F,this.project))}}class V extends D.Ds{constructor(F,q){super(F),this.project=q,this.index=0}_next(F){let q;const Q=this.index++;try{q=this.project(F,Q)}catch(ee){return void this.destination.error(ee)}this._innerSub(q)}_innerSub(F){const q=this.innerSubscription;q&&q.unsubscribe();const Q=new D.IY(this),ee=this.destination;ee.add(Q),this.innerSubscription=(0,D.ft)(F,Q),this.innerSubscription!==Q&&ee.add(this.innerSubscription)}_complete(){const{innerSubscription:F}=this;(!F||F.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(F){this.destination.next(F)}}},2986:(Ct,ae,p)=>{"use strict";p.d(ae,{q:()=>j});var r=p(3489),m=p(4231),D=p(8896);function j(P){return F=>0===P?(0,D.c)():F.lift(new U(P))}class U{constructor(F){if(this.total=F,this.total<0)throw new m.W}call(F,q){return q.subscribe(new V(F,this.total))}}class V extends r.L{constructor(F,q){super(F),this.total=q,this.count=0}_next(F){const q=this.total,Q=++this.count;Q<=q&&(this.destination.next(F),Q===q&&(this.destination.complete(),this.unsubscribe()))}}},2868:(Ct,ae,p)=>{"use strict";p.d(ae,{b:()=>j});var r=p(3489);function m(){}var D=p(7043);function j(P,F,q){return function(ee){return ee.lift(new U(P,F,q))}}class U{constructor(F,q,Q){this.nextOrObserver=F,this.error=q,this.complete=Q}call(F,q){return q.subscribe(new V(F,this.nextOrObserver,this.error,this.complete))}}class V extends r.L{constructor(F,q,Q,ee){super(F),this._tapNext=m,this._tapError=m,this._tapComplete=m,this._tapError=Q||m,this._tapComplete=ee||m,(0,D.m)(q)?(this._context=this,this._tapNext=q):q&&(this._context=q,this._tapNext=q.next||m,this._tapError=q.error||m,this._tapComplete=q.complete||m)}_next(F){try{this._tapNext.call(this._context,F)}catch(q){return void this.destination.error(q)}this.destination.next(F)}_error(F){try{this._tapError.call(this._context,F)}catch(q){return void this.destination.error(q)}this.destination.error(F)}_complete(){try{this._tapComplete.call(this._context)}catch(F){return void this.destination.error(F)}return this.destination.complete()}}},6454:(Ct,ae,p)=>{"use strict";p.d(ae,{r:()=>D});var r=p(2916),m=p(2654);function D(j,U){return new r.y(V=>{const P=new m.w;let F=0;return P.add(U.schedule(function(){F!==j.length?(V.next(j[F++]),V.closed||P.add(this.schedule())):V.complete()})),P})}},6686:(Ct,ae,p)=>{"use strict";p.d(ae,{o:()=>D});var r=p(2654);class m extends r.w{constructor(U,V){super()}schedule(U,V=0){return this}}class D extends m{constructor(U,V){super(U,V),this.scheduler=U,this.work=V,this.pending=!1}schedule(U,V=0){if(this.closed)return this;this.state=U;const P=this.id,F=this.scheduler;return null!=P&&(this.id=this.recycleAsyncId(F,P,V)),this.pending=!0,this.delay=V,this.id=this.id||this.requestAsyncId(F,this.id,V),this}requestAsyncId(U,V,P=0){return setInterval(U.flush.bind(U,this),P)}recycleAsyncId(U,V,P=0){if(null!==P&&this.delay===P&&!1===this.pending)return V;clearInterval(V)}execute(U,V){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const P=this._execute(U,V);if(P)return P;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(U,V){let F,P=!1;try{this.work(U)}catch(q){P=!0,F=!!q&&q||new Error(q)}if(P)return this.unsubscribe(),F}_unsubscribe(){const U=this.id,V=this.scheduler,P=V.actions,F=P.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==F&&P.splice(F,1),null!=U&&(this.id=this.recycleAsyncId(V,U,null)),this.delay=null}}},2268:(Ct,ae,p)=>{"use strict";p.d(ae,{v:()=>m});let r=(()=>{class D{constructor(U,V=D.now){this.SchedulerAction=U,this.now=V}schedule(U,V=0,P){return new this.SchedulerAction(this,U).schedule(P,V)}}return D.now=()=>Date.now(),D})();class m extends r{constructor(j,U=r.now){super(j,()=>m.delegate&&m.delegate!==this?m.delegate.now():U()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(j,U=0,V){return m.delegate&&m.delegate!==this?m.delegate.schedule(j,U,V):super.schedule(j,U,V)}flush(j){const{actions:U}=this;if(this.active)return void U.push(j);let V;this.active=!0;do{if(V=j.execute(j.state,j.delay))break}while(j=U.shift());if(this.active=!1,V){for(;j=U.shift();)j.unsubscribe();throw V}}}},5430:(Ct,ae,p)=>{"use strict";p.d(ae,{hZ:()=>m});const m=function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(Ct,ae,p)=>{"use strict";p.d(ae,{L:()=>r});const r="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(Ct,ae,p)=>{"use strict";p.d(ae,{b:()=>r});const r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(Ct,ae,p)=>{"use strict";p.d(ae,{W:()=>m});const m=(()=>{function D(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return D.prototype=Object.create(Error.prototype),D})()},5279:(Ct,ae,p)=>{"use strict";p.d(ae,{N:()=>m});const m=(()=>{function D(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return D.prototype=Object.create(Error.prototype),D})()},2782:(Ct,ae,p)=>{"use strict";function r(m){setTimeout(()=>{throw m},0)}p.d(ae,{z:()=>r})},5379:(Ct,ae,p)=>{"use strict";function r(m){return m}p.d(ae,{y:()=>r})},6688:(Ct,ae,p)=>{"use strict";p.d(ae,{k:()=>r});const r=Array.isArray||(m=>m&&"number"==typeof m.length)},8515:(Ct,ae,p)=>{"use strict";p.d(ae,{z:()=>r});const r=m=>m&&"number"==typeof m.length&&"function"!=typeof m},7043:(Ct,ae,p)=>{"use strict";function r(m){return"function"==typeof m}p.d(ae,{m:()=>r})},7830:(Ct,ae,p)=>{"use strict";function r(m){return null!==m&&"object"==typeof m}p.d(ae,{K:()=>r})},4715:(Ct,ae,p)=>{"use strict";p.d(ae,{b:()=>m});var r=p(2916);function m(D){return!!D&&(D instanceof r.y||"function"==typeof D.lift&&"function"==typeof D.subscribe)}},8955:(Ct,ae,p)=>{"use strict";function r(m){return!!m&&"function"!=typeof m.subscribe&&"function"==typeof m.then}p.d(ae,{t:()=>r})},2866:(Ct,ae,p)=>{"use strict";function r(m){return m&&"function"==typeof m.schedule}p.d(ae,{K:()=>r})},9249:(Ct,ae,p)=>{"use strict";p.d(ae,{s:()=>ee});var r=p(3650),m=p(2782),j=p(5430),V=p(3821),F=p(8515),q=p(8955),Q=p(7830);const ee=ne=>{if(ne&&"function"==typeof ne[V.L])return(ne=>Y=>{const ce=ne[V.L]();if("function"!=typeof ce.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return ce.subscribe(Y)})(ne);if((0,F.z)(ne))return(0,r.V)(ne);if((0,q.t)(ne))return(ne=>Y=>(ne.then(ce=>{Y.closed||(Y.next(ce),Y.complete())},ce=>Y.error(ce)).then(null,m.z),Y))(ne);if(ne&&"function"==typeof ne[j.hZ])return(ne=>Y=>{const ce=ne[j.hZ]();for(;;){let Ne;try{Ne=ce.next()}catch($e){return Y.error($e),Y}if(Ne.done){Y.complete();break}if(Y.next(Ne.value),Y.closed)break}return"function"==typeof ce.return&&Y.add(()=>{ce.return&&ce.return()}),Y})(ne);{const ce=`You provided ${(0,Q.K)(ne)?"an invalid object":`'${ne}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(ce)}}},3650:(Ct,ae,p)=>{"use strict";p.d(ae,{V:()=>r});const r=m=>D=>{for(let j=0,U=m.length;j<U&&!D.closed;j++)D.next(m[j]);D.complete()}},863:(Ct,ae,p)=>{var r={"./ion-accordion_2.entry.js":[9654,8592,9654],"./ion-action-sheet.entry.js":[3648,8592,3648],"./ion-alert.entry.js":[1118,8592,1118],"./ion-app_8.entry.js":[53,8592,3236],"./ion-avatar_3.entry.js":[4753,4753],"./ion-back-button.entry.js":[2073,8592,2073],"./ion-backdrop.entry.js":[8939,8939],"./ion-breadcrumb_2.entry.js":[7544,8592,7544],"./ion-button_2.entry.js":[8372,5652],"./ion-card_5.entry.js":[388,388],"./ion-checkbox.entry.js":[9922,9922],"./ion-chip.entry.js":[657,657],"./ion-col_3.entry.js":[9824,9824],"./ion-datetime-button.entry.js":[9230,7206,9230],"./ion-datetime_3.entry.js":[4959,7206,8592,4959],"./ion-fab_3.entry.js":[5836,8592,5836],"./ion-img.entry.js":[1033,1033],"./ion-infinite-scroll_2.entry.js":[8034,8592,5817],"./ion-input.entry.js":[1217,8592,1217],"./ion-item-option_3.entry.js":[2933,8592,4651],"./ion-item_8.entry.js":[4711,8592,4711],"./ion-loading.entry.js":[9434,9434],"./ion-menu_3.entry.js":[8136,8592,8136],"./ion-modal.entry.js":[7066,8592,2349],"./ion-nav_2.entry.js":[5349,8592,5349],"./ion-picker-column-internal.entry.js":[7602,8592,7602],"./ion-picker-internal.entry.js":[9016,9016],"./ion-popover.entry.js":[3804,8592,3804],"./ion-progress-bar.entry.js":[4174,4174],"./ion-radio_2.entry.js":[4432,4432],"./ion-range.entry.js":[3545,8592,1709],"./ion-refresher_2.entry.js":[3326,8592,2175],"./ion-reorder_2.entry.js":[3583,8592,1186],"./ion-ripple-effect.entry.js":[9958,9958],"./ion-route_4.entry.js":[4330,4330],"./ion-searchbar.entry.js":[8628,8592,8628],"./ion-segment_2.entry.js":[9325,8592,9325],"./ion-select_3.entry.js":[2773,2773],"./ion-slide_2.entry.js":[1650,1650],"./ion-spinner.entry.js":[4908,8592,4908],"./ion-split-pane.entry.js":[9536,9536],"./ion-tab-bar_2.entry.js":[438,8592,438],"./ion-tab_2.entry.js":[1536,8592,1536],"./ion-text.entry.js":[4376,4376],"./ion-textarea.entry.js":[6560,6560],"./ion-toast.entry.js":[6120,6120],"./ion-toggle.entry.js":[5168,8592,5168],"./ion-virtual-scroll.entry.js":[2289,2289]};function m(D){if(!p.o(r,D))return Promise.resolve().then(()=>{var V=new Error("Cannot find module '"+D+"'");throw V.code="MODULE_NOT_FOUND",V});var j=r[D],U=j[0];return Promise.all(j.slice(1).map(p.e)).then(()=>p(U))}m.keys=()=>Object.keys(r),m.id=863,Ct.exports=m},655:(Ct,ae,p)=>{"use strict";p.d(ae,{ZT:()=>m,gn:()=>U,mG:()=>ne});var r=function(N,pe){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ve,le){ve.__proto__=le}||function(ve,le){for(var he in le)Object.prototype.hasOwnProperty.call(le,he)&&(ve[he]=le[he])})(N,pe)};function m(N,pe){if("function"!=typeof pe&&null!==pe)throw new TypeError("Class extends value "+String(pe)+" is not a constructor or null");function ve(){this.constructor=N}r(N,pe),N.prototype=null===pe?Object.create(pe):(ve.prototype=pe.prototype,new ve)}function U(N,pe,ve,le){var be,he=arguments.length,Ae=he<3?pe:null===le?le=Object.getOwnPropertyDescriptor(pe,ve):le;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Ae=Reflect.decorate(N,pe,ve,le);else for(var Re=N.length-1;Re>=0;Re--)(be=N[Re])&&(Ae=(he<3?be(Ae):he>3?be(pe,ve,Ae):be(pe,ve))||Ae);return he>3&&Ae&&Object.defineProperty(pe,ve,Ae),Ae}function ne(N,pe,ve,le){return new(ve||(ve=Promise))(function(Ae,be){function Re(Ue){try{k(le.next(Ue))}catch(it){be(it)}}function H(Ue){try{k(le.throw(Ue))}catch(it){be(it)}}function k(Ue){Ue.done?Ae(Ue.value):function he(Ae){return Ae instanceof ve?Ae:new ve(function(be){be(Ae)})}(Ue.value).then(Re,H)}k((le=le.apply(N,pe||[])).next())})}},1777:(Ct,ae,p)=>{"use strict";p.d(ae,{LC:()=>m,X$:()=>j,ZE:()=>ue,ZN:()=>De,_j:()=>r,eR:()=>ee,jt:()=>U,k1:()=>me,l3:()=>D,oB:()=>F,vP:()=>P});class r{}class m{}const D="*";function j(ze,Pe){return{type:7,name:ze,definitions:Pe,options:{}}}function U(ze,Pe=null){return{type:4,styles:Pe,timings:ze}}function P(ze,Pe=null){return{type:2,steps:ze,options:Pe}}function F(ze){return{type:6,styles:ze,offset:null}}function ee(ze,Pe,je=null){return{type:1,expr:ze,animation:Pe,options:je}}function ye(ze){Promise.resolve(null).then(ze)}class De{constructor(Pe=0,je=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Pe+je}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Pe=>Pe()),this._onDoneFns=[])}onStart(Pe){this._onStartFns.push(Pe)}onDone(Pe){this._onDoneFns.push(Pe)}onDestroy(Pe){this._onDestroyFns.push(Pe)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ye(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Pe=>Pe()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Pe=>Pe()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(Pe){this._position=this.totalTime?Pe*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Pe){const je="start"==Pe?this._onStartFns:this._onDoneFns;je.forEach(Fe=>Fe()),je.length=0}}class ue{constructor(Pe){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Pe;let je=0,Fe=0,Te=0;const J=this.players.length;0==J?ye(()=>this._onFinish()):this.players.forEach(We=>{We.onDone(()=>{++je==J&&this._onFinish()}),We.onDestroy(()=>{++Fe==J&&this._onDestroy()}),We.onStart(()=>{++Te==J&&this._onStart()})}),this.totalTime=this.players.reduce((We,Be)=>Math.max(We,Be.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Pe=>Pe()),this._onDoneFns=[])}init(){this.players.forEach(Pe=>Pe.init())}onStart(Pe){this._onStartFns.push(Pe)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Pe=>Pe()),this._onStartFns=[])}onDone(Pe){this._onDoneFns.push(Pe)}onDestroy(Pe){this._onDestroyFns.push(Pe)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Pe=>Pe.play())}pause(){this.players.forEach(Pe=>Pe.pause())}restart(){this.players.forEach(Pe=>Pe.restart())}finish(){this._onFinish(),this.players.forEach(Pe=>Pe.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Pe=>Pe.destroy()),this._onDestroyFns.forEach(Pe=>Pe()),this._onDestroyFns=[])}reset(){this.players.forEach(Pe=>Pe.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Pe){const je=Pe*this.totalTime;this.players.forEach(Fe=>{const Te=Fe.totalTime?Math.min(1,je/Fe.totalTime):1;Fe.setPosition(Te)})}getPosition(){const Pe=this.players.reduce((je,Fe)=>null===je||Fe.totalTime>je.totalTime?Fe:je,null);return null!=Pe?Pe.getPosition():0}beforeDestroy(){this.players.forEach(Pe=>{Pe.beforeDestroy&&Pe.beforeDestroy()})}triggerCallback(Pe){const je="start"==Pe?this._onStartFns:this._onDoneFns;je.forEach(Fe=>Fe()),je.length=0}}const me="!"},925:(Ct,ae,p)=>{"use strict";p.d(ae,{Mq:()=>ce,_i:()=>Ne,t4:()=>j,ud:()=>U});var r=p(2096),m=p(9808);let D;try{D="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Pe){D=!1}let ne,Y,j=(()=>{class Pe{constructor(Fe){this._platformId=Fe,this.isBrowser=this._platformId?(0,m.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!D)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return Pe.\u0275fac=function(Fe){return new(Fe||Pe)(r.LFG(r.Lbi))},Pe.\u0275prov=r.Yz7({token:Pe,factory:Pe.\u0275fac,providedIn:"root"}),Pe})(),U=(()=>{class Pe{}return Pe.\u0275fac=function(Fe){return new(Fe||Pe)},Pe.\u0275mod=r.oAB({type:Pe}),Pe.\u0275inj=r.cJS({}),Pe})();function ce(){if(null==Y){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Y=!1,Y;if("scrollBehavior"in document.documentElement.style)Y=!0;else{const Pe=Element.prototype.scrollTo;Y=!!Pe&&!/\{\s*\[native code\]\s*\}/.test(Pe.toString())}}return Y}function Ne(){if("object"!=typeof document||!document)return 0;if(null==ne){const Pe=document.createElement("div"),je=Pe.style;Pe.dir="rtl",je.width="1px",je.overflow="auto",je.visibility="hidden",je.pointerEvents="none",je.position="absolute";const Fe=document.createElement("div"),Te=Fe.style;Te.width="2px",Te.height="1px",Pe.appendChild(Fe),document.body.appendChild(Pe),ne=0,0===Pe.scrollLeft&&(Pe.scrollLeft=1,ne=0===Pe.scrollLeft?1:2),Pe.remove()}return ne}},9808:(Ct,ae,p)=>{"use strict";p.d(ae,{Do:()=>ze,ED:()=>Ke,EM:()=>Kr,HT:()=>U,JF:()=>kr,K0:()=>P,Mx:()=>jn,NF:()=>vr,O5:()=>L,OU:()=>Lr,Ov:()=>$r,PC:()=>kt,RF:()=>pt,S$:()=>ye,V_:()=>Q,Ye:()=>Pe,b0:()=>me,bD:()=>Ii,ez:()=>Zr,lw:()=>F,mk:()=>rr,mr:()=>ue,n9:()=>fe,q:()=>D,sg:()=>Dn,tP:()=>qt,uU:()=>Sr,w_:()=>V});var r=p(2096);let m=null;function D(){return m}function U(A){m||(m=A)}class V{}const P=new r.OlP("DocumentToken");let F=(()=>{class A{historyGo(I){throw new Error("Not implemented")}}return A.\u0275fac=function(I){return new(I||A)},A.\u0275prov=r.Yz7({token:A,factory:function(){return function q(){return(0,r.LFG)(ee)}()},providedIn:"platform"}),A})();const Q=new r.OlP("Location Initialized");let ee=(()=>{class A extends F{constructor(I){super(),this._doc=I,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return D().getBaseHref(this._doc)}onPopState(I){const te=D().getGlobalEventTarget(this._doc,"window");return te.addEventListener("popstate",I,!1),()=>te.removeEventListener("popstate",I)}onHashChange(I){const te=D().getGlobalEventTarget(this._doc,"window");return te.addEventListener("hashchange",I,!1),()=>te.removeEventListener("hashchange",I)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(I){this.location.pathname=I}pushState(I,te,Xe){ne()?this._history.pushState(I,te,Xe):this.location.hash=Xe}replaceState(I,te,Xe){ne()?this._history.replaceState(I,te,Xe):this.location.hash=Xe}forward(){this._history.forward()}back(){this._history.back()}historyGo(I=0){this._history.go(I)}getState(){return this._history.state}}return A.\u0275fac=function(I){return new(I||A)(r.LFG(P))},A.\u0275prov=r.Yz7({token:A,factory:function(){return function Y(){return new ee((0,r.LFG)(P))}()},providedIn:"platform"}),A})();function ne(){return!!window.history.pushState}function ce(A,K){if(0==A.length)return K;if(0==K.length)return A;let I=0;return A.endsWith("/")&&I++,K.startsWith("/")&&I++,2==I?A+K.substring(1):1==I?A+K:A+"/"+K}function Ne(A){const K=A.match(/#|\?|$/),I=K&&K.index||A.length;return A.slice(0,I-("/"===A[I-1]?1:0))+A.slice(I)}function $e(A){return A&&"?"!==A[0]?"?"+A:A}let ye=(()=>{class A{historyGo(I){throw new Error("Not implemented")}}return A.\u0275fac=function(I){return new(I||A)},A.\u0275prov=r.Yz7({token:A,factory:function(){return function De(A){const K=(0,r.LFG)(P).location;return new me((0,r.LFG)(F),K&&K.origin||"")}()},providedIn:"root"}),A})();const ue=new r.OlP("appBaseHref");let me=(()=>{class A extends ye{constructor(I,te){if(super(),this._platformLocation=I,this._removeListenerFns=[],null==te&&(te=this._platformLocation.getBaseHrefFromDOM()),null==te)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=te}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(I){this._removeListenerFns.push(this._platformLocation.onPopState(I),this._platformLocation.onHashChange(I))}getBaseHref(){return this._baseHref}prepareExternalUrl(I){return ce(this._baseHref,I)}path(I=!1){const te=this._platformLocation.pathname+$e(this._platformLocation.search),Xe=this._platformLocation.hash;return Xe&&I?`${te}${Xe}`:te}pushState(I,te,Xe,wt){const Ot=this.prepareExternalUrl(Xe+$e(wt));this._platformLocation.pushState(I,te,Ot)}replaceState(I,te,Xe,wt){const Ot=this.prepareExternalUrl(Xe+$e(wt));this._platformLocation.replaceState(I,te,Ot)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(I=0){var te,Xe;null===(Xe=(te=this._platformLocation).historyGo)||void 0===Xe||Xe.call(te,I)}}return A.\u0275fac=function(I){return new(I||A)(r.LFG(F),r.LFG(ue,8))},A.\u0275prov=r.Yz7({token:A,factory:A.\u0275fac}),A})(),ze=(()=>{class A extends ye{constructor(I,te){super(),this._platformLocation=I,this._baseHref="",this._removeListenerFns=[],null!=te&&(this._baseHref=te)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(I){this._removeListenerFns.push(this._platformLocation.onPopState(I),this._platformLocation.onHashChange(I))}getBaseHref(){return this._baseHref}path(I=!1){let te=this._platformLocation.hash;return null==te&&(te="#"),te.length>0?te.substring(1):te}prepareExternalUrl(I){const te=ce(this._baseHref,I);return te.length>0?"#"+te:te}pushState(I,te,Xe,wt){let Ot=this.prepareExternalUrl(Xe+$e(wt));0==Ot.length&&(Ot=this._platformLocation.pathname),this._platformLocation.pushState(I,te,Ot)}replaceState(I,te,Xe,wt){let Ot=this.prepareExternalUrl(Xe+$e(wt));0==Ot.length&&(Ot=this._platformLocation.pathname),this._platformLocation.replaceState(I,te,Ot)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(I=0){var te,Xe;null===(Xe=(te=this._platformLocation).historyGo)||void 0===Xe||Xe.call(te,I)}}return A.\u0275fac=function(I){return new(I||A)(r.LFG(F),r.LFG(ue,8))},A.\u0275prov=r.Yz7({token:A,factory:A.\u0275fac}),A})(),Pe=(()=>{class A{constructor(I,te){this._subject=new r.vpe,this._urlChangeListeners=[],this._platformStrategy=I;const Xe=this._platformStrategy.getBaseHref();this._platformLocation=te,this._baseHref=Ne(Te(Xe)),this._platformStrategy.onPopState(wt=>{this._subject.emit({url:this.path(!0),pop:!0,state:wt.state,type:wt.type})})}path(I=!1){return this.normalize(this._platformStrategy.path(I))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(I,te=""){return this.path()==this.normalize(I+$e(te))}normalize(I){return A.stripTrailingSlash(function Fe(A,K){return A&&K.startsWith(A)?K.substring(A.length):K}(this._baseHref,Te(I)))}prepareExternalUrl(I){return I&&"/"!==I[0]&&(I="/"+I),this._platformStrategy.prepareExternalUrl(I)}go(I,te="",Xe=null){this._platformStrategy.pushState(Xe,"",I,te),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+$e(te)),Xe)}replaceState(I,te="",Xe=null){this._platformStrategy.replaceState(Xe,"",I,te),this._notifyUrlChangeListeners(this.prepareExternalUrl(I+$e(te)),Xe)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(I=0){var te,Xe;null===(Xe=(te=this._platformStrategy).historyGo)||void 0===Xe||Xe.call(te,I)}onUrlChange(I){this._urlChangeListeners.push(I),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(te=>{this._notifyUrlChangeListeners(te.url,te.state)}))}_notifyUrlChangeListeners(I="",te){this._urlChangeListeners.forEach(Xe=>Xe(I,te))}subscribe(I,te,Xe){return this._subject.subscribe({next:I,error:te,complete:Xe})}}return A.normalizeQueryParams=$e,A.joinWithSlash=ce,A.stripTrailingSlash=Ne,A.\u0275fac=function(I){return new(I||A)(r.LFG(ye),r.LFG(F))},A.\u0275prov=r.Yz7({token:A,factory:function(){return function je(){return new Pe((0,r.LFG)(ye),(0,r.LFG)(F))}()},providedIn:"root"}),A})();function Te(A){return A.replace(/\/index.html$/,"")}var we=(()=>((we=we||{})[we.Format=0]="Format",we[we.Standalone=1]="Standalone",we))(),re=(()=>((re=re||{})[re.Narrow=0]="Narrow",re[re.Abbreviated=1]="Abbreviated",re[re.Wide=2]="Wide",re[re.Short=3]="Short",re))(),z=(()=>((z=z||{})[z.Short=0]="Short",z[z.Medium=1]="Medium",z[z.Long=2]="Long",z[z.Full=3]="Full",z))(),N=(()=>((N=N||{})[N.Decimal=0]="Decimal",N[N.Group=1]="Group",N[N.List=2]="List",N[N.PercentSign=3]="PercentSign",N[N.PlusSign=4]="PlusSign",N[N.MinusSign=5]="MinusSign",N[N.Exponential=6]="Exponential",N[N.SuperscriptingExponent=7]="SuperscriptingExponent",N[N.PerMille=8]="PerMille",N[N.Infinity=9]="Infinity",N[N.NaN=10]="NaN",N[N.TimeSeparator=11]="TimeSeparator",N[N.CurrencyDecimal=12]="CurrencyDecimal",N[N.CurrencyGroup=13]="CurrencyGroup",N))();function k(A,K){return se((0,r.cg1)(A)[r.wAp.DateFormat],K)}function Ue(A,K){return se((0,r.cg1)(A)[r.wAp.TimeFormat],K)}function it(A,K){return se((0,r.cg1)(A)[r.wAp.DateTimeFormat],K)}function qe(A,K){const I=(0,r.cg1)(A),te=I[r.wAp.NumberSymbols][K];if(void 0===te){if(K===N.CurrencyDecimal)return I[r.wAp.NumberSymbols][N.Decimal];if(K===N.CurrencyGroup)return I[r.wAp.NumberSymbols][N.Group]}return te}function Bn(A){if(!A[r.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${A[r.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function se(A,K){for(let I=K;I>-1;I--)if(void 0!==A[I])return A[I];throw new Error("Locale data API: locale data undefined")}function Se(A){const[K,I]=A.split(":");return{hours:+K,minutes:+I}}const ke=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,oe={},ft=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var vt=(()=>((vt=vt||{})[vt.Short=0]="Short",vt[vt.ShortGMT=1]="ShortGMT",vt[vt.Long=2]="Long",vt[vt.Extended=3]="Extended",vt))(),gt=(()=>((gt=gt||{})[gt.FullYear=0]="FullYear",gt[gt.Month=1]="Month",gt[gt.Date=2]="Date",gt[gt.Hours=3]="Hours",gt[gt.Minutes=4]="Minutes",gt[gt.Seconds=5]="Seconds",gt[gt.FractionalSeconds=6]="FractionalSeconds",gt[gt.Day=7]="Day",gt))(),St=(()=>((St=St||{})[St.DayPeriods=0]="DayPeriods",St[St.Days=1]="Days",St[St.Months=2]="Months",St[St.Eras=3]="Eras",St))();function Jt(A,K,I,te){let Xe=function Ye(A){if(nt(A))return A;if("number"==typeof A&&!isNaN(A))return new Date(A);if("string"==typeof A){if(A=A.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(A)){const[Xe,wt=1,Ot=1]=A.split("-").map(a=>+a);return Ut(Xe,wt-1,Ot)}const I=parseFloat(A);if(!isNaN(A-I))return new Date(I);let te;if(te=A.match(ke))return function Ee(A){const K=new Date(0);let I=0,te=0;const Xe=A[8]?K.setUTCFullYear:K.setFullYear,wt=A[8]?K.setUTCHours:K.setHours;A[9]&&(I=Number(A[9]+A[10]),te=Number(A[9]+A[11])),Xe.call(K,Number(A[1]),Number(A[2])-1,Number(A[3]));const Ot=Number(A[4]||0)-I,a=Number(A[5]||0)-te,T=Number(A[6]||0),l=Math.floor(1e3*parseFloat("0."+(A[7]||0)));return wt.call(K,Ot,a,T,l),K}(te)}const K=new Date(A);if(!nt(K))throw new Error(`Unable to convert "${A}" into a date`);return K}(A);K=Xt(I,K)||K;let a,Ot=[];for(;K;){if(a=ft.exec(K),!a){Ot.push(K);break}{Ot=Ot.concat(a.slice(1));const w=Ot.pop();if(!w)break;K=w}}let T=Xe.getTimezoneOffset();te&&(T=On(te,T),Xe=function ot(A,K,I){const te=I?-1:1,Xe=A.getTimezoneOffset();return function zn(A,K){return(A=new Date(A.getTime())).setMinutes(A.getMinutes()+K),A}(A,te*(On(K,Xe)-Xe))}(Xe,te,!0));let l="";return Ot.forEach(w=>{const X=function Kn(A){if(Zn[A])return Zn[A];let K;switch(A){case"G":case"GG":case"GGG":K=yn(St.Eras,re.Abbreviated);break;case"GGGG":K=yn(St.Eras,re.Wide);break;case"GGGGG":K=yn(St.Eras,re.Narrow);break;case"y":K=Yt(gt.FullYear,1,0,!1,!0);break;case"yy":K=Yt(gt.FullYear,2,0,!0,!0);break;case"yyy":K=Yt(gt.FullYear,3,0,!1,!0);break;case"yyyy":K=Yt(gt.FullYear,4,0,!1,!0);break;case"Y":K=nr(1);break;case"YY":K=nr(2,!0);break;case"YYY":K=nr(3);break;case"YYYY":K=nr(4);break;case"M":case"L":K=Yt(gt.Month,1,1);break;case"MM":case"LL":K=Yt(gt.Month,2,1);break;case"MMM":K=yn(St.Months,re.Abbreviated);break;case"MMMM":K=yn(St.Months,re.Wide);break;case"MMMMM":K=yn(St.Months,re.Narrow);break;case"LLL":K=yn(St.Months,re.Abbreviated,we.Standalone);break;case"LLLL":K=yn(St.Months,re.Wide,we.Standalone);break;case"LLLLL":K=yn(St.Months,re.Narrow,we.Standalone);break;case"w":K=Un(1);break;case"ww":K=Un(2);break;case"W":K=Un(1,!0);break;case"d":K=Yt(gt.Date,1);break;case"dd":K=Yt(gt.Date,2);break;case"c":case"cc":K=Yt(gt.Day,1);break;case"ccc":K=yn(St.Days,re.Abbreviated,we.Standalone);break;case"cccc":K=yn(St.Days,re.Wide,we.Standalone);break;case"ccccc":K=yn(St.Days,re.Narrow,we.Standalone);break;case"cccccc":K=yn(St.Days,re.Short,we.Standalone);break;case"E":case"EE":case"EEE":K=yn(St.Days,re.Abbreviated);break;case"EEEE":K=yn(St.Days,re.Wide);break;case"EEEEE":K=yn(St.Days,re.Narrow);break;case"EEEEEE":K=yn(St.Days,re.Short);break;case"a":case"aa":case"aaa":K=yn(St.DayPeriods,re.Abbreviated);break;case"aaaa":K=yn(St.DayPeriods,re.Wide);break;case"aaaaa":K=yn(St.DayPeriods,re.Narrow);break;case"b":case"bb":case"bbb":K=yn(St.DayPeriods,re.Abbreviated,we.Standalone,!0);break;case"bbbb":K=yn(St.DayPeriods,re.Wide,we.Standalone,!0);break;case"bbbbb":K=yn(St.DayPeriods,re.Narrow,we.Standalone,!0);break;case"B":case"BB":case"BBB":K=yn(St.DayPeriods,re.Abbreviated,we.Format,!0);break;case"BBBB":K=yn(St.DayPeriods,re.Wide,we.Format,!0);break;case"BBBBB":K=yn(St.DayPeriods,re.Narrow,we.Format,!0);break;case"h":K=Yt(gt.Hours,1,-12);break;case"hh":K=Yt(gt.Hours,2,-12);break;case"H":K=Yt(gt.Hours,1);break;case"HH":K=Yt(gt.Hours,2);break;case"m":K=Yt(gt.Minutes,1);break;case"mm":K=Yt(gt.Minutes,2);break;case"s":K=Yt(gt.Seconds,1);break;case"ss":K=Yt(gt.Seconds,2);break;case"S":K=Yt(gt.FractionalSeconds,1);break;case"SS":K=Yt(gt.FractionalSeconds,2);break;case"SSS":K=Yt(gt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":K=un(vt.Short);break;case"ZZZZZ":K=un(vt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":K=un(vt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":K=un(vt.Long);break;default:return null}return Zn[A]=K,K}(w);l+=X?X(Xe,I,T):"''"===w?"'":w.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Ut(A,K,I){const te=new Date(0);return te.setFullYear(A,K,I),te.setHours(0,0,0),te}function Xt(A,K){const I=function ve(A){return(0,r.cg1)(A)[r.wAp.LocaleId]}(A);if(oe[I]=oe[I]||{},oe[I][K])return oe[I][K];let te="";switch(K){case"shortDate":te=k(A,z.Short);break;case"mediumDate":te=k(A,z.Medium);break;case"longDate":te=k(A,z.Long);break;case"fullDate":te=k(A,z.Full);break;case"shortTime":te=Ue(A,z.Short);break;case"mediumTime":te=Ue(A,z.Medium);break;case"longTime":te=Ue(A,z.Long);break;case"fullTime":te=Ue(A,z.Full);break;case"short":const Xe=Xt(A,"shortTime"),wt=Xt(A,"shortDate");te=Nn(it(A,z.Short),[Xe,wt]);break;case"medium":const Ot=Xt(A,"mediumTime"),a=Xt(A,"mediumDate");te=Nn(it(A,z.Medium),[Ot,a]);break;case"long":const T=Xt(A,"longTime"),l=Xt(A,"longDate");te=Nn(it(A,z.Long),[T,l]);break;case"full":const w=Xt(A,"fullTime"),X=Xt(A,"fullDate");te=Nn(it(A,z.Full),[w,X])}return te&&(oe[I][K]=te),te}function Nn(A,K){return K&&(A=A.replace(/\{([^}]+)}/g,function(I,te){return null!=K&&te in K?K[te]:I})),A}function mn(A,K,I="-",te,Xe){let wt="";(A<0||Xe&&A<=0)&&(Xe?A=1-A:(A=-A,wt=I));let Ot=String(A);for(;Ot.length<K;)Ot="0"+Ot;return te&&(Ot=Ot.substr(Ot.length-K)),wt+Ot}function Yt(A,K,I=0,te=!1,Xe=!1){return function(wt,Ot){let a=function In(A,K){switch(A){case gt.FullYear:return K.getFullYear();case gt.Month:return K.getMonth();case gt.Date:return K.getDate();case gt.Hours:return K.getHours();case gt.Minutes:return K.getMinutes();case gt.Seconds:return K.getSeconds();case gt.FractionalSeconds:return K.getMilliseconds();case gt.Day:return K.getDay();default:throw new Error(`Unknown DateType value "${A}".`)}}(A,wt);if((I>0||a>-I)&&(a+=I),A===gt.Hours)0===a&&-12===I&&(a=12);else if(A===gt.FractionalSeconds)return function bn(A,K){return mn(A,3).substr(0,K)}(a,K);const T=qe(Ot,N.MinusSign);return mn(a,K,T,te,Xe)}}function yn(A,K,I=we.Format,te=!1){return function(Xe,wt){return function gr(A,K,I,te,Xe,wt){switch(I){case St.Months:return function Ae(A,K,I){const te=(0,r.cg1)(A),wt=se([te[r.wAp.MonthsFormat],te[r.wAp.MonthsStandalone]],K);return se(wt,I)}(K,Xe,te)[A.getMonth()];case St.Days:return function he(A,K,I){const te=(0,r.cg1)(A),wt=se([te[r.wAp.DaysFormat],te[r.wAp.DaysStandalone]],K);return se(wt,I)}(K,Xe,te)[A.getDay()];case St.DayPeriods:const Ot=A.getHours(),a=A.getMinutes();if(wt){const l=function tt(A){const K=(0,r.cg1)(A);return Bn(K),(K[r.wAp.ExtraData][2]||[]).map(te=>"string"==typeof te?Se(te):[Se(te[0]),Se(te[1])])}(K),w=function xe(A,K,I){const te=(0,r.cg1)(A);Bn(te);const wt=se([te[r.wAp.ExtraData][0],te[r.wAp.ExtraData][1]],K)||[];return se(wt,I)||[]}(K,Xe,te),X=l.findIndex(ht=>{if(Array.isArray(ht)){const[Ft,Bt]=ht,S=Ot>=Ft.hours&&a>=Ft.minutes,E=Ot<Bt.hours||Ot===Bt.hours&&a<Bt.minutes;if(Ft.hours<Bt.hours){if(S&&E)return!0}else if(S||E)return!0}else if(ht.hours===Ot&&ht.minutes===a)return!0;return!1});if(-1!==X)return w[X]}return function le(A,K,I){const te=(0,r.cg1)(A),wt=se([te[r.wAp.DayPeriodsFormat],te[r.wAp.DayPeriodsStandalone]],K);return se(wt,I)}(K,Xe,te)[Ot<12?0:1];case St.Eras:return function be(A,K){return se((0,r.cg1)(A)[r.wAp.Eras],K)}(K,te)[A.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${I}`)}}(Xe,wt,A,K,I,te)}}function un(A){return function(K,I,te){const Xe=-1*te,wt=qe(I,N.MinusSign),Ot=Xe>0?Math.floor(Xe/60):Math.ceil(Xe/60);switch(A){case vt.Short:return(Xe>=0?"+":"")+mn(Ot,2,wt)+mn(Math.abs(Xe%60),2,wt);case vt.ShortGMT:return"GMT"+(Xe>=0?"+":"")+mn(Ot,1,wt);case vt.Long:return"GMT"+(Xe>=0?"+":"")+mn(Ot,2,wt)+":"+mn(Math.abs(Xe%60),2,wt);case vt.Extended:return 0===te?"Z":(Xe>=0?"+":"")+mn(Ot,2,wt)+":"+mn(Math.abs(Xe%60),2,wt);default:throw new Error(`Unknown zone width "${A}"`)}}}function Sn(A){return Ut(A.getFullYear(),A.getMonth(),A.getDate()+(4-A.getDay()))}function Un(A,K=!1){return function(I,te){let Xe;if(K){const wt=new Date(I.getFullYear(),I.getMonth(),1).getDay()-1,Ot=I.getDate();Xe=1+Math.floor((Ot+wt)/7)}else{const wt=Sn(I),Ot=function nn(A){const K=Ut(A,0,1).getDay();return Ut(A,0,1+(K<=4?4:11)-K)}(wt.getFullYear()),a=wt.getTime()-Ot.getTime();Xe=1+Math.round(a/6048e5)}return mn(Xe,A,qe(te,N.MinusSign))}}function nr(A,K=!1){return function(I,te){return mn(Sn(I).getFullYear(),A,qe(te,N.MinusSign),K)}}const Zn={};function On(A,K){A=A.replace(/:/g,"");const I=Date.parse("Jan 01, 1970 00:00:00 "+A)/6e4;return isNaN(I)?K:I}function nt(A){return A instanceof Date&&!isNaN(A.valueOf())}function jn(A,K){K=encodeURIComponent(K);for(const I of A.split(";")){const te=I.indexOf("="),[Xe,wt]=-1==te?[I,""]:[I.slice(0,te),I.slice(te+1)];if(Xe.trim()===K)return decodeURIComponent(wt)}return null}let rr=(()=>{class A{constructor(I,te,Xe,wt){this._iterableDiffers=I,this._keyValueDiffers=te,this._ngEl=Xe,this._renderer=wt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(I){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof I?I.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(I){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof I?I.split(/\s+/):I,this._rawClass&&((0,r.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const I=this._iterableDiffer.diff(this._rawClass);I&&this._applyIterableChanges(I)}else if(this._keyValueDiffer){const I=this._keyValueDiffer.diff(this._rawClass);I&&this._applyKeyValueChanges(I)}}_applyKeyValueChanges(I){I.forEachAddedItem(te=>this._toggleClass(te.key,te.currentValue)),I.forEachChangedItem(te=>this._toggleClass(te.key,te.currentValue)),I.forEachRemovedItem(te=>{te.previousValue&&this._toggleClass(te.key,!1)})}_applyIterableChanges(I){I.forEachAddedItem(te=>{if("string"!=typeof te.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,r.AaK)(te.item)}`);this._toggleClass(te.item,!0)}),I.forEachRemovedItem(te=>this._toggleClass(te.item,!1))}_applyClasses(I){I&&(Array.isArray(I)||I instanceof Set?I.forEach(te=>this._toggleClass(te,!0)):Object.keys(I).forEach(te=>this._toggleClass(te,!!I[te])))}_removeClasses(I){I&&(Array.isArray(I)||I instanceof Set?I.forEach(te=>this._toggleClass(te,!1)):Object.keys(I).forEach(te=>this._toggleClass(te,!1)))}_toggleClass(I,te){(I=I.trim())&&I.split(/\s+/g).forEach(Xe=>{te?this._renderer.addClass(this._ngEl.nativeElement,Xe):this._renderer.removeClass(this._ngEl.nativeElement,Xe)})}}return A.\u0275fac=function(I){return new(I||A)(r.Y36(r.ZZ4),r.Y36(r.aQg),r.Y36(r.SBq),r.Y36(r.Qsj))},A.\u0275dir=r.lG2({type:A,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),A})();class Gn{constructor(K,I,te,Xe){this.$implicit=K,this.ngForOf=I,this.index=te,this.count=Xe}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Dn=(()=>{class A{constructor(I,te,Xe){this._viewContainer=I,this._template=te,this._differs=Xe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(I){this._ngForOf=I,this._ngForOfDirty=!0}set ngForTrackBy(I){this._trackByFn=I}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(I){I&&(this._template=I)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const I=this._ngForOf;!this._differ&&I&&(this._differ=this._differs.find(I).create(this.ngForTrackBy))}if(this._differ){const I=this._differ.diff(this._ngForOf);I&&this._applyChanges(I)}}_applyChanges(I){const te=this._viewContainer;I.forEachOperation((Xe,wt,Ot)=>{if(null==Xe.previousIndex)te.createEmbeddedView(this._template,new Gn(Xe.item,this._ngForOf,-1,-1),null===Ot?void 0:Ot);else if(null==Ot)te.remove(null===wt?void 0:wt);else if(null!==wt){const a=te.get(wt);te.move(a,Ot),ir(a,Xe)}});for(let Xe=0,wt=te.length;Xe<wt;Xe++){const a=te.get(Xe).context;a.index=Xe,a.count=wt,a.ngForOf=this._ngForOf}I.forEachIdentityChange(Xe=>{ir(te.get(Xe.currentIndex),Xe)})}static ngTemplateContextGuard(I,te){return!0}}return A.\u0275fac=function(I){return new(I||A)(r.Y36(r.s_b),r.Y36(r.Rgc),r.Y36(r.ZZ4))},A.\u0275dir=r.lG2({type:A,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),A})();function ir(A,K){A.context.$implicit=K.item}let L=(()=>{class A{constructor(I,te){this._viewContainer=I,this._context=new Ce,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=te}set ngIf(I){this._context.$implicit=this._context.ngIf=I,this._updateView()}set ngIfThen(I){et("ngIfThen",I),this._thenTemplateRef=I,this._thenViewRef=null,this._updateView()}set ngIfElse(I){et("ngIfElse",I),this._elseTemplateRef=I,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(I,te){return!0}}return A.\u0275fac=function(I){return new(I||A)(r.Y36(r.s_b),r.Y36(r.Rgc))},A.\u0275dir=r.lG2({type:A,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),A})();class Ce{constructor(){this.$implicit=null,this.ngIf=null}}function et(A,K){if(K&&!K.createEmbeddedView)throw new Error(`${A} must be a TemplateRef, but received '${(0,r.AaK)(K)}'.`)}class rt{constructor(K,I){this._viewContainerRef=K,this._templateRef=I,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(K){K&&!this._created?this.create():!K&&this._created&&this.destroy()}}let pt=(()=>{class A{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(I){this._ngSwitch=I,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(I){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(I)}_matchCase(I){const te=I==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||te,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),te}_updateDefaultCases(I){if(this._defaultViews&&I!==this._defaultUsed){this._defaultUsed=I;for(let te=0;te<this._defaultViews.length;te++)this._defaultViews[te].enforceState(I)}}}return A.\u0275fac=function(I){return new(I||A)},A.\u0275dir=r.lG2({type:A,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),A})(),fe=(()=>{class A{constructor(I,te,Xe){this.ngSwitch=Xe,Xe._addCase(),this._view=new rt(I,te)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return A.\u0275fac=function(I){return new(I||A)(r.Y36(r.s_b),r.Y36(r.Rgc),r.Y36(pt,9))},A.\u0275dir=r.lG2({type:A,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),A})(),Ke=(()=>{class A{constructor(I,te,Xe){Xe._addDefault(new rt(I,te))}}return A.\u0275fac=function(I){return new(I||A)(r.Y36(r.s_b),r.Y36(r.Rgc),r.Y36(pt,9))},A.\u0275dir=r.lG2({type:A,selectors:[["","ngSwitchDefault",""]]}),A})(),kt=(()=>{class A{constructor(I,te,Xe){this._ngEl=I,this._differs=te,this._renderer=Xe,this._ngStyle=null,this._differ=null}set ngStyle(I){this._ngStyle=I,!this._differ&&I&&(this._differ=this._differs.find(I).create())}ngDoCheck(){if(this._differ){const I=this._differ.diff(this._ngStyle);I&&this._applyChanges(I)}}_setStyle(I,te){const[Xe,wt]=I.split(".");null!=(te=null!=te&&wt?`${te}${wt}`:te)?this._renderer.setStyle(this._ngEl.nativeElement,Xe,te):this._renderer.removeStyle(this._ngEl.nativeElement,Xe)}_applyChanges(I){I.forEachRemovedItem(te=>this._setStyle(te.key,null)),I.forEachAddedItem(te=>this._setStyle(te.key,te.currentValue)),I.forEachChangedItem(te=>this._setStyle(te.key,te.currentValue))}}return A.\u0275fac=function(I){return new(I||A)(r.Y36(r.SBq),r.Y36(r.aQg),r.Y36(r.Qsj))},A.\u0275dir=r.lG2({type:A,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),A})(),qt=(()=>{class A{constructor(I){this._viewContainerRef=I,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(I){if(I.ngTemplateOutlet){const te=this._viewContainerRef;this._viewRef&&te.remove(te.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?te.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&I.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return A.\u0275fac=function(I){return new(I||A)(r.Y36(r.s_b))},A.\u0275dir=r.lG2({type:A,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[r.TTD]}),A})();function hn(A,K){return new r.vHH(2100,"")}class er{createSubscription(K,I){return K.subscribe({next:I,error:te=>{throw te}})}dispose(K){K.unsubscribe()}onDestroy(K){K.unsubscribe()}}class qn{createSubscription(K,I){return K.then(I,te=>{throw te})}dispose(K){}onDestroy(K){}}const pr=new qn,ur=new er;let $r=(()=>{class A{constructor(I){this._ref=I,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(I){return this._obj?I!==this._obj?(this._dispose(),this.transform(I)):this._latestValue:(I&&this._subscribe(I),this._latestValue)}_subscribe(I){this._obj=I,this._strategy=this._selectStrategy(I),this._subscription=this._strategy.createSubscription(I,te=>this._updateLatestValue(I,te))}_selectStrategy(I){if((0,r.QGY)(I))return pr;if((0,r.F4k)(I))return ur;throw hn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(I,te){I===this._obj&&(this._latestValue=te,this._ref.markForCheck())}}return A.\u0275fac=function(I){return new(I||A)(r.Y36(r.sBO,16))},A.\u0275pipe=r.Yjl({name:"async",type:A,pure:!1}),A})();const Ai=new r.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Sr=(()=>{class A{constructor(I,te){this.locale=I,this.defaultTimezone=te}transform(I,te="mediumDate",Xe,wt){var Ot;if(null==I||""===I||I!=I)return null;try{return Jt(I,te,wt||this.locale,null!==(Ot=null!=Xe?Xe:this.defaultTimezone)&&void 0!==Ot?Ot:void 0)}catch(a){throw hn()}}}return A.\u0275fac=function(I){return new(I||A)(r.Y36(r.soG,16),r.Y36(Ai,24))},A.\u0275pipe=r.Yjl({name:"date",type:A,pure:!0}),A})(),Lr=(()=>{class A{transform(I,te,Xe){if(null==I)return null;if(!this.supports(I))throw hn();return I.slice(te,Xe)}supports(I){return"string"==typeof I||Array.isArray(I)}}return A.\u0275fac=function(I){return new(I||A)},A.\u0275pipe=r.Yjl({name:"slice",type:A,pure:!1}),A})(),Zr=(()=>{class A{}return A.\u0275fac=function(I){return new(I||A)},A.\u0275mod=r.oAB({type:A}),A.\u0275inj=r.cJS({}),A})();const Ii="browser";function vr(A){return A===Ii}let Kr=(()=>{class A{}return A.\u0275prov=(0,r.Yz7)({token:A,providedIn:"root",factory:()=>new ai((0,r.LFG)(P),window)}),A})();class ai{constructor(K,I){this.document=K,this.window=I,this.offset=()=>[0,0]}setOffset(K){this.offset=Array.isArray(K)?()=>K:K}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(K){this.supportsScrolling()&&this.window.scrollTo(K[0],K[1])}scrollToAnchor(K){if(!this.supportsScrolling())return;const I=function _r(A,K){const I=A.getElementById(K)||A.getElementsByName(K)[0];if(I)return I;if("function"==typeof A.createTreeWalker&&A.body&&(A.body.createShadowRoot||A.body.attachShadow)){const te=A.createTreeWalker(A.body,NodeFilter.SHOW_ELEMENT);let Xe=te.currentNode;for(;Xe;){const wt=Xe.shadowRoot;if(wt){const Ot=wt.getElementById(K)||wt.querySelector(`[name="${K}"]`);if(Ot)return Ot}Xe=te.nextNode()}}return null}(this.document,K);I&&(this.scrollToElement(I),I.focus())}setHistoryScrollRestoration(K){if(this.supportScrollRestoration()){const I=this.window.history;I&&I.scrollRestoration&&(I.scrollRestoration=K)}}scrollToElement(K){const I=K.getBoundingClientRect(),te=I.left+this.window.pageXOffset,Xe=I.top+this.window.pageYOffset,wt=this.offset();this.window.scrollTo(te-wt[0],Xe-wt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const K=ei(this.window.history)||ei(Object.getPrototypeOf(this.window.history));return!(!K||!K.writable&&!K.set)}catch(K){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(K){return!1}}}function ei(A){return Object.getOwnPropertyDescriptor(A,"scrollRestoration")}class kr{}},520:(Ct,ae,p)=>{"use strict";p.d(ae,{JF:()=>Se,TP:()=>ve,UA:()=>re,dt:()=>J,eN:()=>N});var r=p(9808),m=p(2096),D=p(1086),j=p(2916),U=p(1406),V=p(2198),P=p(4850);class F{}class q{}class Q{constructor(ke){this.normalizedNames=new Map,this.lazyUpdate=null,ke?this.lazyInit="string"==typeof ke?()=>{this.headers=new Map,ke.split("\n").forEach(oe=>{const ft=oe.indexOf(":");if(ft>0){const vt=oe.slice(0,ft),gt=vt.toLowerCase(),St=oe.slice(ft+1).trim();this.maybeSetNormalizedName(vt,gt),this.headers.has(gt)?this.headers.get(gt).push(St):this.headers.set(gt,[St])}})}:()=>{this.headers=new Map,Object.keys(ke).forEach(oe=>{let ft=ke[oe];const vt=oe.toLowerCase();"string"==typeof ft&&(ft=[ft]),ft.length>0&&(this.headers.set(vt,ft),this.maybeSetNormalizedName(oe,vt))})}:this.headers=new Map}has(ke){return this.init(),this.headers.has(ke.toLowerCase())}get(ke){this.init();const oe=this.headers.get(ke.toLowerCase());return oe&&oe.length>0?oe[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ke){return this.init(),this.headers.get(ke.toLowerCase())||null}append(ke,oe){return this.clone({name:ke,value:oe,op:"a"})}set(ke,oe){return this.clone({name:ke,value:oe,op:"s"})}delete(ke,oe){return this.clone({name:ke,value:oe,op:"d"})}maybeSetNormalizedName(ke,oe){this.normalizedNames.has(oe)||this.normalizedNames.set(oe,ke)}init(){this.lazyInit&&(this.lazyInit instanceof Q?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ke=>this.applyUpdate(ke)),this.lazyUpdate=null))}copyFrom(ke){ke.init(),Array.from(ke.headers.keys()).forEach(oe=>{this.headers.set(oe,ke.headers.get(oe)),this.normalizedNames.set(oe,ke.normalizedNames.get(oe))})}clone(ke){const oe=new Q;return oe.lazyInit=this.lazyInit&&this.lazyInit instanceof Q?this.lazyInit:this,oe.lazyUpdate=(this.lazyUpdate||[]).concat([ke]),oe}applyUpdate(ke){const oe=ke.name.toLowerCase();switch(ke.op){case"a":case"s":let ft=ke.value;if("string"==typeof ft&&(ft=[ft]),0===ft.length)return;this.maybeSetNormalizedName(ke.name,oe);const vt=("a"===ke.op?this.headers.get(oe):void 0)||[];vt.push(...ft),this.headers.set(oe,vt);break;case"d":const gt=ke.value;if(gt){let St=this.headers.get(oe);if(!St)return;St=St.filter(Jt=>-1===gt.indexOf(Jt)),0===St.length?(this.headers.delete(oe),this.normalizedNames.delete(oe)):this.headers.set(oe,St)}else this.headers.delete(oe),this.normalizedNames.delete(oe)}}forEach(ke){this.init(),Array.from(this.normalizedNames.keys()).forEach(oe=>ke(this.normalizedNames.get(oe),this.headers.get(oe)))}}class ee{encodeKey(ke){return Ne(ke)}encodeValue(ke){return Ne(ke)}decodeKey(ke){return decodeURIComponent(ke)}decodeValue(ke){return decodeURIComponent(ke)}}const Y=/%(\d[a-f0-9])/gi,ce={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Ne(Je){return encodeURIComponent(Je).replace(Y,(ke,oe)=>{var ft;return null!==(ft=ce[oe])&&void 0!==ft?ft:ke})}function $e(Je){return`${Je}`}class ye{constructor(ke={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ke.encoder||new ee,ke.fromString){if(ke.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ne(Je,ke){const oe=new Map;return Je.length>0&&Je.replace(/^\?/,"").split("&").forEach(vt=>{const gt=vt.indexOf("="),[St,Jt]=-1==gt?[ke.decodeKey(vt),""]:[ke.decodeKey(vt.slice(0,gt)),ke.decodeValue(vt.slice(gt+1))],Ut=oe.get(St)||[];Ut.push(Jt),oe.set(St,Ut)}),oe}(ke.fromString,this.encoder)}else ke.fromObject?(this.map=new Map,Object.keys(ke.fromObject).forEach(oe=>{const ft=ke.fromObject[oe];this.map.set(oe,Array.isArray(ft)?ft:[ft])})):this.map=null}has(ke){return this.init(),this.map.has(ke)}get(ke){this.init();const oe=this.map.get(ke);return oe?oe[0]:null}getAll(ke){return this.init(),this.map.get(ke)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ke,oe){return this.clone({param:ke,value:oe,op:"a"})}appendAll(ke){const oe=[];return Object.keys(ke).forEach(ft=>{const vt=ke[ft];Array.isArray(vt)?vt.forEach(gt=>{oe.push({param:ft,value:gt,op:"a"})}):oe.push({param:ft,value:vt,op:"a"})}),this.clone(oe)}set(ke,oe){return this.clone({param:ke,value:oe,op:"s"})}delete(ke,oe){return this.clone({param:ke,value:oe,op:"d"})}toString(){return this.init(),this.keys().map(ke=>{const oe=this.encoder.encodeKey(ke);return this.map.get(ke).map(ft=>oe+"="+this.encoder.encodeValue(ft)).join("&")}).filter(ke=>""!==ke).join("&")}clone(ke){const oe=new ye({encoder:this.encoder});return oe.cloneFrom=this.cloneFrom||this,oe.updates=(this.updates||[]).concat(ke),oe}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ke=>this.map.set(ke,this.cloneFrom.map.get(ke))),this.updates.forEach(ke=>{switch(ke.op){case"a":case"s":const oe=("a"===ke.op?this.map.get(ke.param):void 0)||[];oe.push($e(ke.value)),this.map.set(ke.param,oe);break;case"d":if(void 0===ke.value){this.map.delete(ke.param);break}{let ft=this.map.get(ke.param)||[];const vt=ft.indexOf($e(ke.value));-1!==vt&&ft.splice(vt,1),ft.length>0?this.map.set(ke.param,ft):this.map.delete(ke.param)}}}),this.cloneFrom=this.updates=null)}}class ue{constructor(){this.map=new Map}set(ke,oe){return this.map.set(ke,oe),this}get(ke){return this.map.has(ke)||this.map.set(ke,ke.defaultValue()),this.map.get(ke)}delete(ke){return this.map.delete(ke),this}has(ke){return this.map.has(ke)}keys(){return this.map.keys()}}function ze(Je){return"undefined"!=typeof ArrayBuffer&&Je instanceof ArrayBuffer}function Pe(Je){return"undefined"!=typeof Blob&&Je instanceof Blob}function je(Je){return"undefined"!=typeof FormData&&Je instanceof FormData}class Te{constructor(ke,oe,ft,vt){let gt;if(this.url=oe,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ke.toUpperCase(),function me(Je){switch(Je){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||vt?(this.body=void 0!==ft?ft:null,gt=vt):gt=ft,gt&&(this.reportProgress=!!gt.reportProgress,this.withCredentials=!!gt.withCredentials,gt.responseType&&(this.responseType=gt.responseType),gt.headers&&(this.headers=gt.headers),gt.context&&(this.context=gt.context),gt.params&&(this.params=gt.params)),this.headers||(this.headers=new Q),this.context||(this.context=new ue),this.params){const St=this.params.toString();if(0===St.length)this.urlWithParams=oe;else{const Jt=oe.indexOf("?");this.urlWithParams=oe+(-1===Jt?"?":Jt<oe.length-1?"&":"")+St}}else this.params=new ye,this.urlWithParams=oe}serializeBody(){return null===this.body?null:ze(this.body)||Pe(this.body)||je(this.body)||function Fe(Je){return"undefined"!=typeof URLSearchParams&&Je instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof ye?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||je(this.body)?null:Pe(this.body)?this.body.type||null:ze(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ye?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(ke={}){var oe;const ft=ke.method||this.method,vt=ke.url||this.url,gt=ke.responseType||this.responseType,St=void 0!==ke.body?ke.body:this.body,Jt=void 0!==ke.withCredentials?ke.withCredentials:this.withCredentials,Ut=void 0!==ke.reportProgress?ke.reportProgress:this.reportProgress;let Xt=ke.headers||this.headers,Nn=ke.params||this.params;const mn=null!==(oe=ke.context)&&void 0!==oe?oe:this.context;return void 0!==ke.setHeaders&&(Xt=Object.keys(ke.setHeaders).reduce((bn,Yt)=>bn.set(Yt,ke.setHeaders[Yt]),Xt)),ke.setParams&&(Nn=Object.keys(ke.setParams).reduce((bn,Yt)=>bn.set(Yt,ke.setParams[Yt]),Nn)),new Te(ft,vt,St,{params:Nn,headers:Xt,context:mn,reportProgress:Ut,responseType:gt,withCredentials:Jt})}}var J=(()=>((J=J||{})[J.Sent=0]="Sent",J[J.UploadProgress=1]="UploadProgress",J[J.ResponseHeader=2]="ResponseHeader",J[J.DownloadProgress=3]="DownloadProgress",J[J.Response=4]="Response",J[J.User=5]="User",J))();class We{constructor(ke,oe=200,ft="OK"){this.headers=ke.headers||new Q,this.status=void 0!==ke.status?ke.status:oe,this.statusText=ke.statusText||ft,this.url=ke.url||null,this.ok=this.status>=200&&this.status<300}}class Be extends We{constructor(ke={}){super(ke),this.type=J.ResponseHeader}clone(ke={}){return new Be({headers:ke.headers||this.headers,status:void 0!==ke.status?ke.status:this.status,statusText:ke.statusText||this.statusText,url:ke.url||this.url||void 0})}}class we extends We{constructor(ke={}){super(ke),this.type=J.Response,this.body=void 0!==ke.body?ke.body:null}clone(ke={}){return new we({body:void 0!==ke.body?ke.body:this.body,headers:ke.headers||this.headers,status:void 0!==ke.status?ke.status:this.status,statusText:ke.statusText||this.statusText,url:ke.url||this.url||void 0})}}class re extends We{constructor(ke){super(ke,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ke.url||"(unknown url)"}`:`Http failure response for ${ke.url||"(unknown url)"}: ${ke.status} ${ke.statusText}`,this.error=ke.error||null}}function z(Je,ke){return{body:ke,headers:Je.headers,context:Je.context,observe:Je.observe,params:Je.params,reportProgress:Je.reportProgress,responseType:Je.responseType,withCredentials:Je.withCredentials}}let N=(()=>{class Je{constructor(oe){this.handler=oe}request(oe,ft,vt={}){let gt;if(oe instanceof Te)gt=oe;else{let Ut,Xt;Ut=vt.headers instanceof Q?vt.headers:new Q(vt.headers),vt.params&&(Xt=vt.params instanceof ye?vt.params:new ye({fromObject:vt.params})),gt=new Te(oe,ft,void 0!==vt.body?vt.body:null,{headers:Ut,context:vt.context,params:Xt,reportProgress:vt.reportProgress,responseType:vt.responseType||"json",withCredentials:vt.withCredentials})}const St=(0,D.of)(gt).pipe((0,U.b)(Ut=>this.handler.handle(Ut)));if(oe instanceof Te||"events"===vt.observe)return St;const Jt=St.pipe((0,V.h)(Ut=>Ut instanceof we));switch(vt.observe||"body"){case"body":switch(gt.responseType){case"arraybuffer":return Jt.pipe((0,P.U)(Ut=>{if(null!==Ut.body&&!(Ut.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Ut.body}));case"blob":return Jt.pipe((0,P.U)(Ut=>{if(null!==Ut.body&&!(Ut.body instanceof Blob))throw new Error("Response is not a Blob.");return Ut.body}));case"text":return Jt.pipe((0,P.U)(Ut=>{if(null!==Ut.body&&"string"!=typeof Ut.body)throw new Error("Response is not a string.");return Ut.body}));default:return Jt.pipe((0,P.U)(Ut=>Ut.body))}case"response":return Jt;default:throw new Error(`Unreachable: unhandled observe type ${vt.observe}}`)}}delete(oe,ft={}){return this.request("DELETE",oe,ft)}get(oe,ft={}){return this.request("GET",oe,ft)}head(oe,ft={}){return this.request("HEAD",oe,ft)}jsonp(oe,ft){return this.request("JSONP",oe,{params:(new ye).append(ft,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(oe,ft={}){return this.request("OPTIONS",oe,ft)}patch(oe,ft,vt={}){return this.request("PATCH",oe,z(vt,ft))}post(oe,ft,vt={}){return this.request("POST",oe,z(vt,ft))}put(oe,ft,vt={}){return this.request("PUT",oe,z(vt,ft))}}return Je.\u0275fac=function(oe){return new(oe||Je)(m.LFG(F))},Je.\u0275prov=m.Yz7({token:Je,factory:Je.\u0275fac}),Je})();class pe{constructor(ke,oe){this.next=ke,this.interceptor=oe}handle(ke){return this.interceptor.intercept(ke,this.next)}}const ve=new m.OlP("HTTP_INTERCEPTORS");let le=(()=>{class Je{intercept(oe,ft){return ft.handle(oe)}}return Je.\u0275fac=function(oe){return new(oe||Je)},Je.\u0275prov=m.Yz7({token:Je,factory:Je.\u0275fac}),Je})();const qe=/^\)\]\}',?\n/;let Mt=(()=>{class Je{constructor(oe){this.xhrFactory=oe}handle(oe){if("JSONP"===oe.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new j.y(ft=>{const vt=this.xhrFactory.build();if(vt.open(oe.method,oe.urlWithParams),oe.withCredentials&&(vt.withCredentials=!0),oe.headers.forEach((Yt,In)=>vt.setRequestHeader(Yt,In.join(","))),oe.headers.has("Accept")||vt.setRequestHeader("Accept","application/json, text/plain, */*"),!oe.headers.has("Content-Type")){const Yt=oe.detectContentTypeHeader();null!==Yt&&vt.setRequestHeader("Content-Type",Yt)}if(oe.responseType){const Yt=oe.responseType.toLowerCase();vt.responseType="json"!==Yt?Yt:"text"}const gt=oe.serializeBody();let St=null;const Jt=()=>{if(null!==St)return St;const Yt=vt.statusText||"OK",In=new Q(vt.getAllResponseHeaders()),yn=function lt(Je){return"responseURL"in Je&&Je.responseURL?Je.responseURL:/^X-Request-URL:/m.test(Je.getAllResponseHeaders())?Je.getResponseHeader("X-Request-URL"):null}(vt)||oe.url;return St=new Be({headers:In,status:vt.status,statusText:Yt,url:yn}),St},Ut=()=>{let{headers:Yt,status:In,statusText:yn,url:gr}=Jt(),un=null;204!==In&&(un=void 0===vt.response?vt.responseText:vt.response),0===In&&(In=un?200:0);let lr=In>=200&&In<300;if("json"===oe.responseType&&"string"==typeof un){const yr=un;un=un.replace(qe,"");try{un=""!==un?JSON.parse(un):null}catch(nn){un=yr,lr&&(lr=!1,un={error:nn,text:un})}}lr?(ft.next(new we({body:un,headers:Yt,status:In,statusText:yn,url:gr||void 0})),ft.complete()):ft.error(new re({error:un,headers:Yt,status:In,statusText:yn,url:gr||void 0}))},Xt=Yt=>{const{url:In}=Jt(),yn=new re({error:Yt,status:vt.status||0,statusText:vt.statusText||"Unknown Error",url:In||void 0});ft.error(yn)};let Nn=!1;const mn=Yt=>{Nn||(ft.next(Jt()),Nn=!0);let In={type:J.DownloadProgress,loaded:Yt.loaded};Yt.lengthComputable&&(In.total=Yt.total),"text"===oe.responseType&&!!vt.responseText&&(In.partialText=vt.responseText),ft.next(In)},bn=Yt=>{let In={type:J.UploadProgress,loaded:Yt.loaded};Yt.lengthComputable&&(In.total=Yt.total),ft.next(In)};return vt.addEventListener("load",Ut),vt.addEventListener("error",Xt),vt.addEventListener("timeout",Xt),vt.addEventListener("abort",Xt),oe.reportProgress&&(vt.addEventListener("progress",mn),null!==gt&&vt.upload&&vt.upload.addEventListener("progress",bn)),vt.send(gt),ft.next({type:J.Sent}),()=>{vt.removeEventListener("error",Xt),vt.removeEventListener("abort",Xt),vt.removeEventListener("load",Ut),vt.removeEventListener("timeout",Xt),oe.reportProgress&&(vt.removeEventListener("progress",mn),null!==gt&&vt.upload&&vt.upload.removeEventListener("progress",bn)),vt.readyState!==vt.DONE&&vt.abort()}})}}return Je.\u0275fac=function(oe){return new(oe||Je)(m.LFG(r.JF))},Je.\u0275prov=m.Yz7({token:Je,factory:Je.\u0275fac}),Je})();const Vt=new m.OlP("XSRF_COOKIE_NAME"),Zt=new m.OlP("XSRF_HEADER_NAME");class Nt{}let wn=(()=>{class Je{constructor(oe,ft,vt){this.doc=oe,this.platform=ft,this.cookieName=vt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const oe=this.doc.cookie||"";return oe!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,r.Mx)(oe,this.cookieName),this.lastCookieString=oe),this.lastToken}}return Je.\u0275fac=function(oe){return new(oe||Je)(m.LFG(r.K0),m.LFG(m.Lbi),m.LFG(Vt))},Je.\u0275prov=m.Yz7({token:Je,factory:Je.\u0275fac}),Je})(),Bn=(()=>{class Je{constructor(oe,ft){this.tokenService=oe,this.headerName=ft}intercept(oe,ft){const vt=oe.url.toLowerCase();if("GET"===oe.method||"HEAD"===oe.method||vt.startsWith("http://")||vt.startsWith("https://"))return ft.handle(oe);const gt=this.tokenService.getToken();return null!==gt&&!oe.headers.has(this.headerName)&&(oe=oe.clone({headers:oe.headers.set(this.headerName,gt)})),ft.handle(oe)}}return Je.\u0275fac=function(oe){return new(oe||Je)(m.LFG(Nt),m.LFG(Zt))},Je.\u0275prov=m.Yz7({token:Je,factory:Je.\u0275fac}),Je})(),tt=(()=>{class Je{constructor(oe,ft){this.backend=oe,this.injector=ft,this.chain=null}handle(oe){if(null===this.chain){const ft=this.injector.get(ve,[]);this.chain=ft.reduceRight((vt,gt)=>new pe(vt,gt),this.backend)}return this.chain.handle(oe)}}return Je.\u0275fac=function(oe){return new(oe||Je)(m.LFG(q),m.LFG(m.zs3))},Je.\u0275prov=m.Yz7({token:Je,factory:Je.\u0275fac}),Je})(),se=(()=>{class Je{static disable(){return{ngModule:Je,providers:[{provide:Bn,useClass:le}]}}static withOptions(oe={}){return{ngModule:Je,providers:[oe.cookieName?{provide:Vt,useValue:oe.cookieName}:[],oe.headerName?{provide:Zt,useValue:oe.headerName}:[]]}}}return Je.\u0275fac=function(oe){return new(oe||Je)},Je.\u0275mod=m.oAB({type:Je}),Je.\u0275inj=m.cJS({providers:[Bn,{provide:ve,useExisting:Bn,multi:!0},{provide:Nt,useClass:wn},{provide:Vt,useValue:"XSRF-TOKEN"},{provide:Zt,useValue:"X-XSRF-TOKEN"}]}),Je})(),Se=(()=>{class Je{}return Je.\u0275fac=function(oe){return new(oe||Je)},Je.\u0275mod=m.oAB({type:Je}),Je.\u0275inj=m.cJS({providers:[N,{provide:F,useClass:tt},Mt,{provide:q,useExisting:Mt}],imports:[[se.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Je})()},2096:(Ct,ae,p)=>{"use strict";p.d(ae,{deG:()=>rl,tb:()=>vg,AFp:()=>gg,ip1:()=>pg,CZH:()=>Jc,hGG:()=>WE,z2F:()=>au,sBO:()=>xE,Sil:()=>lE,_Vd:()=>Ka,EJc:()=>sE,SBq:()=>aa,qLn:()=>Aa,vpe:()=>eo,tBr:()=>va,XFs:()=>oe,OlP:()=>dr,zs3:()=>qi,ZZ4:()=>hu,aQg:()=>pu,soG:()=>tu,YKP:()=>wp,h0i:()=>Ms,PXZ:()=>EE,R0b:()=>Bi,FiY:()=>Hs,Lbi:()=>rE,g9A:()=>yg,Qsj:()=>i_,FYo:()=>bp,JOm:()=>Yi,q3G:()=>Dr,tp0:()=>js,Rgc:()=>da,dDg:()=>Eg,GfV:()=>_p,s_b:()=>qa,ifc:()=>bn,eFA:()=>Dg,G48:()=>TE,Gpc:()=>ue,f3M:()=>Ou,X6Q:()=>IE,_c5:()=>GE,VLi:()=>vE,c2e:()=>iE,zSh:()=>rc,wAp:()=>Cn,vHH:()=>je,EiD:()=>vd,mCW:()=>Ys,qzn:()=>os,JVY:()=>jm,pB0:()=>Wm,eBb:()=>zm,L6k:()=>Um,LAX:()=>Gm,cg1:()=>xc,kL8:()=>Uh,yhl:()=>ud,dqk:()=>un,sIi:()=>Js,CqO:()=>Xf,QGY:()=>_c,F4k:()=>Qf,RDi:()=>Xe,AaK:()=>$e,z3N:()=>ao,qOj:()=>lc,TTD:()=>Cr,_Bn:()=>mp,xp6:()=>Id,uIk:()=>dc,Tol:()=>vh,ekj:()=>Sc,Suo:()=>Wp,Xpm:()=>Ye,lG2:()=>ge,Yz7:()=>Nt,cJS:()=>Bn,oAB:()=>sn,Yjl:()=>$,Y36:()=>ta,_UZ:()=>vc,GkF:()=>bc,BQk:()=>$a,ynx:()=>Ba,qZA:()=>ka,TgZ:()=>Na,EpF:()=>Kf,n5z:()=>Qe,LFG:()=>Ur,$8M:()=>Qt,$Z:()=>Yf,NdJ:()=>Ec,CRH:()=>Yp,oxw:()=>eh,ALo:()=>Lp,lcZ:()=>Np,xi3:()=>kp,Dn7:()=>Bp,Hsn:()=>nh,F$t:()=>th,Q6J:()=>mc,s9C:()=>wc,MGl:()=>Va,DdM:()=>Mp,VKq:()=>Ip,WLB:()=>Tp,iGM:()=>zp,MAs:()=>Nf,evT:()=>Ed,Jf7:()=>_d,CHM:()=>ji,oJD:()=>bd,uOi:()=>Ol,LSH:()=>Pl,kYT:()=>Fn,Akn:()=>Li,Udp:()=>Dc,YNc:()=>Lf,W1O:()=>qp,_uU:()=>Sh,Oqu:()=>Mc,hij:()=>ja,AsE:()=>Ic,lnq:()=>Tc,Gf:()=>Gp});var r=p(8929),m=p(2654),D=p(2916),j=p(2866),U=p(9146),V=p(3009),F=p(1762);class Q{constructor(t,n){this.subjectFactory=t,this.selector=n}call(t,n){const{selector:i}=this,o=this.subjectFactory(),s=i(o).subscribe(t);return s.add(n.subscribe(o)),s}}var ee=p(4327);function ne(){return new r.xQ}function ce(e){for(let t in e)if(e[t]===ce)return t;throw Error("Could not find renamed property on target object.")}function Ne(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function $e(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map($e).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function ye(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const De=ce({__forward_ref__:ce});function ue(e){return e.__forward_ref__=ue,e.toString=function(){return $e(this())},e}function me(e){return ze(e)?e():e}function ze(e){return"function"==typeof e&&e.hasOwnProperty(De)&&e.__forward_ref__===ue}class je extends Error{constructor(t,n){super(function Fe(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function Te(e){return"string"==typeof e?e:null==e?"":String(e)}function J(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Te(e)}function re(e,t){const n=t?` in ${t}`:"";throw new je(-201,`No provider for ${J(e)} found${n}`)}function qe(e,t){null==e&&function lt(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}(t,e,null,"!=")}function Nt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Bn(e){return{providers:e.providers||[],imports:e.imports||[]}}function tt(e){return xe(e,_e)||xe(e,Je)}function xe(e,t){return e.hasOwnProperty(t)?e[t]:null}function Se(e){return e&&(e.hasOwnProperty(at)||e.hasOwnProperty(ke))?e[at]:null}const _e=ce({\u0275prov:ce}),at=ce({\u0275inj:ce}),Je=ce({ngInjectableDef:ce}),ke=ce({ngInjectorDef:ce});var oe=(()=>((oe=oe||{})[oe.Default=0]="Default",oe[oe.Host=1]="Host",oe[oe.Self=2]="Self",oe[oe.SkipSelf=4]="SkipSelf",oe[oe.Optional=8]="Optional",oe))();let ft;function gt(e){const t=ft;return ft=e,t}function St(e,t,n){const i=tt(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&oe.Optional?null:void 0!==t?t:void re($e(e),"Injector")}function Ut(e){return{toString:e}.toString()}var Xt=(()=>((Xt=Xt||{})[Xt.OnPush=0]="OnPush",Xt[Xt.Default=1]="Default",Xt))(),bn=(()=>{return(e=bn||(bn={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",bn;var e})();const Yt="undefined"!=typeof globalThis&&globalThis,In="undefined"!=typeof window&&window,yn="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,un=Yt||"undefined"!=typeof global&&global||In||yn,nn={},Sn=[],Un=ce({\u0275cmp:ce}),nr=ce({\u0275dir:ce}),Zn=ce({\u0275pipe:ce}),Kn=ce({\u0275mod:ce}),On=ce({\u0275fac:ce}),zn=ce({__NG_ELEMENT_ID__:ce});let ot=0;function Ye(e){return Ut(()=>{const n={},i={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Xt.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Sn,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||bn.Emulated,id:"c",styles:e.styles||Sn,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,s=e.features,d=e.pipes;return i.id+=ot++,i.inputs=Le(e.inputs,n),i.outputs=Le(e.outputs),s&&s.forEach(g=>g(i)),i.directiveDefs=o?()=>("function"==typeof o?o():o).map(nt):null,i.pipeDefs=d?()=>("function"==typeof d?d():d).map(Et):null,i})}function nt(e){return de(e)||function Ie(e){return e[nr]||null}(e)}function Et(e){return function Ve(e){return e[Zn]||null}(e)}const Ht={};function sn(e){return Ut(()=>{const t={type:e.type,bootstrap:e.bootstrap||Sn,declarations:e.declarations||Sn,imports:e.imports||Sn,exports:e.exports||Sn,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(Ht[e.id]=e.type),t})}function Fn(e,t){return Ut(()=>{const n=dt(e,!0);n.declarations=t.declarations||Sn,n.imports=t.imports||Sn,n.exports=t.exports||Sn})}function Le(e,t){if(null==e)return nn;const n={};for(const i in e)if(e.hasOwnProperty(i)){let o=e[i],s=o;Array.isArray(o)&&(s=o[1],o=o[0]),n[o]=i,t&&(t[o]=s)}return n}const ge=Ye;function $(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function de(e){return e[Un]||null}function dt(e,t){const n=e[Kn]||null;if(!n&&!0===t)throw new Error(`Type ${$e(e)} does not have '\u0275mod' property.`);return n}const L=11;function dn(e){return Array.isArray(e)&&"object"==typeof e[1]}function hn(e){return Array.isArray(e)&&!0===e[1]}function er(e){return 0!=(8&e.flags)}function qn(e){return 2==(2&e.flags)}function pr(e){return 1==(1&e.flags)}function ur(e){return null!==e.template}function $r(e){return 0!=(512&e[2])}function Nr(e,t){return e.hasOwnProperty(On)?e[On]:null}class Ti{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function Cr(){return vr}function vr(e){return e.type.prototype.ngOnChanges&&(e.setInput=Pr),Vi}function Vi(){const e=Jr(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===nn)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Pr(e,t,n,i){const o=Jr(e)||function Kr(e,t){return e[pi]=t}(e,{previous:nn,current:null}),s=o.current||(o.current={}),d=o.previous,g=this.declaredInputs[n],v=d[g];s[g]=new Ti(v&&v.currentValue,t,d===nn),e[i]=t}Cr.ngInherit=!0;const pi="__ngSimpleChanges__";function Jr(e){return e[pi]||null}const A="math";let te;function Xe(e){te=e}function wt(){return void 0!==te?te:"undefined"!=typeof document?document:void 0}function a(e){return!!e.listen}const T={createRenderer:(e,t)=>wt()};function w(e){for(;Array.isArray(e);)e=e[0];return e}function Ft(e,t){return w(t[e])}function Bt(e,t){return w(t[e.index])}function E(e,t){return e.data[t]}function b(e,t){return e[t]}function W(e,t){const n=t[e];return dn(n)?n:n[0]}function bt(e){return 4==(4&e[2])}function Wt(e){return 128==(128&e[2])}function fr(e,t){return null==t?null:e[t]}function Br(e){e[18]=0}function xi(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const An={lFrame:qo(null),bindingsEnabled:!0};function Hi(){return An.bindingsEnabled}function Tt(){return An.lFrame.lView}function Vn(){return An.lFrame.tView}function ji(e){return An.lFrame.contextLView=e,e[8]}function mr(){let e=fo();for(;null!==e&&64===e.type;)e=e.parent;return e}function fo(){return An.lFrame.currentTNode}function Hr(e,t){const n=An.lFrame;n.currentTNode=e,n.isParent=t}function Ui(){return An.lFrame.isParent}function To(){An.lFrame.isParent=!1}function Ar(){const e=An.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function br(){return An.lFrame.bindingIndex}function zi(){return An.lFrame.bindingIndex++}function yi(e){const t=An.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Yo(e,t){const n=An.lFrame;n.bindingIndex=n.bindingRootIndex=e,Po(t)}function Po(e){An.lFrame.currentDirectiveIndex=e}function go(){return An.lFrame.currentQueryIndex}function mo(e){An.lFrame.currentQueryIndex=e}function Ko(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Qo(e,t,n){if(n&oe.SkipSelf){let o=t,s=e;for(;!(o=o.parent,null!==o||n&oe.Host||(o=Ko(s),null===o||(s=s[15],10&o.type))););if(null===o)return!1;t=o,e=s}const i=An.lFrame=Xo();return i.currentTNode=t,i.lView=e,!0}function yo(e){const t=Xo(),n=e[1];An.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Xo(){const e=An.lFrame,t=null===e?null:e.child;return null===t?qo(e):t}function qo(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function vo(){const e=An.lFrame;return An.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const bo=vo;function Gi(){const e=vo();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Mr(){return An.lFrame.selectedIndex}function wi(e){An.lFrame.selectedIndex=e}function hr(){const e=An.lFrame;return E(e.tView,e.selectedIndex)}function Eo(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n<i;n++){const s=e.data[n].type.prototype,{ngAfterContentInit:d,ngAfterContentChecked:g,ngAfterViewInit:v,ngAfterViewChecked:R,ngOnDestroy:G}=s;d&&(e.contentHooks||(e.contentHooks=[])).push(-n,d),g&&((e.contentHooks||(e.contentHooks=[])).push(n,g),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,g)),v&&(e.viewHooks||(e.viewHooks=[])).push(-n,v),R&&((e.viewHooks||(e.viewHooks=[])).push(n,R),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,R)),null!=G&&(e.destroyHooks||(e.destroyHooks=[])).push(n,G)}}function Co(e,t,n){ts(e,t,3,n)}function ro(e,t,n,i){(3&e[2])===n&&ts(e,t,n,i)}function wo(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function ts(e,t,n,i){const s=null!=i?i:-1,d=t.length-1;let g=0;for(let v=void 0!==i?65535&e[18]:0;v<d;v++)if("number"==typeof t[v+1]){if(g=t[v],null!=i&&g>=i)break}else t[v]<0&&(e[18]+=65536),(g<s||-1==s)&&(Fs(e,n,t,v),e[18]=(4294901760&e[18])+v+2),v++}function Fs(e,t,n,i){const o=n[i]<0,s=n[i+1],g=e[o?-n[i]:n[i]];if(o){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{s.call(g)}finally{}}}else try{s.call(g)}finally{}}const M=-1;class c{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function zt(e,t,n){const i=a(e);let o=0;for(;o<n.length;){const s=n[o];if("number"==typeof s){if(0!==s)break;o++;const d=n[o++],g=n[o++],v=n[o++];i?e.setAttribute(t,g,v,d):t.setAttributeNS(d,g,v)}else{const d=s,g=n[++o];En(d)?i&&e.setProperty(t,d,g):i?e.setAttribute(t,d,g):t.setAttribute(d,g),o++}}return o}function an(e){return 3===e||4===e||6===e}function En(e){return 64===e.charCodeAt(0)}function xn(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let i=0;i<t.length;i++){const o=t[i];"number"==typeof o?n=o:0===n||pn(e,n,o,null,-1===n||2===n?t[++i]:null)}}return e}function pn(e,t,n,i,o){let s=0,d=e.length;if(-1===t)d=-1;else for(;s<e.length;){const g=e[s++];if("number"==typeof g){if(g===t){d=-1;break}if(g>t){d=s-1;break}}}for(;s<e.length;){const g=e[s];if("number"==typeof g)break;if(g===n){if(null===i)return void(null!==o&&(e[s+1]=o));if(i===e[s+1])return void(e[s+2]=o)}s++,null!==i&&s++,null!==o&&s++}-1!==d&&(e.splice(d,0,t),s=d+1),e.splice(s++,0,n),null!==i&&e.splice(s++,0,i),null!==o&&e.splice(s++,0,o)}function Mn(e){return e!==M}function Hn(e){return 32767&e}function kn(e,t){let n=function or(e){return e>>16}(e),i=t;for(;n>0;)i=i[15],n--;return i}let Wn=!0;function sr(e){const t=Wn;return Wn=e,t}let vi=0;function jr(e,t){const n=Pi(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,oo(i.data,e),oo(t,null),oo(i.blueprint,null));const o=li(e,t),s=e.injectorIndex;if(Mn(o)){const d=Hn(o),g=kn(o,t),v=g[1].data;for(let R=0;R<8;R++)t[s+R]=g[d+R]|v[d+R]}return t[s+8]=o,s}function oo(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Pi(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function li(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,o=t;for(;null!==o;){const s=o[1],d=s.type;if(i=2===d?s.declTNode:1===d?o[6]:null,null===i)return M;if(n++,o=o[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return M}function so(e,t,n){!function bi(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(zn)&&(i=n[zn]),null==i&&(i=n[zn]=vi++);const o=255&i;t.data[e+(o>>5)]|=1<<o}(e,t,n)}function rn(e,t,n){if(n&oe.Optional)return e;re(t,"NodeInjector")}function gn(e,t,n,i){if(n&oe.Optional&&void 0===i&&(i=null),0==(n&(oe.Self|oe.Host))){const o=e[9],s=gt(void 0);try{return o?o.get(t,i,n&oe.Optional):St(t,i,n&oe.Optional)}finally{gt(s)}}return rn(i,t,n)}function _n(e,t,n,i=oe.Default,o){if(null!==e){const s=function C(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(zn)?e[zn]:void 0;return"number"==typeof t?t>=0?255&t:wr:t}(n);if("function"==typeof s){if(!Qo(t,e,i))return i&oe.Host?rn(o,n,i):gn(t,n,i,o);try{const d=s(i);if(null!=d||i&oe.Optional)return d;re(n)}finally{bo()}}else if("number"==typeof s){let d=null,g=Pi(e,t),v=M,R=i&oe.Host?t[16][6]:null;for((-1===g||i&oe.SkipSelf)&&(v=-1===g?li(e,t):t[g+8],v!==M&&Z(i,!1)?(d=t[1],g=Hn(v),t=kn(v,t)):g=-1);-1!==g;){const G=t[1];if(x(s,g,G.data)){const Me=y(g,t,n,d,i,R);if(Me!==Yn)return Me}v=t[g+8],v!==M&&Z(i,t[1].data[g+8]===R)&&x(s,g,t)?(d=G,g=Hn(v),t=kn(v,t)):g=-1}}}return gn(t,n,i,o)}const Yn={};function wr(){return new Oe(mr(),Tt())}function y(e,t,n,i,o,s){const d=t[1],g=d.data[e+8],G=h(g,d,n,null==i?qn(g)&&Wn:i!=d&&0!=(3&g.type),o&oe.Host&&s===g);return null!==G?f(t,d,G,g):Yn}function h(e,t,n,i,o){const s=e.providerIndexes,d=t.data,g=1048575&s,v=e.directiveStart,G=s>>20,Ze=o?g+G:e.directiveEnd;for(let ut=i?g:g+G;ut<Ze;ut++){const It=d[ut];if(ut<v&&n===It||ut>=v&&It.type===n)return ut}if(o){const ut=d[v];if(ut&&ur(ut)&&ut.type===n)return v}return null}function f(e,t,n,i){let o=e[n];const s=t.data;if(function u(e){return e instanceof c}(o)){const d=o;d.resolving&&function We(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new je(-200,`Circular dependency in DI detected for ${e}${n}`)}(J(s[n]));const g=sr(d.canSeeViewProviders);d.resolving=!0;const v=d.injectImpl?gt(d.injectImpl):null;Qo(e,i,oe.Default);try{o=e[n]=d.factory(void 0,s,e,i),t.firstCreatePass&&n>=i.directiveStart&&function Fo(e,t,n){const{ngOnChanges:i,ngOnInit:o,ngDoCheck:s}=t.type.prototype;if(i){const d=vr(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,d),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,d)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{null!==v&&gt(v),sr(g),d.resolving=!1,bo()}}return o}function x(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Z(e,t){return!(e&oe.Self||e&oe.Host&&t)}class Oe{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,i){return _n(this._tNode,this._lView,t,i,n)}}function Qe(e){return Ut(()=>{const t=e.prototype.constructor,n=t[On]||Dt(t),i=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==i;){const s=o[On]||Dt(o);if(s&&s!==n)return s;o=Object.getPrototypeOf(o)}return s=>new s})}function Dt(e){return ze(e)?()=>{const t=Dt(me(e));return t&&t()}:Nr(e)}function Qt(e){return function Do(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let o=0;for(;o<i;){const s=n[o];if(an(s))break;if(0===s)o+=2;else if("number"==typeof s)for(o++;o<i&&"string"==typeof n[o];)o++;else{if(s===t)return n[o+1];o+=2}}}return null}(mr(),e)}const cn="__parameters__";function ui(e,t,n){return Ut(()=>{const i=function ci(e){return function(...n){if(e){const i=e(...n);for(const o in i)this[o]=i[o]}}}(t);function o(...s){if(this instanceof o)return i.apply(this,s),this;const d=new o(...s);return g.annotation=d,g;function g(v,R,G){const Me=v.hasOwnProperty(cn)?v[cn]:Object.defineProperty(v,cn,{value:[]})[cn];for(;Me.length<=G;)Me.push(null);return(Me[G]=Me[G]||[]).push(d),v}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class dr{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Nt({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const rl=new dr("AnalyzeForEntryComponents");function Di(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let i=e[n];Array.isArray(i)?(t===e&&(t=e.slice(0,n)),Di(i,t)):t!==e&&t.push(i)}return t}function Wi(e,t){e.forEach(n=>Array.isArray(n)?Wi(n,t):t(n))}function Du(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ga(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ks(e,t){const n=[];for(let i=0;i<e;i++)n.push(t);return n}function _i(e,t,n){let i=ns(e,t);return i>=0?e[1|i]=n:(i=~i,function Hg(e,t,n,i){let o=e.length;if(o==t)e.push(n,i);else if(1===o)e.push(i,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function ol(e,t){const n=ns(e,t);if(n>=0)return e[1|n]}function ns(e,t){return function Mu(e,t,n){let i=0,o=e.length>>n;for(;o!==i;){const s=i+(o-i>>1),d=e[s<<n];if(t===d)return s<<n;d>t?o=s:i=s+1}return~(o<<n)}(e,t,1)}const Bs={},al="__NG_DI_FLAG__",ya="ngTempTokenPath",Kg=/\n/gm,Tu="__source",Xg=ce({provide:String,useValue:ce});let $s;function xu(e){const t=$s;return $s=e,t}function qg(e,t=oe.Default){if(void 0===$s)throw new je(203,"");return null===$s?St(e,void 0,t):$s.get(e,t&oe.Optional?null:void 0,t)}function Ur(e,t=oe.Default){return(function vt(){return ft}()||qg)(me(e),t)}const Ou=Ur;function ll(e){const t=[];for(let n=0;n<e.length;n++){const i=me(e[n]);if(Array.isArray(i)){if(0===i.length)throw new je(900,"");let o,s=oe.Default;for(let d=0;d<i.length;d++){const g=i[d],v=Zg(g);"number"==typeof v?-1===v?o=g.token:s|=v:o=g}t.push(Ur(o,s))}else t.push(Ur(i))}return t}function Vs(e,t){return e[al]=t,e.prototype[al]=t,e}function Zg(e){return e[al]}const va=Vs(ui("Inject",e=>({token:e})),-1),Hs=Vs(ui("Optional"),8),js=Vs(ui("SkipSelf"),4);var Yi=(()=>((Yi=Yi||{})[Yi.Important=1]="Important",Yi[Yi.DashCase=2]="DashCase",Yi))();const $u="__ngContext__";function Qr(e,t){e[$u]=t}function dl(e){const t=function zs(e){return e[$u]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function hl(e,t){return undefined(e,t)}function Gs(e){const t=e[3];return hn(t)?t[3]:t}function pl(e){return Wu(e[13])}function gl(e){return Wu(e[4])}function Wu(e){for(;null!==e&&!hn(e);)e=e[4];return e}function is(e,t,n,i,o){if(null!=i){let s,d=!1;hn(i)?s=i:dn(i)&&(d=!0,i=i[0]);const g=w(i);0===e&&null!==n?null==o?Zu(t,n,g):Lo(t,n,g,o||null,!0):1===e&&null!==n?Lo(t,n,g,o||null,!0):2===e?function Cl(e,t,n){const i=_a(e,t);i&&function Tm(e,t,n,i){a(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,g,d):3===e&&t.destroyNode(g),null!=s&&function Om(e,t,n,i,o){const s=n[7];s!==w(n)&&is(t,e,i,s,o);for(let g=10;g<n.length;g++){const v=n[g];Ws(v[1],v,e,t,i,s)}}(t,e,s,n,o)}}function yl(e,t,n){if(a(e))return e.createElement(t,n);{const i=null!==n?function I(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":t===A?"http://www.w3.org/1998/MathML/":null}(n):null;return null===i?e.createElement(t):e.createElementNS(i,t)}}function Ku(e,t){const n=e[9],i=n.indexOf(t),o=t[3];1024&t[2]&&(t[2]&=-1025,xi(o,-1)),n.splice(i,1)}function vl(e,t){if(e.length<=10)return;const n=10+t,i=e[n];if(i){const o=i[17];null!==o&&o!==e&&Ku(o,i),t>0&&(e[n-1][4]=i[4]);const s=ga(e,10+t);!function Em(e,t){Ws(e,t,t[L],2,null,null),t[0]=null,t[6]=null}(i[1],i);const d=s[19];null!==d&&d.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Qu(e,t){if(!(256&t[2])){const n=t[L];a(n)&&n.destroyNode&&Ws(e,t,n,3,null,null),function Dm(e){let t=e[13];if(!t)return bl(e[1],e);for(;t;){let n=null;if(dn(t))n=t[13];else{const i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)dn(t)&&bl(t[1],t),t=t[3];null===t&&(t=e),dn(t)&&bl(t[1],t),n=t&&t[4]}t=n}}(t)}}function bl(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function Im(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i<n.length;i+=2){const o=t[n[i]];if(!(o instanceof c)){const s=n[i+1];if(Array.isArray(s))for(let d=0;d<s.length;d+=2){const g=o[s[d]],v=s[d+1];try{v.call(g)}finally{}}else try{s.call(o)}finally{}}}}(e,t),function Mm(e,t){const n=e.cleanup,i=t[7];let o=-1;if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const d=n[s+1],g="function"==typeof d?d(t):w(t[d]),v=i[o=n[s+2]],R=n[s+3];"boolean"==typeof R?g.removeEventListener(n[s],v,R):R>=0?i[o=R]():i[o=-R].unsubscribe(),s+=2}else{const d=i[o=n[s+1]];n[s].call(d)}if(null!==i){for(let s=o+1;s<i.length;s++)i[s]();t[7]=null}}(e,t),1===t[1].type&&a(t[L])&&t[L].destroy();const n=t[17];if(null!==n&&hn(t[3])){n!==t[3]&&Ku(n,t);const i=t[19];null!==i&&i.detachView(e)}}}function Xu(e,t,n){return function qu(e,t,n){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){const o=e.data[i.directiveStart].encapsulation;if(o===bn.None||o===bn.Emulated)return null}return Bt(i,n)}(e,t.parent,n)}function Lo(e,t,n,i,o){a(e)?e.insertBefore(t,n,i,o):t.insertBefore(n,i,o)}function Zu(e,t,n){a(e)?e.appendChild(t,n):t.appendChild(n)}function Ju(e,t,n,i,o){null!==i?Lo(e,t,n,i,o):Zu(e,t,n)}function _a(e,t){return a(e)?e.parentNode(t):t.parentNode}function ed(e,t,n){return nd(e,t,n)}let wa,Da,nd=function td(e,t,n){return 40&e.type?Bt(e,n):null};function Ea(e,t,n,i){const o=Xu(e,i,t),s=t[L],g=ed(i.parent||t[6],i,t);if(null!=o)if(Array.isArray(n))for(let v=0;v<n.length;v++)Ju(s,o,n[v],g,!1);else Ju(s,o,n,g,!1)}function Ca(e,t){if(null!==t){const n=t.type;if(3&n)return Bt(t,e);if(4&n)return El(-1,e[t.index]);if(8&n){const i=t.child;if(null!==i)return Ca(e,i);{const o=e[t.index];return hn(o)?El(-1,o):w(o)}}if(32&n)return hl(t,e)()||w(e[t.index]);{const i=id(e,t);return null!==i?Array.isArray(i)?i[0]:Ca(Gs(e[16]),i):Ca(e,t.next)}}return null}function id(e,t){return null!==t?e[16][6].projection[t.projection]:null}function El(e,t){const n=10+e+1;if(n<t.length){const i=t[n],o=i[1].firstChild;if(null!==o)return Ca(i,o)}return t[7]}function wl(e,t,n,i,o,s,d){for(;null!=n;){const g=i[n.index],v=n.type;if(d&&0===t&&(g&&Qr(w(g),i),n.flags|=4),64!=(64&n.flags))if(8&v)wl(e,t,n.child,i,o,s,!1),is(t,e,o,g,s);else if(32&v){const R=hl(n,i);let G;for(;G=R();)is(t,e,o,G,s);is(t,e,o,g,s)}else 16&v?od(e,t,i,n,o,s):is(t,e,o,g,s);n=d?n.projectionNext:n.next}}function Ws(e,t,n,i,o,s){wl(n,i,e.firstChild,t,o,s,!1)}function od(e,t,n,i,o,s){const d=n[16],v=d[6].projection[i.projection];if(Array.isArray(v))for(let R=0;R<v.length;R++)is(t,e,o,v[R],s);else wl(e,t,v,d[3],o,s,!0)}function sd(e,t,n){a(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Dl(e,t,n){a(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function No(e){var t;return(null===(t=function Sl(){if(void 0===wa&&(wa=null,un.trustedTypes))try{wa=un.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return wa}())||void 0===t?void 0:t.createHTML(e))||e}function Al(){if(void 0===Da&&(Da=null,un.trustedTypes))try{Da=un.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Da}function ad(e){var t;return(null===(t=Al())||void 0===t?void 0:t.createHTML(e))||e}function cd(e){var t;return(null===(t=Al())||void 0===t?void 0:t.createScriptURL(e))||e}class ko{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class km extends ko{getTypeName(){return"HTML"}}class Bm extends ko{getTypeName(){return"Style"}}class $m extends ko{getTypeName(){return"Script"}}class Vm extends ko{getTypeName(){return"URL"}}class Hm extends ko{getTypeName(){return"ResourceURL"}}function ao(e){return e instanceof ko?e.changingThisBreaksApplicationSecurity:e}function os(e,t){const n=ud(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function ud(e){return e instanceof ko&&e.getTypeName()||null}function jm(e){return new km(e)}function Um(e){return new Bm(e)}function zm(e){return new $m(e)}function Gm(e){return new Vm(e)}function Wm(e){return new Hm(e)}class Ym{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(No(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class Km{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const i=this.inertDocument.createElement("body");n.appendChild(i)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=No(t),n;const i=this.inertDocument.createElement("body");return i.innerHTML=No(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const n=t.attributes;for(let o=n.length-1;0<o;o--){const d=n.item(o).name;("xmlns:ns1"===d||0===d.indexOf("ns1:"))&&t.removeAttribute(d)}let i=t.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const Xm=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,qm=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Ys(e){return(e=String(e)).match(Xm)||e.match(qm)?e:"unsafe:"+e}function Ki(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Ks(...e){const t={};for(const n of e)for(const i in n)n.hasOwnProperty(i)&&(t[i]=!0);return t}const hd=Ki("area,br,col,hr,img,wbr"),pd=Ki("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),gd=Ki("rp,rt"),Ml=Ks(hd,Ks(pd,Ki("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ks(gd,Ki("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ks(gd,pd)),Il=Ki("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Tl=Ki("srcset"),md=Ks(Il,Tl,Ki("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ki("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Zm=Ki("script,style,template");class Jm{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,i=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?i=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,i&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=this.checkClobberedElement(n,n.nextSibling);if(o){n=o;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!Ml.hasOwnProperty(n))return this.sanitizedSomething=!0,!Zm.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const i=t.attributes;for(let o=0;o<i.length;o++){const s=i.item(o),d=s.name,g=d.toLowerCase();if(!md.hasOwnProperty(g)){this.sanitizedSomething=!0;continue}let v=s.value;Il[g]&&(v=Ys(v)),Tl[g]&&(e=v,v=(e=String(e)).split(",").map(t=>Ys(t.trim())).join(", ")),this.buf.push(" ",d,'="',yd(v),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();Ml.hasOwnProperty(n)&&!hd.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(yd(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const ey=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ty=/([^\#-~ |!])/g;function yd(e){return e.replace(/&/g,"&amp;").replace(ey,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(ty,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Sa;function vd(e,t){let n=null;try{Sa=Sa||function dd(e){const t=new Km(e);return function Qm(){try{return!!(new window.DOMParser).parseFromString(No(""),"text/html")}catch(e){return!1}}()?new Ym(t):t}(e);let i=t?String(t):"";n=Sa.getInertBodyElement(i);let o=5,s=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=s,s=n.innerHTML,n=Sa.getInertBodyElement(i)}while(i!==s);return No((new Jm).sanitizeChildren(xl(n)||n))}finally{if(n){const i=xl(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function xl(e){return"content"in e&&function ny(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Dr=(()=>((Dr=Dr||{})[Dr.NONE=0]="NONE",Dr[Dr.HTML=1]="HTML",Dr[Dr.STYLE=2]="STYLE",Dr[Dr.SCRIPT=3]="SCRIPT",Dr[Dr.URL=4]="URL",Dr[Dr.RESOURCE_URL=5]="RESOURCE_URL",Dr))();function bd(e){const t=Qs();return t?ad(t.sanitize(Dr.HTML,e)||""):os(e,"HTML")?ad(ao(e)):vd(wt(),Te(e))}function Pl(e){const t=Qs();return t?t.sanitize(Dr.URL,e)||"":os(e,"URL")?ao(e):Ys(Te(e))}function Ol(e){const t=Qs();if(t)return cd(t.sanitize(Dr.RESOURCE_URL,e)||"");if(os(e,"ResourceURL"))return cd(ao(e));throw new je(904,"")}function Qs(){const e=Tt();return e&&e[12]}function Fl(e){return e.ngOriginalError}function fy(e,...t){e.error(...t)}class Aa{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),i=function dy(e){return e&&e.ngErrorLogger||fy}(t);i(this._console,"ERROR",t),n&&i(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Fl(t);for(;n&&Fl(n);)n=Fl(n);return n||null}}const by=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(un))();function _d(e){return e.ownerDocument.defaultView}function Ed(e){return e.ownerDocument}function Qi(e){return e instanceof Function?e():e}function wd(e,t,n){let i=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const s=t.length;if(o+s===i||e.charCodeAt(o+s)<=32)return o}n=o+1}}const Dd="ng-template";function Ey(e,t,n){let i=0;for(;i<e.length;){let o=e[i++];if(n&&"class"===o){if(o=e[i],-1!==wd(o.toLowerCase(),t,0))return!0}else if(1===o){for(;i<e.length&&"string"==typeof(o=e[i++]);)if(o.toLowerCase()===t)return!0;return!1}}return!1}function Sd(e){return 4===e.type&&e.value!==Dd}function Cy(e,t,n){return t===(4!==e.type||n?e.value:Dd)}function wy(e,t,n){let i=4;const o=e.attrs||[],s=function Ay(e){for(let t=0;t<e.length;t++)if(an(e[t]))return t;return e.length}(o);let d=!1;for(let g=0;g<t.length;g++){const v=t[g];if("number"!=typeof v){if(!d)if(4&i){if(i=2|1&i,""!==v&&!Cy(e,v,n)||""===v&&1===t.length){if(Oi(i))return!1;d=!0}}else{const R=8&i?v:t[++g];if(8&i&&null!==e.attrs){if(!Ey(e.attrs,R,n)){if(Oi(i))return!1;d=!0}continue}const Me=Dy(8&i?"class":v,o,Sd(e),n);if(-1===Me){if(Oi(i))return!1;d=!0;continue}if(""!==R){let Ze;Ze=Me>s?"":o[Me+1].toLowerCase();const ut=8&i?Ze:null;if(ut&&-1!==wd(ut,R,0)||2&i&&R!==Ze){if(Oi(i))return!1;d=!0}}}}else{if(!d&&!Oi(i)&&!Oi(v))return!1;if(d&&Oi(v))continue;d=!1,i=v|1&i}}return Oi(i)||d}function Oi(e){return 0==(1&e)}function Dy(e,t,n,i){if(null===t)return-1;let o=0;if(i||!n){let s=!1;for(;o<t.length;){const d=t[o];if(d===e)return o;if(3===d||6===d)s=!0;else{if(1===d||2===d){let g=t[++o];for(;"string"==typeof g;)g=t[++o];continue}if(4===d)break;if(0===d){o+=4;continue}}o+=s?1:2}return-1}return function My(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function Ad(e,t,n=!1){for(let i=0;i<t.length;i++)if(wy(e,t[i],n))return!0;return!1}function Iy(e,t){e:for(let n=0;n<t.length;n++){const i=t[n];if(e.length===i.length){for(let o=0;o<e.length;o++)if(e[o]!==i[o])continue e;return!0}}return!1}function Md(e,t){return e?":not("+t.trim()+")":t}function Ty(e){let t=e[0],n=1,i=2,o="",s=!1;for(;n<e.length;){let d=e[n];if("string"==typeof d)if(2&i){const g=e[++n];o+="["+d+(g.length>0?'="'+g+'"':"")+"]"}else 8&i?o+="."+d:4&i&&(o+=" "+d);else""!==o&&!Oi(d)&&(t+=Md(s,o),o=""),i=d,s=s||!Oi(i);n++}return""!==o&&(t+=Md(s,o)),t}const Rn={};function Id(e){Td(Vn(),Tt(),Mr()+e,!1)}function Td(e,t,n,i){if(!i)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&Co(t,s,n)}else{const s=e.preOrderHooks;null!==s&&ro(t,s,0,n)}wi(n)}function Ma(e,t){return e<<17|t<<2}function Ri(e){return e>>17&32767}function Ll(e){return 2|e}function lo(e){return(131068&e)>>2}function Nl(e,t){return-131069&e|t<<2}function kl(e){return 1|e}function Vd(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const o=n[i],s=n[i+1];if(-1!==s){const d=e.data[s];mo(o),d.contentQueries(2,t[s],s)}}}function Xs(e,t,n,i,o,s,d,g,v,R){const G=t.blueprint.slice();return G[0]=o,G[2]=140|i,Br(G),G[3]=G[15]=e,G[8]=n,G[10]=d||e&&e[10],G[L]=g||e&&e[L],G[12]=v||e&&e[12]||null,G[9]=R||e&&e[9]||null,G[6]=s,G[16]=2==t.type?e[16]:G,G}function as(e,t,n,i,o){let s=e.data[t];if(null===s)s=function Wl(e,t,n,i,o){const s=fo(),d=Ui(),v=e.data[t]=function Yy(e,t,n,i,o,s){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:o,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,d?s:s&&s.parent,n,t,i,o);return null===e.firstChild&&(e.firstChild=v),null!==s&&(d?null==s.child&&null!==v.parent&&(s.child=v):null===s.next&&(s.next=v)),v}(e,t,n,i,o),function Go(){return An.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=i,s.attrs=o;const d=function no(){const e=An.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();s.injectorIndex=null===d?-1:d.injectorIndex}return Hr(s,!0),s}function ls(e,t,n,i){if(0===n)return-1;const o=t.length;for(let s=0;s<n;s++)t.push(i),e.blueprint.push(i),e.data.push(null);return o}function qs(e,t,n){yo(t);try{const i=e.viewQuery;null!==i&&tc(1,i,n);const o=e.template;null!==o&&Hd(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Vd(e,t),e.staticViewQueries&&tc(2,e.viewQuery,n);const s=e.components;null!==s&&function zy(e,t){for(let n=0;n<t.length;n++)dv(e,t[n])}(t,s)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),i}finally{t[2]&=-5,Gi()}}function cs(e,t,n,i){const o=t[2];if(256!=(256&o)){yo(t);try{Br(t),function ti(e){return An.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Hd(e,t,n,2,i);const d=3==(3&o);if(d){const R=e.preOrderCheckHooks;null!==R&&Co(t,R,null)}else{const R=e.preOrderHooks;null!==R&&ro(t,R,0,null),wo(t,0)}if(function cv(e){for(let t=pl(e);null!==t;t=gl(t)){if(!t[2])continue;const n=t[9];for(let i=0;i<n.length;i++){const o=n[i],s=o[3];0==(1024&o[2])&&xi(s,1),o[2]|=1024}}}(t),function lv(e){for(let t=pl(e);null!==t;t=gl(t))for(let n=10;n<t.length;n++){const i=t[n],o=i[1];Wt(i)&&cs(o,i,o.template,i[8])}}(t),null!==e.contentQueries&&Vd(e,t),d){const R=e.contentCheckHooks;null!==R&&Co(t,R)}else{const R=e.contentHooks;null!==R&&ro(t,R,1),wo(t,1)}!function jy(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let i=0;i<n.length;i++){const o=n[i];if(o<0)wi(~o);else{const s=o,d=n[++i],g=n[++i];Yo(d,s),g(2,t[s])}}}finally{wi(-1)}}(e,t);const g=e.components;null!==g&&function Uy(e,t){for(let n=0;n<t.length;n++)uv(e,t[n])}(t,g);const v=e.viewQuery;if(null!==v&&tc(2,v,i),d){const R=e.viewCheckHooks;null!==R&&Co(t,R)}else{const R=e.viewHooks;null!==R&&ro(t,R,2),wo(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[2]&=-73,1024&t[2]&&(t[2]&=-1025,xi(t[3],-1))}finally{Gi()}}}function Gy(e,t,n,i){const o=t[10],d=bt(t);try{!d&&o.begin&&o.begin(),d&&qs(e,t,i),cs(e,t,n,i)}finally{!d&&o.end&&o.end()}}function Hd(e,t,n,i,o){const s=Mr(),d=2&i;try{wi(-1),d&&t.length>20&&Td(e,t,20,!1),n(i,o)}finally{wi(s)}}function jd(e,t,n){if(er(t)){const o=t.directiveEnd;for(let s=t.directiveStart;s<o;s++){const d=e.data[s];d.contentQueries&&d.contentQueries(1,n[s],s)}}}function Yl(e,t,n){!Hi()||(function ev(e,t,n,i){const o=n.directiveStart,s=n.directiveEnd;e.firstCreatePass||jr(n,t),Qr(i,t);const d=n.initialInputs;for(let g=o;g<s;g++){const v=e.data[g],R=ur(v);R&&ov(t,n,v);const G=f(t,e,g,n);Qr(G,t),null!==d&&sv(0,g-o,G,v,0,d),R&&(W(n.index,t)[8]=G)}}(e,t,n,Bt(n,t)),128==(128&n.flags)&&function tv(e,t,n){const i=n.directiveStart,o=n.directiveEnd,d=n.index,g=function po(){return An.lFrame.currentDirectiveIndex}();try{wi(d);for(let v=i;v<o;v++){const R=e.data[v],G=t[v];Po(v),(null!==R.hostBindings||0!==R.hostVars||null!==R.hostAttrs)&&Xd(R,G)}}finally{wi(-1),Po(g)}}(e,t,n))}function Kl(e,t,n=Bt){const i=t.localNames;if(null!==i){let o=t.index+1;for(let s=0;s<i.length;s+=2){const d=i[s+1],g=-1===d?n(t,e):e[d];e[o++]=g}}}function Ud(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=xa(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function xa(e,t,n,i,o,s,d,g,v,R){const G=20+i,Me=G+o,Ze=function Wy(e,t){const n=[];for(let i=0;i<t;i++)n.push(i<e?null:Rn);return n}(G,Me),ut="function"==typeof R?R():R;return Ze[1]={type:e,blueprint:Ze,template:n,queries:null,viewQuery:g,declTNode:t,data:Ze.slice().fill(null,G),bindingStartIndex:G,expandoStartIndex:Me,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof d?d():d,firstChild:null,schemas:v,consts:ut,incompleteFirstPass:!1}}function Wd(e,t,n,i){const o=nf(t);null===n?o.push(i):(o.push(n),e.firstCreatePass&&rf(e).push(i,o.length-1))}function Yd(e,t,n){for(let i in e)if(e.hasOwnProperty(i)){const o=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,o):n[i]=[t,o]}return n}function Ei(e,t,n,i,o,s,d,g){const v=Bt(t,n);let G,R=t.inputs;!g&&null!=R&&(G=R[i])?(af(e,n,G,i,o),qn(t)&&function Xy(e,t){const n=W(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(i=function Qy(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),o=null!=d?d(o,t.value||"",i):o,a(s)?s.setProperty(v,i,o):En(i)||(v.setProperty?v.setProperty(i,o):v[i]=o))}function Ql(e,t,n,i){let o=!1;if(Hi()){const s=function nv(e,t,n){const i=e.directiveRegistry;let o=null;if(i)for(let s=0;s<i.length;s++){const d=i[s];Ad(n,d.selectors,!1)&&(o||(o=[]),so(jr(n,t),e,d.type),ur(d)?(qd(e,n),o.unshift(d)):o.push(d))}return o}(e,t,n),d=null===i?null:{"":-1};if(null!==s){o=!0,Zd(n,e.data.length,s.length);for(let G=0;G<s.length;G++){const Me=s[G];Me.providersResolver&&Me.providersResolver(Me)}let g=!1,v=!1,R=ls(e,t,s.length,null);for(let G=0;G<s.length;G++){const Me=s[G];n.mergedAttrs=xn(n.mergedAttrs,Me.hostAttrs),Jd(e,n,t,R,Me),iv(R,Me,d),null!==Me.contentQueries&&(n.flags|=8),(null!==Me.hostBindings||null!==Me.hostAttrs||0!==Me.hostVars)&&(n.flags|=128);const Ze=Me.type.prototype;!g&&(Ze.ngOnChanges||Ze.ngOnInit||Ze.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),g=!0),!v&&(Ze.ngOnChanges||Ze.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),v=!0),R++}!function Ky(e,t){const i=t.directiveEnd,o=e.data,s=t.attrs,d=[];let g=null,v=null;for(let R=t.directiveStart;R<i;R++){const G=o[R],Me=G.inputs,Ze=null===s||Sd(t)?null:av(Me,s);d.push(Ze),g=Yd(Me,R,g),v=Yd(G.outputs,R,v)}null!==g&&(g.hasOwnProperty("class")&&(t.flags|=16),g.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=d,t.inputs=g,t.outputs=v}(e,n)}d&&function rv(e,t,n){if(t){const i=e.localNames=[];for(let o=0;o<t.length;o+=2){const s=n[t[o+1]];if(null==s)throw new je(-301,!1);i.push(t[o],s)}}}(n,i,d)}return n.mergedAttrs=xn(n.mergedAttrs,n.attrs),o}function Qd(e,t,n,i,o,s){const d=s.hostBindings;if(d){let g=e.hostBindingOpCodes;null===g&&(g=e.hostBindingOpCodes=[]);const v=~t.index;(function Jy(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(g)!=v&&g.push(v),g.push(i,o,d)}}function Xd(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function qd(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function iv(e,t,n){if(n){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;ur(t)&&(n[""]=e)}}function Zd(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Jd(e,t,n,i,o){e.data[i]=o;const s=o.factory||(o.factory=Nr(o.type)),d=new c(s,ur(o),null);e.blueprint[i]=d,n[i]=d,Qd(e,t,0,i,ls(e,n,o.hostVars,Rn),o)}function ov(e,t,n){const i=Bt(t,e),o=Ud(n),s=e[10],d=Pa(e,Xs(e,o,null,n.onPush?64:16,i,t,s,s.createRenderer(i,n),null,null));e[t.index]=d}function Xi(e,t,n,i,o,s){const d=Bt(e,t);!function Xl(e,t,n,i,o,s,d){if(null==s)a(e)?e.removeAttribute(t,o,n):t.removeAttribute(o);else{const g=null==d?Te(s):d(s,i||"",o);a(e)?e.setAttribute(t,o,g,n):n?t.setAttributeNS(n,o,g):t.setAttribute(o,g)}}(t[L],d,s,e.value,n,i,o)}function sv(e,t,n,i,o,s){const d=s[t];if(null!==d){const g=i.setInput;for(let v=0;v<d.length;){const R=d[v++],G=d[v++],Me=d[v++];null!==g?i.setInput(n,Me,R,G):n[G]=Me}}}function av(e,t){let n=null,i=0;for(;i<t.length;){const o=t[i];if(0!==o)if(5!==o){if("number"==typeof o)break;e.hasOwnProperty(o)&&(null===n&&(n=[]),n.push(o,e[o],t[i+1])),i+=2}else i+=2;else i+=4}return n}function ef(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function uv(e,t){const n=W(t,e);if(Wt(n)){const i=n[1];80&n[2]?cs(i,n,i.template,n[8]):n[5]>0&&ql(n)}}function ql(e){for(let i=pl(e);null!==i;i=gl(i))for(let o=10;o<i.length;o++){const s=i[o];if(1024&s[2]){const d=s[1];cs(d,s,d.template,s[8])}else s[5]>0&&ql(s)}const n=e[1].components;if(null!==n)for(let i=0;i<n.length;i++){const o=W(n[i],e);Wt(o)&&o[5]>0&&ql(o)}}function dv(e,t){const n=W(t,e),i=n[1];(function fv(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(i,n),qs(i,n,n[8])}function Pa(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Zl(e){for(;e;){e[2]|=64;const t=Gs(e);if($r(e)&&!t)return e;e=t}return null}function tf(e){!function Jl(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],i=dl(n),o=i[1];Gy(o,i,o.template,n)}}(e[8])}function tc(e,t,n){mo(0),t(e,n)}const pv=(()=>Promise.resolve(null))();function nf(e){return e[7]||(e[7]=[])}function rf(e){return e.cleanup||(e.cleanup=[])}function sf(e,t){const n=e[9],i=n?n.get(Aa,null):null;i&&i.handleError(t)}function af(e,t,n,i,o){for(let s=0;s<n.length;){const d=n[s++],g=n[s++],v=t[d],R=e.data[d];null!==R.setInput?R.setInput(v,o,i,g):v[g]=o}}function co(e,t,n){const i=Ft(t,e);!function Yu(e,t,n){a(e)?e.setValue(t,n):t.textContent=n}(e[L],i,n)}function Oa(e,t,n){let i=n?e.styles:null,o=n?e.classes:null,s=0;if(null!==t)for(let d=0;d<t.length;d++){const g=t[d];"number"==typeof g?s=g:1==s?o=ye(o,g):2==s&&(i=ye(i,g+": "+t[++d]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=o:e.classesWithoutHost=o}const nc=new dr("INJECTOR",-1);class lf{get(t,n=Bs){if(n===Bs){const i=new Error(`NullInjectorError: No provider for ${$e(t)}!`);throw i.name="NullInjectorError",i}return n}}const rc=new dr("Set Injector scope."),Zs={},yv={};let ic;function cf(){return void 0===ic&&(ic=new lf),ic}function uf(e,t=null,n=null,i){const o=df(e,t,n,i);return o._resolveInjectorDefTypes(),o}function df(e,t=null,n=null,i){return new vv(e,n,t||cf(),i)}class vv{constructor(t,n,i,o=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];n&&Wi(n,g=>this.processProvider(g,t,n)),Wi([t],g=>this.processInjectorType(g,[],s)),this.records.set(nc,us(void 0,this));const d=this.records.get(rc);this.scope=null!=d?d.value:null,this.source=o||("object"==typeof t?null:$e(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=Bs,i=oe.Default){this.assertNotDestroyed();const o=xu(this),s=gt(void 0);try{if(!(i&oe.SkipSelf)){let g=this.records.get(t);if(void 0===g){const v=function Av(e){return"function"==typeof e||"object"==typeof e&&e instanceof dr}(t)&&tt(t);g=v&&this.injectableDefInScope(v)?us(oc(t),Zs):null,this.records.set(t,g)}if(null!=g)return this.hydrate(t,g)}return(i&oe.Self?cf():this.parent).get(t,n=i&oe.Optional&&n===Bs?null:n)}catch(d){if("NullInjectorError"===d.name){if((d[ya]=d[ya]||[]).unshift($e(t)),o)throw d;return function Jg(e,t,n,i){const o=e[ya];throw t[Tu]&&o.unshift(t[Tu]),e.message=function em(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let o=$e(t);if(Array.isArray(t))o=t.map($e).join(" -> ");else if("object"==typeof t){let s=[];for(let d in t)if(t.hasOwnProperty(d)){let g=t[d];s.push(d+":"+("string"==typeof g?JSON.stringify(g):$e(g)))}o=`{${s.join(", ")}}`}return`${n}${i?"("+i+")":""}[${o}]: ${e.replace(Kg,"\n  ")}`}("\n"+e.message,o,n,i),e.ngTokenPath=o,e[ya]=null,e}(d,t,"R3InjectorError",this.source)}throw d}finally{gt(s),xu(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,o)=>t.push($e(o))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new je(205,!1)}processInjectorType(t,n,i){if(!(t=me(t)))return!1;let o=Se(t);const s=null==o&&t.ngModule||void 0,d=void 0===s?t:s,g=-1!==i.indexOf(d);if(void 0!==s&&(o=Se(s)),null==o)return!1;if(null!=o.imports&&!g){let G;i.push(d);try{Wi(o.imports,Me=>{this.processInjectorType(Me,n,i)&&(void 0===G&&(G=[]),G.push(Me))})}finally{}if(void 0!==G)for(let Me=0;Me<G.length;Me++){const{ngModule:Ze,providers:ut}=G[Me];Wi(ut,It=>this.processProvider(It,Ze,ut||Sn))}}this.injectorDefTypes.add(d);const v=Nr(d)||(()=>new d);this.records.set(d,us(v,Zs));const R=o.providers;if(null!=R&&!g){const G=t;Wi(R,Me=>this.processProvider(Me,G,R))}return void 0!==s&&void 0!==t.providers}processProvider(t,n,i){let o=ds(t=me(t))?t:me(t&&t.provide);const s=function _v(e,t,n){return hf(e)?us(void 0,e.useValue):us(ff(e),Zs)}(t);if(ds(t)||!0!==t.multi)this.records.get(o);else{let d=this.records.get(o);d||(d=us(void 0,Zs,!0),d.factory=()=>ll(d.multi),this.records.set(o,d)),o=t,d.multi.push(t)}this.records.set(o,s)}hydrate(t,n){return n.value===Zs&&(n.value=yv,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Sv(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=me(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function oc(e){const t=tt(e),n=null!==t?t.factory:Nr(e);if(null!==n)return n;if(e instanceof dr)throw new je(204,!1);if(e instanceof Function)return function bv(e){const t=e.length;if(t>0)throw ks(t,"?"),new je(204,!1);const n=function O(e){const t=e&&(e[_e]||e[Je]);if(t){const n=function se(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new je(204,!1)}function ff(e,t,n){let i;if(ds(e)){const o=me(e);return Nr(o)||oc(o)}if(hf(e))i=()=>me(e.useValue);else if(function Cv(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...ll(e.deps||[]));else if(function Ev(e){return!(!e||!e.useExisting)}(e))i=()=>Ur(me(e.useExisting));else{const o=me(e&&(e.useClass||e.provide));if(!function Dv(e){return!!e.deps}(e))return Nr(o)||oc(o);i=()=>new o(...ll(e.deps))}return i}function us(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function hf(e){return null!==e&&"object"==typeof e&&Xg in e}function ds(e){return"function"==typeof e}let qi=(()=>{class e{static create(n,i){var o;if(Array.isArray(n))return uf({name:""},i,n,"");{const s=null!==(o=n.name)&&void 0!==o?o:"";return uf({name:s},n.parent,n.providers,s)}}}return e.THROW_IF_NOT_FOUND=Bs,e.NULL=new lf,e.\u0275prov=Nt({token:e,providedIn:"any",factory:()=>Ur(nc)}),e.__NG_ELEMENT_ID__=-1,e})();function Fv(e,t){Eo(dl(e)[1],mr())}function lc(e){let t=function Sf(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const i=[e];for(;t;){let o;if(ur(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new je(903,"");o=t.\u0275dir}if(o){if(n){i.push(o);const d=e;d.inputs=cc(e.inputs),d.declaredInputs=cc(e.declaredInputs),d.outputs=cc(e.outputs);const g=o.hostBindings;g&&Bv(e,g);const v=o.viewQuery,R=o.contentQueries;if(v&&Nv(e,v),R&&kv(e,R),Ne(e.inputs,o.inputs),Ne(e.declaredInputs,o.declaredInputs),Ne(e.outputs,o.outputs),ur(o)&&o.data.animation){const G=e.data;G.animation=(G.animation||[]).concat(o.data.animation)}}const s=o.features;if(s)for(let d=0;d<s.length;d++){const g=s[d];g&&g.ngInherit&&g(e),g===lc&&(n=!1)}}t=Object.getPrototypeOf(t)}!function Lv(e){let t=0,n=null;for(let i=e.length-1;i>=0;i--){const o=e[i];o.hostVars=t+=o.hostVars,o.hostAttrs=xn(o.hostAttrs,n=xn(n,o.hostAttrs))}}(i)}function cc(e){return e===nn?{}:e===Sn?[]:e}function Nv(e,t){const n=e.viewQuery;e.viewQuery=n?(i,o)=>{t(i,o),n(i,o)}:t}function kv(e,t){const n=e.contentQueries;e.contentQueries=n?(i,o,s)=>{t(i,o,s),n(i,o,s)}:t}function Bv(e,t){const n=e.hostBindings;e.hostBindings=n?(i,o)=>{t(i,o),n(i,o)}:t}let Ra=null;function fs(){if(!Ra){const e=un.Symbol;if(e&&e.iterator)Ra=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<t.length;++n){const i=t[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Ra=i)}}}return Ra}function Js(e){return!!uc(e)&&(Array.isArray(e)||!(e instanceof Map)&&fs()in e)}function uc(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Zi(e,t,n){return e[t]=n}function Xr(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Bo(e,t,n,i){const o=Xr(e,t,n);return Xr(e,t+1,i)||o}function Fa(e,t,n,i,o){const s=Bo(e,t,n,i);return Xr(e,t+2,o)||s}function dc(e,t,n,i){const o=Tt();return Xr(o,zi(),t)&&(Vn(),Xi(hr(),o,e,t,n,i)),dc}function ps(e,t,n,i){return Xr(e,zi(),n)?t+Te(n)+i:Rn}function Lf(e,t,n,i,o,s,d,g){const v=Tt(),R=Vn(),G=e+20,Me=R.firstCreatePass?function Gv(e,t,n,i,o,s,d,g,v){const R=t.consts,G=as(t,e,4,d||null,fr(R,g));Ql(t,n,G,fr(R,v)),Eo(t,G);const Me=G.tViews=xa(2,G,i,o,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,R);return null!==t.queries&&(t.queries.template(t,G),Me.queries=t.queries.embeddedTView(G)),G}(G,R,v,t,n,i,o,s,d):R.data[G];Hr(Me,!1);const Ze=v[L].createComment("");Ea(R,v,Ze,Me),Qr(Ze,v),Pa(v,v[G]=ef(Ze,v,Ze,Me)),pr(Me)&&Yl(R,v,Me),null!=d&&Kl(v,Me,g)}function Nf(e){return b(function ho(){return An.lFrame.contextLView}(),20+e)}function ta(e,t=oe.Default){const n=Tt();return null===n?Ur(e,t):_n(mr(),n,me(e),t)}function Yf(){throw new Error("invalid")}function mc(e,t,n){const i=Tt();return Xr(i,zi(),t)&&Ei(Vn(),hr(),i,e,t,i[L],n,!1),mc}function yc(e,t,n,i,o){const d=o?"class":"style";af(e,n,t.inputs[d],d,i)}function Na(e,t,n,i){const o=Tt(),s=Vn(),d=20+e,g=o[L],v=o[d]=yl(g,t,function _o(){return An.lFrame.currentNamespace}()),R=s.firstCreatePass?function h0(e,t,n,i,o,s,d){const g=t.consts,R=as(t,e,2,o,fr(g,s));return Ql(t,n,R,fr(g,d)),null!==R.attrs&&Oa(R,R.attrs,!1),null!==R.mergedAttrs&&Oa(R,R.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,R),R}(d,s,o,0,t,n,i):s.data[d];Hr(R,!0);const G=R.mergedAttrs;null!==G&&zt(g,v,G);const Me=R.classes;null!==Me&&Dl(g,v,Me);const Ze=R.styles;return null!==Ze&&sd(g,v,Ze),64!=(64&R.flags)&&Ea(s,o,v,R),0===function Uo(){return An.lFrame.elementDepthCount}()&&Qr(v,o),function uo(){An.lFrame.elementDepthCount++}(),pr(R)&&(Yl(s,o,R),jd(s,R,o)),null!==i&&Kl(o,R),Na}function ka(){let e=mr();Ui()?To():(e=e.parent,Hr(e,!1));const t=e;!function zo(){An.lFrame.elementDepthCount--}();const n=Vn();return n.firstCreatePass&&(Eo(n,e),er(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function He(e){return 0!=(16&e.flags)}(t)&&yc(n,t,Tt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Ge(e){return 0!=(32&e.flags)}(t)&&yc(n,t,Tt(),t.stylesWithoutHost,!1),ka}function vc(e,t,n,i){return Na(e,t,n,i),ka(),vc}function Ba(e,t,n){const i=Tt(),o=Vn(),s=e+20,d=o.firstCreatePass?function p0(e,t,n,i,o){const s=t.consts,d=fr(s,i),g=as(t,e,8,"ng-container",d);return null!==d&&Oa(g,d,!0),Ql(t,n,g,fr(s,o)),null!==t.queries&&t.queries.elementStart(t,g),g}(s,o,i,t,n):o.data[s];Hr(d,!0);const g=i[s]=i[L].createComment("");return Ea(o,i,g,d),Qr(g,i),pr(d)&&(Yl(o,i,d),jd(o,d,i)),null!=n&&Kl(i,d),Ba}function $a(){let e=mr();const t=Vn();return Ui()?To():(e=e.parent,Hr(e,!1)),t.firstCreatePass&&(Eo(t,e),er(e)&&t.queries.elementEnd(e)),$a}function bc(e,t,n){return Ba(e,t,n),$a(),bc}function Kf(){return Tt()}function _c(e){return!!e&&"function"==typeof e.then}function Qf(e){return!!e&&"function"==typeof e.subscribe}const Xf=Qf;function Ec(e,t,n,i){const o=Tt(),s=Vn(),d=mr();return function Zf(e,t,n,i,o,s,d,g){const v=pr(i),G=e.firstCreatePass&&rf(e),Me=t[8],Ze=nf(t);let ut=!0;if(3&i.type||g){const Kt=Bt(i,t),on=g?g(Kt):Kt,Pt=Ze.length,vn=g?Qn=>g(w(Qn[i.index])):i.index;if(a(n)){let Qn=null;if(!g&&v&&(Qn=function g0(e,t,n,i){const o=e.cleanup;if(null!=o)for(let s=0;s<o.length-1;s+=2){const d=o[s];if(d===n&&o[s+1]===i){const g=t[7],v=o[s+2];return g.length>v?g[v]:null}"string"==typeof d&&(s+=2)}return null}(e,t,o,i.index)),null!==Qn)(Qn.__ngLastListenerFn__||Qn).__ngNextListenerFn__=s,Qn.__ngLastListenerFn__=s,ut=!1;else{s=Cc(i,t,Me,s,!1);const ar=n.listen(on,o,s);Ze.push(s,ar),G&&G.push(o,vn,Pt,Pt+1)}}else s=Cc(i,t,Me,s,!0),on.addEventListener(o,s,d),Ze.push(s),G&&G.push(o,vn,Pt,d)}else s=Cc(i,t,Me,s,!1);const It=i.outputs;let $t;if(ut&&null!==It&&($t=It[o])){const Kt=$t.length;if(Kt)for(let on=0;on<Kt;on+=2){const Ci=t[$t[on]][$t[on+1]].subscribe(s),jo=Ze.length;Ze.push(s,Ci),G&&G.push(o,i.index,jo,-(jo+1))}}}(s,o,o[L],d,e,t,!!n,i),Ec}function Jf(e,t,n,i){try{return!1!==n(i)}catch(o){return sf(e,o),!1}}function Cc(e,t,n,i,o){return function s(d){if(d===Function)return i;const g=2&e.flags?W(e.index,t):t;0==(32&t[2])&&Zl(g);let v=Jf(t,0,i,d),R=s.__ngNextListenerFn__;for(;R;)v=Jf(t,0,R,d)&&v,R=R.__ngNextListenerFn__;return o&&!1===v&&(d.preventDefault(),d.returnValue=!1),v}}function eh(e=1){return function Zo(e){return(An.lFrame.contextLView=function Ro(e,t){for(;e>0;)t=t[15],e--;return t}(e,An.lFrame.contextLView))[8]}(e)}function m0(e,t){let n=null;const i=function Sy(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let o=0;o<t.length;o++){const s=t[o];if("*"!==s){if(null===i?Ad(e,s,!0):Iy(i,s))return o}else n=o}return n}function th(e){const t=Tt()[16][6];if(!t.projection){const i=t.projection=ks(e?e.length:1,null),o=i.slice();let s=t.child;for(;null!==s;){const d=e?m0(s,e):0;null!==d&&(o[d]?o[d].projectionNext=s:i[d]=s,o[d]=s),s=s.next}}}function nh(e,t=0,n){const i=Tt(),o=Vn(),s=as(o,20+e,16,null,n||null);null===s.projection&&(s.projection=t),To(),64!=(64&s.flags)&&function Pm(e,t,n){od(t[L],0,t,n,Xu(e,n,t),ed(n.parent||t[6],n,t))}(o,i,s)}function wc(e,t,n){return Va(e,"",t,"",n),wc}function Va(e,t,n,i,o){const s=Tt(),d=ps(s,t,n,i);return d!==Rn&&Ei(Vn(),hr(),s,e,d,s[L],o,!1),Va}function dh(e,t,n,i,o){const s=e[n+1],d=null===t;let g=i?Ri(s):lo(s),v=!1;for(;0!==g&&(!1===v||d);){const G=e[g+1];b0(e[g],t)&&(v=!0,e[g+1]=i?kl(G):Ll(G)),g=i?Ri(G):lo(G)}v&&(e[n+1]=i?Ll(s):kl(s))}function b0(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&ns(e,t)>=0}const Rr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function fh(e){return e.substring(Rr.key,Rr.keyEnd)}function _0(e){return e.substring(Rr.value,Rr.valueEnd)}function hh(e,t){const n=Rr.textEnd;return n===t?-1:(t=Rr.keyEnd=function w0(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Rr.key=t,n),ws(e,t,n))}function ph(e,t){const n=Rr.textEnd;let i=Rr.key=ws(e,t,n);return n===i?-1:(i=Rr.keyEnd=function D0(e,t,n){let i;for(;t<n&&(45===(i=e.charCodeAt(t))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)t++;return t}(e,i,n),i=mh(e,i,n),i=Rr.value=ws(e,i,n),i=Rr.valueEnd=function S0(e,t,n){let i=-1,o=-1,s=-1,d=t,g=d;for(;d<n;){const v=e.charCodeAt(d++);if(59===v)return g;34===v||39===v?g=d=yh(e,v,d,n):t===d-4&&85===s&&82===o&&76===i&&40===v?g=d=yh(e,41,d,n):v>32&&(g=d),s=o,o=i,i=-33&v}return g}(e,i,n),mh(e,i,n))}function gh(e){Rr.key=0,Rr.keyEnd=0,Rr.value=0,Rr.valueEnd=0,Rr.textEnd=e.length}function ws(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function mh(e,t,n,i){return(t=ws(e,t,n))<n&&t++,t}function yh(e,t,n,i){let o=-1,s=n;for(;s<i;){const d=e.charCodeAt(s++);if(d==t&&92!==o)return s;o=92==d&&92===o?0:d}throw new Error}function Dc(e,t,n){return Ni(e,t,n,!1),Dc}function Sc(e,t){return Ni(e,t,null,!0),Sc}function Li(e){ki(Eh,A0,e,!1)}function A0(e,t){for(let n=function C0(e){return gh(e),ph(e,ws(e,0,Rr.textEnd))}(t);n>=0;n=ph(t,n))Eh(e,fh(t),_0(t))}function vh(e){ki(_i,Ji,e,!0)}function Ji(e,t){for(let n=function E0(e){return gh(e),hh(e,ws(e,0,Rr.textEnd))}(t);n>=0;n=hh(t,n))_i(e,fh(t),!0)}function Ni(e,t,n,i){const o=Tt(),s=Vn(),d=yi(2);s.firstUpdatePass&&_h(s,e,d,i),t!==Rn&&Xr(o,d,t)&&Ch(s,s.data[Mr()],o,o[L],e,o[d+1]=function R0(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=$e(ao(e)))),e}(t,n),i,d)}function ki(e,t,n,i){const o=Vn(),s=yi(2);o.firstUpdatePass&&_h(o,null,s,i);const d=Tt();if(n!==Rn&&Xr(d,s,n)){const g=o.data[Mr()];if(Dh(g,i)&&!bh(o,s)){let v=i?g.classesWithoutHost:g.stylesWithoutHost;null!==v&&(n=ye(v,n||"")),yc(o,g,d,n,i)}else!function O0(e,t,n,i,o,s,d,g){o===Rn&&(o=Sn);let v=0,R=0,G=0<o.length?o[0]:null,Me=0<s.length?s[0]:null;for(;null!==G||null!==Me;){const Ze=v<o.length?o[v+1]:void 0,ut=R<s.length?s[R+1]:void 0;let $t,It=null;G===Me?(v+=2,R+=2,Ze!==ut&&(It=Me,$t=ut)):null===Me||null!==G&&G<Me?(v+=2,It=G):(R+=2,It=Me,$t=ut),null!==It&&Ch(e,t,n,i,It,$t,d,g),G=v<o.length?o[v]:null,Me=R<s.length?s[R]:null}}(o,g,d,d[L],d[s+1],d[s+1]=function P0(e,t,n){if(null==n||""===n)return Sn;const i=[],o=ao(n);if(Array.isArray(o))for(let s=0;s<o.length;s++)e(i,o[s],!0);else if("object"==typeof o)for(const s in o)o.hasOwnProperty(s)&&e(i,s,o[s]);else"string"==typeof o&&t(i,o);return i}(e,t,n),i,s)}}function bh(e,t){return t>=e.expandoStartIndex}function _h(e,t,n,i){const o=e.data;if(null===o[n+1]){const s=o[Mr()],d=bh(e,n);Dh(s,i)&&null===t&&!d&&(t=!1),t=function M0(e,t,n,i){const o=function Oo(e){const t=An.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let s=i?t.residualClasses:t.residualStyles;if(null===o)0===(i?t.classBindings:t.styleBindings)&&(n=na(n=Ac(null,e,t,n,i),t.attrs,i),s=null);else{const d=t.directiveStylingLast;if(-1===d||e[d]!==o)if(n=Ac(o,e,t,n,i),null===s){let v=function I0(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==lo(i))return e[Ri(i)]}(e,t,i);void 0!==v&&Array.isArray(v)&&(v=Ac(null,e,t,v[1],i),v=na(v,t.attrs,i),function T0(e,t,n,i){e[Ri(n?t.classBindings:t.styleBindings)]=i}(e,t,i,v))}else s=function x0(e,t,n){let i;const o=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<o;s++)i=na(i,e[s].hostAttrs,n);return na(i,t.attrs,n)}(e,t,i)}return void 0!==s&&(i?t.residualClasses=s:t.residualStyles=s),n}(o,s,t,i),function y0(e,t,n,i,o,s){let d=s?t.classBindings:t.styleBindings,g=Ri(d),v=lo(d);e[i]=n;let G,R=!1;if(Array.isArray(n)){const Me=n;G=Me[1],(null===G||ns(Me,G)>0)&&(R=!0)}else G=n;if(o)if(0!==v){const Ze=Ri(e[g+1]);e[i+1]=Ma(Ze,g),0!==Ze&&(e[Ze+1]=Nl(e[Ze+1],i)),e[g+1]=function Oy(e,t){return 131071&e|t<<17}(e[g+1],i)}else e[i+1]=Ma(g,0),0!==g&&(e[g+1]=Nl(e[g+1],i)),g=i;else e[i+1]=Ma(v,0),0===g?g=i:e[v+1]=Nl(e[v+1],i),v=i;R&&(e[i+1]=Ll(e[i+1])),dh(e,G,i,!0),dh(e,G,i,!1),function v0(e,t,n,i,o){const s=o?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&ns(s,t)>=0&&(n[i+1]=kl(n[i+1]))}(t,G,e,i,s),d=Ma(g,v),s?t.classBindings=d:t.styleBindings=d}(o,s,t,n,d,i)}}function Ac(e,t,n,i,o){let s=null;const d=n.directiveEnd;let g=n.directiveStylingLast;for(-1===g?g=n.directiveStart:g++;g<d&&(s=t[g],i=na(i,s.hostAttrs,o),s!==e);)g++;return null!==e&&(n.directiveStylingLast=g),i}function na(e,t,n){const i=n?1:2;let o=-1;if(null!==t)for(let s=0;s<t.length;s++){const d=t[s];"number"==typeof d?o=d:o===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),_i(e,d,!!n||t[++s]))}return void 0===e?null:e}function Eh(e,t,n){_i(e,t,ao(n))}function Ch(e,t,n,i,o,s,d,g){if(!(3&t.type))return;const v=e.data,R=v[g+1];Ha(function Od(e){return 1==(1&e)}(R)?wh(v,t,n,o,lo(R),d):void 0)||(Ha(s)||function Pd(e){return 2==(2&e)}(R)&&(s=wh(v,null,n,o,g,d)),function Rm(e,t,n,i,o){const s=a(e);if(t)o?s?e.addClass(n,i):n.classList.add(i):s?e.removeClass(n,i):n.classList.remove(i);else{let d=-1===i.indexOf("-")?void 0:Yi.DashCase;if(null==o)s?e.removeStyle(n,i,d):n.style.removeProperty(i);else{const g="string"==typeof o&&o.endsWith("!important");g&&(o=o.slice(0,-10),d|=Yi.Important),s?e.setStyle(n,i,o,d):n.style.setProperty(i,o,g?"important":"")}}}(i,d,Ft(Mr(),n),o,s))}function wh(e,t,n,i,o,s){const d=null===t;let g;for(;o>0;){const v=e[o],R=Array.isArray(v),G=R?v[1]:v,Me=null===G;let Ze=n[o+1];Ze===Rn&&(Ze=Me?Sn:void 0);let ut=Me?ol(Ze,i):G===i?Ze:void 0;if(R&&!Ha(ut)&&(ut=ol(v,i)),Ha(ut)&&(g=ut,d))return g;const It=e[o+1];o=d?Ri(It):lo(It)}if(null!==t){let v=s?t.residualClasses:t.residualStyles;null!=v&&(g=ol(v,i))}return g}function Ha(e){return void 0!==e}function Dh(e,t){return 0!=(e.flags&(t?16:32))}function Sh(e,t=""){const n=Tt(),i=Vn(),o=e+20,s=i.firstCreatePass?as(i,o,1,t,null):i.data[o],d=n[o]=function ml(e,t){return a(e)?e.createText(t):e.createTextNode(t)}(n[L],t);Ea(i,n,d,s),Hr(s,!1)}function Mc(e){return ja("",e,""),Mc}function ja(e,t,n){const i=Tt(),o=ps(i,e,t,n);return o!==Rn&&co(i,Mr(),o),ja}function Ic(e,t,n,i,o){const s=Tt(),d=function gs(e,t,n,i,o,s){const g=Bo(e,br(),n,o);return yi(2),g?t+Te(n)+i+Te(o)+s:Rn}(s,e,t,n,i,o);return d!==Rn&&co(s,Mr(),d),Ic}function Tc(e,t,n,i,o,s,d){const g=Tt(),v=function ms(e,t,n,i,o,s,d,g){const R=Fa(e,br(),n,o,d);return yi(3),R?t+Te(n)+i+Te(o)+s+Te(d)+g:Rn}(g,e,t,n,i,o,s,d);return v!==Rn&&co(g,Mr(),v),Tc}const $o=void 0;var J0=["en",[["a","p"],["AM","PM"],$o],[["AM","PM"],$o,$o],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],$o,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],$o,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",$o,"{1} 'at' {0}",$o],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Z0(e){const n=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===i?1:5}];let Ds={};function xc(e){const t=function eb(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=zh(t);if(n)return n;const i=t.split("-")[0];if(n=zh(i),n)return n;if("en"===i)return J0;throw new Error(`Missing locale data for the locale "${e}".`)}function Uh(e){return xc(e)[Cn.PluralCase]}function zh(e){return e in Ds||(Ds[e]=un.ng&&un.ng.common&&un.ng.common.locales&&un.ng.common.locales[e]),Ds[e]}var Cn=(()=>((Cn=Cn||{})[Cn.LocaleId=0]="LocaleId",Cn[Cn.DayPeriodsFormat=1]="DayPeriodsFormat",Cn[Cn.DayPeriodsStandalone=2]="DayPeriodsStandalone",Cn[Cn.DaysFormat=3]="DaysFormat",Cn[Cn.DaysStandalone=4]="DaysStandalone",Cn[Cn.MonthsFormat=5]="MonthsFormat",Cn[Cn.MonthsStandalone=6]="MonthsStandalone",Cn[Cn.Eras=7]="Eras",Cn[Cn.FirstDayOfWeek=8]="FirstDayOfWeek",Cn[Cn.WeekendRange=9]="WeekendRange",Cn[Cn.DateFormat=10]="DateFormat",Cn[Cn.TimeFormat=11]="TimeFormat",Cn[Cn.DateTimeFormat=12]="DateTimeFormat",Cn[Cn.NumberSymbols=13]="NumberSymbols",Cn[Cn.NumberFormats=14]="NumberFormats",Cn[Cn.CurrencyCode=15]="CurrencyCode",Cn[Cn.CurrencySymbol=16]="CurrencySymbol",Cn[Cn.CurrencyName=17]="CurrencyName",Cn[Cn.Currencies=18]="Currencies",Cn[Cn.Directionality=19]="Directionality",Cn[Cn.PluralCase=20]="PluralCase",Cn[Cn.ExtraData=21]="ExtraData",Cn))();const Ua="en-US";let Gh=Ua;function Rc(e,t,n,i,o){if(e=me(e),Array.isArray(e))for(let s=0;s<e.length;s++)Rc(e[s],t,n,i,o);else{const s=Vn(),d=Tt();let g=ds(e)?e:me(e.provide),v=ff(e);const R=mr(),G=1048575&R.providerIndexes,Me=R.directiveStart,Ze=R.providerIndexes>>20;if(ds(e)||!e.multi){const ut=new c(v,o,ta),It=Lc(g,t,o?G:G+Ze,Me);-1===It?(so(jr(R,d),s,g),Fc(s,e,t.length),t.push(g),R.directiveStart++,R.directiveEnd++,o&&(R.providerIndexes+=1048576),n.push(ut),d.push(ut)):(n[It]=ut,d[It]=ut)}else{const ut=Lc(g,t,G+Ze,Me),It=Lc(g,t,G,G+Ze),$t=ut>=0&&n[ut],Kt=It>=0&&n[It];if(o&&!Kt||!o&&!$t){so(jr(R,d),s,g);const on=function Zb(e,t,n,i,o){const s=new c(e,n,ta);return s.multi=[],s.index=t,s.componentProviders=0,gp(s,o,i&&!n),s}(o?qb:Xb,n.length,o,i,v);!o&&Kt&&(n[It].providerFactory=on),Fc(s,e,t.length,0),t.push(g),R.directiveStart++,R.directiveEnd++,o&&(R.providerIndexes+=1048576),n.push(on),d.push(on)}else Fc(s,e,ut>-1?ut:It,gp(n[o?It:ut],v,!o&&i));!o&&i&&Kt&&n[It].componentProviders++}}}function Fc(e,t,n,i){const o=ds(t),s=function wv(e){return!!e.useClass}(t);if(o||s){const v=(s?me(t.useClass):t).prototype.ngOnDestroy;if(v){const R=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const G=R.indexOf(n);-1===G?R.push(n,[i,v]):R[G+1].push(i,v)}else R.push(n,v)}}}function gp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Lc(e,t,n,i){for(let o=n;o<i;o++)if(t[o]===e)return o;return-1}function Xb(e,t,n,i){return Nc(this.multi,[])}function qb(e,t,n,i){const o=this.multi;let s;if(this.providerFactory){const d=this.providerFactory.componentProviders,g=f(n,n[1],this.providerFactory.index,i);s=g.slice(0,d),Nc(o,s);for(let v=d;v<g.length;v++)s.push(g[v])}else s=[],Nc(o,s);return s}function Nc(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function mp(e,t=[]){return n=>{n.providersResolver=(i,o)=>function Qb(e,t,n){const i=Vn();if(i.firstCreatePass){const o=ur(e);Rc(n,i.data,i.blueprint,o,!0),Rc(t,i.data,i.blueprint,o,!1)}}(i,o?o(e):e,t)}}class yp{}class t_{resolveComponentFactory(t){throw function e_(e){const t=Error(`No component factory found for ${$e(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Ka=(()=>{class e{}return e.NULL=new t_,e})();function n_(){return As(mr(),Tt())}function As(e,t){return new aa(Bt(e,t))}let aa=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=n_,e})();function r_(e){return e instanceof aa?e.nativeElement:e}class bp{}let i_=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function s_(){const e=Tt(),n=W(mr().index,e);return function o_(e){return e[L]}(dn(n)?n:e)}(),e})(),a_=(()=>{class e{}return e.\u0275prov=Nt({token:e,providedIn:"root",factory:()=>null}),e})();class _p{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const l_=new _p("13.3.12"),kc={};function Qa(e,t,n,i,o=!1){for(;null!==n;){const s=t[n.index];if(null!==s&&i.push(w(s)),hn(s))for(let g=10;g<s.length;g++){const v=s[g],R=v[1].firstChild;null!==R&&Qa(v[1],v,R,i)}const d=n.type;if(8&d)Qa(e,t,n.child,i);else if(32&d){const g=hl(n,t);let v;for(;v=g();)i.push(v)}else if(16&d){const g=id(t,n);if(Array.isArray(g))i.push(...g);else{const v=Gs(t[16]);Qa(v[1],v,g,i,!0)}}n=o?n.projectionNext:n.next}return i}class la{constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,n=t[1];return Qa(n,t,n.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(hn(t)){const n=t[8],i=n?n.indexOf(this):-1;i>-1&&(vl(t,i),ga(n,i))}this._attachedToViewContainer=!1}Qu(this._lView[1],this._lView)}onDestroy(t){Wd(this._lView[1],this._lView,null,t)}markForCheck(){Zl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function ec(e,t,n){const i=t[10];i.begin&&i.begin();try{cs(e,t,e.template,n)}catch(o){throw sf(t,o),o}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new je(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function wm(e,t){Ws(e,t,t[L],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new je(902,"");this._appRef=t}}class c_ extends la{constructor(t){super(t),this._view=t}detectChanges(){tf(this._view)}checkNoChanges(){}get context(){return null}}class Ep extends Ka{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=de(t);return new Bc(n,this.ngModule)}}function Cp(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class Bc extends yp{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function xy(e){return e.map(Ty).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Cp(this.componentDef.inputs)}get outputs(){return Cp(this.componentDef.outputs)}create(t,n,i,o){const s=(o=o||this.ngModule)?function d_(e,t){return{get:(n,i,o)=>{const s=e.get(n,kc,o);return s!==kc||i===kc?s:t.get(n,i,o)}}}(t,o.injector):t,d=s.get(bp,T),g=s.get(a_,null),v=d.createRenderer(null,this.componentDef),R=this.componentDef.selectors[0][0]||"div",G=i?function Gd(e,t,n){if(a(e))return e.selectRootElement(t,n===bn.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(v,i,this.componentDef.encapsulation):yl(d.createRenderer(null,this.componentDef),R,function u_(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?A:null}(R)),Me=this.componentDef.onPush?576:528,Ze=function Df(e,t){return{components:[],scheduler:e||by,clean:pv,playerHandler:t||null,flags:0}}(),ut=xa(0,null,null,1,0,null,null,null,null,null),It=Xs(null,ut,Ze,Me,null,null,d,v,g,s);let $t,Kt;yo(It);try{const on=function Cf(e,t,n,i,o,s){const d=n[1];n[20]=e;const v=as(d,20,2,"#host",null),R=v.mergedAttrs=t.hostAttrs;null!==R&&(Oa(v,R,!0),null!==e&&(zt(o,e,R),null!==v.classes&&Dl(o,e,v.classes),null!==v.styles&&sd(o,e,v.styles)));const G=i.createRenderer(e,t),Me=Xs(n,Ud(t),null,t.onPush?64:16,n[20],v,i,G,s||null,null);return d.firstCreatePass&&(so(jr(v,n),d,t.type),qd(d,v),Zd(v,n.length,1)),Pa(n,Me),n[20]=Me}(G,this.componentDef,It,d,v);if(G)if(i)zt(v,G,["ng-version",l_.full]);else{const{attrs:Pt,classes:vn}=function Py(e){const t=[],n=[];let i=1,o=2;for(;i<e.length;){let s=e[i];if("string"==typeof s)2===o?""!==s&&t.push(s,e[++i]):8===o&&n.push(s);else{if(!Oi(o))break;o=s}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);Pt&&zt(v,G,Pt),vn&&vn.length>0&&Dl(v,G,vn.join(" "))}if(Kt=E(ut,20),void 0!==n){const Pt=Kt.projection=[];for(let vn=0;vn<this.ngContentSelectors.length;vn++){const Qn=n[vn];Pt.push(null!=Qn?Array.from(Qn):null)}}$t=function wf(e,t,n,i,o){const s=n[1],d=function Zy(e,t,n){const i=mr();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Jd(e,i,t,ls(e,t,1,null),n));const o=f(t,e,i.directiveStart,i);Qr(o,t);const s=Bt(i,t);return s&&Qr(s,t),o}(s,n,t);if(i.components.push(d),e[8]=d,o&&o.forEach(v=>v(d,t)),t.contentQueries){const v=mr();t.contentQueries(1,d,v.directiveStart)}const g=mr();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(wi(g.index),Qd(n[1],g,0,g.directiveStart,g.directiveEnd,t),Xd(t,d)),d}(on,this.componentDef,It,Ze,[Fv]),qs(ut,It,null)}finally{Gi()}return new h_(this.componentType,$t,As(Kt,It),It,Kt)}}class h_ extends class Jb{}{constructor(t,n,i,o,s){super(),this.location=i,this._rootLView=o,this._tNode=s,this.instance=n,this.hostView=this.changeDetectorRef=new c_(o),this.componentType=t}get injector(){return new Oe(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class Ms{}class wp{}const Is=new Map;class Ap extends Ms{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Ep(this);const i=dt(t);this._bootstrapComponents=Qi(i.bootstrap),this._r3Injector=df(t,n,[{provide:Ms,useValue:this},{provide:Ka,useValue:this.componentFactoryResolver}],$e(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=qi.THROW_IF_NOT_FOUND,i=oe.Default){return t===qi||t===Ms||t===nc?this:this._r3Injector.get(t,n,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class $c extends wp{constructor(t){super(),this.moduleType=t,null!==dt(t)&&function g_(e){const t=new Set;!function n(i){const o=dt(i,!0),s=o.id;null!==s&&(function Dp(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${$e(t)} vs ${$e(t.name)}`)}(s,Is.get(s),i),Is.set(s,i));const d=Qi(o.imports);for(const g of d)t.has(g)||(t.add(g),n(g))}(e)}(t)}create(t){return new Ap(this.moduleType,t)}}function Mp(e,t,n){const i=Ar()+e,o=Tt();return o[i]===Rn?Zi(o,i,n?t.call(n):t()):function ea(e,t){return e[t]}(o,i)}function Ip(e,t,n,i){return xp(Tt(),Ar(),e,t,n,i)}function Tp(e,t,n,i,o){return Pp(Tt(),Ar(),e,t,n,i,o)}function ca(e,t){const n=e[t];return n===Rn?void 0:n}function xp(e,t,n,i,o,s){const d=t+n;return Xr(e,d,o)?Zi(e,d+1,s?i.call(s,o):i(o)):ca(e,d+1)}function Pp(e,t,n,i,o,s,d){const g=t+n;return Bo(e,g,o,s)?Zi(e,g+2,d?i.call(d,o,s):i(o,s)):ca(e,g+2)}function Lp(e,t){const n=Vn();let i;const o=e+20;n.firstCreatePass?(i=function w_(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}}(t,n.pipeRegistry),n.data[o]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,i.onDestroy)):i=n.data[o];const s=i.factory||(i.factory=Nr(i.type)),d=gt(ta);try{const g=sr(!1),v=s();return sr(g),function Wv(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(n,Tt(),o,v),v}finally{gt(d)}}function Np(e,t,n){const i=e+20,o=Tt(),s=b(o,i);return ua(o,i)?xp(o,Ar(),t,s.transform,n,s):s.transform(n)}function kp(e,t,n,i){const o=e+20,s=Tt(),d=b(s,o);return ua(s,o)?Pp(s,Ar(),t,d.transform,n,i,d):d.transform(n,i)}function Bp(e,t,n,i,o){const s=e+20,d=Tt(),g=b(d,s);return ua(d,s)?function Op(e,t,n,i,o,s,d,g){const v=t+n;return Fa(e,v,o,s,d)?Zi(e,v+3,g?i.call(g,o,s,d):i(o,s,d)):ca(e,v+3)}(d,Ar(),t,g.transform,n,i,o,g):g.transform(n,i,o)}function ua(e,t){return e[1].data[t].pure}function Vc(e){return t=>{setTimeout(e,void 0,t)}}const eo=class A_ extends r.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){var o,s,d;let g=t,v=n||(()=>null),R=i;if(t&&"object"==typeof t){const Me=t;g=null===(o=Me.next)||void 0===o?void 0:o.bind(Me),v=null===(s=Me.error)||void 0===s?void 0:s.bind(Me),R=null===(d=Me.complete)||void 0===d?void 0:d.bind(Me)}this.__isAsync&&(v=Vc(v),g&&(g=Vc(g)),R&&(R=Vc(R)));const G=super.subscribe({next:g,error:v,complete:R});return t instanceof m.w&&t.add(G),G}};function M_(){return this._results[fs()]()}class Hc{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=fs(),i=Hc.prototype;i[n]||(i[n]=M_)}get changes(){return this._changes||(this._changes=new eo)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const i=this;i.dirty=!1;const o=Di(t);(this._changesDetected=!function $g(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){let o=e[i],s=t[i];if(n&&(o=n(o),s=n(s)),s!==o)return!1}return!0}(i._results,o,n))&&(i._results=o,i.length=o.length,i.last=o[this.length-1],i.first=o[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let da=(()=>{class e{}return e.__NG_ELEMENT_ID__=x_,e})();const I_=da,T_=class extends I_{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(t){const n=this._declarationTContainer.tViews,i=Xs(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(n)),qs(n,i,t),new la(i)}};function x_(){return Xa(mr(),Tt())}function Xa(e,t){return 4&e.type?new T_(t,e,As(e,t)):null}let qa=(()=>{class e{}return e.__NG_ELEMENT_ID__=P_,e})();function P_(){return Hp(mr(),Tt())}const O_=qa,$p=class extends O_{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return As(this._hostTNode,this._hostLView)}get injector(){return new Oe(this._hostTNode,this._hostLView)}get parentInjector(){const t=li(this._hostTNode,this._hostLView);if(Mn(t)){const n=kn(t,this._hostLView),i=Hn(t);return new Oe(n[1].data[i+8],n)}return new Oe(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Vp(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,i){const o=t.createEmbeddedView(n||{});return this.insert(o,i),o}createComponent(t,n,i,o,s){const d=t&&!function Ns(e){return"function"==typeof e}(t);let g;if(d)g=n;else{const Me=n||{};g=Me.index,i=Me.injector,o=Me.projectableNodes,s=Me.ngModuleRef}const v=d?t:new Bc(de(t)),R=i||this.parentInjector;if(!s&&null==v.ngModule){const Ze=(d?R:this.parentInjector).get(Ms,null);Ze&&(s=Ze)}const G=v.create(R,o,void 0,s);return this.insert(G.hostView,g),G}insert(t,n){const i=t._lView,o=i[1];if(function $n(e){return hn(e[3])}(i)){const G=this.indexOf(t);if(-1!==G)this.detach(G);else{const Me=i[3],Ze=new $p(Me,Me[6],Me[3]);Ze.detach(Ze.indexOf(t))}}const s=this._adjustIndex(n),d=this._lContainer;!function Sm(e,t,n,i){const o=10+i,s=n.length;i>0&&(n[o-1][4]=t),i<s-10?(t[4]=n[o],Du(n,10+i,t)):(n.push(t),t[4]=null),t[3]=n;const d=t[17];null!==d&&n!==d&&function Am(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(d,t);const g=t[19];null!==g&&g.insertView(e),t[2]|=128}(o,i,d,s);const g=El(s,d),v=i[L],R=_a(v,d[7]);return null!==R&&function Cm(e,t,n,i,o,s){i[0]=o,i[6]=t,Ws(e,i,n,1,o,s)}(o,d[6],v,i,R,g),t.attachToViewContainerRef(),Du(jc(d),s,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Vp(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),i=vl(this._lContainer,n);i&&(ga(jc(this._lContainer),n),Qu(i[1],i))}detach(t){const n=this._adjustIndex(t,-1),i=vl(this._lContainer,n);return i&&null!=ga(jc(this._lContainer),n)?new la(i):null}_adjustIndex(t,n=0){return null==t?this.length+n:t}};function Vp(e){return e[8]}function jc(e){return e[8]||(e[8]=[])}function Hp(e,t){let n;const i=t[e.index];if(hn(i))n=i;else{let o;if(8&e.type)o=w(i);else{const s=t[L];o=s.createComment("");const d=Bt(e,t);Lo(s,_a(s,d),o,function xm(e,t){return a(e)?e.nextSibling(t):t.nextSibling}(s,d),!1)}t[e.index]=n=ef(i,t,o,e),Pa(t,n)}return new $p(n,e,t)}class Uc{constructor(t){this.queryList=t,this.matches=null}clone(){return new Uc(this.queryList)}setDirty(){this.queryList.setDirty()}}class zc{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const i=null!==t.contentQueries?t.contentQueries[0]:n.length,o=[];for(let s=0;s<i;s++){const d=n.getByIndex(s);o.push(this.queries[d.indexInDeclarationView].clone())}return new zc(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==Xp(t,n).matches&&this.queries[n].setDirty()}}class jp{constructor(t,n,i=null){this.predicate=t,this.flags=n,this.read=i}}class Gc{constructor(t=[]){this.queries=t}elementStart(t,n){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let i=0;i<this.length;i++){const o=null!==n?n.length:0,s=this.getByIndex(i).embeddedTView(t,o);s&&(s.indexInDeclarationView=i,null!==n?n.push(s):n=[s])}return null!==n?new Gc(n):null}template(t,n){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Wc{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new Wc(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==n;)i=i.parent;return n===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const i=this.metadata.predicate;if(Array.isArray(i))for(let o=0;o<i.length;o++){const s=i[o];this.matchTNodeWithReadOption(t,n,L_(n,s)),this.matchTNodeWithReadOption(t,n,h(n,t,s,!1,!1))}else i===da?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,h(n,t,i,!1,!1))}matchTNodeWithReadOption(t,n,i){if(null!==i){const o=this.metadata.read;if(null!==o)if(o===aa||o===qa||o===da&&4&n.type)this.addMatch(n.index,-2);else{const s=h(n,t,o,!1,!1);null!==s&&this.addMatch(n.index,s)}else this.addMatch(n.index,i)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function L_(e,t){const n=e.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function k_(e,t,n,i){return-1===n?function N_(e,t){return 11&e.type?As(e,t):4&e.type?Xa(e,t):null}(t,e):-2===n?function B_(e,t,n){return n===aa?As(t,e):n===da?Xa(t,e):n===qa?Hp(t,e):void 0}(e,t,i):f(e,e[1],n,t)}function Up(e,t,n,i){const o=t[19].queries[i];if(null===o.matches){const s=e.data,d=n.matches,g=[];for(let v=0;v<d.length;v+=2){const R=d[v];g.push(R<0?null:k_(t,s[R],d[v+1],n.metadata.read))}o.matches=g}return o.matches}function Yc(e,t,n,i){const o=e.queries.getByIndex(n),s=o.matches;if(null!==s){const d=Up(e,t,o,n);for(let g=0;g<s.length;g+=2){const v=s[g];if(v>0)i.push(d[g/2]);else{const R=s[g+1],G=t[-v];for(let Me=10;Me<G.length;Me++){const Ze=G[Me];Ze[17]===Ze[3]&&Yc(Ze[1],Ze,R,i)}if(null!==G[9]){const Me=G[9];for(let Ze=0;Ze<Me.length;Ze++){const ut=Me[Ze];Yc(ut[1],ut,R,i)}}}}}return i}function zp(e){const t=Tt(),n=Vn(),i=go();mo(i+1);const o=Xp(n,i);if(e.dirty&&bt(t)===(2==(2&o.metadata.flags))){if(null===o.matches)e.reset([]);else{const s=o.crossesNgTemplate?Yc(n,t,i,[]):Up(n,t,o,i);e.reset(s,r_),e.notifyOnChanges()}return!0}return!1}function Gp(e,t,n){const i=Vn();i.firstCreatePass&&(Qp(i,new jp(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),Kp(i,Tt(),t)}function Wp(e,t,n,i){const o=Vn();if(o.firstCreatePass){const s=mr();Qp(o,new jp(t,n,i),s.index),function V_(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(o,e),2==(2&n)&&(o.staticContentQueries=!0)}Kp(o,Tt(),n)}function Yp(){return function $_(e,t){return e[19].queries[t].queryList}(Tt(),go())}function Kp(e,t,n){const i=new Hc(4==(4&n));Wd(e,t,i,i.destroy),null===t[19]&&(t[19]=new zc),t[19].queries.push(new Uc(i))}function Qp(e,t,n){null===e.queries&&(e.queries=new Gc),e.queries.track(new Wc(t,n))}function Xp(e,t){return e.queries.getByIndex(t)}function qp(e,t){return Xa(e,t)}function el(...e){}const pg=new dr("Application Initializer");let Jc=(()=>{class e{constructor(n){this.appInits=n,this.resolve=el,this.reject=el,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o<this.appInits.length;o++){const s=this.appInits[o]();if(_c(s))n.push(s);else if(Xf(s)){const d=new Promise((g,v)=>{s.subscribe({complete:g,error:v})});n.push(d)}}Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),0===n.length&&i(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(Ur(pg,8))},e.\u0275prov=Nt({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const gg=new dr("AppId",{providedIn:"root",factory:function mg(){return`${eu()}${eu()}${eu()}`}});function eu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const yg=new dr("Platform Initializer"),rE=new dr("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),vg=new dr("appBootstrapListener");let iE=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Nt({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const tu=new dr("LocaleId",{providedIn:"root",factory:()=>Ou(tu,oe.Optional|oe.SkipSelf)||function oE(){return"undefined"!=typeof $localize&&$localize.locale||Ua}()}),sE=new dr("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class aE{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let lE=(()=>{class e{compileModuleSync(n){return new $c(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const i=this.compileModuleSync(n),s=Qi(dt(n).declarations).reduce((d,g)=>{const v=de(g);return v&&d.push(new Bc(v)),d},[]);return new aE(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Nt({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const uE=(()=>Promise.resolve(0))();function nu(e){"undefined"==typeof Zone?uE.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Bi{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new eo(!1),this.onMicrotaskEmpty=new eo(!1),this.onStable=new eo(!1),this.onError=new eo(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!i&&n,o.shouldCoalesceRunChangeDetection=i,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function dE(){let e=un.requestAnimationFrame,t=un.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function pE(e){const t=()=>{!function hE(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(un,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,iu(e),e.isCheckStableRunning=!0,ru(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),iu(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,o,s,d,g)=>{try{return bg(e),n.invokeTask(o,s,d,g)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),_g(e)}},onInvoke:(n,i,o,s,d,g,v)=>{try{return bg(e),n.invoke(o,s,d,g,v)}finally{e.shouldCoalesceRunChangeDetection&&t(),_g(e)}},onHasTask:(n,i,o,s)=>{n.hasTask(o,s),i===o&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,iu(e),ru(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,i,o,s)=>(n.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(o)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Bi.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Bi.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,o){const s=this._inner,d=s.scheduleEventTask("NgZoneEvent: "+o,t,fE,el,el);try{return s.runTask(d,n,i)}finally{s.cancelTask(d)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const fE={};function ru(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function iu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function bg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function _g(e){e._nesting--,ru(e)}class gE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new eo,this.onMicrotaskEmpty=new eo,this.onStable=new eo,this.onError=new eo}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,o){return t.apply(n,i)}}let Eg=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Bi.assertNotInAngularZone(),nu(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())nu(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(d=>d.timeoutId!==s),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,i,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(Ur(Bi))},e.\u0275prov=Nt({token:e,factory:e.\u0275fac}),e})(),mE=(()=>{class e{constructor(){this._applications=new Map,ou.addToWindow(this)}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return ou.findTestabilityInTree(this,n,i)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Nt({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();class yE{addToWindow(t){}findTestabilityInTree(t,n,i){return null}}function vE(e){ou=e}let ou=new yE,Vo=null;const Cg=new dr("AllowMultipleToken"),wg=new dr("PlatformOnDestroy");class EE{constructor(t,n){this.name=t,this.token=n}}function Dg(e,t,n=[]){const i=`Platform: ${t}`,o=new dr(i);return(s=[])=>{let d=su();if(!d||d.injector.get(Cg,!1)){const g=[...n,...s,{provide:o,useValue:!0}];e?e(g):function CE(e){if(Vo&&!Vo.get(Cg,!1))throw new je(400,"");Vo=e;const t=e.get(Sg),n=e.get(yg,null);n&&n.forEach(i=>i())}(function DE(e=[],t){return qi.create({name:t,providers:[{provide:rc,useValue:"platform"},{provide:wg,useValue:()=>Vo=null},...e]})}(g,i))}return function wE(e){const t=su();if(!t)throw new je(401,"");return t}()}}function su(){var e;return null!==(e=null==Vo?void 0:Vo.get(Sg))&&void 0!==e?e:null}let Sg=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const g=function SE(e,t){let n;return n="noop"===e?new gE:("zone.js"===e?void 0:e)||new Bi({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),v=[{provide:Bi,useValue:g}];return g.run(()=>{const R=qi.create({providers:v,parent:this.injector,name:n.moduleType.name}),G=n.create(R),Me=G.injector.get(Aa,null);if(!Me)throw new je(402,"");return g.runOutsideAngular(()=>{const Ze=g.onError.subscribe({next:ut=>{Me.handleError(ut)}});G.onDestroy(()=>{lu(this._modules,G),Ze.unsubscribe()})}),function AE(e,t,n){try{const i=n();return _c(i)?i.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(Me,g,()=>{const Ze=G.injector.get(Jc);return Ze.runInitializers(),Ze.donePromise.then(()=>(function ib(e){qe(e,"Expected localeId to be defined"),"string"==typeof e&&(Gh=e.toLowerCase().replace(/_/g,"-"))}(G.injector.get(tu,Ua)||Ua),this._moduleDoBootstrap(G),G))})})}bootstrapModule(n,i=[]){const o=Ag({},i);return function bE(e,t,n){const i=new $c(n);return Promise.resolve(i)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(n){const i=n.injector.get(au);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>i.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new je(403,"");n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new je(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const n=this._injector.get(wg,null);null==n||n(),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(Ur(qi))},e.\u0275prov=Nt({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function Ag(e,t){return Array.isArray(t)?t.reduce(Ag,e):Object.assign(Object.assign({},e),t)}let au=(()=>{class e{constructor(n,i,o,s){this._zone=n,this._injector=i,this._exceptionHandler=o,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const d=new D.y(v=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{v.next(this._stable),v.complete()})}),g=new D.y(v=>{let R;this._zone.runOutsideAngular(()=>{R=this._zone.onStable.subscribe(()=>{Bi.assertNotInAngularZone(),nu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,v.next(!0))})})});const G=this._zone.onUnstable.subscribe(()=>{Bi.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{v.next(!1)}))});return()=>{R.unsubscribe(),G.unsubscribe()}});this.isStable=function P(...e){let t=Number.POSITIVE_INFINITY,n=null,i=e[e.length-1];return(0,j.K)(i)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof i&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof D.y?e[0]:(0,U.J)(t)((0,V.n)(e,n))}(d,g.pipe(function Y(){return e=>(0,ee.x)()(function q(e,t){return function(i){let o;if(o="function"==typeof e?e:function(){return e},"function"==typeof t)return i.lift(new Q(o,t));const s=Object.create(i,F.N);return s.source=i,s.subjectFactory=o,s}}(ne)(e))}()))}bootstrap(n,i){if(!this._initStatus.done)throw new je(405,"");let o;o=n instanceof yp?n:this._injector.get(Ka).resolveComponentFactory(n),this.componentTypes.push(o.componentType);const s=function _E(e){return e.isBoundToModule}(o)?void 0:this._injector.get(Ms),g=o.create(qi.NULL,[],i||o.selector,s),v=g.location.nativeElement,R=g.injector.get(Eg,null),G=R&&g.injector.get(mE);return R&&G&&G.registerApplication(v,R),g.onDestroy(()=>{this.detachView(g.hostView),lu(this.components,g),G&&G.unregisterApplication(v)}),this._loadComponent(g),g}tick(){if(this._runningTick)throw new je(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;lu(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(vg,[]).concat(this._bootstrapListeners).forEach(o=>o(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(Ur(Bi),Ur(qi),Ur(Aa),Ur(Jc))},e.\u0275prov=Nt({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function lu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Ig=!0,Tg=!1;function IE(){return Tg=!0,Ig}function TE(){if(Tg)throw new Error("Cannot enable prod mode after platform setup.");Ig=!1}let xE=(()=>{class e{}return e.__NG_ELEMENT_ID__=PE,e})();function PE(e){return function OE(e,t,n){if(qn(e)&&!n){const i=W(e.index,t);return new la(i,i)}return 47&e.type?new la(t[16],t):null}(mr(),Tt(),16==(16&e))}class Rg{constructor(){}supports(t){return Js(t)}create(t){return new BE(t)}}const kE=(e,t)=>t;class BE{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||kE}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,o=0,s=null;for(;n||i;){const d=!i||n&&n.currentIndex<Lg(i,o,s)?n:i,g=Lg(d,o,s),v=d.currentIndex;if(d===i)o--,i=i._nextRemoved;else if(n=n._next,null==d.previousIndex)o++;else{s||(s=[]);const R=g-o,G=v-o;if(R!=G){for(let Ze=0;Ze<R;Ze++){const ut=Ze<s.length?s[Ze]:s[Ze]=0,It=ut+Ze;G<=It&&It<R&&(s[Ze]=ut+1)}s[d.previousIndex]=G-R}}g!==v&&t(d,g,v)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!Js(t))throw new je(900,"");return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let o,s,d,n=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let g=0;g<this.length;g++)s=t[g],d=this._trackByFn(g,s),null!==n&&Object.is(n.trackById,d)?(i&&(n=this._verifyReinsertion(n,s,d,g)),Object.is(n.item,s)||this._addIdentityChange(n,s)):(n=this._mismatch(n,s,d,g),i=!0),n=n._next}else o=0,function zv(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[fs()]();let i;for(;!(i=n.next()).done;)t(i.value)}}(t,g=>{d=this._trackByFn(o,g),null!==n&&Object.is(n.trackById,d)?(i&&(n=this._verifyReinsertion(n,g,d,o)),Object.is(n.item,g)||this._addIdentityChange(n,g)):(n=this._mismatch(n,g,d,o),i=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,i,o){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,s,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,s,o)):t=this._addAfter(new $E(n,i),s,o),t}_verifyReinsertion(t,n,i,o){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,s=t._nextRemoved;return null===o?this._removalsHead=s:o._nextRemoved=s,null===s?this._removalsTail=o:s._prevRemoved=o,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Fg),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Fg),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class $E{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class VE{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class Fg{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new VE,this.map.set(n,i)),i.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Lg(e,t,n){const i=e.previousIndex;if(null===i)return i;let o=0;return n&&i<n.length&&(o=n[i]),i+t+o}class Ng{constructor(){}supports(t){return t instanceof Map||uc(t)}create(){return new HE}}class HE{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||uc(t)))throw new je(900,"")}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(i,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const s=this._getOrCreateRecordForKey(o,i);n=this._insertBeforeOrAppend(n,s)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const s=o._prev,d=o._next;return s&&(s._next=d),d&&(d._prev=s),o._next=null,o._prev=null,o}const i=new jE(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class jE{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function kg(){return new hu([new Rg])}let hu=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(null!=i){const o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||kg()),deps:[[e,new js,new Hs]]}}find(n){const i=this.factories.find(o=>o.supports(n));if(null!=i)return i;throw new je(901,"")}}return e.\u0275prov=Nt({token:e,providedIn:"root",factory:kg}),e})();function Bg(){return new pu([new Ng])}let pu=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(i){const o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Bg()),deps:[[e,new js,new Hs]]}}find(n){const i=this.factories.find(s=>s.supports(n));if(i)return i;throw new je(901,"")}}return e.\u0275prov=Nt({token:e,providedIn:"root",factory:Bg}),e})();const GE=Dg(null,"core",[]);let WE=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(Ur(au))},e.\u0275mod=sn({type:e}),e.\u0275inj=Bn({}),e})()},3075:(Ct,ae,p)=>{"use strict";p.d(ae,{Fj:()=>ce,JJ:()=>xe,JU:()=>F,NI:()=>Tn,On:()=>st,UX:()=>X,a5:()=>Zt,nD:()=>te,u5:()=>w});var r=p(2096),m=p(9808),D=p(5254),j=p(567),U=p(4850);let V=(()=>{class S{constructor(b,W){this._renderer=b,this._elementRef=W,this.onChange=bt=>{},this.onTouched=()=>{}}setProperty(b,W){this._renderer.setProperty(this._elementRef.nativeElement,b,W)}registerOnTouched(b){this.onTouched=b}registerOnChange(b){this.onChange=b}setDisabledState(b){this.setProperty("disabled",b)}}return S.\u0275fac=function(b){return new(b||S)(r.Y36(r.Qsj),r.Y36(r.SBq))},S.\u0275dir=r.lG2({type:S}),S})(),P=(()=>{class S extends V{}return S.\u0275fac=function(){let E;return function(W){return(E||(E=r.n5z(S)))(W||S)}}(),S.\u0275dir=r.lG2({type:S,features:[r.qOj]}),S})();const F=new r.OlP("NgValueAccessor"),ee={provide:F,useExisting:(0,r.Gpc)(()=>ce),multi:!0},Y=new r.OlP("CompositionEventMode");let ce=(()=>{class S extends V{constructor(b,W,bt){super(b,W),this._compositionMode=bt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function ne(){const S=(0,m.q)()?(0,m.q)().getUserAgent():"";return/android (\d+)/.test(S.toLowerCase())}())}writeValue(b){this.setProperty("value",null==b?"":b)}_handleInput(b){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(b)}_compositionStart(){this._composing=!0}_compositionEnd(b){this._composing=!1,this._compositionMode&&this.onChange(b)}}return S.\u0275fac=function(b){return new(b||S)(r.Y36(r.Qsj),r.Y36(r.SBq),r.Y36(Y,8))},S.\u0275dir=r.lG2({type:S,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(b,W){1&b&&r.NdJ("input",function(Wt){return W._handleInput(Wt.target.value)})("blur",function(){return W.onTouched()})("compositionstart",function(){return W._compositionStart()})("compositionend",function(Wt){return W._compositionEnd(Wt.target.value)})},features:[r._Bn([ee]),r.qOj]}),S})();const ye=new r.OlP("NgValidators"),De=new r.OlP("NgAsyncValidators");function we(S){return null}function re(S){return null!=S}function z(S){const E=(0,r.QGY)(S)?(0,D.D)(S):S;return(0,r.CqO)(E),E}function N(S){let E={};return S.forEach(b=>{E=null!=b?Object.assign(Object.assign({},E),b):E}),0===Object.keys(E).length?null:E}function pe(S,E){return E.map(b=>b(S))}function le(S){return S.map(E=>function ve(S){return!S.validate}(E)?E:b=>E.validate(b))}function Ae(S){return null!=S?function he(S){if(!S)return null;const E=S.filter(re);return 0==E.length?null:function(b){return N(pe(b,E))}}(le(S)):null}function Re(S){return null!=S?function be(S){if(!S)return null;const E=S.filter(re);return 0==E.length?null:function(b){const W=pe(b,E).map(z);return(0,j.D)(W).pipe((0,U.U)(N))}}(le(S)):null}function H(S,E){return null===S?[E]:Array.isArray(S)?[...S,E]:[S,E]}function it(S){return S?Array.isArray(S)?S:[S]:[]}function qe(S,E){return Array.isArray(S)?S.includes(E):S===E}function lt(S,E){const b=it(E);return it(S).forEach(bt=>{qe(b,bt)||b.push(bt)}),b}function Mt(S,E){return it(E).filter(b=>!qe(S,b))}class Vt{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(E){this._rawValidators=E||[],this._composedValidatorFn=Ae(this._rawValidators)}_setAsyncValidators(E){this._rawAsyncValidators=E||[],this._composedAsyncValidatorFn=Re(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(E){this._onDestroyCallbacks.push(E)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(E=>E()),this._onDestroyCallbacks=[]}reset(E){this.control&&this.control.reset(E)}hasError(E,b){return!!this.control&&this.control.hasError(E,b)}getError(E,b){return this.control?this.control.getError(E,b):null}}class Zt extends Vt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Nt extends Vt{get formDirective(){return null}get path(){return null}}let xe=(()=>{class S extends class wn{constructor(E){this._cd=E}is(E){var b,W,bt;return"submitted"===E?!!(null===(b=this._cd)||void 0===b?void 0:b.submitted):!!(null===(bt=null===(W=this._cd)||void 0===W?void 0:W.control)||void 0===bt?void 0:bt[E])}}{constructor(b){super(b)}}return S.\u0275fac=function(b){return new(b||S)(r.Y36(Zt,2))},S.\u0275dir=r.lG2({type:S,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(b,W){2&b&&r.ekj("ng-untouched",W.is("untouched"))("ng-touched",W.is("touched"))("ng-pristine",W.is("pristine"))("ng-dirty",W.is("dirty"))("ng-valid",W.is("valid"))("ng-invalid",W.is("invalid"))("ng-pending",W.is("pending"))},features:[r.qOj]}),S})();function Yt(S,E){(function un(S,E){const b=function k(S){return S._rawValidators}(S);null!==E.validator?S.setValidators(H(b,E.validator)):"function"==typeof b&&S.setValidators([b]);const W=function Ue(S){return S._rawAsyncValidators}(S);null!==E.asyncValidator?S.setAsyncValidators(H(W,E.asyncValidator)):"function"==typeof W&&S.setAsyncValidators([W]);const bt=()=>S.updateValueAndValidity();yn(E._rawValidators,bt),yn(E._rawAsyncValidators,bt)})(S,E),E.valueAccessor.writeValue(S.value),function yr(S,E){E.valueAccessor.registerOnChange(b=>{S._pendingValue=b,S._pendingChange=!0,S._pendingDirty=!0,"change"===S.updateOn&&Sn(S,E)})}(S,E),function Un(S,E){const b=(W,bt)=>{E.valueAccessor.writeValue(W),bt&&E.viewToModelUpdate(W)};S.registerOnChange(b),E._registerOnDestroy(()=>{S._unregisterOnChange(b)})}(S,E),function nn(S,E){E.valueAccessor.registerOnTouched(()=>{S._pendingTouched=!0,"blur"===S.updateOn&&S._pendingChange&&Sn(S,E),"submit"!==S.updateOn&&S.markAsTouched()})}(S,E),function gr(S,E){if(E.valueAccessor.setDisabledState){const b=W=>{E.valueAccessor.setDisabledState(W)};S.registerOnDisabledChange(b),E._registerOnDestroy(()=>{S._unregisterOnDisabledChange(b)})}}(S,E)}function yn(S,E){S.forEach(b=>{b.registerOnValidatorChange&&b.registerOnValidatorChange(E)})}function Sn(S,E){S._pendingDirty&&S.markAsDirty(),S.setValue(S._pendingValue,{emitModelToViewChange:!1}),E.viewToModelUpdate(S._pendingValue),S._pendingChange=!1}function Ht(S,E){const b=S.indexOf(E);b>-1&&S.splice(b,1)}const Le="VALID",ge="INVALID",$="PENDING",de="DISABLED";function Ve(S){return(Rt(S)?S.validators:S)||null}function dt(S){return Array.isArray(S)?Ae(S):S||null}function _t(S,E){return(Rt(E)?E.asyncValidators:S)||null}function Gt(S){return Array.isArray(S)?Re(S):S||null}function Rt(S){return null!=S&&!Array.isArray(S)&&"object"==typeof S}const en=S=>S instanceof jn;function tn(S){return(S=>S instanceof Tn)(S)?S.value:S.getRawValue()}function fn(S,E){const b=en(S),W=S.controls;if(!(b?Object.keys(W):W).length)throw new r.vHH(1e3,"");if(!W[E])throw new r.vHH(1001,"")}function Lt(S,E){en(S),S._forEachChild((W,bt)=>{if(void 0===E[bt])throw new r.vHH(1002,"")})}class ln{constructor(E,b){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=E,this._rawAsyncValidators=b,this._composedValidatorFn=dt(this._rawValidators),this._composedAsyncValidatorFn=Gt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(E){this._rawValidators=this._composedValidatorFn=E}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(E){this._rawAsyncValidators=this._composedAsyncValidatorFn=E}get parent(){return this._parent}get valid(){return this.status===Le}get invalid(){return this.status===ge}get pending(){return this.status==$}get disabled(){return this.status===de}get enabled(){return this.status!==de}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(E){this._rawValidators=E,this._composedValidatorFn=dt(E)}setAsyncValidators(E){this._rawAsyncValidators=E,this._composedAsyncValidatorFn=Gt(E)}addValidators(E){this.setValidators(lt(E,this._rawValidators))}addAsyncValidators(E){this.setAsyncValidators(lt(E,this._rawAsyncValidators))}removeValidators(E){this.setValidators(Mt(E,this._rawValidators))}removeAsyncValidators(E){this.setAsyncValidators(Mt(E,this._rawAsyncValidators))}hasValidator(E){return qe(this._rawValidators,E)}hasAsyncValidator(E){return qe(this._rawAsyncValidators,E)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(E={}){this.touched=!0,this._parent&&!E.onlySelf&&this._parent.markAsTouched(E)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(E=>E.markAllAsTouched())}markAsUntouched(E={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(b=>{b.markAsUntouched({onlySelf:!0})}),this._parent&&!E.onlySelf&&this._parent._updateTouched(E)}markAsDirty(E={}){this.pristine=!1,this._parent&&!E.onlySelf&&this._parent.markAsDirty(E)}markAsPristine(E={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(b=>{b.markAsPristine({onlySelf:!0})}),this._parent&&!E.onlySelf&&this._parent._updatePristine(E)}markAsPending(E={}){this.status=$,!1!==E.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!E.onlySelf&&this._parent.markAsPending(E)}disable(E={}){const b=this._parentMarkedDirty(E.onlySelf);this.status=de,this.errors=null,this._forEachChild(W=>{W.disable(Object.assign(Object.assign({},E),{onlySelf:!0}))}),this._updateValue(),!1!==E.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},E),{skipPristineCheck:b})),this._onDisabledChange.forEach(W=>W(!0))}enable(E={}){const b=this._parentMarkedDirty(E.onlySelf);this.status=Le,this._forEachChild(W=>{W.enable(Object.assign(Object.assign({},E),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:E.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},E),{skipPristineCheck:b})),this._onDisabledChange.forEach(W=>W(!1))}_updateAncestors(E){this._parent&&!E.onlySelf&&(this._parent.updateValueAndValidity(E),E.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(E){this._parent=E}updateValueAndValidity(E={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Le||this.status===$)&&this._runAsyncValidator(E.emitEvent)),!1!==E.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!E.onlySelf&&this._parent.updateValueAndValidity(E)}_updateTreeValidity(E={emitEvent:!0}){this._forEachChild(b=>b._updateTreeValidity(E)),this.updateValueAndValidity({onlySelf:!0,emitEvent:E.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?de:Le}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(E){if(this.asyncValidator){this.status=$,this._hasOwnPendingAsyncValidator=!0;const b=z(this.asyncValidator(this));this._asyncValidationSubscription=b.subscribe(W=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(W,{emitEvent:E})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(E,b={}){this.errors=E,this._updateControlsErrors(!1!==b.emitEvent)}get(E){return function Ie(S,E,b){if(null==E||(Array.isArray(E)||(E=E.split(b)),Array.isArray(E)&&0===E.length))return null;let W=S;return E.forEach(bt=>{W=en(W)?W.controls.hasOwnProperty(bt)?W.controls[bt]:null:(S=>S instanceof rr)(W)&&W.at(bt)||null}),W}(this,E,".")}getError(E,b){const W=b?this.get(b):this;return W&&W.errors?W.errors[E]:null}hasError(E,b){return!!this.getError(E,b)}get root(){let E=this;for(;E._parent;)E=E._parent;return E}_updateControlsErrors(E){this.status=this._calculateStatus(),E&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(E)}_initObservables(){this.valueChanges=new r.vpe,this.statusChanges=new r.vpe}_calculateStatus(){return this._allControlsDisabled()?de:this.errors?ge:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus($)?$:this._anyControlsHaveStatus(ge)?ge:Le}_anyControlsHaveStatus(E){return this._anyControls(b=>b.status===E)}_anyControlsDirty(){return this._anyControls(E=>E.dirty)}_anyControlsTouched(){return this._anyControls(E=>E.touched)}_updatePristine(E={}){this.pristine=!this._anyControlsDirty(),this._parent&&!E.onlySelf&&this._parent._updatePristine(E)}_updateTouched(E={}){this.touched=this._anyControlsTouched(),this._parent&&!E.onlySelf&&this._parent._updateTouched(E)}_isBoxedValue(E){return"object"==typeof E&&null!==E&&2===Object.keys(E).length&&"value"in E&&"disabled"in E}_registerOnCollectionChange(E){this._onCollectionChange=E}_setUpdateStrategy(E){Rt(E)&&null!=E.updateOn&&(this._updateOn=E.updateOn)}_parentMarkedDirty(E){return!E&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Tn extends ln{constructor(E=null,b,W){super(Ve(b),_t(W,b)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(E),this._setUpdateStrategy(b),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Rt(b)&&b.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(E)?E.value:E)}setValue(E,b={}){this.value=this._pendingValue=E,this._onChange.length&&!1!==b.emitModelToViewChange&&this._onChange.forEach(W=>W(this.value,!1!==b.emitViewToModelChange)),this.updateValueAndValidity(b)}patchValue(E,b={}){this.setValue(E,b)}reset(E=this.defaultValue,b={}){this._applyFormState(E),this.markAsPristine(b),this.markAsUntouched(b),this.setValue(this.value,b),this._pendingChange=!1}_updateValue(){}_anyControls(E){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(E){this._onChange.push(E)}_unregisterOnChange(E){Ht(this._onChange,E)}registerOnDisabledChange(E){this._onDisabledChange.push(E)}_unregisterOnDisabledChange(E){Ht(this._onDisabledChange,E)}_forEachChild(E){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(E){this._isBoxedValue(E)?(this.value=this._pendingValue=E.value,E.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=E}}class jn extends ln{constructor(E,b,W){super(Ve(b),_t(W,b)),this.controls=E,this._initObservables(),this._setUpdateStrategy(b),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(E,b){return this.controls[E]?this.controls[E]:(this.controls[E]=b,b.setParent(this),b._registerOnCollectionChange(this._onCollectionChange),b)}addControl(E,b,W={}){this.registerControl(E,b),this.updateValueAndValidity({emitEvent:W.emitEvent}),this._onCollectionChange()}removeControl(E,b={}){this.controls[E]&&this.controls[E]._registerOnCollectionChange(()=>{}),delete this.controls[E],this.updateValueAndValidity({emitEvent:b.emitEvent}),this._onCollectionChange()}setControl(E,b,W={}){this.controls[E]&&this.controls[E]._registerOnCollectionChange(()=>{}),delete this.controls[E],b&&this.registerControl(E,b),this.updateValueAndValidity({emitEvent:W.emitEvent}),this._onCollectionChange()}contains(E){return this.controls.hasOwnProperty(E)&&this.controls[E].enabled}setValue(E,b={}){Lt(this,E),Object.keys(E).forEach(W=>{fn(this,W),this.controls[W].setValue(E[W],{onlySelf:!0,emitEvent:b.emitEvent})}),this.updateValueAndValidity(b)}patchValue(E,b={}){null!=E&&(Object.keys(E).forEach(W=>{this.controls[W]&&this.controls[W].patchValue(E[W],{onlySelf:!0,emitEvent:b.emitEvent})}),this.updateValueAndValidity(b))}reset(E={},b={}){this._forEachChild((W,bt)=>{W.reset(E[bt],{onlySelf:!0,emitEvent:b.emitEvent})}),this._updatePristine(b),this._updateTouched(b),this.updateValueAndValidity(b)}getRawValue(){return this._reduceChildren({},(E,b,W)=>(E[W]=tn(b),E))}_syncPendingControls(){let E=this._reduceChildren(!1,(b,W)=>!!W._syncPendingControls()||b);return E&&this.updateValueAndValidity({onlySelf:!0}),E}_forEachChild(E){Object.keys(this.controls).forEach(b=>{const W=this.controls[b];W&&E(W,b)})}_setUpControls(){this._forEachChild(E=>{E.setParent(this),E._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(E){for(const b of Object.keys(this.controls)){const W=this.controls[b];if(this.contains(b)&&E(W))return!0}return!1}_reduceValue(){return this._reduceChildren({},(E,b,W)=>((b.enabled||this.disabled)&&(E[W]=b.value),E))}_reduceChildren(E,b){let W=E;return this._forEachChild((bt,Wt)=>{W=b(W,bt,Wt)}),W}_allControlsDisabled(){for(const E of Object.keys(this.controls))if(this.controls[E].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class rr extends ln{constructor(E,b,W){super(Ve(b),_t(W,b)),this.controls=E,this._initObservables(),this._setUpdateStrategy(b),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(E){return this.controls[E]}push(E,b={}){this.controls.push(E),this._registerControl(E),this.updateValueAndValidity({emitEvent:b.emitEvent}),this._onCollectionChange()}insert(E,b,W={}){this.controls.splice(E,0,b),this._registerControl(b),this.updateValueAndValidity({emitEvent:W.emitEvent})}removeAt(E,b={}){this.controls[E]&&this.controls[E]._registerOnCollectionChange(()=>{}),this.controls.splice(E,1),this.updateValueAndValidity({emitEvent:b.emitEvent})}setControl(E,b,W={}){this.controls[E]&&this.controls[E]._registerOnCollectionChange(()=>{}),this.controls.splice(E,1),b&&(this.controls.splice(E,0,b),this._registerControl(b)),this.updateValueAndValidity({emitEvent:W.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(E,b={}){Lt(this,E),E.forEach((W,bt)=>{fn(this,bt),this.at(bt).setValue(W,{onlySelf:!0,emitEvent:b.emitEvent})}),this.updateValueAndValidity(b)}patchValue(E,b={}){null!=E&&(E.forEach((W,bt)=>{this.at(bt)&&this.at(bt).patchValue(W,{onlySelf:!0,emitEvent:b.emitEvent})}),this.updateValueAndValidity(b))}reset(E=[],b={}){this._forEachChild((W,bt)=>{W.reset(E[bt],{onlySelf:!0,emitEvent:b.emitEvent})}),this._updatePristine(b),this._updateTouched(b),this.updateValueAndValidity(b)}getRawValue(){return this.controls.map(E=>tn(E))}clear(E={}){this.controls.length<1||(this._forEachChild(b=>b._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:E.emitEvent}))}_syncPendingControls(){let E=this.controls.reduce((b,W)=>!!W._syncPendingControls()||b,!1);return E&&this.updateValueAndValidity({onlySelf:!0}),E}_forEachChild(E){this.controls.forEach((b,W)=>{E(b,W)})}_updateValue(){this.value=this.controls.filter(E=>E.enabled||this.disabled).map(E=>E.value)}_anyControls(E){return this.controls.some(b=>b.enabled&&E(b))}_setUpControls(){this._forEachChild(E=>this._registerControl(E))}_allControlsDisabled(){for(const E of this.controls)if(E.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(E){E.setParent(this),E._registerOnCollectionChange(this._onCollectionChange)}}const fe={provide:Zt,useExisting:(0,r.Gpc)(()=>st)},Ke=(()=>Promise.resolve(null))();let st=(()=>{class S extends Zt{constructor(b,W,bt,Wt,$n){super(),this._changeDetectorRef=$n,this.control=new Tn,this._registered=!1,this.update=new r.vpe,this._parent=b,this._setValidators(W),this._setAsyncValidators(bt),this.valueAccessor=function Et(S,E){if(!E)return null;let b,W,bt;return Array.isArray(E),E.forEach(Wt=>{Wt.constructor===ce?b=Wt:function Ee(S){return Object.getPrototypeOf(S.constructor)===P}(Wt)?W=Wt:bt=Wt}),bt||W||b||null}(0,Wt)}ngOnChanges(b){if(this._checkForErrors(),!this._registered||"name"in b){if(this._registered&&(this._checkName(),this.formDirective)){const W=b.name.previousValue;this.formDirective.removeControl({name:W,path:this._getPath(W)})}this._setUpControl()}"isDisabled"in b&&this._updateDisabled(b),function Ye(S,E){if(!S.hasOwnProperty("model"))return!1;const b=S.model;return!!b.isFirstChange()||!Object.is(E,b.currentValue)}(b,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(b){this.viewModel=b,this.update.emit(b)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Yt(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(b){Ke.then(()=>{var W;this.control.setValue(b,{emitViewToModelChange:!1}),null===(W=this._changeDetectorRef)||void 0===W||W.markForCheck()})}_updateDisabled(b){const W=b.isDisabled.currentValue,bt=""===W||W&&"false"!==W;Ke.then(()=>{var Wt;bt&&!this.control.disabled?this.control.disable():!bt&&this.control.disabled&&this.control.enable(),null===(Wt=this._changeDetectorRef)||void 0===Wt||Wt.markForCheck()})}_getPath(b){return this._parent?function bn(S,E){return[...E.path,S]}(b,this._parent):[b]}}return S.\u0275fac=function(b){return new(b||S)(r.Y36(Nt,9),r.Y36(ye,10),r.Y36(De,10),r.Y36(F,10),r.Y36(r.sBO,8))},S.\u0275dir=r.lG2({type:S,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r._Bn([fe]),r.qOj,r.TTD]}),S})(),hn=(()=>{class S{}return S.\u0275fac=function(b){return new(b||S)},S.\u0275mod=r.oAB({type:S}),S.\u0275inj=r.cJS({}),S})();const $r=new r.OlP("NgModelWithFormControlWarning");let vr=(()=>{class S{constructor(){this._validator=we}ngOnChanges(b){if(this.inputName in b){const W=this.normalizeInput(b[this.inputName].currentValue);this._enabled=this.enabled(W),this._validator=this._enabled?this.createValidator(W):we,this._onChange&&this._onChange()}}validate(b){return this._validator(b)}registerOnValidatorChange(b){this._onChange=b}enabled(b){return null!=b}}return S.\u0275fac=function(b){return new(b||S)},S.\u0275dir=r.lG2({type:S,features:[r.TTD]}),S})();const I={provide:ye,useExisting:(0,r.Gpc)(()=>te),multi:!0};let te=(()=>{class S extends vr{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=b=>function Nr(S){return"number"==typeof S?S:parseInt(S,10)}(b),this.createValidator=b=>function We(S){return E=>function $e(S){return null!=S&&"number"==typeof S.length}(E.value)&&E.value.length>S?{maxlength:{requiredLength:S,actualLength:E.value.length}}:null}(b)}}return S.\u0275fac=function(){let E;return function(W){return(E||(E=r.n5z(S)))(W||S)}}(),S.\u0275dir=r.lG2({type:S,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(b,W){2&b&&r.uIk("maxlength",W._enabled?W.maxlength:null)},inputs:{maxlength:"maxlength"},features:[r._Bn([I]),r.qOj]}),S})(),l=(()=>{class S{}return S.\u0275fac=function(b){return new(b||S)},S.\u0275mod=r.oAB({type:S}),S.\u0275inj=r.cJS({imports:[[hn]]}),S})(),w=(()=>{class S{}return S.\u0275fac=function(b){return new(b||S)},S.\u0275mod=r.oAB({type:S}),S.\u0275inj=r.cJS({imports:[l]}),S})(),X=(()=>{class S{static withConfig(b){return{ngModule:S,providers:[{provide:$r,useValue:b.warnOnNgModelWithFormControl}]}}}return S.\u0275fac=function(b){return new(b||S)},S.\u0275mod=r.oAB({type:S}),S.\u0275inj=r.cJS({imports:[l]}),S})()},2313:(Ct,ae,p)=>{"use strict";p.d(ae,{Dx:()=>Se,H7:()=>Zn,b2:()=>Bn,h_:()=>xe,q6:()=>Nt,se:()=>z});var r=p(9808),m=p(2096);class D extends r.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class j extends D{static makeCurrent(){(0,r.HT)(new j)}onAndCancel(Ye,Ee,nt){return Ye.addEventListener(Ee,nt,!1),()=>{Ye.removeEventListener(Ee,nt,!1)}}dispatchEvent(Ye,Ee){Ye.dispatchEvent(Ee)}remove(Ye){Ye.parentNode&&Ye.parentNode.removeChild(Ye)}createElement(Ye,Ee){return(Ee=Ee||this.getDefaultDocument()).createElement(Ye)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ye){return Ye.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ye){return Ye instanceof DocumentFragment}getGlobalEventTarget(Ye,Ee){return"window"===Ee?window:"document"===Ee?Ye:"body"===Ee?Ye.body:null}getBaseHref(Ye){const Ee=function V(){return U=U||document.querySelector("base"),U?U.getAttribute("href"):null}();return null==Ee?null:function F(ot){P=P||document.createElement("a"),P.setAttribute("href",ot);const Ye=P.pathname;return"/"===Ye.charAt(0)?Ye:`/${Ye}`}(Ee)}resetBaseElement(){U=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ye){return(0,r.Mx)(document.cookie,Ye)}}let P,U=null;const q=new m.OlP("TRANSITION_ID"),ee=[{provide:m.ip1,useFactory:function Q(ot,Ye,Ee){return()=>{Ee.get(m.CZH).donePromise.then(()=>{const nt=(0,r.q)(),Et=Ye.querySelectorAll(`style[ng-transition="${ot}"]`);for(let Ht=0;Ht<Et.length;Ht++)nt.remove(Et[Ht])})}},deps:[q,r.K0,m.zs3],multi:!0}];class ne{static init(){(0,m.VLi)(new ne)}addToWindow(Ye){m.dqk.getAngularTestability=(nt,Et=!0)=>{const Ht=Ye.findTestabilityInTree(nt,Et);if(null==Ht)throw new Error("Could not find testability for element.");return Ht},m.dqk.getAllAngularTestabilities=()=>Ye.getAllTestabilities(),m.dqk.getAllAngularRootElements=()=>Ye.getAllRootElements(),m.dqk.frameworkStabilizers||(m.dqk.frameworkStabilizers=[]),m.dqk.frameworkStabilizers.push(nt=>{const Et=m.dqk.getAllAngularTestabilities();let Ht=Et.length,sn=!1;const Fn=function(Le){sn=sn||Le,Ht--,0==Ht&&nt(sn)};Et.forEach(function(Le){Le.whenStable(Fn)})})}findTestabilityInTree(Ye,Ee,nt){if(null==Ee)return null;const Et=Ye.getTestability(Ee);return null!=Et?Et:nt?(0,r.q)().isShadowRoot(Ee)?this.findTestabilityInTree(Ye,Ee.host,!0):this.findTestabilityInTree(Ye,Ee.parentElement,!0):null}}let Y=(()=>{class ot{build(){return new XMLHttpRequest}}return ot.\u0275fac=function(Ee){return new(Ee||ot)},ot.\u0275prov=m.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const ce=new m.OlP("EventManagerPlugins");let Ne=(()=>{class ot{constructor(Ee,nt){this._zone=nt,this._eventNameToPlugin=new Map,Ee.forEach(Et=>Et.manager=this),this._plugins=Ee.slice().reverse()}addEventListener(Ee,nt,Et){return this._findPluginFor(nt).addEventListener(Ee,nt,Et)}addGlobalEventListener(Ee,nt,Et){return this._findPluginFor(nt).addGlobalEventListener(Ee,nt,Et)}getZone(){return this._zone}_findPluginFor(Ee){const nt=this._eventNameToPlugin.get(Ee);if(nt)return nt;const Et=this._plugins;for(let Ht=0;Ht<Et.length;Ht++){const sn=Et[Ht];if(sn.supports(Ee))return this._eventNameToPlugin.set(Ee,sn),sn}throw new Error(`No event manager plugin found for event ${Ee}`)}}return ot.\u0275fac=function(Ee){return new(Ee||ot)(m.LFG(ce),m.LFG(m.R0b))},ot.\u0275prov=m.Yz7({token:ot,factory:ot.\u0275fac}),ot})();class $e{constructor(Ye){this._doc=Ye}addGlobalEventListener(Ye,Ee,nt){const Et=(0,r.q)().getGlobalEventTarget(this._doc,Ye);if(!Et)throw new Error(`Unsupported event target ${Et} for event ${Ee}`);return this.addEventListener(Et,Ee,nt)}}let ye=(()=>{class ot{constructor(){this._stylesSet=new Set}addStyles(Ee){const nt=new Set;Ee.forEach(Et=>{this._stylesSet.has(Et)||(this._stylesSet.add(Et),nt.add(Et))}),this.onStylesAdded(nt)}onStylesAdded(Ee){}getAllStyles(){return Array.from(this._stylesSet)}}return ot.\u0275fac=function(Ee){return new(Ee||ot)},ot.\u0275prov=m.Yz7({token:ot,factory:ot.\u0275fac}),ot})(),De=(()=>{class ot extends ye{constructor(Ee){super(),this._doc=Ee,this._hostNodes=new Map,this._hostNodes.set(Ee.head,[])}_addStylesToHost(Ee,nt,Et){Ee.forEach(Ht=>{const sn=this._doc.createElement("style");sn.textContent=Ht,Et.push(nt.appendChild(sn))})}addHost(Ee){const nt=[];this._addStylesToHost(this._stylesSet,Ee,nt),this._hostNodes.set(Ee,nt)}removeHost(Ee){const nt=this._hostNodes.get(Ee);nt&&nt.forEach(ue),this._hostNodes.delete(Ee)}onStylesAdded(Ee){this._hostNodes.forEach((nt,Et)=>{this._addStylesToHost(Ee,Et,nt)})}ngOnDestroy(){this._hostNodes.forEach(Ee=>Ee.forEach(ue))}}return ot.\u0275fac=function(Ee){return new(Ee||ot)(m.LFG(r.K0))},ot.\u0275prov=m.Yz7({token:ot,factory:ot.\u0275fac}),ot})();function ue(ot){(0,r.q)().remove(ot)}const me={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ze=/%COMP%/g;function Be(ot,Ye,Ee){for(let nt=0;nt<Ye.length;nt++){let Et=Ye[nt];Array.isArray(Et)?Be(ot,Et,Ee):(Et=Et.replace(ze,ot),Ee.push(Et))}return Ee}function we(ot){return Ye=>{if("__ngUnwrap__"===Ye)return ot;!1===ot(Ye)&&(Ye.preventDefault(),Ye.returnValue=!1)}}let z=(()=>{class ot{constructor(Ee,nt,Et){this.eventManager=Ee,this.sharedStylesHost=nt,this.appId=Et,this.rendererByCompId=new Map,this.defaultRenderer=new N(Ee)}createRenderer(Ee,nt){if(!Ee||!nt)return this.defaultRenderer;switch(nt.encapsulation){case m.ifc.Emulated:{let Et=this.rendererByCompId.get(nt.id);return Et||(Et=new le(this.eventManager,this.sharedStylesHost,nt,this.appId),this.rendererByCompId.set(nt.id,Et)),Et.applyToHost(Ee),Et}case 1:case m.ifc.ShadowDom:return new he(this.eventManager,this.sharedStylesHost,Ee,nt);default:if(!this.rendererByCompId.has(nt.id)){const Et=Be(nt.id,nt.styles,[]);this.sharedStylesHost.addStyles(Et),this.rendererByCompId.set(nt.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return ot.\u0275fac=function(Ee){return new(Ee||ot)(m.LFG(Ne),m.LFG(De),m.LFG(m.AFp))},ot.\u0275prov=m.Yz7({token:ot,factory:ot.\u0275fac}),ot})();class N{constructor(Ye){this.eventManager=Ye,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Ye,Ee){return Ee?document.createElementNS(me[Ee]||Ee,Ye):document.createElement(Ye)}createComment(Ye){return document.createComment(Ye)}createText(Ye){return document.createTextNode(Ye)}appendChild(Ye,Ee){Ye.appendChild(Ee)}insertBefore(Ye,Ee,nt){Ye&&Ye.insertBefore(Ee,nt)}removeChild(Ye,Ee){Ye&&Ye.removeChild(Ee)}selectRootElement(Ye,Ee){let nt="string"==typeof Ye?document.querySelector(Ye):Ye;if(!nt)throw new Error(`The selector "${Ye}" did not match any elements`);return Ee||(nt.textContent=""),nt}parentNode(Ye){return Ye.parentNode}nextSibling(Ye){return Ye.nextSibling}setAttribute(Ye,Ee,nt,Et){if(Et){Ee=Et+":"+Ee;const Ht=me[Et];Ht?Ye.setAttributeNS(Ht,Ee,nt):Ye.setAttribute(Ee,nt)}else Ye.setAttribute(Ee,nt)}removeAttribute(Ye,Ee,nt){if(nt){const Et=me[nt];Et?Ye.removeAttributeNS(Et,Ee):Ye.removeAttribute(`${nt}:${Ee}`)}else Ye.removeAttribute(Ee)}addClass(Ye,Ee){Ye.classList.add(Ee)}removeClass(Ye,Ee){Ye.classList.remove(Ee)}setStyle(Ye,Ee,nt,Et){Et&(m.JOm.DashCase|m.JOm.Important)?Ye.style.setProperty(Ee,nt,Et&m.JOm.Important?"important":""):Ye.style[Ee]=nt}removeStyle(Ye,Ee,nt){nt&m.JOm.DashCase?Ye.style.removeProperty(Ee):Ye.style[Ee]=""}setProperty(Ye,Ee,nt){Ye[Ee]=nt}setValue(Ye,Ee){Ye.nodeValue=Ee}listen(Ye,Ee,nt){return"string"==typeof Ye?this.eventManager.addGlobalEventListener(Ye,Ee,we(nt)):this.eventManager.addEventListener(Ye,Ee,we(nt))}}class le extends N{constructor(Ye,Ee,nt,Et){super(Ye),this.component=nt;const Ht=Be(Et+"-"+nt.id,nt.styles,[]);Ee.addStyles(Ht),this.contentAttr=function J(ot){return"_ngcontent-%COMP%".replace(ze,ot)}(Et+"-"+nt.id),this.hostAttr=function We(ot){return"_nghost-%COMP%".replace(ze,ot)}(Et+"-"+nt.id)}applyToHost(Ye){super.setAttribute(Ye,this.hostAttr,"")}createElement(Ye,Ee){const nt=super.createElement(Ye,Ee);return super.setAttribute(nt,this.contentAttr,""),nt}}class he extends N{constructor(Ye,Ee,nt,Et){super(Ye),this.sharedStylesHost=Ee,this.hostEl=nt,this.shadowRoot=nt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Ht=Be(Et.id,Et.styles,[]);for(let sn=0;sn<Ht.length;sn++){const Fn=document.createElement("style");Fn.textContent=Ht[sn],this.shadowRoot.appendChild(Fn)}}nodeOrShadowRoot(Ye){return Ye===this.hostEl?this.shadowRoot:Ye}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(Ye,Ee){return super.appendChild(this.nodeOrShadowRoot(Ye),Ee)}insertBefore(Ye,Ee,nt){return super.insertBefore(this.nodeOrShadowRoot(Ye),Ee,nt)}removeChild(Ye,Ee){return super.removeChild(this.nodeOrShadowRoot(Ye),Ee)}parentNode(Ye){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Ye)))}}let Ae=(()=>{class ot extends $e{constructor(Ee){super(Ee)}supports(Ee){return!0}addEventListener(Ee,nt,Et){return Ee.addEventListener(nt,Et,!1),()=>this.removeEventListener(Ee,nt,Et)}removeEventListener(Ee,nt,Et){return Ee.removeEventListener(nt,Et)}}return ot.\u0275fac=function(Ee){return new(Ee||ot)(m.LFG(r.K0))},ot.\u0275prov=m.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const be=["alt","control","meta","shift"],H={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},k={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Ue={alt:ot=>ot.altKey,control:ot=>ot.ctrlKey,meta:ot=>ot.metaKey,shift:ot=>ot.shiftKey};let it=(()=>{class ot extends $e{constructor(Ee){super(Ee)}supports(Ee){return null!=ot.parseEventName(Ee)}addEventListener(Ee,nt,Et){const Ht=ot.parseEventName(nt),sn=ot.eventCallback(Ht.fullKey,Et,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,r.q)().onAndCancel(Ee,Ht.domEventName,sn))}static parseEventName(Ee){const nt=Ee.toLowerCase().split("."),Et=nt.shift();if(0===nt.length||"keydown"!==Et&&"keyup"!==Et)return null;const Ht=ot._normalizeKey(nt.pop());let sn="";if(be.forEach(Le=>{const ge=nt.indexOf(Le);ge>-1&&(nt.splice(ge,1),sn+=Le+".")}),sn+=Ht,0!=nt.length||0===Ht.length)return null;const Fn={};return Fn.domEventName=Et,Fn.fullKey=sn,Fn}static getEventFullKey(Ee){let nt="",Et=function qe(ot){let Ye=ot.key;if(null==Ye){if(Ye=ot.keyIdentifier,null==Ye)return"Unidentified";Ye.startsWith("U+")&&(Ye=String.fromCharCode(parseInt(Ye.substring(2),16)),3===ot.location&&k.hasOwnProperty(Ye)&&(Ye=k[Ye]))}return H[Ye]||Ye}(Ee);return Et=Et.toLowerCase()," "===Et?Et="space":"."===Et&&(Et="dot"),be.forEach(Ht=>{Ht!=Et&&Ue[Ht](Ee)&&(nt+=Ht+".")}),nt+=Et,nt}static eventCallback(Ee,nt,Et){return Ht=>{ot.getEventFullKey(Ht)===Ee&&Et.runGuarded(()=>nt(Ht))}}static _normalizeKey(Ee){return"esc"===Ee?"escape":Ee}}return ot.\u0275fac=function(Ee){return new(Ee||ot)(m.LFG(r.K0))},ot.\u0275prov=m.Yz7({token:ot,factory:ot.\u0275fac}),ot})();const Nt=(0,m.eFA)(m._c5,"browser",[{provide:m.Lbi,useValue:r.bD},{provide:m.g9A,useValue:function lt(){j.makeCurrent(),ne.init()},multi:!0},{provide:r.K0,useFactory:function Vt(){return(0,m.RDi)(document),document},deps:[]}]),wn=[{provide:m.zSh,useValue:"root"},{provide:m.qLn,useFactory:function Mt(){return new m.qLn},deps:[]},{provide:ce,useClass:Ae,multi:!0,deps:[r.K0,m.R0b,m.Lbi]},{provide:ce,useClass:it,multi:!0,deps:[r.K0]},{provide:z,useClass:z,deps:[Ne,De,m.AFp]},{provide:m.FYo,useExisting:z},{provide:ye,useExisting:De},{provide:De,useClass:De,deps:[r.K0]},{provide:m.dDg,useClass:m.dDg,deps:[m.R0b]},{provide:Ne,useClass:Ne,deps:[ce,m.R0b]},{provide:r.JF,useClass:Y,deps:[]}];let Bn=(()=>{class ot{constructor(Ee){if(Ee)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(Ee){return{ngModule:ot,providers:[{provide:m.AFp,useValue:Ee.appId},{provide:q,useExisting:m.AFp},ee]}}}return ot.\u0275fac=function(Ee){return new(Ee||ot)(m.LFG(ot,12))},ot.\u0275mod=m.oAB({type:ot}),ot.\u0275inj=m.cJS({providers:wn,imports:[r.ez,m.hGG]}),ot})(),xe=(()=>{class ot{constructor(Ee){this._doc=Ee,this._dom=(0,r.q)()}addTag(Ee,nt=!1){return Ee?this._getOrCreateElement(Ee,nt):null}addTags(Ee,nt=!1){return Ee?Ee.reduce((Et,Ht)=>(Ht&&Et.push(this._getOrCreateElement(Ht,nt)),Et),[]):[]}getTag(Ee){return Ee&&this._doc.querySelector(`meta[${Ee}]`)||null}getTags(Ee){if(!Ee)return[];const nt=this._doc.querySelectorAll(`meta[${Ee}]`);return nt?[].slice.call(nt):[]}updateTag(Ee,nt){if(!Ee)return null;nt=nt||this._parseSelector(Ee);const Et=this.getTag(nt);return Et?this._setMetaElementAttributes(Ee,Et):this._getOrCreateElement(Ee,!0)}removeTag(Ee){this.removeTagElement(this.getTag(Ee))}removeTagElement(Ee){Ee&&this._dom.remove(Ee)}_getOrCreateElement(Ee,nt=!1){if(!nt){const sn=this._parseSelector(Ee),Fn=this.getTags(sn).filter(Le=>this._containsAttributes(Ee,Le))[0];if(void 0!==Fn)return Fn}const Et=this._dom.createElement("meta");return this._setMetaElementAttributes(Ee,Et),this._doc.getElementsByTagName("head")[0].appendChild(Et),Et}_setMetaElementAttributes(Ee,nt){return Object.keys(Ee).forEach(Et=>nt.setAttribute(this._getMetaKeyMap(Et),Ee[Et])),nt}_parseSelector(Ee){const nt=Ee.name?"name":"property";return`${nt}="${Ee[nt]}"`}_containsAttributes(Ee,nt){return Object.keys(Ee).every(Et=>nt.getAttribute(this._getMetaKeyMap(Et))===Ee[Et])}_getMetaKeyMap(Ee){return O[Ee]||Ee}}return ot.\u0275fac=function(Ee){return new(Ee||ot)(m.LFG(r.K0))},ot.\u0275prov=m.Yz7({token:ot,factory:function(Ee){let nt=null;return nt=Ee?new Ee:function tt(){return new xe((0,m.LFG)(r.K0))}(),nt},providedIn:"root"}),ot})();const O={httpEquiv:"http-equiv"};let Se=(()=>{class ot{constructor(Ee){this._doc=Ee}getTitle(){return this._doc.title}setTitle(Ee){this._doc.title=Ee||""}}return ot.\u0275fac=function(Ee){return new(Ee||ot)(m.LFG(r.K0))},ot.\u0275prov=m.Yz7({token:ot,factory:function(Ee){let nt=null;return nt=Ee?new Ee:function se(){return new Se((0,m.LFG)(r.K0))}(),nt},providedIn:"root"}),ot})();"undefined"!=typeof window&&window;let Zn=(()=>{class ot{}return ot.\u0275fac=function(Ee){return new(Ee||ot)},ot.\u0275prov=m.Yz7({token:ot,factory:function(Ee){let nt=null;return nt=Ee?new(Ee||ot):m.LFG(On),nt},providedIn:"root"}),ot})(),On=(()=>{class ot extends Zn{constructor(Ee){super(),this._doc=Ee}sanitize(Ee,nt){if(null==nt)return null;switch(Ee){case m.q3G.NONE:return nt;case m.q3G.HTML:return(0,m.qzn)(nt,"HTML")?(0,m.z3N)(nt):(0,m.EiD)(this._doc,String(nt)).toString();case m.q3G.STYLE:return(0,m.qzn)(nt,"Style")?(0,m.z3N)(nt):nt;case m.q3G.SCRIPT:if((0,m.qzn)(nt,"Script"))return(0,m.z3N)(nt);throw new Error("unsafe value used in a script context");case m.q3G.URL:return(0,m.yhl)(nt),(0,m.qzn)(nt,"URL")?(0,m.z3N)(nt):(0,m.mCW)(String(nt));case m.q3G.RESOURCE_URL:if((0,m.qzn)(nt,"ResourceURL"))return(0,m.z3N)(nt);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${Ee} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(Ee){return(0,m.JVY)(Ee)}bypassSecurityTrustStyle(Ee){return(0,m.L6k)(Ee)}bypassSecurityTrustScript(Ee){return(0,m.eBb)(Ee)}bypassSecurityTrustUrl(Ee){return(0,m.LAX)(Ee)}bypassSecurityTrustResourceUrl(Ee){return(0,m.pB0)(Ee)}}return ot.\u0275fac=function(Ee){return new(Ee||ot)(m.LFG(r.K0))},ot.\u0275prov=m.Yz7({token:ot,factory:function(Ee){let nt=null;return nt=Ee?new Ee:function Kn(ot){return new On(ot.get(r.K0))}(m.LFG(m.zs3)),nt},providedIn:"root"}),ot})()},1171:(Ct,ae,p)=>{"use strict";p.d(ae,{gz:()=>Jn,y6:()=>l,m2:()=>gt,OD:()=>vt,eC:()=>nn,wm:()=>pn,wN:()=>Fo,F0:()=>ie,rH:()=>ct,yS:()=>At,Bz:()=>Ir,Hx:()=>Lt});var r=p(2096),m=p(5254),D=p(1086),j=p(591),U=p(2866),V=p(6688),P=p(3489);class F extends P.L{notifyNext(h,f,C,x,Z){this.destination.next(f)}notifyError(h,f){this.destination.error(h)}notifyComplete(h){this.destination.complete()}}class q extends P.L{constructor(h,f,C){super(),this.parent=h,this.outerValue=f,this.outerIndex=C,this.index=0}_next(h){this.parent.notifyNext(this.outerValue,h,this.outerIndex,this.index++,this)}_error(h){this.parent.notifyError(h,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var Q=p(9249),ee=p(2916);function ne(y,h,f,C,x=new q(y,f,C)){if(!x.closed)return h instanceof ee.y?h.subscribe(x):(0,Q.s)(h)(x)}var Y=p(3009);const ce={};class $e{constructor(h){this.resultSelector=h}call(h,f){return f.subscribe(new ye(h,this.resultSelector))}}class ye extends F{constructor(h,f){super(h),this.resultSelector=f,this.active=0,this.values=[],this.observables=[]}_next(h){this.values.push(ce),this.observables.push(h)}_complete(){const h=this.observables,f=h.length;if(0===f)this.destination.complete();else{this.active=f,this.toRespond=f;for(let C=0;C<f;C++)this.add(ne(this,h[C],void 0,C))}}notifyComplete(h){0==(this.active-=1)&&this.destination.complete()}notifyNext(h,f,C){const x=this.values,Oe=this.toRespond?x[C]===ce?--this.toRespond:this.toRespond:0;x[C]=f,0===Oe&&(this.resultSelector?this._tryResultSelector(x):this.destination.next(x.slice()))}_tryResultSelector(h){let f;try{f=this.resultSelector.apply(this,h)}catch(C){return void this.destination.error(C)}this.destination.next(f)}}var De=p(1737);const me=(()=>{function y(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return y.prototype=Object.create(Error.prototype),y})();var ze=p(1221),Pe=p(8514),je=p(8896),Fe=p(1762),Te=p(8929),J=p(4850),We=p(7545),Be=p(2986),we=p(1059);function re(y,h){let f=!1;return arguments.length>=2&&(f=!0),function(x){return x.lift(new z(y,h,f))}}class z{constructor(h,f,C=!1){this.accumulator=h,this.seed=f,this.hasSeed=C}call(h,f){return f.subscribe(new N(h,this.accumulator,this.seed,this.hasSeed))}}class N extends P.L{constructor(h,f,C,x){super(h),this.accumulator=f,this._seed=C,this.hasSeed=x,this.index=0}get seed(){return this._seed}set seed(h){this.hasSeed=!0,this._seed=h}_next(h){if(this.hasSeed)return this._tryNext(h);this.seed=h,this.destination.next(h)}_tryNext(h){const f=this.index++;let C;try{C=this.accumulator(this.seed,h,f)}catch(x){this.destination.error(x)}this.seed=C,this.destination.next(C)}}var pe=p(2198),ve=p(1177);function le(y){return function(f){const C=new he(y),x=f.lift(C);return C.caught=x}}class he{constructor(h){this.selector=h}call(h,f){return f.subscribe(new Ae(h,this.selector,this.caught))}}class Ae extends ve.Ds{constructor(h,f,C){super(h),this.selector=f,this.caught=C}error(h){if(!this.isStopped){let f;try{f=this.selector(h,this.caught)}catch(Z){return void super.error(Z)}this._unsubscribeAndRecycle();const C=new ve.IY(this);this.add(C);const x=(0,ve.ft)(f,C);x!==C&&this.add(x)}}}var be=p(1406),Re=p(4231);function H(y){return function(f){return 0===y?(0,je.c)():f.lift(new k(y))}}class k{constructor(h){if(this.total=h,this.total<0)throw new Re.W}call(h,f){return f.subscribe(new Ue(h,this.total))}}class Ue extends P.L{constructor(h,f){super(h),this.total=f,this.ring=new Array,this.count=0}_next(h){const f=this.ring,C=this.total,x=this.count++;f.length<C?f.push(h):f[x%C]=h}_complete(){const h=this.destination;let f=this.count;if(f>0){const C=this.count>=this.total?this.total:this.count,x=this.ring;for(let Z=0;Z<C;Z++){const Oe=f++%C;h.next(x[Oe])}}h.complete()}}function it(y=Mt){return h=>h.lift(new qe(y))}class qe{constructor(h){this.errorFactory=h}call(h,f){return f.subscribe(new lt(h,this.errorFactory))}}class lt extends P.L{constructor(h,f){super(h),this.errorFactory=f,this.hasValue=!1}_next(h){this.hasValue=!0,this.destination.next(h)}_complete(){if(this.hasValue)return this.destination.complete();{let h;try{h=this.errorFactory()}catch(f){h=f}this.destination.error(h)}}}function Mt(){return new me}function Vt(y=null){return h=>h.lift(new Zt(y))}class Zt{constructor(h){this.defaultValue=h}call(h,f){return f.subscribe(new Nt(h,this.defaultValue))}}class Nt extends P.L{constructor(h,f){super(h),this.defaultValue=f,this.isEmpty=!0}_next(h){this.isEmpty=!1,this.destination.next(h)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var wn=p(5379);function tt(y,h){const f=arguments.length>=2;return C=>C.pipe(y?(0,pe.h)((x,Z)=>y(x,Z,C)):wn.y,(0,Be.q)(1),f?Vt(h):it(()=>new me))}var xe=p(1709),O=p(2868),se=p(4327),Se=p(2654);class at{constructor(h){this.callback=h}call(h,f){return f.subscribe(new Je(h,this.callback))}}class Je extends P.L{constructor(h,f){super(h),this.add(new Se.w(f))}}var ke=p(9146),oe=p(9808);class ft{constructor(h,f){this.id=h,this.url=f}}class vt extends ft{constructor(h,f,C="imperative",x=null){super(h,f),this.navigationTrigger=C,this.restoredState=x}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class gt extends ft{constructor(h,f,C){super(h,f),this.urlAfterRedirects=C}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class St extends ft{constructor(h,f,C){super(h,f),this.reason=C}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Jt extends ft{constructor(h,f,C){super(h,f),this.error=C}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ut extends ft{constructor(h,f,C,x){super(h,f),this.urlAfterRedirects=C,this.state=x}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xt extends ft{constructor(h,f,C,x){super(h,f),this.urlAfterRedirects=C,this.state=x}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Nn extends ft{constructor(h,f,C,x,Z){super(h,f),this.urlAfterRedirects=C,this.state=x,this.shouldActivate=Z}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class mn extends ft{constructor(h,f,C,x){super(h,f),this.urlAfterRedirects=C,this.state=x}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bn extends ft{constructor(h,f,C,x){super(h,f),this.urlAfterRedirects=C,this.state=x}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Yt{constructor(h){this.route=h}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class In{constructor(h){this.route=h}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class yn{constructor(h){this.snapshot=h}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gr{constructor(h){this.snapshot=h}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class un{constructor(h){this.snapshot=h}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class lr{constructor(h){this.snapshot=h}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yr{constructor(h,f,C){this.routerEvent=h,this.position=f,this.anchor=C}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const nn="primary";class Sn{constructor(h){this.params=h||{}}has(h){return Object.prototype.hasOwnProperty.call(this.params,h)}get(h){if(this.has(h)){const f=this.params[h];return Array.isArray(f)?f[0]:f}return null}getAll(h){if(this.has(h)){const f=this.params[h];return Array.isArray(f)?f:[f]}return[]}get keys(){return Object.keys(this.params)}}function Un(y){return new Sn(y)}const nr="ngNavigationCancelingError";function Zn(y){const h=Error("NavigationCancelingError: "+y);return h[nr]=!0,h}function On(y,h,f){const C=f.path.split("/");if(C.length>y.length||"full"===f.pathMatch&&(h.hasChildren()||C.length<y.length))return null;const x={};for(let Z=0;Z<C.length;Z++){const Oe=C[Z],Qe=y[Z];if(Oe.startsWith(":"))x[Oe.substring(1)]=Qe;else if(Oe!==Qe.path)return null}return{consumed:y.slice(0,C.length),posParams:x}}function ot(y,h){const f=y?Object.keys(y):void 0,C=h?Object.keys(h):void 0;if(!f||!C||f.length!=C.length)return!1;let x;for(let Z=0;Z<f.length;Z++)if(x=f[Z],!Ye(y[x],h[x]))return!1;return!0}function Ye(y,h){if(Array.isArray(y)&&Array.isArray(h)){if(y.length!==h.length)return!1;const f=[...y].sort(),C=[...h].sort();return f.every((x,Z)=>C[Z]===x)}return y===h}function Ee(y){return Array.prototype.concat.apply([],y)}function nt(y){return y.length>0?y[y.length-1]:null}function Ht(y,h){for(const f in y)y.hasOwnProperty(f)&&h(y[f],f)}function sn(y){return(0,r.CqO)(y)?y:(0,r.QGY)(y)?(0,m.D)(Promise.resolve(y)):(0,D.of)(y)}const Le={exact:function Ie(y,h,f){if(!tn(y.segments,h.segments)||!Gt(y.segments,h.segments,f)||y.numberOfChildren!==h.numberOfChildren)return!1;for(const C in h.children)if(!y.children[C]||!Ie(y.children[C],h.children[C],f))return!1;return!0},subset:dt},ge={exact:function de(y,h){return ot(y,h)},subset:function Ve(y,h){return Object.keys(h).length<=Object.keys(y).length&&Object.keys(h).every(f=>Ye(y[f],h[f]))},ignored:()=>!0};function $(y,h,f){return Le[f.paths](y.root,h.root,f.matrixParams)&&ge[f.queryParams](y.queryParams,h.queryParams)&&!("exact"===f.fragment&&y.fragment!==h.fragment)}function dt(y,h,f){return _t(y,h,h.segments,f)}function _t(y,h,f,C){if(y.segments.length>f.length){const x=y.segments.slice(0,f.length);return!(!tn(x,f)||h.hasChildren()||!Gt(x,f,C))}if(y.segments.length===f.length){if(!tn(y.segments,f)||!Gt(y.segments,f,C))return!1;for(const x in h.children)if(!y.children[x]||!dt(y.children[x],h.children[x],C))return!1;return!0}{const x=f.slice(0,y.segments.length),Z=f.slice(y.segments.length);return!!(tn(y.segments,x)&&Gt(y.segments,x,C)&&y.children[nn])&&_t(y.children[nn],h,Z,C)}}function Gt(y,h,f){return h.every((C,x)=>ge[f](y[x].parameters,C.parameters))}class Rt{constructor(h,f,C){this.root=h,this.queryParams=f,this.fragment=C}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Un(this.queryParams)),this._queryParamMap}toString(){return Tn.serialize(this)}}class xt{constructor(h,f){this.segments=h,this.children=f,this.parent=null,Ht(f,(C,x)=>C.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return jn(this)}}class en{constructor(h,f){this.path=h,this.parameters=f}get parameterMap(){return this._parameterMap||(this._parameterMap=Un(this.parameters)),this._parameterMap}toString(){return Ce(this)}}function tn(y,h){return y.length===h.length&&y.every((f,C)=>f.path===h[C].path)}class Lt{}class ln{parse(h){const f=new kt(h);return new Rt(f.parseRootSegment(),f.parseQueryParams(),f.parseFragment())}serialize(h){const f=`/${rr(h.root,!0)}`,C=function rt(y){const h=Object.keys(y).map(f=>{const C=y[f];return Array.isArray(C)?C.map(x=>`${Gn(f)}=${Gn(x)}`).join("&"):`${Gn(f)}=${Gn(C)}`}).filter(f=>!!f);return h.length?`?${h.join("&")}`:""}(h.queryParams);return`${f}${C}${"string"==typeof h.fragment?`#${function Dn(y){return encodeURI(y)}(h.fragment)}`:""}`}}const Tn=new ln;function jn(y){return y.segments.map(h=>Ce(h)).join("/")}function rr(y,h){if(!y.hasChildren())return jn(y);if(h){const f=y.children[nn]?rr(y.children[nn],!1):"",C=[];return Ht(y.children,(x,Z)=>{Z!==nn&&C.push(`${Z}:${rr(x,!1)}`)}),C.length>0?`${f}(${C.join("//")})`:f}{const f=function fn(y,h){let f=[];return Ht(y.children,(C,x)=>{x===nn&&(f=f.concat(h(C,x)))}),Ht(y.children,(C,x)=>{x!==nn&&(f=f.concat(h(C,x)))}),f}(y,(C,x)=>x===nn?[rr(y.children[nn],!1)]:[`${x}:${rr(C,!1)}`]);return 1===Object.keys(y.children).length&&null!=y.children[nn]?`${jn(y)}/${f[0]}`:`${jn(y)}/(${f.join("//")})`}}function Ln(y){return encodeURIComponent(y).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Gn(y){return Ln(y).replace(/%3B/gi,";")}function ir(y){return Ln(y).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function cr(y){return decodeURIComponent(y)}function L(y){return cr(y.replace(/\+/g,"%20"))}function Ce(y){return`${ir(y.path)}${function et(y){return Object.keys(y).map(h=>`;${ir(h)}=${ir(y[h])}`).join("")}(y.parameters)}`}const pt=/^[^\/()?;=#]+/;function fe(y){const h=y.match(pt);return h?h[0]:""}const Ke=/^[^=?&#]+/,mt=/^[^&#]+/;class kt{constructor(h){this.url=h,this.remaining=h}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new xt([],{}):new xt([],this.parseChildren())}parseQueryParams(){const h={};if(this.consumeOptional("?"))do{this.parseQueryParam(h)}while(this.consumeOptional("&"));return h}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const h=[];for(this.peekStartsWith("(")||h.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),h.push(this.parseSegment());let f={};this.peekStartsWith("/(")&&(this.capture("/"),f=this.parseParens(!0));let C={};return this.peekStartsWith("(")&&(C=this.parseParens(!1)),(h.length>0||Object.keys(f).length>0)&&(C[nn]=new xt(h,f)),C}parseSegment(){const h=fe(this.remaining);if(""===h&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(h),new en(cr(h),this.parseMatrixParams())}parseMatrixParams(){const h={};for(;this.consumeOptional(";");)this.parseParam(h);return h}parseParam(h){const f=fe(this.remaining);if(!f)return;this.capture(f);let C="";if(this.consumeOptional("=")){const x=fe(this.remaining);x&&(C=x,this.capture(C))}h[cr(f)]=cr(C)}parseQueryParam(h){const f=function st(y){const h=y.match(Ke);return h?h[0]:""}(this.remaining);if(!f)return;this.capture(f);let C="";if(this.consumeOptional("=")){const Oe=function yt(y){const h=y.match(mt);return h?h[0]:""}(this.remaining);Oe&&(C=Oe,this.capture(C))}const x=L(f),Z=L(C);if(h.hasOwnProperty(x)){let Oe=h[x];Array.isArray(Oe)||(Oe=[Oe],h[x]=Oe),Oe.push(Z)}else h[x]=Z}parseParens(h){const f={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const C=fe(this.remaining),x=this.remaining[C.length];if("/"!==x&&")"!==x&&";"!==x)throw new Error(`Cannot parse url '${this.url}'`);let Z;C.indexOf(":")>-1?(Z=C.substr(0,C.indexOf(":")),this.capture(Z),this.capture(":")):h&&(Z=nn);const Oe=this.parseChildren();f[Z]=1===Object.keys(Oe).length?Oe[nn]:new xt([],Oe),this.consumeOptional("//")}return f}peekStartsWith(h){return this.remaining.startsWith(h)}consumeOptional(h){return!!this.peekStartsWith(h)&&(this.remaining=this.remaining.substring(h.length),!0)}capture(h){if(!this.consumeOptional(h))throw new Error(`Expected "${h}".`)}}class qt{constructor(h){this._root=h}get root(){return this._root.value}parent(h){const f=this.pathFromRoot(h);return f.length>1?f[f.length-2]:null}children(h){const f=dn(h,this._root);return f?f.children.map(C=>C.value):[]}firstChild(h){const f=dn(h,this._root);return f&&f.children.length>0?f.children[0].value:null}siblings(h){const f=hn(h,this._root);return f.length<2?[]:f[f.length-2].children.map(x=>x.value).filter(x=>x!==h)}pathFromRoot(h){return hn(h,this._root).map(f=>f.value)}}function dn(y,h){if(y===h.value)return h;for(const f of h.children){const C=dn(y,f);if(C)return C}return null}function hn(y,h){if(y===h.value)return[h];for(const f of h.children){const C=hn(y,f);if(C.length)return C.unshift(h),C}return[]}class er{constructor(h,f){this.value=h,this.children=f}toString(){return`TreeNode(${this.value})`}}function qn(y){const h={};return y&&y.children.forEach(f=>h[f.value.outlet]=f),h}class pr extends qt{constructor(h,f){super(h),this.snapshot=f,Sr(this,h)}toString(){return this.snapshot.toString()}}function ur(y,h){const f=function $r(y,h){const Oe=new Tr([],{},{},"",{},nn,h,null,y.root,-1,{});return new Ai("",new er(Oe,[]))}(y,h),C=new j.X([new en("",{})]),x=new j.X({}),Z=new j.X({}),Oe=new j.X({}),Qe=new j.X(""),Dt=new Jn(C,x,Oe,Qe,Z,nn,h,f.root);return Dt.snapshot=f.root,new pr(new er(Dt,[]),f)}class Jn{constructor(h,f,C,x,Z,Oe,Qe,Dt){this.url=h,this.params=f,this.queryParams=C,this.fragment=x,this.data=Z,this.outlet=Oe,this.component=Qe,this._futureSnapshot=Dt}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,J.U)(h=>Un(h)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,J.U)(h=>Un(h)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function qr(y,h="emptyOnly"){const f=y.pathFromRoot;let C=0;if("always"!==h)for(C=f.length-1;C>=1;){const x=f[C],Z=f[C-1];if(x.routeConfig&&""===x.routeConfig.path)C--;else{if(Z.component)break;C--}}return function zr(y){return y.reduce((h,f)=>({params:Object.assign(Object.assign({},h.params),f.params),data:Object.assign(Object.assign({},h.data),f.data),resolve:Object.assign(Object.assign({},h.resolve),f._resolvedData)}),{params:{},data:{},resolve:{}})}(f.slice(C))}class Tr{constructor(h,f,C,x,Z,Oe,Qe,Dt,Qt,Pn,cn){this.url=h,this.params=f,this.queryParams=C,this.fragment=x,this.data=Z,this.outlet=Oe,this.component=Qe,this.routeConfig=Dt,this._urlSegment=Qt,this._lastPathIndex=Pn,this._resolve=cn}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Un(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Un(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(C=>C.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ai extends qt{constructor(h,f){super(f),this.url=h,Sr(this,f)}toString(){return Gr(this._root)}}function Sr(y,h){h.value._routerState=y,h.children.forEach(f=>Sr(y,f))}function Gr(y){const h=y.children.length>0?` { ${y.children.map(Gr).join(", ")} } `:"";return`${y.value}${h}`}function di(y){if(y.snapshot){const h=y.snapshot,f=y._futureSnapshot;y.snapshot=f,ot(h.queryParams,f.queryParams)||y.queryParams.next(f.queryParams),h.fragment!==f.fragment&&y.fragment.next(f.fragment),ot(h.params,f.params)||y.params.next(f.params),function zn(y,h){if(y.length!==h.length)return!1;for(let f=0;f<y.length;++f)if(!ot(y[f],h[f]))return!1;return!0}(h.url,f.url)||y.url.next(f.url),ot(h.data,f.data)||y.data.next(f.data)}else y.snapshot=y._futureSnapshot,y.data.next(y._futureSnapshot.data)}function fi(y,h){const f=ot(y.params,h.params)&&function jt(y,h){return tn(y,h)&&y.every((f,C)=>ot(f.parameters,h[C].parameters))}(y.url,h.url);return f&&!(!y.parent!=!h.parent)&&(!y.parent||fi(y.parent,h.parent))}function xr(y,h,f){if(f&&y.shouldReuseRoute(h.value,f.value.snapshot)){const C=f.value;C._futureSnapshot=h.value;const x=function $i(y,h,f){return h.children.map(C=>{for(const x of f.children)if(y.shouldReuseRoute(C.value,x.value.snapshot))return xr(y,C,x);return xr(y,C)})}(y,h,f);return new er(C,x)}{if(y.shouldAttach(h.value)){const Z=y.retrieve(h.value);if(null!==Z){const Oe=Z.route;return Oe.value._futureSnapshot=h.value,Oe.children=h.children.map(Qe=>xr(y,Qe)),Oe}}const C=function hi(y){return new Jn(new j.X(y.url),new j.X(y.params),new j.X(y.queryParams),new j.X(y.fragment),new j.X(y.data),y.outlet,y.component,y)}(h.value),x=h.children.map(Z=>xr(y,Z));return new er(C,x)}}function Fr(y){return"object"==typeof y&&null!=y&&!y.outlets&&!y.segmentPath}function Wr(y){return"object"==typeof y&&null!=y&&y.outlets}function Yr(y,h,f,C,x){let Z={};if(C&&Ht(C,(Qe,Dt)=>{Z[Dt]=Array.isArray(Qe)?Qe.map(Qt=>`${Qt}`):`${Qe}`}),y===h)return new Rt(f,Z,x);const Oe=Vr(y,h,f);return new Rt(Oe,Z,x)}function Vr(y,h,f){const C={};return Ht(y.children,(x,Z)=>{C[Z]=x===h?f:Vr(x,h,f)}),new xt(y.segments,C)}class Lr{constructor(h,f,C){if(this.isAbsolute=h,this.numberOfDoubleDots=f,this.commands=C,h&&C.length>0&&Fr(C[0]))throw new Error("Root segment cannot have matrix parameters");const x=C.find(Wr);if(x&&x!==nt(C))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Zr{constructor(h,f,C){this.segmentGroup=h,this.processChildren=f,this.index=C}}function Cr(y,h,f){if(y||(y=new xt([],{})),0===y.segments.length&&y.hasChildren())return vr(y,h,f);const C=function Vi(y,h,f){let C=0,x=h;const Z={match:!1,pathIndex:0,commandIndex:0};for(;x<y.segments.length;){if(C>=f.length)return Z;const Oe=y.segments[x],Qe=f[C];if(Wr(Qe))break;const Dt=`${Qe}`,Qt=C<f.length-1?f[C+1]:null;if(x>0&&void 0===Dt)break;if(Dt&&Qt&&"object"==typeof Qt&&void 0===Qt.outlets){if(!Kr(Dt,Qt,Oe))return Z;C+=2}else{if(!Kr(Dt,{},Oe))return Z;C++}x++}return{match:!0,pathIndex:x,commandIndex:C}}(y,h,f),x=f.slice(C.commandIndex);if(C.match&&C.pathIndex<y.segments.length){const Z=new xt(y.segments.slice(0,C.pathIndex),{});return Z.children[nn]=new xt(y.segments.slice(C.pathIndex),y.children),vr(Z,0,x)}return C.match&&0===x.length?new xt(y.segments,{}):C.match&&!y.hasChildren()?Pr(y,h,f):C.match?vr(y,0,x):Pr(y,h,f)}function vr(y,h,f){if(0===f.length)return new xt(y.segments,{});{const C=function Ti(y){return Wr(y[0])?y[0].outlets:{[nn]:y}}(f),x={};return Ht(C,(Z,Oe)=>{"string"==typeof Z&&(Z=[Z]),null!==Z&&(x[Oe]=Cr(y.children[Oe],h,Z))}),Ht(y.children,(Z,Oe)=>{void 0===C[Oe]&&(x[Oe]=Z)}),new xt(y.segments,x)}}function Pr(y,h,f){const C=y.segments.slice(0,h);let x=0;for(;x<f.length;){const Z=f[x];if(Wr(Z)){const Dt=pi(Z.outlets);return new xt(C,Dt)}if(0===x&&Fr(f[0])){C.push(new en(y.segments[h].path,Jr(f[0]))),x++;continue}const Oe=Wr(Z)?Z.outlets[nn]:`${Z}`,Qe=x<f.length-1?f[x+1]:null;Oe&&Qe&&Fr(Qe)?(C.push(new en(Oe,Jr(Qe))),x+=2):(C.push(new en(Oe,{})),x++)}return new xt(C,{})}function pi(y){const h={};return Ht(y,(f,C)=>{"string"==typeof f&&(f=[f]),null!==f&&(h[C]=Pr(new xt([],{}),0,f))}),h}function Jr(y){const h={};return Ht(y,(f,C)=>h[C]=`${f}`),h}function Kr(y,h,f){return y==f.path&&ot(h,f.parameters)}class ei{constructor(h,f,C,x){this.routeReuseStrategy=h,this.futureState=f,this.currState=C,this.forwardEvent=x}activate(h){const f=this.futureState._root,C=this.currState?this.currState._root:null;this.deactivateChildRoutes(f,C,h),di(this.futureState.root),this.activateChildRoutes(f,C,h)}deactivateChildRoutes(h,f,C){const x=qn(f);h.children.forEach(Z=>{const Oe=Z.value.outlet;this.deactivateRoutes(Z,x[Oe],C),delete x[Oe]}),Ht(x,(Z,Oe)=>{this.deactivateRouteAndItsChildren(Z,C)})}deactivateRoutes(h,f,C){const x=h.value,Z=f?f.value:null;if(x===Z)if(x.component){const Oe=C.getContext(x.outlet);Oe&&this.deactivateChildRoutes(h,f,Oe.children)}else this.deactivateChildRoutes(h,f,C);else Z&&this.deactivateRouteAndItsChildren(f,C)}deactivateRouteAndItsChildren(h,f){h.value.component&&this.routeReuseStrategy.shouldDetach(h.value.snapshot)?this.detachAndStoreRouteSubtree(h,f):this.deactivateRouteAndOutlet(h,f)}detachAndStoreRouteSubtree(h,f){const C=f.getContext(h.value.outlet),x=C&&h.value.component?C.children:f,Z=qn(h);for(const Oe of Object.keys(Z))this.deactivateRouteAndItsChildren(Z[Oe],x);if(C&&C.outlet){const Oe=C.outlet.detach(),Qe=C.children.onOutletDeactivated();this.routeReuseStrategy.store(h.value.snapshot,{componentRef:Oe,route:h,contexts:Qe})}}deactivateRouteAndOutlet(h,f){const C=f.getContext(h.value.outlet),x=C&&h.value.component?C.children:f,Z=qn(h);for(const Oe of Object.keys(Z))this.deactivateRouteAndItsChildren(Z[Oe],x);C&&C.outlet&&(C.outlet.deactivate(),C.children.onOutletDeactivated(),C.attachRef=null,C.resolver=null,C.route=null)}activateChildRoutes(h,f,C){const x=qn(f);h.children.forEach(Z=>{this.activateRoutes(Z,x[Z.value.outlet],C),this.forwardEvent(new lr(Z.value.snapshot))}),h.children.length&&this.forwardEvent(new gr(h.value.snapshot))}activateRoutes(h,f,C){const x=h.value,Z=f?f.value:null;if(di(x),x===Z)if(x.component){const Oe=C.getOrCreateContext(x.outlet);this.activateChildRoutes(h,f,Oe.children)}else this.activateChildRoutes(h,f,C);else if(x.component){const Oe=C.getOrCreateContext(x.outlet);if(this.routeReuseStrategy.shouldAttach(x.snapshot)){const Qe=this.routeReuseStrategy.retrieve(x.snapshot);this.routeReuseStrategy.store(x.snapshot,null),Oe.children.onOutletReAttached(Qe.contexts),Oe.attachRef=Qe.componentRef,Oe.route=Qe.route.value,Oe.outlet&&Oe.outlet.attach(Qe.componentRef,Qe.route.value),di(Qe.route.value),this.activateChildRoutes(h,null,Oe.children)}else{const Qe=function _r(y){for(let h=y.parent;h;h=h.parent){const f=h.routeConfig;if(f&&f._loadedConfig)return f._loadedConfig;if(f&&f.component)return null}return null}(x.snapshot),Dt=Qe?Qe.module.componentFactoryResolver:null;Oe.attachRef=null,Oe.route=x,Oe.resolver=Dt,Oe.outlet&&Oe.outlet.activateWith(x,Dt),this.activateChildRoutes(h,null,Oe.children)}}else this.activateChildRoutes(h,null,C)}}class gi{constructor(h,f){this.routes=h,this.module=f}}function kr(y){return"function"==typeof y}function K(y){return y instanceof Rt}const Ot=Symbol("INITIAL_VALUE");function a(){return(0,We.w)(y=>function Ne(...y){let h,f;return(0,U.K)(y[y.length-1])&&(f=y.pop()),"function"==typeof y[y.length-1]&&(h=y.pop()),1===y.length&&(0,V.k)(y[0])&&(y=y[0]),(0,Y.n)(y,f).lift(new $e(h))}(y.map(h=>h.pipe((0,Be.q)(1),(0,we.O)(Ot)))).pipe(re((h,f)=>{let C=!1;return f.reduce((x,Z,Oe)=>x!==Ot?x:(Z===Ot&&(C=!0),C||!1!==Z&&Oe!==f.length-1&&!K(Z)?x:Z),h)},Ot),(0,pe.h)(h=>h!==Ot),(0,J.U)(h=>K(h)?h:!0===h),(0,Be.q)(1)))}class T{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new l,this.attachRef=null}}class l{constructor(){this.contexts=new Map}onChildOutletCreated(h,f){const C=this.getOrCreateContext(h);C.outlet=f,this.contexts.set(h,C)}onChildOutletDestroyed(h){const f=this.getContext(h);f&&(f.outlet=null,f.attachRef=null)}onOutletDeactivated(){const h=this.contexts;return this.contexts=new Map,h}onOutletReAttached(h){this.contexts=h}getOrCreateContext(h){let f=this.getContext(h);return f||(f=new T,this.contexts.set(h,f)),f}getContext(h){return this.contexts.get(h)||null}}let w=(()=>{class y{constructor(f,C,x,Z,Oe){this.parentContexts=f,this.location=C,this.resolver=x,this.changeDetector=Oe,this.activated=null,this._activatedRoute=null,this.activateEvents=new r.vpe,this.deactivateEvents=new r.vpe,this.attachEvents=new r.vpe,this.detachEvents=new r.vpe,this.name=Z||nn,f.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const f=this.parentContexts.getContext(this.name);f&&f.route&&(f.attachRef?this.attach(f.attachRef,f.route):this.activateWith(f.route,f.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const f=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(f.instance),f}attach(f,C){this.activated=f,this._activatedRoute=C,this.location.insert(f.hostView),this.attachEvents.emit(f.instance)}deactivate(){if(this.activated){const f=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(f)}}activateWith(f,C){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=f;const Oe=(C=C||this.resolver).resolveComponentFactory(f._futureSnapshot.routeConfig.component),Qe=this.parentContexts.getOrCreateContext(this.name).children,Dt=new X(f,Qe,this.location.injector);this.activated=this.location.createComponent(Oe,this.location.length,Dt),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return y.\u0275fac=function(f){return new(f||y)(r.Y36(l),r.Y36(r.s_b),r.Y36(r._Vd),r.$8M("name"),r.Y36(r.sBO))},y.\u0275dir=r.lG2({type:y,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),y})();class X{constructor(h,f,C){this.route=h,this.childContexts=f,this.parent=C}get(h,f){return h===Jn?this.route:h===l?this.childContexts:this.parent.get(h,f)}}let ht=(()=>{class y{}return y.\u0275fac=function(f){return new(f||y)},y.\u0275cmp=r.Xpm({type:y,selectors:[["ng-component"]],decls:1,vars:0,template:function(f,C){1&f&&r._UZ(0,"router-outlet")},directives:[w],encapsulation:2}),y})();function Ft(y,h=""){for(let f=0;f<y.length;f++){const C=y[f];Bt(C,S(h,C))}}function Bt(y,h){y.children&&Ft(y.children,h)}function S(y,h){return h?y||h.path?y&&!h.path?`${y}/`:!y&&h.path?h.path:`${y}/${h.path}`:"":y}function E(y){const h=y.children&&y.children.map(E),f=h?Object.assign(Object.assign({},y),{children:h}):Object.assign({},y);return!f.component&&(h||f.loadChildren)&&f.outlet&&f.outlet!==nn&&(f.component=ht),f}function b(y){return y.outlet||nn}function W(y,h){const f=y.filter(C=>b(C)===h);return f.push(...y.filter(C=>b(C)!==h)),f}const bt={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Wt(y,h,f){var C;if(""===h.path)return"full"===h.pathMatch&&(y.hasChildren()||f.length>0)?Object.assign({},bt):{matched:!0,consumedSegments:[],remainingSegments:f,parameters:{},positionalParamSegments:{}};const Z=(h.matcher||On)(f,y,h);if(!Z)return Object.assign({},bt);const Oe={};Ht(Z.posParams,(Dt,Qt)=>{Oe[Qt]=Dt.path});const Qe=Z.consumed.length>0?Object.assign(Object.assign({},Oe),Z.consumed[Z.consumed.length-1].parameters):Oe;return{matched:!0,consumedSegments:Z.consumed,remainingSegments:f.slice(Z.consumed.length),parameters:Qe,positionalParamSegments:null!==(C=Z.posParams)&&void 0!==C?C:{}}}function $n(y,h,f,C,x="corrected"){if(f.length>0&&function xi(y,h,f){return f.some(C=>to(y,h,C)&&b(C)!==nn)}(y,f,C)){const Oe=new xt(h,function Br(y,h,f,C){const x={};x[nn]=C,C._sourceSegment=y,C._segmentIndexShift=h.length;for(const Z of f)if(""===Z.path&&b(Z)!==nn){const Oe=new xt([],{});Oe._sourceSegment=y,Oe._segmentIndexShift=h.length,x[b(Z)]=Oe}return x}(y,h,C,new xt(f,y.children)));return Oe._sourceSegment=y,Oe._segmentIndexShift=h.length,{segmentGroup:Oe,slicedSegments:[]}}if(0===f.length&&function An(y,h,f){return f.some(C=>to(y,h,C))}(y,f,C)){const Oe=new xt(y.segments,function fr(y,h,f,C,x,Z){const Oe={};for(const Qe of C)if(to(y,f,Qe)&&!x[b(Qe)]){const Dt=new xt([],{});Dt._sourceSegment=y,Dt._segmentIndexShift="legacy"===Z?y.segments.length:h.length,Oe[b(Qe)]=Dt}return Object.assign(Object.assign({},x),Oe)}(y,h,f,C,y.children,x));return Oe._sourceSegment=y,Oe._segmentIndexShift=h.length,{segmentGroup:Oe,slicedSegments:f}}const Z=new xt(y.segments,y.children);return Z._sourceSegment=y,Z._segmentIndexShift=h.length,{segmentGroup:Z,slicedSegments:f}}function to(y,h,f){return(!(y.hasChildren()||h.length>0)||"full"!==f.pathMatch)&&""===f.path}function Mo(y,h,f,C){return!!(b(y)===C||C!==nn&&to(h,f,y))&&("**"===y.path||Wt(h,y,f).matched)}function Uo(y,h,f){return 0===h.length&&!y.children[f]}class uo{constructor(h){this.segmentGroup=h||null}}class zo{constructor(h){this.urlTree=h}}function Hi(y){return(0,De._)(new uo(y))}function Io(y){return(0,De._)(new zo(y))}class ji{constructor(h,f,C,x,Z){this.configLoader=f,this.urlSerializer=C,this.urlTree=x,this.config=Z,this.allowRedirects=!0,this.ngModule=h.get(r.h0i)}apply(){const h=$n(this.urlTree.root,[],[],this.config).segmentGroup,f=new xt(h.segments,h.children);return this.expandSegmentGroup(this.ngModule,this.config,f,nn).pipe((0,J.U)(Z=>this.createUrlTree(fo(Z),this.urlTree.queryParams,this.urlTree.fragment))).pipe(le(Z=>{if(Z instanceof zo)return this.allowRedirects=!1,this.match(Z.urlTree);throw Z instanceof uo?this.noMatchError(Z):Z}))}match(h){return this.expandSegmentGroup(this.ngModule,this.config,h.root,nn).pipe((0,J.U)(x=>this.createUrlTree(fo(x),h.queryParams,h.fragment))).pipe(le(x=>{throw x instanceof uo?this.noMatchError(x):x}))}noMatchError(h){return new Error(`Cannot match any routes. URL Segment: '${h.segmentGroup}'`)}createUrlTree(h,f,C){const x=h.segments.length>0?new xt([],{[nn]:h}):h;return new Rt(x,f,C)}expandSegmentGroup(h,f,C,x){return 0===C.segments.length&&C.hasChildren()?this.expandChildren(h,f,C).pipe((0,J.U)(Z=>new xt([],Z))):this.expandSegment(h,C,f,C.segments,x,!0)}expandChildren(h,f,C){const x=[];for(const Z of Object.keys(C.children))"primary"===Z?x.unshift(Z):x.push(Z);return(0,m.D)(x).pipe((0,be.b)(Z=>{const Oe=C.children[Z],Qe=W(f,Z);return this.expandSegmentGroup(h,Qe,Oe,Z).pipe((0,J.U)(Dt=>({segment:Dt,outlet:Z})))}),re((Z,Oe)=>(Z[Oe.outlet]=Oe.segment,Z),{}),function Bn(y,h){const f=arguments.length>=2;return C=>C.pipe(y?(0,pe.h)((x,Z)=>y(x,Z,C)):wn.y,H(1),f?Vt(h):it(()=>new me))}())}expandSegment(h,f,C,x,Z,Oe){return(0,m.D)(C).pipe((0,be.b)(Qe=>this.expandSegmentAgainstRoute(h,f,C,Qe,x,Z,Oe).pipe(le(Qt=>{if(Qt instanceof uo)return(0,D.of)(null);throw Qt}))),tt(Qe=>!!Qe),le((Qe,Dt)=>{if(Qe instanceof me||"EmptyError"===Qe.name)return Uo(f,x,Z)?(0,D.of)(new xt([],{})):Hi(f);throw Qe}))}expandSegmentAgainstRoute(h,f,C,x,Z,Oe,Qe){return Mo(x,f,Z,Oe)?void 0===x.redirectTo?this.matchSegmentAgainstRoute(h,f,x,Z,Oe):Qe&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(h,f,C,x,Z,Oe):Hi(f):Hi(f)}expandSegmentAgainstRouteUsingRedirect(h,f,C,x,Z,Oe){return"**"===x.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(h,C,x,Oe):this.expandRegularSegmentAgainstRouteUsingRedirect(h,f,C,x,Z,Oe)}expandWildCardWithParamsAgainstRouteUsingRedirect(h,f,C,x){const Z=this.applyRedirectCommands([],C.redirectTo,{});return C.redirectTo.startsWith("/")?Io(Z):this.lineralizeSegments(C,Z).pipe((0,xe.zg)(Oe=>{const Qe=new xt(Oe,{});return this.expandSegment(h,Qe,f,Oe,x,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(h,f,C,x,Z,Oe){const{matched:Qe,consumedSegments:Dt,remainingSegments:Qt,positionalParamSegments:Pn}=Wt(f,x,Z);if(!Qe)return Hi(f);const cn=this.applyRedirectCommands(Dt,x.redirectTo,Pn);return x.redirectTo.startsWith("/")?Io(cn):this.lineralizeSegments(x,cn).pipe((0,xe.zg)(Xn=>this.expandSegment(h,f,C,Xn.concat(Qt),Oe,!1)))}matchSegmentAgainstRoute(h,f,C,x,Z){if("**"===C.path)return C.loadChildren?(C._loadedConfig?(0,D.of)(C._loadedConfig):this.configLoader.load(h.injector,C)).pipe((0,J.U)(cn=>(C._loadedConfig=cn,new xt(x,{})))):(0,D.of)(new xt(x,{}));const{matched:Oe,consumedSegments:Qe,remainingSegments:Dt}=Wt(f,C,x);return Oe?this.getChildConfig(h,C,x).pipe((0,xe.zg)(Pn=>{const cn=Pn.module,Xn=Pn.routes,{segmentGroup:tr,slicedSegments:ci}=$n(f,Qe,Dt,Xn),ui=new xt(tr.segments,tr.children);if(0===ci.length&&ui.hasChildren())return this.expandChildren(cn,Xn,ui).pipe((0,J.U)(rl=>new xt(Qe,rl)));if(0===Xn.length&&0===ci.length)return(0,D.of)(new xt(Qe,{}));const ha=b(C)===Z;return this.expandSegment(cn,ui,Xn,ci,ha?nn:Z,!0).pipe((0,J.U)(dr=>new xt(Qe.concat(dr.segments),dr.children)))})):Hi(f)}getChildConfig(h,f,C){return f.children?(0,D.of)(new gi(f.children,h)):f.loadChildren?void 0!==f._loadedConfig?(0,D.of)(f._loadedConfig):this.runCanLoadGuards(h.injector,f,C).pipe((0,xe.zg)(x=>x?this.configLoader.load(h.injector,f).pipe((0,J.U)(Z=>(f._loadedConfig=Z,Z))):function Tt(y){return(0,De._)(Zn(`Cannot load children because the guard of the route "path: '${y.path}'" returned false`))}(f))):(0,D.of)(new gi([],h))}runCanLoadGuards(h,f,C){const x=f.canLoad;if(!x||0===x.length)return(0,D.of)(!0);const Z=x.map(Oe=>{const Qe=h.get(Oe);let Dt;if(function I(y){return y&&kr(y.canLoad)}(Qe))Dt=Qe.canLoad(f,C);else{if(!kr(Qe))throw new Error("Invalid CanLoad guard");Dt=Qe(f,C)}return sn(Dt)});return(0,D.of)(Z).pipe(a(),(0,O.b)(Oe=>{if(!K(Oe))return;const Qe=Zn(`Redirecting to "${this.urlSerializer.serialize(Oe)}"`);throw Qe.url=Oe,Qe}),(0,J.U)(Oe=>!0===Oe))}lineralizeSegments(h,f){let C=[],x=f.root;for(;;){if(C=C.concat(x.segments),0===x.numberOfChildren)return(0,D.of)(C);if(x.numberOfChildren>1||!x.children[nn])return(0,De._)(new Error(`Only absolute redirects can have named outlets. redirectTo: '${h.redirectTo}'`));x=x.children[nn]}}applyRedirectCommands(h,f,C){return this.applyRedirectCreatreUrlTree(f,this.urlSerializer.parse(f),h,C)}applyRedirectCreatreUrlTree(h,f,C,x){const Z=this.createSegmentGroup(h,f.root,C,x);return new Rt(Z,this.createQueryParams(f.queryParams,this.urlTree.queryParams),f.fragment)}createQueryParams(h,f){const C={};return Ht(h,(x,Z)=>{if("string"==typeof x&&x.startsWith(":")){const Qe=x.substring(1);C[Z]=f[Qe]}else C[Z]=x}),C}createSegmentGroup(h,f,C,x){const Z=this.createSegments(h,f.segments,C,x);let Oe={};return Ht(f.children,(Qe,Dt)=>{Oe[Dt]=this.createSegmentGroup(h,Qe,C,x)}),new xt(Z,Oe)}createSegments(h,f,C,x){return f.map(Z=>Z.path.startsWith(":")?this.findPosParam(h,Z,x):this.findOrReturn(Z,C))}findPosParam(h,f,C){const x=C[f.path.substring(1)];if(!x)throw new Error(`Cannot redirect to '${h}'. Cannot find '${f.path}'.`);return x}findOrReturn(h,f){let C=0;for(const x of f){if(x.path===h.path)return f.splice(C),x;C++}return h}}function fo(y){const h={};for(const C of Object.keys(y.children)){const Z=fo(y.children[C]);(Z.segments.length>0||Z.hasChildren())&&(h[C]=Z)}return function mr(y){if(1===y.numberOfChildren&&y.children[nn]){const h=y.children[nn];return new xt(y.segments.concat(h.segments),h.children)}return y}(new xt(y.segments,h))}class Hr{constructor(h){this.path=h,this.route=this.path[this.path.length-1]}}class Ui{constructor(h,f){this.component=h,this.route=f}}function To(y,h,f){const C=y._root;return mi(C,h?h._root:null,f,[C.value])}function ho(y,h,f){const C=function Ps(y){if(!y)return null;for(let h=y.parent;h;h=h.parent){const f=h.routeConfig;if(f&&f._loadedConfig)return f._loadedConfig}return null}(h);return(C?C.module.injector:f).get(y)}function mi(y,h,f,C,x={canDeactivateChecks:[],canActivateChecks:[]}){const Z=qn(h);return y.children.forEach(Oe=>{(function Ar(y,h,f,C,x={canDeactivateChecks:[],canActivateChecks:[]}){const Z=y.value,Oe=h?h.value:null,Qe=f?f.getContext(y.value.outlet):null;if(Oe&&Z.routeConfig===Oe.routeConfig){const Dt=function br(y,h,f){if("function"==typeof f)return f(y,h);switch(f){case"pathParamsChange":return!tn(y.url,h.url);case"pathParamsOrQueryParamsChange":return!tn(y.url,h.url)||!ot(y.queryParams,h.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!fi(y,h)||!ot(y.queryParams,h.queryParams);default:return!fi(y,h)}}(Oe,Z,Z.routeConfig.runGuardsAndResolvers);Dt?x.canActivateChecks.push(new Hr(C)):(Z.data=Oe.data,Z._resolvedData=Oe._resolvedData),mi(y,h,Z.component?Qe?Qe.children:null:f,C,x),Dt&&Qe&&Qe.outlet&&Qe.outlet.isActivated&&x.canDeactivateChecks.push(new Ui(Qe.outlet.component,Oe))}else Oe&&ti(h,Qe,x),x.canActivateChecks.push(new Hr(C)),mi(y,null,Z.component?Qe?Qe.children:null:f,C,x)})(Oe,Z[Oe.value.outlet],f,C.concat([Oe.value]),x),delete Z[Oe.value.outlet]}),Ht(Z,(Oe,Qe)=>ti(Oe,f.getContext(Qe),x)),x}function ti(y,h,f){const C=qn(y),x=y.value;Ht(C,(Z,Oe)=>{ti(Z,x.component?h?h.children.getContext(Oe):null:h,f)}),f.canDeactivateChecks.push(new Ui(x.component&&h&&h.outlet&&h.outlet.isActivated?h.outlet.component:null,x))}class go{}function mo(y){return new ee.y(h=>h.error(y))}class Qo{constructor(h,f,C,x,Z,Oe){this.rootComponentType=h,this.config=f,this.urlTree=C,this.url=x,this.paramsInheritanceStrategy=Z,this.relativeLinkResolution=Oe}recognize(){const h=$n(this.urlTree.root,[],[],this.config.filter(Oe=>void 0===Oe.redirectTo),this.relativeLinkResolution).segmentGroup,f=this.processSegmentGroup(this.config,h,nn);if(null===f)return null;const C=new Tr([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},nn,this.rootComponentType,null,this.urlTree.root,-1,{}),x=new er(C,f),Z=new Ai(this.url,x);return this.inheritParamsAndData(Z._root),Z}inheritParamsAndData(h){const f=h.value,C=qr(f,this.paramsInheritanceStrategy);f.params=Object.freeze(C.params),f.data=Object.freeze(C.data),h.children.forEach(x=>this.inheritParamsAndData(x))}processSegmentGroup(h,f,C){return 0===f.segments.length&&f.hasChildren()?this.processChildren(h,f):this.processSegment(h,f,f.segments,C)}processChildren(h,f){const C=[];for(const Z of Object.keys(f.children)){const Oe=f.children[Z],Qe=W(h,Z),Dt=this.processSegmentGroup(Qe,Oe,Z);if(null===Dt)return null;C.push(...Dt)}const x=vo(C);return function yo(y){y.sort((h,f)=>h.value.outlet===nn?-1:f.value.outlet===nn?1:h.value.outlet.localeCompare(f.value.outlet))}(x),x}processSegment(h,f,C,x){for(const Z of h){const Oe=this.processSegmentAgainstRoute(Z,f,C,x);if(null!==Oe)return Oe}return Uo(f,C,x)?[]:null}processSegmentAgainstRoute(h,f,C,x){if(h.redirectTo||!Mo(h,f,C,x))return null;let Z,Oe=[],Qe=[];if("**"===h.path){const tr=C.length>0?nt(C).parameters:{};Z=new Tr(C,tr,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ro(h),b(h),h.component,h,Gi(f),Zo(f)+C.length,Mr(h))}else{const tr=Wt(f,h,C);if(!tr.matched)return null;Oe=tr.consumedSegments,Qe=tr.remainingSegments,Z=new Tr(Oe,tr.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ro(h),b(h),h.component,h,Gi(f),Zo(f)+Oe.length,Mr(h))}const Dt=function Xo(y){return y.children?y.children:y.loadChildren?y._loadedConfig.routes:[]}(h),{segmentGroup:Qt,slicedSegments:Pn}=$n(f,Oe,Qe,Dt.filter(tr=>void 0===tr.redirectTo),this.relativeLinkResolution);if(0===Pn.length&&Qt.hasChildren()){const tr=this.processChildren(Dt,Qt);return null===tr?null:[new er(Z,tr)]}if(0===Dt.length&&0===Pn.length)return[new er(Z,[])];const cn=b(h)===x,Xn=this.processSegment(Dt,Qt,Pn,cn?nn:x);return null===Xn?null:[new er(Z,Xn)]}}function qo(y){const h=y.value.routeConfig;return h&&""===h.path&&void 0===h.redirectTo}function vo(y){const h=[],f=new Set;for(const C of y){if(!qo(C)){h.push(C);continue}const x=h.find(Z=>C.value.routeConfig===Z.value.routeConfig);void 0!==x?(x.children.push(...C.children),f.add(x)):h.push(C)}for(const C of f){const x=vo(C.children);h.push(new er(C.value,x))}return h.filter(C=>!f.has(C))}function Gi(y){let h=y;for(;h._sourceSegment;)h=h._sourceSegment;return h}function Zo(y){let h=y,f=h._segmentIndexShift?h._segmentIndexShift:0;for(;h._sourceSegment;)h=h._sourceSegment,f+=h._segmentIndexShift?h._segmentIndexShift:0;return f-1}function Ro(y){return y.data||{}}function Mr(y){return y.resolve||{}}function Jo(y){return[...Object.keys(y),...Object.getOwnPropertySymbols(y)]}function _o(y){return(0,We.w)(h=>{const f=y(h);return f?(0,m.D)(f).pipe((0,J.U)(()=>h)):(0,D.of)(h)})}class Fo{}class Co extends class Eo{shouldDetach(h){return!1}store(h,f){}shouldAttach(h){return!1}retrieve(h){return null}shouldReuseRoute(h,f){return h.routeConfig===f.routeConfig}}{}const ro=new r.OlP("ROUTES");class wo{constructor(h,f,C,x){this.injector=h,this.compiler=f,this.onLoadStartListener=C,this.onLoadEndListener=x}load(h,f){if(f._loader$)return f._loader$;this.onLoadStartListener&&this.onLoadStartListener(f);const x=this.loadModuleFactory(f.loadChildren).pipe((0,J.U)(Z=>{this.onLoadEndListener&&this.onLoadEndListener(f);const Oe=Z.create(h);return new gi(Ee(Oe.injector.get(ro,void 0,r.XFs.Self|r.XFs.Optional)).map(E),Oe)}),le(Z=>{throw f._loader$=void 0,Z}));return f._loader$=new Fe.c(x,()=>new Te.xQ).pipe((0,se.x)()),f._loader$}loadModuleFactory(h){return sn(h()).pipe((0,xe.zg)(f=>f instanceof r.YKP?(0,D.of)(f):(0,m.D)(this.compiler.compileModuleAsync(f))))}}class Fs{shouldProcessUrl(h){return!0}extract(h){return h}merge(h,f){return h}}function M(y){throw y}function c(y,h,f){return h.parse("/")}function u(y,h){return(0,D.of)(null)}const _={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},B={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ie=(()=>{class y{constructor(f,C,x,Z,Oe,Qe,Dt){this.rootComponentType=f,this.urlSerializer=C,this.rootContexts=x,this.location=Z,this.config=Dt,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Te.xQ,this.errorHandler=M,this.malformedUriErrorHandler=c,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:u,afterPreactivation:u},this.urlHandlingStrategy=new Fs,this.routeReuseStrategy=new Co,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=Oe.get(r.h0i),this.console=Oe.get(r.c2e);const cn=Oe.get(r.R0b);this.isNgZoneEnabled=cn instanceof r.R0b&&r.R0b.isInAngularZone(),this.resetConfig(Dt),this.currentUrlTree=function Fn(){return new Rt(new xt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new wo(Oe,Qe,Xn=>this.triggerEvent(new Yt(Xn)),Xn=>this.triggerEvent(new In(Xn))),this.routerState=ur(this.currentUrlTree,this.rootComponentType),this.transitions=new j.X({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var f;return null===(f=this.location.getState())||void 0===f?void 0:f.\u0275routerPageId}setupNavigations(f){const C=this.events;return f.pipe((0,pe.h)(x=>0!==x.id),(0,J.U)(x=>Object.assign(Object.assign({},x),{extractedUrl:this.urlHandlingStrategy.extract(x.rawUrl)})),(0,We.w)(x=>{let Z=!1,Oe=!1;return(0,D.of)(x).pipe((0,O.b)(Qe=>{this.currentNavigation={id:Qe.id,initialUrl:Qe.currentRawUrl,extractedUrl:Qe.extractedUrl,trigger:Qe.source,extras:Qe.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,We.w)(Qe=>{const Dt=this.browserUrlTree.toString(),Qt=!this.navigated||Qe.extractedUrl.toString()!==Dt||Dt!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||Qt)&&this.urlHandlingStrategy.shouldProcessUrl(Qe.rawUrl))return Ge(Qe.source)&&(this.browserUrlTree=Qe.extractedUrl),(0,D.of)(Qe).pipe((0,We.w)(cn=>{const Xn=this.transitions.getValue();return C.next(new vt(cn.id,this.serializeUrl(cn.extractedUrl),cn.source,cn.restoredState)),Xn!==this.transitions.getValue()?je.E:Promise.resolve(cn)}),function no(y,h,f,C){return(0,We.w)(x=>function Vn(y,h,f,C,x){return new ji(y,h,f,C,x).apply()}(y,h,f,x.extractedUrl,C).pipe((0,J.U)(Z=>Object.assign(Object.assign({},x),{urlAfterRedirects:Z}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,O.b)(cn=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:cn.urlAfterRedirects})}),function wi(y,h,f,C,x){return(0,xe.zg)(Z=>function Ko(y,h,f,C,x="emptyOnly",Z="legacy"){try{const Oe=new Qo(y,h,f,C,x,Z).recognize();return null===Oe?mo(new go):(0,D.of)(Oe)}catch(Oe){return mo(Oe)}}(y,h,Z.urlAfterRedirects,f(Z.urlAfterRedirects),C,x).pipe((0,J.U)(Oe=>Object.assign(Object.assign({},Z),{targetSnapshot:Oe}))))}(this.rootComponentType,this.config,cn=>this.serializeUrl(cn),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,O.b)(cn=>{if("eager"===this.urlUpdateStrategy){if(!cn.extras.skipLocationChange){const tr=this.urlHandlingStrategy.merge(cn.urlAfterRedirects,cn.rawUrl);this.setBrowserUrl(tr,cn)}this.browserUrlTree=cn.urlAfterRedirects}const Xn=new Ut(cn.id,this.serializeUrl(cn.extractedUrl),this.serializeUrl(cn.urlAfterRedirects),cn.targetSnapshot);C.next(Xn)}));if(Qt&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:Xn,extractedUrl:tr,source:ci,restoredState:ui,extras:ha}=Qe,pa=new vt(Xn,this.serializeUrl(tr),ci,ui);C.next(pa);const dr=ur(tr,this.rootComponentType).snapshot;return(0,D.of)(Object.assign(Object.assign({},Qe),{targetSnapshot:dr,urlAfterRedirects:tr,extras:Object.assign(Object.assign({},ha),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=Qe.rawUrl,Qe.resolve(null),je.E}),_o(Qe=>{const{targetSnapshot:Dt,id:Qt,extractedUrl:Pn,rawUrl:cn,extras:{skipLocationChange:Xn,replaceUrl:tr}}=Qe;return this.hooks.beforePreactivation(Dt,{navigationId:Qt,appliedUrlTree:Pn,rawUrlTree:cn,skipLocationChange:!!Xn,replaceUrl:!!tr})}),(0,O.b)(Qe=>{const Dt=new Xt(Qe.id,this.serializeUrl(Qe.extractedUrl),this.serializeUrl(Qe.urlAfterRedirects),Qe.targetSnapshot);this.triggerEvent(Dt)}),(0,J.U)(Qe=>Object.assign(Object.assign({},Qe),{guards:To(Qe.targetSnapshot,Qe.currentSnapshot,this.rootContexts)})),function zi(y,h){return(0,xe.zg)(f=>{const{targetSnapshot:C,currentSnapshot:x,guards:{canActivateChecks:Z,canDeactivateChecks:Oe}}=f;return 0===Oe.length&&0===Z.length?(0,D.of)(Object.assign(Object.assign({},f),{guardsResult:!0})):function yi(y,h,f,C){return(0,m.D)(y).pipe((0,xe.zg)(x=>function Oo(y,h,f,C,x){const Z=h&&h.routeConfig?h.routeConfig.canDeactivate:null;if(!Z||0===Z.length)return(0,D.of)(!0);const Oe=Z.map(Qe=>{const Dt=ho(Qe,h,x);let Qt;if(function wt(y){return y&&kr(y.canDeactivate)}(Dt))Qt=sn(Dt.canDeactivate(y,h,f,C));else{if(!kr(Dt))throw new Error("Invalid CanDeactivate guard");Qt=sn(Dt(y,h,f,C))}return Qt.pipe(tt())});return(0,D.of)(Oe).pipe(a())}(x.component,x.route,f,h,C)),tt(x=>!0!==x,!0))}(Oe,C,x,y).pipe((0,xe.zg)(Qe=>Qe&&function A(y){return"boolean"==typeof y}(Qe)?function Go(y,h,f,C){return(0,m.D)(h).pipe((0,be.b)(x=>(0,ze.z)(function Yo(y,h){return null!==y&&h&&h(new yn(y)),(0,D.of)(!0)}(x.route.parent,C),function Wo(y,h){return null!==y&&h&&h(new un(y)),(0,D.of)(!0)}(x.route,C),function Po(y,h,f){const C=h[h.length-1],Z=h.slice(0,h.length-1).reverse().map(Oe=>function xo(y){const h=y.routeConfig?y.routeConfig.canActivateChild:null;return h&&0!==h.length?{node:y,guards:h}:null}(Oe)).filter(Oe=>null!==Oe).map(Oe=>(0,Pe.P)(()=>{const Qe=Oe.guards.map(Dt=>{const Qt=ho(Dt,Oe.node,f);let Pn;if(function Xe(y){return y&&kr(y.canActivateChild)}(Qt))Pn=sn(Qt.canActivateChild(C,y));else{if(!kr(Qt))throw new Error("Invalid CanActivateChild guard");Pn=sn(Qt(C,y))}return Pn.pipe(tt())});return(0,D.of)(Qe).pipe(a())}));return(0,D.of)(Z).pipe(a())}(y,x.path,f),function po(y,h,f){const C=h.routeConfig?h.routeConfig.canActivate:null;if(!C||0===C.length)return(0,D.of)(!0);const x=C.map(Z=>(0,Pe.P)(()=>{const Oe=ho(Z,h,f);let Qe;if(function te(y){return y&&kr(y.canActivate)}(Oe))Qe=sn(Oe.canActivate(h,y));else{if(!kr(Oe))throw new Error("Invalid CanActivate guard");Qe=sn(Oe(h,y))}return Qe.pipe(tt())}));return(0,D.of)(x).pipe(a())}(y,x.route,f))),tt(x=>!0!==x,!0))}(C,Z,y,h):(0,D.of)(Qe)),(0,J.U)(Qe=>Object.assign(Object.assign({},f),{guardsResult:Qe})))})}(this.ngModule.injector,Qe=>this.triggerEvent(Qe)),(0,O.b)(Qe=>{if(K(Qe.guardsResult)){const Qt=Zn(`Redirecting to "${this.serializeUrl(Qe.guardsResult)}"`);throw Qt.url=Qe.guardsResult,Qt}const Dt=new Nn(Qe.id,this.serializeUrl(Qe.extractedUrl),this.serializeUrl(Qe.urlAfterRedirects),Qe.targetSnapshot,!!Qe.guardsResult);this.triggerEvent(Dt)}),(0,pe.h)(Qe=>!!Qe.guardsResult||(this.restoreHistory(Qe),this.cancelNavigationTransition(Qe,""),!1)),_o(Qe=>{if(Qe.guards.canActivateChecks.length)return(0,D.of)(Qe).pipe((0,O.b)(Dt=>{const Qt=new mn(Dt.id,this.serializeUrl(Dt.extractedUrl),this.serializeUrl(Dt.urlAfterRedirects),Dt.targetSnapshot);this.triggerEvent(Qt)}),(0,We.w)(Dt=>{let Qt=!1;return(0,D.of)(Dt).pipe(function hr(y,h){return(0,xe.zg)(f=>{const{targetSnapshot:C,guards:{canActivateChecks:x}}=f;if(!x.length)return(0,D.of)(f);let Z=0;return(0,m.D)(x).pipe((0,be.b)(Oe=>function Os(y,h,f,C){return function Rs(y,h,f,C){const x=Jo(y);if(0===x.length)return(0,D.of)({});const Z={};return(0,m.D)(x).pipe((0,xe.zg)(Oe=>function es(y,h,f,C){const x=ho(y,h,C);return sn(x.resolve?x.resolve(h,f):x(h,f))}(y[Oe],h,f,C).pipe((0,O.b)(Qe=>{Z[Oe]=Qe}))),H(1),(0,xe.zg)(()=>Jo(Z).length===x.length?(0,D.of)(Z):je.E))}(y._resolve,y,h,C).pipe((0,J.U)(Z=>(y._resolvedData=Z,y.data=Object.assign(Object.assign({},y.data),qr(y,f).resolve),null)))}(Oe.route,C,y,h)),(0,O.b)(()=>Z++),H(1),(0,xe.zg)(Oe=>Z===x.length?(0,D.of)(f):je.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,O.b)({next:()=>Qt=!0,complete:()=>{Qt||(this.restoreHistory(Dt),this.cancelNavigationTransition(Dt,"At least one route resolver didn't emit any value."))}}))}),(0,O.b)(Dt=>{const Qt=new bn(Dt.id,this.serializeUrl(Dt.extractedUrl),this.serializeUrl(Dt.urlAfterRedirects),Dt.targetSnapshot);this.triggerEvent(Qt)}))}),_o(Qe=>{const{targetSnapshot:Dt,id:Qt,extractedUrl:Pn,rawUrl:cn,extras:{skipLocationChange:Xn,replaceUrl:tr}}=Qe;return this.hooks.afterPreactivation(Dt,{navigationId:Qt,appliedUrlTree:Pn,rawUrlTree:cn,skipLocationChange:!!Xn,replaceUrl:!!tr})}),(0,J.U)(Qe=>{const Dt=function oi(y,h,f){const C=xr(y,h._root,f?f._root:void 0);return new pr(C,h)}(this.routeReuseStrategy,Qe.targetSnapshot,Qe.currentRouterState);return Object.assign(Object.assign({},Qe),{targetRouterState:Dt})}),(0,O.b)(Qe=>{this.currentUrlTree=Qe.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Qe.urlAfterRedirects,Qe.rawUrl),this.routerState=Qe.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Qe.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Qe),this.browserUrlTree=Qe.urlAfterRedirects)}),((y,h,f)=>(0,J.U)(C=>(new ei(h,C.targetRouterState,C.currentRouterState,f).activate(y),C)))(this.rootContexts,this.routeReuseStrategy,Qe=>this.triggerEvent(Qe)),(0,O.b)({next(){Z=!0},complete(){Z=!0}}),function _e(y){return h=>h.lift(new at(y))}(()=>{var Qe;Z||Oe||this.cancelNavigationTransition(x,`Navigation ID ${x.id} is not equal to the current navigation id ${this.navigationId}`),(null===(Qe=this.currentNavigation)||void 0===Qe?void 0:Qe.id)===x.id&&(this.currentNavigation=null)}),le(Qe=>{if(Oe=!0,function Kn(y){return y&&y[nr]}(Qe)){const Dt=K(Qe.url);Dt||(this.navigated=!0,this.restoreHistory(x,!0));const Qt=new St(x.id,this.serializeUrl(x.extractedUrl),Qe.message);C.next(Qt),Dt?setTimeout(()=>{const Pn=this.urlHandlingStrategy.merge(Qe.url,this.rawUrlTree),cn={skipLocationChange:x.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Ge(x.source)};this.scheduleNavigation(Pn,"imperative",null,cn,{resolve:x.resolve,reject:x.reject,promise:x.promise})},0):x.resolve(!1)}else{this.restoreHistory(x,!0);const Dt=new Jt(x.id,this.serializeUrl(x.extractedUrl),Qe);C.next(Dt);try{x.resolve(this.errorHandler(Qe))}catch(Qt){x.reject(Qt)}}return je.E}))}))}resetRootComponentType(f){this.rootComponentType=f,this.routerState.root.component=this.rootComponentType}setTransition(f){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),f))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(f=>{const C="popstate"===f.type?"popstate":"hashchange";"popstate"===C&&setTimeout(()=>{var x;const Z={replaceUrl:!0},Oe=(null===(x=f.state)||void 0===x?void 0:x.navigationId)?f.state:null;if(Oe){const Dt=Object.assign({},Oe);delete Dt.navigationId,delete Dt.\u0275routerPageId,0!==Object.keys(Dt).length&&(Z.state=Dt)}const Qe=this.parseUrl(f.url);this.scheduleNavigation(Qe,C,Oe,Z)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(f){this.events.next(f)}resetConfig(f){Ft(f),this.config=f.map(E),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(f,C={}){const{relativeTo:x,queryParams:Z,fragment:Oe,queryParamsHandling:Qe,preserveFragment:Dt}=C,Qt=x||this.routerState.root,Pn=Dt?this.currentUrlTree.fragment:Oe;let cn=null;switch(Qe){case"merge":cn=Object.assign(Object.assign({},this.currentUrlTree.queryParams),Z);break;case"preserve":cn=this.currentUrlTree.queryParams;break;default:cn=Z||null}return null!==cn&&(cn=this.removeEmptyProps(cn)),function si(y,h,f,C,x){if(0===f.length)return Yr(h.root,h.root,h.root,C,x);const Z=function Mi(y){if("string"==typeof y[0]&&1===y.length&&"/"===y[0])return new Lr(!0,0,y);let h=0,f=!1;const C=y.reduce((x,Z,Oe)=>{if("object"==typeof Z&&null!=Z){if(Z.outlets){const Qe={};return Ht(Z.outlets,(Dt,Qt)=>{Qe[Qt]="string"==typeof Dt?Dt.split("/"):Dt}),[...x,{outlets:Qe}]}if(Z.segmentPath)return[...x,Z.segmentPath]}return"string"!=typeof Z?[...x,Z]:0===Oe?(Z.split("/").forEach((Qe,Dt)=>{0==Dt&&"."===Qe||(0==Dt&&""===Qe?f=!0:".."===Qe?h++:""!=Qe&&x.push(Qe))}),x):[...x,Z]},[]);return new Lr(f,h,C)}(f);if(Z.toRoot())return Yr(h.root,h.root,new xt([],{}),C,x);const Oe=function Ii(y,h,f){if(y.isAbsolute)return new Zr(h.root,!0,0);if(-1===f.snapshot._lastPathIndex){const Z=f.snapshot._urlSegment;return new Zr(Z,Z===h.root,0)}const C=Fr(y.commands[0])?0:1;return function Nr(y,h,f){let C=y,x=h,Z=f;for(;Z>x;){if(Z-=x,C=C.parent,!C)throw new Error("Invalid number of '../'");x=C.segments.length}return new Zr(C,!1,x-Z)}(f.snapshot._urlSegment,f.snapshot._lastPathIndex+C,y.numberOfDoubleDots)}(Z,h,y),Qe=Oe.processChildren?vr(Oe.segmentGroup,Oe.index,Z.commands):Cr(Oe.segmentGroup,Oe.index,Z.commands);return Yr(h.root,Oe.segmentGroup,Qe,C,x)}(Qt,this.currentUrlTree,f,cn,null!=Pn?Pn:null)}navigateByUrl(f,C={skipLocationChange:!1}){const x=K(f)?f:this.parseUrl(f),Z=this.urlHandlingStrategy.merge(x,this.rawUrlTree);return this.scheduleNavigation(Z,"imperative",null,C)}navigate(f,C={skipLocationChange:!1}){return function He(y){for(let h=0;h<y.length;h++){const f=y[h];if(null==f)throw new Error(`The requested path contains ${f} segment at index ${h}`)}}(f),this.navigateByUrl(this.createUrlTree(f,C),C)}serializeUrl(f){return this.urlSerializer.serialize(f)}parseUrl(f){let C;try{C=this.urlSerializer.parse(f)}catch(x){C=this.malformedUriErrorHandler(x,this.urlSerializer,f)}return C}isActive(f,C){let x;if(x=!0===C?Object.assign({},_):!1===C?Object.assign({},B):C,K(f))return $(this.currentUrlTree,f,x);const Z=this.parseUrl(f);return $(this.currentUrlTree,Z,x)}removeEmptyProps(f){return Object.keys(f).reduce((C,x)=>{const Z=f[x];return null!=Z&&(C[x]=Z),C},{})}processNavigations(){this.navigations.subscribe(f=>{this.navigated=!0,this.lastSuccessfulId=f.id,this.currentPageId=f.targetPageId,this.events.next(new gt(f.id,this.serializeUrl(f.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,f.resolve(!0)},f=>{this.console.warn(`Unhandled Navigation Error: ${f}`)})}scheduleNavigation(f,C,x,Z,Oe){var Qe,Dt;if(this.disposed)return Promise.resolve(!1);let Qt,Pn,cn;Oe?(Qt=Oe.resolve,Pn=Oe.reject,cn=Oe.promise):cn=new Promise((ci,ui)=>{Qt=ci,Pn=ui});const Xn=++this.navigationId;let tr;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(x=this.location.getState()),tr=x&&x.\u0275routerPageId?x.\u0275routerPageId:Z.replaceUrl||Z.skipLocationChange?null!==(Qe=this.browserPageId)&&void 0!==Qe?Qe:0:(null!==(Dt=this.browserPageId)&&void 0!==Dt?Dt:0)+1):tr=0,this.setTransition({id:Xn,targetPageId:tr,source:C,restoredState:x,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:f,extras:Z,resolve:Qt,reject:Pn,promise:cn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),cn.catch(ci=>Promise.reject(ci))}setBrowserUrl(f,C){const x=this.urlSerializer.serialize(f),Z=Object.assign(Object.assign({},C.extras.state),this.generateNgRouterState(C.id,C.targetPageId));this.location.isCurrentPathEqualTo(x)||C.extras.replaceUrl?this.location.replaceState(x,"",Z):this.location.go(x,"",Z)}restoreHistory(f,C=!1){var x,Z;if("computed"===this.canceledNavigationResolution){const Oe=this.currentPageId-f.targetPageId;"popstate"!==f.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(x=this.currentNavigation)||void 0===x?void 0:x.finalUrl)||0===Oe?this.currentUrlTree===(null===(Z=this.currentNavigation)||void 0===Z?void 0:Z.finalUrl)&&0===Oe&&(this.resetState(f),this.browserUrlTree=f.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(Oe)}else"replace"===this.canceledNavigationResolution&&(C&&this.resetState(f),this.resetUrlToCurrentUrlTree())}resetState(f){this.routerState=f.currentRouterState,this.currentUrlTree=f.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,f.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(f,C){const x=new St(f.id,this.serializeUrl(f.extractedUrl),C);this.triggerEvent(x),f.resolve(!1)}generateNgRouterState(f,C){return"computed"===this.canceledNavigationResolution?{navigationId:f,\u0275routerPageId:C}:{navigationId:f}}}return y.\u0275fac=function(f){r.$Z()},y.\u0275prov=r.Yz7({token:y,factory:y.\u0275fac}),y})();function Ge(y){return"imperative"!==y}let ct=(()=>{class y{constructor(f,C,x,Z,Oe){this.router=f,this.route=C,this.tabIndexAttribute=x,this.renderer=Z,this.el=Oe,this.commands=null,this.onChanges=new Te.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(f){if(null!=this.tabIndexAttribute)return;const C=this.renderer,x=this.el.nativeElement;null!==f?C.setAttribute(x,"tabindex",f):C.removeAttribute(x,"tabindex")}ngOnChanges(f){this.onChanges.next(this)}set routerLink(f){null!=f?(this.commands=Array.isArray(f)?f:[f],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const f={skipLocationChange:zt(this.skipLocationChange),replaceUrl:zt(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,f),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:zt(this.preserveFragment)})}}return y.\u0275fac=function(f){return new(f||y)(r.Y36(ie),r.Y36(Jn),r.$8M("tabindex"),r.Y36(r.Qsj),r.Y36(r.SBq))},y.\u0275dir=r.lG2({type:y,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(f,C){1&f&&r.NdJ("click",function(){return C.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[r.TTD]}),y})(),At=(()=>{class y{constructor(f,C,x){this.router=f,this.route=C,this.locationStrategy=x,this.commands=null,this.href=null,this.onChanges=new Te.xQ,this.subscription=f.events.subscribe(Z=>{Z instanceof gt&&this.updateTargetUrlAndHref()})}set routerLink(f){this.commands=null!=f?Array.isArray(f)?f:[f]:null}ngOnChanges(f){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(f,C,x,Z,Oe){if(0!==f||C||x||Z||Oe||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const Qe={skipLocationChange:zt(this.skipLocationChange),replaceUrl:zt(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,Qe),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:zt(this.preserveFragment)})}}return y.\u0275fac=function(f){return new(f||y)(r.Y36(ie),r.Y36(Jn),r.Y36(oe.S$))},y.\u0275dir=r.lG2({type:y,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(f,C){1&f&&r.NdJ("click",function(Z){return C.onClick(Z.button,Z.ctrlKey,Z.shiftKey,Z.altKey,Z.metaKey)}),2&f&&r.uIk("target",C.target)("href",C.href,r.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[r.TTD]}),y})();function zt(y){return""===y||!!y}class xn{}class pn{preload(h,f){return f().pipe(le(()=>(0,D.of)(null)))}}class Mn{preload(h,f){return(0,D.of)(null)}}let Hn=(()=>{class y{constructor(f,C,x,Z){this.router=f,this.injector=x,this.preloadingStrategy=Z,this.loader=new wo(x,C,Dt=>f.triggerEvent(new Yt(Dt)),Dt=>f.triggerEvent(new In(Dt)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,pe.h)(f=>f instanceof gt),(0,be.b)(()=>this.preload())).subscribe(()=>{})}preload(){const f=this.injector.get(r.h0i);return this.processRoutes(f,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(f,C){const x=[];for(const Z of C)if(Z.loadChildren&&!Z.canLoad&&Z._loadedConfig){const Oe=Z._loadedConfig;x.push(this.processRoutes(Oe.module,Oe.routes))}else Z.loadChildren&&!Z.canLoad?x.push(this.preloadConfig(f,Z)):Z.children&&x.push(this.processRoutes(f,Z.children));return(0,m.D)(x).pipe((0,ke.J)(),(0,J.U)(Z=>{}))}preloadConfig(f,C){return this.preloadingStrategy.preload(C,()=>(C._loadedConfig?(0,D.of)(C._loadedConfig):this.loader.load(f.injector,C)).pipe((0,xe.zg)(Z=>(C._loadedConfig=Z,this.processRoutes(Z.module,Z.routes)))))}}return y.\u0275fac=function(f){return new(f||y)(r.LFG(ie),r.LFG(r.Sil),r.LFG(r.zs3),r.LFG(xn))},y.\u0275prov=r.Yz7({token:y,factory:y.\u0275fac}),y})(),or=(()=>{class y{constructor(f,C,x={}){this.router=f,this.viewportScroller=C,this.options=x,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},x.scrollPositionRestoration=x.scrollPositionRestoration||"disabled",x.anchorScrolling=x.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(f=>{f instanceof vt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=f.navigationTrigger,this.restoredId=f.restoredState?f.restoredState.navigationId:0):f instanceof gt&&(this.lastId=f.id,this.scheduleScrollEvent(f,this.router.parseUrl(f.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(f=>{f instanceof yr&&(f.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(f.position):f.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(f.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(f,C){this.router.triggerEvent(new yr(f,"popstate"===this.lastSource?this.store[this.restoredId]:null,C))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return y.\u0275fac=function(f){r.$Z()},y.\u0275prov=r.Yz7({token:y,factory:y.\u0275fac}),y})();const Wn=new r.OlP("ROUTER_CONFIGURATION"),sr=new r.OlP("ROUTER_FORROOT_GUARD"),io=[oe.Ye,{provide:Lt,useClass:ln},{provide:ie,useFactory:function Pi(y,h,f,C,x,Z,Oe={},Qe,Dt){const Qt=new ie(null,y,h,f,C,x,Ee(Z));return Qe&&(Qt.urlHandlingStrategy=Qe),Dt&&(Qt.routeReuseStrategy=Dt),function li(y,h){y.errorHandler&&(h.errorHandler=y.errorHandler),y.malformedUriErrorHandler&&(h.malformedUriErrorHandler=y.malformedUriErrorHandler),y.onSameUrlNavigation&&(h.onSameUrlNavigation=y.onSameUrlNavigation),y.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=y.paramsInheritanceStrategy),y.relativeLinkResolution&&(h.relativeLinkResolution=y.relativeLinkResolution),y.urlUpdateStrategy&&(h.urlUpdateStrategy=y.urlUpdateStrategy),y.canceledNavigationResolution&&(h.canceledNavigationResolution=y.canceledNavigationResolution)}(Oe,Qt),Oe.enableTracing&&Qt.events.subscribe(Pn=>{var cn,Xn;null===(cn=console.group)||void 0===cn||cn.call(console,`Router Event: ${Pn.constructor.name}`),console.log(Pn.toString()),console.log(Pn),null===(Xn=console.groupEnd)||void 0===Xn||Xn.call(console)}),Qt},deps:[Lt,l,oe.Ye,r.zs3,r.Sil,ro,Wn,[class ts{},new r.FiY],[Fo,new r.FiY]]},l,{provide:Jn,useFactory:function so(y){return y.routerState.root},deps:[ie]},Hn,Mn,pn,{provide:Wn,useValue:{enableTracing:!1}}];function ni(){return new r.PXZ("Router",ie)}let Ir=(()=>{class y{constructor(f,C){}static forRoot(f,C){return{ngModule:y,providers:[io,oo(f),{provide:sr,useFactory:jr,deps:[[ie,new r.FiY,new r.tp0]]},{provide:Wn,useValue:C||{}},{provide:oe.S$,useFactory:bi,deps:[oe.lw,[new r.tBr(oe.mr),new r.FiY],Wn]},{provide:or,useFactory:vi,deps:[ie,oe.EM,Wn]},{provide:xn,useExisting:C&&C.preloadingStrategy?C.preloadingStrategy:Mn},{provide:r.PXZ,multi:!0,useFactory:ni},[Do,{provide:r.ip1,multi:!0,useFactory:rn,deps:[Do]},{provide:_n,useFactory:gn,deps:[Do]},{provide:r.tb,multi:!0,useExisting:_n}]]}}static forChild(f){return{ngModule:y,providers:[oo(f)]}}}return y.\u0275fac=function(f){return new(f||y)(r.LFG(sr,8),r.LFG(ie,8))},y.\u0275mod=r.oAB({type:y}),y.\u0275inj=r.cJS({}),y})();function vi(y,h,f){return f.scrollOffset&&h.setOffset(f.scrollOffset),new or(y,h,f)}function bi(y,h,f={}){return f.useHash?new oe.Do(y,h):new oe.b0(y,h)}function jr(y){return"guarded"}function oo(y){return[{provide:r.deG,multi:!0,useValue:y},{provide:ro,multi:!0,useValue:y}]}let Do=(()=>{class y{constructor(f){this.injector=f,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Te.xQ}appInitializer(){return this.injector.get(oe.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let C=null;const x=new Promise(Qe=>C=Qe),Z=this.injector.get(ie),Oe=this.injector.get(Wn);return"disabled"===Oe.initialNavigation?(Z.setUpLocationChangeListener(),C(!0)):"enabled"===Oe.initialNavigation||"enabledBlocking"===Oe.initialNavigation?(Z.hooks.afterPreactivation=()=>this.initNavigation?(0,D.of)(null):(this.initNavigation=!0,C(!0),this.resultOfPreactivationDone),Z.initialNavigation()):C(!0),x})}bootstrapListener(f){const C=this.injector.get(Wn),x=this.injector.get(Hn),Z=this.injector.get(or),Oe=this.injector.get(ie),Qe=this.injector.get(r.z2F);f===Qe.components[0]&&(("enabledNonBlocking"===C.initialNavigation||void 0===C.initialNavigation)&&Oe.initialNavigation(),x.setUpPreloading(),Z.init(),Oe.resetRootComponentType(Qe.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return y.\u0275fac=function(f){return new(f||y)(r.LFG(r.zs3))},y.\u0275prov=r.Yz7({token:y,factory:y.\u0275fac}),y})();function rn(y){return y.appInitializer.bind(y)}function gn(y){return y.bootstrapListener.bind(y)}const _n=new r.OlP("Router Initializer")},5174:(Ct,ae,p)=>{"use strict";p.d(ae,{N:()=>P,V:()=>V});var r=p(655),m=p(2096),D=p(5876),j=p(2313);const U=["qrcElement"];let V=(()=>{class F{constructor(Q,ee){this.renderer=Q,this.sanitizer=ee,this.allowEmptyString=!1,this.colorDark="#000000ff",this.colorLight="#ffffffff",this.cssClass="qrcode",this.elementType="canvas",this.errorCorrectionLevel="M",this.margin=4,this.qrdata="",this.scale=4,this.width=10,this.qrCodeURL=new m.vpe,this.context=null}ngOnChanges(){return(0,r.mG)(this,void 0,void 0,function*(){yield this.createQRCode()})}isValidQrCodeText(Q){return!1===this.allowEmptyString?!(void 0===Q||""===Q||"null"===Q||null===Q):void 0!==Q}toDataURL(Q){return new Promise((ee,ne)=>{D.hz(this.qrdata,Q,(Y,ce)=>{Y?ne(Y):ee(ce)})})}toCanvas(Q,ee){return new Promise((ne,Y)=>{D.rT(Q,this.qrdata,ee,ce=>{ce?Y(ce):ne("success")})})}toSVG(Q){return new Promise((ee,ne)=>{D.toString(this.qrdata,Q,(Y,ce)=>{Y?ne(Y):ee(ce)})})}renderElement(Q){for(const ee of this.qrcElement.nativeElement.childNodes)this.renderer.removeChild(this.qrcElement.nativeElement,ee);this.renderer.appendChild(this.qrcElement.nativeElement,Q)}createQRCode(){return(0,r.mG)(this,void 0,void 0,function*(){this.version&&this.version>40?(console.warn("[angularx-qrcode] max value for `version` is 40"),this.version=40):this.version&&this.version<1?(console.warn("[angularx-qrcode]`min value for `version` is 1"),this.version=1):void 0!==this.version&&isNaN(this.version)&&(console.warn("[angularx-qrcode] version should be a number, defaulting to auto."),this.version=void 0);try{if(!this.isValidQrCodeText(this.qrdata))throw new Error("[angularx-qrcode] Field `qrdata` is empty, set 'allowEmptyString=\"true\"' to overwrite this behaviour.");this.isValidQrCodeText(this.qrdata)&&""===this.qrdata&&(this.qrdata=" ");const Q={color:{dark:this.colorDark,light:this.colorLight},errorCorrectionLevel:this.errorCorrectionLevel,margin:this.margin,scale:this.scale,type:this.elementType,version:this.version,width:this.width},ee=this.imageSrc,ne=this.imageHeight||40,Y=this.imageWidth||40;switch(this.elementType){case"canvas":const ce=this.renderer.createElement("canvas");this.context=ce.getContext("2d"),this.toCanvas(ce,Q).then(()=>{if(this.ariaLabel&&this.renderer.setAttribute(ce,"aria-label",`${this.ariaLabel}`),this.title&&this.renderer.setAttribute(ce,"title",`${this.title}`),ee&&this.context){this.centerImage=new Image(Y,ne),ee!==this.centerImage.src&&(this.centerImage.src=ee),ne!==this.centerImage.height&&(this.centerImage.height=ne),Y!==this.centerImage.width&&(this.centerImage.width=Y);const ye=this.centerImage;ye&&(ye.onload=()=>{var De;null===(De=this.context)||void 0===De||De.drawImage(ye,ce.width/2-Y/2,ce.height/2-ne/2,Y,ne)})}this.renderElement(ce),this.emitQRCodeURL(ce)}).catch(ye=>{console.error("[angularx-qrcode] canvas error:",ye)});break;case"svg":const Ne=this.renderer.createElement("div");this.toSVG(Q).then(ye=>{this.renderer.setProperty(Ne,"innerHTML",ye);const De=Ne.firstChild;this.renderer.setAttribute(De,"height",`${this.width}`),this.renderer.setAttribute(De,"width",`${this.width}`),this.renderElement(De),this.emitQRCodeURL(De)}).catch(ye=>{console.error("[angularx-qrcode] svg error:",ye)});break;default:const $e=this.renderer.createElement("img");this.toDataURL(Q).then(ye=>{this.alt&&$e.setAttribute("alt",this.alt),this.ariaLabel&&$e.setAttribute("aria-label",this.ariaLabel),$e.setAttribute("src",ye),this.title&&$e.setAttribute("title",this.title),this.renderElement($e),this.emitQRCodeURL($e)}).catch(ye=>{console.error("[angularx-qrcode] img/url error:",ye)})}}catch(Q){console.error("[angularx-qrcode] Error generating QR Code:",Q.message)}})}emitQRCodeURL(Q){const ee=Q.constructor.name;if(ee===SVGSVGElement.name){const ce=new Blob([Q.outerHTML],{type:"image/svg+xml"}),Ne=URL.createObjectURL(ce),$e=this.sanitizer.bypassSecurityTrustUrl(Ne);return void this.qrCodeURL.emit($e)}let ne="";ee===HTMLCanvasElement.name&&(ne=Q.toDataURL("image/png")),ee===HTMLImageElement.name&&(ne=Q.src),fetch(ne).then(Y=>Y.blob()).then(Y=>URL.createObjectURL(Y)).then(Y=>this.sanitizer.bypassSecurityTrustUrl(Y)).then(Y=>{this.qrCodeURL.emit(Y)}).catch(Y=>{console.error("[angularx-qrcode] Error when fetching image/png URL: "+Y)})}}return F.\u0275fac=function(Q){return new(Q||F)(m.Y36(m.Qsj),m.Y36(j.H7))},F.\u0275cmp=m.Xpm({type:F,selectors:[["qrcode"]],viewQuery:function(Q,ee){if(1&Q&&m.Gf(U,7),2&Q){let ne;m.iGM(ne=m.CRH())&&(ee.qrcElement=ne.first)}},inputs:{allowEmptyString:"allowEmptyString",colorDark:"colorDark",colorLight:"colorLight",cssClass:"cssClass",elementType:"elementType",errorCorrectionLevel:"errorCorrectionLevel",imageSrc:"imageSrc",imageHeight:"imageHeight",imageWidth:"imageWidth",margin:"margin",qrdata:"qrdata",scale:"scale",version:"version",width:"width",alt:"alt",ariaLabel:"ariaLabel",title:"title"},outputs:{qrCodeURL:"qrCodeURL"},features:[m.TTD],decls:2,vars:2,consts:[["qrcElement",""]],template:function(Q,ee){1&Q&&m._UZ(0,"div",null,0),2&Q&&m.Tol(ee.cssClass)},encapsulation:2,changeDetection:0}),F})(),P=(()=>{class F{}return F.\u0275fac=function(Q){return new(Q||F)},F.\u0275mod=m.oAB({type:F}),F.\u0275inj=m.cJS({providers:[]}),F})()},5861:(Ct,ae,p)=>{"use strict";function r(D,j,U,V,P,F,q){try{var Q=D[F](q),ee=Q.value}catch(ne){return void U(ne)}Q.done?j(ee):Promise.resolve(ee).then(V,P)}function m(D){return function(){var j=this,U=arguments;return new Promise(function(V,P){var F=D.apply(j,U);function q(ee){r(F,V,P,q,Q,"next",ee)}function Q(ee){r(F,V,P,q,Q,"throw",ee)}q(void 0)})}}p.d(ae,{Z:()=>m})}},Ct=>{Ct(Ct.s=5052)}]);