@sdkgen/playground 0.0.0-dev.20220209191313 → 0.0.0-dev.20220228140915

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ (self.webpackChunksdkgen_playground=self.webpackChunksdkgen_playground||[]).push([[179],{4602:function(je,g){"use strict";var C,l=this&&this.__extends||(C=function(w,h){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,T){A.__proto__=T}||function(A,T){for(var v in T)Object.prototype.hasOwnProperty.call(T,v)&&(A[v]=T[v])})(w,h)},function(w,h){if("function"!=typeof h&&null!==h)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");function A(){this.constructor=w}C(w,h),w.prototype=null===h?Object.create(h):(A.prototype=h.prototype,new A)}),i=this&&this.__spreadArray||function(C,w,h){if(h||2===arguments.length)for(var v,A=0,T=w.length;A<T;A++)(v||!(A in w))&&(v||(v=Array.prototype.slice.call(w,0,A)),v[A]=w[A]);return C.concat(v||Array.prototype.slice.call(w))};Object.defineProperty(g,"__esModule",{value:!0}),g.decode=g.encode=void 0;var u=["string","email","phone","html","xml"],m=i(["json","bool","url","int","uint","float","money","hex","uuid","base64","void"],u,!0),c=function(C){function w(h,A,T){var N;try{N=JSON.stringify(T)}catch(U){N=String(T)}return C.call(this,"Invalid type at '".concat(h,"', expected ").concat(A,", got ").concat(N))||this}return l(w,C),w}(Error);function s(C,w,h){if("json"===w)return null==h?null:JSON.parse(JSON.stringify(h));if("bool"===w){if("boolean"!=typeof h)throw new c(C,w,h);return h}if(u.indexOf(w)>=0){if("string"!=typeof h)throw new c(C,w,h);return h}if("hex"===w){if("string"!=typeof h||!/^(?:[A-Fa-f0-9]{2})*$/u.test(h))throw new c(C,w,h);return h.toLowerCase()}if("uuid"===w){if("string"!=typeof h||!/^[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}$/u.test(h))throw new c(C,w,h);return h.toLowerCase()}if("base64"===w){var A=!0;try{atob(h)}catch(v){A=!1}if("string"!=typeof h||!A)throw new c(C,w,h);return h}if("int"===w){if("number"!=typeof h||(0|h)!==h)throw new c(C,w,h);return h}if("uint"===w){if("number"!=typeof h||(0|h)!==h||h<0)throw new c(C,w,h);return h}if("float"===w){if("number"!=typeof h)throw new c(C,w,h);return h}if("money"===w){if("number"!=typeof h||!Number.isInteger(h))throw new c(C,w,h);return h}if("url"===w){var T=void 0;if("string"==typeof h)try{T=new URL(h)}catch(v){}if(!T)throw new c(C,w,h);return T.toString()}if("void"===w)return null;throw new Error("Unknown type '".concat(w,"' at '").concat(C,"'"))}g.encode=function _(C,w,h,A){if("string"==typeof h&&!h.endsWith("?")&&"void"!==h&&null==A)throw new Error("Invalid type at '".concat(w,"', cannot be null"));if(Array.isArray(h)){for(var T=0,v=h;T<v.length;T++){var N=v[T];if(N===A)return A;if(Array.isArray(A)&&2===A.length&&N===A[0])return A[0];if(Array.isArray(N)&&2===N.length){if(N[0]===A)return[A,_(C,"".concat(w,".").concat(N[0]),N[1],{})];if(Array.isArray(A)&&2===A.length&&N[0]===A[0])return[A[0],_(C,"".concat(w,".").concat(N[0]),N[1],A[1])]}}throw new c(w,h,A)}if("object"==typeof h){if("object"!=typeof A)throw new c(w,h,A);for(var U={},fe=0,Q=Object.keys(h);fe<Q.length;fe++){var he=Q[fe];U[he]=_(C,"".concat(w,".").concat(he),h[he],A[he])}return U}if(h.endsWith("?"))return null==A?null:_(C,w,h.slice(0,h.length-1),A);if(h.endsWith("[]")){if(!Array.isArray(A))throw new c(w,h,A);return A.map(function(_e,be){return _(C,"".concat(w,"[").concat(be,"]"),h.slice(0,h.length-2),_e)})}if(m.indexOf(h)>=0)return s(w,h,A);if("bytes"===h){if(!(A instanceof ArrayBuffer))throw new c(w,h,A);return btoa(String.fromCharCode.apply(String,new Uint8Array(A)))}if("bigint"===h){if("bigint"!=typeof A)throw new c(w,h,A);return A.toString()}if("cpf"===h){if("string"!=typeof A)throw new c(w,h,A);return A}if("cnpj"===h){if("string"!=typeof A)throw new c(w,h,A);return A}if("date"===h){if((!(A instanceof Date)||isNaN(A.getTime()))&&("string"!=typeof A||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(A)))throw new c(w,h,A);return"string"==typeof A?new Date(A).toISOString().split("T")[0]:A.toISOString().split("T")[0]}if("datetime"===h){if((!(A instanceof Date)||isNaN(A.getTime()))&&("string"!=typeof A||!/^[0-9]{4}-[01][0-9]-[0123][0-9]T[012][0-9]:[0123456][0-9]:[0123456][0-9](?:\.[0-9]{1,6})?(?:Z|[+-][012][0-9]:[0123456][0-9])?$/u.test(A)))throw new c(w,h,A);return("string"==typeof A?new Date(A):A).toISOString().replace("Z","")}var Re=C[h];if(Re)return _(C,w,Re,A);throw new Error("Unknown type '".concat(h,"' at '").concat(w,"'"))},g.decode=function D(C,w,h,A){if("string"==typeof h&&!h.endsWith("?")&&"void"!==h&&null==A)throw new Error("Invalid type at '".concat(w,"', cannot be null"));if(Array.isArray(h)){for(var T=0,v=h;T<v.length;T++){var N=v[T];if(N===A)return A;if(Array.isArray(A)&&2===A.length&&N===A[0])return A[0];if(Array.isArray(N)&&2===N.length){if(N[0]===A)return[A,D(C,"".concat(w,".").concat(N[0]),N[1],{})];if(Array.isArray(A)&&2===A.length&&N[0]===A[0])return[A[0],D(C,"".concat(w,".").concat(N[0]),N[1],A[1])]}}throw new c(w,h,A)}if("object"==typeof h){if("object"!=typeof A)throw new c(w,h,A);for(var U={},fe=0,Q=Object.keys(h);fe<Q.length;fe++){var he=Q[fe];U[he]=D(C,"".concat(w,".").concat(he),h[he],A[he])}return U}if(h.endsWith("?"))return null==A?null:D(C,w,h.slice(0,h.length-1),A);if(h.endsWith("[]")){if(!Array.isArray(A))throw new c(w,h,A);return A.map(function(Fe,Ye){return D(C,"".concat(w,"[").concat(Ye,"]"),h.slice(0,h.length-2),Fe)})}if(m.indexOf(h)>=0)return s(w,h,A);if("bytes"!==h){if("bigint"===h){if("number"!=typeof A&&("string"!=typeof A||!/^-?[0-9]+$/u.test(A)))throw new c(w,h,A);return BigInt(A)}if("cpf"===h){if("string"!=typeof A)throw new c(w,h,A);return A}if("cnpj"===h){if("string"!=typeof A)throw new c(w,h,A);return A}if("date"===h){if("string"!=typeof A||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(A))throw new c(w,h,A);var Re=parseInt(A.split("-")[2],10),_e=parseInt(A.split("-")[1],10)-1,be=parseInt(A.split("-")[0],10),q=new Date(be,_e,Re);if(q.getFullYear()!==be||q.getMonth()!==_e||q.getDate()!==Re)throw new c(w,h,A);return q}if("datetime"===h){if("string"!=typeof A||!/^[0-9]{4}-[01][0-9]-[0123][0-9]T[012][0-9]:[0123456][0-9]:[0123456][0-9](?:\.[0-9]{1,6})?Z?$/u.test(A))throw new c(w,h,A);return new Date("".concat(A.endsWith("Z")?A:A.concat("Z")))}var Ce=C[h];if(Ce)return D(C,w,Ce,A);throw new Error("Unknown type '".concat(h,"' at '").concat(w,"'"))}if("string"!=typeof A)throw new c(w,"".concat(h," (base 64)"),A);try{return Uint8Array.from(atob(A),function(Fe){return Fe.charCodeAt(0)})}catch(Fe){throw new c(w,"".concat(h," (base 64)"),A)}}},2837:function(je,g){"use strict";var m,l=this&&this.__extends||(m=function(c,s){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,D){_.__proto__=D}||function(_,D){for(var C in D)Object.prototype.hasOwnProperty.call(D,C)&&(_[C]=D[C])})(c,s)},function(c,s){if("function"!=typeof s&&null!==s)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function _(){this.constructor=c}m(c,s),c.prototype=null===s?Object.create(s):(_.prototype=s.prototype,new _)});Object.defineProperty(g,"__esModule",{value:!0}),g.SdkgenErrorWithData=g.SdkgenError=void 0;var i=function(m){function c(){return null!==m&&m.apply(this,arguments)||this}return l(c,m),Object.defineProperty(c.prototype,"type",{get:function(){return this.constructor.name},enumerable:!1,configurable:!0}),c.prototype.toJSON=function(){return{message:this.message,type:this.type}},c}(Error);g.SdkgenError=i;var u=function(m){function c(s,_){var D=m.call(this,s)||this;return D.data=_,D}return l(c,m),c.prototype.toJSON=function(){return{data:this.data,message:this.message,type:this.type}},c}(i);g.SdkgenErrorWithData=u},2062:function(je,g,l){"use strict";var i=this&&this.__awaiter||function(w,h,A,T){return new(A||(A=Promise))(function(N,U){function fe(Re){try{he(T.next(Re))}catch(_e){U(_e)}}function Q(Re){try{he(T.throw(Re))}catch(_e){U(_e)}}function he(Re){Re.done?N(Re.value):function v(N){return N instanceof A?N:new A(function(U){U(N)})}(Re.value).then(fe,Q)}he((T=T.apply(w,h||[])).next())})},u=this&&this.__generator||function(w,h){var T,v,N,U,A={label:0,sent:function(){if(1&N[0])throw N[1];return N[1]},trys:[],ops:[]};return U={next:fe(0),throw:fe(1),return:fe(2)},"function"==typeof Symbol&&(U[Symbol.iterator]=function(){return this}),U;function fe(he){return function(Re){return function Q(he){if(T)throw new TypeError("Generator is already executing.");for(;A;)try{if(T=1,v&&(N=2&he[0]?v.return:he[0]?v.throw||((N=v.return)&&N.call(v),0):v.next)&&!(N=N.call(v,he[1])).done)return N;switch(v=0,N&&(he=[2&he[0],N.value]),he[0]){case 0:case 1:N=he;break;case 4:return A.label++,{value:he[1],done:!1};case 5:A.label++,v=he[1],he=[0];continue;case 7:he=A.ops.pop(),A.trys.pop();continue;default:if(!(N=(N=A.trys).length>0&&N[N.length-1])&&(6===he[0]||2===he[0])){A=0;continue}if(3===he[0]&&(!N||he[1]>N[0]&&he[1]<N[3])){A.label=he[1];break}if(6===he[0]&&A.label<N[1]){A.label=N[1],N=he;break}if(N&&A.label<N[2]){A.label=N[2],A.ops.push(he);break}N[2]&&A.ops.pop(),A.trys.pop();continue}he=h.call(w,A)}catch(Re){he=[6,Re],v=0}finally{T=N=0}if(5&he[0])throw he[1];return{value:he[0]?he[1]:void 0,done:!0}}([he,Re])}}};Object.defineProperty(g,"__esModule",{value:!0}),g.SdkgenHttpClient=void 0;var m=l(4602);function c(w){for(var h="",A=0;A<2*w;++A)h+="0123456789abcdef"[Math.floor(16*Math.random())];return h}var s=c(20);function _(){try{var w=localStorage.getItem("deviceId");return w||(w=s,localStorage.setItem("deviceId",w)),w}catch(h){}return s}function D(w,h){return h in w}var C=function(){function w(h,A,T){this.astJson=A,this.errClasses=T,this.extra=new Map,this.successHook=function(){},this.errorHook=function(){},this.baseUrl=h}return w.prototype.makeRequest=function(h,A){var T,v;return i(this,void 0,void 0,function(){var N,U,fe,Q,he,Re=this;return u(this,function(_e){switch(_e.label){case 0:if(!(N=this.astJson.functionTable[h]))throw new Error("Unknown function ".concat(h));return U={},this.extra.forEach(function(be,q){U[q]=be}),fe={args:(0,m.encode)(this.astJson.typeTable,"".concat(h,".args"),N.args,A),deviceInfo:{id:_(),language:navigator.language,platform:{browserUserAgent:navigator.userAgent},timezone:"object"==typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:null,type:"web",version:null!==(v=null===(T=document.currentScript)||void 0===T?void 0:T.getAttribute("src"))&&void 0!==v?v:""},extra:U,name:h,requestId:c(16),version:3},[4,new Promise(function(be,q){var Ce=new XMLHttpRequest;Ce.open("POST","".concat(Re.baseUrl,"/").concat(h)),Ce.setRequestHeader("Content-Type","application/sdkgen"),Ce.onreadystatechange=function(){if(4===Ce.readyState)try{var Fe=JSON.parse(Ce.responseText);try{D(Fe,"error")&&Fe.error?(q(Fe.error),Re.errorHook(Fe.error,h,A)):be(D(Fe,"result")?Fe.result:null)}catch(st){var Ye={message:"".concat(st),type:"Fatal"};q(Ye),Re.errorHook(Ye,h,A)}}catch(st){q(Ye={message:"Falha de conex\xe3o com o servidor",type:"Fatal"}),Re.errorHook(Ye,h,A)}},Ce.send(JSON.stringify(fe))}).catch(function(be){if(Re.errorHook(be,h,A),D(be,"type")&&D(be,"message")&&"string"==typeof be.type&&"string"==typeof be.message){var q=Re.errClasses[be.type];if(q){var Ce=Re.astJson.errors.find(function(Fe){return Array.isArray(Fe)?Fe[0]===be.type:Fe===be.type});if(Ce)throw Array.isArray(Ce)&&D(be,"data")?new q(be.message,(0,m.decode)(Re.astJson.typeTable,"".concat(q.name,".data"),Ce[1],be.data)):new q(be.message,void 0)}throw new Re.errClasses.Fatal("".concat(be.type,": ").concat(be.message))}throw be})];case 1:return Q=_e.sent(),he=(0,m.decode)(this.astJson.typeTable,"".concat(h,".ret"),N.ret,Q),this.successHook(he,h,A),[2,he]}})})},w}();g.SdkgenHttpClient=C},4539:function(je,g,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,c,s,_){void 0===_&&(_=s),Object.defineProperty(m,_,{enumerable:!0,get:function(){return c[s]}})}:function(m,c,s,_){void 0===_&&(_=s),m[_]=c[s]}),u=this&&this.__exportStar||function(m,c){for(var s in m)"default"!==s&&!Object.prototype.hasOwnProperty.call(c,s)&&i(c,m,s)};Object.defineProperty(g,"__esModule",{value:!0}),u(l(2837),g),u(l(2062),g)},3905:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateCSharpServerSource=void 0;const i=l(6676),u=l(4510);g.generateCSharpServerSource=function m(c){let s="using System;\nusing System.Collections.Generic;\nusing System.Globalization;\nusing System.Numerics;\nusing System.Text.Json;\nusing System.Threading.Tasks;\nusing static Sdkgen.Runtime;\nusing static Sdkgen.Context;\nusing static Sdkgen.Helpers;\n\nnamespace SdkgenGenerated\n{\n public abstract class Api : BaseApi\n {";for(const _ of c.operations){const D=_.returnType instanceof i.VoidPrimitiveType?"":`<${(0,u.generateTypeName)(_.returnType)}>`;s+=`\n public virtual Task${D} ${(0,u.capitalize)(_.name)}(${["Context ctx",..._.args.map(C=>`${(0,u.generateTypeName)(C.type)} ${(0,u.ident)(C.name)}`)].join(", ")})\n {\n return Task.FromException${D}(new FatalException("Function '${_.name}' not implemented."));\n }\n`}s+="\n public async Task ExecuteFunction(Context context_, Utf8JsonWriter resultWriter_)\n {\n switch (context_.Name)\n {";for(const _ of c.operations){s+=`\n case ${JSON.stringify(_.name)}:\n {`;for(const D of _.args)s+=`\n JsonElement ${D.name}Json_;\n if (!context_.Args.TryGetValue(${JSON.stringify(D.name)}, out ${D.name}Json_))\n {\n ${D.type instanceof i.OptionalType?`${D.name}Json_ = new JsonElement();`:`throw new FatalException("'${_.name}().args.${D.name}' must be set to a value of type ${D.type.name}.");`}\n }\n ${(0,u.generateTypeName)(D.type)} ${(0,u.ident)(D.name)};\n ${(0,u.decodeType)(D.type,`${D.name}Json_`,`"${_.name}().args.${D.name}"`,(0,u.ident)(D.name)).replace(/\n/gu,"\n ")}`;s+=_.returnType instanceof i.VoidPrimitiveType?`\n await ${(0,u.capitalize)(_.name)}(${["context_",..._.args.map(D=>(0,u.ident)(D.name))].join(", ")});\n resultWriter_.WriteNullValue();`:`\n var result_ = await ${(0,u.capitalize)(_.name)}(${["context_",..._.args.map(D=>(0,u.ident)(D.name))].join(", ")});\n ${(0,u.encodeType)(_.returnType,"result_",`"${_.name}().ret"`).replace(/\n/gu,"\n ")}`,s+="\n return;\n }"}s+="\n default:\n {\n throw new FatalException($\"Unknown function '{context_.Name}'.\");\n }\n }\n }\n";for(const _ of c.structTypes)s+=(0,u.generateStruct)(_);for(const _ of c.enumTypes)s+=(0,u.generateEnum)(_);s+=`\n public string GetAstJson() => @"${JSON.stringify((0,i.astToJson)(c),null,4).replace(/"/gu,'""').replace(/\n/gu,"\n ")}";\n }\n`;for(const _ of c.errors)s+=`\n public class ${_.name}Exception : SdkgenException\n {\n public ${_.name}Exception(string message, Exception? inner = null) : base("${_.name}", message, inner) { }\n }\n`;return s+="\n}\n",s}},4510:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateEnum=g.generateStruct=g.encodeType=g.decodeType=g.generateTypeName=g.capitalize=g.ident=void 0;const i=l(6676),u=["abstract","as","base","bool","break","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","else","enum","event","explicit","extern","false","finally","fixed","float","for","foreach","goto","if","implicit","in","int","interface","internal","is","lock","long","namespace","new","null","object","operator","out","override","params","private","protected","public","readonly","ref","return","sbyte","sealed","short","sizeof","stackalloc","static","string","struct","switch","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","using","static","virtual","void","volatile","while"],m=[i.StringPrimitiveType,i.HtmlPrimitiveType,i.CpfPrimitiveType,i.CnpjPrimitiveType,i.BytesPrimitiveType,i.EmailPrimitiveType,i.UrlPrimitiveType,i.UuidPrimitiveType,i.HexPrimitiveType,i.Base64PrimitiveType,i.XmlPrimitiveType,i.StructType,i.ArrayType],c=[i.BigIntPrimitiveType,i.DatePrimitiveType,i.DateTimePrimitiveType,i.FloatPrimitiveType,i.IntPrimitiveType,i.MoneyPrimitiveType,i.UIntPrimitiveType];function s(T){return u.includes(T)?`@${T}`:T}function _(T){return T[0].toUpperCase()+T.slice(1)}function D(T){switch(T.constructor){case i.StringPrimitiveType:return"string";case i.IntPrimitiveType:return"int";case i.UIntPrimitiveType:return"uint";case i.FloatPrimitiveType:return"double";case i.BigIntPrimitiveType:return"BigInteger";case i.DatePrimitiveType:case i.DateTimePrimitiveType:return"DateTime";case i.BoolPrimitiveType:return"bool";case i.BytesPrimitiveType:return"byte[]";case i.MoneyPrimitiveType:return"decimal";case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:return"string";case i.VoidPrimitiveType:return"void";case i.JsonPrimitiveType:return"JsonElement";case i.OptionalType:return`${D(T.base)}?`;case i.ArrayType:return`List<${D(T.base)}>`;case i.StructType:case i.EnumType:return T.name;case i.TypeReference:return D(T.type);default:throw new Error(`BUG: generateTypeName with ${T.constructor.name}`)}}function C(T,v,N,U,fe=1,Q=!0){switch(T.constructor){case i.IntPrimitiveType:return`\n if (${v}.ValueKind != JsonValueKind.Number || !${v}.TryGetInt32(out ${U}))\n {\n throw new FatalException($"'{${N}}' must be an integer");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.UIntPrimitiveType:return`\n if (${v}.ValueKind != JsonValueKind.Number || !${v}.TryGetUInt32(out ${U}))\n {\n throw new FatalException($"'{${N}}' must be an unsigned integer.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.MoneyPrimitiveType:return`\n if (${v}.ValueKind != JsonValueKind.Number || !${v}.TryGetDecimal(out ${U}) || ${U} % 1 != 0)\n {\n throw new FatalException($"'{${N}}' must be an integer amount of cents.");\n }\n ${U} /= 100;\n `.replace(/\n {16}/gu,"\n").trim();case i.FloatPrimitiveType:return`\n if (${v}.ValueKind != JsonValueKind.Number || !${v}.TryGetDouble(out ${U}))\n {\n throw new FatalException($"'{${N}}' must be a floating-point number.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.BigIntPrimitiveType:return`\n if (${v}.ValueKind != JsonValueKind.String || !BigInteger.TryParse(${v}.GetString(), out ${U}))\n {\n throw new FatalException($"'{${N}}' must be an arbitrarily large integer in a string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.StringPrimitiveType:return`\n if (${v}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${N}}' must be a string.");\n }\n ${U} = ${v}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.HtmlPrimitiveType:return`\n if (${v}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${N}}' must be a valid HTML string.");\n }\n ${U} = ${v}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.CpfPrimitiveType:return`\n if (${v}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${N}}' must be a valid CPF string.");\n }\n ${U} = ${v}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.CnpjPrimitiveType:return`\n if (${v}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${N}}' must be a valid CNPJ string.");\n }\n ${U} = ${v}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.EmailPrimitiveType:return`\n if (${v}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${N}}' must be a valid email.");\n }\n ${U} = ${v}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.UrlPrimitiveType:return`\n if (${v}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${N}}' must be a valid URL string.");\n }\n ${U} = ${v}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.UuidPrimitiveType:return`\n if (${v}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${N}}' must be a valid UUID.");\n }\n ${U} = ${v}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.HexPrimitiveType:return`\n if (${v}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${N}}' must be a valid hex string.");\n }\n ${U} = ${v}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.Base64PrimitiveType:return`\n if (${v}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${N}}' must be a base64 string.");\n }\n ${U} = ${v}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.XmlPrimitiveType:return`\n if (${v}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${N}}' must be a XML string.");\n }\n ${U} = ${v}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.BoolPrimitiveType:return`\n if (${v}.ValueKind != JsonValueKind.True && ${v}.ValueKind != JsonValueKind.False)\n {\n throw new FatalException($"'{${N}}' must be either true or false.");\n }\n ${U} = ${v}.GetBoolean();\n `.replace(/\n {16}/gu,"\n").trim();case i.BytesPrimitiveType:return`\n if (${v}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${N}}' must be a string.");\n }\n try\n {\n ${U} = Convert.FromBase64String(${v}.GetString());\n }\n catch (FormatException)\n {\n throw new FatalException($"'{${N}}' must be a base64 string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.TypeReference:return C(T.type,v,N,U,fe);case i.OptionalType:if(c.includes(T.base.constructor)){const he=`${U.replace(/[^0-9a-zA-Z]/gu,"")}Tmp`;return`\n if (${v}.ValueKind == JsonValueKind.Null || ${v}.ValueKind == JsonValueKind.Undefined)\n {\n ${U} = null;\n }\n else\n {\n ${D(T.base)} ${he};\n ${C(T.base,v,N,he,fe,!1).replace(/\n/gu,"\n ")}\n ${U} = ${he};\n }\n `.replace(/\n {20}/gu,"\n").trim()}return`\n if (${v}.ValueKind == JsonValueKind.Null || ${v}.ValueKind == JsonValueKind.Undefined)\n {\n ${U} = null;\n }\n else\n {\n ${C(T.base,v,N,U,fe,!1).replace(/\n/gu,"\n ")}\n }\n `.replace(/\n {20}/gu,"\n").trim();case i.EnumType:case i.StructType:return`${U} = Decode${T.name}(${v}, ${N});`;case i.JsonPrimitiveType:return Q?`\n if (${v}.ValueKind == JsonValueKind.Null || ${v}.ValueKind == JsonValueKind.Undefined)\n {\n throw new FatalException($"'{${N}}' can't be null.");\n }\n ${U} = ${v};\n `.replace(/\n {16}/gu,"\n").trim():`${U} = ${v};`;case i.DateTimePrimitiveType:return`\n if (${v}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${v}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${U}) || DateTime.TryParseExact(${v}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF'Z'", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${U})))\n {\n throw new FatalException($"'{${N}}' must be a datetime.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.DatePrimitiveType:return`\n if (${v}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${v}.GetString(), "yyyy-MM-dd", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${U})))\n {\n throw new FatalException($"'{${N}}' must be a date.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.ArrayType:return`\n if (${v}.ValueKind != JsonValueKind.Array)\n {\n throw new FatalException($"'{${N}}' must be a date.");\n }\n ${U} = new ${D(T)}();\n for (var i${fe} = 0; i${fe} < ${v}.GetArrayLength(); ++i${fe})\n {\n ${D(T.base)} element${fe};\n ${C(T.base,`${v}[i${fe}]`,`$"{${N}}[{i${fe}}]"`,`element${fe}`,fe+1).replace(/\n/gu,"\n ")}\n ${U}.Add(element${fe});\n }\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: decodeType with ${T.constructor.name}`)}}function w(T,v,N,U=1){switch(T.constructor){case i.StringPrimitiveType:return`resultWriter_.WriteStringValue(${v});`;case i.FloatPrimitiveType:case i.UIntPrimitiveType:case i.IntPrimitiveType:return`resultWriter_.WriteNumberValue(${v});`;case i.MoneyPrimitiveType:return`resultWriter_.WriteNumberValue(Math.Round(${v} * 100));`;case i.BigIntPrimitiveType:return`resultWriter_.WriteStringValue(${v}.ToString());`;case i.BoolPrimitiveType:return`resultWriter_.WriteBooleanValue(${v});`;case i.BytesPrimitiveType:return`resultWriter_.WriteStringValue(Convert.ToBase64String(${v}));`;case i.DateTimePrimitiveType:return`resultWriter_.WriteStringValue(${v}.ToString("yyyy-MM-ddTHH:mm:ss.FFFFFF'Z'"));`;case i.DatePrimitiveType:return`resultWriter_.WriteStringValue(${v}.ToString("yyyy-MM-dd"));`;case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.Base64PrimitiveType:case i.HexPrimitiveType:case i.XmlPrimitiveType:return`resultWriter_.WriteStringValue(${v});`;case i.OptionalType:{let fe=T.base;for(;fe instanceof i.TypeReference;)fe=fe.type;return`\n if (${v} == null)\n {\n resultWriter_.WriteNullValue();\n }\n else\n {\n ${w(fe,m.includes(fe.constructor)?v:`${v}.Value`,N,U).replace(/\n/gu,"\n ")}\n }`.replace(/\n {16}/gu,"\n").trim()}case i.TypeReference:return w(T.type,v,N,U);case i.EnumType:case i.StructType:return`Encode${T.name}(${v}, resultWriter_, ${N});`;case i.JsonPrimitiveType:return`${v}.WriteTo(resultWriter_);`;case i.ArrayType:return`\n resultWriter_.WriteStartArray();\n for (var i${U} = 0; i${U} < ${v}.Count; ++i${U})\n {\n ${w(T.base,`${v}[i${U}]`,`$"{${N}}[{i${U}}]"`,U+1).replace(/\n/gu,"\n ")}\n }\n resultWriter_.WriteEndArray();\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: encodeType with ${T.constructor.name}`)}}g.ident=s,g.capitalize=_,g.generateTypeName=D,g.decodeType=C,g.encodeType=w,g.generateStruct=function h(T){return`\n public class ${T.name}\n {${T.fields.map(v=>`\n public ${D(v.type)} ${_(v.name)};`).join("")}\n public ${T.name}(${T.fields.map(v=>`${D(v.type)} ${s(v.name)}`).join(", ")})\n {${T.fields.map(v=>`\n ${_(v.name)} = ${s(v.name)};`).join("")}\n }\n }\n\n ${T.name} Decode${T.name}(JsonElement json_, string path_)\n {\n if (json_.ValueKind != JsonValueKind.Object)\n {\n throw new FatalException($"'{path_}' must be an object.");\n }\n${T.fields.map(v=>` JsonElement ${v.name}Json_;\n if (!json_.TryGetProperty(${JSON.stringify(v.name)}, out ${v.name}Json_))\n {\n ${v.type instanceof i.OptionalType?`${v.name}Json_ = new JsonElement();`:`throw new FatalException($"'{path_}.${v.name}' must be set to a value of type ${v.type.name}.");`}\n }\n ${D(v.type)} ${s(v.name)};\n ${C(v.type,`${v.name}Json_`,`$"{path_}.${v.name}"`,s(v.name)).replace(/\n/gu,"\n ")}`).join("\n")}\n return new ${T.name}(${T.fields.map(v=>s(v.name)).join(", ")});\n }\n\n void Encode${T.name}(${T.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {\n resultWriter_.WriteStartObject();\n ${T.fields.map(v=>`resultWriter_.WritePropertyName(${JSON.stringify(v.name)});\n ${w(v.type,`obj_.${_(v.name)}`,`$"{path_}.${v.name}"`).replace(/\n/gu,"\n ")}`).join("\n ")}\n resultWriter_.WriteEndObject();\n }\n`},g.generateEnum=function A(T){return`\n public enum ${T.name}\n {${T.values.map(({value:v})=>`\n ${_(v)}`).join(",\n ")}\n }\n\n ${T.name} Decode${T.name}(JsonElement json_, string path_)\n {\n if (json_.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{path_}' must be a string.");\n }\n var value = json_.GetString();${T.values.map(({value:v})=>`\n if (value == "${v}")\n {\n return ${T.name}.${_(v)};\n }`).join("")}\n throw new FatalException($"'{path_}' must be one of: (${T.values.map(({value:v})=>`'${v}'`).join(", ")}).");\n }\n\n void Encode${T.name}(${T.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {${T.values.map(({value:v})=>`\n if (obj_ == ${T.name}.${_(v)})\n {\n resultWriter_.WriteStringValue("${v}");\n }`).join("")}\n }\n`}},7179:function(je,g,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,c,s,_){void 0===_&&(_=s),Object.defineProperty(m,_,{enumerable:!0,get:function(){return c[s]}})}:function(m,c,s,_){void 0===_&&(_=s),m[_]=c[s]}),u=this&&this.__exportStar||function(m,c){for(var s in m)"default"!==s&&!Object.prototype.hasOwnProperty.call(c,s)&&i(c,m,s)};Object.defineProperty(g,"__esModule",{value:!0}),u(l(3905),g)},1911:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateDartClientSource=void 0;const i=l(6676),u=l(5235);g.generateDartClientSource=function m(c){let s="";s+="import 'dart:typed_data';\nimport 'dart:ui';\n\nimport 'package:sdkgen_runtime/types.dart';\nimport 'package:sdkgen_runtime/http_client.dart';\n\n";for(const _ of c.enumTypes)s+=(0,u.generateEnum)(_),s+="\n";for(const _ of c.structTypes)s+=(0,u.generateClass)(_),s+="\n";for(const _ of c.errors)s+=(0,u.generateErrorClass)(_),s+="\n";s+=`class ApiClient extends SdkgenHttpClient {\n ApiClient(String baseUrl) : super(baseUrl, _typeTable, _fnTable, _errTable);\n${c.operations.filter(_=>_.annotations.every(D=>!(D instanceof i.HiddenAnnotation))).map(_=>`\n ${_.returnType instanceof i.VoidPrimitiveType?"Future<void> ":`Future<${(0,u.generateTypeName)(_.returnType)}> `}${_.name}(${0===_.args.length?"":`{${_.args.map(D=>`${D.type instanceof i.OptionalType?"":"required "}${(0,u.generateTypeName)(D.type)} ${(0,u.mangle)(D.name)}`).join(", ")}}`}) async { ${_.returnType instanceof i.VoidPrimitiveType?"":"return "}${(0,u.cast)(`await makeRequest('${_.name}', {${_.args.map(D=>`'${D.name}': ${(0,u.mangle)(D.name)}`).join(", ")}})`,_.returnType)}; }`).join("")}\n}\n\n`,s+="var _typeTable = {\n";for(const _ of c.structTypes){s+=` '${_.name}': StructTypeDescription(\n`,s+=` ${_.name},\n`,s+=" {\n";for(const D of _.fields)s+=` '${D.name}': '${D.type.name}',\n`;s+=" },\n",s+=` (Map fields) => ${_.name}(\n`;for(const D of _.fields)s+=` ${(0,u.mangle)(D.name)}: ${(0,u.cast)(`fields['${D.name}']`,D.type)},\n`;s+=" ),\n",s+=` (${_.name} obj) => ({\n`;for(const D of _.fields)s+=` '${D.name}': obj.${(0,u.mangle)(D.name)},\n`;s+=" }),\n",s+=" ),\n"}for(const _ of c.enumTypes)s+=` '${_.name}': EnumTypeDescription(${_.name}, ${_.name}.values, [\n ${_.values.map(D=>`'${D.value}'`).join(",\n ")}\n ]),\n`;s+="};\n\n",s+="var _fnTable = {\n";for(const _ of c.operations){s+=` '${_.name}': FunctionDescription('${_.returnType.name}', {\n`;for(const D of _.args)s+=` '${D.name}': '${D.type.name}',\n`;s+=" }),\n"}s+="};\n\n",s+="var _errTable = {\n";for(const _ of c.errors)s+=` '${_.name}': SdkgenErrorDescription('${_.dataType.name}', (msg, data) => ${_.name}(msg${_.dataType instanceof i.VoidPrimitiveType?"":", data"})),\n`;return s+="};\n",s}},5235:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateClass=g.cast=g.generateErrorClass=g.generateTypeName=g.generateEnum=g.mangle=void 0;const i=l(6676);function u(T){return["abstract","as","assert","async","await","bool","break","case","catch","class","const","continue","covariant","default","deferred","do","double","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","int","interface","is","library","mixin","new","null","on","operator","part","rethrow","return","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","while","with","yield"].includes(T)?`$${T}`:T}function c(T){switch(T.constructor){case i.StringPrimitiveType:return"String";case i.IntPrimitiveType:case i.UIntPrimitiveType:return"int";case i.FloatPrimitiveType:return"double";case i.BigIntPrimitiveType:return"BigInt";case i.DatePrimitiveType:case i.DateTimePrimitiveType:return"DateTime";case i.BoolPrimitiveType:return"bool";case i.BytesPrimitiveType:return"Uint8List";case i.MoneyPrimitiveType:return"int";case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:return"String";case i.VoidPrimitiveType:return"void";case i.JsonPrimitiveType:return"dynamic";case i.OptionalType:return`${c(T.base)}?`;case i.ArrayType:return`List<${c(T.base)}>`;case i.StructType:case i.EnumType:return T.name;case i.TypeReference:return c(T.type);default:throw new Error(`BUG: generateTypeName with ${T.constructor.name}`)}}g.mangle=u,g.generateEnum=function m(T){return`enum ${T.name} {\n ${T.values.map(v=>v.value).join(",\n ")}\n}\n`},g.generateTypeName=c,g.generateErrorClass=function s(T){if(T.dataType instanceof i.VoidPrimitiveType)return`class ${T.name} extends SdkgenError {\n ${T.name}(String msg) : super(msg);\n}\n`;const v=c(T.dataType);return`class ${T.name} extends SdkgenErrorWithData<${v}> {\n ${T.name}(String msg, ${v} data) : super(msg, data);\n}\n`},g.cast=function _(T,v){return v instanceof i.OptionalType?`${T} == null ? null : ${_(T,v.base)}`:v instanceof i.ArrayType?`(${T} as List).map((e) => ${_("e",v.base)}).toList()`:v instanceof i.VoidPrimitiveType?T:v instanceof i.FloatPrimitiveType?`(${T} as num).toDouble()`:v instanceof i.MoneyPrimitiveType?`${T} as int`:`${T} as ${c(v)}`},g.generateClass=function A(T){return`class ${T.name} {\n ${T.fields.map(v=>`final ${c(v.type)} ${u(v.name)};`).join("\n ")}\n\n${function D(T){let v=` ${T.name}({\n`;for(const N of T.fields)v+=N.type instanceof i.OptionalType?" ":" required ",v+=`this.${u(N.name)},\n`;return v+=" });\n",v}(T)}\n${function C(T){let v=" bool operator ==(other){\n";return v+=" if (identical(this, other)) return true;\n",v+=` return ${[`other is ${T.name}`,...T.fields.map(N=>`${u(N.name)} == other.${u(N.name)}`)].join(" && ")};\n`,v+=" }\n",v}(T)}\n${function w(T){return` @override\n int get hashCode => hashList([${T.fields.map(v=>u(v.name)).join(", ")}]);\n`}(T)}\n${function h(T){return` String toString() {\n return '${T.name} { ${T.fields.map(v=>`${v.name}: $${u(v.name).startsWith("$")?`{${u(v.name)}}`:u(v.name)}`).join(", ")} }';\n }\n`}(T)}}\n`}},1823:function(je,g,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,c,s,_){void 0===_&&(_=s),Object.defineProperty(m,_,{enumerable:!0,get:function(){return c[s]}})}:function(m,c,s,_){void 0===_&&(_=s),m[_]=c[s]}),u=this&&this.__exportStar||function(m,c){for(var s in m)"default"!==s&&!Object.prototype.hasOwnProperty.call(c,s)&&i(c,m,s)};Object.defineProperty(g,"__esModule",{value:!0}),u(l(1911),g)},196:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateFSharpServerSource=void 0;const i=l(6676),u=l(8735);g.generateFSharpServerSource=function m(c){let s="module rec SdkgenGenerated\nopen Sdkgen.Runtime\nopen Sdkgen.Helpers\nopen Sdkgen.Context\nopen System.Threading.Tasks\nopen System.Text.Json\nopen System\nopen System.Globalization\n#if NET5_0\n// To use tasks as computation expression in .NET 5 install https://www.nuget.org/packages/TaskBuilder.fs/\nopen FSharp.Control.Tasks.V2.ContextInsensitive\n#endif\n";for(const _ of c.errors)s+=`\ntype ${_.name}Exception =\n inherit SdkgenException\n\n new(message: string) = {\n inherit SdkgenException("${_.name}", message, null)\n }\n\n new(message: string, inner: Exception) = {\n inherit SdkgenException("${_.name}", message, inner)\n }\n`;for(const _ of c.enumTypes)s+=`\n${(0,u.generateEnum)(_)}\n`;for(const _ of c.structTypes)s+=`\n${(0,u.generateStruct)(_)}\n`;s+="\ntype Api() =";for(const _ of c.operations){const D=_.returnType instanceof i.VoidPrimitiveType?"":`<${(0,u.generateTypeName)(_.returnType)}>`,C=_.args.length>0?`{| ${_.args.map(w=>`${w.name}: ${(0,u.generateTypeName)(w.type)};`).join("")} |} ->`:"";s+=`\n member val ${(0,u.capitalize)(_.name)}: Context -> ${C} Task${D} =\n fun _ -> (raise (FatalException("Function '${_.name}' not implemented.")))\n with get, set\n `}s+="\n interface BaseApi with\n member __.ExecuteFunction(context_: Context, resultWriter_: Utf8JsonWriter) : Task =\n task {\n match context_.Name with";for(const _ of c.operations){s+=`\n | ${JSON.stringify(_.name)} ->`;for(const D of _.args)s+=`\n let ${D.name}Json_ =\n match context_.Args.TryGetValue(${JSON.stringify(D.name)}) with\n | true, v -> v\n | _ -> raise (FatalException("'${_.name}().args.${D.name}' must be set to a value of type ${D.type.name}."))\n\n let ${(0,u.ident)(D.name)} =\n ${(0,u.decodeType)(D.type,`${D.name}Json_`,`"${_.name}().args.${D.name}"`,(0,u.ident)(D.name)).replace(/\n/gu,"\n ")}`;s+=_.returnType instanceof i.VoidPrimitiveType?`\n\n do! (__.${(0,u.capitalize)(_.name)} context_ ${_.args.length>0?"{|":""} ${_.args.map(D=>`${D.name} = ${(0,u.ident)(D.name)}`).join("; ")} ${_.args.length>0?"|}":""})\n `:`\n\n let! result_ = (__.${(0,u.capitalize)(_.name)} context_ ${_.args.length>0?"{|":""} ${_.args.map(D=>`${D.name} = ${(0,u.ident)(D.name)}`).join("; ")} ${_.args.length>0?"|}":""})\n ${(0,u.encodeType)(_.returnType,"result_",`"${_.name}().ret"`,1,!1).replace(/\n/gu,"\n ")}`}return s+="\n\n | _ -> raise (FatalException($\"Unknown function '{context_.Name}'.\"))\n } :> Task",s+=`\n member __.GetAstJson() = """${JSON.stringify((0,i.astToJson)(c),null,4).replace(/\n/gu,"\n ")}""";`,s}},8735:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateEnum=g.generateStruct=g.encodeType=g.decodeType=g.generateTypeName=g.capitalize=g.ident=void 0;const i=l(6676),u=["abstract","as","base","bool","break","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","else","enum","event","explicit","extern","false","finally","fixed","float","for","foreach","goto","if","implicit","in","int","interface","internal","is","lock","long","namespace","new","null","object","operator","out","override","params","private","protected","public","readonly","ref","return","sbyte","sealed","short","sizeof","stackalloc","static","string","struct","switch","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","using","static","virtual","void","volatile","while","type","end","id"],c=[i.BigIntPrimitiveType,i.DatePrimitiveType,i.DateTimePrimitiveType,i.FloatPrimitiveType,i.IntPrimitiveType,i.MoneyPrimitiveType,i.UIntPrimitiveType,i.ArrayType];function s(T){return u.includes(T)?`${T}'`:T}function _(T){return T[0].toUpperCase()+T.slice(1)}function D(T){switch(T.constructor){case i.StringPrimitiveType:return"string";case i.IntPrimitiveType:return"int";case i.UIntPrimitiveType:return"uint";case i.FloatPrimitiveType:return"double";case i.BigIntPrimitiveType:return"bigint";case i.DatePrimitiveType:case i.DateTimePrimitiveType:return"DateTime";case i.BoolPrimitiveType:return"bool";case i.BytesPrimitiveType:return"byte[]";case i.MoneyPrimitiveType:return"decimal";case i.UuidPrimitiveType:return"Guid";case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.HexPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:return"string";case i.VoidPrimitiveType:return"void";case i.JsonPrimitiveType:return"JsonElement";case i.OptionalType:return`${D(T.base)} option`;case i.ArrayType:return`${D(T.base)} list`;case i.StructType:case i.EnumType:return T.name;case i.TypeReference:return D(T.type);default:throw new Error(`BUG: generateTypeName with ${T.constructor.name}`)}}function C(T,v,N,U,fe=1,Q=!0){switch(T.constructor){case i.IntPrimitiveType:return`\n decodeInt32 ${v} ${N}\n `.replace(/\n {16}/gu,"\n").trim();case i.UIntPrimitiveType:return`\n decodeUInt32 ${v} ${N}\n `.replace(/\n {16}/gu,"\n").trim();case i.MoneyPrimitiveType:return`\n (decodeMoney ${v} ${N}) / 100m\n `.replace(/\n {16}/gu,"\n").trim();case i.FloatPrimitiveType:return`\n decodeFloat ${v} ${N}\n `.replace(/\n {16}/gu,"\n").trim();case i.BigIntPrimitiveType:return`\n decodeBigInt ${v} ${N}\n `.replace(/\n {16}/gu,"\n").trim();case i.StringPrimitiveType:return`\n decodeString ${v} ${N}\n `.replace(/\n {16}/gu,"\n").trim();case i.HtmlPrimitiveType:return`\n decodeHtml ${v} ${N}\n `.replace(/\n {16}/gu,"\n").trim();case i.CpfPrimitiveType:return`\n decodeCpf ${v} ${N}\n `.replace(/\n {16}/gu,"\n").trim();case i.CnpjPrimitiveType:return`\n decodeCnpj ${v} ${N}\n `.replace(/\n {16}/gu,"\n").trim();case i.EmailPrimitiveType:return`\n decodeEmail ${v} ${N}\n `.replace(/\n {16}/gu,"\n").trim();case i.UrlPrimitiveType:return`\n decodeUrl ${v} ${N}\n `.replace(/\n {16}/gu,"\n").trim();case i.UuidPrimitiveType:return`\n decodeUuid ${v} ${N}\n `.replace(/\n {16}/gu,"\n").trim();case i.HexPrimitiveType:return`\n decodeHex ${v} ${N}\n `.replace(/\n {16}/gu,"\n").trim();case i.Base64PrimitiveType:return`\n decodeBase64 ${v} ${N}\n `.replace(/\n {16}/gu,"\n").trim();case i.XmlPrimitiveType:return`\n decodeXml ${v} ${N}\n `.replace(/\n {16}/gu,"\n").trim();case i.BoolPrimitiveType:return`\n decodeBool ${v} ${N}\n `.replace(/\n {16}/gu,"\n").trim();case i.BytesPrimitiveType:return`\n decodeBytes ${v} ${N}\n `.replace(/\n {16}/gu,"\n").trim();case i.TypeReference:return C(T.type,v,N,U,fe);case i.OptionalType:return c.includes(T.base.constructor)?`match ${v}.ValueKind with\n | JsonValueKind.Null | JsonValueKind.Undefined -> None\n | _ ->\n (${C(T.base,v,N,U,fe,!1).replace(/\n/gu,"\n ")}) |> Some\n `.replace(/\n {16}/gu,"\n").trim():T.base instanceof i.OptionalType||T.base instanceof i.ArrayType?`\n (>.>) decodeOptional ${C(T.base,v,N,U,fe,!1)}\n `.replace(/\n {16}/gu,"\n").trim():`\n decodeOptional ${C(T.base,v,N,U,fe,!1)}\n `.replace(/\n {16}/gu,"\n").trim();case i.EnumType:case i.StructType:return`Decode${T.name} ${v} ${N}`;case i.JsonPrimitiveType:return Q?`\n ${v}\n `.replace(/\n {16}/gu,"\n").trim():`${U} <- ${v}`;case i.DateTimePrimitiveType:return`\n decodeDateTime ${v} ${N}\n `.replace(/\n {16}/gu,"\n").trim();case i.DatePrimitiveType:return`\n decodeDate ${v} ${N}\n `.replace(/\n {16}/gu,"\n").trim();case i.ArrayType:return`\n match ${v}.ValueKind with\n | JsonValueKind.Array ->\n let mutable list_ = List.empty\n for i1 in 0 .. (${v}.GetArrayLength() - 1) do\n let item = ${v}.[i1]\n let partialResult =\n ${C(T.base,`${v}.[i1]`,`${N.slice(0,-1)}.{i1}"`,U,fe,!1).replace(/\n/gu,"\n ")}\n list_ <- list_ |> List.append [ partialResult ]\n list_\n | _ -> raise (FatalException(${N.slice(0,-1)} must be an array."))\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: decodeType with ${T.constructor.name}`)}}function w(T,v,N,U=1,fe=!0){switch(T.constructor){case i.StringPrimitiveType:return`resultWriter_.WriteStringValue(${v})`;case i.FloatPrimitiveType:case i.UIntPrimitiveType:case i.IntPrimitiveType:return`resultWriter_.WriteNumberValue(${v})`;case i.MoneyPrimitiveType:return`resultWriter_.WriteNumberValue(int (Math.Round(${v} * 100m)))`;case i.BigIntPrimitiveType:return`resultWriter_.WriteStringValue(${v}.ToString())`;case i.BoolPrimitiveType:return`resultWriter_.WriteBooleanValue(${v})`;case i.BytesPrimitiveType:return`resultWriter_.WriteStringValue(Convert.ToBase64String(${v}))`;case i.DateTimePrimitiveType:return`resultWriter_.WriteStringValue(${v}.ToString("yyyy-MM-ddTHH:mm:ss.FFFFFF'Z'"))`;case i.DatePrimitiveType:return`resultWriter_.WriteStringValue(${v}.ToString("yyyy-MM-dd"))`;case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.Base64PrimitiveType:case i.HexPrimitiveType:case i.XmlPrimitiveType:return`resultWriter_.WriteStringValue(${v})`;case i.OptionalType:{let Q=T.base;for(;Q instanceof i.TypeReference;)Q=Q.type;return`\n if (${v}.IsNone) then\n resultWriter_.WriteNullValue()\n else\n ${w(Q,`${v}.Value`,N,U,fe)}\n `.replace(/\n {14}/gu,"\n").trim()}case i.TypeReference:return w(T.type,v,N,U,fe);case i.EnumType:case i.StructType:return`Encode${T.name} ${v} resultWriter_ ${N}`;case i.JsonPrimitiveType:return`${v}.WriteTo(resultWriter_)`;case i.ArrayType:return`\n resultWriter_.WriteStartArray()\n for i${U} in 0..${v}.Length - 1 do\n ${w(T.base,`${v}.[i${U}]`,`${N}`,U+1).replace(/\n/gu,"\n ")}\n resultWriter_.WriteEndArray()\n `.replace(/\n {14}/gu,"\n").trim();default:throw new Error(`BUG: encodeType with ${T.constructor.name}`)}}g.ident=s,g.capitalize=_,g.generateTypeName=D,g.decodeType=C,g.encodeType=w,g.generateStruct=function h(T){return`\ntype ${T.name} = {\n ${T.fields.map(v=>`${_(v.name)}: ${D(v.type)}`).join(";\n ")}\n} with\n static member Create (${T.fields.map(v=>`${s(v.name)}: ${D(v.type)}`).join(", ")}): ${T.name} =\n { ${T.fields.map(v=>`${_(v.name)} = ${s(v.name)}`).join("; ")} }\n\nlet Decode${T.name} (json_: JsonElement) (path_: string): ${T.name} =\n if (json_.ValueKind <> JsonValueKind.Object) then raise (FatalException($"'{path_}' must be an object."))\n ${T.fields.map(v=>`\n let ${v.name}Json_ = decodeJsonElementStrict ${JSON.stringify(v.name)} json_ $"{path_}.${v.name}"\n let ${s(v.name)} =\n ${C(v.type,`${v.name}Json_`,`$"{path_}.${v.name}"`,s(v.name)).replace(/\n/gu,"\n ")}\n `).join("")}\n { ${T.fields.map(v=>`${_(v.name)} = ${s(v.name)}`).join("; ")} }\n\nlet Encode${T.name} (obj_: ${T.name}) (resultWriter_: Utf8JsonWriter) (path_: string) =\n resultWriter_.WriteStartObject()\n ${T.fields.map(v=>`\n resultWriter_.WritePropertyName(${JSON.stringify(v.name)})\n ${w(v.type,`obj_.${_(v.name)}`,`$"{path_}.${v.name}"`).replace(/\n/gu,"\n ")}`).join("\n")}\n resultWriter_.WriteEndObject()`},g.generateEnum=function A(T){return`\ntype ${T.name} =\n ${T.values.map(({value:v})=>`| ${_(v)}`).join("\n ")}\n\nlet Decode${T.name} (json_: JsonElement) (path_: string): ${T.name} =\n if (json_.ValueKind <> JsonValueKind.String) then raise (FatalException($"'{path_}' must be a string."))\n match json_.GetString() with\n ${T.values.map(({value:v})=>`| "${v}" -> ${T.name}.${_(v)}`).join("\n ")}\n | _ -> raise (FatalException($"'{path_}' must be one of: (${T.values.map(({value:v})=>`'${v}'`).join(", ")})."))\n\nlet Encode${T.name} (obj_: ${T.name}) (resultWriter_: Utf8JsonWriter) (path_: string) =\n match obj_ with\n ${T.values.map(({value:v})=>`| ${T.name}.${_(v)} -> resultWriter_.WriteStringValue("${v}")`).join("\n ")}\n\n`}},2863:function(je,g,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,c,s,_){void 0===_&&(_=s),Object.defineProperty(m,_,{enumerable:!0,get:function(){return c[s]}})}:function(m,c,s,_){void 0===_&&(_=s),m[_]=c[s]}),u=this&&this.__exportStar||function(m,c){for(var s in m)"default"!==s&&!Object.prototype.hasOwnProperty.call(c,s)&&i(c,m,s)};Object.defineProperty(g,"__esModule",{value:!0}),u(l(196),g)},9409:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateAndroidClientSource=void 0;const i=l(6676),u=l(7250);g.generateAndroidClientSource=function m(c,s){let _='@file:Suppress("UNNECESSARY_SAFE_CALL")\n\nimport android.os.Parcelable\nimport kotlinx.android.parcel.Parcelize\nimport android.content.Context\nimport android.util.Base64\nimport com.google.gson.*\nimport com.google.gson.reflect.TypeToken\nimport com.google.gson.annotations.JsonAdapter\nimport com.google.gson.annotations.SerializedName\nimport io.sdkgen.runtime.SdkgenHttpClient\nimport kotlinx.coroutines.*\nimport kotlinx.coroutines.Dispatchers.IO\nimport java.util.*\n\ninline fun <reified T> Gson.fromJson(json: String) =\n fromJson<T>(json, object : TypeToken<T>() {}.type)\n\ninline fun <reified T> Gson.fromJson(json: JsonElement) =\n fromJson<T>(json, object : TypeToken<T>() {}.type)\n\n@Suppress("DeferredIsResult", "unused")\nclass ApiClient(\n baseUrl: String,\n val applicationContext: Context,\n defaultTimeoutMillis: Long = 10000L\n) : SdkgenHttpClient(baseUrl, applicationContext, defaultTimeoutMillis) {\n\n private val gson = GsonBuilder()\n .registerTypeAdapter(object : TypeToken<ByteArray>() {}.type, ByteArrayDeserializer())\n .create()\n\n';for(const w of c.enumTypes)_+=` ${(0,u.generateEnum)(w)}`,_+="\n";_+=" open class Error(val message: String? = null)\n",_+=" data class Response<T>(val error: Error?, val data: T?, val stats: CallStats?)\n\n";for(const w of c.structTypes)_+=` ${(0,u.generateClass)(w)}\n`;const D=[],C=new i.ErrorNode("Connection",new i.VoidPrimitiveType);D.push(C.name),_+=` ${(0,u.generateErrorClass)(C)}`;for(const w of c.errors)_+=` ${(0,u.generateErrorClass)(w)}`,D.push(w.name);return D.length>0&&(_+=`\n enum class ErrorType {\n ${D.join(",\n ")};\n\n fun type(): Class<out ApiClient.Error> {\n return when (this) {\n ${D.map(w=>`${w} -> ApiClient.${w}::class.java`).join("\n ")}\n else -> ApiClient.Error::class.java\n }\n }\n }\n\n`),_+=" private val sdkgenIOScope = CoroutineScope(IO + SupervisorJob())\n\n",_+=c.operations.filter(w=>w.annotations.every(h=>!(h instanceof i.HiddenAnnotation))).map(w=>{let h="";const A=[];A.push("timeoutMillis: Long? = null"),s&&A.push(`callback: ((response: Response<${(0,u.generateKotlinTypeName)(w.returnType)}>) -> Unit)? = null`);const T=w.args.map(v=>`${(0,u.mangle)(v.name)}: ${(0,u.generateKotlinTypeName)(v.type)}`).concat(A);return h+=` fun ${(0,u.mangle)(w.name)}(\n ${T.join(",\n ")}\n ): Deferred<Response<out ${(0,u.generateKotlinTypeName)(w.returnType)}>> = sdkgenIOScope.async {\n`,w.args.length>0?(h+=" val bodyArgs = JsonObject().apply {\n",h+=w.args.map(v=>` ${(0,u.generateJsonAddRepresentation)(v.type,v.name)}`).join("\n"),h+="\n }\n"):h+=" val bodyArgs: JsonObject? = null",h+="\n",h+=` val call = makeRequest("${w.name}", bodyArgs, timeoutMillis)\n`,h+=` val response: Response<${(0,u.generateKotlinTypeName)(w.returnType)}> = handleCallResponse(call)\n`,s&&(h+=" withContext(Dispatchers.Main) { callback?.invoke(response) } \n"),h+=" return@async response\n",h+=" }\n",h}).join("\n"),_+='\n private inline fun <reified T> handleCallResponse(callResponse: InternalResponse): Response<T> {\n try {\n val data = if (callResponse.result?.get("result") != null)\n gson.fromJson<T>(callResponse.result?.get("result")!!)\n else null\n\n val error = if (callResponse.error != null) {\n val errorType = try {\n ErrorType.valueOf(callResponse.error?.get("type")?.asString ?: "")\n } catch (e: Exception) {\n ErrorType.Fatal\n }\n\n gson.fromJson(callResponse.error, errorType.type())\n } else null\n\n return Response(error, data, callResponse.stats)\n } catch(e: Exception) {\n return Response(Fatal(applicationContext.getString(io.sdkgen.runtime.R.string.sdkgen_error_serialization)), null, callResponse.stats)\n }\n }\n',_+="}\n",_}},7250:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateErrorClass=g.generateClass=g.getAnnotation=g.generateEnum=g.generateJsonAddRepresentation=g.mangle=g.generateKotlinTypeName=void 0;const i=l(6676);function u(w){switch(w.constructor){case i.IntPrimitiveType:case i.UIntPrimitiveType:case i.MoneyPrimitiveType:return"Int";case i.FloatPrimitiveType:return"Double";case i.BigIntPrimitiveType:return"BigInt";case i.DatePrimitiveType:case i.DateTimePrimitiveType:return"Calendar";case i.BoolPrimitiveType:return"Boolean";case i.BytesPrimitiveType:return"ByteArray";case i.StringPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:return"String";case i.VoidPrimitiveType:return"Unit";case i.JsonPrimitiveType:return"JsonElement";case i.OptionalType:return`${u(w.base)}?`;case i.ArrayType:return`ArrayList<${u(w.base)}>`;case i.StructType:case i.EnumType:return w.name;case i.TypeReference:return u(w.type);default:throw new Error(`BUG: generateKotlinTypeName with ${w.constructor.name}`)}}function m(w){return["in","out","as","break","class","continue","do","else","false","for","fun","if","in","interface","is","null","object","package","return","super","this","throw","true","try","typealias","val","var","when","while","by","catch","constructor","delegate","dynamic","field","file","finally","get","import","init","param","property","receiver","set","setparam","where","actual","abstract","annotation","companion","const","crossinline","data","enum","expect","external","final","infix","inline","inner","internal","lateinit","noinline","open","operator","out","override","private","protected","public","reified","sealed","suspend","tailrec","vararg","Double","Float","Long","Int","Short","Byte"].includes(w)?`_${w}`:w}function _(w,h){let A="";switch(h&&h!==m(h)&&(A+=` @SerializedName("${h}")\n`),w.constructor){case i.DatePrimitiveType:A+=" @JsonAdapter(DateAdapter::class)\n";break;case i.DateTimePrimitiveType:A+=" @JsonAdapter(DateTimeAdapter::class)\n";break;case i.ArrayType:case i.OptionalType:A+=_(w.base)}return A}g.generateKotlinTypeName=u,g.mangle=m,g.generateJsonAddRepresentation=function c(w,h){switch(w.constructor){case i.StringPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:case i.IntPrimitiveType:case i.UIntPrimitiveType:case i.MoneyPrimitiveType:case i.FloatPrimitiveType:case i.BoolPrimitiveType:return`addProperty("${h}", ${m(h)})`;case i.OptionalType:return c(w.base,h);case i.DatePrimitiveType:return`addProperty("${h}", ${m(h)}?.let { DateAdapter.sdf.format(it.time)}) `;case i.DateTimePrimitiveType:return`addProperty("${h}", ${m(h)}?.let { DateTimeAdapter.sdf.format(it.time)})`;case i.ArrayType:case i.StructType:case i.EnumType:case i.TypeReference:case i.JsonPrimitiveType:return`add("${h}", gson.toJsonTree(${m(h)}))`;case i.VoidPrimitiveType:return"";case i.BytesPrimitiveType:return`addProperty("${h}", Base64.encodeToString(${m(h)}, Base64.NO_WRAP))`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${w.constructor.name}`)}},g.generateEnum=function s(w){let h="@Parcelize \n";return h+=` enum class ${w.name} : Parcelable { ${w.values.map(A=>m(A.value)).join(", ")} }\n`,h},g.getAnnotation=_,g.generateClass=function D(w){let h="@Parcelize\n";return h+=` data class ${w.name}(\n${w.fields.map(A=>{let T=_(A.type,A.name);return T+=` var ${m(A.name)}: ${u(A.type)}${A.type.constructor===i.OptionalType?" = null":""}`,T}).join(",\n")}\n ) : Parcelable\n`,h},g.generateErrorClass=function C(w){return`class ${w.name}(message: String) : Error(message)\n`}},7402:function(je,g,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,c,s,_){void 0===_&&(_=s),Object.defineProperty(m,_,{enumerable:!0,get:function(){return c[s]}})}:function(m,c,s,_){void 0===_&&(_=s),m[_]=c[s]}),u=this&&this.__exportStar||function(m,c){for(var s in m)"default"!==s&&!Object.prototype.hasOwnProperty.call(c,s)&&i(c,m,s)};Object.defineProperty(g,"__esModule",{value:!0}),u(l(9409),g)},1942:function(je,g,l){"use strict";var i=this&&this.__rest||function(ke,Ee){var Ze={};for(var mt in ke)Object.prototype.hasOwnProperty.call(ke,mt)&&Ee.indexOf(mt)<0&&(Ze[mt]=ke[mt]);if(null!=ke&&"function"==typeof Object.getOwnPropertySymbols){var gt=0;for(mt=Object.getOwnPropertySymbols(ke);gt<mt.length;gt++)Ee.indexOf(mt[gt])<0&&Object.prototype.propertyIsEnumerable.call(ke,mt[gt])&&(Ze[mt[gt]]=ke[mt[gt]])}return Ze};Object.defineProperty(g,"__esModule",{value:!0}),g.AstRoot=g.FunctionOperation=g.TypeDefinition=g.StructType=g.TypeReference=g.Spread=g.Field=g.EnumType=g.EnumValue=g.ArrayType=g.OptionalType=g.JsonPrimitiveType=g.XmlPrimitiveType=g.Base64PrimitiveType=g.HtmlPrimitiveType=g.HexPrimitiveType=g.UuidPrimitiveType=g.UrlPrimitiveType=g.EmailPrimitiveType=g.CnpjPrimitiveType=g.CpfPrimitiveType=g.MoneyPrimitiveType=g.VoidPrimitiveType=g.BytesPrimitiveType=g.BoolPrimitiveType=g.DateTimePrimitiveType=g.DatePrimitiveType=g.BigIntPrimitiveType=g.FloatPrimitiveType=g.UIntPrimitiveType=g.IntPrimitiveType=g.StringPrimitiveType=g.PrimitiveType=g.HiddenAnnotation=g.RestAnnotation=g.ArgDescriptionAnnotation=g.ThrowsAnnotation=g.DescriptionAnnotation=g.Annotation=g.ErrorNode=g.Type=g.AstNode=void 0;const u=l(9037);class m{constructor(){this.location=new u.TokenLocation,Object.defineProperty(this,"location",{enumerable:!1})}at(Ee){return this.location=Ee.location,this}atLocation(Ee){return this.location=Ee,this}}g.AstNode=m;class c extends m{toJSON(){const Ee=Object.assign({},this);return i(Ee,["name"])}}g.Type=c,g.ErrorNode=class s extends m{constructor(Ee,Ze){super(),this.name=Ee,this.dataType=Ze}};class _ extends m{}g.Annotation=_,g.DescriptionAnnotation=class D extends _{constructor(Ee){super(),this.text=Ee}},g.ThrowsAnnotation=class C extends _{constructor(Ee){super(),this.error=Ee}},g.ArgDescriptionAnnotation=class w extends _{constructor(Ee,Ze){super(),this.argName=Ee,this.text=Ze}},g.RestAnnotation=class h extends _{constructor(Ee,Ze,mt,gt,St,dt){super(),this.method=Ee,this.path=Ze,this.pathVariables=mt,this.queryVariables=gt,this.headers=St,this.bodyVariable=dt}},g.HiddenAnnotation=class A extends _{};class T extends c{toJSON(){return this.name}}g.PrimitiveType=T,g.StringPrimitiveType=class v extends T{constructor(){super(...arguments),this.name="string"}},g.IntPrimitiveType=class N extends T{constructor(){super(...arguments),this.name="int"}},g.UIntPrimitiveType=class U extends T{constructor(){super(...arguments),this.name="uint"}},g.FloatPrimitiveType=class fe extends T{constructor(){super(...arguments),this.name="float"}},g.BigIntPrimitiveType=class Q extends T{constructor(){super(...arguments),this.name="bigint"}},g.DatePrimitiveType=class he extends T{constructor(){super(...arguments),this.name="date"}},g.DateTimePrimitiveType=class Re extends T{constructor(){super(...arguments),this.name="datetime"}},g.BoolPrimitiveType=class _e extends T{constructor(){super(...arguments),this.name="bool"}},g.BytesPrimitiveType=class be extends T{constructor(){super(...arguments),this.name="bytes"}},g.VoidPrimitiveType=class q extends T{constructor(){super(...arguments),this.name="void"}},g.MoneyPrimitiveType=class Ce extends T{constructor(){super(...arguments),this.name="money"}},g.CpfPrimitiveType=class Fe extends T{constructor(){super(...arguments),this.name="cpf"}},g.CnpjPrimitiveType=class Ye extends T{constructor(){super(...arguments),this.name="cnpj"}},g.EmailPrimitiveType=class st extends T{constructor(){super(...arguments),this.name="email"}},g.UrlPrimitiveType=class $e extends T{constructor(){super(...arguments),this.name="url"}},g.UuidPrimitiveType=class de extends T{constructor(){super(...arguments),this.name="uuid"}},g.HexPrimitiveType=class Pe extends T{constructor(){super(...arguments),this.name="hex"}},g.HtmlPrimitiveType=class z extends T{constructor(){super(...arguments),this.name="html"}},g.Base64PrimitiveType=class ge extends T{constructor(){super(...arguments),this.name="base64"}},g.XmlPrimitiveType=class ie extends T{constructor(){super(...arguments),this.name="xml"}},g.JsonPrimitiveType=class xe extends T{constructor(){super(...arguments),this.name="json"}},g.OptionalType=class me extends c{constructor(Ee){super(),this.base=Ee}get name(){return`${this.base.name}?`}},g.ArrayType=class Je extends c{constructor(Ee){super(),this.base=Ee}get name(){return`${this.base.name}[]`}},g.EnumValue=class ve extends m{constructor(Ee){super(),this.value=Ee,this.annotations=[],this.struct=null}},g.EnumType=class ze extends c{constructor(Ee){super(),this.values=Ee}get hasStructValues(){return this.values.some(Ee=>null!==Ee.struct)}},g.Field=class ct extends m{constructor(Ee,Ze,mt=!1){super(),this.name=Ee,this.type=Ze,this.secret=mt,this.annotations=[]}},g.Spread=class Dt extends m{constructor(Ee){super(),this.typeReference=Ee}},g.TypeReference=class Be extends c{constructor(Ee){super(),this.name=Ee}},g.StructType=class et extends c{constructor(Ee){super(),this.fieldsAndSpreads=Ee,this.fields=[]}},g.TypeDefinition=class ne extends m{constructor(Ee,Ze){super(),this.name=Ee,this.type=Ze,this.annotations=[]}},g.FunctionOperation=class pe extends m{constructor(Ee,Ze,mt){super(),this.name=Ee,this.fieldsAndSpreads=Ze,this.returnType=mt,this.annotations=[],this.args=[]}},g.AstRoot=class we{constructor(Ee=[],Ze=[],mt=[]){this.typeDefinitions=Ee,this.operations=Ze,this.errors=mt,this.structTypes=[],this.enumTypes=[],this.warnings=[]}}},9747:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.compatibilityIssues=void 0;const i=l(1942);function u(s,_,D,C){var w,h;if(D instanceof i.TypeReference)u(s,_,D.type,C);else if(C instanceof i.TypeReference)u(s,_,D,C.type);else if(D instanceof i.OptionalType||!(C instanceof i.OptionalType))if(D instanceof i.OptionalType&&C instanceof i.OptionalType)u(s,_,D.base,C.base);else{if(D instanceof i.OptionalType&&!(C instanceof i.OptionalType))return _.push(`${s} was optional, but now it isn't. If the client sends a null, it will be invalid. Add the optional annotation back.`),void u(s,_,D.base,C);if(D instanceof i.ArrayType&&C instanceof i.ArrayType)u(s,_,D.base,C.base);else if(D instanceof i.StructType&&C instanceof i.StructType)for(const A of C.fields){const T=D.fields.find(v=>v.name===A.name);if(T)u(`${s}.${T.name}`,_,T.type,A.type);else{if(A.type instanceof i.OptionalType)continue;_.push(`${s}.${A.name} didn't exist before and isn't optional. Make it optional.`)}}else if(!(D instanceof i.UIntPrimitiveType&&C instanceof i.IntPrimitiveType||D instanceof i.IntPrimitiveType&&C instanceof i.FloatPrimitiveType||D instanceof i.MoneyPrimitiveType&&C instanceof i.IntPrimitiveType||D instanceof i.MoneyPrimitiveType&&C instanceof i.UIntPrimitiveType||D instanceof i.UIntPrimitiveType&&C instanceof i.BigIntPrimitiveType||D instanceof i.IntPrimitiveType&&C instanceof i.BigIntPrimitiveType||D instanceof i.MoneyPrimitiveType&&C instanceof i.BigIntPrimitiveType||D instanceof i.BigIntPrimitiveType&&C instanceof i.StringPrimitiveType||D instanceof i.UuidPrimitiveType&&C instanceof i.StringPrimitiveType||D instanceof i.XmlPrimitiveType&&C instanceof i.StringPrimitiveType||D instanceof i.DatePrimitiveType&&C instanceof i.StringPrimitiveType||D instanceof i.DateTimePrimitiveType&&C instanceof i.StringPrimitiveType||D instanceof i.CpfPrimitiveType&&C instanceof i.StringPrimitiveType||D instanceof i.CnpjPrimitiveType&&C instanceof i.StringPrimitiveType||D instanceof i.HexPrimitiveType&&C instanceof i.StringPrimitiveType||D instanceof i.HtmlPrimitiveType&&C instanceof i.StringPrimitiveType||D instanceof i.Base64PrimitiveType&&C instanceof i.StringPrimitiveType||D instanceof i.BytesPrimitiveType&&C instanceof i.StringPrimitiveType||D instanceof i.BytesPrimitiveType&&C instanceof i.Base64PrimitiveType||D instanceof i.UrlPrimitiveType&&C instanceof i.StringPrimitiveType||D instanceof i.EmailPrimitiveType&&C instanceof i.StringPrimitiveType||D instanceof i.EnumType&&C instanceof i.StringPrimitiveType)){if(D instanceof i.EnumType&&C instanceof i.EnumType){for(const A of D.values){const T=C.values.find(v=>v.value===A.value);T?u(`${s}.${A.value}`,_,null!==(w=A.struct)&&void 0!==w?w:new i.StructType([]),null!==(h=T.struct)&&void 0!==h?h:new i.StructType([])):_.push(`The enum at ${s} used to accept the value "${A.value}" that doesn't exist now. Clients that send it will fail.`)}return}D.constructor.name!==C.constructor.name&&_.push(`${s} was ${D.name} and now it is ${C.name}. They are not compatible.`)}}else u(s,_,D,C.base)}function m(s,_,D,C){var w,h;if(D instanceof i.TypeReference)m(s,_,D.type,C);else if(C instanceof i.TypeReference)m(s,_,D,C.type);else if(!(D instanceof i.OptionalType)||C instanceof i.OptionalType)if(D instanceof i.OptionalType&&C instanceof i.OptionalType)m(s,_,D.base,C.base);else{if(!(D instanceof i.OptionalType)&&C instanceof i.OptionalType)return _.push(`${s} wasn't optional, but now it is. If the client receives a null, it will crash. Remove the optional annotation.`),void m(s,_,D,C.base);if(D instanceof i.ArrayType&&C instanceof i.ArrayType)m(s,_,D.base,C.base);else if(D instanceof i.StructType&&C instanceof i.StructType)for(const A of D.fields){const T=C.fields.find(v=>v.name===A.name);if(T)m(`${s}.${A.name}`,_,A.type,T.type);else{if(A.type instanceof i.OptionalType)continue;_.push(`${s}.${A.name} used to exist with type ${A.type.name}, but it's now missing. Add it back.`)}}else if(!(D instanceof i.IntPrimitiveType&&C instanceof i.UIntPrimitiveType||D instanceof i.FloatPrimitiveType&&C instanceof i.IntPrimitiveType||D instanceof i.IntPrimitiveType&&C instanceof i.MoneyPrimitiveType||D instanceof i.UIntPrimitiveType&&C instanceof i.MoneyPrimitiveType||D instanceof i.BigIntPrimitiveType&&C instanceof i.UIntPrimitiveType||D instanceof i.BigIntPrimitiveType&&C instanceof i.IntPrimitiveType||D instanceof i.BigIntPrimitiveType&&C instanceof i.MoneyPrimitiveType||D instanceof i.StringPrimitiveType&&C instanceof i.BigIntPrimitiveType||D instanceof i.StringPrimitiveType&&C instanceof i.UuidPrimitiveType||D instanceof i.StringPrimitiveType&&C instanceof i.XmlPrimitiveType||D instanceof i.StringPrimitiveType&&C instanceof i.DatePrimitiveType||D instanceof i.StringPrimitiveType&&C instanceof i.DateTimePrimitiveType||D instanceof i.StringPrimitiveType&&C instanceof i.CpfPrimitiveType||D instanceof i.StringPrimitiveType&&C instanceof i.CnpjPrimitiveType||D instanceof i.StringPrimitiveType&&C instanceof i.HexPrimitiveType||D instanceof i.StringPrimitiveType&&C instanceof i.HtmlPrimitiveType||D instanceof i.StringPrimitiveType&&C instanceof i.Base64PrimitiveType||D instanceof i.StringPrimitiveType&&C instanceof i.BytesPrimitiveType||D instanceof i.Base64PrimitiveType&&C instanceof i.BytesPrimitiveType||D instanceof i.StringPrimitiveType&&C instanceof i.UrlPrimitiveType||D instanceof i.StringPrimitiveType&&C instanceof i.EmailPrimitiveType||D instanceof i.StringPrimitiveType&&C instanceof i.EnumType)){if(D instanceof i.EnumType&&C instanceof i.EnumType){for(const A of C.values){const T=D.values.find(v=>v.value===A.value);T?m(`${s}.${A.value}`,_,null!==(w=T.struct)&&void 0!==w?w:new i.StructType([]),null!==(h=A.struct)&&void 0!==h?h:new i.StructType([])):_.push(`The enum at ${s} now has the value "${A.value}" that didn't exist before. Client will crash if it receives it`)}return}D.constructor.name!==C.constructor.name&&_.push(`${s} was ${D.name} and now it is ${C.name}. They are not compatible.`)}}else m(s,_,D.base,C)}g.compatibilityIssues=function c(s,_){const D=[];for(const C of s.operations){const w=_.operations.find(h=>h.name===C.name);if(w){m(`${C.name}.ret`,D,C.returnType,w.returnType);for(const h of w.args){const A=C.args.find(T=>T.name===h.name);if(A)u(`${C.name}.args.${A.name}`,D,A.type,h.type);else{if(h.type instanceof i.OptionalType)continue;D.push(`${C.name}.args.${h.name} didn't exist before and isn't optional. Make it optional.`)}}}else D.push(`function ${C.name} used to exist, but it's now missing. Add it back.`)}for(const C of s.errors){const w=_.errors.find(h=>h.name===C.name);!w||m(`${C.name}.data`,D,C.dataType,w.dataType)}return D}},6676:function(je,g,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(c,s,_,D){void 0===D&&(D=_),Object.defineProperty(c,D,{enumerable:!0,get:function(){return s[_]}})}:function(c,s,_,D){void 0===D&&(D=_),c[D]=s[_]}),u=this&&this.__exportStar||function(c,s){for(var _ in c)"default"!==_&&!Object.prototype.hasOwnProperty.call(s,_)&&i(s,c,_)};Object.defineProperty(g,"__esModule",{value:!0}),g.jsonToAst=g.astToJson=void 0,u(l(1942),g),u(l(9747),g);var m=l(1557);Object.defineProperty(g,"astToJson",{enumerable:!0,get:function(){return m.astToJson}}),Object.defineProperty(g,"jsonToAst",{enumerable:!0,get:function(){return m.jsonToAst}}),u(l(8053),g),u(l(2701),g),u(l(9037),g)},1557:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.jsonToAst=g.astToJson=void 0;const i=l(1942),u=l(6088),m=l(6569);function c(C){if(C instanceof i.DescriptionAnnotation)return{type:"description",value:C.text};if(C instanceof i.ThrowsAnnotation)return{type:"throws",value:C.error};if(C instanceof i.RestAnnotation)return{type:"rest",value:{bodyVariable:C.bodyVariable,headers:[...C.headers.entries()].sort(([w],[h])=>w.localeCompare(h)),method:C.method,path:C.path,pathVariables:[...C.pathVariables].sort((w,h)=>w.localeCompare(h)),queryVariables:[...C.queryVariables].sort((w,h)=>w.localeCompare(h))}};if(C instanceof i.HiddenAnnotation)return{type:"hidden",value:null};throw new Error(`BUG: annotationToJson with ${C.constructor.name}`)}function s(C){switch(C.type){case"description":return new i.DescriptionAnnotation(C.value);case"throws":return new i.ThrowsAnnotation(C.value);case"rest":{const{method:w,path:h,pathVariables:A,queryVariables:T,headers:v,bodyVariable:N}=C.value;return new i.RestAnnotation(w,h,A,T,new Map(v),N)}case"hidden":return new i.HiddenAnnotation;default:throw new Error(`BUG: annotationFromJson with ${C.type}`)}}g.astToJson=function _(C){var w,h,A;const T={},v={};function N(Q){return Q instanceof i.ArrayType?`${N(Q.base)}[]`:Q instanceof i.OptionalType?`${N(Q.base)}?`:Q.name}for(const{name:Q,fields:he}of C.structTypes){v[Q]={};const Re=v[Q];for(const _e of he){Re[_e.name]=N(_e.type);for(const be of _e.annotations)if(be instanceof i.DescriptionAnnotation){const q=`type.${Q}.${_e.name}`;null!==(w=T[q])&&void 0!==w||(T[q]=[]),T[q].push(c(be))}}}for(const{name:Q,values:he}of C.enumTypes)v[Q]=he.map(Re=>Re.struct?[Re.value,Re.struct.name]:Re.value);for(const{name:Q,type:he}of C.typeDefinitions)he instanceof i.StructType||he instanceof i.EnumType||(v[Q]=N(he));const U={};for(const Q of C.operations){const he={};for(const Re of Q.args){he[Re.name]=N(Re.type);for(const _e of Re.annotations)if(_e instanceof i.DescriptionAnnotation){const be=`fn.${Q.name}.${Re.name}`;null!==(h=T[be])&&void 0!==h||(T[be]=[]),T[be].push(c(_e))}}U[Q.name]={args:he,ret:N(Q.returnType)};for(const Re of Q.annotations){const _e=`fn.${Q.name}`;null!==(A=T[_e])&&void 0!==A||(T[_e]=[]),T[_e].push(c(Re))}}return{annotations:T,errors:C.errors.map(Q=>Q.dataType instanceof i.VoidPrimitiveType?Q.name:[Q.name,Q.dataType.name]),functionTable:U,typeTable:v}},g.jsonToAst=function D(C){var w,h;const A=[],T=[],v=[];function N(Q,he){var Re;if("string"==typeof Q){const be=m.primitiveToAstClass.get(Q);return be?new be:Q.endsWith("?")?new i.OptionalType(N(Q.slice(0,Q.length-1))):Q.endsWith("[]")?new i.ArrayType(N(Q.slice(0,Q.length-2))):new i.TypeReference(Q)}if(Array.isArray(Q))return new i.EnumType(Q.map(be=>{if(Array.isArray(be)){const[q,Ce]=be,Fe=new i.EnumValue(q);return v.push([Fe,Ce]),Fe}return new i.EnumValue(be)}));const _e=[];for(const be of Object.keys(Q)){const q=new i.Field(be,N(Q[be]));if(he){const Ce=`type.${he}.${be}`;for(const Fe of null!==(Re=C.annotations[Ce])&&void 0!==Re?Re:[])q.annotations.push(s(Fe))}_e.push(q)}return new i.StructType(_e)}for(const[Q,he]of Object.entries(C.typeTable)){const Re=N(he,Q);T.push(new i.TypeDefinition(Q,Re))}for(const[Q,he]of Object.entries(C.functionTable)){const Re=Object.keys(he.args).map(q=>{var Ce;const Fe=new i.Field(q,N(he.args[q])),Ye=`fn.${Q}.${q}`;for(const st of null!==(Ce=C.annotations[Ye])&&void 0!==Ce?Ce:[])Fe.annotations.push(s(st));return Fe}),_e=new i.FunctionOperation(Q,Re,N(he.ret)),be=`fn.${Q}`;for(const q of null!==(w=C.annotations[be])&&void 0!==w?w:[])_e.annotations.push(s(q));A.push(_e)}for(const[Q,he]of v){const Re=null===(h=T.find(_e=>_e.name===he))||void 0===h?void 0:h.type;Re instanceof i.StructType&&(Q.struct=Re)}const U=C.errors.map(Q=>Array.isArray(Q)?new i.ErrorNode(Q[0],N(Q[1])):new i.ErrorNode(Q,new i.VoidPrimitiveType)),fe=new i.AstRoot(T,A,U);return(0,u.analyse)(fe),fe}},8053:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.Lexer=g.LexerError=void 0;const i=l(9037);class u extends Error{}g.LexerError=u;class m{constructor(s,_="-"){this.source=s,this.filename=_,this.startPos=0,this.startLine=1,this.startColumn=1,this.pos=0,this.line=1,this.column=1}currentChar(){return this.source[this.pos]||"\0"}nextChar(){return this.column++,this.source[++this.pos]||"\0"}nextToken(){this.startPos=this.pos,this.startLine=this.line,this.startColumn=this.column;let s=null;switch(this.currentChar()){case"\0":return null;case" ":case"\r":case"\t":return this.nextChar(),this.nextToken();case"\n":return this.nextChar(),this.column=1,this.line++,this.nextToken();case"/":switch(this.nextChar()){case"/":for(;;)switch(this.nextChar()){case"\0":return null;case"\n":return this.nextChar(),this.column=1,this.line++,this.nextToken()}case"*":e:for(;;)switch(this.nextChar()){case"\0":break e;case"\n":this.column=0,this.line++;break;case"*":for(;"*"===this.nextChar(););switch(this.currentChar()){case"\0":break e;case"\n":this.column=0,this.line++;break;case"/":return this.nextChar(),this.nextToken()}}}break;case"{":this.nextChar(),s=new i.CurlyOpenSymbolToken;break;case"}":this.nextChar(),s=new i.CurlyCloseSymbolToken;break;case"(":this.nextChar(),s=new i.ParensOpenSymbolToken;break;case")":this.nextChar(),s=new i.ParensCloseSymbolToken;break;case"?":this.nextChar(),s=new i.OptionalSymbolToken;break;case":":this.nextChar(),s=new i.ColonSymbolToken;break;case"=":this.nextChar(),s=new i.EqualSymbolToken;break;case"!":this.nextChar(),s=new i.ExclamationMarkSymbolToken;break;case",":this.nextChar(),s=new i.CommaSymbolToken;break;case"[":"]"===this.nextChar()&&(this.nextChar(),s=new i.ArraySymbolToken);break;case".":"."===this.nextChar()&&"."===this.nextChar()&&(this.nextChar(),s=new i.SpreadSymbolToken);break;case"@":{let _="\\",D=this.startPos+1;for(;"\\"===_[_.length-1];){for(_=_.slice(0,_.length-1).trim();!["\0","\n"].includes(this.nextChar()););_=`${_} ${this.source.substring(D,this.pos).trim()}`.trim(),D=this.pos+1}s=new i.AnnotationToken(_.trim());break}case'"':{const _=[];e:for(;;)switch(this.nextChar()){case"\0":break e;case"\\":switch(this.nextChar()){case"\0":break e;case"n":_.push("\n");break;case"t":_.push("\t");break;default:_.push(this.currentChar())}break;case'"':this.nextChar(),s=new i.StringLiteralToken(_.join(""));break e;default:_.push(this.currentChar())}break}default:if(/[a-zA-Z_]/u.test(this.currentChar())){for(;/[a-zA-Z0-9_]/u.test(this.nextChar()););const _=this.source.substring(this.startPos,this.pos);switch(_){case"error":s=new i.ErrorKeywordToken;break;case"enum":s=new i.EnumKeywordToken;break;case"type":s=new i.TypeKeywordToken;break;case"import":s=new i.ImportKeywordToken;break;case"fn":s=new i.FnKeywordToken;break;case"true":s=new i.TrueKeywordToken;break;case"false":s=new i.FalseKeywordToken;break;default:s=m.PRIMITIVES.has(_)?new i.PrimitiveTypeToken(_):new i.IdentifierToken(_)}}}if(null!==s)return s.location.filename=this.filename,s.location.line=this.startLine,s.location.column=this.startColumn,s;throw"\0"===this.currentChar()?new u(`Unexpected end of file at ${this.filename}`):new u(`Unexpected character ${JSON.stringify(this.currentChar())} at ${this.filename}:${this.line}:${this.column}`)}}g.Lexer=m,m.PRIMITIVES=new Set(["bool","int","uint","float","bigint","string","date","datetime","bytes","money","cpf","cnpj","email","html","url","uuid","hex","base64","xml","void","json"]),m.KEYWORDS=new Set([...m.PRIMITIVES,"error","enum","type","import","get","function","fn","true","false"])},2701:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.Parser=g.ParserError=void 0;const i=l(1942),u=l(8053),m=l(7145),c=l(6088),s=l(9037),_=l(6569);class D extends Error{}g.ParserError=D,g.Parser=class C{constructor(h){this.token=null,this.annotations=[],this.warnings=[],this.readFileSync=()=>{throw"Not implemented"};try{this.readFileSync=Object(function(){var T=new Error("Cannot find module 'fs'");throw T.code="MODULE_NOT_FOUND",T}())}catch(A){}this.lexers=h instanceof u.Lexer?[h]:[new u.Lexer(this.readFileSync(h).toString(),h)],this.nextToken()}nextToken(){for(;this.lexers.length>0;){if(this.token=this.lexers[this.lexers.length-1].nextToken(),this.token)return;this.lexers.pop()}}multiExpect(h){if(!this.token)throw new D(`Expected ${Object.keys(h).map(T=>T.replace("Token","")).join(" or ")}, but found end of file`);const A=this.token.constructor.name;if(A in h)return h[A](this.token);if(h.IdentifierToken){const T=this.token.maybeAsIdentifier();if(T instanceof s.IdentifierToken)return h.IdentifierToken(T)}throw new D(`Expected ${Object.keys(h).map(T=>T.replace("Token","")).join(" or ")} at ${this.token.location}, but found ${this.token}`)}expect(h){if(null===this.token)throw new D(`Expected ${h.name.replace("Token","")}, but found end of file`);if(this.token instanceof h)return this.token;if(h===s.IdentifierToken){const A=this.token.maybeAsIdentifier();if(A instanceof s.IdentifierToken)return A}throw new D(`Expected ${h.name.replace("Token","")} at ${this.token.location}, but found ${this.token}`)}parse(){const h=[],A=[],T=[];for(this.warnings=[];this.token;)this.acceptAnnotations(),this.multiExpect({ErrorKeywordToken:()=>{T.push(this.parseError())},FnKeywordToken:()=>{h.push(this.parseOperation())},ImportKeywordToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const N=this.expect(s.StringLiteralToken),U=N.location.filename.replace(/[^/\\]+$/u,`${N.value}.sdkgen`);this.lexers.push(new u.Lexer(this.readFileSync(U).toString(),U)),this.nextToken()},TypeKeywordToken:()=>{A.push(this.parseTypeDefinition())}});const v=new i.AstRoot(A,h,T);return v.warnings=this.warnings,(0,c.analyse)(v),v}acceptAnnotations(){for(;this.token instanceof s.AnnotationToken;){const h=this.token.value.split(" "),A=this.token.value.slice(h[0].length).trim();switch(h[0]){case"description":this.annotations.push(new i.DescriptionAnnotation(A).at(this.token));break;case"arg":this.annotations.push(new i.ArgDescriptionAnnotation(h[1],this.token.value.slice(h[0].length+1+h[1].length).trim()).at(this.token));break;case"throws":this.annotations.push(new i.ThrowsAnnotation(A).at(this.token));break;case"rest":try{this.annotations.push((0,m.parseRestAnnotation)(A).at(this.token))}catch(T){throw new D(`${T instanceof Error?T.message:T} at ${this.token.location}`)}break;case"hidden":if(""!==A)throw new D("@hidden annotation doesn't take any argument");this.annotations.push((new i.HiddenAnnotation).at(this.token));break;default:throw new D(`Unknown annotation '${h[0]}' at ${this.token.location}`)}this.nextToken()}}checkCannotHaveAnnotationsHere(){if(this.annotations.length>0)throw new D(`Cannot have annotations at ${this.annotations[0].location}`)}parseTypeDefinition(){const h=this.expect(s.TypeKeywordToken);this.nextToken();const A=this.expect(s.IdentifierToken),T=A.value;if(!/[A-Z]/u.test(T[0]))throw new D(`The custom type name must start with an uppercase letter, but found ${JSON.stringify(T)} at ${A.location}`);this.nextToken();const{annotations:v}=this;this.annotations=[];const N=this.parseType(),U=new i.TypeDefinition(T,N).at(h);return U.annotations=v,U}parseError(){this.checkCannotHaveAnnotationsHere();const h=this.expect(s.ErrorKeywordToken);this.nextToken();const A=this.expect(s.IdentifierToken),T=A.value;if(!/[A-Z]/u.test(T[0]))throw new D(`Error name must start with an uppercase letter, but found ${JSON.stringify(T)} at ${A.location}`);this.nextToken();let v=new i.VoidPrimitiveType;return(this.token instanceof s.CurlyOpenSymbolToken||this.token instanceof s.EnumKeywordToken||this.token instanceof s.IdentifierToken||this.token instanceof s.PrimitiveTypeToken)&&(v=this.parseType()),new i.ErrorNode(T,v).at(h)}parseOperation(){let{annotations:h}=this;this.annotations=[],this.expect(s.FnKeywordToken),this.nextToken();const A=this.expect(s.IdentifierToken).value;this.nextToken(),this.expect(s.ParensOpenSymbolToken),this.nextToken();const T=new Set,v=[];let U,N=!1;for(;!N;)this.acceptAnnotations(),this.multiExpect({ParensCloseSymbolToken:he=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),N=!0,U=he},IdentifierToken:()=>{const he=this.parseField();if(T.has(he.name))throw new D(`Cannot redeclare argument '${he.name}'`);T.add(he.name),v.push(he),this.multiExpect({ParensCloseSymbolToken:Re=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),N=!0,U=Re},CommaSymbolToken:()=>this.nextToken()})},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const he=this.expect(s.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(he.value[0]))throw new D(`Expected a type but found ${JSON.stringify(he.value)} at ${he.location}`);v.push(new i.Spread(new i.TypeReference(he.value).at(he)).at(he)),this.multiExpect({ParensCloseSymbolToken:Re=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),N=!0,U=Re},CommaSymbolToken:()=>this.nextToken()})}});for(const he of h)if(he instanceof i.ArgDescriptionAnnotation){const Re=v.find(_e=>_e instanceof i.Field&&_e.name===he.argName);if(!Re)throw new D(`Argument '${he.argName}' not found, at ${he.location}`);Re.annotations.push(new i.DescriptionAnnotation(he.text).atLocation(he.location))}h=h.filter(he=>!(he instanceof i.ArgDescriptionAnnotation));let fe=(new i.VoidPrimitiveType).at(U);this.token instanceof s.ColonSymbolToken&&(this.nextToken(),fe=this.parseType());const Q=new i.FunctionOperation(A,v,fe);return Q.annotations=h,Q}parseEnum(){this.checkCannotHaveAnnotationsHere();const h=this.expect(s.EnumKeywordToken);this.nextToken(),this.expect(s.CurlyOpenSymbolToken),this.nextToken();const A=new i.EnumType([]).at(h);let T=!1;for(;!T;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),T=!0},IdentifierToken:v=>{const N=new i.EnumValue(v.value).at(v);if(N.annotations=this.annotations,this.annotations=[],A.values.push(N),this.nextToken(),!(this.token instanceof s.ParensOpenSymbolToken))return;this.nextToken();const U=new Set,fe=[];for(;this.token&&this.token.maybeAsIdentifier()instanceof s.IdentifierToken;){const Q=this.parseField();if("tag"===Q.name&&(Q.name="_tag"),U.has(Q.name))throw new D(`Cannot redeclare argument '${Q.name}'`);if(U.add(Q.name),fe.push(Q),!(this.token instanceof s.CommaSymbolToken))break;this.nextToken()}N.struct=new i.StructType(fe).atLocation(N.location),this.expect(s.ParensCloseSymbolToken),this.nextToken()}});return A}parseField(){const h=this.expect(s.IdentifierToken);this.nextToken(),this.expect(s.ColonSymbolToken),this.nextToken();const{annotations:A}=this;this.annotations=[];const T=this.parseType(),v=new i.Field(h.value,T).at(h);for(v.annotations=A;this.token instanceof s.ExclamationMarkSymbolToken;){if("secret"!==(this.nextToken(),this.expect(s.IdentifierToken).value))throw new D(`Unknown field mark !${this.token.value} at ${this.token.location}`);v.secret=!0,this.nextToken()}return v}parseStruct(){const h=this.expect(s.CurlyOpenSymbolToken);this.nextToken();const A=[],T=new Set;let v=!1;for(;!v;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),v=!0},IdentifierToken:()=>{const N=this.parseField();if(T.has(N.name))throw new D(`Cannot redeclare field '${N.name}'`);T.add(N.name),A.push(N)},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const N=this.expect(s.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(N.value[0]))throw new D(`Expected a type but found ${JSON.stringify(N.value)} at ${N.location}`);A.push(new i.Spread(new i.TypeReference(N.value).at(N)).at(N))}});return new i.StructType(A).at(h)}parseType(){this.checkCannotHaveAnnotationsHere();let h=this.multiExpect({CurlyOpenSymbolToken:()=>this.parseStruct(),EnumKeywordToken:()=>this.parseEnum(),IdentifierToken:A=>{if(this.nextToken(),!/[A-Z]/u.test(A.value[0]))throw new D(`Expected a type but found ${JSON.stringify(A.value)} at ${A.location}`);return new i.TypeReference(A.value).at(A)},PrimitiveTypeToken:A=>{this.nextToken();const T=_.primitiveToAstClass.get(A.value);if(T)return(new T).at(A);throw new D(`BUG! Should handle primitive ${A.value}`)}});for(;this.token instanceof s.ArraySymbolToken||this.token instanceof s.OptionalSymbolToken;)this.multiExpect({ArraySymbolToken:A=>h=new i.ArrayType(h).at(A),OptionalSymbolToken:A=>h=new i.OptionalType(h).at(A)}),this.nextToken();return h}}},7145:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.parseRestAnnotation=void 0;const i=l(1942);function c(_){var D;const C=/\{(?<name>\w+)\}/gu,w=[];let h;for(;null!==(h=C.exec(_));)(null===(D=h.groups)||void 0===D?void 0:D.name)&&w.push(h.groups.name);return w}g.parseRestAnnotation=function s(_){const D=_.split(" "),C=D[0].toUpperCase();if(!["GET","POST","PUT","DELETE","PATCH"].includes(C))throw new Error(`Unsupported method '${C}'`);let w=D[1];if(!w.startsWith("/"))throw new Error("Invalid path");let h=[];if(w.includes("?")){const[U,...fe]=w.split("?");w=U;const Q=fe.join("?");if(!/^\{\w+\}(?:&\{\w+\})*$/u.test(Q))throw new Error("Invalid querystring on path");h=c(Q)}const A=c(w),T=D.slice(2).join(" "),v=function u(_){var D;const C=/\[header (?<header>[^()<>@,;:\\"/[\]?={}\s\t]+): \{(?<name>\w+)\}\]/gu,w=new Map;let h;for(;null!==(h=C.exec(_));)(null===(D=h.groups)||void 0===D?void 0:D.header)&&h.groups.name&&w.set(h.groups.header.toLowerCase(),h.groups.name);return w}(T),N=function m(_){var D;const C=/\[body \{(?<name>\w+)\}\]/u.exec(_);return(null===(D=null==C?void 0:C.groups)||void 0===D?void 0:D.name)?C.groups.name:null}(T);return new i.RestAnnotation(C,w,A,h,v,N)}},7629:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.CheckMultipleDeclarationVisitor=void 0;const i=l(1942),u=l(3154);g.CheckMultipleDeclarationVisitor=class m extends u.Visitor{constructor(){super(...arguments),this.nameToType=new Map}visit(s){if(s instanceof i.TypeDefinition){const _=this.nameToType.get(s.name);if(_&&JSON.stringify(_)!==JSON.stringify(s.type))throw new u.SemanticError(`Type '${s.name}' at ${s.location} is defined multiple times (also at ${_.location})`);this.nameToType.set(s.name,s.type)}super.visit(s)}}},6153:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.GiveStructAndEnumNamesVisitor=void 0;const i=l(1942),u=l(3154);g.GiveStructAndEnumNamesVisitor=class m extends u.Visitor{constructor(){super(...arguments),this.path=[],this.names=new Map}visit(s){if(s instanceof i.TypeDefinition)this.path=[s.name],super.visit(s);else if(s instanceof i.ErrorNode)this.path=[`${s.name}Data`],super.visit(s);else if(s instanceof i.FunctionOperation)this.path=[s.name],super.visit(s);else if(s instanceof i.Field)this.path.push(s.name),super.visit(s),this.path.pop();else if(s instanceof i.EnumValue)this.path.push(s.value),super.visit(s),this.path.pop();else if(s instanceof i.StructType||s instanceof i.EnumType){s.name=this.path.map(D=>D[0].toUpperCase()+D.slice(1)).join("");const _=this.names.get(s.name);if(_&&JSON.stringify(_.type)!==JSON.stringify(s))throw new u.SemanticError(`The name of the type '${this.path.join(".")}' at ${s.location} will conflict with '${_.path.join(".")}' at ${_.type.location}`);this.names.set(s.name,{path:[...this.path],type:s}),super.visit(s)}else super.visit(s)}}},9471:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.MatchTypeDefinitionsVisitor=void 0;const i=l(1942),u=l(3154);g.MatchTypeDefinitionsVisitor=class m extends u.Visitor{visit(s){if(s instanceof i.TypeReference){const _=this.root.typeDefinitions.find(D=>D.name===s.name);if(void 0===_)throw new u.SemanticError(`Could not find type '${s.name}' at ${s.location}`);s.type=_.type}super.visit(s)}}},4612:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.CheckDontReturnSecretVisitor=void 0;const i=l(1942),u=l(3154);g.CheckDontReturnSecretVisitor=class m extends u.Visitor{constructor(){super(...arguments),this.isInReturn=!1,this.path=[],this.visited=new Set}visit(s){if(!this.visited.has(s))if(this.visited.add(s),s instanceof i.FunctionOperation)this.isInReturn=!0,this.visited.clear(),this.path.push(`${s.name}(...)`),this.visit(s.returnType),this.path.pop(),this.isInReturn=!1;else if(s instanceof i.TypeReference)this.visit(s.type);else if(s instanceof i.Field){if(this.path.push(s.name),this.isInReturn&&s.secret)throw new u.SemanticError(`Can't return a secret value at ${this.path.join(".")} at ${s.location}`);super.visit(s),this.path.pop()}else super.visit(s)}}},4978:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.ExpandSpreadsVisitor=void 0;const i=l(1942),u=l(3154);g.ExpandSpreadsVisitor=class m extends u.Visitor{constructor(){super(...arguments),this.processed=new Set}expandSpread(s,_){const D=new Map;for(const C of _){let w;if(C instanceof i.Field)w=[C];else{const h=C.typeReference.type;if(!(h instanceof i.StructType))throw new u.SemanticError(`A spread operator can't refer to something that is not a struct, in '${C.typeReference.name}' at ${C.location}.`);this.visit(h),w=h.fields}for(const h of w){const A=D.get(h.name);A?s[A]=h:(D.set(h.name,s.length),s.push(h))}}}visit(s){if(s instanceof i.StructType){if(this.processed.has(s))return;this.processed.add(s)}super.visit(s),s instanceof i.StructType?(this.expandSpread(s.fields,s.fieldsAndSpreads),s.fieldsAndSpreads=[]):s instanceof i.FunctionOperation&&(this.expandSpread(s.args,s.fieldsAndSpreads),s.fieldsAndSpreads=[])}}},9866:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.CheckEmptyStructOrEnumVisitor=void 0;const i=l(1942),u=l(3154);g.CheckEmptyStructOrEnumVisitor=class m extends u.Visitor{visit(s){if(super.visit(s),s instanceof i.EnumType&&0===s.values.length)throw new u.SemanticError(`Enum '${s.name}' at ${s.location} is empty`);if(s instanceof i.StructType&&0===s.fields.length)throw new u.SemanticError(`Struct '${s.name}' at ${s.location} is empty`)}}},4647:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.ValidateRecursiveTypes=void 0;const i=l(1942),u=l(3154);g.ValidateRecursiveTypes=class m extends u.Visitor{visit(s){if(super.visit(s),s instanceof i.TypeDefinition&&this.isRecursiveType(s,s.type)){if(!(s.type instanceof i.StructType||s.type instanceof i.EnumType))throw new u.SemanticError(`Type '${s.name}' at ${s.location} is recursive but is not an struct`);if(this.isInfinitelyRecursiveType(s,s.type))throw new u.SemanticError(`Type '${s.name}' at ${s.location} is infinitely recursive`)}}isRecursiveType(s,_){return _ instanceof i.TypeReference?s.name===_.name:_ instanceof i.ArrayType||_ instanceof i.OptionalType?this.isRecursiveType(s,_.base):_ instanceof i.StructType?_.fields.some(D=>this.isRecursiveType(s,D.type)):_ instanceof i.EnumType&&_.values.some(D=>D.struct&&this.isRecursiveType(s,D.struct))}isInfinitelyRecursiveType(s,_){return _ instanceof i.TypeReference?_.name===s.name:_ instanceof i.StructType?_.fields.some(D=>this.isInfinitelyRecursiveType(s,D.type)):_ instanceof i.EnumType&&_.values.every(D=>D.struct&&this.isInfinitelyRecursiveType(s,D.struct))}}},2060:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.CollectStructAndEnumTypesVisitor=void 0;const i=l(1942),u=l(3154);g.CollectStructAndEnumTypesVisitor=class m extends u.Visitor{visit(s){super.visit(s),s instanceof i.StructType?this.root.structTypes.push(s):s instanceof i.EnumType&&this.root.enumTypes.push(s)}}},4212:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.ValidateAnnotationsVisitor=void 0;const i=l(1942),u=l(3154);function c(_){return _ instanceof i.TypeReference?c(_.type):_}g.ValidateAnnotationsVisitor=class s extends u.Visitor{visit(D){if(D instanceof i.EnumValue){for(const C of D.annotations)if(!(C instanceof i.DescriptionAnnotation))throw new u.SemanticError(`Cannot have @${C.constructor.name.replace("Annotation","").toLowerCase()} at ${C.location}`)}else if(D instanceof i.TypeDefinition){for(const C of D.annotations)if(!(C instanceof i.DescriptionAnnotation))throw new u.SemanticError(`Cannot have @${C.constructor.name.replace("Annotation","").toLowerCase()} at ${C.location}`)}else if(D instanceof i.Field){for(const C of D.annotations)if(!(C instanceof i.DescriptionAnnotation))throw new u.SemanticError(`Cannot have @${C.constructor.name.replace("Annotation","").toLowerCase()} at ${C.location}`)}else if(D instanceof i.FunctionOperation)for(const C of D.annotations)if(!(C instanceof i.DescriptionAnnotation))if(C instanceof i.ThrowsAnnotation){if(!this.root.errors.some(w=>w.name===C.error))throw new u.SemanticError(`Unknown error type '${C.error}' at ${C.location}`)}else if(C instanceof i.RestAnnotation){const w=[...C.pathVariables,...C.queryVariables,...C.headers.values()];if(w.length!==new Set(w).size)throw new u.SemanticError(`Arguments must appear only once for rest annotation at ${C.location}`);for(const h of w){const A=D.args.find(v=>v.name===h);if(!A)throw new u.SemanticError(`Argument '${h}' not found at ${C.location}`);if(C.pathVariables.includes(h)&&A.type instanceof i.OptionalType)throw new u.SemanticError(`The path argument '${h}' can't be nullable at ${C.location}`);if(!((_=c(A.type instanceof i.OptionalType?A.type.base:A.type))instanceof i.BoolPrimitiveType||_ instanceof i.IntPrimitiveType||_ instanceof i.UIntPrimitiveType||_ instanceof i.BigIntPrimitiveType||_ instanceof i.FloatPrimitiveType||_ instanceof i.StringPrimitiveType||_ instanceof i.DatePrimitiveType||_ instanceof i.DateTimePrimitiveType||_ instanceof i.MoneyPrimitiveType||_ instanceof i.CpfPrimitiveType||_ instanceof i.CnpjPrimitiveType||_ instanceof i.UuidPrimitiveType||_ instanceof i.HexPrimitiveType||_ instanceof i.Base64PrimitiveType||_ instanceof i.EnumType))throw new u.SemanticError(`Argument '${h}' can't have type '${A.type.name}' for rest annotation at ${C.location}`)}for(const h of D.args){if(!w.includes(h.name)&&C.bodyVariable!==h.name)throw new u.SemanticError(`Argument '${h.name}' is missing from the rest annotation at ${C.location}`);const A=[...C.pathVariables,...C.queryVariables];if("GET"===C.method&&A.includes(h.name)&&h.secret)throw new u.SemanticError(`Argument marked as secret cannot be used in the path or query parts of a GET endpoint at ${C.location}`)}if("GET"===C.method&&D.returnType instanceof i.VoidPrimitiveType)throw new u.SemanticError(`A GET rest endpoint must return something at ${C.location}`)}else if(!(C instanceof i.HiddenAnnotation))throw new u.SemanticError(`Cannot have @${C.constructor.name.replace("Annotation","").toLowerCase()} at ${C.location}`);var _}}},6088:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.analyse=void 0;const i=l(1942),u=l(7629),m=l(6153),c=l(9471),s=l(4612),_=l(4978),D=l(9866),C=l(4647),w=l(2060),h=l(4212);g.analyse=function A(T){T.errors.some(v=>"Fatal"===v.name)||T.errors.push(new i.ErrorNode("Fatal",new i.VoidPrimitiveType)),new u.CheckMultipleDeclarationVisitor(T).process(),new m.GiveStructAndEnumNamesVisitor(T).process(),new c.MatchTypeDefinitionsVisitor(T).process(),new s.CheckDontReturnSecretVisitor(T).process(),new _.ExpandSpreadsVisitor(T).process(),new D.CheckEmptyStructOrEnumVisitor(T).process(),new C.ValidateRecursiveTypes(T).process(),new w.CollectStructAndEnumTypesVisitor(T).process(),new h.ValidateAnnotationsVisitor(T).process()}},3154:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.Visitor=g.SemanticError=void 0;const i=l(1942);class u extends Error{}g.SemanticError=u,g.Visitor=class m{constructor(s){this.root=s}process(){for(const s of this.root.errors)this.visit(s);for(const s of this.root.typeDefinitions)this.visit(s);for(const s of this.root.operations)this.visit(s)}visit(s){if(s instanceof i.FunctionOperation){for(const _ of s.args)this.visit(_);for(const _ of s.fieldsAndSpreads)this.visit(_);this.visit(s.returnType)}else if(s instanceof i.Field||s instanceof i.TypeDefinition)this.visit(s.type);else if(s instanceof i.StructType){for(const _ of s.fields)this.visit(_);for(const _ of s.fieldsAndSpreads)this.visit(_)}else if(s instanceof i.EnumType)for(const _ of s.values)this.visit(_);else s instanceof i.EnumValue?s.struct&&this.visit(s.struct):s instanceof i.ArrayType||s instanceof i.OptionalType?this.visit(s.base):s instanceof i.ErrorNode?this.visit(s.dataType):s instanceof i.Spread&&this.visit(s.typeReference)}}},9037:(je,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.PrimitiveTypeToken=g.FalseKeywordToken=g.TrueKeywordToken=g.ErrorKeywordToken=g.FnKeywordToken=g.EnumKeywordToken=g.TypeKeywordToken=g.ImportKeywordToken=g.AnnotationToken=g.SpreadSymbolToken=g.CommaSymbolToken=g.ArraySymbolToken=g.OptionalSymbolToken=g.ColonSymbolToken=g.ParensCloseSymbolToken=g.ParensOpenSymbolToken=g.CurlyCloseSymbolToken=g.CurlyOpenSymbolToken=g.ExclamationMarkSymbolToken=g.EqualSymbolToken=g.StringLiteralToken=g.IdentifierToken=g.Token=g.TokenLocation=void 0;class l{constructor(){this.filename="?",this.line=0,this.column=0}toString(){return`${this.filename}:${this.line}:${this.column}`}}g.TokenLocation=l;class i{constructor(Ye=""){this.value=Ye,this.location=new l,Object.defineProperty(this,"location",{enumerable:!1})}maybeAsIdentifier(){return this}toString(){const Ye=this.constructor.name.replace("Token","");return""===this.value?Ye:`${Ye}(${JSON.stringify(this.value)})`}}g.Token=i;class u extends i{}g.IdentifierToken=u,g.StringLiteralToken=class m extends i{},g.EqualSymbolToken=class c extends i{},g.ExclamationMarkSymbolToken=class s extends i{},g.CurlyOpenSymbolToken=class _ extends i{},g.CurlyCloseSymbolToken=class D extends i{},g.ParensOpenSymbolToken=class C extends i{},g.ParensCloseSymbolToken=class w extends i{},g.ColonSymbolToken=class h extends i{},g.OptionalSymbolToken=class A extends i{},g.ArraySymbolToken=class T extends i{},g.CommaSymbolToken=class v extends i{},g.SpreadSymbolToken=class N extends i{},g.AnnotationToken=class U extends i{},g.ImportKeywordToken=class fe extends i{maybeAsIdentifier(){return new u("import")}},g.TypeKeywordToken=class Q extends i{maybeAsIdentifier(){return new u("type")}},g.EnumKeywordToken=class he extends i{maybeAsIdentifier(){return new u("enum")}},g.FnKeywordToken=class Re extends i{maybeAsIdentifier(){return new u("fn")}},g.ErrorKeywordToken=class _e extends i{maybeAsIdentifier(){return new u("error")}},g.TrueKeywordToken=class be extends i{maybeAsIdentifier(){return new u("true")}},g.FalseKeywordToken=class q extends i{maybeAsIdentifier(){return new u("false")}},g.PrimitiveTypeToken=class Ce extends i{maybeAsIdentifier(){return new u(this.value)}}},6569:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.primitiveToAstClass=void 0;const i=l(1942);g.primitiveToAstClass=new Map,g.primitiveToAstClass.set("string",i.StringPrimitiveType),g.primitiveToAstClass.set("int",i.IntPrimitiveType),g.primitiveToAstClass.set("uint",i.UIntPrimitiveType),g.primitiveToAstClass.set("date",i.DatePrimitiveType),g.primitiveToAstClass.set("datetime",i.DateTimePrimitiveType),g.primitiveToAstClass.set("float",i.FloatPrimitiveType),g.primitiveToAstClass.set("bigint",i.BigIntPrimitiveType),g.primitiveToAstClass.set("bool",i.BoolPrimitiveType),g.primitiveToAstClass.set("bytes",i.BytesPrimitiveType),g.primitiveToAstClass.set("money",i.MoneyPrimitiveType),g.primitiveToAstClass.set("cpf",i.CpfPrimitiveType),g.primitiveToAstClass.set("cnpj",i.CnpjPrimitiveType),g.primitiveToAstClass.set("email",i.EmailPrimitiveType),g.primitiveToAstClass.set("html",i.HtmlPrimitiveType),g.primitiveToAstClass.set("url",i.UrlPrimitiveType),g.primitiveToAstClass.set("uuid",i.UuidPrimitiveType),g.primitiveToAstClass.set("hex",i.HexPrimitiveType),g.primitiveToAstClass.set("base64",i.Base64PrimitiveType),g.primitiveToAstClass.set("xml",i.XmlPrimitiveType),g.primitiveToAstClass.set("json",i.JsonPrimitiveType),g.primitiveToAstClass.set("void",i.VoidPrimitiveType)},5041:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.AppComponent=void 0;const i=l(655),u=l(3075),m=l(7179),c=l(1823),s=l(2863),_=l(7402),D=l(7295),C=l(2911),w=l(4327),h=(0,i.__importStar)(l(5e3)),A=(0,i.__importStar)(l(6395)),T=(0,i.__importStar)(l(2313)),v=(0,i.__importStar)(l(5245)),N=(0,i.__importStar)(l(107)),U=(0,i.__importStar)(l(2253)),fe=(0,i.__importStar)(l(9808)),Q=(0,i.__importStar)(l(3251)),he=(0,i.__importStar)(l(5585)),Re=(0,i.__importStar)(l(7423)),_e=(0,i.__importStar)(l(7238)),be=(0,i.__importStar)(l(4264)),q=(0,i.__importStar)(l(7822)),Ce=(0,i.__importStar)(l(2181));function Fe(me,Je){1&me&&(h.\u0275\u0275elementContainerStart(0),h.\u0275\u0275text(1,"Editor Avan\xe7ado"),h.\u0275\u0275elementContainerEnd())}function Ye(me,Je){if(1&me&&(h.\u0275\u0275elementContainerStart(0),h.\u0275\u0275elementStart(1,"span",20),h.\u0275\u0275text(2),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementContainerEnd()),2&me){const ve=h.\u0275\u0275nextContext(2).$implicit;h.\u0275\u0275advance(2),h.\u0275\u0275textInterpolate1("\u25b6\xa0",ve.function,"")}}function st(me,Je){if(1&me){const ve=h.\u0275\u0275getCurrentView();h.\u0275\u0275elementStart(0,"span",17),h.\u0275\u0275template(1,Fe,2,0,"ng-container",18),h.\u0275\u0275template(2,Ye,3,1,"ng-container",18),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(3,"button",19),h.\u0275\u0275listener("click",function(){h.\u0275\u0275restoreView(ve);const ct=h.\u0275\u0275nextContext().$implicit;return h.\u0275\u0275nextContext(2).closeTab(ct)}),h.\u0275\u0275elementStart(4,"mat-icon"),h.\u0275\u0275text(5,"close"),h.\u0275\u0275elementEnd()()}if(2&me){const ve=h.\u0275\u0275nextContext().$implicit;h.\u0275\u0275property("ngSwitch",ve.type),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngSwitchCase","advanced"),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngSwitchCase","simple")}}function $e(me,Je){1&me&&(h.\u0275\u0275elementContainerStart(0),h.\u0275\u0275element(1,"app-tab-editor"),h.\u0275\u0275elementContainerEnd())}function de(me,Je){if(1&me&&(h.\u0275\u0275elementContainerStart(0),h.\u0275\u0275element(1,"app-simple-call",21),h.\u0275\u0275elementContainerEnd()),2&me){const ve=h.\u0275\u0275nextContext().$implicit;h.\u0275\u0275advance(1),h.\u0275\u0275property("fn",ve.function)}}function Pe(me,Je){if(1&me&&(h.\u0275\u0275elementStart(0,"mat-tab"),h.\u0275\u0275template(1,st,6,3,"ng-template",16),h.\u0275\u0275elementContainerStart(2,17),h.\u0275\u0275template(3,$e,2,0,"ng-container",18),h.\u0275\u0275template(4,de,2,1,"ng-container",18),h.\u0275\u0275elementContainerEnd(),h.\u0275\u0275elementEnd()),2&me){const ve=Je.$implicit;h.\u0275\u0275advance(2),h.\u0275\u0275property("ngSwitch",ve.type),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngSwitchCase","advanced"),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngSwitchCase","simple")}}function z(me,Je){if(1&me){const ve=h.\u0275\u0275getCurrentView();h.\u0275\u0275elementStart(0,"button",22),h.\u0275\u0275listener("click",function(){return h.\u0275\u0275restoreView(ve),h.\u0275\u0275nextContext(2).addAdvancedTab()}),h.\u0275\u0275elementStart(1,"mat-icon"),h.\u0275\u0275text(2,"add_circle"),h.\u0275\u0275elementEnd()()}}function ge(me,Je){if(1&me&&(h.\u0275\u0275elementStart(0,"button",23)(1,"mat-icon"),h.\u0275\u0275text(2,"download"),h.\u0275\u0275elementEnd()()),2&me){h.\u0275\u0275nextContext(2);const ve=h.\u0275\u0275reference(5);h.\u0275\u0275property("matMenuTriggerFor",ve)}}function ie(me,Je){if(1&me){const ve=h.\u0275\u0275getCurrentView();h.\u0275\u0275elementStart(0,"mat-tab-group",11),h.\u0275\u0275listener("selectedIndexChange",function(ct){return h.\u0275\u0275restoreView(ve),h.\u0275\u0275nextContext().selected.setValue(ct)}),h.\u0275\u0275elementStart(1,"mat-tab",12)(2,"app-tab-home",13),h.\u0275\u0275listener("runFunction",function(ct){return h.\u0275\u0275restoreView(ve),h.\u0275\u0275nextContext().addSimpleTab(ct)}),h.\u0275\u0275elementEnd()(),h.\u0275\u0275template(3,Pe,5,3,"mat-tab",14),h.\u0275\u0275elementStart(4,"mat-tab",15),h.\u0275\u0275template(5,z,3,0,"ng-template",16),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(6,"mat-tab",15),h.\u0275\u0275template(7,ge,3,1,"ng-template",16),h.\u0275\u0275elementEnd()()}if(2&me){const ve=h.\u0275\u0275nextContext();h.\u0275\u0275property("selectedIndex",ve.selected.value),h.\u0275\u0275advance(3),h.\u0275\u0275property("ngForOf",ve.tabs)}}class xe{constructor(Je,ve,ze){this.sdkgen=Je,this.domSanitizer=ve,this.matIconRegistry=ze,this.selected=new u.FormControl(0),this.tabs=[{id:0,type:"advanced"}],this.tabIndex=1;for(const ct of["typescript","dot-net","kotlin","swift","dart"])this.matIconRegistry.addSvgIcon(ct,this.domSanitizer.bypassSecurityTrustResourceUrl(`assets/${ct}.svg`))}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(Je=>{this.state=null!=Je?Je:void 0})}ngOnDestroy(){var Je;null===(Je=this.state$)||void 0===Je||Je.unsubscribe()}addSimpleTab(Je){this.tabs.push({id:this.tabIndex++,function:Je,type:"simple"}),this.selected.setValue(this.tabs.length)}addAdvancedTab(){this.tabs.push({id:this.tabIndex++,type:"advanced"}),this.selected.setValue(this.tabs.length)}closeTab(Je){this.tabs.splice(this.tabs.indexOf(Je),1),this.selected.setValue(0)}downloadTarget(Je){if(!this.state)return;let ve,ze;switch(Je){case"typescript_nodeserver":ve=(0,C.generateNodeServerSource)(this.state.astRoot),ze="node-server.ts";break;case"typescript_nodeclient":ve=(0,C.generateNodeClientSource)(this.state.astRoot),ze="node-client.ts";break;case"typescript_web":ve=(0,C.generateBrowserClientSource)(this.state.astRoot),ze="web-client.ts";break;case"typescript_interfaces":ve=(0,C.generateTypescriptInterfaces)(this.state.astRoot),ze="interfaces.ts";break;case"flutter":ve=(0,c.generateDartClientSource)(this.state.astRoot),ze="flutter-client.dart";break;case"csharp_server":ve=(0,m.generateCSharpServerSource)(this.state.astRoot),ze="csharp-server.cs";break;case"fsharp_server":ve=(0,s.generateFSharpServerSource)(this.state.astRoot),ze="fsharp-server.fs";break;case"kotlin_android":ve=(0,_.generateAndroidClientSource)(this.state.astRoot,!0),ze="android-client.kt";break;case"kotlin_android_without_callbacks":ve=(0,_.generateAndroidClientSource)(this.state.astRoot,!1),ze="android-client-no-callbacks.kt";break;case"swift_ios":ve=(0,D.generateSwiftClientSource)(this.state.astRoot,!1),ze="ios-client.swift";break;case"rxswift_ios":ve=(0,D.generateSwiftClientSource)(this.state.astRoot,!0),ze="ios-client-rx.swift"}(0,w.saveAs)(new Blob([ve],{type:"application/octet-stream"}),ze)}}g.AppComponent=xe,xe.\u0275fac=function(Je){return new(Je||xe)(h.\u0275\u0275directiveInject(A.SdkgenService),h.\u0275\u0275directiveInject(T.DomSanitizer),h.\u0275\u0275directiveInject(v.MatIconRegistry))},xe.\u0275cmp=h.\u0275\u0275defineComponent({type:xe,selectors:[["app-root"]],decls:46,vars:3,consts:[[2,"width","0","height","0","opacity","0","display","block"],["id","main-tabs","animationDuration","150ms",3,"selectedIndex","selectedIndexChange",4,"ngIf"],["downloadMenu","matMenu"],["id","download-menu-size-flow"],["mat-menu-item","","disabled",""],["mat-menu-item","",3,"click"],["svgIcon","typescript"],["svgIcon","dart"],["svgIcon","kotlin"],["svgIcon","swift"],["svgIcon","dot-net"],["id","main-tabs","animationDuration","150ms",3,"selectedIndex","selectedIndexChange"],["label","Documenta\xe7\xe3o"],[3,"runFunction"],[4,"ngFor","ngForOf"],["disabled",""],["mat-tab-label",""],[3,"ngSwitch"],[4,"ngSwitchCase"],["mat-icon-button","","matTooltip","Fechar aba",3,"click"],[1,"mono","tt-none"],[3,"fn"],["mat-icon-button","","matTooltip","Nova aba de editor avan\xe7ado",3,"click"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(Je,ve){1&Je&&(h.\u0275\u0275element(0,"ngx-monaco-editor",0)(1,"app-tab-nav"),h.\u0275\u0275template(2,ie,8,2,"mat-tab-group",1),h.\u0275\u0275pipe(3,"async"),h.\u0275\u0275elementStart(4,"mat-menu",null,2),h.\u0275\u0275element(6,"div",3),h.\u0275\u0275elementStart(7,"button",4),h.\u0275\u0275text(8,"Cliente"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(9,"button",5),h.\u0275\u0275listener("click",function(){return ve.downloadTarget("typescript_nodeclient")}),h.\u0275\u0275element(10,"mat-icon",6),h.\u0275\u0275text(11,"Node.js"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(12,"button",5),h.\u0275\u0275listener("click",function(){return ve.downloadTarget("typescript_web")}),h.\u0275\u0275element(13,"mat-icon",6),h.\u0275\u0275text(14,"Web"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(15,"button",5),h.\u0275\u0275listener("click",function(){return ve.downloadTarget("flutter")}),h.\u0275\u0275element(16,"mat-icon",7),h.\u0275\u0275text(17,"Flutter"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(18,"button",5),h.\u0275\u0275listener("click",function(){return ve.downloadTarget("kotlin_android")}),h.\u0275\u0275element(19,"mat-icon",8),h.\u0275\u0275text(20,"Android"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(21,"button",5),h.\u0275\u0275listener("click",function(){return ve.downloadTarget("kotlin_android_without_callbacks")}),h.\u0275\u0275element(22,"mat-icon",8),h.\u0275\u0275text(23,"Android (sem callbacks)"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(24,"button",5),h.\u0275\u0275listener("click",function(){return ve.downloadTarget("swift_ios")}),h.\u0275\u0275element(25,"mat-icon",9),h.\u0275\u0275text(26,"iOS"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(27,"button",5),h.\u0275\u0275listener("click",function(){return ve.downloadTarget("rxswift_ios")}),h.\u0275\u0275element(28,"mat-icon",9),h.\u0275\u0275text(29,"iOS (Rx)"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(30,"button",4),h.\u0275\u0275text(31,"Servidor"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(32,"button",5),h.\u0275\u0275listener("click",function(){return ve.downloadTarget("typescript_nodeserver")}),h.\u0275\u0275element(33,"mat-icon",6),h.\u0275\u0275text(34,"Node.js"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(35,"button",5),h.\u0275\u0275listener("click",function(){return ve.downloadTarget("csharp_server")}),h.\u0275\u0275element(36,"mat-icon",10),h.\u0275\u0275text(37,"C#"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(38,"button",5),h.\u0275\u0275listener("click",function(){return ve.downloadTarget("fsharp_server")}),h.\u0275\u0275element(39,"mat-icon",10),h.\u0275\u0275text(40,"F#"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(41,"button",4),h.\u0275\u0275text(42,"Outros"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(43,"button",5),h.\u0275\u0275listener("click",function(){return ve.downloadTarget("typescript_interfaces")}),h.\u0275\u0275element(44,"mat-icon",6),h.\u0275\u0275text(45,"Interfaces"),h.\u0275\u0275elementEnd()()),2&Je&&(h.\u0275\u0275advance(2),h.\u0275\u0275property("ngIf",h.\u0275\u0275pipeBind1(3,1,ve.sdkgen.state$)))},directives:[N.MonacoEditorComponent,U.TabNavComponent,fe.NgIf,Q.MatTabGroup,Q.MatTab,he.TabHomeComponent,fe.NgForOf,Q.MatTabLabel,fe.NgSwitch,fe.NgSwitchCase,Re.MatButton,_e.MatTooltip,v.MatIcon,be.TabEditorComponent,q.SimpleCallComponent,Ce.MatMenuTrigger,Ce.MatMenu,Ce.MatMenuItem],pipes:[fe.AsyncPipe],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%} #main-tabs>.mat-tab-header .mat-tab-label{text-transform:uppercase;-webkit-user-select:none;user-select:none} #main-tabs>.mat-tab-header .mat-tab-label.mat-ripple:not(#mat-tab-label-0-0){padding-right:0} #main-tabs>.mat-tab-header .mat-tab-label.mat-ripple:not(#mat-tab-label-0-0) button{border-radius:0;display:inline-block;margin-left:10px} #main-tabs>.mat-tab-header .mat-tab-labels .mat-tab-label:nth-last-child(-n+2){min-width:0;padding:0 12px;color:unset;opacity:unset} #main-tabs>.mat-tab-header .mat-tab-labels .mat-tab-label:nth-last-child(-n+2) button{margin-left:0!important} #main-tabs>.mat-tab-header .mat-tab-labels .mat-tab-label:last-child{margin-left:auto} #main-tabs>.mat-tab-header .mat-tab-labels .mat-tab-label:last-child button{padding:0 5px!important;display:block;box-sizing:content-box;margin-right:5px!important} #download-menu-size-flow{width:185px;display:block;max-width:90vw}"]})},6747:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.AppModule=void 0;const i=l(655),u=l(520),m=l(3075),c=l(7423),s=l(9417),_=l(508),D=l(8966),C=l(5245),w=l(2181),h=l(2075),A=l(3251),T=l(7238),v=l(2313),N=l(6360),U=l(107),fe=l(1430),Q=l(5109),he=l(2290),Re=l(5041),_e=(0,i.__importStar)(l(5e3));(0,i.__importStar)(l(2290));class q{}g.AppModule=q,q.\u0275fac=function(Fe){return new(Fe||q)},q.\u0275mod=_e.\u0275\u0275defineNgModule({type:q,bootstrap:[Re.AppComponent]}),q.\u0275inj=_e.\u0275\u0275defineInjector({providers:[{provide:U.MONACO_PATH,useValue:"assets/vs"}],imports:[[v.BrowserModule,m.FormsModule,m.ReactiveFormsModule,U.MonacoEditorModule,N.BrowserAnimationsModule,Q.NgxJsonViewerModule,he.ToastrModule.forRoot(),fe.AngularSplitModule,u.HttpClientModule,c.MatButtonModule,s.MatChipsModule,D.MatDialogModule,C.MatIconModule,w.MatMenuModule,_.MatRippleModule,h.MatTableModule,A.MatTabsModule,T.MatTooltipModule]]})},8495:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.ConsoleComponent=void 0;const i=l(655),u=l(9972),m=(0,i.__importStar)(l(5e3)),c=(0,i.__importStar)(l(7423)),s=(0,i.__importStar)(l(5245)),_=(0,i.__importStar)(l(9808)),D=(0,i.__importStar)(l(5109));function C(N,U){1&N&&(m.\u0275\u0275elementContainerStart(0),m.\u0275\u0275text(1,"info_outline"),m.\u0275\u0275elementContainerEnd())}function w(N,U){1&N&&(m.\u0275\u0275elementContainerStart(0),m.\u0275\u0275text(1,"error"),m.\u0275\u0275elementContainerEnd())}function h(N,U){1&N&&(m.\u0275\u0275elementContainerStart(0),m.\u0275\u0275text(1,"public"),m.\u0275\u0275elementContainerEnd())}function A(N,U){if(1&N&&m.\u0275\u0275element(0,"ngx-json-viewer",6),2&N){const fe=m.\u0275\u0275nextContext().$implicit;m.\u0275\u0275property("json",fe.details)("expanded",!1)}}function T(N,U){if(1&N&&(m.\u0275\u0275elementStart(0,"li",2)(1,"mat-icon",3),m.\u0275\u0275template(2,C,2,0,"ng-container",4),m.\u0275\u0275template(3,w,2,0,"ng-container",4),m.\u0275\u0275template(4,h,2,0,"ng-container",4),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(5,"span"),m.\u0275\u0275text(6),m.\u0275\u0275elementEnd(),m.\u0275\u0275template(7,A,1,2,"ngx-json-viewer",5),m.\u0275\u0275elementEnd()),2&N){const fe=U.$implicit,Q=m.\u0275\u0275nextContext();m.\u0275\u0275property("ngClass",fe.type),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngSwitch",fe.type)("ngClass",fe.type),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngSwitchCase",Q.itemTypes.INFO),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngSwitchCase",Q.itemTypes.ERROR),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngSwitchCase",Q.itemTypes.NETWORK),m.\u0275\u0275advance(2),m.\u0275\u0275textInterpolate(fe.message),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngIf",fe.details)}}class v{constructor(){this.itemTypes=u.ConsoleItemType,this.items=[]}}g.ConsoleComponent=v,v.\u0275fac=function(U){return new(U||v)},v.\u0275cmp=m.\u0275\u0275defineComponent({type:v,selectors:[["app-console"]],inputs:{items:"items"},decls:9,vars:1,consts:[["mat-icon-button","",3,"click"],["class","console-item",3,"ngClass",4,"ngFor","ngForOf"],[1,"console-item",3,"ngClass"],[3,"ngSwitch","ngClass"],[4,"ngSwitchCase"],[3,"json","expanded",4,"ngIf"],[3,"json","expanded"]],template:function(U,fe){1&U&&(m.\u0275\u0275elementStart(0,"header")(1,"strong"),m.\u0275\u0275text(2,"CONSOLE"),m.\u0275\u0275elementEnd(),m.\u0275\u0275element(3,"s"),m.\u0275\u0275elementStart(4,"button",0),m.\u0275\u0275listener("click",function(){return fe.items.splice(0,fe.items.length)}),m.\u0275\u0275elementStart(5,"mat-icon"),m.\u0275\u0275text(6,"delete"),m.\u0275\u0275elementEnd()()(),m.\u0275\u0275elementStart(7,"ul"),m.\u0275\u0275template(8,T,8,8,"li",1),m.\u0275\u0275elementEnd()),2&U&&(m.\u0275\u0275advance(8),m.\u0275\u0275property("ngForOf",fe.items))},directives:[c.MatButton,s.MatIcon,_.NgForOf,_.NgClass,_.NgSwitch,_.NgSwitchCase,_.NgIf,D.NgxJsonViewerComponent],styles:["[_nghost-%COMP%]{display:block;height:100%;text-align:left;overflow-y:scroll;box-sizing:border-box}header[_ngcontent-%COMP%]{display:flex;flex-direction:row;position:sticky;top:0;background:#1E1E1E;border-bottom:1px solid #444444;padding:5px 0;z-index:2}header[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin:0 10px;text-transform:uppercase;font-weight:200;color:#e7e7e7;border-bottom:1px solid #e7e7e7;line-height:27px;font-size:11pt;align-self:center}header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:0 10px}ul[_ngcontent-%COMP%]{padding:0;margin:0;box-sizing:border-box}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{list-style:none;display:block;width:100%;height:auto;padding:5px 10px;font-size:1rem;border-bottom:1px solid #444444;background-color:#111;word-break:break-all;box-sizing:border-box;word-wrap:break-word;font-family:monospace}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline;vertical-align:text-bottom}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{height:1rem;width:1rem;font-size:1rem;vertical-align:sub;margin-right:7.5px;-webkit-user-select:none;user-select:none}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.info[_ngcontent-%COMP%]{color:#b9b9bb}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.error[_ngcontent-%COMP%]{color:#ff3b6b}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.network_recv[_ngcontent-%COMP%], ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.network_send[_ngcontent-%COMP%]{color:#939395}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#0000004d}ul[_ngcontent-%COMP%] > li.error[_ngcontent-%COMP%]{color:#e69fa3;background-color:#4b2f36}"]})},9972:(je,g)=>{"use strict";var i;Object.defineProperty(g,"__esModule",{value:!0}),g.ConsoleItemType=void 0,(i=g.ConsoleItemType||(g.ConsoleItemType={})).INFO="info",i.ERROR="error",i.NETWORK="network"},4814:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.DialogAboutComponent=void 0;const i=l(655),u=l(4147),m=(0,i.__importStar)(l(5e3)),c=(0,i.__importStar)(l(8966)),s=(0,i.__importStar)(l(9417)),_=(0,i.__importStar)(l(7423)),D=(0,i.__importStar)(l(5245)),C=(0,i.__importStar)(l(9808));function w(A,T){if(1&A&&(m.\u0275\u0275elementStart(0,"a",6)(1,"mat-chip",2)(2,"span",7),m.\u0275\u0275text(3),m.\u0275\u0275elementEnd(),m.\u0275\u0275element(4,"s"),m.\u0275\u0275elementStart(5,"span",8),m.\u0275\u0275text(6),m.\u0275\u0275elementEnd()()()),2&A){const v=T.$implicit;m.\u0275\u0275property("href","https://www.npmjs.com/package/"+v[0]+"/v/"+v[1],m.\u0275\u0275sanitizeUrl),m.\u0275\u0275advance(1),m.\u0275\u0275property("disableRipple",!0),m.\u0275\u0275advance(2),m.\u0275\u0275textInterpolate(v[0]),m.\u0275\u0275advance(3),m.\u0275\u0275textInterpolate(v[1])}}class h{constructor(){this.version=u.version,this.dependencies=Object.entries(u.dependencies).filter(([T])=>T.startsWith("@sdkgen"))}}g.DialogAboutComponent=h,h.\u0275fac=function(T){return new(T||h)},h.\u0275cmp=m.\u0275\u0275defineComponent({type:h,selectors:[["app-dialog-about"]],decls:17,vars:5,consts:[["mat-dialog-title",""],[3,"selectable"],[3,"disableRipple"],["mat-icon-button","","mat-dialog-close","","tabindex","-1"],[1,"mat-chip-list-stacked",3,"selectable"],["target","_blank","rel","external noopener noreferrer",3,"href",4,"ngFor","ngForOf"],["target","_blank","rel","external noopener noreferrer",3,"href"],[1,"dependency-name"],[1,"dependency-version"]],template:function(T,v){1&T&&(m.\u0275\u0275elementStart(0,"header")(1,"h1",0),m.\u0275\u0275text(2,"sdkgen Playground"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(3,"mat-chip-list",1)(4,"mat-chip",2),m.\u0275\u0275text(5),m.\u0275\u0275elementEnd()(),m.\u0275\u0275element(6,"s"),m.\u0275\u0275elementStart(7,"button",3)(8,"mat-icon"),m.\u0275\u0275text(9,"close"),m.\u0275\u0275elementEnd()()(),m.\u0275\u0275elementStart(10,"p"),m.\u0275\u0275text(11,"Ferramenta para explorar e invocar APIs feitas com sdkgen."),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(12,"section")(13,"h4"),m.\u0275\u0275text(14,"Depend\xeancias"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(15,"mat-chip-list",4),m.\u0275\u0275template(16,w,7,4,"a",5),m.\u0275\u0275elementEnd()()),2&T&&(m.\u0275\u0275advance(3),m.\u0275\u0275property("selectable",!1),m.\u0275\u0275advance(1),m.\u0275\u0275property("disableRipple",!0),m.\u0275\u0275advance(1),m.\u0275\u0275textInterpolate(v.version),m.\u0275\u0275advance(10),m.\u0275\u0275property("selectable",!1),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngForOf",v.dependencies))},directives:[c.MatDialogTitle,s.MatChipList,s.MatChip,_.MatButton,c.MatDialogClose,D.MatIcon,C.NgForOf],styles:["header[_ngcontent-%COMP%]{display:flex;border-bottom:1px solid rgba(255,255,255,.2);padding-bottom:5px}header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], header[_ngcontent-%COMP%] button[_ngcontent-%COMP%], header[_ngcontent-%COMP%] mat-chip-list[_ngcontent-%COMP%]{display:inline;align-self:center}header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{display:flex;margin:0 10px 0 0}header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:20px}section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:500}section[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%}section[_ngcontent-%COMP%] .mat-chip[_ngcontent-%COMP%]{padding:0;overflow:hidden;cursor:pointer}section[_ngcontent-%COMP%] .dependency-name[_ngcontent-%COMP%]{padding:7px 12px}section[_ngcontent-%COMP%] .dependency-version[_ngcontent-%COMP%]{float:right;background:rgba(0,0,0,.15);padding:7px 12px;height:100%}"]})},4211:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.FilterPipe=void 0;const u=(0,l(655).__importStar)(l(5e3));class m{transform(s,_){if(!s)return[];if(!_)return s;const D=_.toLocaleLowerCase();return s.filter(C=>JSON.stringify(C).toLocaleLowerCase().includes(D))}}g.FilterPipe=m,m.\u0275fac=function(s){return new(s||m)},m.\u0275pipe=u.\u0275\u0275definePipe({name:"appFilter",type:m,pure:!0})},7120:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.ResponsiveService=void 0;const i=l(655),u=(0,i.__importStar)(l(5e3)),m=(0,i.__importStar)(l(5113));class c{constructor(_){this.observer=_}isBelowSm(){return this.observer.observe(["(max-width: 575px)"])}isBelowMd(){return this.observer.observe(["(max-width: 767px)"])}isBelowLg(){return this.observer.observe(["(max-width: 991px)"])}isBelowXl(){return this.observer.observe(["(max-width: 1199px)"])}}g.ResponsiveService=c,c.\u0275fac=function(_){return new(_||c)(u.\u0275\u0275inject(m.BreakpointObserver))},c.\u0275prov=u.\u0275\u0275defineInjectable({token:c,factory:c.\u0275fac,providedIn:"root"})},9435:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.getTypeDoc=g.getTypeLabels=g.getConstructorName=g.primitiveTypesExamples=g.primitiveTypes=void 0;const i=l(6676),u=l(6395);function m(_){switch(_.constructor){case i.StringPrimitiveType:return"StringPrimitiveType";case i.IntPrimitiveType:return"IntPrimitiveType";case i.UIntPrimitiveType:return"UIntPrimitiveType";case i.FloatPrimitiveType:return"FloatPrimitiveType";case i.BigIntPrimitiveType:return"BigIntPrimitiveType";case i.MoneyPrimitiveType:return"MoneyPrimitiveType";case i.DatePrimitiveType:return"DatePrimitiveType";case i.DateTimePrimitiveType:return"DateTimePrimitiveType";case i.BoolPrimitiveType:return"BoolPrimitiveType";case i.VoidPrimitiveType:return"VoidPrimitiveType";case i.CpfPrimitiveType:return"CpfPrimitiveType";case i.CnpjPrimitiveType:return"CnpjPrimitiveType";case i.EmailPrimitiveType:return"EmailPrimitiveType";case i.UrlPrimitiveType:return"UrlPrimitiveType";case i.UuidPrimitiveType:return"UuidPrimitiveType";case i.HexPrimitiveType:return"HexPrimitiveType";case i.HtmlPrimitiveType:return"HtmlPrimitiveType";case i.BytesPrimitiveType:return"BytesPrimitiveType";case i.Base64PrimitiveType:return"Base64PrimitiveType";case i.XmlPrimitiveType:return"XmlPrimitiveType";case i.JsonPrimitiveType:return"JsonPrimitiveType";case i.OptionalType:return"OptionalType";case i.EnumType:return"EnumType";case i.ArrayType:return"ArrayType";case i.StructType:return"StructType";default:return _.constructor.name}}g.primitiveTypes={StringPrimitiveType:"Um texto livre, potencialmente de m\xfaltiplas linhas, codificado como UTF-8.",IntPrimitiveType:"Um n\xfamero inteiro de 32 bits, no intervalo de -2147483648 at\xe9 2147483647.",UIntPrimitiveType:"Um n\xfamero inteiro n\xe3o negativo, no intervalo de 0 at\xe9 4294967295.",FloatPrimitiveType:"Um n\xfamero de ponto flutuante de 64 bits, similar ao double do C.",BigIntPrimitiveType:"Um n\xfamero inteiro sem limite de precis\xe3o. Na maioria das plataformas este tipo \xe9 mais custoso.",MoneyPrimitiveType:"Um n\xfamero inteiro com precis\xe3o estendida, mas perform\xe1tico. Est\xe1 no intervalo de -9007199254740991 a 9007199254740991. \xdatil para opera\xe7\xf5es financeiras",DatePrimitiveType:"Representa conceitualmente uma data do calend\xe1rio Gregoriano. Essa mesma data pode representar diferentes momento no tempo a depender da timezone. Para especificar um ponto no tempo utilize datetime.",DateTimePrimitiveType:"Representa um instante no tempo com precis\xe3o de milissegundos. Este instante ser\xe1 sempre traduzido para o fuso hor\xe1rio local do recebedor da mensagem.",BoolPrimitiveType:"Ou true ou false.",VoidPrimitiveType:"Tipo vazio, sem conte\xfado.",CpfPrimitiveType:"Similar a uma string, mas contendo um CPF v\xe1lido.",CnpjPrimitiveType:"Similar a uma string, mas contendo um CNPJ v\xe1lido.",EmailPrimitiveType:"Similar a uma string, mas contendo um e-mail v\xe1lido.",UrlPrimitiveType:"Similar a uma string, mas contendo uma URL v\xe1lida.",UuidPrimitiveType:"Similar a uma string, mas contendo um UUID v\xe1lido.",HexPrimitiveType:"Similar a uma string, mas contendo uma quantidade par de caracteres hexadecimais, \xfatil para representar bytes.",HtmlPrimitiveType:"Similar a uma string, mas contendo um HTML v\xe1lido.",BytesPrimitiveType:"Uma sequ\xeancia arbitr\xe1ria de bytes de qualquer comprimento. Pode ser utilizado para tr\xe1fego de dados bin\xe1rios.",Base64PrimitiveType:"Similar a uma string, mas necessariamente com uma codifica\xe7\xe3o Base 64 v\xe1lida.",XmlPrimitiveType:"Similar a uma string, mas contendo um XML v\xe1lido.",JsonPrimitiveType:"Um valor JSON qualquer, incluindo objetos, arrays, strings, n\xfameros e boleanos, em qualquer profundidade. Note que embora null possa aparecer dentro de um objeto ou array, o valor deste campo n\xe3o pode ser null diretamente. Para isso utilize json?."},g.primitiveTypesExamples={StringPrimitiveType:["","lorem ipsum","strings podem conter caracteres especiais \u{1f609}"],IntPrimitiveType:["0","6725082065","-3096576054"],UIntPrimitiveType:["0","1","340953460"],FloatPrimitiveType:["0.0","1.050654","-3454.6396854"],BigIntPrimitiveType:["87175082235506108544888893172310","0","1"],MoneyPrimitiveType:["100","-450954636342","121611633162977184630315"],DatePrimitiveType:["2020-01-01","1950-04-15","2194-12-31"],DateTimePrimitiveType:["2020-01-01T00:00:00.000","1950-04-15T02:11:58.892","2194-12-31T23:31:58.491"],BoolPrimitiveType:["true","false"],CpfPrimitiveType:["000.000.001-91","00000000191","000.000.002-72"],CnpjPrimitiveType:["00.000.000/0001-91","00000000000191","00.000.000/0002-72"],EmailPrimitiveType:["sample@example.com","root@localhost","test+label@10.0.0.5"],UrlPrimitiveType:["https://sdkgen.github.io/","https://goo.gl/maps/gUaKGTqR8BHXfX7b7","http://jobs.cubos.io"],UuidPrimitiveType:["c12c3329-c558-4c76-9a16-0efeb2b01605","00000000-0000-0000-0000-000000000000","1d5f2ef6-0def-11ec-82a8-0242ac130003"],HexPrimitiveType:["00","6375626f73","73646b67656e20706c617967726f756e64"],HtmlPrimitiveType:["<html><body><p>sdkgen</p></body></html>","<html><h1>Sdkgen","<script> alert('Hello world!'); <\/script>"],BytesPrimitiveType:[],Base64PrimitiveType:["Y3Vib3M=","c2RrZ2Vu","c2RrZ2VuIHBsYXlncm91bmQ="],XmlPrimitiveType:["<items><item>something</item></items>","<list />",'<?xml version="1.0" encoding="UTF-8"?><resposta><![CDATA[ol\xe1 <xml>]]></resposta>'],JsonPrimitiveType:["{}",'{"sdkgen":"playground"}','{"type":"json","items":[1,2,3],"some":null}']},g.getConstructorName=m,g.getTypeLabels=function c(_){const D=[];switch(_.constructor){case i.StringPrimitiveType:case i.IntPrimitiveType:case i.UIntPrimitiveType:case i.FloatPrimitiveType:case i.BigIntPrimitiveType:case i.MoneyPrimitiveType:case i.DatePrimitiveType:case i.DateTimePrimitiveType:case i.BoolPrimitiveType:case i.VoidPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.HtmlPrimitiveType:case i.BytesPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:case i.JsonPrimitiveType:D.push("Primitivo");break;case i.OptionalType:D.push("Opcional"),D.push(...c(_.base));break;case i.TypeReference:D.push(...c(_.type));break;case i.ArrayType:D.push("Array"),D.push(...c(_.base));break;case i.EnumType:D.push("Enum");break;default:console.error("No labels for",m(_))}return D},g.getTypeDoc=function s(_){var D,C,w;switch(_.constructor){case i.StringPrimitiveType:case i.IntPrimitiveType:case i.UIntPrimitiveType:case i.FloatPrimitiveType:case i.BigIntPrimitiveType:case i.MoneyPrimitiveType:case i.DatePrimitiveType:case i.DateTimePrimitiveType:case i.BoolPrimitiveType:case i.VoidPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.HtmlPrimitiveType:case i.BytesPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:case i.JsonPrimitiveType:return{longDescription:g.primitiveTypes[m(_)],shortDescription:g.primitiveTypes[m(_)],examples:g.primitiveTypesExamples[m(_)]};case i.OptionalType:{const v=s(_.base);return Object.assign(Object.assign({},v),{longDescription:v.longDescription,shortDescription:`(opcional) ${v.shortDescription}`,examples:["null",...null!==(D=v.examples)&&void 0!==D?D:[]]})}case i.TypeReference:return s(_.type);case i.ArrayType:{const v=s(_.base);return Object.assign(Object.assign({},v),{longDescription:v.longDescription,shortDescription:`(array) ${v.shortDescription}`,examples:["[]",...null!==(w=null===(C=v.examples)||void 0===C?void 0:C.map(N=>`[${N}]`))&&void 0!==w?w:[]]})}case i.EnumType:const h=_,A=h.values.slice(0,3),T=A.map(v=>v.struct?`${v.value}: ${JSON.stringify((new u.SdkgenService).buildJsonObject(v.struct.fields),null,2)}`:v.value);return{longDescription:"enum representa um conjunto limitado de possibilidades de valores, similar as enumera\xe7\xf5es em outras linguagens.",shortDescription:`(enum) ${A.map(v=>`${v.value}${v.struct?"(\u2026)":""}`).join(", ")}${A.length>3?"\u2026":""}`,examples:T,isEnum:!0,isStruct:!0,structFields:h.values.map(v=>{var N;return{name:v.value,type:v.struct,description:null===(N=v.annotations.find(U=>U instanceof i.DescriptionAnnotation))||void 0===N?void 0:N.text,secret:!1}})};case i.StructType:return{longDescription:"",shortDescription:`(objeto complexo) ${_.fields.slice(0,3).map(v=>v.name).join(", ")}\u2026`,isStruct:!0,structFields:_.fields.map(v=>{var N;return{name:v.name,description:null===(N=v.annotations.find(U=>U instanceof i.DescriptionAnnotation))||void 0===N?void 0:N.text,type:v.type,secret:v.secret}}),examples:[JSON.stringify((new u.SdkgenService).buildJsonObject(_.fields),null,2)]};default:return{longDescription:"BUG: Unknown Type",shortDescription:"BUG: Unknown Type",examples:[]}}}},6395:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var _asyncToGenerator=__webpack_require__(8926).default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.SdkgenService=void 0;const tslib_1=__webpack_require__(655),browser_runtime_1=__webpack_require__(4539),parser_1=__webpack_require__(6676),rxjs_1=__webpack_require__(9802),i0=(0,tslib_1.__importStar)(__webpack_require__(5e3));class SdkgenService{constructor(){this.state$=new rxjs_1.BehaviorSubject(null)}buildJsonObject(je,g=new Set){const l=i=>{switch(i.constructor){case parser_1.StringPrimitiveType:return"";case parser_1.IntPrimitiveType:case parser_1.UIntPrimitiveType:case parser_1.FloatPrimitiveType:case parser_1.BigIntPrimitiveType:case parser_1.MoneyPrimitiveType:return 0;case parser_1.DatePrimitiveType:return(new Date).toJSON().substring(0,10);case parser_1.DateTimePrimitiveType:return(new Date).toJSON().substring(0,23);case parser_1.BoolPrimitiveType:return Math.random()>.5;case parser_1.VoidPrimitiveType:return null;case parser_1.CpfPrimitiveType:return"000.000.001-91";case parser_1.CnpjPrimitiveType:return"00.000.001/0001-91";case parser_1.EmailPrimitiveType:return"joao@acme.com";case parser_1.UrlPrimitiveType:return"https://www.google.com/";case parser_1.UuidPrimitiveType:return"00000000-0000-0000-0000-000000000000";case parser_1.HexPrimitiveType:return new Array(32).fill(0).map(()=>"0123456789abcdef"[Math.floor(16*Math.random())]).join("");case parser_1.HtmlPrimitiveType:return"<h1>Hello world!</h1>";case parser_1.BytesPrimitiveType:case parser_1.Base64PrimitiveType:return"0a=";case parser_1.XmlPrimitiveType:return"<xml></xml>";case parser_1.JsonPrimitiveType:return{};case parser_1.StructType:return g.has(i.name)?{}:this.buildJsonObject(i.fields,new Set([...g,i.name]));case parser_1.OptionalType:return null;case parser_1.TypeReference:return l(i.type);case parser_1.ArrayType:return[l(i.base),l(i.base),l(i.base)];case parser_1.EnumType:return i.values[0].value;default:return null}};return je.reduce((i,u)=>(i[u.name]=l(u.type),i),{})}getTypeScriptCode(je,g){return`await client.${je}(${JSON.stringify(g,null,2)});\n`}buildKotlinString(je,g=0){const l=i=>{switch(i.constructor){case parser_1.StringPrimitiveType:return'""';case parser_1.IntPrimitiveType:case parser_1.UIntPrimitiveType:case parser_1.FloatPrimitiveType:case parser_1.BigIntPrimitiveType:case parser_1.MoneyPrimitiveType:return 0;case parser_1.DatePrimitiveType:case parser_1.DateTimePrimitiveType:return"Calendar.getInstance()";case parser_1.BoolPrimitiveType:return Math.random()>.5?"true":"false";case parser_1.VoidPrimitiveType:return"null";case parser_1.CpfPrimitiveType:return'"000.000.001-91"';case parser_1.CnpjPrimitiveType:return'"00.000.001/0001-91"';case parser_1.EmailPrimitiveType:return'"joao@acme.com"';case parser_1.UrlPrimitiveType:return'"https://www.google.com/"';case parser_1.UuidPrimitiveType:return'"00000000-0000-0000-0000-000000000000"';case parser_1.HexPrimitiveType:return`"${new Array(32).fill(0).map(()=>"0123456789abcdef"[Math.floor(16*Math.random())]).join("")}"`;case parser_1.HtmlPrimitiveType:return'"<h1>Hello world!</h1>"';case parser_1.BytesPrimitiveType:case parser_1.Base64PrimitiveType:return'"0a="';case parser_1.XmlPrimitiveType:return'"<xml></xml>"';case parser_1.JsonPrimitiveType:return"json {}";case parser_1.StructType:return`${i.name}(\n${this.buildKotlinString(i.fields,g+1)}\n${" ".repeat(g+1)})`;case parser_1.OptionalType:return"null";case parser_1.TypeReference:return l(i.type);case parser_1.ArrayType:g++;const u=l(i.base);return g--,`arrayOf(\n${" ".repeat(g+2)}${u},\n${" ".repeat(g+2)}${u}\n${" ".repeat(g+1)})`;case parser_1.EnumType:return`"${i.values[0].value}"`;default:return"<>()"}};return je.map(i=>`${" ".repeat(g+1)}${l(i.type)}`).join(",\n")}getKotlinCode(je,g){return 0===g.length?`client.${je}().await();`:`client.${je}(\n${this.buildKotlinString(g)}\n).await();`}getDartCode(je,g){return'print("todo");'}getSwiftCode(je,g){return'print("todo");'}getSdkgenClient(url,ast){const errorFns=ast.errors.reduce((acc,cur)=>{function errorClass(type,base){return eval(`(\n (sup) => class ${type} extends sup {\n type = "${type}";\n message = "";\n ${base===browser_runtime_1.SdkgenErrorWithData?"data = null;":""}\n\n constructor(message${base===browser_runtime_1.SdkgenErrorWithData?", data":""}) {\n super(message${base===browser_runtime_1.SdkgenErrorWithData?", data":""});\n this.message = message;\n ${base===browser_runtime_1.SdkgenErrorWithData?"this.data = data;":""}\n this.toString = () => this.type + ": " + this.message;\n }\n }\n )`)(base)}return"string"==typeof cur?acc[cur]=errorClass(cur,browser_runtime_1.SdkgenError):acc[cur[0]]=errorClass(cur[0],browser_runtime_1.SdkgenErrorWithData),acc},{}),clientInstance=new browser_runtime_1.SdkgenHttpClient(url,ast,errorFns);return new Proxy(clientInstance,{get:(je,g)=>["baseUrl","extra","successHook","errorHook","makeRequest"].includes(g.toString())?clientInstance[g.toString()]:function(){var l=_asyncToGenerator(function*(i){return clientInstance.makeRequest(g.toString(),i)});return function(i){return l.apply(this,arguments)}}()})}}exports.SdkgenService=SdkgenService,SdkgenService.\u0275fac=function je(g){return new(g||SdkgenService)},SdkgenService.\u0275prov=i0.\u0275\u0275defineInjectable({token:SdkgenService,factory:SdkgenService.\u0275fac,providedIn:"root"})},7822:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var _asyncToGenerator=__webpack_require__(8926).default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.SimpleCallComponent=void 0;const tslib_1=__webpack_require__(655),forms_1=__webpack_require__(3075),console_types_1=__webpack_require__(9972),code_execution_1=__webpack_require__(8227),i0=(0,tslib_1.__importStar)(__webpack_require__(5e3)),i1=(0,tslib_1.__importStar)(__webpack_require__(6395)),i2=(0,tslib_1.__importStar)(__webpack_require__(1430)),i3=(0,tslib_1.__importStar)(__webpack_require__(3251)),i4=(0,tslib_1.__importStar)(__webpack_require__(7423)),i5=(0,tslib_1.__importStar)(__webpack_require__(5245)),i6=(0,tslib_1.__importStar)(__webpack_require__(107)),i7=(0,tslib_1.__importStar)(__webpack_require__(3075)),i8=(0,tslib_1.__importStar)(__webpack_require__(5109)),i9=(0,tslib_1.__importStar)(__webpack_require__(8495));class SimpleCallComponent{constructor(je){this.sdkgen=je,this.editorOptions={theme:"vs-dark",language:"json"},this.code="",this.selected=new forms_1.FormControl(0),this.consoleItems=[]}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(je=>{!je||(this.generateFunctionCode(je.astRoot,this.fn),this.client=this.sdkgen.getSdkgenClient(je.url,je.astJson))})}ngOnDestroy(){var je;null===(je=this.state$)||void 0===je||je.unsubscribe()}run(){var _this=this;return _asyncToGenerator(function*(){{const events=_this.consoleItems;eval(code_execution_1.wrapper)}const exec=_this.client[_this.fn](JSON.parse(_this.code));try{_this.response={result:yield exec}}catch(je){_this.consoleItems.push({type:console_types_1.ConsoleItemType.ERROR,message:je.toString()}),delete je.toString,_this.response={error:{type:je.type,message:je.message,data:je.data}}}finally{eval(code_execution_1.unwrap),_this.selected.setValue(1)}})()}generateFunctionCode(je,g){var l;const i=null===(l=je.operations.find(u=>u.name===g))||void 0===l?void 0:l.args;i&&(this.code=JSON.stringify(this.sdkgen.buildJsonObject(i),null,2))}}exports.SimpleCallComponent=SimpleCallComponent,SimpleCallComponent.\u0275fac=function je(g){return new(g||SimpleCallComponent)(i0.\u0275\u0275directiveInject(i1.SdkgenService))},SimpleCallComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:SimpleCallComponent,selectors:[["app-simple-call"]],inputs:{fn:"fn"},decls:12,vars:7,consts:[["direction","vertical"],["animationDuration","0ms",3,"selectedIndex","selectedIndexChange"],["label","Requisi\xe7\xe3o"],["mat-fab","",1,"run-fab",3,"click"],[3,"options","ngModel","ngModelChange"],["label","Resposta",3,"disabled"],[3,"json"],[3,"size"],[3,"items"]],template:function je(g,l){1&g&&(i0.\u0275\u0275elementStart(0,"as-split",0)(1,"as-split-area")(2,"mat-tab-group",1),i0.\u0275\u0275listener("selectedIndexChange",function(u){return l.selected.setValue(u)}),i0.\u0275\u0275elementStart(3,"mat-tab",2)(4,"button",3),i0.\u0275\u0275listener("click",function(){return l.run()}),i0.\u0275\u0275elementStart(5,"mat-icon"),i0.\u0275\u0275text(6,"play_arrow"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(7,"ngx-monaco-editor",4),i0.\u0275\u0275listener("ngModelChange",function(u){return l.code=u}),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(8,"mat-tab",5),i0.\u0275\u0275element(9,"ngx-json-viewer",6),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(10,"as-split-area",7),i0.\u0275\u0275element(11,"app-console",8),i0.\u0275\u0275elementEnd()()),2&g&&(i0.\u0275\u0275advance(2),i0.\u0275\u0275property("selectedIndex",l.selected.value),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("options",l.editorOptions)("ngModel",l.code),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("disabled",!l.response),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("json",l.response),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("size",30),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("items",l.consoleItems))},directives:[i2.SplitComponent,i2.SplitAreaDirective,i3.MatTabGroup,i3.MatTab,i4.MatButton,i5.MatIcon,i6.MonacoEditorComponent,i7.NgControlStatus,i7.NgModel,i8.NgxJsonViewerComponent,i9.ConsoleComponent],styles:["[_nghost-%COMP%]{display:block;height:100%}mat-tab-group[_ngcontent-%COMP%]{height:100%}mat-tab-group[_ngcontent-%COMP%] .mat-tab-body-wrapper{height:100%}mat-tab-group[_ngcontent-%COMP%] .mat-tab-body-content{overflow-y:hidden!important}mat-tab-group[_ngcontent-%COMP%] ngx-monaco-editor[_ngcontent-%COMP%]{display:block;height:100%}"]})},4264:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var _asyncToGenerator=__webpack_require__(8926).default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.TabEditorComponent=void 0;const tslib_1=__webpack_require__(655),typescript_generator_1=__webpack_require__(2911),console_types_1=__webpack_require__(9972),code_execution_1=__webpack_require__(8227),i0=(0,tslib_1.__importStar)(__webpack_require__(5e3)),i1=(0,tslib_1.__importStar)(__webpack_require__(6395)),i2=(0,tslib_1.__importStar)(__webpack_require__(7423)),i3=(0,tslib_1.__importStar)(__webpack_require__(5245)),i4=(0,tslib_1.__importStar)(__webpack_require__(1430)),i5=(0,tslib_1.__importStar)(__webpack_require__(107)),i6=(0,tslib_1.__importStar)(__webpack_require__(3075)),i7=(0,tslib_1.__importStar)(__webpack_require__(8495));class TabEditorComponent{constructor(je){this.sdkgen=je,this.code="",this.editorOptions={theme:"vs-dark",language:"typescript"},this.consoleItems=[{type:console_types_1.ConsoleItemType.INFO,message:"Bem-vindo! A sa\xedda dos seus testes aparecer\xe1 aqui :)"}]}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(je=>{if(!je)return;const g=`${this.patchBrowserClientSource((0,typescript_generator_1.generateBrowserClientSource)(je.astRoot))}\n\ndeclare const client: sdkgen.ApiClient;\n\n`;this.client=this.sdkgen.getSdkgenClient(je.url,je.astJson),monaco.languages.typescript.typescriptDefaults.getCompilerOptions().target=monaco.languages.typescript.ScriptTarget.ESNext,monaco.languages.typescript.typescriptDefaults.getCompilerOptions().module=monaco.languages.typescript.ModuleKind.ESNext,monaco.languages.typescript.typescriptDefaults.getDiagnosticsOptions().diagnosticCodesToIgnore=[1375];const l=monaco.editor.getModels().find(u=>u.uri.toString().endsWith("client.d.ts"));l?l.setValue(g):monaco.editor.createModel(g,"typescript",monaco.Uri.parse("ts:filename/client.d.ts"));const[i]=je.astRoot.operations;this.code=this.sdkgen.getTypeScriptCode(i.name,this.sdkgen.buildJsonObject(i.args))})}ngOnDestroy(){var je;null===(je=this.state$)||void 0===je||je.unsubscribe()}patchBrowserClientSource(je){return`declare namespace sdkgen {\n${je.substring(95,je.indexOf("const errClasses")).replace(/ extends SdkgenError/g," extends Error").replace(/ extends SdkgenHttpClient/g,"").replace(/{ return this.makeRequest\(.*$/gm,"").replace(/ {\n {8}super\(baseUrl, astJson, errClasses\);\n {4}}/g,"").replace("constructor(","\n baseUrl: string;\n extra = new Map<string, any>();\n successHook: (result: any, name: string, args: any) => void = () => undefined;\n errorHook: (result: any, name: string, args: any) => void = () => undefined;\n async makeRequest(functionName: string, args: unknown): Promise<any>;\n \nconstructor(")}\n}\n`}run(){var _this=this;return _asyncToGenerator(function*(){try{yield eval(`\n (async (client, events) => {\n ${code_execution_1.wrapper}\n ${_this.code}\n })\n `)(_this.client,_this.consoleItems).finally(()=>eval(code_execution_1.unwrap))}catch(je){_this.consoleItems.push({type:console_types_1.ConsoleItemType.ERROR,message:je.toString()})}})()}}exports.TabEditorComponent=TabEditorComponent,TabEditorComponent.\u0275fac=function je(g){return new(g||TabEditorComponent)(i0.\u0275\u0275directiveInject(i1.SdkgenService))},TabEditorComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:TabEditorComponent,selectors:[["app-tab-editor"]],decls:8,vars:4,consts:[["mat-fab","",1,"run-fab",3,"click"],["direction","vertical"],[1,"o-hidden"],[3,"options","ngModel","ngModelChange"],[3,"size"],[3,"items"]],template:function je(g,l){1&g&&(i0.\u0275\u0275elementStart(0,"button",0),i0.\u0275\u0275listener("click",function(){return l.run()}),i0.\u0275\u0275elementStart(1,"mat-icon"),i0.\u0275\u0275text(2,"play_arrow"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(3,"as-split",1)(4,"as-split-area",2)(5,"ngx-monaco-editor",3),i0.\u0275\u0275listener("ngModelChange",function(u){return l.code=u}),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(6,"as-split-area",4),i0.\u0275\u0275element(7,"app-console",5),i0.\u0275\u0275elementEnd()()),2&g&&(i0.\u0275\u0275advance(5),i0.\u0275\u0275property("options",l.editorOptions)("ngModel",l.code),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("size",30),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("items",l.consoleItems))},directives:[i2.MatButton,i3.MatIcon,i4.SplitComponent,i4.SplitAreaDirective,i5.MonacoEditorComponent,i6.NgControlStatus,i6.NgModel,i7.ConsoleComponent],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:calc(100% - 4px);margin-top:4px} .scroll-decoration{display:none}.o-hidden[_ngcontent-%COMP%]{overflow:hidden!important}"]})},5585:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.TabHomeComponent=void 0;const i=l(655),u=l(5e3),m=l(9435),c=l(5281),s=(0,i.__importStar)(l(5e3)),_=(0,i.__importStar)(l(6395)),D=(0,i.__importStar)(l(8966)),C=(0,i.__importStar)(l(7120)),w=(0,i.__importStar)(l(1430)),h=(0,i.__importStar)(l(3075)),A=(0,i.__importStar)(l(9808)),T=(0,i.__importStar)(l(7238)),v=(0,i.__importStar)(l(7423)),N=(0,i.__importStar)(l(5245)),U=(0,i.__importStar)(l(9417)),fe=(0,i.__importStar)(l(2075)),Q=(0,i.__importStar)(l(3251)),he=(0,i.__importStar)(l(107)),Re=(0,i.__importStar)(l(4211));function _e(dt,Ge){if(1&dt&&(s.\u0275\u0275elementStart(0,"span",8),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&dt){const V=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(V.description)}}const be=function(dt){return{active:dt}};function q(dt,Ge){if(1&dt){const V=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"li",5),s.\u0275\u0275listener("click",function(){const le=s.\u0275\u0275restoreView(V).$implicit;return s.\u0275\u0275nextContext().selectedFunction=le}),s.\u0275\u0275elementStart(1,"span",6),s.\u0275\u0275text(2),s.\u0275\u0275elementEnd(),s.\u0275\u0275template(3,_e,2,1,"span",7),s.\u0275\u0275elementEnd()}if(2&dt){const V=Ge.$implicit,ae=s.\u0275\u0275nextContext();s.\u0275\u0275property("ngClass",s.\u0275\u0275pureFunction1(3,be,(null==ae.selectedFunction?null:ae.selectedFunction.name)===V.name)),s.\u0275\u0275advance(2),s.\u0275\u0275textInterpolate(V.name),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",V.description)}}function Ce(dt,Ge){1&dt&&s.\u0275\u0275element(0,"span")}function Fe(dt,Ge){if(1&dt){const V=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"span"),s.\u0275\u0275element(1,"br"),s.\u0275\u0275text(2,"\xa0\xa0"),s.\u0275\u0275elementStart(3,"span",37),s.\u0275\u0275text(4),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(5,"span",14),s.\u0275\u0275text(6,":"),s.\u0275\u0275elementEnd(),s.\u0275\u0275text(7,"\xa0"),s.\u0275\u0275elementStart(8,"u",15),s.\u0275\u0275listener("click",function(){const le=s.\u0275\u0275restoreView(V).$implicit;return s.\u0275\u0275nextContext(2).showDocumentation(le.rawType)}),s.\u0275\u0275text(9),s.\u0275\u0275elementEnd(),s.\u0275\u0275template(10,Ce,1,0,"span",38),s.\u0275\u0275elementEnd()}if(2&dt){const V=Ge.$implicit,ae=Ge.index;s.\u0275\u0275nextContext();const Oe=s.\u0275\u0275reference(18),le=s.\u0275\u0275reference(20),Ie=s.\u0275\u0275nextContext();s.\u0275\u0275advance(4),s.\u0275\u0275textInterpolate(V.name),s.\u0275\u0275advance(4),s.\u0275\u0275property("matTooltip",Ie.getTooltip(V.rawType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(V.type),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",ae!=Ie.selectedFunction.args.length-1)("ngIfThen",Oe)("ngIfElse",le)}}function Ye(dt,Ge){1&dt&&s.\u0275\u0275text(0,",")}function st(dt,Ge){1&dt&&s.\u0275\u0275element(0,"br")}function $e(dt,Ge){if(1&dt){const V=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"u",29),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(V);const Oe=s.\u0275\u0275nextContext().$implicit;return s.\u0275\u0275nextContext(3).showDocumentation(Oe.dataType)}),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()}if(2&dt){const V=s.\u0275\u0275nextContext().$implicit,ae=s.\u0275\u0275nextContext(3);s.\u0275\u0275property("matTooltip",ae.getTooltip(V.dataType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate1("(",V.dataType.name,")")}}function de(dt,Ge){if(1&dt&&(s.\u0275\u0275elementStart(0,"mat-chip",42)(1,"span",28),s.\u0275\u0275text(2),s.\u0275\u0275elementEnd(),s.\u0275\u0275element(3,"i"),s.\u0275\u0275elementStart(4,"span",28),s.\u0275\u0275text(5),s.\u0275\u0275template(6,$e,2,2,"u",43),s.\u0275\u0275elementEnd()()),2&dt){const V=Ge.$implicit;s.\u0275\u0275property("disableRipple",!0),s.\u0275\u0275advance(2),s.\u0275\u0275textInterpolate(V.name),s.\u0275\u0275advance(3),s.\u0275\u0275textInterpolate1("",V.type," "),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",V.dataType&&"void"!==V.dataType.name)}}function Pe(dt,Ge){if(1&dt&&(s.\u0275\u0275elementStart(0,"section",39)(1,"mat-chip-list",40),s.\u0275\u0275template(2,de,7,4,"mat-chip",41),s.\u0275\u0275elementEnd()()),2&dt){const V=s.\u0275\u0275nextContext(2);s.\u0275\u0275advance(1),s.\u0275\u0275property("selectable",!1),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngForOf",V.selectedFunction.labels)}}function z(dt,Ge){if(1&dt&&(s.\u0275\u0275elementStart(0,"p"),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&dt){const V=s.\u0275\u0275nextContext(2);s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(V.selectedFunction.description)}}function ge(dt,Ge){1&dt&&(s.\u0275\u0275elementStart(0,"p",44),s.\u0275\u0275text(1,"N\xe3o h\xe1 descri\xe7\xe3o para esta fun\xe7\xe3o."),s.\u0275\u0275elementEnd())}function ie(dt,Ge){1&dt&&(s.\u0275\u0275elementStart(0,"p",44),s.\u0275\u0275text(1,"Esta fun\xe7\xe3o n\xe3o possui argumentos."),s.\u0275\u0275elementEnd())}function xe(dt,Ge){1&dt&&(s.\u0275\u0275elementStart(0,"th",54),s.\u0275\u0275text(1,"Nome"),s.\u0275\u0275elementEnd())}function me(dt,Ge){if(1&dt&&(s.\u0275\u0275elementStart(0,"td",55),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&dt){const V=Ge.$implicit;s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(V.name)}}function Je(dt,Ge){1&dt&&(s.\u0275\u0275elementStart(0,"th",54),s.\u0275\u0275text(1,"Tipo"),s.\u0275\u0275elementEnd())}function ve(dt,Ge){if(1&dt){const V=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"td",55)(1,"u",29),s.\u0275\u0275listener("click",function(){const le=s.\u0275\u0275restoreView(V).$implicit;return s.\u0275\u0275nextContext(3).showDocumentation(le.rawType)}),s.\u0275\u0275text(2),s.\u0275\u0275elementEnd()()}if(2&dt){const V=Ge.$implicit,ae=s.\u0275\u0275nextContext(3);s.\u0275\u0275advance(1),s.\u0275\u0275property("matTooltip",ae.getTooltip(V.rawType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(V.type)}}function ze(dt,Ge){1&dt&&(s.\u0275\u0275elementStart(0,"th",54),s.\u0275\u0275text(1,"Descri\xe7\xe3o"),s.\u0275\u0275elementEnd())}function ct(dt,Ge){if(1&dt&&(s.\u0275\u0275elementStart(0,"td",56),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&dt){const V=Ge.$implicit;s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(V.description||"-")}}function Dt(dt,Ge){1&dt&&s.\u0275\u0275element(0,"tr",57)}function Be(dt,Ge){1&dt&&s.\u0275\u0275element(0,"tr",58)}function et(dt,Ge){if(1&dt&&(s.\u0275\u0275elementStart(0,"table",45),s.\u0275\u0275elementContainerStart(1,46),s.\u0275\u0275template(2,xe,2,0,"th",47),s.\u0275\u0275template(3,me,2,1,"td",48),s.\u0275\u0275elementContainerEnd(),s.\u0275\u0275elementContainerStart(4,49),s.\u0275\u0275template(5,Je,2,0,"th",47),s.\u0275\u0275template(6,ve,3,2,"td",48),s.\u0275\u0275elementContainerEnd(),s.\u0275\u0275elementContainerStart(7,50),s.\u0275\u0275template(8,ze,2,0,"th",47),s.\u0275\u0275template(9,ct,2,1,"td",51),s.\u0275\u0275elementContainerEnd(),s.\u0275\u0275template(10,Dt,1,0,"tr",52),s.\u0275\u0275template(11,Be,1,0,"tr",53),s.\u0275\u0275elementEnd()),2&dt){const V=s.\u0275\u0275nextContext(2);s.\u0275\u0275property("dataSource",V.selectedFunction.args),s.\u0275\u0275advance(10),s.\u0275\u0275property("matHeaderRowDef",V.argumentsTableColumns),s.\u0275\u0275advance(1),s.\u0275\u0275property("matRowDefColumns",V.argumentsTableColumns)}}function ne(dt,Ge){1&dt&&(s.\u0275\u0275elementStart(0,"span",59),s.\u0275\u0275text(1,"Dart"),s.\u0275\u0275elementEnd())}function pe(dt,Ge){1&dt&&(s.\u0275\u0275elementStart(0,"span",59),s.\u0275\u0275text(1,"Swift"),s.\u0275\u0275elementEnd())}const we=function(){return{theme:"vs-dark",language:"javascript"}},ke=function(){return{theme:"vs-dark",language:"kotlin"}},Ee=function(){return{theme:"vs-dark",language:"dart"}},Ze=function(){return{theme:"vs-dark",language:"swift"}};function mt(dt,Ge){if(1&dt){const V=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"article")(1,"header")(2,"h1",9)(3,"span",10)(4,"span",11),s.\u0275\u0275text(5,"fn"),s.\u0275\u0275elementEnd(),s.\u0275\u0275text(6,"\xa0"),s.\u0275\u0275elementStart(7,"span",12),s.\u0275\u0275text(8),s.\u0275\u0275elementEnd(),s.\u0275\u0275text(9,"("),s.\u0275\u0275template(10,Fe,11,6,"span",13),s.\u0275\u0275text(11,")"),s.\u0275\u0275elementStart(12,"span",14),s.\u0275\u0275text(13,":"),s.\u0275\u0275elementEnd(),s.\u0275\u0275text(14,"\xa0"),s.\u0275\u0275elementStart(15,"u",15),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(V);const Oe=s.\u0275\u0275nextContext();return Oe.showDocumentation(Oe.selectedFunction.returns.rawType)}),s.\u0275\u0275text(16),s.\u0275\u0275elementEnd()(),s.\u0275\u0275template(17,Ye,1,0,"ng-template",null,16,s.\u0275\u0275templateRefExtractor),s.\u0275\u0275template(19,st,1,0,"ng-template",null,17,s.\u0275\u0275templateRefExtractor),s.\u0275\u0275element(21,"s"),s.\u0275\u0275elementStart(22,"button",18),s.\u0275\u0275listener("click",function(){return s.\u0275\u0275restoreView(V),s.\u0275\u0275nextContext().addSimpleCallTab()}),s.\u0275\u0275elementStart(23,"mat-icon"),s.\u0275\u0275text(24,"play_arrow"),s.\u0275\u0275elementEnd(),s.\u0275\u0275text(25,"\xa0EXECUTAR "),s.\u0275\u0275elementEnd()()(),s.\u0275\u0275template(26,Pe,3,2,"section",19),s.\u0275\u0275elementStart(27,"section",9)(28,"h2",20),s.\u0275\u0275text(29,"Descri\xe7\xe3o"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(30,"div",21),s.\u0275\u0275template(31,z,2,1,"p",22),s.\u0275\u0275template(32,ge,2,0,"p",23),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(33,"h2",24),s.\u0275\u0275text(34,"Par\xe2metros"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(35,"div",21),s.\u0275\u0275template(36,ie,2,0,"p",23),s.\u0275\u0275elementStart(37,"div",25),s.\u0275\u0275template(38,et,12,3,"table",26),s.\u0275\u0275elementEnd()(),s.\u0275\u0275elementStart(39,"h2",27),s.\u0275\u0275text(40,"Retorno"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(41,"div")(42,"p",28)(43,"u",29),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(V);const Oe=s.\u0275\u0275nextContext();return Oe.showDocumentation(Oe.selectedFunction.returns.rawType)}),s.\u0275\u0275text(44),s.\u0275\u0275elementEnd()()(),s.\u0275\u0275elementStart(45,"h2",30),s.\u0275\u0275text(46,"Exemplo de Requisi\xe7\xe3o"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(47,"mat-tab-group",31)(48,"mat-tab",32),s.\u0275\u0275element(49,"ngx-monaco-editor",33),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(50,"mat-tab",34),s.\u0275\u0275element(51,"ngx-monaco-editor",33),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(52,"mat-tab",35),s.\u0275\u0275template(53,ne,2,0,"ng-template",36),s.\u0275\u0275element(54,"ngx-monaco-editor",33),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(55,"mat-tab",35),s.\u0275\u0275template(56,pe,2,0,"ng-template",36),s.\u0275\u0275element(57,"ngx-monaco-editor",33),s.\u0275\u0275elementEnd()()()()}if(2&dt){const V=s.\u0275\u0275nextContext();s.\u0275\u0275advance(8),s.\u0275\u0275textInterpolate(V.selectedFunction.name),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",V.selectedFunction.args),s.\u0275\u0275advance(5),s.\u0275\u0275property("matTooltip",V.getTooltip(V.selectedFunction.returns.rawType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(V.selectedFunction.returns.type),s.\u0275\u0275advance(10),s.\u0275\u0275property("ngIf",V.selectedFunction.labels.length>0),s.\u0275\u0275advance(4),s.\u0275\u0275property("ngSwitch",!!V.selectedFunction.description),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngSwitchCase",!0),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngSwitchCase",!1),s.\u0275\u0275advance(3),s.\u0275\u0275property("ngSwitch",V.selectedFunction.args.length),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngSwitchCase",0),s.\u0275\u0275advance(7),s.\u0275\u0275property("matTooltip",V.getTooltip(V.selectedFunction.returns.rawType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(V.selectedFunction.returns.type),s.\u0275\u0275advance(5),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(20,we))("ngModel",V.selectedFunction.examples.typeScript),s.\u0275\u0275advance(2),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(21,ke))("ngModel",V.selectedFunction.examples.kotlin),s.\u0275\u0275advance(3),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(22,Ee))("ngModel",V.selectedFunction.examples.dart),s.\u0275\u0275advance(3),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(23,Ze))("ngModel",V.selectedFunction.examples.swift)}}const gt=function(){return{standalone:!0}};class St{constructor(Ge,V,ae){this.sdkgen=Ge,this.dialog=V,this.responsive=ae,this.isBelowMd=!1,this.runFunction=new u.EventEmitter,this.searchText="",this.argumentsTableColumns=["name","type","description"],this.editorOptions={theme:"vs-dark",language:"javascript"}}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(Ge=>{!Ge||(this.selectedFunction=void 0,this.fnTable=Ge.astRoot.operations.sort((V,ae)=>V.name.localeCompare(ae.name)).map(V=>{var ae,Oe,le;const Ie=Ge.astJson.annotations[`fn.${V.name}`],Te=this.sdkgen.buildJsonObject(V.args);return(null==Ie?void 0:Ie.find(oe=>"hidden"===oe.type))?null:{name:V.name,description:null===(ae=null==Ie?void 0:Ie.find(oe=>"description"===oe.type))||void 0===ae?void 0:ae.value,args:V.args.map(({name:oe,type:De})=>{var Qe,nt,ht;return{name:oe,description:null===(ht=[...null!==(Qe=Ge.astJson.annotations[`type.${De}.${oe}`])&&void 0!==Qe?Qe:[],...null!==(nt=Ge.astJson.annotations[`fn.${V.name}.${oe}`])&&void 0!==nt?nt:[]].find(Ct=>"description"===Ct.type))||void 0===ht?void 0:ht.value,type:De.name,rawType:De}}),argsStr:V.args.map(oe=>`${oe.name}: ${oe.type.name}`).join(", "),argsFields:V.args,returns:{type:V.returnType.name,rawType:V.returnType},labels:null!==(Oe=null==Ie?void 0:Ie.filter(oe=>["rest","throws"].includes(oe.type)).map(oe=>{var De;return"rest"===oe.type?{name:"REST",type:`${oe.value.method} ${oe.value.path}`}:"throws"===oe.type?{name:"THROWS",type:oe.value,dataType:null===(De=Ge.astRoot.errors.find(Qe=>Qe.name===oe.value))||void 0===De?void 0:De.dataType}:{name:"?",type:"?"}}))&&void 0!==Oe?Oe:[],throws:null===(le=null==Ie?void 0:Ie.find(oe=>"throws"===oe.type))||void 0===le?void 0:le.value,examples:{typeScript:this.sdkgen.getTypeScriptCode(V.name,Te),kotlin:this.sdkgen.getKotlinCode(V.name,V.args),dart:this.sdkgen.getDartCode(V.name,Te),swift:this.sdkgen.getSwiftCode(V.name,Te)}}}).filter(V=>Boolean(V)))})}ngOnDestroy(){var Ge,V;null===(Ge=this.state$)||void 0===Ge||Ge.unsubscribe(),null===(V=this.responsive$)||void 0===V||V.unsubscribe()}ngAfterViewInit(){this.responsive$=this.responsive.isBelowMd().subscribe(Ge=>{this.isBelowMd=Ge.matches})}addSimpleCallTab(){var Ge;this.runFunction.emit(null===(Ge=this.selectedFunction)||void 0===Ge?void 0:Ge.name)}getTooltip(Ge){return(0,m.getTypeDoc)(Ge).shortDescription}showDocumentation(Ge){this.dialog.open(c.TypeDetailsComponent,{position:{right:"0",top:"0",bottom:"0"},data:{type:Ge},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}g.TabHomeComponent=St,St.\u0275fac=function(Ge){return new(Ge||St)(s.\u0275\u0275directiveInject(_.SdkgenService),s.\u0275\u0275directiveInject(D.MatDialog),s.\u0275\u0275directiveInject(C.ResponsiveService))},St.\u0275cmp=s.\u0275\u0275defineComponent({type:St,selectors:[["app-tab-home"]],outputs:{runFunction:"runFunction"},decls:11,vars:10,consts:[["unit","pixel",3,"direction"],[3,"size"],["type","search","placeholder","Buscar\u2026",3,"ngModel","ngModelOptions","ngModelChange"],[3,"ngClass","click",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"ngClass","click"],[1,"fn-call"],["class","fn-description",4,"ngIf"],[1,"fn-description"],[1,"container"],[1,"mono","hide-overflow"],[1,"k-fn"],[1,"k-name"],[4,"ngFor","ngForOf"],[1,"k-sym"],[1,"k-type",3,"matTooltip","click"],["comma",""],["lineBreak",""],["mat-raised-button","","color","primary",3,"click"],["class","container","id","labels",4,"ngIf"],["id","description"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","no-content",4,"ngSwitchCase"],["id","parameters"],[1,"table-responsive","mat-elevation-z8"],["mat-table","",3,"dataSource",4,"ngSwitchDefault"],["id","returns"],[1,"mono"],[3,"matTooltip","click"],["id","sample-calls"],["animationDuration","0ms"],["label","TypeScript"],[3,"options","ngModel"],["label","Kotlin"],["disabled",""],["mat-tab-label",""],[1,"k-arg-name"],[4,"ngIf","ngIfThen","ngIfElse"],["id","labels",1,"container"],[3,"selectable"],["color","primary",3,"disableRipple",4,"ngFor","ngForOf"],["color","primary",3,"disableRipple"],[3,"matTooltip","click",4,"ngIf"],[1,"no-content"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","mono","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"mono"],["mat-cell",""],["mat-header-row",""],["mat-row",""],["matTooltip","Em breve!"]],template:function(Ge,V){1&Ge&&(s.\u0275\u0275elementStart(0,"as-split",0)(1,"as-split-area",1)(2,"aside")(3,"nav")(4,"form")(5,"input",2),s.\u0275\u0275listener("ngModelChange",function(Oe){return V.searchText=Oe}),s.\u0275\u0275elementEnd()(),s.\u0275\u0275elementStart(6,"ul"),s.\u0275\u0275template(7,q,4,5,"li",3),s.\u0275\u0275pipe(8,"appFilter"),s.\u0275\u0275elementEnd()()()(),s.\u0275\u0275elementStart(9,"as-split-area"),s.\u0275\u0275template(10,mt,58,24,"article",4),s.\u0275\u0275elementEnd()()),2&Ge&&(s.\u0275\u0275property("direction",V.isBelowMd?"vertical":"horizontal"),s.\u0275\u0275advance(1),s.\u0275\u0275property("size",V.isBelowMd?130:350),s.\u0275\u0275advance(4),s.\u0275\u0275property("ngModel",V.searchText)("ngModelOptions",s.\u0275\u0275pureFunction0(9,gt)),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",s.\u0275\u0275pipeBind2(8,6,V.fnTable,V.searchText)),s.\u0275\u0275advance(3),s.\u0275\u0275property("ngIf",V.selectedFunction))},directives:[w.SplitComponent,w.SplitAreaDirective,h.\u0275NgNoValidate,h.NgControlStatusGroup,h.NgForm,h.DefaultValueAccessor,h.NgControlStatus,h.NgModel,A.NgForOf,A.NgClass,A.NgIf,T.MatTooltip,v.MatButton,N.MatIcon,U.MatChipList,U.MatChip,A.NgSwitch,A.NgSwitchCase,A.NgSwitchDefault,fe.MatTable,fe.MatColumnDef,fe.MatHeaderCellDef,fe.MatHeaderCell,fe.MatCellDef,fe.MatCell,fe.MatHeaderRowDef,fe.MatHeaderRow,fe.MatRowDef,fe.MatRow,Q.MatTabGroup,Q.MatTab,he.MonacoEditorComponent,Q.MatTabLabel],pipes:[Re.FilterPipe],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%;overflow:hidden!important}aside[_ngcontent-%COMP%]{display:block;background:#2b2b2b;height:100%;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}nav[_ngcontent-%COMP%]{display:block;width:100%}nav[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{display:block;width:100%;padding:10px;background:#2b2b2b;border-bottom:1px solid #444444;position:sticky;top:0;left:0;right:0;z-index:2}nav[_ngcontent-%COMP%] form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:block;background:#444444;border:0 none;color:#fff;width:100%;padding:5px}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{width:100%;padding:15px 10px;border-bottom:1px solid #444444;cursor:pointer}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{background-color:#0003}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#0000004d}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:break-all}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span.fn-call[_ngcontent-%COMP%]{font-family:Roboto Mono,monospace}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span.fn-description[_ngcontent-%COMP%]{color:#777;font-size:.9rem;margin-top:5px}u[_ngcontent-%COMP%]{-webkit-text-decoration-style:dotted;text-decoration-style:dotted;cursor:pointer;font-family:Roboto Mono,monospace}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{background-color:#2b2b2b;padding:25px 20px;width:100%;position:sticky;top:0;left:0;right:0;z-index:3}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{display:flex;margin:0 auto;font-weight:300;line-height:36px;white-space:pre}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] span.hide-overflow[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-fn[_ngcontent-%COMP%]{color:#c586c0}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-name[_ngcontent-%COMP%]{color:#dcdcaa}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-arg-name[_ngcontent-%COMP%]{color:#9cdcfe}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-sym[_ngcontent-%COMP%]{color:#d4d4d4}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-type[_ngcontent-%COMP%]{color:#569cd6}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:130px;align-self:center}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{display:block;padding:0 20px 15px}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%]{padding:20px 20px 0}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{overflow:hidden}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]:focus{outline:none}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:block;width:1.3px;background:#FFF;margin:0 7.5px;border-radius:5px;height:calc(100% + 14px)}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-weight:300;margin-top:40px;text-transform:uppercase}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .no-content[_ngcontent-%COMP%]{background-color:#383838;color:#fafafa;display:inline-block;padding:15px;border-radius:5px;margin-top:0}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] table[_ngcontent-%COMP%], article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .table-responsive[_ngcontent-%COMP%], article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] mat-tab-group[_ngcontent-%COMP%]{width:100%;max-width:720px}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .mat-tab-body-content{overflow-y:hidden}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] ngx-monaco-editor[_ngcontent-%COMP%]{display:block;height:100%;min-height:300px}"]})},2253:(je,g,l)=>{"use strict";var i=l(8926).default;Object.defineProperty(g,"__esModule",{value:!0}),g.TabNavComponent=void 0;const u=l(655),m=l(3075),c=l(6676),s=l(4814),_=(0,u.__importStar)(l(5e3)),D=(0,u.__importStar)(l(6395)),C=(0,u.__importStar)(l(2290)),w=(0,u.__importStar)(l(8966)),h=(0,u.__importStar)(l(3075)),A=(0,u.__importStar)(l(508)),T=(0,u.__importStar)(l(9808)),v=(0,u.__importStar)(l(5245)),N=(0,u.__importStar)(l(7423));function U(he,Re){1&he&&(_.\u0275\u0275elementContainerStart(0),_.\u0275\u0275elementStart(1,"mat-icon",6),_.\u0275\u0275text(2,"loop"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementContainerEnd())}function fe(he,Re){1&he&&(_.\u0275\u0275elementContainerStart(0),_.\u0275\u0275elementStart(1,"mat-icon"),_.\u0275\u0275text(2,"arrow_forward"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementContainerEnd())}class Q{constructor(Re,_e,be){this.sdkgen=Re,this.toastr=_e,this.dialog=be,this.loading=!1,this.url=new m.FormControl("")}ngOnInit(){fetch("/ast.json").then(Re=>{Re.ok&&(this.url.setValue(`${window.location.protocol}//${window.location.host}`),this.loadUrl())}).catch(()=>{})}loadUrl(Re){var _e=this;return i(function*(){null==Re||Re.preventDefault();try{_e.loading=!0,/^https?:\/\//.test(_e.url.value)||_e.url.setValue(`https://${_e.url.value}`);const be=new URL(_e.url.value);be.pathname+=(/\/$/u.test(be.pathname)?"":"/")+"ast.json";const q=be.toString();console.debug("astUrl",q);const Ce=yield fetch(q).then(Fe=>Fe.ok?Fe.json():Fe);if(Ce instanceof Response)throw Ce instanceof Error?Ce:new Error(Ce.statusText);if(!Ce.errors||!Ce.functionTable||!Ce.typeTable)throw new Error("Invalid AST");for(;"undefined"==typeof monaco;)yield new Promise(Fe=>setTimeout(Fe,250));console.debug("astJson",Ce),_e.sdkgen.state$.next({astJson:Ce,astRoot:(0,c.jsonToAst)(Ce),url:_e.url.value})}catch(be){_e.toastr.error(be instanceof Error?be.message:JSON.stringify(be),"Erro ao carregar AST",{positionClass:"toast-bottom-right"})}finally{_e.loading=!1}})()}openAbout(){this.dialog.open(s.DialogAboutComponent)}}g.TabNavComponent=Q,Q.\u0275fac=function(Re){return new(Re||Q)(_.\u0275\u0275directiveInject(D.SdkgenService),_.\u0275\u0275directiveInject(C.ToastrService),_.\u0275\u0275directiveInject(w.MatDialog))},Q.\u0275cmp=_.\u0275\u0275defineComponent({type:Q,selectors:[["app-tab-nav"]],decls:9,vars:6,consts:[["src","assets/polvinho.png"],[3,"submit"],["placeholder","Digite uma URL aqui para conectar",3,"formControl","readonly"],["mat-ripple","","type","submit",3,"disabled","ngSwitch"],[4,"ngSwitchCase"],["mat-icon-button","",3,"click"],[1,"loader"]],template:function(Re,_e){1&Re&&(_.\u0275\u0275element(0,"img",0),_.\u0275\u0275elementStart(1,"form",1),_.\u0275\u0275listener("submit",function(q){return _e.loadUrl(q)}),_.\u0275\u0275element(2,"input",2),_.\u0275\u0275elementStart(3,"button",3),_.\u0275\u0275template(4,U,3,0,"ng-container",4),_.\u0275\u0275template(5,fe,3,0,"ng-container",4),_.\u0275\u0275elementEnd()(),_.\u0275\u0275elementStart(6,"button",5),_.\u0275\u0275listener("click",function(){return _e.openAbout()}),_.\u0275\u0275elementStart(7,"mat-icon"),_.\u0275\u0275text(8,"info"),_.\u0275\u0275elementEnd()()),2&Re&&(_.\u0275\u0275advance(2),_.\u0275\u0275property("formControl",_e.url)("readonly",_e.loading),_.\u0275\u0275advance(1),_.\u0275\u0275property("disabled",_e.loading)("ngSwitch",_e.loading),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngSwitchCase",!0),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngSwitchCase",!1))},directives:[h.\u0275NgNoValidate,h.NgControlStatusGroup,h.NgForm,h.DefaultValueAccessor,h.NgControlStatus,h.FormControlDirective,A.MatRipple,T.NgSwitch,T.NgSwitchCase,v.MatIcon,N.MatButton],styles:["[_nghost-%COMP%]{display:flex;height:42px;background-color:#2b2b2b;box-shadow:0 0 3px #00000080}img[_ngcontent-%COMP%]{padding:5px}form[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-grow:1;box-shadow:0 0 1px #00000080;background:#383838;border:0 none;border-radius:5px;margin:5px 10vw 5px calc(10vw - 42px);overflow:hidden}form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex-grow:1;padding:10px 5px;background:transparent;border:0 none;text-align:center;color:#ccc}form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:transparent;color:#bfbfbf;border:0 none;cursor:pointer}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%]{animation:spin 2s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]})},5281:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.TypeDetailsComponent=void 0;const i=l(655),u=l(8966),m=l(9435),c=(0,i.__importStar)(l(5e3)),s=(0,i.__importStar)(l(8966)),_=(0,i.__importStar)(l(9808)),D=(0,i.__importStar)(l(7423)),C=(0,i.__importStar)(l(5245)),w=(0,i.__importStar)(l(9417)),h=(0,i.__importStar)(l(2075)),A=(0,i.__importStar)(l(7238));function T(z,ge){1&z&&(c.\u0275\u0275elementStart(0,"button",6)(1,"mat-icon"),c.\u0275\u0275text(2,"arrow_back"),c.\u0275\u0275elementEnd()())}function v(z,ge){if(1&z&&(c.\u0275\u0275elementStart(0,"mat-chip",7),c.\u0275\u0275text(1),c.\u0275\u0275elementEnd()),2&z){const ie=ge.$implicit;c.\u0275\u0275property("disableRipple",!0),c.\u0275\u0275advance(1),c.\u0275\u0275textInterpolate(ie)}}function N(z,ge){1&z&&(c.\u0275\u0275elementStart(0,"button",8)(1,"mat-icon"),c.\u0275\u0275text(2,"close"),c.\u0275\u0275elementEnd()())}function U(z,ge){1&z&&(c.\u0275\u0275elementStart(0,"th",20),c.\u0275\u0275text(1,"Nome"),c.\u0275\u0275elementEnd())}function fe(z,ge){if(1&z&&(c.\u0275\u0275elementStart(0,"td",21),c.\u0275\u0275text(1),c.\u0275\u0275elementEnd()),2&z){const ie=ge.$implicit;c.\u0275\u0275advance(1),c.\u0275\u0275textInterpolate(ie.name)}}function Q(z,ge){1&z&&(c.\u0275\u0275elementStart(0,"th",20),c.\u0275\u0275text(1,"Tipo"),c.\u0275\u0275elementEnd())}function he(z,ge){1&z&&(c.\u0275\u0275elementStart(0,"span"),c.\u0275\u0275text(1,"-"),c.\u0275\u0275elementEnd())}function Re(z,ge){if(1&z){const ie=c.\u0275\u0275getCurrentView();c.\u0275\u0275elementStart(0,"u",25),c.\u0275\u0275listener("click",function(){c.\u0275\u0275restoreView(ie);const me=c.\u0275\u0275nextContext().$implicit;return c.\u0275\u0275nextContext(2).showDocumentation(me.type)}),c.\u0275\u0275text(1),c.\u0275\u0275elementEnd()}if(2&z){const ie=c.\u0275\u0275nextContext().$implicit,xe=c.\u0275\u0275nextContext(2);c.\u0275\u0275property("matTooltip",xe.getTooltip(ie.type)),c.\u0275\u0275advance(1),c.\u0275\u0275textInterpolate(ie.type.name)}}function _e(z,ge){1&z&&(c.\u0275\u0275elementStart(0,"td",22),c.\u0275\u0275template(1,he,2,0,"span",23),c.\u0275\u0275template(2,Re,2,2,"u",24),c.\u0275\u0275elementEnd()),2&z&&(c.\u0275\u0275property("ngSwitch",ge.$implicit.type),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngSwitchCase",null))}function be(z,ge){1&z&&(c.\u0275\u0275elementStart(0,"th",20),c.\u0275\u0275text(1,"Descri\xe7\xe3o"),c.\u0275\u0275elementEnd())}function q(z,ge){if(1&z&&(c.\u0275\u0275elementStart(0,"td",26),c.\u0275\u0275text(1),c.\u0275\u0275elementEnd()),2&z){const ie=ge.$implicit;c.\u0275\u0275advance(1),c.\u0275\u0275textInterpolate(ie.description||"-")}}function Ce(z,ge){1&z&&c.\u0275\u0275element(0,"tr",27)}function Fe(z,ge){1&z&&c.\u0275\u0275element(0,"tr",28)}const Ye=function(){return[]};function st(z,ge){if(1&z&&(c.\u0275\u0275elementStart(0,"section")(1,"div",9)(2,"table",10),c.\u0275\u0275elementContainerStart(3,11),c.\u0275\u0275template(4,U,2,0,"th",12),c.\u0275\u0275template(5,fe,2,1,"td",13),c.\u0275\u0275elementContainerEnd(),c.\u0275\u0275elementContainerStart(6,14),c.\u0275\u0275template(7,Q,2,0,"th",12),c.\u0275\u0275template(8,_e,3,2,"td",15),c.\u0275\u0275elementContainerEnd(),c.\u0275\u0275elementContainerStart(9,16),c.\u0275\u0275template(10,be,2,0,"th",12),c.\u0275\u0275template(11,q,2,1,"td",17),c.\u0275\u0275elementContainerEnd(),c.\u0275\u0275template(12,Ce,1,0,"tr",18),c.\u0275\u0275template(13,Fe,1,0,"tr",19),c.\u0275\u0275elementEnd()()()),2&z){const ie=c.\u0275\u0275nextContext();let xe;c.\u0275\u0275advance(2),c.\u0275\u0275property("dataSource",null!==(xe=null==ie.typeDoc?null:ie.typeDoc.structFields)&&void 0!==xe?xe:c.\u0275\u0275pureFunction0(3,Ye)),c.\u0275\u0275advance(10),c.\u0275\u0275property("matHeaderRowDef",ie.argumentsTableColumns),c.\u0275\u0275advance(1),c.\u0275\u0275property("matRowDefColumns",ie.argumentsTableColumns)}}function $e(z,ge){if(1&z&&(c.\u0275\u0275elementStart(0,"li")(1,"code",1),c.\u0275\u0275text(2),c.\u0275\u0275elementEnd()()),2&z){const ie=ge.$implicit;c.\u0275\u0275advance(2),c.\u0275\u0275textInterpolate(ie)}}function de(z,ge){if(1&z&&(c.\u0275\u0275elementStart(0,"section")(1,"h3"),c.\u0275\u0275text(2,"Exemplos"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(3,"ul"),c.\u0275\u0275template(4,$e,3,1,"li",29),c.\u0275\u0275elementEnd()()),2&z){const ie=c.\u0275\u0275nextContext();c.\u0275\u0275advance(4),c.\u0275\u0275property("ngForOf",null==ie.typeDoc?null:ie.typeDoc.examples)}}class Pe{constructor(ge,ie,xe){this.dialogRef=ge,this.data=ie,this.dialog=xe,this.labels=[],this.argumentsTableColumns=["name","type","description"]}ngOnInit(){this.labels=(0,m.getTypeLabels)(this.data.type),this.typeDoc=(0,m.getTypeDoc)(this.data.type)}getTooltip(ge){return(0,m.getTypeDoc)(ge).shortDescription}showDocumentation(ge){this.dialog.open(Pe,{position:{right:"0"},data:{type:ge,subdialog:!0},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}g.TypeDetailsComponent=Pe,Pe.\u0275fac=function(ge){return new(ge||Pe)(c.\u0275\u0275directiveInject(s.MatDialogRef),c.\u0275\u0275directiveInject(u.MAT_DIALOG_DATA),c.\u0275\u0275directiveInject(s.MatDialog))},Pe.\u0275cmp=c.\u0275\u0275defineComponent({type:Pe,selectors:[["app-type-details"]],decls:11,vars:8,consts:[["class","back-button","mat-icon-button","","mat-dialog-close","","tabindex","-1",4,"ngIf"],[1,"mono"],[3,"selectable"],["color","primary",3,"disableRipple",4,"ngFor","ngForOf"],["class","close-button","mat-icon-button","","mat-dialog-close","","tabindex","-1",4,"ngIf"],[4,"ngIf"],["mat-icon-button","","mat-dialog-close","","tabindex","-1",1,"back-button"],["color","primary",3,"disableRipple"],["mat-icon-button","","mat-dialog-close","","tabindex","-1",1,"close-button"],[1,"table-responsive","mat-elevation-z8"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","mono","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["class","mono","mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"mono"],["mat-cell","",1,"mono",3,"ngSwitch"],[4,"ngSwitchCase"],[3,"matTooltip","click",4,"ngSwitchDefault"],[3,"matTooltip","click"],["mat-cell",""],["mat-header-row",""],["mat-row",""],[4,"ngFor","ngForOf"]],template:function(ge,ie){1&ge&&(c.\u0275\u0275elementStart(0,"h1"),c.\u0275\u0275template(1,T,3,0,"button",0),c.\u0275\u0275elementStart(2,"span",1),c.\u0275\u0275text(3),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(4,"mat-chip-list",2),c.\u0275\u0275template(5,v,2,2,"mat-chip",3),c.\u0275\u0275elementEnd(),c.\u0275\u0275template(6,N,3,0,"button",4),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(7,"p"),c.\u0275\u0275text(8),c.\u0275\u0275elementEnd(),c.\u0275\u0275template(9,st,14,4,"section",5),c.\u0275\u0275template(10,de,5,1,"section",5)),2&ge&&(c.\u0275\u0275advance(1),c.\u0275\u0275property("ngIf",ie.data.subdialog),c.\u0275\u0275advance(2),c.\u0275\u0275textInterpolate(ie.data.type.name),c.\u0275\u0275advance(1),c.\u0275\u0275property("selectable",!1),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngForOf",ie.labels),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngIf",!ie.data.subdialog),c.\u0275\u0275advance(2),c.\u0275\u0275textInterpolate(null==ie.typeDoc?null:ie.typeDoc.longDescription),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngIf",(null==ie.typeDoc?null:ie.typeDoc.isStruct)&&(null==ie.typeDoc?null:ie.typeDoc.structFields)),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngIf",null==ie.typeDoc||null==ie.typeDoc.examples?null:ie.typeDoc.examples.length))},directives:[_.NgIf,D.MatButton,s.MatDialogClose,C.MatIcon,w.MatChipList,_.NgForOf,w.MatChip,h.MatTable,h.MatColumnDef,h.MatHeaderCellDef,h.MatHeaderCell,h.MatCellDef,h.MatCell,_.NgSwitch,_.NgSwitchCase,_.NgSwitchDefault,A.MatTooltip,h.MatHeaderRowDef,h.MatHeaderRow,h.MatRowDef,h.MatRow],styles:["h1[_ngcontent-%COMP%]{font-weight:200;word-break:break-all;word-wrap:break-word}h1[_ngcontent-%COMP%] mat-chip-list[_ngcontent-%COMP%]{display:inline-block;margin-left:10px;-webkit-user-select:none;user-select:none}h1[_ngcontent-%COMP%] mat-chip-list[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{text-transform:uppercase}h1[_ngcontent-%COMP%] mat-chip-list[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]:focus{outline:none}h1[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{vertical-align:middle}h1[_ngcontent-%COMP%] button.back-button[_ngcontent-%COMP%]{margin-right:10px}h1[_ngcontent-%COMP%] button.close-button[_ngcontent-%COMP%]{float:right}p[_ngcontent-%COMP%]{line-height:1.5rem}section[_ngcontent-%COMP%]{margin-top:2rem}h3[_ngcontent-%COMP%]{font-weight:200;text-transform:uppercase}ul[_ngcontent-%COMP%]{padding-left:2rem}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{line-height:2rem;list-style:square}code[_ngcontent-%COMP%]{padding:.2rem .4rem;font-size:.875em;color:#fff;background-color:#212529;border-radius:.2rem;white-space:pre-wrap;word-break:break-all;word-wrap:break-word}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] u[_ngcontent-%COMP%]{-webkit-text-decoration-style:dotted;text-decoration-style:dotted;cursor:pointer}"]})},8227:(je,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.unwrap=g.wrapper=void 0,g.wrapper='\n window.___originalXmlHttpRequestOpen = XMLHttpRequest.prototype.open;\n XMLHttpRequest.prototype.open = function() {\n const event = { type: "network", message: `XHR: ${Array.prototype.join.call(arguments, " ")}` };\n events.push(event);\n\n const send = this.send;\n this.send = function() {\n try {\n event.details = { req: JSON.parse(arguments[0]) };\n } catch (e) {\n event.details = { req: arguments[0] };\n }\n\n const onreadystatechange = this.onreadystatechange;\n this.onreadystatechange = function() {\n const result = onreadystatechange.apply(this, arguments);\n\n if (this.readyState === 4) {\n try {\n event.details = { ...event.details, res: JSON.parse(this.responseText) };\n } catch (e) {\n event.details = { ...event.details, res: this.responseText };\n }\n }\n\n return result;\n };\n\n return send.apply(this, arguments);\n };\n\n return ___originalXmlHttpRequestOpen.apply(this, arguments);\n };\n\n window.___originalConsoleLog = console.log;\n console.log = function() {\n const event = { type: "info", message: Array.prototype.map.call(arguments, x => typeof x === "object" ? JSON.stringify(x) : x.toString()).join(" ") };\n events.push(event);\n return ___originalConsoleLog.apply(this, arguments);\n }\n\n window.___originalConsoleError = console.error;\n console.error = function() {\n //if (typeof arguments[0] === "string") {\n const event = { type: "error", message: Array.prototype.map.call(arguments, x => typeof x === "object" ? JSON.stringify(x) : x.toString()).join(" ") };\n events.push(event);\n //}\n return ___originalConsoleError.apply(this, arguments);\n }\n',g.unwrap="\n XMLHttpRequest.prototype.open = window.___originalXmlHttpRequestOpen;\n console.log = window.___originalConsoleLog;\n console.error = window.___originalConsoleError;\n"},2340:(je,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.environment=void 0,g.environment={production:!0}},4431:(je,g,l)=>{"use strict";const m=(0,l(655).__importStar)(l(2313)),c=l(5e3),s=l(6747);l(2340).environment.production&&(0,c.enableProdMode)(),m.platformBrowser().bootstrapModule(s.AppModule).catch(D=>console.error(D))},4327:function(je,g){var u;void 0!==(u=function(){"use strict";function c(h,A,T){var v=new XMLHttpRequest;v.open("GET",h),v.responseType="blob",v.onload=function(){w(v.response,A,T)},v.onerror=function(){console.error("could not download file")},v.send()}function s(h){var A=new XMLHttpRequest;A.open("HEAD",h,!1);try{A.send()}catch(T){}return 200<=A.status&&299>=A.status}function _(h){try{h.dispatchEvent(new MouseEvent("click"))}catch(T){var A=document.createEvent("MouseEvents");A.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),h.dispatchEvent(A)}}var D="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,C=D.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),w=D.saveAs||("object"!=typeof window||window!==D?function(){}:"download"in HTMLAnchorElement.prototype&&!C?function(h,A,T){var v=D.URL||D.webkitURL,N=document.createElement("a");N.download=A=A||h.name||"download",N.rel="noopener","string"==typeof h?(N.href=h,N.origin===location.origin?_(N):s(N.href)?c(h,A,T):_(N,N.target="_blank")):(N.href=v.createObjectURL(h),setTimeout(function(){v.revokeObjectURL(N.href)},4e4),setTimeout(function(){_(N)},0))}:"msSaveOrOpenBlob"in navigator?function(h,A,T){if(A=A||h.name||"download","string"!=typeof h)navigator.msSaveOrOpenBlob(function m(h,A){return void 0===A?A={autoBom:!1}:"object"!=typeof A&&(console.warn("Deprecated: Expected third argument to be a object"),A={autoBom:!A}),A.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(h.type)?new Blob(["\ufeff",h],{type:h.type}):h}(h,T),A);else if(s(h))c(h,A,T);else{var v=document.createElement("a");v.href=h,v.target="_blank",setTimeout(function(){_(v)})}}:function(h,A,T,v){if((v=v||open("","_blank"))&&(v.document.title=v.document.body.innerText="downloading..."),"string"==typeof h)return c(h,A,T);var N="application/octet-stream"===h.type,U=/constructor/i.test(D.HTMLElement)||D.safari,fe=/CriOS\/[\d]+/.test(navigator.userAgent);if((fe||N&&U||C)&&"undefined"!=typeof FileReader){var Q=new FileReader;Q.onloadend=function(){var _e=Q.result;_e=fe?_e:_e.replace(/^data:[^;]*;/,"data:attachment/file;"),v?v.location.href=_e:location=_e,v=null},Q.readAsDataURL(h)}else{var he=D.URL||D.webkitURL,Re=he.createObjectURL(h);v?v.location=Re:location.href=Re,v=null,setTimeout(function(){he.revokeObjectURL(Re)},4e4)}});D.saveAs=w.saveAs=w,je.exports=w}.apply(g,[]))&&(je.exports=u)},5109:(je,g,l)=>{"use strict";l.r(g),l.d(g,{NgxJsonViewerComponent:()=>w,NgxJsonViewerModule:()=>h});var i=l(9808),u=l(5e3);function m(A,T){1&A&&u.\u0275\u0275element(0,"div",9)}function c(A,T){if(1&A&&(u.\u0275\u0275elementStart(0,"span",10),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&A){const v=u.\u0275\u0275nextContext().$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(v.description)}}function s(A,T){if(1&A&&(u.\u0275\u0275elementStart(0,"section",11),u.\u0275\u0275element(1,"ngx-json-viewer",12),u.\u0275\u0275elementEnd()),2&A){const v=u.\u0275\u0275nextContext().$implicit,N=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275property("json",v.value)("expanded",N.expanded)("depth",N.depth)("_currentDepth",N._currentDepth)}}const _=function(A){return["segment",A]},D=function(A,T){return{"segment-main":!0,expandable:A,expanded:T}};function C(A,T){if(1&A){const v=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"section",2)(1,"section",3),u.\u0275\u0275listener("click",function(){const fe=u.\u0275\u0275restoreView(v).$implicit;return u.\u0275\u0275nextContext().toggle(fe)}),u.\u0275\u0275template(2,m,1,0,"div",4),u.\u0275\u0275elementStart(3,"span",5),u.\u0275\u0275text(4),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(5,"span",6),u.\u0275\u0275text(6,": "),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(7,c,2,1,"span",7),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(8,s,2,4,"section",8),u.\u0275\u0275elementEnd()}if(2&A){const v=T.$implicit,N=u.\u0275\u0275nextContext();u.\u0275\u0275property("ngClass",u.\u0275\u0275pureFunction1(6,_,"segment-type-"+v.type)),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngClass",u.\u0275\u0275pureFunction2(8,D,N.isExpandable(v),v.expanded)),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",N.isExpandable(v)),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(v.key),u.\u0275\u0275advance(3),u.\u0275\u0275property("ngIf",!v.expanded||!N.isExpandable(v)),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",v.expanded&&N.isExpandable(v))}}let w=(()=>{class A{constructor(){this.expanded=!0,this.depth=-1,this._currentDepth=-1,this.segments=[]}ngOnChanges(){this.segments=[],this.json=this.decycle(this.json),this._currentDepth++,"object"==typeof this.json?Object.keys(this.json).forEach(v=>{this.segments.push(this.parseKeyValue(v,this.json[v]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(v){return"object"===v.type||"array"===v.type}toggle(v){this.isExpandable(v)&&(v.expanded=!v.expanded)}parseKeyValue(v,N){const U={key:v,value:N,type:void 0,description:""+N,expanded:this.isExpanded()};switch(typeof U.value){case"number":U.type="number";break;case"boolean":U.type="boolean";break;case"function":U.type="function";break;case"string":U.type="string",U.description='"'+U.value+'"';break;case"undefined":U.type="undefined",U.description="undefined";break;case"object":null===U.value?(U.type="null",U.description="null"):Array.isArray(U.value)?(U.type="array",U.description="Array["+U.value.length+"] "+JSON.stringify(U.value)):U.value instanceof Date?U.type="date":(U.type="object",U.description="Object "+JSON.stringify(U.value))}return U}isExpanded(){return this.expanded&&!(this.depth>-1&&this._currentDepth>=this.depth)}decycle(v){const N=new WeakMap;return function U(fe,Q){let he,Re;return"object"!=typeof fe||null===fe||fe instanceof Boolean||fe instanceof Date||fe instanceof Number||fe instanceof RegExp||fe instanceof String?fe:(he=N.get(fe),void 0!==he?{$ref:he}:(N.set(fe,Q),Array.isArray(fe)?(Re=[],fe.forEach(function(_e,be){Re[be]=U(_e,Q+"["+be+"]")})):(Re={},Object.keys(fe).forEach(function(_e){Re[_e]=U(fe[_e],Q+"["+JSON.stringify(_e)+"]")})),Re))}(v,"$")}}return A.\u0275fac=function(v){return new(v||A)},A.\u0275cmp=u.\u0275\u0275defineComponent({type:A,selectors:[["ngx-json-viewer"]],inputs:{expanded:"expanded",depth:"depth",_currentDepth:"_currentDepth",json:"json"},features:[u.\u0275\u0275NgOnChangesFeature],decls:2,vars:1,consts:[[1,"ngx-json-viewer"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[3,"ngClass","click"],["class","toggler",4,"ngIf"],[1,"segment-key"],[1,"segment-separator"],["class","segment-value",4,"ngIf"],["class","children",4,"ngIf"],[1,"toggler"],[1,"segment-value"],[1,"children"],[3,"json","expanded","depth","_currentDepth"]],template:function(v,N){1&v&&(u.\u0275\u0275elementStart(0,"section",0),u.\u0275\u0275template(1,C,9,11,"section",1),u.\u0275\u0275elementEnd()),2&v&&(u.\u0275\u0275advance(1),u.\u0275\u0275property("ngForOf",N.segments))},directives:[i.NgForOf,i.NgClass,i.NgIf,A],styles:['@charset "UTF-8";.ngx-json-viewer[_ngcontent-%COMP%]{font-family:monospace;font-size:1em;height:100%;overflow:hidden;position:relative;width:100%}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%]{margin:1px 1px 1px 12px;padding:2px}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%]{word-wrap:break-word}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]{color:#787878;font-size:.8em;line-height:1.2em;margin-left:-14px;margin-top:3px;position:absolute;vertical-align:middle}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]:after{content:"\u25ba";display:inline-block;transition:transform .1s ease-in}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-key[_ngcontent-%COMP%]{color:#4e187c}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-separator[_ngcontent-%COMP%]{color:#999}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-value[_ngcontent-%COMP%]{color:#000}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .children[_ngcontent-%COMP%]{margin-left:12px}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-string[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#ff6b6b}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-number[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#009688}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-boolean[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#b938a4}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-date[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#05668d}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-function[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#999}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#fff}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:red}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-key[_ngcontent-%COMP%]{color:#999}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:#999}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%]{white-space:nowrap}.ngx-json-viewer[_ngcontent-%COMP%] .expanded[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]:after{transform:rotate(90deg)}.ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]{cursor:pointer}']}),A})(),h=(()=>{class A{}return A.\u0275fac=function(v){return new(v||A)},A.\u0275mod=u.\u0275\u0275defineNgModule({type:A}),A.\u0275inj=u.\u0275\u0275defineInjector({imports:[[i.CommonModule]]}),A})()},9802:(je,g,l)=>{"use strict";l.r(g),l.d(g,{ArgumentOutOfRangeError:()=>Ee,AsyncSubject:()=>Q,BehaviorSubject:()=>N.X,ConnectableObservable:()=>_,EMPTY:()=>ge.E,EmptyError:()=>pe,NEVER:()=>P,NotFoundError:()=>Ze,Notification:()=>ve,NotificationKind:()=>Je,ObjectUnsubscribedError:()=>mt.N,Observable:()=>i.y,ReplaySubject:()=>fe,Scheduler:()=>Pe.b,SequenceError:()=>gt,Subject:()=>v.x,Subscriber:()=>z.Lv,Subscription:()=>u.w0,TimeoutError:()=>V,UnsubscriptionError:()=>le.B,VirtualAction:()=>de,VirtualTimeScheduler:()=>$e,animationFrame:()=>st.r,animationFrameScheduler:()=>st.Z,animationFrames:()=>h,asap:()=>he.e,asapScheduler:()=>he.E,async:()=>Re.P,asyncScheduler:()=>Re.z,audit:()=>Sn.U,auditTime:()=>jn.e,bindCallback:()=>nt,bindNodeCallback:()=>ht,buffer:()=>Cn,bufferCount:()=>xn,bufferTime:()=>K,bufferToggle:()=>Se,bufferWhen:()=>G,catchError:()=>Ae.K,combineAll:()=>En,combineLatest:()=>pt.a,combineLatestAll:()=>Ft,combineLatestWith:()=>In,concat:()=>Ct.z,concatAll:()=>Ln.u,concatMap:()=>fn.b,concatMapTo:()=>Tn,concatWith:()=>Nn,config:()=>kn.v,connect:()=>fi,connectable:()=>xt,count:()=>Vn,debounce:()=>$n,debounceTime:()=>pi.b,defaultIfEmpty:()=>bi,defer:()=>kt.P,delay:()=>ei.g,delayWhen:()=>Hn.j,dematerialize:()=>Vi,distinct:()=>hr,distinctUntilChanged:()=>fr.x,distinctUntilKeyChanged:()=>Zn,elementAt:()=>$r,empty:()=>ge.c,endWith:()=>Yi,every:()=>Ar,exhaust:()=>Ji,exhaustAll:()=>Mi,exhaustMap:()=>mr,expand:()=>Or,filter:()=>Le.h,finalize:()=>xr.x,find:()=>Xi,findIndex:()=>Hi,first:()=>Rr,firstValueFrom:()=>ke,flatMap:()=>Un,forkJoin:()=>pn.D,from:()=>Jt.D,fromEvent:()=>Nt.R,fromEventPattern:()=>Et,generate:()=>Ut,groupBy:()=>Ii,identity:()=>Be.y,ignoreElements:()=>gr.l,iif:()=>Xt,interval:()=>J,isEmpty:()=>ri,isObservable:()=>et.b,last:()=>Ai,lastValueFrom:()=>we,map:()=>li.U,mapTo:()=>qi.h,materialize:()=>Oi,max:()=>_r,merge:()=>B.T,mergeAll:()=>Ui.J,mergeMap:()=>qe.z,mergeMapTo:()=>xi,mergeScan:()=>Wn,mergeWith:()=>zn,min:()=>er,multicast:()=>mi,never:()=>re,noop:()=>Dt.Z,observable:()=>D.L,observeOn:()=>De.Q,of:()=>ie.of,onErrorResumeNext:()=>it,pairs:()=>Bt,pairwise:()=>tr,partition:()=>He,pipe:()=>ct.z,pluck:()=>Fr,publish:()=>gi,publishBehavior:()=>Ri,publishLast:()=>nr,publishReplay:()=>Ci,queue:()=>Ye,queueScheduler:()=>Fe,race:()=>ue,raceWith:()=>kr,range:()=>lt,reduce:()=>Tt,refCount:()=>s,repeat:()=>sn,repeatWhen:()=>k,retry:()=>ee,retryWhen:()=>F,sample:()=>se,sampleTime:()=>Ke,scan:()=>ut,scheduled:()=>bn.x,sequenceEqual:()=>_t,share:()=>yn.B,shareReplay:()=>dn,single:()=>on,skip:()=>an.T,skipLast:()=>Pn,skipUntil:()=>L,skipWhile:()=>x,startWith:()=>I.O,subscribeOn:()=>Te.R,switchAll:()=>Xe,switchMap:()=>X.w,switchMapTo:()=>Ot,switchScan:()=>Dn,take:()=>Zi.q,takeLast:()=>Pi,takeUntil:()=>Yn.R,takeWhile:()=>Di,tap:()=>ir.b,throttle:()=>Gr,throttleTime:()=>bt,throwError:()=>xe._,throwIfEmpty:()=>pr,timeInterval:()=>gn,timeout:()=>ae,timeoutWith:()=>Rn,timer:()=>ce.H,timestamp:()=>Qr,toArray:()=>zt,using:()=>Rt,window:()=>yr,windowCount:()=>_i,windowTime:()=>Zr,windowToggle:()=>Yr,windowWhen:()=>W,withLatestFrom:()=>f,zip:()=>tn,zipAll:()=>p,zipWith:()=>Z});var i=l(9751),u=l(6921),m=l(4482),c=l(5403);function s(){return(0,m.e)((E,S)=>{let R=null;E._refCount++;const j=(0,c.x)(S,void 0,void 0,void 0,()=>{if(!E||E._refCount<=0||0<--E._refCount)return void(R=null);const te=E._connection,ye=R;R=null,te&&(!ye||te===ye)&&te.unsubscribe(),S.unsubscribe()});E.subscribe(j),j.closed||(R=E.connect())})}class _ extends i.y{constructor(S,R){super(),this.source=S,this.subjectFactory=R,this._subject=null,this._refCount=0,this._connection=null,(0,m.A)(S)&&(this.lift=S.lift)}_subscribe(S){return this.getSubject().subscribe(S)}getSubject(){const S=this._subject;return(!S||S.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:S}=this;this._subject=this._connection=null,null==S||S.unsubscribe()}connect(){let S=this._connection;if(!S){S=this._connection=new u.w0;const R=this.getSubject();S.add(this.source.subscribe((0,c.x)(R,void 0,()=>{this._teardown(),R.complete()},j=>{this._teardown(),R.error(j)},()=>this._teardown()))),S.closed&&(this._connection=null,S=u.w0.EMPTY)}return S}refCount(){return s()(this)}}var D=l(8822);const C={now:()=>(C.delegate||performance).now(),delegate:void 0};var w=l(3399);function h(E){return E?A(E):T}function A(E){const{schedule:S}=w.l;return new i.y(R=>{const j=new u.w0,te=E||C,ye=te.now(),We=rt=>{const ot=te.now();R.next({timestamp:E?ot:rt,elapsed:ot-ye}),R.closed||j.add(S(We))};return j.add(S(We)),j})}const T=A();var v=l(6758),N=l(1135),U=l(6063);class fe extends v.x{constructor(S=1/0,R=1/0,j=U.l){super(),this._bufferSize=S,this._windowTime=R,this._timestampProvider=j,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=R===1/0,this._bufferSize=Math.max(1,S),this._windowTime=Math.max(1,R)}next(S){const{isStopped:R,_buffer:j,_infiniteTimeWindow:te,_timestampProvider:ye,_windowTime:We}=this;R||(j.push(S),!te&&j.push(ye.now()+We)),this._trimBuffer(),super.next(S)}_subscribe(S){this._throwIfClosed(),this._trimBuffer();const R=this._innerSubscribe(S),{_infiniteTimeWindow:j,_buffer:te}=this,ye=te.slice();for(let We=0;We<ye.length&&!S.closed;We+=j?1:2)S.next(ye[We]);return this._checkFinalizedStatuses(S),R}_trimBuffer(){const{_bufferSize:S,_timestampProvider:R,_buffer:j,_infiniteTimeWindow:te}=this,ye=(te?1:2)*S;if(S<1/0&&ye<j.length&&j.splice(0,j.length-ye),!te){const We=R.now();let rt=0;for(let ot=1;ot<j.length&&j[ot]<=We;ot+=2)rt=ot;rt&&j.splice(0,rt+1)}}}class Q extends v.x{constructor(){super(...arguments),this._value=null,this._hasValue=!1,this._isComplete=!1}_checkFinalizedStatuses(S){const{hasError:R,_hasValue:j,_value:te,thrownError:ye,isStopped:We,_isComplete:rt}=this;R?S.error(ye):(We||rt)&&(j&&S.next(te),S.complete())}next(S){this.isStopped||(this._value=S,this._hasValue=!0)}complete(){const{_hasValue:S,_value:R,_isComplete:j}=this;j||(this._isComplete=!0,S&&super.next(R),super.complete())}}var he=l(3101),Re=l(4986),_e=l(4408),q=l(8950);const Fe=new class Ce extends q.v{}(class be extends _e.o{constructor(S,R){super(S,R),this.scheduler=S,this.work=R}schedule(S,R=0){return R>0?super.schedule(S,R):(this.delay=R,this.state=S,this.scheduler.flush(this),this)}execute(S,R){return R>0||this.closed?super.execute(S,R):this._execute(S,R)}requestAsyncId(S,R,j=0){return null!=j&&j>0||null==j&&this.delay>0?super.requestAsyncId(S,R,j):S.flush(this)}}),Ye=Fe;var st=l(29);let $e=(()=>{class E extends q.v{constructor(R=de,j=1/0){super(R,()=>this.frame),this.maxFrames=j,this.frame=0,this.index=-1}flush(){const{actions:R,maxFrames:j}=this;let te,ye;for(;(ye=R[0])&&ye.delay<=j&&(R.shift(),this.frame=ye.delay,!(te=ye.execute(ye.state,ye.delay))););if(te){for(;ye=R.shift();)ye.unsubscribe();throw te}}}return E.frameTimeFactor=10,E})();class de extends _e.o{constructor(S,R,j=(S.index+=1)){super(S,R),this.scheduler=S,this.work=R,this.index=j,this.active=!0,this.index=S.index=j}schedule(S,R=0){if(Number.isFinite(R)){if(!this.id)return super.schedule(S,R);this.active=!1;const j=new de(this.scheduler,this.work);return this.add(j),j.schedule(S,R)}return u.w0.EMPTY}requestAsyncId(S,R,j=0){this.delay=S.frame+j;const{actions:te}=S;return te.push(this),te.sort(de.sortActions),!0}recycleAsyncId(S,R,j=0){}_execute(S,R){if(!0===this.active)return super._execute(S,R)}static sortActions(S,R){return S.delay===R.delay?S.index===R.index?0:S.index>R.index?1:-1:S.delay>R.delay?1:-1}}var Pe=l(6646),z=l(930),ge=l(515),ie=l(9646),xe=l(2843),me=l(576),Je=(()=>{return(E=Je||(Je={})).NEXT="N",E.ERROR="E",E.COMPLETE="C",Je;var E})();class ve{constructor(S,R,j){this.kind=S,this.value=R,this.error=j,this.hasValue="N"===S}observe(S){return ze(this,S)}do(S,R,j){const{kind:te,value:ye,error:We}=this;return"N"===te?null==S?void 0:S(ye):"E"===te?null==R?void 0:R(We):null==j?void 0:j()}accept(S,R,j){var te;return(0,me.m)(null===(te=S)||void 0===te?void 0:te.next)?this.observe(S):this.do(S,R,j)}toObservable(){const{kind:S,value:R,error:j}=this,te="N"===S?(0,ie.of)(R):"E"===S?(0,xe._)(()=>j):"C"===S?ge.E:0;if(!te)throw new TypeError(`Unexpected notification kind ${S}`);return te}static createNext(S){return new ve("N",S)}static createError(S){return new ve("E",void 0,S)}static createComplete(){return ve.completeNotification}}function ze(E,S){var R,j,te;const{kind:ye,value:We,error:rt}=E;if("string"!=typeof ye)throw new TypeError('Invalid notification, missing "kind"');"N"===ye?null===(R=S.next)||void 0===R||R.call(S,We):"E"===ye?null===(j=S.error)||void 0===j||j.call(S,rt):null===(te=S.complete)||void 0===te||te.call(S)}ve.completeNotification=new ve("C");var ct=l(9635),Dt=l(5032),Be=l(4671),et=l(5191),ne=l(3888);const pe=(0,ne.d)(E=>function(){E(this),this.name="EmptyError",this.message="no elements in sequence"});function we(E,S){const R="object"==typeof S;return new Promise((j,te)=>{let We,ye=!1;E.subscribe({next:rt=>{We=rt,ye=!0},error:te,complete:()=>{ye?j(We):R?j(S.defaultValue):te(new pe)}})})}function ke(E,S){const R="object"==typeof S;return new Promise((j,te)=>{const ye=new z.Hp({next:We=>{j(We),ye.unsubscribe()},error:te,complete:()=>{R?j(S.defaultValue):te(new pe)}});E.subscribe(ye)})}const Ee=(0,ne.d)(E=>function(){E(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}),Ze=(0,ne.d)(E=>function(R){E(this),this.name="NotFoundError",this.message=R});var mt=l(7448);const gt=(0,ne.d)(E=>function(R){E(this),this.name="SequenceError",this.message=R});var St=l(1165),dt=l(8421),Ge=l(9672);const V=(0,ne.d)(E=>function(R=null){E(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=R});function ae(E,S){const{first:R,each:j,with:te=Oe,scheduler:ye=(null!=S?S:Re.z),meta:We=null}=(0,St.q)(E)?{first:E}:"number"==typeof E?{each:E}:E;if(null==R&&null==j)throw new TypeError("No timeout provided.");return(0,m.e)((rt,ot)=>{let yt,Mt,Vt=null,qt=0;const un=Wt=>{Mt=(0,Ge.f)(ot,ye,()=>{try{yt.unsubscribe(),(0,dt.Xf)(te({meta:We,lastValue:Vt,seen:qt})).subscribe(ot)}catch(Gt){ot.error(Gt)}},Wt)};yt=rt.subscribe((0,c.x)(ot,Wt=>{null==Mt||Mt.unsubscribe(),qt++,ot.next(Vt=Wt),j>0&&un(j)},void 0,void 0,()=>{(null==Mt?void 0:Mt.closed)||null==Mt||Mt.unsubscribe(),Vt=null})),un(null!=R?"number"==typeof R?R:+R-ye.now():j)})}function Oe(E){throw new V(E)}var le=l(7896),Ie=l(3532),Te=l(9468),oe=l(3268),De=l(5363);function Qe(E,S,R,j){if(R){if(!(0,Ie.K)(R))return function(...te){return Qe(E,S,j).apply(this,te).pipe((0,oe.Z)(R))};j=R}return j?function(...te){return Qe(E,S).apply(this,te).pipe((0,Te.R)(j),(0,De.Q)(j))}:function(...te){const ye=new Q;let We=!0;return new i.y(rt=>{const ot=ye.subscribe(rt);if(We){We=!1;let yt=!1,Mt=!1;S.apply(this,[...te,(...Vt)=>{if(E){const qt=Vt.shift();if(null!=qt)return void ye.error(qt)}ye.next(1<Vt.length?Vt:Vt[0]),Mt=!0,yt&&ye.complete()}]),Mt&&ye.complete(),yt=!0}return ot})}}function nt(E,S,R){return Qe(!1,E,S,R)}function ht(E,S,R){return Qe(!0,E,S,R)}var pt=l(9841),Ct=l(1350),kt=l(9770);const Kt={connector:()=>new v.x,resetOnDisconnect:!0};function xt(E,S=Kt){let R=null;const{connector:j,resetOnDisconnect:te=!0}=S;let ye=j();const We=new i.y(rt=>ye.subscribe(rt));return We.connect=()=>((!R||R.closed)&&(R=(0,kt.P)(()=>E).subscribe(ye),te&&R.add(()=>ye=j())),R),We}var pn=l(4128),Jt=l(188),Nt=l(4968);function Et(E,S,R){return R?Et(E,S).pipe((0,oe.Z)(R)):new i.y(j=>{const te=(...We)=>j.next(1===We.length?We[0]:We),ye=E(te);return(0,me.m)(S)?()=>S(te,ye):void 0})}var ln=l(6340);function Ut(E,S,R,j,te){let ye,We;function*rt(){for(let ot=We;!S||S(ot);ot=R(ot))yield ye(ot)}return 1===arguments.length?({initialState:We,condition:S,iterate:R,resultSelector:ye=Be.y,scheduler:te}=E):(We=E,!j||(0,Ie.K)(j)?(ye=Be.y,te=j):ye=j),(0,kt.P)(te?()=>(0,ln.Q)(rt(),te):rt)}function Xt(E,S,R){return(0,kt.P)(()=>E()?S:R)}var ce=l(2805);function J(E=0,S=Re.z){return E<0&&(E=0),(0,ce.H)(E,E,S)}var B=l(6451);const P=new i.y(Dt.Z);function re(){return P}const{isArray:b}=Array;function $(E){return 1===E.length&&b(E[0])?E[0]:E}function it(...E){return function Ne(...E){const S=$(E);return(0,m.e)((R,j)=>{const te=[R,...S],ye=()=>{if(!j.closed)if(te.length>0){let We;try{We=(0,dt.Xf)(te.shift())}catch(ot){return void ye()}const rt=(0,c.x)(j,void 0,Dt.Z,Dt.Z);We.subscribe(rt),rt.add(ye)}else j.complete()};ye()})}($(E))(ge.E)}function Bt(E,S){return(0,Jt.D)(Object.entries(E),S)}function jt(E,S){return(R,j)=>!E.call(S,R,j)}var Le=l(9300);function He(E,S,R){return[(0,Le.h)(S,R)((0,dt.Xf)(E)),(0,Le.h)(jt(S,R))((0,dt.Xf)(E))]}function ue(...E){return 1===(E=$(E)).length?(0,dt.Xf)(E[0]):new i.y(Ve(E))}function Ve(E){return S=>{let R=[];for(let j=0;R&&!S.closed&&j<E.length;j++)R.push((0,dt.Xf)(E[j]).subscribe((0,c.x)(S,te=>{if(R){for(let ye=0;ye<R.length;ye++)ye!==j&&R[ye].unsubscribe();R=null}S.next(te)})))}}function lt(E,S,R){if(null==S&&(S=E,E=0),S<=0)return ge.E;const j=S+E;return new i.y(R?te=>{let ye=E;return R.schedule(function(){ye<j?(te.next(ye++),this.schedule()):te.complete()})}:te=>{let ye=E;for(;ye<j&&!te.closed;)te.next(ye++);te.complete()})}function Rt(E,S){return new i.y(R=>{const j=E(),te=S(j);return(te?(0,dt.Xf)(te):ge.E).subscribe(R),()=>{j&&j.unsubscribe()}})}var Pt=l(3269);function tn(...E){const S=(0,Pt.jO)(E),R=$(E);return R.length?new i.y(j=>{let te=R.map(()=>[]),ye=R.map(()=>!1);j.add(()=>{te=ye=null});for(let We=0;!j.closed&&We<R.length;We++)(0,dt.Xf)(R[We]).subscribe((0,c.x)(j,rt=>{if(te[We].push(rt),te.every(ot=>ot.length)){const ot=te.map(yt=>yt.shift());j.next(S?S(...ot):ot),te.some((yt,Mt)=>!yt.length&&ye[Mt])&&j.complete()}},()=>{ye[We]=!0,!te[We].length&&j.complete()}));return()=>{te=ye=null}}):ge.E}var bn=l(3762),kn=l(2416),Sn=l(5615),jn=l(453);function Cn(E){return(0,m.e)((S,R)=>{let j=[];return S.subscribe((0,c.x)(R,te=>j.push(te),()=>{R.next(j),R.complete()})),E.subscribe((0,c.x)(R,()=>{const te=j;j=[],R.next(te)},Dt.Z)),()=>{j=null}})}var Qn=l(8737);function xn(E,S=null){return S=null!=S?S:E,(0,m.e)((R,j)=>{let te=[],ye=0;R.subscribe((0,c.x)(j,We=>{let rt=null;ye++%S==0&&te.push([]);for(const ot of te)ot.push(We),E<=ot.length&&(rt=null!=rt?rt:[],rt.push(ot));if(rt)for(const ot of rt)(0,Qn.P)(te,ot),j.next(ot)},()=>{for(const We of te)j.next(We);j.complete()},void 0,()=>{te=null}))})}function K(E,...S){var R,j;const te=null!==(R=(0,Pt.yG)(S))&&void 0!==R?R:Re.z,ye=null!==(j=S[0])&&void 0!==j?j:null,We=S[1]||1/0;return(0,m.e)((rt,ot)=>{let yt=[],Mt=!1;const Vt=Wt=>{const{buffer:Gt,subs:hn}=Wt;hn.unsubscribe(),(0,Qn.P)(yt,Wt),ot.next(Gt),Mt&&qt()},qt=()=>{if(yt){const Wt=new u.w0;ot.add(Wt);const hn={buffer:[],subs:Wt};yt.push(hn),(0,Ge.f)(Wt,te,()=>Vt(hn),E)}};null!==ye&&ye>=0?(0,Ge.f)(ot,te,qt,ye,!0):Mt=!0,qt();const un=(0,c.x)(ot,Wt=>{const Gt=yt.slice();for(const hn of Gt){const{buffer:An}=hn;An.push(Wt),We<=An.length&&Vt(hn)}},()=>{for(;null==yt?void 0:yt.length;)ot.next(yt.shift().buffer);null==un||un.unsubscribe(),ot.complete(),ot.unsubscribe()},void 0,()=>yt=null);rt.subscribe(un)})}function Se(E,S){return(0,m.e)((R,j)=>{const te=[];(0,dt.Xf)(E).subscribe((0,c.x)(j,ye=>{const We=[];te.push(We);const rt=new u.w0;rt.add((0,dt.Xf)(S(ye)).subscribe((0,c.x)(j,()=>{(0,Qn.P)(te,We),j.next(We),rt.unsubscribe()},Dt.Z)))},Dt.Z)),R.subscribe((0,c.x)(j,ye=>{for(const We of te)We.push(ye)},()=>{for(;te.length>0;)j.next(te.shift());j.complete()}))})}function G(E){return(0,m.e)((S,R)=>{let j=null,te=null;const ye=()=>{null==te||te.unsubscribe();const We=j;j=[],We&&R.next(We),(0,dt.Xf)(E()).subscribe(te=(0,c.x)(R,ye,Dt.Z))};ye(),S.subscribe((0,c.x)(R,We=>null==j?void 0:j.push(We),()=>{j&&R.next(j),R.complete()},void 0,()=>j=te=null))})}var Ae=l(262),qe=l(6099);function at(E,S,R,j,te){return(ye,We)=>{let rt=R,ot=S,yt=0;ye.subscribe((0,c.x)(We,Mt=>{const Vt=yt++;ot=rt?E(ot,Mt,Vt):(rt=!0,Mt),j&&We.next(ot)},te&&(()=>{rt&&We.next(ot),We.complete()})))}}function Tt(E,S){return(0,m.e)(at(E,S,arguments.length>=2,!1,!0))}const At=(E,S)=>(E.push(S),E);function zt(){return(0,m.e)((E,S)=>{Tt(At,[])(E).subscribe(S)})}function mn(E,S){return(0,ct.z)(zt(),(0,qe.z)(R=>E(R)),S?(0,oe.Z)(S):Be.y)}function Ft(E){return mn(pt.a,E)}const En=Ft;function nn(...E){const S=(0,Pt.jO)(E);return S?(0,ct.z)(nn(...E),(0,oe.Z)(S)):(0,m.e)((R,j)=>{(0,pt.l)([R,...$(E)])(j)})}function In(...E){return nn(...E)}var Ln=l(7886),fn=l(4351);function Tn(E,S){return(0,me.m)(S)?(0,fn.b)(()=>E,S):(0,fn.b)(()=>E)}function Nn(...E){return function qn(...E){const S=(0,Pt.yG)(E);return(0,m.e)((R,j)=>{(0,Ln.u)()((0,Jt.D)([R,...E],S)).subscribe(j)})}(...E)}const hi={connector:()=>new v.x};function fi(E,S=hi){const{connector:R}=S;return(0,m.e)((j,te)=>{const ye=R();(0,Jt.D)(E(function cn(E){return new i.y(S=>E.subscribe(S))}(ye))).subscribe(te),te.add(j.subscribe(ye))})}function Vn(E){return Tt((S,R,j)=>!E||E(R,j)?S+1:S,0)}function $n(E){return(0,m.e)((S,R)=>{let j=!1,te=null,ye=null;const We=()=>{if(null==ye||ye.unsubscribe(),ye=null,j){j=!1;const rt=te;te=null,R.next(rt)}};S.subscribe((0,c.x)(R,rt=>{null==ye||ye.unsubscribe(),j=!0,te=rt,ye=(0,c.x)(R,We,Dt.Z),(0,dt.Xf)(E(rt)).subscribe(ye)},()=>{We(),R.complete()},void 0,()=>{te=ye=null}))})}var pi=l(8372);function bi(E){return(0,m.e)((S,R)=>{let j=!1;S.subscribe((0,c.x)(R,te=>{j=!0,R.next(te)},()=>{j||R.next(E),R.complete()}))})}var ei=l(4326),Hn=l(1260);function Vi(){return(0,m.e)((E,S)=>{E.subscribe((0,c.x)(S,R=>ze(R,S)))})}function hr(E,S){return(0,m.e)((R,j)=>{const te=new Set;R.subscribe((0,c.x)(j,ye=>{const We=E?E(ye):ye;te.has(We)||(te.add(We),j.next(ye))})),null==S||S.subscribe((0,c.x)(j,()=>te.clear(),Dt.Z))})}var fr=l(1884);function Zn(E,S){return(0,fr.x)((R,j)=>S?S(R[E],j[E]):R[E]===j[E])}function pr(E=$i){return(0,m.e)((S,R)=>{let j=!1;S.subscribe((0,c.x)(R,te=>{j=!0,R.next(te)},()=>j?R.complete():R.error(E())))})}function $i(){return new pe}var Zi=l(5698);function $r(E,S){if(E<0)throw new Ee;const R=arguments.length>=2;return j=>j.pipe((0,Le.h)((te,ye)=>ye===E),(0,Zi.q)(1),R?bi(S):pr(()=>new Ee))}function Yi(...E){return S=>(0,Ct.z)(S,(0,ie.of)(...E))}function Ar(E,S){return(0,m.e)((R,j)=>{let te=0;R.subscribe((0,c.x)(j,ye=>{E.call(S,ye,te++,R)||(j.next(!1),j.complete())},()=>{j.next(!0),j.complete()}))})}function Mi(){return(0,m.e)((E,S)=>{let R=!1,j=null;E.subscribe((0,c.x)(S,te=>{j||(j=(0,dt.Xf)(te).subscribe((0,c.x)(S,void 0,()=>{j=null,R&&S.complete()})))},()=>{R=!0,!j&&S.complete()}))})}const Ji=Mi;var li=l(4004);function mr(E,S){return S?R=>R.pipe(mr((j,te)=>(0,dt.Xf)(E(j,te)).pipe((0,li.U)((ye,We)=>S(j,ye,te,We))))):(0,m.e)((R,j)=>{let te=0,ye=null,We=!1;R.subscribe((0,c.x)(j,rt=>{ye||(ye=(0,c.x)(j,void 0,()=>{ye=null,We&&j.complete()}),(0,dt.Xf)(E(rt,te++)).subscribe(ye))},()=>{We=!0,!ye&&j.complete()}))})}var wi=l(2733);function Or(E,S=1/0,R){return S=(S||0)<1?1/0:S,(0,m.e)((j,te)=>(0,wi.p)(j,te,E,S,void 0,!0,R))}var xr=l(8746);function Xi(E,S){return(0,m.e)(Si(E,S,"value"))}function Si(E,S,R){const j="index"===R;return(te,ye)=>{let We=0;te.subscribe((0,c.x)(ye,rt=>{const ot=We++;E.call(S,rt,ot,te)&&(ye.next(j?ot:rt),ye.complete())},()=>{ye.next(j?-1:void 0),ye.complete()}))}}function Hi(E,S){return(0,m.e)(Si(E,S,"index"))}function Rr(E,S){const R=arguments.length>=2;return j=>j.pipe(E?(0,Le.h)((te,ye)=>E(te,ye,j)):Be.y,(0,Zi.q)(1),R?bi(S):pr(()=>new pe))}function Ii(E,S,R,j){return(0,m.e)((te,ye)=>{let We;S&&"function"!=typeof S?({duration:R,element:We,connector:j}=S):We=S;const rt=new Map,ot=Wt=>{rt.forEach(Wt),Wt(ye)},yt=Wt=>ot(Gt=>Gt.error(Wt));let Mt=0,Vt=!1;const qt=new c.Q(ye,Wt=>{try{const Gt=E(Wt);let hn=rt.get(Gt);if(!hn){rt.set(Gt,hn=j?j():new v.x);const An=function un(Wt,Gt){const hn=new i.y(An=>{Mt++;const Fn=Gt.subscribe(An);return()=>{Fn.unsubscribe(),0==--Mt&&Vt&&qt.unsubscribe()}});return hn.key=Wt,hn}(Gt,hn);if(ye.next(An),R){const Fn=(0,c.x)(hn,()=>{hn.complete(),null==Fn||Fn.unsubscribe()},void 0,void 0,()=>rt.delete(Gt));qt.add((0,dt.Xf)(R(An)).subscribe(Fn))}}hn.next(We?We(Wt):Wt)}catch(Gt){yt(Gt)}},()=>ot(Wt=>Wt.complete()),yt,()=>rt.clear(),()=>(Vt=!0,0===Mt));te.subscribe(qt)})}var gr=l(8502);function ri(){return(0,m.e)((E,S)=>{E.subscribe((0,c.x)(S,()=>{S.next(!1),S.complete()},()=>{S.next(!0),S.complete()}))})}function Pi(E){return E<=0?()=>ge.E:(0,m.e)((S,R)=>{let j=[];S.subscribe((0,c.x)(R,te=>{j.push(te),E<j.length&&j.shift()},()=>{for(const te of j)R.next(te);R.complete()},void 0,()=>{j=null}))})}function Ai(E,S){const R=arguments.length>=2;return j=>j.pipe(E?(0,Le.h)((te,ye)=>E(te,ye,j)):Be.y,Pi(1),R?bi(S):pr(()=>new pe))}var qi=l(9718);function Oi(){return(0,m.e)((E,S)=>{E.subscribe((0,c.x)(S,R=>{S.next(ve.createNext(R))},()=>{S.next(ve.createComplete()),S.complete()},R=>{S.next(ve.createError(R)),S.complete()}))})}function _r(E){return Tt((0,me.m)(E)?(S,R)=>E(S,R)>0?S:R:(S,R)=>S>R?S:R)}var Ui=l(8189);const Un=qe.z;function xi(E,S,R=1/0){return(0,me.m)(S)?(0,qe.z)(()=>E,S,R):("number"==typeof S&&(R=S),(0,qe.z)(()=>E,R))}function Wn(E,S,R=1/0){return(0,m.e)((j,te)=>{let ye=S;return(0,wi.p)(j,te,(We,rt)=>E(ye,We,rt),R,We=>{ye=We},!1,void 0,()=>ye=null)})}function zn(...E){return function Wi(...E){const S=(0,Pt.yG)(E),R=(0,Pt._6)(E,1/0);return E=$(E),(0,m.e)((j,te)=>{(0,Ui.J)(R)((0,Jt.D)([j,...E],S)).subscribe(te)})}(...E)}function er(E){return Tt((0,me.m)(E)?(S,R)=>E(S,R)<0?S:R:(S,R)=>S<R?S:R)}function mi(E,S){const R=(0,me.m)(E)?E:()=>E;return(0,me.m)(S)?fi(S,{connector:R}):j=>new _(j,R)}function tr(){return(0,m.e)((E,S)=>{let R,j=!1;E.subscribe((0,c.x)(S,te=>{const ye=R;R=te,j&&S.next([ye,te]),j=!0}))})}function Fr(...E){const S=E.length;if(0===S)throw new Error("list of properties cannot be empty.");return(0,li.U)(R=>{let j=R;for(let te=0;te<S;te++){const ye=null==j?void 0:j[E[te]];if(void 0===ye)return;j=ye}return j})}function gi(E){return E?S=>fi(E)(S):S=>mi(new v.x)(S)}function Ri(E){return S=>{const R=new N.X(E);return new _(S,()=>R)}}function nr(){return E=>{const S=new Q;return new _(E,()=>S)}}function Ci(E,S,R,j){R&&!(0,me.m)(R)&&(j=R);const te=(0,me.m)(R)?R:void 0;return ye=>mi(new fe(E,S,j),te)(ye)}function kr(...E){return E.length?(0,m.e)((S,R)=>{Ve([S,...E])(R)}):Be.y}function sn(E){let R,S=1/0;return null!=E&&("object"==typeof E?({count:S=1/0,delay:R}=E):S=E),S<=0?()=>ge.E:(0,m.e)((j,te)=>{let We,ye=0;const rt=()=>{if(null==We||We.unsubscribe(),We=null,null!=R){const yt="number"==typeof R?(0,ce.H)(R):(0,dt.Xf)(R(ye)),Mt=(0,c.x)(te,()=>{Mt.unsubscribe(),ot()});yt.subscribe(Mt)}else ot()},ot=()=>{let yt=!1;We=j.subscribe((0,c.x)(te,void 0,()=>{++ye<S?We?rt():yt=!0:te.complete()})),yt&&rt()};ot()})}function k(E){return(0,m.e)((S,R)=>{let j,ye,te=!1,We=!1,rt=!1;const ot=()=>rt&&We&&(R.complete(),!0),Mt=()=>{rt=!1,j=S.subscribe((0,c.x)(R,void 0,()=>{rt=!0,!ot()&&(ye||(ye=new v.x,E(ye).subscribe((0,c.x)(R,()=>{j?Mt():te=!0},()=>{We=!0,ot()}))),ye).next()})),te&&(j.unsubscribe(),j=null,te=!1,Mt())};Mt()})}function ee(E=1/0){let S;S=E&&"object"==typeof E?E:{count:E};const{count:R=1/0,delay:j,resetOnSuccess:te=!1}=S;return R<=0?Be.y:(0,m.e)((ye,We)=>{let ot,rt=0;const yt=()=>{let Mt=!1;ot=ye.subscribe((0,c.x)(We,Vt=>{te&&(rt=0),We.next(Vt)},void 0,Vt=>{if(rt++<R){const qt=()=>{ot?(ot.unsubscribe(),ot=null,yt()):Mt=!0};if(null!=j){const un="number"==typeof j?(0,ce.H)(j):(0,dt.Xf)(j(Vt,rt)),Wt=(0,c.x)(We,()=>{Wt.unsubscribe(),qt()},()=>{We.complete()});un.subscribe(Wt)}else qt()}else We.error(Vt)})),Mt&&(ot.unsubscribe(),ot=null,yt())};yt()})}function F(E){return(0,m.e)((S,R)=>{let j,ye,te=!1;const We=()=>{j=S.subscribe((0,c.x)(R,void 0,void 0,rt=>{ye||(ye=new v.x,E(ye).subscribe((0,c.x)(R,()=>j?We():te=!0))),ye&&ye.next(rt)})),te&&(j.unsubscribe(),j=null,te=!1,We())};We()})}function se(E){return(0,m.e)((S,R)=>{let j=!1,te=null;S.subscribe((0,c.x)(R,ye=>{j=!0,te=ye})),E.subscribe((0,c.x)(R,()=>{if(j){j=!1;const ye=te;te=null,R.next(ye)}},Dt.Z))})}function Ke(E,S=Re.z){return se(J(E,S))}function ut(E,S){return(0,m.e)(at(E,S,arguments.length>=2,!0))}function _t(E,S=((R,j)=>R===j)){return(0,m.e)((R,j)=>{const te={buffer:[],complete:!1},ye={buffer:[],complete:!1},We=ot=>{j.next(ot),j.complete()},rt=(ot,yt)=>{const Mt=(0,c.x)(j,Vt=>{const{buffer:qt,complete:un}=yt;0===qt.length?un?We(!1):ot.buffer.push(Vt):!S(Vt,qt.shift())&&We(!1)},()=>{ot.complete=!0;const{complete:Vt,buffer:qt}=yt;Vt&&We(0===qt.length),null==Mt||Mt.unsubscribe()});return Mt};R.subscribe(rt(te,ye)),E.subscribe(rt(ye,te))})}var yn=l(3099);function dn(E,S,R){var j,te;let ye,We=!1;return E&&"object"==typeof E?(ye=null!==(j=E.bufferSize)&&void 0!==j?j:1/0,S=null!==(te=E.windowTime)&&void 0!==te?te:1/0,We=!!E.refCount,R=E.scheduler):ye=null!=E?E:1/0,(0,yn.B)({connector:()=>new fe(ye,S,R),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:We})}function on(E){return(0,m.e)((S,R)=>{let te,j=!1,ye=!1,We=0;S.subscribe((0,c.x)(R,rt=>{ye=!0,(!E||E(rt,We++,S))&&(j&&R.error(new gt("Too many matching values")),j=!0,te=rt)},()=>{j?(R.next(te),R.complete()):R.error(ye?new Ze("No matching values"):new pe)}))})}var an=l(5684);function Pn(E){return E<=0?Be.y:(0,m.e)((S,R)=>{let j=new Array(E),te=0;return S.subscribe((0,c.x)(R,ye=>{const We=te++;if(We<E)j[We]=ye;else{const rt=We%E,ot=j[rt];j[rt]=ye,R.next(ot)}})),()=>{j=null}})}function L(E){return(0,m.e)((S,R)=>{let j=!1;const te=(0,c.x)(R,()=>{null==te||te.unsubscribe(),j=!0},Dt.Z);(0,dt.Xf)(E).subscribe(te),S.subscribe((0,c.x)(R,ye=>j&&R.next(ye)))})}function x(E){return(0,m.e)((S,R)=>{let j=!1,te=0;S.subscribe((0,c.x)(R,ye=>(j||(j=!E(ye,te++)))&&R.next(ye)))})}var I=l(8675),X=l(3900);function Xe(){return(0,X.w)(Be.y)}function Ot(E,S){return(0,me.m)(S)?(0,X.w)(()=>E,S):(0,X.w)(()=>E)}function Dn(E,S){return(0,m.e)((R,j)=>{let te=S;return(0,X.w)((ye,We)=>E(te,ye,We),(ye,We)=>(te=We,We))(R).subscribe(j),()=>{te=null}})}var Yn=l(2722);function Di(E,S=!1){return(0,m.e)((R,j)=>{let te=0;R.subscribe((0,c.x)(j,ye=>{const We=E(ye,te++);(We||S)&&j.next(ye),!We&&j.complete()}))})}var ir=l(8505);const Kr={leading:!0,trailing:!1};function Gr(E,S=Kr){return(0,m.e)((R,j)=>{const{leading:te,trailing:ye}=S;let We=!1,rt=null,ot=null,yt=!1;const Mt=()=>{null==ot||ot.unsubscribe(),ot=null,ye&&(un(),yt&&j.complete())},Vt=()=>{ot=null,yt&&j.complete()},qt=Wt=>ot=(0,dt.Xf)(E(Wt)).subscribe((0,c.x)(j,Mt,Vt)),un=()=>{if(We){We=!1;const Wt=rt;rt=null,j.next(Wt),!yt&&qt(Wt)}};R.subscribe((0,c.x)(j,Wt=>{We=!0,rt=Wt,(!ot||ot.closed)&&(te?un():qt(Wt))},()=>{yt=!0,(!(ye&&We&&ot)||ot.closed)&&j.complete()}))})}function bt(E,S=Re.z,R=Kr){const j=(0,ce.H)(E,S);return Gr(()=>j,R)}function gn(E=Re.z){return(0,m.e)((S,R)=>{let j=E.now();S.subscribe((0,c.x)(R,te=>{const ye=E.now(),We=ye-j;j=ye,R.next(new so(te,We))}))})}class so{constructor(S,R){this.value=S,this.interval=R}}function Rn(E,S,R){let j,te,ye;if(R=null!=R?R:Re.P,(0,St.q)(E)?j=E:"number"==typeof E&&(te=E),!S)throw new TypeError("No observable provided to switch to");if(ye=()=>S,null==j&&null==te)throw new TypeError("No timeout provided.");return ae({first:j,each:te,scheduler:R,with:ye})}function Qr(E=U.l){return(0,li.U)(S=>({value:S,timestamp:E.now()}))}function yr(E){return(0,m.e)((S,R)=>{let j=new v.x;R.next(j.asObservable());const te=ye=>{j.error(ye),R.error(ye)};return S.subscribe((0,c.x)(R,ye=>null==j?void 0:j.next(ye),()=>{j.complete(),R.complete()},te)),E.subscribe((0,c.x)(R,()=>{j.complete(),R.next(j=new v.x)},Dt.Z,te)),()=>{null==j||j.unsubscribe(),j=null}})}function _i(E,S=0){const R=S>0?S:E;return(0,m.e)((j,te)=>{let ye=[new v.x],We=[],rt=0;te.next(ye[0].asObservable()),j.subscribe((0,c.x)(te,ot=>{for(const Mt of ye)Mt.next(ot);const yt=rt-E+1;if(yt>=0&&yt%R==0&&ye.shift().complete(),++rt%R==0){const Mt=new v.x;ye.push(Mt),te.next(Mt.asObservable())}},()=>{for(;ye.length>0;)ye.shift().complete();te.complete()},ot=>{for(;ye.length>0;)ye.shift().error(ot);te.error(ot)},()=>{We=null,ye=null}))})}function Zr(E,...S){var R,j;const te=null!==(R=(0,Pt.yG)(S))&&void 0!==R?R:Re.z,ye=null!==(j=S[0])&&void 0!==j?j:null,We=S[1]||1/0;return(0,m.e)((rt,ot)=>{let yt=[],Mt=!1;const Vt=Gt=>{const{window:hn,subs:An}=Gt;hn.complete(),An.unsubscribe(),(0,Qn.P)(yt,Gt),Mt&&qt()},qt=()=>{if(yt){const Gt=new u.w0;ot.add(Gt);const hn=new v.x,An={window:hn,subs:Gt,seen:0};yt.push(An),ot.next(hn.asObservable()),(0,Ge.f)(Gt,te,()=>Vt(An),E)}};null!==ye&&ye>=0?(0,Ge.f)(ot,te,qt,ye,!0):Mt=!0,qt();const un=Gt=>yt.slice().forEach(Gt),Wt=Gt=>{un(({window:hn})=>Gt(hn)),Gt(ot),ot.unsubscribe()};return rt.subscribe((0,c.x)(ot,Gt=>{un(hn=>{hn.window.next(Gt),We<=++hn.seen&&Vt(hn)})},()=>Wt(Gt=>Gt.complete()),Gt=>Wt(hn=>hn.error(Gt)))),()=>{yt=null}})}function Yr(E,S){return(0,m.e)((R,j)=>{const te=[],ye=We=>{for(;0<te.length;)te.shift().error(We);j.error(We)};(0,dt.Xf)(E).subscribe((0,c.x)(j,We=>{const rt=new v.x;te.push(rt);const ot=new u.w0;let Mt;try{Mt=(0,dt.Xf)(S(We))}catch(Vt){return void ye(Vt)}j.next(rt.asObservable()),ot.add(Mt.subscribe((0,c.x)(j,()=>{(0,Qn.P)(te,rt),rt.complete(),ot.unsubscribe()},Dt.Z,ye)))},Dt.Z)),R.subscribe((0,c.x)(j,We=>{const rt=te.slice();for(const ot of rt)ot.next(We)},()=>{for(;0<te.length;)te.shift().complete();j.complete()},ye,()=>{for(;0<te.length;)te.shift().unsubscribe()}))})}function W(E){return(0,m.e)((S,R)=>{let j,te;const ye=rt=>{j.error(rt),R.error(rt)},We=()=>{let rt;null==te||te.unsubscribe(),null==j||j.complete(),j=new v.x,R.next(j.asObservable());try{rt=(0,dt.Xf)(E())}catch(ot){return void ye(ot)}rt.subscribe(te=(0,c.x)(R,We,We,ye))};We(),S.subscribe((0,c.x)(R,rt=>j.next(rt),()=>{j.complete(),R.complete()},ye,()=>{null==te||te.unsubscribe(),j=null}))})}function f(...E){const S=(0,Pt.jO)(E);return(0,m.e)((R,j)=>{const te=E.length,ye=new Array(te);let We=E.map(()=>!1),rt=!1;for(let ot=0;ot<te;ot++)(0,dt.Xf)(E[ot]).subscribe((0,c.x)(j,yt=>{ye[ot]=yt,!rt&&!We[ot]&&(We[ot]=!0,(rt=We.every(Be.y))&&(We=null))},Dt.Z));R.subscribe((0,c.x)(j,ot=>{if(rt){const yt=[ot,...ye];j.next(S?S(...yt):yt)}}))})}function p(E){return mn(tn,E)}function Z(...E){return function O(...E){return(0,m.e)((S,R)=>{tn(S,...E).subscribe(R)})}(...E)}},1135:(je,g,l)=>{"use strict";l.d(g,{X:()=>u});var i=l(6758);class u extends i.x{constructor(c){super(),this._value=c}get value(){return this.getValue()}_subscribe(c){const s=super._subscribe(c);return!s.closed&&c.next(this._value),s}getValue(){const{hasError:c,thrownError:s,_value:_}=this;if(c)throw s;return this._throwIfClosed(),_}next(c){super.next(this._value=c)}}},9751:(je,g,l)=>{"use strict";l.d(g,{y:()=>C});var i=l(930),u=l(6921),m=l(8822),c=l(9635),s=l(2416),_=l(576),D=l(2806);let C=(()=>{class T{constructor(N){N&&(this._subscribe=N)}lift(N){const U=new T;return U.source=this,U.operator=N,U}subscribe(N,U,fe){const Q=function A(T){return T&&T instanceof i.Lv||function h(T){return T&&(0,_.m)(T.next)&&(0,_.m)(T.error)&&(0,_.m)(T.complete)}(T)&&(0,u.Nn)(T)}(N)?N:new i.Hp(N,U,fe);return(0,D.x)(()=>{const{operator:he,source:Re}=this;Q.add(he?he.call(Q,Re):Re?this._subscribe(Q):this._trySubscribe(Q))}),Q}_trySubscribe(N){try{return this._subscribe(N)}catch(U){N.error(U)}}forEach(N,U){return new(U=w(U))((fe,Q)=>{const he=new i.Hp({next:Re=>{try{N(Re)}catch(_e){Q(_e),he.unsubscribe()}},error:Q,complete:fe});this.subscribe(he)})}_subscribe(N){var U;return null===(U=this.source)||void 0===U?void 0:U.subscribe(N)}[m.L](){return this}pipe(...N){return(0,c.U)(N)(this)}toPromise(N){return new(N=w(N))((U,fe)=>{let Q;this.subscribe(he=>Q=he,he=>fe(he),()=>U(Q))})}}return T.create=v=>new T(v),T})();function w(T){var v;return null!==(v=null!=T?T:s.v.Promise)&&void 0!==v?v:Promise}},6646:(je,g,l)=>{"use strict";l.d(g,{b:()=>u});var i=l(6063);class u{constructor(c,s=u.now){this.schedulerActionCtor=c,this.now=s}schedule(c,s=0,_){return new this.schedulerActionCtor(this,c).schedule(_,s)}}u.now=i.l.now},6758:(je,g,l)=>{"use strict";l.d(g,{x:()=>_});var i=l(9751),u=l(6921),m=l(7448),c=l(8737),s=l(2806);let _=(()=>{class C extends i.y{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(h){const A=new D(this,this);return A.operator=h,A}_throwIfClosed(){if(this.closed)throw new m.N}next(h){(0,s.x)(()=>{if(this._throwIfClosed(),!this.isStopped){const A=this.observers.slice();for(const T of A)T.next(h)}})}error(h){(0,s.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=h;const{observers:A}=this;for(;A.length;)A.shift().error(h)}})}complete(){(0,s.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:h}=this;for(;h.length;)h.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var h;return(null===(h=this.observers)||void 0===h?void 0:h.length)>0}_trySubscribe(h){return this._throwIfClosed(),super._trySubscribe(h)}_subscribe(h){return this._throwIfClosed(),this._checkFinalizedStatuses(h),this._innerSubscribe(h)}_innerSubscribe(h){const{hasError:A,isStopped:T,observers:v}=this;return A||T?u.Lc:(v.push(h),new u.w0(()=>(0,c.P)(v,h)))}_checkFinalizedStatuses(h){const{hasError:A,thrownError:T,isStopped:v}=this;A?h.error(T):v&&h.complete()}asObservable(){const h=new i.y;return h.source=this,h}}return C.create=(w,h)=>new D(w,h),C})();class D extends _{constructor(w,h){super(),this.destination=w,this.source=h}next(w){var h,A;null===(A=null===(h=this.destination)||void 0===h?void 0:h.next)||void 0===A||A.call(h,w)}error(w){var h,A;null===(A=null===(h=this.destination)||void 0===h?void 0:h.error)||void 0===A||A.call(h,w)}complete(){var w,h;null===(h=null===(w=this.destination)||void 0===w?void 0:w.complete)||void 0===h||h.call(w)}_subscribe(w){var h,A;return null!==(A=null===(h=this.source)||void 0===h?void 0:h.subscribe(w))&&void 0!==A?A:u.Lc}}},930:(je,g,l)=>{"use strict";l.d(g,{Hp:()=>fe,Lv:()=>T});var i=l(576),u=l(6921),m=l(2416),c=l(7849),s=l(5032);const _=w("C",void 0,void 0);function w(be,q,Ce){return{kind:be,value:q,error:Ce}}var h=l(3410),A=l(2806);class T extends u.w0{constructor(q){super(),this.isStopped=!1,q?(this.destination=q,(0,u.Nn)(q)&&q.add(this)):this.destination=_e}static create(q,Ce,Fe){return new fe(q,Ce,Fe)}next(q){this.isStopped?Re(function C(be){return w("N",be,void 0)}(q),this):this._next(q)}error(q){this.isStopped?Re(function D(be){return w("E",void 0,be)}(q),this):(this.isStopped=!0,this._error(q))}complete(){this.isStopped?Re(_,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(q){this.destination.next(q)}_error(q){try{this.destination.error(q)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const v=Function.prototype.bind;function N(be,q){return v.call(be,q)}class U{constructor(q){this.partialObserver=q}next(q){const{partialObserver:Ce}=this;if(Ce.next)try{Ce.next(q)}catch(Fe){Q(Fe)}}error(q){const{partialObserver:Ce}=this;if(Ce.error)try{Ce.error(q)}catch(Fe){Q(Fe)}else Q(q)}complete(){const{partialObserver:q}=this;if(q.complete)try{q.complete()}catch(Ce){Q(Ce)}}}class fe extends T{constructor(q,Ce,Fe){let Ye;if(super(),(0,i.m)(q)||!q)Ye={next:null!=q?q:void 0,error:null!=Ce?Ce:void 0,complete:null!=Fe?Fe:void 0};else{let st;this&&m.v.useDeprecatedNextContext?(st=Object.create(q),st.unsubscribe=()=>this.unsubscribe(),Ye={next:q.next&&N(q.next,st),error:q.error&&N(q.error,st),complete:q.complete&&N(q.complete,st)}):Ye=q}this.destination=new U(Ye)}}function Q(be){m.v.useDeprecatedSynchronousErrorHandling?(0,A.O)(be):(0,c.h)(be)}function Re(be,q){const{onStoppedNotification:Ce}=m.v;Ce&&h.z.setTimeout(()=>Ce(be,q))}const _e={closed:!0,next:s.Z,error:function he(be){throw be},complete:s.Z}},6921:(je,g,l)=>{"use strict";l.d(g,{w0:()=>c,Lc:()=>s,Nn:()=>_});var i=l(576),u=l(7896),m=l(8737);class c{constructor(w){this.initialTeardown=w,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let w;if(!this.closed){this.closed=!0;const{_parentage:h}=this;if(h)if(this._parentage=null,Array.isArray(h))for(const v of h)v.remove(this);else h.remove(this);const{initialTeardown:A}=this;if((0,i.m)(A))try{A()}catch(v){w=v instanceof u.B?v.errors:[v]}const{_teardowns:T}=this;if(T){this._teardowns=null;for(const v of T)try{D(v)}catch(N){w=null!=w?w:[],N instanceof u.B?w=[...w,...N.errors]:w.push(N)}}if(w)throw new u.B(w)}}add(w){var h;if(w&&w!==this)if(this.closed)D(w);else{if(w instanceof c){if(w.closed||w._hasParent(this))return;w._addParent(this)}(this._teardowns=null!==(h=this._teardowns)&&void 0!==h?h:[]).push(w)}}_hasParent(w){const{_parentage:h}=this;return h===w||Array.isArray(h)&&h.includes(w)}_addParent(w){const{_parentage:h}=this;this._parentage=Array.isArray(h)?(h.push(w),h):h?[h,w]:w}_removeParent(w){const{_parentage:h}=this;h===w?this._parentage=null:Array.isArray(h)&&(0,m.P)(h,w)}remove(w){const{_teardowns:h}=this;h&&(0,m.P)(h,w),w instanceof c&&w._removeParent(this)}}c.EMPTY=(()=>{const C=new c;return C.closed=!0,C})();const s=c.EMPTY;function _(C){return C instanceof c||C&&"closed"in C&&(0,i.m)(C.remove)&&(0,i.m)(C.add)&&(0,i.m)(C.unsubscribe)}function D(C){(0,i.m)(C)?C():C.unsubscribe()}},2416:(je,g,l)=>{"use strict";l.d(g,{v:()=>i});const i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(je,g,l)=>{"use strict";l.d(g,{a:()=>h,l:()=>A});var i=l(9751),u=l(4742),m=l(188),c=l(4671),s=l(3268),_=l(3269),D=l(1810),C=l(5403),w=l(9672);function h(...v){const N=(0,_.yG)(v),U=(0,_.jO)(v),{args:fe,keys:Q}=(0,u.D)(v);if(0===fe.length)return(0,m.D)([],N);const he=new i.y(A(fe,N,Q?Re=>(0,D.n)(Q,Re):c.y));return U?he.pipe((0,s.Z)(U)):he}function A(v,N,U=c.y){return fe=>{T(N,()=>{const{length:Q}=v,he=new Array(Q);let Re=Q,_e=Q;for(let be=0;be<Q;be++)T(N,()=>{const q=(0,m.D)(v[be],N);let Ce=!1;q.subscribe((0,C.x)(fe,Fe=>{he[be]=Fe,Ce||(Ce=!0,_e--),_e||fe.next(U(he.slice()))},()=>{--Re||fe.complete()}))},fe)},fe)}}function T(v,N,U){v?(0,w.f)(U,v,N):N()}},1350:(je,g,l)=>{"use strict";l.d(g,{z:()=>c});var i=l(7886),u=l(3269),m=l(188);function c(...s){return(0,i.u)()((0,m.D)(s,(0,u.yG)(s)))}},9770:(je,g,l)=>{"use strict";l.d(g,{P:()=>m});var i=l(9751),u=l(8421);function m(c){return new i.y(s=>{(0,u.Xf)(c()).subscribe(s)})}},515:(je,g,l)=>{"use strict";l.d(g,{E:()=>u,c:()=>m});var i=l(9751);const u=new i.y(s=>s.complete());function m(s){return s?function c(s){return new i.y(_=>s.schedule(()=>_.complete()))}(s):u}},4128:(je,g,l)=>{"use strict";l.d(g,{D:()=>C});var i=l(9751),u=l(4742),m=l(8421),c=l(3269),s=l(5403),_=l(3268),D=l(1810);function C(...w){const h=(0,c.jO)(w),{args:A,keys:T}=(0,u.D)(w),v=new i.y(N=>{const{length:U}=A;if(!U)return void N.complete();const fe=new Array(U);let Q=U,he=U;for(let Re=0;Re<U;Re++){let _e=!1;(0,m.Xf)(A[Re]).subscribe((0,s.x)(N,be=>{_e||(_e=!0,he--),fe[Re]=be},()=>Q--,void 0,()=>{(!Q||!_e)&&(he||N.next(T?(0,D.n)(T,fe):fe),N.complete())}))}});return h?v.pipe((0,_.Z)(h)):v}},188:(je,g,l)=>{"use strict";l.d(g,{D:()=>m});var i=l(3762),u=l(8421);function m(c,s){return s?(0,i.x)(c,s):(0,u.Xf)(c)}},4968:(je,g,l)=>{"use strict";l.d(g,{R:()=>h});var i=l(8421),u=l(9751),m=l(6099),c=l(1144),s=l(576),_=l(3268);const D=["addListener","removeListener"],C=["addEventListener","removeEventListener"],w=["on","off"];function h(U,fe,Q,he){if((0,s.m)(Q)&&(he=Q,Q=void 0),he)return h(U,fe,Q).pipe((0,_.Z)(he));const[Re,_e]=function N(U){return(0,s.m)(U.addEventListener)&&(0,s.m)(U.removeEventListener)}(U)?C.map(be=>q=>U[be](fe,q,Q)):function T(U){return(0,s.m)(U.addListener)&&(0,s.m)(U.removeListener)}(U)?D.map(A(U,fe)):function v(U){return(0,s.m)(U.on)&&(0,s.m)(U.off)}(U)?w.map(A(U,fe)):[];if(!Re&&(0,c.z)(U))return(0,m.z)(be=>h(be,fe,Q))((0,i.Xf)(U));if(!Re)throw new TypeError("Invalid event target");return new u.y(be=>{const q=(...Ce)=>be.next(1<Ce.length?Ce:Ce[0]);return Re(q),()=>_e(q)})}function A(U,fe){return Q=>he=>U[Q](fe,he)}},8421:(je,g,l)=>{"use strict";l.d(g,{Xf:()=>v});var i=l(655),u=l(1144),m=l(8239),c=l(9751),s=l(3670),_=l(2206),D=l(4532),C=l(6495),w=l(3260),h=l(576),A=l(7849),T=l(8822);function v(be){if(be instanceof c.y)return be;if(null!=be){if((0,s.c)(be))return function N(be){return new c.y(q=>{const Ce=be[T.L]();if((0,h.m)(Ce.subscribe))return Ce.subscribe(q);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(be);if((0,u.z)(be))return function U(be){return new c.y(q=>{for(let Ce=0;Ce<be.length&&!q.closed;Ce++)q.next(be[Ce]);q.complete()})}(be);if((0,m.t)(be))return function fe(be){return new c.y(q=>{be.then(Ce=>{q.closed||(q.next(Ce),q.complete())},Ce=>q.error(Ce)).then(null,A.h)})}(be);if((0,_.D)(be))return he(be);if((0,C.T)(be))return function Q(be){return new c.y(q=>{for(const Ce of be)if(q.next(Ce),q.closed)return;q.complete()})}(be);if((0,w.L)(be))return function Re(be){return he((0,w.Q)(be))}(be)}throw(0,D.z)(be)}function he(be){return new c.y(q=>{(function _e(be,q){var Ce,Fe,Ye,st;return(0,i.__awaiter)(this,void 0,void 0,function*(){try{for(Ce=(0,i.__asyncValues)(be);!(Fe=yield Ce.next()).done;)if(q.next(Fe.value),q.closed)return}catch($e){Ye={error:$e}}finally{try{Fe&&!Fe.done&&(st=Ce.return)&&(yield st.call(Ce))}finally{if(Ye)throw Ye.error}}q.complete()})})(be,q).catch(Ce=>q.error(Ce))})}},6451:(je,g,l)=>{"use strict";l.d(g,{T:()=>_});var i=l(8189),u=l(8421),m=l(515),c=l(3269),s=l(188);function _(...D){const C=(0,c.yG)(D),w=(0,c._6)(D,1/0),h=D;return h.length?1===h.length?(0,u.Xf)(h[0]):(0,i.J)(w)((0,s.D)(h,C)):m.E}},9646:(je,g,l)=>{"use strict";l.d(g,{of:()=>m});var i=l(3269),u=l(188);function m(...c){const s=(0,i.yG)(c);return(0,u.D)(c,s)}},2843:(je,g,l)=>{"use strict";l.d(g,{_:()=>m});var i=l(9751),u=l(576);function m(c,s){const _=(0,u.m)(c)?c:()=>c,D=C=>C.error(_());return new i.y(s?C=>s.schedule(D,0,C):D)}},2805:(je,g,l)=>{"use strict";l.d(g,{H:()=>s});var i=l(9751),u=l(4986),m=l(3532),c=l(1165);function s(_=0,D,C=u.P){let w=-1;return null!=D&&((0,m.K)(D)?C=D:w=D),new i.y(h=>{let A=(0,c.q)(_)?+_-C.now():_;A<0&&(A=0);let T=0;return C.schedule(function(){h.closed||(h.next(T++),0<=w?this.schedule(void 0,w):h.complete())},A)})}},5403:(je,g,l)=>{"use strict";l.d(g,{x:()=>u,Q:()=>m});var i=l(930);function u(c,s,_,D,C){return new m(c,s,_,D,C)}class m extends i.Lv{constructor(s,_,D,C,w,h){super(s),this.onFinalize=w,this.shouldUnsubscribe=h,this._next=_?function(A){try{_(A)}catch(T){s.error(T)}}:super._next,this._error=C?function(A){try{C(A)}catch(T){s.error(T)}finally{this.unsubscribe()}}:super._error,this._complete=D?function(){try{D()}catch(A){s.error(A)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var s;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:_}=this;super.unsubscribe(),!_&&(null===(s=this.onFinalize)||void 0===s||s.call(this))}}}},5615:(je,g,l)=>{"use strict";l.d(g,{U:()=>c});var i=l(4482),u=l(8421),m=l(5403);function c(s){return(0,i.e)((_,D)=>{let C=!1,w=null,h=null,A=!1;const T=()=>{if(null==h||h.unsubscribe(),h=null,C){C=!1;const N=w;w=null,D.next(N)}A&&D.complete()},v=()=>{h=null,A&&D.complete()};_.subscribe((0,m.x)(D,N=>{C=!0,w=N,h||(0,u.Xf)(s(N)).subscribe(h=(0,m.x)(D,T,v))},()=>{A=!0,(!C||!h||h.closed)&&D.complete()}))})}},453:(je,g,l)=>{"use strict";l.d(g,{e:()=>c});var i=l(4986),u=l(5615),m=l(2805);function c(s,_=i.z){return(0,u.U)(()=>(0,m.H)(s,_))}},262:(je,g,l)=>{"use strict";l.d(g,{K:()=>c});var i=l(8421),u=l(5403),m=l(4482);function c(s){return(0,m.e)((_,D)=>{let h,C=null,w=!1;C=_.subscribe((0,u.x)(D,void 0,void 0,A=>{h=(0,i.Xf)(s(A,c(s)(_))),C?(C.unsubscribe(),C=null,h.subscribe(D)):w=!0})),w&&(C.unsubscribe(),C=null,h.subscribe(D))})}},7886:(je,g,l)=>{"use strict";l.d(g,{u:()=>u});var i=l(8189);function u(){return(0,i.J)(1)}},4351:(je,g,l)=>{"use strict";l.d(g,{b:()=>m});var i=l(6099),u=l(576);function m(c,s){return(0,u.m)(s)?(0,i.z)(c,s,1):(0,i.z)(c,1)}},8372:(je,g,l)=>{"use strict";l.d(g,{b:()=>c});var i=l(4986),u=l(4482),m=l(5403);function c(s,_=i.z){return(0,u.e)((D,C)=>{let w=null,h=null,A=null;const T=()=>{if(w){w.unsubscribe(),w=null;const N=h;h=null,C.next(N)}};function v(){const N=A+s,U=_.now();if(U<N)return w=this.schedule(void 0,N-U),void C.add(w);T()}D.subscribe((0,m.x)(C,N=>{h=N,A=_.now(),w||(w=_.schedule(v,s),C.add(w))},()=>{T(),C.complete()},void 0,()=>{h=w=null}))})}},4326:(je,g,l)=>{"use strict";l.d(g,{g:()=>c});var i=l(4986),u=l(1260),m=l(2805);function c(s,_=i.z){const D=(0,m.H)(s,_);return(0,u.j)(()=>D)}},1260:(je,g,l)=>{"use strict";l.d(g,{j:()=>_});var i=l(1350),u=l(5698),m=l(8502),c=l(9718),s=l(6099);function _(D,C){return C?w=>(0,i.z)(C.pipe((0,u.q)(1),(0,m.l)()),w.pipe(_(D))):(0,s.z)((w,h)=>D(w,h).pipe((0,u.q)(1),(0,c.h)(w)))}},1884:(je,g,l)=>{"use strict";l.d(g,{x:()=>c});var i=l(4671),u=l(4482),m=l(5403);function c(_,D=i.y){return _=null!=_?_:s,(0,u.e)((C,w)=>{let h,A=!0;C.subscribe((0,m.x)(w,T=>{const v=D(T);(A||!_(h,v))&&(A=!1,h=v,w.next(T))}))})}function s(_,D){return _===D}},9300:(je,g,l)=>{"use strict";l.d(g,{h:()=>m});var i=l(4482),u=l(5403);function m(c,s){return(0,i.e)((_,D)=>{let C=0;_.subscribe((0,u.x)(D,w=>c.call(s,w,C++)&&D.next(w)))})}},8746:(je,g,l)=>{"use strict";l.d(g,{x:()=>u});var i=l(4482);function u(m){return(0,i.e)((c,s)=>{try{c.subscribe(s)}finally{s.add(m)}})}},8502:(je,g,l)=>{"use strict";l.d(g,{l:()=>c});var i=l(4482),u=l(5403),m=l(5032);function c(){return(0,i.e)((s,_)=>{s.subscribe((0,u.x)(_,m.Z))})}},4004:(je,g,l)=>{"use strict";l.d(g,{U:()=>m});var i=l(4482),u=l(5403);function m(c,s){return(0,i.e)((_,D)=>{let C=0;_.subscribe((0,u.x)(D,w=>{D.next(c.call(s,w,C++))}))})}},9718:(je,g,l)=>{"use strict";l.d(g,{h:()=>u});var i=l(4004);function u(m){return(0,i.U)(()=>m)}},8189:(je,g,l)=>{"use strict";l.d(g,{J:()=>m});var i=l(6099),u=l(4671);function m(c=1/0){return(0,i.z)(u.y,c)}},2733:(je,g,l)=>{"use strict";l.d(g,{p:()=>c});var i=l(8421),u=l(9672),m=l(5403);function c(s,_,D,C,w,h,A,T){const v=[];let N=0,U=0,fe=!1;const Q=()=>{fe&&!v.length&&!N&&_.complete()},he=_e=>N<C?Re(_e):v.push(_e),Re=_e=>{h&&_.next(_e),N++;let be=!1;(0,i.Xf)(D(_e,U++)).subscribe((0,m.x)(_,q=>{null==w||w(q),h?he(q):_.next(q)},()=>{be=!0},void 0,()=>{if(be)try{for(N--;v.length&&N<C;){const q=v.shift();A?(0,u.f)(_,A,()=>Re(q)):Re(q)}Q()}catch(q){_.error(q)}}))};return s.subscribe((0,m.x)(_,he,()=>{fe=!0,Q()})),()=>{null==T||T()}}},6099:(je,g,l)=>{"use strict";l.d(g,{z:()=>_});var i=l(4004),u=l(8421),m=l(4482),c=l(2733),s=l(576);function _(D,C,w=1/0){return(0,s.m)(C)?_((h,A)=>(0,i.U)((T,v)=>C(h,T,A,v))((0,u.Xf)(D(h,A))),w):("number"==typeof C&&(w=C),(0,m.e)((h,A)=>(0,c.p)(h,A,D,w)))}},5363:(je,g,l)=>{"use strict";l.d(g,{Q:()=>c});var i=l(9672),u=l(4482),m=l(5403);function c(s,_=0){return(0,u.e)((D,C)=>{D.subscribe((0,m.x)(C,w=>(0,i.f)(C,s,()=>C.next(w),_),()=>(0,i.f)(C,s,()=>C.complete(),_),w=>(0,i.f)(C,s,()=>C.error(w),_)))})}},3099:(je,g,l)=>{"use strict";l.d(g,{B:()=>_});var i=l(188),u=l(5698),m=l(6758),c=l(930),s=l(4482);function _(C={}){const{connector:w=(()=>new m.x),resetOnError:h=!0,resetOnComplete:A=!0,resetOnRefCountZero:T=!0}=C;return v=>{let N=null,U=null,fe=null,Q=0,he=!1,Re=!1;const _e=()=>{null==U||U.unsubscribe(),U=null},be=()=>{_e(),N=fe=null,he=Re=!1},q=()=>{const Ce=N;be(),null==Ce||Ce.unsubscribe()};return(0,s.e)((Ce,Fe)=>{Q++,!Re&&!he&&_e();const Ye=fe=null!=fe?fe:w();Fe.add(()=>{Q--,0===Q&&!Re&&!he&&(U=D(q,T))}),Ye.subscribe(Fe),N||(N=new c.Hp({next:st=>Ye.next(st),error:st=>{Re=!0,_e(),U=D(be,h,st),Ye.error(st)},complete:()=>{he=!0,_e(),U=D(be,A),Ye.complete()}}),(0,i.D)(Ce).subscribe(N))})(v)}}function D(C,w,...h){return!0===w?(C(),null):!1===w?null:w(...h).pipe((0,u.q)(1)).subscribe(()=>C())}},5684:(je,g,l)=>{"use strict";l.d(g,{T:()=>u});var i=l(9300);function u(m){return(0,i.h)((c,s)=>m<=s)}},8675:(je,g,l)=>{"use strict";l.d(g,{O:()=>c});var i=l(1350),u=l(3269),m=l(4482);function c(...s){const _=(0,u.yG)(s);return(0,m.e)((D,C)=>{(_?(0,i.z)(s,D,_):(0,i.z)(s,D)).subscribe(C)})}},9468:(je,g,l)=>{"use strict";l.d(g,{R:()=>u});var i=l(4482);function u(m,c=0){return(0,i.e)((s,_)=>{_.add(m.schedule(()=>s.subscribe(_),c))})}},3900:(je,g,l)=>{"use strict";l.d(g,{w:()=>c});var i=l(8421),u=l(4482),m=l(5403);function c(s,_){return(0,u.e)((D,C)=>{let w=null,h=0,A=!1;const T=()=>A&&!w&&C.complete();D.subscribe((0,m.x)(C,v=>{null==w||w.unsubscribe();let N=0;const U=h++;(0,i.Xf)(s(v,U)).subscribe(w=(0,m.x)(C,fe=>C.next(_?_(v,fe,U,N++):fe),()=>{w=null,T()}))},()=>{A=!0,T()}))})}},5698:(je,g,l)=>{"use strict";l.d(g,{q:()=>c});var i=l(515),u=l(4482),m=l(5403);function c(s){return s<=0?()=>i.E:(0,u.e)((_,D)=>{let C=0;_.subscribe((0,m.x)(D,w=>{++C<=s&&(D.next(w),s<=C&&D.complete())}))})}},2722:(je,g,l)=>{"use strict";l.d(g,{R:()=>s});var i=l(4482),u=l(5403),m=l(8421),c=l(5032);function s(_){return(0,i.e)((D,C)=>{(0,m.Xf)(_).subscribe((0,u.x)(C,()=>C.complete(),c.Z)),!C.closed&&D.subscribe(C)})}},8505:(je,g,l)=>{"use strict";l.d(g,{b:()=>s});var i=l(576),u=l(4482),m=l(5403),c=l(4671);function s(_,D,C){const w=(0,i.m)(_)||D||C?{next:_,error:D,complete:C}:_;return w?(0,u.e)((h,A)=>{var T;null===(T=w.subscribe)||void 0===T||T.call(w);let v=!0;h.subscribe((0,m.x)(A,N=>{var U;null===(U=w.next)||void 0===U||U.call(w,N),A.next(N)},()=>{var N;v=!1,null===(N=w.complete)||void 0===N||N.call(w),A.complete()},N=>{var U;v=!1,null===(U=w.error)||void 0===U||U.call(w,N),A.error(N)},()=>{var N,U;v&&(null===(N=w.unsubscribe)||void 0===N||N.call(w)),null===(U=w.finalize)||void 0===U||U.call(w)}))}):c.y}},6340:(je,g,l)=>{"use strict";l.d(g,{Q:()=>s});var i=l(9751),u=l(2202),m=l(576),c=l(9672);function s(_,D){return new i.y(C=>{let w;return(0,c.f)(C,D,()=>{w=_[u.h](),(0,c.f)(C,D,()=>{let h,A;try{({value:h,done:A}=w.next())}catch(T){return void C.error(T)}A?C.complete():C.next(h)},0,!0)}),()=>(0,m.m)(null==w?void 0:w.return)&&w.return()})}},3762:(je,g,l)=>{"use strict";l.d(g,{x:()=>Re});var i=l(8421),u=l(5363),m=l(9468),_=l(9751),C=l(6340),w=l(9672);function h(_e,be){if(!_e)throw new Error("Iterable cannot be null");return new _.y(q=>{(0,w.f)(q,be,()=>{const Ce=_e[Symbol.asyncIterator]();(0,w.f)(q,be,()=>{Ce.next().then(Fe=>{Fe.done?q.complete():q.next(Fe.value)})},0,!0)})})}var A=l(3670),T=l(8239),v=l(1144),N=l(6495),U=l(2206),fe=l(4532),Q=l(3260);function Re(_e,be){if(null!=_e){if((0,A.c)(_e))return function c(_e,be){return(0,i.Xf)(_e).pipe((0,m.R)(be),(0,u.Q)(be))}(_e,be);if((0,v.z)(_e))return function D(_e,be){return new _.y(q=>{let Ce=0;return be.schedule(function(){Ce===_e.length?q.complete():(q.next(_e[Ce++]),q.closed||this.schedule())})})}(_e,be);if((0,T.t)(_e))return function s(_e,be){return(0,i.Xf)(_e).pipe((0,m.R)(be),(0,u.Q)(be))}(_e,be);if((0,U.D)(_e))return h(_e,be);if((0,N.T)(_e))return(0,C.Q)(_e,be);if((0,Q.L)(_e))return function he(_e,be){return h((0,Q.Q)(_e),be)}(_e,be)}throw(0,fe.z)(_e)}},4408:(je,g,l)=>{"use strict";l.d(g,{o:()=>s});var i=l(6921);class u extends i.w0{constructor(D,C){super()}schedule(D,C=0){return this}}const m={setInterval(..._){const{delegate:D}=m;return((null==D?void 0:D.setInterval)||setInterval)(..._)},clearInterval(_){const{delegate:D}=m;return((null==D?void 0:D.clearInterval)||clearInterval)(_)},delegate:void 0};var c=l(8737);class s extends u{constructor(D,C){super(D,C),this.scheduler=D,this.work=C,this.pending=!1}schedule(D,C=0){if(this.closed)return this;this.state=D;const w=this.id,h=this.scheduler;return null!=w&&(this.id=this.recycleAsyncId(h,w,C)),this.pending=!0,this.delay=C,this.id=this.id||this.requestAsyncId(h,this.id,C),this}requestAsyncId(D,C,w=0){return m.setInterval(D.flush.bind(D,this),w)}recycleAsyncId(D,C,w=0){if(null!=w&&this.delay===w&&!1===this.pending)return C;m.clearInterval(C)}execute(D,C){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const w=this._execute(D,C);if(w)return w;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(D,C){let h,w=!1;try{this.work(D)}catch(A){w=!0,h=A||new Error("Scheduled action threw falsy error")}if(w)return this.unsubscribe(),h}unsubscribe(){if(!this.closed){const{id:D,scheduler:C}=this,{actions:w}=C;this.work=this.state=this.scheduler=null,this.pending=!1,(0,c.P)(w,this),null!=D&&(this.id=this.recycleAsyncId(C,D,null)),this.delay=null,super.unsubscribe()}}}},8950:(je,g,l)=>{"use strict";l.d(g,{v:()=>u});var i=l(6646);class u extends i.b{constructor(c,s=i.b.now){super(c,s),this.actions=[],this._active=!1,this._scheduled=void 0}flush(c){const{actions:s}=this;if(this._active)return void s.push(c);let _;this._active=!0;do{if(_=c.execute(c.state,c.delay))break}while(c=s.shift());if(this._active=!1,_){for(;c=s.shift();)c.unsubscribe();throw _}}}},29:(je,g,l)=>{"use strict";l.d(g,{r:()=>D,Z:()=>_});var i=l(4408),u=l(3399),c=l(8950);const _=new class s extends c.v{flush(w){this._active=!0;const h=this._scheduled;this._scheduled=void 0;const{actions:A}=this;let T;w=w||A.shift();do{if(T=w.execute(w.state,w.delay))break}while((w=A[0])&&w.id===h&&A.shift());if(this._active=!1,T){for(;(w=A[0])&&w.id===h&&A.shift();)w.unsubscribe();throw T}}}(class m extends i.o{constructor(w,h){super(w,h),this.scheduler=w,this.work=h}requestAsyncId(w,h,A=0){return null!==A&&A>0?super.requestAsyncId(w,h,A):(w.actions.push(this),w._scheduled||(w._scheduled=u.l.requestAnimationFrame(()=>w.flush(void 0))))}recycleAsyncId(w,h,A=0){if(null!=A&&A>0||null==A&&this.delay>0)return super.recycleAsyncId(w,h,A);w.actions.some(T=>T.id===h)||(u.l.cancelAnimationFrame(h),w._scheduled=void 0)}}),D=_},3399:(je,g,l)=>{"use strict";l.d(g,{l:()=>u});var i=l(6921);const u={schedule(m){let c=requestAnimationFrame,s=cancelAnimationFrame;const{delegate:_}=u;_&&(c=_.requestAnimationFrame,s=_.cancelAnimationFrame);const D=c(C=>{s=void 0,m(C)});return new i.w0(()=>null==s?void 0:s(D))},requestAnimationFrame(...m){const{delegate:c}=u;return((null==c?void 0:c.requestAnimationFrame)||requestAnimationFrame)(...m)},cancelAnimationFrame(...m){const{delegate:c}=u;return((null==c?void 0:c.cancelAnimationFrame)||cancelAnimationFrame)(...m)},delegate:void 0}},3101:(je,g,l)=>{"use strict";l.d(g,{e:()=>U,E:()=>N});var i=l(4408);let m,u=1;const c={};function s(fe){return fe in c&&(delete c[fe],!0)}const _={setImmediate(fe){const Q=u++;return c[Q]=!0,m||(m=Promise.resolve()),m.then(()=>s(Q)&&fe()),Q},clearImmediate(fe){s(fe)}},{setImmediate:C,clearImmediate:w}=_,h={setImmediate(...fe){const{delegate:Q}=h;return((null==Q?void 0:Q.setImmediate)||C)(...fe)},clearImmediate(fe){const{delegate:Q}=h;return((null==Q?void 0:Q.clearImmediate)||w)(fe)},delegate:void 0};var T=l(8950);const N=new class v extends T.v{flush(Q){this._active=!0;const he=this._scheduled;this._scheduled=void 0;const{actions:Re}=this;let _e;Q=Q||Re.shift();do{if(_e=Q.execute(Q.state,Q.delay))break}while((Q=Re[0])&&Q.id===he&&Re.shift());if(this._active=!1,_e){for(;(Q=Re[0])&&Q.id===he&&Re.shift();)Q.unsubscribe();throw _e}}}(class A extends i.o{constructor(Q,he){super(Q,he),this.scheduler=Q,this.work=he}requestAsyncId(Q,he,Re=0){return null!==Re&&Re>0?super.requestAsyncId(Q,he,Re):(Q.actions.push(this),Q._scheduled||(Q._scheduled=h.setImmediate(Q.flush.bind(Q,void 0))))}recycleAsyncId(Q,he,Re=0){if(null!=Re&&Re>0||null==Re&&this.delay>0)return super.recycleAsyncId(Q,he,Re);Q.actions.some(_e=>_e.id===he)||(h.clearImmediate(he),Q._scheduled=void 0)}}),U=N},4986:(je,g,l)=>{"use strict";l.d(g,{z:()=>m,P:()=>c});var i=l(4408);const m=new(l(8950).v)(i.o),c=m},6063:(je,g,l)=>{"use strict";l.d(g,{l:()=>i});const i={now:()=>(i.delegate||Date).now(),delegate:void 0}},3410:(je,g,l)=>{"use strict";l.d(g,{z:()=>i});const i={setTimeout(...u){const{delegate:m}=i;return((null==m?void 0:m.setTimeout)||setTimeout)(...u)},clearTimeout(u){const{delegate:m}=i;return((null==m?void 0:m.clearTimeout)||clearTimeout)(u)},delegate:void 0}},2202:(je,g,l)=>{"use strict";l.d(g,{h:()=>u});const u=function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(je,g,l)=>{"use strict";l.d(g,{L:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},7448:(je,g,l)=>{"use strict";l.d(g,{N:()=>u});const u=(0,l(3888).d)(m=>function(){m(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"})},7896:(je,g,l)=>{"use strict";l.d(g,{B:()=>u});const u=(0,l(3888).d)(m=>function(s){m(this),this.message=s?`${s.length} errors occurred during unsubscription:\n${s.map((_,D)=>`${D+1}) ${_.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=s})},3269:(je,g,l)=>{"use strict";l.d(g,{jO:()=>c,yG:()=>s,_6:()=>_});var i=l(576),u=l(3532);function m(D){return D[D.length-1]}function c(D){return(0,i.m)(m(D))?D.pop():void 0}function s(D){return(0,u.K)(m(D))?D.pop():void 0}function _(D,C){return"number"==typeof m(D)?D.pop():C}},4742:(je,g,l)=>{"use strict";l.d(g,{D:()=>s});const{isArray:i}=Array,{getPrototypeOf:u,prototype:m,keys:c}=Object;function s(D){if(1===D.length){const C=D[0];if(i(C))return{args:C,keys:null};if(function _(D){return D&&"object"==typeof D&&u(D)===m}(C)){const w=c(C);return{args:w.map(h=>C[h]),keys:w}}}return{args:D,keys:null}}},8737:(je,g,l)=>{"use strict";function i(u,m){if(u){const c=u.indexOf(m);0<=c&&u.splice(c,1)}}l.d(g,{P:()=>i})},3888:(je,g,l)=>{"use strict";function i(u){const c=u(s=>{Error.call(s),s.stack=(new Error).stack});return c.prototype=Object.create(Error.prototype),c.prototype.constructor=c,c}l.d(g,{d:()=>i})},1810:(je,g,l)=>{"use strict";function i(u,m){return u.reduce((c,s,_)=>(c[s]=m[_],c),{})}l.d(g,{n:()=>i})},2806:(je,g,l)=>{"use strict";l.d(g,{x:()=>m,O:()=>c});var i=l(2416);let u=null;function m(s){if(i.v.useDeprecatedSynchronousErrorHandling){const _=!u;if(_&&(u={errorThrown:!1,error:null}),s(),_){const{errorThrown:D,error:C}=u;if(u=null,D)throw C}}else s()}function c(s){i.v.useDeprecatedSynchronousErrorHandling&&u&&(u.errorThrown=!0,u.error=s)}},9672:(je,g,l)=>{"use strict";function i(u,m,c,s=0,_=!1){const D=m.schedule(function(){c(),_?u.add(this.schedule(null,s)):this.unsubscribe()},s);if(u.add(D),!_)return D}l.d(g,{f:()=>i})},4671:(je,g,l)=>{"use strict";function i(u){return u}l.d(g,{y:()=>i})},1144:(je,g,l)=>{"use strict";l.d(g,{z:()=>i});const i=u=>u&&"number"==typeof u.length&&"function"!=typeof u},2206:(je,g,l)=>{"use strict";l.d(g,{D:()=>u});var i=l(576);function u(m){return Symbol.asyncIterator&&(0,i.m)(null==m?void 0:m[Symbol.asyncIterator])}},1165:(je,g,l)=>{"use strict";function i(u){return u instanceof Date&&!isNaN(u)}l.d(g,{q:()=>i})},576:(je,g,l)=>{"use strict";function i(u){return"function"==typeof u}l.d(g,{m:()=>i})},3670:(je,g,l)=>{"use strict";l.d(g,{c:()=>m});var i=l(8822),u=l(576);function m(c){return(0,u.m)(c[i.L])}},6495:(je,g,l)=>{"use strict";l.d(g,{T:()=>m});var i=l(2202),u=l(576);function m(c){return(0,u.m)(null==c?void 0:c[i.h])}},5191:(je,g,l)=>{"use strict";l.d(g,{b:()=>m});var i=l(9751),u=l(576);function m(c){return!!c&&(c instanceof i.y||(0,u.m)(c.lift)&&(0,u.m)(c.subscribe))}},8239:(je,g,l)=>{"use strict";l.d(g,{t:()=>u});var i=l(576);function u(m){return(0,i.m)(null==m?void 0:m.then)}},3260:(je,g,l)=>{"use strict";l.d(g,{Q:()=>m,L:()=>c});var i=l(655),u=l(576);function m(s){return(0,i.__asyncGenerator)(this,arguments,function*(){const D=s.getReader();try{for(;;){const{value:C,done:w}=yield(0,i.__await)(D.read());if(w)return yield(0,i.__await)(void 0);yield yield(0,i.__await)(C)}}finally{D.releaseLock()}})}function c(s){return(0,u.m)(null==s?void 0:s.getReader)}},3532:(je,g,l)=>{"use strict";l.d(g,{K:()=>u});var i=l(576);function u(m){return m&&(0,i.m)(m.schedule)}},4482:(je,g,l)=>{"use strict";l.d(g,{A:()=>u,e:()=>m});var i=l(576);function u(c){return(0,i.m)(null==c?void 0:c.lift)}function m(c){return s=>{if(u(s))return s.lift(function(_){try{return c(_,this)}catch(D){this.error(D)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(je,g,l)=>{"use strict";l.d(g,{Z:()=>c});var i=l(4004);const{isArray:u}=Array;function c(s){return(0,i.U)(_=>function m(s,_){return u(_)?s(..._):s(_)}(s,_))}},5032:(je,g,l)=>{"use strict";function i(){}l.d(g,{Z:()=>i})},9635:(je,g,l)=>{"use strict";l.d(g,{z:()=>u,U:()=>m});var i=l(4671);function u(...c){return m(c)}function m(c){return 0===c.length?i.y:1===c.length?c[0]:function(_){return c.reduce((D,C)=>C(D),_)}}},7849:(je,g,l)=>{"use strict";l.d(g,{h:()=>m});var i=l(2416),u=l(3410);function m(c){u.z.setTimeout(()=>{const{onUnhandledError:s}=i.v;if(!s)throw c;s(c)})}},4532:(je,g,l)=>{"use strict";function i(u){return new TypeError(`You provided ${null!==u&&"object"==typeof u?"an invalid object":`'${u}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}l.d(g,{z:()=>i})},3642:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateRxMethod=g.generateMethodSignature=g.generateErrorClass=g.generateClass=g.generateErrorType=g.generateEnum=g.generateJsonRepresentation=g.mangle=g.generateSwiftTypeName=void 0;const i=l(6676);function u(v){switch(v.constructor){case i.IntPrimitiveType:return"Int";case i.UIntPrimitiveType:return"UInt";case i.MoneyPrimitiveType:return"Int64";case i.FloatPrimitiveType:return"Double";case i.BigIntPrimitiveType:return"Decimal";case i.DatePrimitiveType:case i.DateTimePrimitiveType:return"Date";case i.BoolPrimitiveType:return"Bool";case i.BytesPrimitiveType:return"Data";case i.StringPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.UrlPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:return"String";case i.VoidPrimitiveType:return"Void";case i.JsonPrimitiveType:return"AnyCodable";case i.OptionalType:return`${u(v.base)}?`;case i.ArrayType:return`[${u(v.base)}]`;case i.StructType:case i.EnumType:return`API.${v.name}`;case i.TypeReference:return u(v.type);default:throw new Error(`BUG: generateSwiftTypeName with ${v.constructor.name}`)}}function m(v){return["associatedtype","deinit","extension","inout","let","in","as","break","class","continue","protocol","Protocol","rethrows","throws","static","do","else","false","for","guard","func","if","internal","struct","subscript","repeat","is","nil","Any","associativity","convenience","import","return","super","self","Self","throw","true","try","typealias","switch","case","default","defer","fallthrough","optional","var","while","catch","dynamic","didSet","Set","fileprivate","lazy","get","init","required","right","param","property","receiver","set","left","where","final","infix","indirect","open","operator","override","private","postfix","public","mutating","none","nonmutating","precedence","prefix","Type","unowned","weak","willSet"].includes(v)?`_${v}`:v}function c(v,N){switch(v.constructor){case i.StringPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:case i.IntPrimitiveType:case i.UIntPrimitiveType:case i.MoneyPrimitiveType:case i.FloatPrimitiveType:case i.BoolPrimitiveType:return`${N}`;case i.OptionalType:return`${N} == nil ? nil : ${c(v.base,`${N}!`)}`;case i.DatePrimitiveType:return`SdkgenHelper.encodeDate(date: ${N})`;case i.DateTimePrimitiveType:return`SdkgenHelper.encodeDateTime(date: ${N})`;case i.EnumType:return`${N}.rawValue`;case i.TypeReference:return`${c(v.type,`${N}`)}`;case i.StructType:return`${N}.toJSON()`;case i.ArrayType:return`${N}.map({ return ${c(v.base,"$0")} })`;case i.JsonPrimitiveType:return`try? ${N}.toJson()`;case i.VoidPrimitiveType:return"nil";case i.BytesPrimitiveType:return`${N}.base64EncodedString()`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${v.constructor.name}`)}}g.generateSwiftTypeName=u,g.mangle=m,g.generateJsonRepresentation=c,g.generateEnum=function s(v){let N=` public enum ${v.name}: String, Codable {\n`;return N+=v.values.map(U=>` case ${m(U.value)} = "${U.value}"`).join("\n"),N+="\n }\n",N},g.generateErrorType=function _(v){let N=" public enum ErrorType: String, Codable {\n";return N+=v.map(U=>` case ${m(U)} = "${U}"`).join("\n"),N+="\n }\n",N},g.generateClass=function w(v){return` public struct ${v.name}: Codable {\n${v.fields.map(N=>` var ${m(N.name)}: ${u(N.type)}`).join("\n")}\n\n${function D(v){let N=" init(";return N+=v.fields.map(U=>`${m(U.name)}: ${u(U.type)}`).join(", "),N+=") {\n",N+=v.fields.map(U=>` self.${m(U.name)} = ${m(U.name)}`).join("\n"),N+="\n }\n",N}(v)}\n${function C(v){let N=" func toJSON() -> [String: Any] {\n";return N+=" var json = [String: Any]()\n",N+=v.fields.map(U=>` json["${m(U.name)}"] = ${c(U.type,U.name)}`).join("\n"),N+="\n return json",N+="\n }\n",N}(v)}\n }\n`},g.generateErrorClass=function h(){return" public class Failure: Error {\n var message: String?\n var code: Int?\n var type: ErrorType?\n \n init(message: String?, code: Int?, type: String?) {\n self.message = message\n self.code = code\n if let typeString = type {\n self.type = ErrorType(rawValue: typeString) ?? nil\n }\n }\n }\n"},g.generateMethodSignature=function A(v){const N=v.args.map(U=>`${m(U.name)}: ${u(U.type)}`).concat(["timeoutSeconds: Double?",`callback: ((_ result: ${v.returnType instanceof i.VoidPrimitiveType?"API.Result<API.NoReply>":`API.Result<${u(v.returnType)}>`}) -> Void)?`]);return` func ${m(v.name)}(${N.join(", ")})`},g.generateRxMethod=function T(v){const N=v.args.map(fe=>`${m(fe.name)}: ${u(fe.type)}`).concat(["timeoutSeconds: Double? = nil"]);let U=` static func ${m(v.name)}(${N.join(", ")}) -> ${v.returnType instanceof i.VoidPrimitiveType?"Observable<API.Result<API.NoReply>>":`Observable<API.Result<${u(v.returnType)}>>`} {\n`;return U+=" return Observable.create { observer -> Disposable in\n",U+=` API.calls.${m(v.name)}(${v.args.map(fe=>`${m(fe.name)}: ${m(fe.name)}`).concat(["timeoutSeconds: timeoutSeconds"]).join(", ")}) { result in \n`,U+=" observer.on(.next(result))\n",U+=" observer.on(.completed)\n",U+=" }\n",U+=" return Disposables.create()\n",U+=" }\n",U+=" }\n",U}},7295:function(je,g,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,c,s,_){void 0===_&&(_=s),Object.defineProperty(m,_,{enumerable:!0,get:function(){return c[s]}})}:function(m,c,s,_){void 0===_&&(_=s),m[_]=c[s]}),u=this&&this.__exportStar||function(m,c){for(var s in m)"default"!==s&&!Object.prototype.hasOwnProperty.call(c,s)&&i(c,m,s)};Object.defineProperty(g,"__esModule",{value:!0}),u(l(7636),g)},7636:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateSwiftClientSource=void 0;const i=l(6676),u=l(3642);g.generateSwiftClientSource=function m(c,s){let _="import Foundation\nimport SdkgenRuntime\n";_+=s?"import RxSwift\nimport RxCocoa\n\n":"\n",_+="protocol APICallsProtocol {\n",_+=c.operations.filter(w=>w.annotations.every(h=>!(h instanceof i.HiddenAnnotation))).map(w=>`${(0,u.generateMethodSignature)(w)}`).join("\n"),_+="\n}\n\n",_+='class API: SdkgenResponse {\n\n static var calls: APICallsProtocol = Calls(baseUrl: "")\n static var baseUrl: String? {\n didSet {\n self.calls = Calls(baseUrl: baseUrl ?? "")\n }\n }\n \n override init() {\n super.init()\n }\n\n';for(const w of c.enumTypes)_+=(0,u.generateEnum)(w),_+="\n";for(const w of c.structTypes)_+=(0,u.generateClass)(w),_+="\n";const D=[],C=new i.ErrorNode("Connection",new i.VoidPrimitiveType);D.push(C.name);for(const w of c.errors)D.push(w.name);return D.length>0&&(_+=(0,u.generateErrorType)(D),_+="\n"),_+=(0,u.generateErrorClass)(),_+="\n",_+=" public enum Result<T> {\n case success(T)\n case failure(Failure)\n }\n\n",_+=" public class Calls: SdkgenHttpClient, APICallsProtocol {\n\n override init(baseUrl: String) {\n super.init(baseUrl: baseUrl)\n }\n\n",_+=c.operations.filter(w=>w.annotations.every(h=>!(h instanceof i.HiddenAnnotation))).map(w=>{let h="";return h+=` ${(0,u.generateMethodSignature)(w)} {\n`,w.args.length>0?(h+=" var jsonArgs = [String: Any]()\n",h+=w.args.map(A=>` jsonArgs["${(0,u.mangle)(A.name)}"] = ${(0,u.generateJsonRepresentation)(A.type,(0,u.mangle)(A.name))}`).join("\n")):h+=" let jsonArgs = [String: Any]()",h+="\n\n",h+=` request("${w.name}", jsonArgs, timeoutSeconds, completion: { (value: ${w.returnType instanceof i.VoidPrimitiveType?"API.NoReply":(0,u.generateSwiftTypeName)(w.returnType)}) in\n`,h+=" callback?(API.Result.success(value))\n",h+=" }, onError: { error in\n",h+=" callback?(API.Result.failure(API.Failure(message: error.message, code: error.code, type: error.type)))\n",h+=" })",h+="\n }\n",h}).join("\n"),_+=" }\n",_+="}\n",s&&(_+="\n",_+="extension API: ReactiveCompatible {}\n\n",_+="extension Reactive where Base: API {\n",_+=c.operations.filter(w=>w.annotations.every(h=>!(h instanceof i.HiddenAnnotation))).map(w=>`${(0,u.generateRxMethod)(w)}`).join("\n"),_+="}\n"),_}},8173:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateBrowserClientSource=void 0;const i=l(6676),u=l(5596);g.generateBrowserClientSource=function m(c){let s="";s+=`/* eslint-disable */\nimport { SdkgenError${c.errors.some(D=>!(D.dataType instanceof i.VoidPrimitiveType))?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/browser-runtime";\n\n`;for(const D of c.enumTypes)s+=(0,u.generateTypescriptEnum)(D),s+="\n";for(const D of c.structTypes)s+=(0,u.generateTypescriptInterface)(D,!0),s+="\n";for(const D of c.errors)s+=(0,u.generateTypescriptErrorClass)(D,!0),s+="\n";return s+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${c.operations.filter(D=>D.annotations.every(C=>!(C instanceof i.HiddenAnnotation))).map(D=>`\n ${D.name}(args${0===D.args.length?"?":""}: {${D.args.map(C=>`${C.name}${C.type.name.endsWith("?")?"?":""}: ${(0,u.generateTypescriptTypeName)(C.type,!0)}`).join(", ")}}): Promise<${(0,u.generateTypescriptTypeName)(D.returnType,!0)}> { return this.makeRequest("${D.name}", args || {}); }`).join("")}\n}\n\n`,s+=`const errClasses = {\n${c.errors.map(D=>` ${D.name}`).join(",\n")}\n};\n\n`,s+=`const astJson = ${JSON.stringify((0,i.astToJson)(c),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:")} as const;\n`,s}},5596:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.clearForLogging=g.generateTypescriptErrorClass=g.generateTypescriptEnum=g.generateTypescriptInterface=g.generateTypescriptTypeName=void 0;const i=l(6676);function u(D,C){switch(D.constructor){case i.IntPrimitiveType:case i.UIntPrimitiveType:case i.MoneyPrimitiveType:case i.FloatPrimitiveType:return"number";case i.BigIntPrimitiveType:return"bigint";case i.DatePrimitiveType:case i.DateTimePrimitiveType:return"Date";case i.BoolPrimitiveType:return"boolean";case i.BytesPrimitiveType:return C?"ArrayBuffer":"Buffer";case i.StringPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:return"string";case i.VoidPrimitiveType:return"void";case i.JsonPrimitiveType:return"any";case i.OptionalType:return`${u(D.base,C)} | null`;case i.ArrayType:{const{base:w}=D,h=u(w,C);return w instanceof i.OptionalType?`(${h})[]`:`${h}[]`}case i.StructType:case i.EnumType:return D.name;case i.TypeReference:return u(D.type,C);default:throw new Error(`BUG: generateTypescriptTypeName with ${D.constructor.name}`)}}g.generateTypescriptTypeName=u,g.generateTypescriptInterface=function m(D,C){return`export interface ${D.name} {\n${D.fields.map(w=>` ${w.name}: ${u(w.type,C)}`).join("\n")}\n}\n`},g.generateTypescriptEnum=function c(D){return D.hasStructValues?`export type ${D.name} = ${D.values.map(C=>C.struct?`({tag: "${C.value}"} & ${C.struct.name})`:`{tag: "${C.value}"}`).join(" | ")};\n`:`export type ${D.name} = ${D.values.map(C=>`"${C.value}"`).join(" | ")};\n`},g.generateTypescriptErrorClass=function s(D,C){return`export class ${D.name} extends ${D.dataType instanceof i.VoidPrimitiveType?"SdkgenError":`SdkgenErrorWithData<${u(D.dataType,C)}>`} {}\n`},g.clearForLogging=function _(D,C){switch(C.constructor){case i.TypeReference:return _(D,C.type);case i.OptionalType:{const w=_(D,C.base);return w?`if (${D} !== null && ${D} !== undefined) { ${w} }`:""}case i.ArrayType:{const w=_("el",C.base);return w?`for (const el of ${D}) { ${w} }`:""}case i.StructType:{const w=[];for(const h of C.fields)if(h.secret)w.push(`${D}.${h.name} = "<secret>";`);else{const A=_(`${D}.${h.name}`,h.type);A&&w.push(A)}return w.join(" ")}default:return""}}},2911:function(je,g,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,c,s,_){void 0===_&&(_=s),Object.defineProperty(m,_,{enumerable:!0,get:function(){return c[s]}})}:function(m,c,s,_){void 0===_&&(_=s),m[_]=c[s]}),u=this&&this.__exportStar||function(m,c){for(var s in m)"default"!==s&&!Object.prototype.hasOwnProperty.call(c,s)&&i(c,m,s)};Object.defineProperty(g,"__esModule",{value:!0}),u(l(8173),g),u(l(7538),g),u(l(1727),g),u(l(615),g)},7538:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateTypescriptInterfaces=void 0;const i=l(5596);g.generateTypescriptInterfaces=function u(m){let c="";for(const s of m.enumTypes)c+=(0,i.generateTypescriptEnum)(s);c+="\n";for(const s of m.structTypes)c+=(0,i.generateTypescriptInterface)(s,!1),c+="\n";return c}},1727:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateNodeClientSource=void 0;const i=l(6676),u=l(5596);g.generateNodeClientSource=function m(c){let s="";const _=c.errors.some(C=>!(C.dataType instanceof i.VoidPrimitiveType));s+=`/* eslint-disable */\nimport { Context, Fatal${c.errors.filter(C=>"Fatal"!==C.name).some(C=>C.dataType instanceof i.VoidPrimitiveType)?", SdkgenError":""}${_?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/node-runtime";\nimport { PartialDeep } from "type-fest";\nexport { Fatal } from "@sdkgen/node-runtime";\n\n`;for(const C of c.enumTypes)s+=(0,u.generateTypescriptEnum)(C),s+="\n";for(const C of c.structTypes)s+=(0,u.generateTypescriptInterface)(C,!1),s+="\n";for(const C of c.errors)"Fatal"!==C.name&&(s+=(0,u.generateTypescriptErrorClass)(C,!1),s+="\n");return s+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${c.operations.filter(C=>C.annotations.every(w=>!(w instanceof i.HiddenAnnotation))).map(C=>`\n ${C.name}(ctx: PartialDeep<Context> | null, args: {${C.args.map(w=>`${w.name}${w.type.name.endsWith("?")?"?":""}: ${(0,u.generateTypescriptTypeName)(w.type,!1)}`).join(", ")}}): Promise<${(0,u.generateTypescriptTypeName)(C.returnType,!1)}> { return this.makeRequest(ctx, "${C.name}", args); }`).join("")}\n}\n\n`,s+=`const errClasses = {\n${c.errors.map(C=>` ${C.name}`).join(",\n")}\n};\n\n`,s+=`const astJson = ${JSON.stringify((0,i.astToJson)(c),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:")} as const;\n`,s}},615:(je,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.generateNodeServerSource=void 0;const i=l(6676),u=l(5596);g.generateNodeServerSource=function m(c){let s="";const _=c.errors.some(C=>!(C.dataType instanceof i.VoidPrimitiveType));s+=`/* eslint-disable */\nimport { BaseApiConfig, Context, Fatal${c.errors.filter(C=>"Fatal"!==C.name).some(C=>C.dataType instanceof i.VoidPrimitiveType)?", SdkgenError":""}${_?", SdkgenErrorWithData":""} } from "@sdkgen/node-runtime";\nexport { Fatal } from "@sdkgen/node-runtime";\n\n`;for(const C of c.enumTypes)s+=(0,u.generateTypescriptEnum)(C),s+="\n";for(const C of c.structTypes)s+=(0,u.generateTypescriptInterface)(C,!1),s+="\n";for(const C of c.errors)"Fatal"!==C.name&&(s+=(0,u.generateTypescriptErrorClass)(C,!1),s+="\n");return s+=`export class ApiConfig<ExtraContextT> extends BaseApiConfig<ExtraContextT> {\n fn!: {${c.operations.map(C=>`\n ${C.name}: (ctx: Context & ExtraContextT, args: {${C.args.map(w=>`${w.name}: ${(0,u.generateTypescriptTypeName)(w.type,!1)}`).join(", ")}}) => Promise<${(0,u.generateTypescriptTypeName)(C.returnType,!1)}>`).join("")}\n }\n\n astJson = ${JSON.stringify((0,i.astToJson)(c),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:").replace(/\n/gu,"\n ")} as const\n}\n\nexport const api = new ApiConfig<{}>();\n`,s}},8926:je=>{function g(i,u,m,c,s,_,D){try{var C=i[_](D),w=C.value}catch(h){return void m(h)}C.done?u(w):Promise.resolve(w).then(c,s)}je.exports=function l(i){return function(){var u=this,m=arguments;return new Promise(function(c,s){var _=i.apply(u,m);function D(w){g(_,c,s,D,C,"next",w)}function C(w){g(_,c,s,D,C,"throw",w)}D(void 0)})}},je.exports.__esModule=!0,je.exports.default=je.exports},655:(je,g,l)=>{"use strict";l.r(g),l.d(g,{__extends:()=>u,__assign:()=>m,__rest:()=>c,__decorate:()=>s,__param:()=>_,__metadata:()=>D,__awaiter:()=>C,__generator:()=>w,__createBinding:()=>h,__exportStar:()=>A,__values:()=>T,__read:()=>v,__spread:()=>N,__spreadArrays:()=>U,__spreadArray:()=>fe,__await:()=>Q,__asyncGenerator:()=>he,__asyncDelegator:()=>Re,__asyncValues:()=>_e,__makeTemplateObject:()=>be,__importStar:()=>Ce,__importDefault:()=>Fe,__classPrivateFieldGet:()=>Ye,__classPrivateFieldSet:()=>st});var i=function($e,de){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Pe,z){Pe.__proto__=z}||function(Pe,z){for(var ge in z)Object.prototype.hasOwnProperty.call(z,ge)&&(Pe[ge]=z[ge])})($e,de)};function u($e,de){if("function"!=typeof de&&null!==de)throw new TypeError("Class extends value "+String(de)+" is not a constructor or null");function Pe(){this.constructor=$e}i($e,de),$e.prototype=null===de?Object.create(de):(Pe.prototype=de.prototype,new Pe)}var m=function(){return m=Object.assign||function(de){for(var Pe,z=1,ge=arguments.length;z<ge;z++)for(var ie in Pe=arguments[z])Object.prototype.hasOwnProperty.call(Pe,ie)&&(de[ie]=Pe[ie]);return de},m.apply(this,arguments)};function c($e,de){var Pe={};for(var z in $e)Object.prototype.hasOwnProperty.call($e,z)&&de.indexOf(z)<0&&(Pe[z]=$e[z]);if(null!=$e&&"function"==typeof Object.getOwnPropertySymbols){var ge=0;for(z=Object.getOwnPropertySymbols($e);ge<z.length;ge++)de.indexOf(z[ge])<0&&Object.prototype.propertyIsEnumerable.call($e,z[ge])&&(Pe[z[ge]]=$e[z[ge]])}return Pe}function s($e,de,Pe,z){var xe,ge=arguments.length,ie=ge<3?de:null===z?z=Object.getOwnPropertyDescriptor(de,Pe):z;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ie=Reflect.decorate($e,de,Pe,z);else for(var me=$e.length-1;me>=0;me--)(xe=$e[me])&&(ie=(ge<3?xe(ie):ge>3?xe(de,Pe,ie):xe(de,Pe))||ie);return ge>3&&ie&&Object.defineProperty(de,Pe,ie),ie}function _($e,de){return function(Pe,z){de(Pe,z,$e)}}function D($e,de){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata($e,de)}function C($e,de,Pe,z){return new(Pe||(Pe=Promise))(function(ie,xe){function me(ze){try{ve(z.next(ze))}catch(ct){xe(ct)}}function Je(ze){try{ve(z.throw(ze))}catch(ct){xe(ct)}}function ve(ze){ze.done?ie(ze.value):function ge(ie){return ie instanceof Pe?ie:new Pe(function(xe){xe(ie)})}(ze.value).then(me,Je)}ve((z=z.apply($e,de||[])).next())})}function w($e,de){var z,ge,ie,xe,Pe={label:0,sent:function(){if(1&ie[0])throw ie[1];return ie[1]},trys:[],ops:[]};return xe={next:me(0),throw:me(1),return:me(2)},"function"==typeof Symbol&&(xe[Symbol.iterator]=function(){return this}),xe;function me(ve){return function(ze){return function Je(ve){if(z)throw new TypeError("Generator is already executing.");for(;Pe;)try{if(z=1,ge&&(ie=2&ve[0]?ge.return:ve[0]?ge.throw||((ie=ge.return)&&ie.call(ge),0):ge.next)&&!(ie=ie.call(ge,ve[1])).done)return ie;switch(ge=0,ie&&(ve=[2&ve[0],ie.value]),ve[0]){case 0:case 1:ie=ve;break;case 4:return Pe.label++,{value:ve[1],done:!1};case 5:Pe.label++,ge=ve[1],ve=[0];continue;case 7:ve=Pe.ops.pop(),Pe.trys.pop();continue;default:if(!(ie=(ie=Pe.trys).length>0&&ie[ie.length-1])&&(6===ve[0]||2===ve[0])){Pe=0;continue}if(3===ve[0]&&(!ie||ve[1]>ie[0]&&ve[1]<ie[3])){Pe.label=ve[1];break}if(6===ve[0]&&Pe.label<ie[1]){Pe.label=ie[1],ie=ve;break}if(ie&&Pe.label<ie[2]){Pe.label=ie[2],Pe.ops.push(ve);break}ie[2]&&Pe.ops.pop(),Pe.trys.pop();continue}ve=de.call($e,Pe)}catch(ze){ve=[6,ze],ge=0}finally{z=ie=0}if(5&ve[0])throw ve[1];return{value:ve[0]?ve[1]:void 0,done:!0}}([ve,ze])}}}var h=Object.create?function($e,de,Pe,z){void 0===z&&(z=Pe),Object.defineProperty($e,z,{enumerable:!0,get:function(){return de[Pe]}})}:function($e,de,Pe,z){void 0===z&&(z=Pe),$e[z]=de[Pe]};function A($e,de){for(var Pe in $e)"default"!==Pe&&!Object.prototype.hasOwnProperty.call(de,Pe)&&h(de,$e,Pe)}function T($e){var de="function"==typeof Symbol&&Symbol.iterator,Pe=de&&$e[de],z=0;if(Pe)return Pe.call($e);if($e&&"number"==typeof $e.length)return{next:function(){return $e&&z>=$e.length&&($e=void 0),{value:$e&&$e[z++],done:!$e}}};throw new TypeError(de?"Object is not iterable.":"Symbol.iterator is not defined.")}function v($e,de){var Pe="function"==typeof Symbol&&$e[Symbol.iterator];if(!Pe)return $e;var ge,xe,z=Pe.call($e),ie=[];try{for(;(void 0===de||de-- >0)&&!(ge=z.next()).done;)ie.push(ge.value)}catch(me){xe={error:me}}finally{try{ge&&!ge.done&&(Pe=z.return)&&Pe.call(z)}finally{if(xe)throw xe.error}}return ie}function N(){for(var $e=[],de=0;de<arguments.length;de++)$e=$e.concat(v(arguments[de]));return $e}function U(){for(var $e=0,de=0,Pe=arguments.length;de<Pe;de++)$e+=arguments[de].length;var z=Array($e),ge=0;for(de=0;de<Pe;de++)for(var ie=arguments[de],xe=0,me=ie.length;xe<me;xe++,ge++)z[ge]=ie[xe];return z}function fe($e,de,Pe){if(Pe||2===arguments.length)for(var ie,z=0,ge=de.length;z<ge;z++)(ie||!(z in de))&&(ie||(ie=Array.prototype.slice.call(de,0,z)),ie[z]=de[z]);return $e.concat(ie||Array.prototype.slice.call(de))}function Q($e){return this instanceof Q?(this.v=$e,this):new Q($e)}function he($e,de,Pe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ge,z=Pe.apply($e,de||[]),ie=[];return ge={},xe("next"),xe("throw"),xe("return"),ge[Symbol.asyncIterator]=function(){return this},ge;function xe(Dt){z[Dt]&&(ge[Dt]=function(Be){return new Promise(function(et,ne){ie.push([Dt,Be,et,ne])>1||me(Dt,Be)})})}function me(Dt,Be){try{!function Je(Dt){Dt.value instanceof Q?Promise.resolve(Dt.value.v).then(ve,ze):ct(ie[0][2],Dt)}(z[Dt](Be))}catch(et){ct(ie[0][3],et)}}function ve(Dt){me("next",Dt)}function ze(Dt){me("throw",Dt)}function ct(Dt,Be){Dt(Be),ie.shift(),ie.length&&me(ie[0][0],ie[0][1])}}function Re($e){var de,Pe;return de={},z("next"),z("throw",function(ge){throw ge}),z("return"),de[Symbol.iterator]=function(){return this},de;function z(ge,ie){de[ge]=$e[ge]?function(xe){return(Pe=!Pe)?{value:Q($e[ge](xe)),done:"return"===ge}:ie?ie(xe):xe}:ie}}function _e($e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Pe,de=$e[Symbol.asyncIterator];return de?de.call($e):($e=T($e),Pe={},z("next"),z("throw"),z("return"),Pe[Symbol.asyncIterator]=function(){return this},Pe);function z(ie){Pe[ie]=$e[ie]&&function(xe){return new Promise(function(me,Je){!function ge(ie,xe,me,Je){Promise.resolve(Je).then(function(ve){ie({value:ve,done:me})},xe)}(me,Je,(xe=$e[ie](xe)).done,xe.value)})}}}function be($e,de){return Object.defineProperty?Object.defineProperty($e,"raw",{value:de}):$e.raw=de,$e}var q=Object.create?function($e,de){Object.defineProperty($e,"default",{enumerable:!0,value:de})}:function($e,de){$e.default=de};function Ce($e){if($e&&$e.__esModule)return $e;var de={};if(null!=$e)for(var Pe in $e)"default"!==Pe&&Object.prototype.hasOwnProperty.call($e,Pe)&&h(de,$e,Pe);return q(de,$e),de}function Fe($e){return $e&&$e.__esModule?$e:{default:$e}}function Ye($e,de,Pe,z){if("a"===Pe&&!z)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof de?$e!==de||!z:!de.has($e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===Pe?z:"a"===Pe?z.call($e):z?z.value:de.get($e)}function st($e,de,Pe,z,ge){if("m"===z)throw new TypeError("Private method is not writable");if("a"===z&&!ge)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof de?$e!==de||!ge:!de.has($e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===z?ge.call($e,Pe):ge?ge.value=Pe:de.set($e,Pe),Pe}},1777:(je,g,l)=>{"use strict";l.d(g,{l3:()=>m,_j:()=>i,LC:()=>u,ZN:()=>he,jt:()=>s,F4:()=>h,vP:()=>D,SB:()=>w,oB:()=>C,eR:()=>A,X$:()=>c,ZE:()=>Re,k1:()=>_e});class i{}class u{}const m="*";function c(be,q){return{type:7,name:be,definitions:q,options:{}}}function s(be,q=null){return{type:4,styles:q,timings:be}}function D(be,q=null){return{type:2,steps:be,options:q}}function C(be){return{type:6,styles:be,offset:null}}function w(be,q,Ce){return{type:0,name:be,styles:q,options:Ce}}function h(be){return{type:5,steps:be}}function A(be,q,Ce=null){return{type:1,expr:be,animation:q,options:Ce}}function Q(be){Promise.resolve(null).then(be)}class he{constructor(q=0,Ce=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=q+Ce}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(q=>q()),this._onDoneFns=[])}onStart(q){this._onStartFns.push(q)}onDone(q){this._onDoneFns.push(q)}onDestroy(q){this._onDestroyFns.push(q)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Q(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(q=>q()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(q=>q()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(q){this._position=this.totalTime?q*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(q){const Ce="start"==q?this._onStartFns:this._onDoneFns;Ce.forEach(Fe=>Fe()),Ce.length=0}}class Re{constructor(q){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=q;let Ce=0,Fe=0,Ye=0;const st=this.players.length;0==st?Q(()=>this._onFinish()):this.players.forEach($e=>{$e.onDone(()=>{++Ce==st&&this._onFinish()}),$e.onDestroy(()=>{++Fe==st&&this._onDestroy()}),$e.onStart(()=>{++Ye==st&&this._onStart()})}),this.totalTime=this.players.reduce(($e,de)=>Math.max($e,de.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(q=>q()),this._onDoneFns=[])}init(){this.players.forEach(q=>q.init())}onStart(q){this._onStartFns.push(q)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(q=>q()),this._onStartFns=[])}onDone(q){this._onDoneFns.push(q)}onDestroy(q){this._onDestroyFns.push(q)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(q=>q.play())}pause(){this.players.forEach(q=>q.pause())}restart(){this.players.forEach(q=>q.restart())}finish(){this._onFinish(),this.players.forEach(q=>q.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(q=>q.destroy()),this._onDestroyFns.forEach(q=>q()),this._onDestroyFns=[])}reset(){this.players.forEach(q=>q.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(q){const Ce=q*this.totalTime;this.players.forEach(Fe=>{const Ye=Fe.totalTime?Math.min(1,Ce/Fe.totalTime):1;Fe.setPosition(Ye)})}getPosition(){const q=this.players.reduce((Ce,Fe)=>null===Ce||Fe.totalTime>Ce.totalTime?Fe:Ce,null);return null!=q?q.getPosition():0}beforeDestroy(){this.players.forEach(q=>{q.beforeDestroy&&q.beforeDestroy()})}triggerCallback(q){const Ce="start"==q?this._onStartFns:this._onDoneFns;Ce.forEach(Fe=>Fe()),Ce.length=0}}const _e="!"},5664:(je,g,l)=>{"use strict";l.d(g,{rt:()=>Xt,$s:()=>$e,kH:()=>Jt,Em:()=>ie,tE:()=>pn,qV:()=>mt,qm:()=>Ut,ic:()=>me,X6:()=>Oe,yG:()=>le});var i=l(9808),u=l(5e3),m=l(925),c=l(6758),s=l(6921),_=l(1135),D=l(9646),C=l(1159),w=l(8505),h=l(8372),A=l(9300),T=l(4004),v=l(5698),N=l(5684),U=l(1884),fe=l(2722),Q=l(3191),he=l(7144);function q(ce,J){return(ce.getAttribute(J)||"").match(/\S+/g)||[]}const Fe="cdk-describedby-message",Ye="cdk-describedby-host";let st=0,$e=(()=>{class ce{constructor(B,P){this._platform=P,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+st++,this._document=B}describe(B,P,re){if(!this._canBeDescribed(B,P))return;const b=de(P,re);"string"!=typeof P?(Pe(P),this._messageRegistry.set(b,{messageElement:P,referenceCount:0})):this._messageRegistry.has(b)||this._createMessageElement(P,re),this._isElementDescribedByMessage(B,b)||this._addMessageReference(B,b)}removeDescription(B,P,re){var b;if(!P||!this._isElementNode(B))return;const $=de(P,re);if(this._isElementDescribedByMessage(B,$)&&this._removeMessageReference(B,$),"string"==typeof P){const Ne=this._messageRegistry.get($);Ne&&0===Ne.referenceCount&&this._deleteMessageElement($)}0===(null===(b=this._messagesContainer)||void 0===b?void 0:b.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var B;const P=this._document.querySelectorAll(`[${Ye}="${this._id}"]`);for(let re=0;re<P.length;re++)this._removeCdkDescribedByReferenceIds(P[re]),P[re].removeAttribute(Ye);null===(B=this._messagesContainer)||void 0===B||B.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(B,P){const re=this._document.createElement("div");Pe(re),re.textContent=B,P&&re.setAttribute("role",P),this._createMessagesContainer(),this._messagesContainer.appendChild(re),this._messageRegistry.set(de(B,P),{messageElement:re,referenceCount:0})}_deleteMessageElement(B){var P,re;null===(re=null===(P=this._messageRegistry.get(B))||void 0===P?void 0:P.messageElement)||void 0===re||re.remove(),this._messageRegistry.delete(B)}_createMessagesContainer(){if(this._messagesContainer)return;const B="cdk-describedby-message-container",P=this._document.querySelectorAll(`.${B}[platform="server"]`);for(let b=0;b<P.length;b++)P[b].remove();const re=this._document.createElement("div");re.style.visibility="hidden",re.classList.add(B),re.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&re.setAttribute("platform","server"),this._document.body.appendChild(re),this._messagesContainer=re}_removeCdkDescribedByReferenceIds(B){const P=q(B,"aria-describedby").filter(re=>0!=re.indexOf(Fe));B.setAttribute("aria-describedby",P.join(" "))}_addMessageReference(B,P){const re=this._messageRegistry.get(P);(function _e(ce,J,B){const P=q(ce,J);P.some(re=>re.trim()==B.trim())||(P.push(B.trim()),ce.setAttribute(J,P.join(" ")))})(B,"aria-describedby",re.messageElement.id),B.setAttribute(Ye,this._id),re.referenceCount++}_removeMessageReference(B,P){const re=this._messageRegistry.get(P);re.referenceCount--,function be(ce,J,B){const re=q(ce,J).filter(b=>b!=B.trim());re.length?ce.setAttribute(J,re.join(" ")):ce.removeAttribute(J)}(B,"aria-describedby",re.messageElement.id),B.removeAttribute(Ye)}_isElementDescribedByMessage(B,P){const re=q(B,"aria-describedby"),b=this._messageRegistry.get(P),$=b&&b.messageElement.id;return!!$&&-1!=re.indexOf($)}_canBeDescribed(B,P){if(!this._isElementNode(B))return!1;if(P&&"object"==typeof P)return!0;const re=null==P?"":`${P}`.trim(),b=B.getAttribute("aria-label");return!(!re||b&&b.trim()===re)}_isElementNode(B){return B.nodeType===this._document.ELEMENT_NODE}}return ce.\u0275fac=function(B){return new(B||ce)(u.\u0275\u0275inject(i.DOCUMENT),u.\u0275\u0275inject(m.t4))},ce.\u0275prov=u.\u0275\u0275defineInjectable({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();function de(ce,J){return"string"==typeof ce?`${J||""}/${ce}`:ce}function Pe(ce){ce.id||(ce.id=`${Fe}-${st++}`)}class ie extends class z{constructor(J){this._items=J,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new c.x,this._typeaheadSubscription=s.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=B=>B.disabled,this._pressedLetters=[],this.tabOut=new c.x,this.change=new c.x,J instanceof u.QueryList&&J.changes.subscribe(B=>{if(this._activeItem){const re=B.toArray().indexOf(this._activeItem);re>-1&&re!==this._activeItemIndex&&(this._activeItemIndex=re)}})}skipPredicate(J){return this._skipPredicateFn=J,this}withWrap(J=!0){return this._wrap=J,this}withVerticalOrientation(J=!0){return this._vertical=J,this}withHorizontalOrientation(J){return this._horizontal=J,this}withAllowedModifierKeys(J){return this._allowedModifierKeys=J,this}withTypeAhead(J=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,w.b)(B=>this._pressedLetters.push(B)),(0,h.b)(J),(0,A.h)(()=>this._pressedLetters.length>0),(0,T.U)(()=>this._pressedLetters.join(""))).subscribe(B=>{const P=this._getItemsArray();for(let re=1;re<P.length+1;re++){const b=(this._activeItemIndex+re)%P.length,$=P[b];if(!this._skipPredicateFn($)&&0===$.getLabel().toUpperCase().trim().indexOf(B)){this.setActiveItem(b);break}}this._pressedLetters=[]}),this}withHomeAndEnd(J=!0){return this._homeAndEnd=J,this}setActiveItem(J){const B=this._activeItem;this.updateActiveItem(J),this._activeItem!==B&&this.change.next(this._activeItemIndex)}onKeydown(J){const B=J.keyCode,re=["altKey","ctrlKey","metaKey","shiftKey"].every(b=>!J[b]||this._allowedModifierKeys.indexOf(b)>-1);switch(B){case C.Mf:return void this.tabOut.next();case C.JH:if(this._vertical&&re){this.setNextItemActive();break}return;case C.LH:if(this._vertical&&re){this.setPreviousItemActive();break}return;case C.SV:if(this._horizontal&&re){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case C.oh:if(this._horizontal&&re){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case C.Sd:if(this._homeAndEnd&&re){this.setFirstItemActive();break}return;case C.uR:if(this._homeAndEnd&&re){this.setLastItemActive();break}return;default:return void((re||(0,C.Vb)(J,"shiftKey"))&&(J.key&&1===J.key.length?this._letterKeyStream.next(J.key.toLocaleUpperCase()):(B>=C.A&&B<=C.Z||B>=C.xE&&B<=C.aO)&&this._letterKeyStream.next(String.fromCharCode(B))))}this._pressedLetters=[],J.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(J){const B=this._getItemsArray(),P="number"==typeof J?J:B.indexOf(J),re=B[P];this._activeItem=null==re?null:re,this._activeItemIndex=P}_setActiveItemByDelta(J){this._wrap?this._setActiveInWrapMode(J):this._setActiveInDefaultMode(J)}_setActiveInWrapMode(J){const B=this._getItemsArray();for(let P=1;P<=B.length;P++){const re=(this._activeItemIndex+J*P+B.length)%B.length;if(!this._skipPredicateFn(B[re]))return void this.setActiveItem(re)}}_setActiveInDefaultMode(J){this._setActiveItemByIndex(this._activeItemIndex+J,J)}_setActiveItemByIndex(J,B){const P=this._getItemsArray();if(P[J]){for(;this._skipPredicateFn(P[J]);)if(!P[J+=B])return;this.setActiveItem(J)}}_getItemsArray(){return this._items instanceof u.QueryList?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(J){return this._origin=J,this}setActiveItem(J){super.setActiveItem(J),this.activeItem&&this.activeItem.focus(this._origin)}}let me=(()=>{class ce{constructor(B){this._platform=B}isDisabled(B){return B.hasAttribute("disabled")}isVisible(B){return function ve(ce){return!!(ce.offsetWidth||ce.offsetHeight||"function"==typeof ce.getClientRects&&ce.getClientRects().length)}(B)&&"visible"===getComputedStyle(B).visibility}isTabbable(B){if(!this._platform.isBrowser)return!1;const P=function Je(ce){try{return ce.frameElement}catch(J){return null}}(function Ee(ce){return ce.ownerDocument&&ce.ownerDocument.defaultView||window}(B));if(P&&(-1===pe(P)||!this.isVisible(P)))return!1;let re=B.nodeName.toLowerCase(),b=pe(B);return B.hasAttribute("contenteditable")?-1!==b:!("iframe"===re||"object"===re||this._platform.WEBKIT&&this._platform.IOS&&!function we(ce){let J=ce.nodeName.toLowerCase(),B="input"===J&&ce.type;return"text"===B||"password"===B||"select"===J||"textarea"===J}(B))&&("audio"===re?!!B.hasAttribute("controls")&&-1!==b:"video"===re?-1!==b&&(null!==b||this._platform.FIREFOX||B.hasAttribute("controls")):B.tabIndex>=0)}isFocusable(B,P){return function ke(ce){return!function ct(ce){return function Be(ce){return"input"==ce.nodeName.toLowerCase()}(ce)&&"hidden"==ce.type}(ce)&&(function ze(ce){let J=ce.nodeName.toLowerCase();return"input"===J||"select"===J||"button"===J||"textarea"===J}(ce)||function Dt(ce){return function et(ce){return"a"==ce.nodeName.toLowerCase()}(ce)&&ce.hasAttribute("href")}(ce)||ce.hasAttribute("contenteditable")||ne(ce))}(B)&&!this.isDisabled(B)&&((null==P?void 0:P.ignoreVisibility)||this.isVisible(B))}}return ce.\u0275fac=function(B){return new(B||ce)(u.\u0275\u0275inject(m.t4))},ce.\u0275prov=u.\u0275\u0275defineInjectable({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();function ne(ce){if(!ce.hasAttribute("tabindex")||void 0===ce.tabIndex)return!1;let J=ce.getAttribute("tabindex");return!(!J||isNaN(parseInt(J,10)))}function pe(ce){if(!ne(ce))return null;const J=parseInt(ce.getAttribute("tabindex")||"",10);return isNaN(J)?-1:J}class Ze{constructor(J,B,P,re,b=!1){this._element=J,this._checker=B,this._ngZone=P,this._document=re,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,b||this.attachAnchors()}get enabled(){return this._enabled}set enabled(J){this._enabled=J,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(J,this._startAnchor),this._toggleAnchorTabIndex(J,this._endAnchor))}destroy(){const J=this._startAnchor,B=this._endAnchor;J&&(J.removeEventListener("focus",this.startAnchorListener),J.remove()),B&&(B.removeEventListener("focus",this.endAnchorListener),B.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(J){return new Promise(B=>{this._executeOnStable(()=>B(this.focusInitialElement(J)))})}focusFirstTabbableElementWhenReady(J){return new Promise(B=>{this._executeOnStable(()=>B(this.focusFirstTabbableElement(J)))})}focusLastTabbableElementWhenReady(J){return new Promise(B=>{this._executeOnStable(()=>B(this.focusLastTabbableElement(J)))})}_getRegionBoundary(J){const B=this._element.querySelectorAll(`[cdk-focus-region-${J}], [cdkFocusRegion${J}], [cdk-focus-${J}]`);return"start"==J?B.length?B[0]:this._getFirstTabbableElement(this._element):B.length?B[B.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(J){const B=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(B){if(!this._checker.isFocusable(B)){const P=this._getFirstTabbableElement(B);return null==P||P.focus(J),!!P}return B.focus(J),!0}return this.focusFirstTabbableElement(J)}focusFirstTabbableElement(J){const B=this._getRegionBoundary("start");return B&&B.focus(J),!!B}focusLastTabbableElement(J){const B=this._getRegionBoundary("end");return B&&B.focus(J),!!B}hasAttached(){return this._hasAttached}_getFirstTabbableElement(J){if(this._checker.isFocusable(J)&&this._checker.isTabbable(J))return J;const B=J.children;for(let P=0;P<B.length;P++){const re=B[P].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(B[P]):null;if(re)return re}return null}_getLastTabbableElement(J){if(this._checker.isFocusable(J)&&this._checker.isTabbable(J))return J;const B=J.children;for(let P=B.length-1;P>=0;P--){const re=B[P].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(B[P]):null;if(re)return re}return null}_createAnchor(){const J=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,J),J.classList.add("cdk-visually-hidden"),J.classList.add("cdk-focus-trap-anchor"),J.setAttribute("aria-hidden","true"),J}_toggleAnchorTabIndex(J,B){J?B.setAttribute("tabindex","0"):B.removeAttribute("tabindex")}toggleAnchors(J){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(J,this._startAnchor),this._toggleAnchorTabIndex(J,this._endAnchor))}_executeOnStable(J){this._ngZone.isStable?J():this._ngZone.onStable.pipe((0,v.q)(1)).subscribe(J)}}let mt=(()=>{class ce{constructor(B,P,re){this._checker=B,this._ngZone=P,this._document=re}create(B,P=!1){return new Ze(B,this._checker,this._ngZone,this._document,P)}}return ce.\u0275fac=function(B){return new(B||ce)(u.\u0275\u0275inject(me),u.\u0275\u0275inject(u.NgZone),u.\u0275\u0275inject(i.DOCUMENT))},ce.\u0275prov=u.\u0275\u0275defineInjectable({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();function Oe(ce){return 0===ce.buttons||0===ce.offsetX&&0===ce.offsetY}function le(ce){const J=ce.touches&&ce.touches[0]||ce.changedTouches&&ce.changedTouches[0];return!(!J||-1!==J.identifier||null!=J.radiusX&&1!==J.radiusX||null!=J.radiusY&&1!==J.radiusY)}const Ie=new u.InjectionToken("cdk-input-modality-detector-options"),Te={ignoreKeys:[C.zL,C.jx,C.b2,C.MW,C.JU]},De=(0,m.i$)({passive:!0,capture:!0});let Qe=(()=>{class ce{constructor(B,P,re,b){this._platform=B,this._mostRecentTarget=null,this._modality=new _.X(null),this._lastTouchMs=0,this._onKeydown=$=>{var Ne,it;(null===(it=null===(Ne=this._options)||void 0===Ne?void 0:Ne.ignoreKeys)||void 0===it?void 0:it.some(Bt=>Bt===$.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,m.sA)($))},this._onMousedown=$=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Oe($)?"keyboard":"mouse"),this._mostRecentTarget=(0,m.sA)($))},this._onTouchstart=$=>{le($)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,m.sA)($))},this._options=Object.assign(Object.assign({},Te),b),this.modalityDetected=this._modality.pipe((0,N.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,U.x)()),B.isBrowser&&P.runOutsideAngular(()=>{re.addEventListener("keydown",this._onKeydown,De),re.addEventListener("mousedown",this._onMousedown,De),re.addEventListener("touchstart",this._onTouchstart,De)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,De),document.removeEventListener("mousedown",this._onMousedown,De),document.removeEventListener("touchstart",this._onTouchstart,De))}}return ce.\u0275fac=function(B){return new(B||ce)(u.\u0275\u0275inject(m.t4),u.\u0275\u0275inject(u.NgZone),u.\u0275\u0275inject(i.DOCUMENT),u.\u0275\u0275inject(Ie,8))},ce.\u0275prov=u.\u0275\u0275defineInjectable({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})();const Kt=new u.InjectionToken("cdk-focus-monitor-default-options"),xt=(0,m.i$)({passive:!0,capture:!0});let pn=(()=>{class ce{constructor(B,P,re,b,$){this._ngZone=B,this._platform=P,this._inputModalityDetector=re,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new c.x,this._rootNodeFocusAndBlurListener=Ne=>{const it=(0,m.sA)(Ne),Bt="focus"===Ne.type?this._onFocus:this._onBlur;for(let jt=it;jt;jt=jt.parentElement)Bt.call(this,Ne,jt)},this._document=b,this._detectionMode=(null==$?void 0:$.detectionMode)||0}monitor(B,P=!1){const re=(0,Q.fI)(B);if(!this._platform.isBrowser||1!==re.nodeType)return(0,D.of)(null);const b=(0,m.kV)(re)||this._getDocument(),$=this._elementInfo.get(re);if($)return P&&($.checkChildren=!0),$.subject;const Ne={checkChildren:P,subject:new c.x,rootNode:b};return this._elementInfo.set(re,Ne),this._registerGlobalListeners(Ne),Ne.subject}stopMonitoring(B){const P=(0,Q.fI)(B),re=this._elementInfo.get(P);re&&(re.subject.complete(),this._setClasses(P),this._elementInfo.delete(P),this._removeGlobalListeners(re))}focusVia(B,P,re){const b=(0,Q.fI)(B);b===this._getDocument().activeElement?this._getClosestElementsInfo(b).forEach(([Ne,it])=>this._originChanged(Ne,P,it)):(this._setOrigin(P),"function"==typeof b.focus&&b.focus(re))}ngOnDestroy(){this._elementInfo.forEach((B,P)=>this.stopMonitoring(P))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(B){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(B)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(B){return 1===this._detectionMode||!!(null==B?void 0:B.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(B,P){B.classList.toggle("cdk-focused",!!P),B.classList.toggle("cdk-touch-focused","touch"===P),B.classList.toggle("cdk-keyboard-focused","keyboard"===P),B.classList.toggle("cdk-mouse-focused","mouse"===P),B.classList.toggle("cdk-program-focused","program"===P)}_setOrigin(B,P=!1){this._ngZone.runOutsideAngular(()=>{this._origin=B,this._originFromTouchInteraction="touch"===B&&P,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(B,P){const re=this._elementInfo.get(P),b=(0,m.sA)(B);!re||!re.checkChildren&&P!==b||this._originChanged(P,this._getFocusOrigin(b),re)}_onBlur(B,P){const re=this._elementInfo.get(P);!re||re.checkChildren&&B.relatedTarget instanceof Node&&P.contains(B.relatedTarget)||(this._setClasses(P),this._emitOrigin(re.subject,null))}_emitOrigin(B,P){this._ngZone.run(()=>B.next(P))}_registerGlobalListeners(B){if(!this._platform.isBrowser)return;const P=B.rootNode,re=this._rootNodeFocusListenerCount.get(P)||0;re||this._ngZone.runOutsideAngular(()=>{P.addEventListener("focus",this._rootNodeFocusAndBlurListener,xt),P.addEventListener("blur",this._rootNodeFocusAndBlurListener,xt)}),this._rootNodeFocusListenerCount.set(P,re+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,fe.R)(this._stopInputModalityDetector)).subscribe(b=>{this._setOrigin(b,!0)}))}_removeGlobalListeners(B){const P=B.rootNode;if(this._rootNodeFocusListenerCount.has(P)){const re=this._rootNodeFocusListenerCount.get(P);re>1?this._rootNodeFocusListenerCount.set(P,re-1):(P.removeEventListener("focus",this._rootNodeFocusAndBlurListener,xt),P.removeEventListener("blur",this._rootNodeFocusAndBlurListener,xt),this._rootNodeFocusListenerCount.delete(P))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(B,P,re){this._setClasses(B,P),this._emitOrigin(re.subject,P),this._lastFocusOrigin=P}_getClosestElementsInfo(B){const P=[];return this._elementInfo.forEach((re,b)=>{(b===B||re.checkChildren&&b.contains(B))&&P.push([b,re])}),P}}return ce.\u0275fac=function(B){return new(B||ce)(u.\u0275\u0275inject(u.NgZone),u.\u0275\u0275inject(m.t4),u.\u0275\u0275inject(Qe),u.\u0275\u0275inject(i.DOCUMENT,8),u.\u0275\u0275inject(Kt,8))},ce.\u0275prov=u.\u0275\u0275defineInjectable({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})(),Jt=(()=>{class ce{constructor(B,P){this._elementRef=B,this._focusMonitor=P,this.cdkFocusChange=new u.EventEmitter}ngAfterViewInit(){const B=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(B,1===B.nodeType&&B.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(P=>this.cdkFocusChange.emit(P))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return ce.\u0275fac=function(B){return new(B||ce)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(pn))},ce.\u0275dir=u.\u0275\u0275defineDirective({type:ce,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),ce})();const Nt="cdk-high-contrast-black-on-white",Et="cdk-high-contrast-white-on-black",ln="cdk-high-contrast-active";let Ut=(()=>{class ce{constructor(B,P){this._platform=B,this._document=P}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const B=this._document.createElement("div");B.style.backgroundColor="rgb(1,2,3)",B.style.position="absolute",this._document.body.appendChild(B);const P=this._document.defaultView||window,re=P&&P.getComputedStyle?P.getComputedStyle(B):null,b=(re&&re.backgroundColor||"").replace(/ /g,"");switch(B.remove(),b){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const B=this._document.body.classList;B.remove(ln),B.remove(Nt),B.remove(Et),this._hasCheckedHighContrastMode=!0;const P=this.getHighContrastMode();1===P?(B.add(ln),B.add(Nt)):2===P&&(B.add(ln),B.add(Et))}}}return ce.\u0275fac=function(B){return new(B||ce)(u.\u0275\u0275inject(m.t4),u.\u0275\u0275inject(i.DOCUMENT))},ce.\u0275prov=u.\u0275\u0275defineInjectable({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})(),Xt=(()=>{class ce{constructor(B){B._applyBodyHighContrastModeCssClasses()}}return ce.\u0275fac=function(B){return new(B||ce)(u.\u0275\u0275inject(Ut))},ce.\u0275mod=u.\u0275\u0275defineNgModule({type:ce}),ce.\u0275inj=u.\u0275\u0275defineInjector({imports:[[he.Q8]]}),ce})()},226:(je,g,l)=>{"use strict";l.d(g,{vT:()=>w,Is:()=>D});var i=l(5e3),u=l(9808);const m=new i.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function c(){return(0,i.inject)(u.DOCUMENT)}}),s=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let D=(()=>{class h{constructor(T){if(this.value="ltr",this.change=new i.EventEmitter,T){const N=T.documentElement?T.documentElement.dir:null;this.value=function _(h){const A=(null==h?void 0:h.toLowerCase())||"";return"auto"===A&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?s.test(navigator.language)?"rtl":"ltr":"rtl"===A?"rtl":"ltr"}((T.body?T.body.dir:null)||N||"ltr")}}ngOnDestroy(){this.change.complete()}}return h.\u0275fac=function(T){return new(T||h)(i.\u0275\u0275inject(m,8))},h.\u0275prov=i.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac,providedIn:"root"}),h})(),w=(()=>{class h{}return h.\u0275fac=function(T){return new(T||h)},h.\u0275mod=i.\u0275\u0275defineNgModule({type:h}),h.\u0275inj=i.\u0275\u0275defineInjector({}),h})()},3191:(je,g,l)=>{"use strict";l.d(g,{t6:()=>c,Eq:()=>s,Ig:()=>u,HM:()=>_,fI:()=>D,su:()=>m});var i=l(5e3);function u(w){return null!=w&&"false"!=`${w}`}function m(w,h=0){return c(w)?Number(w):h}function c(w){return!isNaN(parseFloat(w))&&!isNaN(Number(w))}function s(w){return Array.isArray(w)?w:[w]}function _(w){return null==w?"":"string"==typeof w?w:`${w}px`}function D(w){return w instanceof i.ElementRef?w.nativeElement:w}},449:(je,g,l)=>{"use strict";l.d(g,{o2:()=>m,Ov:()=>C,yy:()=>_,eX:()=>D,k:()=>A,Z9:()=>c});var i=l(6758),u=l(5e3);class m{}function c(T){return T&&"function"==typeof T.connect}class _{applyChanges(v,N,U,fe,Q){v.forEachOperation((he,Re,_e)=>{let be,q;if(null==he.previousIndex){const Ce=U(he,Re,_e);be=N.createEmbeddedView(Ce.templateRef,Ce.context,Ce.index),q=1}else null==_e?(N.remove(Re),q=3):(be=N.get(Re),N.move(be,_e),q=2);Q&&Q({context:null==be?void 0:be.context,operation:q,record:he})})}detach(){}}class D{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(v,N,U,fe,Q){v.forEachOperation((he,Re,_e)=>{let be,q;null==he.previousIndex?(be=this._insertView(()=>U(he,Re,_e),_e,N,fe(he)),q=be?1:0):null==_e?(this._detachAndCacheView(Re,N),q=3):(be=this._moveView(Re,_e,N,fe(he)),q=2),Q&&Q({context:null==be?void 0:be.context,operation:q,record:he})})}detach(){for(const v of this._viewCache)v.destroy();this._viewCache=[]}_insertView(v,N,U,fe){const Q=this._insertViewFromCache(N,U);if(Q)return void(Q.context.$implicit=fe);const he=v();return U.createEmbeddedView(he.templateRef,he.context,he.index)}_detachAndCacheView(v,N){const U=N.detach(v);this._maybeCacheView(U,N)}_moveView(v,N,U,fe){const Q=U.get(v);return U.move(Q,N),Q.context.$implicit=fe,Q}_maybeCacheView(v,N){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(v);else{const U=N.indexOf(v);-1===U?v.destroy():N.remove(U)}}_insertViewFromCache(v,N){const U=this._viewCache.pop();return U&&N.insert(U,v),U||null}}class C{constructor(v=!1,N,U=!0){this._multiple=v,this._emitChanges=U,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new i.x,N&&N.length&&(v?N.forEach(fe=>this._markSelected(fe)):this._markSelected(N[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...v){this._verifyValueAssignment(v),v.forEach(N=>this._markSelected(N)),this._emitChangeEvent()}deselect(...v){this._verifyValueAssignment(v),v.forEach(N=>this._unmarkSelected(N)),this._emitChangeEvent()}toggle(v){this.isSelected(v)?this.deselect(v):this.select(v)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(v){return this._selection.has(v)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(v){this._multiple&&this.selected&&this._selected.sort(v)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(v){this.isSelected(v)||(this._multiple||this._unmarkAll(),this._selection.add(v),this._emitChanges&&this._selectedToEmit.push(v))}_unmarkSelected(v){this.isSelected(v)&&(this._selection.delete(v),this._emitChanges&&this._deselectedToEmit.push(v))}_unmarkAll(){this.isEmpty()||this._selection.forEach(v=>this._unmarkSelected(v))}_verifyValueAssignment(v){}}const A=new u.InjectionToken("_ViewRepeater")},1159:(je,g,l)=>{"use strict";l.d(g,{A:()=>Dt,zL:()=>C,ZH:()=>u,jx:()=>D,yY:()=>Fe,JH:()=>_e,uR:()=>U,K5:()=>s,hY:()=>A,Sd:()=>fe,oh:()=>Q,b2:()=>qn,MW:()=>Ct,aO:()=>me,SV:()=>Re,JU:()=>_,L_:()=>T,Mf:()=>m,LH:()=>he,Z:()=>pt,xE:()=>Ye,Vb:()=>Nn});const u=8,m=9,s=13,_=16,D=17,C=18,A=27,T=32,U=35,fe=36,Q=37,he=38,Re=39,_e=40,Fe=46,Ye=48,me=57,Dt=65,pt=90,Ct=91,qn=224;function Nn(cn,...hi){return hi.length?hi.some(fi=>cn[fi]):cn.altKey||cn.shiftKey||cn.ctrlKey||cn.metaKey}},5113:(je,g,l)=>{"use strict";l.r(g),l.d(g,{BreakpointObserver:()=>_e,Breakpoints:()=>q,LayoutModule:()=>N,MediaMatcher:()=>Q});var i=l(5e3),u=l(3191),m=l(6758),c=l(9841),s=l(1350),_=l(9751),D=l(5698),C=l(5684),w=l(8372),h=l(4004),A=l(8675),T=l(2722),v=l(925);let N=(()=>{class Ce{}return Ce.\u0275fac=function(Ye){return new(Ye||Ce)},Ce.\u0275mod=i.\u0275\u0275defineNgModule({type:Ce}),Ce.\u0275inj=i.\u0275\u0275defineInjector({}),Ce})();const U=new Set;let fe,Q=(()=>{class Ce{constructor(Ye){this._platform=Ye,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Re}matchMedia(Ye){return(this._platform.WEBKIT||this._platform.BLINK)&&function he(Ce){if(!U.has(Ce))try{fe||(fe=document.createElement("style"),fe.setAttribute("type","text/css"),document.head.appendChild(fe)),fe.sheet&&(fe.sheet.insertRule(`@media ${Ce} {body{ }}`,0),U.add(Ce))}catch(Fe){console.error(Fe)}}(Ye),this._matchMedia(Ye)}}return Ce.\u0275fac=function(Ye){return new(Ye||Ce)(i.\u0275\u0275inject(v.t4))},Ce.\u0275prov=i.\u0275\u0275defineInjectable({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})();function Re(Ce){return{matches:"all"===Ce||""===Ce,media:Ce,addListener:()=>{},removeListener:()=>{}}}let _e=(()=>{class Ce{constructor(Ye,st){this._mediaMatcher=Ye,this._zone=st,this._queries=new Map,this._destroySubject=new m.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Ye){return be((0,u.Eq)(Ye)).some($e=>this._registerQuery($e).mql.matches)}observe(Ye){const $e=be((0,u.Eq)(Ye)).map(Pe=>this._registerQuery(Pe).observable);let de=(0,c.a)($e);return de=(0,s.z)(de.pipe((0,D.q)(1)),de.pipe((0,C.T)(1),(0,w.b)(0))),de.pipe((0,h.U)(Pe=>{const z={matches:!1,breakpoints:{}};return Pe.forEach(({matches:ge,query:ie})=>{z.matches=z.matches||ge,z.breakpoints[ie]=ge}),z}))}_registerQuery(Ye){if(this._queries.has(Ye))return this._queries.get(Ye);const st=this._mediaMatcher.matchMedia(Ye),de={observable:new _.y(Pe=>{const z=ge=>this._zone.run(()=>Pe.next(ge));return st.addListener(z),()=>{st.removeListener(z)}}).pipe((0,A.O)(st),(0,h.U)(({matches:Pe})=>({query:Ye,matches:Pe})),(0,T.R)(this._destroySubject)),mql:st};return this._queries.set(Ye,de),de}}return Ce.\u0275fac=function(Ye){return new(Ye||Ce)(i.\u0275\u0275inject(Q),i.\u0275\u0275inject(i.NgZone))},Ce.\u0275prov=i.\u0275\u0275defineInjectable({token:Ce,factory:Ce.\u0275fac,providedIn:"root"}),Ce})();function be(Ce){return Ce.map(Fe=>Fe.split(",")).reduce((Fe,Ye)=>Fe.concat(Ye)).map(Fe=>Fe.trim())}const q={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},7144:(je,g,l)=>{"use strict";l.d(g,{wD:()=>C,Q8:()=>w});var i=l(3191),u=l(5e3),m=l(9751),c=l(6758),s=l(8372);let _=(()=>{class h{create(T){return"undefined"==typeof MutationObserver?null:new MutationObserver(T)}}return h.\u0275fac=function(T){return new(T||h)},h.\u0275prov=u.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac,providedIn:"root"}),h})(),D=(()=>{class h{constructor(T){this._mutationObserverFactory=T,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((T,v)=>this._cleanupObserver(v))}observe(T){const v=(0,i.fI)(T);return new m.y(N=>{const fe=this._observeElement(v).subscribe(N);return()=>{fe.unsubscribe(),this._unobserveElement(v)}})}_observeElement(T){if(this._observedElements.has(T))this._observedElements.get(T).count++;else{const v=new c.x,N=this._mutationObserverFactory.create(U=>v.next(U));N&&N.observe(T,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(T,{observer:N,stream:v,count:1})}return this._observedElements.get(T).stream}_unobserveElement(T){this._observedElements.has(T)&&(this._observedElements.get(T).count--,this._observedElements.get(T).count||this._cleanupObserver(T))}_cleanupObserver(T){if(this._observedElements.has(T)){const{observer:v,stream:N}=this._observedElements.get(T);v&&v.disconnect(),N.complete(),this._observedElements.delete(T)}}}return h.\u0275fac=function(T){return new(T||h)(u.\u0275\u0275inject(_))},h.\u0275prov=u.\u0275\u0275defineInjectable({token:h,factory:h.\u0275fac,providedIn:"root"}),h})(),C=(()=>{class h{constructor(T,v,N){this._contentObserver=T,this._elementRef=v,this._ngZone=N,this.event=new u.EventEmitter,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(T){this._disabled=(0,i.Ig)(T),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(T){this._debounce=(0,i.su)(T),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const T=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?T.pipe((0,s.b)(this.debounce)):T).subscribe(this.event)})}_unsubscribe(){var T;null===(T=this._currentSubscription)||void 0===T||T.unsubscribe()}}return h.\u0275fac=function(T){return new(T||h)(u.\u0275\u0275directiveInject(D),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.NgZone))},h.\u0275dir=u.\u0275\u0275defineDirective({type:h,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),h})(),w=(()=>{class h{}return h.\u0275fac=function(T){return new(T||h)},h.\u0275mod=u.\u0275\u0275defineNgModule({type:h}),h.\u0275inj=u.\u0275\u0275defineInjector({providers:[_]}),h})()},1314:(je,g,l)=>{"use strict";l.d(g,{aV:()=>pe,X_:()=>q,Xj:()=>Pe,U8:()=>St});var i=l(9071),u=l(9808),m=l(5e3),c=l(3191),s=l(925),_=l(226),D=l(7429),C=l(6758),w=l(6921),h=l(6451),A=l(5698),T=l(2722);const v=(0,s.Mq)();class N{constructor(V,ae){this._viewportRuler=V,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=ae}attach(){}enable(){if(this._canBeEnabled()){const V=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=V.style.left||"",this._previousHTMLStyles.top=V.style.top||"",V.style.left=(0,c.HM)(-this._previousScrollPosition.left),V.style.top=(0,c.HM)(-this._previousScrollPosition.top),V.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const V=this._document.documentElement,Oe=V.style,le=this._document.body.style,Ie=Oe.scrollBehavior||"",Te=le.scrollBehavior||"";this._isEnabled=!1,Oe.left=this._previousHTMLStyles.left,Oe.top=this._previousHTMLStyles.top,V.classList.remove("cdk-global-scrollblock"),v&&(Oe.scrollBehavior=le.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),v&&(Oe.scrollBehavior=Ie,le.scrollBehavior=Te)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const ae=this._document.body,Oe=this._viewportRuler.getViewportSize();return ae.scrollHeight>Oe.height||ae.scrollWidth>Oe.width}}class fe{constructor(V,ae,Oe,le){this._scrollDispatcher=V,this._ngZone=ae,this._viewportRuler=Oe,this._config=le,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(V){this._overlayRef=V}enable(){if(this._scrollSubscription)return;const V=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=V.subscribe(()=>{const ae=this._viewportRuler.getViewportScrollPosition().top;Math.abs(ae-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=V.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Q{enable(){}disable(){}attach(){}}function he(Ge,V){return V.some(ae=>Ge.bottom<ae.top||Ge.top>ae.bottom||Ge.right<ae.left||Ge.left>ae.right)}function Re(Ge,V){return V.some(ae=>Ge.top<ae.top||Ge.bottom>ae.bottom||Ge.left<ae.left||Ge.right>ae.right)}class _e{constructor(V,ae,Oe,le){this._scrollDispatcher=V,this._viewportRuler=ae,this._ngZone=Oe,this._config=le,this._scrollSubscription=null}attach(V){this._overlayRef=V}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const ae=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Oe,height:le}=this._viewportRuler.getViewportSize();he(ae,[{width:Oe,height:le,bottom:le,right:Oe,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let be=(()=>{class Ge{constructor(ae,Oe,le,Ie){this._scrollDispatcher=ae,this._viewportRuler=Oe,this._ngZone=le,this.noop=()=>new Q,this.close=Te=>new fe(this._scrollDispatcher,this._ngZone,this._viewportRuler,Te),this.block=()=>new N(this._viewportRuler,this._document),this.reposition=Te=>new _e(this._scrollDispatcher,this._viewportRuler,this._ngZone,Te),this._document=Ie}}return Ge.\u0275fac=function(ae){return new(ae||Ge)(m.\u0275\u0275inject(i.mF),m.\u0275\u0275inject(i.rL),m.\u0275\u0275inject(m.NgZone),m.\u0275\u0275inject(u.DOCUMENT))},Ge.\u0275prov=m.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})();class q{constructor(V){if(this.scrollStrategy=new Q,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,V){const ae=Object.keys(V);for(const Oe of ae)void 0!==V[Oe]&&(this[Oe]=V[Oe])}}}class Ye{constructor(V,ae){this.connectionPair=V,this.scrollableViewProperties=ae}}class de{constructor(V,ae,Oe,le,Ie,Te,oe,De,Qe){this._portalOutlet=V,this._host=ae,this._pane=Oe,this._config=le,this._ngZone=Ie,this._keyboardDispatcher=Te,this._document=oe,this._location=De,this._outsideClickDispatcher=Qe,this._backdropElement=null,this._backdropClick=new C.x,this._attachments=new C.x,this._detachments=new C.x,this._locationChanges=w.w0.EMPTY,this._backdropClickHandler=nt=>this._backdropClick.next(nt),this._keydownEvents=new C.x,this._outsidePointerEvents=new C.x,le.scrollStrategy&&(this._scrollStrategy=le.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=le.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(V){let ae=this._portalOutlet.attach(V);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,A.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),ae}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const V=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),V}dispose(){var V;const ae=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(V=this._host)||void 0===V||V.remove(),this._previousHostParent=this._pane=this._host=null,ae&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(V){V!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=V,this.hasAttached()&&(V.attach(this),this.updatePosition()))}updateSize(V){this._config=Object.assign(Object.assign({},this._config),V),this._updateElementSize()}setDirection(V){this._config=Object.assign(Object.assign({},this._config),{direction:V}),this._updateElementDirection()}addPanelClass(V){this._pane&&this._toggleClasses(this._pane,V,!0)}removePanelClass(V){this._pane&&this._toggleClasses(this._pane,V,!1)}getDirection(){const V=this._config.direction;return V?"string"==typeof V?V:V.value:"ltr"}updateScrollStrategy(V){V!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=V,this.hasAttached()&&(V.attach(this),V.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const V=this._pane.style;V.width=(0,c.HM)(this._config.width),V.height=(0,c.HM)(this._config.height),V.minWidth=(0,c.HM)(this._config.minWidth),V.minHeight=(0,c.HM)(this._config.minHeight),V.maxWidth=(0,c.HM)(this._config.maxWidth),V.maxHeight=(0,c.HM)(this._config.maxHeight)}_togglePointerEvents(V){this._pane.style.pointerEvents=V?"":"none"}_attachBackdrop(){const V="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(V)})}):this._backdropElement.classList.add(V)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const V=this._backdropElement;if(!V)return;let ae;const Oe=()=>{V&&(V.removeEventListener("click",this._backdropClickHandler),V.removeEventListener("transitionend",Oe),this._disposeBackdrop(V)),this._config.backdropClass&&this._toggleClasses(V,this._config.backdropClass,!1),clearTimeout(ae)};V.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{V.addEventListener("transitionend",Oe)}),V.style.pointerEvents="none",ae=this._ngZone.runOutsideAngular(()=>setTimeout(Oe,500))}_toggleClasses(V,ae,Oe){const le=(0,c.Eq)(ae||[]).filter(Ie=>!!Ie);le.length&&(Oe?V.classList.add(...le):V.classList.remove(...le))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const V=this._ngZone.onStable.pipe((0,T.R)((0,h.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),V.unsubscribe())})})}_disposeScrollStrategy(){const V=this._scrollStrategy;V&&(V.disable(),V.detach&&V.detach())}_disposeBackdrop(V){V&&(V.remove(),this._backdropElement===V&&(this._backdropElement=null))}}let Pe=(()=>{class Ge{constructor(ae,Oe){this._platform=Oe,this._document=ae}ngOnDestroy(){var ae;null===(ae=this._containerElement)||void 0===ae||ae.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ae="cdk-overlay-container";if(this._platform.isBrowser||(0,s.Oy)()){const le=this._document.querySelectorAll(`.${ae}[platform="server"], .${ae}[platform="test"]`);for(let Ie=0;Ie<le.length;Ie++)le[Ie].remove()}const Oe=this._document.createElement("div");Oe.classList.add(ae),(0,s.Oy)()?Oe.setAttribute("platform","test"):this._platform.isBrowser||Oe.setAttribute("platform","server"),this._document.body.appendChild(Oe),this._containerElement=Oe}}return Ge.\u0275fac=function(ae){return new(ae||Ge)(m.\u0275\u0275inject(u.DOCUMENT),m.\u0275\u0275inject(s.t4))},Ge.\u0275prov=m.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})();const z="cdk-overlay-connected-position-bounding-box",ge=/([A-Za-z%]+)$/;class ie{constructor(V,ae,Oe,le,Ie){this._viewportRuler=ae,this._document=Oe,this._platform=le,this._overlayContainer=Ie,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new C.x,this._resizeSubscription=w.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(V)}get positions(){return this._preferredPositions}attach(V){this._validatePositions(),V.hostElement.classList.add(z),this._overlayRef=V,this._boundingBox=V.hostElement,this._pane=V.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const V=this._originRect,ae=this._overlayRect,Oe=this._viewportRect,le=this._containerRect,Ie=[];let Te;for(let oe of this._preferredPositions){let De=this._getOriginPoint(V,le,oe),Qe=this._getOverlayPoint(De,ae,oe),nt=this._getOverlayFit(Qe,ae,Oe,oe);if(nt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(oe,De);this._canFitWithFlexibleDimensions(nt,Qe,Oe)?Ie.push({position:oe,origin:De,overlayRect:ae,boundingBoxRect:this._calculateBoundingBoxRect(De,oe)}):(!Te||Te.overlayFit.visibleArea<nt.visibleArea)&&(Te={overlayFit:nt,overlayPoint:Qe,originPoint:De,position:oe,overlayRect:ae})}if(Ie.length){let oe=null,De=-1;for(const Qe of Ie){const nt=Qe.boundingBoxRect.width*Qe.boundingBoxRect.height*(Qe.position.weight||1);nt>De&&(De=nt,oe=Qe)}return this._isPushed=!1,void this._applyPosition(oe.position,oe.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Te.position,Te.originPoint);this._applyPosition(Te.position,Te.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&xe(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(z),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const V=this._lastPosition;if(V){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ae=this._getOriginPoint(this._originRect,this._containerRect,V);this._applyPosition(V,ae)}else this.apply()}withScrollableContainers(V){return this._scrollables=V,this}withPositions(V){return this._preferredPositions=V,-1===V.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(V){return this._viewportMargin=V,this}withFlexibleDimensions(V=!0){return this._hasFlexibleDimensions=V,this}withGrowAfterOpen(V=!0){return this._growAfterOpen=V,this}withPush(V=!0){return this._canPush=V,this}withLockedPosition(V=!0){return this._positionLocked=V,this}setOrigin(V){return this._origin=V,this}withDefaultOffsetX(V){return this._offsetX=V,this}withDefaultOffsetY(V){return this._offsetY=V,this}withTransformOriginOn(V){return this._transformOriginSelector=V,this}_getOriginPoint(V,ae,Oe){let le,Ie;if("center"==Oe.originX)le=V.left+V.width/2;else{const Te=this._isRtl()?V.right:V.left,oe=this._isRtl()?V.left:V.right;le="start"==Oe.originX?Te:oe}return ae.left<0&&(le-=ae.left),Ie="center"==Oe.originY?V.top+V.height/2:"top"==Oe.originY?V.top:V.bottom,ae.top<0&&(Ie-=ae.top),{x:le,y:Ie}}_getOverlayPoint(V,ae,Oe){let le,Ie;return le="center"==Oe.overlayX?-ae.width/2:"start"===Oe.overlayX?this._isRtl()?-ae.width:0:this._isRtl()?0:-ae.width,Ie="center"==Oe.overlayY?-ae.height/2:"top"==Oe.overlayY?0:-ae.height,{x:V.x+le,y:V.y+Ie}}_getOverlayFit(V,ae,Oe,le){const Ie=Je(ae);let{x:Te,y:oe}=V,De=this._getOffset(le,"x"),Qe=this._getOffset(le,"y");De&&(Te+=De),Qe&&(oe+=Qe);let pt=0-oe,Ct=oe+Ie.height-Oe.height,kt=this._subtractOverflows(Ie.width,0-Te,Te+Ie.width-Oe.width),Kt=this._subtractOverflows(Ie.height,pt,Ct),xt=kt*Kt;return{visibleArea:xt,isCompletelyWithinViewport:Ie.width*Ie.height===xt,fitsInViewportVertically:Kt===Ie.height,fitsInViewportHorizontally:kt==Ie.width}}_canFitWithFlexibleDimensions(V,ae,Oe){if(this._hasFlexibleDimensions){const le=Oe.bottom-ae.y,Ie=Oe.right-ae.x,Te=me(this._overlayRef.getConfig().minHeight),oe=me(this._overlayRef.getConfig().minWidth),Qe=V.fitsInViewportHorizontally||null!=oe&&oe<=Ie;return(V.fitsInViewportVertically||null!=Te&&Te<=le)&&Qe}return!1}_pushOverlayOnScreen(V,ae,Oe){if(this._previousPushAmount&&this._positionLocked)return{x:V.x+this._previousPushAmount.x,y:V.y+this._previousPushAmount.y};const le=Je(ae),Ie=this._viewportRect,Te=Math.max(V.x+le.width-Ie.width,0),oe=Math.max(V.y+le.height-Ie.height,0),De=Math.max(Ie.top-Oe.top-V.y,0),Qe=Math.max(Ie.left-Oe.left-V.x,0);let nt=0,ht=0;return nt=le.width<=Ie.width?Qe||-Te:V.x<this._viewportMargin?Ie.left-Oe.left-V.x:0,ht=le.height<=Ie.height?De||-oe:V.y<this._viewportMargin?Ie.top-Oe.top-V.y:0,this._previousPushAmount={x:nt,y:ht},{x:V.x+nt,y:V.y+ht}}_applyPosition(V,ae){if(this._setTransformOrigin(V),this._setOverlayElementStyles(ae,V),this._setBoundingBoxStyles(ae,V),V.panelClass&&this._addPanelClasses(V.panelClass),this._lastPosition=V,this._positionChanges.observers.length){const Oe=this._getScrollVisibility(),le=new Ye(V,Oe);this._positionChanges.next(le)}this._isInitialRender=!1}_setTransformOrigin(V){if(!this._transformOriginSelector)return;const ae=this._boundingBox.querySelectorAll(this._transformOriginSelector);let Oe,le=V.overlayY;Oe="center"===V.overlayX?"center":this._isRtl()?"start"===V.overlayX?"right":"left":"start"===V.overlayX?"left":"right";for(let Ie=0;Ie<ae.length;Ie++)ae[Ie].style.transformOrigin=`${Oe} ${le}`}_calculateBoundingBoxRect(V,ae){const Oe=this._viewportRect,le=this._isRtl();let Ie,Te,oe,nt,ht,pt;if("top"===ae.overlayY)Te=V.y,Ie=Oe.height-Te+this._viewportMargin;else if("bottom"===ae.overlayY)oe=Oe.height-V.y+2*this._viewportMargin,Ie=Oe.height-oe+this._viewportMargin;else{const Ct=Math.min(Oe.bottom-V.y+Oe.top,V.y),kt=this._lastBoundingBoxSize.height;Ie=2*Ct,Te=V.y-Ct,Ie>kt&&!this._isInitialRender&&!this._growAfterOpen&&(Te=V.y-kt/2)}if("end"===ae.overlayX&&!le||"start"===ae.overlayX&&le)pt=Oe.width-V.x+this._viewportMargin,nt=V.x-this._viewportMargin;else if("start"===ae.overlayX&&!le||"end"===ae.overlayX&&le)ht=V.x,nt=Oe.right-V.x;else{const Ct=Math.min(Oe.right-V.x+Oe.left,V.x),kt=this._lastBoundingBoxSize.width;nt=2*Ct,ht=V.x-Ct,nt>kt&&!this._isInitialRender&&!this._growAfterOpen&&(ht=V.x-kt/2)}return{top:Te,left:ht,bottom:oe,right:pt,width:nt,height:Ie}}_setBoundingBoxStyles(V,ae){const Oe=this._calculateBoundingBoxRect(V,ae);!this._isInitialRender&&!this._growAfterOpen&&(Oe.height=Math.min(Oe.height,this._lastBoundingBoxSize.height),Oe.width=Math.min(Oe.width,this._lastBoundingBoxSize.width));const le={};if(this._hasExactPosition())le.top=le.left="0",le.bottom=le.right=le.maxHeight=le.maxWidth="",le.width=le.height="100%";else{const Ie=this._overlayRef.getConfig().maxHeight,Te=this._overlayRef.getConfig().maxWidth;le.height=(0,c.HM)(Oe.height),le.top=(0,c.HM)(Oe.top),le.bottom=(0,c.HM)(Oe.bottom),le.width=(0,c.HM)(Oe.width),le.left=(0,c.HM)(Oe.left),le.right=(0,c.HM)(Oe.right),le.alignItems="center"===ae.overlayX?"center":"end"===ae.overlayX?"flex-end":"flex-start",le.justifyContent="center"===ae.overlayY?"center":"bottom"===ae.overlayY?"flex-end":"flex-start",Ie&&(le.maxHeight=(0,c.HM)(Ie)),Te&&(le.maxWidth=(0,c.HM)(Te))}this._lastBoundingBoxSize=Oe,xe(this._boundingBox.style,le)}_resetBoundingBoxStyles(){xe(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){xe(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(V,ae){const Oe={},le=this._hasExactPosition(),Ie=this._hasFlexibleDimensions,Te=this._overlayRef.getConfig();if(le){const nt=this._viewportRuler.getViewportScrollPosition();xe(Oe,this._getExactOverlayY(ae,V,nt)),xe(Oe,this._getExactOverlayX(ae,V,nt))}else Oe.position="static";let oe="",De=this._getOffset(ae,"x"),Qe=this._getOffset(ae,"y");De&&(oe+=`translateX(${De}px) `),Qe&&(oe+=`translateY(${Qe}px)`),Oe.transform=oe.trim(),Te.maxHeight&&(le?Oe.maxHeight=(0,c.HM)(Te.maxHeight):Ie&&(Oe.maxHeight="")),Te.maxWidth&&(le?Oe.maxWidth=(0,c.HM)(Te.maxWidth):Ie&&(Oe.maxWidth="")),xe(this._pane.style,Oe)}_getExactOverlayY(V,ae,Oe){let le={top:"",bottom:""},Ie=this._getOverlayPoint(ae,this._overlayRect,V);return this._isPushed&&(Ie=this._pushOverlayOnScreen(Ie,this._overlayRect,Oe)),"bottom"===V.overlayY?le.bottom=this._document.documentElement.clientHeight-(Ie.y+this._overlayRect.height)+"px":le.top=(0,c.HM)(Ie.y),le}_getExactOverlayX(V,ae,Oe){let Te,le={left:"",right:""},Ie=this._getOverlayPoint(ae,this._overlayRect,V);return this._isPushed&&(Ie=this._pushOverlayOnScreen(Ie,this._overlayRect,Oe)),Te=this._isRtl()?"end"===V.overlayX?"left":"right":"end"===V.overlayX?"right":"left","right"===Te?le.right=this._document.documentElement.clientWidth-(Ie.x+this._overlayRect.width)+"px":le.left=(0,c.HM)(Ie.x),le}_getScrollVisibility(){const V=this._getOriginRect(),ae=this._pane.getBoundingClientRect(),Oe=this._scrollables.map(le=>le.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Re(V,Oe),isOriginOutsideView:he(V,Oe),isOverlayClipped:Re(ae,Oe),isOverlayOutsideView:he(ae,Oe)}}_subtractOverflows(V,...ae){return ae.reduce((Oe,le)=>Oe-Math.max(le,0),V)}_getNarrowedViewportRect(){const V=this._document.documentElement.clientWidth,ae=this._document.documentElement.clientHeight,Oe=this._viewportRuler.getViewportScrollPosition();return{top:Oe.top+this._viewportMargin,left:Oe.left+this._viewportMargin,right:Oe.left+V-this._viewportMargin,bottom:Oe.top+ae-this._viewportMargin,width:V-2*this._viewportMargin,height:ae-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(V,ae){return"x"===ae?null==V.offsetX?this._offsetX:V.offsetX:null==V.offsetY?this._offsetY:V.offsetY}_validatePositions(){}_addPanelClasses(V){this._pane&&(0,c.Eq)(V).forEach(ae=>{""!==ae&&-1===this._appliedPanelClasses.indexOf(ae)&&(this._appliedPanelClasses.push(ae),this._pane.classList.add(ae))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(V=>{this._pane.classList.remove(V)}),this._appliedPanelClasses=[])}_getOriginRect(){const V=this._origin;if(V instanceof m.ElementRef)return V.nativeElement.getBoundingClientRect();if(V instanceof Element)return V.getBoundingClientRect();const ae=V.width||0,Oe=V.height||0;return{top:V.y,bottom:V.y+Oe,left:V.x,right:V.x+ae,height:Oe,width:ae}}}function xe(Ge,V){for(let ae in V)V.hasOwnProperty(ae)&&(Ge[ae]=V[ae]);return Ge}function me(Ge){if("number"!=typeof Ge&&null!=Ge){const[V,ae]=Ge.split(ge);return ae&&"px"!==ae?null:parseFloat(V)}return Ge||null}function Je(Ge){return{top:Math.floor(Ge.top),right:Math.floor(Ge.right),bottom:Math.floor(Ge.bottom),left:Math.floor(Ge.left),width:Math.floor(Ge.width),height:Math.floor(Ge.height)}}const ve="cdk-global-overlay-wrapper";class ze{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(V){const ae=V.getConfig();this._overlayRef=V,this._width&&!ae.width&&V.updateSize({width:this._width}),this._height&&!ae.height&&V.updateSize({height:this._height}),V.hostElement.classList.add(ve),this._isDisposed=!1}top(V=""){return this._bottomOffset="",this._topOffset=V,this._alignItems="flex-start",this}left(V=""){return this._rightOffset="",this._leftOffset=V,this._justifyContent="flex-start",this}bottom(V=""){return this._topOffset="",this._bottomOffset=V,this._alignItems="flex-end",this}right(V=""){return this._leftOffset="",this._rightOffset=V,this._justifyContent="flex-end",this}width(V=""){return this._overlayRef?this._overlayRef.updateSize({width:V}):this._width=V,this}height(V=""){return this._overlayRef?this._overlayRef.updateSize({height:V}):this._height=V,this}centerHorizontally(V=""){return this.left(V),this._justifyContent="center",this}centerVertically(V=""){return this.top(V),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const V=this._overlayRef.overlayElement.style,ae=this._overlayRef.hostElement.style,Oe=this._overlayRef.getConfig(),{width:le,height:Ie,maxWidth:Te,maxHeight:oe}=Oe,De=!("100%"!==le&&"100vw"!==le||Te&&"100%"!==Te&&"100vw"!==Te),Qe=!("100%"!==Ie&&"100vh"!==Ie||oe&&"100%"!==oe&&"100vh"!==oe);V.position=this._cssPosition,V.marginLeft=De?"0":this._leftOffset,V.marginTop=Qe?"0":this._topOffset,V.marginBottom=this._bottomOffset,V.marginRight=this._rightOffset,De?ae.justifyContent="flex-start":"center"===this._justifyContent?ae.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?ae.justifyContent="flex-end":"flex-end"===this._justifyContent&&(ae.justifyContent="flex-start"):ae.justifyContent=this._justifyContent,ae.alignItems=Qe?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const V=this._overlayRef.overlayElement.style,ae=this._overlayRef.hostElement,Oe=ae.style;ae.classList.remove(ve),Oe.justifyContent=Oe.alignItems=V.marginTop=V.marginBottom=V.marginLeft=V.marginRight=V.position="",this._overlayRef=null,this._isDisposed=!0}}let ct=(()=>{class Ge{constructor(ae,Oe,le,Ie){this._viewportRuler=ae,this._document=Oe,this._platform=le,this._overlayContainer=Ie}global(){return new ze}flexibleConnectedTo(ae){return new ie(ae,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Ge.\u0275fac=function(ae){return new(ae||Ge)(m.\u0275\u0275inject(i.rL),m.\u0275\u0275inject(u.DOCUMENT),m.\u0275\u0275inject(s.t4),m.\u0275\u0275inject(Pe))},Ge.\u0275prov=m.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})(),Dt=(()=>{class Ge{constructor(ae){this._attachedOverlays=[],this._document=ae}ngOnDestroy(){this.detach()}add(ae){this.remove(ae),this._attachedOverlays.push(ae)}remove(ae){const Oe=this._attachedOverlays.indexOf(ae);Oe>-1&&this._attachedOverlays.splice(Oe,1),0===this._attachedOverlays.length&&this.detach()}}return Ge.\u0275fac=function(ae){return new(ae||Ge)(m.\u0275\u0275inject(u.DOCUMENT))},Ge.\u0275prov=m.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})(),Be=(()=>{class Ge extends Dt{constructor(ae){super(ae),this._keydownListener=Oe=>{const le=this._attachedOverlays;for(let Ie=le.length-1;Ie>-1;Ie--)if(le[Ie]._keydownEvents.observers.length>0){le[Ie]._keydownEvents.next(Oe);break}}}add(ae){super.add(ae),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return Ge.\u0275fac=function(ae){return new(ae||Ge)(m.\u0275\u0275inject(u.DOCUMENT))},Ge.\u0275prov=m.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})(),et=(()=>{class Ge extends Dt{constructor(ae,Oe){super(ae),this._platform=Oe,this._cursorStyleIsSet=!1,this._pointerDownListener=le=>{this._pointerDownEventTarget=(0,s.sA)(le)},this._clickListener=le=>{const Ie=(0,s.sA)(le),Te="click"===le.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ie;this._pointerDownEventTarget=null;const oe=this._attachedOverlays.slice();for(let De=oe.length-1;De>-1;De--){const Qe=oe[De];if(!(Qe._outsidePointerEvents.observers.length<1)&&Qe.hasAttached()){if(Qe.overlayElement.contains(Ie)||Qe.overlayElement.contains(Te))break;Qe._outsidePointerEvents.next(le)}}}}add(ae){if(super.add(ae),!this._isAttached){const Oe=this._document.body;Oe.addEventListener("pointerdown",this._pointerDownListener,!0),Oe.addEventListener("click",this._clickListener,!0),Oe.addEventListener("auxclick",this._clickListener,!0),Oe.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Oe.style.cursor,Oe.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const ae=this._document.body;ae.removeEventListener("pointerdown",this._pointerDownListener,!0),ae.removeEventListener("click",this._clickListener,!0),ae.removeEventListener("auxclick",this._clickListener,!0),ae.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(ae.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return Ge.\u0275fac=function(ae){return new(ae||Ge)(m.\u0275\u0275inject(u.DOCUMENT),m.\u0275\u0275inject(s.t4))},Ge.\u0275prov=m.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})(),ne=0,pe=(()=>{class Ge{constructor(ae,Oe,le,Ie,Te,oe,De,Qe,nt,ht,pt){this.scrollStrategies=ae,this._overlayContainer=Oe,this._componentFactoryResolver=le,this._positionBuilder=Ie,this._keyboardDispatcher=Te,this._injector=oe,this._ngZone=De,this._document=Qe,this._directionality=nt,this._location=ht,this._outsideClickDispatcher=pt}create(ae){const Oe=this._createHostElement(),le=this._createPaneElement(Oe),Ie=this._createPortalOutlet(le),Te=new q(ae);return Te.direction=Te.direction||this._directionality.value,new de(Ie,Oe,le,Te,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(ae){const Oe=this._document.createElement("div");return Oe.id="cdk-overlay-"+ne++,Oe.classList.add("cdk-overlay-pane"),ae.appendChild(Oe),Oe}_createHostElement(){const ae=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ae),ae}_createPortalOutlet(ae){return this._appRef||(this._appRef=this._injector.get(m.ApplicationRef)),new D.u0(ae,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Ge.\u0275fac=function(ae){return new(ae||Ge)(m.\u0275\u0275inject(be),m.\u0275\u0275inject(Pe),m.\u0275\u0275inject(m.ComponentFactoryResolver),m.\u0275\u0275inject(ct),m.\u0275\u0275inject(Be),m.\u0275\u0275inject(m.Injector),m.\u0275\u0275inject(m.NgZone),m.\u0275\u0275inject(u.DOCUMENT),m.\u0275\u0275inject(_.Is),m.\u0275\u0275inject(u.Location),m.\u0275\u0275inject(et))},Ge.\u0275prov=m.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac}),Ge})();const gt={provide:new m.InjectionToken("cdk-connected-overlay-scroll-strategy"),deps:[pe],useFactory:function mt(Ge){return()=>Ge.scrollStrategies.reposition()}};let St=(()=>{class Ge{}return Ge.\u0275fac=function(ae){return new(ae||Ge)},Ge.\u0275mod=m.\u0275\u0275defineNgModule({type:Ge}),Ge.\u0275inj=m.\u0275\u0275defineInjector({providers:[pe,gt],imports:[[_.vT,D.eL,i.Cl],i.Cl]}),Ge})()},925:(je,g,l)=>{"use strict";l.d(g,{t4:()=>c,sA:()=>_e,ht:()=>Re,kV:()=>he,Oy:()=>be,i$:()=>A,Mq:()=>N});var i=l(5e3),u=l(9808);let m;try{m="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(q){m=!1}let w,v,fe,c=(()=>{class q{constructor(Fe){this._platformId=Fe,this.isBrowser=this._platformId?(0,u.isPlatformBrowser)(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&&!m)&&"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 q.\u0275fac=function(Fe){return new(Fe||q)(i.\u0275\u0275inject(i.PLATFORM_ID))},q.\u0275prov=i.\u0275\u0275defineInjectable({token:q,factory:q.\u0275fac,providedIn:"root"}),q})();function A(q){return function h(){if(null==w&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>w=!0}))}finally{w=w||!1}return w}()?q:!!q.capture}function N(){if(null==v){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return v=!1,v;if("scrollBehavior"in document.documentElement.style)v=!0;else{const q=Element.prototype.scrollTo;v=!!q&&!/\{\s*\[native code\]\s*\}/.test(q.toString())}}return v}function he(q){if(function Q(){if(null==fe){const q="undefined"!=typeof document?document.head:null;fe=!(!q||!q.createShadowRoot&&!q.attachShadow)}return fe}()){const Ce=q.getRootNode?q.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&Ce instanceof ShadowRoot)return Ce}return null}function Re(){let q="undefined"!=typeof document&&document?document.activeElement:null;for(;q&&q.shadowRoot;){const Ce=q.shadowRoot.activeElement;if(Ce===q)break;q=Ce}return q}function _e(q){return q.composedPath?q.composedPath()[0]:q.target}function be(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(je,g,l)=>{"use strict";l.d(g,{en:()=>v,ig:()=>Q,Pl:()=>Re,C5:()=>h,u0:()=>U,eL:()=>be,UE:()=>A});var i=l(5e3),u=l(9808);class w{attach(Fe){return this._attachedHost=Fe,Fe.attach(this)}detach(){let Fe=this._attachedHost;null!=Fe&&(this._attachedHost=null,Fe.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Fe){this._attachedHost=Fe}}class h extends w{constructor(Fe,Ye,st,$e){super(),this.component=Fe,this.viewContainerRef=Ye,this.injector=st,this.componentFactoryResolver=$e}}class A extends w{constructor(Fe,Ye,st){super(),this.templateRef=Fe,this.viewContainerRef=Ye,this.context=st}get origin(){return this.templateRef.elementRef}attach(Fe,Ye=this.context){return this.context=Ye,super.attach(Fe)}detach(){return this.context=void 0,super.detach()}}class T extends w{constructor(Fe){super(),this.element=Fe instanceof i.ElementRef?Fe.nativeElement:Fe}}class v{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Fe){return Fe instanceof h?(this._attachedPortal=Fe,this.attachComponentPortal(Fe)):Fe instanceof A?(this._attachedPortal=Fe,this.attachTemplatePortal(Fe)):this.attachDomPortal&&Fe instanceof T?(this._attachedPortal=Fe,this.attachDomPortal(Fe)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(Fe){this._disposeFn=Fe}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class U extends v{constructor(Fe,Ye,st,$e,de){super(),this.outletElement=Fe,this._componentFactoryResolver=Ye,this._appRef=st,this._defaultInjector=$e,this.attachDomPortal=Pe=>{const z=Pe.element,ge=this._document.createComment("dom-portal");z.parentNode.insertBefore(ge,z),this.outletElement.appendChild(z),this._attachedPortal=Pe,super.setDisposeFn(()=>{ge.parentNode&&ge.parentNode.replaceChild(z,ge)})},this._document=de}attachComponentPortal(Fe){const st=(Fe.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Fe.component);let $e;return Fe.viewContainerRef?($e=Fe.viewContainerRef.createComponent(st,Fe.viewContainerRef.length,Fe.injector||Fe.viewContainerRef.injector),this.setDisposeFn(()=>$e.destroy())):($e=st.create(Fe.injector||this._defaultInjector),this._appRef.attachView($e.hostView),this.setDisposeFn(()=>{this._appRef.detachView($e.hostView),$e.destroy()})),this.outletElement.appendChild(this._getComponentRootNode($e)),this._attachedPortal=Fe,$e}attachTemplatePortal(Fe){let Ye=Fe.viewContainerRef,st=Ye.createEmbeddedView(Fe.templateRef,Fe.context);return st.rootNodes.forEach($e=>this.outletElement.appendChild($e)),st.detectChanges(),this.setDisposeFn(()=>{let $e=Ye.indexOf(st);-1!==$e&&Ye.remove($e)}),this._attachedPortal=Fe,st}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Fe){return Fe.hostView.rootNodes[0]}}let Q=(()=>{class Ce extends A{constructor(Ye,st){super(Ye,st)}}return Ce.\u0275fac=function(Ye){return new(Ye||Ce)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.ViewContainerRef))},Ce.\u0275dir=i.\u0275\u0275defineDirective({type:Ce,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[i.\u0275\u0275InheritDefinitionFeature]}),Ce})(),Re=(()=>{class Ce extends v{constructor(Ye,st,$e){super(),this._componentFactoryResolver=Ye,this._viewContainerRef=st,this._isInitialized=!1,this.attached=new i.EventEmitter,this.attachDomPortal=de=>{const Pe=de.element,z=this._document.createComment("dom-portal");de.setAttachedHost(this),Pe.parentNode.insertBefore(z,Pe),this._getRootNode().appendChild(Pe),this._attachedPortal=de,super.setDisposeFn(()=>{z.parentNode&&z.parentNode.replaceChild(Pe,z)})},this._document=$e}get portal(){return this._attachedPortal}set portal(Ye){this.hasAttached()&&!Ye&&!this._isInitialized||(this.hasAttached()&&super.detach(),Ye&&super.attach(Ye),this._attachedPortal=Ye||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(Ye){Ye.setAttachedHost(this);const st=null!=Ye.viewContainerRef?Ye.viewContainerRef:this._viewContainerRef,de=(Ye.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Ye.component),Pe=st.createComponent(de,st.length,Ye.injector||st.injector);return st!==this._viewContainerRef&&this._getRootNode().appendChild(Pe.hostView.rootNodes[0]),super.setDisposeFn(()=>Pe.destroy()),this._attachedPortal=Ye,this._attachedRef=Pe,this.attached.emit(Pe),Pe}attachTemplatePortal(Ye){Ye.setAttachedHost(this);const st=this._viewContainerRef.createEmbeddedView(Ye.templateRef,Ye.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Ye,this._attachedRef=st,this.attached.emit(st),st}_getRootNode(){const Ye=this._viewContainerRef.element.nativeElement;return Ye.nodeType===Ye.ELEMENT_NODE?Ye:Ye.parentNode}}return Ce.\u0275fac=function(Ye){return new(Ye||Ce)(i.\u0275\u0275directiveInject(i.ComponentFactoryResolver),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(u.DOCUMENT))},Ce.\u0275dir=i.\u0275\u0275defineDirective({type:Ce,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.\u0275\u0275InheritDefinitionFeature]}),Ce})(),be=(()=>{class Ce{}return Ce.\u0275fac=function(Ye){return new(Ye||Ce)},Ce.\u0275mod=i.\u0275\u0275defineNgModule({type:Ce}),Ce.\u0275inj=i.\u0275\u0275defineInjector({}),Ce})()},9071:(je,g,l)=>{"use strict";l.d(g,{ZD:()=>z,mF:()=>be,Cl:()=>ge,rL:()=>Fe});var i=l(3191),u=l(5e3),m=l(6758),c=l(9646),s=l(9751),_=l(4968),w=(l(29),l(3101),l(453)),h=l(9300),A=l(9808),T=l(925),v=l(226);let be=(()=>{class ie{constructor(me,Je,ve){this._ngZone=me,this._platform=Je,this._scrolled=new m.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ve}register(me){this.scrollContainers.has(me)||this.scrollContainers.set(me,me.elementScrolled().subscribe(()=>this._scrolled.next(me)))}deregister(me){const Je=this.scrollContainers.get(me);Je&&(Je.unsubscribe(),this.scrollContainers.delete(me))}scrolled(me=20){return this._platform.isBrowser?new s.y(Je=>{this._globalSubscription||this._addGlobalListener();const ve=me>0?this._scrolled.pipe((0,w.e)(me)).subscribe(Je):this._scrolled.subscribe(Je);return this._scrolledCount++,()=>{ve.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,c.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((me,Je)=>this.deregister(Je)),this._scrolled.complete()}ancestorScrolled(me,Je){const ve=this.getAncestorScrollContainers(me);return this.scrolled(Je).pipe((0,h.h)(ze=>!ze||ve.indexOf(ze)>-1))}getAncestorScrollContainers(me){const Je=[];return this.scrollContainers.forEach((ve,ze)=>{this._scrollableContainsElement(ze,me)&&Je.push(ze)}),Je}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(me,Je){let ve=(0,i.fI)(Je),ze=me.getElementRef().nativeElement;do{if(ve==ze)return!0}while(ve=ve.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const me=this._getWindow();return(0,_.R)(me.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return ie.\u0275fac=function(me){return new(me||ie)(u.\u0275\u0275inject(u.NgZone),u.\u0275\u0275inject(T.t4),u.\u0275\u0275inject(A.DOCUMENT,8))},ie.\u0275prov=u.\u0275\u0275defineInjectable({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})(),Fe=(()=>{class ie{constructor(me,Je,ve){this._platform=me,this._change=new m.x,this._changeListener=ze=>{this._change.next(ze)},this._document=ve,Je.runOutsideAngular(()=>{if(me.isBrowser){const ze=this._getWindow();ze.addEventListener("resize",this._changeListener),ze.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const me=this._getWindow();me.removeEventListener("resize",this._changeListener),me.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const me={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),me}getViewportRect(){const me=this.getViewportScrollPosition(),{width:Je,height:ve}=this.getViewportSize();return{top:me.top,left:me.left,bottom:me.top+ve,right:me.left+Je,height:ve,width:Je}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const me=this._document,Je=this._getWindow(),ve=me.documentElement,ze=ve.getBoundingClientRect();return{top:-ze.top||me.body.scrollTop||Je.scrollY||ve.scrollTop||0,left:-ze.left||me.body.scrollLeft||Je.scrollX||ve.scrollLeft||0}}change(me=20){return me>0?this._change.pipe((0,w.e)(me)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const me=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:me.innerWidth,height:me.innerHeight}:{width:0,height:0}}}return ie.\u0275fac=function(me){return new(me||ie)(u.\u0275\u0275inject(T.t4),u.\u0275\u0275inject(u.NgZone),u.\u0275\u0275inject(A.DOCUMENT,8))},ie.\u0275prov=u.\u0275\u0275defineInjectable({token:ie,factory:ie.\u0275fac,providedIn:"root"}),ie})(),z=(()=>{class ie{}return ie.\u0275fac=function(me){return new(me||ie)},ie.\u0275mod=u.\u0275\u0275defineNgModule({type:ie}),ie.\u0275inj=u.\u0275\u0275defineInjector({}),ie})(),ge=(()=>{class ie{}return ie.\u0275fac=function(me){return new(me||ie)},ie.\u0275mod=u.\u0275\u0275defineNgModule({type:ie}),ie.\u0275inj=u.\u0275\u0275defineInjector({imports:[[v.vT,z],v.vT,z]}),ie})()},9808:(je,g,l)=>{"use strict";l.r(g),l.d(g,{APP_BASE_HREF:()=>Re,AsyncPipe:()=>Yi,CommonModule:()=>Ui,CurrencyPipe:()=>Pi,DATE_PIPE_DEFAULT_TIMEZONE:()=>mr,DOCUMENT:()=>D,DatePipe:()=>wi,DecimalPipe:()=>gr,FormStyle:()=>Pe,FormatWidth:()=>ge,HashLocationStrategy:()=>be,I18nPluralPipe:()=>xr,I18nSelectPipe:()=>Xi,JsonPipe:()=>Si,KeyValuePipe:()=>Rr,LOCATION_INITIALIZED:()=>h,Location:()=>q,LocationStrategy:()=>Q,LowerCasePipe:()=>Ar,NgClass:()=>nn,NgComponentOutlet:()=>In,NgForOf:()=>fn,NgForOfContext:()=>Ln,NgIf:()=>Nn,NgIfContext:()=>cn,NgLocaleLocalization:()=>mn,NgLocalization:()=>At,NgPlural:()=>ei,NgPluralCase:()=>Hn,NgStyle:()=>Vi,NgSwitch:()=>Vn,NgSwitchCase:()=>$n,NgSwitchDefault:()=>pi,NgTemplateOutlet:()=>hr,NumberFormatStyle:()=>$e,NumberSymbol:()=>ie,PathLocationStrategy:()=>_e,PercentPipe:()=>ri,PlatformLocation:()=>C,Plural:()=>de,SlicePipe:()=>Oi,TitleCasePipe:()=>Ji,TranslationWidth:()=>z,UpperCasePipe:()=>li,VERSION:()=>Fr,ViewportScroller:()=>gi,WeekDay:()=>xe,XhrFactory:()=>sn,formatCurrency:()=>xn,formatDate:()=>kt,formatNumber:()=>Se,formatPercent:()=>K,getCurrencySymbol:()=>Ie,getLocaleCurrencyCode:()=>mt,getLocaleCurrencyName:()=>Ze,getLocaleCurrencySymbol:()=>Ee,getLocaleDateFormat:()=>et,getLocaleDateTimeFormat:()=>pe,getLocaleDayNames:()=>ve,getLocaleDayPeriods:()=>Je,getLocaleDirection:()=>ae,getLocaleEraNames:()=>ct,getLocaleExtraDayPeriodRules:()=>Ge,getLocaleExtraDayPeriods:()=>V,getLocaleFirstDayOfWeek:()=>Dt,getLocaleId:()=>me,getLocaleMonthNames:()=>ze,getLocaleNumberFormat:()=>ke,getLocaleNumberSymbol:()=>we,getLocalePluralCase:()=>St,getLocaleTimeFormat:()=>ne,getLocaleWeekEndRange:()=>Be,getNumberOfCurrencyDigits:()=>oe,isPlatformBrowser:()=>zn,isPlatformServer:()=>er,isPlatformWorkerApp:()=>mi,isPlatformWorkerUi:()=>tr,registerLocaleData:()=>Ft,\u0275BrowserPlatformLocation:()=>A,\u0275DomAdapter:()=>_,\u0275NullViewportScroller:()=>kr,\u0275PLATFORM_BROWSER_ID:()=>Un,\u0275PLATFORM_SERVER_ID:()=>xi,\u0275PLATFORM_WORKER_APP_ID:()=>Wn,\u0275PLATFORM_WORKER_UI_ID:()=>Wi,\u0275getDOM:()=>m,\u0275parseCookieValue:()=>En,\u0275setRootDomAdapter:()=>s});var i=l(5e3);let u=null;function m(){return u}function s(k){u||(u=k)}class _{}const D=new i.InjectionToken("DocumentToken");let C=(()=>{class k{historyGo(F){throw new Error("Not implemented")}}return k.\u0275fac=function(F){return new(F||k)},k.\u0275prov=i.\u0275\u0275defineInjectable({token:k,factory:function(){return function w(){return(0,i.\u0275\u0275inject)(A)}()},providedIn:"platform"}),k})();const h=new i.InjectionToken("Location Initialized");let A=(()=>{class k extends C{constructor(F){super(),this._doc=F,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return m().getBaseHref(this._doc)}onPopState(F){const se=m().getGlobalEventTarget(this._doc,"window");return se.addEventListener("popstate",F,!1),()=>se.removeEventListener("popstate",F)}onHashChange(F){const se=m().getGlobalEventTarget(this._doc,"window");return se.addEventListener("hashchange",F,!1),()=>se.removeEventListener("hashchange",F)}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(F){this.location.pathname=F}pushState(F,se,Ke){T()?this._history.pushState(F,se,Ke):this.location.hash=Ke}replaceState(F,se,Ke){T()?this._history.replaceState(F,se,Ke):this.location.hash=Ke}forward(){this._history.forward()}back(){this._history.back()}historyGo(F=0){this._history.go(F)}getState(){return this._history.state}}return k.\u0275fac=function(F){return new(F||k)(i.\u0275\u0275inject(D))},k.\u0275prov=i.\u0275\u0275defineInjectable({token:k,factory:function(){return function v(){return new A((0,i.\u0275\u0275inject)(D))}()},providedIn:"platform"}),k})();function T(){return!!window.history.pushState}function N(k,ee){if(0==k.length)return ee;if(0==ee.length)return k;let F=0;return k.endsWith("/")&&F++,ee.startsWith("/")&&F++,2==F?k+ee.substring(1):1==F?k+ee:k+"/"+ee}function U(k){const ee=k.match(/#|\?|$/),F=ee&&ee.index||k.length;return k.slice(0,F-("/"===k[F-1]?1:0))+k.slice(F)}function fe(k){return k&&"?"!==k[0]?"?"+k:k}let Q=(()=>{class k{historyGo(F){throw new Error("Not implemented")}}return k.\u0275fac=function(F){return new(F||k)},k.\u0275prov=i.\u0275\u0275defineInjectable({token:k,factory:function(){return function he(k){const ee=(0,i.\u0275\u0275inject)(D).location;return new _e((0,i.\u0275\u0275inject)(C),ee&&ee.origin||"")}()},providedIn:"root"}),k})();const Re=new i.InjectionToken("appBaseHref");let _e=(()=>{class k extends Q{constructor(F,se){if(super(),this._platformLocation=F,this._removeListenerFns=[],null==se&&(se=this._platformLocation.getBaseHrefFromDOM()),null==se)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=se}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}prepareExternalUrl(F){return N(this._baseHref,F)}path(F=!1){const se=this._platformLocation.pathname+fe(this._platformLocation.search),Ke=this._platformLocation.hash;return Ke&&F?`${se}${Ke}`:se}pushState(F,se,Ke,ut){const _t=this.prepareExternalUrl(Ke+fe(ut));this._platformLocation.pushState(F,se,_t)}replaceState(F,se,Ke,ut){const _t=this.prepareExternalUrl(Ke+fe(ut));this._platformLocation.replaceState(F,se,_t)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(F=0){var se,Ke;null===(Ke=(se=this._platformLocation).historyGo)||void 0===Ke||Ke.call(se,F)}}return k.\u0275fac=function(F){return new(F||k)(i.\u0275\u0275inject(C),i.\u0275\u0275inject(Re,8))},k.\u0275prov=i.\u0275\u0275defineInjectable({token:k,factory:k.\u0275fac}),k})(),be=(()=>{class k extends Q{constructor(F,se){super(),this._platformLocation=F,this._baseHref="",this._removeListenerFns=[],null!=se&&(this._baseHref=se)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}path(F=!1){let se=this._platformLocation.hash;return null==se&&(se="#"),se.length>0?se.substring(1):se}prepareExternalUrl(F){const se=N(this._baseHref,F);return se.length>0?"#"+se:se}pushState(F,se,Ke,ut){let _t=this.prepareExternalUrl(Ke+fe(ut));0==_t.length&&(_t=this._platformLocation.pathname),this._platformLocation.pushState(F,se,_t)}replaceState(F,se,Ke,ut){let _t=this.prepareExternalUrl(Ke+fe(ut));0==_t.length&&(_t=this._platformLocation.pathname),this._platformLocation.replaceState(F,se,_t)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(F=0){var se,Ke;null===(Ke=(se=this._platformLocation).historyGo)||void 0===Ke||Ke.call(se,F)}}return k.\u0275fac=function(F){return new(F||k)(i.\u0275\u0275inject(C),i.\u0275\u0275inject(Re,8))},k.\u0275prov=i.\u0275\u0275defineInjectable({token:k,factory:k.\u0275fac}),k})(),q=(()=>{class k{constructor(F,se){this._subject=new i.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=F;const Ke=this._platformStrategy.getBaseHref();this._platformLocation=se,this._baseHref=U(Ye(Ke)),this._platformStrategy.onPopState(ut=>{this._subject.emit({url:this.path(!0),pop:!0,state:ut.state,type:ut.type})})}path(F=!1){return this.normalize(this._platformStrategy.path(F))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(F,se=""){return this.path()==this.normalize(F+fe(se))}normalize(F){return k.stripTrailingSlash(function Fe(k,ee){return k&&ee.startsWith(k)?ee.substring(k.length):ee}(this._baseHref,Ye(F)))}prepareExternalUrl(F){return F&&"/"!==F[0]&&(F="/"+F),this._platformStrategy.prepareExternalUrl(F)}go(F,se="",Ke=null){this._platformStrategy.pushState(Ke,"",F,se),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+fe(se)),Ke)}replaceState(F,se="",Ke=null){this._platformStrategy.replaceState(Ke,"",F,se),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+fe(se)),Ke)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(F=0){var se,Ke;null===(Ke=(se=this._platformStrategy).historyGo)||void 0===Ke||Ke.call(se,F)}onUrlChange(F){this._urlChangeListeners.push(F),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(se=>{this._notifyUrlChangeListeners(se.url,se.state)}))}_notifyUrlChangeListeners(F="",se){this._urlChangeListeners.forEach(Ke=>Ke(F,se))}subscribe(F,se,Ke){return this._subject.subscribe({next:F,error:se,complete:Ke})}}return k.normalizeQueryParams=fe,k.joinWithSlash=N,k.stripTrailingSlash=U,k.\u0275fac=function(F){return new(F||k)(i.\u0275\u0275inject(Q),i.\u0275\u0275inject(C))},k.\u0275prov=i.\u0275\u0275defineInjectable({token:k,factory:function(){return function Ce(){return new q((0,i.\u0275\u0275inject)(Q),(0,i.\u0275\u0275inject)(C))}()},providedIn:"root"}),k})();function Ye(k){return k.replace(/\/index.html$/,"")}const st={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var $e=(()=>(($e=$e||{})[$e.Decimal=0]="Decimal",$e[$e.Percent=1]="Percent",$e[$e.Currency=2]="Currency",$e[$e.Scientific=3]="Scientific",$e))(),de=(()=>((de=de||{})[de.Zero=0]="Zero",de[de.One=1]="One",de[de.Two=2]="Two",de[de.Few=3]="Few",de[de.Many=4]="Many",de[de.Other=5]="Other",de))(),Pe=(()=>((Pe=Pe||{})[Pe.Format=0]="Format",Pe[Pe.Standalone=1]="Standalone",Pe))(),z=(()=>((z=z||{})[z.Narrow=0]="Narrow",z[z.Abbreviated=1]="Abbreviated",z[z.Wide=2]="Wide",z[z.Short=3]="Short",z))(),ge=(()=>((ge=ge||{})[ge.Short=0]="Short",ge[ge.Medium=1]="Medium",ge[ge.Long=2]="Long",ge[ge.Full=3]="Full",ge))(),ie=(()=>((ie=ie||{})[ie.Decimal=0]="Decimal",ie[ie.Group=1]="Group",ie[ie.List=2]="List",ie[ie.PercentSign=3]="PercentSign",ie[ie.PlusSign=4]="PlusSign",ie[ie.MinusSign=5]="MinusSign",ie[ie.Exponential=6]="Exponential",ie[ie.SuperscriptingExponent=7]="SuperscriptingExponent",ie[ie.PerMille=8]="PerMille",ie[ie.Infinity=9]="Infinity",ie[ie.NaN=10]="NaN",ie[ie.TimeSeparator=11]="TimeSeparator",ie[ie.CurrencyDecimal=12]="CurrencyDecimal",ie[ie.CurrencyGroup=13]="CurrencyGroup",ie))(),xe=(()=>((xe=xe||{})[xe.Sunday=0]="Sunday",xe[xe.Monday=1]="Monday",xe[xe.Tuesday=2]="Tuesday",xe[xe.Wednesday=3]="Wednesday",xe[xe.Thursday=4]="Thursday",xe[xe.Friday=5]="Friday",xe[xe.Saturday=6]="Saturday",xe))();function me(k){return(0,i.\u0275findLocaleData)(k)[i.\u0275LocaleDataIndex.LocaleId]}function Je(k,ee,F){const se=(0,i.\u0275findLocaleData)(k),ut=Oe([se[i.\u0275LocaleDataIndex.DayPeriodsFormat],se[i.\u0275LocaleDataIndex.DayPeriodsStandalone]],ee);return Oe(ut,F)}function ve(k,ee,F){const se=(0,i.\u0275findLocaleData)(k),ut=Oe([se[i.\u0275LocaleDataIndex.DaysFormat],se[i.\u0275LocaleDataIndex.DaysStandalone]],ee);return Oe(ut,F)}function ze(k,ee,F){const se=(0,i.\u0275findLocaleData)(k),ut=Oe([se[i.\u0275LocaleDataIndex.MonthsFormat],se[i.\u0275LocaleDataIndex.MonthsStandalone]],ee);return Oe(ut,F)}function ct(k,ee){return Oe((0,i.\u0275findLocaleData)(k)[i.\u0275LocaleDataIndex.Eras],ee)}function Dt(k){return(0,i.\u0275findLocaleData)(k)[i.\u0275LocaleDataIndex.FirstDayOfWeek]}function Be(k){return(0,i.\u0275findLocaleData)(k)[i.\u0275LocaleDataIndex.WeekendRange]}function et(k,ee){return Oe((0,i.\u0275findLocaleData)(k)[i.\u0275LocaleDataIndex.DateFormat],ee)}function ne(k,ee){return Oe((0,i.\u0275findLocaleData)(k)[i.\u0275LocaleDataIndex.TimeFormat],ee)}function pe(k,ee){return Oe((0,i.\u0275findLocaleData)(k)[i.\u0275LocaleDataIndex.DateTimeFormat],ee)}function we(k,ee){const F=(0,i.\u0275findLocaleData)(k),se=F[i.\u0275LocaleDataIndex.NumberSymbols][ee];if(void 0===se){if(ee===ie.CurrencyDecimal)return F[i.\u0275LocaleDataIndex.NumberSymbols][ie.Decimal];if(ee===ie.CurrencyGroup)return F[i.\u0275LocaleDataIndex.NumberSymbols][ie.Group]}return se}function ke(k,ee){return(0,i.\u0275findLocaleData)(k)[i.\u0275LocaleDataIndex.NumberFormats][ee]}function Ee(k){return(0,i.\u0275findLocaleData)(k)[i.\u0275LocaleDataIndex.CurrencySymbol]||null}function Ze(k){return(0,i.\u0275findLocaleData)(k)[i.\u0275LocaleDataIndex.CurrencyName]||null}function mt(k){return(0,i.\u0275getLocaleCurrencyCode)(k)}const St=i.\u0275getLocalePluralCase;function dt(k){if(!k[i.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${k[i.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ge(k){const ee=(0,i.\u0275findLocaleData)(k);return dt(ee),(ee[i.\u0275LocaleDataIndex.ExtraData][2]||[]).map(se=>"string"==typeof se?le(se):[le(se[0]),le(se[1])])}function V(k,ee,F){const se=(0,i.\u0275findLocaleData)(k);dt(se);const ut=Oe([se[i.\u0275LocaleDataIndex.ExtraData][0],se[i.\u0275LocaleDataIndex.ExtraData][1]],ee)||[];return Oe(ut,F)||[]}function ae(k){return(0,i.\u0275findLocaleData)(k)[i.\u0275LocaleDataIndex.Directionality]}function Oe(k,ee){for(let F=ee;F>-1;F--)if(void 0!==k[F])return k[F];throw new Error("Locale data API: locale data undefined")}function le(k){const[ee,F]=k.split(":");return{hours:+ee,minutes:+F}}function Ie(k,ee,F="en"){const se=function gt(k){return(0,i.\u0275findLocaleData)(k)[i.\u0275LocaleDataIndex.Currencies]}(F)[k]||st[k]||[],Ke=se[1];return"narrow"===ee&&"string"==typeof Ke?Ke:se[0]||k}function oe(k){let ee;const F=st[k];return F&&(ee=F[2]),"number"==typeof ee?ee:2}const De=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Qe={},nt=/((?:[^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 ht=(()=>((ht=ht||{})[ht.Short=0]="Short",ht[ht.ShortGMT=1]="ShortGMT",ht[ht.Long=2]="Long",ht[ht.Extended=3]="Extended",ht))(),pt=(()=>((pt=pt||{})[pt.FullYear=0]="FullYear",pt[pt.Month=1]="Month",pt[pt.Date=2]="Date",pt[pt.Hours=3]="Hours",pt[pt.Minutes=4]="Minutes",pt[pt.Seconds=5]="Seconds",pt[pt.FractionalSeconds=6]="FractionalSeconds",pt[pt.Day=7]="Day",pt))(),Ct=(()=>((Ct=Ct||{})[Ct.DayPeriods=0]="DayPeriods",Ct[Ct.Days=1]="Days",Ct[Ct.Months=2]="Months",Ct[Ct.Eras=3]="Eras",Ct))();function kt(k,ee,F,se){let Ke=function He(k){if(Ve(k))return k;if("number"==typeof k&&!isNaN(k))return new Date(k);if("string"==typeof k){if(k=k.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(k)){const[Ke,ut=1,_t=1]=k.split("-").map(Lt=>+Lt);return Kt(Ke,ut-1,_t)}const F=parseFloat(k);if(!isNaN(k-F))return new Date(F);let se;if(se=k.match(De))return function ue(k){const ee=new Date(0);let F=0,se=0;const Ke=k[8]?ee.setUTCFullYear:ee.setFullYear,ut=k[8]?ee.setUTCHours:ee.setHours;k[9]&&(F=Number(k[9]+k[10]),se=Number(k[9]+k[11])),Ke.call(ee,Number(k[1]),Number(k[2])-1,Number(k[3]));const _t=Number(k[4]||0)-F,Lt=Number(k[5]||0)-se,yn=Number(k[6]||0),dn=Math.floor(1e3*parseFloat("0."+(k[7]||0)));return ut.call(ee,_t,Lt,yn,dn),ee}(se)}const ee=new Date(k);if(!Ve(ee))throw new Error(`Unable to convert "${k}" into a date`);return ee}(k);ee=xt(F,ee)||ee;let Lt,_t=[];for(;ee;){if(Lt=nt.exec(ee),!Lt){_t.push(ee);break}{_t=_t.concat(Lt.slice(1));const on=_t.pop();if(!on)break;ee=on}}let yn=Ke.getTimezoneOffset();se&&(yn=Bt(se,yn),Ke=function Le(k,ee,F){const se=F?-1:1,Ke=k.getTimezoneOffset();return function jt(k,ee){return(k=new Date(k.getTime())).setMinutes(k.getMinutes()+ee),k}(k,se*(Bt(ee,Ke)-Ke))}(Ke,se,!0));let dn="";return _t.forEach(on=>{const an=function it(k){if(Ne[k])return Ne[k];let ee;switch(k){case"G":case"GG":case"GGG":ee=Ut(Ct.Eras,z.Abbreviated);break;case"GGGG":ee=Ut(Ct.Eras,z.Wide);break;case"GGGGG":ee=Ut(Ct.Eras,z.Narrow);break;case"y":ee=Et(pt.FullYear,1,0,!1,!0);break;case"yy":ee=Et(pt.FullYear,2,0,!0,!0);break;case"yyy":ee=Et(pt.FullYear,3,0,!1,!0);break;case"yyyy":ee=Et(pt.FullYear,4,0,!1,!0);break;case"Y":ee=$(1);break;case"YY":ee=$(2,!0);break;case"YYY":ee=$(3);break;case"YYYY":ee=$(4);break;case"M":case"L":ee=Et(pt.Month,1,1);break;case"MM":case"LL":ee=Et(pt.Month,2,1);break;case"MMM":ee=Ut(Ct.Months,z.Abbreviated);break;case"MMMM":ee=Ut(Ct.Months,z.Wide);break;case"MMMMM":ee=Ut(Ct.Months,z.Narrow);break;case"LLL":ee=Ut(Ct.Months,z.Abbreviated,Pe.Standalone);break;case"LLLL":ee=Ut(Ct.Months,z.Wide,Pe.Standalone);break;case"LLLLL":ee=Ut(Ct.Months,z.Narrow,Pe.Standalone);break;case"w":ee=b(1);break;case"ww":ee=b(2);break;case"W":ee=b(1,!0);break;case"d":ee=Et(pt.Date,1);break;case"dd":ee=Et(pt.Date,2);break;case"c":case"cc":ee=Et(pt.Day,1);break;case"ccc":ee=Ut(Ct.Days,z.Abbreviated,Pe.Standalone);break;case"cccc":ee=Ut(Ct.Days,z.Wide,Pe.Standalone);break;case"ccccc":ee=Ut(Ct.Days,z.Narrow,Pe.Standalone);break;case"cccccc":ee=Ut(Ct.Days,z.Short,Pe.Standalone);break;case"E":case"EE":case"EEE":ee=Ut(Ct.Days,z.Abbreviated);break;case"EEEE":ee=Ut(Ct.Days,z.Wide);break;case"EEEEE":ee=Ut(Ct.Days,z.Narrow);break;case"EEEEEE":ee=Ut(Ct.Days,z.Short);break;case"a":case"aa":case"aaa":ee=Ut(Ct.DayPeriods,z.Abbreviated);break;case"aaaa":ee=Ut(Ct.DayPeriods,z.Wide);break;case"aaaaa":ee=Ut(Ct.DayPeriods,z.Narrow);break;case"b":case"bb":case"bbb":ee=Ut(Ct.DayPeriods,z.Abbreviated,Pe.Standalone,!0);break;case"bbbb":ee=Ut(Ct.DayPeriods,z.Wide,Pe.Standalone,!0);break;case"bbbbb":ee=Ut(Ct.DayPeriods,z.Narrow,Pe.Standalone,!0);break;case"B":case"BB":case"BBB":ee=Ut(Ct.DayPeriods,z.Abbreviated,Pe.Format,!0);break;case"BBBB":ee=Ut(Ct.DayPeriods,z.Wide,Pe.Format,!0);break;case"BBBBB":ee=Ut(Ct.DayPeriods,z.Narrow,Pe.Format,!0);break;case"h":ee=Et(pt.Hours,1,-12);break;case"hh":ee=Et(pt.Hours,2,-12);break;case"H":ee=Et(pt.Hours,1);break;case"HH":ee=Et(pt.Hours,2);break;case"m":ee=Et(pt.Minutes,1);break;case"mm":ee=Et(pt.Minutes,2);break;case"s":ee=Et(pt.Seconds,1);break;case"ss":ee=Et(pt.Seconds,2);break;case"S":ee=Et(pt.FractionalSeconds,1);break;case"SS":ee=Et(pt.FractionalSeconds,2);break;case"SSS":ee=Et(pt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ee=ce(ht.Short);break;case"ZZZZZ":ee=ce(ht.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ee=ce(ht.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ee=ce(ht.Long);break;default:return null}return Ne[k]=ee,ee}(on);dn+=an?an(Ke,F,yn):"''"===on?"'":on.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),dn}function Kt(k,ee,F){const se=new Date(0);return se.setFullYear(k,ee,F),se.setHours(0,0,0),se}function xt(k,ee){const F=me(k);if(Qe[F]=Qe[F]||{},Qe[F][ee])return Qe[F][ee];let se="";switch(ee){case"shortDate":se=et(k,ge.Short);break;case"mediumDate":se=et(k,ge.Medium);break;case"longDate":se=et(k,ge.Long);break;case"fullDate":se=et(k,ge.Full);break;case"shortTime":se=ne(k,ge.Short);break;case"mediumTime":se=ne(k,ge.Medium);break;case"longTime":se=ne(k,ge.Long);break;case"fullTime":se=ne(k,ge.Full);break;case"short":const Ke=xt(k,"shortTime"),ut=xt(k,"shortDate");se=pn(pe(k,ge.Short),[Ke,ut]);break;case"medium":const _t=xt(k,"mediumTime"),Lt=xt(k,"mediumDate");se=pn(pe(k,ge.Medium),[_t,Lt]);break;case"long":const yn=xt(k,"longTime"),dn=xt(k,"longDate");se=pn(pe(k,ge.Long),[yn,dn]);break;case"full":const on=xt(k,"fullTime"),an=xt(k,"fullDate");se=pn(pe(k,ge.Full),[on,an])}return se&&(Qe[F][ee]=se),se}function pn(k,ee){return ee&&(k=k.replace(/\{([^}]+)}/g,function(F,se){return null!=ee&&se in ee?ee[se]:F})),k}function Jt(k,ee,F="-",se,Ke){let ut="";(k<0||Ke&&k<=0)&&(Ke?k=1-k:(k=-k,ut=F));let _t=String(k);for(;_t.length<ee;)_t="0"+_t;return se&&(_t=_t.substr(_t.length-ee)),ut+_t}function Et(k,ee,F=0,se=!1,Ke=!1){return function(ut,_t){let Lt=function ln(k,ee){switch(k){case pt.FullYear:return ee.getFullYear();case pt.Month:return ee.getMonth();case pt.Date:return ee.getDate();case pt.Hours:return ee.getHours();case pt.Minutes:return ee.getMinutes();case pt.Seconds:return ee.getSeconds();case pt.FractionalSeconds:return ee.getMilliseconds();case pt.Day:return ee.getDay();default:throw new Error(`Unknown DateType value "${k}".`)}}(k,ut);if((F>0||Lt>-F)&&(Lt+=F),k===pt.Hours)0===Lt&&-12===F&&(Lt=12);else if(k===pt.FractionalSeconds)return function Nt(k,ee){return Jt(k,3).substr(0,ee)}(Lt,ee);const yn=we(_t,ie.MinusSign);return Jt(Lt,ee,yn,se,Ke)}}function Ut(k,ee,F=Pe.Format,se=!1){return function(Ke,ut){return function Xt(k,ee,F,se,Ke,ut){switch(F){case Ct.Months:return ze(ee,Ke,se)[k.getMonth()];case Ct.Days:return ve(ee,Ke,se)[k.getDay()];case Ct.DayPeriods:const _t=k.getHours(),Lt=k.getMinutes();if(ut){const dn=Ge(ee),on=V(ee,Ke,se),an=dn.findIndex(Pn=>{if(Array.isArray(Pn)){const[L,x]=Pn,I=_t>=L.hours&&Lt>=L.minutes,X=_t<x.hours||_t===x.hours&&Lt<x.minutes;if(L.hours<x.hours){if(I&&X)return!0}else if(I||X)return!0}else if(Pn.hours===_t&&Pn.minutes===Lt)return!0;return!1});if(-1!==an)return on[an]}return Je(ee,Ke,se)[_t<12?0:1];case Ct.Eras:return ct(ee,se)[k.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${F}`)}}(Ke,ut,k,ee,F,se)}}function ce(k){return function(ee,F,se){const Ke=-1*se,ut=we(F,ie.MinusSign),_t=Ke>0?Math.floor(Ke/60):Math.ceil(Ke/60);switch(k){case ht.Short:return(Ke>=0?"+":"")+Jt(_t,2,ut)+Jt(Math.abs(Ke%60),2,ut);case ht.ShortGMT:return"GMT"+(Ke>=0?"+":"")+Jt(_t,1,ut);case ht.Long:return"GMT"+(Ke>=0?"+":"")+Jt(_t,2,ut)+":"+Jt(Math.abs(Ke%60),2,ut);case ht.Extended:return 0===se?"Z":(Ke>=0?"+":"")+Jt(_t,2,ut)+":"+Jt(Math.abs(Ke%60),2,ut);default:throw new Error(`Unknown zone width "${k}"`)}}}function re(k){return Kt(k.getFullYear(),k.getMonth(),k.getDate()+(4-k.getDay()))}function b(k,ee=!1){return function(F,se){let Ke;if(ee){const ut=new Date(F.getFullYear(),F.getMonth(),1).getDay()-1,_t=F.getDate();Ke=1+Math.floor((_t+ut)/7)}else{const ut=re(F),_t=function P(k){const ee=Kt(k,0,1).getDay();return Kt(k,0,1+(ee<=4?4:11)-ee)}(ut.getFullYear()),Lt=ut.getTime()-_t.getTime();Ke=1+Math.round(Lt/6048e5)}return Jt(Ke,k,we(se,ie.MinusSign))}}function $(k,ee=!1){return function(F,se){return Jt(re(F).getFullYear(),k,we(se,ie.MinusSign),ee)}}const Ne={};function Bt(k,ee){k=k.replace(/:/g,"");const F=Date.parse("Jan 01, 1970 00:00:00 "+k)/6e4;return isNaN(F)?ee:F}function Ve(k){return k instanceof Date&&!isNaN(k.valueOf())}const lt=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Qn(k,ee,F,se,Ke,ut,_t=!1){let Lt="",yn=!1;if(isFinite(k)){let dn=function qe(k){let se,Ke,ut,_t,Lt,ee=Math.abs(k)+"",F=0;for((Ke=ee.indexOf("."))>-1&&(ee=ee.replace(".","")),(ut=ee.search(/e/i))>0?(Ke<0&&(Ke=ut),Ke+=+ee.slice(ut+1),ee=ee.substring(0,ut)):Ke<0&&(Ke=ee.length),ut=0;"0"===ee.charAt(ut);ut++);if(ut===(Lt=ee.length))se=[0],Ke=1;else{for(Lt--;"0"===ee.charAt(Lt);)Lt--;for(Ke-=ut,se=[],_t=0;ut<=Lt;ut++,_t++)se[_t]=Number(ee.charAt(ut))}return Ke>22&&(se=se.splice(0,21),F=Ke-1,Ke=1),{digits:se,exponent:F,integerLen:Ke}}(k);_t&&(dn=function Ae(k){if(0===k.digits[0])return k;const ee=k.digits.length-k.integerLen;return k.exponent?k.exponent+=2:(0===ee?k.digits.push(0,0):1===ee&&k.digits.push(0),k.integerLen+=2),k}(dn));let on=ee.minInt,an=ee.minFrac,Pn=ee.maxFrac;if(ut){const Ot=ut.match(lt);if(null===Ot)throw new Error(`${ut} is not a valid digit info`);const Dn=Ot[1],Yn=Ot[3],Di=Ot[5];null!=Dn&&(on=Tt(Dn)),null!=Yn&&(an=Tt(Yn)),null!=Di?Pn=Tt(Di):null!=Yn&&an>Pn&&(Pn=an)}!function at(k,ee,F){if(ee>F)throw new Error(`The minimum number of digits after fraction (${ee}) is higher than the maximum (${F}).`);let se=k.digits,Ke=se.length-k.integerLen;const ut=Math.min(Math.max(ee,Ke),F);let _t=ut+k.integerLen,Lt=se[_t];if(_t>0){se.splice(Math.max(k.integerLen,_t));for(let an=_t;an<se.length;an++)se[an]=0}else{Ke=Math.max(0,Ke),k.integerLen=1,se.length=Math.max(1,_t=ut+1),se[0]=0;for(let an=1;an<_t;an++)se[an]=0}if(Lt>=5)if(_t-1<0){for(let an=0;an>_t;an--)se.unshift(0),k.integerLen++;se.unshift(1),k.integerLen++}else se[_t-1]++;for(;Ke<Math.max(0,ut);Ke++)se.push(0);let yn=0!==ut;const dn=ee+k.integerLen,on=se.reduceRight(function(an,Pn,L,x){return x[L]=(Pn+=an)<10?Pn:Pn-10,yn&&(0===x[L]&&L>=dn?x.pop():yn=!1),Pn>=10?1:0},0);on&&(se.unshift(on),k.integerLen++)}(dn,an,Pn);let L=dn.digits,x=dn.integerLen;const I=dn.exponent;let X=[];for(yn=L.every(Ot=>!Ot);x<on;x++)L.unshift(0);for(;x<0;x++)L.unshift(0);x>0?X=L.splice(x,L.length):(X=L,L=[0]);const Xe=[];for(L.length>=ee.lgSize&&Xe.unshift(L.splice(-ee.lgSize,L.length).join(""));L.length>ee.gSize;)Xe.unshift(L.splice(-ee.gSize,L.length).join(""));L.length&&Xe.unshift(L.join("")),Lt=Xe.join(we(F,se)),X.length&&(Lt+=we(F,Ke)+X.join("")),I&&(Lt+=we(F,ie.Exponential)+"+"+I)}else Lt=we(F,ie.Infinity);return Lt=k<0&&!yn?ee.negPre+Lt+ee.negSuf:ee.posPre+Lt+ee.posSuf,Lt}function xn(k,ee,F,se,Ke){const _t=G(ke(ee,$e.Currency),we(ee,ie.MinusSign));return _t.minFrac=oe(se),_t.maxFrac=_t.minFrac,Qn(k,_t,ee,ie.CurrencyGroup,ie.CurrencyDecimal,Ke).replace("\xa4",F).replace("\xa4","").trim()}function K(k,ee,F){return Qn(k,G(ke(ee,$e.Percent),we(ee,ie.MinusSign)),ee,ie.Group,ie.Decimal,F,!0).replace(new RegExp("%","g"),we(ee,ie.PercentSign))}function Se(k,ee,F){return Qn(k,G(ke(ee,$e.Decimal),we(ee,ie.MinusSign)),ee,ie.Group,ie.Decimal,F)}function G(k,ee="-"){const F={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},se=k.split(";"),Ke=se[0],ut=se[1],_t=-1!==Ke.indexOf(".")?Ke.split("."):[Ke.substring(0,Ke.lastIndexOf("0")+1),Ke.substring(Ke.lastIndexOf("0")+1)],Lt=_t[0],yn=_t[1]||"";F.posPre=Lt.substr(0,Lt.indexOf("#"));for(let on=0;on<yn.length;on++){const an=yn.charAt(on);"0"===an?F.minFrac=F.maxFrac=on+1:"#"===an?F.maxFrac=on+1:F.posSuf+=an}const dn=Lt.split(",");if(F.gSize=dn[1]?dn[1].length:0,F.lgSize=dn[2]||dn[1]?(dn[2]||dn[1]).length:0,ut){const on=Ke.length-F.posPre.length-F.posSuf.length,an=ut.indexOf("#");F.negPre=ut.substr(0,an).replace(/'/g,""),F.negSuf=ut.substr(an+on).replace(/'/g,"")}else F.negPre=ee+F.posPre,F.negSuf=F.posSuf;return F}function Tt(k){const ee=parseInt(k);if(isNaN(ee))throw new Error("Invalid integer literal when parsing "+k);return ee}class At{}function zt(k,ee,F,se){let Ke=`=${k}`;if(ee.indexOf(Ke)>-1||(Ke=F.getPluralCategory(k,se),ee.indexOf(Ke)>-1))return Ke;if(ee.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${k}"`)}let mn=(()=>{class k extends At{constructor(F){super(),this.locale=F}getPluralCategory(F,se){switch(St(se||this.locale)(F)){case de.Zero:return"zero";case de.One:return"one";case de.Two:return"two";case de.Few:return"few";case de.Many:return"many";default:return"other"}}}return k.\u0275fac=function(F){return new(F||k)(i.\u0275\u0275inject(i.LOCALE_ID))},k.\u0275prov=i.\u0275\u0275defineInjectable({token:k,factory:k.\u0275fac}),k})();function Ft(k,ee,F){return(0,i.\u0275registerLocaleData)(k,ee,F)}function En(k,ee){ee=encodeURIComponent(ee);for(const F of k.split(";")){const se=F.indexOf("="),[Ke,ut]=-1==se?[F,""]:[F.slice(0,se),F.slice(se+1)];if(Ke.trim()===ee)return decodeURIComponent(ut)}return null}let nn=(()=>{class k{constructor(F,se,Ke,ut){this._iterableDiffers=F,this._keyValueDiffers=se,this._ngEl=Ke,this._renderer=ut,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(F){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof F?F.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(F){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof F?F.split(/\s+/):F,this._rawClass&&((0,i.\u0275isListLikeIterable)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const F=this._iterableDiffer.diff(this._rawClass);F&&this._applyIterableChanges(F)}else if(this._keyValueDiffer){const F=this._keyValueDiffer.diff(this._rawClass);F&&this._applyKeyValueChanges(F)}}_applyKeyValueChanges(F){F.forEachAddedItem(se=>this._toggleClass(se.key,se.currentValue)),F.forEachChangedItem(se=>this._toggleClass(se.key,se.currentValue)),F.forEachRemovedItem(se=>{se.previousValue&&this._toggleClass(se.key,!1)})}_applyIterableChanges(F){F.forEachAddedItem(se=>{if("string"!=typeof se.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,i.\u0275stringify)(se.item)}`);this._toggleClass(se.item,!0)}),F.forEachRemovedItem(se=>this._toggleClass(se.item,!1))}_applyClasses(F){F&&(Array.isArray(F)||F instanceof Set?F.forEach(se=>this._toggleClass(se,!0)):Object.keys(F).forEach(se=>this._toggleClass(se,!!F[se])))}_removeClasses(F){F&&(Array.isArray(F)||F instanceof Set?F.forEach(se=>this._toggleClass(se,!1)):Object.keys(F).forEach(se=>this._toggleClass(se,!1)))}_toggleClass(F,se){(F=F.trim())&&F.split(/\s+/g).forEach(Ke=>{se?this._renderer.addClass(this._ngEl.nativeElement,Ke):this._renderer.removeClass(this._ngEl.nativeElement,Ke)})}}return k.\u0275fac=function(F){return new(F||k)(i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(i.KeyValueDiffers),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),k})(),In=(()=>{class k{constructor(F){this._viewContainerRef=F,this._componentRef=null,this._moduleRef=null}ngOnChanges(F){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const se=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(F.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const _t=se.get(i.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(_t.injector)}else this._moduleRef=null;const ut=(this._moduleRef?this._moduleRef.componentFactoryResolver:se.get(i.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(ut,this._viewContainerRef.length,se,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return k.\u0275fac=function(F){return new(F||k)(i.\u0275\u0275directiveInject(i.ViewContainerRef))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[i.\u0275\u0275NgOnChangesFeature]}),k})();class Ln{constructor(ee,F,se,Ke){this.$implicit=ee,this.ngForOf=F,this.index=se,this.count=Ke}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 fn=(()=>{class k{constructor(F,se,Ke){this._viewContainer=F,this._template=se,this._differs=Ke,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(F){this._ngForOf=F,this._ngForOfDirty=!0}set ngForTrackBy(F){this._trackByFn=F}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(F){F&&(this._template=F)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const F=this._ngForOf;!this._differ&&F&&(this._differ=this._differs.find(F).create(this.ngForTrackBy))}if(this._differ){const F=this._differ.diff(this._ngForOf);F&&this._applyChanges(F)}}_applyChanges(F){const se=this._viewContainer;F.forEachOperation((Ke,ut,_t)=>{if(null==Ke.previousIndex)se.createEmbeddedView(this._template,new Ln(Ke.item,this._ngForOf,-1,-1),null===_t?void 0:_t);else if(null==_t)se.remove(null===ut?void 0:ut);else if(null!==ut){const Lt=se.get(ut);se.move(Lt,_t),Tn(Lt,Ke)}});for(let Ke=0,ut=se.length;Ke<ut;Ke++){const Lt=se.get(Ke).context;Lt.index=Ke,Lt.count=ut,Lt.ngForOf=this._ngForOf}F.forEachIdentityChange(Ke=>{Tn(se.get(Ke.currentIndex),Ke)})}static ngTemplateContextGuard(F,se){return!0}}return k.\u0275fac=function(F){return new(F||k)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),k})();function Tn(k,ee){k.context.$implicit=ee.item}let Nn=(()=>{class k{constructor(F,se){this._viewContainer=F,this._context=new cn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=se}set ngIf(F){this._context.$implicit=this._context.ngIf=F,this._updateView()}set ngIfThen(F){hi("ngIfThen",F),this._thenTemplateRef=F,this._thenViewRef=null,this._updateView()}set ngIfElse(F){hi("ngIfElse",F),this._elseTemplateRef=F,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(F,se){return!0}}return k.\u0275fac=function(F){return new(F||k)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),k})();class cn{constructor(){this.$implicit=null,this.ngIf=null}}function hi(k,ee){if(ee&&!ee.createEmbeddedView)throw new Error(`${k} must be a TemplateRef, but received '${(0,i.\u0275stringify)(ee)}'.`)}class fi{constructor(ee,F){this._viewContainerRef=ee,this._templateRef=F,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(ee){ee&&!this._created?this.create():!ee&&this._created&&this.destroy()}}let Vn=(()=>{class k{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(F){this._ngSwitch=F,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(F){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(F)}_matchCase(F){const se=F==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||se,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),se}_updateDefaultCases(F){if(this._defaultViews&&F!==this._defaultUsed){this._defaultUsed=F;for(let se=0;se<this._defaultViews.length;se++)this._defaultViews[se].enforceState(F)}}}return k.\u0275fac=function(F){return new(F||k)},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),k})(),$n=(()=>{class k{constructor(F,se,Ke){this.ngSwitch=Ke,Ke._addCase(),this._view=new fi(F,se)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return k.\u0275fac=function(F){return new(F||k)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(Vn,9))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),k})(),pi=(()=>{class k{constructor(F,se,Ke){Ke._addDefault(new fi(F,se))}}return k.\u0275fac=function(F){return new(F||k)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(Vn,9))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","ngSwitchDefault",""]]}),k})(),ei=(()=>{class k{constructor(F){this._localization=F,this._caseViews={}}set ngPlural(F){this._switchValue=F,this._updateView()}addCase(F,se){this._caseViews[F]=se}_updateView(){this._clearViews();const F=Object.keys(this._caseViews),se=zt(this._switchValue,F,this._localization);this._activateView(this._caseViews[se])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(F){F&&(this._activeView=F,this._activeView.create())}}return k.\u0275fac=function(F){return new(F||k)(i.\u0275\u0275directiveInject(At))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),k})(),Hn=(()=>{class k{constructor(F,se,Ke,ut){this.value=F;const _t=!isNaN(Number(F));ut.addCase(_t?`=${F}`:F,new fi(Ke,se))}}return k.\u0275fac=function(F){return new(F||k)(i.\u0275\u0275injectAttribute("ngPluralCase"),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(ei,1))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","ngPluralCase",""]]}),k})(),Vi=(()=>{class k{constructor(F,se,Ke){this._ngEl=F,this._differs=se,this._renderer=Ke,this._ngStyle=null,this._differ=null}set ngStyle(F){this._ngStyle=F,!this._differ&&F&&(this._differ=this._differs.find(F).create())}ngDoCheck(){if(this._differ){const F=this._differ.diff(this._ngStyle);F&&this._applyChanges(F)}}_setStyle(F,se){const[Ke,ut]=F.split(".");null!=(se=null!=se&&ut?`${se}${ut}`:se)?this._renderer.setStyle(this._ngEl.nativeElement,Ke,se):this._renderer.removeStyle(this._ngEl.nativeElement,Ke)}_applyChanges(F){F.forEachRemovedItem(se=>this._setStyle(se.key,null)),F.forEachAddedItem(se=>this._setStyle(se.key,se.currentValue)),F.forEachChangedItem(se=>this._setStyle(se.key,se.currentValue))}}return k.\u0275fac=function(F){return new(F||k)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.KeyValueDiffers),i.\u0275\u0275directiveInject(i.Renderer2))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),k})(),hr=(()=>{class k{constructor(F){this._viewContainerRef=F,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(F){if(F.ngTemplateOutlet){const se=this._viewContainerRef;this._viewRef&&se.remove(se.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?se.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&F.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return k.\u0275fac=function(F){return new(F||k)(i.\u0275\u0275directiveInject(i.ViewContainerRef))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.\u0275\u0275NgOnChangesFeature]}),k})();function Zn(k,ee){return new i.\u0275RuntimeError(2100,"")}class pr{createSubscription(ee,F){return ee.subscribe({next:F,error:se=>{throw se}})}dispose(ee){ee.unsubscribe()}onDestroy(ee){ee.unsubscribe()}}class $i{createSubscription(ee,F){return ee.then(F,se=>{throw se})}dispose(ee){}onDestroy(ee){}}const Zi=new $i,$r=new pr;let Yi=(()=>{class k{constructor(F){this._ref=F,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(F){return this._obj?F!==this._obj?(this._dispose(),this.transform(F)):this._latestValue:(F&&this._subscribe(F),this._latestValue)}_subscribe(F){this._obj=F,this._strategy=this._selectStrategy(F),this._subscription=this._strategy.createSubscription(F,se=>this._updateLatestValue(F,se))}_selectStrategy(F){if((0,i.\u0275isPromise)(F))return Zi;if((0,i.\u0275isSubscribable)(F))return $r;throw Zn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(F,se){F===this._obj&&(this._latestValue=se,this._ref.markForCheck())}}return k.\u0275fac=function(F){return new(F||k)(i.\u0275\u0275directiveInject(i.ChangeDetectorRef,16))},k.\u0275pipe=i.\u0275\u0275definePipe({name:"async",type:k,pure:!1}),k})(),Ar=(()=>{class k{transform(F){if(null==F)return null;if("string"!=typeof F)throw Zn();return F.toLowerCase()}}return k.\u0275fac=function(F){return new(F||k)},k.\u0275pipe=i.\u0275\u0275definePipe({name:"lowercase",type:k,pure:!0}),k})();const Mi=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let Ji=(()=>{class k{transform(F){if(null==F)return null;if("string"!=typeof F)throw Zn();return F.replace(Mi,se=>se[0].toUpperCase()+se.substr(1).toLowerCase())}}return k.\u0275fac=function(F){return new(F||k)},k.\u0275pipe=i.\u0275\u0275definePipe({name:"titlecase",type:k,pure:!0}),k})(),li=(()=>{class k{transform(F){if(null==F)return null;if("string"!=typeof F)throw Zn();return F.toUpperCase()}}return k.\u0275fac=function(F){return new(F||k)},k.\u0275pipe=i.\u0275\u0275definePipe({name:"uppercase",type:k,pure:!0}),k})();const mr=new i.InjectionToken("DATE_PIPE_DEFAULT_TIMEZONE");let wi=(()=>{class k{constructor(F,se){this.locale=F,this.defaultTimezone=se}transform(F,se="mediumDate",Ke,ut){var _t;if(null==F||""===F||F!=F)return null;try{return kt(F,se,ut||this.locale,null!==(_t=null!=Ke?Ke:this.defaultTimezone)&&void 0!==_t?_t:void 0)}catch(Lt){throw Zn()}}}return k.\u0275fac=function(F){return new(F||k)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16),i.\u0275\u0275directiveInject(mr,24))},k.\u0275pipe=i.\u0275\u0275definePipe({name:"date",type:k,pure:!0}),k})();const Or=/#/g;let xr=(()=>{class k{constructor(F){this._localization=F}transform(F,se,Ke){if(null==F)return"";if("object"!=typeof se||null===se)throw Zn();return se[zt(F,Object.keys(se),this._localization,Ke)].replace(Or,F.toString())}}return k.\u0275fac=function(F){return new(F||k)(i.\u0275\u0275directiveInject(At,16))},k.\u0275pipe=i.\u0275\u0275definePipe({name:"i18nPlural",type:k,pure:!0}),k})(),Xi=(()=>{class k{transform(F,se){if(null==F)return"";if("object"!=typeof se||"string"!=typeof F)throw Zn();return se.hasOwnProperty(F)?se[F]:se.hasOwnProperty("other")?se.other:""}}return k.\u0275fac=function(F){return new(F||k)},k.\u0275pipe=i.\u0275\u0275definePipe({name:"i18nSelect",type:k,pure:!0}),k})(),Si=(()=>{class k{transform(F){return JSON.stringify(F,null,2)}}return k.\u0275fac=function(F){return new(F||k)},k.\u0275pipe=i.\u0275\u0275definePipe({name:"json",type:k,pure:!1}),k})(),Rr=(()=>{class k{constructor(F){this.differs=F,this.keyValues=[],this.compareFn=Ii}transform(F,se=Ii){if(!F||!(F instanceof Map)&&"object"!=typeof F)return null;this.differ||(this.differ=this.differs.find(F).create());const Ke=this.differ.diff(F),ut=se!==this.compareFn;return Ke&&(this.keyValues=[],Ke.forEachItem(_t=>{this.keyValues.push(function Hi(k,ee){return{key:k,value:ee}}(_t.key,_t.currentValue))})),(Ke||ut)&&(this.keyValues.sort(se),this.compareFn=se),this.keyValues}}return k.\u0275fac=function(F){return new(F||k)(i.\u0275\u0275directiveInject(i.KeyValueDiffers,16))},k.\u0275pipe=i.\u0275\u0275definePipe({name:"keyvalue",type:k,pure:!1}),k})();function Ii(k,ee){const F=k.key,se=ee.key;if(F===se)return 0;if(void 0===F)return 1;if(void 0===se)return-1;if(null===F)return 1;if(null===se)return-1;if("string"==typeof F&&"string"==typeof se)return F<se?-1:1;if("number"==typeof F&&"number"==typeof se)return F-se;if("boolean"==typeof F&&"boolean"==typeof se)return F<se?-1:1;const Ke=String(F),ut=String(se);return Ke==ut?0:Ke<ut?-1:1}let gr=(()=>{class k{constructor(F){this._locale=F}transform(F,se,Ke){if(!Ai(F))return null;Ke=Ke||this._locale;try{return Se(qi(F),Ke,se)}catch(ut){throw Zn()}}}return k.\u0275fac=function(F){return new(F||k)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16))},k.\u0275pipe=i.\u0275\u0275definePipe({name:"number",type:k,pure:!0}),k})(),ri=(()=>{class k{constructor(F){this._locale=F}transform(F,se,Ke){if(!Ai(F))return null;Ke=Ke||this._locale;try{return K(qi(F),Ke,se)}catch(ut){throw Zn()}}}return k.\u0275fac=function(F){return new(F||k)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16))},k.\u0275pipe=i.\u0275\u0275definePipe({name:"percent",type:k,pure:!0}),k})(),Pi=(()=>{class k{constructor(F,se="USD"){this._locale=F,this._defaultCurrencyCode=se}transform(F,se=this._defaultCurrencyCode,Ke="symbol",ut,_t){if(!Ai(F))return null;_t=_t||this._locale,"boolean"==typeof Ke&&(Ke=Ke?"symbol":"code");let Lt=se||this._defaultCurrencyCode;"code"!==Ke&&(Lt="symbol"===Ke||"symbol-narrow"===Ke?Ie(Lt,"symbol"===Ke?"wide":"narrow",_t):Ke);try{return xn(qi(F),_t,Lt,se,ut)}catch(yn){throw Zn()}}}return k.\u0275fac=function(F){return new(F||k)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16),i.\u0275\u0275directiveInject(i.DEFAULT_CURRENCY_CODE,16))},k.\u0275pipe=i.\u0275\u0275definePipe({name:"currency",type:k,pure:!0}),k})();function Ai(k){return!(null==k||""===k||k!=k)}function qi(k){if("string"==typeof k&&!isNaN(Number(k)-parseFloat(k)))return Number(k);if("number"!=typeof k)throw new Error(`${k} is not a number`);return k}let Oi=(()=>{class k{transform(F,se,Ke){if(null==F)return null;if(!this.supports(F))throw Zn();return F.slice(se,Ke)}supports(F){return"string"==typeof F||Array.isArray(F)}}return k.\u0275fac=function(F){return new(F||k)},k.\u0275pipe=i.\u0275\u0275definePipe({name:"slice",type:k,pure:!1}),k})(),Ui=(()=>{class k{}return k.\u0275fac=function(F){return new(F||k)},k.\u0275mod=i.\u0275\u0275defineNgModule({type:k}),k.\u0275inj=i.\u0275\u0275defineInjector({providers:[{provide:At,useClass:mn}]}),k})();const Un="browser",xi="server",Wn="browserWorkerApp",Wi="browserWorkerUi";function zn(k){return k===Un}function er(k){return k===xi}function mi(k){return k===Wn}function tr(k){return k===Wi}const Fr=new i.Version("13.2.4");let gi=(()=>{class k{}return k.\u0275prov=(0,i.\u0275\u0275defineInjectable)({token:k,providedIn:"root",factory:()=>new Ri((0,i.\u0275\u0275inject)(D),window)}),k})();class Ri{constructor(ee,F){this.document=ee,this.window=F,this.offset=()=>[0,0]}setOffset(ee){this.offset=Array.isArray(ee)?()=>ee:ee}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(ee){this.supportsScrolling()&&this.window.scrollTo(ee[0],ee[1])}scrollToAnchor(ee){if(!this.supportsScrolling())return;const F=function Ci(k,ee){const F=k.getElementById(ee)||k.getElementsByName(ee)[0];if(F)return F;if("function"==typeof k.createTreeWalker&&k.body&&(k.body.createShadowRoot||k.body.attachShadow)){const se=k.createTreeWalker(k.body,NodeFilter.SHOW_ELEMENT);let Ke=se.currentNode;for(;Ke;){const ut=Ke.shadowRoot;if(ut){const _t=ut.getElementById(ee)||ut.querySelector(`[name="${ee}"]`);if(_t)return _t}Ke=se.nextNode()}}return null}(this.document,ee);F&&(this.scrollToElement(F),F.focus())}setHistoryScrollRestoration(ee){if(this.supportScrollRestoration()){const F=this.window.history;F&&F.scrollRestoration&&(F.scrollRestoration=ee)}}scrollToElement(ee){const F=ee.getBoundingClientRect(),se=F.left+this.window.pageXOffset,Ke=F.top+this.window.pageYOffset,ut=this.offset();this.window.scrollTo(se-ut[0],Ke-ut[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const ee=nr(this.window.history)||nr(Object.getPrototypeOf(this.window.history));return!(!ee||!ee.writable&&!ee.set)}catch(ee){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(ee){return!1}}}function nr(k){return Object.getOwnPropertyDescriptor(k,"scrollRestoration")}class kr{setOffset(ee){}getScrollPosition(){return[0,0]}scrollToPosition(ee){}scrollToAnchor(ee){}setHistoryScrollRestoration(ee){}}class sn{}},520:(je,g,l)=>{"use strict";l.r(g),l.d(g,{HTTP_INTERCEPTORS:()=>me,HttpBackend:()=>w,HttpClient:()=>ie,HttpClientJsonpModule:()=>le,HttpClientModule:()=>Oe,HttpClientXsrfModule:()=>ae,HttpContext:()=>Re,HttpContextToken:()=>he,HttpErrorResponse:()=>z,HttpEventType:()=>st,HttpHandler:()=>C,HttpHeaderResponse:()=>de,HttpHeaders:()=>h,HttpParams:()=>Q,HttpRequest:()=>Ye,HttpResponse:()=>Pe,HttpResponseBase:()=>$e,HttpUrlEncodingCodec:()=>A,HttpXhrBackend:()=>ke,HttpXsrfTokenExtractor:()=>mt,JsonpClientBackend:()=>et,JsonpInterceptor:()=>ne,XhrFactory:()=>Ie,\u0275HttpInterceptingHandler:()=>dt});var i=l(9808),u=l(5e3),m=l(9646),c=l(9751),s=l(4351),_=l(9300),D=l(4004);class C{}class w{}class h{constructor(oe){this.normalizedNames=new Map,this.lazyUpdate=null,oe?this.lazyInit="string"==typeof oe?()=>{this.headers=new Map,oe.split("\n").forEach(De=>{const Qe=De.indexOf(":");if(Qe>0){const nt=De.slice(0,Qe),ht=nt.toLowerCase(),pt=De.slice(Qe+1).trim();this.maybeSetNormalizedName(nt,ht),this.headers.has(ht)?this.headers.get(ht).push(pt):this.headers.set(ht,[pt])}})}:()=>{this.headers=new Map,Object.keys(oe).forEach(De=>{let Qe=oe[De];const nt=De.toLowerCase();"string"==typeof Qe&&(Qe=[Qe]),Qe.length>0&&(this.headers.set(nt,Qe),this.maybeSetNormalizedName(De,nt))})}:this.headers=new Map}has(oe){return this.init(),this.headers.has(oe.toLowerCase())}get(oe){this.init();const De=this.headers.get(oe.toLowerCase());return De&&De.length>0?De[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(oe){return this.init(),this.headers.get(oe.toLowerCase())||null}append(oe,De){return this.clone({name:oe,value:De,op:"a"})}set(oe,De){return this.clone({name:oe,value:De,op:"s"})}delete(oe,De){return this.clone({name:oe,value:De,op:"d"})}maybeSetNormalizedName(oe,De){this.normalizedNames.has(De)||this.normalizedNames.set(De,oe)}init(){this.lazyInit&&(this.lazyInit instanceof h?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(oe=>this.applyUpdate(oe)),this.lazyUpdate=null))}copyFrom(oe){oe.init(),Array.from(oe.headers.keys()).forEach(De=>{this.headers.set(De,oe.headers.get(De)),this.normalizedNames.set(De,oe.normalizedNames.get(De))})}clone(oe){const De=new h;return De.lazyInit=this.lazyInit&&this.lazyInit instanceof h?this.lazyInit:this,De.lazyUpdate=(this.lazyUpdate||[]).concat([oe]),De}applyUpdate(oe){const De=oe.name.toLowerCase();switch(oe.op){case"a":case"s":let Qe=oe.value;if("string"==typeof Qe&&(Qe=[Qe]),0===Qe.length)return;this.maybeSetNormalizedName(oe.name,De);const nt=("a"===oe.op?this.headers.get(De):void 0)||[];nt.push(...Qe),this.headers.set(De,nt);break;case"d":const ht=oe.value;if(ht){let pt=this.headers.get(De);if(!pt)return;pt=pt.filter(Ct=>-1===ht.indexOf(Ct)),0===pt.length?(this.headers.delete(De),this.normalizedNames.delete(De)):this.headers.set(De,pt)}else this.headers.delete(De),this.normalizedNames.delete(De)}}forEach(oe){this.init(),Array.from(this.normalizedNames.keys()).forEach(De=>oe(this.normalizedNames.get(De),this.headers.get(De)))}}class A{encodeKey(oe){return U(oe)}encodeValue(oe){return U(oe)}decodeKey(oe){return decodeURIComponent(oe)}decodeValue(oe){return decodeURIComponent(oe)}}const v=/%(\d[a-f0-9])/gi,N={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function U(Te){return encodeURIComponent(Te).replace(v,(oe,De)=>{var Qe;return null!==(Qe=N[De])&&void 0!==Qe?Qe:oe})}function fe(Te){return`${Te}`}class Q{constructor(oe={}){if(this.updates=null,this.cloneFrom=null,this.encoder=oe.encoder||new A,oe.fromString){if(oe.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function T(Te,oe){const De=new Map;return Te.length>0&&Te.replace(/^\?/,"").split("&").forEach(nt=>{const ht=nt.indexOf("="),[pt,Ct]=-1==ht?[oe.decodeKey(nt),""]:[oe.decodeKey(nt.slice(0,ht)),oe.decodeValue(nt.slice(ht+1))],kt=De.get(pt)||[];kt.push(Ct),De.set(pt,kt)}),De}(oe.fromString,this.encoder)}else oe.fromObject?(this.map=new Map,Object.keys(oe.fromObject).forEach(De=>{const Qe=oe.fromObject[De];this.map.set(De,Array.isArray(Qe)?Qe:[Qe])})):this.map=null}has(oe){return this.init(),this.map.has(oe)}get(oe){this.init();const De=this.map.get(oe);return De?De[0]:null}getAll(oe){return this.init(),this.map.get(oe)||null}keys(){return this.init(),Array.from(this.map.keys())}append(oe,De){return this.clone({param:oe,value:De,op:"a"})}appendAll(oe){const De=[];return Object.keys(oe).forEach(Qe=>{const nt=oe[Qe];Array.isArray(nt)?nt.forEach(ht=>{De.push({param:Qe,value:ht,op:"a"})}):De.push({param:Qe,value:nt,op:"a"})}),this.clone(De)}set(oe,De){return this.clone({param:oe,value:De,op:"s"})}delete(oe,De){return this.clone({param:oe,value:De,op:"d"})}toString(){return this.init(),this.keys().map(oe=>{const De=this.encoder.encodeKey(oe);return this.map.get(oe).map(Qe=>De+"="+this.encoder.encodeValue(Qe)).join("&")}).filter(oe=>""!==oe).join("&")}clone(oe){const De=new Q({encoder:this.encoder});return De.cloneFrom=this.cloneFrom||this,De.updates=(this.updates||[]).concat(oe),De}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(oe=>this.map.set(oe,this.cloneFrom.map.get(oe))),this.updates.forEach(oe=>{switch(oe.op){case"a":case"s":const De=("a"===oe.op?this.map.get(oe.param):void 0)||[];De.push(fe(oe.value)),this.map.set(oe.param,De);break;case"d":if(void 0===oe.value){this.map.delete(oe.param);break}{let Qe=this.map.get(oe.param)||[];const nt=Qe.indexOf(fe(oe.value));-1!==nt&&Qe.splice(nt,1),Qe.length>0?this.map.set(oe.param,Qe):this.map.delete(oe.param)}}}),this.cloneFrom=this.updates=null)}}class he{constructor(oe){this.defaultValue=oe}}class Re{constructor(){this.map=new Map}set(oe,De){return this.map.set(oe,De),this}get(oe){return this.map.has(oe)||this.map.set(oe,oe.defaultValue()),this.map.get(oe)}delete(oe){return this.map.delete(oe),this}has(oe){return this.map.has(oe)}keys(){return this.map.keys()}}function be(Te){return"undefined"!=typeof ArrayBuffer&&Te instanceof ArrayBuffer}function q(Te){return"undefined"!=typeof Blob&&Te instanceof Blob}function Ce(Te){return"undefined"!=typeof FormData&&Te instanceof FormData}class Ye{constructor(oe,De,Qe,nt){let ht;if(this.url=De,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=oe.toUpperCase(),function _e(Te){switch(Te){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||nt?(this.body=void 0!==Qe?Qe:null,ht=nt):ht=Qe,ht&&(this.reportProgress=!!ht.reportProgress,this.withCredentials=!!ht.withCredentials,ht.responseType&&(this.responseType=ht.responseType),ht.headers&&(this.headers=ht.headers),ht.context&&(this.context=ht.context),ht.params&&(this.params=ht.params)),this.headers||(this.headers=new h),this.context||(this.context=new Re),this.params){const pt=this.params.toString();if(0===pt.length)this.urlWithParams=De;else{const Ct=De.indexOf("?");this.urlWithParams=De+(-1===Ct?"?":Ct<De.length-1?"&":"")+pt}}else this.params=new Q,this.urlWithParams=De}serializeBody(){return null===this.body?null:be(this.body)||q(this.body)||Ce(this.body)||function Fe(Te){return"undefined"!=typeof URLSearchParams&&Te instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Q?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||Ce(this.body)?null:q(this.body)?this.body.type||null:be(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Q?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(oe={}){var De;const Qe=oe.method||this.method,nt=oe.url||this.url,ht=oe.responseType||this.responseType,pt=void 0!==oe.body?oe.body:this.body,Ct=void 0!==oe.withCredentials?oe.withCredentials:this.withCredentials,kt=void 0!==oe.reportProgress?oe.reportProgress:this.reportProgress;let Kt=oe.headers||this.headers,xt=oe.params||this.params;const pn=null!==(De=oe.context)&&void 0!==De?De:this.context;return void 0!==oe.setHeaders&&(Kt=Object.keys(oe.setHeaders).reduce((Jt,Nt)=>Jt.set(Nt,oe.setHeaders[Nt]),Kt)),oe.setParams&&(xt=Object.keys(oe.setParams).reduce((Jt,Nt)=>Jt.set(Nt,oe.setParams[Nt]),xt)),new Ye(Qe,nt,pt,{params:xt,headers:Kt,context:pn,reportProgress:kt,responseType:ht,withCredentials:Ct})}}var st=(()=>((st=st||{})[st.Sent=0]="Sent",st[st.UploadProgress=1]="UploadProgress",st[st.ResponseHeader=2]="ResponseHeader",st[st.DownloadProgress=3]="DownloadProgress",st[st.Response=4]="Response",st[st.User=5]="User",st))();class $e{constructor(oe,De=200,Qe="OK"){this.headers=oe.headers||new h,this.status=void 0!==oe.status?oe.status:De,this.statusText=oe.statusText||Qe,this.url=oe.url||null,this.ok=this.status>=200&&this.status<300}}class de extends $e{constructor(oe={}){super(oe),this.type=st.ResponseHeader}clone(oe={}){return new de({headers:oe.headers||this.headers,status:void 0!==oe.status?oe.status:this.status,statusText:oe.statusText||this.statusText,url:oe.url||this.url||void 0})}}class Pe extends $e{constructor(oe={}){super(oe),this.type=st.Response,this.body=void 0!==oe.body?oe.body:null}clone(oe={}){return new Pe({body:void 0!==oe.body?oe.body:this.body,headers:oe.headers||this.headers,status:void 0!==oe.status?oe.status:this.status,statusText:oe.statusText||this.statusText,url:oe.url||this.url||void 0})}}class z extends $e{constructor(oe){super(oe,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${oe.url||"(unknown url)"}`:`Http failure response for ${oe.url||"(unknown url)"}: ${oe.status} ${oe.statusText}`,this.error=oe.error||null}}function ge(Te,oe){return{body:oe,headers:Te.headers,context:Te.context,observe:Te.observe,params:Te.params,reportProgress:Te.reportProgress,responseType:Te.responseType,withCredentials:Te.withCredentials}}let ie=(()=>{class Te{constructor(De){this.handler=De}request(De,Qe,nt={}){let ht;if(De instanceof Ye)ht=De;else{let kt,Kt;kt=nt.headers instanceof h?nt.headers:new h(nt.headers),nt.params&&(Kt=nt.params instanceof Q?nt.params:new Q({fromObject:nt.params})),ht=new Ye(De,Qe,void 0!==nt.body?nt.body:null,{headers:kt,context:nt.context,params:Kt,reportProgress:nt.reportProgress,responseType:nt.responseType||"json",withCredentials:nt.withCredentials})}const pt=(0,m.of)(ht).pipe((0,s.b)(kt=>this.handler.handle(kt)));if(De instanceof Ye||"events"===nt.observe)return pt;const Ct=pt.pipe((0,_.h)(kt=>kt instanceof Pe));switch(nt.observe||"body"){case"body":switch(ht.responseType){case"arraybuffer":return Ct.pipe((0,D.U)(kt=>{if(null!==kt.body&&!(kt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return kt.body}));case"blob":return Ct.pipe((0,D.U)(kt=>{if(null!==kt.body&&!(kt.body instanceof Blob))throw new Error("Response is not a Blob.");return kt.body}));case"text":return Ct.pipe((0,D.U)(kt=>{if(null!==kt.body&&"string"!=typeof kt.body)throw new Error("Response is not a string.");return kt.body}));default:return Ct.pipe((0,D.U)(kt=>kt.body))}case"response":return Ct;default:throw new Error(`Unreachable: unhandled observe type ${nt.observe}}`)}}delete(De,Qe={}){return this.request("DELETE",De,Qe)}get(De,Qe={}){return this.request("GET",De,Qe)}head(De,Qe={}){return this.request("HEAD",De,Qe)}jsonp(De,Qe){return this.request("JSONP",De,{params:(new Q).append(Qe,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(De,Qe={}){return this.request("OPTIONS",De,Qe)}patch(De,Qe,nt={}){return this.request("PATCH",De,ge(nt,Qe))}post(De,Qe,nt={}){return this.request("POST",De,ge(nt,Qe))}put(De,Qe,nt={}){return this.request("PUT",De,ge(nt,Qe))}}return Te.\u0275fac=function(De){return new(De||Te)(u.\u0275\u0275inject(C))},Te.\u0275prov=u.\u0275\u0275defineInjectable({token:Te,factory:Te.\u0275fac}),Te})();class xe{constructor(oe,De){this.next=oe,this.interceptor=De}handle(oe){return this.interceptor.intercept(oe,this.next)}}const me=new u.InjectionToken("HTTP_INTERCEPTORS");let Je=(()=>{class Te{intercept(De,Qe){return Qe.handle(De)}}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275prov=u.\u0275\u0275defineInjectable({token:Te,factory:Te.\u0275fac}),Te})(),ve=0;class Be{}let et=(()=>{class Te{constructor(De,Qe){this.callbackMap=De,this.document=Qe,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+ve++}handle(De){if("JSONP"!==De.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==De.responseType)throw new Error("JSONP requests must use Json response type.");return new c.y(Qe=>{const nt=this.nextCallback(),ht=De.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${nt}$1`),pt=this.document.createElement("script");pt.src=ht;let Ct=null,kt=!1,Kt=!1;this.callbackMap[nt]=Nt=>{delete this.callbackMap[nt],!Kt&&(Ct=Nt,kt=!0)};const xt=()=>{pt.parentNode&&pt.parentNode.removeChild(pt),delete this.callbackMap[nt]},pn=Nt=>{Kt||this.resolvedPromise.then(()=>{xt(),kt?(Qe.next(new Pe({body:Ct,status:200,statusText:"OK",url:ht})),Qe.complete()):Qe.error(new z({url:ht,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})},Jt=Nt=>{Kt||(xt(),Qe.error(new z({error:Nt,status:0,statusText:"JSONP Error",url:ht})))};return pt.addEventListener("load",pn),pt.addEventListener("error",Jt),this.document.body.appendChild(pt),Qe.next({type:st.Sent}),()=>{Kt=!0,pt.removeEventListener("load",pn),pt.removeEventListener("error",Jt),xt()}})}}return Te.\u0275fac=function(De){return new(De||Te)(u.\u0275\u0275inject(Be),u.\u0275\u0275inject(i.DOCUMENT))},Te.\u0275prov=u.\u0275\u0275defineInjectable({token:Te,factory:Te.\u0275fac}),Te})(),ne=(()=>{class Te{constructor(De){this.jsonp=De}intercept(De,Qe){return"JSONP"===De.method?this.jsonp.handle(De):Qe.handle(De)}}return Te.\u0275fac=function(De){return new(De||Te)(u.\u0275\u0275inject(et))},Te.\u0275prov=u.\u0275\u0275defineInjectable({token:Te,factory:Te.\u0275fac}),Te})();const pe=/^\)\]\}',?\n/;let ke=(()=>{class Te{constructor(De){this.xhrFactory=De}handle(De){if("JSONP"===De.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new c.y(Qe=>{const nt=this.xhrFactory.build();if(nt.open(De.method,De.urlWithParams),De.withCredentials&&(nt.withCredentials=!0),De.headers.forEach((Nt,Et)=>nt.setRequestHeader(Nt,Et.join(","))),De.headers.has("Accept")||nt.setRequestHeader("Accept","application/json, text/plain, */*"),!De.headers.has("Content-Type")){const Nt=De.detectContentTypeHeader();null!==Nt&&nt.setRequestHeader("Content-Type",Nt)}if(De.responseType){const Nt=De.responseType.toLowerCase();nt.responseType="json"!==Nt?Nt:"text"}const ht=De.serializeBody();let pt=null;const Ct=()=>{if(null!==pt)return pt;const Nt=nt.statusText||"OK",Et=new h(nt.getAllResponseHeaders()),ln=function we(Te){return"responseURL"in Te&&Te.responseURL?Te.responseURL:/^X-Request-URL:/m.test(Te.getAllResponseHeaders())?Te.getResponseHeader("X-Request-URL"):null}(nt)||De.url;return pt=new de({headers:Et,status:nt.status,statusText:Nt,url:ln}),pt},kt=()=>{let{headers:Nt,status:Et,statusText:ln,url:Ut}=Ct(),Xt=null;204!==Et&&(Xt=void 0===nt.response?nt.responseText:nt.response),0===Et&&(Et=Xt?200:0);let ce=Et>=200&&Et<300;if("json"===De.responseType&&"string"==typeof Xt){const J=Xt;Xt=Xt.replace(pe,"");try{Xt=""!==Xt?JSON.parse(Xt):null}catch(B){Xt=J,ce&&(ce=!1,Xt={error:B,text:Xt})}}ce?(Qe.next(new Pe({body:Xt,headers:Nt,status:Et,statusText:ln,url:Ut||void 0})),Qe.complete()):Qe.error(new z({error:Xt,headers:Nt,status:Et,statusText:ln,url:Ut||void 0}))},Kt=Nt=>{const{url:Et}=Ct(),ln=new z({error:Nt,status:nt.status||0,statusText:nt.statusText||"Unknown Error",url:Et||void 0});Qe.error(ln)};let xt=!1;const pn=Nt=>{xt||(Qe.next(Ct()),xt=!0);let Et={type:st.DownloadProgress,loaded:Nt.loaded};Nt.lengthComputable&&(Et.total=Nt.total),"text"===De.responseType&&!!nt.responseText&&(Et.partialText=nt.responseText),Qe.next(Et)},Jt=Nt=>{let Et={type:st.UploadProgress,loaded:Nt.loaded};Nt.lengthComputable&&(Et.total=Nt.total),Qe.next(Et)};return nt.addEventListener("load",kt),nt.addEventListener("error",Kt),nt.addEventListener("timeout",Kt),nt.addEventListener("abort",Kt),De.reportProgress&&(nt.addEventListener("progress",pn),null!==ht&&nt.upload&&nt.upload.addEventListener("progress",Jt)),nt.send(ht),Qe.next({type:st.Sent}),()=>{nt.removeEventListener("error",Kt),nt.removeEventListener("abort",Kt),nt.removeEventListener("load",kt),nt.removeEventListener("timeout",Kt),De.reportProgress&&(nt.removeEventListener("progress",pn),null!==ht&&nt.upload&&nt.upload.removeEventListener("progress",Jt)),nt.readyState!==nt.DONE&&nt.abort()}})}}return Te.\u0275fac=function(De){return new(De||Te)(u.\u0275\u0275inject(i.XhrFactory))},Te.\u0275prov=u.\u0275\u0275defineInjectable({token:Te,factory:Te.\u0275fac}),Te})();const Ee=new u.InjectionToken("XSRF_COOKIE_NAME"),Ze=new u.InjectionToken("XSRF_HEADER_NAME");class mt{}let gt=(()=>{class Te{constructor(De,Qe,nt){this.doc=De,this.platform=Qe,this.cookieName=nt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const De=this.doc.cookie||"";return De!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.\u0275parseCookieValue)(De,this.cookieName),this.lastCookieString=De),this.lastToken}}return Te.\u0275fac=function(De){return new(De||Te)(u.\u0275\u0275inject(i.DOCUMENT),u.\u0275\u0275inject(u.PLATFORM_ID),u.\u0275\u0275inject(Ee))},Te.\u0275prov=u.\u0275\u0275defineInjectable({token:Te,factory:Te.\u0275fac}),Te})(),St=(()=>{class Te{constructor(De,Qe){this.tokenService=De,this.headerName=Qe}intercept(De,Qe){const nt=De.url.toLowerCase();if("GET"===De.method||"HEAD"===De.method||nt.startsWith("http://")||nt.startsWith("https://"))return Qe.handle(De);const ht=this.tokenService.getToken();return null!==ht&&!De.headers.has(this.headerName)&&(De=De.clone({headers:De.headers.set(this.headerName,ht)})),Qe.handle(De)}}return Te.\u0275fac=function(De){return new(De||Te)(u.\u0275\u0275inject(mt),u.\u0275\u0275inject(Ze))},Te.\u0275prov=u.\u0275\u0275defineInjectable({token:Te,factory:Te.\u0275fac}),Te})(),dt=(()=>{class Te{constructor(De,Qe){this.backend=De,this.injector=Qe,this.chain=null}handle(De){if(null===this.chain){const Qe=this.injector.get(me,[]);this.chain=Qe.reduceRight((nt,ht)=>new xe(nt,ht),this.backend)}return this.chain.handle(De)}}return Te.\u0275fac=function(De){return new(De||Te)(u.\u0275\u0275inject(w),u.\u0275\u0275inject(u.Injector))},Te.\u0275prov=u.\u0275\u0275defineInjectable({token:Te,factory:Te.\u0275fac}),Te})();function V(){return"object"==typeof window?window:{}}let ae=(()=>{class Te{static disable(){return{ngModule:Te,providers:[{provide:St,useClass:Je}]}}static withOptions(De={}){return{ngModule:Te,providers:[De.cookieName?{provide:Ee,useValue:De.cookieName}:[],De.headerName?{provide:Ze,useValue:De.headerName}:[]]}}}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=u.\u0275\u0275defineNgModule({type:Te}),Te.\u0275inj=u.\u0275\u0275defineInjector({providers:[St,{provide:me,useExisting:St,multi:!0},{provide:mt,useClass:gt},{provide:Ee,useValue:"XSRF-TOKEN"},{provide:Ze,useValue:"X-XSRF-TOKEN"}]}),Te})(),Oe=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=u.\u0275\u0275defineNgModule({type:Te}),Te.\u0275inj=u.\u0275\u0275defineInjector({providers:[ie,{provide:C,useClass:dt},ke,{provide:w,useExisting:ke}],imports:[[ae.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Te})(),le=(()=>{class Te{}return Te.\u0275fac=function(De){return new(De||Te)},Te.\u0275mod=u.\u0275\u0275defineNgModule({type:Te}),Te.\u0275inj=u.\u0275\u0275defineInjector({providers:[et,{provide:Be,useFactory:V},{provide:me,useClass:ne,multi:!0}]}),Te})();const Ie=i.XhrFactory},5e3:(je,g,l)=>{"use strict";l.r(g),l.d(g,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>i_,APP_BOOTSTRAP_LISTENER:()=>_g,APP_ID:()=>fg,APP_INITIALIZER:()=>_u,ApplicationInitStatus:()=>Ko,ApplicationModule:()=>OD,ApplicationRef:()=>xs,Attribute:()=>id,COMPILER_OPTIONS:()=>Cg,CUSTOM_ELEMENTS_SCHEMA:()=>jd,ChangeDetectionStrategy:()=>De,ChangeDetectorRef:()=>Ng,Compiler:()=>vu,CompilerFactory:()=>K0,Component:()=>k0,ComponentFactory:()=>ba,ComponentFactoryResolver:()=>Ms,ComponentRef:()=>Xp,ContentChild:()=>o_,ContentChildren:()=>r_,DEFAULT_CURRENCY_CODE:()=>vg,DebugElement:()=>Rs,DebugEventListener:()=>dD,DebugNode:()=>Pu,DefaultIterableDiffer:()=>Hg,Directive:()=>hg,ElementRef:()=>ws,EmbeddedViewRef:()=>uD,ErrorHandler:()=>cs,EventEmitter:()=>Ir,Host:()=>ud,HostBinding:()=>j0,HostListener:()=>V0,INJECTOR:()=>oa,Inject:()=>is,InjectFlags:()=>V,Injectable:()=>sb,InjectionToken:()=>Kn,Injector:()=>Li,Input:()=>L0,IterableDiffers:()=>Fu,KeyValueDiffers:()=>ku,LOCALE_ID:()=>Aa,MissingTranslationStrategy:()=>Pr,ModuleWithComponentFactories:()=>bg,NO_ERRORS_SCHEMA:()=>Vd,NgModule:()=>$0,NgModuleFactory:()=>lm,NgModuleRef:()=>Uo,NgProbeToken:()=>eD,NgZone:()=>Bi,Optional:()=>Xr,Output:()=>B0,PACKAGE_ROOT_URL:()=>U0,PLATFORM_ID:()=>gg,PLATFORM_INITIALIZER:()=>mg,Pipe:()=>N0,PlatformRef:()=>Su,Query:()=>Xo,QueryList:()=>Ma,ReflectiveInjector:()=>Lo,ReflectiveKey:()=>Vr,Renderer2:()=>ZC,RendererFactory2:()=>em,RendererStyleFlags2:()=>Tr,ResolvedReflectiveFactory:()=>Af,Sanitizer:()=>tm,SecurityContext:()=>Xn,Self:()=>zs,SimpleChange:()=>Pi,SkipSelf:()=>qr,TRANSLATIONS:()=>W0,TRANSLATIONS_FORMAT:()=>z0,TemplateRef:()=>Ps,Testability:()=>Mg,TestabilityRegistry:()=>Eu,Type:()=>$s,VERSION:()=>im,Version:()=>nm,ViewChild:()=>a_,ViewChildren:()=>s_,ViewContainerRef:()=>Sa,ViewEncapsulation:()=>ht,ViewRef:()=>Bg,asNativeElements:()=>hD,assertPlatform:()=>Ag,createNgModuleRef:()=>r0,createPlatform:()=>Ig,createPlatformFactory:()=>Pg,defineInjectable:()=>ne,destroyPlatform:()=>tD,enableProdMode:()=>sD,forwardRef:()=>A,getDebugNode:()=>Go,getModuleFactory:()=>aD,getNgModuleById:()=>lD,getPlatform:()=>wu,inject:()=>C_,isDevMode:()=>oD,platformCore:()=>wD,resolveForwardRef:()=>T,setTestabilityGetter:()=>q0,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>Mu,\u0275APP_ID_RANDOM_PROVIDER:()=>pg,\u0275ChangeDetectorStatus:()=>Qe,\u0275ComponentFactory:()=>ba,\u0275Console:()=>yg,\u0275DEFAULT_LOCALE_ID:()=>bs,\u0275INJECTOR_SCOPE:()=>Ll,\u0275LifecycleHooksFeature:()=>gf,\u0275LocaleDataIndex:()=>Yt,\u0275NG_COMP_DEF:()=>ln,\u0275NG_DIR_DEF:()=>Ut,\u0275NG_ELEMENT_ID:()=>B,\u0275NG_INJ_DEF:()=>St,\u0275NG_MOD_DEF:()=>ce,\u0275NG_PIPE_DEF:()=>Xt,\u0275NG_PROV_DEF:()=>gt,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>Ca,\u0275NO_CHANGE:()=>rn,\u0275NgModuleFactory:()=>Ta,\u0275NoopNgZone:()=>Tg,\u0275ReflectionCapabilities:()=>ja,\u0275Render3ComponentFactory:()=>Ea,\u0275Render3ComponentRef:()=>sm,\u0275Render3NgModuleRef:()=>nu,\u0275RuntimeError:()=>U,\u0275ViewRef:()=>Ho,\u0275_sanitizeHtml:()=>Sd,\u0275_sanitizeUrl:()=>os,\u0275allowSanitizationBypassAndThrow:()=>vo,\u0275bypassSanitizationTrustHtml:()=>L_,\u0275bypassSanitizationTrustResourceUrl:()=>$_,\u0275bypassSanitizationTrustScript:()=>j_,\u0275bypassSanitizationTrustStyle:()=>B_,\u0275bypassSanitizationTrustUrl:()=>V_,\u0275clearResolutionOfComponentResourcesQueue:()=>md,\u0275compileComponent:()=>eg,\u0275compileDirective:()=>gu,\u0275compileNgModule:()=>Qm,\u0275compileNgModuleDefs:()=>Zm,\u0275compileNgModuleFactory:()=>wg,\u0275compilePipe:()=>ug,\u0275createInjector:()=>jl,\u0275defaultIterableDiffers:()=>TD,\u0275defaultKeyValueDiffers:()=>MD,\u0275detectChanges:()=>Yh,\u0275devModeEqual:()=>vf,\u0275findLocaleData:()=>Kc,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>Km,\u0275getDebugNode:()=>Go,\u0275getDebugNodeR2:()=>gD,\u0275getDirectives:()=>cf,\u0275getHostElement:()=>Hl,\u0275getInjectableDef:()=>we,\u0275getLContext:()=>ci,\u0275getLocaleCurrencyCode:()=>Zb,\u0275getLocalePluralCase:()=>Dp,\u0275getSanitizationBypassType:()=>vd,\u0275global:()=>xt,\u0275injectChangeDetectorRef:()=>Lg,\u0275isBoundToModule:()=>Sg,\u0275isDefaultChangeDetectionStrategy:()=>nt,\u0275isListLikeIterable:()=>ms,\u0275isObservable:()=>Lf,\u0275isPromise:()=>uc,\u0275isSubscribable:()=>Nf,\u0275ivyEnabled:()=>xD,\u0275makeDecorator:()=>po,\u0275markDirty:()=>Jh,\u0275noSideEffects:()=>oe,\u0275patchComponentDefWithScope:()=>fu,\u0275publishDefaultGlobalUtils:()=>Uv,\u0275publishGlobalUtil:()=>Gi,\u0275registerLocaleData:()=>Qb,\u0275registerNgModuleType:()=>um,\u0275renderComponent:()=>Wv,\u0275resetCompiledComponents:()=>M0,\u0275resetJitOptions:()=>E0,\u0275resolveComponentResources:()=>fd,\u0275setClassMetadata:()=>am,\u0275setCurrentInjector:()=>Ha,\u0275setDocument:()=>nr,\u0275setLocaleId:()=>Mp,\u0275store:()=>Cf,\u0275stringify:()=>C,\u0275transitiveScopesFor:()=>Os,\u0275unregisterLocaleData:()=>Yb,\u0275unwrapSafeValue:()=>Lr,\u0275whenRendered:()=>zv,\u0275\u0275CopyDefinitionFeature:()=>yf,\u0275\u0275FactoryTarget:()=>ti,\u0275\u0275InheritDefinitionFeature:()=>Wl,\u0275\u0275NgOnChangesFeature:()=>Ai,\u0275\u0275ProvidersFeature:()=>Jp,\u0275\u0275advance:()=>_h,\u0275\u0275attribute:()=>Gl,\u0275\u0275attributeInterpolate1:()=>Ql,\u0275\u0275attributeInterpolate2:()=>Zl,\u0275\u0275attributeInterpolate3:()=>Yl,\u0275\u0275attributeInterpolate4:()=>Jl,\u0275\u0275attributeInterpolate5:()=>Xl,\u0275\u0275attributeInterpolate6:()=>ql,\u0275\u0275attributeInterpolate7:()=>ec,\u0275\u0275attributeInterpolate8:()=>tc,\u0275\u0275attributeInterpolateV:()=>nc,\u0275\u0275classMap:()=>Yf,\u0275\u0275classMapInterpolate1:()=>rp,\u0275\u0275classMapInterpolate2:()=>op,\u0275\u0275classMapInterpolate3:()=>sp,\u0275\u0275classMapInterpolate4:()=>ap,\u0275\u0275classMapInterpolate5:()=>lp,\u0275\u0275classMapInterpolate6:()=>cp,\u0275\u0275classMapInterpolate7:()=>up,\u0275\u0275classMapInterpolate8:()=>dp,\u0275\u0275classMapInterpolateV:()=>hp,\u0275\u0275classProp:()=>Tc,\u0275\u0275contentQuery:()=>Vm,\u0275\u0275defineComponent:()=>re,\u0275\u0275defineDirective:()=>He,\u0275\u0275defineInjectable:()=>et,\u0275\u0275defineInjector:()=>pe,\u0275\u0275defineNgModule:()=>Bt,\u0275\u0275definePipe:()=>ue,\u0275\u0275directiveInject:()=>ys,\u0275\u0275disableBindings:()=>Gr,\u0275\u0275element:()=>lc,\u0275\u0275elementContainer:()=>cc,\u0275\u0275elementContainerEnd:()=>ha,\u0275\u0275elementContainerStart:()=>da,\u0275\u0275elementEnd:()=>ua,\u0275\u0275elementStart:()=>ca,\u0275\u0275enableBindings:()=>Kr,\u0275\u0275getCurrentView:()=>kf,\u0275\u0275getInheritedFactory:()=>nd,\u0275\u0275hostProperty:()=>Wc,\u0275\u0275i18n:()=>Kp,\u0275\u0275i18nApply:()=>Qp,\u0275\u0275i18nAttributes:()=>Gp,\u0275\u0275i18nEnd:()=>Yc,\u0275\u0275i18nExp:()=>Jc,\u0275\u0275i18nPostprocess:()=>Zp,\u0275\u0275i18nStart:()=>Zc,\u0275\u0275inject:()=>ai,\u0275\u0275injectAttribute:()=>Na,\u0275\u0275invalidFactory:()=>Ff,\u0275\u0275invalidFactoryDep:()=>Ua,\u0275\u0275listener:()=>dc,\u0275\u0275loadQuery:()=>$m,\u0275\u0275namespaceHTML:()=>Ht,\u0275\u0275namespaceMathML:()=>Zo,\u0275\u0275namespaceSVG:()=>Qo,\u0275\u0275nextContext:()=>Vf,\u0275\u0275ngDeclareClassMetadata:()=>FD,\u0275\u0275ngDeclareComponent:()=>kD,\u0275\u0275ngDeclareDirective:()=>RD,\u0275\u0275ngDeclareFactory:()=>ND,\u0275\u0275ngDeclareInjectable:()=>BD,\u0275\u0275ngDeclareInjector:()=>jD,\u0275\u0275ngDeclareNgModule:()=>VD,\u0275\u0275ngDeclarePipe:()=>$D,\u0275\u0275pipe:()=>Sm,\u0275\u0275pipeBind1:()=>Im,\u0275\u0275pipeBind2:()=>Pm,\u0275\u0275pipeBind3:()=>Am,\u0275\u0275pipeBind4:()=>Om,\u0275\u0275pipeBindV:()=>xm,\u0275\u0275projection:()=>Hf,\u0275\u0275projectionDef:()=>$f,\u0275\u0275property:()=>sc,\u0275\u0275propertyInterpolate:()=>pc,\u0275\u0275propertyInterpolate1:()=>fa,\u0275\u0275propertyInterpolate2:()=>mc,\u0275\u0275propertyInterpolate3:()=>gc,\u0275\u0275propertyInterpolate4:()=>_c,\u0275\u0275propertyInterpolate5:()=>yc,\u0275\u0275propertyInterpolate6:()=>vc,\u0275\u0275propertyInterpolate7:()=>bc,\u0275\u0275propertyInterpolate8:()=>Cc,\u0275\u0275propertyInterpolateV:()=>Dc,\u0275\u0275pureFunction0:()=>hm,\u0275\u0275pureFunction1:()=>fm,\u0275\u0275pureFunction2:()=>pm,\u0275\u0275pureFunction3:()=>mm,\u0275\u0275pureFunction4:()=>gm,\u0275\u0275pureFunction5:()=>_m,\u0275\u0275pureFunction6:()=>ym,\u0275\u0275pureFunction7:()=>vm,\u0275\u0275pureFunction8:()=>bm,\u0275\u0275pureFunctionV:()=>Cm,\u0275\u0275queryRefresh:()=>Bm,\u0275\u0275reference:()=>Df,\u0275\u0275resolveBody:()=>zd,\u0275\u0275resolveDocument:()=>Wd,\u0275\u0275resolveWindow:()=>Ud,\u0275\u0275restoreView:()=>so,\u0275\u0275sanitizeHtml:()=>Id,\u0275\u0275sanitizeResourceUrl:()=>qa,\u0275\u0275sanitizeScript:()=>Ad,\u0275\u0275sanitizeStyle:()=>Pd,\u0275\u0275sanitizeUrl:()=>Xa,\u0275\u0275sanitizeUrlOrResourceUrl:()=>Rd,\u0275\u0275setComponentScope:()=>b,\u0275\u0275setNgModuleScope:()=>jt,\u0275\u0275styleMap:()=>lr,\u0275\u0275styleMapInterpolate1:()=>fp,\u0275\u0275styleMapInterpolate2:()=>pp,\u0275\u0275styleMapInterpolate3:()=>mp,\u0275\u0275styleMapInterpolate4:()=>gp,\u0275\u0275styleMapInterpolate5:()=>_p,\u0275\u0275styleMapInterpolate6:()=>yp,\u0275\u0275styleMapInterpolate7:()=>vp,\u0275\u0275styleMapInterpolate8:()=>bp,\u0275\u0275styleMapInterpolateV:()=>Cp,\u0275\u0275styleProp:()=>Ec,\u0275\u0275stylePropInterpolate1:()=>kc,\u0275\u0275stylePropInterpolate2:()=>Nc,\u0275\u0275stylePropInterpolate3:()=>Lc,\u0275\u0275stylePropInterpolate4:()=>Bc,\u0275\u0275stylePropInterpolate5:()=>jc,\u0275\u0275stylePropInterpolate6:()=>Vc,\u0275\u0275stylePropInterpolate7:()=>$c,\u0275\u0275stylePropInterpolate8:()=>Hc,\u0275\u0275stylePropInterpolateV:()=>Uc,\u0275\u0275syntheticHostListener:()=>hc,\u0275\u0275syntheticHostProperty:()=>zc,\u0275\u0275template:()=>bf,\u0275\u0275templateRefExtractor:()=>zm,\u0275\u0275text:()=>ip,\u0275\u0275textInterpolate:()=>wc,\u0275\u0275textInterpolate1:()=>ma,\u0275\u0275textInterpolate2:()=>Sc,\u0275\u0275textInterpolate3:()=>Ic,\u0275\u0275textInterpolate4:()=>Pc,\u0275\u0275textInterpolate5:()=>Ac,\u0275\u0275textInterpolate6:()=>Oc,\u0275\u0275textInterpolate7:()=>xc,\u0275\u0275textInterpolate8:()=>Rc,\u0275\u0275textInterpolateV:()=>Fc,\u0275\u0275trustConstantHtml:()=>Od,\u0275\u0275trustConstantResourceUrl:()=>xd,\u0275\u0275viewQuery:()=>jm});var i=l(6758),u=l(6921),m=l(9751),c=l(6451),s=l(3099);function _(e){for(let t in e)if(e[t]===_)return t;throw Error("Could not find renamed property on target object.")}function D(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function C(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(C).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 w(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const h=_({__forward_ref__:_});function A(e){return e.__forward_ref__=A,e.toString=function(){return C(this())},e}function T(e){return v(e)?e():e}function v(e){return"function"==typeof e&&e.hasOwnProperty(h)&&e.__forward_ref__===A}class U extends Error{constructor(t,n){super(function fe(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function Q(e){return"string"==typeof e?e:null==e?"":String(e)}function he(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Q(e)}function q(e,t){const n=t?` in ${t}`:"";throw new U(-201,`No provider for ${he(e)} found${n}`)}function ze(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function et(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const ne=et;function pe(e){return{providers:e.providers||[],imports:e.imports||[]}}function we(e){return ke(e,gt)||ke(e,dt)}function ke(e,t){return e.hasOwnProperty(t)?e[t]:null}function mt(e){return e&&(e.hasOwnProperty(St)||e.hasOwnProperty(Ge))?e[St]:null}const gt=_({\u0275prov:_}),St=_({\u0275inj:_}),dt=_({ngInjectableDef:_}),Ge=_({ngInjectorDef:_});var V=(()=>((V=V||{})[V.Default=0]="Default",V[V.Host=1]="Host",V[V.Self=2]="Self",V[V.SkipSelf=4]="SkipSelf",V[V.Optional=8]="Optional",V))();let ae;function le(e){const t=ae;return ae=e,t}function Ie(e,t,n){const r=we(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&V.Optional?null:void 0!==t?t:void q(C(e),"Injector")}function oe(e){return{toString:e}.toString()}var De=(()=>((De=De||{})[De.OnPush=0]="OnPush",De[De.Default=1]="Default",De))(),Qe=(()=>((Qe=Qe||{})[Qe.CheckOnce=0]="CheckOnce",Qe[Qe.Checked=1]="Checked",Qe[Qe.CheckAlways=2]="CheckAlways",Qe[Qe.Detached=3]="Detached",Qe[Qe.Errored=4]="Errored",Qe[Qe.Destroyed=5]="Destroyed",Qe))();function nt(e){return null==e||e===De.Default}var ht=(()=>{return(e=ht||(ht={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",ht;var e})();const pt="undefined"!=typeof globalThis&&globalThis,Ct="undefined"!=typeof window&&window,kt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,xt=pt||"undefined"!=typeof global&&global||Ct||kt,Nt={},Et=[],ln=_({\u0275cmp:_}),Ut=_({\u0275dir:_}),Xt=_({\u0275pipe:_}),ce=_({\u0275mod:_}),J=_({\u0275fac:_}),B=_({__NG_ELEMENT_ID__:_});let P=0;function re(e){return oe(()=>{const n={},r={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===De.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Et,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||ht.Emulated,id:"c",styles:e.styles||Et,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,a=e.features,d=e.pipes;return r.id+=P++,r.inputs=Le(e.inputs,n),r.outputs=Le(e.outputs),a&&a.forEach(y=>y(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map($):null,r.pipeDefs=d?()=>("function"==typeof d?d():d).map(Ne):null,r})}function b(e,t,n){const r=e.\u0275cmp;r.directiveDefs=()=>t.map($),r.pipeDefs=()=>n.map(Ne)}function $(e){return Ve(e)||lt(e)}function Ne(e){return Rt(e)}const it={};function Bt(e){return oe(()=>{const t={type:e.type,bootstrap:e.bootstrap||Et,declarations:e.declarations||Et,imports:e.imports||Et,exports:e.exports||Et,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(it[e.id]=e.type),t})}function jt(e,t){return oe(()=>{const n=Pt(e,!0);n.declarations=t.declarations||Et,n.imports=t.imports||Et,n.exports=t.exports||Et})}function Le(e,t){if(null==e)return Nt;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],a=o;Array.isArray(o)&&(a=o[1],o=o[0]),n[o]=r,t&&(t[o]=a)}return n}const He=re;function ue(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ve(e){return e[ln]||null}function lt(e){return e[Ut]||null}function Rt(e){return e[Xt]||null}function Pt(e,t){const n=e[ce]||null;if(!n&&!0===t)throw new Error(`Type ${C(e)} does not have '\u0275mod' property.`);return n}function Vn(e){return Array.isArray(e)&&"object"==typeof e[1]}function $n(e){return Array.isArray(e)&&!0===e[1]}function pi(e){return 0!=(8&e.flags)}function bi(e){return 2==(2&e.flags)}function ei(e){return 1==(1&e.flags)}function Hn(e){return null!==e.template}function Vi(e){return 0!=(512&e[2])}function ri(e,t){return e.hasOwnProperty(J)?e[J]:null}class Pi{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Ai(){return qi}function qi(e){return e.type.prototype.ngOnChanges&&(e.setInput=_r),Oi}function Oi(){const e=Un(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===Nt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function _r(e,t,n,r){const o=Un(e)||function xi(e,t){return e[Ui]=t}(e,{previous:Nt,current:null}),a=o.current||(o.current={}),d=o.previous,y=this.declaredInputs[n],M=d[y];a[y]=new Pi(M&&M.currentValue,t,d===Nt),e[r]=t}Ai.ngInherit=!0;const Ui="__ngSimpleChanges__";function Un(e){return e[Ui]||null}let Wn=null;const Wi=e=>{Wn=e},zn=function(e,t,n){null!=Wn&&Wn(e,t,n)},tr="math";let Ri;function nr(e){Ri=e}function Ci(){return void 0!==Ri?Ri:"undefined"!=typeof document?document:void 0}function sn(e){return!!e.listen}const k={createRenderer:(e,t)=>Ci()};function F(e){for(;Array.isArray(e);)e=e[0];return e}function ut(e,t){return F(t[e])}function _t(e,t){return F(t[e.index])}function yn(e,t){return e.data[t]}function dn(e,t){return e[t]}function on(e,t){const n=t[e];return Vn(n)?n:n[0]}function an(e){return 4==(4&e[2])}function Pn(e){return 128==(128&e[2])}function x(e,t){return null==t?null:e[t]}function I(e){e[18]=0}function X(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const Xe={lFrame:hn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function ir(){return Xe.bindingsEnabled}function Kr(){Xe.bindingsEnabled=!0}function Gr(){Xe.bindingsEnabled=!1}function bt(){return Xe.lFrame.lView}function gn(){return Xe.lFrame.tView}function so(e){return Xe.lFrame.contextLView=e,e[8]}function Rn(){let e=Qr();for(;null!==e&&64===e.type;)e=e.parent;return e}function Qr(){return Xe.lFrame.currentTNode}function yr(){const e=Xe.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function _i(e,t){const n=Xe.lFrame;n.currentTNode=e,n.isParent=t}function Zr(){return Xe.lFrame.isParent}function Yr(){Xe.lFrame.isParent=!1}function p(){return Xe.isInCheckNoChangesMode}function O(e){Xe.isInCheckNoChangesMode=e}function Z(){const e=Xe.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function E(){return Xe.lFrame.bindingIndex}function S(e){return Xe.lFrame.bindingIndex=e}function R(){return Xe.lFrame.bindingIndex++}function j(e){const t=Xe.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function ye(e){Xe.lFrame.inI18n=e}function We(e,t){const n=Xe.lFrame;n.bindingIndex=n.bindingRootIndex=e,ot(t)}function ot(e){Xe.lFrame.currentDirectiveIndex=e}function yt(e){const t=Xe.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Mt(){return Xe.lFrame.currentQueryIndex}function Vt(e){Xe.lFrame.currentQueryIndex=e}function qt(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function un(e,t,n){if(n&V.SkipSelf){let o=t,a=e;for(;!(o=o.parent,null!==o||n&V.Host||(o=qt(a),null===o||(a=a[15],10&o.type))););if(null===o)return!1;t=o,e=a}const r=Xe.lFrame=Gt();return r.currentTNode=t,r.lView=e,!0}function Wt(e){const t=Gt(),n=e[1];Xe.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Gt(){const e=Xe.lFrame,t=null===e?null:e.child;return null===t?hn(e):t}function hn(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 An(){const e=Xe.lFrame;return Xe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Fn=An;function Ei(){const e=An();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 oi(){return Xe.lFrame.selectedIndex}function Ti(e){Xe.lFrame.selectedIndex=e}function Mn(){const e=Xe.lFrame;return yn(e.tView,e.selectedIndex)}function Qo(){Xe.lFrame.currentNamespace="svg"}function Zo(){Xe.lFrame.currentNamespace=tr}function Ht(){!function Qt(){Xe.lFrame.currentNamespace=null}()}function Bn(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const a=e.data[n].type.prototype,{ngAfterContentInit:d,ngAfterContentChecked:y,ngAfterViewInit:M,ngAfterViewChecked:H,ngOnDestroy:Y}=a;d&&(e.contentHooks||(e.contentHooks=[])).push(-n,d),y&&((e.contentHooks||(e.contentHooks=[])).push(n,y),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,y)),M&&(e.viewHooks||(e.viewHooks=[])).push(-n,M),H&&((e.viewHooks||(e.viewHooks=[])).push(n,H),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,H)),null!=Y&&(e.destroyHooks||(e.destroyHooks=[])).push(n,Y)}}function yi(e,t,n){On(e,t,3,n)}function si(e,t,n,r){(3&e[2])===n&&On(e,t,n,r)}function zi(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function On(e,t,n,r){const a=null!=r?r:-1,d=t.length-1;let y=0;for(let M=void 0!==r?65535&e[18]:0;M<d;M++)if("number"==typeof t[M+1]){if(y=t[M],null!=r&&y>=r)break}else t[M]<0&&(e[18]+=65536),(y<a||-1==a)&&(Fs(e,n,t,M),e[18]=(4294901760&e[18])+M+2),M++}function Fs(e,t,n,r){const o=n[r]<0,a=n[r+1],y=e[o?-n[r]:n[r]];if(o){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048,zn(4,y,a);try{a.call(y)}finally{zn(5,y,a)}}}else{zn(4,y,a);try{a.call(y)}finally{zn(5,y,a)}}}class Jn{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function ks(e,t,n){const r=sn(e);let o=0;for(;o<n.length;){const a=n[o];if("number"==typeof a){if(0!==a)break;o++;const d=n[o++],y=n[o++],M=n[o++];r?e.setAttribute(t,y,M,d):t.setAttributeNS(d,y,M)}else{const d=a,y=n[++o];Oa(d)?r&&e.setProperty(t,d,y):r?e.setAttribute(t,d,y):t.setAttribute(d,y),o++}}return o}function zu(e){return 3===e||4===e||6===e}function Oa(e){return 64===e.charCodeAt(0)}function Ns(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const o=t[r];"number"==typeof o?n=o:0===n||Ku(e,n,o,null,-1===n||2===n?t[++r]:null)}}return e}function Ku(e,t,n,r,o){let a=0,d=e.length;if(-1===t)d=-1;else for(;a<e.length;){const y=e[a++];if("number"==typeof y){if(y===t){d=-1;break}if(y>t){d=a-1;break}}}for(;a<e.length;){const y=e[a];if("number"==typeof y)break;if(y===n){if(null===r)return void(null!==o&&(e[a+1]=o));if(r===e[a+1])return void(e[a+2]=o)}a++,null!==r&&a++,null!==o&&a++}-1!==d&&(e.splice(d,0,t),a=d+1),e.splice(a++,0,n),null!==r&&e.splice(a++,0,r),null!==o&&e.splice(a++,0,o)}function Gu(e){return-1!==e}function ao(e){return 32767&e}function lo(e,t){let n=function Yg(e){return e>>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let xa=!0;function Ls(e){const t=xa;return xa=e,t}let Jg=0;function Yo(e,t){const n=Fa(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Ra(r.data,e),Ra(t,null),Ra(r.blueprint,null));const o=Bs(e,t),a=e.injectorIndex;if(Gu(o)){const d=ao(o),y=lo(o,t),M=y[1].data;for(let H=0;H<8;H++)t[a+H]=y[d+H]|M[d+H]}return t[a+8]=o,a}function Ra(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Fa(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Bs(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){const a=o[1],d=a.type;if(r=2===d?a.declTNode:1===d?o[6]:null,null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function js(e,t,n){!function Xg(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(B)&&(r=n[B]),null==r&&(r=n[B]=Jg++);const o=255&r;t.data[e+(o>>5)]|=1<<o}(e,t,n)}function Yu(e,t,n){if(n&V.Optional)return e;q(t,"NodeInjector")}function Ju(e,t,n,r){if(n&V.Optional&&void 0===r&&(r=null),0==(n&(V.Self|V.Host))){const o=e[9],a=le(void 0);try{return o?o.get(t,r,n&V.Optional):Ie(t,r,n&V.Optional)}finally{le(a)}}return Yu(r,t,n)}function Xu(e,t,n,r=V.Default,o){if(null!==e){const a=function n_(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(B)?e[B]:void 0;return"number"==typeof t?t>=0?255&t:e_:t}(n);if("function"==typeof a){if(!un(t,e,r))return r&V.Host?Yu(o,n,r):Ju(t,n,r,o);try{const d=a(r);if(null!=d||r&V.Optional)return d;q(n)}finally{Fn()}}else if("number"==typeof a){let d=null,y=Fa(e,t),M=-1,H=r&V.Host?t[16][6]:null;for((-1===y||r&V.SkipSelf)&&(M=-1===y?Bs(e,t):t[y+8],-1!==M&&td(r,!1)?(d=t[1],y=ao(M),t=lo(M,t)):y=-1);-1!==y;){const Y=t[1];if(ed(a,y,Y.data)){const Me=t_(y,t,n,d,r,H);if(Me!==qu)return Me}M=t[y+8],-1!==M&&td(r,t[1].data[y+8]===H)&&ed(a,y,t)?(d=Y,y=ao(M),t=lo(M,t)):y=-1}}}return Ju(t,n,r,o)}const qu={};function e_(){return new co(Rn(),bt())}function t_(e,t,n,r,o,a){const d=t[1],y=d.data[e+8],Y=Vs(y,d,n,null==r?bi(y)&&xa:r!=d&&0!=(3&y.type),o&V.Host&&a===y);return null!==Y?Jo(t,d,Y,y):qu}function Vs(e,t,n,r,o){const a=e.providerIndexes,d=t.data,y=1048575&a,M=e.directiveStart,Y=a>>20,Ue=o?y+Y:e.directiveEnd;for(let tt=r?y:y+Y;tt<Ue;tt++){const ft=d[tt];if(tt<M&&n===ft||tt>=M&&ft.type===n)return tt}if(o){const tt=d[M];if(tt&&Hn(tt)&&tt.type===n)return M}return null}function Jo(e,t,n,r){let o=e[n];const a=t.data;if(function Nr(e){return e instanceof Jn}(o)){const d=o;d.resolving&&function Re(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new U(-200,`Circular dependency in DI detected for ${e}${n}`)}(he(a[n]));const y=Ls(d.canSeeViewProviders);d.resolving=!0;const M=d.injectImpl?le(d.injectImpl):null;un(e,r,V.Default);try{o=e[n]=d.factory(void 0,a,e,r),t.firstCreatePass&&n>=r.directiveStart&&function vn(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:a}=t.type.prototype;if(r){const d=qi(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,d),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,d)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,a[n],t)}finally{null!==M&&le(M),Ls(y),d.resolving=!1,Fn()}}return o}function ed(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function td(e,t){return!(e&V.Self||e&V.Host&&t)}class co{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Xu(this._tNode,this._lView,t,r,n)}}function nd(e){return oe(()=>{const t=e.prototype.constructor,n=t[J]||ka(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const a=o[J]||ka(o);if(a&&a!==n)return a;o=Object.getPrototypeOf(o)}return a=>new a})}function ka(e){return v(e)?()=>{const t=ka(T(e));return t&&t()}:ri(e)}function Na(e){return function qg(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let o=0;for(;o<r;){const a=n[o];if(zu(a))break;if(0===a)o+=2;else if("number"==typeof a)for(o++;o<r&&"string"==typeof n[o];)o++;else{if(a===t)return n[o+1];o+=2}}}return null}(Rn(),e)}const uo="__annotations__",ho="__parameters__",fo="__prop__metadata__";function po(e,t,n,r,o){return oe(()=>{const a=La(t);function d(...y){if(this instanceof d)return a.call(this,...y),this;const M=new d(...y);return function(Y){return o&&o(Y,...y),(Y.hasOwnProperty(uo)?Y[uo]:Object.defineProperty(Y,uo,{value:[]})[uo]).push(M),r&&r(Y),Y}}return n&&(d.prototype=Object.create(n.prototype)),d.prototype.ngMetadataName=e,d.annotationCls=d,d})}function La(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}function mo(e,t,n){return oe(()=>{const r=La(t);function o(...a){if(this instanceof o)return r.apply(this,a),this;const d=new o(...a);return y.annotation=d,y;function y(M,H,Y){const Me=M.hasOwnProperty(ho)?M[ho]:Object.defineProperty(M,ho,{value:[]})[ho];for(;Me.length<=Y;)Me.push(null);return(Me[Y]=Me[Y]||[]).push(d),M}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function Hr(e,t,n,r){return oe(()=>{const o=La(t);function a(...d){if(this instanceof a)return o.apply(this,d),this;const y=new a(...d);return function M(H,Y){const Me=H.constructor,Ue=Me.hasOwnProperty(fo)?Me[fo]:Object.defineProperty(Me,fo,{value:{}})[fo];Ue[Y]=Ue.hasOwnProperty(Y)&&Ue[Y]||[],Ue[Y].unshift(y),r&&r(H,Y,...d)}}return n&&(a.prototype=Object.create(n.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}const id=mo("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>Na(e)}));class Kn{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=et({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const i_=new Kn("AnalyzeForEntryComponents");class Xo{}const r_=Hr("ContentChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0},t),Xo),o_=Hr("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),Xo),s_=Hr("ViewChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0},t),Xo),a_=Hr("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),Xo);var ti=(()=>((ti=ti||{})[ti.Directive=0]="Directive",ti[ti.Component=1]="Component",ti[ti.Injectable=2]="Injectable",ti[ti.Pipe=3]="Pipe",ti[ti.NgModule=4]="NgModule",ti))();function ni(e){const t=xt.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const $s=Function;function qo(e){return"function"==typeof e}function Ki(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?(t===e&&(t=e.slice(0,n)),Ki(r,t)):t!==e&&t.push(r)}return t}function Cr(e,t){e.forEach(n=>Array.isArray(n)?Cr(n,t):t(n))}function od(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Hs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function es(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}function ki(e,t,n){let r=go(e,t);return r>=0?e[1|r]=n:(r=~r,function u_(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,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]=r}}(e,r,t,n)),r}function Ba(e,t){const n=go(e,t);if(n>=0)return e[1|n]}function go(e,t){return function ld(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const a=r+(o-r>>1),d=e[a<<n];if(t===d)return a<<n;d>t?o=a:r=a+1}return~(o<<n)}(e,t,1)}const d_=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,h_=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,f_=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,p_=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class ja{constructor(t){this._reflect=t||xt.Reflect}isReflectionEnabled(){return!0}factory(t){return(...n)=>new t(...n)}_zipTypesAndAnnotations(t,n){let r;r=es(void 0===t?n.length:t.length);for(let o=0;o<r.length;o++)r[o]=void 0===t?[]:t[o]&&t[o]!=Object?[t[o]]:[],n&&null!=n[o]&&(r[o]=r[o].concat(n[o]));return r}_ownParameters(t,n){if(function m_(e){return d_.test(e)||p_.test(e)||h_.test(e)&&!f_.test(e)}(t.toString()))return null;if(t.parameters&&t.parameters!==n.parameters)return t.parameters;const o=t.ctorParameters;if(o&&o!==n.ctorParameters){const y="function"==typeof o?o():o,M=y.map(Y=>Y&&Y.type),H=y.map(Y=>Y&&Va(Y.decorators));return this._zipTypesAndAnnotations(M,H)}const a=t.hasOwnProperty(ho)&&t[ho],d=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return d||a?this._zipTypesAndAnnotations(d,a):es(t.length)}parameters(t){if(!qo(t))return[];const n=Us(t);let r=this._ownParameters(t,n);return!r&&n!==Object&&(r=this.parameters(n)),r||[]}_ownAnnotations(t,n){if(t.annotations&&t.annotations!==n.annotations){let r=t.annotations;return"function"==typeof r&&r.annotations&&(r=r.annotations),r}return t.decorators&&t.decorators!==n.decorators?Va(t.decorators):t.hasOwnProperty(uo)?t[uo]:null}annotations(t){if(!qo(t))return[];const n=Us(t),r=this._ownAnnotations(t,n)||[];return(n!==Object?this.annotations(n):[]).concat(r)}_ownPropMetadata(t,n){if(t.propMetadata&&t.propMetadata!==n.propMetadata){let r=t.propMetadata;return"function"==typeof r&&r.propMetadata&&(r=r.propMetadata),r}if(t.propDecorators&&t.propDecorators!==n.propDecorators){const r=t.propDecorators,o={};return Object.keys(r).forEach(a=>{o[a]=Va(r[a])}),o}return t.hasOwnProperty(fo)?t[fo]:null}propMetadata(t){if(!qo(t))return{};const n=Us(t),r={};if(n!==Object){const a=this.propMetadata(n);Object.keys(a).forEach(d=>{r[d]=a[d]})}const o=this._ownPropMetadata(t,n);return o&&Object.keys(o).forEach(a=>{const d=[];r.hasOwnProperty(a)&&d.push(...r[a]),d.push(...o[a]),r[a]=d}),r}ownPropMetadata(t){return qo(t)&&this._ownPropMetadata(t,Us(t))||{}}hasLifecycleHook(t,n){return t instanceof $s&&n in t.prototype}guards(t){return{}}getter(t){return new Function("o","return o."+t+";")}setter(t){return new Function("o","v","return o."+t+" = v;")}method(t){return new Function("o","args",`if (!o.${t}) throw new Error('"${t}" is undefined');\n return o.${t}.apply(o, args);`)}importUri(t){return"object"==typeof t&&t.filePath?t.filePath:`./${C(t)}`}resourceUri(t){return`./${C(t)}`}resolveIdentifier(t,n,r,o){return o}resolveEnum(t,n){return t[n]}}function Va(e){return e?e.map(t=>new(0,t.type.annotationCls)(...t.args?t.args:[])):[]}function Us(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}const Ur={},$a="__NG_DI_FLAG__",Ws="ngTempTokenPath",__=/\n/gm,cd="__source",v_=_({provide:String,useValue:_});let ts;function Ha(e){const t=ts;return ts=e,t}function b_(e,t=V.Default){if(void 0===ts)throw new U(203,"");return null===ts?Ie(e,void 0,t):ts.get(e,t&V.Optional?null:void 0,t)}function ai(e,t=V.Default){return(function Oe(){return ae}()||b_)(T(e),t)}function Ua(e){throw new Error("invalid")}const C_=ai;function Wa(e){const t=[];for(let n=0;n<e.length;n++){const r=T(e[n]);if(Array.isArray(r)){if(0===r.length)throw new U(900,"");let o,a=V.Default;for(let d=0;d<r.length;d++){const y=r[d],M=D_(y);"number"==typeof M?-1===M?o=y.token:a|=M:o=y}t.push(ai(o,a))}else t.push(ai(r))}return t}function ns(e,t){return e[$a]=t,e.prototype[$a]=t,e}function D_(e){return e[$a]}const is=ns(mo("Inject",e=>({token:e})),-1),Xr=ns(mo("Optional"),8),zs=ns(mo("Self"),2),qr=ns(mo("SkipSelf"),4),ud=ns(mo("Host"),1);let dd=null;function za(){return dd=dd||new ja}function Ks(e){return hd(za().parameters(e))}function hd(e){return e.map(t=>function M_(e){const t={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(e)&&e.length>0)for(let n=0;n<e.length;n++){const r=e[n];if(void 0===r)continue;const o=Object.getPrototypeOf(r);if(r instanceof Xr||"Optional"===o.ngMetadataName)t.optional=!0;else if(r instanceof qr||"SkipSelf"===o.ngMetadataName)t.skipSelf=!0;else if(r instanceof zs||"Self"===o.ngMetadataName)t.self=!0;else if(r instanceof ud||"Host"===o.ngMetadataName)t.host=!0;else if(r instanceof is)t.token=r.token;else if(r instanceof id){if(void 0===r.attributeName)throw new Error("Attribute name must be defined.");t.attribute=r.attributeName}else t.token=r}else t.token=void 0===e||Array.isArray(e)&&0===e.length?null:e;return t}(t))}function fd(e){const t=[],n=new Map;function r(o){let a=n.get(o);if(!a){const d=e(o);n.set(o,a=d.then(I_))}return a}return _o.forEach((o,a)=>{const d=[];o.templateUrl&&d.push(r(o.templateUrl).then(Me=>{o.template=Me}));const y=o.styleUrls,M=o.styles||(o.styles=[]),H=o.styles.length;y&&y.forEach((Me,Ue)=>{M.push(""),d.push(r(Me).then(tt=>{M[H+Ue]=tt,y.splice(y.indexOf(Me),1),0==y.length&&(o.styleUrls=void 0)}))});const Y=Promise.all(d).then(()=>function P_(e){rs.delete(e)}(a));t.push(Y)}),md(),Promise.all(t).then(()=>{})}let _o=new Map;const rs=new Set;function pd(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length)}function md(){const e=_o;return _o=new Map,e}function I_(e){return"string"==typeof e?e:e.text()}let Gs,Qs;function Ka(){if(void 0===Gs&&(Gs=null,xt.trustedTypes))try{Gs=xt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Gs}function yo(e){var t;return(null===(t=Ka())||void 0===t?void 0:t.createHTML(e))||e}function Ga(){if(void 0===Qs&&(Qs=null,xt.trustedTypes))try{Qs=xt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Qs}function gd(e){var t;return(null===(t=Ga())||void 0===t?void 0:t.createHTML(e))||e}function _d(e){var t;return(null===(t=Ga())||void 0===t?void 0:t.createScript(e))||e}function yd(e){var t;return(null===(t=Ga())||void 0===t?void 0:t.createScriptURL(e))||e}class eo{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class x_ extends eo{getTypeName(){return"HTML"}}class R_ extends eo{getTypeName(){return"Style"}}class F_ extends eo{getTypeName(){return"Script"}}class k_ extends eo{getTypeName(){return"URL"}}class N_ extends eo{getTypeName(){return"ResourceURL"}}function Lr(e){return e instanceof eo?e.changingThisBreaksApplicationSecurity:e}function vo(e,t){const n=vd(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 vd(e){return e instanceof eo&&e.getTypeName()||null}function L_(e){return new x_(e)}function B_(e){return new R_(e)}function j_(e){return new F_(e)}function V_(e){return new k_(e)}function $_(e){return new N_(e)}function bd(e){const t=new U_(e);return function W_(){try{return!!(new window.DOMParser).parseFromString(yo(""),"text/html")}catch(e){return!1}}()?new H_(t):t}class H_{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(yo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class U_{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 r=this.inertDocument.createElement("body");n.appendChild(r)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=yo(t),n;const r=this.inertDocument.createElement("body");return r.innerHTML=yo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}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 r=t.firstChild;for(;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}const z_=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,K_=/^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 os(e){return(e=String(e)).match(z_)||e.match(K_)?e:"unsafe:"+e}function Cd(e){return(e=String(e)).split(",").map(t=>os(t.trim())).join(", ")}function Dr(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function ss(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const Dd=Dr("area,br,col,hr,img,wbr"),Ed=Dr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Td=Dr("rp,rt"),Qa=ss(Dd,ss(Ed,Dr("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")),ss(Td,Dr("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")),ss(Td,Ed)),Za=Dr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ya=Dr("srcset"),Md=ss(Za,Ya,Dr("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"),Dr("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")),G_=Dr("script,style,template");class Q_{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&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(!Qa.hasOwnProperty(n))return this.sanitizedSomething=!0,!G_.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let o=0;o<r.length;o++){const a=r.item(o),d=a.name,y=d.toLowerCase();if(!Md.hasOwnProperty(y)){this.sanitizedSomething=!0;continue}let M=a.value;Za[y]&&(M=os(M)),Ya[y]&&(M=Cd(M)),this.buf.push(" ",d,'="',wd(M),'"')}return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();Qa.hasOwnProperty(n)&&!Dd.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(wd(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 Z_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Y_=/([^\#-~ |!])/g;function wd(e){return e.replace(/&/g,"&amp;").replace(Z_,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Y_,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Zs;function Sd(e,t){let n=null;try{Zs=Zs||bd(e);let r=t?String(t):"";n=Zs.getInertBodyElement(r);let o=5,a=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=a,a=n.innerHTML,n=Zs.getInertBodyElement(r)}while(r!==a);return yo((new Q_).sanitizeChildren(Ja(n)||n))}finally{if(n){const r=Ja(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Ja(e){return"content"in e&&function J_(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Xn=(()=>((Xn=Xn||{})[Xn.NONE=0]="NONE",Xn[Xn.HTML=1]="HTML",Xn[Xn.STYLE=2]="STYLE",Xn[Xn.SCRIPT=3]="SCRIPT",Xn[Xn.URL=4]="URL",Xn[Xn.RESOURCE_URL=5]="RESOURCE_URL",Xn))();function Id(e){const t=as();return t?gd(t.sanitize(Xn.HTML,e)||""):vo(e,"HTML")?gd(Lr(e)):Sd(Ci(),Q(e))}function Pd(e){const t=as();return t?t.sanitize(Xn.STYLE,e)||"":vo(e,"Style")?Lr(e):Q(e)}function Xa(e){const t=as();return t?t.sanitize(Xn.URL,e)||"":vo(e,"URL")?Lr(e):os(Q(e))}function qa(e){const t=as();if(t)return yd(t.sanitize(Xn.RESOURCE_URL,e)||"");if(vo(e,"ResourceURL"))return yd(Lr(e));throw new U(904,"")}function Ad(e){const t=as();if(t)return _d(t.sanitize(Xn.SCRIPT,e)||"");if(vo(e,"Script"))return _d(Lr(e));throw new U(905,"")}function Od(e){return yo(e[0])}function xd(e){return function O_(e){var t;return(null===(t=Ka())||void 0===t?void 0:t.createScriptURL(e))||e}(e[0])}function Rd(e,t,n){return function X_(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?qa:Xa}(t,n)(e)}function as(){const e=bt();return e&&e[12]}function ci(e){let t=ls(e);if(t){if(Array.isArray(t)){const n=t;let r,o,a;if(function q_(e){return e&&e.constructor&&e.constructor.\u0275cmp}(e)){if(r=Ld(n,e),-1==r)throw new Error("The provided component was not found in the application");o=e}else if(function ey(e){return e&&e.constructor&&e.constructor.\u0275dir}(e)){if(r=function ny(e,t){let n=e[1].firstChild;for(;n;){const o=n.directiveEnd;for(let a=n.directiveStart;a<o;a++)if(e[a]===t)return n.index;n=ty(n)}return-1}(n,e),-1==r)throw new Error("The provided directive was not found in the application");a=Bd(r,n,!1)}else if(r=Nd(n,e),-1==r)return null;const d=F(n[r]),y=ls(d),M=y&&!Array.isArray(y)?y:el(n,r,d);if(o&&void 0===M.component&&(M.component=o,ui(M.component,M)),a&&void 0===M.directives){M.directives=a;for(let H=0;H<a.length;H++)ui(a[H],M)}ui(M.native,M),t=M}}else{const n=e;let r=n;for(;r=r.parentNode;){const o=ls(r);if(o){let a;if(a=Array.isArray(o)?o:o.lView,!a)return null;const d=Nd(a,n);if(d>=0){const y=F(a[d]),M=el(a,d,y);ui(y,M),t=M;break}}}}return t||null}function el(e,t,n){return{lView:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}function Fd(e){let n,t=ls(e);if(Array.isArray(t)){const r=Ld(t,e);n=on(r,t);const o=el(t,r,n[0]);o.component=e,ui(e,o),ui(o.native,o)}else n=on(t.nodeIndex,t.lView);return n}const kd="__ngContext__";function ui(e,t){e[kd]=t}function ls(e){return e[kd]||null}function tl(e){const t=ls(e);return t?Array.isArray(t)?t:t.lView:null}function Nd(e,t){const n=e[1];for(let r=20;r<n.bindingStartIndex;r++)if(F(e[r])===t)return r;return-1}function ty(e){if(e.child)return e.child;if(e.next)return e.next;for(;e.parent&&!e.parent.next;)e=e.parent;return e.parent&&e.parent.next}function Ld(e,t){const n=e[1].components;if(n)for(let r=0;r<n.length;r++){const o=n[r];if(on(o,e)[8]===t)return o}else if(on(20,e)[8]===t)return 20;return-1}function Bd(e,t,n){const r=t[1].data[e];let o=r.directiveStart;return 0==o?Et:(!n&&2&r.flags&&o++,t.slice(o,r.directiveEnd))}const nl="ngOriginalError";function il(e){return e[nl]}function ly(e,...t){e.error(...t)}class cs{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=function ay(e){return e&&e.ngErrorLogger||ly}(t);r(this._console,"ERROR",t),n&&r(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&il(t);for(;n&&il(n);)n=il(n);return n||null}}const jd={name:"custom-elements"},Vd={name:"no-errors-schema"},cy=/^>|^->|<!--|-->|--!>|<!-$/g,uy=/(<|>)/;const Hd=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(xt))();function Ud(e){return e.ownerDocument.defaultView}function Wd(e){return e.ownerDocument}function zd(e){return e.ownerDocument.body}function Er(e){return e instanceof Function?e():e}var Tr=(()=>((Tr=Tr||{})[Tr.Important=1]="Important",Tr[Tr.DashCase=2]="DashCase",Tr))();let rl;function ol(e,t){return rl(e,t)}function us(e){const t=e[3];return $n(t)?t[3]:t}function Zd(e){return function Qd(e){let t=Vn(e)?e:tl(e);for(;t&&!(512&t[2]);)t=us(t);return t}(e)[8]}function sl(e){return Yd(e[13])}function al(e){return Yd(e[4])}function Yd(e){for(;null!==e&&!$n(e);)e=e[4];return e}function Co(e,t,n,r,o){if(null!=r){let a,d=!1;$n(r)?a=r:Vn(r)&&(d=!0,r=r[0]);const y=F(r);0===e&&null!==n?null==o?nh(t,n,y):to(t,n,y,o||null,!0):1===e&&null!==n?to(t,n,y,o||null,!0):2===e?ch(t,y,d):3===e&&t.destroyNode(y),null!=a&&function Py(e,t,n,r,o){const a=n[7];a!==F(n)&&Co(t,e,r,a,o);for(let y=10;y<n.length;y++){const M=n[y];ds(M[1],M,e,t,r,a)}}(t,e,a,n,o)}}function ll(e,t){return sn(e)?e.createText(t):e.createTextNode(t)}function Jd(e,t,n){sn(e)?e.setValue(t,n):t.textContent=n}function _y(e,t){return e.createComment(function $d(e){return e.replace(cy,t=>t.replace(uy,"\u200b$1\u200b"))}(t))}function cl(e,t,n){if(sn(e))return e.createElement(t,n);{const r=null!==n?function gi(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":t===tr?"http://www.w3.org/1998/MathML/":null}(n):null;return null===r?e.createElement(t):e.createElementNS(r,t)}}function Xd(e,t){const n=e[9],r=n.indexOf(t),o=t[3];1024&t[2]&&(t[2]&=-1025,X(o,-1)),n.splice(r,1)}function ul(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const o=r[17];null!==o&&o!==e&&Xd(o,r),t>0&&(e[n-1][4]=r[4]);const a=Hs(e,10+t);!function yy(e,t){ds(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const d=a[19];null!==d&&d.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function qd(e,t){if(!(256&t[2])){const n=t[11];sn(n)&&n.destroyNode&&ds(e,t,n,3,null,null),function Cy(e){let t=e[13];if(!t)return dl(e[1],e);for(;t;){let n=null;if(Vn(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Vn(t)&&dl(t[1],t),t=t[3];null===t&&(t=e),Vn(t)&&dl(t[1],t),n=t&&t[4]}t=n}}(t)}}function dl(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function My(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const o=t[n[r]];if(!(o instanceof Jn)){const a=n[r+1];if(Array.isArray(a))for(let d=0;d<a.length;d+=2){const y=o[a[d]],M=a[d+1];zn(4,y,M);try{M.call(y)}finally{zn(5,y,M)}}else{zn(4,o,a);try{a.call(o)}finally{zn(5,o,a)}}}}}(e,t),function Ty(e,t){const n=e.cleanup,r=t[7];let o=-1;if(null!==n)for(let a=0;a<n.length-1;a+=2)if("string"==typeof n[a]){const d=n[a+1],y="function"==typeof d?d(t):F(t[d]),M=r[o=n[a+2]],H=n[a+3];"boolean"==typeof H?y.removeEventListener(n[a],M,H):H>=0?r[o=H]():r[o=-H].unsubscribe(),a+=2}else{const d=r[o=n[a+1]];n[a].call(d)}if(null!==r){for(let a=o+1;a<r.length;a++)r[a]();t[7]=null}}(e,t),1===t[1].type&&sn(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&$n(t[3])){n!==t[3]&&Xd(n,t);const r=t[19];null!==r&&r.detachView(e)}}}function eh(e,t,n){return th(e,t.parent,n)}function th(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){const o=e.data[r.directiveStart].encapsulation;if(o===ht.None||o===ht.Emulated)return null}return _t(r,n)}function to(e,t,n,r,o){sn(e)?e.insertBefore(t,n,r,o):t.insertBefore(n,r,o)}function nh(e,t,n){sn(e)?e.appendChild(t,n):t.appendChild(n)}function ih(e,t,n,r,o){null!==r?to(e,t,n,r,o):nh(e,t,n)}function Ys(e,t){return sn(e)?e.parentNode(t):t.parentNode}function rh(e,t,n){return sh(e,t,n)}function oh(e,t,n){return 40&e.type?_t(e,n):null}let hl,sh=oh;function ah(e,t){sh=e,hl=t}function Js(e,t,n,r){const o=eh(e,r,t),a=t[11],y=rh(r.parent||t[6],r,t);if(null!=o)if(Array.isArray(n))for(let M=0;M<n.length;M++)ih(a,o,n[M],y,!1);else ih(a,o,n,y,!1);void 0!==hl&&hl(a,r,t,n,o)}function Xs(e,t){if(null!==t){const n=t.type;if(3&n)return _t(t,e);if(4&n)return fl(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return Xs(e,r);{const o=e[t.index];return $n(o)?fl(-1,o):F(o)}}if(32&n)return ol(t,e)()||F(e[t.index]);{const r=lh(e,t);return null!==r?Array.isArray(r)?r[0]:Xs(us(e[16]),r):Xs(e,t.next)}}return null}function lh(e,t){return null!==t?e[16][6].projection[t.projection]:null}function fl(e,t){const n=10+e+1;if(n<t.length){const r=t[n],o=r[1].firstChild;if(null!==o)return Xs(r,o)}return t[7]}function ch(e,t,n){const r=Ys(e,t);r&&function wy(e,t,n,r){sn(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}function pl(e,t,n,r,o,a,d){for(;null!=n;){const y=r[n.index],M=n.type;if(d&&0===t&&(y&&ui(F(y),r),n.flags|=4),64!=(64&n.flags))if(8&M)pl(e,t,n.child,r,o,a,!1),Co(t,e,o,y,a);else if(32&M){const H=ol(n,r);let Y;for(;Y=H();)Co(t,e,o,Y,a);Co(t,e,o,y,a)}else 16&M?uh(e,t,r,n,o,a):Co(t,e,o,y,a);n=d?n.projectionNext:n.next}}function ds(e,t,n,r,o,a){pl(n,r,e.firstChild,t,o,a,!1)}function uh(e,t,n,r,o,a){const d=n[16],M=d[6].projection[r.projection];if(Array.isArray(M))for(let H=0;H<M.length;H++)Co(t,e,o,M[H],a);else pl(e,t,M,d[3],o,a,!0)}function dh(e,t,n){sn(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function ml(e,t,n){sn(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function hh(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const a=t.length;if(o+a===r||e.charCodeAt(o+a)<=32)return o}n=o+1}}const fh="ng-template";function Oy(e,t,n){let r=0;for(;r<e.length;){let o=e[r++];if(n&&"class"===o){if(o=e[r],-1!==hh(o.toLowerCase(),t,0))return!0}else if(1===o){for(;r<e.length&&"string"==typeof(o=e[r++]);)if(o.toLowerCase()===t)return!0;return!1}}return!1}function ph(e){return 4===e.type&&e.value!==fh}function xy(e,t,n){return t===(4!==e.type||n?e.value:fh)}function Ry(e,t,n){let r=4;const o=e.attrs||[],a=function Ny(e){for(let t=0;t<e.length;t++)if(zu(e[t]))return t;return e.length}(o);let d=!1;for(let y=0;y<t.length;y++){const M=t[y];if("number"!=typeof M){if(!d)if(4&r){if(r=2|1&r,""!==M&&!xy(e,M,n)||""===M&&1===t.length){if(sr(r))return!1;d=!0}}else{const H=8&r?M:t[++y];if(8&r&&null!==e.attrs){if(!Oy(e.attrs,H,n)){if(sr(r))return!1;d=!0}continue}const Me=Fy(8&r?"class":M,o,ph(e),n);if(-1===Me){if(sr(r))return!1;d=!0;continue}if(""!==H){let Ue;Ue=Me>a?"":o[Me+1].toLowerCase();const tt=8&r?Ue:null;if(tt&&-1!==hh(tt,H,0)||2&r&&H!==Ue){if(sr(r))return!1;d=!0}}}}else{if(!d&&!sr(r)&&!sr(M))return!1;if(d&&sr(M))continue;d=!1,r=M|1&r}}return sr(r)||d}function sr(e){return 0==(1&e)}function Fy(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let a=!1;for(;o<t.length;){const d=t[o];if(d===e)return o;if(3===d||6===d)a=!0;else{if(1===d||2===d){let y=t[++o];for(;"string"==typeof y;)y=t[++o];continue}if(4===d)break;if(0===d){o+=4;continue}}o+=a?1:2}return-1}return function Ly(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function mh(e,t,n=!1){for(let r=0;r<t.length;r++)if(Ry(e,t[r],n))return!0;return!1}function By(e,t){e:for(let n=0;n<t.length;n++){const r=t[n];if(e.length===r.length){for(let o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return!0}}return!1}function gh(e,t){return e?":not("+t.trim()+")":t}function jy(e){let t=e[0],n=1,r=2,o="",a=!1;for(;n<e.length;){let d=e[n];if("string"==typeof d)if(2&r){const y=e[++n];o+="["+d+(y.length>0?'="'+y+'"':"")+"]"}else 8&r?o+="."+d:4&r&&(o+=" "+d);else""!==o&&!sr(d)&&(t+=gh(a,o),o=""),r=d,a=a||!sr(r);n++}return""!==o&&(t+=gh(a,o)),t}const rn={};function _h(e){yh(gn(),bt(),oi()+e,p())}function yh(e,t,n,r){if(!r)if(3==(3&t[2])){const a=e.preOrderCheckHooks;null!==a&&yi(t,a,n)}else{const a=e.preOrderHooks;null!==a&&si(t,a,0,n)}Ti(n)}function qs(e,t){return e<<17|t<<2}function ar(e){return e>>17&32767}function gl(e){return 2|e}function Br(e){return(131068&e)>>2}function _l(e,t){return-131069&e|t<<2}function yl(e){return 1|e}const wl=(()=>Promise.resolve(null))();function Ph(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const o=n[r],a=n[r+1];if(-1!==a){const d=e.data[a];Vt(o),d.contentQueries(2,t[a],a)}}}function hs(e,t,n,r,o,a,d,y,M,H){const Y=t.blueprint.slice();return Y[0]=o,Y[2]=140|r,I(Y),Y[3]=Y[15]=e,Y[8]=n,Y[10]=d||e&&e[10],Y[11]=y||e&&e[11],Y[12]=M||e&&e[12]||null,Y[9]=H||e&&e[9]||null,Y[6]=a,Y[16]=2==t.type?e[16]:Y,Y}function Do(e,t,n,r,o){let a=e.data[t];if(null===a)a=Sl(e,t,n,r,o),function te(){return Xe.lFrame.inI18n}()&&(a.flags|=64);else if(64&a.type){a.type=n,a.value=r,a.attrs=o;const d=yr();a.injectorIndex=null===d?-1:d.injectorIndex}return _i(a,!0),a}function Sl(e,t,n,r,o){const a=Qr(),d=Zr(),M=e.data[t]=function iv(e,t,n,r,o,a){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:o,attrs:a,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?a:a&&a.parent,n,t,r,o);return null===e.firstChild&&(e.firstChild=M),null!==a&&(d?null==a.child&&null!==M.parent&&(a.child=M):null===a.next&&(a.next=M)),M}function Eo(e,t,n,r){if(0===n)return-1;const o=t.length;for(let a=0;a<n;a++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function fs(e,t,n){Wt(t);try{const r=e.viewQuery;null!==r&&Nl(1,r,n);const o=e.template;null!==o&&Ah(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Ph(e,t),e.staticViewQueries&&Nl(2,e.viewQuery,n);const a=e.components;null!==a&&function ev(e,t){for(let n=0;n<t.length;n++)Cv(e,t[n])}(t,a)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[2]&=-5,Ei()}}function To(e,t,n,r){const o=t[2];if(256==(256&o))return;Wt(t);const a=p();try{I(t),S(e.bindingStartIndex),null!==n&&Ah(e,t,n,2,r);const d=3==(3&o);if(!a)if(d){const H=e.preOrderCheckHooks;null!==H&&yi(t,H,null)}else{const H=e.preOrderHooks;null!==H&&si(t,H,0,null),zi(t,0)}if(function vv(e){for(let t=sl(e);null!==t;t=al(t)){if(!t[2])continue;const n=t[9];for(let r=0;r<n.length;r++){const o=n[r],a=o[3];0==(1024&o[2])&&X(a,1),o[2]|=1024}}}(t),function yv(e){for(let t=sl(e);null!==t;t=al(t))for(let n=10;n<t.length;n++){const r=t[n],o=r[1];Pn(r)&&To(o,r,o.template,r[8])}}(t),null!==e.contentQueries&&Ph(e,t),!a)if(d){const H=e.contentCheckHooks;null!==H&&yi(t,H)}else{const H=e.contentHooks;null!==H&&si(t,H,1),zi(t,1)}!function Xy(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const o=n[r];if(o<0)Ti(~o);else{const a=o,d=n[++r],y=n[++r];We(d,a),y(2,t[a])}}}finally{Ti(-1)}}(e,t);const y=e.components;null!==y&&function qy(e,t){for(let n=0;n<t.length;n++)bv(e,t[n])}(t,y);const M=e.viewQuery;if(null!==M&&Nl(2,M,r),!a)if(d){const H=e.viewCheckHooks;null!==H&&yi(t,H)}else{const H=e.viewHooks;null!==H&&si(t,H,2),zi(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),a||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,X(t[3],-1))}finally{Ei()}}function tv(e,t,n,r){const o=t[10],a=!p(),d=an(t);try{a&&!d&&o.begin&&o.begin(),d&&fs(e,t,r),To(e,t,n,r)}finally{a&&!d&&o.end&&o.end()}}function Ah(e,t,n,r,o){const a=oi(),d=2&r;try{Ti(-1),d&&t.length>20&&yh(e,t,20,p()),zn(d?2:0,o),n(r,o)}finally{Ti(a),zn(d?3:1,o)}}function Oh(e,t,n){if(pi(t)){const o=t.directiveEnd;for(let a=t.directiveStart;a<o;a++){const d=e.data[a];d.contentQueries&&d.contentQueries(1,n[a],a)}}}function Il(e,t,n){!ir()||(function uv(e,t,n,r){const o=n.directiveStart,a=n.directiveEnd;e.firstCreatePass||Yo(n,t),ui(r,t);const d=n.initialInputs;for(let y=o;y<a;y++){const M=e.data[y],H=Hn(M);H&&mv(t,n,M);const Y=Jo(t,e,y,n);ui(Y,t),null!==d&&gv(0,y-o,Y,M,0,d),H&&(on(n.index,t)[8]=Y)}}(e,t,n,_t(n,t)),128==(128&n.flags)&&function dv(e,t,n){const r=n.directiveStart,o=n.directiveEnd,d=n.index,y=function rt(){return Xe.lFrame.currentDirectiveIndex}();try{Ti(d);for(let M=r;M<o;M++){const H=e.data[M],Y=t[M];ot(M),(null!==H.hostBindings||0!==H.hostVars||null!==H.hostAttrs)&&jh(H,Y)}}finally{Ti(-1),ot(y)}}(e,t,n))}function Pl(e,t,n=_t){const r=t.localNames;if(null!==r){let o=t.index+1;for(let a=0;a<r.length;a+=2){const d=r[a+1],y=-1===d?n(t,e):e[d];e[o++]=y}}}function xh(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=na(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function na(e,t,n,r,o,a,d,y,M,H){const Y=20+r,Me=Y+o,Ue=function nv(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:rn);return n}(Y,Me),tt="function"==typeof H?H():H;return Ue[1]={type:e,blueprint:Ue,template:n,queries:null,viewQuery:y,declTNode:t,data:Ue.slice().fill(null,Y),bindingStartIndex:Y,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 a?a():a,pipeRegistry:"function"==typeof d?d():d,firstChild:null,schemas:M,consts:tt,incompleteFirstPass:!1}}function Fh(e,t,n){if(sn(e))return e.selectRootElement(t,n===ht.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}function kh(e,t,n,r){const o=zh(t);null===n?o.push(r):(o.push(n),e.firstCreatePass&&Kh(e).push(r,o.length-1))}function Nh(e,t,n){for(let r in e)if(e.hasOwnProperty(r)){const o=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,o):n[r]=[t,o]}return n}function Ni(e,t,n,r,o,a,d,y){const M=_t(t,n);let Y,H=t.inputs;!y&&null!=H&&(Y=H[r])?(Zh(e,n,Y,r,o),bi(t)&&function sv(e,t){const n=on(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r=function ov(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=d?d(o,t.value||"",r):o,sn(a)?a.setProperty(M,r,o):Oa(r)||(M.setProperty?M.setProperty(r,o):M[r]=o))}function Al(e,t,n,r){let o=!1;if(ir()){const a=function hv(e,t,n){const r=e.directiveRegistry;let o=null;if(r)for(let a=0;a<r.length;a++){const d=r[a];mh(n,d.selectors,!1)&&(o||(o=[]),js(Yo(n,t),e,d.type),Hn(d)?(Vh(e,n),o.unshift(d)):o.push(d))}return o}(e,t,n),d=null===r?null:{"":-1};if(null!==a){o=!0,$h(n,e.data.length,a.length);for(let Y=0;Y<a.length;Y++){const Me=a[Y];Me.providersResolver&&Me.providersResolver(Me)}let y=!1,M=!1,H=Eo(e,t,a.length,null);for(let Y=0;Y<a.length;Y++){const Me=a[Y];n.mergedAttrs=Ns(n.mergedAttrs,Me.hostAttrs),Hh(e,n,t,H,Me),pv(H,Me,d),null!==Me.contentQueries&&(n.flags|=8),(null!==Me.hostBindings||null!==Me.hostAttrs||0!==Me.hostVars)&&(n.flags|=128);const Ue=Me.type.prototype;!y&&(Ue.ngOnChanges||Ue.ngOnInit||Ue.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),y=!0),!M&&(Ue.ngOnChanges||Ue.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),M=!0),H++}!function rv(e,t){const r=t.directiveEnd,o=e.data,a=t.attrs,d=[];let y=null,M=null;for(let H=t.directiveStart;H<r;H++){const Y=o[H],Me=Y.inputs,Ue=null===a||ph(t)?null:_v(Me,a);d.push(Ue),y=Nh(Me,H,y),M=Nh(Y.outputs,H,M)}null!==y&&(y.hasOwnProperty("class")&&(t.flags|=16),y.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=d,t.inputs=y,t.outputs=M}(e,n)}d&&function fv(e,t,n){if(t){const r=e.localNames=[];for(let o=0;o<t.length;o+=2){const a=n[t[o+1]];if(null==a)throw new U(-301,!1);r.push(t[o],a)}}}(n,r,d)}return n.mergedAttrs=Ns(n.mergedAttrs,n.attrs),o}function Bh(e,t,n,r,o,a){const d=a.hostBindings;if(d){let y=e.hostBindingOpCodes;null===y&&(y=e.hostBindingOpCodes=[]);const M=~t.index;(function cv(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(y)!=M&&y.push(M),y.push(r,o,d)}}function jh(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Vh(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function pv(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Hn(t)&&(n[""]=e)}}function $h(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Hh(e,t,n,r,o){e.data[r]=o;const a=o.factory||(o.factory=ri(o.type)),d=new Jn(a,Hn(o),null);e.blueprint[r]=d,n[r]=d,Bh(e,t,0,r,Eo(e,n,o.hostVars,rn),o)}function mv(e,t,n){const r=_t(t,e),o=xh(n),a=e[10],d=ia(e,hs(e,o,null,n.onPush?64:16,r,t,a,a.createRenderer(r,n),null,null));e[t.index]=d}function Mr(e,t,n,r,o,a){const d=_t(e,t);Ol(t[11],d,a,e.value,n,r,o)}function Ol(e,t,n,r,o,a,d){if(null==a)sn(e)?e.removeAttribute(t,o,n):t.removeAttribute(o);else{const y=null==d?Q(a):d(a,r||"",o);sn(e)?e.setAttribute(t,o,y,n):n?t.setAttributeNS(n,o,y):t.setAttribute(o,y)}}function gv(e,t,n,r,o,a){const d=a[t];if(null!==d){const y=r.setInput;for(let M=0;M<d.length;){const H=d[M++],Y=d[M++],Me=d[M++];null!==y?r.setInput(n,Me,H,Y):n[Y]=Me}}}function _v(e,t){let n=null,r=0;for(;r<t.length;){const o=t[r];if(0!==o)if(5!==o){if("number"==typeof o)break;e.hasOwnProperty(o)&&(null===n&&(n=[]),n.push(o,e[o],t[r+1])),r+=2}else r+=2;else r+=4}return n}function Uh(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function bv(e,t){const n=on(t,e);if(Pn(n)){const r=n[1];80&n[2]?To(r,n,r.template,n[8]):n[5]>0&&xl(n)}}function xl(e){for(let r=sl(e);null!==r;r=al(r))for(let o=10;o<r.length;o++){const a=r[o];if(1024&a[2]){const d=a[1];To(d,a,d.template,a[8])}else a[5]>0&&xl(a)}const n=e[1].components;if(null!==n)for(let r=0;r<n.length;r++){const o=on(n[r],e);Pn(o)&&o[5]>0&&xl(o)}}function Cv(e,t){const n=on(t,e),r=n[1];(function Dv(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(r,n),fs(r,n,n[8])}function ia(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Rl(e){for(;e;){e[2]|=64;const t=us(e);if(Vi(e)&&!t)return e;e=t}return null}function Fl(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],r=tl(n),o=r[1];tv(o,r,o.template,n)}}function kl(e,t,n){const r=t[10];r.begin&&r.begin();try{To(e,t,e.template,n)}catch(o){throw Qh(t,o),o}finally{r.end&&r.end()}}function Wh(e){Fl(e[8])}function Nl(e,t,n){Vt(0),t(e,n)}const wv=wl;function zh(e){return e[7]||(e[7]=[])}function Kh(e){return e.cleanup||(e.cleanup=[])}function Gh(e,t,n){return(null===e||Hn(e))&&(n=function se(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Qh(e,t){const n=e[9],r=n?n.get(cs,null):null;r&&r.handleError(t)}function Zh(e,t,n,r,o){for(let a=0;a<n.length;){const d=n[a++],y=n[a++],M=t[d],H=e.data[d];null!==H.setInput?H.setInput(M,o,r,y):M[y]=o}}function jr(e,t,n){const r=ut(t,e);Jd(e[11],r,n)}function ra(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,a=0;if(null!==t)for(let d=0;d<t.length;d++){const y=t[d];"number"==typeof y?a=y:1==a?o=w(o,y):2==a&&(r=w(r,y+": "+t[++d]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function Yh(e){const t=Fd(e);kl(t[1],t,e)}function Jh(e){!function Ev(e,t){if(0===e.flags&&e.clean==wl){let r;e.flags|=t,e.clean=new Promise(o=>r=o),e.scheduler(()=>{if(1&e.flags&&(e.flags&=-2,Fl(e)),2&e.flags){e.flags&=-3;const o=e.playerHandler;o&&o.flushPlayers()}e.clean=wl,r(null)})}}(Rl(Fd(e))[8],1)}const oa=new Kn("INJECTOR",-1);class Xh{get(t,n=Ur){if(n===Ur){const r=new Error(`NullInjectorError: No provider for ${C(t)}!`);throw r.name="NullInjectorError",r}return n}}const Ll=new Kn("Set Injector scope."),ps={},Sv={};let Bl;function qh(){return void 0===Bl&&(Bl=new Xh),Bl}function jl(e,t=null,n=null,r){const o=ef(e,t,n,r);return o._resolveInjectorDefTypes(),o}function ef(e,t=null,n=null,r){return new Iv(e,n,t||qh(),r)}class Iv{constructor(t,n,r,o=null){this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const a=[];n&&Cr(n,y=>this.processProvider(y,t,n)),Cr([t],y=>this.processInjectorType(y,[],a)),this.records.set(oa,Mo(void 0,this));const d=this.records.get(Ll);this.scope=null!=d?d.value:null,this.source=o||("object"==typeof t?null:C(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=Ur,r=V.Default){this.assertNotDestroyed();const o=Ha(this),a=le(void 0);try{if(!(r&V.SkipSelf)){let y=this.records.get(t);if(void 0===y){const M=function Nv(e){return"function"==typeof e||"object"==typeof e&&e instanceof Kn}(t)&&we(t);y=M&&this.injectableDefInScope(M)?Mo(Vl(t),ps):null,this.records.set(t,y)}if(null!=y)return this.hydrate(t,y)}return(r&V.Self?qh():this.parent).get(t,n=r&V.Optional&&n===Ur?null:n)}catch(d){if("NullInjectorError"===d.name){if((d[Ws]=d[Ws]||[]).unshift(C(t)),o)throw d;return function E_(e,t,n,r){const o=e[Ws];throw t[cd]&&o.unshift(t[cd]),e.message=function T_(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let o=C(t);if(Array.isArray(t))o=t.map(C).join(" -> ");else if("object"==typeof t){let a=[];for(let d in t)if(t.hasOwnProperty(d)){let y=t[d];a.push(d+":"+("string"==typeof y?JSON.stringify(y):C(y)))}o=`{${a.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(__,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[Ws]=null,e}(d,t,"R3InjectorError",this.source)}throw d}finally{le(a),Ha(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,o)=>t.push(C(o))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new U(205,!1)}processInjectorType(t,n,r){if(!(t=T(t)))return!1;let o=mt(t);const a=null==o&&t.ngModule||void 0,d=void 0===a?t:a,y=-1!==r.indexOf(d);if(void 0!==a&&(o=mt(a)),null==o)return!1;if(null!=o.imports&&!y){let Y;r.push(d);try{Cr(o.imports,Me=>{this.processInjectorType(Me,n,r)&&(void 0===Y&&(Y=[]),Y.push(Me))})}finally{}if(void 0!==Y)for(let Me=0;Me<Y.length;Me++){const{ngModule:Ue,providers:tt}=Y[Me];Cr(tt,ft=>this.processProvider(ft,Ue,tt||Et))}}this.injectorDefTypes.add(d);const M=ri(d)||(()=>new d);this.records.set(d,Mo(M,ps));const H=o.providers;if(null!=H&&!y){const Y=t;Cr(H,Me=>this.processProvider(Me,Y,H))}return void 0!==a&&void 0!==t.providers}processProvider(t,n,r){let o=wo(t=T(t))?t:T(t&&t.provide);const a=function Av(e,t,n){return nf(e)?Mo(void 0,e.useValue):Mo(tf(e),ps)}(t);if(wo(t)||!0!==t.multi)this.records.get(o);else{let d=this.records.get(o);d||(d=Mo(void 0,ps,!0),d.factory=()=>Wa(d.multi),this.records.set(o,d)),o=t,d.multi.push(t)}this.records.set(o,a)}hydrate(t,n){return n.value===ps&&(n.value=Sv,n.value=n.factory()),"object"==typeof n.value&&n.value&&function kv(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=T(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function Vl(e){const t=we(e),n=null!==t?t.factory:ri(e);if(null!==n)return n;if(e instanceof Kn)throw new U(204,!1);if(e instanceof Function)return function Pv(e){const t=e.length;if(t>0)throw es(t,"?"),new U(204,!1);const n=function Ee(e){const t=e&&(e[gt]||e[dt]);if(t){const n=function Ze(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 U(204,!1)}function tf(e,t,n){let r;if(wo(e)){const o=T(e);return ri(o)||Vl(o)}if(nf(e))r=()=>T(e.useValue);else if(function xv(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Wa(e.deps||[]));else if(function Ov(e){return!(!e||!e.useExisting)}(e))r=()=>ai(T(e.useExisting));else{const o=T(e&&(e.useClass||e.provide));if(!function Fv(e){return!!e.deps}(e))return ri(o)||Vl(o);r=()=>new o(...Wa(e.deps))}return r}function Mo(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function nf(e){return null!==e&&"object"==typeof e&&v_ in e}function wo(e){return"function"==typeof e}let Li=(()=>{class e{static create(n,r){var o;if(Array.isArray(n))return jl({name:""},r,n,"");{const a=null!==(o=n.name)&&void 0!==o?o:"";return jl({name:a},n.parent,n.providers,a)}}}return e.THROW_IF_NOT_FOUND=Ur,e.NULL=new Xh,e.\u0275prov=et({token:e,providedIn:"any",factory:()=>ai(oa)}),e.__NG_ELEMENT_ID__=-1,e})();function $l(e){Ul(e);const t=ci(e);return null===t?null:(void 0===t.component&&(t.component=function iy(e,t){const n=t[1].data[e];return 2&n.flags?t[n.directiveStart]:null}(t.nodeIndex,t.lView)),t.component)}function rf(e){Ul(e);const t=ci(e);return null===t?null:t.lView[8]}function sf(e){const t=ci(e);if(null===t)return null;let r,n=t.lView;for(;2===n[1].type&&(r=us(n));)n=r;return 512&n[2]?null:n[8]}function af(e){return[...Zd(e).components]}function lf(e){const t=ci(e);return null===t?Li.NULL:new co(t.lView[1].data[t.nodeIndex],t.lView)}function cf(e){if(e instanceof Text)return[];const t=ci(e);if(null===t)return[];const n=t.lView,r=n[1],o=t.nodeIndex;return(null==r?void 0:r.data[o])?(void 0===t.directives&&(t.directives=Bd(o,n,!1)),null===t.directives?[]:[...t.directives]):[]}function Bv(e){const{constructor:t}=e;if(!t)throw new Error("Unable to find the instance constructor");const n=Ve(t);if(n)return{inputs:n.inputs,outputs:n.outputs,encapsulation:n.encapsulation,changeDetection:n.onPush?De.OnPush:De.Default};const r=lt(t);return r?{inputs:r.inputs,outputs:r.outputs}:null}function Hl(e){return ci(e).native}function uf(e){Ul(e);const t=ci(e);if(null===t)return[];const n=t.lView,o=n[7],a=n[1].cleanup,d=[];if(a&&o)for(let y=0;y<a.length;){const M=a[y++],H=a[y++];if("string"==typeof M){const Y=M,Me=F(n[H]),Ue=o[a[y++]],tt=a[y++],ft="boolean"==typeof tt||tt>=0?"dom":"output",wt="boolean"==typeof tt&&tt;e==Me&&d.push({element:e,name:Y,callback:Ue,useCapture:wt,type:ft})}}return d.sort(Vv),d}function Vv(e,t){return e.name==t.name?0:e.name<t.name?-1:1}function $v(e){return void 0!==e.type&&void 0!==e.template&&void 0!==e.declaredInputs}function Ul(e){if("undefined"!=typeof Element&&!(e instanceof Element))throw new Error("Expecting instance of DOM Element")}function Hv(e){Jh(e),af(e).forEach(t=>Yh(t))}let hf=!1;function Uv(){hf||(hf=!0,Gi("\u0275setProfiler",Wi),Gi("getDirectiveMetadata",Bv),Gi("getComponent",$l),Gi("getContext",rf),Gi("getListeners",uf),Gi("getOwningComponent",sf),Gi("getHostElement",Hl),Gi("getInjector",lf),Gi("getRootComponents",af),Gi("getDirectives",cf),Gi("applyChanges",Hv))}function Gi(e,t){if("undefined"==typeof COMPILED||!COMPILED){const n=xt;if(n){let r=n.ng;r||(r=n.ng={}),r[e]=t}}}function Wv(e,t={}){const n=t.rendererFactory||k,r=t.sanitizer||null,o=Ve(e);o.type!=e&&(o.type=e);const a=o.selectors[0][0],y=Fh(n.createRenderer(null,null),t.host||a,o.encapsulation),M=o.onPush?576:528,H=mf(t.scheduler,t.playerHandler),Y=n.createRenderer(y,o),Me=na(0,null,null,1,0,null,null,null,null,null),Ue=hs(null,Me,H,M,null,null,n,Y,null,t.injector||null);let tt;Wt(Ue);try{n.begin&&n.begin(),tt=pf(ff(y,o,Ue,n,Y,r),o,Ue,H,t.hostFeatures||null),fs(Me,Ue,null),To(Me,Ue,null,null)}finally{Ei(),n.end&&n.end()}return tt}function ff(e,t,n,r,o,a){const d=n[1];n[20]=e;const M=Do(d,20,2,"#host",null),H=M.mergedAttrs=t.hostAttrs;null!==H&&(ra(M,H,!0),null!==e&&(ks(o,e,H),null!==M.classes&&ml(o,e,M.classes),null!==M.styles&&dh(o,e,M.styles)));const Y=r.createRenderer(e,t),Me=hs(n,xh(t),null,t.onPush?64:16,n[20],M,r,Y,a||null,null);return d.firstCreatePass&&(js(Yo(M,n),d,t.type),Vh(d,M),$h(M,n.length,1)),ia(n,Me),n[20]=Me}function pf(e,t,n,r,o){const a=n[1],d=function lv(e,t,n){const r=Rn();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Hh(e,r,t,Eo(e,t,1,null),n));const o=Jo(t,e,r.directiveStart,r);ui(o,t);const a=_t(r,t);return a&&ui(a,t),o}(a,n,t);if(r.components.push(d),e[8]=d,o&&o.forEach(M=>M(d,t)),t.contentQueries){const M=Rn();t.contentQueries(1,d,M.directiveStart)}const y=Rn();return!a.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Ti(y.index),Bh(n[1],y,0,y.directiveStart,y.directiveEnd,t),jh(t,d)),d}function mf(e,t){return{components:[],scheduler:e||Hd,clean:wv,playerHandler:t||null,flags:0}}function gf(e,t){Bn(tl(e)[1],Rn())}function zv(e){return Zd(e).clean}function _f(e){return Object.getPrototypeOf(e.prototype).constructor}function Wl(e){let t=_f(e.type),n=!0;const r=[e];for(;t;){let o;if(Hn(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new U(903,"");o=t.\u0275dir}if(o){if(n){r.push(o);const d=e;d.inputs=zl(e.inputs),d.declaredInputs=zl(e.declaredInputs),d.outputs=zl(e.outputs);const y=o.hostBindings;y&&Zv(e,y);const M=o.viewQuery,H=o.contentQueries;if(M&&Gv(e,M),H&&Qv(e,H),D(e.inputs,o.inputs),D(e.declaredInputs,o.declaredInputs),D(e.outputs,o.outputs),Hn(o)&&o.data.animation){const Y=e.data;Y.animation=(Y.animation||[]).concat(o.data.animation)}}const a=o.features;if(a)for(let d=0;d<a.length;d++){const y=a[d];y&&y.ngInherit&&y(e),y===Wl&&(n=!1)}}t=Object.getPrototypeOf(t)}!function Kv(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Ns(o.hostAttrs,n=Ns(n,o.hostAttrs))}}(r)}function zl(e){return e===Nt?{}:e===Et?[]:e}function Gv(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function Qv(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,a)=>{t(r,o,a),n(r,o,a)}:t}function Zv(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}const Yv=["providersResolver"],Jv=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function yf(e){let n,t=_f(e.type);n=Hn(e)?t.\u0275cmp:t.\u0275dir;const r=e;for(const o of Yv)r[o]=n[o];if(Hn(n))for(const o of Jv)r[o]=n[o]}let sa=null;function So(){if(!sa){const e=xt.Symbol;if(e&&e.iterator)sa=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<t.length;++n){const r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(sa=r)}}}return sa}function vf(e,t){const n=ms(e),r=ms(t);return n&&r?function Xv(e,t,n){const r=e[So()](),o=t[So()]();for(;;){const a=r.next(),d=o.next();if(a.done&&d.done)return!0;if(a.done||d.done||!n(a.value,d.value))return!1}}(e,t,vf):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||Object.is(e,t)}function ms(e){return!!Kl(e)&&(Array.isArray(e)||!(e instanceof Map)&&So()in e)}function Kl(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function wr(e,t,n){return e[t]=n}function gs(e,t){return e[t]}function di(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function no(e,t,n,r){const o=di(e,t,n);return di(e,t+1,r)||o}function aa(e,t,n,r,o){const a=no(e,t,n,r);return di(e,t+2,o)||a}function Qi(e,t,n,r,o,a){const d=no(e,t,n,r);return no(e,t+2,o,a)||d}function Gl(e,t,n,r){const o=bt();return di(o,R(),t)&&(gn(),Mr(Mn(),o,e,t,n,r)),Gl}function Io(e,t){let n=!1,r=E();for(let a=1;a<t.length;a+=2)n=di(e,r++,t[a])||n;if(S(r),!n)return rn;let o=t[0];for(let a=1;a<t.length;a+=2)o+=Q(t[a])+t[a+1];return o}function Po(e,t,n,r){return di(e,R(),n)?t+Q(n)+r:rn}function Ao(e,t,n,r,o,a){const y=no(e,E(),n,o);return j(2),y?t+Q(n)+r+Q(o)+a:rn}function Oo(e,t,n,r,o,a,d,y){const H=aa(e,E(),n,o,d);return j(3),H?t+Q(n)+r+Q(o)+a+Q(d)+y:rn}function xo(e,t,n,r,o,a,d,y,M,H){const Me=Qi(e,E(),n,o,d,M);return j(4),Me?t+Q(n)+r+Q(o)+a+Q(d)+y+Q(M)+H:rn}function Ro(e,t,n,r,o,a,d,y,M,H,Y,Me){const Ue=E();let tt=Qi(e,Ue,n,o,d,M);return tt=di(e,Ue+4,Y)||tt,j(5),tt?t+Q(n)+r+Q(o)+a+Q(d)+y+Q(M)+H+Q(Y)+Me:rn}function Fo(e,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt){const ft=E();let wt=Qi(e,ft,n,o,d,M);return wt=no(e,ft+4,Y,Ue)||wt,j(6),wt?t+Q(n)+r+Q(o)+a+Q(d)+y+Q(M)+H+Q(Y)+Me+Q(Ue)+tt:rn}function ko(e,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft,wt){const It=E();let $t=Qi(e,It,n,o,d,M);return $t=aa(e,It+4,Y,Ue,ft)||$t,j(7),$t?t+Q(n)+r+Q(o)+a+Q(d)+y+Q(M)+H+Q(Y)+Me+Q(Ue)+tt+Q(ft)+wt:rn}function No(e,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft,wt,It,$t){const vt=E();let Zt=Qi(e,vt,n,o,d,M);return Zt=Qi(e,vt+4,Y,Ue,ft,It)||Zt,j(8),Zt?t+Q(n)+r+Q(o)+a+Q(d)+y+Q(M)+H+Q(Y)+Me+Q(Ue)+tt+Q(ft)+wt+Q(It)+$t:rn}function Ql(e,t,n,r,o,a){const d=bt(),y=Po(d,t,n,r);return y!==rn&&Mr(Mn(),d,e,y,o,a),Ql}function Zl(e,t,n,r,o,a,d,y){const M=bt(),H=Ao(M,t,n,r,o,a);return H!==rn&&Mr(Mn(),M,e,H,d,y),Zl}function Yl(e,t,n,r,o,a,d,y,M,H){const Y=bt(),Me=Oo(Y,t,n,r,o,a,d,y);return Me!==rn&&Mr(Mn(),Y,e,Me,M,H),Yl}function Jl(e,t,n,r,o,a,d,y,M,H,Y,Me){const Ue=bt(),tt=xo(Ue,t,n,r,o,a,d,y,M,H);return tt!==rn&&Mr(Mn(),Ue,e,tt,Y,Me),Jl}function Xl(e,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt){const ft=bt(),wt=Ro(ft,t,n,r,o,a,d,y,M,H,Y,Me);return wt!==rn&&Mr(Mn(),ft,e,wt,Ue,tt),Xl}function ql(e,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft,wt){const It=bt(),$t=Fo(It,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt);return $t!==rn&&Mr(Mn(),It,e,$t,ft,wt),ql}function ec(e,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft,wt,It,$t){const vt=bt(),Zt=ko(vt,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft,wt);return Zt!==rn&&Mr(Mn(),vt,e,Zt,It,$t),ec}function tc(e,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft,wt,It,$t,vt,Zt){const _n=bt(),wn=No(_n,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft,wt,It,$t);return wn!==rn&&Mr(Mn(),_n,e,wn,vt,Zt),tc}function nc(e,t,n,r){const o=bt(),a=Io(o,t);return a!==rn&&Mr(Mn(),o,e,a,n,r),nc}function bf(e,t,n,r,o,a,d,y){const M=bt(),H=gn(),Y=e+20,Me=H.firstCreatePass?function eb(e,t,n,r,o,a,d,y,M){const H=t.consts,Y=Do(t,e,4,d||null,x(H,y));Al(t,n,Y,x(H,M)),Bn(t,Y);const Me=Y.tViews=na(2,Y,r,o,a,t.directiveRegistry,t.pipeRegistry,null,t.schemas,H);return null!==t.queries&&(t.queries.template(t,Y),Me.queries=t.queries.embeddedTView(Y)),Y}(Y,H,M,t,n,r,o,a,d):H.data[Y];_i(Me,!1);const Ue=M[11].createComment("");Js(H,M,Ue,Me),ui(Ue,M),ia(M,M[Y]=Uh(Ue,M,Ue,Me)),ei(Me)&&Il(H,M,Me),null!=d&&Pl(M,Me,y)}function Cf(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function Df(e){return dn(function f(){return Xe.lFrame.contextLView}(),20+e)}const Ef={\u0275\u0275defineInjectable:et,\u0275\u0275defineInjector:pe,\u0275\u0275inject:ai,\u0275\u0275invalidFactoryDep:Ua,resolveForwardRef:T};const nb=_({provide:String,useValue:_});function Tf(e){return void 0!==e.useClass}function Mf(e){return void 0!==e.useFactory}const sb=po("Injectable",void 0,void 0,void 0,(e,t)=>function tb(e,t){let n=null,r=null;e.hasOwnProperty(gt)||Object.defineProperty(e,gt,{get:()=>(null===n&&(n=ni().compileInjectable(Ef,`ng:///${e.name}/\u0275prov.js`,function ob(e,t){const n=t||{providedIn:null},r={name:e.name,type:e,typeArgumentCount:0,providedIn:n.providedIn};return(Tf(n)||Mf(n))&&void 0!==n.deps&&(r.deps=hd(n.deps)),Tf(n)?r.useClass=n.useClass:function ib(e){return nb in e}(n)?r.useValue=n.useValue:Mf(n)?r.useFactory=n.useFactory:function rb(e){return void 0!==e.useExisting}(n)&&(r.useExisting=n.useExisting),r}(e,t))),n)}),e.hasOwnProperty(J)||Object.defineProperty(e,J,{get:()=>{if(null===r){const o=ni();r=o.compileFactory(Ef,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:Ks(e),target:o.FactoryTarget.Injectable})}return r},configurable:!0})}(e,t));function ic(e){return e.length>1?" ("+function ab(e){const t=[];for(let n=0;n<e.length;++n){if(t.indexOf(e[n])>-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(r=>C(r.token)).join(" -> ")+")":""}function rc(e,t,n,r){const o=[t],a=n(o),d=r?function sy(e,t){const n=`${e} caused by: ${t instanceof Error?t.message:t}`,r=Error(n);return r[nl]=t,r}(a,r):Error(a);return d.addKey=lb,d.keys=o,d.injectors=[e],d.constructResolvingMessage=n,d[nl]=r,d}function lb(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function wf(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const a=t[r];n.push(a&&0!=a.length?a.map(C).join(" "):"?")}return Error("Cannot resolve all parameters for '"+C(e)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+C(e)+"' is decorated with Injectable.")}function pb(e,t){return Error(`Cannot mix multi providers and regular providers, got: ${e} ${t}`)}class Vr{constructor(t,n){if(this.token=t,this.id=n,!t)throw new Error("Token must be defined!");this.displayName=C(this.token)}static get(t){return Sf.get(T(t))}static get numberOfKeys(){return Sf.numberOfKeys}}class mb{constructor(){this._allKeys=new Map}get(t){if(t instanceof Vr)return t;if(this._allKeys.has(t))return this._allKeys.get(t);const n=new Vr(t,Vr.numberOfKeys);return this._allKeys.set(t,n),n}get numberOfKeys(){return this._allKeys.size}}const Sf=new mb;class gb{constructor(t){this.reflectionCapabilities=t}updateCapabilities(t){this.reflectionCapabilities=t}factory(t){return this.reflectionCapabilities.factory(t)}parameters(t){return this.reflectionCapabilities.parameters(t)}annotations(t){return this.reflectionCapabilities.annotations(t)}propMetadata(t){return this.reflectionCapabilities.propMetadata(t)}hasLifecycleHook(t,n){return this.reflectionCapabilities.hasLifecycleHook(t,n)}getter(t){return this.reflectionCapabilities.getter(t)}setter(t){return this.reflectionCapabilities.setter(t)}method(t){return this.reflectionCapabilities.method(t)}importUri(t){return this.reflectionCapabilities.importUri(t)}resourceUri(t){return this.reflectionCapabilities.resourceUri(t)}resolveIdentifier(t,n,r,o){return this.reflectionCapabilities.resolveIdentifier(t,n,r,o)}resolveEnum(t,n){return this.reflectionCapabilities.resolveEnum(t,n)}}const If=new gb(new ja);class la{constructor(t,n,r){this.key=t,this.optional=n,this.visibility=r}static fromKey(t){return new la(t,!1,null)}}const _b=[];class Pf{constructor(t,n,r){this.key=t,this.resolvedFactories=n,this.multiProvider=r,this.resolvedFactory=this.resolvedFactories[0]}}class Af{constructor(t,n){this.factory=t,this.dependencies=n}}function yb(e){let t,n;if(e.useClass){const r=T(e.useClass);t=If.factory(r),n=xf(r)}else e.useExisting?(t=r=>r,n=[la.fromKey(Vr.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=function Db(e,t){if(t){const n=t.map(r=>[r]);return t.map(r=>Rf(e,r,n))}return xf(e)}(e.useFactory,e.deps)):(t=()=>e.useValue,n=_b);return new Af(t,n)}function vb(e){return new Pf(Vr.get(e.provide),[yb(e)],e.multi||!1)}function bb(e){const r=function Cb(e,t){for(let n=0;n<e.length;n++){const r=e[n],o=t.get(r.key.id);if(o){if(r.multiProvider!==o.multiProvider)throw pb(o,r);if(r.multiProvider)for(let a=0;a<r.resolvedFactories.length;a++)o.resolvedFactories.push(r.resolvedFactories[a]);else t.set(r.key.id,r)}else{let a;a=r.multiProvider?new Pf(r.key,r.resolvedFactories.slice(),r.multiProvider):r,t.set(r.key.id,a)}}return t}(Of(e,[]).map(vb),new Map);return Array.from(r.values())}function Of(e,t){return e.forEach(n=>{if(n instanceof $s)t.push({provide:n,useClass:n});else if(n&&"object"==typeof n&&void 0!==n.provide)t.push(n);else{if(!Array.isArray(n))throw function hb(e){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${e}`)}(n);Of(n,t)}}),t}function xf(e){const t=If.parameters(e);if(!t)return[];if(t.some(n=>null==n))throw wf(e,t);return t.map(n=>Rf(e,n,t))}function Rf(e,t,n){let r=null,o=!1;if(!Array.isArray(t))return oc(t instanceof is?t.token:t,o,null);let a=null;for(let d=0;d<t.length;++d){const y=t[d];y instanceof $s?r=y:y instanceof is?r=y.token:y instanceof Xr?o=!0:y instanceof zs||y instanceof qr?a=y:y instanceof Kn&&(r=y)}if(r=T(r),null!=r)return oc(r,o,a);throw wf(e,n)}function oc(e,t,n){return new la(Vr.get(e),t,n)}const _s={};class Lo{static resolve(t){return bb(t)}static resolveAndCreate(t,n){const r=Lo.resolve(t);return Lo.fromResolvedProviders(r,n)}static fromResolvedProviders(t,n){return new Eb(t,n)}}let Eb=(()=>{class e{constructor(n,r){this._constructionCounter=0,this._providers=n,this.parent=r||null;const o=n.length;this.keyIds=[],this.objs=[];for(let a=0;a<o;a++)this.keyIds[a]=n[a].key.id,this.objs[a]=_s}get(n,r=Ur){return this._getByKey(Vr.get(n),null,r)}resolveAndCreateChild(n){const r=Lo.resolve(n);return this.createChildFromResolved(r)}createChildFromResolved(n){const r=new e(n);return r.parent=this,r}resolveAndInstantiate(n){return this.instantiateResolved(Lo.resolve([n])[0])}instantiateResolved(n){return this._instantiateProvider(n)}getProviderAtIndex(n){if(n<0||n>=this._providers.length)throw function fb(e){return Error(`Index ${e} is out-of-bounds.`)}(n);return this._providers[n]}_new(n){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function ub(e,t){return rc(e,t,function(n){return`Cannot instantiate cyclic dependency!${ic(n)}`})}(this,n.key);return this._instantiateProvider(n)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(n){if(n.multiProvider){const r=[];for(let o=0;o<n.resolvedFactories.length;++o)r[o]=this._instantiate(n,n.resolvedFactories[o]);return r}return this._instantiate(n,n.resolvedFactories[0])}_instantiate(n,r){const o=r.factory;let a,d;try{a=r.dependencies.map(y=>this._getByReflectiveDependency(y))}catch(y){throw y.addKey&&y.addKey(this,n.key),y}try{d=o(...a)}catch(y){throw function db(e,t,n,r){return rc(e,r,function(o){const a=C(o[0].token);return`${t.message}: Error during instantiation of ${a}!${ic(o)}.`},t)}(this,y,0,n.key)}return d}_getByReflectiveDependency(n){return this._getByKey(n.key,n.visibility,n.optional?null:Ur)}_getByKey(n,r,o){return n===e.INJECTOR_KEY?this:r instanceof zs?this._getByKeySelf(n,o):this._getByKeyDefault(n,o,r)}_getObjByKeyId(n){for(let r=0;r<this.keyIds.length;r++)if(this.keyIds[r]===n)return this.objs[r]===_s&&(this.objs[r]=this._new(this._providers[r])),this.objs[r];return _s}_throwOrNull(n,r){if(r!==Ur)return r;throw function cb(e,t){return rc(e,t,function(n){return`No provider for ${C(n[0].token)}!${ic(n)}`})}(this,n)}_getByKeySelf(n,r){const o=this._getObjByKeyId(n.id);return o!==_s?o:this._throwOrNull(n,r)}_getByKeyDefault(n,r,o){let a;for(a=o instanceof qr?this.parent:this;a instanceof e;){const d=a,y=d._getObjByKeyId(n.id);if(y!==_s)return y;a=d.parent}return null!==a?a.get(n.token,r):this._throwOrNull(n,r)}get displayName(){return`ReflectiveInjector(providers: [${function Tb(e,t){const n=[];for(let r=0;r<e._providers.length;++r)n[r]=t(e.getProviderAtIndex(r));return n}(this,r=>' "'+r.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}return e.INJECTOR_KEY=Vr.get(Li),e})();function ys(e,t=V.Default){const n=bt();return null===n?ai(e,t):Xu(Rn(),n,T(e),t)}function Ff(){throw new Error("invalid")}function sc(e,t,n){const r=bt();return di(r,R(),t)&&Ni(gn(),Mn(),r,e,t,r[11],n,!1),sc}function ac(e,t,n,r,o){const d=o?"class":"style";Zh(e,n,t.inputs[d],d,r)}function ca(e,t,n,r){const o=bt(),a=gn(),d=20+e,y=o[11],M=o[d]=cl(y,t,function en(){return Xe.lFrame.currentNamespace}()),H=a.firstCreatePass?function Mb(e,t,n,r,o,a,d){const y=t.consts,H=Do(t,e,2,o,x(y,a));return Al(t,n,H,x(y,d)),null!==H.attrs&&ra(H,H.attrs,!1),null!==H.mergedAttrs&&ra(H,H.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,H),H}(d,a,o,0,t,n,r):a.data[d];_i(H,!0);const Y=H.mergedAttrs;null!==Y&&ks(y,M,Y);const Me=H.classes;null!==Me&&ml(y,M,Me);const Ue=H.styles;return null!==Ue&&dh(y,M,Ue),64!=(64&H.flags)&&Js(a,o,M,H),0===function Dn(){return Xe.lFrame.elementDepthCount}()&&ui(M,o),function Yn(){Xe.lFrame.elementDepthCount++}(),ei(H)&&(Il(a,o,H),Oh(a,H,o)),null!==r&&Pl(o,H),ca}function ua(){let e=Rn();Zr()?Yr():(e=e.parent,_i(e,!1));const t=e;!function Di(){Xe.lFrame.elementDepthCount--}();const n=gn();return n.firstCreatePass&&(Bn(n,e),pi(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Qg(e){return 0!=(16&e.flags)}(t)&&ac(n,t,bt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Zg(e){return 0!=(32&e.flags)}(t)&&ac(n,t,bt(),t.stylesWithoutHost,!1),ua}function lc(e,t,n,r){return ca(e,t,n,r),ua(),lc}function da(e,t,n){const r=bt(),o=gn(),a=e+20,d=o.firstCreatePass?function wb(e,t,n,r,o){const a=t.consts,d=x(a,r),y=Do(t,e,8,"ng-container",d);return null!==d&&ra(y,d,!0),Al(t,n,y,x(a,o)),null!==t.queries&&t.queries.elementStart(t,y),y}(a,o,r,t,n):o.data[a];_i(d,!0);const y=r[a]=r[11].createComment("");return Js(o,r,y,d),ui(y,r),ei(d)&&(Il(o,r,d),Oh(o,d,r)),null!=n&&Pl(r,d),da}function ha(){let e=Rn();const t=gn();return Zr()?Yr():(e=e.parent,_i(e,!1)),t.firstCreatePass&&(Bn(t,e),pi(e)&&t.queries.elementEnd(e)),ha}function cc(e,t,n){return da(e,t,n),ha(),cc}function kf(){return bt()}function uc(e){return!!e&&"function"==typeof e.then}function Nf(e){return!!e&&"function"==typeof e.subscribe}const Lf=Nf;function dc(e,t,n,r){const o=bt(),a=gn(),d=Rn();return Bf(a,o,o[11],d,e,t,!!n,r),dc}function hc(e,t){const n=Rn(),r=bt(),o=gn();return Bf(o,r,Gh(yt(o.data),n,r),n,e,t,!1),hc}function Bf(e,t,n,r,o,a,d,y){const M=ei(r),Y=e.firstCreatePass&&Kh(e),Me=t[8],Ue=zh(t);let tt=!0;if(3&r.type||y){const It=_t(r,t),$t=y?y(It):It,vt=Ue.length,Zt=y?_n=>y(F(_n[r.index])):r.index;if(sn(n)){let _n=null;if(!y&&M&&(_n=function Sb(e,t,n,r){const o=e.cleanup;if(null!=o)for(let a=0;a<o.length-1;a+=2){const d=o[a];if(d===n&&o[a+1]===r){const y=t[7],M=o[a+2];return y.length>M?y[M]:null}"string"==typeof d&&(a+=2)}return null}(e,t,o,r.index)),null!==_n)(_n.__ngLastListenerFn__||_n).__ngNextListenerFn__=a,_n.__ngLastListenerFn__=a,tt=!1;else{a=fc(r,t,Me,a,!1);const wn=n.listen($t,o,a);Ue.push(a,wn),Y&&Y.push(o,Zt,vt,vt+1)}}else a=fc(r,t,Me,a,!0),$t.addEventListener(o,a,d),Ue.push(a),Y&&Y.push(o,Zt,vt,d)}else a=fc(r,t,Me,a,!1);const ft=r.outputs;let wt;if(tt&&null!==ft&&(wt=ft[o])){const It=wt.length;if(It)for(let $t=0;$t<It;$t+=2){const ji=t[wt[$t]][wt[$t+1]].subscribe(a),oo=Ue.length;Ue.push(a,ji),Y&&Y.push(o,r.index,oo,-(oo+1))}}}function jf(e,t,n,r){try{return zn(6,t,n),!1!==n(r)}catch(o){return Qh(e,o),!1}finally{zn(7,t,n)}}function fc(e,t,n,r,o){return function a(d){if(d===Function)return r;const y=2&e.flags?on(e.index,t):t;0==(32&t[2])&&Rl(y);let M=jf(t,n,r,d),H=a.__ngNextListenerFn__;for(;H;)M=jf(t,n,H,d)&&M,H=H.__ngNextListenerFn__;return o&&!1===M&&(d.preventDefault(),d.returnValue=!1),M}}function Vf(e=1){return function rr(e){return(Xe.lFrame.contextLView=function or(e,t){for(;e>0;)t=t[15],e--;return t}(e,Xe.lFrame.contextLView))[8]}(e)}function Ib(e,t){let n=null;const r=function ky(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 a=t[o];if("*"!==a){if(null===r?mh(e,a,!0):By(r,a))return o}else n=o}return n}function $f(e){const t=bt()[16][6];if(!t.projection){const r=t.projection=es(e?e.length:1,null),o=r.slice();let a=t.child;for(;null!==a;){const d=e?Ib(a,e):0;null!==d&&(o[d]?o[d].projectionNext=a:r[d]=a,o[d]=a),a=a.next}}}function Hf(e,t=0,n){const r=bt(),o=gn(),a=Do(o,20+e,16,null,n||null);null===a.projection&&(a.projection=t),Yr(),64!=(64&a.flags)&&function Iy(e,t,n){uh(t[11],0,t,n,eh(e,n,t),rh(n.parent||t[6],n,t))}(o,r,a)}function pc(e,t,n){return fa(e,"",t,"",n),pc}function fa(e,t,n,r,o){const a=bt(),d=Po(a,t,n,r);return d!==rn&&Ni(gn(),Mn(),a,e,d,a[11],o,!1),fa}function mc(e,t,n,r,o,a,d){const y=bt(),M=Ao(y,t,n,r,o,a);return M!==rn&&Ni(gn(),Mn(),y,e,M,y[11],d,!1),mc}function gc(e,t,n,r,o,a,d,y,M){const H=bt(),Y=Oo(H,t,n,r,o,a,d,y);return Y!==rn&&Ni(gn(),Mn(),H,e,Y,H[11],M,!1),gc}function _c(e,t,n,r,o,a,d,y,M,H,Y){const Me=bt(),Ue=xo(Me,t,n,r,o,a,d,y,M,H);return Ue!==rn&&Ni(gn(),Mn(),Me,e,Ue,Me[11],Y,!1),_c}function yc(e,t,n,r,o,a,d,y,M,H,Y,Me,Ue){const tt=bt(),ft=Ro(tt,t,n,r,o,a,d,y,M,H,Y,Me);return ft!==rn&&Ni(gn(),Mn(),tt,e,ft,tt[11],Ue,!1),yc}function vc(e,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft){const wt=bt(),It=Fo(wt,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt);return It!==rn&&Ni(gn(),Mn(),wt,e,It,wt[11],ft,!1),vc}function bc(e,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft,wt,It){const $t=bt(),vt=ko($t,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft,wt);return vt!==rn&&Ni(gn(),Mn(),$t,e,vt,$t[11],It,!1),bc}function Cc(e,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft,wt,It,$t,vt){const Zt=bt(),_n=No(Zt,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft,wt,It,$t);return _n!==rn&&Ni(gn(),Mn(),Zt,e,_n,Zt[11],vt,!1),Cc}function Dc(e,t,n){const r=bt(),o=Io(r,t);return o!==rn&&Ni(gn(),Mn(),r,e,o,r[11],n,!1),Dc}function Uf(e,t,n,r,o){const a=e[n+1],d=null===t;let y=r?ar(a):Br(a),M=!1;for(;0!==y&&(!1===M||d);){const Y=e[y+1];Ob(e[y],t)&&(M=!0,e[y+1]=r?yl(Y):gl(Y)),y=r?ar(Y):Br(Y)}M&&(e[n+1]=r?gl(a):yl(a))}function Ob(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&go(e,t)>=0}const ii={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Wf(e){return e.substring(ii.key,ii.keyEnd)}function xb(e){return e.substring(ii.value,ii.valueEnd)}function zf(e,t){const n=ii.textEnd;return n===t?-1:(t=ii.keyEnd=function kb(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,ii.key=t,n),Bo(e,t,n))}function Kf(e,t){const n=ii.textEnd;let r=ii.key=Bo(e,t,n);return n===r?-1:(r=ii.keyEnd=function Nb(e,t,n){let r;for(;t<n&&(45===(r=e.charCodeAt(t))||95===r||(-33&r)>=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=Qf(e,r,n),r=ii.value=Bo(e,r,n),r=ii.valueEnd=function Lb(e,t,n){let r=-1,o=-1,a=-1,d=t,y=d;for(;d<n;){const M=e.charCodeAt(d++);if(59===M)return y;34===M||39===M?y=d=Zf(e,M,d,n):t===d-4&&85===a&&82===o&&76===r&&40===M?y=d=Zf(e,41,d,n):M>32&&(y=d),a=o,o=r,r=-33&M}return y}(e,r,n),Qf(e,r,n))}function Gf(e){ii.key=0,ii.keyEnd=0,ii.value=0,ii.valueEnd=0,ii.textEnd=e.length}function Bo(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Qf(e,t,n,r){return(t=Bo(e,t,n))<n&&t++,t}function Zf(e,t,n,r){let o=-1,a=n;for(;a<r;){const d=e.charCodeAt(a++);if(d==t&&92!==o)return a;o=92==d&&92===o?0:d}throw new Error}function Ec(e,t,n){return cr(e,t,n,!1),Ec}function Tc(e,t){return cr(e,t,null,!0),Tc}function lr(e){ur(qf,Bb,e,!1)}function Bb(e,t){for(let n=function Fb(e){return Gf(e),Kf(e,Bo(e,0,ii.textEnd))}(t);n>=0;n=Kf(t,n))qf(e,Wf(t),xb(t))}function Yf(e){ur(ki,Sr,e,!0)}function Sr(e,t){for(let n=function Rb(e){return Gf(e),zf(e,Bo(e,0,ii.textEnd))}(t);n>=0;n=zf(t,n))ki(e,Wf(t),!0)}function cr(e,t,n,r){const o=bt(),a=gn(),d=j(2);a.firstUpdatePass&&Xf(a,e,d,r),t!==rn&&di(o,d,t)&&ep(a,a.data[oi()],o,o[11],e,o[d+1]=function zb(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=C(Lr(e)))),e}(t,n),r,d)}function ur(e,t,n,r){const o=gn(),a=j(2);o.firstUpdatePass&&Xf(o,null,a,r);const d=bt();if(n!==rn&&di(d,a,n)){const y=o.data[oi()];if(np(y,r)&&!Jf(o,a)){let M=r?y.classesWithoutHost:y.stylesWithoutHost;null!==M&&(n=w(M,n||"")),ac(o,y,d,n,r)}else!function Wb(e,t,n,r,o,a,d,y){o===rn&&(o=Et);let M=0,H=0,Y=0<o.length?o[0]:null,Me=0<a.length?a[0]:null;for(;null!==Y||null!==Me;){const Ue=M<o.length?o[M+1]:void 0,tt=H<a.length?a[H+1]:void 0;let wt,ft=null;Y===Me?(M+=2,H+=2,Ue!==tt&&(ft=Me,wt=tt)):null===Me||null!==Y&&Y<Me?(M+=2,ft=Y):(H+=2,ft=Me,wt=tt),null!==ft&&ep(e,t,n,r,ft,wt,d,y),Y=M<o.length?o[M]:null,Me=H<a.length?a[H]:null}}(o,y,d,d[11],d[a+1],d[a+1]=function Ub(e,t,n){if(null==n||""===n)return Et;const r=[],o=Lr(n);if(Array.isArray(o))for(let a=0;a<o.length;a++)e(r,o[a],!0);else if("object"==typeof o)for(const a in o)o.hasOwnProperty(a)&&e(r,a,o[a]);else"string"==typeof o&&t(r,o);return r}(e,t,n),r,a)}}function Jf(e,t){return t>=e.expandoStartIndex}function Xf(e,t,n,r){const o=e.data;if(null===o[n+1]){const a=o[oi()],d=Jf(e,n);np(a,r)&&null===t&&!d&&(t=!1),t=function jb(e,t,n,r){const o=yt(e);let a=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=vs(n=Mc(null,e,t,n,r),t.attrs,r),a=null);else{const d=t.directiveStylingLast;if(-1===d||e[d]!==o)if(n=Mc(o,e,t,n,r),null===a){let M=function Vb(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Br(r))return e[ar(r)]}(e,t,r);void 0!==M&&Array.isArray(M)&&(M=Mc(null,e,t,M[1],r),M=vs(M,t.attrs,r),function $b(e,t,n,r){e[ar(n?t.classBindings:t.styleBindings)]=r}(e,t,r,M))}else a=function Hb(e,t,n){let r;const o=t.directiveEnd;for(let a=1+t.directiveStylingLast;a<o;a++)r=vs(r,e[a].hostAttrs,n);return vs(r,t.attrs,n)}(e,t,r)}return void 0!==a&&(r?t.residualClasses=a:t.residualStyles=a),n}(o,a,t,r),function Pb(e,t,n,r,o,a){let d=a?t.classBindings:t.styleBindings,y=ar(d),M=Br(d);e[r]=n;let Y,H=!1;if(Array.isArray(n)){const Me=n;Y=Me[1],(null===Y||go(Me,Y)>0)&&(H=!0)}else Y=n;if(o)if(0!==M){const Ue=ar(e[y+1]);e[r+1]=qs(Ue,y),0!==Ue&&(e[Ue+1]=_l(e[Ue+1],r)),e[y+1]=function Hy(e,t){return 131071&e|t<<17}(e[y+1],r)}else e[r+1]=qs(y,0),0!==y&&(e[y+1]=_l(e[y+1],r)),y=r;else e[r+1]=qs(M,0),0===y?y=r:e[M+1]=_l(e[M+1],r),M=r;H&&(e[r+1]=gl(e[r+1])),Uf(e,Y,r,!0),Uf(e,Y,r,!1),function Ab(e,t,n,r,o){const a=o?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&go(a,t)>=0&&(n[r+1]=yl(n[r+1]))}(t,Y,e,r,a),d=qs(y,M),a?t.classBindings=d:t.styleBindings=d}(o,a,t,n,d,r)}}function Mc(e,t,n,r,o){let a=null;const d=n.directiveEnd;let y=n.directiveStylingLast;for(-1===y?y=n.directiveStart:y++;y<d&&(a=t[y],r=vs(r,a.hostAttrs,o),a!==e);)y++;return null!==e&&(n.directiveStylingLast=y),r}function vs(e,t,n){const r=n?1:2;let o=-1;if(null!==t)for(let a=0;a<t.length;a++){const d=t[a];"number"==typeof d?o=d:o===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),ki(e,d,!!n||t[++a]))}return void 0===e?null:e}function qf(e,t,n){ki(e,t,Lr(n))}function ep(e,t,n,r,o,a,d,y){if(!(3&t.type))return;const M=e.data,H=M[y+1];pa(function Ch(e){return 1==(1&e)}(H)?tp(M,t,n,o,Br(H),d):void 0)||(pa(a)||function bh(e){return 2==(2&e)}(H)&&(a=tp(M,null,n,o,y,d)),function Ay(e,t,n,r,o){const a=sn(e);if(t)o?a?e.addClass(n,r):n.classList.add(r):a?e.removeClass(n,r):n.classList.remove(r);else{let d=-1===r.indexOf("-")?void 0:Tr.DashCase;if(null==o)a?e.removeStyle(n,r,d):n.style.removeProperty(r);else{const y="string"==typeof o&&o.endsWith("!important");y&&(o=o.slice(0,-10),d|=Tr.Important),a?e.setStyle(n,r,o,d):n.style.setProperty(r,o,y?"important":"")}}}(r,d,ut(oi(),n),o,a))}function tp(e,t,n,r,o,a){const d=null===t;let y;for(;o>0;){const M=e[o],H=Array.isArray(M),Y=H?M[1]:M,Me=null===Y;let Ue=n[o+1];Ue===rn&&(Ue=Me?Et:void 0);let tt=Me?Ba(Ue,r):Y===r?Ue:void 0;if(H&&!pa(tt)&&(tt=Ba(M,r)),pa(tt)&&(y=tt,d))return y;const ft=e[o+1];o=d?ar(ft):Br(ft)}if(null!==t){let M=a?t.residualClasses:t.residualStyles;null!=M&&(y=Ba(M,r))}return y}function pa(e){return void 0!==e}function np(e,t){return 0!=(e.flags&(t?16:32))}function ip(e,t=""){const n=bt(),r=gn(),o=e+20,a=r.firstCreatePass?Do(r,o,1,t,null):r.data[o],d=n[o]=ll(n[11],t);Js(r,n,d,a),_i(a,!1)}function wc(e){return ma("",e,""),wc}function ma(e,t,n){const r=bt(),o=Po(r,e,t,n);return o!==rn&&jr(r,oi(),o),ma}function Sc(e,t,n,r,o){const a=bt(),d=Ao(a,e,t,n,r,o);return d!==rn&&jr(a,oi(),d),Sc}function Ic(e,t,n,r,o,a,d){const y=bt(),M=Oo(y,e,t,n,r,o,a,d);return M!==rn&&jr(y,oi(),M),Ic}function Pc(e,t,n,r,o,a,d,y,M){const H=bt(),Y=xo(H,e,t,n,r,o,a,d,y,M);return Y!==rn&&jr(H,oi(),Y),Pc}function Ac(e,t,n,r,o,a,d,y,M,H,Y){const Me=bt(),Ue=Ro(Me,e,t,n,r,o,a,d,y,M,H,Y);return Ue!==rn&&jr(Me,oi(),Ue),Ac}function Oc(e,t,n,r,o,a,d,y,M,H,Y,Me,Ue){const tt=bt(),ft=Fo(tt,e,t,n,r,o,a,d,y,M,H,Y,Me,Ue);return ft!==rn&&jr(tt,oi(),ft),Oc}function xc(e,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft){const wt=bt(),It=ko(wt,e,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft);return It!==rn&&jr(wt,oi(),It),xc}function Rc(e,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft,wt,It){const $t=bt(),vt=No($t,e,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft,wt,It);return vt!==rn&&jr($t,oi(),vt),Rc}function Fc(e){const t=bt(),n=Io(t,e);return n!==rn&&jr(t,oi(),n),Fc}function rp(e,t,n){ur(ki,Sr,Po(bt(),e,t,n),!0)}function op(e,t,n,r,o){ur(ki,Sr,Ao(bt(),e,t,n,r,o),!0)}function sp(e,t,n,r,o,a,d){ur(ki,Sr,Oo(bt(),e,t,n,r,o,a,d),!0)}function ap(e,t,n,r,o,a,d,y,M){ur(ki,Sr,xo(bt(),e,t,n,r,o,a,d,y,M),!0)}function lp(e,t,n,r,o,a,d,y,M,H,Y){ur(ki,Sr,Ro(bt(),e,t,n,r,o,a,d,y,M,H,Y),!0)}function cp(e,t,n,r,o,a,d,y,M,H,Y,Me,Ue){ur(ki,Sr,Fo(bt(),e,t,n,r,o,a,d,y,M,H,Y,Me,Ue),!0)}function up(e,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft){ur(ki,Sr,ko(bt(),e,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft),!0)}function dp(e,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft,wt,It){ur(ki,Sr,No(bt(),e,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft,wt,It),!0)}function hp(e){ur(ki,Sr,Io(bt(),e),!0)}function fp(e,t,n){lr(Po(bt(),e,t,n))}function pp(e,t,n,r,o){lr(Ao(bt(),e,t,n,r,o))}function mp(e,t,n,r,o,a,d){lr(Oo(bt(),e,t,n,r,o,a,d))}function gp(e,t,n,r,o,a,d,y,M){lr(xo(bt(),e,t,n,r,o,a,d,y,M))}function _p(e,t,n,r,o,a,d,y,M,H,Y){lr(Ro(bt(),e,t,n,r,o,a,d,y,M,H,Y))}function yp(e,t,n,r,o,a,d,y,M,H,Y,Me,Ue){lr(Fo(bt(),e,t,n,r,o,a,d,y,M,H,Y,Me,Ue))}function vp(e,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft){lr(ko(bt(),e,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft))}function bp(e,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft,wt,It){lr(No(bt(),e,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft,wt,It))}function Cp(e){lr(Io(bt(),e))}function kc(e,t,n,r,o){return cr(e,Po(bt(),t,n,r),o,!1),kc}function Nc(e,t,n,r,o,a,d){return cr(e,Ao(bt(),t,n,r,o,a),d,!1),Nc}function Lc(e,t,n,r,o,a,d,y,M){return cr(e,Oo(bt(),t,n,r,o,a,d,y),M,!1),Lc}function Bc(e,t,n,r,o,a,d,y,M,H,Y){return cr(e,xo(bt(),t,n,r,o,a,d,y,M,H),Y,!1),Bc}function jc(e,t,n,r,o,a,d,y,M,H,Y,Me,Ue){return cr(e,Ro(bt(),t,n,r,o,a,d,y,M,H,Y,Me),Ue,!1),jc}function Vc(e,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft){return cr(e,Fo(bt(),t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt),ft,!1),Vc}function $c(e,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft,wt,It){return cr(e,ko(bt(),t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft,wt),It,!1),$c}function Hc(e,t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft,wt,It,$t,vt){return cr(e,No(bt(),t,n,r,o,a,d,y,M,H,Y,Me,Ue,tt,ft,wt,It,$t),vt,!1),Hc}function Uc(e,t,n){return cr(e,Io(bt(),t),n,!1),Uc}function Wc(e,t,n){const r=bt();return di(r,R(),t)&&Ni(gn(),Mn(),r,e,t,r[11],n,!0),Wc}function zc(e,t,n){const r=bt();if(di(r,R(),t)){const a=gn(),d=Mn();Ni(a,d,r,e,t,Gh(yt(a.data),d,r),n,!0)}return zc}const io=void 0;var Gb=["en",[["a","p"],["AM","PM"],io],[["AM","PM"],io,io],[["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"]],io,[["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"]],io,[["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}",io,"{1} 'at' {0}",io],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Kb(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let jo={};function Qb(e,t,n){"string"!=typeof t&&(n=t,t=e[Yt.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),jo[t]=e,n&&(jo[t][Yt.ExtraData]=n)}function Kc(e){const t=function Jb(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Ep(t);if(n)return n;const r=t.split("-")[0];if(n=Ep(r),n)return n;if("en"===r)return Gb;throw new Error(`Missing locale data for the locale "${e}".`)}function Zb(e){return Kc(e)[Yt.CurrencyCode]||null}function Dp(e){return Kc(e)[Yt.PluralCase]}function Ep(e){return e in jo||(jo[e]=xt.ng&&xt.ng.common&&xt.ng.common.locales&&xt.ng.common.locales[e]),jo[e]}function Yb(){jo={}}var Yt=(()=>((Yt=Yt||{})[Yt.LocaleId=0]="LocaleId",Yt[Yt.DayPeriodsFormat=1]="DayPeriodsFormat",Yt[Yt.DayPeriodsStandalone=2]="DayPeriodsStandalone",Yt[Yt.DaysFormat=3]="DaysFormat",Yt[Yt.DaysStandalone=4]="DaysStandalone",Yt[Yt.MonthsFormat=5]="MonthsFormat",Yt[Yt.MonthsStandalone=6]="MonthsStandalone",Yt[Yt.Eras=7]="Eras",Yt[Yt.FirstDayOfWeek=8]="FirstDayOfWeek",Yt[Yt.WeekendRange=9]="WeekendRange",Yt[Yt.DateFormat=10]="DateFormat",Yt[Yt.TimeFormat=11]="TimeFormat",Yt[Yt.DateTimeFormat=12]="DateTimeFormat",Yt[Yt.NumberSymbols=13]="NumberSymbols",Yt[Yt.NumberFormats=14]="NumberFormats",Yt[Yt.CurrencyCode=15]="CurrencyCode",Yt[Yt.CurrencySymbol=16]="CurrencySymbol",Yt[Yt.CurrencyName=17]="CurrencyName",Yt[Yt.Currencies=18]="Currencies",Yt[Yt.Directionality=19]="Directionality",Yt[Yt.PluralCase=20]="PluralCase",Yt[Yt.ExtraData=21]="ExtraData",Yt))();const Xb=["zero","one","two","few","many"],bs="en-US",ga={marker:"element"},_a={marker:"ICU"};var Gn=(()=>((Gn=Gn||{})[Gn.SHIFT=2]="SHIFT",Gn[Gn.APPEND_EAGERLY=1]="APPEND_EAGERLY",Gn[Gn.COMMENT=2]="COMMENT",Gn))();let Tp=bs;function Mp(e){(function ve(e,t){null==e&&ze(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(Tp=e.toLowerCase().replace(/_/g,"-"))}function wp(e,t,n){const r=t.insertBeforeIndex,o=Array.isArray(r)?r[0]:r;return null===o?oh(e,0,n):F(n[o])}function Sp(e,t,n,r,o){const a=t.insertBeforeIndex;if(Array.isArray(a)){let d=r,y=null;if(3&t.type||(y=d,d=o),null!==d&&0==(2&t.flags))for(let M=1;M<a.length;M++)to(e,d,n[a[M]],y,!1)}}function Ip(e,t){if(e.push(t),e.length>1)for(let n=e.length-2;n>=0;n--){const r=e[n];Pp(r)||nC(r,t)&&null===iC(r)&&rC(r,t.index)}}function Pp(e){return!(64&e.type)}function nC(e,t){return Pp(t)||e.index>t.index}function iC(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function rC(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(ah(wp,Sp),e.insertBeforeIndex=t)}function Cs(e,t){const n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function aC(e,t,n){const r=Sl(e,n,64,null,null);return Ip(t,r),r}function ya(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function Ap(e){return e>>>17}function Op(e){return(131070&e)>>>1}let Ds=0,Es=0;function Rp(e,t,n,r){const o=n[11];let d,a=null;for(let y=0;y<t.length;y++){const M=t[y];if("string"==typeof M){const H=t[++y];null===n[H]&&(n[H]=ll(o,M))}else if("number"==typeof M)switch(1&M){case 0:const H=Ap(M);let Y,Me;if(null===a&&(a=H,d=Ys(o,r)),H===a?(Y=r,Me=d):(Y=null,Me=F(n[H])),null!==Me){const wt=Op(M);to(o,Me,n[wt],Y,!1);const $t=Cs(e,wt);if(null!==$t&&"object"==typeof $t){const vt=ya($t,n);null!==vt&&Rp(e,$t.create[vt],n,n[$t.anchorIdx])}}break;case 1:const tt=t[++y],ft=t[++y];Ol(o,ut(M>>>1,n),null,null,tt,ft,null)}else switch(M){case _a:const H=t[++y],Y=t[++y];null===n[Y]&&ui(n[Y]=_y(o,H),n);break;case ga:const Me=t[++y],Ue=t[++y];null===n[Ue]&&ui(n[Ue]=cl(o,Me,null),n)}}}function Fp(e,t,n,r,o){for(let a=0;a<n.length;a++){const d=n[a],y=n[++a];if(d&o){let M="";for(let H=a+1;H<=a+y;H++){const Y=n[H];if("string"==typeof Y)M+=Y;else if("number"==typeof Y)if(Y<0)M+=Q(t[r-Y]);else{const Me=Y>>>2;switch(3&Y){case 1:const Ue=n[++H],tt=n[++H],ft=e.data[Me];"string"==typeof ft?Ol(t[11],t[Me],null,ft,Ue,M,tt):Ni(e,ft,t,Ue,M,t[11],tt,!1);break;case 0:const wt=t[Me];null!==wt&&Jd(t[11],wt,M);break;case 2:hC(e,Cs(e,Me),t,M);break;case 3:kp(e,Cs(e,Me),r,t)}}}}else{const M=n[a+1];if(M>0&&3==(3&M)){const Y=Cs(e,M>>>2);t[Y.currentCaseLViewIndex]<0&&kp(e,Y,r,t)}}a+=y}}function kp(e,t,n,r){let o=r[t.currentCaseLViewIndex];if(null!==o){let a=Ds;o<0&&(o=r[t.currentCaseLViewIndex]=~o,a=-1),Fp(e,r,t.update[o],n,a)}}function hC(e,t,n,r){const o=function fC(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const r=function qb(e,t){const n=Dp(t)(parseInt(e,10)),r=Xb[n];return void 0!==r?r:"other"}(t,function tC(){return Tp}());n=e.cases.indexOf(r),-1===n&&"other"!==r&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,r);if(ya(t,n)!==o&&(Np(e,t,n),n[t.currentCaseLViewIndex]=null===o?null:~o,null!==o)){const d=n[t.anchorIdx];d&&Rp(e,t.create[o],n,d)}}function Np(e,t,n){let r=ya(t,n);if(null!==r){const o=t.remove[r];for(let a=0;a<o.length;a++){const d=o[a];if(d>0){const y=ut(d,n);null!==y&&ch(n[11],y)}else Np(e,Cs(e,~d),n)}}}function pC(){const e=[];let n,r,t=-1;function a(y,M){t=0;const H=ya(y,M);r=null!==H?y.remove[H]:Et}function d(){if(t<r.length){const y=r[t++];return y>0?n[y]:(e.push(t,r),a(n[1].data[~y],n),d())}return 0===e.length?null:(r=e.pop(),t=e.pop(),d())}return function o(y,M){for(n=M;e.length;)e.pop();return a(y.value,M),d}}const va=/\ufffd(\d+):?\d*\ufffd/gi,mC=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,gC=/\ufffd(\d+)\ufffd/,Bp=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,_C=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,yC=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,vC=/\uE500/g;function jp(e,t,n,r,o,a,d){const y=Eo(e,r,1,null);let M=y<<Gn.SHIFT,H=yr();t===H&&(H=null),null===H&&(M|=Gn.APPEND_EAGERLY),d&&(M|=Gn.COMMENT,function gy(e){void 0===rl&&(rl=e())}(pC)),o.push(M,null===a?"":a);const Y=Sl(e,y,d?32:1,null===a?"":a,null);Ip(n,Y);const Me=Y.index;return _i(Y,!1),null!==H&&t!==H&&function sC(e,t){let n=e.insertBeforeIndex;null===n?(ah(wp,Sp),n=e.insertBeforeIndex=[null,t]):(function $e(e,t,n){e!=t&&ze(n,e,t,"==")}(Array.isArray(n),!0,"Expecting array here"),n.push(t))}(H,Me),Y}function DC(e,t,n,r,o,a,d){const y=d.match(va),M=jp(e,t,n,a,r,y?null:d,!1);y&&Vo(o,d,M.index,null,0,null)}function Vo(e,t,n,r,o,a){const d=e.length,y=d+1;e.push(null,null);const M=d+2,H=t.split(va);let Y=0;for(let Me=0;Me<H.length;Me++){const Ue=H[Me];if(1&Me){const tt=o+parseInt(Ue,10);e.push(-1-tt),Y|=Vp(tt)}else""!==Ue&&e.push(Ue)}return e.push(n<<2|(r?1:0)),r&&e.push(r,a),e[d]=Y,e[y]=e.length-M,Y}function TC(e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];"number"==typeof r&&r<0&&t++}return t}function Vp(e){return 1<<Math.min(e,31)}function $p(e){let t,a,n="",r=0,o=!1;for(;null!==(t=_C.exec(e));)o?t[0]===`\ufffd/*${a}\ufffd`&&(r=t.index,o=!1):(n+=e.substring(r,t.index+t[0].length),a=t[1],o=!0);return n+=e.substr(r),n}function Hp(e,t,n,r,o,a){let d=0;const y={type:o.type,currentCaseLViewIndex:Eo(e,t,1,null),anchorIdx:a,cases:[],create:[],remove:[],update:[]};(function AC(e,t,n){e.push(Vp(t.mainBinding),2,-1-t.mainBinding,n<<2|2)})(n,o,a),function oC(e,t,n){const r=e.data[t];null===r?e.data[t]=n:r.value=n}(e,a,y);const M=o.values;for(let H=0;H<M.length;H++){const Y=M[H],Me=[];for(let Ue=0;Ue<Y.length;Ue++){const tt=Y[Ue];if("string"!=typeof tt){const ft=Me.push(tt)-1;Y[Ue]=`\x3c!--\ufffd${ft}\ufffd--\x3e`}}d=IC(e,y,t,n,r,o.cases[H],Y.join(""),Me)|d}d&&function OC(e,t,n){e.push(t,1,n<<2|3)}(n,d,a)}function SC(e){const t=[],n=[];let r=1,o=0;const a=Gc(e=e.replace(Bp,function(d,y,M){return r="select"===M?0:1,o=parseInt(y.substr(1),10),""}));for(let d=0;d<a.length;){let y=a[d++].trim();1===r&&(y=y.replace(/\s*(?:=)?(\w+)\s*/,"$1")),y.length&&t.push(y);const M=Gc(a[d++]);t.length>n.length&&n.push(M)}return{type:r,mainBinding:o,cases:t,values:n}}function Gc(e){if(!e)return[];let t=0;const n=[],r=[],o=/[{}]/g;let a;for(o.lastIndex=0;a=o.exec(e);){const y=a.index;if("}"==a[0]){if(n.pop(),0==n.length){const M=e.substring(t,y);Bp.test(M)?r.push(SC(M)):r.push(M),t=y+1}}else{if(0==n.length){const M=e.substring(t,y);r.push(M),t=y+1}n.push("{")}}const d=e.substring(t);return r.push(d),r}function IC(e,t,n,r,o,a,d,y){const M=[],H=[],Y=[];t.cases.push(a),t.create.push(M),t.remove.push(H),t.update.push(Y);const Ue=bd(Ci()).getInertBodyElement(d),tt=Ja(Ue)||Ue;return tt?Up(e,t,n,r,M,H,Y,tt,o,y,0):0}function Up(e,t,n,r,o,a,d,y,M,H,Y){let Me=0,Ue=y.firstChild;for(;Ue;){const tt=Eo(e,n,1,null);switch(Ue.nodeType){case Node.ELEMENT_NODE:const ft=Ue,wt=ft.tagName.toLowerCase();if(Qa.hasOwnProperty(wt)){Qc(o,ga,wt,M,tt),e.data[tt]=wt;const Zt=ft.attributes;for(let _n=0;_n<Zt.length;_n++){const wn=Zt.item(_n),ji=wn.name.toLowerCase();wn.value.match(va)?Md.hasOwnProperty(ji)&&Vo(d,wn.value,tt,wn.name,0,Za[ji]?os:Ya[ji]?Cd:null):xC(o,tt,wn)}Me=Up(e,t,n,r,o,a,d,Ue,tt,H,Y+1)|Me,Wp(a,tt,Y)}break;case Node.TEXT_NODE:const It=Ue.textContent||"",$t=It.match(va);Qc(o,null,$t?"":It,M,tt),Wp(a,tt,Y),$t&&(Me=Vo(d,It,tt,null,0,null)|Me);break;case Node.COMMENT_NODE:const vt=gC.exec(Ue.textContent||"");if(vt){const _n=H[parseInt(vt[1],10)];Qc(o,_a,"",M,tt),Hp(e,n,r,M,_n,tt),PC(a,tt,Y)}}Ue=Ue.nextSibling}return Me}function Wp(e,t,n){0===n&&e.push(t)}function PC(e,t,n){0===n&&(e.push(~t),e.push(t))}function Qc(e,t,n,r,o){null!==t&&e.push(t),e.push(n,o,function lC(e,t,n){return e|t<<17|n<<1}(0,r,o))}function xC(e,t,n){e.push(t<<1|1,n.name,n.value)}const RC=/\[(\ufffd.+?\ufffd?)\]/,FC=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,kC=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,NC=/{([A-Z0-9_]+)}/g,LC=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,BC=/\/\*/,jC=/\d+\:(\d+)/;function Zc(e,t,n=-1){const r=gn(),o=bt(),a=20+e,d=x(r.consts,t),y=yr();r.firstCreatePass&&function CC(e,t,n,r,o,a){const d=yr(),y=[],M=[],H=[[]];o=function wC(e,t){if(function MC(e){return-1===e}(t))return $p(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,r=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return $p(e.substring(n,r))}}(o,a);const Y=function bC(e){return e.replace(vC," ")}(o).split(yC);for(let Me=0;Me<Y.length;Me++){let Ue=Y[Me];if(0==(1&Me)){const tt=Gc(Ue);for(let ft=0;ft<tt.length;ft++){let wt=tt[ft];if(0==(1&ft)){const It=wt;""!==It&&DC(e,d,H[0],y,M,n,It)}else{const It=wt;if("object"!=typeof It)throw new Error(`Unable to parse ICU expression in "${o}" message.`);Hp(e,n,M,t,It,jp(e,d,H[0],n,y,"",!0).index)}}}else{const tt=47===Ue.charCodeAt(0),wt=(Ue.charCodeAt(tt?1:0),20+Number.parseInt(Ue.substring(tt?2:1)));if(tt)H.shift(),_i(yr(),!1);else{const It=aC(e,H[0],wt);H.unshift([]),_i(It,!0)}}}e.data[r]={create:y,update:M}}(r,null===y?0:y.index,o,a,d,n);const M=r.data[a],Y=th(r,y===o[6]?null:y,o);(function dC(e,t,n,r){const o=e[11];for(let a=0;a<t.length;a++){const d=t[a++],y=t[a],M=(d&Gn.COMMENT)===Gn.COMMENT,H=(d&Gn.APPEND_EAGERLY)===Gn.APPEND_EAGERLY,Y=d>>>Gn.SHIFT;let Me=e[Y];null===Me&&(Me=e[Y]=M?o.createComment(y):ll(o,y)),H&&null!==n&&to(o,n,Me,r,!1)}})(o,M.create,Y,y&&8&y.type?o[y.index]:null),ye(!0)}function Yc(){ye(!1)}function Kp(e,t,n){Zc(e,t,n),Yc()}function Gp(e,t){const n=gn();!function EC(e,t,n){const o=Rn().index,a=[];if(e.firstCreatePass&&null===e.data[t]){for(let d=0;d<n.length;d+=2){const y=n[d],M=n[d+1];if(""!==M){if(mC.test(M))throw new Error(`ICU expressions are not supported in attributes. Message: "${M}".`);Vo(a,M,o,y,TC(a),null)}}e.data[t]=a}}(n,e+20,x(n.consts,t))}function Jc(e){return function cC(e){e&&(Ds|=1<<Math.min(Es,31)),Es++}(di(bt(),R(),e)),Jc}function Qp(e){!function uC(e,t,n){if(Es>0){const r=e.data[n];Fp(e,t,Array.isArray(r)?r:r.update,E()-Es-1,Ds)}Ds=0,Es=0}(gn(),bt(),e+20)}function Zp(e,t={}){return function VC(e,t={}){let n=e;if(RC.test(e)){const r={},o=[0];n=n.replace(FC,(a,d,y)=>{const M=d||y,H=r[M]||[];if(H.length||(M.split("|").forEach(wt=>{const It=wt.match(jC),$t=It?parseInt(It[1],10):0,vt=BC.test(wt);H.push([$t,vt,wt])}),r[M]=H),!H.length)throw new Error(`i18n postprocess: unmatched placeholder - ${M}`);const Y=o[o.length-1];let Me=0;for(let wt=0;wt<H.length;wt++)if(H[wt][0]===Y){Me=wt;break}const[Ue,tt,ft]=H[Me];return tt?o.pop():Y!==Ue&&o.push(Ue),H.splice(Me,1),ft})}return Object.keys(t).length&&(n=n.replace(kC,(r,o,a,d,y,M)=>t.hasOwnProperty(a)?`${o}${t[a]}${M}`:r),n=n.replace(NC,(r,o)=>t.hasOwnProperty(o)?t[o]:r),n=n.replace(LC,(r,o)=>{if(t.hasOwnProperty(o)){const a=t[o];if(!a.length)throw new Error(`i18n postprocess: unmatched ICU - ${r} with key: ${o}`);return a.shift()}return r})),n}(e,t)}function Xc(e,t,n,r,o){if(e=T(e),Array.isArray(e))for(let a=0;a<e.length;a++)Xc(e[a],t,n,r,o);else{const a=gn(),d=bt();let y=wo(e)?e:T(e.provide),M=tf(e);const H=Rn(),Y=1048575&H.providerIndexes,Me=H.directiveStart,Ue=H.providerIndexes>>20;if(wo(e)||!e.multi){const tt=new Jn(M,o,ys),ft=eu(y,t,o?Y:Y+Ue,Me);-1===ft?(js(Yo(H,d),a,y),qc(a,e,t.length),t.push(y),H.directiveStart++,H.directiveEnd++,o&&(H.providerIndexes+=1048576),n.push(tt),d.push(tt)):(n[ft]=tt,d[ft]=tt)}else{const tt=eu(y,t,Y+Ue,Me),ft=eu(y,t,Y,Y+Ue),wt=tt>=0&&n[tt],It=ft>=0&&n[ft];if(o&&!It||!o&&!wt){js(Yo(H,d),a,y);const $t=function WC(e,t,n,r,o){const a=new Jn(e,n,ys);return a.multi=[],a.index=t,a.componentProviders=0,Yp(a,o,r&&!n),a}(o?UC:HC,n.length,o,r,M);!o&&It&&(n[ft].providerFactory=$t),qc(a,e,t.length,0),t.push(y),H.directiveStart++,H.directiveEnd++,o&&(H.providerIndexes+=1048576),n.push($t),d.push($t)}else qc(a,e,tt>-1?tt:ft,Yp(n[o?ft:tt],M,!o&&r));!o&&r&&It&&n[ft].componentProviders++}}}function qc(e,t,n,r){const o=wo(t),a=function Rv(e){return!!e.useClass}(t);if(o||a){const M=(a?T(t.useClass):t).prototype.ngOnDestroy;if(M){const H=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const Y=H.indexOf(n);-1===Y?H.push(n,[r,M]):H[Y+1].push(r,M)}else H.push(n,M)}}}function Yp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function eu(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function HC(e,t,n,r){return tu(this.multi,[])}function UC(e,t,n,r){const o=this.multi;let a;if(this.providerFactory){const d=this.providerFactory.componentProviders,y=Jo(n,n[1],this.providerFactory.index,r);a=y.slice(0,d),tu(o,a);for(let M=d;M<y.length;M++)a.push(y[M])}else a=[],tu(o,a);return a}function tu(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function Jp(e,t=[]){return n=>{n.providersResolver=(r,o)=>function $C(e,t,n){const r=gn();if(r.firstCreatePass){const o=Hn(e);Xc(n,r.data,r.blueprint,o,!0),Xc(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class Xp{}class ba{}class KC{resolveComponentFactory(t){throw function zC(e){const t=Error(`No component factory found for ${C(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Ms=(()=>{class e{}return e.NULL=new KC,e})();function GC(){return $o(Rn(),bt())}function $o(e,t){return new ws(_t(e,t))}let ws=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=GC,e})();function QC(e){return e instanceof ws?e.nativeElement:e}class em{}let ZC=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function JC(){const e=bt(),n=on(Rn().index,e);return function YC(e){return e[11]}(Vn(n)?n:e)}(),e})(),tm=(()=>{class e{}return e.\u0275prov=et({token:e,providedIn:"root",factory:()=>null}),e})();class nm{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const im=new nm("13.2.4"),Ca={};function Da(e,t,n,r,o=!1){for(;null!==n;){const a=t[n.index];if(null!==a&&r.push(F(a)),$n(a))for(let y=10;y<a.length;y++){const M=a[y],H=M[1].firstChild;null!==H&&Da(M[1],M,H,r)}const d=n.type;if(8&d)Da(e,t,n.child,r);else if(32&d){const y=ol(n,t);let M;for(;M=y();)r.push(M)}else if(16&d){const y=lh(t,n);if(Array.isArray(y))r.push(...y);else{const M=us(t[16]);Da(M[1],M,y,r,!0)}}n=o?n.projectionNext:n.next}return r}class Ho{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 Da(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($n(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(ul(t,r),Hs(n,r))}this._attachedToViewContainer=!1}qd(this._lView[1],this._lView)}onDestroy(t){kh(this._lView[1],this._lView,null,t)}markForCheck(){Rl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){kl(this._lView[1],this._lView,this.context)}checkNoChanges(){!function Tv(e,t,n){O(!0);try{kl(e,t,n)}finally{O(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new U(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function by(e,t){ds(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new U(902,"");this._appRef=t}}class XC extends Ho{constructor(t){super(t),this._view=t}detectChanges(){Wh(this._view)}checkNoChanges(){!function Mv(e){O(!0);try{Wh(e)}finally{O(!1)}}(this._view)}get context(){return null}}class rm extends Ms{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Ve(t);return new Ea(n,this.ngModule)}}function om(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const e0=new Kn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Hd});class Ea extends ba{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Vy(e){return e.map(jy).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return om(this.componentDef.inputs)}get outputs(){return om(this.componentDef.outputs)}create(t,n,r,o){const a=(o=o||this.ngModule)?function t0(e,t){return{get:(n,r,o)=>{const a=e.get(n,Ca,o);return a!==Ca||r===Ca?a:t.get(n,r,o)}}}(t,o.injector):t,d=a.get(em,k),y=a.get(tm,null),M=d.createRenderer(null,this.componentDef),H=this.componentDef.selectors[0][0]||"div",Y=r?Fh(M,r,this.componentDef.encapsulation):cl(d.createRenderer(null,this.componentDef),H,function qC(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?tr:null}(H)),Me=this.componentDef.onPush?576:528,Ue=mf(),tt=na(0,null,null,1,0,null,null,null,null,null),ft=hs(null,tt,Ue,Me,null,null,d,M,y,a);let wt,It;Wt(ft);try{const $t=ff(Y,this.componentDef,ft,d,M);if(Y)if(r)ks(M,Y,["ng-version",im.full]);else{const{attrs:vt,classes:Zt}=function $y(e){const t=[],n=[];let r=1,o=2;for(;r<e.length;){let a=e[r];if("string"==typeof a)2===o?""!==a&&t.push(a,e[++r]):8===o&&n.push(a);else{if(!sr(o))break;o=a}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);vt&&ks(M,Y,vt),Zt&&Zt.length>0&&ml(M,Y,Zt.join(" "))}if(It=yn(tt,20),void 0!==n){const vt=It.projection=[];for(let Zt=0;Zt<this.ngContentSelectors.length;Zt++){const _n=n[Zt];vt.push(null!=_n?Array.from(_n):null)}}wt=pf($t,this.componentDef,ft,Ue,[gf]),fs(tt,ft,null)}finally{Ei()}return new sm(this.componentType,wt,$o(It,ft),ft,It)}}class sm extends Xp{constructor(t,n,r,o,a){super(),this.location=r,this._rootLView=o,this._tNode=a,this.instance=n,this.hostView=this.changeDetectorRef=new XC(o),this.componentType=t}get injector(){return new co(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function am(e,t,n,r){return oe(()=>{const o=e;null!==t&&(o.hasOwnProperty("decorators")&&void 0!==o.decorators?o.decorators.push(...t):o.decorators=t),null!==n&&(o.ctorParameters=n),null!==r&&(o.propDecorators=o.hasOwnProperty("propDecorators")&&void 0!==o.propDecorators?Object.assign(Object.assign({},o.propDecorators),r):r)})}class Uo{}class lm{}const Wo=new Map;function um(e){const t=new Set;!function n(r){const o=Pt(r,!0),a=o.id;if(null!==a){(function cm(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${C(t)} vs ${C(t.name)}`)})(a,Wo.get(a),r),Wo.set(a,r)}const d=Er(o.imports);for(const y of d)t.has(y)||(t.add(y),n(y))}(e)}function dm(e){return Wo.get(e)||it[e]}function r0(e,t){return new nu(e,null!=t?t:null)}class nu extends Uo{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new rm(this);const r=Pt(t);this._bootstrapComponents=Er(r.bootstrap),this._r3Injector=ef(t,n,[{provide:Uo,useValue:this},{provide:Ms,useValue:this.componentFactoryResolver}],C(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=Li.THROW_IF_NOT_FOUND,r=V.Default){return t===Li||t===Uo||t===oa?this:this._r3Injector.get(t,n,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Ta extends lm{constructor(t){super(),this.moduleType=t,null!==Pt(t)&&um(t)}create(t){return new nu(this.moduleType,t)}}function hm(e,t,n){const r=Z()+e,o=bt();return o[r]===rn?wr(o,r,n?t.call(n):t()):gs(o,r)}function fm(e,t,n,r){return Dm(bt(),Z(),e,t,n,r)}function pm(e,t,n,r,o){return Em(bt(),Z(),e,t,n,r,o)}function mm(e,t,n,r,o,a){return Tm(bt(),Z(),e,t,n,r,o,a)}function gm(e,t,n,r,o,a,d){return Mm(bt(),Z(),e,t,n,r,o,a,d)}function _m(e,t,n,r,o,a,d,y){const M=Z()+e,H=bt(),Y=Qi(H,M,n,r,o,a);return di(H,M+4,d)||Y?wr(H,M+5,y?t.call(y,n,r,o,a,d):t(n,r,o,a,d)):gs(H,M+5)}function ym(e,t,n,r,o,a,d,y,M){const H=Z()+e,Y=bt(),Me=Qi(Y,H,n,r,o,a);return no(Y,H+4,d,y)||Me?wr(Y,H+6,M?t.call(M,n,r,o,a,d,y):t(n,r,o,a,d,y)):gs(Y,H+6)}function vm(e,t,n,r,o,a,d,y,M,H){const Y=Z()+e,Me=bt();let Ue=Qi(Me,Y,n,r,o,a);return aa(Me,Y+4,d,y,M)||Ue?wr(Me,Y+7,H?t.call(H,n,r,o,a,d,y,M):t(n,r,o,a,d,y,M)):gs(Me,Y+7)}function bm(e,t,n,r,o,a,d,y,M,H,Y){const Me=Z()+e,Ue=bt(),tt=Qi(Ue,Me,n,r,o,a);return Qi(Ue,Me+4,d,y,M,H)||tt?wr(Ue,Me+8,Y?t.call(Y,n,r,o,a,d,y,M,H):t(n,r,o,a,d,y,M,H)):gs(Ue,Me+8)}function Cm(e,t,n,r){return wm(bt(),Z(),e,t,n,r)}function Ss(e,t){const n=e[t];return n===rn?void 0:n}function Dm(e,t,n,r,o,a){const d=t+n;return di(e,d,o)?wr(e,d+1,a?r.call(a,o):r(o)):Ss(e,d+1)}function Em(e,t,n,r,o,a,d){const y=t+n;return no(e,y,o,a)?wr(e,y+2,d?r.call(d,o,a):r(o,a)):Ss(e,y+2)}function Tm(e,t,n,r,o,a,d,y){const M=t+n;return aa(e,M,o,a,d)?wr(e,M+3,y?r.call(y,o,a,d):r(o,a,d)):Ss(e,M+3)}function Mm(e,t,n,r,o,a,d,y,M){const H=t+n;return Qi(e,H,o,a,d,y)?wr(e,H+4,M?r.call(M,o,a,d,y):r(o,a,d,y)):Ss(e,H+4)}function wm(e,t,n,r,o,a){let d=t+n,y=!1;for(let M=0;M<o.length;M++)di(e,d++,o[M])&&(y=!0);return y?wr(e,d,r.apply(a,o)):Ss(e,d)}function Sm(e,t){const n=gn();let r;const o=e+20;n.firstCreatePass?(r=function o0(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,r.onDestroy)):r=n.data[o];const a=r.factory||(r.factory=ri(r.type)),d=le(ys);try{const y=Ls(!1),M=a();return Ls(y),Cf(n,bt(),o,M),M}finally{le(d)}}function Im(e,t,n){const r=e+20,o=bt(),a=dn(o,r);return Is(o,r)?Dm(o,Z(),t,a.transform,n,a):a.transform(n)}function Pm(e,t,n,r){const o=e+20,a=bt(),d=dn(a,o);return Is(a,o)?Em(a,Z(),t,d.transform,n,r,d):d.transform(n,r)}function Am(e,t,n,r,o){const a=e+20,d=bt(),y=dn(d,a);return Is(d,a)?Tm(d,Z(),t,y.transform,n,r,o,y):y.transform(n,r,o)}function Om(e,t,n,r,o,a){const d=e+20,y=bt(),M=dn(y,d);return Is(y,d)?Mm(y,Z(),t,M.transform,n,r,o,a,M):M.transform(n,r,o,a)}function xm(e,t,n){const r=e+20,o=bt(),a=dn(o,r);return Is(o,r)?wm(o,Z(),t,a.transform,n,a):a.transform.apply(a,n)}function Is(e,t){return e[1].data[t].pure}function iu(e){return t=>{setTimeout(e,void 0,t)}}const Ir=class s0 extends i.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var o,a,d;let y=t,M=n||(()=>null),H=r;if(t&&"object"==typeof t){const Me=t;y=null===(o=Me.next)||void 0===o?void 0:o.bind(Me),M=null===(a=Me.error)||void 0===a?void 0:a.bind(Me),H=null===(d=Me.complete)||void 0===d?void 0:d.bind(Me)}this.__isAsync&&(M=iu(M),y&&(y=iu(y)),H&&(H=iu(H)));const Y=super.subscribe({next:y,error:M,complete:H});return t instanceof u.w0&&t.add(Y),Y}};function a0(){return this._results[So()]()}class Ma{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=So(),r=Ma.prototype;r[n]||(r[n]=a0)}get changes(){return this._changes||(this._changes=new Ir)}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 r=this;r.dirty=!1;const o=Ki(t);(this._changesDetected=!function l_(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],a=t[r];if(n&&(o=n(o),a=n(a)),a!==o)return!1}return!0}(r._results,o,n))&&(r._results=o,r.length=o.length,r.last=o[this.length-1],r.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 Ps=(()=>{class e{}return e.__NG_ELEMENT_ID__=u0,e})();const l0=Ps,c0=class extends l0{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t){const n=this._declarationTContainer.tViews,r=hs(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[19];return null!==a&&(r[19]=a.createEmbeddedView(n)),fs(n,r,t),new Ho(r)}};function u0(){return wa(Rn(),bt())}function wa(e,t){return 4&e.type?new c0(t,e,$o(e,t)):null}let Sa=(()=>{class e{}return e.__NG_ELEMENT_ID__=d0,e})();function d0(){return km(Rn(),bt())}const h0=Sa,Rm=class extends h0{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return $o(this._hostTNode,this._hostLView)}get injector(){return new co(this._hostTNode,this._hostLView)}get parentInjector(){const t=Bs(this._hostTNode,this._hostLView);if(Gu(t)){const n=lo(t,this._hostLView),r=ao(t);return new co(n[1].data[r+8],n)}return new co(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Fm(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){const o=t.createEmbeddedView(n||{});return this.insert(o,r),o}createComponent(t,n,r,o,a){const d=t&&!qo(t);let y;if(d)y=n;else{const Me=n||{};y=Me.index,r=Me.injector,o=Me.projectableNodes,a=Me.ngModuleRef}const M=d?t:new Ea(Ve(t)),H=r||this.parentInjector;if(!a&&null==M.ngModule){const Ue=(d?H:this.parentInjector).get(Uo,null);Ue&&(a=Ue)}const Y=M.create(H,o,void 0,a);return this.insert(Y.hostView,y),Y}insert(t,n){const r=t._lView,o=r[1];if(function L(e){return $n(e[3])}(r)){const Y=this.indexOf(t);if(-1!==Y)this.detach(Y);else{const Me=r[3],Ue=new Rm(Me,Me[6],Me[3]);Ue.detach(Ue.indexOf(t))}}const a=this._adjustIndex(n),d=this._lContainer;!function Dy(e,t,n,r){const o=10+r,a=n.length;r>0&&(n[o-1][4]=t),r<a-10?(t[4]=n[o],od(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;const d=t[17];null!==d&&n!==d&&function Ey(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 y=t[19];null!==y&&y.insertView(e),t[2]|=128}(o,r,d,a);const y=fl(a,d),M=r[11],H=Ys(M,d[7]);return null!==H&&function vy(e,t,n,r,o,a){r[0]=o,r[6]=t,ds(e,r,n,1,o,a)}(o,d[6],M,r,H,y),t.attachToViewContainerRef(),od(ru(d),a,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Fm(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=ul(this._lContainer,n);r&&(Hs(ru(this._lContainer),n),qd(r[1],r))}detach(t){const n=this._adjustIndex(t,-1),r=ul(this._lContainer,n);return r&&null!=Hs(ru(this._lContainer),n)?new Ho(r):null}_adjustIndex(t,n=0){return null==t?this.length+n:t}};function Fm(e){return e[8]}function ru(e){return e[8]||(e[8]=[])}function km(e,t){let n;const r=t[e.index];if($n(r))n=r;else{let o;if(8&e.type)o=F(r);else{const a=t[11];o=a.createComment("");const d=_t(e,t);to(a,Ys(a,d),o,function Sy(e,t){return sn(e)?e.nextSibling(t):t.nextSibling}(a,d),!1)}t[e.index]=n=Uh(r,t,o,e),ia(t,n)}return new Rm(n,e,t)}class ou{constructor(t){this.queryList=t,this.matches=null}clone(){return new ou(this.queryList)}setDirty(){this.queryList.setDirty()}}class su{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,o=[];for(let a=0;a<r;a++){const d=n.getByIndex(a);o.push(this.queries[d.indexInDeclarationView].clone())}return new su(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!==Wm(t,n).matches&&this.queries[n].setDirty()}}class Nm{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class au{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].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 r=0;r<this.length;r++){const o=null!==n?n.length:0,a=this.getByIndex(r).embeddedTView(t,o);a&&(a.indexInDeclarationView=r,null!==n?n.push(a):n=[a])}return null!==n?new au(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class lu{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 lu(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){const a=r[o];this.matchTNodeWithReadOption(t,n,m0(n,a)),this.matchTNodeWithReadOption(t,n,Vs(n,t,a,!1,!1))}else r===Ps?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Vs(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const o=this.metadata.read;if(null!==o)if(o===ws||o===Sa||o===Ps&&4&n.type)this.addMatch(n.index,-2);else{const a=Vs(n,t,o,!1,!1);null!==a&&this.addMatch(n.index,a)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function m0(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function _0(e,t,n,r){return-1===n?function g0(e,t){return 11&e.type?$o(e,t):4&e.type?wa(e,t):null}(t,e):-2===n?function y0(e,t,n){return n===ws?$o(t,e):n===Ps?wa(t,e):n===Sa?km(t,e):void 0}(e,t,r):Jo(e,e[1],n,t)}function Lm(e,t,n,r){const o=t[19].queries[r];if(null===o.matches){const a=e.data,d=n.matches,y=[];for(let M=0;M<d.length;M+=2){const H=d[M];y.push(H<0?null:_0(t,a[H],d[M+1],n.metadata.read))}o.matches=y}return o.matches}function cu(e,t,n,r){const o=e.queries.getByIndex(n),a=o.matches;if(null!==a){const d=Lm(e,t,o,n);for(let y=0;y<a.length;y+=2){const M=a[y];if(M>0)r.push(d[y/2]);else{const H=a[y+1],Y=t[-M];for(let Me=10;Me<Y.length;Me++){const Ue=Y[Me];Ue[17]===Ue[3]&&cu(Ue[1],Ue,H,r)}if(null!==Y[9]){const Me=Y[9];for(let Ue=0;Ue<Me.length;Ue++){const tt=Me[Ue];cu(tt[1],tt,H,r)}}}}}return r}function Bm(e){const t=bt(),n=gn(),r=Mt();Vt(r+1);const o=Wm(n,r);if(e.dirty&&an(t)===(2==(2&o.metadata.flags))){if(null===o.matches)e.reset([]);else{const a=o.crossesNgTemplate?cu(n,t,r,[]):Lm(n,t,o,r);e.reset(a,QC),e.notifyOnChanges()}return!0}return!1}function jm(e,t,n){const r=gn();r.firstCreatePass&&(Um(r,new Nm(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),Hm(r,bt(),t)}function Vm(e,t,n,r){const o=gn();if(o.firstCreatePass){const a=Rn();Um(o,new Nm(t,n,r),a.index),function b0(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)}Hm(o,bt(),n)}function $m(){return function v0(e,t){return e[19].queries[t].queryList}(bt(),Mt())}function Hm(e,t,n){const r=new Ma(4==(4&n));kh(e,t,r,r.destroy),null===t[19]&&(t[19]=new su),t[19].queries.push(new ou(r))}function Um(e,t,n){null===e.queries&&(e.queries=new au),e.queries.track(new lu(t,n))}function Wm(e,t){return e.queries.getByIndex(t)}function zm(e,t){return wa(e,t)}const vi=(()=>({\u0275\u0275attribute:Gl,\u0275\u0275attributeInterpolate1:Ql,\u0275\u0275attributeInterpolate2:Zl,\u0275\u0275attributeInterpolate3:Yl,\u0275\u0275attributeInterpolate4:Jl,\u0275\u0275attributeInterpolate5:Xl,\u0275\u0275attributeInterpolate6:ql,\u0275\u0275attributeInterpolate7:ec,\u0275\u0275attributeInterpolate8:tc,\u0275\u0275attributeInterpolateV:nc,\u0275\u0275defineComponent:re,\u0275\u0275defineDirective:He,\u0275\u0275defineInjectable:et,\u0275\u0275defineInjector:pe,\u0275\u0275defineNgModule:Bt,\u0275\u0275definePipe:ue,\u0275\u0275directiveInject:ys,\u0275\u0275getInheritedFactory:nd,\u0275\u0275inject:ai,\u0275\u0275injectAttribute:Na,\u0275\u0275invalidFactory:Ff,\u0275\u0275invalidFactoryDep:Ua,\u0275\u0275templateRefExtractor:zm,\u0275\u0275NgOnChangesFeature:Ai,\u0275\u0275ProvidersFeature:Jp,\u0275\u0275CopyDefinitionFeature:yf,\u0275\u0275InheritDefinitionFeature:Wl,\u0275\u0275nextContext:Vf,\u0275\u0275namespaceHTML:Ht,\u0275\u0275namespaceMathML:Zo,\u0275\u0275namespaceSVG:Qo,\u0275\u0275enableBindings:Kr,\u0275\u0275disableBindings:Gr,\u0275\u0275elementStart:ca,\u0275\u0275elementEnd:ua,\u0275\u0275element:lc,\u0275\u0275elementContainerStart:da,\u0275\u0275elementContainerEnd:ha,\u0275\u0275elementContainer:cc,\u0275\u0275pureFunction0:hm,\u0275\u0275pureFunction1:fm,\u0275\u0275pureFunction2:pm,\u0275\u0275pureFunction3:mm,\u0275\u0275pureFunction4:gm,\u0275\u0275pureFunction5:_m,\u0275\u0275pureFunction6:ym,\u0275\u0275pureFunction7:vm,\u0275\u0275pureFunction8:bm,\u0275\u0275pureFunctionV:Cm,\u0275\u0275getCurrentView:kf,\u0275\u0275restoreView:so,\u0275\u0275listener:dc,\u0275\u0275projection:Hf,\u0275\u0275syntheticHostProperty:zc,\u0275\u0275syntheticHostListener:hc,\u0275\u0275pipeBind1:Im,\u0275\u0275pipeBind2:Pm,\u0275\u0275pipeBind3:Am,\u0275\u0275pipeBind4:Om,\u0275\u0275pipeBindV:xm,\u0275\u0275projectionDef:$f,\u0275\u0275hostProperty:Wc,\u0275\u0275property:sc,\u0275\u0275propertyInterpolate:pc,\u0275\u0275propertyInterpolate1:fa,\u0275\u0275propertyInterpolate2:mc,\u0275\u0275propertyInterpolate3:gc,\u0275\u0275propertyInterpolate4:_c,\u0275\u0275propertyInterpolate5:yc,\u0275\u0275propertyInterpolate6:vc,\u0275\u0275propertyInterpolate7:bc,\u0275\u0275propertyInterpolate8:Cc,\u0275\u0275propertyInterpolateV:Dc,\u0275\u0275pipe:Sm,\u0275\u0275queryRefresh:Bm,\u0275\u0275viewQuery:jm,\u0275\u0275loadQuery:$m,\u0275\u0275contentQuery:Vm,\u0275\u0275reference:Df,\u0275\u0275classMap:Yf,\u0275\u0275classMapInterpolate1:rp,\u0275\u0275classMapInterpolate2:op,\u0275\u0275classMapInterpolate3:sp,\u0275\u0275classMapInterpolate4:ap,\u0275\u0275classMapInterpolate5:lp,\u0275\u0275classMapInterpolate6:cp,\u0275\u0275classMapInterpolate7:up,\u0275\u0275classMapInterpolate8:dp,\u0275\u0275classMapInterpolateV:hp,\u0275\u0275styleMap:lr,\u0275\u0275styleMapInterpolate1:fp,\u0275\u0275styleMapInterpolate2:pp,\u0275\u0275styleMapInterpolate3:mp,\u0275\u0275styleMapInterpolate4:gp,\u0275\u0275styleMapInterpolate5:_p,\u0275\u0275styleMapInterpolate6:yp,\u0275\u0275styleMapInterpolate7:vp,\u0275\u0275styleMapInterpolate8:bp,\u0275\u0275styleMapInterpolateV:Cp,\u0275\u0275styleProp:Ec,\u0275\u0275stylePropInterpolate1:kc,\u0275\u0275stylePropInterpolate2:Nc,\u0275\u0275stylePropInterpolate3:Lc,\u0275\u0275stylePropInterpolate4:Bc,\u0275\u0275stylePropInterpolate5:jc,\u0275\u0275stylePropInterpolate6:Vc,\u0275\u0275stylePropInterpolate7:$c,\u0275\u0275stylePropInterpolate8:Hc,\u0275\u0275stylePropInterpolateV:Uc,\u0275\u0275classProp:Tc,\u0275\u0275advance:_h,\u0275\u0275template:bf,\u0275\u0275text:ip,\u0275\u0275textInterpolate:wc,\u0275\u0275textInterpolate1:ma,\u0275\u0275textInterpolate2:Sc,\u0275\u0275textInterpolate3:Ic,\u0275\u0275textInterpolate4:Pc,\u0275\u0275textInterpolate5:Ac,\u0275\u0275textInterpolate6:Oc,\u0275\u0275textInterpolate7:xc,\u0275\u0275textInterpolate8:Rc,\u0275\u0275textInterpolateV:Fc,\u0275\u0275i18n:Kp,\u0275\u0275i18nAttributes:Gp,\u0275\u0275i18nExp:Jc,\u0275\u0275i18nStart:Zc,\u0275\u0275i18nEnd:Yc,\u0275\u0275i18nApply:Qp,\u0275\u0275i18nPostprocess:Zp,\u0275\u0275resolveWindow:Ud,\u0275\u0275resolveDocument:Wd,\u0275\u0275resolveBody:zd,\u0275\u0275setComponentScope:b,\u0275\u0275setNgModuleScope:jt,\u0275\u0275sanitizeHtml:Id,\u0275\u0275sanitizeStyle:Pd,\u0275\u0275sanitizeResourceUrl:qa,\u0275\u0275sanitizeScript:Ad,\u0275\u0275sanitizeUrl:Xa,\u0275\u0275sanitizeUrlOrResourceUrl:Rd,\u0275\u0275trustConstantHtml:Od,\u0275\u0275trustConstantResourceUrl:xd,forwardRef:A,resolveForwardRef:T}))();let zo=null;function E0(){zo=null}const As=[];let uu=!1;function Km(){if(!uu){uu=!0;try{for(let e=As.length-1;e>=0;e--){const{moduleType:t,ngModule:n}=As[e];n.declarations&&n.declarations.every(Gm)&&(As.splice(e,1),w0(t,n))}}finally{uu=!1}}}function Gm(e){return Array.isArray(e)?e.every(Gm):!!T(e)}function Qm(e,t={}){Zm(e,t),function T0(e,t){As.push({moduleType:e,ngModule:t})}(e,t)}function Zm(e,t,n=!1){const r=Ki(t.declarations||Et);let o=null;Object.defineProperty(e,ce,{configurable:!0,get:()=>(null===o&&(o=ni().compileNgModule(vi,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:Ki(t.bootstrap||Et).map(T),declarations:r.map(T),imports:Ki(t.imports||Et).map(T).map(qm),exports:Ki(t.exports||Et).map(T).map(qm),schemas:t.schemas?Ki(t.schemas):null,id:t.id||null}),o.schemas||(o.schemas=[])),o)});let a=null;Object.defineProperty(e,J,{get:()=>{if(null===a){const y=ni();a=y.compileFactory(vi,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,deps:Ks(e),target:y.FactoryTarget.NgModule,typeArgumentCount:0})}return a},configurable:!1});let d=null;Object.defineProperty(e,St,{get:()=>{if(null===d){const y={name:e.name,type:e,providers:t.providers||Et,imports:[(t.imports||Et).map(T),(t.exports||Et).map(T)]};d=ni().compileInjector(vi,`ng:///${e.name}/\u0275inj.js`,y)}return d},configurable:!1})}let Ia=new WeakMap,hu=new WeakMap;function M0(){Ia=new WeakMap,hu=new WeakMap,As.length=0}function w0(e,t){const n=Ki(t.declarations||Et),r=Os(e);n.forEach(o=>{o.hasOwnProperty(ln)?fu(Ve(o),r):!o.hasOwnProperty(Ut)&&!o.hasOwnProperty(Xt)&&(o.ngSelectorScope=e)})}function fu(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map(n=>n.hasOwnProperty(ln)?Ve(n):lt(n)).filter(n=>!!n),e.pipeDefs=()=>Array.from(t.compilation.pipes).map(n=>Rt(n)),e.schemas=t.schemas,e.tView=null}function Os(e){if(!pu(e))throw new Error(`${e.name} does not have a module def (\u0275mod property)`);const t=Pt(e);if(null!==t.transitiveCompileScopes)return t.transitiveCompileScopes;const n={schemas:t.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return Er(t.imports).forEach(r=>{const o=r;if(!pu(o))throw new Error(`Importing ${o.name} which does not have a \u0275mod property`);const a=Os(o);a.exported.directives.forEach(d=>n.compilation.directives.add(d)),a.exported.pipes.forEach(d=>n.compilation.pipes.add(d))}),Er(t.declarations).forEach(r=>{Rt(r)?n.compilation.pipes.add(r):n.compilation.directives.add(r)}),Er(t.exports).forEach(r=>{const o=r;if(pu(o)){const a=Os(o);a.exported.directives.forEach(d=>{n.compilation.directives.add(d),n.exported.directives.add(d)}),a.exported.pipes.forEach(d=>{n.compilation.pipes.add(d),n.exported.pipes.add(d)})}else Rt(o)?n.exported.pipes.add(o):n.exported.directives.add(o)}),t.transitiveCompileScopes=n,n}function qm(e){return function S0(e){return void 0!==e.ngModule}(e)?e.ngModule:e}function pu(e){return!!Pt(e)}let mu=0;function eg(e,t){let n=null;(function w_(e,t){pd(t)&&(_o.set(e,t),rs.add(e))})(e,t),ng(e,t),Object.defineProperty(e,ln,{get:()=>{if(null===n){const r=ni();if(pd(t)){const H=[`Component '${e.name}' is not resolved:`];throw t.templateUrl&&H.push(` - templateUrl: ${t.templateUrl}`),t.styleUrls&&t.styleUrls.length&&H.push(` - styleUrls: ${JSON.stringify(t.styleUrls)}`),H.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(H.join("\n"))}const o=function D0(){return zo}();let a=t.preserveWhitespaces;void 0===a&&(a=null!==o&&void 0!==o.preserveWhitespaces&&o.preserveWhitespaces);let d=t.encapsulation;void 0===d&&(d=null!==o&&void 0!==o.defaultEncapsulation?o.defaultEncapsulation:ht.Emulated);const y=t.templateUrl||`ng:///${e.name}/template.html`,M=Object.assign(Object.assign({},ig(e,t)),{typeSourceSpan:r.createParseSourceSpan("Component",e.name,y),template:t.template||"",preserveWhitespaces:a,styles:t.styles||Et,animations:t.animations,directives:[],changeDetection:t.changeDetection,pipes:new Map,encapsulation:d,interpolation:t.interpolation,viewProviders:t.viewProviders||null});mu++;try{M.usesInheritance&&rg(e),n=r.compileComponent(vi,y,M)}finally{mu--}if(0===mu&&Km(),function I0(e){return void 0!==e.ngSelectorScope}(e)){const H=Os(e.ngSelectorScope);fu(n,H)}}return n},configurable:!1})}function gu(e,t){let n=null;ng(e,t||{}),Object.defineProperty(e,Ut,{get:()=>{if(null===n){const r=tg(e,t||{});n=ni().compileDirective(vi,r.sourceMapUrl,r.metadata)}return n},configurable:!1})}function tg(e,t){const n=e&&e.name,r=`ng:///${n}/\u0275dir.js`,o=ni(),a=ig(e,t);return a.typeSourceSpan=o.createParseSourceSpan("Directive",n,r),a.usesInheritance&&rg(e),{metadata:a,sourceMapUrl:r}}function ng(e,t){let n=null;Object.defineProperty(e,J,{get:()=>{if(null===n){const r=tg(e,t),o=ni();n=o.compileFactory(vi,`ng:///${e.name}/\u0275fac.js`,{name:r.metadata.name,type:r.metadata.type,typeArgumentCount:0,deps:Ks(e),target:o.FactoryTarget.Directive})}return n},configurable:!1})}function P0(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function ig(e,t){const n=za(),r=n.ownPropMetadata(e);return{name:e.name,type:e,selector:void 0!==t.selector?t.selector:null,host:t.host||Nt,propMetadata:r,inputs:t.inputs||Et,outputs:t.outputs||Et,queries:og(e,r,sg),lifecycle:{usesOnChanges:n.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!P0(e),exportAs:x0(t.exportAs),providers:t.providers||null,viewQueries:og(e,r,ag)}}function rg(e){const t=Object.prototype;let n=Object.getPrototypeOf(e.prototype).constructor;for(;n&&n!==t;)!lt(n)&&!Ve(n)&&F0(n)&&gu(n,null),n=Object.getPrototypeOf(n)}function A0(e){return"string"==typeof e?cg(e):T(e)}function O0(e,t){return{propertyName:e,predicate:A0(t.selector),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static,emitDistinctChangesOnly:!!t.emitDistinctChangesOnly}}function og(e,t,n){const r=[];for(const o in t)if(t.hasOwnProperty(o)){const a=t[o];a.forEach(d=>{if(n(d)){if(!d.selector)throw new Error(`Can't construct a query for the property "${o}" of "${he(e)}" since the query selector wasn't defined.`);if(a.some(lg))throw new Error("Cannot combine @Input decorators with query decorators");r.push(O0(o,d))}})}return r}function x0(e){return void 0===e?null:cg(e)}function sg(e){const t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function ag(e){const t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function lg(e){return"Input"===e.ngMetadataName}function cg(e){return e.split(",").map(t=>t.trim())}const R0=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function F0(e){const t=za();if(R0.some(r=>t.hasLifecycleHook(e,r)))return!0;const n=t.propMetadata(e);for(const r in n){const o=n[r];for(let a=0;a<o.length;a++){const d=o[a],y=d.ngMetadataName;if(lg(d)||sg(d)||ag(d)||"Output"===y||"HostBinding"===y||"HostListener"===y)return!0}}return!1}function ug(e,t){let n=null,r=null;Object.defineProperty(e,J,{get:()=>{if(null===r){const o=dg(e,t),a=ni();r=a.compileFactory(vi,`ng:///${o.name}/\u0275fac.js`,{name:o.name,type:o.type,typeArgumentCount:0,deps:Ks(e),target:a.FactoryTarget.Pipe})}return r},configurable:!1}),Object.defineProperty(e,Xt,{get:()=>{if(null===n){const o=dg(e,t);n=ni().compilePipe(vi,`ng:///${o.name}/\u0275pipe.js`,o)}return n},configurable:!1})}function dg(e,t){return{type:e,name:e.name,pipeName:t.name,pure:void 0===t.pure||t.pure}}const hg=po("Directive",(e={})=>e,void 0,void 0,(e,t)=>gu(e,t)),k0=po("Component",(e={})=>Object.assign({changeDetection:De.Default},e),hg,void 0,(e,t)=>eg(e,t)),N0=po("Pipe",e=>Object.assign({pure:!0},e),void 0,void 0,(e,t)=>ug(e,t)),L0=Hr("Input",e=>({bindingPropertyName:e})),B0=Hr("Output",e=>({bindingPropertyName:e})),j0=Hr("HostBinding",e=>({hostPropertyName:e})),V0=Hr("HostListener",(e,t)=>({eventName:e,args:t})),$0=po("NgModule",e=>e,void 0,void 0,(e,t)=>Qm(e,t));function Pa(...e){}const _u=new Kn("Application Initializer");let Ko=(()=>{class e{constructor(n){this.appInits=n,this.resolve=Pa,this.reject=Pa,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o<this.appInits.length;o++){const a=this.appInits[o]();if(uc(a))n.push(a);else if(Lf(a)){const d=new Promise((y,M)=>{a.subscribe({complete:y,error:M})});n.push(d)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(ai(_u,8))},e.\u0275prov=et({token:e,factory:e.\u0275fac}),e})();const fg=new Kn("AppId"),pg={provide:fg,useFactory:function H0(){return`${yu()}${yu()}${yu()}`},deps:[]};function yu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const mg=new Kn("Platform Initializer"),gg=new Kn("Platform ID"),_g=new Kn("appBootstrapListener"),U0=new Kn("Application Packages Root URL");let yg=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=et({token:e,factory:e.\u0275fac}),e})();const Aa=new Kn("LocaleId"),vg=new Kn("DefaultCurrencyCode"),W0=new Kn("Translations"),z0=new Kn("TranslationsFormat");var Pr=(()=>((Pr=Pr||{})[Pr.Error=0]="Error",Pr[Pr.Warning=1]="Warning",Pr[Pr.Ignore=2]="Ignore",Pr))();class bg{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let vu=(()=>{class e{compileModuleSync(n){return new Ta(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),a=Er(Pt(n).declarations).reduce((d,y)=>{const M=Ve(y);return M&&d.push(new Ea(M)),d},[]);return new bg(r,a)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=et({token:e,factory:e.\u0275fac}),e})();const Cg=new Kn("compilerOptions");class K0{}const G0=(()=>Promise.resolve(0))();function bu(e){"undefined"==typeof Zone?G0.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Bi{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ir(!1),this.onMicrotaskEmpty=new Ir(!1),this.onStable=new Ir(!1),this.onError=new Ir(!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=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function Q0(){let e=xt.requestAnimationFrame,t=xt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function J0(e){const t=()=>{!function Y0(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(xt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Du(e),e.isCheckStableRunning=!0,Cu(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Du(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,a,d,y)=>{try{return Dg(e),n.invokeTask(o,a,d,y)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&t(),Eg(e)}},onInvoke:(n,r,o,a,d,y,M)=>{try{return Dg(e),n.invoke(o,a,d,y,M)}finally{e.shouldCoalesceRunChangeDetection&&t(),Eg(e)}},onHasTask:(n,r,o,a)=>{n.hasTask(o,a),r===o&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,Du(e),Cu(e)):"macroTask"==a.change&&(e.hasPendingMacrotasks=a.macroTask))},onHandleError:(n,r,o,a)=>(n.handleError(o,a),e.runOutsideAngular(()=>e.onError.emit(a)),!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,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const a=this._inner,d=a.scheduleEventTask("NgZoneEvent: "+o,t,Z0,Pa,Pa);try{return a.runTask(d,n,r)}finally{a.cancelTask(d)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const Z0={};function Cu(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 Du(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Dg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Eg(e){e._nesting--,Cu(e)}class Tg{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ir,this.onMicrotaskEmpty=new Ir,this.onStable=new Ir,this.onError=new Ir}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}let Mg=(()=>{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(),bu(()=>{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())bu(()=>{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(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.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,r,o){let a=-1;r&&r>0&&(a=setTimeout(()=>{this._callbacks=this._callbacks.filter(d=>d.timeoutId!==a),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:a,updateCb:o})}whenStable(n,r,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,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(ai(Bi))},e.\u0275prov=et({token:e,factory:e.\u0275fac}),e})(),Eu=(()=>{class e{constructor(){this._applications=new Map,Tu.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}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,r=!0){return Tu.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=et({token:e,factory:e.\u0275fac}),e})();class X0{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}function q0(e){Tu=e}let dr,Tu=new X0;function wg(e,t,n){const r=new Ta(n);return Promise.resolve(r)}function Sg(e){return e.isBoundToModule}const Mu=new Kn("AllowMultipleToken");class eD{constructor(t,n){this.name=t,this.token=n}}function Ig(e){if(dr&&!dr.destroyed&&!dr.injector.get(Mu,!1))throw new U(400,"");dr=e.get(Su);const t=e.get(mg,null);return t&&t.forEach(n=>n()),dr}function Pg(e,t,n=[]){const r=`Platform: ${t}`,o=new Kn(r);return(a=[])=>{let d=wu();if(!d||d.injector.get(Mu,!1))if(e)e(n.concat(a).concat({provide:o,useValue:!0}));else{const y=n.concat(a).concat({provide:o,useValue:!0},{provide:Ll,useValue:"platform"});Ig(Li.create({providers:y,name:r}))}return Ag()}}function Ag(e){const t=wu();if(!t)throw new U(401,"");return t}function tD(){dr&&!dr.destroyed&&dr.destroy()}function wu(){return dr&&!dr.destroyed?dr:null}let Su=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const y=function nD(e,t){let n;return n="noop"===e?new Tg:("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}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),M=[{provide:Bi,useValue:y}];return y.run(()=>{const H=Li.create({providers:M,parent:this.injector,name:n.moduleType.name}),Y=n.create(H),Me=Y.injector.get(cs,null);if(!Me)throw new U(402,"");return y.runOutsideAngular(()=>{const Ue=y.onError.subscribe({next:tt=>{Me.handleError(tt)}});Y.onDestroy(()=>{Iu(this._modules,Y),Ue.unsubscribe()})}),function iD(e,t,n){try{const r=n();return uc(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(Me,y,()=>{const Ue=Y.injector.get(Ko);return Ue.runInitializers(),Ue.donePromise.then(()=>(Mp(Y.injector.get(Aa,bs)||bs),this._moduleDoBootstrap(Y),Y))})})}bootstrapModule(n,r=[]){const o=Og({},r);return wg(0,0,n).then(a=>this.bootstrapModuleFactory(a,o))}_moduleDoBootstrap(n){const r=n.injector.get(xs);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new U(403,"");n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new U(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(ai(Li))},e.\u0275prov=et({token:e,factory:e.\u0275fac}),e})();function Og(e,t){return Array.isArray(t)?t.reduce(Og,e):Object.assign(Object.assign({},e),t)}let xs=(()=>{class e{constructor(n,r,o,a,d){this._zone=n,this._injector=r,this._exceptionHandler=o,this._componentFactoryResolver=a,this._initStatus=d,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 y=new m.y(H=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{H.next(this._stable),H.complete()})}),M=new m.y(H=>{let Y;this._zone.runOutsideAngular(()=>{Y=this._zone.onStable.subscribe(()=>{Bi.assertNotInAngularZone(),bu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,H.next(!0))})})});const Me=this._zone.onUnstable.subscribe(()=>{Bi.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{H.next(!1)}))});return()=>{Y.unsubscribe(),Me.unsubscribe()}});this.isStable=(0,c.T)(y,M.pipe((0,s.B)()))}bootstrap(n,r){if(!this._initStatus.done)throw new U(405,"");let o;o=n instanceof ba?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);const a=Sg(o)?void 0:this._injector.get(Uo),y=o.create(Li.NULL,[],r||o.selector,a),M=y.location.nativeElement,H=y.injector.get(Mg,null),Y=H&&y.injector.get(Eu);return H&&Y&&Y.registerApplication(M,H),y.onDestroy(()=>{this.detachView(y.hostView),Iu(this.components,y),Y&&Y.unregisterApplication(M)}),this._loadComponent(y),y}tick(){if(this._runningTick)throw new U(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 r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Iu(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(_g,[]).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)(ai(Bi),ai(Li),ai(cs),ai(Ms),ai(Ko))},e.\u0275prov=et({token:e,factory:e.\u0275fac}),e})();function Iu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Rg=!0,Fg=!1;function oD(){return Fg=!0,Rg}function sD(){if(Fg)throw new Error("Cannot enable prod mode after platform setup.");Rg=!1}function aD(e){const t=dm(e);if(!t)throw kg(e);return new Ta(t)}function lD(e){const t=dm(e);if(!t)throw kg(e);return t}function kg(e){return new Error(`No module with ID ${e} loaded`)}let Ng=(()=>{class e{}return e.__NG_ELEMENT_ID__=Lg,e})();function Lg(e){return function cD(e,t,n){if(bi(e)&&!n){const r=on(e.index,t);return new Ho(r,r)}return 47&e.type?new Ho(t[16],t):null}(Rn(),bt(),16==(16&e))}class Bg extends Ng{}class uD extends Bg{}class dD{constructor(t,n){this.name=t,this.callback=n}}function hD(e){return e.map(t=>t.nativeElement)}class Pu{constructor(t){this.nativeNode=t}get parent(){const t=this.nativeNode.parentNode;return t?new Rs(t):null}get injector(){return lf(this.nativeNode)}get componentInstance(){const t=this.nativeNode;return t&&($l(t)||sf(t))}get context(){return $l(this.nativeNode)||rf(this.nativeNode)}get listeners(){return uf(this.nativeNode).filter(t=>"dom"===t.type)}get references(){return function jv(e){const t=ci(e);return null===t?{}:(void 0===t.localRefs&&(t.localRefs=function ry(e,t){const n=e[1].data[t];if(n&&n.localNames){const r={};let o=n.index+1;for(let a=0;a<n.localNames.length;a+=2)r[n.localNames[a]]=e[o],o++;return r}return null}(t.lView,t.nodeIndex)),t.localRefs||{})}(this.nativeNode)}get providerTokens(){return function Lv(e){const t=ci(e);if(null===t)return[];const r=t.lView[1],o=r.data[t.nodeIndex],a=[],y=o.directiveEnd;for(let M=1048575&o.providerIndexes;M<y;M++){let H=r.data[M];$v(H)&&(H=H.type),a.push(H)}return a}(this.nativeNode)}}class Rs extends Pu{constructor(t){super(t)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){const t=ci(this.nativeNode);return null!==t?t.lView[1].data[t.nodeIndex].value:this.nativeNode.nodeName}get properties(){const t=ci(this.nativeNode);if(null===t)return{};const n=t.lView,r=n[1].data,o=r[t.nodeIndex],a={};return function fD(e,t){if(e){let n=Object.getPrototypeOf(e);const r=Node.prototype;for(;null!==n&&n!==r;){const o=Object.getOwnPropertyDescriptors(n);for(let a in o)if(!a.startsWith("__")&&!a.startsWith("on")){const d=e[a];pD(d)&&(t[a]=d)}n=Object.getPrototypeOf(n)}}}(this.nativeElement,a),function mD(e,t,n,r){let o=t.propertyBindings;if(null!==o)for(let a=0;a<o.length;a++){const d=o[a],M=r[d].split("\ufffd"),H=M[0];if(M.length>1){let Y=M[1];for(let Me=1;Me<M.length-1;Me++)Y+=Q(n[d+Me-1])+M[Me+1];e[H]=Y}else e[H]=n[d]}}(a,o,n,r),a}get attributes(){const t={},n=this.nativeElement;if(!n)return t;const r=ci(n);if(null===r)return{};const a=r.lView[1].data[r.nodeIndex].attrs,d=[];if(a){let M=0;for(;M<a.length;){const H=a[M];if("string"!=typeof H)break;t[H]=a[M+1],d.push(H.toLowerCase()),M+=2}}const y=n.attributes;for(let M=0;M<y.length;M++){const H=y[M],Y=H.name.toLowerCase();-1===d.indexOf(Y)&&(t[Y]=H.value)}return t}get styles(){return this.nativeElement&&this.nativeElement.style?this.nativeElement.style:{}}get classes(){const t={},r=this.nativeElement.className;return("string"!=typeof r?r.baseVal.split(" "):r.split(" ")).forEach(a=>t[a]=!0),t}get childNodes(){const t=this.nativeNode.childNodes,n=[];for(let r=0;r<t.length;r++)n.push(Go(t[r]));return n}get children(){const t=this.nativeElement;if(!t)return[];const n=t.children,r=[];for(let o=0;o<n.length;o++)r.push(Go(n[o]));return r}query(t){return this.queryAll(t)[0]||null}queryAll(t){const n=[];return jg(this,t,n,!0),n}queryAllNodes(t){const n=[];return jg(this,t,n,!1),n}triggerEventHandler(t,n){const r=this.nativeNode,o=[];this.listeners.forEach(a=>{if(a.name===t){const d=a.callback;d.call(r,n),o.push(d)}}),"function"==typeof r.eventListeners&&r.eventListeners(t).forEach(a=>{if(-1!==a.toString().indexOf("__ngUnwrap__")){const d=a("__ngUnwrap__");return-1===o.indexOf(d)&&d.call(r,n)}})}}function pD(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function jg(e,t,n,r){const o=ci(e.nativeNode);null!==o?ro(o.lView[1].data[o.nodeIndex],o.lView,t,n,r,e.nativeNode):Ou(e.nativeNode,t,n,r)}function ro(e,t,n,r,o,a){const d=function Lt(e,t){const n=null===e?-1:e.index;return-1!==n?F(t[n]):null}(e,t);if(11&e.type){if(Au(d,n,r,o,a),bi(e)){const M=on(e.index,t);M&&M[1].firstChild&&ro(M[1].firstChild,M,n,r,o,a)}else e.child&&ro(e.child,t,n,r,o,a),d&&Ou(d,n,r,o);const y=t[e.index];$n(y)&&Vg(y,n,r,o,a)}else if(4&e.type){const y=t[e.index];Au(y[7],n,r,o,a),Vg(y,n,r,o,a)}else if(16&e.type){const y=t[16],H=y[6].projection[e.projection];if(Array.isArray(H))for(let Y of H)Au(Y,n,r,o,a);else if(H){const Y=y[3];ro(Y[1].data[H.index],Y,n,r,o,a)}}else e.child&&ro(e.child,t,n,r,o,a);if(a!==d){const y=4&e.flags?e.projectionNext:e.next;y&&ro(y,t,n,r,o,a)}}function Vg(e,t,n,r,o){for(let a=10;a<e.length;a++){const d=e[a],y=d[1].firstChild;y&&ro(y,d,t,n,r,o)}}function Au(e,t,n,r,o){if(o!==e){const a=Go(e);if(!a)return;(r&&a instanceof Rs&&t(a)&&-1===n.indexOf(a)||!r&&t(a)&&-1===n.indexOf(a))&&n.push(a)}}function Ou(e,t,n,r){const o=e.childNodes,a=o.length;for(let d=0;d<a;d++){const y=o[d],M=Go(y);M&&((r&&M instanceof Rs&&t(M)&&-1===n.indexOf(M)||!r&&t(M)&&-1===n.indexOf(M))&&n.push(M),Ou(y,t,n,r))}}const Ru="__ng_debug__";function Go(e){return e instanceof Node?(e.hasOwnProperty(Ru)||(e[Ru]=e.nodeType==Node.ELEMENT_NODE?new Rs(e):new Pu(e)),e[Ru]):null}function gD(e){return null}class $g{constructor(){}supports(t){return ms(t)}create(t){return new Hg(t)}}const _D=(e,t)=>t;class Hg{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||_D}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,a=null;for(;n||r;){const d=!r||n&&n.currentIndex<Wg(r,o,a)?n:r,y=Wg(d,o,a),M=d.currentIndex;if(d===r)o--,r=r._nextRemoved;else if(n=n._next,null==d.previousIndex)o++;else{a||(a=[]);const H=y-o,Y=M-o;if(H!=Y){for(let Ue=0;Ue<H;Ue++){const tt=Ue<a.length?a[Ue]:a[Ue]=0,ft=tt+Ue;Y<=ft&&ft<H&&(a[Ue]=tt+1)}a[d.previousIndex]=Y-H}}y!==M&&t(d,y,M)}}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=[]),!ms(t))throw new U(900,"");return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let o,a,d,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let y=0;y<this.length;y++)a=t[y],d=this._trackByFn(y,a),null!==n&&Object.is(n.trackById,d)?(r&&(n=this._verifyReinsertion(n,a,d,y)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,d,y),r=!0),n=n._next}else o=0,function qv(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[So()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,y=>{d=this._trackByFn(o,y),null!==n&&Object.is(n.trackById,d)?(r&&(n=this._verifyReinsertion(n,y,d,o)),Object.is(n.item,y)||this._addIdentityChange(n,y)):(n=this._mismatch(n,y,d,o),r=!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,r,o){let a;return null===t?a=this._itTail:(a=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,a,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,a,o)):t=this._addAfter(new yD(n,r),a,o),t}_verifyReinsertion(t,n,r,o){let a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==a?t=this._reinsertAfter(a,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,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,a=t._nextRemoved;return null===o?this._removalsHead=a:o._nextRemoved=a,null===a?this._removalsTail=o:a._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){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 Ug),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._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 Ug),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 yD{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 vD{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 r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class Ug{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new vD,this.map.set(n,r)),r.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 Wg(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}class zg{constructor(){}supports(t){return t instanceof Map||Kl(t)}create(){return new bD}}class bD{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||Kl(t)))throw new U(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,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const a=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,a)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._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 a=o._prev,d=o._next;return a&&(a._next=d),d&&(d._prev=a),o._next=null,o._prev=null,o}const r=new CD(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_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(r=>n(t[r],r))}}class CD{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 Fu([new $g])}let Fu=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Kg()),deps:[[e,new qr,new Xr]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new U(901,"")}}return e.\u0275prov=et({token:e,providedIn:"root",factory:Kg}),e})();function Gg(){return new ku([new zg])}let ku=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Gg()),deps:[[e,new qr,new Xr]]}}find(n){const r=this.factories.find(a=>a.supports(n));if(r)return r;throw new U(901,"")}}return e.\u0275prov=et({token:e,providedIn:"root",factory:Gg}),e})();const DD=[new zg],TD=new Fu([new $g]),MD=new ku(DD),wD=Pg(null,"core",[{provide:gg,useValue:"unknown"},{provide:Su,deps:[Li]},{provide:Eu,deps:[]},{provide:yg,deps:[]}]),PD=[{provide:xs,useClass:xs,deps:[Bi,Li,cs,Ms,Ko]},{provide:e0,deps:[Bi],useFactory:function AD(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:Ko,useClass:Ko,deps:[[new Xr,_u]]},{provide:vu,useClass:vu,deps:[]},pg,{provide:Aa,useFactory:function SD(e){return e||function ID(){return"undefined"!=typeof $localize&&$localize.locale||bs}()},deps:[[new is(Aa),new Xr,new qr]]},{provide:vg,useValue:"USD"}];let OD=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(ai(xs))},e.\u0275mod=Bt({type:e}),e.\u0275inj=pe({providers:PD}),e})();const xD=!0;function RD(e){return ni().compileDirectiveDeclaration(vi,`ng:///${e.type.name}/\u0275fac.js`,e)}function FD(e){var t,n;am(e.type,e.decorators,null!==(t=e.ctorParameters)&&void 0!==t?t:null,null!==(n=e.propDecorators)&&void 0!==n?n:null)}function kD(e){return ni().compileComponentDeclaration(vi,`ng:///${e.type.name}/\u0275cmp.js`,e)}function ND(e){return ni(function LD(e){switch(e){case ti.Directive:return"directive";case ti.Component:return"component";case ti.Injectable:return"injectable";case ti.Pipe:return"pipe";case ti.NgModule:return"NgModule"}}(e.target)).compileFactoryDeclaration(vi,`ng:///${e.type.name}/\u0275fac.js`,e)}function BD(e){return ni().compileInjectableDeclaration(vi,`ng:///${e.type.name}/\u0275prov.js`,e)}function jD(e){return ni().compileInjectorDeclaration(vi,`ng:///${e.type.name}/\u0275inj.js`,e)}function VD(e){return ni().compileNgModuleDeclaration(vi,`ng:///${e.type.name}/\u0275mod.js`,e)}function $D(e){return ni().compilePipeDeclaration(vi,`ng:///${e.type.name}/\u0275pipe.js`,e)}},3075:(je,g,l)=>{"use strict";l.r(g),l.d(g,{AbstractControl:()=>At,AbstractControlDirective:()=>Ze,AbstractFormGroupDirective:()=>Ln,COMPOSITION_BUFFER_MODE:()=>v,CheckboxControlValueAccessor:()=>h,CheckboxRequiredValidator:()=>Ri,ControlContainer:()=>gt,DefaultValueAccessor:()=>N,EmailValidator:()=>Ci,FormArray:()=>Ft,FormArrayName:()=>wi,FormBuilder:()=>an,FormControl:()=>zt,FormControlDirective:()=>Yi,FormControlName:()=>Xi,FormGroup:()=>mn,FormGroupDirective:()=>Mi,FormGroupName:()=>li,FormsModule:()=>yn,MaxLengthValidator:()=>ee,MaxValidator:()=>zn,MinLengthValidator:()=>sn,MinValidator:()=>mi,NG_ASYNC_VALIDATORS:()=>he,NG_VALIDATORS:()=>Q,NG_VALUE_ACCESSOR:()=>C,NgControl:()=>mt,NgControlStatus:()=>V,NgControlStatusGroup:()=>ae,NgForm:()=>In,NgModel:()=>$n,NgModelGroup:()=>hi,NgSelectOption:()=>gr,NumberValueAccessor:()=>ei,PatternValidator:()=>se,RadioControlValueAccessor:()=>Zn,RangeValueAccessor:()=>$i,ReactiveFormsModule:()=>dn,RequiredValidator:()=>gi,SelectControlValueAccessor:()=>Ii,SelectMultipleControlValueAccessor:()=>Oi,VERSION:()=>Pn,Validators:()=>_e,\u0275InternalFormsSharedModule:()=>Lt,\u0275NgNoValidate:()=>pi,\u0275NgSelectMultipleOption:()=>_r});var i=l(5e3),u=l(9808),m=l(188),c=l(4128),s=l(4004);let _=(()=>{class L{constructor(I,X){this._renderer=I,this._elementRef=X,this.onChange=Xe=>{},this.onTouched=()=>{}}setProperty(I,X){this._renderer.setProperty(this._elementRef.nativeElement,I,X)}registerOnTouched(I){this.onTouched=I}registerOnChange(I){this.onChange=I}setDisabledState(I){this.setProperty("disabled",I)}}return L.\u0275fac=function(I){return new(I||L)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef))},L.\u0275dir=i.\u0275\u0275defineDirective({type:L}),L})(),D=(()=>{class L extends _{}return L.\u0275fac=function(){let x;return function(X){return(x||(x=i.\u0275\u0275getInheritedFactory(L)))(X||L)}}(),L.\u0275dir=i.\u0275\u0275defineDirective({type:L,features:[i.\u0275\u0275InheritDefinitionFeature]}),L})();const C=new i.InjectionToken("NgValueAccessor"),w={provide:C,useExisting:(0,i.forwardRef)(()=>h),multi:!0};let h=(()=>{class L extends D{writeValue(I){this.setProperty("checked",I)}}return L.\u0275fac=function(){let x;return function(X){return(x||(x=i.\u0275\u0275getInheritedFactory(L)))(X||L)}}(),L.\u0275dir=i.\u0275\u0275defineDirective({type:L,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(I,X){1&I&&i.\u0275\u0275listener("change",function(Ot){return X.onChange(Ot.target.checked)})("blur",function(){return X.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([w]),i.\u0275\u0275InheritDefinitionFeature]}),L})();const A={provide:C,useExisting:(0,i.forwardRef)(()=>N),multi:!0},v=new i.InjectionToken("CompositionEventMode");let N=(()=>{class L extends _{constructor(I,X,Xe){super(I,X),this._compositionMode=Xe,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function T(){const L=(0,u.\u0275getDOM)()?(0,u.\u0275getDOM)().getUserAgent():"";return/android (\d+)/.test(L.toLowerCase())}())}writeValue(I){this.setProperty("value",null==I?"":I)}_handleInput(I){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(I)}_compositionStart(){this._composing=!0}_compositionEnd(I){this._composing=!1,this._compositionMode&&this.onChange(I)}}return L.\u0275fac=function(I){return new(I||L)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(v,8))},L.\u0275dir=i.\u0275\u0275defineDirective({type:L,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(I,X){1&I&&i.\u0275\u0275listener("input",function(Ot){return X._handleInput(Ot.target.value)})("blur",function(){return X.onTouched()})("compositionstart",function(){return X._compositionStart()})("compositionend",function(Ot){return X._compositionEnd(Ot.target.value)})},features:[i.\u0275\u0275ProvidersFeature([A]),i.\u0275\u0275InheritDefinitionFeature]}),L})();function U(L){return null==L||0===L.length}function fe(L){return null!=L&&"number"==typeof L.length}const Q=new i.InjectionToken("NgValidators"),he=new i.InjectionToken("NgAsyncValidators"),Re=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class _e{static min(x){return be(x)}static max(x){return q(x)}static required(x){return Ce(x)}static requiredTrue(x){return Fe(x)}static email(x){return Ye(x)}static minLength(x){return st(x)}static maxLength(x){return $e(x)}static pattern(x){return de(x)}static nullValidator(x){return null}static compose(x){return ve(x)}static composeAsync(x){return ct(x)}}function be(L){return x=>{if(U(x.value)||U(L))return null;const I=parseFloat(x.value);return!isNaN(I)&&I<L?{min:{min:L,actual:x.value}}:null}}function q(L){return x=>{if(U(x.value)||U(L))return null;const I=parseFloat(x.value);return!isNaN(I)&&I>L?{max:{max:L,actual:x.value}}:null}}function Ce(L){return U(L.value)?{required:!0}:null}function Fe(L){return!0===L.value?null:{required:!0}}function Ye(L){return U(L.value)||Re.test(L.value)?null:{email:!0}}function st(L){return x=>U(x.value)||!fe(x.value)?null:x.value.length<L?{minlength:{requiredLength:L,actualLength:x.value.length}}:null}function $e(L){return x=>fe(x.value)&&x.value.length>L?{maxlength:{requiredLength:L,actualLength:x.value.length}}:null}function de(L){if(!L)return Pe;let x,I;return"string"==typeof L?(I="","^"!==L.charAt(0)&&(I+="^"),I+=L,"$"!==L.charAt(L.length-1)&&(I+="$"),x=new RegExp(I)):(I=L.toString(),x=L),X=>{if(U(X.value))return null;const Xe=X.value;return x.test(Xe)?null:{pattern:{requiredPattern:I,actualValue:Xe}}}}function Pe(L){return null}function z(L){return null!=L}function ge(L){const x=(0,i.\u0275isPromise)(L)?(0,m.D)(L):L;return(0,i.\u0275isObservable)(x),x}function ie(L){let x={};return L.forEach(I=>{x=null!=I?Object.assign(Object.assign({},x),I):x}),0===Object.keys(x).length?null:x}function xe(L,x){return x.map(I=>I(L))}function Je(L){return L.map(x=>function me(L){return!L.validate}(x)?x:I=>x.validate(I))}function ve(L){if(!L)return null;const x=L.filter(z);return 0==x.length?null:function(I){return ie(xe(I,x))}}function ze(L){return null!=L?ve(Je(L)):null}function ct(L){if(!L)return null;const x=L.filter(z);return 0==x.length?null:function(I){const X=xe(I,x).map(ge);return(0,c.D)(X).pipe((0,s.U)(ie))}}function Dt(L){return null!=L?ct(Je(L)):null}function Be(L,x){return null===L?[x]:Array.isArray(L)?[...L,x]:[L,x]}function et(L){return L._rawValidators}function ne(L){return L._rawAsyncValidators}function pe(L){return L?Array.isArray(L)?L:[L]:[]}function we(L,x){return Array.isArray(L)?L.includes(x):L===x}function ke(L,x){const I=pe(x);return pe(L).forEach(Xe=>{we(I,Xe)||I.push(Xe)}),I}function Ee(L,x){return pe(x).filter(I=>!we(L,I))}class Ze{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(x){this._rawValidators=x||[],this._composedValidatorFn=ze(this._rawValidators)}_setAsyncValidators(x){this._rawAsyncValidators=x||[],this._composedAsyncValidatorFn=Dt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(x){this._onDestroyCallbacks.push(x)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(x=>x()),this._onDestroyCallbacks=[]}reset(x){this.control&&this.control.reset(x)}hasError(x,I){return!!this.control&&this.control.hasError(x,I)}getError(x,I){return this.control?this.control.getError(x,I):null}}class mt extends Ze{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class gt extends Ze{get formDirective(){return null}get path(){return null}}class St{constructor(x){this._cd=x}is(x){var I,X,Xe;return"submitted"===x?!!(null===(I=this._cd)||void 0===I?void 0:I.submitted):!!(null===(Xe=null===(X=this._cd)||void 0===X?void 0:X.control)||void 0===Xe?void 0:Xe[x])}}let V=(()=>{class L extends St{constructor(I){super(I)}}return L.\u0275fac=function(I){return new(I||L)(i.\u0275\u0275directiveInject(mt,2))},L.\u0275dir=i.\u0275\u0275defineDirective({type:L,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(I,X){2&I&&i.\u0275\u0275classProp("ng-untouched",X.is("untouched"))("ng-touched",X.is("touched"))("ng-pristine",X.is("pristine"))("ng-dirty",X.is("dirty"))("ng-valid",X.is("valid"))("ng-invalid",X.is("invalid"))("ng-pending",X.is("pending"))},features:[i.\u0275\u0275InheritDefinitionFeature]}),L})(),ae=(()=>{class L extends St{constructor(I){super(I)}}return L.\u0275fac=function(I){return new(I||L)(i.\u0275\u0275directiveInject(gt,10))},L.\u0275dir=i.\u0275\u0275defineDirective({type:L,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(I,X){2&I&&i.\u0275\u0275classProp("ng-untouched",X.is("untouched"))("ng-touched",X.is("touched"))("ng-pristine",X.is("pristine"))("ng-dirty",X.is("dirty"))("ng-valid",X.is("valid"))("ng-invalid",X.is("invalid"))("ng-pending",X.is("pending"))("ng-submitted",X.is("submitted"))},features:[i.\u0275\u0275InheritDefinitionFeature]}),L})();function Nt(L,x){return[...x.path,L]}function Et(L,x){ce(L,x),x.valueAccessor.writeValue(L.value),function B(L,x){x.valueAccessor.registerOnChange(I=>{L._pendingValue=I,L._pendingChange=!0,L._pendingDirty=!0,"change"===L.updateOn&&re(L,x)})}(L,x),function b(L,x){const I=(X,Xe)=>{x.valueAccessor.writeValue(X),Xe&&x.viewToModelUpdate(X)};L.registerOnChange(I),x._registerOnDestroy(()=>{L._unregisterOnChange(I)})}(L,x),function P(L,x){x.valueAccessor.registerOnTouched(()=>{L._pendingTouched=!0,"blur"===L.updateOn&&L._pendingChange&&re(L,x),"submit"!==L.updateOn&&L.markAsTouched()})}(L,x),function Xt(L,x){if(x.valueAccessor.setDisabledState){const I=X=>{x.valueAccessor.setDisabledState(X)};L.registerOnDisabledChange(I),x._registerOnDestroy(()=>{L._unregisterOnDisabledChange(I)})}}(L,x)}function ln(L,x,I=!0){const X=()=>{};x.valueAccessor&&(x.valueAccessor.registerOnChange(X),x.valueAccessor.registerOnTouched(X)),J(L,x),L&&(x._invokeOnDestroyCallbacks(),L._registerOnCollectionChange(()=>{}))}function Ut(L,x){L.forEach(I=>{I.registerOnValidatorChange&&I.registerOnValidatorChange(x)})}function ce(L,x){const I=et(L);null!==x.validator?L.setValidators(Be(I,x.validator)):"function"==typeof I&&L.setValidators([I]);const X=ne(L);null!==x.asyncValidator?L.setAsyncValidators(Be(X,x.asyncValidator)):"function"==typeof X&&L.setAsyncValidators([X]);const Xe=()=>L.updateValueAndValidity();Ut(x._rawValidators,Xe),Ut(x._rawAsyncValidators,Xe)}function J(L,x){let I=!1;if(null!==L){if(null!==x.validator){const Xe=et(L);if(Array.isArray(Xe)&&Xe.length>0){const Ot=Xe.filter(Dn=>Dn!==x.validator);Ot.length!==Xe.length&&(I=!0,L.setValidators(Ot))}}if(null!==x.asyncValidator){const Xe=ne(L);if(Array.isArray(Xe)&&Xe.length>0){const Ot=Xe.filter(Dn=>Dn!==x.asyncValidator);Ot.length!==Xe.length&&(I=!0,L.setAsyncValidators(Ot))}}}const X=()=>{};return Ut(x._rawValidators,X),Ut(x._rawAsyncValidators,X),I}function re(L,x){L._pendingDirty&&L.markAsDirty(),L.setValue(L._pendingValue,{emitModelToViewChange:!1}),x.viewToModelUpdate(L._pendingValue),L._pendingChange=!1}function $(L,x){ce(L,x)}function jt(L,x){if(!L.hasOwnProperty("model"))return!1;const I=L.model;return!!I.isFirstChange()||!Object.is(x,I.currentValue)}function He(L,x){L._syncPendingControls(),x.forEach(I=>{const X=I.control;"submit"===X.updateOn&&X._pendingChange&&(I.viewToModelUpdate(X._pendingValue),X._pendingChange=!1)})}function ue(L,x){if(!x)return null;let I,X,Xe;return Array.isArray(x),x.forEach(Ot=>{Ot.constructor===N?I=Ot:function Le(L){return Object.getPrototypeOf(L.constructor)===D}(Ot)?X=Ot:Xe=Ot}),Xe||X||I||null}function Ve(L,x){const I=L.indexOf(x);I>-1&&L.splice(I,1)}const Pt="VALID",tn="INVALID",bn="PENDING",kn="DISABLED";function jn(L){return(K(L)?L.validators:L)||null}function Cn(L){return Array.isArray(L)?ze(L):L||null}function Qn(L,x){return(K(x)?x.asyncValidators:L)||null}function xn(L){return Array.isArray(L)?Dt(L):L||null}function K(L){return null!=L&&!Array.isArray(L)&&"object"==typeof L}const Se=L=>L instanceof zt,G=L=>L instanceof mn,Ae=L=>L instanceof Ft;function qe(L){return Se(L)?L.value:L.getRawValue()}function at(L,x){const I=G(L),X=L.controls;if(!(I?Object.keys(X):X).length)throw new i.\u0275RuntimeError(1e3,"");if(!X[x])throw new i.\u0275RuntimeError(1001,"")}function Tt(L,x){G(L),L._forEachChild((X,Xe)=>{if(void 0===x[Xe])throw new i.\u0275RuntimeError(1002,"")})}class At{constructor(x,I){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=x,this._rawAsyncValidators=I,this._composedValidatorFn=Cn(this._rawValidators),this._composedAsyncValidatorFn=xn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(x){this._rawValidators=this._composedValidatorFn=x}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(x){this._rawAsyncValidators=this._composedAsyncValidatorFn=x}get parent(){return this._parent}get valid(){return this.status===Pt}get invalid(){return this.status===tn}get pending(){return this.status==bn}get disabled(){return this.status===kn}get enabled(){return this.status!==kn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(x){this._rawValidators=x,this._composedValidatorFn=Cn(x)}setAsyncValidators(x){this._rawAsyncValidators=x,this._composedAsyncValidatorFn=xn(x)}addValidators(x){this.setValidators(ke(x,this._rawValidators))}addAsyncValidators(x){this.setAsyncValidators(ke(x,this._rawAsyncValidators))}removeValidators(x){this.setValidators(Ee(x,this._rawValidators))}removeAsyncValidators(x){this.setAsyncValidators(Ee(x,this._rawAsyncValidators))}hasValidator(x){return we(this._rawValidators,x)}hasAsyncValidator(x){return we(this._rawAsyncValidators,x)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(x={}){this.touched=!0,this._parent&&!x.onlySelf&&this._parent.markAsTouched(x)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(x=>x.markAllAsTouched())}markAsUntouched(x={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(I=>{I.markAsUntouched({onlySelf:!0})}),this._parent&&!x.onlySelf&&this._parent._updateTouched(x)}markAsDirty(x={}){this.pristine=!1,this._parent&&!x.onlySelf&&this._parent.markAsDirty(x)}markAsPristine(x={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(I=>{I.markAsPristine({onlySelf:!0})}),this._parent&&!x.onlySelf&&this._parent._updatePristine(x)}markAsPending(x={}){this.status=bn,!1!==x.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!x.onlySelf&&this._parent.markAsPending(x)}disable(x={}){const I=this._parentMarkedDirty(x.onlySelf);this.status=kn,this.errors=null,this._forEachChild(X=>{X.disable(Object.assign(Object.assign({},x),{onlySelf:!0}))}),this._updateValue(),!1!==x.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},x),{skipPristineCheck:I})),this._onDisabledChange.forEach(X=>X(!0))}enable(x={}){const I=this._parentMarkedDirty(x.onlySelf);this.status=Pt,this._forEachChild(X=>{X.enable(Object.assign(Object.assign({},x),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:x.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},x),{skipPristineCheck:I})),this._onDisabledChange.forEach(X=>X(!1))}_updateAncestors(x){this._parent&&!x.onlySelf&&(this._parent.updateValueAndValidity(x),x.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(x){this._parent=x}updateValueAndValidity(x={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Pt||this.status===bn)&&this._runAsyncValidator(x.emitEvent)),!1!==x.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!x.onlySelf&&this._parent.updateValueAndValidity(x)}_updateTreeValidity(x={emitEvent:!0}){this._forEachChild(I=>I._updateTreeValidity(x)),this.updateValueAndValidity({onlySelf:!0,emitEvent:x.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?kn:Pt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(x){if(this.asyncValidator){this.status=bn,this._hasOwnPendingAsyncValidator=!0;const I=ge(this.asyncValidator(this));this._asyncValidationSubscription=I.subscribe(X=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(X,{emitEvent:x})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(x,I={}){this.errors=x,this._updateControlsErrors(!1!==I.emitEvent)}get(x){return function Sn(L,x,I){if(null==x||(Array.isArray(x)||(x=x.split(I)),Array.isArray(x)&&0===x.length))return null;let X=L;return x.forEach(Xe=>{X=G(X)?X.controls.hasOwnProperty(Xe)?X.controls[Xe]:null:Ae(X)&&X.at(Xe)||null}),X}(this,x,".")}getError(x,I){const X=I?this.get(I):this;return X&&X.errors?X.errors[x]:null}hasError(x,I){return!!this.getError(x,I)}get root(){let x=this;for(;x._parent;)x=x._parent;return x}_updateControlsErrors(x){this.status=this._calculateStatus(),x&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(x)}_initObservables(){this.valueChanges=new i.EventEmitter,this.statusChanges=new i.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?kn:this.errors?tn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(bn)?bn:this._anyControlsHaveStatus(tn)?tn:Pt}_anyControlsHaveStatus(x){return this._anyControls(I=>I.status===x)}_anyControlsDirty(){return this._anyControls(x=>x.dirty)}_anyControlsTouched(){return this._anyControls(x=>x.touched)}_updatePristine(x={}){this.pristine=!this._anyControlsDirty(),this._parent&&!x.onlySelf&&this._parent._updatePristine(x)}_updateTouched(x={}){this.touched=this._anyControlsTouched(),this._parent&&!x.onlySelf&&this._parent._updateTouched(x)}_isBoxedValue(x){return"object"==typeof x&&null!==x&&2===Object.keys(x).length&&"value"in x&&"disabled"in x}_registerOnCollectionChange(x){this._onCollectionChange=x}_setUpdateStrategy(x){K(x)&&null!=x.updateOn&&(this._updateOn=x.updateOn)}_parentMarkedDirty(x){return!x&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class zt extends At{constructor(x=null,I,X){super(jn(I),Qn(X,I)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(x),this._setUpdateStrategy(I),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),K(I)&&I.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(x)?x.value:x)}setValue(x,I={}){this.value=this._pendingValue=x,this._onChange.length&&!1!==I.emitModelToViewChange&&this._onChange.forEach(X=>X(this.value,!1!==I.emitViewToModelChange)),this.updateValueAndValidity(I)}patchValue(x,I={}){this.setValue(x,I)}reset(x=this.defaultValue,I={}){this._applyFormState(x),this.markAsPristine(I),this.markAsUntouched(I),this.setValue(this.value,I),this._pendingChange=!1}_updateValue(){}_anyControls(x){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(x){this._onChange.push(x)}_unregisterOnChange(x){Ve(this._onChange,x)}registerOnDisabledChange(x){this._onDisabledChange.push(x)}_unregisterOnDisabledChange(x){Ve(this._onDisabledChange,x)}_forEachChild(x){}_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(x){this._isBoxedValue(x)?(this.value=this._pendingValue=x.value,x.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=x}}class mn extends At{constructor(x,I,X){super(jn(I),Qn(X,I)),this.controls=x,this._initObservables(),this._setUpdateStrategy(I),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(x,I){return this.controls[x]?this.controls[x]:(this.controls[x]=I,I.setParent(this),I._registerOnCollectionChange(this._onCollectionChange),I)}addControl(x,I,X={}){this.registerControl(x,I),this.updateValueAndValidity({emitEvent:X.emitEvent}),this._onCollectionChange()}removeControl(x,I={}){this.controls[x]&&this.controls[x]._registerOnCollectionChange(()=>{}),delete this.controls[x],this.updateValueAndValidity({emitEvent:I.emitEvent}),this._onCollectionChange()}setControl(x,I,X={}){this.controls[x]&&this.controls[x]._registerOnCollectionChange(()=>{}),delete this.controls[x],I&&this.registerControl(x,I),this.updateValueAndValidity({emitEvent:X.emitEvent}),this._onCollectionChange()}contains(x){return this.controls.hasOwnProperty(x)&&this.controls[x].enabled}setValue(x,I={}){Tt(this,x),Object.keys(x).forEach(X=>{at(this,X),this.controls[X].setValue(x[X],{onlySelf:!0,emitEvent:I.emitEvent})}),this.updateValueAndValidity(I)}patchValue(x,I={}){null!=x&&(Object.keys(x).forEach(X=>{this.controls[X]&&this.controls[X].patchValue(x[X],{onlySelf:!0,emitEvent:I.emitEvent})}),this.updateValueAndValidity(I))}reset(x={},I={}){this._forEachChild((X,Xe)=>{X.reset(x[Xe],{onlySelf:!0,emitEvent:I.emitEvent})}),this._updatePristine(I),this._updateTouched(I),this.updateValueAndValidity(I)}getRawValue(){return this._reduceChildren({},(x,I,X)=>(x[X]=qe(I),x))}_syncPendingControls(){let x=this._reduceChildren(!1,(I,X)=>!!X._syncPendingControls()||I);return x&&this.updateValueAndValidity({onlySelf:!0}),x}_forEachChild(x){Object.keys(this.controls).forEach(I=>{const X=this.controls[I];X&&x(X,I)})}_setUpControls(){this._forEachChild(x=>{x.setParent(this),x._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(x){for(const I of Object.keys(this.controls)){const X=this.controls[I];if(this.contains(I)&&x(X))return!0}return!1}_reduceValue(){return this._reduceChildren({},(x,I,X)=>((I.enabled||this.disabled)&&(x[X]=I.value),x))}_reduceChildren(x,I){let X=x;return this._forEachChild((Xe,Ot)=>{X=I(X,Xe,Ot)}),X}_allControlsDisabled(){for(const x of Object.keys(this.controls))if(this.controls[x].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Ft extends At{constructor(x,I,X){super(jn(I),Qn(X,I)),this.controls=x,this._initObservables(),this._setUpdateStrategy(I),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(x){return this.controls[x]}push(x,I={}){this.controls.push(x),this._registerControl(x),this.updateValueAndValidity({emitEvent:I.emitEvent}),this._onCollectionChange()}insert(x,I,X={}){this.controls.splice(x,0,I),this._registerControl(I),this.updateValueAndValidity({emitEvent:X.emitEvent})}removeAt(x,I={}){this.controls[x]&&this.controls[x]._registerOnCollectionChange(()=>{}),this.controls.splice(x,1),this.updateValueAndValidity({emitEvent:I.emitEvent})}setControl(x,I,X={}){this.controls[x]&&this.controls[x]._registerOnCollectionChange(()=>{}),this.controls.splice(x,1),I&&(this.controls.splice(x,0,I),this._registerControl(I)),this.updateValueAndValidity({emitEvent:X.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(x,I={}){Tt(this,x),x.forEach((X,Xe)=>{at(this,Xe),this.at(Xe).setValue(X,{onlySelf:!0,emitEvent:I.emitEvent})}),this.updateValueAndValidity(I)}patchValue(x,I={}){null!=x&&(x.forEach((X,Xe)=>{this.at(Xe)&&this.at(Xe).patchValue(X,{onlySelf:!0,emitEvent:I.emitEvent})}),this.updateValueAndValidity(I))}reset(x=[],I={}){this._forEachChild((X,Xe)=>{X.reset(x[Xe],{onlySelf:!0,emitEvent:I.emitEvent})}),this._updatePristine(I),this._updateTouched(I),this.updateValueAndValidity(I)}getRawValue(){return this.controls.map(x=>qe(x))}clear(x={}){this.controls.length<1||(this._forEachChild(I=>I._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:x.emitEvent}))}_syncPendingControls(){let x=this.controls.reduce((I,X)=>!!X._syncPendingControls()||I,!1);return x&&this.updateValueAndValidity({onlySelf:!0}),x}_forEachChild(x){this.controls.forEach((I,X)=>{x(I,X)})}_updateValue(){this.value=this.controls.filter(x=>x.enabled||this.disabled).map(x=>x.value)}_anyControls(x){return this.controls.some(I=>I.enabled&&x(I))}_setUpControls(){this._forEachChild(x=>this._registerControl(x))}_allControlsDisabled(){for(const x of this.controls)if(x.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(x){x.setParent(this),x._registerOnCollectionChange(this._onCollectionChange)}}const En={provide:gt,useExisting:(0,i.forwardRef)(()=>In)},nn=(()=>Promise.resolve(null))();let In=(()=>{class L extends gt{constructor(I,X){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new i.EventEmitter,this.form=new mn({},ze(I),Dt(X))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(I){nn.then(()=>{const X=this._findContainer(I.path);I.control=X.registerControl(I.name,I.control),Et(I.control,I),I.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(I)})}getControl(I){return this.form.get(I.path)}removeControl(I){nn.then(()=>{const X=this._findContainer(I.path);X&&X.removeControl(I.name),this._directives.delete(I)})}addFormGroup(I){nn.then(()=>{const X=this._findContainer(I.path),Xe=new mn({});$(Xe,I),X.registerControl(I.name,Xe),Xe.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(I){nn.then(()=>{const X=this._findContainer(I.path);X&&X.removeControl(I.name)})}getFormGroup(I){return this.form.get(I.path)}updateModel(I,X){nn.then(()=>{this.form.get(I.path).setValue(X)})}setValue(I){this.control.setValue(I)}onSubmit(I){return this.submitted=!0,He(this.form,this._directives),this.ngSubmit.emit(I),!1}onReset(){this.resetForm()}resetForm(I){this.form.reset(I),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(I){return I.pop(),I.length?this.form.get(I):this.form}}return L.\u0275fac=function(I){return new(I||L)(i.\u0275\u0275directiveInject(Q,10),i.\u0275\u0275directiveInject(he,10))},L.\u0275dir=i.\u0275\u0275defineDirective({type:L,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(I,X){1&I&&i.\u0275\u0275listener("submit",function(Ot){return X.onSubmit(Ot)})("reset",function(){return X.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([En]),i.\u0275\u0275InheritDefinitionFeature]}),L})(),Ln=(()=>{class L extends gt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Nt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return L.\u0275fac=function(){let x;return function(X){return(x||(x=i.\u0275\u0275getInheritedFactory(L)))(X||L)}}(),L.\u0275dir=i.\u0275\u0275defineDirective({type:L,features:[i.\u0275\u0275InheritDefinitionFeature]}),L})();const cn={provide:gt,useExisting:(0,i.forwardRef)(()=>hi)};let hi=(()=>{class L extends Ln{constructor(I,X,Xe){super(),this._parent=I,this._setValidators(X),this._setAsyncValidators(Xe)}_checkParentType(){}}return L.\u0275fac=function(I){return new(I||L)(i.\u0275\u0275directiveInject(gt,5),i.\u0275\u0275directiveInject(Q,10),i.\u0275\u0275directiveInject(he,10))},L.\u0275dir=i.\u0275\u0275defineDirective({type:L,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[i.\u0275\u0275ProvidersFeature([cn]),i.\u0275\u0275InheritDefinitionFeature]}),L})();const fi={provide:mt,useExisting:(0,i.forwardRef)(()=>$n)},Vn=(()=>Promise.resolve(null))();let $n=(()=>{class L extends mt{constructor(I,X,Xe,Ot,Dn){super(),this._changeDetectorRef=Dn,this.control=new zt,this._registered=!1,this.update=new i.EventEmitter,this._parent=I,this._setValidators(X),this._setAsyncValidators(Xe),this.valueAccessor=ue(0,Ot)}ngOnChanges(I){if(this._checkForErrors(),!this._registered||"name"in I){if(this._registered&&(this._checkName(),this.formDirective)){const X=I.name.previousValue;this.formDirective.removeControl({name:X,path:this._getPath(X)})}this._setUpControl()}"isDisabled"in I&&this._updateDisabled(I),jt(I,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(I){this.viewModel=I,this.update.emit(I)}_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(){Et(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(I){Vn.then(()=>{var X;this.control.setValue(I,{emitViewToModelChange:!1}),null===(X=this._changeDetectorRef)||void 0===X||X.markForCheck()})}_updateDisabled(I){const X=I.isDisabled.currentValue,Xe=""===X||X&&"false"!==X;Vn.then(()=>{var Ot;Xe&&!this.control.disabled?this.control.disable():!Xe&&this.control.disabled&&this.control.enable(),null===(Ot=this._changeDetectorRef)||void 0===Ot||Ot.markForCheck()})}_getPath(I){return this._parent?Nt(I,this._parent):[I]}}return L.\u0275fac=function(I){return new(I||L)(i.\u0275\u0275directiveInject(gt,9),i.\u0275\u0275directiveInject(Q,10),i.\u0275\u0275directiveInject(he,10),i.\u0275\u0275directiveInject(C,10),i.\u0275\u0275directiveInject(i.ChangeDetectorRef,8))},L.\u0275dir=i.\u0275\u0275defineDirective({type:L,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i.\u0275\u0275ProvidersFeature([fi]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),L})(),pi=(()=>{class L{}return L.\u0275fac=function(I){return new(I||L)},L.\u0275dir=i.\u0275\u0275defineDirective({type:L,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),L})();const bi={provide:C,useExisting:(0,i.forwardRef)(()=>ei),multi:!0};let ei=(()=>{class L extends D{writeValue(I){this.setProperty("value",null==I?"":I)}registerOnChange(I){this.onChange=X=>{I(""==X?null:parseFloat(X))}}}return L.\u0275fac=function(){let x;return function(X){return(x||(x=i.\u0275\u0275getInheritedFactory(L)))(X||L)}}(),L.\u0275dir=i.\u0275\u0275defineDirective({type:L,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(I,X){1&I&&i.\u0275\u0275listener("input",function(Ot){return X.onChange(Ot.target.value)})("blur",function(){return X.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([bi]),i.\u0275\u0275InheritDefinitionFeature]}),L})();const Hn={provide:C,useExisting:(0,i.forwardRef)(()=>Zn),multi:!0};let hr=(()=>{class L{}return L.\u0275fac=function(I){return new(I||L)},L.\u0275mod=i.\u0275\u0275defineNgModule({type:L}),L.\u0275inj=i.\u0275\u0275defineInjector({}),L})(),fr=(()=>{class L{constructor(){this._accessors=[]}add(I,X){this._accessors.push([I,X])}remove(I){for(let X=this._accessors.length-1;X>=0;--X)if(this._accessors[X][1]===I)return void this._accessors.splice(X,1)}select(I){this._accessors.forEach(X=>{this._isSameGroup(X,I)&&X[1]!==I&&X[1].fireUncheck(I.value)})}_isSameGroup(I,X){return!!I[0].control&&I[0]._parent===X._control._parent&&I[1].name===X.name}}return L.\u0275fac=function(I){return new(I||L)},L.\u0275prov=i.\u0275\u0275defineInjectable({token:L,factory:L.\u0275fac,providedIn:hr}),L})(),Zn=(()=>{class L extends D{constructor(I,X,Xe,Ot){super(I,X),this._registry=Xe,this._injector=Ot,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(mt),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(I){this._state=I===this.value,this.setProperty("checked",this._state)}registerOnChange(I){this._fn=I,this.onChange=()=>{I(this.value),this._registry.select(this)}}fireUncheck(I){this.writeValue(I)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return L.\u0275fac=function(I){return new(I||L)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(fr),i.\u0275\u0275directiveInject(i.Injector))},L.\u0275dir=i.\u0275\u0275defineDirective({type:L,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(I,X){1&I&&i.\u0275\u0275listener("change",function(){return X.onChange()})("blur",function(){return X.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[i.\u0275\u0275ProvidersFeature([Hn]),i.\u0275\u0275InheritDefinitionFeature]}),L})();const pr={provide:C,useExisting:(0,i.forwardRef)(()=>$i),multi:!0};let $i=(()=>{class L extends D{writeValue(I){this.setProperty("value",parseFloat(I))}registerOnChange(I){this.onChange=X=>{I(""==X?null:parseFloat(X))}}}return L.\u0275fac=function(){let x;return function(X){return(x||(x=i.\u0275\u0275getInheritedFactory(L)))(X||L)}}(),L.\u0275dir=i.\u0275\u0275defineDirective({type:L,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(I,X){1&I&&i.\u0275\u0275listener("change",function(Ot){return X.onChange(Ot.target.value)})("input",function(Ot){return X.onChange(Ot.target.value)})("blur",function(){return X.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([pr]),i.\u0275\u0275InheritDefinitionFeature]}),L})();const Zi=new i.InjectionToken("NgModelWithFormControlWarning"),$r={provide:mt,useExisting:(0,i.forwardRef)(()=>Yi)};let Yi=(()=>{class L extends mt{constructor(I,X,Xe,Ot){super(),this._ngModelWarningConfig=Ot,this.update=new i.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(I),this._setAsyncValidators(X),this.valueAccessor=ue(0,Xe)}set isDisabled(I){}ngOnChanges(I){if(this._isControlChanged(I)){const X=I.form.previousValue;X&&ln(X,this,!1),Et(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}jt(I,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&ln(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(I){this.viewModel=I,this.update.emit(I)}_isControlChanged(I){return I.hasOwnProperty("form")}}return L._ngModelWarningSentOnce=!1,L.\u0275fac=function(I){return new(I||L)(i.\u0275\u0275directiveInject(Q,10),i.\u0275\u0275directiveInject(he,10),i.\u0275\u0275directiveInject(C,10),i.\u0275\u0275directiveInject(Zi,8))},L.\u0275dir=i.\u0275\u0275defineDirective({type:L,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([$r]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),L})();const Ar={provide:gt,useExisting:(0,i.forwardRef)(()=>Mi)};let Mi=(()=>{class L extends gt{constructor(I,X){super(),this.validators=I,this.asyncValidators=X,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.EventEmitter,this._setValidators(I),this._setAsyncValidators(X)}ngOnChanges(I){this._checkFormPresent(),I.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(J(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(I){const X=this.form.get(I.path);return Et(X,I),X.updateValueAndValidity({emitEvent:!1}),this.directives.push(I),X}getControl(I){return this.form.get(I.path)}removeControl(I){ln(I.control||null,I,!1),Ve(this.directives,I)}addFormGroup(I){this._setUpFormContainer(I)}removeFormGroup(I){this._cleanUpFormContainer(I)}getFormGroup(I){return this.form.get(I.path)}addFormArray(I){this._setUpFormContainer(I)}removeFormArray(I){this._cleanUpFormContainer(I)}getFormArray(I){return this.form.get(I.path)}updateModel(I,X){this.form.get(I.path).setValue(X)}onSubmit(I){return this.submitted=!0,He(this.form,this.directives),this.ngSubmit.emit(I),!1}onReset(){this.resetForm()}resetForm(I){this.form.reset(I),this.submitted=!1}_updateDomValue(){this.directives.forEach(I=>{const X=I.control,Xe=this.form.get(I.path);X!==Xe&&(ln(X||null,I),Se(Xe)&&(Et(Xe,I),I.control=Xe))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(I){const X=this.form.get(I.path);$(X,I),X.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(I){if(this.form){const X=this.form.get(I.path);X&&function Ne(L,x){return J(L,x)}(X,I)&&X.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ce(this.form,this),this._oldForm&&J(this._oldForm,this)}_checkFormPresent(){}}return L.\u0275fac=function(I){return new(I||L)(i.\u0275\u0275directiveInject(Q,10),i.\u0275\u0275directiveInject(he,10))},L.\u0275dir=i.\u0275\u0275defineDirective({type:L,selectors:[["","formGroup",""]],hostBindings:function(I,X){1&I&&i.\u0275\u0275listener("submit",function(Ot){return X.onSubmit(Ot)})("reset",function(){return X.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([Ar]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),L})();const Ji={provide:gt,useExisting:(0,i.forwardRef)(()=>li)};let li=(()=>{class L extends Ln{constructor(I,X,Xe){super(),this._parent=I,this._setValidators(X),this._setAsyncValidators(Xe)}_checkParentType(){Or(this._parent)}}return L.\u0275fac=function(I){return new(I||L)(i.\u0275\u0275directiveInject(gt,13),i.\u0275\u0275directiveInject(Q,10),i.\u0275\u0275directiveInject(he,10))},L.\u0275dir=i.\u0275\u0275defineDirective({type:L,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[i.\u0275\u0275ProvidersFeature([Ji]),i.\u0275\u0275InheritDefinitionFeature]}),L})();const mr={provide:gt,useExisting:(0,i.forwardRef)(()=>wi)};let wi=(()=>{class L extends gt{constructor(I,X,Xe){super(),this._parent=I,this._setValidators(X),this._setAsyncValidators(Xe)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Nt(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Or(this._parent)}}return L.\u0275fac=function(I){return new(I||L)(i.\u0275\u0275directiveInject(gt,13),i.\u0275\u0275directiveInject(Q,10),i.\u0275\u0275directiveInject(he,10))},L.\u0275dir=i.\u0275\u0275defineDirective({type:L,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[i.\u0275\u0275ProvidersFeature([mr]),i.\u0275\u0275InheritDefinitionFeature]}),L})();function Or(L){return!(L instanceof li||L instanceof Mi||L instanceof wi)}const xr={provide:mt,useExisting:(0,i.forwardRef)(()=>Xi)};let Xi=(()=>{class L extends mt{constructor(I,X,Xe,Ot,Dn){super(),this._ngModelWarningConfig=Dn,this._added=!1,this.update=new i.EventEmitter,this._ngModelWarningSent=!1,this._parent=I,this._setValidators(X),this._setAsyncValidators(Xe),this.valueAccessor=ue(0,Ot)}set isDisabled(I){}ngOnChanges(I){this._added||this._setUpControl(),jt(I,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(I){this.viewModel=I,this.update.emit(I)}get path(){return Nt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return L._ngModelWarningSentOnce=!1,L.\u0275fac=function(I){return new(I||L)(i.\u0275\u0275directiveInject(gt,13),i.\u0275\u0275directiveInject(Q,10),i.\u0275\u0275directiveInject(he,10),i.\u0275\u0275directiveInject(C,10),i.\u0275\u0275directiveInject(Zi,8))},L.\u0275dir=i.\u0275\u0275defineDirective({type:L,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i.\u0275\u0275ProvidersFeature([xr]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),L})();const Si={provide:C,useExisting:(0,i.forwardRef)(()=>Ii),multi:!0};function Hi(L,x){return null==L?`${x}`:(x&&"object"==typeof x&&(x="Object"),`${L}: ${x}`.slice(0,50))}let Ii=(()=>{class L extends D{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(I){this._compareWith=I}writeValue(I){this.value=I;const Xe=Hi(this._getOptionId(I),I);this.setProperty("value",Xe)}registerOnChange(I){this.onChange=X=>{this.value=this._getOptionValue(X),I(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(I){for(const X of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(X),I))return X;return null}_getOptionValue(I){const X=function Rr(L){return L.split(":")[0]}(I);return this._optionMap.has(X)?this._optionMap.get(X):I}}return L.\u0275fac=function(){let x;return function(X){return(x||(x=i.\u0275\u0275getInheritedFactory(L)))(X||L)}}(),L.\u0275dir=i.\u0275\u0275defineDirective({type:L,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(I,X){1&I&&i.\u0275\u0275listener("change",function(Ot){return X.onChange(Ot.target.value)})("blur",function(){return X.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.\u0275\u0275ProvidersFeature([Si]),i.\u0275\u0275InheritDefinitionFeature]}),L})(),gr=(()=>{class L{constructor(I,X,Xe){this._element=I,this._renderer=X,this._select=Xe,this._select&&(this.id=this._select._registerOption())}set ngValue(I){null!=this._select&&(this._select._optionMap.set(this.id,I),this._setElementValue(Hi(this.id,I)),this._select.writeValue(this._select.value))}set value(I){this._setElementValue(I),this._select&&this._select.writeValue(this._select.value)}_setElementValue(I){this._renderer.setProperty(this._element.nativeElement,"value",I)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return L.\u0275fac=function(I){return new(I||L)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(Ii,9))},L.\u0275dir=i.\u0275\u0275defineDirective({type:L,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),L})();const ri={provide:C,useExisting:(0,i.forwardRef)(()=>Oi),multi:!0};function Pi(L,x){return null==L?`${x}`:("string"==typeof x&&(x=`'${x}'`),x&&"object"==typeof x&&(x="Object"),`${L}: ${x}`.slice(0,50))}let Oi=(()=>{class L extends D{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(I){this._compareWith=I}writeValue(I){let X;if(this.value=I,Array.isArray(I)){const Xe=I.map(Ot=>this._getOptionId(Ot));X=(Ot,Dn)=>{Ot._setSelected(Xe.indexOf(Dn.toString())>-1)}}else X=(Xe,Ot)=>{Xe._setSelected(!1)};this._optionMap.forEach(X)}registerOnChange(I){this.onChange=X=>{const Xe=[],Ot=X.selectedOptions;if(void 0!==Ot){const Dn=Ot;for(let Yn=0;Yn<Dn.length;Yn++){const ir=this._getOptionValue(Dn[Yn].value);Xe.push(ir)}}else{const Dn=X.options;for(let Yn=0;Yn<Dn.length;Yn++){const Di=Dn[Yn];if(Di.selected){const ir=this._getOptionValue(Di.value);Xe.push(ir)}}}this.value=Xe,I(Xe)}}_registerOption(I){const X=(this._idCounter++).toString();return this._optionMap.set(X,I),X}_getOptionId(I){for(const X of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(X)._value,I))return X;return null}_getOptionValue(I){const X=function Ai(L){return L.split(":")[0]}(I);return this._optionMap.has(X)?this._optionMap.get(X)._value:I}}return L.\u0275fac=function(){let x;return function(X){return(x||(x=i.\u0275\u0275getInheritedFactory(L)))(X||L)}}(),L.\u0275dir=i.\u0275\u0275defineDirective({type:L,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(I,X){1&I&&i.\u0275\u0275listener("change",function(Ot){return X.onChange(Ot.target)})("blur",function(){return X.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.\u0275\u0275ProvidersFeature([ri]),i.\u0275\u0275InheritDefinitionFeature]}),L})(),_r=(()=>{class L{constructor(I,X,Xe){this._element=I,this._renderer=X,this._select=Xe,this._select&&(this.id=this._select._registerOption(this))}set ngValue(I){null!=this._select&&(this._value=I,this._setElementValue(Pi(this.id,I)),this._select.writeValue(this._select.value))}set value(I){this._select?(this._value=I,this._setElementValue(Pi(this.id,I)),this._select.writeValue(this._select.value)):this._setElementValue(I)}_setElementValue(I){this._renderer.setProperty(this._element.nativeElement,"value",I)}_setSelected(I){this._renderer.setProperty(this._element.nativeElement,"selected",I)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return L.\u0275fac=function(I){return new(I||L)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(Oi,9))},L.\u0275dir=i.\u0275\u0275defineDirective({type:L,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),L})();function Ui(L){return"number"==typeof L?L:parseInt(L,10)}function xi(L){return"number"==typeof L?L:parseFloat(L)}let Wn=(()=>{class L{constructor(){this._validator=Pe}ngOnChanges(I){if(this.inputName in I){const X=this.normalizeInput(I[this.inputName].currentValue);this._enabled=this.enabled(X),this._validator=this._enabled?this.createValidator(X):Pe,this._onChange&&this._onChange()}}validate(I){return this._validator(I)}registerOnValidatorChange(I){this._onChange=I}enabled(I){return null!=I}}return L.\u0275fac=function(I){return new(I||L)},L.\u0275dir=i.\u0275\u0275defineDirective({type:L,features:[i.\u0275\u0275NgOnChangesFeature]}),L})();const Wi={provide:Q,useExisting:(0,i.forwardRef)(()=>zn),multi:!0};let zn=(()=>{class L extends Wn{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=I=>xi(I),this.createValidator=I=>q(I)}}return L.\u0275fac=function(){let x;return function(X){return(x||(x=i.\u0275\u0275getInheritedFactory(L)))(X||L)}}(),L.\u0275dir=i.\u0275\u0275defineDirective({type:L,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(I,X){2&I&&i.\u0275\u0275attribute("max",X._enabled?X.max:null)},inputs:{max:"max"},features:[i.\u0275\u0275ProvidersFeature([Wi]),i.\u0275\u0275InheritDefinitionFeature]}),L})();const er={provide:Q,useExisting:(0,i.forwardRef)(()=>mi),multi:!0};let mi=(()=>{class L extends Wn{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=I=>xi(I),this.createValidator=I=>be(I)}}return L.\u0275fac=function(){let x;return function(X){return(x||(x=i.\u0275\u0275getInheritedFactory(L)))(X||L)}}(),L.\u0275dir=i.\u0275\u0275defineDirective({type:L,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(I,X){2&I&&i.\u0275\u0275attribute("min",X._enabled?X.min:null)},inputs:{min:"min"},features:[i.\u0275\u0275ProvidersFeature([er]),i.\u0275\u0275InheritDefinitionFeature]}),L})();const tr={provide:Q,useExisting:(0,i.forwardRef)(()=>gi),multi:!0},Fr={provide:Q,useExisting:(0,i.forwardRef)(()=>Ri),multi:!0};let gi=(()=>{class L extends Wn{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=I=>function Un(L){return null!=L&&!1!==L&&"false"!=`${L}`}(I),this.createValidator=I=>Ce}enabled(I){return I}}return L.\u0275fac=function(){let x;return function(X){return(x||(x=i.\u0275\u0275getInheritedFactory(L)))(X||L)}}(),L.\u0275dir=i.\u0275\u0275defineDirective({type:L,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(I,X){2&I&&i.\u0275\u0275attribute("required",X._enabled?"":null)},inputs:{required:"required"},features:[i.\u0275\u0275ProvidersFeature([tr]),i.\u0275\u0275InheritDefinitionFeature]}),L})(),Ri=(()=>{class L extends gi{constructor(){super(...arguments),this.createValidator=I=>Fe}}return L.\u0275fac=function(){let x;return function(X){return(x||(x=i.\u0275\u0275getInheritedFactory(L)))(X||L)}}(),L.\u0275dir=i.\u0275\u0275defineDirective({type:L,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(I,X){2&I&&i.\u0275\u0275attribute("required",X._enabled?"":null)},features:[i.\u0275\u0275ProvidersFeature([Fr]),i.\u0275\u0275InheritDefinitionFeature]}),L})();const nr={provide:Q,useExisting:(0,i.forwardRef)(()=>Ci),multi:!0};let Ci=(()=>{class L extends Wn{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=I=>""===I||!0===I||"true"===I,this.createValidator=I=>Ye}enabled(I){return I}}return L.\u0275fac=function(){let x;return function(X){return(x||(x=i.\u0275\u0275getInheritedFactory(L)))(X||L)}}(),L.\u0275dir=i.\u0275\u0275defineDirective({type:L,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[i.\u0275\u0275ProvidersFeature([nr]),i.\u0275\u0275InheritDefinitionFeature]}),L})();const kr={provide:Q,useExisting:(0,i.forwardRef)(()=>sn),multi:!0};let sn=(()=>{class L extends Wn{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=I=>Ui(I),this.createValidator=I=>st(I)}}return L.\u0275fac=function(){let x;return function(X){return(x||(x=i.\u0275\u0275getInheritedFactory(L)))(X||L)}}(),L.\u0275dir=i.\u0275\u0275defineDirective({type:L,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(I,X){2&I&&i.\u0275\u0275attribute("minlength",X._enabled?X.minlength:null)},inputs:{minlength:"minlength"},features:[i.\u0275\u0275ProvidersFeature([kr]),i.\u0275\u0275InheritDefinitionFeature]}),L})();const k={provide:Q,useExisting:(0,i.forwardRef)(()=>ee),multi:!0};let ee=(()=>{class L extends Wn{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=I=>Ui(I),this.createValidator=I=>$e(I)}}return L.\u0275fac=function(){let x;return function(X){return(x||(x=i.\u0275\u0275getInheritedFactory(L)))(X||L)}}(),L.\u0275dir=i.\u0275\u0275defineDirective({type:L,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(I,X){2&I&&i.\u0275\u0275attribute("maxlength",X._enabled?X.maxlength:null)},inputs:{maxlength:"maxlength"},features:[i.\u0275\u0275ProvidersFeature([k]),i.\u0275\u0275InheritDefinitionFeature]}),L})();const F={provide:Q,useExisting:(0,i.forwardRef)(()=>se),multi:!0};let se=(()=>{class L extends Wn{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=I=>I,this.createValidator=I=>de(I)}}return L.\u0275fac=function(){let x;return function(X){return(x||(x=i.\u0275\u0275getInheritedFactory(L)))(X||L)}}(),L.\u0275dir=i.\u0275\u0275defineDirective({type:L,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(I,X){2&I&&i.\u0275\u0275attribute("pattern",X._enabled?X.pattern:null)},inputs:{pattern:"pattern"},features:[i.\u0275\u0275ProvidersFeature([F]),i.\u0275\u0275InheritDefinitionFeature]}),L})(),Lt=(()=>{class L{}return L.\u0275fac=function(I){return new(I||L)},L.\u0275mod=i.\u0275\u0275defineNgModule({type:L}),L.\u0275inj=i.\u0275\u0275defineInjector({imports:[[hr]]}),L})(),yn=(()=>{class L{}return L.\u0275fac=function(I){return new(I||L)},L.\u0275mod=i.\u0275\u0275defineNgModule({type:L}),L.\u0275inj=i.\u0275\u0275defineInjector({imports:[Lt]}),L})(),dn=(()=>{class L{static withConfig(I){return{ngModule:L,providers:[{provide:Zi,useValue:I.warnOnNgModelWithFormControl}]}}}return L.\u0275fac=function(I){return new(I||L)},L.\u0275mod=i.\u0275\u0275defineNgModule({type:L}),L.\u0275inj=i.\u0275\u0275defineInjector({imports:[Lt]}),L})(),an=(()=>{class L{group(I,X=null){const Xe=this._reduceControls(I);let Yn,Ot=null,Dn=null;return null!=X&&(function on(L){return void 0!==L.asyncValidators||void 0!==L.validators||void 0!==L.updateOn}(X)?(Ot=null!=X.validators?X.validators:null,Dn=null!=X.asyncValidators?X.asyncValidators:null,Yn=null!=X.updateOn?X.updateOn:void 0):(Ot=null!=X.validator?X.validator:null,Dn=null!=X.asyncValidator?X.asyncValidator:null)),new mn(Xe,{asyncValidators:Dn,updateOn:Yn,validators:Ot})}control(I,X,Xe){return new zt(I,X,Xe)}array(I,X,Xe){const Ot=I.map(Dn=>this._createControl(Dn));return new Ft(Ot,X,Xe)}_reduceControls(I){const X={};return Object.keys(I).forEach(Xe=>{X[Xe]=this._createControl(I[Xe])}),X}_createControl(I){return Se(I)||G(I)||Ae(I)?I:Array.isArray(I)?this.control(I[0],I.length>1?I[1]:null,I.length>2?I[2]:null):this.control(I)}}return L.\u0275fac=function(I){return new(I||L)},L.\u0275prov=i.\u0275\u0275defineInjectable({token:L,factory:L.\u0275fac,providedIn:dn}),L})();const Pn=new i.Version("13.2.4")},7423:(je,g,l)=>{"use strict";l.r(g),l.d(g,{MatAnchor:()=>T,MatButton:()=>A,MatButtonModule:()=>v});var i=l(5e3),u=l(508),m=l(6360),c=l(5664);const s=["mat-button",""],_=["*"],w=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],h=(0,u.mixinColor)((0,u.mixinDisabled)((0,u.mixinDisableRipple)(class{constructor(N){this._elementRef=N}})));let A=(()=>{class N extends h{constructor(fe,Q,he){super(fe),this._focusMonitor=Q,this._animationMode=he,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const Re of w)this._hasHostAttributes(Re)&&this._getHostElement().classList.add(Re);fe.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(fe,Q){fe?this._focusMonitor.focusVia(this._getHostElement(),fe,Q):this._getHostElement().focus(Q)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...fe){return fe.some(Q=>this._getHostElement().hasAttribute(Q))}}return N.\u0275fac=function(fe){return new(fe||N)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(c.tE),i.\u0275\u0275directiveInject(m.ANIMATION_MODULE_TYPE,8))},N.\u0275cmp=i.\u0275\u0275defineComponent({type:N,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(fe,Q){if(1&fe&&i.\u0275\u0275viewQuery(u.MatRipple,5),2&fe){let he;i.\u0275\u0275queryRefresh(he=i.\u0275\u0275loadQuery())&&(Q.ripple=he.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(fe,Q){2&fe&&(i.\u0275\u0275attribute("disabled",Q.disabled||null),i.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===Q._animationMode)("mat-button-disabled",Q.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.\u0275\u0275InheritDefinitionFeature],attrs:s,ngContentSelectors:_,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(fe,Q){1&fe&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275elementStart(0,"span",0),i.\u0275\u0275projection(1),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(2,"span",1)(3,"span",2)),2&fe&&(i.\u0275\u0275advance(2),i.\u0275\u0275classProp("mat-button-ripple-round",Q.isRoundButton||Q.isIconButton),i.\u0275\u0275property("matRippleDisabled",Q._isRippleDisabled())("matRippleCentered",Q.isIconButton)("matRippleTrigger",Q._getHostElement()))},directives:[u.MatRipple],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),N})(),T=(()=>{class N extends A{constructor(fe,Q,he,Re){super(Q,fe,he),this._ngZone=Re,this._haltDisabledEvents=_e=>{this.disabled&&(_e.preventDefault(),_e.stopImmediatePropagation())}}ngAfterViewInit(){super.ngAfterViewInit(),this._ngZone?this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return N.\u0275fac=function(fe){return new(fe||N)(i.\u0275\u0275directiveInject(c.tE),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(m.ANIMATION_MODULE_TYPE,8),i.\u0275\u0275directiveInject(i.NgZone,8))},N.\u0275cmp=i.\u0275\u0275defineComponent({type:N,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(fe,Q){2&fe&&(i.\u0275\u0275attribute("tabindex",Q.disabled?-1:Q.tabIndex||0)("disabled",Q.disabled||null)("aria-disabled",Q.disabled.toString()),i.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===Q._animationMode)("mat-button-disabled",Q.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[i.\u0275\u0275InheritDefinitionFeature],attrs:s,ngContentSelectors:_,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(fe,Q){1&fe&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275elementStart(0,"span",0),i.\u0275\u0275projection(1),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(2,"span",1)(3,"span",2)),2&fe&&(i.\u0275\u0275advance(2),i.\u0275\u0275classProp("mat-button-ripple-round",Q.isRoundButton||Q.isIconButton),i.\u0275\u0275property("matRippleDisabled",Q._isRippleDisabled())("matRippleCentered",Q.isIconButton)("matRippleTrigger",Q._getHostElement()))},directives:[u.MatRipple],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),N})(),v=(()=>{class N{}return N.\u0275fac=function(fe){return new(fe||N)},N.\u0275mod=i.\u0275\u0275defineNgModule({type:N}),N.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.MatRippleModule,u.MatCommonModule],u.MatCommonModule]}),N})()},9417:(je,g,l)=>{"use strict";l.r(g),l.d(g,{MAT_CHIPS_DEFAULT_OPTIONS:()=>Jt,MAT_CHIP_AVATAR:()=>nt,MAT_CHIP_REMOVE:()=>Qe,MAT_CHIP_TRAILING_ICON:()=>ht,MatChip:()=>xt,MatChipAvatar:()=>kt,MatChipInput:()=>Et,MatChipList:()=>ce,MatChipListChange:()=>Xt,MatChipRemove:()=>pn,MatChipSelectionChange:()=>De,MatChipTrailingIcon:()=>Kt,MatChipsModule:()=>B});var i=l(1159),u=l(5e3),m=l(508),c=l(3191),s=l(9808),_=l(6360),D=l(6758),C=l(6451),w=l(5698),h=l(2722),A=l(8675),T=l(925),v=l(5664),N=l(449),U=l(3075);l(1777);let ze=(()=>{class P{}return P.\u0275fac=function(b){return new(b||P)},P.\u0275dir=u.\u0275\u0275defineDirective({type:P}),P})();var Te=l(226);const oe=["*"];class De{constructor(re,b,$=!1){this.source=re,this.selected=b,this.isUserInput=$}}const Qe=new u.InjectionToken("MatChipRemove"),nt=new u.InjectionToken("MatChipAvatar"),ht=new u.InjectionToken("MatChipTrailingIcon");class pt{constructor(re){this._elementRef=re}}const Ct=(0,m.mixinTabIndex)((0,m.mixinColor)((0,m.mixinDisableRipple)(pt),"primary"),-1);let kt=(()=>{class P{}return P.\u0275fac=function(b){return new(b||P)},P.\u0275dir=u.\u0275\u0275defineDirective({type:P,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[u.\u0275\u0275ProvidersFeature([{provide:nt,useExisting:P}])]}),P})(),Kt=(()=>{class P{}return P.\u0275fac=function(b){return new(b||P)},P.\u0275dir=u.\u0275\u0275defineDirective({type:P,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"],features:[u.\u0275\u0275ProvidersFeature([{provide:ht,useExisting:P}])]}),P})(),xt=(()=>{class P extends Ct{constructor(b,$,Ne,it,Bt,jt,Le,He){super(b),this._ngZone=$,this._changeDetectorRef=Bt,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new D.x,this._onBlur=new D.x,this.selectionChange=new u.EventEmitter,this.destroyed=new u.EventEmitter,this.removed=new u.EventEmitter,this._addHostClassName(),this._chipRippleTarget=jt.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new m.RippleRenderer(this,$,this._chipRippleTarget,Ne),this._chipRipple.setupTriggerEvents(b),this.rippleConfig=it||{},this._animationsDisabled="NoopAnimations"===Le,this.tabIndex=null!=He&&parseInt(He)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(b){const $=(0,c.Ig)(b);$!==this._selected&&(this._selected=$,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(b){this._value=b}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(b){this._selectable=(0,c.Ig)(b)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(b){this._disabled=(0,c.Ig)(b)}get removable(){return this._removable}set removable(b){this._removable=(0,c.Ig)(b)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const b="mat-basic-chip",$=this._elementRef.nativeElement;$.hasAttribute(b)||$.tagName.toLowerCase()===b?$.classList.add(b):$.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(b=!1){return this._selected=!this.selected,this._dispatchSelectionChange(b),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(b){this.disabled&&b.preventDefault()}_handleKeydown(b){if(!this.disabled)switch(b.keyCode){case i.yY:case i.ZH:this.remove(),b.preventDefault();break;case i.L_:this.selectable&&this.toggleSelected(!0),b.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,w.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(b=!1){this.selectionChange.emit({source:this,isUserInput:b,selected:this._selected})}}return P.\u0275fac=function(b){return new(b||P)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(T.t4),u.\u0275\u0275directiveInject(m.MAT_RIPPLE_GLOBAL_OPTIONS,8),u.\u0275\u0275directiveInject(u.ChangeDetectorRef),u.\u0275\u0275directiveInject(s.DOCUMENT),u.\u0275\u0275directiveInject(_.ANIMATION_MODULE_TYPE,8),u.\u0275\u0275injectAttribute("tabindex"))},P.\u0275dir=u.\u0275\u0275defineDirective({type:P,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(b,$,Ne){if(1&b&&(u.\u0275\u0275contentQuery(Ne,nt,5),u.\u0275\u0275contentQuery(Ne,ht,5),u.\u0275\u0275contentQuery(Ne,Qe,5)),2&b){let it;u.\u0275\u0275queryRefresh(it=u.\u0275\u0275loadQuery())&&($.avatar=it.first),u.\u0275\u0275queryRefresh(it=u.\u0275\u0275loadQuery())&&($.trailingIcon=it.first),u.\u0275\u0275queryRefresh(it=u.\u0275\u0275loadQuery())&&($.removeIcon=it.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(b,$){1&b&&u.\u0275\u0275listener("click",function(it){return $._handleClick(it)})("keydown",function(it){return $._handleKeydown(it)})("focus",function(){return $.focus()})("blur",function(){return $._blur()}),2&b&&(u.\u0275\u0275attribute("tabindex",$.disabled?null:$.tabIndex)("disabled",$.disabled||null)("aria-disabled",$.disabled.toString())("aria-selected",$.ariaSelected),u.\u0275\u0275classProp("mat-chip-selected",$.selected)("mat-chip-with-avatar",$.avatar)("mat-chip-with-trailing-icon",$.trailingIcon||$.removeIcon)("mat-chip-disabled",$.disabled)("_mat-animation-noopable",$._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[u.\u0275\u0275InheritDefinitionFeature]}),P})(),pn=(()=>{class P{constructor(b,$){this._parentChip=b,"BUTTON"===$.nativeElement.nodeName&&$.nativeElement.setAttribute("type","button")}_handleClick(b){const $=this._parentChip;$.removable&&!$.disabled&&$.remove(),b.stopPropagation()}}return P.\u0275fac=function(b){return new(b||P)(u.\u0275\u0275directiveInject(xt),u.\u0275\u0275directiveInject(u.ElementRef))},P.\u0275dir=u.\u0275\u0275defineDirective({type:P,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(b,$){1&b&&u.\u0275\u0275listener("click",function(it){return $._handleClick(it)})},features:[u.\u0275\u0275ProvidersFeature([{provide:Qe,useExisting:P}])]}),P})();const Jt=new u.InjectionToken("mat-chips-default-options");let Nt=0,Et=(()=>{class P{constructor(b,$){this._elementRef=b,this._defaultOptions=$,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new u.EventEmitter,this.placeholder="",this.id="mat-chip-list-input-"+Nt++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(b){b&&(this._chipList=b,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(b){this._addOnBlur=(0,c.Ig)(b)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(b){this._disabled=(0,c.Ig)(b)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(b){if(b){if(b.keyCode===i.Mf&&!(0,i.Vb)(b,"shiftKey")&&this._chipList._allowFocusEscape(),b.keyCode===i.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void b.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(b)}_keyup(b){!this._focusLastChipOnBackspace&&b.keyCode===i.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,b.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(b){!this.inputElement.value&&!!b&&this._chipList._keydown(b),(!b||this._isSeparatorKey(b))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==b||b.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(b){this.inputElement.focus(b)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(b){return!(0,i.Vb)(b)&&new Set(this.separatorKeyCodes).has(b.keyCode)}}return P.\u0275fac=function(b){return new(b||P)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(Jt))},P.\u0275dir=u.\u0275\u0275defineDirective({type:P,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(b,$){1&b&&u.\u0275\u0275listener("keydown",function(it){return $._keydown(it)})("keyup",function(it){return $._keyup(it)})("blur",function(){return $._blur()})("focus",function(){return $._focus()})("input",function(){return $._onInput()}),2&b&&(u.\u0275\u0275hostProperty("id",$.id),u.\u0275\u0275attribute("disabled",$.disabled||null)("placeholder",$.placeholder||null)("aria-invalid",$._chipList&&$._chipList.ngControl?$._chipList.ngControl.invalid:null)("aria-required",$._chipList&&$._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[u.\u0275\u0275NgOnChangesFeature]}),P})();const ln=(0,m.mixinErrorState)(class{constructor(P,re,b,$){this._defaultErrorStateMatcher=P,this._parentForm=re,this._parentFormGroup=b,this.ngControl=$}});let Ut=0;class Xt{constructor(re,b){this.source=re,this.value=b}}let ce=(()=>{class P extends ln{constructor(b,$,Ne,it,Bt,jt,Le){super(jt,it,Bt,Le),this._elementRef=b,this._changeDetectorRef=$,this._dir=Ne,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new D.x,this._uid="mat-chip-list-"+Ut++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(He,ue)=>He===ue,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new u.EventEmitter,this.valueChange=new u.EventEmitter,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var b,$;return this.multiple?(null===(b=this._selectionModel)||void 0===b?void 0:b.selected)||[]:null===($=this._selectionModel)||void 0===$?void 0:$.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(b){this._multiple=(0,c.Ig)(b),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(b){this._compareWith=b,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(b){this.writeValue(b),this._value=b}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var b,$,Ne,it;return null!==(it=null!==(b=this._required)&&void 0!==b?b:null===(Ne=null===($=this.ngControl)||void 0===$?void 0:$.control)||void 0===Ne?void 0:Ne.hasValidator(U.Validators.required))&&void 0!==it&&it}set required(b){this._required=(0,c.Ig)(b),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(b){this._placeholder=b,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(b){this._disabled=(0,c.Ig)(b),this._syncChipsState()}get selectable(){return this._selectable}set selectable(b){this._selectable=(0,c.Ig)(b),this.chips&&this.chips.forEach($=>$.chipListSelectable=this._selectable)}set tabIndex(b){this._userTabIndex=b,this._tabIndex=b}get chipSelectionChanges(){return(0,C.T)(...this.chips.map(b=>b.selectionChange))}get chipFocusChanges(){return(0,C.T)(...this.chips.map(b=>b._onFocus))}get chipBlurChanges(){return(0,C.T)(...this.chips.map(b=>b._onBlur))}get chipRemoveChanges(){return(0,C.T)(...this.chips.map(b=>b.destroyed))}ngAfterContentInit(){this._keyManager=new v.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,h.R)(this._destroyed)).subscribe(b=>this._keyManager.withHorizontalOrientation(b)),this._keyManager.tabOut.pipe((0,h.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,A.O)(null),(0,h.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new N.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(b){this._chipInput=b,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",b.id)}setDescribedByIds(b){this._ariaDescribedby=b.join(" ")}writeValue(b){this.chips&&this._setSelectionByValue(b,!1)}registerOnChange(b){this._onChange=b}registerOnTouched(b){this._onTouched=b}setDisabledState(b){this.disabled=b,this.stateChanges.next()}onContainerClick(b){this._originatesFromChip(b)||this.focus()}focus(b){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(b),this.stateChanges.next()))}_focusInput(b){this._chipInput&&this._chipInput.focus(b)}_keydown(b){const $=b.target;$&&$.classList.contains("mat-chip")&&(this._keyManager.onKeydown(b),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const b=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(b)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(b){return b>=0&&b<this.chips.length}_setSelectionByValue(b,$=!0){if(this._clearSelection(),this.chips.forEach(Ne=>Ne.deselect()),Array.isArray(b))b.forEach(Ne=>this._selectValue(Ne,$)),this._sortValues();else{const Ne=this._selectValue(b,$);Ne&&$&&this._keyManager.setActiveItem(Ne)}}_selectValue(b,$=!0){const Ne=this.chips.find(it=>null!=it.value&&this._compareWith(it.value,b));return Ne&&($?Ne.selectViaInteraction():Ne.select(),this._selectionModel.select(Ne)),Ne}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(b){this._selectionModel.clear(),this.chips.forEach($=>{$!==b&&$.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(b=>{b.selected&&this._selectionModel.select(b)}),this.stateChanges.next())}_propagateChanges(b){let $=null;$=Array.isArray(this.selected)?this.selected.map(Ne=>Ne.value):this.selected?this.selected.value:b,this._value=$,this.change.emit(new Xt(this,$)),this.valueChange.emit($),this._onChange($),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(b=>{b.source.selected?this._selectionModel.select(b.source):this._selectionModel.deselect(b.source),this.multiple||this.chips.forEach($=>{!this._selectionModel.isSelected($)&&$.selected&&$.deselect()}),b.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(b=>{let $=this.chips.toArray().indexOf(b.chip);this._isValidIndex($)&&this._keyManager.updateActiveItem($),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(b=>{const $=b.chip,Ne=this.chips.toArray().indexOf(b.chip);this._isValidIndex(Ne)&&$._hasFocus&&(this._lastDestroyedChipIndex=Ne)})}_originatesFromChip(b){let $=b.target;for(;$&&$!==this._elementRef.nativeElement;){if($.classList.contains("mat-chip"))return!0;$=$.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(b=>b._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(b=>{b._chipListDisabled=this._disabled,b._chipListMultiple=this.multiple})}}return P.\u0275fac=function(b){return new(b||P)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.ChangeDetectorRef),u.\u0275\u0275directiveInject(Te.Is,8),u.\u0275\u0275directiveInject(U.NgForm,8),u.\u0275\u0275directiveInject(U.FormGroupDirective,8),u.\u0275\u0275directiveInject(m.ErrorStateMatcher),u.\u0275\u0275directiveInject(U.NgControl,10))},P.\u0275cmp=u.\u0275\u0275defineComponent({type:P,selectors:[["mat-chip-list"]],contentQueries:function(b,$,Ne){if(1&b&&u.\u0275\u0275contentQuery(Ne,xt,5),2&b){let it;u.\u0275\u0275queryRefresh(it=u.\u0275\u0275loadQuery())&&($.chips=it)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(b,$){1&b&&u.\u0275\u0275listener("focus",function(){return $.focus()})("blur",function(){return $._blur()})("keydown",function(it){return $._keydown(it)}),2&b&&(u.\u0275\u0275hostProperty("id",$._uid),u.\u0275\u0275attribute("tabindex",$.disabled?null:$._tabIndex)("aria-describedby",$._ariaDescribedby||null)("aria-required",$.role?$.required:null)("aria-disabled",$.disabled.toString())("aria-invalid",$.errorState)("aria-multiselectable",$.multiple)("role",$.role)("aria-orientation",$.ariaOrientation),u.\u0275\u0275classProp("mat-chip-list-disabled",$.disabled)("mat-chip-list-invalid",$.errorState)("mat-chip-list-required",$.required))},inputs:{errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[u.\u0275\u0275ProvidersFeature([{provide:ze,useExisting:P}]),u.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:oe,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(b,$){1&b&&(u.\u0275\u0275projectionDef(),u.\u0275\u0275elementStart(0,"div",0),u.\u0275\u0275projection(1),u.\u0275\u0275elementEnd())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),P})(),B=(()=>{class P{}return P.\u0275fac=function(b){return new(b||P)},P.\u0275mod=u.\u0275\u0275defineNgModule({type:P}),P.\u0275inj=u.\u0275\u0275defineInjector({providers:[m.ErrorStateMatcher,{provide:Jt,useValue:{separatorKeyCodes:[i.K5]}}],imports:[[m.MatCommonModule]]}),P})()},508:(je,g,l)=>{"use strict";l.r(g),l.d(g,{AnimationCurves:()=>Re,AnimationDurations:()=>_e,DateAdapter:()=>Je,ErrorStateMatcher:()=>we,MATERIAL_SANITY_CHECKS:()=>q,MAT_DATE_FORMATS:()=>ve,MAT_DATE_LOCALE:()=>xe,MAT_DATE_LOCALE_FACTORY:()=>me,MAT_NATIVE_DATE_FORMATS:()=>Be,MAT_OPTGROUP:()=>Kt,MAT_OPTION_PARENT_COMPONENT:()=>ht,MAT_RIPPLE_GLOBAL_OPTIONS:()=>Te,MatCommonModule:()=>Ce,MatLine:()=>ke,MatLineModule:()=>mt,MatNativeDateModule:()=>ne,MatOptgroup:()=>xt,MatOption:()=>Et,MatOptionModule:()=>Xt,MatOptionSelectionChange:()=>Jt,MatPseudoCheckbox:()=>Qe,MatPseudoCheckboxModule:()=>nt,MatRipple:()=>oe,MatRippleModule:()=>De,NativeDateAdapter:()=>Dt,NativeDateModule:()=>et,RippleRef:()=>gt,RippleRenderer:()=>Oe,ShowOnDirtyErrorStateMatcher:()=>pe,VERSION:()=>he,_MatOptgroupBase:()=>kt,_MatOptionBase:()=>Nt,_countGroupLabelsBeforeOption:()=>ln,_getOptionScrollPosition:()=>Ut,defaultRippleAnimationConfig:()=>St,mixinColor:()=>de,mixinDisableRipple:()=>Pe,mixinDisabled:()=>$e,mixinErrorState:()=>ge,mixinInitialized:()=>ie,mixinTabIndex:()=>z,setLines:()=>Ee});var i=l(5e3),u=l(226),c=l(9808),s=l(925),_=l(5664),D=l(3191),C=l(6758),w=l(9751),h=l(8675),A=l(6360),T=l(1159);const v=["*",[["mat-option"],["ng-container"]]],N=["*","mat-option, ng-container"];function U(ce,J){if(1&ce&&i.\u0275\u0275element(0,"mat-pseudo-checkbox",4),2&ce){const B=i.\u0275\u0275nextContext();i.\u0275\u0275property("state",B.selected?"checked":"unchecked")("disabled",B.disabled)}}function fe(ce,J){if(1&ce&&(i.\u0275\u0275elementStart(0,"span",5),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&ce){const B=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("(",B.group.label,")")}}const Q=["*"],he=new i.Version("13.2.4");let Re=(()=>{class ce{}return ce.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",ce.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",ce.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",ce.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",ce})(),_e=(()=>{class ce{}return ce.COMPLEX="375ms",ce.ENTERING="225ms",ce.EXITING="195ms",ce})();const q=new i.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function be(){return!0}});let Ce=(()=>{class ce{constructor(B,P,re){this._sanityChecks=P,this._document=re,this._hasDoneGlobalChecks=!1,B._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(B){return!(0,s.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[B])}}return ce.\u0275fac=function(B){return new(B||ce)(i.\u0275\u0275inject(_.qm),i.\u0275\u0275inject(q,8),i.\u0275\u0275inject(c.DOCUMENT))},ce.\u0275mod=i.\u0275\u0275defineNgModule({type:ce}),ce.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.vT],u.vT]}),ce})();function $e(ce){return class extends ce{constructor(...J){super(...J),this._disabled=!1}get disabled(){return this._disabled}set disabled(J){this._disabled=(0,D.Ig)(J)}}}function de(ce,J){return class extends ce{constructor(...B){super(...B),this.defaultColor=J,this.color=J}get color(){return this._color}set color(B){const P=B||this.defaultColor;P!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),P&&this._elementRef.nativeElement.classList.add(`mat-${P}`),this._color=P)}}}function Pe(ce){return class extends ce{constructor(...J){super(...J),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(J){this._disableRipple=(0,D.Ig)(J)}}}function z(ce,J=0){return class extends ce{constructor(...B){super(...B),this._tabIndex=J,this.defaultTabIndex=J}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(B){this._tabIndex=null!=B?(0,D.su)(B):this.defaultTabIndex}}}function ge(ce){return class extends ce{constructor(...J){super(...J),this.stateChanges=new C.x,this.errorState=!1}updateErrorState(){const J=this.errorState,b=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);b!==J&&(this.errorState=b,this.stateChanges.next())}}}function ie(ce){return class extends ce{constructor(...J){super(...J),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new w.y(B=>{this._isInitialized?this._notifySubscriber(B):this._pendingSubscribers.push(B)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(J){J.next(),J.complete()}}}const xe=new i.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:me});function me(){return(0,i.inject)(i.LOCALE_ID)}class Je{constructor(){this._localeChanges=new C.x,this.localeChanges=this._localeChanges}getValidDateOrNull(J){return this.isDateInstance(J)&&this.isValid(J)?J:null}deserialize(J){return null==J||this.isDateInstance(J)&&this.isValid(J)?J:this.invalid()}setLocale(J){this.locale=J,this._localeChanges.next()}compareDate(J,B){return this.getYear(J)-this.getYear(B)||this.getMonth(J)-this.getMonth(B)||this.getDate(J)-this.getDate(B)}sameDate(J,B){if(J&&B){let P=this.isValid(J),re=this.isValid(B);return P&&re?!this.compareDate(J,B):P==re}return J==B}clampDate(J,B,P){return B&&this.compareDate(J,B)<0?B:P&&this.compareDate(J,P)>0?P:J}}const ve=new i.InjectionToken("mat-date-formats"),ze=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function ct(ce,J){const B=Array(ce);for(let P=0;P<ce;P++)B[P]=J(P);return B}let Dt=(()=>{class ce extends Je{constructor(B,P){super(),this.useUtcForDisplay=!1,super.setLocale(B)}getYear(B){return B.getFullYear()}getMonth(B){return B.getMonth()}getDate(B){return B.getDate()}getDayOfWeek(B){return B.getDay()}getMonthNames(B){const P=new Intl.DateTimeFormat(this.locale,{month:B,timeZone:"utc"});return ct(12,re=>this._format(P,new Date(2017,re,1)))}getDateNames(){const B=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return ct(31,P=>this._format(B,new Date(2017,0,P+1)))}getDayOfWeekNames(B){const P=new Intl.DateTimeFormat(this.locale,{weekday:B,timeZone:"utc"});return ct(7,re=>this._format(P,new Date(2017,0,re+1)))}getYearName(B){const P=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(P,B)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(B){return this.getDate(this._createDateWithOverflow(this.getYear(B),this.getMonth(B)+1,0))}clone(B){return new Date(B.getTime())}createDate(B,P,re){let b=this._createDateWithOverflow(B,P,re);return b.getMonth(),b}today(){return new Date}parse(B){return"number"==typeof B?new Date(B):B?new Date(Date.parse(B)):null}format(B,P){if(!this.isValid(B))throw Error("NativeDateAdapter: Cannot format invalid date.");const re=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},P),{timeZone:"utc"}));return this._format(re,B)}addCalendarYears(B,P){return this.addCalendarMonths(B,12*P)}addCalendarMonths(B,P){let re=this._createDateWithOverflow(this.getYear(B),this.getMonth(B)+P,this.getDate(B));return this.getMonth(re)!=((this.getMonth(B)+P)%12+12)%12&&(re=this._createDateWithOverflow(this.getYear(re),this.getMonth(re),0)),re}addCalendarDays(B,P){return this._createDateWithOverflow(this.getYear(B),this.getMonth(B),this.getDate(B)+P)}toIso8601(B){return[B.getUTCFullYear(),this._2digit(B.getUTCMonth()+1),this._2digit(B.getUTCDate())].join("-")}deserialize(B){if("string"==typeof B){if(!B)return null;if(ze.test(B)){let P=new Date(B);if(this.isValid(P))return P}}return super.deserialize(B)}isDateInstance(B){return B instanceof Date}isValid(B){return!isNaN(B.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(B,P,re){const b=new Date;return b.setFullYear(B,P,re),b.setHours(0,0,0,0),b}_2digit(B){return("00"+B).slice(-2)}_format(B,P){const re=new Date;return re.setUTCFullYear(P.getFullYear(),P.getMonth(),P.getDate()),re.setUTCHours(P.getHours(),P.getMinutes(),P.getSeconds(),P.getMilliseconds()),B.format(re)}}return ce.\u0275fac=function(B){return new(B||ce)(i.\u0275\u0275inject(xe,8),i.\u0275\u0275inject(s.t4))},ce.\u0275prov=i.\u0275\u0275defineInjectable({token:ce,factory:ce.\u0275fac}),ce})();const Be={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let et=(()=>{class ce{}return ce.\u0275fac=function(B){return new(B||ce)},ce.\u0275mod=i.\u0275\u0275defineNgModule({type:ce}),ce.\u0275inj=i.\u0275\u0275defineInjector({providers:[{provide:Je,useClass:Dt}]}),ce})(),ne=(()=>{class ce{}return ce.\u0275fac=function(B){return new(B||ce)},ce.\u0275mod=i.\u0275\u0275defineNgModule({type:ce}),ce.\u0275inj=i.\u0275\u0275defineInjector({providers:[{provide:ve,useValue:Be}],imports:[[et]]}),ce})(),pe=(()=>{class ce{isErrorState(B,P){return!!(B&&B.invalid&&(B.dirty||P&&P.submitted))}}return ce.\u0275fac=function(B){return new(B||ce)},ce.\u0275prov=i.\u0275\u0275defineInjectable({token:ce,factory:ce.\u0275fac}),ce})(),we=(()=>{class ce{isErrorState(B,P){return!!(B&&B.invalid&&(B.touched||P&&P.submitted))}}return ce.\u0275fac=function(B){return new(B||ce)},ce.\u0275prov=i.\u0275\u0275defineInjectable({token:ce,factory:ce.\u0275fac,providedIn:"root"}),ce})(),ke=(()=>{class ce{}return ce.\u0275fac=function(B){return new(B||ce)},ce.\u0275dir=i.\u0275\u0275defineDirective({type:ce,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),ce})();function Ee(ce,J,B="mat"){ce.changes.pipe((0,h.O)(ce)).subscribe(({length:P})=>{Ze(J,`${B}-2-line`,!1),Ze(J,`${B}-3-line`,!1),Ze(J,`${B}-multi-line`,!1),2===P||3===P?Ze(J,`${B}-${P}-line`,!0):P>3&&Ze(J,`${B}-multi-line`,!0)})}function Ze(ce,J,B){ce.nativeElement.classList.toggle(J,B)}let mt=(()=>{class ce{}return ce.\u0275fac=function(B){return new(B||ce)},ce.\u0275mod=i.\u0275\u0275defineNgModule({type:ce}),ce.\u0275inj=i.\u0275\u0275defineInjector({imports:[[Ce],Ce]}),ce})();class gt{constructor(J,B,P){this._renderer=J,this.element=B,this.config=P,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const St={enterDuration:225,exitDuration:150},Ge=(0,s.i$)({passive:!0}),V=["mousedown","touchstart"],ae=["mouseup","mouseleave","touchend","touchcancel"];class Oe{constructor(J,B,P,re){this._target=J,this._ngZone=B,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,re.isBrowser&&(this._containerElement=(0,D.fI)(P))}fadeInRipple(J,B,P={}){const re=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),b=Object.assign(Object.assign({},St),P.animation);P.centered&&(J=re.left+re.width/2,B=re.top+re.height/2);const $=P.radius||function Ie(ce,J,B){const P=Math.max(Math.abs(ce-B.left),Math.abs(ce-B.right)),re=Math.max(Math.abs(J-B.top),Math.abs(J-B.bottom));return Math.sqrt(P*P+re*re)}(J,B,re),Ne=J-re.left,it=B-re.top,Bt=b.enterDuration,jt=document.createElement("div");jt.classList.add("mat-ripple-element"),jt.style.left=Ne-$+"px",jt.style.top=it-$+"px",jt.style.height=2*$+"px",jt.style.width=2*$+"px",null!=P.color&&(jt.style.backgroundColor=P.color),jt.style.transitionDuration=`${Bt}ms`,this._containerElement.appendChild(jt),function le(ce){window.getComputedStyle(ce).getPropertyValue("opacity")}(jt),jt.style.transform="scale(1)";const Le=new gt(this,jt,P);return Le.state=0,this._activeRipples.add(Le),P.persistent||(this._mostRecentTransientRipple=Le),this._runTimeoutOutsideZone(()=>{const He=Le===this._mostRecentTransientRipple;Le.state=1,!P.persistent&&(!He||!this._isPointerDown)&&Le.fadeOut()},Bt),Le}fadeOutRipple(J){const B=this._activeRipples.delete(J);if(J===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!B)return;const P=J.element,re=Object.assign(Object.assign({},St),J.config.animation);P.style.transitionDuration=`${re.exitDuration}ms`,P.style.opacity="0",J.state=2,this._runTimeoutOutsideZone(()=>{J.state=3,P.remove()},re.exitDuration)}fadeOutAll(){this._activeRipples.forEach(J=>J.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(J=>{J.config.persistent||J.fadeOut()})}setupTriggerEvents(J){const B=(0,D.fI)(J);!B||B===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=B,this._registerEvents(V))}handleEvent(J){"mousedown"===J.type?this._onMousedown(J):"touchstart"===J.type?this._onTouchStart(J):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(ae),this._pointerUpEventsRegistered=!0)}_onMousedown(J){const B=(0,_.X6)(J),P=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!B&&!P&&(this._isPointerDown=!0,this.fadeInRipple(J.clientX,J.clientY,this._target.rippleConfig))}_onTouchStart(J){if(!this._target.rippleDisabled&&!(0,_.yG)(J)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const B=J.changedTouches;for(let P=0;P<B.length;P++)this.fadeInRipple(B[P].clientX,B[P].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(J=>{!J.config.persistent&&(1===J.state||J.config.terminateOnPointerUp&&0===J.state)&&J.fadeOut()}))}_runTimeoutOutsideZone(J,B=0){this._ngZone.runOutsideAngular(()=>setTimeout(J,B))}_registerEvents(J){this._ngZone.runOutsideAngular(()=>{J.forEach(B=>{this._triggerElement.addEventListener(B,this,Ge)})})}_removeTriggerEvents(){this._triggerElement&&(V.forEach(J=>{this._triggerElement.removeEventListener(J,this,Ge)}),this._pointerUpEventsRegistered&&ae.forEach(J=>{this._triggerElement.removeEventListener(J,this,Ge)}))}}const Te=new i.InjectionToken("mat-ripple-global-options");let oe=(()=>{class ce{constructor(B,P,re,b,$){this._elementRef=B,this._animationMode=$,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=b||{},this._rippleRenderer=new Oe(this,P,B,re)}get disabled(){return this._disabled}set disabled(B){B&&this.fadeOutAllNonPersistent(),this._disabled=B,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(B){this._trigger=B,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(B,P=0,re){return"number"==typeof B?this._rippleRenderer.fadeInRipple(B,P,Object.assign(Object.assign({},this.rippleConfig),re)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),B))}}return ce.\u0275fac=function(B){return new(B||ce)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(s.t4),i.\u0275\u0275directiveInject(Te,8),i.\u0275\u0275directiveInject(A.ANIMATION_MODULE_TYPE,8))},ce.\u0275dir=i.\u0275\u0275defineDirective({type:ce,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(B,P){2&B&&i.\u0275\u0275classProp("mat-ripple-unbounded",P.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),ce})(),De=(()=>{class ce{}return ce.\u0275fac=function(B){return new(B||ce)},ce.\u0275mod=i.\u0275\u0275defineNgModule({type:ce}),ce.\u0275inj=i.\u0275\u0275defineInjector({imports:[[Ce],Ce]}),ce})(),Qe=(()=>{class ce{constructor(B){this._animationMode=B,this.state="unchecked",this.disabled=!1}}return ce.\u0275fac=function(B){return new(B||ce)(i.\u0275\u0275directiveInject(A.ANIMATION_MODULE_TYPE,8))},ce.\u0275cmp=i.\u0275\u0275defineComponent({type:ce,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(B,P){2&B&&i.\u0275\u0275classProp("mat-pseudo-checkbox-indeterminate","indeterminate"===P.state)("mat-pseudo-checkbox-checked","checked"===P.state)("mat-pseudo-checkbox-disabled",P.disabled)("_mat-animation-noopable","NoopAnimations"===P._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(B,P){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),ce})(),nt=(()=>{class ce{}return ce.\u0275fac=function(B){return new(B||ce)},ce.\u0275mod=i.\u0275\u0275defineNgModule({type:ce}),ce.\u0275inj=i.\u0275\u0275defineInjector({imports:[[Ce]]}),ce})();const ht=new i.InjectionToken("MAT_OPTION_PARENT_COMPONENT"),pt=$e(class{});let Ct=0,kt=(()=>{class ce extends pt{constructor(B){var P;super(),this._labelId="mat-optgroup-label-"+Ct++,this._inert=null!==(P=null==B?void 0:B.inertGroups)&&void 0!==P&&P}}return ce.\u0275fac=function(B){return new(B||ce)(i.\u0275\u0275directiveInject(ht,8))},ce.\u0275dir=i.\u0275\u0275defineDirective({type:ce,inputs:{label:"label"},features:[i.\u0275\u0275InheritDefinitionFeature]}),ce})();const Kt=new i.InjectionToken("MatOptgroup");let xt=(()=>{class ce extends kt{}return ce.\u0275fac=function(){let J;return function(P){return(J||(J=i.\u0275\u0275getInheritedFactory(ce)))(P||ce)}}(),ce.\u0275cmp=i.\u0275\u0275defineComponent({type:ce,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(B,P){2&B&&(i.\u0275\u0275attribute("role",P._inert?null:"group")("aria-disabled",P._inert?null:P.disabled.toString())("aria-labelledby",P._inert?null:P._labelId),i.\u0275\u0275classProp("mat-optgroup-disabled",P.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[i.\u0275\u0275ProvidersFeature([{provide:Kt,useExisting:ce}]),i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:N,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(B,P){1&B&&(i.\u0275\u0275projectionDef(v),i.\u0275\u0275elementStart(0,"span",0),i.\u0275\u0275text(1),i.\u0275\u0275projection(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275projection(3,1)),2&B&&(i.\u0275\u0275property("id",P._labelId),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("",P.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),ce})(),pn=0;class Jt{constructor(J,B=!1){this.source=J,this.isUserInput=B}}let Nt=(()=>{class ce{constructor(B,P,re,b){this._element=B,this._changeDetectorRef=P,this._parent=re,this.group=b,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+pn++,this.onSelectionChange=new i.EventEmitter,this._stateChanges=new C.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(B){this._disabled=(0,D.Ig)(B)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(B,P){const re=this._getHostElement();"function"==typeof re.focus&&re.focus(P)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(B){(B.keyCode===T.K5||B.keyCode===T.L_)&&!(0,T.Vb)(B)&&(this._selectViaInteraction(),B.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const B=this.viewValue;B!==this._mostRecentViewValue&&(this._mostRecentViewValue=B,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(B=!1){this.onSelectionChange.emit(new Jt(this,B))}}return ce.\u0275fac=function(B){i.\u0275\u0275invalidFactory()},ce.\u0275dir=i.\u0275\u0275defineDirective({type:ce,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),ce})(),Et=(()=>{class ce extends Nt{constructor(B,P,re,b){super(B,P,re,b)}}return ce.\u0275fac=function(B){return new(B||ce)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(ht,8),i.\u0275\u0275directiveInject(Kt,8))},ce.\u0275cmp=i.\u0275\u0275defineComponent({type:ce,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(B,P){1&B&&i.\u0275\u0275listener("click",function(){return P._selectViaInteraction()})("keydown",function(b){return P._handleKeydown(b)}),2&B&&(i.\u0275\u0275hostProperty("id",P.id),i.\u0275\u0275attribute("tabindex",P._getTabIndex())("aria-selected",P._getAriaSelected())("aria-disabled",P.disabled.toString()),i.\u0275\u0275classProp("mat-selected",P.selected)("mat-option-multiple",P.multiple)("mat-active",P.active)("mat-option-disabled",P.disabled))},exportAs:["matOption"],features:[i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Q,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(B,P){1&B&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275template(0,U,1,2,"mat-pseudo-checkbox",0),i.\u0275\u0275elementStart(1,"span",1),i.\u0275\u0275projection(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(3,fe,2,1,"span",2),i.\u0275\u0275element(4,"div",3)),2&B&&(i.\u0275\u0275property("ngIf",P.multiple),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngIf",P.group&&P.group._inert),i.\u0275\u0275advance(1),i.\u0275\u0275property("matRippleTrigger",P._getHostElement())("matRippleDisabled",P.disabled||P.disableRipple))},directives:[Qe,c.NgIf,oe],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),ce})();function ln(ce,J,B){if(B.length){let P=J.toArray(),re=B.toArray(),b=0;for(let $=0;$<ce+1;$++)P[$].group&&P[$].group===re[b]&&b++;return b}return 0}function Ut(ce,J,B,P){return ce<B?ce:ce+J>B+P?Math.max(0,ce-P+J):B}let Xt=(()=>{class ce{}return ce.\u0275fac=function(B){return new(B||ce)},ce.\u0275mod=i.\u0275\u0275defineNgModule({type:ce}),ce.\u0275inj=i.\u0275\u0275defineInjector({imports:[[De,c.CommonModule,Ce,nt]]}),ce})()},8966:(je,g,l)=>{"use strict";l.r(g),l.d(g,{MAT_DIALOG_DATA:()=>de,MAT_DIALOG_DEFAULT_OPTIONS:()=>Pe,MAT_DIALOG_SCROLL_STRATEGY:()=>z,MAT_DIALOG_SCROLL_STRATEGY_FACTORY:()=>ge,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER:()=>xe,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY:()=>ie,MatDialog:()=>Je,MatDialogActions:()=>et,MatDialogClose:()=>ct,MatDialogConfig:()=>_e,MatDialogContainer:()=>Fe,MatDialogContent:()=>Be,MatDialogModule:()=>pe,MatDialogRef:()=>st,MatDialogTitle:()=>Dt,_MatDialogBase:()=>me,_MatDialogContainerBase:()=>Ce,_closeDialogVia:()=>$e,matDialogAnimations:()=>be,throwMatDialogContentAlreadyAttachedError:()=>q});var i=l(1314),u=l(7429),m=l(5e3),c=l(508),s=l(226),_=l(6758),D=l(9770),C=l(6921),w=l(9646),h=l(9300),A=l(5698),T=l(8675),v=l(925),N=l(9808),U=l(1777),fe=l(5664),Q=l(1159),he=l(6360);function Re(we,ke){}class _e{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0}}const be={dialogContainer:(0,U.X$)("dialogContainer",[(0,U.SB)("void, exit",(0,U.oB)({opacity:0,transform:"scale(0.7)"})),(0,U.SB)("enter",(0,U.oB)({transform:"none"})),(0,U.eR)("* => enter",(0,U.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,U.oB)({transform:"none",opacity:1}))),(0,U.eR)("* => void, * => exit",(0,U.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,U.oB)({opacity:0})))])};function q(){throw Error("Attempting to attach dialog content after content is already attached")}let Ce=(()=>{class we extends u.en{constructor(Ee,Ze,mt,gt,St,dt,Ge,V){super(),this._elementRef=Ee,this._focusTrapFactory=Ze,this._changeDetectorRef=mt,this._config=St,this._interactivityChecker=dt,this._ngZone=Ge,this._focusMonitor=V,this._animationStateChanged=new m.EventEmitter,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=ae=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(ae)),this._ariaLabelledBy=St.ariaLabelledBy||null,this._document=gt}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(Ee){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(Ee)}attachTemplatePortal(Ee){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(Ee)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(Ee,Ze){this._interactivityChecker.isFocusable(Ee)||(Ee.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{Ee.addEventListener("blur",()=>Ee.removeAttribute("tabindex")),Ee.addEventListener("mousedown",()=>Ee.removeAttribute("tabindex"))})),Ee.focus(Ze)}_focusByCssSelector(Ee,Ze){let mt=this._elementRef.nativeElement.querySelector(Ee);mt&&this._forceFocus(mt,Ze)}_trapFocus(){const Ee=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||Ee.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Ze=>{Ze||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const Ee=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&Ee&&"function"==typeof Ee.focus){const Ze=(0,v.ht)(),mt=this._elementRef.nativeElement;(!Ze||Ze===this._document.body||Ze===mt||mt.contains(Ze))&&(this._focusMonitor?(this._focusMonitor.focusVia(Ee,this._closeInteractionType),this._closeInteractionType=null):Ee.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,v.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const Ee=this._elementRef.nativeElement,Ze=(0,v.ht)();return Ee===Ze||Ee.contains(Ze)}}return we.\u0275fac=function(Ee){return new(Ee||we)(m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(fe.qV),m.\u0275\u0275directiveInject(m.ChangeDetectorRef),m.\u0275\u0275directiveInject(N.DOCUMENT,8),m.\u0275\u0275directiveInject(_e),m.\u0275\u0275directiveInject(fe.ic),m.\u0275\u0275directiveInject(m.NgZone),m.\u0275\u0275directiveInject(fe.tE))},we.\u0275dir=m.\u0275\u0275defineDirective({type:we,viewQuery:function(Ee,Ze){if(1&Ee&&m.\u0275\u0275viewQuery(u.Pl,7),2&Ee){let mt;m.\u0275\u0275queryRefresh(mt=m.\u0275\u0275loadQuery())&&(Ze._portalOutlet=mt.first)}},features:[m.\u0275\u0275InheritDefinitionFeature]}),we})(),Fe=(()=>{class we extends Ce{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:Ee,totalTime:Ze}){"enter"===Ee?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Ze})):"exit"===Ee&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:Ze}))}_onAnimationStart({toState:Ee,totalTime:Ze}){"enter"===Ee?this._animationStateChanged.next({state:"opening",totalTime:Ze}):("exit"===Ee||"void"===Ee)&&this._animationStateChanged.next({state:"closing",totalTime:Ze})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return we.\u0275fac=function(){let ke;return function(Ze){return(ke||(ke=m.\u0275\u0275getInheritedFactory(we)))(Ze||we)}}(),we.\u0275cmp=m.\u0275\u0275defineComponent({type:we,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(Ee,Ze){1&Ee&&m.\u0275\u0275syntheticHostListener("@dialogContainer.start",function(gt){return Ze._onAnimationStart(gt)})("@dialogContainer.done",function(gt){return Ze._onAnimationDone(gt)}),2&Ee&&(m.\u0275\u0275hostProperty("id",Ze._id),m.\u0275\u0275attribute("role",Ze._config.role)("aria-labelledby",Ze._config.ariaLabel?null:Ze._ariaLabelledBy)("aria-label",Ze._config.ariaLabel)("aria-describedby",Ze._config.ariaDescribedBy||null),m.\u0275\u0275syntheticHostProperty("@dialogContainer",Ze._state))},features:[m.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(Ee,Ze){1&Ee&&m.\u0275\u0275template(0,Re,0,0,"ng-template",0)},directives:[u.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[be.dialogContainer]}}),we})(),Ye=0;class st{constructor(ke,Ee,Ze="mat-dialog-"+Ye++){this._overlayRef=ke,this._containerInstance=Ee,this.id=Ze,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new _.x,this._afterClosed=new _.x,this._beforeClosed=new _.x,this._state=0,Ee._id=Ze,Ee._animationStateChanged.pipe((0,h.h)(mt=>"opened"===mt.state),(0,A.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Ee._animationStateChanged.pipe((0,h.h)(mt=>"closed"===mt.state),(0,A.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),ke.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),ke.keydownEvents().pipe((0,h.h)(mt=>mt.keyCode===Q.hY&&!this.disableClose&&!(0,Q.Vb)(mt))).subscribe(mt=>{mt.preventDefault(),$e(this,"keyboard")}),ke.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():$e(this,"mouse")})}close(ke){this._result=ke,this._containerInstance._animationStateChanged.pipe((0,h.h)(Ee=>"closing"===Ee.state),(0,A.q)(1)).subscribe(Ee=>{this._beforeClosed.next(ke),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),Ee.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(ke){let Ee=this._getPositionStrategy();return ke&&(ke.left||ke.right)?ke.left?Ee.left(ke.left):Ee.right(ke.right):Ee.centerHorizontally(),ke&&(ke.top||ke.bottom)?ke.top?Ee.top(ke.top):Ee.bottom(ke.bottom):Ee.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(ke="",Ee=""){return this._overlayRef.updateSize({width:ke,height:Ee}),this._overlayRef.updatePosition(),this}addPanelClass(ke){return this._overlayRef.addPanelClass(ke),this}removePanelClass(ke){return this._overlayRef.removePanelClass(ke),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function $e(we,ke,Ee){return void 0!==we._containerInstance&&(we._containerInstance._closeInteractionType=ke),we.close(Ee)}const de=new m.InjectionToken("MatDialogData"),Pe=new m.InjectionToken("mat-dialog-default-options"),z=new m.InjectionToken("mat-dialog-scroll-strategy");function ge(we){return()=>we.scrollStrategies.block()}function ie(we){return()=>we.scrollStrategies.block()}const xe={provide:z,deps:[i.aV],useFactory:ie};let me=(()=>{class we{constructor(Ee,Ze,mt,gt,St,dt,Ge,V,ae,Oe){this._overlay=Ee,this._injector=Ze,this._defaultOptions=mt,this._parentDialog=gt,this._overlayContainer=St,this._dialogRefConstructor=Ge,this._dialogContainerType=V,this._dialogDataToken=ae,this._animationMode=Oe,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new _.x,this._afterOpenedAtThisLevel=new _.x,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=(0,D.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,T.O)(void 0))),this._scrollStrategy=dt}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const Ee=this._parentDialog;return Ee?Ee._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(Ee,Ze){if(Ze=function ve(we,ke){return Object.assign(Object.assign({},ke),we)}(Ze,this._defaultOptions||new _e),Ze.id&&this.getDialogById(Ze.id),this._dialogAnimatingOpen)return this._lastDialogRef;const mt=this._createOverlay(Ze),gt=this._attachDialogContainer(mt,Ze);if("NoopAnimations"!==this._animationMode){const dt=gt._animationStateChanged.subscribe(Ge=>{"opening"===Ge.state&&(this._dialogAnimatingOpen=!0),"opened"===Ge.state&&(this._dialogAnimatingOpen=!1,dt.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new C.w0),this._animationStateSubscriptions.add(dt)}const St=this._attachDialogContent(Ee,gt,mt,Ze);return this._lastDialogRef=St,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(St),St.afterClosed().subscribe(()=>this._removeOpenDialog(St)),this.afterOpened.next(St),gt._initializeWithAttachedContent(),St}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(Ee){return this.openDialogs.find(Ze=>Ze.id===Ee)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(Ee){const Ze=this._getOverlayConfig(Ee);return this._overlay.create(Ze)}_getOverlayConfig(Ee){const Ze=new i.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:Ee.scrollStrategy||this._scrollStrategy(),panelClass:Ee.panelClass,hasBackdrop:Ee.hasBackdrop,direction:Ee.direction,minWidth:Ee.minWidth,minHeight:Ee.minHeight,maxWidth:Ee.maxWidth,maxHeight:Ee.maxHeight,disposeOnNavigation:Ee.closeOnNavigation});return Ee.backdropClass&&(Ze.backdropClass=Ee.backdropClass),Ze}_attachDialogContainer(Ee,Ze){const gt=m.Injector.create({parent:Ze&&Ze.viewContainerRef&&Ze.viewContainerRef.injector||this._injector,providers:[{provide:_e,useValue:Ze}]}),St=new u.C5(this._dialogContainerType,Ze.viewContainerRef,gt,Ze.componentFactoryResolver);return Ee.attach(St).instance}_attachDialogContent(Ee,Ze,mt,gt){const St=new this._dialogRefConstructor(mt,Ze,gt.id);if(Ee instanceof m.TemplateRef)Ze.attachTemplatePortal(new u.UE(Ee,null,{$implicit:gt.data,dialogRef:St}));else{const dt=this._createInjector(gt,St,Ze),Ge=Ze.attachComponentPortal(new u.C5(Ee,gt.viewContainerRef,dt));St.componentInstance=Ge.instance}return St.updateSize(gt.width,gt.height).updatePosition(gt.position),St}_createInjector(Ee,Ze,mt){const gt=Ee&&Ee.viewContainerRef&&Ee.viewContainerRef.injector,St=[{provide:this._dialogContainerType,useValue:mt},{provide:this._dialogDataToken,useValue:Ee.data},{provide:this._dialogRefConstructor,useValue:Ze}];return Ee.direction&&(!gt||!gt.get(s.Is,null,m.InjectFlags.Optional))&&St.push({provide:s.Is,useValue:{value:Ee.direction,change:(0,w.of)()}}),m.Injector.create({parent:gt||this._injector,providers:St})}_removeOpenDialog(Ee){const Ze=this.openDialogs.indexOf(Ee);Ze>-1&&(this.openDialogs.splice(Ze,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((mt,gt)=>{mt?gt.setAttribute("aria-hidden",mt):gt.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const Ee=this._overlayContainer.getContainerElement();if(Ee.parentElement){const Ze=Ee.parentElement.children;for(let mt=Ze.length-1;mt>-1;mt--){let gt=Ze[mt];gt!==Ee&&"SCRIPT"!==gt.nodeName&&"STYLE"!==gt.nodeName&&!gt.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(gt,gt.getAttribute("aria-hidden")),gt.setAttribute("aria-hidden","true"))}}}_closeDialogs(Ee){let Ze=Ee.length;for(;Ze--;)Ee[Ze].close()}}return we.\u0275fac=function(Ee){m.\u0275\u0275invalidFactory()},we.\u0275dir=m.\u0275\u0275defineDirective({type:we}),we})(),Je=(()=>{class we extends me{constructor(Ee,Ze,mt,gt,St,dt,Ge,V){super(Ee,Ze,gt,dt,Ge,St,st,Fe,de,V)}}return we.\u0275fac=function(Ee){return new(Ee||we)(m.\u0275\u0275inject(i.aV),m.\u0275\u0275inject(m.Injector),m.\u0275\u0275inject(N.Location,8),m.\u0275\u0275inject(Pe,8),m.\u0275\u0275inject(z),m.\u0275\u0275inject(we,12),m.\u0275\u0275inject(i.Xj),m.\u0275\u0275inject(he.ANIMATION_MODULE_TYPE,8))},we.\u0275prov=m.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})(),ze=0,ct=(()=>{class we{constructor(Ee,Ze,mt){this.dialogRef=Ee,this._elementRef=Ze,this._dialog=mt,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=ne(this._elementRef,this._dialog.openDialogs))}ngOnChanges(Ee){const Ze=Ee._matDialogClose||Ee._matDialogCloseResult;Ze&&(this.dialogResult=Ze.currentValue)}_onButtonClick(Ee){$e(this.dialogRef,0===Ee.screenX&&0===Ee.screenY?"keyboard":"mouse",this.dialogResult)}}return we.\u0275fac=function(Ee){return new(Ee||we)(m.\u0275\u0275directiveInject(st,8),m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(Je))},we.\u0275dir=m.\u0275\u0275defineDirective({type:we,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(Ee,Ze){1&Ee&&m.\u0275\u0275listener("click",function(gt){return Ze._onButtonClick(gt)}),2&Ee&&m.\u0275\u0275attribute("aria-label",Ze.ariaLabel||null)("type",Ze.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[m.\u0275\u0275NgOnChangesFeature]}),we})(),Dt=(()=>{class we{constructor(Ee,Ze,mt){this._dialogRef=Ee,this._elementRef=Ze,this._dialog=mt,this.id="mat-dialog-title-"+ze++}ngOnInit(){this._dialogRef||(this._dialogRef=ne(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const Ee=this._dialogRef._containerInstance;Ee&&!Ee._ariaLabelledBy&&(Ee._ariaLabelledBy=this.id)})}}return we.\u0275fac=function(Ee){return new(Ee||we)(m.\u0275\u0275directiveInject(st,8),m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(Je))},we.\u0275dir=m.\u0275\u0275defineDirective({type:we,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(Ee,Ze){2&Ee&&m.\u0275\u0275hostProperty("id",Ze.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),we})(),Be=(()=>{class we{}return we.\u0275fac=function(Ee){return new(Ee||we)},we.\u0275dir=m.\u0275\u0275defineDirective({type:we,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),we})(),et=(()=>{class we{}return we.\u0275fac=function(Ee){return new(Ee||we)},we.\u0275dir=m.\u0275\u0275defineDirective({type:we,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),we})();function ne(we,ke){let Ee=we.nativeElement.parentElement;for(;Ee&&!Ee.classList.contains("mat-dialog-container");)Ee=Ee.parentElement;return Ee?ke.find(Ze=>Ze.id===Ee.id):null}let pe=(()=>{class we{}return we.\u0275fac=function(Ee){return new(Ee||we)},we.\u0275mod=m.\u0275\u0275defineNgModule({type:we}),we.\u0275inj=m.\u0275\u0275defineInjector({providers:[Je,xe],imports:[[i.U8,u.eL,c.MatCommonModule],c.MatCommonModule]}),we})()},5245:(je,g,l)=>{"use strict";l.r(g),l.d(g,{ICON_REGISTRY_PROVIDER:()=>de,ICON_REGISTRY_PROVIDER_FACTORY:()=>$e,MAT_ICON_LOCATION:()=>xe,MAT_ICON_LOCATION_FACTORY:()=>me,MatIcon:()=>ct,MatIconModule:()=>Dt,MatIconRegistry:()=>st,getMatIconFailedToSanitizeLiteralError:()=>Fe,getMatIconFailedToSanitizeUrlError:()=>Ce,getMatIconNameNotFoundError:()=>be,getMatIconNoHttpProviderError:()=>q});var i=l(5e3),u=l(508),m=l(3191),c=l(9808),s=l(9646),_=l(2843),D=l(4128),C=l(6921),w=l(8505),h=l(4004),A=l(262),T=l(8746),v=l(3099),N=l(5698),U=l(520),fe=l(2313);const Q=["*"];let he;function _e(Be){var et;return(null===(et=function Re(){if(void 0===he&&(he=null,"undefined"!=typeof window)){const Be=window;void 0!==Be.trustedTypes&&(he=Be.trustedTypes.createPolicy("angular#components",{createHTML:et=>et}))}return he}())||void 0===et?void 0:et.createHTML(Be))||Be}function be(Be){return Error(`Unable to find icon with the name "${Be}"`)}function q(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}function Ce(Be){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Be}".`)}function Fe(Be){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Be}".`)}class Ye{constructor(et,ne,pe){this.url=et,this.svgText=ne,this.options=pe}}let st=(()=>{class Be{constructor(ne,pe,we,ke){this._httpClient=ne,this._sanitizer=pe,this._errorHandler=ke,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=we}addSvgIcon(ne,pe,we){return this.addSvgIconInNamespace("",ne,pe,we)}addSvgIconLiteral(ne,pe,we){return this.addSvgIconLiteralInNamespace("",ne,pe,we)}addSvgIconInNamespace(ne,pe,we,ke){return this._addSvgIconConfig(ne,pe,new Ye(we,null,ke))}addSvgIconResolver(ne){return this._resolvers.push(ne),this}addSvgIconLiteralInNamespace(ne,pe,we,ke){const Ee=this._sanitizer.sanitize(i.SecurityContext.HTML,we);if(!Ee)throw Fe(we);const Ze=_e(Ee);return this._addSvgIconConfig(ne,pe,new Ye("",Ze,ke))}addSvgIconSet(ne,pe){return this.addSvgIconSetInNamespace("",ne,pe)}addSvgIconSetLiteral(ne,pe){return this.addSvgIconSetLiteralInNamespace("",ne,pe)}addSvgIconSetInNamespace(ne,pe,we){return this._addSvgIconSetConfig(ne,new Ye(pe,null,we))}addSvgIconSetLiteralInNamespace(ne,pe,we){const ke=this._sanitizer.sanitize(i.SecurityContext.HTML,pe);if(!ke)throw Fe(pe);const Ee=_e(ke);return this._addSvgIconSetConfig(ne,new Ye("",Ee,we))}registerFontClassAlias(ne,pe=ne){return this._fontCssClassesByAlias.set(ne,pe),this}classNameForFontAlias(ne){return this._fontCssClassesByAlias.get(ne)||ne}setDefaultFontSetClass(ne){return this._defaultFontSetClass=ne,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(ne){const pe=this._sanitizer.sanitize(i.SecurityContext.RESOURCE_URL,ne);if(!pe)throw Ce(ne);const we=this._cachedIconsByUrl.get(pe);return we?(0,s.of)(Pe(we)):this._loadSvgIconFromConfig(new Ye(ne,null)).pipe((0,w.b)(ke=>this._cachedIconsByUrl.set(pe,ke)),(0,h.U)(ke=>Pe(ke)))}getNamedSvgIcon(ne,pe=""){const we=z(pe,ne);let ke=this._svgIconConfigs.get(we);if(ke)return this._getSvgFromConfig(ke);if(ke=this._getIconConfigFromResolvers(pe,ne),ke)return this._svgIconConfigs.set(we,ke),this._getSvgFromConfig(ke);const Ee=this._iconSetConfigs.get(pe);return Ee?this._getSvgFromIconSetConfigs(ne,Ee):(0,_._)(be(we))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(ne){return ne.svgText?(0,s.of)(Pe(this._svgElementFromConfig(ne))):this._loadSvgIconFromConfig(ne).pipe((0,h.U)(pe=>Pe(pe)))}_getSvgFromIconSetConfigs(ne,pe){const we=this._extractIconWithNameFromAnySet(ne,pe);if(we)return(0,s.of)(we);const ke=pe.filter(Ee=>!Ee.svgText).map(Ee=>this._loadSvgIconSetFromConfig(Ee).pipe((0,A.K)(Ze=>{const gt=`Loading icon set URL: ${this._sanitizer.sanitize(i.SecurityContext.RESOURCE_URL,Ee.url)} failed: ${Ze.message}`;return this._errorHandler.handleError(new Error(gt)),(0,s.of)(null)})));return(0,D.D)(ke).pipe((0,h.U)(()=>{const Ee=this._extractIconWithNameFromAnySet(ne,pe);if(!Ee)throw be(ne);return Ee}))}_extractIconWithNameFromAnySet(ne,pe){for(let we=pe.length-1;we>=0;we--){const ke=pe[we];if(ke.svgText&&ke.svgText.toString().indexOf(ne)>-1){const Ee=this._svgElementFromConfig(ke),Ze=this._extractSvgIconFromSet(Ee,ne,ke.options);if(Ze)return Ze}}return null}_loadSvgIconFromConfig(ne){return this._fetchIcon(ne).pipe((0,w.b)(pe=>ne.svgText=pe),(0,h.U)(()=>this._svgElementFromConfig(ne)))}_loadSvgIconSetFromConfig(ne){return ne.svgText?(0,s.of)(null):this._fetchIcon(ne).pipe((0,w.b)(pe=>ne.svgText=pe))}_extractSvgIconFromSet(ne,pe,we){const ke=ne.querySelector(`[id="${pe}"]`);if(!ke)return null;const Ee=ke.cloneNode(!0);if(Ee.removeAttribute("id"),"svg"===Ee.nodeName.toLowerCase())return this._setSvgAttributes(Ee,we);if("symbol"===Ee.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Ee),we);const Ze=this._svgElementFromString(_e("<svg></svg>"));return Ze.appendChild(Ee),this._setSvgAttributes(Ze,we)}_svgElementFromString(ne){const pe=this._document.createElement("DIV");pe.innerHTML=ne;const we=pe.querySelector("svg");if(!we)throw Error("<svg> tag not found");return we}_toSvgElement(ne){const pe=this._svgElementFromString(_e("<svg></svg>")),we=ne.attributes;for(let ke=0;ke<we.length;ke++){const{name:Ee,value:Ze}=we[ke];"id"!==Ee&&pe.setAttribute(Ee,Ze)}for(let ke=0;ke<ne.childNodes.length;ke++)ne.childNodes[ke].nodeType===this._document.ELEMENT_NODE&&pe.appendChild(ne.childNodes[ke].cloneNode(!0));return pe}_setSvgAttributes(ne,pe){return ne.setAttribute("fit",""),ne.setAttribute("height","100%"),ne.setAttribute("width","100%"),ne.setAttribute("preserveAspectRatio","xMidYMid meet"),ne.setAttribute("focusable","false"),pe&&pe.viewBox&&ne.setAttribute("viewBox",pe.viewBox),ne}_fetchIcon(ne){var pe;const{url:we,options:ke}=ne,Ee=null!==(pe=null==ke?void 0:ke.withCredentials)&&void 0!==pe&&pe;if(!this._httpClient)throw q();if(null==we)throw Error(`Cannot fetch icon from URL "${we}".`);const Ze=this._sanitizer.sanitize(i.SecurityContext.RESOURCE_URL,we);if(!Ze)throw Ce(we);const mt=this._inProgressUrlFetches.get(Ze);if(mt)return mt;const gt=this._httpClient.get(Ze,{responseType:"text",withCredentials:Ee}).pipe((0,h.U)(St=>_e(St)),(0,T.x)(()=>this._inProgressUrlFetches.delete(Ze)),(0,v.B)());return this._inProgressUrlFetches.set(Ze,gt),gt}_addSvgIconConfig(ne,pe,we){return this._svgIconConfigs.set(z(ne,pe),we),this}_addSvgIconSetConfig(ne,pe){const we=this._iconSetConfigs.get(ne);return we?we.push(pe):this._iconSetConfigs.set(ne,[pe]),this}_svgElementFromConfig(ne){if(!ne.svgElement){const pe=this._svgElementFromString(ne.svgText);this._setSvgAttributes(pe,ne.options),ne.svgElement=pe}return ne.svgElement}_getIconConfigFromResolvers(ne,pe){for(let we=0;we<this._resolvers.length;we++){const ke=this._resolvers[we](pe,ne);if(ke)return ge(ke)?new Ye(ke.url,null,ke.options):new Ye(ke,null)}}}return Be.\u0275fac=function(ne){return new(ne||Be)(i.\u0275\u0275inject(U.HttpClient,8),i.\u0275\u0275inject(fe.DomSanitizer),i.\u0275\u0275inject(c.DOCUMENT,8),i.\u0275\u0275inject(i.ErrorHandler))},Be.\u0275prov=i.\u0275\u0275defineInjectable({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})();function $e(Be,et,ne,pe,we){return Be||new st(et,ne,we,pe)}const de={provide:st,deps:[[new i.Optional,new i.SkipSelf,st],[new i.Optional,U.HttpClient],fe.DomSanitizer,i.ErrorHandler,[new i.Optional,c.DOCUMENT]],useFactory:$e};function Pe(Be){return Be.cloneNode(!0)}function z(Be,et){return Be+":"+et}function ge(Be){return!(!Be.url||!Be.options)}const ie=(0,u.mixinColor)(class{constructor(Be){this._elementRef=Be}}),xe=new i.InjectionToken("mat-icon-location",{providedIn:"root",factory:me});function me(){const Be=(0,i.inject)(c.DOCUMENT),et=Be?Be.location:null;return{getPathname:()=>et?et.pathname+et.search:""}}const Je=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],ve=Je.map(Be=>`[${Be}]`).join(", "),ze=/^url\(['"]?#(.*?)['"]?\)$/;let ct=(()=>{class Be extends ie{constructor(ne,pe,we,ke,Ee){super(ne),this._iconRegistry=pe,this._location=ke,this._errorHandler=Ee,this._inline=!1,this._currentIconFetch=C.w0.EMPTY,we||ne.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(ne){this._inline=(0,m.Ig)(ne)}get svgIcon(){return this._svgIcon}set svgIcon(ne){ne!==this._svgIcon&&(ne?this._updateSvgIcon(ne):this._svgIcon&&this._clearSvgElement(),this._svgIcon=ne)}get fontSet(){return this._fontSet}set fontSet(ne){const pe=this._cleanupFontValue(ne);pe!==this._fontSet&&(this._fontSet=pe,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(ne){const pe=this._cleanupFontValue(ne);pe!==this._fontIcon&&(this._fontIcon=pe,this._updateFontIconClasses())}_splitIconName(ne){if(!ne)return["",""];const pe=ne.split(":");switch(pe.length){case 1:return["",pe[0]];case 2:return pe;default:throw Error(`Invalid icon name: "${ne}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const ne=this._elementsWithExternalReferences;if(ne&&ne.size){const pe=this._location.getPathname();pe!==this._previousPath&&(this._previousPath=pe,this._prependPathToReferences(pe))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(ne){this._clearSvgElement();const pe=ne.querySelectorAll("style");for(let ke=0;ke<pe.length;ke++)pe[ke].textContent+=" ";const we=this._location.getPathname();this._previousPath=we,this._cacheChildrenWithExternalReferences(ne),this._prependPathToReferences(we),this._elementRef.nativeElement.appendChild(ne)}_clearSvgElement(){const ne=this._elementRef.nativeElement;let pe=ne.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();pe--;){const we=ne.childNodes[pe];(1!==we.nodeType||"svg"===we.nodeName.toLowerCase())&&we.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const ne=this._elementRef.nativeElement,pe=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();pe!=this._previousFontSetClass&&(this._previousFontSetClass&&ne.classList.remove(this._previousFontSetClass),pe&&ne.classList.add(pe),this._previousFontSetClass=pe),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&ne.classList.remove(this._previousFontIconClass),this.fontIcon&&ne.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(ne){return"string"==typeof ne?ne.trim().split(" ")[0]:ne}_prependPathToReferences(ne){const pe=this._elementsWithExternalReferences;pe&&pe.forEach((we,ke)=>{we.forEach(Ee=>{ke.setAttribute(Ee.name,`url('${ne}#${Ee.value}')`)})})}_cacheChildrenWithExternalReferences(ne){const pe=ne.querySelectorAll(ve),we=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let ke=0;ke<pe.length;ke++)Je.forEach(Ee=>{const Ze=pe[ke],mt=Ze.getAttribute(Ee),gt=mt?mt.match(ze):null;if(gt){let St=we.get(Ze);St||(St=[],we.set(Ze,St)),St.push({name:Ee,value:gt[1]})}})}_updateSvgIcon(ne){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),ne){const[pe,we]=this._splitIconName(ne);pe&&(this._svgNamespace=pe),we&&(this._svgName=we),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(we,pe).pipe((0,N.q)(1)).subscribe(ke=>this._setSvgElement(ke),ke=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${pe}:${we}! ${ke.message}`))})}}}return Be.\u0275fac=function(ne){return new(ne||Be)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(st),i.\u0275\u0275injectAttribute("aria-hidden"),i.\u0275\u0275directiveInject(xe),i.\u0275\u0275directiveInject(i.ErrorHandler))},Be.\u0275cmp=i.\u0275\u0275defineComponent({type:Be,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(ne,pe){2&ne&&(i.\u0275\u0275attribute("data-mat-icon-type",pe._usingFontIcon()?"font":"svg")("data-mat-icon-name",pe._svgName||pe.fontIcon)("data-mat-icon-namespace",pe._svgNamespace||pe.fontSet),i.\u0275\u0275classProp("mat-icon-inline",pe.inline)("mat-icon-no-color","primary"!==pe.color&&"accent"!==pe.color&&"warn"!==pe.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Q,decls:1,vars:0,template:function(ne,pe){1&ne&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275projection(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),Be})(),Dt=(()=>{class Be{}return Be.\u0275fac=function(ne){return new(ne||Be)},Be.\u0275mod=i.\u0275\u0275defineNgModule({type:Be}),Be.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.MatCommonModule],u.MatCommonModule]}),Be})()},2181:(je,g,l)=>{"use strict";l.r(g),l.d(g,{MAT_MENU_CONTENT:()=>ge,MAT_MENU_DEFAULT_OPTIONS:()=>et,MAT_MENU_PANEL:()=>ct,MAT_MENU_SCROLL_STRATEGY:()=>Ee,MatMenu:()=>ke,MatMenuContent:()=>xe,MatMenuItem:()=>Be,MatMenuModule:()=>V,MatMenuTrigger:()=>Ge,_MatMenuBase:()=>we,_MatMenuContentBase:()=>ie,_MatMenuTriggerBase:()=>dt,fadeInItems:()=>Pe,matMenuAnimations:()=>de,transformMenu:()=>z});var i=l(5664),u=l(3191),m=l(1159),c=l(5e3),s=l(6758),_=l(6921),D=l(6451),C=l(9646),w=l(3101),h=l(8675),A=l(3900),T=l(5698),v=l(2722),N=l(9300),U=l(4326),fe=l(1777),Q=l(7429),he=l(9808),Re=l(508),_e=l(1314),be=l(925),q=l(226),Ce=l(9071);const Fe=["mat-menu-item",""];function Ye(ae,Oe){1&ae&&(c.\u0275\u0275namespaceSVG(),c.\u0275\u0275elementStart(0,"svg",2),c.\u0275\u0275element(1,"polygon",3),c.\u0275\u0275elementEnd())}const st=["*"];function $e(ae,Oe){if(1&ae){const le=c.\u0275\u0275getCurrentView();c.\u0275\u0275elementStart(0,"div",0),c.\u0275\u0275listener("keydown",function(Te){return c.\u0275\u0275restoreView(le),c.\u0275\u0275nextContext()._handleKeydown(Te)})("click",function(){return c.\u0275\u0275restoreView(le),c.\u0275\u0275nextContext().closed.emit("click")})("@transformMenu.start",function(Te){return c.\u0275\u0275restoreView(le),c.\u0275\u0275nextContext()._onAnimationStart(Te)})("@transformMenu.done",function(Te){return c.\u0275\u0275restoreView(le),c.\u0275\u0275nextContext()._onAnimationDone(Te)}),c.\u0275\u0275elementStart(1,"div",1),c.\u0275\u0275projection(2),c.\u0275\u0275elementEnd()()}if(2&ae){const le=c.\u0275\u0275nextContext();c.\u0275\u0275property("id",le.panelId)("ngClass",le._classList)("@transformMenu",le._panelAnimationState),c.\u0275\u0275attribute("aria-label",le.ariaLabel||null)("aria-labelledby",le.ariaLabelledby||null)("aria-describedby",le.ariaDescribedby||null)}}const de={transformMenu:(0,fe.X$)("transformMenu",[(0,fe.SB)("void",(0,fe.oB)({opacity:0,transform:"scale(0.8)"})),(0,fe.eR)("void => enter",(0,fe.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,fe.oB)({opacity:1,transform:"scale(1)"}))),(0,fe.eR)("* => void",(0,fe.jt)("100ms 25ms linear",(0,fe.oB)({opacity:0})))]),fadeInItems:(0,fe.X$)("fadeInItems",[(0,fe.SB)("showing",(0,fe.oB)({opacity:1})),(0,fe.eR)("void => *",[(0,fe.oB)({opacity:0}),(0,fe.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},Pe=de.fadeInItems,z=de.transformMenu,ge=new c.InjectionToken("MatMenuContent");let ie=(()=>{class ae{constructor(le,Ie,Te,oe,De,Qe,nt){this._template=le,this._componentFactoryResolver=Ie,this._appRef=Te,this._injector=oe,this._viewContainerRef=De,this._document=Qe,this._changeDetectorRef=nt,this._attached=new s.x}attach(le={}){var Ie;this._portal||(this._portal=new Q.UE(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Q.u0(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const Te=this._template.elementRef.nativeElement;Te.parentNode.insertBefore(this._outlet.outletElement,Te),null===(Ie=this._changeDetectorRef)||void 0===Ie||Ie.markForCheck(),this._portal.attach(this._outlet,le),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return ae.\u0275fac=function(le){return new(le||ae)(c.\u0275\u0275directiveInject(c.TemplateRef),c.\u0275\u0275directiveInject(c.ComponentFactoryResolver),c.\u0275\u0275directiveInject(c.ApplicationRef),c.\u0275\u0275directiveInject(c.Injector),c.\u0275\u0275directiveInject(c.ViewContainerRef),c.\u0275\u0275directiveInject(he.DOCUMENT),c.\u0275\u0275directiveInject(c.ChangeDetectorRef))},ae.\u0275dir=c.\u0275\u0275defineDirective({type:ae}),ae})(),xe=(()=>{class ae extends ie{}return ae.\u0275fac=function(){let Oe;return function(Ie){return(Oe||(Oe=c.\u0275\u0275getInheritedFactory(ae)))(Ie||ae)}}(),ae.\u0275dir=c.\u0275\u0275defineDirective({type:ae,selectors:[["ng-template","matMenuContent",""]],features:[c.\u0275\u0275ProvidersFeature([{provide:ge,useExisting:ae}]),c.\u0275\u0275InheritDefinitionFeature]}),ae})();const ct=new c.InjectionToken("MAT_MENU_PANEL"),Dt=(0,Re.mixinDisableRipple)((0,Re.mixinDisabled)(class{}));let Be=(()=>{class ae extends Dt{constructor(le,Ie,Te,oe,De){var Qe;super(),this._elementRef=le,this._focusMonitor=Te,this._parentMenu=oe,this._changeDetectorRef=De,this.role="menuitem",this._hovered=new s.x,this._focused=new s.x,this._highlighted=!1,this._triggersSubmenu=!1,null===(Qe=null==oe?void 0:oe.addItem)||void 0===Qe||Qe.call(oe,this)}focus(le,Ie){this._focusMonitor&&le?this._focusMonitor.focusVia(this._getHostElement(),le,Ie):this._getHostElement().focus(Ie),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(le){this.disabled&&(le.preventDefault(),le.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var le;const Ie=this._elementRef.nativeElement.cloneNode(!0),Te=Ie.querySelectorAll("mat-icon, .material-icons");for(let oe=0;oe<Te.length;oe++)Te[oe].remove();return(null===(le=Ie.textContent)||void 0===le?void 0:le.trim())||""}_setHighlighted(le){var Ie;this._highlighted=le,null===(Ie=this._changeDetectorRef)||void 0===Ie||Ie.markForCheck()}}return ae.\u0275fac=function(le){return new(le||ae)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(he.DOCUMENT),c.\u0275\u0275directiveInject(i.tE),c.\u0275\u0275directiveInject(ct,8),c.\u0275\u0275directiveInject(c.ChangeDetectorRef))},ae.\u0275cmp=c.\u0275\u0275defineComponent({type:ae,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(le,Ie){1&le&&c.\u0275\u0275listener("click",function(oe){return Ie._checkDisabled(oe)})("mouseenter",function(){return Ie._handleMouseEnter()}),2&le&&(c.\u0275\u0275attribute("role",Ie.role)("tabindex",Ie._getTabIndex())("aria-disabled",Ie.disabled.toString())("disabled",Ie.disabled||null),c.\u0275\u0275classProp("mat-menu-item",!0)("mat-menu-item-highlighted",Ie._highlighted)("mat-menu-item-submenu-trigger",Ie._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[c.\u0275\u0275InheritDefinitionFeature],attrs:Fe,ngContentSelectors:st,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(le,Ie){1&le&&(c.\u0275\u0275projectionDef(),c.\u0275\u0275projection(0),c.\u0275\u0275element(1,"div",0),c.\u0275\u0275template(2,Ye,2,0,"svg",1)),2&le&&(c.\u0275\u0275advance(1),c.\u0275\u0275property("matRippleDisabled",Ie.disableRipple||Ie.disabled)("matRippleTrigger",Ie._getHostElement()),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngIf",Ie._triggersSubmenu))},directives:[Re.MatRipple,he.NgIf],encapsulation:2,changeDetection:0}),ae})();const et=new c.InjectionToken("mat-menu-default-options",{providedIn:"root",factory:function ne(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let pe=0,we=(()=>{class ae{constructor(le,Ie,Te,oe){this._elementRef=le,this._ngZone=Ie,this._defaultOptions=Te,this._changeDetectorRef=oe,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new c.QueryList,this._tabSubscription=_.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new s.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new c.EventEmitter,this.close=this.closed,this.panelId="mat-menu-panel-"+pe++}get xPosition(){return this._xPosition}set xPosition(le){this._xPosition=le,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(le){this._yPosition=le,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(le){this._overlapTrigger=(0,u.Ig)(le)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(le){this._hasBackdrop=(0,u.Ig)(le)}set panelClass(le){const Ie=this._previousPanelClass;Ie&&Ie.length&&Ie.split(" ").forEach(Te=>{this._classList[Te]=!1}),this._previousPanelClass=le,le&&le.length&&(le.split(" ").forEach(Te=>{this._classList[Te]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(le){this.panelClass=le}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new i.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,h.O)(this._directDescendantItems),(0,A.w)(le=>(0,D.T)(...le.map(Ie=>Ie._focused)))).subscribe(le=>this._keyManager.updateActiveItem(le))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,h.O)(this._directDescendantItems),(0,A.w)(Ie=>(0,D.T)(...Ie.map(Te=>Te._hovered))))}addItem(le){}removeItem(le){}_handleKeydown(le){const Ie=le.keyCode,Te=this._keyManager;switch(Ie){case m.hY:(0,m.Vb)(le)||(le.preventDefault(),this.closed.emit("keydown"));break;case m.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case m.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(Ie===m.LH||Ie===m.JH)&&Te.setFocusOrigin("keyboard"),void Te.onKeydown(le)}le.stopPropagation()}focusFirstItem(le="program"){this.lazyContent?this._ngZone.onStable.pipe((0,T.q)(1)).subscribe(()=>this._focusFirstItem(le)):this._focusFirstItem(le)}_focusFirstItem(le){const Ie=this._keyManager;if(Ie.setFocusOrigin(le).setFirstItemActive(),!Ie.activeItem&&this._directDescendantItems.length){let Te=this._directDescendantItems.first._getHostElement().parentElement;for(;Te;){if("menu"===Te.getAttribute("role")){Te.focus();break}Te=Te.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(le){const Ie=Math.min(this._baseElevation+le,24),Te=`${this._elevationPrefix}${Ie}`,oe=Object.keys(this._classList).find(De=>De.startsWith(this._elevationPrefix));(!oe||oe===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[Te]=!0,this._previousElevation=Te)}setPositionClasses(le=this.xPosition,Ie=this.yPosition){var Te;const oe=this._classList;oe["mat-menu-before"]="before"===le,oe["mat-menu-after"]="after"===le,oe["mat-menu-above"]="above"===Ie,oe["mat-menu-below"]="below"===Ie,null===(Te=this._changeDetectorRef)||void 0===Te||Te.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(le){this._animationDone.next(le),this._isAnimating=!1}_onAnimationStart(le){this._isAnimating=!0,"enter"===le.toState&&0===this._keyManager.activeItemIndex&&(le.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,h.O)(this._allItems)).subscribe(le=>{this._directDescendantItems.reset(le.filter(Ie=>Ie._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return ae.\u0275fac=function(le){return new(le||ae)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.NgZone),c.\u0275\u0275directiveInject(et),c.\u0275\u0275directiveInject(c.ChangeDetectorRef))},ae.\u0275dir=c.\u0275\u0275defineDirective({type:ae,contentQueries:function(le,Ie,Te){if(1&le&&(c.\u0275\u0275contentQuery(Te,ge,5),c.\u0275\u0275contentQuery(Te,Be,5),c.\u0275\u0275contentQuery(Te,Be,4)),2&le){let oe;c.\u0275\u0275queryRefresh(oe=c.\u0275\u0275loadQuery())&&(Ie.lazyContent=oe.first),c.\u0275\u0275queryRefresh(oe=c.\u0275\u0275loadQuery())&&(Ie._allItems=oe),c.\u0275\u0275queryRefresh(oe=c.\u0275\u0275loadQuery())&&(Ie.items=oe)}},viewQuery:function(le,Ie){if(1&le&&c.\u0275\u0275viewQuery(c.TemplateRef,5),2&le){let Te;c.\u0275\u0275queryRefresh(Te=c.\u0275\u0275loadQuery())&&(Ie.templateRef=Te.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),ae})(),ke=(()=>{class ae extends we{constructor(le,Ie,Te,oe){super(le,Ie,Te,oe),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return ae.\u0275fac=function(le){return new(le||ae)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.NgZone),c.\u0275\u0275directiveInject(et),c.\u0275\u0275directiveInject(c.ChangeDetectorRef))},ae.\u0275cmp=c.\u0275\u0275defineComponent({type:ae,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(le,Ie){2&le&&c.\u0275\u0275attribute("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[c.\u0275\u0275ProvidersFeature([{provide:ct,useExisting:ae}]),c.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:st,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(le,Ie){1&le&&(c.\u0275\u0275projectionDef(),c.\u0275\u0275template(0,$e,3,6,"ng-template"))},directives:[he.NgClass],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[de.transformMenu,de.fadeInItems]},changeDetection:0}),ae})();const Ee=new c.InjectionToken("mat-menu-scroll-strategy"),mt={provide:Ee,deps:[_e.aV],useFactory:function Ze(ae){return()=>ae.scrollStrategies.reposition()}},St=(0,be.i$)({passive:!0});let dt=(()=>{class ae{constructor(le,Ie,Te,oe,De,Qe,nt,ht,pt){this._overlay=le,this._element=Ie,this._viewContainerRef=Te,this._menuItemInstance=Qe,this._dir=nt,this._focusMonitor=ht,this._ngZone=pt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=_.w0.EMPTY,this._hoverSubscription=_.w0.EMPTY,this._menuCloseSubscription=_.w0.EMPTY,this._handleTouchStart=Ct=>{(0,i.yG)(Ct)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new c.EventEmitter,this.onMenuOpen=this.menuOpened,this.menuClosed=new c.EventEmitter,this.onMenuClose=this.menuClosed,this._scrollStrategy=oe,this._parentMaterialMenu=De instanceof we?De:void 0,Ie.nativeElement.addEventListener("touchstart",this._handleTouchStart,St),Qe&&(Qe._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(le){this.menu=le}get menu(){return this._menu}set menu(le){le!==this._menu&&(this._menu=le,this._menuCloseSubscription.unsubscribe(),le&&(this._menuCloseSubscription=le.close.subscribe(Ie=>{this._destroyMenu(Ie),("click"===Ie||"tab"===Ie)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(Ie)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,St),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const le=this._createOverlay(),Ie=le.getConfig(),Te=Ie.positionStrategy;this._setPosition(Te),Ie.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,le.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof we&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe((0,v.R)(this.menu.close)).subscribe(()=>{Te.withLockedPosition(!1).reapplyLastPosition(),Te.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(le,Ie){this._focusMonitor&&le?this._focusMonitor.focusVia(this._element,le,Ie):this._element.nativeElement.focus(Ie)}updatePosition(){var le;null===(le=this._overlayRef)||void 0===le||le.updatePosition()}_destroyMenu(le){if(!this._overlayRef||!this.menuOpen)return;const Ie=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===le||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,Ie instanceof we?(Ie._resetAnimation(),Ie.lazyContent?Ie._animationDone.pipe((0,N.h)(Te=>"void"===Te.toState),(0,T.q)(1),(0,v.R)(Ie.lazyContent._attached)).subscribe({next:()=>Ie.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),Ie.lazyContent&&Ie.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let le=0,Ie=this.menu.parentMenu;for(;Ie;)le++,Ie=Ie.parentMenu;this.menu.setElevation(le)}}_setIsMenuOpen(le){this._menuOpen=le,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(le)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const le=this._getOverlayConfig();this._subscribeToPositions(le.positionStrategy),this._overlayRef=this._overlay.create(le),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new _e.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(le){this.menu.setPositionClasses&&le.positionChanges.subscribe(Ie=>{const Te="start"===Ie.connectionPair.overlayX?"after":"before",oe="top"===Ie.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>this.menu.setPositionClasses(Te,oe)):this.menu.setPositionClasses(Te,oe)})}_setPosition(le){let[Ie,Te]="before"===this.menu.xPosition?["end","start"]:["start","end"],[oe,De]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[Qe,nt]=[oe,De],[ht,pt]=[Ie,Te],Ct=0;this.triggersSubmenu()?(pt=Ie="before"===this.menu.xPosition?"start":"end",Te=ht="end"===Ie?"start":"end",Ct="bottom"===oe?8:-8):this.menu.overlapTrigger||(Qe="top"===oe?"bottom":"top",nt="top"===De?"bottom":"top"),le.withPositions([{originX:Ie,originY:Qe,overlayX:ht,overlayY:oe,offsetY:Ct},{originX:Te,originY:Qe,overlayX:pt,overlayY:oe,offsetY:Ct},{originX:Ie,originY:nt,overlayX:ht,overlayY:De,offsetY:-Ct},{originX:Te,originY:nt,overlayX:pt,overlayY:De,offsetY:-Ct}])}_menuClosingActions(){const le=this._overlayRef.backdropClick(),Ie=this._overlayRef.detachments(),Te=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,C.of)(),oe=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,N.h)(De=>De!==this._menuItemInstance),(0,N.h)(()=>this._menuOpen)):(0,C.of)();return(0,D.T)(le,Te,oe,Ie)}_handleMousedown(le){(0,i.X6)(le)||(this._openedBy=0===le.button?"mouse":void 0,this.triggersSubmenu()&&le.preventDefault())}_handleKeydown(le){const Ie=le.keyCode;(Ie===m.K5||Ie===m.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(Ie===m.SV&&"ltr"===this.dir||Ie===m.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(le){this.triggersSubmenu()?(le.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,N.h)(le=>le===this._menuItemInstance&&!le.disabled),(0,U.g)(0,w.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof we&&this.menu._isAnimating?this.menu._animationDone.pipe((0,T.q)(1),(0,U.g)(0,w.E),(0,v.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Q.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return ae.\u0275fac=function(le){return new(le||ae)(c.\u0275\u0275directiveInject(_e.aV),c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.ViewContainerRef),c.\u0275\u0275directiveInject(Ee),c.\u0275\u0275directiveInject(ct,8),c.\u0275\u0275directiveInject(Be,10),c.\u0275\u0275directiveInject(q.Is,8),c.\u0275\u0275directiveInject(i.tE),c.\u0275\u0275directiveInject(c.NgZone))},ae.\u0275dir=c.\u0275\u0275defineDirective({type:ae,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(le,Ie){1&le&&c.\u0275\u0275listener("click",function(oe){return Ie._handleClick(oe)})("mousedown",function(oe){return Ie._handleMousedown(oe)})("keydown",function(oe){return Ie._handleKeydown(oe)}),2&le&&c.\u0275\u0275attribute("aria-expanded",Ie.menuOpen||null)("aria-controls",Ie.menuOpen?Ie.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),ae})(),Ge=(()=>{class ae extends dt{}return ae.\u0275fac=function(){let Oe;return function(Ie){return(Oe||(Oe=c.\u0275\u0275getInheritedFactory(ae)))(Ie||ae)}}(),ae.\u0275dir=c.\u0275\u0275defineDirective({type:ae,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[c.\u0275\u0275InheritDefinitionFeature]}),ae})(),V=(()=>{class ae{}return ae.\u0275fac=function(le){return new(le||ae)},ae.\u0275mod=c.\u0275\u0275defineNgModule({type:ae}),ae.\u0275inj=c.\u0275\u0275defineInjector({providers:[mt],imports:[[he.CommonModule,Re.MatCommonModule,Re.MatRippleModule,_e.U8],Ce.ZD,Re.MatCommonModule]}),ae})()},2075:(je,g,l)=>{"use strict";l.r(g),l.d(g,{MatCell:()=>He,MatCellDef:()=>$,MatColumnDef:()=>Bt,MatFooterCell:()=>Le,MatFooterCellDef:()=>it,MatFooterRow:()=>Pt,MatFooterRowDef:()=>Ve,MatHeaderCell:()=>jt,MatHeaderCellDef:()=>Ne,MatHeaderRow:()=>Rt,MatHeaderRowDef:()=>ue,MatNoDataRow:()=>bn,MatRecycleRows:()=>re,MatRow:()=>tn,MatRowDef:()=>lt,MatTable:()=>b,MatTableDataSource:()=>xn,MatTableModule:()=>jn,MatTextColumn:()=>kn,_MatTableDataSource:()=>Qn});var i=l(5e3),u=l(3191),m=l(449),c=l(9808),s=l(6758),_=l(188),D=l(1135),C=l(5191),w=l(9646),h=l(2722),A=l(5698),T=l(226),v=l(925),N=l(9071);const U=[[["caption"]],[["colgroup"],["col"]]],fe=["caption","colgroup, col"];function Q(K,Se){if(1&K&&(i.\u0275\u0275elementStart(0,"th",3),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&K){const G=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",G.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",G.headerText," ")}}function he(K,Se){if(1&K&&(i.\u0275\u0275elementStart(0,"td",4),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&K){const G=Se.$implicit,Ae=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",Ae.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Ae.dataAccessor(G,Ae.name)," ")}}function Re(K){return class extends K{constructor(...Se){super(...Se),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Se){const G=this._sticky;this._sticky=(0,u.Ig)(Se),this._hasStickyChanged=G!==this._sticky}hasStickyChanged(){const Se=this._hasStickyChanged;return this._hasStickyChanged=!1,Se}resetStickyChanged(){this._hasStickyChanged=!1}}}const _e=new i.InjectionToken("CDK_TABLE"),be=new i.InjectionToken("text-column-options");let q=(()=>{class K{constructor(G){this.template=G}}return K.\u0275fac=function(G){return new(G||K)(i.\u0275\u0275directiveInject(i.TemplateRef))},K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["","cdkCellDef",""]]}),K})(),Ce=(()=>{class K{constructor(G){this.template=G}}return K.\u0275fac=function(G){return new(G||K)(i.\u0275\u0275directiveInject(i.TemplateRef))},K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["","cdkHeaderCellDef",""]]}),K})(),Fe=(()=>{class K{constructor(G){this.template=G}}return K.\u0275fac=function(G){return new(G||K)(i.\u0275\u0275directiveInject(i.TemplateRef))},K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["","cdkFooterCellDef",""]]}),K})();class Ye{}const st=Re(Ye);let $e=(()=>{class K extends st{constructor(G){super(),this._table=G,this._stickyEnd=!1}get name(){return this._name}set name(G){this._setNameInput(G)}get stickyEnd(){return this._stickyEnd}set stickyEnd(G){const Ae=this._stickyEnd;this._stickyEnd=(0,u.Ig)(G),this._hasStickyChanged=Ae!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(G){G&&(this._name=G,this.cssClassFriendlyName=G.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return K.\u0275fac=function(G){return new(G||K)(i.\u0275\u0275directiveInject(_e,8))},K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["","cdkColumnDef",""]],contentQueries:function(G,Ae,qe){if(1&G&&(i.\u0275\u0275contentQuery(qe,q,5),i.\u0275\u0275contentQuery(qe,Ce,5),i.\u0275\u0275contentQuery(qe,Fe,5)),2&G){let at;i.\u0275\u0275queryRefresh(at=i.\u0275\u0275loadQuery())&&(Ae.cell=at.first),i.\u0275\u0275queryRefresh(at=i.\u0275\u0275loadQuery())&&(Ae.headerCell=at.first),i.\u0275\u0275queryRefresh(at=i.\u0275\u0275loadQuery())&&(Ae.footerCell=at.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[i.\u0275\u0275ProvidersFeature([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:K}]),i.\u0275\u0275InheritDefinitionFeature]}),K})();class de{constructor(Se,G){G.nativeElement.classList.add(...Se._columnCssClassName)}}let Pe=(()=>{class K extends de{constructor(G,Ae){super(G,Ae)}}return K.\u0275fac=function(G){return new(G||K)(i.\u0275\u0275directiveInject($e),i.\u0275\u0275directiveInject(i.ElementRef))},K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),K})(),z=(()=>{class K extends de{constructor(G,Ae){var qe;if(super(G,Ae),1===(null===(qe=G._table)||void 0===qe?void 0:qe._elementRef.nativeElement.nodeType)){const at=G._table._elementRef.nativeElement.getAttribute("role");Ae.nativeElement.setAttribute("role","grid"===at||"treegrid"===at?"gridcell":"cell")}}}return K.\u0275fac=function(G){return new(G||K)(i.\u0275\u0275directiveInject($e),i.\u0275\u0275directiveInject(i.ElementRef))},K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),K})(),ge=(()=>{class K extends de{constructor(G,Ae){var qe;if(super(G,Ae),1===(null===(qe=G._table)||void 0===qe?void 0:qe._elementRef.nativeElement.nodeType)){const at=G._table._elementRef.nativeElement.getAttribute("role");Ae.nativeElement.setAttribute("role","grid"===at||"treegrid"===at?"gridcell":"cell")}}}return K.\u0275fac=function(G){return new(G||K)(i.\u0275\u0275directiveInject($e),i.\u0275\u0275directiveInject(i.ElementRef))},K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),K})();class ie{constructor(){this.tasks=[],this.endTasks=[]}}const xe=new i.InjectionToken("_COALESCED_STYLE_SCHEDULER");let me=(()=>{class K{constructor(G){this._ngZone=G,this._currentSchedule=null,this._destroyed=new s.x}schedule(G){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(G)}scheduleEnd(G){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(G)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new ie,this._getScheduleObservable().pipe((0,h.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const G=this._currentSchedule;this._currentSchedule=new ie;for(const Ae of G.tasks)Ae();for(const Ae of G.endTasks)Ae()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,_.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,A.q)(1))}}return K.\u0275fac=function(G){return new(G||K)(i.\u0275\u0275inject(i.NgZone))},K.\u0275prov=i.\u0275\u0275defineInjectable({token:K,factory:K.\u0275fac}),K})(),ve=(()=>{class K{constructor(G,Ae){this.template=G,this._differs=Ae}ngOnChanges(G){if(!this._columnsDiffer){const Ae=G.columns&&G.columns.currentValue||[];this._columnsDiffer=this._differs.find(Ae).create(),this._columnsDiffer.diff(Ae)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(G){return this instanceof Dt?G.headerCell.template:this instanceof ne?G.footerCell.template:G.cell.template}}return K.\u0275fac=function(G){return new(G||K)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers))},K.\u0275dir=i.\u0275\u0275defineDirective({type:K,features:[i.\u0275\u0275NgOnChangesFeature]}),K})();class ze extends ve{}const ct=Re(ze);let Dt=(()=>{class K extends ct{constructor(G,Ae,qe){super(G,Ae),this._table=qe}ngOnChanges(G){super.ngOnChanges(G)}}return K.\u0275fac=function(G){return new(G||K)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(_e,8))},K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),K})();class Be extends ve{}const et=Re(Be);let ne=(()=>{class K extends et{constructor(G,Ae,qe){super(G,Ae),this._table=qe}ngOnChanges(G){super.ngOnChanges(G)}}return K.\u0275fac=function(G){return new(G||K)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(_e,8))},K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),K})(),pe=(()=>{class K extends ve{constructor(G,Ae,qe){super(G,Ae),this._table=qe}}return K.\u0275fac=function(G){return new(G||K)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(_e,8))},K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.\u0275\u0275InheritDefinitionFeature]}),K})(),we=(()=>{class K{constructor(G){this._viewContainer=G,K.mostRecentCellOutlet=this}ngOnDestroy(){K.mostRecentCellOutlet===this&&(K.mostRecentCellOutlet=null)}}return K.mostRecentCellOutlet=null,K.\u0275fac=function(G){return new(G||K)(i.\u0275\u0275directiveInject(i.ViewContainerRef))},K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["","cdkCellOutlet",""]]}),K})(),ke=(()=>{class K{}return K.\u0275fac=function(G){return new(G||K)},K.\u0275cmp=i.\u0275\u0275defineComponent({type:K,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(G,Ae){1&G&&i.\u0275\u0275elementContainer(0,0)},directives:[we],encapsulation:2}),K})(),Ee=(()=>{class K{}return K.\u0275fac=function(G){return new(G||K)},K.\u0275cmp=i.\u0275\u0275defineComponent({type:K,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(G,Ae){1&G&&i.\u0275\u0275elementContainer(0,0)},directives:[we],encapsulation:2}),K})(),Ze=(()=>{class K{}return K.\u0275fac=function(G){return new(G||K)},K.\u0275cmp=i.\u0275\u0275defineComponent({type:K,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(G,Ae){1&G&&i.\u0275\u0275elementContainer(0,0)},directives:[we],encapsulation:2}),K})(),mt=(()=>{class K{constructor(G){this.templateRef=G,this._contentClassName="cdk-no-data-row"}}return K.\u0275fac=function(G){return new(G||K)(i.\u0275\u0275directiveInject(i.TemplateRef))},K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["ng-template","cdkNoDataRow",""]]}),K})();const gt=["top","bottom","left","right"];class St{constructor(Se,G,Ae,qe,at=!0,Tt=!0,At){this._isNativeHtmlTable=Se,this._stickCellCss=G,this.direction=Ae,this._coalescedStyleScheduler=qe,this._isBrowser=at,this._needsPositionStickyOnElement=Tt,this._positionListener=At,this._cachedCellWidths=[],this._borderCellCss={top:`${G}-border-elem-top`,bottom:`${G}-border-elem-bottom`,left:`${G}-border-elem-left`,right:`${G}-border-elem-right`}}clearStickyPositioning(Se,G){const Ae=[];for(const qe of Se)if(qe.nodeType===qe.ELEMENT_NODE){Ae.push(qe);for(let at=0;at<qe.children.length;at++)Ae.push(qe.children[at])}this._coalescedStyleScheduler.schedule(()=>{for(const qe of Ae)this._removeStickyStyle(qe,G)})}updateStickyColumns(Se,G,Ae,qe=!0){if(!Se.length||!this._isBrowser||!G.some(nn=>nn)&&!Ae.some(nn=>nn))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const at=Se[0],Tt=at.children.length,At=this._getCellWidths(at,qe),zt=this._getStickyStartColumnPositions(At,G),mn=this._getStickyEndColumnPositions(At,Ae),Ft=G.lastIndexOf(!0),En=Ae.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const nn="rtl"===this.direction,In=nn?"right":"left",Ln=nn?"left":"right";for(const fn of Se)for(let Tn=0;Tn<Tt;Tn++){const qn=fn.children[Tn];G[Tn]&&this._addStickyStyle(qn,In,zt[Tn],Tn===Ft),Ae[Tn]&&this._addStickyStyle(qn,Ln,mn[Tn],Tn===En)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Ft?[]:At.slice(0,Ft+1).map((fn,Tn)=>G[Tn]?fn:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===En?[]:At.slice(En).map((fn,Tn)=>Ae[Tn+En]?fn:null).reverse()}))})}stickRows(Se,G,Ae){if(!this._isBrowser)return;const qe="bottom"===Ae?Se.slice().reverse():Se,at="bottom"===Ae?G.slice().reverse():G,Tt=[],At=[],zt=[];for(let Ft=0,En=0;Ft<qe.length;Ft++){if(!at[Ft])continue;Tt[Ft]=En;const nn=qe[Ft];zt[Ft]=this._isNativeHtmlTable?Array.from(nn.children):[nn];const In=nn.getBoundingClientRect().height;En+=In,At[Ft]=In}const mn=at.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{var Ft,En;for(let nn=0;nn<qe.length;nn++){if(!at[nn])continue;const In=Tt[nn],Ln=nn===mn;for(const fn of zt[nn])this._addStickyStyle(fn,Ae,In,Ln)}"top"===Ae?null===(Ft=this._positionListener)||void 0===Ft||Ft.stickyHeaderRowsUpdated({sizes:At,offsets:Tt,elements:zt}):null===(En=this._positionListener)||void 0===En||En.stickyFooterRowsUpdated({sizes:At,offsets:Tt,elements:zt})})}updateStickyFooterContainer(Se,G){if(!this._isNativeHtmlTable)return;const Ae=Se.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{G.some(qe=>!qe)?this._removeStickyStyle(Ae,["bottom"]):this._addStickyStyle(Ae,"bottom",0,!1)})}_removeStickyStyle(Se,G){for(const qe of G)Se.style[qe]="",Se.classList.remove(this._borderCellCss[qe]);gt.some(qe=>-1===G.indexOf(qe)&&Se.style[qe])?Se.style.zIndex=this._getCalculatedZIndex(Se):(Se.style.zIndex="",this._needsPositionStickyOnElement&&(Se.style.position=""),Se.classList.remove(this._stickCellCss))}_addStickyStyle(Se,G,Ae,qe){Se.classList.add(this._stickCellCss),qe&&Se.classList.add(this._borderCellCss[G]),Se.style[G]=`${Ae}px`,Se.style.zIndex=this._getCalculatedZIndex(Se),this._needsPositionStickyOnElement&&(Se.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Se){const G={top:100,bottom:10,left:1,right:1};let Ae=0;for(const qe of gt)Se.style[qe]&&(Ae+=G[qe]);return Ae?`${Ae}`:""}_getCellWidths(Se,G=!0){if(!G&&this._cachedCellWidths.length)return this._cachedCellWidths;const Ae=[],qe=Se.children;for(let at=0;at<qe.length;at++)Ae.push(qe[at].getBoundingClientRect().width);return this._cachedCellWidths=Ae,Ae}_getStickyStartColumnPositions(Se,G){const Ae=[];let qe=0;for(let at=0;at<Se.length;at++)G[at]&&(Ae[at]=qe,qe+=Se[at]);return Ae}_getStickyEndColumnPositions(Se,G){const Ae=[];let qe=0;for(let at=Se.length;at>0;at--)G[at]&&(Ae[at]=qe,qe+=Se[at]);return Ae}}const oe=new i.InjectionToken("CDK_SPL");let Qe=(()=>{class K{constructor(G,Ae){this.viewContainer=G,this.elementRef=Ae}}return K.\u0275fac=function(G){return new(G||K)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ElementRef))},K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["","rowOutlet",""]]}),K})(),nt=(()=>{class K{constructor(G,Ae){this.viewContainer=G,this.elementRef=Ae}}return K.\u0275fac=function(G){return new(G||K)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ElementRef))},K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["","headerRowOutlet",""]]}),K})(),ht=(()=>{class K{constructor(G,Ae){this.viewContainer=G,this.elementRef=Ae}}return K.\u0275fac=function(G){return new(G||K)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ElementRef))},K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["","footerRowOutlet",""]]}),K})(),pt=(()=>{class K{constructor(G,Ae){this.viewContainer=G,this.elementRef=Ae}}return K.\u0275fac=function(G){return new(G||K)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ElementRef))},K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["","noDataRowOutlet",""]]}),K})(),Kt=(()=>{class K{constructor(G,Ae,qe,at,Tt,At,zt,mn,Ft,En,nn,In){this._differs=G,this._changeDetectorRef=Ae,this._elementRef=qe,this._dir=Tt,this._platform=zt,this._viewRepeater=mn,this._coalescedStyleScheduler=Ft,this._viewportRuler=En,this._stickyPositioningListener=nn,this._ngZone=In,this._onDestroy=new s.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new i.EventEmitter,this.viewChange=new D.X({start:0,end:Number.MAX_VALUE}),at||this._elementRef.nativeElement.setAttribute("role","table"),this._document=At,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(G){this._trackByFn=G}get dataSource(){return this._dataSource}set dataSource(G){this._dataSource!==G&&this._switchDataSource(G)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(G){this._multiTemplateDataRows=(0,u.Ig)(G),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(G){this._fixedLayout=(0,u.Ig)(G),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((G,Ae)=>this.trackBy?this.trackBy(Ae.dataIndex,Ae.data):Ae),this._viewportRuler.change().pipe((0,h.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Ae=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Ae,this._forceRecalculateCellWidths=Ae,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(G=>{G.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,m.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const G=this._dataDiffer.diff(this._renderRows);if(!G)return this._updateNoDataRow(),void this.contentChanged.next();const Ae=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(G,Ae,(qe,at,Tt)=>this._getEmbeddedViewArgs(qe.item,Tt),qe=>qe.item.data,qe=>{1===qe.operation&&qe.context&&this._renderCellTemplateForItem(qe.record.item.rowDef,qe.context)}),this._updateRowIndexContext(),G.forEachIdentityChange(qe=>{Ae.get(qe.currentIndex).context.$implicit=qe.item.data}),this._updateNoDataRow(),this._ngZone&&i.NgZone.isInAngularZone()?this._ngZone.onStable.pipe((0,A.q)(1),(0,h.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(G){this._customColumnDefs.add(G)}removeColumnDef(G){this._customColumnDefs.delete(G)}addRowDef(G){this._customRowDefs.add(G)}removeRowDef(G){this._customRowDefs.delete(G)}addHeaderRowDef(G){this._customHeaderRowDefs.add(G),this._headerRowDefChanged=!0}removeHeaderRowDef(G){this._customHeaderRowDefs.delete(G),this._headerRowDefChanged=!0}addFooterRowDef(G){this._customFooterRowDefs.add(G),this._footerRowDefChanged=!0}removeFooterRowDef(G){this._customFooterRowDefs.delete(G),this._footerRowDefChanged=!0}setNoDataRow(G){this._customNoDataRow=G}updateStickyHeaderRowStyles(){const G=this._getRenderedRows(this._headerRowOutlet),qe=this._elementRef.nativeElement.querySelector("thead");qe&&(qe.style.display=G.length?"":"none");const at=this._headerRowDefs.map(Tt=>Tt.sticky);this._stickyStyler.clearStickyPositioning(G,["top"]),this._stickyStyler.stickRows(G,at,"top"),this._headerRowDefs.forEach(Tt=>Tt.resetStickyChanged())}updateStickyFooterRowStyles(){const G=this._getRenderedRows(this._footerRowOutlet),qe=this._elementRef.nativeElement.querySelector("tfoot");qe&&(qe.style.display=G.length?"":"none");const at=this._footerRowDefs.map(Tt=>Tt.sticky);this._stickyStyler.clearStickyPositioning(G,["bottom"]),this._stickyStyler.stickRows(G,at,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,at),this._footerRowDefs.forEach(Tt=>Tt.resetStickyChanged())}updateStickyColumnStyles(){const G=this._getRenderedRows(this._headerRowOutlet),Ae=this._getRenderedRows(this._rowOutlet),qe=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...G,...Ae,...qe],["left","right"]),this._stickyColumnStylesNeedReset=!1),G.forEach((at,Tt)=>{this._addStickyColumnStyles([at],this._headerRowDefs[Tt])}),this._rowDefs.forEach(at=>{const Tt=[];for(let At=0;At<Ae.length;At++)this._renderRows[At].rowDef===at&&Tt.push(Ae[At]);this._addStickyColumnStyles(Tt,at)}),qe.forEach((at,Tt)=>{this._addStickyColumnStyles([at],this._footerRowDefs[Tt])}),Array.from(this._columnDefsByName.values()).forEach(at=>at.resetStickyChanged())}_getAllRenderRows(){const G=[],Ae=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let qe=0;qe<this._data.length;qe++){let at=this._data[qe];const Tt=this._getRenderRowsForData(at,qe,Ae.get(at));this._cachedRenderRowsMap.has(at)||this._cachedRenderRowsMap.set(at,new WeakMap);for(let At=0;At<Tt.length;At++){let zt=Tt[At];const mn=this._cachedRenderRowsMap.get(zt.data);mn.has(zt.rowDef)?mn.get(zt.rowDef).push(zt):mn.set(zt.rowDef,[zt]),G.push(zt)}}return G}_getRenderRowsForData(G,Ae,qe){return this._getRowDefs(G,Ae).map(Tt=>{const At=qe&&qe.has(Tt)?qe.get(Tt):[];if(At.length){const zt=At.shift();return zt.dataIndex=Ae,zt}return{data:G,rowDef:Tt,dataIndex:Ae}})}_cacheColumnDefs(){this._columnDefsByName.clear(),xt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Ae=>{this._columnDefsByName.has(Ae.name),this._columnDefsByName.set(Ae.name,Ae)})}_cacheRowDefs(){this._headerRowDefs=xt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=xt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=xt(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const G=this._rowDefs.filter(Ae=>!Ae.when);this._defaultRowDef=G[0]}_renderUpdatedColumns(){const G=(Tt,At)=>Tt||!!At.getColumnsDiff(),Ae=this._rowDefs.reduce(G,!1);Ae&&this._forceRenderDataRows();const qe=this._headerRowDefs.reduce(G,!1);qe&&this._forceRenderHeaderRows();const at=this._footerRowDefs.reduce(G,!1);return at&&this._forceRenderFooterRows(),Ae||qe||at}_switchDataSource(G){this._data=[],(0,m.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),G||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=G}_observeRenderChanges(){if(!this.dataSource)return;let G;(0,m.Z9)(this.dataSource)?G=this.dataSource.connect(this):(0,C.b)(this.dataSource)?G=this.dataSource:Array.isArray(this.dataSource)&&(G=(0,w.of)(this.dataSource)),this._renderChangeSubscription=G.pipe((0,h.R)(this._onDestroy)).subscribe(Ae=>{this._data=Ae||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((G,Ae)=>this._renderRow(this._headerRowOutlet,G,Ae)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((G,Ae)=>this._renderRow(this._footerRowOutlet,G,Ae)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(G,Ae){const qe=Array.from(Ae.columns||[]).map(At=>this._columnDefsByName.get(At)),at=qe.map(At=>At.sticky),Tt=qe.map(At=>At.stickyEnd);this._stickyStyler.updateStickyColumns(G,at,Tt,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(G){const Ae=[];for(let qe=0;qe<G.viewContainer.length;qe++){const at=G.viewContainer.get(qe);Ae.push(at.rootNodes[0])}return Ae}_getRowDefs(G,Ae){if(1==this._rowDefs.length)return[this._rowDefs[0]];let qe=[];if(this.multiTemplateDataRows)qe=this._rowDefs.filter(at=>!at.when||at.when(Ae,G));else{let at=this._rowDefs.find(Tt=>Tt.when&&Tt.when(Ae,G))||this._defaultRowDef;at&&qe.push(at)}return qe}_getEmbeddedViewArgs(G,Ae){return{templateRef:G.rowDef.template,context:{$implicit:G.data},index:Ae}}_renderRow(G,Ae,qe,at={}){const Tt=G.viewContainer.createEmbeddedView(Ae.template,at,qe);return this._renderCellTemplateForItem(Ae,at),Tt}_renderCellTemplateForItem(G,Ae){for(let qe of this._getCellTemplates(G))we.mostRecentCellOutlet&&we.mostRecentCellOutlet._viewContainer.createEmbeddedView(qe,Ae);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const G=this._rowOutlet.viewContainer;for(let Ae=0,qe=G.length;Ae<qe;Ae++){const Tt=G.get(Ae).context;Tt.count=qe,Tt.first=0===Ae,Tt.last=Ae===qe-1,Tt.even=Ae%2==0,Tt.odd=!Tt.even,this.multiTemplateDataRows?(Tt.dataIndex=this._renderRows[Ae].dataIndex,Tt.renderIndex=Ae):Tt.index=this._renderRows[Ae].dataIndex}}_getCellTemplates(G){return G&&G.columns?Array.from(G.columns,Ae=>{const qe=this._columnDefsByName.get(Ae);return G.extractCellTemplate(qe)}):[]}_applyNativeTableSections(){const G=this._document.createDocumentFragment(),Ae=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const qe of Ae){const at=this._document.createElement(qe.tag);at.setAttribute("role","rowgroup");for(const Tt of qe.outlets)at.appendChild(Tt.elementRef.nativeElement);G.appendChild(at)}this._elementRef.nativeElement.appendChild(G)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const G=(Ae,qe)=>Ae||qe.hasStickyChanged();this._headerRowDefs.reduce(G,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(G,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(G,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new St(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,w.of)()).pipe((0,h.R)(this._onDestroy)).subscribe(Ae=>{this._stickyStyler.direction=Ae,this.updateStickyColumnStyles()})}_getOwnDefs(G){return G.filter(Ae=>!Ae._table||Ae._table===this)}_updateNoDataRow(){const G=this._customNoDataRow||this._noDataRow;if(!G)return;const Ae=0===this._rowOutlet.viewContainer.length;if(Ae===this._isShowingNoDataRow)return;const qe=this._noDataRowOutlet.viewContainer;if(Ae){const at=qe.createEmbeddedView(G.templateRef),Tt=at.rootNodes[0];1===at.rootNodes.length&&(null==Tt?void 0:Tt.nodeType)===this._document.ELEMENT_NODE&&(Tt.setAttribute("role","row"),Tt.classList.add(G._contentClassName))}else qe.clear();this._isShowingNoDataRow=Ae}}return K.\u0275fac=function(G){return new(G||K)(i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275injectAttribute("role"),i.\u0275\u0275directiveInject(T.Is,8),i.\u0275\u0275directiveInject(c.DOCUMENT),i.\u0275\u0275directiveInject(v.t4),i.\u0275\u0275directiveInject(m.k),i.\u0275\u0275directiveInject(xe),i.\u0275\u0275directiveInject(N.rL),i.\u0275\u0275directiveInject(oe,12),i.\u0275\u0275directiveInject(i.NgZone,8))},K.\u0275cmp=i.\u0275\u0275defineComponent({type:K,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(G,Ae,qe){if(1&G&&(i.\u0275\u0275contentQuery(qe,mt,5),i.\u0275\u0275contentQuery(qe,$e,5),i.\u0275\u0275contentQuery(qe,pe,5),i.\u0275\u0275contentQuery(qe,Dt,5),i.\u0275\u0275contentQuery(qe,ne,5)),2&G){let at;i.\u0275\u0275queryRefresh(at=i.\u0275\u0275loadQuery())&&(Ae._noDataRow=at.first),i.\u0275\u0275queryRefresh(at=i.\u0275\u0275loadQuery())&&(Ae._contentColumnDefs=at),i.\u0275\u0275queryRefresh(at=i.\u0275\u0275loadQuery())&&(Ae._contentRowDefs=at),i.\u0275\u0275queryRefresh(at=i.\u0275\u0275loadQuery())&&(Ae._contentHeaderRowDefs=at),i.\u0275\u0275queryRefresh(at=i.\u0275\u0275loadQuery())&&(Ae._contentFooterRowDefs=at)}},viewQuery:function(G,Ae){if(1&G&&(i.\u0275\u0275viewQuery(Qe,7),i.\u0275\u0275viewQuery(nt,7),i.\u0275\u0275viewQuery(ht,7),i.\u0275\u0275viewQuery(pt,7)),2&G){let qe;i.\u0275\u0275queryRefresh(qe=i.\u0275\u0275loadQuery())&&(Ae._rowOutlet=qe.first),i.\u0275\u0275queryRefresh(qe=i.\u0275\u0275loadQuery())&&(Ae._headerRowOutlet=qe.first),i.\u0275\u0275queryRefresh(qe=i.\u0275\u0275loadQuery())&&(Ae._footerRowOutlet=qe.first),i.\u0275\u0275queryRefresh(qe=i.\u0275\u0275loadQuery())&&(Ae._noDataRowOutlet=qe.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(G,Ae){2&G&&i.\u0275\u0275classProp("cdk-table-fixed-layout",Ae.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[i.\u0275\u0275ProvidersFeature([{provide:_e,useExisting:K},{provide:m.k,useClass:m.yy},{provide:xe,useClass:me},{provide:oe,useValue:null}])],ngContentSelectors:fe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(G,Ae){1&G&&(i.\u0275\u0275projectionDef(U),i.\u0275\u0275projection(0),i.\u0275\u0275projection(1,1),i.\u0275\u0275elementContainer(2,0)(3,1)(4,2)(5,3))},directives:[nt,Qe,pt,ht],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),K})();function xt(K,Se){return K.concat(Array.from(Se))}let pn=(()=>{class K{constructor(G,Ae){this._table=G,this._options=Ae,this.justify="start",this._options=Ae||{}}get name(){return this._name}set name(G){this._name=G,this._syncColumnDefName()}ngOnInit(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((G,Ae)=>G[Ae])),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))}ngOnDestroy(){this._table&&this._table.removeColumnDef(this.columnDef)}_createDefaultHeaderText(){const G=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(G):G[0].toUpperCase()+G.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}return K.\u0275fac=function(G){return new(G||K)(i.\u0275\u0275directiveInject(Kt,8),i.\u0275\u0275directiveInject(be,8))},K.\u0275cmp=i.\u0275\u0275defineComponent({type:K,selectors:[["cdk-text-column"]],viewQuery:function(G,Ae){if(1&G&&(i.\u0275\u0275viewQuery($e,7),i.\u0275\u0275viewQuery(q,7),i.\u0275\u0275viewQuery(Ce,7)),2&G){let qe;i.\u0275\u0275queryRefresh(qe=i.\u0275\u0275loadQuery())&&(Ae.columnDef=qe.first),i.\u0275\u0275queryRefresh(qe=i.\u0275\u0275loadQuery())&&(Ae.cell=qe.first),i.\u0275\u0275queryRefresh(qe=i.\u0275\u0275loadQuery())&&(Ae.headerCell=qe.first)}},inputs:{name:"name",headerText:"headerText",dataAccessor:"dataAccessor",justify:"justify"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(G,Ae){1&G&&(i.\u0275\u0275elementContainerStart(0,0),i.\u0275\u0275template(1,Q,2,3,"th",1),i.\u0275\u0275template(2,he,2,3,"td",2),i.\u0275\u0275elementContainerEnd())},directives:[$e,Ce,Pe,q,ge],encapsulation:2}),K})(),Nt=(()=>{class K{}return K.\u0275fac=function(G){return new(G||K)},K.\u0275mod=i.\u0275\u0275defineNgModule({type:K}),K.\u0275inj=i.\u0275\u0275defineInjector({imports:[[N.Cl]]}),K})();var Et=l(508),ln=l(6451),Ut=l(9841),Xt=l(4004);const ce=[[["caption"]],[["colgroup"],["col"]]],J=["caption","colgroup, col"];function B(K,Se){if(1&K&&(i.\u0275\u0275elementStart(0,"th",3),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&K){const G=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",G.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",G.headerText," ")}}function P(K,Se){if(1&K&&(i.\u0275\u0275elementStart(0,"td",4),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&K){const G=Se.$implicit,Ae=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",Ae.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Ae.dataAccessor(G,Ae.name)," ")}}let re=(()=>{class K{}return K.\u0275fac=function(G){return new(G||K)},K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:m.k,useClass:m.eX}])]}),K})(),b=(()=>{class K extends Kt{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return K.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(K)))(Ae||K)}}(),K.\u0275cmp=i.\u0275\u0275defineComponent({type:K,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(G,Ae){2&G&&i.\u0275\u0275classProp("mat-table-fixed-layout",Ae.fixedLayout)},exportAs:["matTable"],features:[i.\u0275\u0275ProvidersFeature([{provide:m.k,useClass:m.yy},{provide:Kt,useExisting:K},{provide:_e,useExisting:K},{provide:xe,useClass:me},{provide:oe,useValue:null}]),i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:J,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(G,Ae){1&G&&(i.\u0275\u0275projectionDef(ce),i.\u0275\u0275projection(0),i.\u0275\u0275projection(1,1),i.\u0275\u0275elementContainer(2,0)(3,1)(4,2)(5,3))},directives:[nt,Qe,pt,ht],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),K})(),$=(()=>{class K extends q{}return K.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(K)))(Ae||K)}}(),K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["","matCellDef",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:q,useExisting:K}]),i.\u0275\u0275InheritDefinitionFeature]}),K})(),Ne=(()=>{class K extends Ce{}return K.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(K)))(Ae||K)}}(),K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["","matHeaderCellDef",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:Ce,useExisting:K}]),i.\u0275\u0275InheritDefinitionFeature]}),K})(),it=(()=>{class K extends Fe{}return K.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(K)))(Ae||K)}}(),K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["","matFooterCellDef",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:Fe,useExisting:K}]),i.\u0275\u0275InheritDefinitionFeature]}),K})(),Bt=(()=>{class K extends $e{get name(){return this._name}set name(G){this._setNameInput(G)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return K.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(K)))(Ae||K)}}(),K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i.\u0275\u0275ProvidersFeature([{provide:$e,useExisting:K},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:K}]),i.\u0275\u0275InheritDefinitionFeature]}),K})(),jt=(()=>{class K extends Pe{}return K.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(K)))(Ae||K)}}(),K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),K})(),Le=(()=>{class K extends z{}return K.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(K)))(Ae||K)}}(),K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),K})(),He=(()=>{class K extends ge{}return K.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(K)))(Ae||K)}}(),K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),K})(),ue=(()=>{class K extends Dt{}return K.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(K)))(Ae||K)}}(),K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i.\u0275\u0275ProvidersFeature([{provide:Dt,useExisting:K}]),i.\u0275\u0275InheritDefinitionFeature]}),K})(),Ve=(()=>{class K extends ne{}return K.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(K)))(Ae||K)}}(),K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[i.\u0275\u0275ProvidersFeature([{provide:ne,useExisting:K}]),i.\u0275\u0275InheritDefinitionFeature]}),K})(),lt=(()=>{class K extends pe{}return K.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(K)))(Ae||K)}}(),K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i.\u0275\u0275ProvidersFeature([{provide:pe,useExisting:K}]),i.\u0275\u0275InheritDefinitionFeature]}),K})(),Rt=(()=>{class K extends ke{}return K.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(K)))(Ae||K)}}(),K.\u0275cmp=i.\u0275\u0275defineComponent({type:K,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[i.\u0275\u0275ProvidersFeature([{provide:ke,useExisting:K}]),i.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(G,Ae){1&G&&i.\u0275\u0275elementContainer(0,0)},directives:[we],encapsulation:2}),K})(),Pt=(()=>{class K extends Ee{}return K.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(K)))(Ae||K)}}(),K.\u0275cmp=i.\u0275\u0275defineComponent({type:K,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[i.\u0275\u0275ProvidersFeature([{provide:Ee,useExisting:K}]),i.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(G,Ae){1&G&&i.\u0275\u0275elementContainer(0,0)},directives:[we],encapsulation:2}),K})(),tn=(()=>{class K extends Ze{}return K.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(K)))(Ae||K)}}(),K.\u0275cmp=i.\u0275\u0275defineComponent({type:K,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[i.\u0275\u0275ProvidersFeature([{provide:Ze,useExisting:K}]),i.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(G,Ae){1&G&&i.\u0275\u0275elementContainer(0,0)},directives:[we],encapsulation:2}),K})(),bn=(()=>{class K extends mt{constructor(){super(...arguments),this._contentClassName="mat-no-data-row"}}return K.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(K)))(Ae||K)}}(),K.\u0275dir=i.\u0275\u0275defineDirective({type:K,selectors:[["ng-template","matNoDataRow",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:mt,useExisting:K}]),i.\u0275\u0275InheritDefinitionFeature]}),K})(),kn=(()=>{class K extends pn{}return K.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(K)))(Ae||K)}}(),K.\u0275cmp=i.\u0275\u0275defineComponent({type:K,selectors:[["mat-text-column"]],features:[i.\u0275\u0275InheritDefinitionFeature],decls:3,vars:0,consts:[["matColumnDef",""],["mat-header-cell","",3,"text-align",4,"matHeaderCellDef"],["mat-cell","",3,"text-align",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""]],template:function(G,Ae){1&G&&(i.\u0275\u0275elementContainerStart(0,0),i.\u0275\u0275template(1,B,2,3,"th",1),i.\u0275\u0275template(2,P,2,3,"td",2),i.\u0275\u0275elementContainerEnd())},directives:[Bt,Ne,jt,$,He],encapsulation:2}),K})(),jn=(()=>{class K{}return K.\u0275fac=function(G){return new(G||K)},K.\u0275mod=i.\u0275\u0275defineNgModule({type:K}),K.\u0275inj=i.\u0275\u0275defineInjector({imports:[[Nt,Et.MatCommonModule],Et.MatCommonModule]}),K})();class Qn extends m.o2{constructor(Se=[]){super(),this._renderData=new D.X([]),this._filter=new D.X(""),this._internalPageChanges=new s.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(G,Ae)=>{const qe=G[Ae];if((0,u.t6)(qe)){const at=Number(qe);return at<9007199254740991?at:qe}return qe},this.sortData=(G,Ae)=>{const qe=Ae.active,at=Ae.direction;return qe&&""!=at?G.sort((Tt,At)=>{let zt=this.sortingDataAccessor(Tt,qe),mn=this.sortingDataAccessor(At,qe);const Ft=typeof zt,En=typeof mn;Ft!==En&&("number"===Ft&&(zt+=""),"number"===En&&(mn+=""));let nn=0;return null!=zt&&null!=mn?zt>mn?nn=1:zt<mn&&(nn=-1):null!=zt?nn=1:null!=mn&&(nn=-1),nn*("asc"==at?1:-1)}):G},this.filterPredicate=(G,Ae)=>{const qe=Object.keys(G).reduce((Tt,At)=>Tt+G[At]+"\u25ec","").toLowerCase(),at=Ae.trim().toLowerCase();return-1!=qe.indexOf(at)},this._data=new D.X(Se),this._updateChangeSubscription()}get data(){return this._data.value}set data(Se){Se=Array.isArray(Se)?Se:[],this._data.next(Se),this._renderChangesSubscription||this._filterData(Se)}get filter(){return this._filter.value}set filter(Se){this._filter.next(Se),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Se){this._sort=Se,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Se){this._paginator=Se,this._updateChangeSubscription()}_updateChangeSubscription(){var Se;const G=this._sort?(0,ln.T)(this._sort.sortChange,this._sort.initialized):(0,w.of)(null),Ae=this._paginator?(0,ln.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,w.of)(null),at=(0,Ut.a)([this._data,this._filter]).pipe((0,Xt.U)(([zt])=>this._filterData(zt))),Tt=(0,Ut.a)([at,G]).pipe((0,Xt.U)(([zt])=>this._orderData(zt))),At=(0,Ut.a)([Tt,Ae]).pipe((0,Xt.U)(([zt])=>this._pageData(zt)));null===(Se=this._renderChangesSubscription)||void 0===Se||Se.unsubscribe(),this._renderChangesSubscription=At.subscribe(zt=>this._renderData.next(zt))}_filterData(Se){return this.filteredData=null==this.filter||""===this.filter?Se:Se.filter(G=>this.filterPredicate(G,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Se){return this.sort?this.sortData(Se.slice(),this.sort):Se}_pageData(Se){if(!this.paginator)return Se;const G=this.paginator.pageIndex*this.paginator.pageSize;return Se.slice(G,G+this.paginator.pageSize)}_updatePaginator(Se){Promise.resolve().then(()=>{const G=this.paginator;if(G&&(G.length=Se,G.pageIndex>0)){const Ae=Math.ceil(G.length/G.pageSize)-1||0,qe=Math.min(G.pageIndex,Ae);qe!==G.pageIndex&&(G.pageIndex=qe,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var Se;null===(Se=this._renderChangesSubscription)||void 0===Se||Se.unsubscribe(),this._renderChangesSubscription=null}}class xn extends Qn{}},3251:(je,g,l)=>{"use strict";l.r(g),l.d(g,{MAT_TAB:()=>Ze,MAT_TABS_CONFIG:()=>le,MAT_TAB_GROUP:()=>St,MatInkBar:()=>pe,MatTab:()=>dt,MatTabBody:()=>Oe,MatTabBodyPortal:()=>V,MatTabChangeEvent:()=>Kt,MatTabContent:()=>ke,MatTabGroup:()=>Jt,MatTabHeader:()=>Ct,MatTabLabel:()=>mt,MatTabLabelWrapper:()=>Te,MatTabLink:()=>ce,MatTabNav:()=>ln,MatTabNavPanel:()=>J,MatTabsModule:()=>B,_MAT_INK_BAR_POSITIONER:()=>et,_MatTabBodyBase:()=>ae,_MatTabGroupBase:()=>pn,_MatTabHeaderBase:()=>pt,_MatTabLinkBase:()=>Xt,_MatTabNavBase:()=>Et,matTabsAnimations:()=>Ge});var i=l(5664),u=l(7144),m=l(7429),c=l(9808),s=l(5e3),_=l(508),D=l(6360),C=l(6758),w=l(6921),h=l(4968),A=l(9646),T=l(6451),v=l(2805),N=l(1777),U=l(8675),fe=l(1884),Q=l(2722),he=l(226),Re=l(3191),_e=l(1159),be=l(925),q=l(9071);function Ce(P,re){1&P&&s.\u0275\u0275projection(0)}const Fe=["*"];function Ye(P,re){}const st=function(P){return{animationDuration:P}},$e=function(P,re){return{value:P,params:re}},de=["tabListContainer"],Pe=["tabList"],z=["tabListInner"],ge=["nextPaginator"],ie=["previousPaginator"],xe=["tabBodyWrapper"],me=["tabHeader"];function Je(P,re){}function ve(P,re){if(1&P&&s.\u0275\u0275template(0,Je,0,0,"ng-template",10),2&P){const b=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275property("cdkPortalOutlet",b.templateLabel)}}function ze(P,re){if(1&P&&s.\u0275\u0275text(0),2&P){const b=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275textInterpolate(b.textLabel)}}function ct(P,re){if(1&P){const b=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"div",6),s.\u0275\u0275listener("click",function(){const Ne=s.\u0275\u0275restoreView(b),it=Ne.$implicit,Bt=Ne.index,jt=s.\u0275\u0275nextContext(),Le=s.\u0275\u0275reference(1);return jt._handleClick(it,Le,Bt)})("cdkFocusChange",function(Ne){const Bt=s.\u0275\u0275restoreView(b).index;return s.\u0275\u0275nextContext()._tabFocusChanged(Ne,Bt)}),s.\u0275\u0275elementStart(1,"div",7),s.\u0275\u0275template(2,ve,1,1,"ng-template",8),s.\u0275\u0275template(3,ze,1,1,"ng-template",null,9,s.\u0275\u0275templateRefExtractor),s.\u0275\u0275elementEnd()()}if(2&P){const b=re.$implicit,$=re.index,Ne=s.\u0275\u0275reference(4),it=s.\u0275\u0275nextContext();s.\u0275\u0275classProp("mat-tab-label-active",it.selectedIndex===$),s.\u0275\u0275property("id",it._getTabLabelId($))("ngClass",b.labelClass)("disabled",b.disabled)("matRippleDisabled",b.disabled||it.disableRipple),s.\u0275\u0275attribute("tabIndex",it._getTabIndex(b,$))("aria-posinset",$+1)("aria-setsize",it._tabs.length)("aria-controls",it._getTabContentId($))("aria-selected",it.selectedIndex===$)("aria-label",b.ariaLabel||null)("aria-labelledby",!b.ariaLabel&&b.ariaLabelledby?b.ariaLabelledby:null),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngIf",b.templateLabel)("ngIfElse",Ne)}}function Dt(P,re){if(1&P){const b=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"mat-tab-body",11),s.\u0275\u0275listener("_onCentered",function(){return s.\u0275\u0275restoreView(b),s.\u0275\u0275nextContext()._removeTabBodyWrapperHeight()})("_onCentering",function(Ne){return s.\u0275\u0275restoreView(b),s.\u0275\u0275nextContext()._setTabBodyWrapperHeight(Ne)}),s.\u0275\u0275elementEnd()}if(2&P){const b=re.$implicit,$=re.index,Ne=s.\u0275\u0275nextContext();s.\u0275\u0275classProp("mat-tab-body-active",Ne.selectedIndex===$),s.\u0275\u0275property("id",Ne._getTabContentId($))("ngClass",b.bodyClass)("content",b.content)("position",b.position)("origin",b.origin)("animationDuration",Ne.animationDuration),s.\u0275\u0275attribute("tabindex",null!=Ne.contentTabIndex&&Ne.selectedIndex===$?Ne.contentTabIndex:null)("aria-labelledby",Ne._getTabLabelId($))}}const Be=["mat-tab-nav-bar",""],et=new s.InjectionToken("MatInkBarPositioner",{providedIn:"root",factory:function ne(){return re=>({left:re?(re.offsetLeft||0)+"px":"0",width:re?(re.offsetWidth||0)+"px":"0"})}});let pe=(()=>{class P{constructor(b,$,Ne,it){this._elementRef=b,this._ngZone=$,this._inkBarPositioner=Ne,this._animationMode=it}alignToElement(b){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(b))}):this._setStyles(b)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(b){const $=this._inkBarPositioner(b),Ne=this._elementRef.nativeElement;Ne.style.left=$.left,Ne.style.width=$.width}}return P.\u0275fac=function(b){return new(b||P)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(et),s.\u0275\u0275directiveInject(D.ANIMATION_MODULE_TYPE,8))},P.\u0275dir=s.\u0275\u0275defineDirective({type:P,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(b,$){2&b&&s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===$._animationMode)}}),P})();const we=new s.InjectionToken("MatTabContent");let ke=(()=>{class P{constructor(b){this.template=b}}return P.\u0275fac=function(b){return new(b||P)(s.\u0275\u0275directiveInject(s.TemplateRef))},P.\u0275dir=s.\u0275\u0275defineDirective({type:P,selectors:[["","matTabContent",""]],features:[s.\u0275\u0275ProvidersFeature([{provide:we,useExisting:P}])]}),P})();const Ee=new s.InjectionToken("MatTabLabel"),Ze=new s.InjectionToken("MAT_TAB");let mt=(()=>{class P extends m.ig{constructor(b,$,Ne){super(b,$),this._closestTab=Ne}}return P.\u0275fac=function(b){return new(b||P)(s.\u0275\u0275directiveInject(s.TemplateRef),s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject(Ze,8))},P.\u0275dir=s.\u0275\u0275defineDirective({type:P,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[s.\u0275\u0275ProvidersFeature([{provide:Ee,useExisting:P}]),s.\u0275\u0275InheritDefinitionFeature]}),P})();const gt=(0,_.mixinDisabled)(class{}),St=new s.InjectionToken("MAT_TAB_GROUP");let dt=(()=>{class P extends gt{constructor(b,$){super(),this._viewContainerRef=b,this._closestTabGroup=$,this.textLabel="",this._contentPortal=null,this._stateChanges=new C.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(b){this._setTemplateLabelInput(b)}get content(){return this._contentPortal}ngOnChanges(b){(b.hasOwnProperty("textLabel")||b.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new m.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(b){b&&b._closestTab===this&&(this._templateLabel=b)}}return P.\u0275fac=function(b){return new(b||P)(s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject(St,8))},P.\u0275cmp=s.\u0275\u0275defineComponent({type:P,selectors:[["mat-tab"]],contentQueries:function(b,$,Ne){if(1&b&&(s.\u0275\u0275contentQuery(Ne,Ee,5),s.\u0275\u0275contentQuery(Ne,we,7,s.TemplateRef)),2&b){let it;s.\u0275\u0275queryRefresh(it=s.\u0275\u0275loadQuery())&&($.templateLabel=it.first),s.\u0275\u0275queryRefresh(it=s.\u0275\u0275loadQuery())&&($._explicitContent=it.first)}},viewQuery:function(b,$){if(1&b&&s.\u0275\u0275viewQuery(s.TemplateRef,7),2&b){let Ne;s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&($._implicitContent=Ne.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[s.\u0275\u0275ProvidersFeature([{provide:Ze,useExisting:P}]),s.\u0275\u0275InheritDefinitionFeature,s.\u0275\u0275NgOnChangesFeature],ngContentSelectors:Fe,decls:1,vars:0,template:function(b,$){1&b&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275template(0,Ce,1,0,"ng-template"))},encapsulation:2}),P})();const Ge={translateTab:(0,N.X$)("translateTab",[(0,N.SB)("center, void, left-origin-center, right-origin-center",(0,N.oB)({transform:"none"})),(0,N.SB)("left",(0,N.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,N.SB)("right",(0,N.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,N.eR)("* => left, * => right, left => center, right => center",(0,N.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,N.eR)("void => left-origin-center",[(0,N.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,N.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,N.eR)("void => right-origin-center",[(0,N.oB)({transform:"translate3d(100%, 0, 0)"}),(0,N.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let V=(()=>{class P extends m.Pl{constructor(b,$,Ne,it){super(b,$,it),this._host=Ne,this._centeringSub=w.w0.EMPTY,this._leavingSub=w.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,U.O)(this._host._isCenterPosition(this._host._position))).subscribe(b=>{b&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return P.\u0275fac=function(b){return new(b||P)(s.\u0275\u0275directiveInject(s.ComponentFactoryResolver),s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject((0,s.forwardRef)(()=>Oe)),s.\u0275\u0275directiveInject(c.DOCUMENT))},P.\u0275dir=s.\u0275\u0275defineDirective({type:P,selectors:[["","matTabBodyHost",""]],features:[s.\u0275\u0275InheritDefinitionFeature]}),P})(),ae=(()=>{class P{constructor(b,$,Ne){this._elementRef=b,this._dir=$,this._dirChangeSubscription=w.w0.EMPTY,this._translateTabComplete=new C.x,this._onCentering=new s.EventEmitter,this._beforeCentering=new s.EventEmitter,this._afterLeavingCenter=new s.EventEmitter,this._onCentered=new s.EventEmitter(!0),this.animationDuration="500ms",$&&(this._dirChangeSubscription=$.change.subscribe(it=>{this._computePositionAnimationState(it),Ne.markForCheck()})),this._translateTabComplete.pipe((0,fe.x)((it,Bt)=>it.fromState===Bt.fromState&&it.toState===Bt.toState)).subscribe(it=>{this._isCenterPosition(it.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(it.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(b){this._positionIndex=b,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(b){const $=this._isCenterPosition(b.toState);this._beforeCentering.emit($),$&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(b){return"center"==b||"left-origin-center"==b||"right-origin-center"==b}_computePositionAnimationState(b=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==b?"left":"right":this._positionIndex>0?"ltr"==b?"right":"left":"center"}_computePositionFromOrigin(b){const $=this._getLayoutDirection();return"ltr"==$&&b<=0||"rtl"==$&&b>0?"left-origin-center":"right-origin-center"}}return P.\u0275fac=function(b){return new(b||P)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(he.Is,8),s.\u0275\u0275directiveInject(s.ChangeDetectorRef))},P.\u0275dir=s.\u0275\u0275defineDirective({type:P,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),P})(),Oe=(()=>{class P extends ae{constructor(b,$,Ne){super(b,$,Ne)}}return P.\u0275fac=function(b){return new(b||P)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(he.Is,8),s.\u0275\u0275directiveInject(s.ChangeDetectorRef))},P.\u0275cmp=s.\u0275\u0275defineComponent({type:P,selectors:[["mat-tab-body"]],viewQuery:function(b,$){if(1&b&&s.\u0275\u0275viewQuery(m.Pl,5),2&b){let Ne;s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&($._portalHost=Ne.first)}},hostAttrs:[1,"mat-tab-body"],features:[s.\u0275\u0275InheritDefinitionFeature],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(b,$){1&b&&(s.\u0275\u0275elementStart(0,"div",0,1),s.\u0275\u0275listener("@translateTab.start",function(it){return $._onTranslateTabStarted(it)})("@translateTab.done",function(it){return $._translateTabComplete.next(it)}),s.\u0275\u0275template(2,Ye,0,0,"ng-template",2),s.\u0275\u0275elementEnd()),2&b&&s.\u0275\u0275property("@translateTab",s.\u0275\u0275pureFunction2(3,$e,$._position,s.\u0275\u0275pureFunction1(1,st,$.animationDuration)))},directives:[V],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}\n'],encapsulation:2,data:{animation:[Ge.translateTab]}}),P})();const le=new s.InjectionToken("MAT_TABS_CONFIG"),Ie=(0,_.mixinDisabled)(class{});let Te=(()=>{class P extends Ie{constructor(b){super(),this.elementRef=b}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return P.\u0275fac=function(b){return new(b||P)(s.\u0275\u0275directiveInject(s.ElementRef))},P.\u0275dir=s.\u0275\u0275defineDirective({type:P,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(b,$){2&b&&(s.\u0275\u0275attribute("aria-disabled",!!$.disabled),s.\u0275\u0275classProp("mat-tab-disabled",$.disabled))},inputs:{disabled:"disabled"},features:[s.\u0275\u0275InheritDefinitionFeature]}),P})();const oe=(0,be.i$)({passive:!0});let ht=(()=>{class P{constructor(b,$,Ne,it,Bt,jt,Le){this._elementRef=b,this._changeDetectorRef=$,this._viewportRuler=Ne,this._dir=it,this._ngZone=Bt,this._platform=jt,this._animationMode=Le,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new C.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new C.x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new s.EventEmitter,this.indexFocused=new s.EventEmitter,Bt.runOutsideAngular(()=>{(0,h.R)(b.nativeElement,"mouseleave").pipe((0,Q.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(b){b=(0,Re.su)(b),this._selectedIndex!=b&&(this._selectedIndexChanged=!0,this._selectedIndex=b,this._keyManager&&this._keyManager.updateActiveItem(b))}ngAfterViewInit(){(0,h.R)(this._previousPaginator.nativeElement,"touchstart",oe).pipe((0,Q.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,h.R)(this._nextPaginator.nativeElement,"touchstart",oe).pipe((0,Q.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const b=this._dir?this._dir.change:(0,A.of)("ltr"),$=this._viewportRuler.change(150),Ne=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new i.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(Ne):Ne(),(0,T.T)(b,$,this._items.changes).pipe((0,Q.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(Ne)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,Q.R)(this._destroyed)).subscribe(it=>{this.indexFocused.emit(it),this._setTabFocus(it)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(b){if(!(0,_e.Vb)(b))switch(b.keyCode){case _e.K5:case _e.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(b));break;default:this._keyManager.onKeydown(b)}}_onContentChanges(){const b=this._elementRef.nativeElement.textContent;b!==this._currentTextContent&&(this._currentTextContent=b||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(b){!this._isValidIndex(b)||this.focusIndex===b||!this._keyManager||this._keyManager.setActiveItem(b)}_isValidIndex(b){if(!this._items)return!0;const $=this._items?this._items.toArray()[b]:null;return!!$&&!$.disabled}_setTabFocus(b){if(this._showPaginationControls&&this._scrollToLabel(b),this._items&&this._items.length){this._items.toArray()[b].focus();const $=this._tabListContainer.nativeElement;$.scrollLeft="ltr"==this._getLayoutDirection()?0:$.scrollWidth-$.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const b=this.scrollDistance,$="ltr"===this._getLayoutDirection()?-b:b;this._tabList.nativeElement.style.transform=`translateX(${Math.round($)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(b){this._scrollTo(b)}_scrollHeader(b){return this._scrollTo(this._scrollDistance+("before"==b?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(b){this._stopInterval(),this._scrollHeader(b)}_scrollToLabel(b){if(this.disablePagination)return;const $=this._items?this._items.toArray()[b]:null;if(!$)return;const Ne=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:it,offsetWidth:Bt}=$.elementRef.nativeElement;let jt,Le;"ltr"==this._getLayoutDirection()?(jt=it,Le=jt+Bt):(Le=this._tabListInner.nativeElement.offsetWidth-it,jt=Le-Bt);const He=this.scrollDistance,ue=this.scrollDistance+Ne;jt<He?this.scrollDistance-=He-jt+60:Le>ue&&(this.scrollDistance+=Le-ue+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const b=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;b||(this.scrollDistance=0),b!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=b}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const b=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,$=b?b.elementRef.nativeElement:null;$?this._inkBar.alignToElement($):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(b,$){$&&null!=$.button&&0!==$.button||(this._stopInterval(),(0,v.H)(650,100).pipe((0,Q.R)((0,T.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Ne,distance:it}=this._scrollHeader(b);(0===it||it>=Ne)&&this._stopInterval()}))}_scrollTo(b){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const $=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min($,b)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:$,distance:this._scrollDistance}}}return P.\u0275fac=function(b){return new(b||P)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(q.rL),s.\u0275\u0275directiveInject(he.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(be.t4),s.\u0275\u0275directiveInject(D.ANIMATION_MODULE_TYPE,8))},P.\u0275dir=s.\u0275\u0275defineDirective({type:P,inputs:{disablePagination:"disablePagination"}}),P})(),pt=(()=>{class P extends ht{constructor(b,$,Ne,it,Bt,jt,Le){super(b,$,Ne,it,Bt,jt,Le),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(b){this._disableRipple=(0,Re.Ig)(b)}_itemSelected(b){b.preventDefault()}}return P.\u0275fac=function(b){return new(b||P)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(q.rL),s.\u0275\u0275directiveInject(he.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(be.t4),s.\u0275\u0275directiveInject(D.ANIMATION_MODULE_TYPE,8))},P.\u0275dir=s.\u0275\u0275defineDirective({type:P,inputs:{disableRipple:"disableRipple"},features:[s.\u0275\u0275InheritDefinitionFeature]}),P})(),Ct=(()=>{class P extends pt{constructor(b,$,Ne,it,Bt,jt,Le){super(b,$,Ne,it,Bt,jt,Le)}}return P.\u0275fac=function(b){return new(b||P)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(q.rL),s.\u0275\u0275directiveInject(he.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(be.t4),s.\u0275\u0275directiveInject(D.ANIMATION_MODULE_TYPE,8))},P.\u0275cmp=s.\u0275\u0275defineComponent({type:P,selectors:[["mat-tab-header"]],contentQueries:function(b,$,Ne){if(1&b&&s.\u0275\u0275contentQuery(Ne,Te,4),2&b){let it;s.\u0275\u0275queryRefresh(it=s.\u0275\u0275loadQuery())&&($._items=it)}},viewQuery:function(b,$){if(1&b&&(s.\u0275\u0275viewQuery(pe,7),s.\u0275\u0275viewQuery(de,7),s.\u0275\u0275viewQuery(Pe,7),s.\u0275\u0275viewQuery(z,7),s.\u0275\u0275viewQuery(ge,5),s.\u0275\u0275viewQuery(ie,5)),2&b){let Ne;s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&($._inkBar=Ne.first),s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&($._tabListContainer=Ne.first),s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&($._tabList=Ne.first),s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&($._tabListInner=Ne.first),s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&($._nextPaginator=Ne.first),s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&($._previousPaginator=Ne.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(b,$){2&b&&s.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",$._showPaginationControls)("mat-tab-header-rtl","rtl"==$._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[s.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Fe,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(b,$){1&b&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275elementStart(0,"button",0,1),s.\u0275\u0275listener("click",function(){return $._handlePaginatorClick("before")})("mousedown",function(it){return $._handlePaginatorPress("before",it)})("touchend",function(){return $._stopInterval()}),s.\u0275\u0275element(2,"div",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"div",3,4),s.\u0275\u0275listener("keydown",function(it){return $._handleKeydown(it)}),s.\u0275\u0275elementStart(5,"div",5,6),s.\u0275\u0275listener("cdkObserveContent",function(){return $._onContentChanges()}),s.\u0275\u0275elementStart(7,"div",7,8),s.\u0275\u0275projection(9),s.\u0275\u0275elementEnd(),s.\u0275\u0275element(10,"mat-ink-bar"),s.\u0275\u0275elementEnd()(),s.\u0275\u0275elementStart(11,"button",9,10),s.\u0275\u0275listener("mousedown",function(it){return $._handlePaginatorPress("after",it)})("click",function(){return $._handlePaginatorClick("after")})("touchend",function(){return $._stopInterval()}),s.\u0275\u0275element(13,"div",2),s.\u0275\u0275elementEnd()),2&b&&(s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",$._disableScrollBefore),s.\u0275\u0275property("matRippleDisabled",$._disableScrollBefore||$.disableRipple)("disabled",$._disableScrollBefore||null),s.\u0275\u0275advance(5),s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===$._animationMode),s.\u0275\u0275advance(6),s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",$._disableScrollAfter),s.\u0275\u0275property("matRippleDisabled",$._disableScrollAfter||$.disableRipple)("disabled",$._disableScrollAfter||null))},directives:[_.MatRipple,u.wD,pe],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n"],encapsulation:2}),P})(),kt=0;class Kt{}const xt=(0,_.mixinColor)((0,_.mixinDisableRipple)(class{constructor(P){this._elementRef=P}}),"primary");let pn=(()=>{class P extends xt{constructor(b,$,Ne,it){var Bt;super(b),this._changeDetectorRef=$,this._animationMode=it,this._tabs=new s.QueryList,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=w.w0.EMPTY,this._tabLabelSubscription=w.w0.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new s.EventEmitter,this.focusChange=new s.EventEmitter,this.animationDone=new s.EventEmitter,this.selectedTabChange=new s.EventEmitter(!0),this._groupId=kt++,this.animationDuration=Ne&&Ne.animationDuration?Ne.animationDuration:"500ms",this.disablePagination=!(!Ne||null==Ne.disablePagination)&&Ne.disablePagination,this.dynamicHeight=!(!Ne||null==Ne.dynamicHeight)&&Ne.dynamicHeight,this.contentTabIndex=null!==(Bt=null==Ne?void 0:Ne.contentTabIndex)&&void 0!==Bt?Bt:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(b){this._dynamicHeight=(0,Re.Ig)(b)}get selectedIndex(){return this._selectedIndex}set selectedIndex(b){this._indexToSelect=(0,Re.su)(b,null)}get animationDuration(){return this._animationDuration}set animationDuration(b){this._animationDuration=/^\d+$/.test(b+"")?b+"ms":b}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(b){this._contentTabIndex=(0,Re.su)(b,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(b){const $=this._elementRef.nativeElement;$.classList.remove(`mat-background-${this.backgroundColor}`),b&&$.classList.add(`mat-background-${b}`),this._backgroundColor=b}ngAfterContentChecked(){const b=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=b){const $=null==this._selectedIndex;if(!$){this.selectedTabChange.emit(this._createChangeEvent(b));const Ne=this._tabBodyWrapper.nativeElement;Ne.style.minHeight=Ne.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Ne,it)=>Ne.isActive=it===b),$||(this.selectedIndexChange.emit(b),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(($,Ne)=>{$.position=Ne-b,null!=this._selectedIndex&&0==$.position&&!$.origin&&($.origin=b-this._selectedIndex)}),this._selectedIndex!==b&&(this._selectedIndex=b,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const $=this._tabs.toArray();for(let Ne=0;Ne<$.length;Ne++)if($[Ne].isActive){this._indexToSelect=this._selectedIndex=Ne;break}}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,U.O)(this._allTabs)).subscribe(b=>{this._tabs.reset(b.filter($=>$._closestTabGroup===this||!$._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(b){const $=this._tabHeader;$&&($.focusIndex=b)}_focusChanged(b){this.focusChange.emit(this._createChangeEvent(b))}_createChangeEvent(b){const $=new Kt;return $.index=b,this._tabs&&this._tabs.length&&($.tab=this._tabs.toArray()[b]),$}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,T.T)(...this._tabs.map(b=>b._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(b){return Math.min(this._tabs.length-1,Math.max(b||0,0))}_getTabLabelId(b){return`mat-tab-label-${this._groupId}-${b}`}_getTabContentId(b){return`mat-tab-content-${this._groupId}-${b}`}_setTabBodyWrapperHeight(b){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const $=this._tabBodyWrapper.nativeElement;$.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&($.style.height=b+"px")}_removeTabBodyWrapperHeight(){const b=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=b.clientHeight,b.style.height="",this.animationDone.emit()}_handleClick(b,$,Ne){b.disabled||(this.selectedIndex=$.focusIndex=Ne)}_getTabIndex(b,$){return b.disabled?null:this.selectedIndex===$?0:-1}_tabFocusChanged(b,$){b&&"mouse"!==b&&"touch"!==b&&(this._tabHeader.focusIndex=$)}}return P.\u0275fac=function(b){return new(b||P)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(le,8),s.\u0275\u0275directiveInject(D.ANIMATION_MODULE_TYPE,8))},P.\u0275dir=s.\u0275\u0275defineDirective({type:P,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[s.\u0275\u0275InheritDefinitionFeature]}),P})(),Jt=(()=>{class P extends pn{constructor(b,$,Ne,it){super(b,$,Ne,it)}}return P.\u0275fac=function(b){return new(b||P)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(le,8),s.\u0275\u0275directiveInject(D.ANIMATION_MODULE_TYPE,8))},P.\u0275cmp=s.\u0275\u0275defineComponent({type:P,selectors:[["mat-tab-group"]],contentQueries:function(b,$,Ne){if(1&b&&s.\u0275\u0275contentQuery(Ne,dt,5),2&b){let it;s.\u0275\u0275queryRefresh(it=s.\u0275\u0275loadQuery())&&($._allTabs=it)}},viewQuery:function(b,$){if(1&b&&(s.\u0275\u0275viewQuery(xe,5),s.\u0275\u0275viewQuery(me,5)),2&b){let Ne;s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&($._tabBodyWrapper=Ne.first),s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&($._tabHeader=Ne.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(b,$){2&b&&s.\u0275\u0275classProp("mat-tab-group-dynamic-height",$.dynamicHeight)("mat-tab-group-inverted-header","below"===$.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[s.\u0275\u0275ProvidersFeature([{provide:St,useExisting:P}]),s.\u0275\u0275InheritDefinitionFeature],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(b,$){1&b&&(s.\u0275\u0275elementStart(0,"mat-tab-header",0,1),s.\u0275\u0275listener("indexFocused",function(it){return $._focusChanged(it)})("selectFocusedIndex",function(it){return $.selectedIndex=it}),s.\u0275\u0275template(2,ct,5,15,"div",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"div",3,4),s.\u0275\u0275template(5,Dt,1,10,"mat-tab-body",5),s.\u0275\u0275elementEnd()),2&b&&(s.\u0275\u0275property("selectedIndex",$.selectedIndex||0)("disableRipple",$.disableRipple)("disablePagination",$.disablePagination),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",$._tabs),s.\u0275\u0275advance(1),s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===$._animationMode),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",$._tabs))},directives:[Ct,Oe,c.NgForOf,Te,_.MatRipple,i.kH,c.NgClass,c.NgIf,m.Pl],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),P})(),Nt=0,Et=(()=>{class P extends ht{constructor(b,$,Ne,it,Bt,jt,Le){super(b,it,Bt,$,Ne,jt,Le),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(b){const $=this._elementRef.nativeElement.classList;$.remove(`mat-background-${this.backgroundColor}`),b&&$.add(`mat-background-${b}`),this._backgroundColor=b}get disableRipple(){return this._disableRipple}set disableRipple(b){this._disableRipple=(0,Re.Ig)(b)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,U.O)(null),(0,Q.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const b=this._items.toArray();for(let $=0;$<b.length;$++)if(b[$].active)return this.selectedIndex=$,this._changeDetectorRef.markForCheck(),void(this.tabPanel&&(this.tabPanel._activeTabId=b[$].id));this.selectedIndex=-1,this._inkBar.hide()}_getRole(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")}}return P.\u0275fac=function(b){return new(b||P)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(he.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(q.rL),s.\u0275\u0275directiveInject(be.t4),s.\u0275\u0275directiveInject(D.ANIMATION_MODULE_TYPE,8))},P.\u0275dir=s.\u0275\u0275defineDirective({type:P,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color",tabPanel:"tabPanel"},features:[s.\u0275\u0275InheritDefinitionFeature]}),P})(),ln=(()=>{class P extends Et{constructor(b,$,Ne,it,Bt,jt,Le){super(b,$,Ne,it,Bt,jt,Le)}}return P.\u0275fac=function(b){return new(b||P)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(he.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(q.rL),s.\u0275\u0275directiveInject(be.t4),s.\u0275\u0275directiveInject(D.ANIMATION_MODULE_TYPE,8))},P.\u0275cmp=s.\u0275\u0275defineComponent({type:P,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(b,$,Ne){if(1&b&&s.\u0275\u0275contentQuery(Ne,ce,5),2&b){let it;s.\u0275\u0275queryRefresh(it=s.\u0275\u0275loadQuery())&&($._items=it)}},viewQuery:function(b,$){if(1&b&&(s.\u0275\u0275viewQuery(pe,7),s.\u0275\u0275viewQuery(de,7),s.\u0275\u0275viewQuery(Pe,7),s.\u0275\u0275viewQuery(z,7),s.\u0275\u0275viewQuery(ge,5),s.\u0275\u0275viewQuery(ie,5)),2&b){let Ne;s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&($._inkBar=Ne.first),s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&($._tabListContainer=Ne.first),s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&($._tabList=Ne.first),s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&($._tabListInner=Ne.first),s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&($._nextPaginator=Ne.first),s.\u0275\u0275queryRefresh(Ne=s.\u0275\u0275loadQuery())&&($._previousPaginator=Ne.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(b,$){2&b&&(s.\u0275\u0275attribute("role",$._getRole()),s.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",$._showPaginationControls)("mat-tab-header-rtl","rtl"==$._getLayoutDirection())("mat-primary","warn"!==$.color&&"accent"!==$.color)("mat-accent","accent"===$.color)("mat-warn","warn"===$.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[s.\u0275\u0275InheritDefinitionFeature],attrs:Be,ngContentSelectors:Fe,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(b,$){1&b&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275elementStart(0,"button",0,1),s.\u0275\u0275listener("click",function(){return $._handlePaginatorClick("before")})("mousedown",function(it){return $._handlePaginatorPress("before",it)})("touchend",function(){return $._stopInterval()}),s.\u0275\u0275element(2,"div",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"div",3,4),s.\u0275\u0275listener("keydown",function(it){return $._handleKeydown(it)}),s.\u0275\u0275elementStart(5,"div",5,6),s.\u0275\u0275listener("cdkObserveContent",function(){return $._onContentChanges()}),s.\u0275\u0275elementStart(7,"div",7,8),s.\u0275\u0275projection(9),s.\u0275\u0275elementEnd(),s.\u0275\u0275element(10,"mat-ink-bar"),s.\u0275\u0275elementEnd()(),s.\u0275\u0275elementStart(11,"button",9,10),s.\u0275\u0275listener("mousedown",function(it){return $._handlePaginatorPress("after",it)})("click",function(){return $._handlePaginatorClick("after")})("touchend",function(){return $._stopInterval()}),s.\u0275\u0275element(13,"div",2),s.\u0275\u0275elementEnd()),2&b&&(s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",$._disableScrollBefore),s.\u0275\u0275property("matRippleDisabled",$._disableScrollBefore||$.disableRipple)("disabled",$._disableScrollBefore||null),s.\u0275\u0275advance(5),s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===$._animationMode),s.\u0275\u0275advance(6),s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",$._disableScrollAfter),s.\u0275\u0275property("matRippleDisabled",$._disableScrollAfter||$.disableRipple)("disabled",$._disableScrollAfter||null))},directives:[_.MatRipple,u.wD,pe],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n"],encapsulation:2}),P})();const Ut=(0,_.mixinTabIndex)((0,_.mixinDisableRipple)((0,_.mixinDisabled)(class{})));let Xt=(()=>{class P extends Ut{constructor(b,$,Ne,it,Bt,jt){super(),this._tabNavBar=b,this.elementRef=$,this._focusMonitor=Bt,this._isActive=!1,this.id="mat-tab-link-"+Nt++,this.rippleConfig=Ne||{},this.tabIndex=parseInt(it)||0,"NoopAnimations"===jt&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(b){const $=(0,Re.Ig)(b);$!==this._isActive&&(this._isActive=$,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(b){this._tabNavBar.tabPanel&&b.keyCode===_e.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){var b;return this._tabNavBar.tabPanel?null===(b=this._tabNavBar.tabPanel)||void 0===b?void 0:b.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive?0:-1:this.tabIndex}}return P.\u0275fac=function(b){return new(b||P)(s.\u0275\u0275directiveInject(Et),s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(_.MAT_RIPPLE_GLOBAL_OPTIONS,8),s.\u0275\u0275injectAttribute("tabindex"),s.\u0275\u0275directiveInject(i.tE),s.\u0275\u0275directiveInject(D.ANIMATION_MODULE_TYPE,8))},P.\u0275dir=s.\u0275\u0275defineDirective({type:P,inputs:{active:"active",id:"id"},features:[s.\u0275\u0275InheritDefinitionFeature]}),P})(),ce=(()=>{class P extends Xt{constructor(b,$,Ne,it,Bt,jt,Le,He){super(b,$,Bt,jt,Le,He),this._tabLinkRipple=new _.RippleRenderer(this,Ne,$,it),this._tabLinkRipple.setupTriggerEvents($.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return P.\u0275fac=function(b){return new(b||P)(s.\u0275\u0275directiveInject(ln),s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(be.t4),s.\u0275\u0275directiveInject(_.MAT_RIPPLE_GLOBAL_OPTIONS,8),s.\u0275\u0275injectAttribute("tabindex"),s.\u0275\u0275directiveInject(i.tE),s.\u0275\u0275directiveInject(D.ANIMATION_MODULE_TYPE,8))},P.\u0275dir=s.\u0275\u0275defineDirective({type:P,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(b,$){1&b&&s.\u0275\u0275listener("focus",function(){return $._handleFocus()})("keydown",function(it){return $._handleKeydown(it)}),2&b&&(s.\u0275\u0275attribute("aria-controls",$._getAriaControls())("aria-current",$._getAriaCurrent())("aria-disabled",$.disabled)("aria-selected",$._getAriaSelected())("id",$.id)("tabIndex",$._getTabIndex())("role",$._getRole()),s.\u0275\u0275classProp("mat-tab-disabled",$.disabled)("mat-tab-label-active",$.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[s.\u0275\u0275InheritDefinitionFeature]}),P})(),J=(()=>{class P{constructor(){this.id="mat-tab-nav-panel-"+Nt++}}return P.\u0275fac=function(b){return new(b||P)},P.\u0275cmp=s.\u0275\u0275defineComponent({type:P,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-tab-nav-panel"],hostVars:2,hostBindings:function(b,$){2&b&&s.\u0275\u0275attribute("aria-labelledby",$._activeTabId)("id",$.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:Fe,decls:1,vars:0,template:function(b,$){1&b&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),P})(),B=(()=>{class P{}return P.\u0275fac=function(b){return new(b||P)},P.\u0275mod=s.\u0275\u0275defineNgModule({type:P}),P.\u0275inj=s.\u0275\u0275defineInjector({imports:[[c.CommonModule,_.MatCommonModule,m.eL,_.MatRippleModule,u.Q8,i.rt],_.MatCommonModule]}),P})()},7238:(je,g,l)=>{"use strict";l.r(g),l.d(g,{MAT_TOOLTIP_DEFAULT_OPTIONS:()=>$e,MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY:()=>de,MAT_TOOLTIP_SCROLL_STRATEGY:()=>Fe,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY:()=>Ye,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER:()=>st,MatTooltip:()=>z,MatTooltipModule:()=>xe,SCROLL_THROTTLE_MS:()=>he,TOOLTIP_PANEL_CLASS:()=>Re,TooltipComponent:()=>ie,_MatTooltipBase:()=>Pe,_TooltipComponentBase:()=>ge,getMatTooltipInvalidPositionError:()=>Ce,matTooltipAnimations:()=>Q});var i=l(1314),u=l(5664),m=l(9808),c=l(5e3),s=l(508),_=l(9071),D=l(3191),C=l(1159),w=l(5113),h=l(925),A=l(7429),T=l(6758),v=l(2722),N=l(5698),U=l(1777),fe=l(226);const Q={tooltipState:(0,U.X$)("state",[(0,U.SB)("initial, void, hidden",(0,U.oB)({opacity:0,transform:"scale(0)"})),(0,U.SB)("visible",(0,U.oB)({transform:"scale(1)"})),(0,U.eR)("* => visible",(0,U.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,U.F4)([(0,U.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,U.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,U.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,U.eR)("* => hidden",(0,U.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,U.oB)({opacity:0})))])},he=20,Re="mat-tooltip-panel",_e="tooltip-panel",be=(0,h.i$)({passive:!0});function Ce(me){return Error(`Tooltip position "${me}" is invalid.`)}const Fe=new c.InjectionToken("mat-tooltip-scroll-strategy");function Ye(me){return()=>me.scrollStrategies.reposition({scrollThrottle:he})}const st={provide:Fe,deps:[i.aV],useFactory:Ye},$e=new c.InjectionToken("mat-tooltip-default-options",{providedIn:"root",factory:de});function de(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}let Pe=(()=>{class me{constructor(ve,ze,ct,Dt,Be,et,ne,pe,we,ke,Ee,Ze){this._overlay=ve,this._elementRef=ze,this._scrollDispatcher=ct,this._viewContainerRef=Dt,this._ngZone=Be,this._platform=et,this._ariaDescriber=ne,this._focusMonitor=pe,this._dir=ke,this._defaultOptions=Ee,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new T.x,this._scrollStrategy=we,this._document=Ze,Ee&&(Ee.position&&(this.position=Ee.position),Ee.touchGestures&&(this.touchGestures=Ee.touchGestures)),ke.change.pipe((0,v.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(ve){var ze;ve!==this._position&&(this._position=ve,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(ze=this._tooltipInstance)||void 0===ze||ze.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(ve){this._disabled=(0,D.Ig)(ve),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(ve){this._showDelay=(0,D.su)(ve)}get hideDelay(){return this._hideDelay}set hideDelay(ve){this._hideDelay=(0,D.su)(ve)}get message(){return this._message}set message(ve){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=ve?String(ve).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(ve){this._tooltipClass=ve,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,v.R)(this._destroyed)).subscribe(ve=>{ve?"keyboard"===ve&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const ve=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([ze,ct])=>{ve.removeEventListener(ze,ct,be)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(ve,this.message,"tooltip"),this._focusMonitor.stopMonitoring(ve)}show(ve=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const ze=this._createOverlay();this._detach(),this._portal=this._portal||new A.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=ze.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,v.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(ve)}hide(ve=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(ve)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const ve=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),ze=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(ve);return ze.positionChanges.pipe((0,v.R)(this._destroyed)).subscribe(ct=>{this._updateCurrentPositionClass(ct.connectionPair),this._tooltipInstance&&ct.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:ze,panelClass:`${this._cssClassPrefix}-${_e}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,v.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,v.R)(this._destroyed)).subscribe(()=>{var ct;return null===(ct=this._tooltipInstance)||void 0===ct?void 0:ct._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,v.R)(this._destroyed)).subscribe(ct=>{this._isTooltipVisible()&&ct.keyCode===C.hY&&!(0,C.Vb)(ct)&&(ct.preventDefault(),ct.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(ve){const ze=ve.getConfig().positionStrategy,ct=this._getOrigin(),Dt=this._getOverlayPosition();ze.withPositions([this._addOffset(Object.assign(Object.assign({},ct.main),Dt.main)),this._addOffset(Object.assign(Object.assign({},ct.fallback),Dt.fallback))])}_addOffset(ve){return ve}_getOrigin(){const ve=!this._dir||"ltr"==this._dir.value,ze=this.position;let ct;"above"==ze||"below"==ze?ct={originX:"center",originY:"above"==ze?"top":"bottom"}:"before"==ze||"left"==ze&&ve||"right"==ze&&!ve?ct={originX:"start",originY:"center"}:("after"==ze||"right"==ze&&ve||"left"==ze&&!ve)&&(ct={originX:"end",originY:"center"});const{x:Dt,y:Be}=this._invertPosition(ct.originX,ct.originY);return{main:ct,fallback:{originX:Dt,originY:Be}}}_getOverlayPosition(){const ve=!this._dir||"ltr"==this._dir.value,ze=this.position;let ct;"above"==ze?ct={overlayX:"center",overlayY:"bottom"}:"below"==ze?ct={overlayX:"center",overlayY:"top"}:"before"==ze||"left"==ze&&ve||"right"==ze&&!ve?ct={overlayX:"end",overlayY:"center"}:("after"==ze||"right"==ze&&ve||"left"==ze&&!ve)&&(ct={overlayX:"start",overlayY:"center"});const{x:Dt,y:Be}=this._invertPosition(ct.overlayX,ct.overlayY);return{main:ct,fallback:{overlayX:Dt,overlayY:Be}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,N.q)(1),(0,v.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(ve){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=ve,this._tooltipInstance._markForCheck())}_invertPosition(ve,ze){return"above"===this.position||"below"===this.position?"top"===ze?ze="bottom":"bottom"===ze&&(ze="top"):"end"===ve?ve="start":"start"===ve&&(ve="end"),{x:ve,y:ze}}_updateCurrentPositionClass(ve){const{overlayY:ze,originX:ct,originY:Dt}=ve;let Be;if(Be="center"===ze?this._dir&&"rtl"===this._dir.value?"end"===ct?"left":"right":"start"===ct?"left":"right":"bottom"===ze&&"top"===Dt?"above":"below",Be!==this._currentPosition){const et=this._overlayRef;if(et){const ne=`${this._cssClassPrefix}-${_e}-`;et.removePanelClass(ne+this._currentPosition),et.addPanelClass(ne+Be)}this._currentPosition=Be}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const ve=[];if(this._platformSupportsMouseEvents())ve.push(["mouseleave",()=>this.hide()],["wheel",ze=>this._wheelListener(ze)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const ze=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};ve.push(["touchend",ze],["touchcancel",ze])}this._addListeners(ve),this._passiveListeners.push(...ve)}_addListeners(ve){ve.forEach(([ze,ct])=>{this._elementRef.nativeElement.addEventListener(ze,ct,be)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(ve){if(this._isTooltipVisible()){const ze=this._document.elementFromPoint(ve.clientX,ve.clientY),ct=this._elementRef.nativeElement;ze!==ct&&!ct.contains(ze)&&this.hide()}}_disableNativeGesturesIfNecessary(){const ve=this.touchGestures;if("off"!==ve){const ze=this._elementRef.nativeElement,ct=ze.style;("on"===ve||"INPUT"!==ze.nodeName&&"TEXTAREA"!==ze.nodeName)&&(ct.userSelect=ct.msUserSelect=ct.webkitUserSelect=ct.MozUserSelect="none"),("on"===ve||!ze.draggable)&&(ct.webkitUserDrag="none"),ct.touchAction="none",ct.webkitTapHighlightColor="transparent"}}}return me.\u0275fac=function(ve){c.\u0275\u0275invalidFactory()},me.\u0275dir=c.\u0275\u0275defineDirective({type:me,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),me})(),z=(()=>{class me extends Pe{constructor(ve,ze,ct,Dt,Be,et,ne,pe,we,ke,Ee,Ze){super(ve,ze,ct,Dt,Be,et,ne,pe,we,ke,Ee,Ze),this._tooltipComponent=ie}}return me.\u0275fac=function(ve){return new(ve||me)(c.\u0275\u0275directiveInject(i.aV),c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(_.mF),c.\u0275\u0275directiveInject(c.ViewContainerRef),c.\u0275\u0275directiveInject(c.NgZone),c.\u0275\u0275directiveInject(h.t4),c.\u0275\u0275directiveInject(u.$s),c.\u0275\u0275directiveInject(u.tE),c.\u0275\u0275directiveInject(Fe),c.\u0275\u0275directiveInject(fe.Is,8),c.\u0275\u0275directiveInject($e,8),c.\u0275\u0275directiveInject(m.DOCUMENT))},me.\u0275dir=c.\u0275\u0275defineDirective({type:me,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[c.\u0275\u0275InheritDefinitionFeature]}),me})(),ge=(()=>{class me{constructor(ve){this._changeDetectorRef=ve,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new T.x}show(ve){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},ve)}hide(ve){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},ve)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(ve){const ze=ve.toState;"hidden"===ze&&!this.isVisible()&&this._onHide.next(),("visible"===ze||"hidden"===ze)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return me.\u0275fac=function(ve){return new(ve||me)(c.\u0275\u0275directiveInject(c.ChangeDetectorRef))},me.\u0275dir=c.\u0275\u0275defineDirective({type:me}),me})(),ie=(()=>{class me extends ge{constructor(ve,ze){super(ve),this._breakpointObserver=ze,this._isHandset=this._breakpointObserver.observe(w.Breakpoints.Handset)}}return me.\u0275fac=function(ve){return new(ve||me)(c.\u0275\u0275directiveInject(c.ChangeDetectorRef),c.\u0275\u0275directiveInject(w.BreakpointObserver))},me.\u0275cmp=c.\u0275\u0275defineComponent({type:me,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(ve,ze){2&ve&&c.\u0275\u0275styleProp("zoom","visible"===ze._visibility?1:null)},features:[c.\u0275\u0275InheritDefinitionFeature],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(ve,ze){if(1&ve&&(c.\u0275\u0275elementStart(0,"div",0),c.\u0275\u0275listener("@state.start",function(){return ze._animationStart()})("@state.done",function(Dt){return ze._animationDone(Dt)}),c.\u0275\u0275pipe(1,"async"),c.\u0275\u0275text(2),c.\u0275\u0275elementEnd()),2&ve){let ct;c.\u0275\u0275classProp("mat-tooltip-handset",null==(ct=c.\u0275\u0275pipeBind1(1,5,ze._isHandset))?null:ct.matches),c.\u0275\u0275property("ngClass",ze.tooltipClass)("@state",ze._visibility),c.\u0275\u0275advance(2),c.\u0275\u0275textInterpolate(ze.message)}},directives:[m.NgClass],pipes:[m.AsyncPipe],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[Q.tooltipState]},changeDetection:0}),me})(),xe=(()=>{class me{}return me.\u0275fac=function(ve){return new(ve||me)},me.\u0275mod=c.\u0275\u0275defineNgModule({type:me}),me.\u0275inj=c.\u0275\u0275defineInjector({providers:[st],imports:[[u.rt,m.CommonModule,i.U8,s.MatCommonModule],s.MatCommonModule,_.ZD]}),me})()},6360:(je,g,l)=>{"use strict";l.r(g),l.d(g,{ANIMATION_MODULE_TYPE:()=>Rn,BrowserAnimationsModule:()=>Zr,NoopAnimationsModule:()=>Yr,\u0275AnimationRenderer:()=>ir,\u0275AnimationRendererFactory:()=>Yn,\u0275BrowserAnimationBuilder:()=>x,\u0275BrowserAnimationFactory:()=>I,\u0275InjectableAnimationEngine:()=>bt});var i=l(5e3),u=l(2313),m=l(1777);const c=!1;function _(W){return new i.\u0275RuntimeError(3e3,c)}function ne(){return"undefined"!=typeof window&&void 0!==window.document}function pe(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function we(W){switch(W.length){case 0:return new m.ZN;case 1:return W[0];default:return new m.ZE(W)}}function ke(W,f,p,O,Z={},E={}){const S=[],R=[];let j=-1,te=null;if(O.forEach(ye=>{const We=ye.offset,rt=We==j,ot=rt&&te||{};Object.keys(ye).forEach(yt=>{let Mt=yt,Vt=ye[yt];if("offset"!==yt)switch(Mt=f.normalizePropertyName(Mt,S),Vt){case m.k1:Vt=Z[yt];break;case m.l3:Vt=E[yt];break;default:Vt=f.normalizeStyleValue(yt,Mt,Vt,S)}ot[Mt]=Vt}),rt||R.push(ot),te=ot,j=We}),S.length)throw function z(W){return new i.\u0275RuntimeError(3502,c)}();return R}function Ee(W,f,p,O){switch(f){case"start":W.onStart(()=>O(p&&Ze(p,"start",W)));break;case"done":W.onDone(()=>O(p&&Ze(p,"done",W)));break;case"destroy":W.onDestroy(()=>O(p&&Ze(p,"destroy",W)))}}function Ze(W,f,p){const O=p.totalTime,E=mt(W.element,W.triggerName,W.fromState,W.toState,f||W.phaseName,null==O?W.totalTime:O,!!p.disabled),S=W._data;return null!=S&&(E._data=S),E}function mt(W,f,p,O,Z="",E=0,S){return{element:W,triggerName:f,fromState:p,toState:O,phaseName:Z,totalTime:E,disabled:!!S}}function gt(W,f,p){let O;return W instanceof Map?(O=W.get(f),O||W.set(f,O=p)):(O=W[f],O||(O=W[f]=p)),O}function St(W){const f=W.indexOf(":");return[W.substring(1,f),W.substr(f+1)]}let dt=(W,f)=>!1,Ge=(W,f,p)=>[],V=null;function ae(W){const f=W.parentNode||W.host;return f===V?null:f}(pe()||"undefined"!=typeof Element)&&(ne()?(V=(()=>document.documentElement)(),dt=(W,f)=>{for(;f;){if(f===W)return!0;f=ae(f)}return!1}):dt=(W,f)=>W.contains(f),Ge=(W,f,p)=>{if(p)return Array.from(W.querySelectorAll(f));const O=W.querySelector(f);return O?[O]:[]});let Ie=null,Te=!1;function oe(W){Ie||(Ie=function De(){return"undefined"!=typeof document?document.body:null}()||{},Te=!!Ie.style&&"WebkitAppearance"in Ie.style);let f=!0;return Ie.style&&!function le(W){return"ebkit"==W.substring(1,6)}(W)&&(f=W in Ie.style,!f&&Te&&(f="Webkit"+W.charAt(0).toUpperCase()+W.substr(1)in Ie.style)),f}const Qe=dt,nt=Ge;let pt=(()=>{class W{validateStyleProperty(p){return oe(p)}matchesElement(p,O){return!1}containsElement(p,O){return Qe(p,O)}getParentElement(p){return ae(p)}query(p,O,Z){return nt(p,O,Z)}computeStyle(p,O,Z){return Z||""}animate(p,O,Z,E,S,R=[],j){return new m.ZN(Z,E)}}return W.\u0275fac=function(p){return new(p||W)},W.\u0275prov=i.\u0275\u0275defineInjectable({token:W,factory:W.\u0275fac}),W})(),Ct=(()=>{class W{}return W.NOOP=new pt,W})();const pn="ng-enter",Jt="ng-leave",Nt="ng-trigger",Et=".ng-trigger",ln="ng-animating",Ut=".ng-animating";function Xt(W){if("number"==typeof W)return W;const f=W.match(/^(-?[\.\d]+)(m?s)/);return!f||f.length<2?0:ce(parseFloat(f[1]),f[2])}function ce(W,f){return"s"===f?1e3*W:W}function J(W,f,p){return W.hasOwnProperty("duration")?W:function B(W,f,p){let Z,E=0,S="";if("string"==typeof W){const R=W.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===R)return f.push(_()),{duration:0,delay:0,easing:""};Z=ce(parseFloat(R[1]),R[2]);const j=R[3];null!=j&&(E=ce(parseFloat(j),R[4]));const te=R[5];te&&(S=te)}else Z=W;if(!p){let R=!1,j=f.length;Z<0&&(f.push(function D(){return new i.\u0275RuntimeError(3100,c)}()),R=!0),E<0&&(f.push(function C(){return new i.\u0275RuntimeError(3101,c)}()),R=!0),R&&f.splice(j,0,_())}return{duration:Z,delay:E,easing:S}}(W,f,p)}function P(W,f={}){return Object.keys(W).forEach(p=>{f[p]=W[p]}),f}function b(W,f,p={}){if(f)for(let O in W)p[O]=W[O];else P(W,p);return p}function $(W,f,p){return p?f+":"+p+";":""}function Ne(W){let f="";for(let p=0;p<W.style.length;p++){const O=W.style.item(p);f+=$(0,O,W.style.getPropertyValue(O))}for(const p in W.style)W.style.hasOwnProperty(p)&&!p.startsWith("_")&&(f+=$(0,tn(p),W.style[p]));W.setAttribute("style",f)}function it(W,f,p){W.style&&(Object.keys(f).forEach(O=>{const Z=Pt(O);p&&!p.hasOwnProperty(O)&&(p[O]=W.style[Z]),W.style[Z]=f[O]}),pe()&&Ne(W))}function Bt(W,f){W.style&&(Object.keys(f).forEach(p=>{const O=Pt(p);W.style[O]=""}),pe()&&Ne(W))}function jt(W){return Array.isArray(W)?1==W.length?W[0]:(0,m.vP)(W):W}const He=new RegExp("{{\\s*(.+?)\\s*}}","g");function ue(W){let f=[];if("string"==typeof W){let p;for(;p=He.exec(W);)f.push(p[1]);He.lastIndex=0}return f}function Ve(W,f,p){const O=W.toString(),Z=O.replace(He,(E,S)=>{let R=f[S];return f.hasOwnProperty(S)||(p.push(function h(W){return new i.\u0275RuntimeError(3003,c)}()),R=""),R.toString()});return Z==O?W:Z}function lt(W){const f=[];let p=W.next();for(;!p.done;)f.push(p.value),p=W.next();return f}const Rt=/-+([a-z0-9])/g;function Pt(W){return W.replace(Rt,(...f)=>f[1].toUpperCase())}function tn(W){return W.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Sn(W,f,p){switch(f.type){case 7:return W.visitTrigger(f,p);case 0:return W.visitState(f,p);case 1:return W.visitTransition(f,p);case 2:return W.visitSequence(f,p);case 3:return W.visitGroup(f,p);case 4:return W.visitAnimate(f,p);case 5:return W.visitKeyframes(f,p);case 6:return W.visitStyle(f,p);case 8:return W.visitReference(f,p);case 9:return W.visitAnimateChild(f,p);case 10:return W.visitAnimateRef(f,p);case 11:return W.visitQuery(f,p);case 12:return W.visitStagger(f,p);default:throw function A(W){return new i.\u0275RuntimeError(3004,c)}()}}function jn(W,f){return window.getComputedStyle(W)[f]}function Qn(W,f){const p=[];return"string"==typeof W?W.split(/\s*,\s*/).forEach(O=>function xn(W,f,p){if(":"==W[0]){const j=function K(W,f){switch(W){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(p,O)=>parseFloat(O)>parseFloat(p);case":decrement":return(p,O)=>parseFloat(O)<parseFloat(p);default:return f.push(function st(W){return new i.\u0275RuntimeError(3016,c)}()),"* => *"}}(W,p);if("function"==typeof j)return void f.push(j);W=j}const O=W.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==O||O.length<4)return p.push(function Ye(W){return new i.\u0275RuntimeError(3015,c)}()),f;const Z=O[1],E=O[2],S=O[3];f.push(Ae(Z,S));"<"==E[0]&&!("*"==Z&&"*"==S)&&f.push(Ae(S,Z))}(O,p,f)):p.push(W),p}const Se=new Set(["true","1"]),G=new Set(["false","0"]);function Ae(W,f){const p=Se.has(W)||G.has(W),O=Se.has(f)||G.has(f);return(Z,E)=>{let S="*"==W||W==Z,R="*"==f||f==E;return!S&&p&&"boolean"==typeof Z&&(S=Z?Se.has(W):G.has(W)),!R&&O&&"boolean"==typeof E&&(R=E?Se.has(f):G.has(f)),S&&R}}const at=new RegExp("s*:selfs*,?","g");function Tt(W,f,p){return new zt(W).build(f,p)}class zt{constructor(f){this._driver=f}build(f,p){const O=new En(p);return this._resetContextStyleTimingState(O),Sn(this,jt(f),O)}_resetContextStyleTimingState(f){f.currentQuerySelector="",f.collectedStyles={},f.collectedStyles[""]={},f.currentTime=0}visitTrigger(f,p){let O=p.queryCount=0,Z=p.depCount=0;const E=[],S=[];return"@"==f.name.charAt(0)&&p.errors.push(function v(){return new i.\u0275RuntimeError(3006,c)}()),f.definitions.forEach(R=>{if(this._resetContextStyleTimingState(p),0==R.type){const j=R,te=j.name;te.toString().split(/\s*,\s*/).forEach(ye=>{j.name=ye,E.push(this.visitState(j,p))}),j.name=te}else if(1==R.type){const j=this.visitTransition(R,p);O+=j.queryCount,Z+=j.depCount,S.push(j)}else p.errors.push(function N(){return new i.\u0275RuntimeError(3007,c)}())}),{type:7,name:f.name,states:E,transitions:S,queryCount:O,depCount:Z,options:null}}visitState(f,p){const O=this.visitStyle(f.styles,p),Z=f.options&&f.options.params||null;if(O.containsDynamicStyles){const E=new Set,S=Z||{};O.styles.forEach(R=>{if(In(R)){const j=R;Object.keys(j).forEach(te=>{ue(j[te]).forEach(ye=>{S.hasOwnProperty(ye)||E.add(ye)})})}}),E.size&&(lt(E.values()),p.errors.push(function U(W,f){return new i.\u0275RuntimeError(3008,c)}()))}return{type:0,name:f.name,style:O,options:Z?{params:Z}:null}}visitTransition(f,p){p.queryCount=0,p.depCount=0;const O=Sn(this,jt(f.animation),p);return{type:1,matchers:Qn(f.expr,p.errors),animation:O,queryCount:p.queryCount,depCount:p.depCount,options:fn(f.options)}}visitSequence(f,p){return{type:2,steps:f.steps.map(O=>Sn(this,O,p)),options:fn(f.options)}}visitGroup(f,p){const O=p.currentTime;let Z=0;const E=f.steps.map(S=>{p.currentTime=O;const R=Sn(this,S,p);return Z=Math.max(Z,p.currentTime),R});return p.currentTime=Z,{type:3,steps:E,options:fn(f.options)}}visitAnimate(f,p){const O=function Ln(W,f){let p=null;if(W.hasOwnProperty("duration"))p=W;else if("number"==typeof W)return Tn(J(W,f).duration,0,"");const O=W;if(O.split(/\s+/).some(E=>"{"==E.charAt(0)&&"{"==E.charAt(1))){const E=Tn(0,0,"");return E.dynamic=!0,E.strValue=O,E}return p=p||J(O,f),Tn(p.duration,p.delay,p.easing)}(f.timings,p.errors);p.currentAnimateTimings=O;let Z,E=f.styles?f.styles:(0,m.oB)({});if(5==E.type)Z=this.visitKeyframes(E,p);else{let S=f.styles,R=!1;if(!S){R=!0;const te={};O.easing&&(te.easing=O.easing),S=(0,m.oB)(te)}p.currentTime+=O.duration+O.delay;const j=this.visitStyle(S,p);j.isEmptyStep=R,Z=j}return p.currentAnimateTimings=null,{type:4,timings:O,style:Z,options:null}}visitStyle(f,p){const O=this._makeStyleAst(f,p);return this._validateStyleAst(O,p),O}_makeStyleAst(f,p){const O=[];Array.isArray(f.styles)?f.styles.forEach(S=>{"string"==typeof S?S==m.l3?O.push(S):p.errors.push(function fe(W){return new i.\u0275RuntimeError(3002,c)}()):O.push(S)}):O.push(f.styles);let Z=!1,E=null;return O.forEach(S=>{if(In(S)){const R=S,j=R.easing;if(j&&(E=j,delete R.easing),!Z)for(let te in R)if(R[te].toString().indexOf("{{")>=0){Z=!0;break}}}),{type:6,styles:O,easing:E,offset:f.offset,containsDynamicStyles:Z,options:null}}_validateStyleAst(f,p){const O=p.currentAnimateTimings;let Z=p.currentTime,E=p.currentTime;O&&E>0&&(E-=O.duration+O.delay),f.styles.forEach(S=>{"string"!=typeof S&&Object.keys(S).forEach(R=>{if(!this._driver.validateStyleProperty(R))return void p.errors.push(function Q(W){return new i.\u0275RuntimeError(3009,c)}());const j=p.collectedStyles[p.currentQuerySelector],te=j[R];let ye=!0;te&&(E!=Z&&E>=te.startTime&&Z<=te.endTime&&(p.errors.push(function he(W,f,p,O,Z){return new i.\u0275RuntimeError(3010,c)}()),ye=!1),E=te.startTime),ye&&(j[R]={startTime:E,endTime:Z}),p.options&&function Le(W,f,p){const O=f.params||{},Z=ue(W);Z.length&&Z.forEach(E=>{O.hasOwnProperty(E)||p.push(function w(W){return new i.\u0275RuntimeError(3001,c)}())})}(S[R],p.options,p.errors)})})}visitKeyframes(f,p){const O={type:5,styles:[],options:null};if(!p.currentAnimateTimings)return p.errors.push(function Re(){return new i.\u0275RuntimeError(3011,c)}()),O;let E=0;const S=[];let R=!1,j=!1,te=0;const ye=f.steps.map(qt=>{const un=this._makeStyleAst(qt,p);let Wt=null!=un.offset?un.offset:function nn(W){if("string"==typeof W)return null;let f=null;if(Array.isArray(W))W.forEach(p=>{if(In(p)&&p.hasOwnProperty("offset")){const O=p;f=parseFloat(O.offset),delete O.offset}});else if(In(W)&&W.hasOwnProperty("offset")){const p=W;f=parseFloat(p.offset),delete p.offset}return f}(un.styles),Gt=0;return null!=Wt&&(E++,Gt=un.offset=Wt),j=j||Gt<0||Gt>1,R=R||Gt<te,te=Gt,S.push(Gt),un});j&&p.errors.push(function _e(){return new i.\u0275RuntimeError(3012,c)}()),R&&p.errors.push(function be(){return new i.\u0275RuntimeError(3200,c)}());const We=f.steps.length;let rt=0;E>0&&E<We?p.errors.push(function q(){return new i.\u0275RuntimeError(3202,c)}()):0==E&&(rt=1/(We-1));const ot=We-1,yt=p.currentTime,Mt=p.currentAnimateTimings,Vt=Mt.duration;return ye.forEach((qt,un)=>{const Wt=rt>0?un==ot?1:rt*un:S[un],Gt=Wt*Vt;p.currentTime=yt+Mt.delay+Gt,Mt.duration=Gt,this._validateStyleAst(qt,p),qt.offset=Wt,O.styles.push(qt)}),O}visitReference(f,p){return{type:8,animation:Sn(this,jt(f.animation),p),options:fn(f.options)}}visitAnimateChild(f,p){return p.depCount++,{type:9,options:fn(f.options)}}visitAnimateRef(f,p){return{type:10,animation:this.visitReference(f.animation,p),options:fn(f.options)}}visitQuery(f,p){const O=p.currentQuerySelector,Z=f.options||{};p.queryCount++,p.currentQuery=f;const[E,S]=function mn(W){const f=!!W.split(/\s*,\s*/).find(p=>":self"==p);return f&&(W=W.replace(at,"")),W=W.replace(/@\*/g,Et).replace(/@\w+/g,p=>Et+"-"+p.substr(1)).replace(/:animating/g,Ut),[W,f]}(f.selector);p.currentQuerySelector=O.length?O+" "+E:E,gt(p.collectedStyles,p.currentQuerySelector,{});const R=Sn(this,jt(f.animation),p);return p.currentQuery=null,p.currentQuerySelector=O,{type:11,selector:E,limit:Z.limit||0,optional:!!Z.optional,includeSelf:S,animation:R,originalSelector:f.selector,options:fn(f.options)}}visitStagger(f,p){p.currentQuery||p.errors.push(function Ce(){return new i.\u0275RuntimeError(3013,c)}());const O="full"===f.timings?{duration:0,delay:0,easing:"full"}:J(f.timings,p.errors,!0);return{type:12,animation:Sn(this,jt(f.animation),p),timings:O,options:null}}}class En{constructor(f){this.errors=f,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}}function In(W){return!Array.isArray(W)&&"object"==typeof W}function fn(W){return W?(W=P(W)).params&&(W.params=function Ft(W){return W?P(W):null}(W.params)):W={},W}function Tn(W,f,p){return{duration:W,delay:f,easing:p}}function qn(W,f,p,O,Z,E,S=null,R=!1){return{type:1,element:W,keyframes:f,preStyleProps:p,postStyleProps:O,duration:Z,delay:E,totalTime:Z+E,easing:S,subTimeline:R}}class Nn{constructor(){this._map=new Map}get(f){return this._map.get(f)||[]}append(f,p){let O=this._map.get(f);O||this._map.set(f,O=[]),O.push(...p)}has(f){return this._map.has(f)}clear(){this._map.clear()}}const fi=new RegExp(":enter","g"),$n=new RegExp(":leave","g");function pi(W,f,p,O,Z,E={},S={},R,j,te=[]){return(new bi).buildKeyframes(W,f,p,O,Z,E,S,R,j,te)}class bi{buildKeyframes(f,p,O,Z,E,S,R,j,te,ye=[]){te=te||new Nn;const We=new Hn(f,p,te,Z,E,ye,[]);We.options=j,We.currentTimeline.setStyles([S],null,We.errors,j),Sn(this,O,We);const rt=We.timelines.filter(ot=>ot.containsAnimation());if(Object.keys(R).length){let ot;for(let yt=rt.length-1;yt>=0;yt--){const Mt=rt[yt];if(Mt.element===p){ot=Mt;break}}ot&&!ot.allowOnlyTimelineStyles()&&ot.setStyles([R],null,We.errors,j)}return rt.length?rt.map(ot=>ot.buildKeyframes()):[qn(p,[],[],[],0,0,"",!1)]}visitTrigger(f,p){}visitState(f,p){}visitTransition(f,p){}visitAnimateChild(f,p){const O=p.subInstructions.get(p.element);if(O){const Z=p.createSubContext(f.options),E=p.currentTimeline.currentTime,S=this._visitSubInstructions(O,Z,Z.options);E!=S&&p.transformIntoNewTimeline(S)}p.previousNode=f}visitAnimateRef(f,p){const O=p.createSubContext(f.options);O.transformIntoNewTimeline(),this.visitReference(f.animation,O),p.transformIntoNewTimeline(O.currentTimeline.currentTime),p.previousNode=f}_visitSubInstructions(f,p,O){let E=p.currentTimeline.currentTime;const S=null!=O.duration?Xt(O.duration):null,R=null!=O.delay?Xt(O.delay):null;return 0!==S&&f.forEach(j=>{const te=p.appendInstructionToTimeline(j,S,R);E=Math.max(E,te.duration+te.delay)}),E}visitReference(f,p){p.updateOptions(f.options,!0),Sn(this,f.animation,p),p.previousNode=f}visitSequence(f,p){const O=p.subContextCount;let Z=p;const E=f.options;if(E&&(E.params||E.delay)&&(Z=p.createSubContext(E),Z.transformIntoNewTimeline(),null!=E.delay)){6==Z.previousNode.type&&(Z.currentTimeline.snapshotCurrentStyles(),Z.previousNode=ei);const S=Xt(E.delay);Z.delayNextStep(S)}f.steps.length&&(f.steps.forEach(S=>Sn(this,S,Z)),Z.currentTimeline.applyStylesToKeyframe(),Z.subContextCount>O&&Z.transformIntoNewTimeline()),p.previousNode=f}visitGroup(f,p){const O=[];let Z=p.currentTimeline.currentTime;const E=f.options&&f.options.delay?Xt(f.options.delay):0;f.steps.forEach(S=>{const R=p.createSubContext(f.options);E&&R.delayNextStep(E),Sn(this,S,R),Z=Math.max(Z,R.currentTimeline.currentTime),O.push(R.currentTimeline)}),O.forEach(S=>p.currentTimeline.mergeTimelineCollectedStyles(S)),p.transformIntoNewTimeline(Z),p.previousNode=f}_visitTiming(f,p){if(f.dynamic){const O=f.strValue;return J(p.params?Ve(O,p.params,p.errors):O,p.errors)}return{duration:f.duration,delay:f.delay,easing:f.easing}}visitAnimate(f,p){const O=p.currentAnimateTimings=this._visitTiming(f.timings,p),Z=p.currentTimeline;O.delay&&(p.incrementTime(O.delay),Z.snapshotCurrentStyles());const E=f.style;5==E.type?this.visitKeyframes(E,p):(p.incrementTime(O.duration),this.visitStyle(E,p),Z.applyStylesToKeyframe()),p.currentAnimateTimings=null,p.previousNode=f}visitStyle(f,p){const O=p.currentTimeline,Z=p.currentAnimateTimings;!Z&&O.getCurrentStyleProperties().length&&O.forwardFrame();const E=Z&&Z.easing||f.easing;f.isEmptyStep?O.applyEmptyStep(E):O.setStyles(f.styles,E,p.errors,p.options),p.previousNode=f}visitKeyframes(f,p){const O=p.currentAnimateTimings,Z=p.currentTimeline.duration,E=O.duration,R=p.createSubContext().currentTimeline;R.easing=O.easing,f.styles.forEach(j=>{R.forwardTime((j.offset||0)*E),R.setStyles(j.styles,j.easing,p.errors,p.options),R.applyStylesToKeyframe()}),p.currentTimeline.mergeTimelineCollectedStyles(R),p.transformIntoNewTimeline(Z+E),p.previousNode=f}visitQuery(f,p){const O=p.currentTimeline.currentTime,Z=f.options||{},E=Z.delay?Xt(Z.delay):0;E&&(6===p.previousNode.type||0==O&&p.currentTimeline.getCurrentStyleProperties().length)&&(p.currentTimeline.snapshotCurrentStyles(),p.previousNode=ei);let S=O;const R=p.invokeQuery(f.selector,f.originalSelector,f.limit,f.includeSelf,!!Z.optional,p.errors);p.currentQueryTotal=R.length;let j=null;R.forEach((te,ye)=>{p.currentQueryIndex=ye;const We=p.createSubContext(f.options,te);E&&We.delayNextStep(E),te===p.element&&(j=We.currentTimeline),Sn(this,f.animation,We),We.currentTimeline.applyStylesToKeyframe(),S=Math.max(S,We.currentTimeline.currentTime)}),p.currentQueryIndex=0,p.currentQueryTotal=0,p.transformIntoNewTimeline(S),j&&(p.currentTimeline.mergeTimelineCollectedStyles(j),p.currentTimeline.snapshotCurrentStyles()),p.previousNode=f}visitStagger(f,p){const O=p.parentContext,Z=p.currentTimeline,E=f.timings,S=Math.abs(E.duration),R=S*(p.currentQueryTotal-1);let j=S*p.currentQueryIndex;switch(E.duration<0?"reverse":E.easing){case"reverse":j=R-j;break;case"full":j=O.currentStaggerTime}const ye=p.currentTimeline;j&&ye.delayNextStep(j);const We=ye.currentTime;Sn(this,f.animation,p),p.previousNode=f,O.currentStaggerTime=Z.currentTime-We+(Z.startTime-O.currentTimeline.startTime)}}const ei={};class Hn{constructor(f,p,O,Z,E,S,R,j){this._driver=f,this.element=p,this.subInstructions=O,this._enterClassName=Z,this._leaveClassName=E,this.errors=S,this.timelines=R,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ei,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=j||new Vi(this._driver,p,0),R.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(f,p){if(!f)return;const O=f;let Z=this.options;null!=O.duration&&(Z.duration=Xt(O.duration)),null!=O.delay&&(Z.delay=Xt(O.delay));const E=O.params;if(E){let S=Z.params;S||(S=this.options.params={}),Object.keys(E).forEach(R=>{(!p||!S.hasOwnProperty(R))&&(S[R]=Ve(E[R],S,this.errors))})}}_copyOptions(){const f={};if(this.options){const p=this.options.params;if(p){const O=f.params={};Object.keys(p).forEach(Z=>{O[Z]=p[Z]})}}return f}createSubContext(f=null,p,O){const Z=p||this.element,E=new Hn(this._driver,Z,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Z,O||0));return E.previousNode=this.previousNode,E.currentAnimateTimings=this.currentAnimateTimings,E.options=this._copyOptions(),E.updateOptions(f),E.currentQueryIndex=this.currentQueryIndex,E.currentQueryTotal=this.currentQueryTotal,E.parentContext=this,this.subContextCount++,E}transformIntoNewTimeline(f){return this.previousNode=ei,this.currentTimeline=this.currentTimeline.fork(this.element,f),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(f,p,O){const Z={duration:null!=p?p:f.duration,delay:this.currentTimeline.currentTime+(null!=O?O:0)+f.delay,easing:""},E=new hr(this._driver,f.element,f.keyframes,f.preStyleProps,f.postStyleProps,Z,f.stretchStartingKeyframe);return this.timelines.push(E),Z}incrementTime(f){this.currentTimeline.forwardTime(this.currentTimeline.duration+f)}delayNextStep(f){f>0&&this.currentTimeline.delayNextStep(f)}invokeQuery(f,p,O,Z,E,S){let R=[];if(Z&&R.push(this.element),f.length>0){f=(f=f.replace(fi,"."+this._enterClassName)).replace($n,"."+this._leaveClassName);let te=this._driver.query(this.element,f,1!=O);0!==O&&(te=O<0?te.slice(te.length+O,te.length):te.slice(0,O)),R.push(...te)}return!E&&0==R.length&&S.push(function Fe(W){return new i.\u0275RuntimeError(3014,c)}()),R}}class Vi{constructor(f,p,O,Z){this._driver=f,this.element=p,this.startTime=O,this._elementTimelineStylesLookup=Z,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(p),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(p,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(f){const p=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||p?(this.forwardTime(this.currentTime+f),p&&this.snapshotCurrentStyles()):this.startTime+=f}fork(f,p){return this.applyStylesToKeyframe(),new Vi(this._driver,f,p||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(f){this.applyStylesToKeyframe(),this.duration=f,this._loadKeyframe()}_updateStyle(f,p){this._localTimelineStyles[f]=p,this._globalTimelineStyles[f]=p,this._styleSummary[f]={time:this.currentTime,value:p}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(f){f&&(this._previousKeyframe.easing=f),Object.keys(this._globalTimelineStyles).forEach(p=>{this._backFill[p]=this._globalTimelineStyles[p]||m.l3,this._currentKeyframe[p]=m.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(f,p,O,Z){p&&(this._previousKeyframe.easing=p);const E=Z&&Z.params||{},S=function Zn(W,f){const p={};let O;return W.forEach(Z=>{"*"===Z?(O=O||Object.keys(f),O.forEach(E=>{p[E]=m.l3})):b(Z,!1,p)}),p}(f,this._globalTimelineStyles);Object.keys(S).forEach(R=>{const j=Ve(S[R],E,O);this._pendingStyles[R]=j,this._localTimelineStyles.hasOwnProperty(R)||(this._backFill[R]=this._globalTimelineStyles.hasOwnProperty(R)?this._globalTimelineStyles[R]:m.l3),this._updateStyle(R,j)})}applyStylesToKeyframe(){const f=this._pendingStyles,p=Object.keys(f);0!=p.length&&(this._pendingStyles={},p.forEach(O=>{this._currentKeyframe[O]=f[O]}),Object.keys(this._localTimelineStyles).forEach(O=>{this._currentKeyframe.hasOwnProperty(O)||(this._currentKeyframe[O]=this._localTimelineStyles[O])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(f=>{const p=this._localTimelineStyles[f];this._pendingStyles[f]=p,this._updateStyle(f,p)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const f=[];for(let p in this._currentKeyframe)f.push(p);return f}mergeTimelineCollectedStyles(f){Object.keys(f._styleSummary).forEach(p=>{const O=this._styleSummary[p],Z=f._styleSummary[p];(!O||Z.time>O.time)&&this._updateStyle(p,Z.value)})}buildKeyframes(){this.applyStylesToKeyframe();const f=new Set,p=new Set,O=1===this._keyframes.size&&0===this.duration;let Z=[];this._keyframes.forEach((R,j)=>{const te=b(R,!0);Object.keys(te).forEach(ye=>{const We=te[ye];We==m.k1?f.add(ye):We==m.l3&&p.add(ye)}),O||(te.offset=j/this.duration),Z.push(te)});const E=f.size?lt(f.values()):[],S=p.size?lt(p.values()):[];if(O){const R=Z[0],j=P(R);R.offset=0,j.offset=1,Z=[R,j]}return qn(this.element,Z,E,S,this.duration,this.startTime,this.easing,!1)}}class hr extends Vi{constructor(f,p,O,Z,E,S,R=!1){super(f,p,S.delay),this.keyframes=O,this.preStyleProps=Z,this.postStyleProps=E,this._stretchStartingKeyframe=R,this.timings={duration:S.duration,delay:S.delay,easing:S.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let f=this.keyframes,{delay:p,duration:O,easing:Z}=this.timings;if(this._stretchStartingKeyframe&&p){const E=[],S=O+p,R=p/S,j=b(f[0],!1);j.offset=0,E.push(j);const te=b(f[0],!1);te.offset=fr(R),E.push(te);const ye=f.length-1;for(let We=1;We<=ye;We++){let rt=b(f[We],!1);rt.offset=fr((p+rt.offset*O)/S),E.push(rt)}O=S,p=0,Z="",f=E}return qn(this.element,f,this.preStyleProps,this.postStyleProps,O,p,Z,!0)}}function fr(W,f=3){const p=Math.pow(10,f-1);return Math.round(W*p)/p}class $i{}class $r extends $i{normalizePropertyName(f,p){return Pt(f)}normalizeStyleValue(f,p,O,Z){let E="";const S=O.toString().trim();if(Yi[p]&&0!==O&&"0"!==O)if("number"==typeof O)E="px";else{const R=O.match(/^[+-]?[\d\.]+([a-z]*)$/);R&&0==R[1].length&&Z.push(function T(W,f){return new i.\u0275RuntimeError(3005,c)}())}return S+E}}const Yi=(()=>function Ar(W){const f={};return W.forEach(p=>f[p]=!0),f}("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 Mi(W,f,p,O,Z,E,S,R,j,te,ye,We,rt){return{type:0,element:W,triggerName:f,isRemovalTransition:Z,fromState:p,fromStyles:E,toState:O,toStyles:S,timelines:R,queriedElements:j,preStyleProps:te,postStyleProps:ye,totalTime:We,errors:rt}}const Ji={};class li{constructor(f,p,O){this._triggerName=f,this.ast=p,this._stateStyles=O}match(f,p,O,Z){return function mr(W,f,p,O,Z){return W.some(E=>E(f,p,O,Z))}(this.ast.matchers,f,p,O,Z)}buildStyles(f,p,O){const Z=this._stateStyles["*"],E=this._stateStyles[f],S=Z?Z.buildStyles(p,O):{};return E?E.buildStyles(p,O):S}build(f,p,O,Z,E,S,R,j,te,ye){const We=[],rt=this.ast.options&&this.ast.options.params||Ji,yt=this.buildStyles(O,R&&R.params||Ji,We),Mt=j&&j.params||Ji,Vt=this.buildStyles(Z,Mt,We),qt=new Set,un=new Map,Wt=new Map,Gt="void"===Z,hn={params:Object.assign(Object.assign({},rt),Mt)},An=ye?[]:pi(f,p,this.ast.animation,E,S,yt,Vt,hn,te,We);let Fn=0;if(An.forEach(rr=>{Fn=Math.max(rr.duration+rr.delay,Fn)}),We.length)return Mi(p,this._triggerName,O,Z,Gt,yt,Vt,[],[],un,Wt,Fn,We);An.forEach(rr=>{const or=rr.element,oi=gt(un,or,{});rr.preStyleProps.forEach(Mn=>oi[Mn]=!0);const Ti=gt(Wt,or,{});rr.postStyleProps.forEach(Mn=>Ti[Mn]=!0),or!==p&&qt.add(or)});const Ei=lt(qt.values());return Mi(p,this._triggerName,O,Z,Gt,yt,Vt,An,Ei,un,Wt,Fn)}}class wi{constructor(f,p,O){this.styles=f,this.defaultParams=p,this.normalizer=O}buildStyles(f,p){const O={},Z=P(this.defaultParams);return Object.keys(f).forEach(E=>{const S=f[E];null!=S&&(Z[E]=S)}),this.styles.styles.forEach(E=>{if("string"!=typeof E){const S=E;Object.keys(S).forEach(R=>{let j=S[R];j.length>1&&(j=Ve(j,Z,p));const te=this.normalizer.normalizePropertyName(R,p);j=this.normalizer.normalizeStyleValue(R,te,j,p),O[te]=j})}}),O}}class xr{constructor(f,p,O){this.name=f,this.ast=p,this._normalizer=O,this.transitionFactories=[],this.states={},p.states.forEach(Z=>{this.states[Z.name]=new wi(Z.style,Z.options&&Z.options.params||{},O)}),Si(this.states,"true","1"),Si(this.states,"false","0"),p.transitions.forEach(Z=>{this.transitionFactories.push(new li(f,Z,this.states))}),this.fallbackTransition=function Xi(W,f,p){return new li(W,{type:1,animation:{type:2,steps:[],options:null},matchers:[(S,R)=>!0],options:null,queryCount:0,depCount:0},f)}(f,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(f,p,O,Z){return this.transitionFactories.find(S=>S.match(f,p,O,Z))||null}matchStyles(f,p,O){return this.fallbackTransition.buildStyles(f,p,O)}}function Si(W,f,p){W.hasOwnProperty(f)?W.hasOwnProperty(p)||(W[p]=W[f]):W.hasOwnProperty(p)&&(W[f]=W[p])}const Hi=new Nn;class Rr{constructor(f,p,O){this.bodyNode=f,this._driver=p,this._normalizer=O,this._animations={},this._playersById={},this.players=[]}register(f,p){const O=[],Z=Tt(this._driver,p,O);if(O.length)throw function ge(W){return new i.\u0275RuntimeError(3503,c)}();this._animations[f]=Z}_buildPlayer(f,p,O){const Z=f.element,E=ke(0,this._normalizer,0,f.keyframes,p,O);return this._driver.animate(Z,E,f.duration,f.delay,f.easing,[],!0)}create(f,p,O={}){const Z=[],E=this._animations[f];let S;const R=new Map;if(E?(S=pi(this._driver,p,E,pn,Jt,{},{},O,Hi,Z),S.forEach(ye=>{const We=gt(R,ye.element,{});ye.postStyleProps.forEach(rt=>We[rt]=null)})):(Z.push(function ie(){return new i.\u0275RuntimeError(3300,c)}()),S=[]),Z.length)throw function xe(W){return new i.\u0275RuntimeError(3504,c)}();R.forEach((ye,We)=>{Object.keys(ye).forEach(rt=>{ye[rt]=this._driver.computeStyle(We,rt,m.l3)})});const te=we(S.map(ye=>{const We=R.get(ye.element);return this._buildPlayer(ye,{},We)}));return this._playersById[f]=te,te.onDestroy(()=>this.destroy(f)),this.players.push(te),te}destroy(f){const p=this._getPlayer(f);p.destroy(),delete this._playersById[f];const O=this.players.indexOf(p);O>=0&&this.players.splice(O,1)}_getPlayer(f){const p=this._playersById[f];if(!p)throw function me(W){return new i.\u0275RuntimeError(3301,c)}();return p}listen(f,p,O,Z){const E=mt(p,"","","");return Ee(this._getPlayer(f),O,E,Z),()=>{}}command(f,p,O,Z){if("register"==O)return void this.register(f,Z[0]);if("create"==O)return void this.create(f,p,Z[0]||{});const E=this._getPlayer(f);switch(O){case"play":E.play();break;case"pause":E.pause();break;case"reset":E.reset();break;case"restart":E.restart();break;case"finish":E.finish();break;case"init":E.init();break;case"setPosition":E.setPosition(parseFloat(Z[0]));break;case"destroy":this.destroy(f)}}}const Ii="ng-animate-queued",ri="ng-animate-disabled",Oi=[],_r={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ui={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Un="__ng_removed";class xi{constructor(f,p=""){this.namespaceId=p;const O=f&&f.hasOwnProperty("value");if(this.value=function Fr(W){return null!=W?W:null}(O?f.value:f),O){const E=P(f);delete E.value,this.options=E}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(f){const p=f.params;if(p){const O=this.options.params;Object.keys(p).forEach(Z=>{null==O[Z]&&(O[Z]=p[Z])})}}}const Wn="void",Wi=new xi(Wn);class zn{constructor(f,p,O){this.id=f,this.hostElement=p,this._engine=O,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+f,sn(p,this._hostClassName)}listen(f,p,O,Z){if(!this._triggers.hasOwnProperty(p))throw function Je(W,f){return new i.\u0275RuntimeError(3302,c)}();if(null==O||0==O.length)throw function ve(W){return new i.\u0275RuntimeError(3303,c)}();if(!function Ri(W){return"start"==W||"done"==W}(O))throw function ze(W,f){return new i.\u0275RuntimeError(3400,c)}();const E=gt(this._elementListeners,f,[]),S={name:p,phase:O,callback:Z};E.push(S);const R=gt(this._engine.statesByElement,f,{});return R.hasOwnProperty(p)||(sn(f,Nt),sn(f,Nt+"-"+p),R[p]=Wi),()=>{this._engine.afterFlush(()=>{const j=E.indexOf(S);j>=0&&E.splice(j,1),this._triggers[p]||delete R[p]})}}register(f,p){return!this._triggers[f]&&(this._triggers[f]=p,!0)}_getTrigger(f){const p=this._triggers[f];if(!p)throw function ct(W){return new i.\u0275RuntimeError(3401,c)}();return p}trigger(f,p,O,Z=!0){const E=this._getTrigger(p),S=new mi(this.id,p,f);let R=this._engine.statesByElement.get(f);R||(sn(f,Nt),sn(f,Nt+"-"+p),this._engine.statesByElement.set(f,R={}));let j=R[p];const te=new xi(O,this.id);if(!(O&&O.hasOwnProperty("value"))&&j&&te.absorbOptions(j.options),R[p]=te,j||(j=Wi),te.value!==Wn&&j.value===te.value){if(!function Ke(W,f){const p=Object.keys(W),O=Object.keys(f);if(p.length!=O.length)return!1;for(let Z=0;Z<p.length;Z++){const E=p[Z];if(!f.hasOwnProperty(E)||W[E]!==f[E])return!1}return!0}(j.params,te.params)){const Mt=[],Vt=E.matchStyles(j.value,j.params,Mt),qt=E.matchStyles(te.value,te.params,Mt);Mt.length?this._engine.reportError(Mt):this._engine.afterFlush(()=>{Bt(f,Vt),it(f,qt)})}return}const rt=gt(this._engine.playersByElement,f,[]);rt.forEach(Mt=>{Mt.namespaceId==this.id&&Mt.triggerName==p&&Mt.queued&&Mt.destroy()});let ot=E.matchTransition(j.value,te.value,f,te.params),yt=!1;if(!ot){if(!Z)return;ot=E.fallbackTransition,yt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:f,triggerName:p,transition:ot,fromState:j,toState:te,player:S,isFallbackTransition:yt}),yt||(sn(f,Ii),S.onStart(()=>{k(f,Ii)})),S.onDone(()=>{let Mt=this.players.indexOf(S);Mt>=0&&this.players.splice(Mt,1);const Vt=this._engine.playersByElement.get(f);if(Vt){let qt=Vt.indexOf(S);qt>=0&&Vt.splice(qt,1)}}),this.players.push(S),rt.push(S),S}deregister(f){delete this._triggers[f],this._engine.statesByElement.forEach((p,O)=>{delete p[f]}),this._elementListeners.forEach((p,O)=>{this._elementListeners.set(O,p.filter(Z=>Z.name!=f))})}clearElementCache(f){this._engine.statesByElement.delete(f),this._elementListeners.delete(f);const p=this._engine.playersByElement.get(f);p&&(p.forEach(O=>O.destroy()),this._engine.playersByElement.delete(f))}_signalRemovalForInnerTriggers(f,p){const O=this._engine.driver.query(f,Et,!0);O.forEach(Z=>{if(Z[Un])return;const E=this._engine.fetchNamespacesByElement(Z);E.size?E.forEach(S=>S.triggerLeaveAnimation(Z,p,!1,!0)):this.clearElementCache(Z)}),this._engine.afterFlushAnimationsDone(()=>O.forEach(Z=>this.clearElementCache(Z)))}triggerLeaveAnimation(f,p,O,Z){const E=this._engine.statesByElement.get(f),S=new Map;if(E){const R=[];if(Object.keys(E).forEach(j=>{if(S.set(j,E[j].value),this._triggers[j]){const te=this.trigger(f,j,Wn,Z);te&&R.push(te)}}),R.length)return this._engine.markElementAsRemoved(this.id,f,!0,p,S),O&&we(R).onDone(()=>this._engine.processLeaveNode(f)),!0}return!1}prepareLeaveAnimationListeners(f){const p=this._elementListeners.get(f),O=this._engine.statesByElement.get(f);if(p&&O){const Z=new Set;p.forEach(E=>{const S=E.name;if(Z.has(S))return;Z.add(S);const j=this._triggers[S].fallbackTransition,te=O[S]||Wi,ye=new xi(Wn),We=new mi(this.id,S,f);this._engine.totalQueuedPlayers++,this._queue.push({element:f,triggerName:S,transition:j,fromState:te,toState:ye,player:We,isFallbackTransition:!0})})}}removeNode(f,p){const O=this._engine;if(f.childElementCount&&this._signalRemovalForInnerTriggers(f,p),this.triggerLeaveAnimation(f,p,!0))return;let Z=!1;if(O.totalAnimations){const E=O.players.length?O.playersByQueriedElement.get(f):[];if(E&&E.length)Z=!0;else{let S=f;for(;S=S.parentNode;)if(O.statesByElement.get(S)){Z=!0;break}}}if(this.prepareLeaveAnimationListeners(f),Z)O.markElementAsRemoved(this.id,f,!1,p);else{const E=f[Un];(!E||E===_r)&&(O.afterFlush(()=>this.clearElementCache(f)),O.destroyInnerAnimations(f),O._onRemovalComplete(f,p))}}insertNode(f,p){sn(f,this._hostClassName)}drainQueuedTransitions(f){const p=[];return this._queue.forEach(O=>{const Z=O.player;if(Z.destroyed)return;const E=O.element,S=this._elementListeners.get(E);S&&S.forEach(R=>{if(R.name==O.triggerName){const j=mt(E,O.triggerName,O.fromState.value,O.toState.value);j._data=f,Ee(O.player,R.phase,j,R.callback)}}),Z.markedForDestroy?this._engine.afterFlush(()=>{Z.destroy()}):p.push(O)}),this._queue=[],p.sort((O,Z)=>{const E=O.transition.ast.depCount,S=Z.transition.ast.depCount;return 0==E||0==S?E-S:this._engine.driver.containsElement(O.element,Z.element)?1:-1})}destroy(f){this.players.forEach(p=>p.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,f)}elementContainsData(f){let p=!1;return this._elementListeners.has(f)&&(p=!0),p=!!this._queue.find(O=>O.element===f)||p,p}}class er{constructor(f,p,O){this.bodyNode=f,this.driver=p,this._normalizer=O,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=(Z,E)=>{}}_onRemovalComplete(f,p){this.onRemovalComplete(f,p)}get queuedPlayers(){const f=[];return this._namespaceList.forEach(p=>{p.players.forEach(O=>{O.queued&&f.push(O)})}),f}createNamespace(f,p){const O=new zn(f,p,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,p)?this._balanceNamespaceList(O,p):(this.newHostElements.set(p,O),this.collectEnterElement(p)),this._namespaceLookup[f]=O}_balanceNamespaceList(f,p){const O=this._namespaceList,Z=this.namespacesByHostElement,E=O.length-1;if(E>=0){let S=!1;if(void 0!==this.driver.getParentElement){let R=this.driver.getParentElement(p);for(;R;){const j=Z.get(R);if(j){const te=O.indexOf(j);O.splice(te+1,0,f),S=!0;break}R=this.driver.getParentElement(R)}}else for(let R=E;R>=0;R--)if(this.driver.containsElement(O[R].hostElement,p)){O.splice(R+1,0,f),S=!0;break}S||O.unshift(f)}else O.push(f);return Z.set(p,f),f}register(f,p){let O=this._namespaceLookup[f];return O||(O=this.createNamespace(f,p)),O}registerTrigger(f,p,O){let Z=this._namespaceLookup[f];Z&&Z.register(p,O)&&this.totalAnimations++}destroy(f,p){if(!f)return;const O=this._fetchNamespace(f);this.afterFlush(()=>{this.namespacesByHostElement.delete(O.hostElement),delete this._namespaceLookup[f];const Z=this._namespaceList.indexOf(O);Z>=0&&this._namespaceList.splice(Z,1)}),this.afterFlushAnimationsDone(()=>O.destroy(p))}_fetchNamespace(f){return this._namespaceLookup[f]}fetchNamespacesByElement(f){const p=new Set,O=this.statesByElement.get(f);if(O){const Z=Object.keys(O);for(let E=0;E<Z.length;E++){const S=O[Z[E]].namespaceId;if(S){const R=this._fetchNamespace(S);R&&p.add(R)}}}return p}trigger(f,p,O,Z){if(gi(p)){const E=this._fetchNamespace(f);if(E)return E.trigger(p,O,Z),!0}return!1}insertNode(f,p,O,Z){if(!gi(p))return;const E=p[Un];if(E&&E.setForRemoval){E.setForRemoval=!1,E.setForMove=!0;const S=this.collectedLeaveElements.indexOf(p);S>=0&&this.collectedLeaveElements.splice(S,1)}if(f){const S=this._fetchNamespace(f);S&&S.insertNode(p,O)}Z&&this.collectEnterElement(p)}collectEnterElement(f){this.collectedEnterElements.push(f)}markElementAsDisabled(f,p){p?this.disabledNodes.has(f)||(this.disabledNodes.add(f),sn(f,ri)):this.disabledNodes.has(f)&&(this.disabledNodes.delete(f),k(f,ri))}removeNode(f,p,O,Z){if(gi(p)){const E=f?this._fetchNamespace(f):null;if(E?E.removeNode(p,Z):this.markElementAsRemoved(f,p,!1,Z),O){const S=this.namespacesByHostElement.get(p);S&&S.id!==f&&S.removeNode(p,Z)}}else this._onRemovalComplete(p,Z)}markElementAsRemoved(f,p,O,Z,E){this.collectedLeaveElements.push(p),p[Un]={namespaceId:f,setForRemoval:Z,hasAnimation:O,removedBeforeQueried:!1,previousTriggersValues:E}}listen(f,p,O,Z,E){return gi(p)?this._fetchNamespace(f).listen(p,O,Z,E):()=>{}}_buildInstruction(f,p,O,Z,E){return f.transition.build(this.driver,f.element,f.fromState.value,f.toState.value,O,Z,f.fromState.options,f.toState.options,p,E)}destroyInnerAnimations(f){let p=this.driver.query(f,Et,!0);p.forEach(O=>this.destroyActiveAnimationsForElement(O)),0!=this.playersByQueriedElement.size&&(p=this.driver.query(f,Ut,!0),p.forEach(O=>this.finishActiveQueriedAnimationOnElement(O)))}destroyActiveAnimationsForElement(f){const p=this.playersByElement.get(f);p&&p.forEach(O=>{O.queued?O.markedForDestroy=!0:O.destroy()})}finishActiveQueriedAnimationOnElement(f){const p=this.playersByQueriedElement.get(f);p&&p.forEach(O=>O.finish())}whenRenderingDone(){return new Promise(f=>{if(this.players.length)return we(this.players).onDone(()=>f());f()})}processLeaveNode(f){var p;const O=f[Un];if(O&&O.setForRemoval){if(f[Un]=_r,O.namespaceId){this.destroyInnerAnimations(f);const Z=this._fetchNamespace(O.namespaceId);Z&&Z.clearElementCache(f)}this._onRemovalComplete(f,O.setForRemoval)}(null===(p=f.classList)||void 0===p?void 0:p.contains(ri))&&this.markElementAsDisabled(f,!1),this.driver.query(f,".ng-animate-disabled",!0).forEach(Z=>{this.markElementAsDisabled(Z,!1)})}flush(f=-1){let p=[];if(this.newHostElements.size&&(this.newHostElements.forEach((O,Z)=>this._balanceNamespaceList(O,Z)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let O=0;O<this.collectedEnterElements.length;O++)sn(this.collectedEnterElements[O],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const O=[];try{p=this._flushAnimations(O,f)}finally{for(let Z=0;Z<O.length;Z++)O[Z]()}}else for(let O=0;O<this.collectedLeaveElements.length;O++)this.processLeaveNode(this.collectedLeaveElements[O]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(O=>O()),this._flushFns=[],this._whenQuietFns.length){const O=this._whenQuietFns;this._whenQuietFns=[],p.length?we(p).onDone(()=>{O.forEach(Z=>Z())}):O.forEach(Z=>Z())}}reportError(f){throw function Dt(W){return new i.\u0275RuntimeError(3402,c)}()}_flushAnimations(f,p){const O=new Nn,Z=[],E=new Map,S=[],R=new Map,j=new Map,te=new Map,ye=new Set;this.disabledNodes.forEach(Ht=>{ye.add(Ht);const Qt=this.driver.query(Ht,".ng-animate-queued",!0);for(let en=0;en<Qt.length;en++)ye.add(Qt[en])});const We=this.bodyNode,rt=Array.from(this.statesByElement.keys()),ot=kr(rt,this.collectedEnterElements),yt=new Map;let Mt=0;ot.forEach((Ht,Qt)=>{const en=pn+Mt++;yt.set(Qt,en),Ht.forEach(vn=>sn(vn,en))});const Vt=[],qt=new Set,un=new Set;for(let Ht=0;Ht<this.collectedLeaveElements.length;Ht++){const Qt=this.collectedLeaveElements[Ht],en=Qt[Un];en&&en.setForRemoval&&(Vt.push(Qt),qt.add(Qt),en.hasAnimation?this.driver.query(Qt,".ng-star-inserted",!0).forEach(vn=>qt.add(vn)):un.add(Qt))}const Wt=new Map,Gt=kr(rt,Array.from(qt));Gt.forEach((Ht,Qt)=>{const en=Jt+Mt++;Wt.set(Qt,en),Ht.forEach(vn=>sn(vn,en))}),f.push(()=>{ot.forEach((Ht,Qt)=>{const en=yt.get(Qt);Ht.forEach(vn=>k(vn,en))}),Gt.forEach((Ht,Qt)=>{const en=Wt.get(Qt);Ht.forEach(vn=>k(vn,en))}),Vt.forEach(Ht=>{this.processLeaveNode(Ht)})});const hn=[],An=[];for(let Ht=this._namespaceList.length-1;Ht>=0;Ht--)this._namespaceList[Ht].drainQueuedTransitions(p).forEach(en=>{const vn=en.player,Bn=en.element;if(hn.push(vn),this.collectedEnterElements.length){const Jn=Bn[Un];if(Jn&&Jn.setForMove){if(Jn.previousTriggersValues&&Jn.previousTriggersValues.has(en.triggerName)){const Nr=Jn.previousTriggersValues.get(en.triggerName),br=this.statesByElement.get(en.element);br&&br[en.triggerName]&&(br[en.triggerName].value=Nr)}return void vn.destroy()}}const yi=!We||!this.driver.containsElement(We,Bn),si=Wt.get(Bn),zi=yt.get(Bn),On=this._buildInstruction(en,O,zi,si,yi);if(On.errors&&On.errors.length)return void An.push(On);if(yi)return vn.onStart(()=>Bt(Bn,On.fromStyles)),vn.onDestroy(()=>it(Bn,On.toStyles)),void Z.push(vn);if(en.isFallbackTransition)return vn.onStart(()=>Bt(Bn,On.fromStyles)),vn.onDestroy(()=>it(Bn,On.toStyles)),void Z.push(vn);const Fs=[];On.timelines.forEach(Jn=>{Jn.stretchStartingKeyframe=!0,this.disabledNodes.has(Jn.element)||Fs.push(Jn)}),On.timelines=Fs,O.append(Bn,On.timelines),S.push({instruction:On,player:vn,element:Bn}),On.queriedElements.forEach(Jn=>gt(R,Jn,[]).push(vn)),On.preStyleProps.forEach((Jn,Nr)=>{const br=Object.keys(Jn);if(br.length){let Fi=j.get(Nr);Fi||j.set(Nr,Fi=new Set),br.forEach(Jr=>Fi.add(Jr))}}),On.postStyleProps.forEach((Jn,Nr)=>{const br=Object.keys(Jn);let Fi=te.get(Nr);Fi||te.set(Nr,Fi=new Set),br.forEach(Jr=>Fi.add(Jr))})});if(An.length){const Ht=[];An.forEach(Qt=>{Ht.push(function et(W,f){return new i.\u0275RuntimeError(3505,c)}())}),hn.forEach(Qt=>Qt.destroy()),this.reportError(Ht)}const Fn=new Map,Ei=new Map;S.forEach(Ht=>{const Qt=Ht.element;O.has(Qt)&&(Ei.set(Qt,Qt),this._beforeAnimationBuild(Ht.player.namespaceId,Ht.instruction,Fn))}),Z.forEach(Ht=>{const Qt=Ht.element;this._getPreviousPlayers(Qt,!1,Ht.namespaceId,Ht.triggerName,null).forEach(vn=>{gt(Fn,Qt,[]).push(vn),vn.destroy()})});const rr=Vt.filter(Ht=>ut(Ht,j,te)),or=new Map;Ci(or,this.driver,un,te,m.l3).forEach(Ht=>{ut(Ht,j,te)&&rr.push(Ht)});const Ti=new Map;ot.forEach((Ht,Qt)=>{Ci(Ti,this.driver,new Set(Ht),j,m.k1)}),rr.forEach(Ht=>{const Qt=or.get(Ht),en=Ti.get(Ht);or.set(Ht,Object.assign(Object.assign({},Qt),en))});const Mn=[],Qo=[],Zo={};S.forEach(Ht=>{const{element:Qt,player:en,instruction:vn}=Ht;if(O.has(Qt)){if(ye.has(Qt))return en.onDestroy(()=>it(Qt,vn.toStyles)),en.disabled=!0,en.overrideTotalTime(vn.totalTime),void Z.push(en);let Bn=Zo;if(Ei.size>1){let si=Qt;const zi=[];for(;si=si.parentNode;){const On=Ei.get(si);if(On){Bn=On;break}zi.push(si)}zi.forEach(On=>Ei.set(On,Bn))}const yi=this._buildAnimation(en.namespaceId,vn,Fn,E,Ti,or);if(en.setRealPlayer(yi),Bn===Zo)Mn.push(en);else{const si=this.playersByElement.get(Bn);si&&si.length&&(en.parentPlayer=we(si)),Z.push(en)}}else Bt(Qt,vn.fromStyles),en.onDestroy(()=>it(Qt,vn.toStyles)),Qo.push(en),ye.has(Qt)&&Z.push(en)}),Qo.forEach(Ht=>{const Qt=E.get(Ht.element);if(Qt&&Qt.length){const en=we(Qt);Ht.setRealPlayer(en)}}),Z.forEach(Ht=>{Ht.parentPlayer?Ht.syncPlayerEvents(Ht.parentPlayer):Ht.destroy()});for(let Ht=0;Ht<Vt.length;Ht++){const Qt=Vt[Ht],en=Qt[Un];if(k(Qt,Jt),en&&en.hasAnimation)continue;let vn=[];if(R.size){let yi=R.get(Qt);yi&&yi.length&&vn.push(...yi);let si=this.driver.query(Qt,Ut,!0);for(let zi=0;zi<si.length;zi++){let On=R.get(si[zi]);On&&On.length&&vn.push(...On)}}const Bn=vn.filter(yi=>!yi.destroyed);Bn.length?ee(this,Qt,Bn):this.processLeaveNode(Qt)}return Vt.length=0,Mn.forEach(Ht=>{this.players.push(Ht),Ht.onDone(()=>{Ht.destroy();const Qt=this.players.indexOf(Ht);this.players.splice(Qt,1)}),Ht.play()}),Mn}elementContainsData(f,p){let O=!1;const Z=p[Un];return Z&&Z.setForRemoval&&(O=!0),this.playersByElement.has(p)&&(O=!0),this.playersByQueriedElement.has(p)&&(O=!0),this.statesByElement.has(p)&&(O=!0),this._fetchNamespace(f).elementContainsData(p)||O}afterFlush(f){this._flushFns.push(f)}afterFlushAnimationsDone(f){this._whenQuietFns.push(f)}_getPreviousPlayers(f,p,O,Z,E){let S=[];if(p){const R=this.playersByQueriedElement.get(f);R&&(S=R)}else{const R=this.playersByElement.get(f);if(R){const j=!E||E==Wn;R.forEach(te=>{te.queued||!j&&te.triggerName!=Z||S.push(te)})}}return(O||Z)&&(S=S.filter(R=>!(O&&O!=R.namespaceId||Z&&Z!=R.triggerName))),S}_beforeAnimationBuild(f,p,O){const E=p.element,S=p.isRemovalTransition?void 0:f,R=p.isRemovalTransition?void 0:p.triggerName;for(const j of p.timelines){const te=j.element,ye=te!==E,We=gt(O,te,[]);this._getPreviousPlayers(te,ye,S,R,p.toState).forEach(ot=>{const yt=ot.getRealPlayer();yt.beforeDestroy&&yt.beforeDestroy(),ot.destroy(),We.push(ot)})}Bt(E,p.fromStyles)}_buildAnimation(f,p,O,Z,E,S){const R=p.triggerName,j=p.element,te=[],ye=new Set,We=new Set,rt=p.timelines.map(yt=>{const Mt=yt.element;ye.add(Mt);const Vt=Mt[Un];if(Vt&&Vt.removedBeforeQueried)return new m.ZN(yt.duration,yt.delay);const qt=Mt!==j,un=function F(W){const f=[];return se(W,f),f}((O.get(Mt)||Oi).map(Fn=>Fn.getRealPlayer())).filter(Fn=>!!Fn.element&&Fn.element===Mt),Wt=E.get(Mt),Gt=S.get(Mt),hn=ke(0,this._normalizer,0,yt.keyframes,Wt,Gt),An=this._buildPlayer(yt,hn,un);if(yt.subTimeline&&Z&&We.add(Mt),qt){const Fn=new mi(f,R,Mt);Fn.setRealPlayer(An),te.push(Fn)}return An});te.forEach(yt=>{gt(this.playersByQueriedElement,yt.element,[]).push(yt),yt.onDone(()=>function tr(W,f,p){let O;if(W instanceof Map){if(O=W.get(f),O){if(O.length){const Z=O.indexOf(p);O.splice(Z,1)}0==O.length&&W.delete(f)}}else if(O=W[f],O){if(O.length){const Z=O.indexOf(p);O.splice(Z,1)}0==O.length&&delete W[f]}return O}(this.playersByQueriedElement,yt.element,yt))}),ye.forEach(yt=>sn(yt,ln));const ot=we(rt);return ot.onDestroy(()=>{ye.forEach(yt=>k(yt,ln)),it(j,p.toStyles)}),We.forEach(yt=>{gt(Z,yt,[]).push(ot)}),ot}_buildPlayer(f,p,O){return p.length>0?this.driver.animate(f.element,p,f.duration,f.delay,f.easing,O):new m.ZN(f.duration,f.delay)}}class mi{constructor(f,p,O){this.namespaceId=f,this.triggerName=p,this.element=O,this._player=new m.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(f){this._containsRealPlayer||(this._player=f,Object.keys(this._queuedCallbacks).forEach(p=>{this._queuedCallbacks[p].forEach(O=>Ee(f,p,void 0,O))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(f.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(f){this.totalTime=f}syncPlayerEvents(f){const p=this._player;p.triggerCallback&&f.onStart(()=>p.triggerCallback("start")),f.onDone(()=>this.finish()),f.onDestroy(()=>this.destroy())}_queueEvent(f,p){gt(this._queuedCallbacks,f,[]).push(p)}onDone(f){this.queued&&this._queueEvent("done",f),this._player.onDone(f)}onStart(f){this.queued&&this._queueEvent("start",f),this._player.onStart(f)}onDestroy(f){this.queued&&this._queueEvent("destroy",f),this._player.onDestroy(f)}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(f){this.queued||this._player.setPosition(f)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(f){const p=this._player;p.triggerCallback&&p.triggerCallback(f)}}function gi(W){return W&&1===W.nodeType}function nr(W,f){const p=W.style.display;return W.style.display=null!=f?f:"none",p}function Ci(W,f,p,O,Z){const E=[];p.forEach(j=>E.push(nr(j)));const S=[];O.forEach((j,te)=>{const ye={};j.forEach(We=>{const rt=ye[We]=f.computeStyle(te,We,Z);(!rt||0==rt.length)&&(te[Un]=Ui,S.push(te))}),W.set(te,ye)});let R=0;return p.forEach(j=>nr(j,E[R++])),S}function kr(W,f){const p=new Map;if(W.forEach(R=>p.set(R,[])),0==f.length)return p;const Z=new Set(f),E=new Map;function S(R){if(!R)return 1;let j=E.get(R);if(j)return j;const te=R.parentNode;return j=p.has(te)?te:Z.has(te)?1:S(te),E.set(R,j),j}return f.forEach(R=>{const j=S(R);1!==j&&p.get(j).push(R)}),p}function sn(W,f){var p;null===(p=W.classList)||void 0===p||p.add(f)}function k(W,f){var p;null===(p=W.classList)||void 0===p||p.remove(f)}function ee(W,f,p){we(p).onDone(()=>W.processLeaveNode(f))}function se(W,f){for(let p=0;p<W.length;p++){const O=W[p];O instanceof m.ZE?se(O.players,f):f.push(O)}}function ut(W,f,p){const O=p.get(W);if(!O)return!1;let Z=f.get(W);return Z?O.forEach(E=>Z.add(E)):f.set(W,O),p.delete(W),!0}class _t{constructor(f,p,O){this.bodyNode=f,this._driver=p,this._normalizer=O,this._triggerCache={},this.onRemovalComplete=(Z,E)=>{},this._transitionEngine=new er(f,p,O),this._timelineEngine=new Rr(f,p,O),this._transitionEngine.onRemovalComplete=(Z,E)=>this.onRemovalComplete(Z,E)}registerTrigger(f,p,O,Z,E){const S=f+"-"+Z;let R=this._triggerCache[S];if(!R){const j=[],te=Tt(this._driver,E,j);if(j.length)throw function Pe(W,f){return new i.\u0275RuntimeError(3404,c)}();R=function Or(W,f,p){return new xr(W,f,p)}(Z,te,this._normalizer),this._triggerCache[S]=R}this._transitionEngine.registerTrigger(p,Z,R)}register(f,p){this._transitionEngine.register(f,p)}destroy(f,p){this._transitionEngine.destroy(f,p)}onInsert(f,p,O,Z){this._transitionEngine.insertNode(f,p,O,Z)}onRemove(f,p,O,Z){this._transitionEngine.removeNode(f,p,Z||!1,O)}disableAnimations(f,p){this._transitionEngine.markElementAsDisabled(f,p)}process(f,p,O,Z){if("@"==O.charAt(0)){const[E,S]=St(O);this._timelineEngine.command(E,p,S,Z)}else this._transitionEngine.trigger(f,p,O,Z)}listen(f,p,O,Z,E){if("@"==O.charAt(0)){const[S,R]=St(O);return this._timelineEngine.listen(S,p,R,E)}return this._transitionEngine.listen(f,p,O,Z,E)}flush(f=-1){this._transitionEngine.flush(f)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let yn=(()=>{class W{constructor(p,O,Z){this._element=p,this._startStyles=O,this._endStyles=Z,this._state=0;let E=W.initialStylesByElement.get(p);E||W.initialStylesByElement.set(p,E={}),this._initialStyles=E}start(){this._state<1&&(this._startStyles&&it(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(it(this._element,this._initialStyles),this._endStyles&&(it(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(W.initialStylesByElement.delete(this._element),this._startStyles&&(Bt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Bt(this._element,this._endStyles),this._endStyles=null),it(this._element,this._initialStyles),this._state=3)}}return W.initialStylesByElement=new WeakMap,W})();function dn(W){let f=null;const p=Object.keys(W);for(let O=0;O<p.length;O++){const Z=p[O];on(Z)&&(f=f||{},f[Z]=W[Z])}return f}function on(W){return"display"===W||"position"===W}class an{constructor(f,p,O,Z){this.element=f,this.keyframes=p,this.options=O,this._specialStyles=Z,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=O.duration,this._delay=O.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(f=>f()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const f=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,f,this.options),this._finalKeyframe=f.length?f[f.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(f,p,O){return f.animate(p,O)}onStart(f){this._onStartFns.push(f)}onDone(f){this._onDoneFns.push(f)}onDestroy(f){this._onDestroyFns.push(f)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(f=>f()),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(f=>f()),this._onDestroyFns=[])}setPosition(f){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=f*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const f={};if(this.hasStarted()){const p=this._finalKeyframe;Object.keys(p).forEach(O=>{"offset"!=O&&(f[O]=this._finished?p[O]:jn(this.element,O))})}this.currentSnapshot=f}triggerCallback(f){const p="start"==f?this._onStartFns:this._onDoneFns;p.forEach(O=>O()),p.length=0}}class Pn{validateStyleProperty(f){return oe(f)}matchesElement(f,p){return!1}containsElement(f,p){return Qe(f,p)}getParentElement(f){return ae(f)}query(f,p,O){return nt(f,p,O)}computeStyle(f,p,O){return window.getComputedStyle(f)[p]}animate(f,p,O,Z,E,S=[]){const j={duration:O,delay:Z,fill:0==Z?"both":"forwards"};E&&(j.easing=E);const te={},ye=S.filter(rt=>rt instanceof an);(function bn(W,f){return 0===W||0===f})(O,Z)&&ye.forEach(rt=>{let ot=rt.currentSnapshot;Object.keys(ot).forEach(yt=>te[yt]=ot[yt])}),p=function kn(W,f,p){const O=Object.keys(p);if(O.length&&f.length){let E=f[0],S=[];if(O.forEach(R=>{E.hasOwnProperty(R)||S.push(R),E[R]=p[R]}),S.length)for(var Z=1;Z<f.length;Z++){let R=f[Z];S.forEach(function(j){R[j]=jn(W,j)})}}return f}(f,p=p.map(rt=>b(rt,!1)),te);const We=function Lt(W,f){let p=null,O=null;return Array.isArray(f)&&f.length?(p=dn(f[0]),f.length>1&&(O=dn(f[f.length-1]))):f&&(p=dn(f)),p||O?new yn(W,p,O):null}(f,p);return new an(f,p,j,We)}}var L=l(9808);let x=(()=>{class W extends m._j{constructor(p,O){super(),this._nextAnimationId=0,this._renderer=p.createRenderer(O.body,{id:"0",encapsulation:i.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(p){const O=this._nextAnimationId.toString();this._nextAnimationId++;const Z=Array.isArray(p)?(0,m.vP)(p):p;return Xe(this._renderer,null,O,"register",[Z]),new I(O,this._renderer)}}return W.\u0275fac=function(p){return new(p||W)(i.\u0275\u0275inject(i.RendererFactory2),i.\u0275\u0275inject(L.DOCUMENT))},W.\u0275prov=i.\u0275\u0275defineInjectable({token:W,factory:W.\u0275fac}),W})();class I extends m.LC{constructor(f,p){super(),this._id=f,this._renderer=p}create(f,p){return new X(this._id,f,p||{},this._renderer)}}class X{constructor(f,p,O,Z){this.id=f,this.element=p,this._renderer=Z,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",O)}_listen(f,p){return this._renderer.listen(this.element,`@@${this.id}:${f}`,p)}_command(f,...p){return Xe(this._renderer,this.element,this.id,f,p)}onDone(f){this._listen("done",f)}onStart(f){this._listen("start",f)}onDestroy(f){this._listen("destroy",f)}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(f){this._command("setPosition",f)}getPosition(){var f,p;return null!==(p=null===(f=this._renderer.engine.players[+this.id])||void 0===f?void 0:f.getPosition())&&void 0!==p?p:0}}function Xe(W,f,p,O,Z){return W.setProperty(f,`@@${p}:${O}`,Z)}const Dn="@.disabled";let Yn=(()=>{class W{constructor(p,O,Z){this.delegate=p,this.engine=O,this._zone=Z,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),O.onRemovalComplete=(E,S)=>{const R=null==S?void 0:S.parentNode(E);R&&S.removeChild(R,E)}}createRenderer(p,O){const E=this.delegate.createRenderer(p,O);if(!(p&&O&&O.data&&O.data.animation)){let ye=this._rendererCache.get(E);return ye||(ye=new Di("",E,this.engine),this._rendererCache.set(E,ye)),ye}const S=O.id,R=O.id+"-"+this._currentId;this._currentId++,this.engine.register(R,p);const j=ye=>{Array.isArray(ye)?ye.forEach(j):this.engine.registerTrigger(S,R,p,ye.name,ye)};return O.data.animation.forEach(j),new ir(this,R,E,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(p,O,Z){p>=0&&p<this._microtaskId?this._zone.run(()=>O(Z)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(E=>{const[S,R]=E;S(R)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([O,Z]))}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 W.\u0275fac=function(p){return new(p||W)(i.\u0275\u0275inject(i.RendererFactory2),i.\u0275\u0275inject(_t),i.\u0275\u0275inject(i.NgZone))},W.\u0275prov=i.\u0275\u0275defineInjectable({token:W,factory:W.\u0275fac}),W})();class Di{constructor(f,p,O){this.namespaceId=f,this.delegate=p,this.engine=O,this.destroyNode=this.delegate.destroyNode?Z=>p.destroyNode(Z):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(f,p){return this.delegate.createElement(f,p)}createComment(f){return this.delegate.createComment(f)}createText(f){return this.delegate.createText(f)}appendChild(f,p){this.delegate.appendChild(f,p),this.engine.onInsert(this.namespaceId,p,f,!1)}insertBefore(f,p,O,Z=!0){this.delegate.insertBefore(f,p,O),this.engine.onInsert(this.namespaceId,p,f,Z)}removeChild(f,p,O){this.engine.onRemove(this.namespaceId,p,this.delegate,O)}selectRootElement(f,p){return this.delegate.selectRootElement(f,p)}parentNode(f){return this.delegate.parentNode(f)}nextSibling(f){return this.delegate.nextSibling(f)}setAttribute(f,p,O,Z){this.delegate.setAttribute(f,p,O,Z)}removeAttribute(f,p,O){this.delegate.removeAttribute(f,p,O)}addClass(f,p){this.delegate.addClass(f,p)}removeClass(f,p){this.delegate.removeClass(f,p)}setStyle(f,p,O,Z){this.delegate.setStyle(f,p,O,Z)}removeStyle(f,p,O){this.delegate.removeStyle(f,p,O)}setProperty(f,p,O){"@"==p.charAt(0)&&p==Dn?this.disableAnimations(f,!!O):this.delegate.setProperty(f,p,O)}setValue(f,p){this.delegate.setValue(f,p)}listen(f,p,O){return this.delegate.listen(f,p,O)}disableAnimations(f,p){this.engine.disableAnimations(f,p)}}class ir extends Di{constructor(f,p,O,Z){super(p,O,Z),this.factory=f,this.namespaceId=p}setProperty(f,p,O){"@"==p.charAt(0)?"."==p.charAt(1)&&p==Dn?this.disableAnimations(f,O=void 0===O||!!O):this.engine.process(this.namespaceId,f,p.substr(1),O):this.delegate.setProperty(f,p,O)}listen(f,p,O){if("@"==p.charAt(0)){const Z=function Kr(W){switch(W){case"body":return document.body;case"document":return document;case"window":return window;default:return W}}(f);let E=p.substr(1),S="";return"@"!=E.charAt(0)&&([E,S]=function Gr(W){const f=W.indexOf(".");return[W.substring(0,f),W.substr(f+1)]}(E)),this.engine.listen(this.namespaceId,Z,E,S,R=>{this.factory.scheduleListenerCallback(R._data||-1,O,R)})}return this.delegate.listen(f,p,O)}}let bt=(()=>{class W extends _t{constructor(p,O,Z){super(p.body,O,Z)}ngOnDestroy(){this.flush()}}return W.\u0275fac=function(p){return new(p||W)(i.\u0275\u0275inject(L.DOCUMENT),i.\u0275\u0275inject(Ct),i.\u0275\u0275inject($i))},W.\u0275prov=i.\u0275\u0275defineInjectable({token:W,factory:W.\u0275fac}),W})();const Rn=new i.InjectionToken("AnimationModuleType"),Qr=[{provide:m._j,useClass:x},{provide:$i,useFactory:function gn(){return new $r}},{provide:_t,useClass:bt},{provide:i.RendererFactory2,useFactory:function so(W,f,p){return new Yn(W,f,p)},deps:[u.\u0275DomRendererFactory2,_t,i.NgZone]}],yr=[{provide:Ct,useFactory:()=>new Pn},{provide:Rn,useValue:"BrowserAnimations"},...Qr],_i=[{provide:Ct,useClass:pt},{provide:Rn,useValue:"NoopAnimations"},...Qr];let Zr=(()=>{class W{static withConfig(p){return{ngModule:W,providers:p.disableAnimations?_i:yr}}}return W.\u0275fac=function(p){return new(p||W)},W.\u0275mod=i.\u0275\u0275defineNgModule({type:W}),W.\u0275inj=i.\u0275\u0275defineInjector({providers:yr,imports:[u.BrowserModule]}),W})(),Yr=(()=>{class W{}return W.\u0275fac=function(p){return new(p||W)},W.\u0275mod=i.\u0275\u0275defineNgModule({type:W}),W.\u0275inj=i.\u0275\u0275defineInjector({providers:_i,imports:[u.BrowserModule]}),W})()},2313:(je,g,l)=>{"use strict";l.r(g),l.d(g,{\u0275getDOM:()=>i.\u0275getDOM,BrowserModule:()=>dt,BrowserTransferStateModule:()=>Ut,By:()=>Xt,DomSanitizer:()=>Ne,EVENT_MANAGER_PLUGINS:()=>N,EventManager:()=>U,HAMMER_GESTURE_CONFIG:()=>B,HAMMER_LOADER:()=>P,HammerGestureConfig:()=>re,HammerModule:()=>$,Meta:()=>V,Title:()=>le,TransferState:()=>Et,VERSION:()=>jt,disableDebugTools:()=>xt,enableDebugTools:()=>Kt,makeStateKey:()=>Nt,platformBrowser:()=>gt,\u0275BrowserDomAdapter:()=>c,\u0275BrowserGetTestability:()=>T,\u0275DomEventsPlugin:()=>ze,\u0275DomRendererFactory2:()=>ge,\u0275DomSanitizerImpl:()=>Bt,\u0275DomSharedStylesHost:()=>he,\u0275HammerGesturesPlugin:()=>b,\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS:()=>mt,\u0275KeyEventsPlugin:()=>pe,\u0275NAMESPACE_URIS:()=>_e,\u0275SharedStylesHost:()=>Q,\u0275TRANSITION_ID:()=>w,\u0275escapeHtml:()=>pn,\u0275flattenStyles:()=>de,\u0275initDomAdapter:()=>ke,\u0275shimContentAttribute:()=>st,\u0275shimHostAttribute:()=>$e});var i=l(9808),u=l(5e3);class m extends i.\u0275DomAdapter{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class c extends m{static makeCurrent(){(0,i.\u0275setRootDomAdapter)(new c)}onAndCancel(He,ue,Ve){return He.addEventListener(ue,Ve,!1),()=>{He.removeEventListener(ue,Ve,!1)}}dispatchEvent(He,ue){He.dispatchEvent(ue)}remove(He){He.parentNode&&He.parentNode.removeChild(He)}createElement(He,ue){return(ue=ue||this.getDefaultDocument()).createElement(He)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(He){return He.nodeType===Node.ELEMENT_NODE}isShadowRoot(He){return He instanceof DocumentFragment}getGlobalEventTarget(He,ue){return"window"===ue?window:"document"===ue?He:"body"===ue?He.body:null}getBaseHref(He){const ue=function _(){return s=s||document.querySelector("base"),s?s.getAttribute("href"):null}();return null==ue?null:function C(Le){D=D||document.createElement("a"),D.setAttribute("href",Le);const He=D.pathname;return"/"===He.charAt(0)?He:`/${He}`}(ue)}resetBaseElement(){s=null}getUserAgent(){return window.navigator.userAgent}getCookie(He){return(0,i.\u0275parseCookieValue)(document.cookie,He)}}let D,s=null;const w=new u.InjectionToken("TRANSITION_ID"),A=[{provide:u.APP_INITIALIZER,useFactory:function h(Le,He,ue){return()=>{ue.get(u.ApplicationInitStatus).donePromise.then(()=>{const Ve=(0,i.\u0275getDOM)(),lt=He.querySelectorAll(`style[ng-transition="${Le}"]`);for(let Rt=0;Rt<lt.length;Rt++)Ve.remove(lt[Rt])})}},deps:[w,i.DOCUMENT,u.Injector],multi:!0}];class T{static init(){(0,u.setTestabilityGetter)(new T)}addToWindow(He){u.\u0275global.getAngularTestability=(Ve,lt=!0)=>{const Rt=He.findTestabilityInTree(Ve,lt);if(null==Rt)throw new Error("Could not find testability for element.");return Rt},u.\u0275global.getAllAngularTestabilities=()=>He.getAllTestabilities(),u.\u0275global.getAllAngularRootElements=()=>He.getAllRootElements(),u.\u0275global.frameworkStabilizers||(u.\u0275global.frameworkStabilizers=[]),u.\u0275global.frameworkStabilizers.push(Ve=>{const lt=u.\u0275global.getAllAngularTestabilities();let Rt=lt.length,Pt=!1;const tn=function(bn){Pt=Pt||bn,Rt--,0==Rt&&Ve(Pt)};lt.forEach(function(bn){bn.whenStable(tn)})})}findTestabilityInTree(He,ue,Ve){if(null==ue)return null;const lt=He.getTestability(ue);return null!=lt?lt:Ve?(0,i.\u0275getDOM)().isShadowRoot(ue)?this.findTestabilityInTree(He,ue.host,!0):this.findTestabilityInTree(He,ue.parentElement,!0):null}}let v=(()=>{class Le{build(){return new XMLHttpRequest}}return Le.\u0275fac=function(ue){return new(ue||Le)},Le.\u0275prov=u.\u0275\u0275defineInjectable({token:Le,factory:Le.\u0275fac}),Le})();const N=new u.InjectionToken("EventManagerPlugins");let U=(()=>{class Le{constructor(ue,Ve){this._zone=Ve,this._eventNameToPlugin=new Map,ue.forEach(lt=>lt.manager=this),this._plugins=ue.slice().reverse()}addEventListener(ue,Ve,lt){return this._findPluginFor(Ve).addEventListener(ue,Ve,lt)}addGlobalEventListener(ue,Ve,lt){return this._findPluginFor(Ve).addGlobalEventListener(ue,Ve,lt)}getZone(){return this._zone}_findPluginFor(ue){const Ve=this._eventNameToPlugin.get(ue);if(Ve)return Ve;const lt=this._plugins;for(let Rt=0;Rt<lt.length;Rt++){const Pt=lt[Rt];if(Pt.supports(ue))return this._eventNameToPlugin.set(ue,Pt),Pt}throw new Error(`No event manager plugin found for event ${ue}`)}}return Le.\u0275fac=function(ue){return new(ue||Le)(u.\u0275\u0275inject(N),u.\u0275\u0275inject(u.NgZone))},Le.\u0275prov=u.\u0275\u0275defineInjectable({token:Le,factory:Le.\u0275fac}),Le})();class fe{constructor(He){this._doc=He}addGlobalEventListener(He,ue,Ve){const lt=(0,i.\u0275getDOM)().getGlobalEventTarget(this._doc,He);if(!lt)throw new Error(`Unsupported event target ${lt} for event ${ue}`);return this.addEventListener(lt,ue,Ve)}}let Q=(()=>{class Le{constructor(){this._stylesSet=new Set}addStyles(ue){const Ve=new Set;ue.forEach(lt=>{this._stylesSet.has(lt)||(this._stylesSet.add(lt),Ve.add(lt))}),this.onStylesAdded(Ve)}onStylesAdded(ue){}getAllStyles(){return Array.from(this._stylesSet)}}return Le.\u0275fac=function(ue){return new(ue||Le)},Le.\u0275prov=u.\u0275\u0275defineInjectable({token:Le,factory:Le.\u0275fac}),Le})(),he=(()=>{class Le extends Q{constructor(ue){super(),this._doc=ue,this._hostNodes=new Map,this._hostNodes.set(ue.head,[])}_addStylesToHost(ue,Ve,lt){ue.forEach(Rt=>{const Pt=this._doc.createElement("style");Pt.textContent=Rt,lt.push(Ve.appendChild(Pt))})}addHost(ue){const Ve=[];this._addStylesToHost(this._stylesSet,ue,Ve),this._hostNodes.set(ue,Ve)}removeHost(ue){const Ve=this._hostNodes.get(ue);Ve&&Ve.forEach(Re),this._hostNodes.delete(ue)}onStylesAdded(ue){this._hostNodes.forEach((Ve,lt)=>{this._addStylesToHost(ue,lt,Ve)})}ngOnDestroy(){this._hostNodes.forEach(ue=>ue.forEach(Re))}}return Le.\u0275fac=function(ue){return new(ue||Le)(u.\u0275\u0275inject(i.DOCUMENT))},Le.\u0275prov=u.\u0275\u0275defineInjectable({token:Le,factory:Le.\u0275fac}),Le})();function Re(Le){(0,i.\u0275getDOM)().remove(Le)}const _e={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/"},be=/%COMP%/g;function st(Le){return"_ngcontent-%COMP%".replace(be,Le)}function $e(Le){return"_nghost-%COMP%".replace(be,Le)}function de(Le,He,ue){for(let Ve=0;Ve<He.length;Ve++){let lt=He[Ve];Array.isArray(lt)?de(Le,lt,ue):(lt=lt.replace(be,Le),ue.push(lt))}return ue}function Pe(Le){return He=>{if("__ngUnwrap__"===He)return Le;!1===Le(He)&&(He.preventDefault(),He.returnValue=!1)}}let ge=(()=>{class Le{constructor(ue,Ve,lt){this.eventManager=ue,this.sharedStylesHost=Ve,this.appId=lt,this.rendererByCompId=new Map,this.defaultRenderer=new ie(ue)}createRenderer(ue,Ve){if(!ue||!Ve)return this.defaultRenderer;switch(Ve.encapsulation){case u.ViewEncapsulation.Emulated:{let lt=this.rendererByCompId.get(Ve.id);return lt||(lt=new Je(this.eventManager,this.sharedStylesHost,Ve,this.appId),this.rendererByCompId.set(Ve.id,lt)),lt.applyToHost(ue),lt}case 1:case u.ViewEncapsulation.ShadowDom:return new ve(this.eventManager,this.sharedStylesHost,ue,Ve);default:if(!this.rendererByCompId.has(Ve.id)){const lt=de(Ve.id,Ve.styles,[]);this.sharedStylesHost.addStyles(lt),this.rendererByCompId.set(Ve.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Le.\u0275fac=function(ue){return new(ue||Le)(u.\u0275\u0275inject(U),u.\u0275\u0275inject(he),u.\u0275\u0275inject(u.APP_ID))},Le.\u0275prov=u.\u0275\u0275defineInjectable({token:Le,factory:Le.\u0275fac}),Le})();class ie{constructor(He){this.eventManager=He,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(He,ue){return ue?document.createElementNS(_e[ue]||ue,He):document.createElement(He)}createComment(He){return document.createComment(He)}createText(He){return document.createTextNode(He)}appendChild(He,ue){He.appendChild(ue)}insertBefore(He,ue,Ve){He&&He.insertBefore(ue,Ve)}removeChild(He,ue){He&&He.removeChild(ue)}selectRootElement(He,ue){let Ve="string"==typeof He?document.querySelector(He):He;if(!Ve)throw new Error(`The selector "${He}" did not match any elements`);return ue||(Ve.textContent=""),Ve}parentNode(He){return He.parentNode}nextSibling(He){return He.nextSibling}setAttribute(He,ue,Ve,lt){if(lt){ue=lt+":"+ue;const Rt=_e[lt];Rt?He.setAttributeNS(Rt,ue,Ve):He.setAttribute(ue,Ve)}else He.setAttribute(ue,Ve)}removeAttribute(He,ue,Ve){if(Ve){const lt=_e[Ve];lt?He.removeAttributeNS(lt,ue):He.removeAttribute(`${Ve}:${ue}`)}else He.removeAttribute(ue)}addClass(He,ue){He.classList.add(ue)}removeClass(He,ue){He.classList.remove(ue)}setStyle(He,ue,Ve,lt){lt&(u.RendererStyleFlags2.DashCase|u.RendererStyleFlags2.Important)?He.style.setProperty(ue,Ve,lt&u.RendererStyleFlags2.Important?"important":""):He.style[ue]=Ve}removeStyle(He,ue,Ve){Ve&u.RendererStyleFlags2.DashCase?He.style.removeProperty(ue):He.style[ue]=""}setProperty(He,ue,Ve){He[ue]=Ve}setValue(He,ue){He.nodeValue=ue}listen(He,ue,Ve){return"string"==typeof He?this.eventManager.addGlobalEventListener(He,ue,Pe(Ve)):this.eventManager.addEventListener(He,ue,Pe(Ve))}}class Je extends ie{constructor(He,ue,Ve,lt){super(He),this.component=Ve;const Rt=de(lt+"-"+Ve.id,Ve.styles,[]);ue.addStyles(Rt),this.contentAttr=st(lt+"-"+Ve.id),this.hostAttr=$e(lt+"-"+Ve.id)}applyToHost(He){super.setAttribute(He,this.hostAttr,"")}createElement(He,ue){const Ve=super.createElement(He,ue);return super.setAttribute(Ve,this.contentAttr,""),Ve}}class ve extends ie{constructor(He,ue,Ve,lt){super(He),this.sharedStylesHost=ue,this.hostEl=Ve,this.shadowRoot=Ve.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Rt=de(lt.id,lt.styles,[]);for(let Pt=0;Pt<Rt.length;Pt++){const tn=document.createElement("style");tn.textContent=Rt[Pt],this.shadowRoot.appendChild(tn)}}nodeOrShadowRoot(He){return He===this.hostEl?this.shadowRoot:He}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(He,ue){return super.appendChild(this.nodeOrShadowRoot(He),ue)}insertBefore(He,ue,Ve){return super.insertBefore(this.nodeOrShadowRoot(He),ue,Ve)}removeChild(He,ue){return super.removeChild(this.nodeOrShadowRoot(He),ue)}parentNode(He){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(He)))}}let ze=(()=>{class Le extends fe{constructor(ue){super(ue)}supports(ue){return!0}addEventListener(ue,Ve,lt){return ue.addEventListener(Ve,lt,!1),()=>this.removeEventListener(ue,Ve,lt)}removeEventListener(ue,Ve,lt){return ue.removeEventListener(Ve,lt)}}return Le.\u0275fac=function(ue){return new(ue||Le)(u.\u0275\u0275inject(i.DOCUMENT))},Le.\u0275prov=u.\u0275\u0275defineInjectable({token:Le,factory:Le.\u0275fac}),Le})();const ct=["alt","control","meta","shift"],Be={"\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"},et={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"},ne={alt:Le=>Le.altKey,control:Le=>Le.ctrlKey,meta:Le=>Le.metaKey,shift:Le=>Le.shiftKey};let pe=(()=>{class Le extends fe{constructor(ue){super(ue)}supports(ue){return null!=Le.parseEventName(ue)}addEventListener(ue,Ve,lt){const Rt=Le.parseEventName(Ve),Pt=Le.eventCallback(Rt.fullKey,lt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.\u0275getDOM)().onAndCancel(ue,Rt.domEventName,Pt))}static parseEventName(ue){const Ve=ue.toLowerCase().split("."),lt=Ve.shift();if(0===Ve.length||"keydown"!==lt&&"keyup"!==lt)return null;const Rt=Le._normalizeKey(Ve.pop());let Pt="";if(ct.forEach(bn=>{const kn=Ve.indexOf(bn);kn>-1&&(Ve.splice(kn,1),Pt+=bn+".")}),Pt+=Rt,0!=Ve.length||0===Rt.length)return null;const tn={};return tn.domEventName=lt,tn.fullKey=Pt,tn}static getEventFullKey(ue){let Ve="",lt=function we(Le){let He=Le.key;if(null==He){if(He=Le.keyIdentifier,null==He)return"Unidentified";He.startsWith("U+")&&(He=String.fromCharCode(parseInt(He.substring(2),16)),3===Le.location&&et.hasOwnProperty(He)&&(He=et[He]))}return Be[He]||He}(ue);return lt=lt.toLowerCase()," "===lt?lt="space":"."===lt&&(lt="dot"),ct.forEach(Rt=>{Rt!=lt&&ne[Rt](ue)&&(Ve+=Rt+".")}),Ve+=lt,Ve}static eventCallback(ue,Ve,lt){return Rt=>{Le.getEventFullKey(Rt)===ue&&lt.runGuarded(()=>Ve(Rt))}}static _normalizeKey(ue){return"esc"===ue?"escape":ue}}return Le.\u0275fac=function(ue){return new(ue||Le)(u.\u0275\u0275inject(i.DOCUMENT))},Le.\u0275prov=u.\u0275\u0275defineInjectable({token:Le,factory:Le.\u0275fac}),Le})();function ke(){c.makeCurrent(),T.init()}const mt=[{provide:u.PLATFORM_ID,useValue:i.\u0275PLATFORM_BROWSER_ID},{provide:u.PLATFORM_INITIALIZER,useValue:ke,multi:!0},{provide:i.DOCUMENT,useFactory:function Ze(){return(0,u.\u0275setDocument)(document),document},deps:[]}],gt=(0,u.createPlatformFactory)(u.platformCore,"browser",mt),St=[{provide:u.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:u.ErrorHandler,useFactory:function Ee(){return new u.ErrorHandler},deps:[]},{provide:N,useClass:ze,multi:!0,deps:[i.DOCUMENT,u.NgZone,u.PLATFORM_ID]},{provide:N,useClass:pe,multi:!0,deps:[i.DOCUMENT]},{provide:ge,useClass:ge,deps:[U,he,u.APP_ID]},{provide:u.RendererFactory2,useExisting:ge},{provide:Q,useExisting:he},{provide:he,useClass:he,deps:[i.DOCUMENT]},{provide:u.Testability,useClass:u.Testability,deps:[u.NgZone]},{provide:U,useClass:U,deps:[N,u.NgZone]},{provide:i.XhrFactory,useClass:v,deps:[]}];let dt=(()=>{class Le{constructor(ue){if(ue)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(ue){return{ngModule:Le,providers:[{provide:u.APP_ID,useValue:ue.appId},{provide:w,useExisting:u.APP_ID},A]}}}return Le.\u0275fac=function(ue){return new(ue||Le)(u.\u0275\u0275inject(Le,12))},Le.\u0275mod=u.\u0275\u0275defineNgModule({type:Le}),Le.\u0275inj=u.\u0275\u0275defineInjector({providers:St,imports:[i.CommonModule,u.ApplicationModule]}),Le})(),V=(()=>{class Le{constructor(ue){this._doc=ue,this._dom=(0,i.\u0275getDOM)()}addTag(ue,Ve=!1){return ue?this._getOrCreateElement(ue,Ve):null}addTags(ue,Ve=!1){return ue?ue.reduce((lt,Rt)=>(Rt&&lt.push(this._getOrCreateElement(Rt,Ve)),lt),[]):[]}getTag(ue){return ue&&this._doc.querySelector(`meta[${ue}]`)||null}getTags(ue){if(!ue)return[];const Ve=this._doc.querySelectorAll(`meta[${ue}]`);return Ve?[].slice.call(Ve):[]}updateTag(ue,Ve){if(!ue)return null;Ve=Ve||this._parseSelector(ue);const lt=this.getTag(Ve);return lt?this._setMetaElementAttributes(ue,lt):this._getOrCreateElement(ue,!0)}removeTag(ue){this.removeTagElement(this.getTag(ue))}removeTagElement(ue){ue&&this._dom.remove(ue)}_getOrCreateElement(ue,Ve=!1){if(!Ve){const Pt=this._parseSelector(ue),tn=this.getTags(Pt).filter(bn=>this._containsAttributes(ue,bn))[0];if(void 0!==tn)return tn}const lt=this._dom.createElement("meta");return this._setMetaElementAttributes(ue,lt),this._doc.getElementsByTagName("head")[0].appendChild(lt),lt}_setMetaElementAttributes(ue,Ve){return Object.keys(ue).forEach(lt=>Ve.setAttribute(this._getMetaKeyMap(lt),ue[lt])),Ve}_parseSelector(ue){const Ve=ue.name?"name":"property";return`${Ve}="${ue[Ve]}"`}_containsAttributes(ue,Ve){return Object.keys(ue).every(lt=>Ve.getAttribute(this._getMetaKeyMap(lt))===ue[lt])}_getMetaKeyMap(ue){return ae[ue]||ue}}return Le.\u0275fac=function(ue){return new(ue||Le)(u.\u0275\u0275inject(i.DOCUMENT))},Le.\u0275prov=u.\u0275\u0275defineInjectable({token:Le,factory:function(ue){let Ve=null;return Ve=ue?new ue:function Ge(){return new V((0,u.\u0275\u0275inject)(i.DOCUMENT))}(),Ve},providedIn:"root"}),Le})();const ae={httpEquiv:"http-equiv"};let le=(()=>{class Le{constructor(ue){this._doc=ue}getTitle(){return this._doc.title}setTitle(ue){this._doc.title=ue||""}}return Le.\u0275fac=function(ue){return new(ue||Le)(u.\u0275\u0275inject(i.DOCUMENT))},Le.\u0275prov=u.\u0275\u0275defineInjectable({token:Le,factory:function(ue){let Ve=null;return Ve=ue?new ue:function Oe(){return new le((0,u.\u0275\u0275inject)(i.DOCUMENT))}(),Ve},providedIn:"root"}),Le})();function Qe(Le,He){"undefined"!=typeof COMPILED&&COMPILED||((u.\u0275global.ng=u.\u0275global.ng||{})[Le]=He)}const nt="undefined"!=typeof window&&window||{};class ht{constructor(He,ue){this.msPerTick=He,this.numTicks=ue}}class pt{constructor(He){this.appRef=He.injector.get(u.ApplicationRef)}timeChangeDetection(He){const ue=He&&He.record,Ve="Change Detection",lt=null!=nt.console.profile;ue&&lt&&nt.console.profile(Ve);const Rt=Ct();let Pt=0;for(;Pt<5||Ct()-Rt<500;)this.appRef.tick(),Pt++;const tn=Ct();ue&&lt&&nt.console.profileEnd(Ve);const bn=(tn-Rt)/Pt;return nt.console.log(`ran ${Pt} change detection cycles`),nt.console.log(`${bn.toFixed(2)} ms per check`),new ht(bn,Pt)}}function Ct(){return nt.performance&&nt.performance.now?nt.performance.now():(new Date).getTime()}const kt="profiler";function Kt(Le){return Qe(kt,new pt(Le)),Le}function xt(){Qe(kt,null)}function pn(Le){const He={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return Le.replace(/[&"'<>]/g,ue=>He[ue])}function Nt(Le){return Le}let Et=(()=>{class Le{constructor(){this.store={},this.onSerializeCallbacks={}}static init(ue){const Ve=new Le;return Ve.store=ue,Ve}get(ue,Ve){return void 0!==this.store[ue]?this.store[ue]:Ve}set(ue,Ve){this.store[ue]=Ve}remove(ue){delete this.store[ue]}hasKey(ue){return this.store.hasOwnProperty(ue)}onSerialize(ue,Ve){this.onSerializeCallbacks[ue]=Ve}toJson(){for(const ue in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(ue))try{this.store[ue]=this.onSerializeCallbacks[ue]()}catch(Ve){console.warn("Exception in onSerialize callback: ",Ve)}return JSON.stringify(this.store)}}return Le.\u0275fac=function(ue){return new(ue||Le)},Le.\u0275prov=u.\u0275\u0275defineInjectable({token:Le,factory:Le.\u0275fac}),Le})();function ln(Le,He){const ue=Le.getElementById(He+"-state");let Ve={};if(ue&&ue.textContent)try{Ve=JSON.parse(function Jt(Le){const He={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return Le.replace(/&[^;]+;/g,ue=>He[ue])}(ue.textContent))}catch(lt){console.warn("Exception while restoring TransferState for app "+He,lt)}return Et.init(Ve)}let Ut=(()=>{class Le{}return Le.\u0275fac=function(ue){return new(ue||Le)},Le.\u0275mod=u.\u0275\u0275defineNgModule({type:Le}),Le.\u0275inj=u.\u0275\u0275defineInjector({providers:[{provide:Et,useFactory:ln,deps:[i.DOCUMENT,u.APP_ID]}]}),Le})();class Xt{static all(){return()=>!0}static css(He){return ue=>null!=ue.nativeElement&&function ce(Le,He){return!!(0,i.\u0275getDOM)().isElementNode(Le)&&(Le.matches&&Le.matches(He)||Le.msMatchesSelector&&Le.msMatchesSelector(He)||Le.webkitMatchesSelector&&Le.webkitMatchesSelector(He))}(ue.nativeElement,He)}static directive(He){return ue=>-1!==ue.providerTokens.indexOf(He)}}const J={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},B=new u.InjectionToken("HammerGestureConfig"),P=new u.InjectionToken("HammerLoader");let re=(()=>{class Le{constructor(){this.events=[],this.overrides={}}buildHammer(ue){const Ve=new Hammer(ue,this.options);Ve.get("pinch").set({enable:!0}),Ve.get("rotate").set({enable:!0});for(const lt in this.overrides)Ve.get(lt).set(this.overrides[lt]);return Ve}}return Le.\u0275fac=function(ue){return new(ue||Le)},Le.\u0275prov=u.\u0275\u0275defineInjectable({token:Le,factory:Le.\u0275fac}),Le})(),b=(()=>{class Le extends fe{constructor(ue,Ve,lt,Rt){super(ue),this._config=Ve,this.console=lt,this.loader=Rt,this._loaderPromise=null}supports(ue){return!(!J.hasOwnProperty(ue.toLowerCase())&&!this.isCustomEvent(ue)||!window.Hammer&&!this.loader)}addEventListener(ue,Ve,lt){const Rt=this.manager.getZone();if(Ve=Ve.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let Pt=!1,tn=()=>{Pt=!0};return this._loaderPromise.then(()=>{window.Hammer?Pt||(tn=this.addEventListener(ue,Ve,lt)):tn=()=>{}}).catch(()=>{tn=()=>{}}),()=>{tn()}}return Rt.runOutsideAngular(()=>{const Pt=this._config.buildHammer(ue),tn=function(bn){Rt.runGuarded(function(){lt(bn)})};return Pt.on(Ve,tn),()=>{Pt.off(Ve,tn),"function"==typeof Pt.destroy&&Pt.destroy()}})}isCustomEvent(ue){return this._config.events.indexOf(ue)>-1}}return Le.\u0275fac=function(ue){return new(ue||Le)(u.\u0275\u0275inject(i.DOCUMENT),u.\u0275\u0275inject(B),u.\u0275\u0275inject(u.\u0275Console),u.\u0275\u0275inject(P,8))},Le.\u0275prov=u.\u0275\u0275defineInjectable({token:Le,factory:Le.\u0275fac}),Le})(),$=(()=>{class Le{}return Le.\u0275fac=function(ue){return new(ue||Le)},Le.\u0275mod=u.\u0275\u0275defineNgModule({type:Le}),Le.\u0275inj=u.\u0275\u0275defineInjector({providers:[{provide:N,useClass:b,multi:!0,deps:[i.DOCUMENT,B,u.\u0275Console,[new u.Optional,P]]},{provide:B,useClass:re,deps:[]}]}),Le})(),Ne=(()=>{class Le{}return Le.\u0275fac=function(ue){return new(ue||Le)},Le.\u0275prov=u.\u0275\u0275defineInjectable({token:Le,factory:function(ue){let Ve=null;return Ve=ue?new(ue||Le):u.\u0275\u0275inject(Bt),Ve},providedIn:"root"}),Le})(),Bt=(()=>{class Le extends Ne{constructor(ue){super(),this._doc=ue}sanitize(ue,Ve){if(null==Ve)return null;switch(ue){case u.SecurityContext.NONE:return Ve;case u.SecurityContext.HTML:return(0,u.\u0275allowSanitizationBypassAndThrow)(Ve,"HTML")?(0,u.\u0275unwrapSafeValue)(Ve):(0,u.\u0275_sanitizeHtml)(this._doc,String(Ve)).toString();case u.SecurityContext.STYLE:return(0,u.\u0275allowSanitizationBypassAndThrow)(Ve,"Style")?(0,u.\u0275unwrapSafeValue)(Ve):Ve;case u.SecurityContext.SCRIPT:if((0,u.\u0275allowSanitizationBypassAndThrow)(Ve,"Script"))return(0,u.\u0275unwrapSafeValue)(Ve);throw new Error("unsafe value used in a script context");case u.SecurityContext.URL:return(0,u.\u0275getSanitizationBypassType)(Ve),(0,u.\u0275allowSanitizationBypassAndThrow)(Ve,"URL")?(0,u.\u0275unwrapSafeValue)(Ve):(0,u.\u0275_sanitizeUrl)(String(Ve));case u.SecurityContext.RESOURCE_URL:if((0,u.\u0275allowSanitizationBypassAndThrow)(Ve,"ResourceURL"))return(0,u.\u0275unwrapSafeValue)(Ve);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${ue} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(ue){return(0,u.\u0275bypassSanitizationTrustHtml)(ue)}bypassSecurityTrustStyle(ue){return(0,u.\u0275bypassSanitizationTrustStyle)(ue)}bypassSecurityTrustScript(ue){return(0,u.\u0275bypassSanitizationTrustScript)(ue)}bypassSecurityTrustUrl(ue){return(0,u.\u0275bypassSanitizationTrustUrl)(ue)}bypassSecurityTrustResourceUrl(ue){return(0,u.\u0275bypassSanitizationTrustResourceUrl)(ue)}}return Le.\u0275fac=function(ue){return new(ue||Le)(u.\u0275\u0275inject(i.DOCUMENT))},Le.\u0275prov=u.\u0275\u0275defineInjectable({token:Le,factory:function(ue){let Ve=null;return Ve=ue?new ue:function it(Le){return new Bt(Le.get(i.DOCUMENT))}(u.\u0275\u0275inject(u.Injector)),Ve},providedIn:"root"}),Le})();const jt=new u.Version("13.2.4")},107:(je,g,l)=>{"use strict";l.r(g),l.d(g,{MONACO_PATH:()=>T,MonacoDiffEditorComponent:()=>fe,MonacoEditorComponent:()=>U,MonacoEditorLoaderDirective:()=>N,MonacoEditorLoaderService:()=>v,MonacoEditorModule:()=>Q});var i=l(5e3),u=l(2722),m=l(9300),c=l(5698),s=l(1135),_=l(6758),D=l(655),C=l(3075);const w=["editor"],h=["diffEditor"],T="MONACO_PATH";let v=(()=>{class he{constructor(_e,be){this.ngZone=_e,this.monacoPathConfig=be,this.isMonacoLoaded$=new s.X(!1),this._monacoPath="assets/monaco-editor/min/vs",window.monacoEditorAlreadyInitialized?_e.run(()=>this.isMonacoLoaded$.next(!0)):(window.monacoEditorAlreadyInitialized=!0,this.monacoPathConfig&&(this.monacoPath=this.monacoPathConfig),this.loadMonaco())}set monacoPath(_e){_e&&(this._monacoPath=_e)}loadMonaco(){const _e=()=>{let Fe=this._monacoPath;window.amdRequire=window.require;const Ye=!!this.nodeRequire,st=Fe.includes("http");Ye&&(window.require=this.nodeRequire,st||(Fe=window.require("path").resolve(window.__dirname,this._monacoPath))),window.amdRequire.config({paths:{vs:Fe}}),window.amdRequire(["vs/editor/editor.main"],()=>{this.ngZone.run(()=>this.isMonacoLoaded$.next(!0))},$e=>console.error("Error loading monaco-editor: ",$e))};if(window.amdRequire)return _e();window.require&&(this.addElectronFixScripts(),this.nodeRequire=window.require);const Ce=document.createElement("script");Ce.type="text/javascript",Ce.src=`${this._monacoPath}/loader.js`,Ce.addEventListener("load",_e),document.body.appendChild(Ce)}addElectronFixScripts(){const _e=document.createElement("script"),be=document.createTextNode("self.module = undefined;"),q=document.createTextNode("self.process.browser = true;");_e.appendChild(be),_e.appendChild(q),document.body.appendChild(_e)}}return he.\u0275fac=function(_e){return new(_e||he)(i.\u0275\u0275inject(i.NgZone),i.\u0275\u0275inject(T,8))},he.\u0275prov=i.\u0275\u0275defineInjectable({token:he,factory:he.\u0275fac,providedIn:"root"}),he})(),N=(()=>{class he{constructor(_e,be,q){this.templateRef=_e,this.viewContainer=be,this.monacoEditorLoaderService=q,this.isMonacoLoaded$=this.monacoEditorLoaderService.isMonacoLoaded$.asObservable(),this.destroyed$=new _.x}ngOnInit(){this.isMonacoLoaded$.pipe((0,u.R)(this.destroyed$)).subscribe(_e=>{if(!_e)return this.viewContainer.clear();this.viewContainer.createEmbeddedView(this.templateRef)})}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}return he.\u0275fac=function(_e){return new(_e||he)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(v))},he.\u0275dir=i.\u0275\u0275defineDirective({type:he,selectors:[["","ngxLoadMonacoEditor",""]]}),he})(),U=(()=>{class he{constructor(_e){this.monacoLoader=_e,this.init=new i.EventEmitter,this.onTouched=()=>{},this.onErrorStatusChange=()=>{},this.propagateChange=()=>{}}get model(){return this.editor&&this.editor.getModel()}get modelMarkers(){return this.model&&monaco.editor.getModelMarkers({resource:this.model.uri})}ngOnInit(){this.monacoLoader.isMonacoLoaded$.pipe((0,m.h)(_e=>_e),(0,c.q)(1)).subscribe(()=>{this.initEditor()})}ngOnChanges(_e){if(this.editor&&_e.options&&!_e.options.firstChange){const be=_e.options.currentValue,{language:q,theme:Ce}=be,Fe=(0,D.__rest)(be,["language","theme"]),{language:Ye,theme:st}=_e.options.previousValue;Ye!==q&&monaco.editor.setModelLanguage(this.editor.getModel(),this.options&&this.options.language?this.options.language:"text"),st!==Ce&&monaco.editor.setTheme(Ce),this.editor.updateOptions(Fe)}if(this.editor&&_e.uri){const be=_e.uri.currentValue,q=_e.uri.previousValue;if(q&&!be||!q&&be||be&&q&&be.path!==q.path){const Ce=this.editor.getValue();let Fe;this.modelUriInstance&&this.modelUriInstance.dispose(),be&&(Fe=monaco.editor.getModels().find(Ye=>Ye.uri.path===be.path)),this.modelUriInstance=Fe||monaco.editor.createModel(Ce,this.options.language||"text",this.uri),this.editor.setModel(this.modelUriInstance)}}}writeValue(_e){this.value=_e,this.editor&&_e?this.editor.setValue(_e):this.editor&&this.editor.setValue("")}registerOnChange(_e){this.propagateChange=_e}registerOnTouched(_e){this.onTouched=_e}validate(){return this.parsedError?{monaco:{value:this.parsedError.split("|")}}:null}registerOnValidatorChange(_e){this.onErrorStatusChange=_e}initEditor(){const _e={value:[this.value].join("\n"),language:"text",automaticLayout:!0,scrollBeyondLastLine:!1,theme:"vc"};this.editor=monaco.editor.create(this.editorContent.nativeElement,this.options?Object.assign(Object.assign({},_e),this.options):_e),this.registerEditorListeners(),this.init.emit(this.editor)}registerEditorListeners(){this.editor.onDidChangeModelContent(()=>{this.propagateChange(this.editor.getValue())}),this.editor.onDidChangeModelDecorations(()=>{const _e=this.modelMarkers.map(({message:q})=>q).join("|");this.parsedError!==_e&&(this.parsedError=_e,this.onErrorStatusChange())}),this.editor.onDidBlurEditorText(()=>{this.onTouched()})}ngOnDestroy(){this.editor&&this.editor.dispose()}}return he.\u0275fac=function(_e){return new(_e||he)(i.\u0275\u0275directiveInject(v))},he.\u0275cmp=i.\u0275\u0275defineComponent({type:he,selectors:[["ngx-monaco-editor"]],viewQuery:function(_e,be){if(1&_e&&i.\u0275\u0275viewQuery(w,7),2&_e){let q;i.\u0275\u0275queryRefresh(q=i.\u0275\u0275loadQuery())&&(be.editorContent=q.first)}},inputs:{options:"options",uri:"uri"},outputs:{init:"init"},features:[i.\u0275\u0275ProvidersFeature([{provide:C.NG_VALUE_ACCESSOR,useExisting:(0,i.forwardRef)(()=>he),multi:!0},{provide:C.NG_VALIDATORS,useExisting:(0,i.forwardRef)(()=>he),multi:!0}]),i.\u0275\u0275NgOnChangesFeature],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["editor",""]],template:function(_e,be){1&_e&&(i.\u0275\u0275elementStart(0,"div",0,1),i.\u0275\u0275element(2,"div",2,3),i.\u0275\u0275elementEnd())},styles:[".monaco-editor[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0}.editor-container[_ngcontent-%COMP%]{overflow:hidden;position:relative;display:table;width:100%;height:100%;min-width:0}"],changeDetection:0}),he})(),fe=(()=>{class he{constructor(_e){this.monacoLoader=_e,this.init=new i.EventEmitter}ngOnInit(){this.container=this.editorContent.nativeElement,this.monacoLoader.isMonacoLoaded$.pipe((0,m.h)(_e=>_e),(0,c.q)(1)).subscribe(()=>{this.initMonaco()})}ngOnChanges(_e){if(this.editor&&(_e.code&&!_e.code.firstChange||_e.modified&&!_e.modified.firstChange)){const be=monaco.editor.createModel(this.modified),q=monaco.editor.createModel(this.original);this.editor.setModel({original:q,modified:be})}this.editor&&_e.options&&!_e.options.firstChange&&(_e.options.previousValue.theme!==_e.options.currentValue.theme&&monaco.editor.setTheme(_e.options.currentValue.theme),this.editor.updateOptions(_e.options.currentValue))}initMonaco(){let _e={readOnly:!0,automaticLayout:!0,theme:"vc"};this.options&&(_e=Object.assign({},_e,this.options)),this.editor=monaco.editor.createDiffEditor(this.container,_e);const be=monaco.editor.createModel(this.original),q=monaco.editor.createModel(this.modified);this.editor.setModel({original:be,modified:q}),this.editor.layout(),this.init.emit(this.editor)}ngOnDestroy(){this.editor&&this.editor.dispose()}}return he.\u0275fac=function(_e){return new(_e||he)(i.\u0275\u0275directiveInject(v))},he.\u0275cmp=i.\u0275\u0275defineComponent({type:he,selectors:[["ngx-monaco-diff-editor"]],viewQuery:function(_e,be){if(1&_e&&i.\u0275\u0275viewQuery(h,7),2&_e){let q;i.\u0275\u0275queryRefresh(q=i.\u0275\u0275loadQuery())&&(be.editorContent=q.first)}},inputs:{original:"original",modified:"modified",options:"options"},outputs:{init:"init"},features:[i.\u0275\u0275NgOnChangesFeature],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["diffEditor",""]],template:function(_e,be){1&_e&&(i.\u0275\u0275elementStart(0,"div",0,1),i.\u0275\u0275element(2,"div",2,3),i.\u0275\u0275elementEnd())},styles:[".monaco-editor[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0}.editor-container[_ngcontent-%COMP%]{overflow:hidden;position:relative;display:table;width:100%;height:100%;min-width:0}"],changeDetection:0}),he})(),Q=(()=>{class he{}return he.\u0275fac=function(_e){return new(_e||he)},he.\u0275mod=i.\u0275\u0275defineNgModule({type:he}),he.\u0275inj=i.\u0275\u0275defineInjector({imports:[[]]}),he})()},1430:(je,g,l)=>{"use strict";l.r(g),l.d(g,{ANGULAR_SPLIT_DEFAULT_OPTIONS:()=>Fe,AngularSplitModule:()=>$e,SplitAreaDirective:()=>st,SplitComponent:()=>Ye});var i=l(5e3),u=l(9808),m=l(6758),c=l(9751),s=l(8372);const _=["gutterEls"];function D(de,Pe){if(1&de){const z=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",2,3),i.\u0275\u0275listener("keydown",function(ie){i.\u0275\u0275restoreView(z);const xe=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().startKeyboardDrag(ie,2*xe+1,xe+1)})("mousedown",function(ie){i.\u0275\u0275restoreView(z);const xe=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().startMouseDrag(ie,2*xe+1,xe+1)})("touchstart",function(ie){i.\u0275\u0275restoreView(z);const xe=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().startMouseDrag(ie,2*xe+1,xe+1)})("mouseup",function(ie){i.\u0275\u0275restoreView(z);const xe=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().clickGutter(ie,xe+1)})("touchend",function(ie){i.\u0275\u0275restoreView(z);const xe=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().clickGutter(ie,xe+1)}),i.\u0275\u0275element(2,"div",4),i.\u0275\u0275elementEnd()}if(2&de){const z=i.\u0275\u0275nextContext(),ge=z.index,ie=z.$implicit,xe=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("flex-basis",xe.gutterSize,"px")("order",2*ge+1),i.\u0275\u0275attribute("aria-label",xe.gutterAriaLabel)("aria-orientation",xe.direction)("aria-valuemin",ie.minSize)("aria-valuemax",ie.maxSize)("aria-valuenow",ie.size)("aria-valuetext",xe.getAriaAreaSizeText(ie.size))}}function C(de,Pe){1&de&&i.\u0275\u0275template(0,D,3,10,"div",1),2&de&&i.\u0275\u0275property("ngIf",!1===Pe.last)}const w=["*"];function h(de){if(void 0!==de.changedTouches&&de.changedTouches.length>0)return{x:de.changedTouches[0].clientX,y:de.changedTouches[0].clientY};if(void 0!==de.clientX&&void 0!==de.clientY)return{x:de.clientX,y:de.clientY};if(void 0!==de.currentTarget){const Pe=de.currentTarget;return{x:Pe.offsetLeft,y:Pe.offsetTop}}return null}function A(de,Pe,z){return Math.abs(de.x-Pe.x)<=z&&Math.abs(de.y-Pe.y)<=z}function v(de,Pe){const z=de.nativeElement.getBoundingClientRect();return"horizontal"===Pe?z.width:z.height}function N(de){return"boolean"==typeof de?de:"false"!==de}function U(de,Pe){return null==de?Pe:(de=Number(de),!isNaN(de)&&de>=0?de:Pe)}function fe(de,Pe){if("percent"===de){const z=Pe.reduce((ge,ie)=>null!==ie?ge+ie:ge,0);return Pe.every(ge=>null!==ge)&&z>99.9&&z<100.1}if("pixel"===de)return 1===Pe.filter(z=>null===z).length}function Q(de){return null===de.size?null:!0===de.component.lockSize?de.size:null===de.component.minSize?null:de.component.minSize>de.size?de.size:de.component.minSize}function he(de){return null===de.size?null:!0===de.component.lockSize?de.size:null===de.component.maxSize?null:de.component.maxSize<de.size?de.size:de.component.maxSize}function Re(de,Pe,z,ge){return Pe.reduce((ie,xe)=>{const me=function _e(de,Pe,z,ge){return 0===z?{areaSnapshot:Pe,pixelAbsorb:0,percentAfterAbsorption:Pe.sizePercentAtStart,pixelRemain:0}:0===Pe.sizePixelAtStart&&z<0?{areaSnapshot:Pe,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:z}:"percent"===de?function be(de,Pe,z){const ie=(de.sizePixelAtStart+Pe)/z*100;if(Pe>0){if(null!==de.area.maxSize&&ie>de.area.maxSize){const xe=de.area.maxSize/100*z;return{areaSnapshot:de,pixelAbsorb:xe,percentAfterAbsorption:de.area.maxSize,pixelRemain:de.sizePixelAtStart+Pe-xe}}return{areaSnapshot:de,pixelAbsorb:Pe,percentAfterAbsorption:ie>100?100:ie,pixelRemain:0}}if(Pe<0){if(null!==de.area.minSize&&ie<de.area.minSize){const xe=de.area.minSize/100*z;return{areaSnapshot:de,pixelAbsorb:xe,percentAfterAbsorption:de.area.minSize,pixelRemain:de.sizePixelAtStart+Pe-xe}}return ie<0?{areaSnapshot:de,pixelAbsorb:-de.sizePixelAtStart,percentAfterAbsorption:0,pixelRemain:Pe+de.sizePixelAtStart}:{areaSnapshot:de,pixelAbsorb:Pe,percentAfterAbsorption:ie,pixelRemain:0}}}(Pe,z,ge):"pixel"===de?function q(de,Pe,z){const ge=de.sizePixelAtStart+Pe;return Pe>0?null!==de.area.maxSize&&ge>de.area.maxSize?{areaSnapshot:de,pixelAbsorb:de.area.maxSize-de.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:ge-de.area.maxSize}:{areaSnapshot:de,pixelAbsorb:Pe,percentAfterAbsorption:-1,pixelRemain:0}:Pe<0?null!==de.area.minSize&&ge<de.area.minSize?{areaSnapshot:de,pixelAbsorb:de.area.minSize+Pe-ge,percentAfterAbsorption:-1,pixelRemain:ge-de.area.minSize}:ge<0?{areaSnapshot:de,pixelAbsorb:-de.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:Pe+de.sizePixelAtStart}:{areaSnapshot:de,pixelAbsorb:Pe,percentAfterAbsorption:-1,pixelRemain:0}:void 0}(Pe,z):void 0}(de,xe,ie.remain,ge);return ie.list.push(me),ie.remain=me.pixelRemain,ie},{remain:z,list:[]})}function Ce(de,Pe){"percent"===de?Pe.areaSnapshot.area.size=Pe.percentAfterAbsorption:"pixel"===de&&null!==Pe.areaSnapshot.area.size&&(Pe.areaSnapshot.area.size=Pe.areaSnapshot.sizePixelAtStart+Pe.pixelAbsorb)}const Fe=new i.InjectionToken("angular-split-global-config");let Ye=(()=>{class de{constructor(z,ge,ie,xe,me){this.ngZone=z,this.elRef=ge,this.cdRef=ie,this.renderer=xe,this.gutterClickDeltaPx=2,this._config={direction:"horizontal",unit:"percent",gutterSize:11,gutterStep:1,restrictMove:!1,useTransition:!1,disabled:!1,dir:"ltr",gutterDblClickDuration:0},this.dragStart=new i.EventEmitter(!1),this.dragEnd=new i.EventEmitter(!1),this.gutterClick=new i.EventEmitter(!1),this.gutterDblClick=new i.EventEmitter(!1),this.dragProgressSubject=new m.x,this.dragProgress$=this.dragProgressSubject.asObservable(),this.isDragging=!1,this.isWaitingClear=!1,this.isWaitingInitialMove=!1,this.dragListeners=[],this.snapshot=null,this.startPoint=null,this.endPoint=null,this.displayedAreas=[],this.hiddenAreas=[],this._clickTimeout=null,this.direction=this._direction,this._config=me?Object.assign(this._config,me):this._config,Object.keys(this._config).forEach(Je=>{this[Je]=this._config[Je]})}set direction(z){this._direction="vertical"===z?"vertical":"horizontal",this.renderer.addClass(this.elRef.nativeElement,`as-${this._direction}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("vertical"===this._direction?"horizontal":"vertical")),this.build(!1,!1)}get direction(){return this._direction}set unit(z){this._unit="pixel"===z?"pixel":"percent",this.renderer.addClass(this.elRef.nativeElement,`as-${this._unit}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("pixel"===this._unit?"percent":"pixel")),this.build(!1,!0)}get unit(){return this._unit}set gutterSize(z){this._gutterSize=U(z,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(z){this._gutterStep=U(z,1)}get gutterStep(){return this._gutterStep}set restrictMove(z){this._restrictMove=N(z)}get restrictMove(){return this._restrictMove}set useTransition(z){this._useTransition=N(z),this._useTransition?this.renderer.addClass(this.elRef.nativeElement,"as-transition"):this.renderer.removeClass(this.elRef.nativeElement,"as-transition")}get useTransition(){return this._useTransition}set disabled(z){this._disabled=N(z),this._disabled?this.renderer.addClass(this.elRef.nativeElement,"as-disabled"):this.renderer.removeClass(this.elRef.nativeElement,"as-disabled")}get disabled(){return this._disabled}set dir(z){this._dir="rtl"===z?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(z){this._gutterDblClickDuration=U(z,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new c.y(z=>this.transitionEndSubscriber=z).pipe((0,s.b)(20))}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>this.renderer.addClass(this.elRef.nativeElement,"as-init"))})}getNbGutters(){return 0===this.displayedAreas.length?0:this.displayedAreas.length-1}addArea(z){const ge={component:z,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===z.visible?(this.displayedAreas.push(ge),this.build(!0,!0)):this.hiddenAreas.push(ge)}removeArea(z){if(this.displayedAreas.some(ge=>ge.component===z)){const ge=this.displayedAreas.find(ie=>ie.component===z);this.displayedAreas.splice(this.displayedAreas.indexOf(ge),1),this.build(!0,!0)}else if(this.hiddenAreas.some(ge=>ge.component===z)){const ge=this.hiddenAreas.find(ie=>ie.component===z);this.hiddenAreas.splice(this.hiddenAreas.indexOf(ge),1)}}updateArea(z,ge,ie){!0===z.visible&&this.build(ge,ie)}showArea(z){const ge=this.hiddenAreas.find(xe=>xe.component===z);if(void 0===ge)return;const ie=this.hiddenAreas.splice(this.hiddenAreas.indexOf(ge),1);this.displayedAreas.push(...ie),this.build(!0,!0)}hideArea(z){const ge=this.displayedAreas.find(xe=>xe.component===z);if(void 0===ge)return;const ie=this.displayedAreas.splice(this.displayedAreas.indexOf(ge),1);ie.forEach(xe=>{xe.order=0,xe.size=0}),this.hiddenAreas.push(...ie),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(z=>null===z.size?"*":z.size)}setVisibleAreaSizes(z){if(z.length!==this.displayedAreas.length)return!1;const ge=z.map(xe=>U(xe,null));return!1!==fe(this.unit,ge)&&(this.displayedAreas.forEach((xe,me)=>xe.component._size=ge[me]),this.build(!1,!0),!0)}build(z,ge){if(this.stopDragging(),!0===z&&(this.displayedAreas.every(ie=>null!==ie.component.order)&&this.displayedAreas.sort((ie,xe)=>ie.component.order-xe.component.order),this.displayedAreas.forEach((ie,xe)=>{ie.order=2*xe,ie.component.setStyleOrder(ie.order)})),!0===ge){const ie=fe(this.unit,this.displayedAreas.map(xe=>xe.component.size));switch(this.unit){case"percent":{const xe=100/this.displayedAreas.length;this.displayedAreas.forEach(me=>{me.size=ie?me.component.size:xe,me.minSize=Q(me),me.maxSize=he(me)});break}case"pixel":if(ie)this.displayedAreas.forEach(xe=>{xe.size=xe.component.size,xe.minSize=Q(xe),xe.maxSize=he(xe)});else{const xe=this.displayedAreas.filter(me=>null===me.component.size);if(0===xe.length&&this.displayedAreas.length>0)this.displayedAreas.forEach((me,Je)=>{me.size=0===Je?null:me.component.size,me.minSize=0===Je?null:Q(me),me.maxSize=0===Je?null:he(me)});else if(xe.length>1){let me=!1;this.displayedAreas.forEach(Je=>{null===Je.component.size?!1===me?(Je.size=null,Je.minSize=null,Je.maxSize=null,me=!0):(Je.size=100,Je.minSize=null,Je.maxSize=null):(Je.size=Je.component.size,Je.minSize=Q(Je),Je.maxSize=he(Je))})}}}}this.refreshStyleSizes(),this.cdRef.markForCheck()}refreshStyleSizes(){if("percent"===this.unit)if(1===this.displayedAreas.length)this.displayedAreas[0].component.setStyleFlex(0,0,"100%",!1,!1);else{const z=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(ge=>{ge.component.setStyleFlex(0,0,`calc( ${ge.size}% - ${ge.size/100*z}px )`,null!==ge.minSize&&ge.minSize===ge.size,null!==ge.maxSize&&ge.maxSize===ge.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach(z=>{null===z.size?z.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?z.component.setStyleFlex(0,0,"100%",!1,!1):z.component.setStyleFlex(0,0,`${z.size}px`,null!==z.minSize&&z.minSize===z.size,null!==z.maxSize&&z.maxSize===z.size)})}clickGutter(z,ge){const ie=h(z);this.startPoint&&A(this.startPoint,ie,this.gutterClickDeltaPx)&&(!this.isDragging||this.isWaitingInitialMove)&&(null!==this._clickTimeout?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",ge),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",ge),this.stopDragging()},this.gutterDblClickDuration))}startKeyboardDrag(z,ge,ie){if(!0===this.disabled||!0===this.isWaitingClear)return;const xe=function T(de,Pe){if("horizontal"===Pe)switch(de.key){case"ArrowLeft":case"ArrowRight":case"PageUp":case"PageDown":break;default:return null}if("vertical"===Pe)switch(de.key){case"ArrowUp":case"ArrowDown":case"PageUp":case"PageDown":break;default:return null}const z=de.currentTarget,ge="PageUp"===de.key||"PageDown"===de.key?500:50;let ie=z.offsetLeft,xe=z.offsetTop;switch(de.key){case"ArrowLeft":ie-=ge;break;case"ArrowRight":ie+=ge;break;case"ArrowUp":xe-=ge;break;case"ArrowDown":xe+=ge;break;case"PageUp":"vertical"===Pe?xe-=ge:ie+=ge;break;case"PageDown":"vertical"===Pe?xe+=ge:ie-=ge;break;default:return null}return{x:ie,y:xe}}(z,this.direction);null!==xe&&(this.endPoint=xe,this.startPoint=h(z),z.preventDefault(),z.stopPropagation(),this.setupForDragEvent(ge,ie),this.startDragging(),this.drag(),this.stopDragging())}startMouseDrag(z,ge,ie){z.preventDefault(),z.stopPropagation(),this.startPoint=h(z),null!==this.startPoint&&!0!==this.disabled&&!0!==this.isWaitingClear&&(this.setupForDragEvent(ge,ie),this.dragListeners.push(this.renderer.listen("document","mouseup",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchend",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchcancel",this.stopDragging.bind(this))),this.ngZone.runOutsideAngular(()=>{this.dragListeners.push(this.renderer.listen("document","mousemove",this.mouseDragEvent.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchmove",this.mouseDragEvent.bind(this)))}),this.startDragging())}setupForDragEvent(z,ge){this.snapshot={gutterNum:ge,lastSteppedOffset:0,allAreasSizePixel:v(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(ie=>{const xe={area:ie,sizePixelAtStart:v(ie.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?ie.size:-1};ie.order<z?!0===this.restrictMove?this.snapshot.areasBeforeGutter=[xe]:this.snapshot.areasBeforeGutter.unshift(xe):ie.order>z&&(!0===this.restrictMove?0===this.snapshot.areasAfterGutter.length&&(this.snapshot.areasAfterGutter=[xe]):this.snapshot.areasAfterGutter.push(xe))}),this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((ie,xe)=>ie+xe.sizePercentAtStart,0)}startDragging(){this.displayedAreas.forEach(z=>z.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0}mouseDragEvent(z){z.preventDefault(),z.stopPropagation();const ge=h(z);null!==this._clickTimeout&&!A(this.startPoint,ge,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1!==this.isDragging&&(this.endPoint=h(z),null!==this.endPoint&&this.drag())}drag(){if(this.isWaitingInitialMove){if(this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y)return;this.ngZone.run(()=>{this.isWaitingInitialMove=!1,this.renderer.addClass(this.elRef.nativeElement,"as-dragging"),this.renderer.addClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.notify("start",this.snapshot.gutterNum)})}let z="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&(z=-z);const ge=Math.round(z/this.gutterStep)*this.gutterStep;if(ge===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=ge;let ie=Re(this.unit,this.snapshot.areasBeforeGutter,-ge,this.snapshot.allAreasSizePixel),xe=Re(this.unit,this.snapshot.areasAfterGutter,ge,this.snapshot.allAreasSizePixel);if(0!==ie.remain&&0!==xe.remain?Math.abs(ie.remain)===Math.abs(xe.remain)||(Math.abs(ie.remain)>Math.abs(xe.remain)?xe=Re(this.unit,this.snapshot.areasAfterGutter,ge+ie.remain,this.snapshot.allAreasSizePixel):ie=Re(this.unit,this.snapshot.areasBeforeGutter,-(ge-xe.remain),this.snapshot.allAreasSizePixel)):0!==ie.remain?xe=Re(this.unit,this.snapshot.areasAfterGutter,ge+ie.remain,this.snapshot.allAreasSizePixel):0!==xe.remain&&(ie=Re(this.unit,this.snapshot.areasBeforeGutter,-(ge-xe.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const me=[...ie.list,...xe.list],Je=me.find(ve=>0!==ve.percentAfterAbsorption&&ve.percentAfterAbsorption!==ve.areaSnapshot.area.minSize&&ve.percentAfterAbsorption!==ve.areaSnapshot.area.maxSize);Je&&(Je.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-me.filter(ve=>ve!==Je).reduce((ve,ze)=>ve+ze.percentAfterAbsorption,0))}ie.list.forEach(me=>Ce(this.unit,me)),xe.list.forEach(me=>Ce(this.unit,me)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(z){if(z&&(z.preventDefault(),z.stopPropagation()),!1!==this.isDragging){for(this.displayedAreas.forEach(ge=>ge.component.unlockEvents());this.dragListeners.length>0;){const ge=this.dragListeners.pop();ge&&ge()}this.isDragging=!1,!1===this.isWaitingInitialMove&&this.notify("end",this.snapshot.gutterNum),this.renderer.removeClass(this.elRef.nativeElement,"as-dragging"),this.renderer.removeClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.snapshot=null,this.isWaitingClear=!0,this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.startPoint=null,this.endPoint=null,this.isWaitingClear=!1})})}}notify(z,ge){const ie=this.getVisibleAreaSizes();"start"===z?this.dragStart.emit({gutterNum:ge,sizes:ie}):"end"===z?this.dragEnd.emit({gutterNum:ge,sizes:ie}):"click"===z?this.gutterClick.emit({gutterNum:ge,sizes:ie}):"dblclick"===z?this.gutterDblClick.emit({gutterNum:ge,sizes:ie}):"transitionEnd"===z?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(ie)):"progress"===z&&this.dragProgressSubject.next({gutterNum:ge,sizes:ie})}ngOnDestroy(){this.stopDragging()}collapseArea(z,ge,ie){const xe=this.displayedAreas.find(ve=>ve.component===z);if(void 0===xe)return;const me="right"===ie?1:-1;xe.sizeBeforeCollapse||(xe.sizeBeforeCollapse=xe.size,xe.gutterBeforeCollapse=me),xe.size=ge;const Je=this.gutterEls.find(ve=>ve.nativeElement.style.order===`${xe.order+me}`);Je&&this.renderer.addClass(Je.nativeElement,"as-split-gutter-collapsed"),this.updateArea(z,!1,!1)}expandArea(z){const ge=this.displayedAreas.find(xe=>xe.component===z);if(void 0===ge||!ge.sizeBeforeCollapse)return;ge.size=ge.sizeBeforeCollapse,ge.sizeBeforeCollapse=null;const ie=this.gutterEls.find(xe=>xe.nativeElement.style.order===`${ge.order+ge.gutterBeforeCollapse}`);ie&&this.renderer.removeClass(ie.nativeElement,"as-split-gutter-collapsed"),this.updateArea(z,!1,!1)}getAriaAreaSizeText(z){return null===z?null:z.toFixed(0)+" "+this.unit}}return de.\u0275fac=function(z){return new(z||de)(i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(Fe,8))},de.\u0275cmp=i.\u0275\u0275defineComponent({type:de,selectors:[["as-split"]],viewQuery:function(z,ge){if(1&z&&i.\u0275\u0275viewQuery(_,5),2&z){let ie;i.\u0275\u0275queryRefresh(ie=i.\u0275\u0275loadQuery())&&(ge.gutterEls=ie)}},inputs:{direction:"direction",unit:"unit",gutterSize:"gutterSize",gutterStep:"gutterStep",restrictMove:"restrictMove",useTransition:"useTransition",disabled:"disabled",dir:"dir",gutterDblClickDuration:"gutterDblClickDuration",gutterClickDeltaPx:"gutterClickDeltaPx",gutterAriaLabel:"gutterAriaLabel"},outputs:{transitionEnd:"transitionEnd",dragStart:"dragStart",dragEnd:"dragEnd",gutterClick:"gutterClick",gutterDblClick:"gutterDblClick"},exportAs:["asSplit"],ngContentSelectors:w,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],["role","slider","tabindex","0","class","as-split-gutter",3,"flex-basis","order","keydown","mousedown","touchstart","mouseup","touchend",4,"ngIf"],["role","slider","tabindex","0",1,"as-split-gutter",3,"keydown","mousedown","touchstart","mouseup","touchend"],["gutterEls",""],[1,"as-split-gutter-icon"]],template:function(z,ge){1&z&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275projection(0),i.\u0275\u0275template(1,C,1,1,"ng-template",0)),2&z&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",ge.displayedAreas))},directives:[u.NgForOf,u.NgIf],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;overflow:hidden;width:100%;height:100%}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{border:none;flex-grow:0;flex-shrink:0;background-color:#eee;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] > .as-split-gutter.as-split-gutter-collapsed[_ngcontent-%COMP%]{flex-basis:1px!important;pointer-events:none}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{width:100%;height:100%;background-position:center center;background-repeat:no-repeat}[_nghost-%COMP%] >.as-split-area{flex-grow:0;flex-shrink:0;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] >.as-split-area.as-hidden{flex:0 1 0px!important;overflow-x:hidden;overflow-y:hidden}.as-horizontal[_nghost-%COMP%]{flex-direction:row}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:row;cursor:col-resize;height:100%}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-horizontal[_nghost-%COMP%] >.as-split-area{height:100%}.as-vertical[_nghost-%COMP%]{flex-direction:column}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:column;cursor:row-resize;width:100%}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}.as-vertical[_nghost-%COMP%] >.as-split-area{width:100%}.as-vertical[_nghost-%COMP%] >.as-split-area.as-hidden{max-width:0}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{cursor:default}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url()}.as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) > .as-split-gutter[_ngcontent-%COMP%], .as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) >.as-split-area{transition:flex-basis .3s}"],changeDetection:0}),de})(),st=(()=>{class de{constructor(z,ge,ie,xe){this.ngZone=z,this.elRef=ge,this.renderer=ie,this.split=xe,this._order=null,this._size=null,this._minSize=null,this._maxSize=null,this._lockSize=!1,this._visible=!0,this.lockListeners=[],this.renderer.addClass(this.elRef.nativeElement,"as-split-area")}set order(z){this._order=U(z,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(z){this._size=U(z,null),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(z){this._minSize=U(z,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(z){this._maxSize=U(z,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(z){this._lockSize=N(z),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(z){this._visible=N(z),this._visible?(this.split.showArea(this),this.renderer.removeClass(this.elRef.nativeElement,"as-hidden")):(this.split.hideArea(this),this.renderer.addClass(this.elRef.nativeElement,"as-hidden"))}get visible(){return this._visible}ngOnInit(){this.split.addArea(this),this.ngZone.runOutsideAngular(()=>{this.transitionListener=this.renderer.listen(this.elRef.nativeElement,"transitionend",z=>{"flex-basis"===z.propertyName&&this.split.notify("transitionEnd",-1)})})}setStyleOrder(z){this.renderer.setStyle(this.elRef.nativeElement,"order",z)}setStyleFlex(z,ge,ie,xe,me){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",z),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",ge),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",ie),!0===xe?this.renderer.addClass(this.elRef.nativeElement,"as-min"):this.renderer.removeClass(this.elRef.nativeElement,"as-min"),!0===me?this.renderer.addClass(this.elRef.nativeElement,"as-max"):this.renderer.removeClass(this.elRef.nativeElement,"as-max")}lockEvents(){this.ngZone.runOutsideAngular(()=>{this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"selectstart",()=>!1)),this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"dragstart",()=>!1))})}unlockEvents(){for(;this.lockListeners.length>0;){const z=this.lockListeners.pop();z&&z()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.split.removeArea(this)}collapse(z=0,ge="right"){this.split.collapseArea(this,z,ge)}expand(){this.split.expandArea(this)}}return de.\u0275fac=function(z){return new(z||de)(i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(Ye))},de.\u0275dir=i.\u0275\u0275defineDirective({type:de,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]}),de})(),$e=(()=>{class de{static forRoot(){return console.warn("AngularSplitModule.forRoot() is deprecated and will be removed in v6"),{ngModule:de,providers:[]}}static forChild(){return console.warn("AngularSplitModule.forChild() is deprecated and will be removed in v6"),{ngModule:de,providers:[]}}}return de.\u0275fac=function(z){return new(z||de)},de.\u0275mod=i.\u0275\u0275defineNgModule({type:de}),de.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.CommonModule]]}),de})()},2290:(je,g,l)=>{"use strict";l.r(g),l.d(g,{BasePortalHost:()=>q,ComponentPortal:()=>be,DefaultGlobalConfig:()=>me,DefaultNoAnimationsGlobalConfig:()=>ct,DefaultNoComponentGlobalConfig:()=>Fe,Overlay:()=>ge,OverlayContainer:()=>z,OverlayRef:()=>Pe,TOAST_CONFIG:()=>Ye,Toast:()=>xe,ToastContainerDirective:()=>Re,ToastContainerModule:()=>_e,ToastInjector:()=>$e,ToastNoAnimation:()=>ze,ToastNoAnimationModule:()=>Dt,ToastPackage:()=>Ce,ToastRef:()=>st,ToastrComponentlessModule:()=>ve,ToastrModule:()=>Je,ToastrService:()=>ie});var i=l(5e3),u=l(1777),m=l(6758),c=l(9808),s=l(2313);const _=["toast-component",""];function D(Be,et){if(1&Be){const ne=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",5),i.\u0275\u0275listener("click",function(){return i.\u0275\u0275restoreView(ne),i.\u0275\u0275nextContext().remove()}),i.\u0275\u0275elementStart(1,"span",6),i.\u0275\u0275text(2,"\xd7"),i.\u0275\u0275elementEnd()()}}function C(Be,et){if(1&Be&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&Be){const ne=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("[",ne.duplicatesCount+1,"]")}}function w(Be,et){if(1&Be&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275text(1),i.\u0275\u0275template(2,C,2,1,"ng-container",4),i.\u0275\u0275elementEnd()),2&Be){const ne=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(ne.options.titleClass),i.\u0275\u0275attribute("aria-label",ne.title),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",ne.title," "),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",ne.duplicatesCount)}}function h(Be,et){if(1&Be&&i.\u0275\u0275element(0,"div",7),2&Be){const ne=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(ne.options.messageClass),i.\u0275\u0275property("innerHTML",ne.message,i.\u0275\u0275sanitizeHtml)}}function A(Be,et){if(1&Be&&(i.\u0275\u0275elementStart(0,"div",8),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&Be){const ne=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(ne.options.messageClass),i.\u0275\u0275attribute("aria-label",ne.message),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",ne.message," ")}}function T(Be,et){if(1&Be&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275element(1,"div",9),i.\u0275\u0275elementEnd()),2&Be){const ne=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275styleProp("width",ne.width+"%")}}function v(Be,et){if(1&Be){const ne=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",5),i.\u0275\u0275listener("click",function(){return i.\u0275\u0275restoreView(ne),i.\u0275\u0275nextContext().remove()}),i.\u0275\u0275elementStart(1,"span",6),i.\u0275\u0275text(2,"\xd7"),i.\u0275\u0275elementEnd()()}}function N(Be,et){if(1&Be&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&Be){const ne=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("[",ne.duplicatesCount+1,"]")}}function U(Be,et){if(1&Be&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275text(1),i.\u0275\u0275template(2,N,2,1,"ng-container",4),i.\u0275\u0275elementEnd()),2&Be){const ne=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(ne.options.titleClass),i.\u0275\u0275attribute("aria-label",ne.title),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",ne.title," "),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",ne.duplicatesCount)}}function fe(Be,et){if(1&Be&&i.\u0275\u0275element(0,"div",7),2&Be){const ne=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(ne.options.messageClass),i.\u0275\u0275property("innerHTML",ne.message,i.\u0275\u0275sanitizeHtml)}}function Q(Be,et){if(1&Be&&(i.\u0275\u0275elementStart(0,"div",8),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&Be){const ne=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(ne.options.messageClass),i.\u0275\u0275attribute("aria-label",ne.message),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",ne.message," ")}}function he(Be,et){if(1&Be&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275element(1,"div",9),i.\u0275\u0275elementEnd()),2&Be){const ne=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275styleProp("width",ne.width+"%")}}let Re=(()=>{class Be{constructor(ne){this.el=ne}getContainerElement(){return this.el.nativeElement}}return Be.\u0275fac=function(ne){return new(ne||Be)(i.\u0275\u0275directiveInject(i.ElementRef))},Be.\u0275dir=i.\u0275\u0275defineDirective({type:Be,selectors:[["","toastContainer",""]],exportAs:["toastContainer"]}),Be})(),_e=(()=>{class Be{}return Be.\u0275fac=function(ne){return new(ne||Be)},Be.\u0275mod=i.\u0275\u0275defineNgModule({type:Be}),Be.\u0275inj=i.\u0275\u0275defineInjector({}),Be})();class be{constructor(et,ne){this.component=et,this.injector=ne}attach(et,ne){return this._attachedHost=et,et.attach(this,ne)}detach(){const et=this._attachedHost;if(et)return this._attachedHost=void 0,et.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(et){this._attachedHost=et}}class q{attach(et,ne){return this._attachedPortal=et,this.attachComponentPortal(et,ne)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(et){this._disposeFn=et}}class Ce{constructor(et,ne,pe,we,ke,Ee){this.toastId=et,this.config=ne,this.message=pe,this.title=we,this.toastType=ke,this.toastRef=Ee,this._onTap=new m.x,this._onAction=new m.x,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(et){this._onAction.next(et)}onAction(){return this._onAction.asObservable()}}const Fe={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",payload:null},Ye=new i.InjectionToken("ToastConfig");class st{constructor(et){this._overlayRef=et,this.duplicatesCount=0,this._afterClosed=new m.x,this._activate=new m.x,this._manualClose=new m.x,this._resetTimeout=new m.x,this._countDuplicate=new m.x}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(et,ne){et&&this._resetTimeout.next(),ne&&this._countDuplicate.next(++this.duplicatesCount)}}class $e{constructor(et,ne){this._toastPackage=et,this._parentInjector=ne}get(et,ne,pe){return et===Ce?this._toastPackage:this._parentInjector.get(et,ne,pe)}}class de extends q{constructor(et,ne,pe){super(),this._hostDomElement=et,this._componentFactoryResolver=ne,this._appRef=pe}attachComponentPortal(et,ne){const pe=this._componentFactoryResolver.resolveComponentFactory(et.component);let we;return we=pe.create(et.injector),this._appRef.attachView(we.hostView),this.setDisposeFn(()=>{this._appRef.detachView(we.hostView),we.destroy()}),ne?this._hostDomElement.insertBefore(this._getComponentRootNode(we),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(we)),we}_getComponentRootNode(et){return et.hostView.rootNodes[0]}}class Pe{constructor(et){this._portalHost=et}attach(et,ne=!0){return this._portalHost.attach(et,ne)}detach(){return this._portalHost.detach()}}let z=(()=>{class Be{constructor(ne){this._document=ne}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ne=this._document.createElement("div");ne.classList.add("overlay-container"),this._document.body.appendChild(ne),this._containerElement=ne}}return Be.\u0275fac=function(ne){return new(ne||Be)(i.\u0275\u0275inject(c.DOCUMENT))},Be.\u0275prov=i.\u0275\u0275defineInjectable({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})(),ge=(()=>{class Be{constructor(ne,pe,we,ke){this._overlayContainer=ne,this._componentFactoryResolver=pe,this._appRef=we,this._document=ke,this._paneElements=new Map}create(ne,pe){return this._createOverlayRef(this.getPaneElement(ne,pe))}getPaneElement(ne="",pe){return this._paneElements.get(pe)||this._paneElements.set(pe,{}),this._paneElements.get(pe)[ne]||(this._paneElements.get(pe)[ne]=this._createPaneElement(ne,pe)),this._paneElements.get(pe)[ne]}_createPaneElement(ne,pe){const we=this._document.createElement("div");return we.id="toast-container",we.classList.add(ne),we.classList.add("toast-container"),pe?pe.getContainerElement().appendChild(we):this._overlayContainer.getContainerElement().appendChild(we),we}_createPortalHost(ne){return new de(ne,this._componentFactoryResolver,this._appRef)}_createOverlayRef(ne){return new Pe(this._createPortalHost(ne))}}return Be.\u0275fac=function(ne){return new(ne||Be)(i.\u0275\u0275inject(z),i.\u0275\u0275inject(i.ComponentFactoryResolver),i.\u0275\u0275inject(i.ApplicationRef),i.\u0275\u0275inject(c.DOCUMENT))},Be.\u0275prov=i.\u0275\u0275defineInjectable({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})(),ie=(()=>{class Be{constructor(ne,pe,we,ke,Ee){this.overlay=pe,this._injector=we,this.sanitizer=ke,this.ngZone=Ee,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},ne.default),ne.config),ne.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},ne.default.iconClasses),ne.config.iconClasses))}show(ne,pe,we={},ke=""){return this._preBuildNotification(ke,ne,pe,this.applyConfig(we))}success(ne,pe,we={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",ne,pe,this.applyConfig(we))}error(ne,pe,we={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",ne,pe,this.applyConfig(we))}info(ne,pe,we={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",ne,pe,this.applyConfig(we))}warning(ne,pe,we={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",ne,pe,this.applyConfig(we))}clear(ne){for(const pe of this.toasts)if(void 0!==ne){if(pe.toastId===ne)return void pe.toastRef.manualClose()}else pe.toastRef.manualClose()}remove(ne){const pe=this._findToast(ne);if(!pe||(pe.activeToast.toastRef.close(),this.toasts.splice(pe.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const we=this.toasts[this.currentlyActive].toastRef;we.isInactive()||(this.currentlyActive=this.currentlyActive+1,we.activate())}return!0}findDuplicate(ne="",pe="",we,ke){const{includeTitleDuplicates:Ee}=this.toastrConfig;for(const Ze of this.toasts){const mt=Ee&&Ze.title===ne;if((!Ee||mt)&&Ze.message===pe)return Ze.toastRef.onDuplicate(we,ke),Ze}return null}applyConfig(ne={}){return Object.assign(Object.assign({},this.toastrConfig),ne)}_findToast(ne){for(let pe=0;pe<this.toasts.length;pe++)if(this.toasts[pe].toastId===ne)return{index:pe,activeToast:this.toasts[pe]};return null}_preBuildNotification(ne,pe,we,ke){return ke.onActivateTick?this.ngZone.run(()=>this._buildNotification(ne,pe,we,ke)):this._buildNotification(ne,pe,we,ke)}_buildNotification(ne,pe,we,ke){if(!ke.toastComponent)throw new Error("toastComponent required");const Ee=this.findDuplicate(we,pe,this.toastrConfig.resetTimeoutOnDuplicate&&ke.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&we||pe)&&this.toastrConfig.preventDuplicates&&null!==Ee)return Ee;this.previousToastMessage=pe;let Ze=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(Ze=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const mt=this.overlay.create(ke.positionClass,this.overlayContainer);this.index=this.index+1;let gt=pe;pe&&ke.enableHtml&&(gt=this.sanitizer.sanitize(i.SecurityContext.HTML,pe));const St=new st(mt),dt=new Ce(this.index,ke,gt,we,ne,St),Ge=new $e(dt,this._injector),V=new be(ke.toastComponent,Ge),ae=mt.attach(V,this.toastrConfig.newestOnTop);St.componentInstance=ae.instance;const Oe={toastId:this.index,title:we||"",message:pe||"",toastRef:St,onShown:St.afterActivate(),onHidden:St.afterClosed(),onTap:dt.onTap(),onAction:dt.onAction(),portal:ae};return Ze||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Oe.toastRef.activate()})),this.toasts.push(Oe),Oe}}return Be.\u0275fac=function(ne){return new(ne||Be)(i.\u0275\u0275inject(Ye),i.\u0275\u0275inject(ge),i.\u0275\u0275inject(i.Injector),i.\u0275\u0275inject(s.DomSanitizer),i.\u0275\u0275inject(i.NgZone))},Be.\u0275prov=i.\u0275\u0275defineInjectable({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})(),xe=(()=>{class Be{constructor(ne,pe,we){this.toastrService=ne,this.toastPackage=pe,this.ngZone=we,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=pe.message,this.title=pe.title,this.options=pe.config,this.originalTimeout=pe.config.timeOut,this.toastClasses=`${pe.toastType} ${pe.config.toastClass}`,this.sub=pe.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=pe.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=pe.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=pe.toastRef.countDuplicate().subscribe(ke=>{this.duplicatesCount=ke})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const ne=(new Date).getTime();this.width=(this.hideTime-ne)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(ne,pe){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(ne),pe)):this.timeout=setTimeout(()=>ne(),pe)}outsideInterval(ne,pe){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(ne),pe)):this.intervalId=setInterval(()=>ne(),pe)}runInsideAngular(ne){this.ngZone?this.ngZone.run(()=>ne()):ne()}}return Be.\u0275fac=function(ne){return new(ne||Be)(i.\u0275\u0275directiveInject(ie),i.\u0275\u0275directiveInject(Ce),i.\u0275\u0275directiveInject(i.NgZone))},Be.\u0275cmp=i.\u0275\u0275defineComponent({type:Be,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(ne,pe){1&ne&&i.\u0275\u0275listener("click",function(){return pe.tapToast()})("mouseenter",function(){return pe.stickAround()})("mouseleave",function(){return pe.delayedHideToast()}),2&ne&&(i.\u0275\u0275syntheticHostProperty("@flyInOut",pe.state),i.\u0275\u0275classMap(pe.toastClasses),i.\u0275\u0275styleProp("display",pe.displayStyle))},attrs:_,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function(ne,pe){1&ne&&(i.\u0275\u0275template(0,D,3,0,"button",0),i.\u0275\u0275template(1,w,3,5,"div",1),i.\u0275\u0275template(2,h,1,3,"div",2),i.\u0275\u0275template(3,A,2,4,"div",3),i.\u0275\u0275template(4,T,2,2,"div",4)),2&ne&&(i.\u0275\u0275property("ngIf",pe.options.closeButton),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",pe.title),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",pe.message&&pe.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",pe.message&&!pe.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",pe.options.progressBar))},directives:[c.NgIf],encapsulation:2,data:{animation:[(0,u.X$)("flyInOut",[(0,u.SB)("inactive",(0,u.oB)({opacity:0})),(0,u.SB)("active",(0,u.oB)({opacity:1})),(0,u.SB)("removed",(0,u.oB)({opacity:0})),(0,u.eR)("inactive => active",(0,u.jt)("{{ easeTime }}ms {{ easing }}")),(0,u.eR)("active => removed",(0,u.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),Be})();const me=Object.assign(Object.assign({},Fe),{toastComponent:xe});let Je=(()=>{class Be{static forRoot(ne={}){return{ngModule:Be,providers:[{provide:Ye,useValue:{default:me,config:ne}}]}}}return Be.\u0275fac=function(ne){return new(ne||Be)},Be.\u0275mod=i.\u0275\u0275defineNgModule({type:Be}),Be.\u0275inj=i.\u0275\u0275defineInjector({imports:[[c.CommonModule]]}),Be})(),ve=(()=>{class Be{static forRoot(ne={}){return{ngModule:Je,providers:[{provide:Ye,useValue:{default:Fe,config:ne}}]}}}return Be.\u0275fac=function(ne){return new(ne||Be)},Be.\u0275mod=i.\u0275\u0275defineNgModule({type:Be}),Be.\u0275inj=i.\u0275\u0275defineInjector({imports:[[c.CommonModule]]}),Be})(),ze=(()=>{class Be{constructor(ne,pe,we){this.toastrService=ne,this.toastPackage=pe,this.appRef=we,this.width=-1,this.toastClasses="",this.state="inactive",this.message=pe.message,this.title=pe.title,this.options=pe.config,this.originalTimeout=pe.config.timeOut,this.toastClasses=`${pe.toastType} ${pe.config.toastClass}`,this.sub=pe.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=pe.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=pe.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=pe.toastRef.countDuplicate().subscribe(ke=>{this.duplicatesCount=ke})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!(!0===this.options.disableTimeOut||"timeOut"===this.options.disableTimeOut)&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const ne=(new Date).getTime();this.width=(this.hideTime-ne)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}}return Be.\u0275fac=function(ne){return new(ne||Be)(i.\u0275\u0275directiveInject(ie),i.\u0275\u0275directiveInject(Ce),i.\u0275\u0275directiveInject(i.ApplicationRef))},Be.\u0275cmp=i.\u0275\u0275defineComponent({type:Be,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(ne,pe){1&ne&&i.\u0275\u0275listener("click",function(){return pe.tapToast()})("mouseenter",function(){return pe.stickAround()})("mouseleave",function(){return pe.delayedHideToast()}),2&ne&&(i.\u0275\u0275classMap(pe.toastClasses),i.\u0275\u0275styleProp("display",pe.displayStyle))},attrs:_,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function(ne,pe){1&ne&&(i.\u0275\u0275template(0,v,3,0,"button",0),i.\u0275\u0275template(1,U,3,5,"div",1),i.\u0275\u0275template(2,fe,1,3,"div",2),i.\u0275\u0275template(3,Q,2,4,"div",3),i.\u0275\u0275template(4,he,2,2,"div",4)),2&ne&&(i.\u0275\u0275property("ngIf",pe.options.closeButton),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",pe.title),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",pe.message&&pe.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",pe.message&&!pe.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",pe.options.progressBar))},directives:[c.NgIf],encapsulation:2}),Be})();const ct=Object.assign(Object.assign({},Fe),{toastComponent:ze});let Dt=(()=>{class Be{static forRoot(ne={}){return{ngModule:Be,providers:[{provide:Ye,useValue:{default:ct,config:ne}}]}}}return Be.\u0275fac=function(ne){return new(ne||Be)},Be.\u0275mod=i.\u0275\u0275defineNgModule({type:Be}),Be.\u0275inj=i.\u0275\u0275defineInjector({imports:[[c.CommonModule]]}),Be})()},4147:je=>{"use strict";je.exports=JSON.parse('{"name":"@sdkgen/playground","version":"0.0.0-dev.20220228140915","description":"","main":"index.js","types":"index.d.ts","repository":{"type":"git","url":"git+https://github.com/sdkgen/sdkgen.git"},"publishConfig":{"access":"public"},"scripts":{"eslint:fix":"eslint --fix \'src/**/*.{t,j}s\'","eslint:check":"eslint \'src/**/*.{t,j}s\'","ng":"ng","start":"ng serve","build":"ng build","build:stats":"ng build --stats-json","analyze":"webpack-bundle-analyzer dist/stats.json","watch":"ng build --watch --configuration development"},"dependencies":{"@sdkgen/browser-runtime":"0.0.0-dev.20220228140915","@sdkgen/csharp-generator":"0.0.0-dev.20220228140915","@sdkgen/dart-generator":"0.0.0-dev.20220228140915","@sdkgen/fsharp-generator":"0.0.0-dev.20220228140915","@sdkgen/kotlin-generator":"0.0.0-dev.20220228140915","@sdkgen/parser":"0.0.0-dev.20220228140915","@sdkgen/swift-generator":"0.0.0-dev.20220228140915","@sdkgen/typescript-generator":"0.0.0-dev.20220228140915"},"devDependencies":{"@angular-devkit/build-angular":"~13.2.0","@angular/animations":"~13.2.0","@angular/cdk":"~13.2.0","@angular/cli":"~13.2.0","@angular/common":"~13.2.0","@angular/compiler":"~13.2.0","@angular/compiler-cli":"~13.2.0","@angular/core":"~13.2.0","@angular/forms":"~13.2.0","@angular/material":"~13.2.0","@angular/platform-browser":"~13.2.0","@angular/platform-browser-dynamic":"~13.2.0","@angular/router":"~13.2.0","@cubos/eslint-config":"^1.0.553260","@materia-ui/ngx-monaco-editor":"^6.0.0","@types/file-saver":"^2.0.3","@types/node":"^16.0.0","angular-split":"^13.0.0","file-saver":"^2.0.5","json":"^11.0.0","monaco-editor":"^0.32.0","ngx-json-viewer":"^3.0.2","ngx-toastr":"^14.2.1","rxjs":"~7.5.2","typescript":"~4.5.4","webpack-bundle-analyzer":"^4.5.0","zone.js":"~0.11.4"}}')}},je=>{je(je.s=4431)}]);