@sdkgen/playground 0.0.0-dev.20220119163933 → 0.0.0-dev.20220124175413

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(Le,g){"use strict";var D,l=this&&this.__extends||(D=function(I,h){return(D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,T){A.__proto__=T}||function(A,T){for(var b in T)Object.prototype.hasOwnProperty.call(T,b)&&(A[b]=T[b])})(I,h)},function(I,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=I}D(I,h),I.prototype=null===h?Object.create(h):(A.prototype=h.prototype,new A)}),i=this&&this.__spreadArray||function(D,I,h){if(h||2===arguments.length)for(var b,A=0,T=I.length;A<T;A++)(b||!(A in I))&&(b||(b=Array.prototype.slice.call(I,0,A)),b[A]=I[A]);return D.concat(b||Array.prototype.slice.call(I))};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(D){function I(h,A,T){var x;try{x=JSON.stringify(T)}catch(V){x=String(T)}return D.call(this,"Invalid type at '".concat(h,"', expected ").concat(A,", got ").concat(x))||this}return l(I,D),I}(Error);function s(D,I,h){if("json"===I)return null==h?null:JSON.parse(JSON.stringify(h));if("bool"===I){if("boolean"!=typeof h)throw new c(D,I,h);return h}if(u.indexOf(I)>=0){if("string"!=typeof h)throw new c(D,I,h);return h}if("hex"===I){if("string"!=typeof h||!/^(?:[A-Fa-f0-9]{2})*$/u.test(h))throw new c(D,I,h);return h.toLowerCase()}if("uuid"===I){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(D,I,h);return h.toLowerCase()}if("base64"===I){var A=!0;try{atob(h)}catch(b){A=!1}if("string"!=typeof h||!A)throw new c(D,I,h);return h}if("int"===I){if("number"!=typeof h||(0|h)!==h)throw new c(D,I,h);return h}if("uint"===I){if("number"!=typeof h||(0|h)!==h||h<0)throw new c(D,I,h);return h}if("float"===I){if("number"!=typeof h)throw new c(D,I,h);return h}if("money"===I){if("number"!=typeof h||!Number.isInteger(h))throw new c(D,I,h);return h}if("url"===I){var T=void 0;if("string"==typeof h)try{T=new URL(h)}catch(b){}if(!T)throw new c(D,I,h);return T.toString()}if("void"===I)return null;throw new Error("Unknown type '".concat(I,"' at '").concat(D,"'"))}g.encode=function _(D,I,h,A){if("string"==typeof h&&!h.endsWith("?")&&"void"!==h&&null==A)throw new Error("Invalid type at '".concat(I,"', cannot be null"));if(Array.isArray(h)){for(var T=0,b=h;T<b.length;T++){var x=b[T];if(x===A)return A;if(Array.isArray(A)&&2===A.length&&x===A[0])return A[0];if(Array.isArray(x)&&2===x.length){if(x[0]===A)return[A,_(D,"".concat(I,".").concat(x[0]),x[1],{})];if(Array.isArray(A)&&2===A.length&&x[0]===A[0])return[A[0],_(D,"".concat(I,".").concat(x[0]),x[1],A[1])]}}throw new c(I,h,A)}if("object"==typeof h){if("object"!=typeof A)throw new c(I,h,A);for(var V={},fe=0,$=Object.keys(h);fe<$.length;fe++){var le=$[fe];V[le]=_(D,"".concat(I,".").concat(le),h[le],A[le])}return V}if(h.endsWith("?"))return null==A?null:_(D,I,h.slice(0,h.length-1),A);if(h.endsWith("[]")){if(!Array.isArray(A))throw new c(I,h,A);return A.map(function(pe,ye){return _(D,"".concat(I,"[").concat(ye,"]"),h.slice(0,h.length-2),pe)})}if(m.indexOf(h)>=0)return s(I,h,A);if("bytes"===h){if(!(A instanceof ArrayBuffer))throw new c(I,h,A);return btoa(String.fromCharCode.apply(String,new Uint8Array(A)))}if("bigint"===h){if("bigint"!=typeof A)throw new c(I,h,A);return A.toString()}if("cpf"===h){if("string"!=typeof A)throw new c(I,h,A);return A}if("cnpj"===h){if("string"!=typeof A)throw new c(I,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(I,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(I,h,A);return("string"==typeof A?new Date(A):A).toISOString().replace("Z","")}var Me=D[h];if(Me)return _(D,I,Me,A);throw new Error("Unknown type '".concat(h,"' at '").concat(I,"'"))},g.decode=function C(D,I,h,A){if("string"==typeof h&&!h.endsWith("?")&&"void"!==h&&null==A)throw new Error("Invalid type at '".concat(I,"', cannot be null"));if(Array.isArray(h)){for(var T=0,b=h;T<b.length;T++){var x=b[T];if(x===A)return A;if(Array.isArray(A)&&2===A.length&&x===A[0])return A[0];if(Array.isArray(x)&&2===x.length){if(x[0]===A)return[A,C(D,"".concat(I,".").concat(x[0]),x[1],{})];if(Array.isArray(A)&&2===A.length&&x[0]===A[0])return[A[0],C(D,"".concat(I,".").concat(x[0]),x[1],A[1])]}}throw new c(I,h,A)}if("object"==typeof h){if("object"!=typeof A)throw new c(I,h,A);for(var V={},fe=0,$=Object.keys(h);fe<$.length;fe++){var le=$[fe];V[le]=C(D,"".concat(I,".").concat(le),h[le],A[le])}return V}if(h.endsWith("?"))return null==A?null:C(D,I,h.slice(0,h.length-1),A);if(h.endsWith("[]")){if(!Array.isArray(A))throw new c(I,h,A);return A.map(function(ke,Xe){return C(D,"".concat(I,"[").concat(Xe,"]"),h.slice(0,h.length-2),ke)})}if(m.indexOf(h)>=0)return s(I,h,A);if("bytes"!==h){if("bigint"===h){if("number"!=typeof A&&("string"!=typeof A||!/^-?[0-9]+$/u.test(A)))throw new c(I,h,A);return BigInt(A)}if("cpf"===h){if("string"!=typeof A)throw new c(I,h,A);return A}if("cnpj"===h){if("string"!=typeof A)throw new c(I,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(I,h,A);var Me=parseInt(A.split("-")[2],10),pe=parseInt(A.split("-")[1],10)-1,ye=parseInt(A.split("-")[0],10),se=new Date(ye,pe,Me);if(se.getFullYear()!==ye||se.getMonth()!==pe||se.getDate()!==Me)throw new c(I,h,A);return se}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(I,h,A);return new Date("".concat(A.endsWith("Z")?A:A.concat("Z")))}var De=D[h];if(De)return C(D,I,De,A);throw new Error("Unknown type '".concat(h,"' at '").concat(I,"'"))}if("string"!=typeof A)throw new c(I,"".concat(h," (base 64)"),A);try{return Uint8Array.from(atob(A),function(ke){return ke.charCodeAt(0)})}catch(ke){throw new c(I,"".concat(h," (base 64)"),A)}}},2837:function(Le,g){"use strict";var m,l=this&&this.__extends||(m=function(c,s){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,C){_.__proto__=C}||function(_,C){for(var D in C)Object.prototype.hasOwnProperty.call(C,D)&&(_[D]=C[D])})(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 C=m.call(this,s)||this;return C.data=_,C}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(Le,g,l){"use strict";var i=this&&this.__awaiter||function(I,h,A,T){return new(A||(A=Promise))(function(x,V){function fe(Me){try{le(T.next(Me))}catch(pe){V(pe)}}function $(Me){try{le(T.throw(Me))}catch(pe){V(pe)}}function le(Me){Me.done?x(Me.value):function b(x){return x instanceof A?x:new A(function(V){V(x)})}(Me.value).then(fe,$)}le((T=T.apply(I,h||[])).next())})},u=this&&this.__generator||function(I,h){var T,b,x,V,A={label:0,sent:function(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return V={next:fe(0),throw:fe(1),return:fe(2)},"function"==typeof Symbol&&(V[Symbol.iterator]=function(){return this}),V;function fe(le){return function(Me){return function $(le){if(T)throw new TypeError("Generator is already executing.");for(;A;)try{if(T=1,b&&(x=2&le[0]?b.return:le[0]?b.throw||((x=b.return)&&x.call(b),0):b.next)&&!(x=x.call(b,le[1])).done)return x;switch(b=0,x&&(le=[2&le[0],x.value]),le[0]){case 0:case 1:x=le;break;case 4:return A.label++,{value:le[1],done:!1};case 5:A.label++,b=le[1],le=[0];continue;case 7:le=A.ops.pop(),A.trys.pop();continue;default:if(!(x=(x=A.trys).length>0&&x[x.length-1])&&(6===le[0]||2===le[0])){A=0;continue}if(3===le[0]&&(!x||le[1]>x[0]&&le[1]<x[3])){A.label=le[1];break}if(6===le[0]&&A.label<x[1]){A.label=x[1],x=le;break}if(x&&A.label<x[2]){A.label=x[2],A.ops.push(le);break}x[2]&&A.ops.pop(),A.trys.pop();continue}le=h.call(I,A)}catch(Me){le=[6,Me],b=0}finally{T=x=0}if(5&le[0])throw le[1];return{value:le[0]?le[1]:void 0,done:!0}}([le,Me])}}};Object.defineProperty(g,"__esModule",{value:!0}),g.SdkgenHttpClient=void 0;var m=l(4602);function c(I){for(var h="",A=0;A<2*I;++A)h+="0123456789abcdef"[Math.floor(16*Math.random())];return h}var s=c(20);function _(){try{var I=localStorage.getItem("deviceId");return I||(I=s,localStorage.setItem("deviceId",I)),I}catch(h){}return s}function C(I,h){return h in I}var D=function(){function I(h,A,T){this.astJson=A,this.errClasses=T,this.extra=new Map,this.successHook=function(){},this.errorHook=function(){},this.baseUrl=h}return I.prototype.makeRequest=function(h,A){var T,b;return i(this,void 0,void 0,function(){var x,V,fe,$,le,Me=this;return u(this,function(pe){switch(pe.label){case 0:if(!(x=this.astJson.functionTable[h]))throw new Error("Unknown function ".concat(h));return V={},this.extra.forEach(function(ye,se){V[se]=ye}),fe={args:(0,m.encode)(this.astJson.typeTable,"".concat(h,".args"),x.args,A),deviceInfo:{id:_(),language:navigator.language,platform:{browserUserAgent:navigator.userAgent},timezone:"object"==typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:null,type:"web",version:null!==(b=null===(T=document.currentScript)||void 0===T?void 0:T.getAttribute("src"))&&void 0!==b?b:""},extra:V,name:h,requestId:c(16),version:3},[4,new Promise(function(ye,se){var De=new XMLHttpRequest;De.open("POST","".concat(Me.baseUrl,"/").concat(h)),De.setRequestHeader("Content-Type","application/sdkgen"),De.onreadystatechange=function(){if(4===De.readyState)try{var ke=JSON.parse(De.responseText);try{C(ke,"error")&&ke.error?(se(ke.error),Me.errorHook(ke.error,h,A)):ye(C(ke,"result")?ke.result:null)}catch(st){var Xe={message:"".concat(st),type:"Fatal"};se(Xe),Me.errorHook(Xe,h,A)}}catch(st){se(Xe={message:"Falha de conex\xe3o com o servidor",type:"Fatal"}),Me.errorHook(Xe,h,A)}},De.send(JSON.stringify(fe))}).catch(function(ye){if(Me.errorHook(ye,h,A),C(ye,"type")&&C(ye,"message")&&"string"==typeof ye.type&&"string"==typeof ye.message){var se=Me.errClasses[ye.type];if(se){var De=Me.astJson.errors.find(function(ke){return Array.isArray(ke)?ke[0]===ye.type:ke===ye.type});if(De)throw Array.isArray(De)&&C(ye,"data")?new se(ye.message,(0,m.decode)(Me.astJson.typeTable,"".concat(se.name,".data"),De[1],ye.data)):new se(ye.message,void 0)}throw new Me.errClasses.Fatal("".concat(ye.type,": ").concat(ye.message))}throw ye})];case 1:return $=pe.sent(),le=(0,m.decode)(this.astJson.typeTable,"".concat(h,".ret"),x.ret,$),this.successHook(le,h,A),[2,le]}})})},I}();g.SdkgenHttpClient=D},4539:function(Le,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:(Le,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 C=_.returnType instanceof i.VoidPrimitiveType?"":`<${(0,u.generateTypeName)(_.returnType)}>`;s+=`\n public virtual Task${C} ${(0,u.capitalize)(_.name)}(${["Context ctx",..._.args.map(D=>`${(0,u.generateTypeName)(D.type)} ${(0,u.ident)(D.name)}`)].join(", ")})\n {\n return Task.FromException${C}(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 C of _.args)s+=`\n JsonElement ${C.name}Json_;\n if (!context_.Args.TryGetValue(${JSON.stringify(C.name)}, out ${C.name}Json_))\n {\n ${C.type instanceof i.OptionalType?`${C.name}Json_ = new JsonElement();`:`throw new FatalException("'${_.name}().args.${C.name}' must be set to a value of type ${C.type.name}.");`}\n }\n ${(0,u.generateTypeName)(C.type)} ${(0,u.ident)(C.name)};\n ${(0,u.decodeType)(C.type,`${C.name}Json_`,`"${_.name}().args.${C.name}"`,(0,u.ident)(C.name)).replace(/\n/gu,"\n ")}`;s+=_.returnType instanceof i.VoidPrimitiveType?`\n await ${(0,u.capitalize)(_.name)}(${["context_",..._.args.map(C=>(0,u.ident)(C.name))].join(", ")});\n resultWriter_.WriteNullValue();`:`\n var result_ = await ${(0,u.capitalize)(_.name)}(${["context_",..._.args.map(C=>(0,u.ident)(C.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:(Le,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 C(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`${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}`)}}function D(T,b,x,V,fe=1,$=!0){switch(T.constructor){case i.IntPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.Number || !${b}.TryGetInt32(out ${V}))\n {\n throw new FatalException($"'{${x}}' must be an integer");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.UIntPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.Number || !${b}.TryGetUInt32(out ${V}))\n {\n throw new FatalException($"'{${x}}' must be an unsigned integer.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.MoneyPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.Number || !${b}.TryGetDecimal(out ${V}) || ${V} % 1 != 0)\n {\n throw new FatalException($"'{${x}}' must be an integer amount of cents.");\n }\n ${V} /= 100;\n `.replace(/\n {16}/gu,"\n").trim();case i.FloatPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.Number || !${b}.TryGetDouble(out ${V}))\n {\n throw new FatalException($"'{${x}}' must be a floating-point number.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.BigIntPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String || !BigInteger.TryParse(${b}.GetString(), out ${V}))\n {\n throw new FatalException($"'{${x}}' must be an arbitrarily large integer in a string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.StringPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${x}}' must be a string.");\n }\n ${V} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.HtmlPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${x}}' must be a valid HTML string.");\n }\n ${V} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.CpfPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${x}}' must be a valid CPF string.");\n }\n ${V} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.CnpjPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${x}}' must be a valid CNPJ string.");\n }\n ${V} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.EmailPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${x}}' must be a valid email.");\n }\n ${V} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.UrlPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${x}}' must be a valid URL string.");\n }\n ${V} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.UuidPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${x}}' must be a valid UUID.");\n }\n ${V} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.HexPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${x}}' must be a valid hex string.");\n }\n ${V} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.Base64PrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${x}}' must be a base64 string.");\n }\n ${V} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.XmlPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${x}}' must be a XML string.");\n }\n ${V} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.BoolPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.True && ${b}.ValueKind != JsonValueKind.False)\n {\n throw new FatalException($"'{${x}}' must be either true or false.");\n }\n ${V} = ${b}.GetBoolean();\n `.replace(/\n {16}/gu,"\n").trim();case i.BytesPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${x}}' must be a string.");\n }\n try\n {\n ${V} = Convert.FromBase64String(${b}.GetString());\n }\n catch (FormatException)\n {\n throw new FatalException($"'{${x}}' must be a base64 string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.TypeReference:return D(T.type,b,x,V,fe);case i.OptionalType:if(c.includes(T.base.constructor)){const le=`${V.replace(/[^0-9a-zA-Z]/gu,"")}Tmp`;return`\n if (${b}.ValueKind == JsonValueKind.Null || ${b}.ValueKind == JsonValueKind.Undefined)\n {\n ${V} = null;\n }\n else\n {\n ${C(T.base)} ${le};\n ${D(T.base,b,x,le,fe,!1).replace(/\n/gu,"\n ")}\n ${V} = ${le};\n }\n `.replace(/\n {20}/gu,"\n").trim()}return`\n if (${b}.ValueKind == JsonValueKind.Null || ${b}.ValueKind == JsonValueKind.Undefined)\n {\n ${V} = null;\n }\n else\n {\n ${D(T.base,b,x,V,fe,!1).replace(/\n/gu,"\n ")}\n }\n `.replace(/\n {20}/gu,"\n").trim();case i.EnumType:case i.StructType:return`${V} = Decode${T.name}(${b}, ${x});`;case i.JsonPrimitiveType:return $?`\n if (${b}.ValueKind == JsonValueKind.Null || ${b}.ValueKind == JsonValueKind.Undefined)\n {\n throw new FatalException($"'{${x}}' can't be null.");\n }\n ${V} = ${b};\n `.replace(/\n {16}/gu,"\n").trim():`${V} = ${b};`;case i.DateTimePrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${b}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${V}) || DateTime.TryParseExact(${b}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF'Z'", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${V})))\n {\n throw new FatalException($"'{${x}}' must be a datetime.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.DatePrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${b}.GetString(), "yyyy-MM-dd", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${V})))\n {\n throw new FatalException($"'{${x}}' must be a date.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.ArrayType:return`\n if (${b}.ValueKind != JsonValueKind.Array)\n {\n throw new FatalException($"'{${x}}' must be a date.");\n }\n ${V} = new ${C(T)}();\n for (var i${fe} = 0; i${fe} < ${b}.GetArrayLength(); ++i${fe})\n {\n ${C(T.base)} element${fe};\n ${D(T.base,`${b}[i${fe}]`,`$"{${x}}[{i${fe}}]"`,`element${fe}`,fe+1).replace(/\n/gu,"\n ")}\n ${V}.Add(element${fe});\n }\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: decodeType with ${T.constructor.name}`)}}function I(T,b,x,V=1){switch(T.constructor){case i.StringPrimitiveType:return`resultWriter_.WriteStringValue(${b});`;case i.FloatPrimitiveType:case i.UIntPrimitiveType:case i.IntPrimitiveType:return`resultWriter_.WriteNumberValue(${b});`;case i.MoneyPrimitiveType:return`resultWriter_.WriteNumberValue(Math.Round(${b} * 100));`;case i.BigIntPrimitiveType:return`resultWriter_.WriteStringValue(${b}.ToString());`;case i.BoolPrimitiveType:return`resultWriter_.WriteBooleanValue(${b});`;case i.BytesPrimitiveType:return`resultWriter_.WriteStringValue(Convert.ToBase64String(${b}));`;case i.DateTimePrimitiveType:return`resultWriter_.WriteStringValue(${b}.ToString("yyyy-MM-ddTHH:mm:ss.FFFFFF'Z'"));`;case i.DatePrimitiveType:return`resultWriter_.WriteStringValue(${b}.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(${b});`;case i.OptionalType:{let fe=T.base;for(;fe instanceof i.TypeReference;)fe=fe.type;return`\n if (${b} == null)\n {\n resultWriter_.WriteNullValue();\n }\n else\n {\n ${I(fe,m.includes(fe.constructor)?b:`${b}.Value`,x,V).replace(/\n/gu,"\n ")}\n }`.replace(/\n {16}/gu,"\n").trim()}case i.TypeReference:return I(T.type,b,x,V);case i.EnumType:case i.StructType:return`Encode${T.name}(${b}, resultWriter_, ${x});`;case i.JsonPrimitiveType:return`${b}.WriteTo(resultWriter_);`;case i.ArrayType:return`\n resultWriter_.WriteStartArray();\n for (var i${V} = 0; i${V} < ${b}.Count; ++i${V})\n {\n ${I(T.base,`${b}[i${V}]`,`$"{${x}}[{i${V}}]"`,V+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=C,g.decodeType=D,g.encodeType=I,g.generateStruct=function h(T){return`\n public class ${T.name}\n {${T.fields.map(b=>`\n public ${C(b.type)} ${_(b.name)};`).join("")}\n public ${T.name}(${T.fields.map(b=>`${C(b.type)} ${s(b.name)}`).join(", ")})\n {${T.fields.map(b=>`\n ${_(b.name)} = ${s(b.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(b=>` JsonElement ${b.name}Json_;\n if (!json_.TryGetProperty(${JSON.stringify(b.name)}, out ${b.name}Json_))\n {\n ${b.type instanceof i.OptionalType?`${b.name}Json_ = new JsonElement();`:`throw new FatalException($"'{path_}.${b.name}' must be set to a value of type ${b.type.name}.");`}\n }\n ${C(b.type)} ${s(b.name)};\n ${D(b.type,`${b.name}Json_`,`$"{path_}.${b.name}"`,s(b.name)).replace(/\n/gu,"\n ")}`).join("\n")}\n return new ${T.name}(${T.fields.map(b=>s(b.name)).join(", ")});\n }\n\n void Encode${T.name}(${T.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {\n resultWriter_.WriteStartObject();\n ${T.fields.map(b=>`resultWriter_.WritePropertyName(${JSON.stringify(b.name)});\n ${I(b.type,`obj_.${_(b.name)}`,`$"{path_}.${b.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:b})=>`\n ${_(b)}`).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:b})=>`\n if (value == "${b}")\n {\n return ${T.name}.${_(b)};\n }`).join("")}\n throw new FatalException($"'{path_}' must be one of: (${T.values.map(({value:b})=>`'${b}'`).join(", ")}).");\n }\n\n void Encode${T.name}(${T.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {${T.values.map(({value:b})=>`\n if (obj_ == ${T.name}.${_(b)})\n {\n resultWriter_.WriteStringValue("${b}");\n }`).join("")}\n }\n`}},7179:function(Le,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:(Le,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';\n\nimport 'package:flutter/widgets.dart';\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, [BuildContext? context]) : super(baseUrl, context, _typeTable, _fnTable, _errTable);\n${c.operations.filter(_=>_.annotations.every(C=>!(C instanceof i.HiddenAnnotation))).map(_=>`\n ${_.returnType instanceof i.VoidPrimitiveType?"Future<void> ":`Future<${(0,u.generateTypeName)(_.returnType)}> `}${_.name}(${0===_.args.length?"":`{${_.args.map(C=>`${C.type instanceof i.OptionalType?"":"required "}${(0,u.generateTypeName)(C.type)} ${(0,u.mangle)(C.name)}`).join(", ")}}`}) async { ${_.returnType instanceof i.VoidPrimitiveType?"":"return "}${(0,u.cast)(`await makeRequest('${_.name}', {${_.args.map(C=>`'${C.name}': ${(0,u.mangle)(C.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 C of _.fields)s+=` '${C.name}': '${C.type.name}',\n`;s+=" },\n",s+=` (Map fields) => ${_.name}(\n`;for(const C of _.fields)s+=` ${(0,u.mangle)(C.name)}: ${(0,u.cast)(`fields['${C.name}']`,C.type)},\n`;s+=" ),\n",s+=` (${_.name} obj) => ({\n`;for(const C of _.fields)s+=` '${C.name}': obj.${(0,u.mangle)(C.name)},\n`;s+=" }),\n",s+=" ),\n"}for(const _ of c.enumTypes)s+=` '${_.name}': EnumTypeDescription(${_.name}, ${_.name}.values, [\n ${_.values.map(C=>`'${C.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 C of _.args)s+=` '${C.name}': '${C.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:(Le,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(b=>b.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 b=c(T.dataType);return`class ${T.name} extends SdkgenErrorWithData<${b}> {\n ${T.name}(String msg, ${b} data) : super(msg, data);\n}\n`},g.cast=function _(T,b){return b instanceof i.OptionalType?`${T} == null ? null : ${_(T,b.base)}`:b instanceof i.ArrayType?`(${T} as List).map((e) => ${_("e",b.base)}).toList()`:b instanceof i.VoidPrimitiveType?T:b instanceof i.FloatPrimitiveType?`(${T} as num).toDouble()`:b instanceof i.MoneyPrimitiveType?`${T} as int`:`${T} as ${c(b)}`},g.generateClass=function A(T){return`class ${T.name} {\n ${T.fields.map(b=>`final ${c(b.type)} ${u(b.name)};`).join("\n ")}\n\n${function C(T){let b=` ${T.name}({\n`;for(const x of T.fields)b+=x.type instanceof i.OptionalType?" ":" required ",b+=`this.${u(x.name)},\n`;return b+=" });\n",b}(T)}\n${function D(T){let b=" bool operator ==(other){\n";return b+=" if (identical(this, other)) return true;\n",b+=` return ${[`other is ${T.name}`,...T.fields.map(x=>`${u(x.name)} == other.${u(x.name)}`)].join(" && ")};\n`,b+=" }\n",b}(T)}\n${function I(T){return` @override\n int get hashCode => hashList([${T.fields.map(b=>u(b.name)).join(", ")}]);\n`}(T)}\n${function h(T){return` String toString() {\n return '${T.name} { ${T.fields.map(b=>`${b.name}: $${u(b.name).startsWith("$")?`{${u(b.name)}}`:u(b.name)}`).join(", ")} }';\n }\n`}(T)}}\n`}},1823:function(Le,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:(Le,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 C=_.returnType instanceof i.VoidPrimitiveType?"":`<${(0,u.generateTypeName)(_.returnType)}>`,D=_.args.length>0?`{| ${_.args.map(I=>`${I.name}: ${(0,u.generateTypeName)(I.type)};`).join("")} |} ->`:"";s+=`\n member val ${(0,u.capitalize)(_.name)}: Context -> ${D} Task${C} =\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 C of _.args)s+=`\n let ${C.name}Json_ =\n match context_.Args.TryGetValue(${JSON.stringify(C.name)}) with\n | true, v -> v\n | _ -> raise (FatalException("'${_.name}().args.${C.name}' must be set to a value of type ${C.type.name}."))\n\n let ${(0,u.ident)(C.name)} =\n ${(0,u.decodeType)(C.type,`${C.name}Json_`,`"${_.name}().args.${C.name}"`,(0,u.ident)(C.name)).replace(/\n/gu,"\n ")}`;s+=_.returnType instanceof i.VoidPrimitiveType?`\n\n do! (__.${(0,u.capitalize)(_.name)} context_ ${_.args.length>0?"{|":""} ${_.args.map(C=>`${C.name} = ${(0,u.ident)(C.name)}`).join("; ")} ${_.args.length>0?"|}":""})\n `:`\n\n let! result_ = (__.${(0,u.capitalize)(_.name)} context_ ${_.args.length>0?"{|":""} ${_.args.map(C=>`${C.name} = ${(0,u.ident)(C.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:(Le,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 C(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`${C(T.base)} option`;case i.ArrayType:return`${C(T.base)} list`;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}`)}}function D(T,b,x,V,fe=1,$=!0){switch(T.constructor){case i.IntPrimitiveType:return`\n decodeInt32 ${b} ${x}\n `.replace(/\n {16}/gu,"\n").trim();case i.UIntPrimitiveType:return`\n decodeUInt32 ${b} ${x}\n `.replace(/\n {16}/gu,"\n").trim();case i.MoneyPrimitiveType:return`\n (decodeMoney ${b} ${x}) / 100m\n `.replace(/\n {16}/gu,"\n").trim();case i.FloatPrimitiveType:return`\n decodeFloat ${b} ${x}\n `.replace(/\n {16}/gu,"\n").trim();case i.BigIntPrimitiveType:return`\n decodeBigInt ${b} ${x}\n `.replace(/\n {16}/gu,"\n").trim();case i.StringPrimitiveType:return`\n decodeString ${b} ${x}\n `.replace(/\n {16}/gu,"\n").trim();case i.HtmlPrimitiveType:return`\n decodeHtml ${b} ${x}\n `.replace(/\n {16}/gu,"\n").trim();case i.CpfPrimitiveType:return`\n decodeCpf ${b} ${x}\n `.replace(/\n {16}/gu,"\n").trim();case i.CnpjPrimitiveType:return`\n decodeCnpj ${b} ${x}\n `.replace(/\n {16}/gu,"\n").trim();case i.EmailPrimitiveType:return`\n decodeEmail ${b} ${x}\n `.replace(/\n {16}/gu,"\n").trim();case i.UrlPrimitiveType:return`\n decodeUrl ${b} ${x}\n `.replace(/\n {16}/gu,"\n").trim();case i.UuidPrimitiveType:return`\n decodeUuid ${b} ${x}\n `.replace(/\n {16}/gu,"\n").trim();case i.HexPrimitiveType:return`\n decodeHex ${b} ${x}\n `.replace(/\n {16}/gu,"\n").trim();case i.Base64PrimitiveType:return`\n decodeBase64 ${b} ${x}\n `.replace(/\n {16}/gu,"\n").trim();case i.XmlPrimitiveType:return`\n decodeXml ${b} ${x}\n `.replace(/\n {16}/gu,"\n").trim();case i.BoolPrimitiveType:return`\n decodeBool ${b} ${x}\n `.replace(/\n {16}/gu,"\n").trim();case i.BytesPrimitiveType:return`\n decodeBytes ${b} ${x}\n `.replace(/\n {16}/gu,"\n").trim();case i.TypeReference:return D(T.type,b,x,V,fe);case i.OptionalType:return c.includes(T.base.constructor)?`match ${b}.ValueKind with\n | JsonValueKind.Null | JsonValueKind.Undefined -> None\n | _ ->\n (${D(T.base,b,x,V,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 ${D(T.base,b,x,V,fe,!1)}\n `.replace(/\n {16}/gu,"\n").trim():`\n decodeOptional ${D(T.base,b,x,V,fe,!1)}\n `.replace(/\n {16}/gu,"\n").trim();case i.EnumType:case i.StructType:return`Decode${T.name} ${b} ${x}`;case i.JsonPrimitiveType:return $?`\n ${b}\n `.replace(/\n {16}/gu,"\n").trim():`${V} <- ${b}`;case i.DateTimePrimitiveType:return`\n decodeDateTime ${b} ${x}\n `.replace(/\n {16}/gu,"\n").trim();case i.DatePrimitiveType:return`\n decodeDate ${b} ${x}\n `.replace(/\n {16}/gu,"\n").trim();case i.ArrayType:return`\n match ${b}.ValueKind with\n | JsonValueKind.Array ->\n let mutable list_ = List.empty\n for i1 in 0 .. (${b}.GetArrayLength() - 1) do\n let item = ${b}.[i1]\n let partialResult =\n ${D(T.base,`${b}.[i1]`,`${x.slice(0,-1)}.{i1}"`,V,fe,!1).replace(/\n/gu,"\n ")}\n list_ <- list_ |> List.append [ partialResult ]\n list_\n | _ -> raise (FatalException(${x.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 I(T,b,x,V=1,fe=!0){switch(T.constructor){case i.StringPrimitiveType:return`resultWriter_.WriteStringValue(${b})`;case i.FloatPrimitiveType:case i.UIntPrimitiveType:case i.IntPrimitiveType:return`resultWriter_.WriteNumberValue(${b})`;case i.MoneyPrimitiveType:return`resultWriter_.WriteNumberValue(int (Math.Round(${b} * 100m)))`;case i.BigIntPrimitiveType:return`resultWriter_.WriteStringValue(${b}.ToString())`;case i.BoolPrimitiveType:return`resultWriter_.WriteBooleanValue(${b})`;case i.BytesPrimitiveType:return`resultWriter_.WriteStringValue(Convert.ToBase64String(${b}))`;case i.DateTimePrimitiveType:return`resultWriter_.WriteStringValue(${b}.ToString("yyyy-MM-ddTHH:mm:ss.FFFFFF'Z'"))`;case i.DatePrimitiveType:return`resultWriter_.WriteStringValue(${b}.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(${b})`;case i.OptionalType:{let $=T.base;for(;$ instanceof i.TypeReference;)$=$.type;return`\n if (${b}.IsNone) then\n resultWriter_.WriteNullValue()\n else\n ${I($,`${b}.Value`,x,V,fe)}\n `.replace(/\n {14}/gu,"\n").trim()}case i.TypeReference:return I(T.type,b,x,V,fe);case i.EnumType:case i.StructType:return`Encode${T.name} ${b} resultWriter_ ${x}`;case i.JsonPrimitiveType:return`${b}.WriteTo(resultWriter_)`;case i.ArrayType:return`\n resultWriter_.WriteStartArray()\n for i${V} in 0..${b}.Length - 1 do\n ${I(T.base,`${b}.[i${V}]`,`${x}`,V+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=C,g.decodeType=D,g.encodeType=I,g.generateStruct=function h(T){return`\ntype ${T.name} = {\n ${T.fields.map(b=>`${_(b.name)}: ${C(b.type)}`).join(";\n ")}\n} with\n static member Create (${T.fields.map(b=>`${s(b.name)}: ${C(b.type)}`).join(", ")}): ${T.name} =\n { ${T.fields.map(b=>`${_(b.name)} = ${s(b.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(b=>`\n let ${b.name}Json_ = decodeJsonElementStrict ${JSON.stringify(b.name)} json_ $"{path_}.${b.name}"\n let ${s(b.name)} =\n ${D(b.type,`${b.name}Json_`,`$"{path_}.${b.name}"`,s(b.name)).replace(/\n/gu,"\n ")}\n `).join("")}\n { ${T.fields.map(b=>`${_(b.name)} = ${s(b.name)}`).join("; ")} }\n\nlet Encode${T.name} (obj_: ${T.name}) (resultWriter_: Utf8JsonWriter) (path_: string) =\n resultWriter_.WriteStartObject()\n ${T.fields.map(b=>`\n resultWriter_.WritePropertyName(${JSON.stringify(b.name)})\n ${I(b.type,`obj_.${_(b.name)}`,`$"{path_}.${b.name}"`).replace(/\n/gu,"\n ")}`).join("\n")}\n resultWriter_.WriteEndObject()`},g.generateEnum=function A(T){return`\ntype ${T.name} =\n ${T.values.map(({value:b})=>`| ${_(b)}`).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:b})=>`| "${b}" -> ${T.name}.${_(b)}`).join("\n ")}\n | _ -> raise (FatalException($"'{path_}' must be one of: (${T.values.map(({value:b})=>`'${b}'`).join(", ")})."))\n\nlet Encode${T.name} (obj_: ${T.name}) (resultWriter_: Utf8JsonWriter) (path_: string) =\n match obj_ with\n ${T.values.map(({value:b})=>`| ${T.name}.${_(b)} -> resultWriter_.WriteStringValue("${b}")`).join("\n ")}\n\n`}},2863:function(Le,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:(Le,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 I of c.enumTypes)_+=` ${(0,u.generateEnum)(I)}`,_+="\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 I of c.structTypes)_+=` ${(0,u.generateClass)(I)}\n`;const C=[],D=new i.ErrorNode("Connection",new i.VoidPrimitiveType);C.push(D.name),_+=` ${(0,u.generateErrorClass)(D)}`;for(const I of c.errors)_+=` ${(0,u.generateErrorClass)(I)}`,C.push(I.name);return C.length>0&&(_+=`\n enum class ErrorType {\n ${C.join(",\n ")};\n\n fun type(): Class<out ApiClient.Error> {\n return when (this) {\n ${C.map(I=>`${I} -> ApiClient.${I}::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(I=>I.annotations.every(h=>!(h instanceof i.HiddenAnnotation))).map(I=>{let h="";const A=[];A.push("timeoutMillis: Long? = null"),s&&A.push(`callback: ((response: Response<${(0,u.generateKotlinTypeName)(I.returnType)}>) -> Unit)? = null`);const T=I.args.map(b=>`${(0,u.mangle)(b.name)}: ${(0,u.generateKotlinTypeName)(b.type)}`).concat(A);return h+=` fun ${(0,u.mangle)(I.name)}(\n ${T.join(",\n ")}\n ): Deferred<Response<out ${(0,u.generateKotlinTypeName)(I.returnType)}>> = sdkgenIOScope.async {\n`,I.args.length>0?(h+=" val bodyArgs = JsonObject().apply {\n",h+=I.args.map(b=>` ${(0,u.generateJsonAddRepresentation)(b.type,b.name)}`).join("\n"),h+="\n }\n"):h+=" val bodyArgs: JsonObject? = null",h+="\n",h+=` val call = makeRequest("${I.name}", bodyArgs, timeoutMillis)\n`,h+=` val response: Response<${(0,u.generateKotlinTypeName)(I.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:(Le,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(I){switch(I.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(I.base)}?`;case i.ArrayType:return`ArrayList<${u(I.base)}>`;case i.StructType:case i.EnumType:return I.name;case i.TypeReference:return u(I.type);default:throw new Error(`BUG: generateKotlinTypeName with ${I.constructor.name}`)}}function m(I){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(I)?`_${I}`:I}function _(I,h){let A="";switch(h&&h!==m(h)&&(A+=` @SerializedName("${h}")\n`),I.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+=_(I.base)}return A}g.generateKotlinTypeName=u,g.mangle=m,g.generateJsonAddRepresentation=function c(I,h){switch(I.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(I.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 ${I.constructor.name}`)}},g.generateEnum=function s(I){let h="@Parcelize \n";return h+=` enum class ${I.name} : Parcelable { ${I.values.map(A=>m(A.value)).join(", ")} }\n`,h},g.getAnnotation=_,g.generateClass=function C(I){let h="@Parcelize\n";return h+=` data class ${I.name}(\n${I.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 D(I){return`class ${I.name}(message: String) : Error(message)\n`}},7402:function(Le,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(Le,g,l){"use strict";var i=this&&this.__rest||function(Re,_e){var Ye={};for(var yt in Re)Object.prototype.hasOwnProperty.call(Re,yt)&&_e.indexOf(yt)<0&&(Ye[yt]=Re[yt]);if(null!=Re&&"function"==typeof Object.getOwnPropertySymbols){var Ct=0;for(yt=Object.getOwnPropertySymbols(Re);Ct<yt.length;Ct++)_e.indexOf(yt[Ct])<0&&Object.prototype.propertyIsEnumerable.call(Re,yt[Ct])&&(Ye[yt[Ct]]=Re[yt[Ct]])}return Ye};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(_e){return this.location=_e.location,this}atLocation(_e){return this.location=_e,this}}g.AstNode=m;class c extends m{toJSON(){const _e=Object.assign({},this);return i(_e,["name"])}}g.Type=c,g.ErrorNode=class s extends m{constructor(_e,Ye){super(),this.name=_e,this.dataType=Ye}};class _ extends m{}g.Annotation=_,g.DescriptionAnnotation=class C extends _{constructor(_e){super(),this.text=_e}},g.ThrowsAnnotation=class D extends _{constructor(_e){super(),this.error=_e}},g.ArgDescriptionAnnotation=class I extends _{constructor(_e,Ye){super(),this.argName=_e,this.text=Ye}},g.RestAnnotation=class h extends _{constructor(_e,Ye,yt,Ct,Ot,dt){super(),this.method=_e,this.path=Ye,this.pathVariables=yt,this.queryVariables=Ct,this.headers=Ot,this.bodyVariable=dt}},g.HiddenAnnotation=class A extends _{};class T extends c{}g.PrimitiveType=T,g.StringPrimitiveType=class b extends T{constructor(){super(...arguments),this.name="string"}},g.IntPrimitiveType=class x extends T{constructor(){super(...arguments),this.name="int"}},g.UIntPrimitiveType=class V extends T{constructor(){super(...arguments),this.name="uint"}},g.FloatPrimitiveType=class fe extends T{constructor(){super(...arguments),this.name="float"}},g.BigIntPrimitiveType=class $ extends T{constructor(){super(...arguments),this.name="bigint"}},g.DatePrimitiveType=class le extends T{constructor(){super(...arguments),this.name="date"}},g.DateTimePrimitiveType=class Me extends T{constructor(){super(...arguments),this.name="datetime"}},g.BoolPrimitiveType=class pe extends T{constructor(){super(...arguments),this.name="bool"}},g.BytesPrimitiveType=class ye extends T{constructor(){super(...arguments),this.name="bytes"}},g.VoidPrimitiveType=class se extends T{constructor(){super(...arguments),this.name="void"}},g.MoneyPrimitiveType=class De extends T{constructor(){super(...arguments),this.name="money"}},g.CpfPrimitiveType=class ke extends T{constructor(){super(...arguments),this.name="cpf"}},g.CnpjPrimitiveType=class Xe extends T{constructor(){super(...arguments),this.name="cnpj"}},g.EmailPrimitiveType=class st extends T{constructor(){super(...arguments),this.name="email"}},g.UrlPrimitiveType=class q extends T{constructor(){super(...arguments),this.name="url"}},g.UuidPrimitiveType=class Pe extends T{constructor(){super(...arguments),this.name="uuid"}},g.HexPrimitiveType=class J extends T{constructor(){super(...arguments),this.name="hex"}},g.HtmlPrimitiveType=class ae extends T{constructor(){super(...arguments),this.name="html"}},g.Base64PrimitiveType=class Ie extends T{constructor(){super(...arguments),this.name="base64"}},g.XmlPrimitiveType=class ie extends T{constructor(){super(...arguments),this.name="xml"}},g.JsonPrimitiveType=class Ke extends T{constructor(){super(...arguments),this.name="json"}},g.OptionalType=class ge extends c{constructor(_e){super(),this.base=_e}get name(){return`${this.base.name}?`}},g.ArrayType=class nt extends c{constructor(_e){super(),this.base=_e}get name(){return`${this.base.name}[]`}},g.EnumValue=class ve extends m{constructor(_e){super(),this.value=_e,this.annotations=[],this.struct=null}},g.EnumType=class $e extends c{constructor(_e){super(),this.values=_e}get hasStructValues(){return this.values.some(_e=>null!==_e.struct)}},g.Field=class ct extends m{constructor(_e,Ye,yt=!1){super(),this.name=_e,this.type=Ye,this.secret=yt,this.annotations=[]}},g.Spread=class Tt extends m{constructor(_e){super(),this.typeReference=_e}},g.TypeReference=class Fe extends c{constructor(_e){super(),this.name=_e}},g.StructType=class Je extends c{constructor(_e){super(),this.fieldsAndSpreads=_e,this.fields=[]}},g.TypeDefinition=class Y extends m{constructor(_e,Ye){super(),this.name=_e,this.type=Ye,this.annotations=[]}},g.FunctionOperation=class me extends m{constructor(_e,Ye,yt){super(),this.name=_e,this.fieldsAndSpreads=Ye,this.returnType=yt,this.annotations=[],this.args=[]}},g.AstRoot=class we{constructor(_e=[],Ye=[],yt=[]){this.typeDefinitions=_e,this.operations=Ye,this.errors=yt,this.structTypes=[],this.enumTypes=[],this.warnings=[]}}},9747:(Le,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.compatibilityIssues=void 0;const i=l(1942);function u(s,_,C,D){var I,h;if(C instanceof i.TypeReference)u(s,_,C.type,D);else if(D instanceof i.TypeReference)u(s,_,C,D.type);else if(C instanceof i.OptionalType||!(D instanceof i.OptionalType))if(C instanceof i.OptionalType&&D instanceof i.OptionalType)u(s,_,C.base,D.base);else{if(C instanceof i.OptionalType&&!(D 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,_,C.base,D);if(C instanceof i.ArrayType&&D instanceof i.ArrayType)u(s,_,C.base,D.base);else if(C instanceof i.StructType&&D instanceof i.StructType)for(const A of D.fields){const T=C.fields.find(b=>b.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(!(C instanceof i.UIntPrimitiveType&&D instanceof i.IntPrimitiveType||C instanceof i.IntPrimitiveType&&D instanceof i.FloatPrimitiveType||C instanceof i.MoneyPrimitiveType&&D instanceof i.IntPrimitiveType||C instanceof i.MoneyPrimitiveType&&D instanceof i.UIntPrimitiveType||C instanceof i.UIntPrimitiveType&&D instanceof i.BigIntPrimitiveType||C instanceof i.IntPrimitiveType&&D instanceof i.BigIntPrimitiveType||C instanceof i.MoneyPrimitiveType&&D instanceof i.BigIntPrimitiveType||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.StringPrimitiveType||C instanceof i.BytesPrimitiveType&&D instanceof i.Base64PrimitiveType||C instanceof i.UrlPrimitiveType&&D instanceof i.StringPrimitiveType||C instanceof i.EmailPrimitiveType&&D instanceof i.StringPrimitiveType||C instanceof i.EnumType&&D instanceof i.StringPrimitiveType)){if(C instanceof i.EnumType&&D instanceof i.EnumType){for(const A of C.values){const T=D.values.find(b=>b.value===A.value);T?u(`${s}.${A.value}`,_,null!==(I=A.struct)&&void 0!==I?I: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}C.constructor.name!==D.constructor.name&&_.push(`${s} was ${C.name} and now it is ${D.name}. They are not compatible.`)}}else u(s,_,C,D.base)}function m(s,_,C,D){var I,h;if(C instanceof i.TypeReference)m(s,_,C.type,D);else if(D instanceof i.TypeReference)m(s,_,C,D.type);else if(!(C instanceof i.OptionalType)||D instanceof i.OptionalType)if(C instanceof i.OptionalType&&D instanceof i.OptionalType)m(s,_,C.base,D.base);else{if(!(C instanceof i.OptionalType)&&D 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,_,C,D.base);if(C instanceof i.ArrayType&&D instanceof i.ArrayType)m(s,_,C.base,D.base);else if(C instanceof i.StructType&&D instanceof i.StructType)for(const A of C.fields){const T=D.fields.find(b=>b.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(!(C instanceof i.IntPrimitiveType&&D instanceof i.UIntPrimitiveType||C instanceof i.FloatPrimitiveType&&D instanceof i.IntPrimitiveType||C instanceof i.IntPrimitiveType&&D instanceof i.MoneyPrimitiveType||C instanceof i.UIntPrimitiveType&&D instanceof i.MoneyPrimitiveType||C instanceof i.BigIntPrimitiveType&&D instanceof i.UIntPrimitiveType||C instanceof i.BigIntPrimitiveType&&D instanceof i.IntPrimitiveType||C instanceof i.BigIntPrimitiveType&&D instanceof i.MoneyPrimitiveType||C instanceof i.StringPrimitiveType&&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.Base64PrimitiveType&&D instanceof i.BytesPrimitiveType||C instanceof i.StringPrimitiveType&&D instanceof i.UrlPrimitiveType||C instanceof i.StringPrimitiveType&&D instanceof i.EmailPrimitiveType||C instanceof i.StringPrimitiveType&&D instanceof i.EnumType)){if(C instanceof i.EnumType&&D instanceof i.EnumType){for(const A of D.values){const T=C.values.find(b=>b.value===A.value);T?m(`${s}.${A.value}`,_,null!==(I=T.struct)&&void 0!==I?I: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}C.constructor.name!==D.constructor.name&&_.push(`${s} was ${C.name} and now it is ${D.name}. They are not compatible.`)}}else m(s,_,C.base,D)}g.compatibilityIssues=function c(s,_){const C=[];for(const D of s.operations){const I=_.operations.find(h=>h.name===D.name);if(I){m(`${D.name}.ret`,C,D.returnType,I.returnType);for(const h of I.args){const A=D.args.find(T=>T.name===h.name);if(A)u(`${D.name}.args.${A.name}`,C,A.type,h.type);else{if(h.type instanceof i.OptionalType)continue;C.push(`${D.name}.args.${h.name} didn't exist before and isn't optional. Make it optional.`)}}}else C.push(`function ${D.name} used to exist, but it's now missing. Add it back.`)}for(const D of s.errors){const I=_.errors.find(h=>h.name===D.name);!I||m(`${D.name}.data`,C,D.dataType,I.dataType)}return C}},6676:function(Le,g,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(c,s,_,C){void 0===C&&(C=_),Object.defineProperty(c,C,{enumerable:!0,get:function(){return s[_]}})}:function(c,s,_,C){void 0===C&&(C=_),c[C]=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:(Le,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(D){if(D instanceof i.DescriptionAnnotation)return{type:"description",value:D.text};if(D instanceof i.ThrowsAnnotation)return{type:"throws",value:D.error};if(D instanceof i.RestAnnotation)return{type:"rest",value:{bodyVariable:D.bodyVariable,headers:[...D.headers.entries()].sort(([I],[h])=>I.localeCompare(h)),method:D.method,path:D.path,pathVariables:[...D.pathVariables].sort((I,h)=>I.localeCompare(h)),queryVariables:[...D.queryVariables].sort((I,h)=>I.localeCompare(h))}};if(D instanceof i.HiddenAnnotation)return{type:"hidden",value:null};throw new Error(`BUG: annotationToJson with ${D.constructor.name}`)}function s(D){switch(D.type){case"description":return new i.DescriptionAnnotation(D.value);case"throws":return new i.ThrowsAnnotation(D.value);case"rest":{const{method:I,path:h,pathVariables:A,queryVariables:T,headers:b,bodyVariable:x}=D.value;return new i.RestAnnotation(I,h,A,T,new Map(b),x)}case"hidden":return new i.HiddenAnnotation;default:throw new Error(`BUG: annotationFromJson with ${D.type}`)}}g.astToJson=function _(D){var I,h,A;const T={},b={};function x($){return $ instanceof i.ArrayType?`${x($.base)}[]`:$ instanceof i.OptionalType?`${x($.base)}?`:$.name}for(const{name:$,fields:le}of D.structTypes){b[$]={};const Me=b[$];for(const pe of le){Me[pe.name]=x(pe.type);for(const ye of pe.annotations)if(ye instanceof i.DescriptionAnnotation){const se=`type.${$}.${pe.name}`;null!==(I=T[se])&&void 0!==I||(T[se]=[]),T[se].push(c(ye))}}}for(const{name:$,values:le}of D.enumTypes)b[$]=le.map(Me=>Me.struct?[Me.value,Me.struct.name]:Me.value);for(const{name:$,type:le}of D.typeDefinitions)le instanceof i.StructType||le instanceof i.EnumType||(b[$]=x(le));const V={};for(const $ of D.operations){const le={};for(const Me of $.args){le[Me.name]=x(Me.type);for(const pe of Me.annotations)if(pe instanceof i.DescriptionAnnotation){const ye=`fn.${$.name}.${Me.name}`;null!==(h=T[ye])&&void 0!==h||(T[ye]=[]),T[ye].push(c(pe))}}V[$.name]={args:le,ret:x($.returnType)};for(const Me of $.annotations){const pe=`fn.${$.name}`;null!==(A=T[pe])&&void 0!==A||(T[pe]=[]),T[pe].push(c(Me))}}return{annotations:T,errors:D.errors.map($=>$.dataType instanceof i.VoidPrimitiveType?$.name:[$.name,$.dataType.name]),functionTable:V,typeTable:b}},g.jsonToAst=function C(D){var I,h;const A=[],T=[],b=[];function x($,le){var Me;if("string"==typeof $){const ye=m.primitiveToAstClass.get($);return ye?new ye:$.endsWith("?")?new i.OptionalType(x($.slice(0,$.length-1))):$.endsWith("[]")?new i.ArrayType(x($.slice(0,$.length-2))):new i.TypeReference($)}if(Array.isArray($))return new i.EnumType($.map(ye=>{if(Array.isArray(ye)){const[se,De]=ye,ke=new i.EnumValue(se);return b.push([ke,De]),ke}return new i.EnumValue(ye)}));const pe=[];for(const ye of Object.keys($)){const se=new i.Field(ye,x($[ye]));if(le){const De=`type.${le}.${ye}`;for(const ke of null!==(Me=D.annotations[De])&&void 0!==Me?Me:[])se.annotations.push(s(ke))}pe.push(se)}return new i.StructType(pe)}for(const[$,le]of Object.entries(D.typeTable)){const Me=x(le,$);T.push(new i.TypeDefinition($,Me))}for(const[$,le]of Object.entries(D.functionTable)){const Me=Object.keys(le.args).map(se=>{var De;const ke=new i.Field(se,x(le.args[se])),Xe=`fn.${$}.${se}`;for(const st of null!==(De=D.annotations[Xe])&&void 0!==De?De:[])ke.annotations.push(s(st));return ke}),pe=new i.FunctionOperation($,Me,x(le.ret)),ye=`fn.${$}`;for(const se of null!==(I=D.annotations[ye])&&void 0!==I?I:[])pe.annotations.push(s(se));A.push(pe)}for(const[$,le]of b){const Me=null===(h=T.find(pe=>pe.name===le))||void 0===h?void 0:h.type;Me instanceof i.StructType&&($.struct=Me)}const V=D.errors.map($=>Array.isArray($)?new i.ErrorNode($[0],x($[1])):new i.ErrorNode($,new i.VoidPrimitiveType)),fe=new i.AstRoot(T,A,V);return(0,u.analyse)(fe),fe}},8053:(Le,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 _="\\",C=this.startPos+1;for(;"\\"===_[_.length-1];){for(_=_.slice(0,_.length-1).trim();!["\0","\n"].includes(this.nextChar()););_=`${_} ${this.source.substring(C,this.pos).trim()}`.trim(),C=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:(Le,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 C extends Error{}g.ParserError=C,g.Parser=class D{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 C(`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 C(`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 C(`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 C(`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 x=this.expect(s.StringLiteralToken),V=x.location.filename.replace(/[^/\\]+$/u,`${x.value}.sdkgen`);this.lexers.push(new u.Lexer(this.readFileSync(V).toString(),V)),this.nextToken()},TypeKeywordToken:()=>{A.push(this.parseTypeDefinition())}});const b=new i.AstRoot(A,h,T);return b.warnings=this.warnings,(0,c.analyse)(b),b}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 C(`${T instanceof Error?T.message:T} at ${this.token.location}`)}break;case"hidden":if(""!==A)throw new C("@hidden annotation doesn't take any argument");this.annotations.push((new i.HiddenAnnotation).at(this.token));break;default:throw new C(`Unknown annotation '${h[0]}' at ${this.token.location}`)}this.nextToken()}}checkCannotHaveAnnotationsHere(){if(this.annotations.length>0)throw new C(`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 C(`The custom type name must start with an uppercase letter, but found ${JSON.stringify(T)} at ${A.location}`);this.nextToken();const{annotations:b}=this;this.annotations=[];const x=this.parseType(),V=new i.TypeDefinition(T,x).at(h);return V.annotations=b,V}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 C(`Error name must start with an uppercase letter, but found ${JSON.stringify(T)} at ${A.location}`);this.nextToken();let b=new i.VoidPrimitiveType;return(this.token instanceof s.CurlyOpenSymbolToken||this.token instanceof s.EnumKeywordToken||this.token instanceof s.IdentifierToken||this.token instanceof s.PrimitiveTypeToken)&&(b=this.parseType()),new i.ErrorNode(T,b).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,b=[];let V,x=!1;for(;!x;)this.acceptAnnotations(),this.multiExpect({ParensCloseSymbolToken:le=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),x=!0,V=le},IdentifierToken:()=>{const le=this.parseField();if(T.has(le.name))throw new C(`Cannot redeclare argument '${le.name}'`);T.add(le.name),b.push(le),this.multiExpect({ParensCloseSymbolToken:Me=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),x=!0,V=Me},CommaSymbolToken:()=>this.nextToken()})},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const le=this.expect(s.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(le.value[0]))throw new C(`Expected a type but found ${JSON.stringify(le.value)} at ${le.location}`);b.push(new i.Spread(new i.TypeReference(le.value).at(le)).at(le)),this.multiExpect({ParensCloseSymbolToken:Me=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),x=!0,V=Me},CommaSymbolToken:()=>this.nextToken()})}});for(const le of h)if(le instanceof i.ArgDescriptionAnnotation){const Me=b.find(pe=>pe instanceof i.Field&&pe.name===le.argName);if(!Me)throw new C(`Argument '${le.argName}' not found, at ${le.location}`);Me.annotations.push(new i.DescriptionAnnotation(le.text).atLocation(le.location))}h=h.filter(le=>!(le instanceof i.ArgDescriptionAnnotation));let fe=(new i.VoidPrimitiveType).at(V);this.token instanceof s.ColonSymbolToken&&(this.nextToken(),fe=this.parseType());const $=new i.FunctionOperation(A,b,fe);return $.annotations=h,$}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:b=>{const x=new i.EnumValue(b.value).at(b);if(x.annotations=this.annotations,this.annotations=[],A.values.push(x),this.nextToken(),!(this.token instanceof s.ParensOpenSymbolToken))return;this.nextToken();const V=new Set,fe=[];for(;this.token&&this.token.maybeAsIdentifier()instanceof s.IdentifierToken;){const $=this.parseField();if("tag"===$.name&&($.name="_tag"),V.has($.name))throw new C(`Cannot redeclare argument '${$.name}'`);if(V.add($.name),fe.push($),!(this.token instanceof s.CommaSymbolToken))break;this.nextToken()}x.struct=new i.StructType(fe).atLocation(x.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(),b=new i.Field(h.value,T).at(h);for(b.annotations=A;this.token instanceof s.ExclamationMarkSymbolToken;){if("secret"!==(this.nextToken(),this.expect(s.IdentifierToken).value))throw new C(`Unknown field mark !${this.token.value} at ${this.token.location}`);b.secret=!0,this.nextToken()}return b}parseStruct(){const h=this.expect(s.CurlyOpenSymbolToken);this.nextToken();const A=[],T=new Set;let b=!1;for(;!b;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),b=!0},IdentifierToken:()=>{const x=this.parseField();if(T.has(x.name))throw new C(`Cannot redeclare field '${x.name}'`);T.add(x.name),A.push(x)},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const x=this.expect(s.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(x.value[0]))throw new C(`Expected a type but found ${JSON.stringify(x.value)} at ${x.location}`);A.push(new i.Spread(new i.TypeReference(x.value).at(x)).at(x))}});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 C(`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 C(`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:(Le,g,l)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.parseRestAnnotation=void 0;const i=l(1942);function c(_){var C;const D=/\{(?<name>\w+)\}/gu,I=[];let h;for(;null!==(h=D.exec(_));)(null===(C=h.groups)||void 0===C?void 0:C.name)&&I.push(h.groups.name);return I}g.parseRestAnnotation=function s(_){const C=_.split(" "),D=C[0].toUpperCase();if(!["GET","POST","PUT","DELETE","PATCH"].includes(D))throw new Error(`Unsupported method '${D}'`);let I=C[1];if(!I.startsWith("/"))throw new Error("Invalid path");let h=[];if(I.includes("?")){const[V,...fe]=I.split("?");I=V;const $=fe.join("?");if(!/^\{\w+\}(?:&\{\w+\})*$/u.test($))throw new Error("Invalid querystring on path");h=c($)}const A=c(I),T=C.slice(2).join(" "),b=function u(_){var C;const D=/\[header (?<header>[^()<>@,;:\\"/[\]?={}\s\t]+): \{(?<name>\w+)\}\]/gu,I=new Map;let h;for(;null!==(h=D.exec(_));)(null===(C=h.groups)||void 0===C?void 0:C.header)&&h.groups.name&&I.set(h.groups.header.toLowerCase(),h.groups.name);return I}(T),x=function m(_){var C;const D=/\[body \{(?<name>\w+)\}\]/u.exec(_);return(null===(C=null==D?void 0:D.groups)||void 0===C?void 0:C.name)?D.groups.name:null}(T);return new i.RestAnnotation(D,I,A,h,b,x)}},7629:(Le,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:(Le,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(C=>C[0].toUpperCase()+C.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:(Le,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(C=>C.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:(Le,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.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:(Le,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 C=new Map;for(const D of _){let I;if(D instanceof i.Field)I=[D];else{const h=D.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 '${D.typeReference.name}' at ${D.location}.`);this.visit(h),I=h.fields}for(const h of I){const A=C.get(h.name);A?s[A]=h:(C.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:(Le,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:(Le,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(C=>this.isRecursiveType(s,C.type)):_ instanceof i.EnumType&&_.values.some(C=>C.struct&&this.isRecursiveType(s,C.struct))}isInfinitelyRecursiveType(s,_){return _ instanceof i.TypeReference?_.name===s.name:_ instanceof i.StructType?_.fields.some(C=>this.isInfinitelyRecursiveType(s,C.type)):_ instanceof i.EnumType&&_.values.every(C=>C.struct&&this.isInfinitelyRecursiveType(s,C.struct))}}},2060:(Le,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:(Le,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(C){if(C instanceof i.EnumValue){for(const D of C.annotations)if(!(D instanceof i.DescriptionAnnotation))throw new u.SemanticError(`Cannot have @${D.constructor.name.replace("Annotation","").toLowerCase()} at ${D.location}`)}else if(C instanceof i.TypeDefinition){for(const D of C.annotations)if(!(D instanceof i.DescriptionAnnotation))throw new u.SemanticError(`Cannot have @${D.constructor.name.replace("Annotation","").toLowerCase()} at ${D.location}`)}else if(C instanceof i.Field){for(const D of C.annotations)if(!(D instanceof i.DescriptionAnnotation))throw new u.SemanticError(`Cannot have @${D.constructor.name.replace("Annotation","").toLowerCase()} at ${D.location}`)}else if(C instanceof i.FunctionOperation)for(const D of C.annotations)if(!(D instanceof i.DescriptionAnnotation))if(D instanceof i.ThrowsAnnotation){if(!this.root.errors.some(I=>I.name===D.error))throw new u.SemanticError(`Unknown error type '${D.error}' at ${D.location}`)}else if(D instanceof i.RestAnnotation){const I=[...D.pathVariables,...D.queryVariables,...D.headers.values()];if(I.length!==new Set(I).size)throw new u.SemanticError(`Arguments must appear only once for rest annotation at ${D.location}`);for(const h of I){const A=C.args.find(b=>b.name===h);if(!A)throw new u.SemanticError(`Argument '${h}' not found at ${D.location}`);if(D.pathVariables.includes(h)&&A.type instanceof i.OptionalType)throw new u.SemanticError(`The path argument '${h}' can't be nullable at ${D.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 ${D.location}`)}for(const h of C.args)if(!I.includes(h.name)&&D.bodyVariable!==h.name)throw new u.SemanticError(`Argument '${h.name}' is missing from the rest annotation at ${D.location}`);if("GET"===D.method&&C.returnType instanceof i.VoidPrimitiveType)throw new u.SemanticError(`A GET rest endpoint must return something at ${D.location}`)}else if(!(D instanceof i.HiddenAnnotation))throw new u.SemanticError(`Cannot have @${D.constructor.name.replace("Annotation","").toLowerCase()} at ${D.location}`);var _}}},6088:(Le,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),C=l(9866),D=l(4647),I=l(2060),h=l(4212);g.analyse=function A(T){T.errors.some(b=>"Fatal"===b.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 C.CheckEmptyStructOrEnumVisitor(T).process(),new D.ValidateRecursiveTypes(T).process(),new I.CollectStructAndEnumTypesVisitor(T).process(),new h.ValidateAnnotationsVisitor(T).process()}},3154:(Le,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:(Le,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(Xe=""){this.value=Xe,this.location=new l,Object.defineProperty(this,"location",{enumerable:!1})}maybeAsIdentifier(){return this}toString(){const Xe=this.constructor.name.replace("Token","");return""===this.value?Xe:`${Xe}(${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 C extends i{},g.ParensOpenSymbolToken=class D extends i{},g.ParensCloseSymbolToken=class I extends i{},g.ColonSymbolToken=class h extends i{},g.OptionalSymbolToken=class A extends i{},g.ArraySymbolToken=class T extends i{},g.CommaSymbolToken=class b extends i{},g.SpreadSymbolToken=class x extends i{},g.AnnotationToken=class V extends i{},g.ImportKeywordToken=class fe extends i{maybeAsIdentifier(){return new u("import")}},g.TypeKeywordToken=class $ extends i{maybeAsIdentifier(){return new u("type")}},g.EnumKeywordToken=class le extends i{maybeAsIdentifier(){return new u("enum")}},g.FnKeywordToken=class Me extends i{maybeAsIdentifier(){return new u("fn")}},g.ErrorKeywordToken=class pe extends i{maybeAsIdentifier(){return new u("error")}},g.TrueKeywordToken=class ye extends i{maybeAsIdentifier(){return new u("true")}},g.FalseKeywordToken=class se extends i{maybeAsIdentifier(){return new u("false")}},g.PrimitiveTypeToken=class De extends i{maybeAsIdentifier(){return new u(this.value)}}},6569:(Le,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:(Le,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),C=l(7295),D=l(2911),I=l(4327),h=(0,i.__importStar)(l(5e3)),A=(0,i.__importStar)(l(6395)),T=(0,i.__importStar)(l(2313)),b=(0,i.__importStar)(l(5245)),x=(0,i.__importStar)(l(107)),V=(0,i.__importStar)(l(2253)),fe=(0,i.__importStar)(l(9808)),$=(0,i.__importStar)(l(3251)),le=(0,i.__importStar)(l(5585)),Me=(0,i.__importStar)(l(7423)),pe=(0,i.__importStar)(l(7238)),ye=(0,i.__importStar)(l(4264)),se=(0,i.__importStar)(l(7822)),De=(0,i.__importStar)(l(2181));function ke(ge,nt){1&ge&&(h.\u0275\u0275elementContainerStart(0),h.\u0275\u0275text(1,"Editor Avan\xe7ado"),h.\u0275\u0275elementContainerEnd())}function Xe(ge,nt){if(1&ge&&(h.\u0275\u0275elementContainerStart(0),h.\u0275\u0275elementStart(1,"span",20),h.\u0275\u0275text(2),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementContainerEnd()),2&ge){const ve=h.\u0275\u0275nextContext(2).$implicit;h.\u0275\u0275advance(2),h.\u0275\u0275textInterpolate1("\u25b6\xa0",ve.function,"")}}function st(ge,nt){if(1&ge){const ve=h.\u0275\u0275getCurrentView();h.\u0275\u0275elementStart(0,"span",17),h.\u0275\u0275template(1,ke,2,0,"ng-container",18),h.\u0275\u0275template(2,Xe,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(),h.\u0275\u0275elementEnd()}if(2&ge){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 q(ge,nt){1&ge&&(h.\u0275\u0275elementContainerStart(0),h.\u0275\u0275element(1,"app-tab-editor"),h.\u0275\u0275elementContainerEnd())}function Pe(ge,nt){if(1&ge&&(h.\u0275\u0275elementContainerStart(0),h.\u0275\u0275element(1,"app-simple-call",21),h.\u0275\u0275elementContainerEnd()),2&ge){const ve=h.\u0275\u0275nextContext().$implicit;h.\u0275\u0275advance(1),h.\u0275\u0275property("fn",ve.function)}}function J(ge,nt){if(1&ge&&(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,q,2,0,"ng-container",18),h.\u0275\u0275template(4,Pe,2,1,"ng-container",18),h.\u0275\u0275elementContainerEnd(),h.\u0275\u0275elementEnd()),2&ge){const ve=nt.$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 ae(ge,nt){if(1&ge){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(),h.\u0275\u0275elementEnd()}}function Ie(ge,nt){if(1&ge&&(h.\u0275\u0275elementStart(0,"button",23),h.\u0275\u0275elementStart(1,"mat-icon"),h.\u0275\u0275text(2,"download"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementEnd()),2&ge){h.\u0275\u0275nextContext(2);const ve=h.\u0275\u0275reference(5);h.\u0275\u0275property("matMenuTriggerFor",ve)}}function ie(ge,nt){if(1&ge){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),h.\u0275\u0275elementStart(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\u0275elementEnd(),h.\u0275\u0275template(3,J,5,3,"mat-tab",14),h.\u0275\u0275elementStart(4,"mat-tab",15),h.\u0275\u0275template(5,ae,3,0,"ng-template",16),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(6,"mat-tab",15),h.\u0275\u0275template(7,Ie,3,1,"ng-template",16),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementEnd()}if(2&ge){const ve=h.\u0275\u0275nextContext();h.\u0275\u0275property("selectedIndex",ve.selected.value),h.\u0275\u0275advance(3),h.\u0275\u0275property("ngForOf",ve.tabs)}}class Ke{constructor(nt,ve,$e){this.sdkgen=nt,this.domSanitizer=ve,this.matIconRegistry=$e,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(nt=>{this.state=null!=nt?nt:void 0})}ngOnDestroy(){var nt;null===(nt=this.state$)||void 0===nt||nt.unsubscribe()}addSimpleTab(nt){this.tabs.push({id:this.tabIndex++,function:nt,type:"simple"}),this.selected.setValue(this.tabs.length)}addAdvancedTab(){this.tabs.push({id:this.tabIndex++,type:"advanced"}),this.selected.setValue(this.tabs.length)}closeTab(nt){this.tabs.splice(this.tabs.indexOf(nt),1),this.selected.setValue(0)}downloadTarget(nt){if(!this.state)return;let ve,$e;switch(nt){case"typescript_nodeserver":ve=(0,D.generateNodeServerSource)(this.state.astRoot),$e="node-server.ts";break;case"typescript_nodeclient":ve=(0,D.generateNodeClientSource)(this.state.astRoot),$e="node-client.ts";break;case"typescript_web":ve=(0,D.generateBrowserClientSource)(this.state.astRoot),$e="web-client.ts";break;case"typescript_interfaces":ve=(0,D.generateTypescriptInterfaces)(this.state.astRoot),$e="interfaces.ts";break;case"flutter":ve=(0,c.generateDartClientSource)(this.state.astRoot),$e="flutter-client.dart";break;case"csharp_server":ve=(0,m.generateCSharpServerSource)(this.state.astRoot),$e="csharp-server.cs";break;case"fsharp_server":ve=(0,s.generateFSharpServerSource)(this.state.astRoot),$e="fsharp-server.fs";break;case"kotlin_android":ve=(0,_.generateAndroidClientSource)(this.state.astRoot,!0),$e="android-client.kt";break;case"kotlin_android_without_callbacks":ve=(0,_.generateAndroidClientSource)(this.state.astRoot,!1),$e="android-client-no-callbacks.kt";break;case"swift_ios":ve=(0,C.generateSwiftClientSource)(this.state.astRoot,!1),$e="ios-client.swift";break;case"rxswift_ios":ve=(0,C.generateSwiftClientSource)(this.state.astRoot,!0),$e="ios-client-rx.swift"}(0,I.saveAs)(new Blob([ve],{type:"application/octet-stream"}),$e)}}g.AppComponent=Ke,Ke.\u0275fac=function(nt){return new(nt||Ke)(h.\u0275\u0275directiveInject(A.SdkgenService),h.\u0275\u0275directiveInject(T.DomSanitizer),h.\u0275\u0275directiveInject(b.MatIconRegistry))},Ke.\u0275cmp=h.\u0275\u0275defineComponent({type:Ke,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(nt,ve){1&nt&&(h.\u0275\u0275element(0,"ngx-monaco-editor",0),h.\u0275\u0275element(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(),h.\u0275\u0275elementEnd()),2&nt&&(h.\u0275\u0275advance(2),h.\u0275\u0275property("ngIf",h.\u0275\u0275pipeBind1(3,1,ve.sdkgen.state$)))},directives:[x.MonacoEditorComponent,V.TabNavComponent,fe.NgIf,$.MatTabGroup,$.MatTab,le.TabHomeComponent,fe.NgForOf,$.MatTabLabel,fe.NgSwitch,fe.NgSwitchCase,Me.MatButton,pe.MatTooltip,b.MatIcon,ye.TabEditorComponent,se.SimpleCallComponent,De.MatMenuTrigger,De.MatMenu,De.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:(Le,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),C=l(8966),D=l(5245),I=l(2181),h=l(2075),A=l(3251),T=l(7238),b=l(2313),x=l(6360),V=l(107),fe=l(1430),$=l(5109),le=l(2290),Me=l(5041),pe=(0,i.__importStar)(l(5e3));(0,i.__importStar)(l(2290));class se{}g.AppModule=se,se.\u0275fac=function(ke){return new(ke||se)},se.\u0275mod=pe.\u0275\u0275defineNgModule({type:se,bootstrap:[Me.AppComponent]}),se.\u0275inj=pe.\u0275\u0275defineInjector({providers:[{provide:V.MONACO_PATH,useValue:"assets/vs"}],imports:[[b.BrowserModule,m.FormsModule,m.ReactiveFormsModule,V.MonacoEditorModule,x.BrowserAnimationsModule,$.NgxJsonViewerModule,le.ToastrModule.forRoot(),fe.AngularSplitModule,u.HttpClientModule,c.MatButtonModule,s.MatChipsModule,C.MatDialogModule,D.MatIconModule,I.MatMenuModule,_.MatRippleModule,h.MatTableModule,A.MatTabsModule,T.MatTooltipModule]]})},8495:(Le,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)),C=(0,i.__importStar)(l(5109));function D(x,V){1&x&&(m.\u0275\u0275elementContainerStart(0),m.\u0275\u0275text(1,"info_outline"),m.\u0275\u0275elementContainerEnd())}function I(x,V){1&x&&(m.\u0275\u0275elementContainerStart(0),m.\u0275\u0275text(1,"error"),m.\u0275\u0275elementContainerEnd())}function h(x,V){1&x&&(m.\u0275\u0275elementContainerStart(0),m.\u0275\u0275text(1,"public"),m.\u0275\u0275elementContainerEnd())}function A(x,V){if(1&x&&m.\u0275\u0275element(0,"ngx-json-viewer",6),2&x){const fe=m.\u0275\u0275nextContext().$implicit;m.\u0275\u0275property("json",fe.details)("expanded",!1)}}function T(x,V){if(1&x&&(m.\u0275\u0275elementStart(0,"li",2),m.\u0275\u0275elementStart(1,"mat-icon",3),m.\u0275\u0275template(2,D,2,0,"ng-container",4),m.\u0275\u0275template(3,I,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&x){const fe=V.$implicit,$=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",$.itemTypes.INFO),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngSwitchCase",$.itemTypes.ERROR),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngSwitchCase",$.itemTypes.NETWORK),m.\u0275\u0275advance(2),m.\u0275\u0275textInterpolate(fe.message),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngIf",fe.details)}}class b{constructor(){this.itemTypes=u.ConsoleItemType,this.items=[]}}g.ConsoleComponent=b,b.\u0275fac=function(V){return new(V||b)},b.\u0275cmp=m.\u0275\u0275defineComponent({type:b,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(V,fe){1&V&&(m.\u0275\u0275elementStart(0,"header"),m.\u0275\u0275elementStart(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\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(7,"ul"),m.\u0275\u0275template(8,T,8,8,"li",1),m.\u0275\u0275elementEnd()),2&V&&(m.\u0275\u0275advance(8),m.\u0275\u0275property("ngForOf",fe.items))},directives:[c.MatButton,s.MatIcon,_.NgForOf,_.NgClass,_.NgSwitch,_.NgSwitchCase,_.NgIf,C.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:(Le,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:(Le,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)),C=(0,i.__importStar)(l(5245)),D=(0,i.__importStar)(l(9808));function I(A,T){if(1&A&&(m.\u0275\u0275elementStart(0,"a",6),m.\u0275\u0275elementStart(1,"mat-chip",2),m.\u0275\u0275elementStart(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(),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd()),2&A){const b=T.$implicit;m.\u0275\u0275property("href","https://www.npmjs.com/package/"+b[0]+"/v/"+b[1],m.\u0275\u0275sanitizeUrl),m.\u0275\u0275advance(1),m.\u0275\u0275property("disableRipple",!0),m.\u0275\u0275advance(2),m.\u0275\u0275textInterpolate(b[0]),m.\u0275\u0275advance(3),m.\u0275\u0275textInterpolate(b[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,b){1&T&&(m.\u0275\u0275elementStart(0,"header"),m.\u0275\u0275elementStart(1,"h1",0),m.\u0275\u0275text(2,"sdkgen Playground"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(3,"mat-chip-list",1),m.\u0275\u0275elementStart(4,"mat-chip",2),m.\u0275\u0275text(5),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),m.\u0275\u0275element(6,"s"),m.\u0275\u0275elementStart(7,"button",3),m.\u0275\u0275elementStart(8,"mat-icon"),m.\u0275\u0275text(9,"close"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementEnd(),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"),m.\u0275\u0275elementStart(13,"h4"),m.\u0275\u0275text(14,"Depend\xeancias"),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(15,"mat-chip-list",4),m.\u0275\u0275template(16,I,7,4,"a",5),m.\u0275\u0275elementEnd(),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(b.version),m.\u0275\u0275advance(10),m.\u0275\u0275property("selectable",!1),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngForOf",b.dependencies))},directives:[c.MatDialogTitle,s.MatChipList,s.MatChip,_.MatButton,c.MatDialogClose,C.MatIcon,D.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:(Le,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 C=_.toLocaleLowerCase();return s.filter(D=>JSON.stringify(D).toLocaleLowerCase().includes(C))}}g.FilterPipe=m,m.\u0275fac=function(s){return new(s||m)},m.\u0275pipe=u.\u0275\u0275definePipe({name:"appFilter",type:m,pure:!0})},7120:(Le,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:(Le,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 C=[];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:C.push("Primitivo");break;case i.OptionalType:C.push("Opcional"),C.push(...c(_.base));break;case i.TypeReference:C.push(...c(_.type));break;case i.ArrayType:C.push("Array"),C.push(...c(_.base));break;case i.EnumType:C.push("Enum");break;default:console.error("No labels for",m(_))}return C},g.getTypeDoc=function s(_){var C,D,I;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 b=s(_.base);return Object.assign(Object.assign({},b),{longDescription:b.longDescription,shortDescription:`(opcional) ${b.shortDescription}`,examples:["null",...null!==(C=b.examples)&&void 0!==C?C:[]]})}case i.TypeReference:return s(_.type);case i.ArrayType:{const b=s(_.base);return Object.assign(Object.assign({},b),{longDescription:b.longDescription,shortDescription:`(array) ${b.shortDescription}`,examples:["[]",...null!==(I=null===(D=b.examples)||void 0===D?void 0:D.map(x=>`[${x}]`))&&void 0!==I?I:[]]})}case i.EnumType:const h=_,A=h.values.slice(0,3),T=A.map(b=>b.struct?`${b.value}: ${JSON.stringify((new u.SdkgenService).buildJsonObject(b.struct.fields),null,2)}`:b.value);return{longDescription:"enum representa um conjunto limitado de possibilidades de valores, similar as enumera\xe7\xf5es em outras linguagens.",shortDescription:`(enum) ${A.map(b=>`${b.value}${b.struct?"(\u2026)":""}`).join(", ")}${A.length>3?"\u2026":""}`,examples:T,isEnum:!0,isStruct:!0,structFields:h.values.map(b=>{var x;return{name:b.value,type:b.struct,description:null===(x=b.annotations.find(V=>V instanceof i.DescriptionAnnotation))||void 0===x?void 0:x.text,secret:!1}})};case i.StructType:return{longDescription:"",shortDescription:`(objeto complexo) ${_.fields.slice(0,3).map(b=>b.name).join(", ")}\u2026`,isStruct:!0,structFields:_.fields.map(b=>{var x;return{name:b.name,description:null===(x=b.annotations.find(V=>V instanceof i.DescriptionAnnotation))||void 0===x?void 0:x.text,type:b.type,secret:b.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(Le,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 Le.reduce((i,u)=>(i[u.name]=l(u.type),i),{})}getTypeScriptCode(Le,g){return`await client.${Le}(${JSON.stringify(g,null,2)});\n`}buildKotlinString(Le,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 Le.map(i=>`${" ".repeat(g+1)}${l(i.type)}`).join(",\n")}getKotlinCode(Le,g){return 0===g.length?`client.${Le}().await();`:`client.${Le}(\n${this.buildKotlinString(g)}\n).await();`}getDartCode(Le,g){return'print("todo");'}getSwiftCode(Le,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:(Le,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 Le(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(Le){this.sdkgen=Le,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(Le=>{!Le||(this.generateFunctionCode(Le.astRoot,this.fn),this.client=this.sdkgen.getSdkgenClient(Le.url,Le.astJson))})}ngOnDestroy(){var Le;null===(Le=this.state$)||void 0===Le||Le.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(Le){_this.consoleItems.push({type:console_types_1.ConsoleItemType.ERROR,message:Le.toString()}),delete Le.toString,_this.response={error:{type:Le.type,message:Le.message,data:Le.data}}}finally{eval(code_execution_1.unwrap),_this.selected.setValue(1)}})()}generateFunctionCode(Le,g){var l;const i=null===(l=Le.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 Le(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 Le(g,l){1&g&&(i0.\u0275\u0275elementStart(0,"as-split",0),i0.\u0275\u0275elementStart(1,"as-split-area"),i0.\u0275\u0275elementStart(2,"mat-tab-group",1),i0.\u0275\u0275listener("selectedIndexChange",function(u){return l.selected.setValue(u)}),i0.\u0275\u0275elementStart(3,"mat-tab",2),i0.\u0275\u0275elementStart(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\u0275elementEnd(),i0.\u0275\u0275elementStart(7,"ngx-monaco-editor",4),i0.\u0275\u0275listener("ngModelChange",function(u){return l.code=u}),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(8,"mat-tab",5),i0.\u0275\u0275element(9,"ngx-json-viewer",6),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(10,"as-split-area",7),i0.\u0275\u0275element(11,"app-console",8),i0.\u0275\u0275elementEnd(),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(Le){this.sdkgen=Le,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(Le=>{if(!Le)return;const g=`${this.patchBrowserClientSource((0,typescript_generator_1.generateBrowserClientSource)(Le.astRoot))}\n\ndeclare const client: sdkgen.ApiClient;\n\n`;this.client=this.sdkgen.getSdkgenClient(Le.url,Le.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]=Le.astRoot.operations;this.code=this.sdkgen.getTypeScriptCode(i.name,this.sdkgen.buildJsonObject(i.args))})}ngOnDestroy(){var Le;null===(Le=this.state$)||void 0===Le||Le.unsubscribe()}patchBrowserClientSource(Le){return`declare namespace sdkgen {\n${Le.substring(95,Le.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(Le){_this.consoleItems.push({type:console_types_1.ConsoleItemType.ERROR,message:Le.toString()})}})()}}exports.TabEditorComponent=TabEditorComponent,TabEditorComponent.\u0275fac=function Le(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 Le(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\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"as-split",1),i0.\u0275\u0275elementStart(4,"as-split-area",2),i0.\u0275\u0275elementStart(5,"ngx-monaco-editor",3),i0.\u0275\u0275listener("ngModelChange",function(u){return l.code=u}),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(6,"as-split-area",4),i0.\u0275\u0275element(7,"app-console",5),i0.\u0275\u0275elementEnd(),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:(Le,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)),C=(0,i.__importStar)(l(8966)),D=(0,i.__importStar)(l(7120)),I=(0,i.__importStar)(l(1430)),h=(0,i.__importStar)(l(3075)),A=(0,i.__importStar)(l(9808)),T=(0,i.__importStar)(l(7238)),b=(0,i.__importStar)(l(7423)),x=(0,i.__importStar)(l(5245)),V=(0,i.__importStar)(l(9417)),fe=(0,i.__importStar)(l(2075)),$=(0,i.__importStar)(l(3251)),le=(0,i.__importStar)(l(107)),Me=(0,i.__importStar)(l(4211));function pe(dt,Qe){if(1&dt&&(s.\u0275\u0275elementStart(0,"span",8),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&dt){const N=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.description)}}const ye=function(dt){return{active:dt}};function se(dt,Qe){if(1&dt){const N=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"li",5),s.\u0275\u0275listener("click",function(){const ue=s.\u0275\u0275restoreView(N).$implicit;return s.\u0275\u0275nextContext().selectedFunction=ue}),s.\u0275\u0275elementStart(1,"span",6),s.\u0275\u0275text(2),s.\u0275\u0275elementEnd(),s.\u0275\u0275template(3,pe,2,1,"span",7),s.\u0275\u0275elementEnd()}if(2&dt){const N=Qe.$implicit,oe=s.\u0275\u0275nextContext();s.\u0275\u0275property("ngClass",s.\u0275\u0275pureFunction1(3,ye,(null==oe.selectedFunction?null:oe.selectedFunction.name)===N.name)),s.\u0275\u0275advance(2),s.\u0275\u0275textInterpolate(N.name),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",N.description)}}function De(dt,Qe){1&dt&&s.\u0275\u0275element(0,"span")}function ke(dt,Qe){if(1&dt){const N=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 ue=s.\u0275\u0275restoreView(N).$implicit;return s.\u0275\u0275nextContext(2).showDocumentation(ue.rawType)}),s.\u0275\u0275text(9),s.\u0275\u0275elementEnd(),s.\u0275\u0275template(10,De,1,0,"span",38),s.\u0275\u0275elementEnd()}if(2&dt){const N=Qe.$implicit,oe=Qe.index;s.\u0275\u0275nextContext();const Oe=s.\u0275\u0275reference(18),ue=s.\u0275\u0275reference(20),Te=s.\u0275\u0275nextContext();s.\u0275\u0275advance(4),s.\u0275\u0275textInterpolate(N.name),s.\u0275\u0275advance(4),s.\u0275\u0275property("matTooltip",Te.getTooltip(N.rawType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.type),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",oe!=Te.selectedFunction.args.length-1)("ngIfThen",Oe)("ngIfElse",ue)}}function Xe(dt,Qe){1&dt&&s.\u0275\u0275text(0,",")}function st(dt,Qe){1&dt&&s.\u0275\u0275element(0,"br")}function q(dt,Qe){if(1&dt){const N=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"u",29),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(N);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 N=s.\u0275\u0275nextContext().$implicit,oe=s.\u0275\u0275nextContext(3);s.\u0275\u0275property("matTooltip",oe.getTooltip(N.dataType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate1("(",N.dataType.name,")")}}function Pe(dt,Qe){if(1&dt&&(s.\u0275\u0275elementStart(0,"mat-chip",42),s.\u0275\u0275elementStart(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,q,2,2,"u",43),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&dt){const N=Qe.$implicit;s.\u0275\u0275property("disableRipple",!0),s.\u0275\u0275advance(2),s.\u0275\u0275textInterpolate(N.name),s.\u0275\u0275advance(3),s.\u0275\u0275textInterpolate1("",N.type," "),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",N.dataType&&"void"!==N.dataType.name)}}function J(dt,Qe){if(1&dt&&(s.\u0275\u0275elementStart(0,"section",39),s.\u0275\u0275elementStart(1,"mat-chip-list",40),s.\u0275\u0275template(2,Pe,7,4,"mat-chip",41),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&dt){const N=s.\u0275\u0275nextContext(2);s.\u0275\u0275advance(1),s.\u0275\u0275property("selectable",!1),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngForOf",N.selectedFunction.labels)}}function ae(dt,Qe){if(1&dt&&(s.\u0275\u0275elementStart(0,"p"),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&dt){const N=s.\u0275\u0275nextContext(2);s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.selectedFunction.description)}}function Ie(dt,Qe){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,Qe){1&dt&&(s.\u0275\u0275elementStart(0,"p",44),s.\u0275\u0275text(1,"Esta fun\xe7\xe3o n\xe3o possui argumentos."),s.\u0275\u0275elementEnd())}function Ke(dt,Qe){1&dt&&(s.\u0275\u0275elementStart(0,"th",54),s.\u0275\u0275text(1,"Nome"),s.\u0275\u0275elementEnd())}function ge(dt,Qe){if(1&dt&&(s.\u0275\u0275elementStart(0,"td",55),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&dt){const N=Qe.$implicit;s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.name)}}function nt(dt,Qe){1&dt&&(s.\u0275\u0275elementStart(0,"th",54),s.\u0275\u0275text(1,"Tipo"),s.\u0275\u0275elementEnd())}function ve(dt,Qe){if(1&dt){const N=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"td",55),s.\u0275\u0275elementStart(1,"u",29),s.\u0275\u0275listener("click",function(){const ue=s.\u0275\u0275restoreView(N).$implicit;return s.\u0275\u0275nextContext(3).showDocumentation(ue.rawType)}),s.\u0275\u0275text(2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()}if(2&dt){const N=Qe.$implicit,oe=s.\u0275\u0275nextContext(3);s.\u0275\u0275advance(1),s.\u0275\u0275property("matTooltip",oe.getTooltip(N.rawType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.type)}}function $e(dt,Qe){1&dt&&(s.\u0275\u0275elementStart(0,"th",54),s.\u0275\u0275text(1,"Descri\xe7\xe3o"),s.\u0275\u0275elementEnd())}function ct(dt,Qe){if(1&dt&&(s.\u0275\u0275elementStart(0,"td",56),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&dt){const N=Qe.$implicit;s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.description||"-")}}function Tt(dt,Qe){1&dt&&s.\u0275\u0275element(0,"tr",57)}function Fe(dt,Qe){1&dt&&s.\u0275\u0275element(0,"tr",58)}function Je(dt,Qe){if(1&dt&&(s.\u0275\u0275elementStart(0,"table",45),s.\u0275\u0275elementContainerStart(1,46),s.\u0275\u0275template(2,Ke,2,0,"th",47),s.\u0275\u0275template(3,ge,2,1,"td",48),s.\u0275\u0275elementContainerEnd(),s.\u0275\u0275elementContainerStart(4,49),s.\u0275\u0275template(5,nt,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,$e,2,0,"th",47),s.\u0275\u0275template(9,ct,2,1,"td",51),s.\u0275\u0275elementContainerEnd(),s.\u0275\u0275template(10,Tt,1,0,"tr",52),s.\u0275\u0275template(11,Fe,1,0,"tr",53),s.\u0275\u0275elementEnd()),2&dt){const N=s.\u0275\u0275nextContext(2);s.\u0275\u0275property("dataSource",N.selectedFunction.args),s.\u0275\u0275advance(10),s.\u0275\u0275property("matHeaderRowDef",N.argumentsTableColumns),s.\u0275\u0275advance(1),s.\u0275\u0275property("matRowDefColumns",N.argumentsTableColumns)}}function Y(dt,Qe){1&dt&&(s.\u0275\u0275elementStart(0,"span",59),s.\u0275\u0275text(1,"Dart"),s.\u0275\u0275elementEnd())}function me(dt,Qe){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"}},Re=function(){return{theme:"vs-dark",language:"kotlin"}},_e=function(){return{theme:"vs-dark",language:"dart"}},Ye=function(){return{theme:"vs-dark",language:"swift"}};function yt(dt,Qe){if(1&dt){const N=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"article"),s.\u0275\u0275elementStart(1,"header"),s.\u0275\u0275elementStart(2,"h1",9),s.\u0275\u0275elementStart(3,"span",10),s.\u0275\u0275elementStart(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,ke,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(N);const Oe=s.\u0275\u0275nextContext();return Oe.showDocumentation(Oe.selectedFunction.returns.rawType)}),s.\u0275\u0275text(16),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275template(17,Xe,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(N),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\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275template(26,J,3,2,"section",19),s.\u0275\u0275elementStart(27,"section",9),s.\u0275\u0275elementStart(28,"h2",20),s.\u0275\u0275text(29,"Descri\xe7\xe3o"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(30,"div",21),s.\u0275\u0275template(31,ae,2,1,"p",22),s.\u0275\u0275template(32,Ie,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,Je,12,3,"table",26),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(39,"h2",27),s.\u0275\u0275text(40,"Retorno"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(41,"div"),s.\u0275\u0275elementStart(42,"p",28),s.\u0275\u0275elementStart(43,"u",29),s.\u0275\u0275listener("click",function(){s.\u0275\u0275restoreView(N);const Oe=s.\u0275\u0275nextContext();return Oe.showDocumentation(Oe.selectedFunction.returns.rawType)}),s.\u0275\u0275text(44),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),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),s.\u0275\u0275elementStart(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,Y,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,me,2,0,"ng-template",36),s.\u0275\u0275element(57,"ngx-monaco-editor",33),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()}if(2&dt){const N=s.\u0275\u0275nextContext();s.\u0275\u0275advance(8),s.\u0275\u0275textInterpolate(N.selectedFunction.name),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",N.selectedFunction.args),s.\u0275\u0275advance(5),s.\u0275\u0275property("matTooltip",N.getTooltip(N.selectedFunction.returns.rawType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.selectedFunction.returns.type),s.\u0275\u0275advance(10),s.\u0275\u0275property("ngIf",N.selectedFunction.labels.length>0),s.\u0275\u0275advance(4),s.\u0275\u0275property("ngSwitch",!!N.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",N.selectedFunction.args.length),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngSwitchCase",0),s.\u0275\u0275advance(7),s.\u0275\u0275property("matTooltip",N.getTooltip(N.selectedFunction.returns.rawType)),s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.selectedFunction.returns.type),s.\u0275\u0275advance(5),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(20,we))("ngModel",N.selectedFunction.examples.typeScript),s.\u0275\u0275advance(2),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(21,Re))("ngModel",N.selectedFunction.examples.kotlin),s.\u0275\u0275advance(3),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(22,_e))("ngModel",N.selectedFunction.examples.dart),s.\u0275\u0275advance(3),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(23,Ye))("ngModel",N.selectedFunction.examples.swift)}}const Ct=function(){return{standalone:!0}};class Ot{constructor(Qe,N,oe){this.sdkgen=Qe,this.dialog=N,this.responsive=oe,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(Qe=>{!Qe||(this.selectedFunction=void 0,this.fnTable=Qe.astRoot.operations.sort((N,oe)=>N.name.localeCompare(oe.name)).map(N=>{var oe,Oe,ue;const Te=Qe.astJson.annotations[`fn.${N.name}`],be=this.sdkgen.buildJsonObject(N.args);return(null==Te?void 0:Te.find(re=>"hidden"===re.type))?null:{name:N.name,description:null===(oe=null==Te?void 0:Te.find(re=>"description"===re.type))||void 0===oe?void 0:oe.value,args:N.args.map(({name:re,type:Ce})=>{var Ze,tt,ft;return{name:re,description:null===(ft=[...null!==(Ze=Qe.astJson.annotations[`type.${Ce}.${re}`])&&void 0!==Ze?Ze:[],...null!==(tt=Qe.astJson.annotations[`fn.${N.name}.${re}`])&&void 0!==tt?tt:[]].find(wt=>"description"===wt.type))||void 0===ft?void 0:ft.value,type:Ce.name,rawType:Ce}}),argsStr:N.args.map(re=>`${re.name}: ${re.type.name}`).join(", "),argsFields:N.args,returns:{type:N.returnType.name,rawType:N.returnType},labels:null!==(Oe=null==Te?void 0:Te.filter(re=>["rest","throws"].includes(re.type)).map(re=>{var Ce;return"rest"===re.type?{name:"REST",type:`${re.value.method} ${re.value.path}`}:"throws"===re.type?{name:"THROWS",type:re.value,dataType:null===(Ce=Qe.astRoot.errors.find(Ze=>Ze.name===re.value))||void 0===Ce?void 0:Ce.dataType}:{name:"?",type:"?"}}))&&void 0!==Oe?Oe:[],throws:null===(ue=null==Te?void 0:Te.find(re=>"throws"===re.type))||void 0===ue?void 0:ue.value,examples:{typeScript:this.sdkgen.getTypeScriptCode(N.name,be),kotlin:this.sdkgen.getKotlinCode(N.name,N.args),dart:this.sdkgen.getDartCode(N.name,be),swift:this.sdkgen.getSwiftCode(N.name,be)}}}).filter(N=>Boolean(N)))})}ngOnDestroy(){var Qe,N;null===(Qe=this.state$)||void 0===Qe||Qe.unsubscribe(),null===(N=this.responsive$)||void 0===N||N.unsubscribe()}ngAfterViewInit(){this.responsive$=this.responsive.isBelowMd().subscribe(Qe=>{this.isBelowMd=Qe.matches})}addSimpleCallTab(){var Qe;this.runFunction.emit(null===(Qe=this.selectedFunction)||void 0===Qe?void 0:Qe.name)}getTooltip(Qe){return(0,m.getTypeDoc)(Qe).shortDescription}showDocumentation(Qe){this.dialog.open(c.TypeDetailsComponent,{position:{right:"0",top:"0",bottom:"0"},data:{type:Qe},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}g.TabHomeComponent=Ot,Ot.\u0275fac=function(Qe){return new(Qe||Ot)(s.\u0275\u0275directiveInject(_.SdkgenService),s.\u0275\u0275directiveInject(C.MatDialog),s.\u0275\u0275directiveInject(D.ResponsiveService))},Ot.\u0275cmp=s.\u0275\u0275defineComponent({type:Ot,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(Qe,N){1&Qe&&(s.\u0275\u0275elementStart(0,"as-split",0),s.\u0275\u0275elementStart(1,"as-split-area",1),s.\u0275\u0275elementStart(2,"aside"),s.\u0275\u0275elementStart(3,"nav"),s.\u0275\u0275elementStart(4,"form"),s.\u0275\u0275elementStart(5,"input",2),s.\u0275\u0275listener("ngModelChange",function(Oe){return N.searchText=Oe}),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(6,"ul"),s.\u0275\u0275template(7,se,4,5,"li",3),s.\u0275\u0275pipe(8,"appFilter"),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(9,"as-split-area"),s.\u0275\u0275template(10,yt,58,24,"article",4),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&Qe&&(s.\u0275\u0275property("direction",N.isBelowMd?"vertical":"horizontal"),s.\u0275\u0275advance(1),s.\u0275\u0275property("size",N.isBelowMd?130:350),s.\u0275\u0275advance(4),s.\u0275\u0275property("ngModel",N.searchText)("ngModelOptions",s.\u0275\u0275pureFunction0(9,Ct)),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",s.\u0275\u0275pipeBind2(8,6,N.fnTable,N.searchText)),s.\u0275\u0275advance(3),s.\u0275\u0275property("ngIf",N.selectedFunction))},directives:[I.SplitComponent,I.SplitAreaDirective,h.\u0275NgNoValidate,h.NgControlStatusGroup,h.NgForm,h.DefaultValueAccessor,h.NgControlStatus,h.NgModel,A.NgForOf,A.NgClass,A.NgIf,T.MatTooltip,b.MatButton,x.MatIcon,V.MatChipList,V.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,$.MatTabGroup,$.MatTab,le.MonacoEditorComponent,$.MatTabLabel],pipes:[Me.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:(Le,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)),C=(0,u.__importStar)(l(6395)),D=(0,u.__importStar)(l(2290)),I=(0,u.__importStar)(l(8966)),h=(0,u.__importStar)(l(3075)),A=(0,u.__importStar)(l(508)),T=(0,u.__importStar)(l(9808)),b=(0,u.__importStar)(l(5245)),x=(0,u.__importStar)(l(7423));function V(le,Me){1&le&&(_.\u0275\u0275elementContainerStart(0),_.\u0275\u0275elementStart(1,"mat-icon",6),_.\u0275\u0275text(2,"loop"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementContainerEnd())}function fe(le,Me){1&le&&(_.\u0275\u0275elementContainerStart(0),_.\u0275\u0275elementStart(1,"mat-icon"),_.\u0275\u0275text(2,"arrow_forward"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementContainerEnd())}class ${constructor(Me,pe,ye){this.sdkgen=Me,this.toastr=pe,this.dialog=ye,this.loading=!1,this.url=new m.FormControl("")}ngOnInit(){fetch("/ast.json").then(Me=>{Me.ok&&(this.url.setValue(`${window.location.protocol}//${window.location.host}`),this.loadUrl())}).catch(()=>{})}loadUrl(Me){var pe=this;return i(function*(){null==Me||Me.preventDefault();try{pe.loading=!0,/^https?:\/\//.test(pe.url.value)||pe.url.setValue(`https://${pe.url.value}`);const ye=new URL(pe.url.value);ye.pathname+=(/\/$/u.test(ye.pathname)?"":"/")+"ast.json";const se=ye.toString();console.debug("astUrl",se);const De=yield fetch(se).then(ke=>ke.ok?ke.json():ke);if(De instanceof Response)throw De instanceof Error?De:new Error(De.statusText);if(!De.errors||!De.functionTable||!De.typeTable)throw new Error("Invalid AST");for(;"undefined"==typeof monaco;)yield new Promise(ke=>setTimeout(ke,250));console.debug("astJson",De),pe.sdkgen.state$.next({astJson:De,astRoot:(0,c.jsonToAst)(De),url:pe.url.value})}catch(ye){pe.toastr.error(ye instanceof Error?ye.message:JSON.stringify(ye),"Erro ao carregar AST",{positionClass:"toast-bottom-right"})}finally{pe.loading=!1}})()}openAbout(){this.dialog.open(s.DialogAboutComponent)}}g.TabNavComponent=$,$.\u0275fac=function(Me){return new(Me||$)(_.\u0275\u0275directiveInject(C.SdkgenService),_.\u0275\u0275directiveInject(D.ToastrService),_.\u0275\u0275directiveInject(I.MatDialog))},$.\u0275cmp=_.\u0275\u0275defineComponent({type:$,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(Me,pe){1&Me&&(_.\u0275\u0275element(0,"img",0),_.\u0275\u0275elementStart(1,"form",1),_.\u0275\u0275listener("submit",function(se){return pe.loadUrl(se)}),_.\u0275\u0275element(2,"input",2),_.\u0275\u0275elementStart(3,"button",3),_.\u0275\u0275template(4,V,3,0,"ng-container",4),_.\u0275\u0275template(5,fe,3,0,"ng-container",4),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(6,"button",5),_.\u0275\u0275listener("click",function(){return pe.openAbout()}),_.\u0275\u0275elementStart(7,"mat-icon"),_.\u0275\u0275text(8,"info"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd()),2&Me&&(_.\u0275\u0275advance(2),_.\u0275\u0275property("formControl",pe.url)("readonly",pe.loading),_.\u0275\u0275advance(1),_.\u0275\u0275property("disabled",pe.loading)("ngSwitch",pe.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,b.MatIcon,x.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:(Le,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)),C=(0,i.__importStar)(l(7423)),D=(0,i.__importStar)(l(5245)),I=(0,i.__importStar)(l(9417)),h=(0,i.__importStar)(l(2075)),A=(0,i.__importStar)(l(7238));function T(ae,Ie){1&ae&&(c.\u0275\u0275elementStart(0,"button",6),c.\u0275\u0275elementStart(1,"mat-icon"),c.\u0275\u0275text(2,"arrow_back"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementEnd())}function b(ae,Ie){if(1&ae&&(c.\u0275\u0275elementStart(0,"mat-chip",7),c.\u0275\u0275text(1),c.\u0275\u0275elementEnd()),2&ae){const ie=Ie.$implicit;c.\u0275\u0275property("disableRipple",!0),c.\u0275\u0275advance(1),c.\u0275\u0275textInterpolate(ie)}}function x(ae,Ie){1&ae&&(c.\u0275\u0275elementStart(0,"button",8),c.\u0275\u0275elementStart(1,"mat-icon"),c.\u0275\u0275text(2,"close"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementEnd())}function V(ae,Ie){1&ae&&(c.\u0275\u0275elementStart(0,"th",20),c.\u0275\u0275text(1,"Nome"),c.\u0275\u0275elementEnd())}function fe(ae,Ie){if(1&ae&&(c.\u0275\u0275elementStart(0,"td",21),c.\u0275\u0275text(1),c.\u0275\u0275elementEnd()),2&ae){const ie=Ie.$implicit;c.\u0275\u0275advance(1),c.\u0275\u0275textInterpolate(ie.name)}}function $(ae,Ie){1&ae&&(c.\u0275\u0275elementStart(0,"th",20),c.\u0275\u0275text(1,"Tipo"),c.\u0275\u0275elementEnd())}function le(ae,Ie){1&ae&&(c.\u0275\u0275elementStart(0,"span"),c.\u0275\u0275text(1,"-"),c.\u0275\u0275elementEnd())}function Me(ae,Ie){if(1&ae){const ie=c.\u0275\u0275getCurrentView();c.\u0275\u0275elementStart(0,"u",25),c.\u0275\u0275listener("click",function(){c.\u0275\u0275restoreView(ie);const ge=c.\u0275\u0275nextContext().$implicit;return c.\u0275\u0275nextContext(2).showDocumentation(ge.type)}),c.\u0275\u0275text(1),c.\u0275\u0275elementEnd()}if(2&ae){const ie=c.\u0275\u0275nextContext().$implicit,Ke=c.\u0275\u0275nextContext(2);c.\u0275\u0275property("matTooltip",Ke.getTooltip(ie.type)),c.\u0275\u0275advance(1),c.\u0275\u0275textInterpolate(ie.type.name)}}function pe(ae,Ie){1&ae&&(c.\u0275\u0275elementStart(0,"td",22),c.\u0275\u0275template(1,le,2,0,"span",23),c.\u0275\u0275template(2,Me,2,2,"u",24),c.\u0275\u0275elementEnd()),2&ae&&(c.\u0275\u0275property("ngSwitch",Ie.$implicit.type),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngSwitchCase",null))}function ye(ae,Ie){1&ae&&(c.\u0275\u0275elementStart(0,"th",20),c.\u0275\u0275text(1,"Descri\xe7\xe3o"),c.\u0275\u0275elementEnd())}function se(ae,Ie){if(1&ae&&(c.\u0275\u0275elementStart(0,"td",26),c.\u0275\u0275text(1),c.\u0275\u0275elementEnd()),2&ae){const ie=Ie.$implicit;c.\u0275\u0275advance(1),c.\u0275\u0275textInterpolate(ie.description||"-")}}function De(ae,Ie){1&ae&&c.\u0275\u0275element(0,"tr",27)}function ke(ae,Ie){1&ae&&c.\u0275\u0275element(0,"tr",28)}const Xe=function(){return[]};function st(ae,Ie){if(1&ae&&(c.\u0275\u0275elementStart(0,"section"),c.\u0275\u0275elementStart(1,"div",9),c.\u0275\u0275elementStart(2,"table",10),c.\u0275\u0275elementContainerStart(3,11),c.\u0275\u0275template(4,V,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,$,2,0,"th",12),c.\u0275\u0275template(8,pe,3,2,"td",15),c.\u0275\u0275elementContainerEnd(),c.\u0275\u0275elementContainerStart(9,16),c.\u0275\u0275template(10,ye,2,0,"th",12),c.\u0275\u0275template(11,se,2,1,"td",17),c.\u0275\u0275elementContainerEnd(),c.\u0275\u0275template(12,De,1,0,"tr",18),c.\u0275\u0275template(13,ke,1,0,"tr",19),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementEnd()),2&ae){const ie=c.\u0275\u0275nextContext();let Ke;c.\u0275\u0275advance(2),c.\u0275\u0275property("dataSource",null!==(Ke=null==ie.typeDoc?null:ie.typeDoc.structFields)&&void 0!==Ke?Ke:c.\u0275\u0275pureFunction0(3,Xe)),c.\u0275\u0275advance(10),c.\u0275\u0275property("matHeaderRowDef",ie.argumentsTableColumns),c.\u0275\u0275advance(1),c.\u0275\u0275property("matRowDefColumns",ie.argumentsTableColumns)}}function q(ae,Ie){if(1&ae&&(c.\u0275\u0275elementStart(0,"li"),c.\u0275\u0275elementStart(1,"code",1),c.\u0275\u0275text(2),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementEnd()),2&ae){const ie=Ie.$implicit;c.\u0275\u0275advance(2),c.\u0275\u0275textInterpolate(ie)}}function Pe(ae,Ie){if(1&ae&&(c.\u0275\u0275elementStart(0,"section"),c.\u0275\u0275elementStart(1,"h3"),c.\u0275\u0275text(2,"Exemplos"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementStart(3,"ul"),c.\u0275\u0275template(4,q,3,1,"li",29),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementEnd()),2&ae){const ie=c.\u0275\u0275nextContext();c.\u0275\u0275advance(4),c.\u0275\u0275property("ngForOf",null==ie.typeDoc?null:ie.typeDoc.examples)}}class J{constructor(Ie,ie,Ke){this.dialogRef=Ie,this.data=ie,this.dialog=Ke,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(Ie){return(0,m.getTypeDoc)(Ie).shortDescription}showDocumentation(Ie){this.dialog.open(J,{position:{right:"0"},data:{type:Ie,subdialog:!0},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}g.TypeDetailsComponent=J,J.\u0275fac=function(Ie){return new(Ie||J)(c.\u0275\u0275directiveInject(s.MatDialogRef),c.\u0275\u0275directiveInject(u.MAT_DIALOG_DATA),c.\u0275\u0275directiveInject(s.MatDialog))},J.\u0275cmp=c.\u0275\u0275defineComponent({type:J,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(Ie,ie){1&Ie&&(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,b,2,2,"mat-chip",3),c.\u0275\u0275elementEnd(),c.\u0275\u0275template(6,x,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,Pe,5,1,"section",5)),2&Ie&&(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,C.MatButton,s.MatDialogClose,D.MatIcon,I.MatChipList,_.NgForOf,I.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:(Le,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:(Le,g)=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.environment=void 0,g.environment={production:!0}},4431:(Le,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(C=>console.error(C))},4327:function(Le,g){var u;void 0!==(u=function(){"use strict";function c(h,A,T){var b=new XMLHttpRequest;b.open("GET",h),b.responseType="blob",b.onload=function(){I(b.response,A,T)},b.onerror=function(){console.error("could not download file")},b.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 C="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,D=C.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),I=C.saveAs||("object"!=typeof window||window!==C?function(){}:"download"in HTMLAnchorElement.prototype&&!D?function(h,A,T){var b=C.URL||C.webkitURL,x=document.createElement("a");x.download=A=A||h.name||"download",x.rel="noopener","string"==typeof h?(x.href=h,x.origin===location.origin?_(x):s(x.href)?c(h,A,T):_(x,x.target="_blank")):(x.href=b.createObjectURL(h),setTimeout(function(){b.revokeObjectURL(x.href)},4e4),setTimeout(function(){_(x)},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 b=document.createElement("a");b.href=h,b.target="_blank",setTimeout(function(){_(b)})}}:function(h,A,T,b){if((b=b||open("","_blank"))&&(b.document.title=b.document.body.innerText="downloading..."),"string"==typeof h)return c(h,A,T);var x="application/octet-stream"===h.type,V=/constructor/i.test(C.HTMLElement)||C.safari,fe=/CriOS\/[\d]+/.test(navigator.userAgent);if((fe||x&&V||D)&&"undefined"!=typeof FileReader){var $=new FileReader;$.onloadend=function(){var pe=$.result;pe=fe?pe:pe.replace(/^data:[^;]*;/,"data:attachment/file;"),b?b.location.href=pe:location=pe,b=null},$.readAsDataURL(h)}else{var le=C.URL||C.webkitURL,Me=le.createObjectURL(h);b?b.location=Me:location.href=Me,b=null,setTimeout(function(){le.revokeObjectURL(Me)},4e4)}});C.saveAs=I.saveAs=I,Le.exports=I}.apply(g,[]))&&(Le.exports=u)},5109:(Le,g,l)=>{"use strict";l.r(g),l.d(g,{NgxJsonViewerComponent:()=>I,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 b=u.\u0275\u0275nextContext().$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(b.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 b=u.\u0275\u0275nextContext().$implicit,x=u.\u0275\u0275nextContext();u.\u0275\u0275advance(1),u.\u0275\u0275property("json",b.value)("expanded",x.expanded)("depth",x.depth)("_currentDepth",x._currentDepth)}}const _=function(A){return["segment",A]},C=function(A,T){return{"segment-main":!0,expandable:A,expanded:T}};function D(A,T){if(1&A){const b=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"section",2),u.\u0275\u0275elementStart(1,"section",3),u.\u0275\u0275listener("click",function(){const fe=u.\u0275\u0275restoreView(b).$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 b=T.$implicit,x=u.\u0275\u0275nextContext();u.\u0275\u0275property("ngClass",u.\u0275\u0275pureFunction1(6,_,"segment-type-"+b.type)),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngClass",u.\u0275\u0275pureFunction2(8,C,x.isExpandable(b),b.expanded)),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",x.isExpandable(b)),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(b.key),u.\u0275\u0275advance(3),u.\u0275\u0275property("ngIf",!b.expanded||!x.isExpandable(b)),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",b.expanded&&x.isExpandable(b))}}let I=(()=>{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(b=>{this.segments.push(this.parseKeyValue(b,this.json[b]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(b){return"object"===b.type||"array"===b.type}toggle(b){this.isExpandable(b)&&(b.expanded=!b.expanded)}parseKeyValue(b,x){const V={key:b,value:x,type:void 0,description:""+x,expanded:this.isExpanded()};switch(typeof V.value){case"number":V.type="number";break;case"boolean":V.type="boolean";break;case"function":V.type="function";break;case"string":V.type="string",V.description='"'+V.value+'"';break;case"undefined":V.type="undefined",V.description="undefined";break;case"object":null===V.value?(V.type="null",V.description="null"):Array.isArray(V.value)?(V.type="array",V.description="Array["+V.value.length+"] "+JSON.stringify(V.value)):V.value instanceof Date?V.type="date":(V.type="object",V.description="Object "+JSON.stringify(V.value))}return V}isExpanded(){return this.expanded&&!(this.depth>-1&&this._currentDepth>=this.depth)}decycle(b){const x=new WeakMap;return function V(fe,$){let le,Me;return"object"!=typeof fe||null===fe||fe instanceof Boolean||fe instanceof Date||fe instanceof Number||fe instanceof RegExp||fe instanceof String?fe:(le=x.get(fe),void 0!==le?{$ref:le}:(x.set(fe,$),Array.isArray(fe)?(Me=[],fe.forEach(function(pe,ye){Me[ye]=V(pe,$+"["+ye+"]")})):(Me={},Object.keys(fe).forEach(function(pe){Me[pe]=V(fe[pe],$+"["+JSON.stringify(pe)+"]")})),Me))}(b,"$")}}return A.\u0275fac=function(b){return new(b||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(b,x){1&b&&(u.\u0275\u0275elementStart(0,"section",0),u.\u0275\u0275template(1,D,9,11,"section",1),u.\u0275\u0275elementEnd()),2&b&&(u.\u0275\u0275advance(1),u.\u0275\u0275property("ngForOf",x.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(b){return new(b||A)},A.\u0275mod=u.\u0275\u0275defineNgModule({type:A}),A.\u0275inj=u.\u0275\u0275defineInjector({imports:[[i.CommonModule]]}),A})()},9802:(Le,g,l)=>{"use strict";l.r(g),l.d(g,{ArgumentOutOfRangeError:()=>_e,AsyncSubject:()=>$,BehaviorSubject:()=>x.X,ConnectableObservable:()=>_,EMPTY:()=>Ie.E,EmptyError:()=>me,NEVER:()=>v,NotFoundError:()=>Ye,Notification:()=>ve,NotificationKind:()=>nt,ObjectUnsubscribedError:()=>yt.N,Observable:()=>i.y,ReplaySubject:()=>fe,Scheduler:()=>J.b,SequenceError:()=>Ct,Subject:()=>b.x,Subscriber:()=>ae.Lv,Subscription:()=>u.w0,TimeoutError:()=>N,UnsubscriptionError:()=>ue.B,VirtualAction:()=>Pe,VirtualTimeScheduler:()=>q,animationFrame:()=>st.r,animationFrameScheduler:()=>st.Z,animationFrames:()=>h,asap:()=>le.e,asapScheduler:()=>le.E,async:()=>Me.P,asyncScheduler:()=>Me.z,audit:()=>di.U,auditTime:()=>Xn.e,bindCallback:()=>tt,bindNodeCallback:()=>ft,buffer:()=>Nn,bufferCount:()=>Bn,bufferTime:()=>H,bufferToggle:()=>Se,bufferWhen:()=>z,catchError:()=>Ae.K,combineAll:()=>On,combineLatest:()=>pt.a,combineLatestAll:()=>jt,combineLatestWith:()=>$n,concat:()=>wt.z,concatAll:()=>Un.u,concatMap:()=>Sn.b,concatMapTo:()=>kn,concatWith:()=>xn,config:()=>Hn.v,connect:()=>li,connectable:()=>Ht,count:()=>Kn,debounce:()=>Gn,debounceTime:()=>Ci.b,defaultIfEmpty:()=>Mi,defer:()=>$t.P,delay:()=>hi.g,delayWhen:()=>Wn.j,dematerialize:()=>Sr,distinct:()=>nr,distinctUntilChanged:()=>mr.x,distinctUntilKeyChanged:()=>Qn,elementAt:()=>Lr,empty:()=>Ie.c,endWith:()=>Wi,every:()=>Ir,exhaust:()=>zi,exhaustAll:()=>Si,exhaustMap:()=>gr,expand:()=>Pr,filter:()=>je.h,finalize:()=>Ar.x,find:()=>Ki,findIndex:()=>Gi,first:()=>Or,firstValueFrom:()=>Re,flatMap:()=>wi,forkJoin:()=>En.D,from:()=>sn.D,fromEvent:()=>zt.R,fromEventPattern:()=>St,generate:()=>Zt,groupBy:()=>Pi,identity:()=>Fe.y,ignoreElements:()=>fi.l,iif:()=>an,interval:()=>ce,isEmpty:()=>Ai,isObservable:()=>Je.b,last:()=>Qi,lastValueFrom:()=>we,map:()=>ci.U,mapTo:()=>mi.h,materialize:()=>ir,max:()=>rr,merge:()=>L.T,mergeAll:()=>Oi.J,mergeMap:()=>qe.z,mergeMapTo:()=>xi,mergeScan:()=>Zi,mergeWith:()=>Ri,min:()=>or,multicast:()=>Fi,never:()=>S,noop:()=>Tt.Z,observable:()=>C.L,observeOn:()=>Ce.Q,of:()=>ie.of,onErrorResumeNext:()=>Dt,pairs:()=>Kt,pairwise:()=>Yi,partition:()=>Ue,pipe:()=>ct.z,pluck:()=>ki,publish:()=>xr,publishBehavior:()=>Rn,publishLast:()=>sr,publishReplay:()=>ar,queue:()=>Xe,queueScheduler:()=>ke,race:()=>he,raceWith:()=>Ln,range:()=>ht,reduce:()=>It,refCount:()=>s,repeat:()=>R,repeatWhen:()=>Q,retry:()=>F,retryWhen:()=>ne,sample:()=>ze,sampleTime:()=>ut,scan:()=>bt,scheduled:()=>Dn.x,sequenceEqual:()=>Ft,share:()=>Mn.B,shareReplay:()=>In,single:()=>fn,skip:()=>k.T,skipLast:()=>O,skipUntil:()=>E,skipWhile:()=>X,startWith:()=>lt.O,subscribeOn:()=>be.R,switchAll:()=>Pn,switchMap:()=>Vt.w,switchMapTo:()=>qn,switchScan:()=>gi,take:()=>Ui.q,takeLast:()=>pi,takeUntil:()=>Ni.R,takeWhile:()=>Mt,tap:()=>j.b,throttle:()=>p,throttleTime:()=>P,throwError:()=>Ke._,throwIfEmpty:()=>Zn,timeInterval:()=>U,timeout:()=>oe,timeoutWith:()=>Ne,timer:()=>Ge.H,timestamp:()=>He,toArray:()=>qt,using:()=>Bt,window:()=>ot,windowCount:()=>mt,windowTime:()=>xt,windowToggle:()=>Wt,windowWhen:()=>Yt,withLatestFrom:()=>ln,zip:()=>dn,zipAll:()=>Jt,zipWith:()=>pn});var i=l(9751),u=l(6921),m=l(4482),c=l(5403);function s(){return(0,m.e)((ee,W)=>{let Z=null;ee._refCount++;const te=new c.Q(W,void 0,void 0,void 0,()=>{if(!ee||ee._refCount<=0||0<--ee._refCount)return void(Z=null);const xe=ee._connection,Be=Z;Z=null,xe&&(!Be||xe===Be)&&xe.unsubscribe(),W.unsubscribe()});ee.subscribe(te),te.closed||(Z=ee.connect())})}class _ extends i.y{constructor(W,Z){super(),this.source=W,this.subjectFactory=Z,this._subject=null,this._refCount=0,this._connection=null,(0,m.A)(W)&&(this.lift=W.lift)}_subscribe(W){return this.getSubject().subscribe(W)}getSubject(){const W=this._subject;return(!W||W.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:W}=this;this._subject=this._connection=null,null==W||W.unsubscribe()}connect(){let W=this._connection;if(!W){W=this._connection=new u.w0;const Z=this.getSubject();W.add(this.source.subscribe(new c.Q(Z,void 0,()=>{this._teardown(),Z.complete()},te=>{this._teardown(),Z.error(te)},()=>this._teardown()))),W.closed&&(this._connection=null,W=u.w0.EMPTY)}return W}refCount(){return s()(this)}}var C=l(8822);const D={now:()=>(D.delegate||performance).now(),delegate:void 0};var I=l(3399);function h(ee){return ee?A(ee):T}function A(ee){const{schedule:W}=I.l;return new i.y(Z=>{const te=new u.w0,xe=ee||D,Be=xe.now(),et=vt=>{const _t=xe.now();Z.next({timestamp:ee?_t:vt,elapsed:_t-Be}),Z.closed||te.add(W(et))};return te.add(W(et)),te})}const T=A();var b=l(6758),x=l(1135),V=l(6063);class fe extends b.x{constructor(W=1/0,Z=1/0,te=V.l){super(),this._bufferSize=W,this._windowTime=Z,this._timestampProvider=te,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=Z===1/0,this._bufferSize=Math.max(1,W),this._windowTime=Math.max(1,Z)}next(W){const{isStopped:Z,_buffer:te,_infiniteTimeWindow:xe,_timestampProvider:Be,_windowTime:et}=this;Z||(te.push(W),!xe&&te.push(Be.now()+et)),this._trimBuffer(),super.next(W)}_subscribe(W){this._throwIfClosed(),this._trimBuffer();const Z=this._innerSubscribe(W),{_infiniteTimeWindow:te,_buffer:xe}=this,Be=xe.slice();for(let et=0;et<Be.length&&!W.closed;et+=te?1:2)W.next(Be[et]);return this._checkFinalizedStatuses(W),Z}_trimBuffer(){const{_bufferSize:W,_timestampProvider:Z,_buffer:te,_infiniteTimeWindow:xe}=this,Be=(xe?1:2)*W;if(W<1/0&&Be<te.length&&te.splice(0,te.length-Be),!xe){const et=Z.now();let vt=0;for(let _t=1;_t<te.length&&te[_t]<=et;_t+=2)vt=_t;vt&&te.splice(0,vt+1)}}}class $ extends b.x{constructor(){super(...arguments),this._value=null,this._hasValue=!1,this._isComplete=!1}_checkFinalizedStatuses(W){const{hasError:Z,_hasValue:te,_value:xe,thrownError:Be,isStopped:et,_isComplete:vt}=this;Z?W.error(Be):(et||vt)&&(te&&W.next(xe),W.complete())}next(W){this.isStopped||(this._value=W,this._hasValue=!0)}complete(){const{_hasValue:W,_value:Z,_isComplete:te}=this;te||(this._isComplete=!0,W&&super.next(Z),super.complete())}}var le=l(3101),Me=l(4986),pe=l(4408),se=l(8950);const ke=new class De extends se.v{}(class ye extends pe.o{constructor(W,Z){super(W,Z),this.scheduler=W,this.work=Z}schedule(W,Z=0){return Z>0?super.schedule(W,Z):(this.delay=Z,this.state=W,this.scheduler.flush(this),this)}execute(W,Z){return Z>0||this.closed?super.execute(W,Z):this._execute(W,Z)}requestAsyncId(W,Z,te=0){return null!=te&&te>0||null==te&&this.delay>0?super.requestAsyncId(W,Z,te):W.flush(this)}}),Xe=ke;var st=l(29);let q=(()=>{class ee extends se.v{constructor(Z=Pe,te=1/0){super(Z,()=>this.frame),this.maxFrames=te,this.frame=0,this.index=-1}flush(){const{actions:Z,maxFrames:te}=this;let xe,Be;for(;(Be=Z[0])&&Be.delay<=te&&(Z.shift(),this.frame=Be.delay,!(xe=Be.execute(Be.state,Be.delay))););if(xe){for(;Be=Z.shift();)Be.unsubscribe();throw xe}}}return ee.frameTimeFactor=10,ee})();class Pe extends pe.o{constructor(W,Z,te=(W.index+=1)){super(W,Z),this.scheduler=W,this.work=Z,this.index=te,this.active=!0,this.index=W.index=te}schedule(W,Z=0){if(Number.isFinite(Z)){if(!this.id)return super.schedule(W,Z);this.active=!1;const te=new Pe(this.scheduler,this.work);return this.add(te),te.schedule(W,Z)}return u.w0.EMPTY}requestAsyncId(W,Z,te=0){this.delay=W.frame+te;const{actions:xe}=W;return xe.push(this),xe.sort(Pe.sortActions),!0}recycleAsyncId(W,Z,te=0){}_execute(W,Z){if(!0===this.active)return super._execute(W,Z)}static sortActions(W,Z){return W.delay===Z.delay?W.index===Z.index?0:W.index>Z.index?1:-1:W.delay>Z.delay?1:-1}}var J=l(6646),ae=l(930),Ie=l(515),ie=l(9646),Ke=l(2843),ge=l(576),nt=(()=>{return(ee=nt||(nt={})).NEXT="N",ee.ERROR="E",ee.COMPLETE="C",nt;var ee})();class ve{constructor(W,Z,te){this.kind=W,this.value=Z,this.error=te,this.hasValue="N"===W}observe(W){return $e(this,W)}do(W,Z,te){const{kind:xe,value:Be,error:et}=this;return"N"===xe?null==W?void 0:W(Be):"E"===xe?null==Z?void 0:Z(et):null==te?void 0:te()}accept(W,Z,te){var xe;return(0,ge.m)(null===(xe=W)||void 0===xe?void 0:xe.next)?this.observe(W):this.do(W,Z,te)}toObservable(){const{kind:W,value:Z,error:te}=this,xe="N"===W?(0,ie.of)(Z):"E"===W?(0,Ke._)(()=>te):"C"===W?Ie.E:0;if(!xe)throw new TypeError(`Unexpected notification kind ${W}`);return xe}static createNext(W){return new ve("N",W)}static createError(W){return new ve("E",void 0,W)}static createComplete(){return ve.completeNotification}}function $e(ee,W){var Z,te,xe;const{kind:Be,value:et,error:vt}=ee;if("string"!=typeof Be)throw new TypeError('Invalid notification, missing "kind"');"N"===Be?null===(Z=W.next)||void 0===Z||Z.call(W,et):"E"===Be?null===(te=W.error)||void 0===te||te.call(W,vt):null===(xe=W.complete)||void 0===xe||xe.call(W)}ve.completeNotification=new ve("C");var ct=l(9635),Tt=l(5032),Fe=l(4671),Je=l(5191),Y=l(3888);const me=(0,Y.d)(ee=>function(){ee(this),this.name="EmptyError",this.message="no elements in sequence"});function we(ee,W){const Z="object"==typeof W;return new Promise((te,xe)=>{let et,Be=!1;ee.subscribe({next:vt=>{et=vt,Be=!0},error:xe,complete:()=>{Be?te(et):Z?te(W.defaultValue):xe(new me)}})})}function Re(ee,W){const Z="object"==typeof W;return new Promise((te,xe)=>{const Be=new ae.Hp({next:et=>{te(et),Be.unsubscribe()},error:xe,complete:()=>{Z?te(W.defaultValue):xe(new me)}});ee.subscribe(Be)})}const _e=(0,Y.d)(ee=>function(){ee(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}),Ye=(0,Y.d)(ee=>function(Z){ee(this),this.name="NotFoundError",this.message=Z});var yt=l(7448);const Ct=(0,Y.d)(ee=>function(Z){ee(this),this.name="SequenceError",this.message=Z});var Ot=l(1165),dt=l(8421),Qe=l(9672);const N=(0,Y.d)(ee=>function(Z=null){ee(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=Z});function oe(ee,W){const{first:Z,each:te,with:xe=Oe,scheduler:Be=(null!=W?W:Me.z),meta:et=null}=(0,Ot.q)(ee)?{first:ee}:"number"==typeof ee?{each:ee}:ee;if(null==Z&&null==te)throw new TypeError("No timeout provided.");return(0,m.e)((vt,_t)=>{let Ut,Qt,yn=null,un=0;const wn=_n=>{Qt=(0,Qe.f)(_t,Be,()=>{try{Ut.unsubscribe(),(0,dt.Xf)(xe({meta:et,lastValue:yn,seen:un})).subscribe(_t)}catch(Pt){_t.error(Pt)}},_n)};Ut=vt.subscribe(new c.Q(_t,_n=>{null==Qt||Qt.unsubscribe(),un++,_t.next(yn=_n),te>0&&wn(te)},void 0,void 0,()=>{(null==Qt?void 0:Qt.closed)||null==Qt||Qt.unsubscribe(),yn=null})),wn(null!=Z?"number"==typeof Z?Z:+Z-Be.now():te)})}function Oe(ee){throw new N(ee)}var ue=l(7896),Te=l(3532),be=l(9468),re=l(3268),Ce=l(5363);function Ze(ee,W,Z,te){if(Z){if(!(0,Te.K)(Z))return function(...xe){return Ze(ee,W,te).apply(this,xe).pipe((0,re.Z)(Z))};te=Z}return te?function(...xe){return Ze(ee,W).apply(this,xe).pipe((0,be.R)(te),(0,Ce.Q)(te))}:function(...xe){const Be=new $;let et=!0;return new i.y(vt=>{const _t=Be.subscribe(vt);if(et){et=!1;let Ut=!1,Qt=!1;W.apply(this,[...xe,(...yn)=>{if(ee){const un=yn.shift();if(null!=un)return void Be.error(un)}Be.next(1<yn.length?yn:yn[0]),Qt=!0,Ut&&Be.complete()}]),Qt&&Be.complete(),Ut=!0}return _t})}}function tt(ee,W,Z){return Ze(!1,ee,W,Z)}function ft(ee,W,Z){return Ze(!0,ee,W,Z)}var pt=l(9841),wt=l(1350),$t=l(9770);const nn={connector:()=>new b.x,resetOnDisconnect:!0};function Ht(ee,W=nn){let Z=null;const{connector:te,resetOnDisconnect:xe=!0}=W;let Be=te();const et=new i.y(vt=>Be.subscribe(vt));return et.connect=()=>((!Z||Z.closed)&&(Z=(0,$t.P)(()=>ee).subscribe(Be),xe&&Z.add(()=>Be=te())),Z),et}var En=l(4128),sn=l(188),zt=l(4968);function St(ee,W,Z){return Z?St(ee,W).pipe((0,re.Z)(Z)):new i.y(te=>{const xe=(...et)=>te.next(1===et.length?et[0]:et),Be=ee(xe);return(0,ge.m)(W)?()=>W(xe,Be):void 0})}var bn=l(6340);function Zt(ee,W,Z,te,xe){let Be,et;function*vt(){for(let _t=et;!W||W(_t);_t=Z(_t))yield Be(_t)}return 1===arguments.length?({initialState:et,condition:W,iterate:Z,resultSelector:Be=Fe.y,scheduler:xe}=ee):(et=ee,!te||(0,Te.K)(te)?(Be=Fe.y,xe=te):Be=te),(0,$t.P)(xe?()=>(0,bn.Q)(vt(),xe):vt)}function an(ee,W,Z){return(0,$t.P)(()=>ee()?W:Z)}var Ge=l(2805);function ce(ee=0,W=Me.z){return ee<0&&(ee=0),(0,Ge.H)(ee,ee,W)}var L=l(6451);const v=new i.y(Tt.Z);function S(){return v}const{isArray:M}=Array;function G(ee){return 1===ee.length&&M(ee[0])?ee[0]:ee}function Dt(...ee){return function rt(...ee){const W=G(ee);return(0,m.e)((Z,te)=>{const xe=[Z,...W],Be=()=>{if(!te.closed)if(xe.length>0){let et;try{et=(0,dt.Xf)(xe.shift())}catch(_t){return void Be()}const vt=new c.Q(te,void 0,Tt.Z,Tt.Z);te.add(et.subscribe(vt)),vt.add(Be)}else te.complete()};Be()})}(G(ee))(Ie.E)}function Kt(ee,W){return(0,sn.D)(Object.entries(ee),W)}function rn(ee,W){return(Z,te)=>!ee.call(W,Z,te)}var je=l(9300);function Ue(ee,W,Z){return[(0,je.h)(W,Z)((0,dt.Xf)(ee)),(0,je.h)(rn(W,Z))((0,dt.Xf)(ee))]}function he(...ee){return 1===(ee=G(ee)).length?(0,dt.Xf)(ee[0]):new i.y(Ve(ee))}function Ve(ee){return W=>{let Z=[];for(let te=0;Z&&!W.closed&&te<ee.length;te++)Z.push((0,dt.Xf)(ee[te]).subscribe(new c.Q(W,xe=>{if(Z){for(let Be=0;Be<Z.length;Be++)Be!==te&&Z[Be].unsubscribe();Z=null}W.next(xe)})))}}function ht(ee,W,Z){if(null==W&&(W=ee,ee=0),W<=0)return Ie.E;const te=W+ee;return new i.y(Z?xe=>{let Be=ee;return Z.schedule(function(){Be<te?(xe.next(Be++),this.schedule()):xe.complete()})}:xe=>{let Be=ee;for(;Be<te&&!xe.closed;)xe.next(Be++);xe.complete()})}function Bt(ee,W){return new i.y(Z=>{const te=ee(),xe=W(te);return(xe?(0,dt.Xf)(xe):Ie.E).subscribe(Z),()=>{te&&te.unsubscribe()}})}var Nt=l(3269);function dn(...ee){const W=(0,Nt.jO)(ee),Z=G(ee);return Z.length?new i.y(te=>{let xe=Z.map(()=>[]),Be=Z.map(()=>!1);te.add(()=>{xe=Be=null});for(let et=0;!te.closed&&et<Z.length;et++)(0,dt.Xf)(Z[et]).subscribe(new c.Q(te,vt=>{if(xe[et].push(vt),xe.every(_t=>_t.length)){const _t=xe.map(Ut=>Ut.shift());te.next(W?W(..._t):_t),xe.some((Ut,Qt)=>!Ut.length&&Be[Qt])&&te.complete()}},()=>{Be[et]=!0,!xe[et].length&&te.complete()}));return()=>{xe=Be=null}}):Ie.E}var Dn=l(3762),Hn=l(2416),di=l(5615),Xn=l(453);function Nn(ee){return(0,m.e)((W,Z)=>{let te=[];return W.subscribe(new c.Q(Z,xe=>te.push(xe),()=>{Z.next(te),Z.complete()})),ee.subscribe(new c.Q(Z,()=>{const xe=te;te=[],Z.next(xe)},Tt.Z)),()=>{te=null}})}var zn=l(8737);function Bn(ee,W=null){return W=null!=W?W:ee,(0,m.e)((Z,te)=>{let xe=[],Be=0;Z.subscribe(new c.Q(te,et=>{let vt=null;Be++%W==0&&xe.push([]);for(const _t of xe)_t.push(et),ee<=_t.length&&(vt=null!=vt?vt:[],vt.push(_t));if(vt)for(const _t of vt)(0,zn.P)(xe,_t),te.next(_t)},()=>{for(const et of xe)te.next(et);te.complete()},void 0,()=>{xe=null}))})}function H(ee,...W){var Z,te;const xe=null!==(Z=(0,Nt.yG)(W))&&void 0!==Z?Z:Me.z,Be=null!==(te=W[0])&&void 0!==te?te:null,et=W[1]||1/0;return(0,m.e)((vt,_t)=>{let Ut=[],Qt=!1;const yn=_n=>{const{buffer:Pt,subs:Rt}=_n;Rt.unsubscribe(),(0,zn.P)(Ut,_n),_t.next(Pt),Qt&&un()},un=()=>{if(Ut){const _n=new u.w0;_t.add(_n);const Rt={buffer:[],subs:_n};Ut.push(Rt),(0,Qe.f)(_n,xe,()=>yn(Rt),ee)}};null!==Be&&Be>=0?(0,Qe.f)(_t,xe,un,Be,!0):Qt=!0,un();const wn=new c.Q(_t,_n=>{const Pt=Ut.slice();for(const Rt of Pt){const{buffer:Xt}=Rt;Xt.push(_n),et<=Xt.length&&yn(Rt)}},()=>{for(;null==Ut?void 0:Ut.length;)_t.next(Ut.shift().buffer);null==wn||wn.unsubscribe(),_t.complete(),_t.unsubscribe()},void 0,()=>Ut=null);vt.subscribe(wn)})}function Se(ee,W){return(0,m.e)((Z,te)=>{const xe=[];(0,dt.Xf)(ee).subscribe(new c.Q(te,Be=>{const et=[];xe.push(et);const vt=new u.w0;vt.add((0,dt.Xf)(W(Be)).subscribe(new c.Q(te,()=>{(0,zn.P)(xe,et),te.next(et),vt.unsubscribe()},Tt.Z)))},Tt.Z)),Z.subscribe(new c.Q(te,Be=>{for(const et of xe)et.push(Be)},()=>{for(;xe.length>0;)te.next(xe.shift());te.complete()}))})}function z(ee){return(0,m.e)((W,Z)=>{let te=null,xe=null;const Be=()=>{null==xe||xe.unsubscribe();const et=te;te=[],et&&Z.next(et),(0,dt.Xf)(ee()).subscribe(xe=new c.Q(Z,Be,Tt.Z))};Be(),W.subscribe(new c.Q(Z,et=>null==te?void 0:te.push(et),()=>{te&&Z.next(te),Z.complete()},void 0,()=>te=xe=null))})}var Ae=l(262),qe=l(6099);function at(ee,W,Z,te,xe){return(Be,et)=>{let vt=Z,_t=W,Ut=0;Be.subscribe(new c.Q(et,Qt=>{const yn=Ut++;_t=vt?ee(_t,Qt,yn):(vt=!0,Qt),te&&et.next(_t)},xe&&(()=>{vt&&et.next(_t),et.complete()})))}}function It(ee,W){return(0,m.e)(at(ee,W,arguments.length>=2,!1,!0))}const Lt=(ee,W)=>(ee.push(W),ee);function qt(){return(0,m.e)((ee,W)=>{It(Lt,[])(ee).subscribe(W)})}function vn(ee,W){return(0,ct.z)(qt(),(0,qe.z)(Z=>ee(Z)),W?(0,re.Z)(W):Fe.y)}function jt(ee){return vn(pt.a,ee)}const On=jt;function hn(...ee){const W=(0,Nt.jO)(ee);return W?(0,ct.z)(hn(...ee),(0,re.Z)(W)):(0,m.e)((Z,te)=>{(0,pt.l)([Z,...G(ee)])(te)})}function $n(...ee){return hn(...ee)}var Un=l(7886),Sn=l(4351);function kn(ee,W){return(0,ge.m)(W)?(0,Sn.b)(()=>ee,W):(0,Sn.b)(()=>ee)}function xn(...ee){return function ai(...ee){const W=(0,Nt.yG)(ee);return(0,m.e)((Z,te)=>{(0,Un.u)()((0,sn.D)([Z,...ee],W)).subscribe(te)})}(...ee)}const ni={connector:()=>new b.x};function li(ee,W=ni){const{connector:Z}=W;return(0,m.e)((te,xe)=>{const Be=Z();(0,sn.D)(ee(function gn(ee){return new i.y(W=>ee.subscribe(W))}(Be))).subscribe(xe),xe.add(te.subscribe(Be))})}function Kn(ee){return It((W,Z,te)=>!ee||ee(Z,te)?W+1:W,0)}function Gn(ee){return(0,m.e)((W,Z)=>{let te=!1,xe=null,Be=null;const et=()=>{if(null==Be||Be.unsubscribe(),Be=null,te){te=!1;const vt=xe;xe=null,Z.next(vt)}};W.subscribe(new c.Q(Z,vt=>{null==Be||Be.unsubscribe(),te=!0,xe=vt,Be=new c.Q(Z,et,Tt.Z),(0,dt.Xf)(ee(vt)).subscribe(Be)},()=>{et(),Z.complete()},void 0,()=>{xe=Be=null}))})}var Ci=l(8372);function Mi(ee){return(0,m.e)((W,Z)=>{let te=!1;W.subscribe(new c.Q(Z,xe=>{te=!0,Z.next(xe)},()=>{te||Z.next(ee),Z.complete()}))})}var hi=l(4326),Wn=l(1260);function Sr(){return(0,m.e)((ee,W)=>{ee.subscribe(new c.Q(W,Z=>$e(Z,W)))})}function nr(ee,W){return(0,m.e)((Z,te)=>{const xe=new Set;Z.subscribe(new c.Q(te,Be=>{const et=ee?ee(Be):Be;xe.has(et)||(xe.add(et),te.next(Be))})),null==W||W.subscribe(new c.Q(te,()=>xe.clear(),Tt.Z))})}var mr=l(1884);function Qn(ee,W){return(0,mr.x)((Z,te)=>W?W(Z[ee],te[ee]):Z[ee]===te[ee])}function Zn(ee=Ei){return(0,m.e)((W,Z)=>{let te=!1;W.subscribe(new c.Q(Z,xe=>{te=!0,Z.next(xe)},()=>te?Z.complete():Z.error(ee())))})}function Ei(){return new me}var Ui=l(5698);function Lr(ee,W){if(ee<0)throw new _e;const Z=arguments.length>=2;return te=>te.pipe((0,je.h)((xe,Be)=>Be===ee),(0,Ui.q)(1),Z?Mi(W):Zn(()=>new _e))}function Wi(...ee){return W=>(0,wt.z)(W,(0,ie.of)(...ee))}function Ir(ee,W){return(0,m.e)((Z,te)=>{let xe=0;Z.subscribe(new c.Q(te,Be=>{ee.call(W,Be,xe++,Z)||(te.next(!1),te.complete())},()=>{te.next(!0),te.complete()}))})}function Si(){return(0,m.e)((ee,W)=>{let Z=!1,te=null;ee.subscribe(new c.Q(W,xe=>{te||(te=(0,dt.Xf)(xe).subscribe(new c.Q(W,void 0,()=>{te=null,Z&&W.complete()})))},()=>{Z=!0,!te&&W.complete()}))})}const zi=Si;var ci=l(4004);function gr(ee,W){return W?Z=>Z.pipe(gr((te,xe)=>(0,dt.Xf)(ee(te,xe)).pipe((0,ci.U)((Be,et)=>W(te,Be,xe,et))))):(0,m.e)((Z,te)=>{let xe=0,Be=null,et=!1;Z.subscribe(new c.Q(te,vt=>{Be||(Be=new c.Q(te,void 0,()=>{Be=null,et&&te.complete()}),(0,dt.Xf)(ee(vt,xe++)).subscribe(Be))},()=>{et=!0,!Be&&te.complete()}))})}var Di=l(2733);function Pr(ee,W=1/0,Z){return W=(W||0)<1?1/0:W,(0,m.e)((te,xe)=>(0,Di.p)(te,xe,ee,W,void 0,!0,Z))}var Ar=l(8746);function Ki(ee,W){return(0,m.e)(Ii(ee,W,"value"))}function Ii(ee,W,Z){const te="index"===Z;return(xe,Be)=>{let et=0;xe.subscribe(new c.Q(Be,vt=>{const _t=et++;ee.call(W,vt,_t,xe)&&(Be.next(te?_t:vt),Be.complete())},()=>{Be.next(te?-1:void 0),Be.complete()}))}}function Gi(ee,W){return(0,m.e)(Ii(ee,W,"index"))}function Or(ee,W){const Z=arguments.length>=2;return te=>te.pipe(ee?(0,je.h)((xe,Be)=>ee(xe,Be,te)):Fe.y,(0,Ui.q)(1),Z?Mi(W):Zn(()=>new me))}function Pi(ee,W,Z,te){return(0,m.e)((xe,Be)=>{let et;W&&"function"!=typeof W?({duration:Z,element:et,connector:te}=W):et=W;const vt=new Map,_t=un=>{vt.forEach(un),un(Be)},Ut=un=>_t(wn=>wn.error(un)),Qt=new _r(Be,un=>{try{const wn=ee(un);let _n=vt.get(wn);if(!_n){vt.set(wn,_n=te?te():new b.x);const Pt=function yn(un,wn){const _n=new i.y(Pt=>{Qt.activeGroups++;const Rt=wn.subscribe(Pt);return()=>{Rt.unsubscribe(),0==--Qt.activeGroups&&Qt.teardownAttempted&&Qt.unsubscribe()}});return _n.key=un,_n}(wn,_n);if(Be.next(Pt),Z){const Rt=new c.Q(_n,()=>{_n.complete(),null==Rt||Rt.unsubscribe()},void 0,void 0,()=>vt.delete(wn));Qt.add((0,dt.Xf)(Z(Pt)).subscribe(Rt))}}_n.next(et?et(un):un)}catch(wn){Ut(wn)}},()=>_t(un=>un.complete()),Ut,()=>vt.clear());xe.subscribe(Qt)})}class _r extends c.Q{constructor(){super(...arguments),this.activeGroups=0,this.teardownAttempted=!1}unsubscribe(){this.teardownAttempted=!0,0===this.activeGroups&&super.unsubscribe()}}var fi=l(8502);function Ai(){return(0,m.e)((ee,W)=>{ee.subscribe(new c.Q(W,()=>{W.next(!1),W.complete()},()=>{W.next(!0),W.complete()}))})}function pi(ee){return ee<=0?()=>Ie.E:(0,m.e)((W,Z)=>{let te=[];W.subscribe(new c.Q(Z,xe=>{te.push(xe),ee<te.length&&te.shift()},()=>{for(const xe of te)Z.next(xe);Z.complete()},void 0,()=>{te=null}))})}function Qi(ee,W){const Z=arguments.length>=2;return te=>te.pipe(ee?(0,je.h)((xe,Be)=>ee(xe,Be,te)):Fe.y,pi(1),Z?Mi(W):Zn(()=>new me))}var mi=l(9718);function ir(){return(0,m.e)((ee,W)=>{ee.subscribe(new c.Q(W,Z=>{W.next(ve.createNext(Z))},()=>{W.next(ve.createComplete()),W.complete()},Z=>{W.next(ve.createError(Z)),W.complete()}))})}function rr(ee){return It((0,ge.m)(ee)?(W,Z)=>ee(W,Z)>0?W:Z:(W,Z)=>W>Z?W:Z)}var Oi=l(8189);const wi=qe.z;function xi(ee,W,Z=1/0){return(0,ge.m)(W)?(0,qe.z)(()=>ee,W,Z):("number"==typeof W&&(Z=W),(0,qe.z)(()=>ee,Z))}function Zi(ee,W,Z=1/0){return(0,m.e)((te,xe)=>{let Be=W;return(0,Di.p)(te,xe,(et,vt)=>ee(Be,et,vt),Z,et=>{Be=et},!1,void 0,()=>Be=null)})}function Ri(...ee){return function ti(...ee){const W=(0,Nt.yG)(ee),Z=(0,Nt._6)(ee,1/0);return ee=G(ee),(0,m.e)((te,xe)=>{(0,Oi.J)(Z)((0,sn.D)([te,...ee],W)).subscribe(xe)})}(...ee)}function or(ee){return It((0,ge.m)(ee)?(W,Z)=>ee(W,Z)<0?W:Z:(W,Z)=>W<Z?W:Z)}function Fi(ee,W){const Z=(0,ge.m)(ee)?ee:()=>ee;return(0,ge.m)(W)?li(W,{connector:Z}):te=>new _(te,Z)}function Yi(){return(0,m.e)((ee,W)=>{let Z,te=!1;ee.subscribe(new c.Q(W,xe=>{const Be=Z;Z=xe,te&&W.next([Be,xe]),te=!0}))})}function ki(...ee){const W=ee.length;if(0===W)throw new Error("list of properties cannot be empty.");return(0,ci.U)(Z=>{let te=Z;for(let xe=0;xe<W;xe++){const Be=null==te?void 0:te[ee[xe]];if(void 0===Be)return;te=Be}return te})}function xr(ee){return ee?W=>li(ee)(W):W=>Fi(new b.x)(W)}function Rn(ee){return W=>{const Z=new x.X(ee);return new _(W,()=>Z)}}function sr(){return ee=>{const W=new $;return new _(ee,()=>W)}}function ar(ee,W,Z,te){Z&&!(0,ge.m)(Z)&&(te=Z);const xe=(0,ge.m)(Z)?Z:void 0;return Be=>Fi(new fe(ee,W,te),xe)(Be)}function Ln(...ee){return ee.length?(0,m.e)((W,Z)=>{Ve([W,...ee])(Z)}):Fe.y}function R(ee){let Z,W=1/0;return null!=ee&&("object"==typeof ee?({count:W=1/0,delay:Z}=ee):W=ee),W<=0?()=>Ie.E:(0,m.e)((te,xe)=>{let et,Be=0;const vt=()=>{if(null==et||et.unsubscribe(),et=null,null!=Z){const Ut="number"==typeof Z?(0,Ge.H)(Z):(0,dt.Xf)(Z(Be)),Qt=new c.Q(xe,()=>{Qt.unsubscribe(),_t()});Ut.subscribe(Qt)}else _t()},_t=()=>{let Ut=!1;et=te.subscribe(new c.Q(xe,void 0,()=>{++Be<W?et?vt():Ut=!0:xe.complete()})),Ut&&vt()};_t()})}function Q(ee){return(0,m.e)((W,Z)=>{let te,Be,xe=!1,et=!1,vt=!1;const _t=()=>vt&&et&&(Z.complete(),!0),Qt=()=>{vt=!1,te=W.subscribe(new c.Q(Z,void 0,()=>{vt=!0,!_t()&&(Be||(Be=new b.x,ee(Be).subscribe(new c.Q(Z,()=>{te?Qt():xe=!0},()=>{et=!0,_t()}))),Be).next()})),xe&&(te.unsubscribe(),te=null,xe=!1,Qt())};Qt()})}function F(ee=1/0){let W;W=ee&&"object"==typeof ee?ee:{count:ee};const{count:Z=1/0,delay:te,resetOnSuccess:xe=!1}=W;return Z<=0?Fe.y:(0,m.e)((Be,et)=>{let _t,vt=0;const Ut=()=>{let Qt=!1;_t=Be.subscribe(new c.Q(et,yn=>{xe&&(vt=0),et.next(yn)},void 0,yn=>{if(vt++<Z){const un=()=>{_t?(_t.unsubscribe(),_t=null,Ut()):Qt=!0};if(null!=te){const wn="number"==typeof te?(0,Ge.H)(te):(0,dt.Xf)(te(yn,vt)),_n=new c.Q(et,()=>{_n.unsubscribe(),un()},()=>{et.complete()});wn.subscribe(_n)}else un()}else et.error(yn)})),Qt&&(_t.unsubscribe(),_t=null,Ut())};Ut()})}function ne(ee){return(0,m.e)((W,Z)=>{let te,Be,xe=!1;const et=()=>{te=W.subscribe(new c.Q(Z,void 0,void 0,vt=>{Be||(Be=new b.x,ee(Be).subscribe(new c.Q(Z,()=>te?et():xe=!0))),Be&&Be.next(vt)})),xe&&(te.unsubscribe(),te=null,xe=!1,et())};et()})}function ze(ee){return(0,m.e)((W,Z)=>{let te=!1,xe=null;W.subscribe(new c.Q(Z,et=>{te=!0,xe=et})),ee.subscribe(new c.Q(Z,()=>{if(te){te=!1;const et=xe;xe=null,Z.next(et)}},Tt.Z))})}function ut(ee,W=Me.z){return ze(ce(ee,W))}function bt(ee,W){return(0,m.e)(at(ee,W,arguments.length>=2,!0))}function Ft(ee,W=((Z,te)=>Z===te)){return(0,m.e)((Z,te)=>{const xe={buffer:[],complete:!1},Be={buffer:[],complete:!1},et=_t=>{te.next(_t),te.complete()},vt=(_t,Ut)=>{const Qt=new c.Q(te,yn=>{const{buffer:un,complete:wn}=Ut;0===un.length?wn?et(!1):_t.buffer.push(yn):!W(yn,un.shift())&&et(!1)},()=>{_t.complete=!0;const{complete:yn,buffer:un}=Ut;yn&&et(0===un.length),null==Qt||Qt.unsubscribe()});return Qt};Z.subscribe(vt(xe,Be)),ee.subscribe(vt(Be,xe))})}var Mn=l(3099);function In(ee,W,Z){var te,xe;let Be,et=!1;return ee&&"object"==typeof ee?(Be=null!==(te=ee.bufferSize)&&void 0!==te?te:1/0,W=null!==(xe=ee.windowTime)&&void 0!==xe?xe:1/0,et=!!ee.refCount,Z=ee.scheduler):Be=null!=ee?ee:1/0,(0,Mn.B)({connector:()=>new fe(Be,W,Z),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:et})}function fn(ee){return(0,m.e)((W,Z)=>{let xe,te=!1,Be=!1,et=0;W.subscribe(new c.Q(Z,vt=>{Be=!0,(!ee||ee(vt,et++,W))&&(te&&Z.error(new Ct("Too many matching values")),te=!0,xe=vt)},()=>{te?(Z.next(xe),Z.complete()):Z.error(Be?new Ye("No matching values"):new me)}))})}var k=l(5684);function O(ee){return ee<=0?Fe.y:(0,m.e)((W,Z)=>{let te=new Array(ee),xe=0;return W.subscribe(new c.Q(Z,Be=>{const et=xe++;if(et<ee)te[et]=Be;else{const vt=et%ee,_t=te[vt];te[vt]=Be,Z.next(_t)}})),()=>{te=null}})}function E(ee){return(0,m.e)((W,Z)=>{let te=!1;const xe=new c.Q(Z,()=>{null==xe||xe.unsubscribe(),te=!0},Tt.Z);(0,dt.Xf)(ee).subscribe(xe),W.subscribe(new c.Q(Z,Be=>te&&Z.next(Be)))})}function X(ee){return(0,m.e)((W,Z)=>{let te=!1,xe=0;W.subscribe(new c.Q(Z,Be=>(te||(te=!ee(Be,xe++)))&&Z.next(Be)))})}var lt=l(8675),Vt=l(3900);function Pn(){return(0,Vt.w)(Fe.y)}function qn(ee,W){return(0,ge.m)(W)?(0,Vt.w)(()=>ee,W):(0,Vt.w)(()=>ee)}function gi(ee,W){return(0,m.e)((Z,te)=>{let xe=W;return(0,Vt.w)((Be,et)=>ee(xe,Be,et),(Be,et)=>(xe=et,et))(Z).subscribe(te),()=>{xe=null}})}var Ni=l(2722);function Mt(ee,W=!1){return(0,m.e)((Z,te)=>{let xe=0;Z.subscribe(new c.Q(te,Be=>{const et=ee(Be,xe++);(et||W)&&te.next(Be),!et&&te.complete()}))})}var j=l(8505);const d={leading:!0,trailing:!1};function p(ee,W=d){return(0,m.e)((Z,te)=>{const{leading:xe,trailing:Be}=W;let et=!1,vt=null,_t=null,Ut=!1;const Qt=()=>{null==_t||_t.unsubscribe(),_t=null,Be&&(wn(),Ut&&te.complete())},yn=()=>{_t=null,Ut&&te.complete()},un=_n=>_t=(0,dt.Xf)(ee(_n)).subscribe(new c.Q(te,Qt,yn)),wn=()=>{if(et){et=!1;const _n=vt;vt=null,te.next(_n),!Ut&&un(_n)}};Z.subscribe(new c.Q(te,_n=>{et=!0,vt=_n,(!_t||_t.closed)&&(xe?wn():un(_n))},()=>{Ut=!0,(!(Be&&et&&_t)||_t.closed)&&te.complete()}))})}function P(ee,W=Me.z,Z=d){const te=(0,Ge.H)(ee,W);return p(()=>te,Z)}function U(ee=Me.z){return W=>(0,$t.P)(()=>W.pipe(bt(({current:Z},te)=>({value:te,current:ee.now(),last:Z}),{current:ee.now(),value:void 0,last:void 0}),(0,ci.U)(({current:Z,last:te,value:xe})=>new de(xe,Z-te))))}class de{constructor(W,Z){this.value=W,this.interval=Z}}function Ne(ee,W,Z){let te,xe,Be;if(Z=null!=Z?Z:Me.P,(0,Ot.q)(ee)?te=ee:"number"==typeof ee&&(xe=ee),!W)throw new TypeError("No observable provided to switch to");if(Be=()=>W,null==te&&null==xe)throw new TypeError("No timeout provided.");return oe({first:te,each:xe,scheduler:Z,with:Be})}function He(ee=V.l){return(0,ci.U)(W=>({value:W,timestamp:ee.now()}))}function ot(ee){return(0,m.e)((W,Z)=>{let te=new b.x;Z.next(te.asObservable());const xe=Be=>{te.error(Be),Z.error(Be)};return W.subscribe(new c.Q(Z,Be=>null==te?void 0:te.next(Be),()=>{te.complete(),Z.complete()},xe)),ee.subscribe(new c.Q(Z,()=>{te.complete(),Z.next(te=new b.x)},Tt.Z,xe)),()=>{null==te||te.unsubscribe(),te=null}})}function mt(ee,W=0){const Z=W>0?W:ee;return(0,m.e)((te,xe)=>{let Be=[new b.x],et=[],vt=0;xe.next(Be[0].asObservable()),te.subscribe(new c.Q(xe,_t=>{for(const Qt of Be)Qt.next(_t);const Ut=vt-ee+1;if(Ut>=0&&Ut%Z==0&&Be.shift().complete(),++vt%Z==0){const Qt=new b.x;Be.push(Qt),xe.next(Qt.asObservable())}},()=>{for(;Be.length>0;)Be.shift().complete();xe.complete()},_t=>{for(;Be.length>0;)Be.shift().error(_t);xe.error(_t)},()=>{et=null,Be=null}))})}function xt(ee,...W){var Z,te;const xe=null!==(Z=(0,Nt.yG)(W))&&void 0!==Z?Z:Me.z,Be=null!==(te=W[0])&&void 0!==te?te:null,et=W[1]||1/0;return(0,m.e)((vt,_t)=>{let Ut=[],Qt=!1;const yn=Pt=>{const{window:Rt,subs:Xt}=Pt;Rt.complete(),Xt.unsubscribe(),(0,zn.P)(Ut,Pt),Qt&&un()},un=()=>{if(Ut){const Pt=new u.w0;_t.add(Pt);const Rt=new b.x,Xt={window:Rt,subs:Pt,seen:0};Ut.push(Xt),_t.next(Rt.asObservable()),(0,Qe.f)(Pt,xe,()=>yn(Xt),ee)}};null!==Be&&Be>=0?(0,Qe.f)(_t,xe,un,Be,!0):Qt=!0,un();const wn=Pt=>Ut.slice().forEach(Pt),_n=Pt=>{wn(({window:Rt})=>Pt(Rt)),Pt(_t),_t.unsubscribe()};return vt.subscribe(new c.Q(_t,Pt=>{wn(Rt=>{Rt.window.next(Pt),et<=++Rt.seen&&yn(Rt)})},()=>_n(Pt=>Pt.complete()),Pt=>_n(Rt=>Rt.error(Pt)))),()=>{Ut=null}})}function Wt(ee,W){return(0,m.e)((Z,te)=>{const xe=[],Be=et=>{for(;0<xe.length;)xe.shift().error(et);te.error(et)};(0,dt.Xf)(ee).subscribe(new c.Q(te,et=>{const vt=new b.x;xe.push(vt);const _t=new u.w0;let Qt;try{Qt=(0,dt.Xf)(W(et))}catch(yn){return void Be(yn)}te.next(vt.asObservable()),_t.add(Qt.subscribe(new c.Q(te,()=>{(0,zn.P)(xe,vt),vt.complete(),_t.unsubscribe()},Tt.Z,Be)))},Tt.Z)),Z.subscribe(new c.Q(te,et=>{const vt=xe.slice();for(const _t of vt)_t.next(et)},()=>{for(;0<xe.length;)xe.shift().complete();te.complete()},Be,()=>{for(;0<xe.length;)xe.shift().unsubscribe()}))})}function Yt(ee){return(0,m.e)((W,Z)=>{let te,xe;const Be=vt=>{te.error(vt),Z.error(vt)},et=()=>{let vt;null==xe||xe.unsubscribe(),null==te||te.complete(),te=new b.x,Z.next(te.asObservable());try{vt=(0,dt.Xf)(ee())}catch(_t){return void Be(_t)}vt.subscribe(xe=new c.Q(Z,et,et,Be))};et(),W.subscribe(new c.Q(Z,vt=>te.next(vt),()=>{te.complete(),Z.complete()},Be,()=>{null==xe||xe.unsubscribe(),te=null}))})}function ln(...ee){const W=(0,Nt.jO)(ee);return(0,m.e)((Z,te)=>{const xe=ee.length,Be=new Array(xe);let et=ee.map(()=>!1),vt=!1;for(let _t=0;_t<xe;_t++)(0,dt.Xf)(ee[_t]).subscribe(new c.Q(te,Ut=>{Be[_t]=Ut,!vt&&!et[_t]&&(et[_t]=!0,(vt=et.every(Fe.y))&&(et=null))},Tt.Z));Z.subscribe(new c.Q(te,_t=>{if(vt){const Ut=[_t,...Be];te.next(W?W(...Ut):Ut)}}))})}function Jt(ee){return vn(dn,ee)}function pn(...ee){return function en(...ee){return(0,m.e)((W,Z)=>{dn(W,...ee).subscribe(Z)})}(...ee)}},1135:(Le,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:(Le,g,l)=>{"use strict";l.d(g,{y:()=>D});var i=l(930),u=l(6921),m=l(8822),c=l(9635),s=l(2416),_=l(576),C=l(2806);let D=(()=>{class T{constructor(x){x&&(this._subscribe=x)}lift(x){const V=new T;return V.source=this,V.operator=x,V}subscribe(x,V,fe){const $=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)}(x)?x:new i.Hp(x,V,fe);return(0,C.x)(()=>{const{operator:le,source:Me}=this;$.add(le?le.call($,Me):Me?this._subscribe($):this._trySubscribe($))}),$}_trySubscribe(x){try{return this._subscribe(x)}catch(V){x.error(V)}}forEach(x,V){return new(V=I(V))((fe,$)=>{const le=new i.Hp({next:Me=>{try{x(Me)}catch(pe){$(pe),le.unsubscribe()}},error:$,complete:fe});this.subscribe(le)})}_subscribe(x){var V;return null===(V=this.source)||void 0===V?void 0:V.subscribe(x)}[m.L](){return this}pipe(...x){return(0,c.U)(x)(this)}toPromise(x){return new(x=I(x))((V,fe)=>{let $;this.subscribe(le=>$=le,le=>fe(le),()=>V($))})}}return T.create=b=>new T(b),T})();function I(T){var b;return null!==(b=null!=T?T:s.v.Promise)&&void 0!==b?b:Promise}},6646:(Le,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:(Le,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 D extends i.y{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(h){const A=new C(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:b}=this;return A||T?u.Lc:(b.push(h),new u.w0(()=>(0,c.P)(b,h)))}_checkFinalizedStatuses(h){const{hasError:A,thrownError:T,isStopped:b}=this;A?h.error(T):b&&h.complete()}asObservable(){const h=new i.y;return h.source=this,h}}return D.create=(I,h)=>new C(I,h),D})();class C extends _{constructor(I,h){super(),this.destination=I,this.source=h}next(I){var h,A;null===(A=null===(h=this.destination)||void 0===h?void 0:h.next)||void 0===A||A.call(h,I)}error(I){var h,A;null===(A=null===(h=this.destination)||void 0===h?void 0:h.error)||void 0===A||A.call(h,I)}complete(){var I,h;null===(h=null===(I=this.destination)||void 0===I?void 0:I.complete)||void 0===h||h.call(I)}_subscribe(I){var h,A;return null!==(A=null===(h=this.source)||void 0===h?void 0:h.subscribe(I))&&void 0!==A?A:u.Lc}}},930:(Le,g,l)=>{"use strict";l.d(g,{Hp:()=>b,Lv:()=>T});var i=l(576),u=l(6921),m=l(2416),c=l(7849),s=l(5032);const _=I("C",void 0,void 0);function I(le,Me,pe){return{kind:le,value:Me,error:pe}}var h=l(3410),A=l(2806);class T extends u.w0{constructor(Me){super(),this.isStopped=!1,Me?(this.destination=Me,(0,u.Nn)(Me)&&Me.add(this)):this.destination=$}static create(Me,pe,ye){return new b(Me,pe,ye)}next(Me){this.isStopped?fe(function D(le){return I("N",le,void 0)}(Me),this):this._next(Me)}error(Me){this.isStopped?fe(function C(le){return I("E",void 0,le)}(Me),this):(this.isStopped=!0,this._error(Me))}complete(){this.isStopped?fe(_,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Me){this.destination.next(Me)}_error(Me){try{this.destination.error(Me)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}class b extends T{constructor(Me,pe,ye){let se;if(super(),(0,i.m)(Me))se=Me;else if(Me){let De;({next:se,error:pe,complete:ye}=Me),this&&m.v.useDeprecatedNextContext?(De=Object.create(Me),De.unsubscribe=()=>this.unsubscribe()):De=Me,se=null==se?void 0:se.bind(De),pe=null==pe?void 0:pe.bind(De),ye=null==ye?void 0:ye.bind(De)}this.destination={next:se?x(se):s.Z,error:x(null!=pe?pe:V),complete:ye?x(ye):s.Z}}}function x(le,Me){return(...pe)=>{try{le(...pe)}catch(ye){m.v.useDeprecatedSynchronousErrorHandling?(0,A.O)(ye):(0,c.h)(ye)}}}function V(le){throw le}function fe(le,Me){const{onStoppedNotification:pe}=m.v;pe&&h.z.setTimeout(()=>pe(le,Me))}const $={closed:!0,next:s.Z,error:V,complete:s.Z}},6921:(Le,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(I){this.initialTeardown=I,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let I;if(!this.closed){this.closed=!0;const{_parentage:h}=this;if(h)if(this._parentage=null,Array.isArray(h))for(const b of h)b.remove(this);else h.remove(this);const{initialTeardown:A}=this;if((0,i.m)(A))try{A()}catch(b){I=b instanceof u.B?b.errors:[b]}const{_teardowns:T}=this;if(T){this._teardowns=null;for(const b of T)try{C(b)}catch(x){I=null!=I?I:[],x instanceof u.B?I=[...I,...x.errors]:I.push(x)}}if(I)throw new u.B(I)}}add(I){var h;if(I&&I!==this)if(this.closed)C(I);else{if(I instanceof c){if(I.closed||I._hasParent(this))return;I._addParent(this)}(this._teardowns=null!==(h=this._teardowns)&&void 0!==h?h:[]).push(I)}}_hasParent(I){const{_parentage:h}=this;return h===I||Array.isArray(h)&&h.includes(I)}_addParent(I){const{_parentage:h}=this;this._parentage=Array.isArray(h)?(h.push(I),h):h?[h,I]:I}_removeParent(I){const{_parentage:h}=this;h===I?this._parentage=null:Array.isArray(h)&&(0,m.P)(h,I)}remove(I){const{_teardowns:h}=this;h&&(0,m.P)(h,I),I instanceof c&&I._removeParent(this)}}c.EMPTY=(()=>{const D=new c;return D.closed=!0,D})();const s=c.EMPTY;function _(D){return D instanceof c||D&&"closed"in D&&(0,i.m)(D.remove)&&(0,i.m)(D.add)&&(0,i.m)(D.unsubscribe)}function C(D){(0,i.m)(D)?D():D.unsubscribe()}},2416:(Le,g,l)=>{"use strict";l.d(g,{v:()=>i});const i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(Le,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),C=l(1810),D=l(5403),I=l(9672);function h(...b){const x=(0,_.yG)(b),V=(0,_.jO)(b),{args:fe,keys:$}=(0,u.D)(b);if(0===fe.length)return(0,m.D)([],x);const le=new i.y(A(fe,x,$?Me=>(0,C.n)($,Me):c.y));return V?le.pipe((0,s.Z)(V)):le}function A(b,x,V=c.y){return fe=>{T(x,()=>{const{length:$}=b,le=new Array($);let Me=$,pe=$;for(let ye=0;ye<$;ye++)T(x,()=>{const se=(0,m.D)(b[ye],x);let De=!1;se.subscribe(new D.Q(fe,ke=>{le[ye]=ke,De||(De=!0,pe--),pe||fe.next(V(le.slice()))},()=>{--Me||fe.complete()}))},fe)},fe)}}function T(b,x,V){b?(0,I.f)(V,b,x):x()}},1350:(Le,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:(Le,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:(Le,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:(Le,g,l)=>{"use strict";l.d(g,{D:()=>D});var i=l(9751),u=l(4742),m=l(8421),c=l(3269),s=l(5403),_=l(3268),C=l(1810);function D(...I){const h=(0,c.jO)(I),{args:A,keys:T}=(0,u.D)(I),b=new i.y(x=>{const{length:V}=A;if(!V)return void x.complete();const fe=new Array(V);let $=V,le=V;for(let Me=0;Me<V;Me++){let pe=!1;(0,m.Xf)(A[Me]).subscribe(new s.Q(x,ye=>{pe||(pe=!0,le--),fe[Me]=ye},()=>$--,void 0,()=>{(!$||!pe)&&(le||x.next(T?(0,C.n)(T,fe):fe),x.complete())}))}});return h?b.pipe((0,_.Z)(h)):b}},188:(Le,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:(Le,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 C=["addListener","removeListener"],D=["addEventListener","removeEventListener"],I=["on","off"];function h(V,fe,$,le){if((0,s.m)($)&&(le=$,$=void 0),le)return h(V,fe,$).pipe((0,_.Z)(le));const[Me,pe]=function x(V){return(0,s.m)(V.addEventListener)&&(0,s.m)(V.removeEventListener)}(V)?D.map(ye=>se=>V[ye](fe,se,$)):function T(V){return(0,s.m)(V.addListener)&&(0,s.m)(V.removeListener)}(V)?C.map(A(V,fe)):function b(V){return(0,s.m)(V.on)&&(0,s.m)(V.off)}(V)?I.map(A(V,fe)):[];if(!Me&&(0,c.z)(V))return(0,m.z)(ye=>h(ye,fe,$))((0,i.Xf)(V));if(!Me)throw new TypeError("Invalid event target");return new u.y(ye=>{const se=(...De)=>ye.next(1<De.length?De:De[0]);return Me(se),()=>pe(se)})}function A(V,fe){return $=>le=>V[$](fe,le)}},8421:(Le,g,l)=>{"use strict";l.d(g,{Xf:()=>b});var i=l(655),u=l(1144),m=l(8239),c=l(9751),s=l(3670),_=l(2206),C=l(4532),D=l(6495),I=l(3260),h=l(576),A=l(7849),T=l(8822);function b(ye){if(ye instanceof c.y)return ye;if(null!=ye){if((0,s.c)(ye))return function x(ye){return new c.y(se=>{const De=ye[T.L]();if((0,h.m)(De.subscribe))return De.subscribe(se);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ye);if((0,u.z)(ye))return function V(ye){return new c.y(se=>{for(let De=0;De<ye.length&&!se.closed;De++)se.next(ye[De]);se.complete()})}(ye);if((0,m.t)(ye))return function fe(ye){return new c.y(se=>{ye.then(De=>{se.closed||(se.next(De),se.complete())},De=>se.error(De)).then(null,A.h)})}(ye);if((0,_.D)(ye))return le(ye);if((0,D.T)(ye))return function $(ye){return new c.y(se=>{for(const De of ye)if(se.next(De),se.closed)return;se.complete()})}(ye);if((0,I.L)(ye))return function Me(ye){return le((0,I.Q)(ye))}(ye)}throw(0,C.z)(ye)}function le(ye){return new c.y(se=>{(function pe(ye,se){var De,ke,Xe,st;return(0,i.__awaiter)(this,void 0,void 0,function*(){try{for(De=(0,i.__asyncValues)(ye);!(ke=yield De.next()).done;)if(se.next(ke.value),se.closed)return}catch(q){Xe={error:q}}finally{try{ke&&!ke.done&&(st=De.return)&&(yield st.call(De))}finally{if(Xe)throw Xe.error}}se.complete()})})(ye,se).catch(De=>se.error(De))})}},6451:(Le,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 _(...C){const D=(0,c.yG)(C),I=(0,c._6)(C,1/0),h=C;return h.length?1===h.length?(0,u.Xf)(h[0]):(0,i.J)(I)((0,s.D)(h,D)):m.E}},9646:(Le,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:(Le,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,C=D=>D.error(_());return new i.y(s?D=>s.schedule(C,0,D):C)}},2805:(Le,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,C,D=u.P){let I=-1;return null!=C&&((0,m.K)(C)?D=C:I=C),new i.y(h=>{let A=(0,c.q)(_)?+_-D.now():_;A<0&&(A=0);let T=0;return D.schedule(function(){h.closed||(h.next(T++),0<=I?this.schedule(void 0,I):h.complete())},A)})}},5403:(Le,g,l)=>{"use strict";l.d(g,{Q:()=>u});var i=l(930);class u extends i.Lv{constructor(c,s,_,C,D){super(c),this.onFinalize=D,this._next=s?function(I){try{s(I)}catch(h){c.error(h)}}:super._next,this._error=C?function(I){try{C(I)}catch(h){c.error(h)}finally{this.unsubscribe()}}:super._error,this._complete=_?function(){try{_()}catch(I){c.error(I)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var c;const{closed:s}=this;super.unsubscribe(),!s&&(null===(c=this.onFinalize)||void 0===c||c.call(this))}}},5615:(Le,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)((_,C)=>{let D=!1,I=null,h=null,A=!1;const T=()=>{if(null==h||h.unsubscribe(),h=null,D){D=!1;const x=I;I=null,C.next(x)}A&&C.complete()},b=()=>{h=null,A&&C.complete()};_.subscribe(new m.Q(C,x=>{D=!0,I=x,h||(0,u.Xf)(s(x)).subscribe(h=new m.Q(C,T,b))},()=>{A=!0,(!D||!h||h.closed)&&C.complete()}))})}},453:(Le,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:(Le,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)((_,C)=>{let h,D=null,I=!1;D=_.subscribe(new u.Q(C,void 0,void 0,A=>{h=(0,i.Xf)(s(A,c(s)(_))),D?(D.unsubscribe(),D=null,h.subscribe(C)):I=!0})),I&&(D.unsubscribe(),D=null,h.subscribe(C))})}},7886:(Le,g,l)=>{"use strict";l.d(g,{u:()=>u});var i=l(8189);function u(){return(0,i.J)(1)}},4351:(Le,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:(Le,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)((C,D)=>{let I=null,h=null,A=null;const T=()=>{if(I){I.unsubscribe(),I=null;const x=h;h=null,D.next(x)}};function b(){const x=A+s,V=_.now();if(V<x)return I=this.schedule(void 0,x-V),void D.add(I);T()}C.subscribe(new m.Q(D,x=>{h=x,A=_.now(),I||(I=_.schedule(b,s),D.add(I))},()=>{T(),D.complete()},void 0,()=>{h=I=null}))})}},4326:(Le,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 C=(0,m.H)(s,_);return(0,u.j)(()=>C)}},1260:(Le,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 _(C,D){return D?I=>(0,i.z)(D.pipe((0,u.q)(1),(0,m.l)()),I.pipe(_(C))):(0,s.z)((I,h)=>C(I,h).pipe((0,u.q)(1),(0,c.h)(I)))}},1884:(Le,g,l)=>{"use strict";l.d(g,{x:()=>c});var i=l(4671),u=l(4482),m=l(5403);function c(_,C=i.y){return _=null!=_?_:s,(0,u.e)((D,I)=>{let h,A=!0;D.subscribe(new m.Q(I,T=>{const b=C(T);(A||!_(h,b))&&(A=!1,h=b,I.next(T))}))})}function s(_,C){return _===C}},9300:(Le,g,l)=>{"use strict";l.d(g,{h:()=>m});var i=l(4482),u=l(5403);function m(c,s){return(0,i.e)((_,C)=>{let D=0;_.subscribe(new u.Q(C,I=>c.call(s,I,D++)&&C.next(I)))})}},8746:(Le,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:(Le,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(new u.Q(_,m.Z))})}},4004:(Le,g,l)=>{"use strict";l.d(g,{U:()=>m});var i=l(4482),u=l(5403);function m(c,s){return(0,i.e)((_,C)=>{let D=0;_.subscribe(new u.Q(C,I=>{C.next(c.call(s,I,D++))}))})}},9718:(Le,g,l)=>{"use strict";l.d(g,{h:()=>u});var i=l(4004);function u(m){return(0,i.U)(()=>m)}},8189:(Le,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:(Le,g,l)=>{"use strict";l.d(g,{p:()=>c});var i=l(8421),u=l(9672),m=l(5403);function c(s,_,C,D,I,h,A,T){const b=[];let x=0,V=0,fe=!1;const $=()=>{fe&&!b.length&&!x&&_.complete()},le=pe=>x<D?Me(pe):b.push(pe),Me=pe=>{h&&_.next(pe),x++;let ye=!1;(0,i.Xf)(C(pe,V++)).subscribe(new m.Q(_,se=>{null==I||I(se),h?le(se):_.next(se)},()=>{ye=!0},void 0,()=>{if(ye)try{for(x--;b.length&&x<D;){const se=b.shift();A?(0,u.f)(_,A,()=>Me(se)):Me(se)}$()}catch(se){_.error(se)}}))};return s.subscribe(new m.Q(_,le,()=>{fe=!0,$()})),()=>{null==T||T()}}},6099:(Le,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 _(C,D,I=1/0){return(0,s.m)(D)?_((h,A)=>(0,i.U)((T,b)=>D(h,T,A,b))((0,u.Xf)(C(h,A))),I):("number"==typeof D&&(I=D),(0,m.e)((h,A)=>(0,c.p)(h,A,C,I)))}},5363:(Le,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)((C,D)=>{C.subscribe(new m.Q(D,I=>(0,i.f)(D,s,()=>D.next(I),_),()=>(0,i.f)(D,s,()=>D.complete(),_),I=>(0,i.f)(D,s,()=>D.error(I),_)))})}},3099:(Le,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 _(D={}){const{connector:I=(()=>new m.x),resetOnError:h=!0,resetOnComplete:A=!0,resetOnRefCountZero:T=!0}=D;return b=>{let x=null,V=null,fe=null,$=0,le=!1,Me=!1;const pe=()=>{null==V||V.unsubscribe(),V=null},ye=()=>{pe(),x=fe=null,le=Me=!1},se=()=>{const De=x;ye(),null==De||De.unsubscribe()};return(0,s.e)((De,ke)=>{$++,!Me&&!le&&pe();const Xe=fe=null!=fe?fe:I();ke.add(()=>{$--,0===$&&!Me&&!le&&(V=C(se,T))}),Xe.subscribe(ke),x||(x=new c.Hp({next:st=>Xe.next(st),error:st=>{Me=!0,pe(),V=C(ye,h,st),Xe.error(st)},complete:()=>{le=!0,pe(),V=C(ye,A),Xe.complete()}}),(0,i.D)(De).subscribe(x))})(b)}}function C(D,I,...h){return!0===I?(D(),null):!1===I?null:I(...h).pipe((0,u.q)(1)).subscribe(()=>D())}},5684:(Le,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:(Le,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)((C,D)=>{(_?(0,i.z)(s,C,_):(0,i.z)(s,C)).subscribe(D)})}},9468:(Le,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:(Le,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)((C,D)=>{let I=null,h=0,A=!1;const T=()=>A&&!I&&D.complete();C.subscribe(new m.Q(D,b=>{null==I||I.unsubscribe();let x=0;const V=h++;(0,i.Xf)(s(b,V)).subscribe(I=new m.Q(D,fe=>D.next(_?_(b,fe,V,x++):fe),()=>{I=null,T()}))},()=>{A=!0,T()}))})}},5698:(Le,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)((_,C)=>{let D=0;_.subscribe(new m.Q(C,I=>{++D<=s&&(C.next(I),s<=D&&C.complete())}))})}},2722:(Le,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)((C,D)=>{(0,m.Xf)(_).subscribe(new u.Q(D,()=>D.complete(),c.Z)),!D.closed&&C.subscribe(D)})}},8505:(Le,g,l)=>{"use strict";l.d(g,{b:()=>s});var i=l(576),u=l(4482),m=l(5403),c=l(4671);function s(_,C,D){const I=(0,i.m)(_)||C||D?{next:_,error:C,complete:D}:_;return I?(0,u.e)((h,A)=>{var T;null===(T=I.subscribe)||void 0===T||T.call(I);let b=!0;h.subscribe(new m.Q(A,x=>{var V;null===(V=I.next)||void 0===V||V.call(I,x),A.next(x)},()=>{var x;b=!1,null===(x=I.complete)||void 0===x||x.call(I),A.complete()},x=>{var V;b=!1,null===(V=I.error)||void 0===V||V.call(I,x),A.error(x)},()=>{var x,V;b&&(null===(x=I.unsubscribe)||void 0===x||x.call(I)),null===(V=I.finalize)||void 0===V||V.call(I)}))}):c.y}},6340:(Le,g,l)=>{"use strict";l.d(g,{Q:()=>s});var i=l(9751),u=l(2202),m=l(576),c=l(9672);function s(_,C){return new i.y(D=>{let I;return(0,c.f)(D,C,()=>{I=_[u.h](),(0,c.f)(D,C,()=>{let h,A;try{({value:h,done:A}=I.next())}catch(T){return void D.error(T)}A?D.complete():D.next(h)},0,!0)}),()=>(0,m.m)(null==I?void 0:I.return)&&I.return()})}},3762:(Le,g,l)=>{"use strict";l.d(g,{x:()=>Me});var i=l(8421),u=l(5363),m=l(9468),_=l(9751),D=l(6340),I=l(9672);function h(pe,ye){if(!pe)throw new Error("Iterable cannot be null");return new _.y(se=>{(0,I.f)(se,ye,()=>{const De=pe[Symbol.asyncIterator]();(0,I.f)(se,ye,()=>{De.next().then(ke=>{ke.done?se.complete():se.next(ke.value)})},0,!0)})})}var A=l(3670),T=l(8239),b=l(1144),x=l(6495),V=l(2206),fe=l(4532),$=l(3260);function Me(pe,ye){if(null!=pe){if((0,A.c)(pe))return function c(pe,ye){return(0,i.Xf)(pe).pipe((0,m.R)(ye),(0,u.Q)(ye))}(pe,ye);if((0,b.z)(pe))return function C(pe,ye){return new _.y(se=>{let De=0;return ye.schedule(function(){De===pe.length?se.complete():(se.next(pe[De++]),se.closed||this.schedule())})})}(pe,ye);if((0,T.t)(pe))return function s(pe,ye){return(0,i.Xf)(pe).pipe((0,m.R)(ye),(0,u.Q)(ye))}(pe,ye);if((0,V.D)(pe))return h(pe,ye);if((0,x.T)(pe))return(0,D.Q)(pe,ye);if((0,$.L)(pe))return function le(pe,ye){return h((0,$.Q)(pe),ye)}(pe,ye)}throw(0,fe.z)(pe)}},4408:(Le,g,l)=>{"use strict";l.d(g,{o:()=>s});var i=l(6921);class u extends i.w0{constructor(C,D){super()}schedule(C,D=0){return this}}const m={setInterval(..._){const{delegate:C}=m;return((null==C?void 0:C.setInterval)||setInterval)(..._)},clearInterval(_){const{delegate:C}=m;return((null==C?void 0:C.clearInterval)||clearInterval)(_)},delegate:void 0};var c=l(8737);class s extends u{constructor(C,D){super(C,D),this.scheduler=C,this.work=D,this.pending=!1}schedule(C,D=0){if(this.closed)return this;this.state=C;const I=this.id,h=this.scheduler;return null!=I&&(this.id=this.recycleAsyncId(h,I,D)),this.pending=!0,this.delay=D,this.id=this.id||this.requestAsyncId(h,this.id,D),this}requestAsyncId(C,D,I=0){return m.setInterval(C.flush.bind(C,this),I)}recycleAsyncId(C,D,I=0){if(null!=I&&this.delay===I&&!1===this.pending)return D;m.clearInterval(D)}execute(C,D){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const I=this._execute(C,D);if(I)return I;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(C,D){let h,I=!1;try{this.work(C)}catch(A){I=!0,h=A||new Error("Scheduled action threw falsy error")}if(I)return this.unsubscribe(),h}unsubscribe(){if(!this.closed){const{id:C,scheduler:D}=this,{actions:I}=D;this.work=this.state=this.scheduler=null,this.pending=!1,(0,c.P)(I,this),null!=C&&(this.id=this.recycleAsyncId(D,C,null)),this.delay=null,super.unsubscribe()}}}},8950:(Le,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:(Le,g,l)=>{"use strict";l.d(g,{r:()=>C,Z:()=>_});var i=l(4408),u=l(3399),c=l(8950);const _=new class s extends c.v{flush(I){this._active=!0;const h=this._scheduled;this._scheduled=void 0;const{actions:A}=this;let T;I=I||A.shift();do{if(T=I.execute(I.state,I.delay))break}while((I=A[0])&&I.id===h&&A.shift());if(this._active=!1,T){for(;(I=A[0])&&I.id===h&&A.shift();)I.unsubscribe();throw T}}}(class m extends i.o{constructor(I,h){super(I,h),this.scheduler=I,this.work=h}requestAsyncId(I,h,A=0){return null!==A&&A>0?super.requestAsyncId(I,h,A):(I.actions.push(this),I._scheduled||(I._scheduled=u.l.requestAnimationFrame(()=>I.flush(void 0))))}recycleAsyncId(I,h,A=0){if(null!=A&&A>0||null==A&&this.delay>0)return super.recycleAsyncId(I,h,A);I.actions.some(T=>T.id===h)||(u.l.cancelAnimationFrame(h),I._scheduled=void 0)}}),C=_},3399:(Le,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 C=c(D=>{s=void 0,m(D)});return new i.w0(()=>null==s?void 0:s(C))},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:(Le,g,l)=>{"use strict";l.d(g,{e:()=>V,E:()=>x});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 $=u++;return c[$]=!0,m||(m=Promise.resolve()),m.then(()=>s($)&&fe()),$},clearImmediate(fe){s(fe)}},{setImmediate:D,clearImmediate:I}=_,h={setImmediate(...fe){const{delegate:$}=h;return((null==$?void 0:$.setImmediate)||D)(...fe)},clearImmediate(fe){const{delegate:$}=h;return((null==$?void 0:$.clearImmediate)||I)(fe)},delegate:void 0};var T=l(8950);const x=new class b extends T.v{flush($){this._active=!0;const le=this._scheduled;this._scheduled=void 0;const{actions:Me}=this;let pe;$=$||Me.shift();do{if(pe=$.execute($.state,$.delay))break}while(($=Me[0])&&$.id===le&&Me.shift());if(this._active=!1,pe){for(;($=Me[0])&&$.id===le&&Me.shift();)$.unsubscribe();throw pe}}}(class A extends i.o{constructor($,le){super($,le),this.scheduler=$,this.work=le}requestAsyncId($,le,Me=0){return null!==Me&&Me>0?super.requestAsyncId($,le,Me):($.actions.push(this),$._scheduled||($._scheduled=h.setImmediate($.flush.bind($,void 0))))}recycleAsyncId($,le,Me=0){if(null!=Me&&Me>0||null==Me&&this.delay>0)return super.recycleAsyncId($,le,Me);$.actions.some(pe=>pe.id===le)||(h.clearImmediate(le),$._scheduled=void 0)}}),V=x},4986:(Le,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:(Le,g,l)=>{"use strict";l.d(g,{l:()=>i});const i={now:()=>(i.delegate||Date).now(),delegate:void 0}},3410:(Le,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:(Le,g,l)=>{"use strict";l.d(g,{h:()=>u});const u=function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Le,g,l)=>{"use strict";l.d(g,{L:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},7448:(Le,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:(Le,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((_,C)=>`${C+1}) ${_.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=s})},3269:(Le,g,l)=>{"use strict";l.d(g,{jO:()=>c,yG:()=>s,_6:()=>_});var i=l(576),u=l(3532);function m(C){return C[C.length-1]}function c(C){return(0,i.m)(m(C))?C.pop():void 0}function s(C){return(0,u.K)(m(C))?C.pop():void 0}function _(C,D){return"number"==typeof m(C)?C.pop():D}},4742:(Le,g,l)=>{"use strict";l.d(g,{D:()=>s});const{isArray:i}=Array,{getPrototypeOf:u,prototype:m,keys:c}=Object;function s(C){if(1===C.length){const D=C[0];if(i(D))return{args:D,keys:null};if(function _(C){return C&&"object"==typeof C&&u(C)===m}(D)){const I=c(D);return{args:I.map(h=>D[h]),keys:I}}}return{args:C,keys:null}}},8737:(Le,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:(Le,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:(Le,g,l)=>{"use strict";function i(u,m){return u.reduce((c,s,_)=>(c[s]=m[_],c),{})}l.d(g,{n:()=>i})},2806:(Le,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:C,error:D}=u;if(u=null,C)throw D}}else s()}function c(s){i.v.useDeprecatedSynchronousErrorHandling&&u&&(u.errorThrown=!0,u.error=s)}},9672:(Le,g,l)=>{"use strict";function i(u,m,c,s=0,_=!1){const C=m.schedule(function(){c(),_?u.add(this.schedule(null,s)):this.unsubscribe()},s);if(u.add(C),!_)return C}l.d(g,{f:()=>i})},4671:(Le,g,l)=>{"use strict";function i(u){return u}l.d(g,{y:()=>i})},1144:(Le,g,l)=>{"use strict";l.d(g,{z:()=>i});const i=u=>u&&"number"==typeof u.length&&"function"!=typeof u},2206:(Le,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:(Le,g,l)=>{"use strict";function i(u){return u instanceof Date&&!isNaN(u)}l.d(g,{q:()=>i})},576:(Le,g,l)=>{"use strict";function i(u){return"function"==typeof u}l.d(g,{m:()=>i})},3670:(Le,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:(Le,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:(Le,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:(Le,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:(Le,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 C=s.getReader();try{for(;;){const{value:D,done:I}=yield(0,i.__await)(C.read());if(I)return yield(0,i.__await)(void 0);yield yield(0,i.__await)(D)}}finally{C.releaseLock()}})}function c(s){return(0,u.m)(null==s?void 0:s.getReader)}},3532:(Le,g,l)=>{"use strict";l.d(g,{K:()=>u});var i=l(576);function u(m){return m&&(0,i.m)(m.schedule)}},4482:(Le,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(C){this.error(C)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Le,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:(Le,g,l)=>{"use strict";function i(){}l.d(g,{Z:()=>i})},9635:(Le,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((C,D)=>D(C),_)}}},7849:(Le,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:(Le,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:(Le,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(b){switch(b.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(b.base)}?`;case i.ArrayType:return`[${u(b.base)}]`;case i.StructType:case i.EnumType:return`API.${b.name}`;case i.TypeReference:return u(b.type);default:throw new Error(`BUG: generateSwiftTypeName with ${b.constructor.name}`)}}function m(b){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(b)?`_${b}`:b}function c(b,x){switch(b.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`${x}`;case i.OptionalType:return`${x} == nil ? nil : ${c(b.base,`${x}!`)}`;case i.DatePrimitiveType:return`SdkgenHelper.encodeDate(date: ${x})`;case i.DateTimePrimitiveType:return`SdkgenHelper.encodeDateTime(date: ${x})`;case i.EnumType:return`${x}.rawValue`;case i.TypeReference:return`${c(b.type,`${x}`)}`;case i.StructType:return`${x}.toJSON()`;case i.ArrayType:return`${x}.map({ return ${c(b.base,"$0")} })`;case i.JsonPrimitiveType:return`try? ${x}.toJson()`;case i.VoidPrimitiveType:return"nil";case i.BytesPrimitiveType:return`${x}.base64EncodedString()`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${b.constructor.name}`)}}g.generateSwiftTypeName=u,g.mangle=m,g.generateJsonRepresentation=c,g.generateEnum=function s(b){let x=` public enum ${b.name}: String, Codable {\n`;return x+=b.values.map(V=>` case ${m(V.value)} = "${V.value}"`).join("\n"),x+="\n }\n",x},g.generateErrorType=function _(b){let x=" public enum ErrorType: String, Codable {\n";return x+=b.map(V=>` case ${m(V)} = "${V}"`).join("\n"),x+="\n }\n",x},g.generateClass=function I(b){return` public struct ${b.name}: Codable {\n${b.fields.map(x=>` var ${m(x.name)}: ${u(x.type)}`).join("\n")}\n\n${function C(b){let x=" init(";return x+=b.fields.map(V=>`${m(V.name)}: ${u(V.type)}`).join(", "),x+=") {\n",x+=b.fields.map(V=>` self.${m(V.name)} = ${m(V.name)}`).join("\n"),x+="\n }\n",x}(b)}\n${function D(b){let x=" func toJSON() -> [String: Any] {\n";return x+=" var json = [String: Any]()\n",x+=b.fields.map(V=>` json["${m(V.name)}"] = ${c(V.type,V.name)}`).join("\n"),x+="\n return json",x+="\n }\n",x}(b)}\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(b){const x=b.args.map(V=>`${m(V.name)}: ${u(V.type)}`).concat(["timeoutSeconds: Double?",`callback: ((_ result: ${b.returnType instanceof i.VoidPrimitiveType?"API.Result<API.NoReply>":`API.Result<${u(b.returnType)}>`}) -> Void)?`]);return` func ${m(b.name)}(${x.join(", ")})`},g.generateRxMethod=function T(b){const x=b.args.map(fe=>`${m(fe.name)}: ${u(fe.type)}`).concat(["timeoutSeconds: Double? = nil"]);let V=` static func ${m(b.name)}(${x.join(", ")}) -> ${b.returnType instanceof i.VoidPrimitiveType?"Observable<API.Result<API.NoReply>>":`Observable<API.Result<${u(b.returnType)}>>`} {\n`;return V+=" return Observable.create { observer -> Disposable in\n",V+=` API.calls.${m(b.name)}(${b.args.map(fe=>`${m(fe.name)}: ${m(fe.name)}`).concat(["timeoutSeconds: timeoutSeconds"]).join(", ")}) { result in \n`,V+=" observer.on(.next(result))\n",V+=" observer.on(.completed)\n",V+=" }\n",V+=" return Disposables.create()\n",V+=" }\n",V+=" }\n",V}},7295:function(Le,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:(Le,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(I=>I.annotations.every(h=>!(h instanceof i.HiddenAnnotation))).map(I=>`${(0,u.generateMethodSignature)(I)}`).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 I of c.enumTypes)_+=(0,u.generateEnum)(I),_+="\n";for(const I of c.structTypes)_+=(0,u.generateClass)(I),_+="\n";const C=[],D=new i.ErrorNode("Connection",new i.VoidPrimitiveType);C.push(D.name);for(const I of c.errors)C.push(I.name);return C.length>0&&(_+=(0,u.generateErrorType)(C),_+="\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(I=>I.annotations.every(h=>!(h instanceof i.HiddenAnnotation))).map(I=>{let h="";return h+=` ${(0,u.generateMethodSignature)(I)} {\n`,I.args.length>0?(h+=" var jsonArgs = [String: Any]()\n",h+=I.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("${I.name}", jsonArgs, timeoutSeconds, completion: { (value: ${I.returnType instanceof i.VoidPrimitiveType?"API.NoReply":(0,u.generateSwiftTypeName)(I.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(I=>I.annotations.every(h=>!(h instanceof i.HiddenAnnotation))).map(I=>`${(0,u.generateRxMethod)(I)}`).join("\n"),_+="}\n"),_}},8173:(Le,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(C=>!(C.dataType instanceof i.VoidPrimitiveType))?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/browser-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,!0),s+="\n";for(const C of c.errors)s+=(0,u.generateTypescriptErrorClass)(C,!0),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(D=>!(D instanceof i.HiddenAnnotation))).map(C=>`\n ${C.name}(args${0===C.args.length?"?":""}: {${C.args.map(D=>`${D.name}${D.type.name.endsWith("?")?"?":""}: ${(0,u.generateTypescriptTypeName)(D.type,!0)}`).join(", ")}}): Promise<${(0,u.generateTypescriptTypeName)(C.returnType,!0)}> { return this.makeRequest("${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}},5596:(Le,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(C,D){switch(C.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 D?"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(C.base,D)} | null`;case i.ArrayType:{const{base:I}=C,h=u(I,D);return I instanceof i.OptionalType?`(${h})[]`:`${h}[]`}case i.StructType:case i.EnumType:return C.name;case i.TypeReference:return u(C.type,D);default:throw new Error(`BUG: generateTypescriptTypeName with ${C.constructor.name}`)}}g.generateTypescriptTypeName=u,g.generateTypescriptInterface=function m(C,D){return`export interface ${C.name} {\n${C.fields.map(I=>` ${I.name}: ${u(I.type,D)}`).join("\n")}\n}\n`},g.generateTypescriptEnum=function c(C){return C.hasStructValues?`export type ${C.name} = ${C.values.map(D=>D.struct?`({tag: "${D.value}"} & ${D.struct.name})`:`{tag: "${D.value}"}`).join(" | ")};\n`:`export type ${C.name} = ${C.values.map(D=>`"${D.value}"`).join(" | ")};\n`},g.generateTypescriptErrorClass=function s(C,D){return`export class ${C.name} extends ${C.dataType instanceof i.VoidPrimitiveType?"SdkgenError":`SdkgenErrorWithData<${u(C.dataType,D)}>`} {}\n`},g.clearForLogging=function _(C,D){switch(D.constructor){case i.TypeReference:return _(C,D.type);case i.OptionalType:{const I=_(C,D.base);return I?`if (${C} !== null && ${C} !== undefined) { ${I} }`:""}case i.ArrayType:{const I=_("el",D.base);return I?`for (const el of ${C}) { ${I} }`:""}case i.StructType:{const I=[];for(const h of D.fields)if(h.secret)I.push(`${C}.${h.name} = "<secret>";`);else{const A=_(`${C}.${h.name}`,h.type);A&&I.push(A)}return I.join(" ")}default:return""}}},2911:function(Le,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:(Le,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:(Le,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(D=>!(D.dataType instanceof i.VoidPrimitiveType));s+=`/* eslint-disable */\nimport { Context, Fatal${c.errors.filter(D=>"Fatal"!==D.name).some(D=>D.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 D of c.enumTypes)s+=(0,u.generateTypescriptEnum)(D),s+="\n";for(const D of c.structTypes)s+=(0,u.generateTypescriptInterface)(D,!1),s+="\n";for(const D of c.errors)"Fatal"!==D.name&&(s+=(0,u.generateTypescriptErrorClass)(D,!1),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(I=>!(I instanceof i.HiddenAnnotation))).map(D=>`\n ${D.name}(ctx: PartialDeep<Context> | null, args: {${D.args.map(I=>`${I.name}${I.type.name.endsWith("?")?"?":""}: ${(0,u.generateTypescriptTypeName)(I.type,!1)}`).join(", ")}}): Promise<${(0,u.generateTypescriptTypeName)(D.returnType,!1)}> { return this.makeRequest(ctx, "${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}},615:(Le,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(D=>!(D.dataType instanceof i.VoidPrimitiveType));s+=`/* eslint-disable */\nimport { BaseApiConfig, Context, Fatal${c.errors.filter(D=>"Fatal"!==D.name).some(D=>D.dataType instanceof i.VoidPrimitiveType)?", SdkgenError":""}${_?", SdkgenErrorWithData":""} } from "@sdkgen/node-runtime";\nexport { Fatal } from "@sdkgen/node-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,!1),s+="\n";for(const D of c.errors)"Fatal"!==D.name&&(s+=(0,u.generateTypescriptErrorClass)(D,!1),s+="\n");return s+=`export class ApiConfig<ExtraContextT> extends BaseApiConfig<ExtraContextT> {\n fn!: {${c.operations.map(D=>`\n ${D.name}: (ctx: Context & ExtraContextT, args: {${D.args.map(I=>`${I.name}: ${(0,u.generateTypescriptTypeName)(I.type,!1)}`).join(", ")}}) => Promise<${(0,u.generateTypescriptTypeName)(D.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:Le=>{function g(i,u,m,c,s,_,C){try{var D=i[_](C),I=D.value}catch(h){return void m(h)}D.done?u(I):Promise.resolve(I).then(c,s)}Le.exports=function l(i){return function(){var u=this,m=arguments;return new Promise(function(c,s){var _=i.apply(u,m);function C(I){g(_,c,s,C,D,"next",I)}function D(I){g(_,c,s,C,D,"throw",I)}C(void 0)})}},Le.exports.default=Le.exports,Le.exports.__esModule=!0},655:(Le,g,l)=>{"use strict";l.r(g),l.d(g,{__extends:()=>u,__assign:()=>m,__rest:()=>c,__decorate:()=>s,__param:()=>_,__metadata:()=>C,__awaiter:()=>D,__generator:()=>I,__createBinding:()=>h,__exportStar:()=>A,__values:()=>T,__read:()=>b,__spread:()=>x,__spreadArrays:()=>V,__spreadArray:()=>fe,__await:()=>$,__asyncGenerator:()=>le,__asyncDelegator:()=>Me,__asyncValues:()=>pe,__makeTemplateObject:()=>ye,__importStar:()=>De,__importDefault:()=>ke,__classPrivateFieldGet:()=>Xe,__classPrivateFieldSet:()=>st});var i=function(q,Pe){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,ae){J.__proto__=ae}||function(J,ae){for(var Ie in ae)Object.prototype.hasOwnProperty.call(ae,Ie)&&(J[Ie]=ae[Ie])})(q,Pe)};function u(q,Pe){if("function"!=typeof Pe&&null!==Pe)throw new TypeError("Class extends value "+String(Pe)+" is not a constructor or null");function J(){this.constructor=q}i(q,Pe),q.prototype=null===Pe?Object.create(Pe):(J.prototype=Pe.prototype,new J)}var m=function(){return m=Object.assign||function(Pe){for(var J,ae=1,Ie=arguments.length;ae<Ie;ae++)for(var ie in J=arguments[ae])Object.prototype.hasOwnProperty.call(J,ie)&&(Pe[ie]=J[ie]);return Pe},m.apply(this,arguments)};function c(q,Pe){var J={};for(var ae in q)Object.prototype.hasOwnProperty.call(q,ae)&&Pe.indexOf(ae)<0&&(J[ae]=q[ae]);if(null!=q&&"function"==typeof Object.getOwnPropertySymbols){var Ie=0;for(ae=Object.getOwnPropertySymbols(q);Ie<ae.length;Ie++)Pe.indexOf(ae[Ie])<0&&Object.prototype.propertyIsEnumerable.call(q,ae[Ie])&&(J[ae[Ie]]=q[ae[Ie]])}return J}function s(q,Pe,J,ae){var Ke,Ie=arguments.length,ie=Ie<3?Pe:null===ae?ae=Object.getOwnPropertyDescriptor(Pe,J):ae;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ie=Reflect.decorate(q,Pe,J,ae);else for(var ge=q.length-1;ge>=0;ge--)(Ke=q[ge])&&(ie=(Ie<3?Ke(ie):Ie>3?Ke(Pe,J,ie):Ke(Pe,J))||ie);return Ie>3&&ie&&Object.defineProperty(Pe,J,ie),ie}function _(q,Pe){return function(J,ae){Pe(J,ae,q)}}function C(q,Pe){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(q,Pe)}function D(q,Pe,J,ae){return new(J||(J=Promise))(function(ie,Ke){function ge($e){try{ve(ae.next($e))}catch(ct){Ke(ct)}}function nt($e){try{ve(ae.throw($e))}catch(ct){Ke(ct)}}function ve($e){$e.done?ie($e.value):function Ie(ie){return ie instanceof J?ie:new J(function(Ke){Ke(ie)})}($e.value).then(ge,nt)}ve((ae=ae.apply(q,Pe||[])).next())})}function I(q,Pe){var ae,Ie,ie,Ke,J={label:0,sent:function(){if(1&ie[0])throw ie[1];return ie[1]},trys:[],ops:[]};return Ke={next:ge(0),throw:ge(1),return:ge(2)},"function"==typeof Symbol&&(Ke[Symbol.iterator]=function(){return this}),Ke;function ge(ve){return function($e){return function nt(ve){if(ae)throw new TypeError("Generator is already executing.");for(;J;)try{if(ae=1,Ie&&(ie=2&ve[0]?Ie.return:ve[0]?Ie.throw||((ie=Ie.return)&&ie.call(Ie),0):Ie.next)&&!(ie=ie.call(Ie,ve[1])).done)return ie;switch(Ie=0,ie&&(ve=[2&ve[0],ie.value]),ve[0]){case 0:case 1:ie=ve;break;case 4:return J.label++,{value:ve[1],done:!1};case 5:J.label++,Ie=ve[1],ve=[0];continue;case 7:ve=J.ops.pop(),J.trys.pop();continue;default:if(!(ie=(ie=J.trys).length>0&&ie[ie.length-1])&&(6===ve[0]||2===ve[0])){J=0;continue}if(3===ve[0]&&(!ie||ve[1]>ie[0]&&ve[1]<ie[3])){J.label=ve[1];break}if(6===ve[0]&&J.label<ie[1]){J.label=ie[1],ie=ve;break}if(ie&&J.label<ie[2]){J.label=ie[2],J.ops.push(ve);break}ie[2]&&J.ops.pop(),J.trys.pop();continue}ve=Pe.call(q,J)}catch($e){ve=[6,$e],Ie=0}finally{ae=ie=0}if(5&ve[0])throw ve[1];return{value:ve[0]?ve[1]:void 0,done:!0}}([ve,$e])}}}var h=Object.create?function(q,Pe,J,ae){void 0===ae&&(ae=J),Object.defineProperty(q,ae,{enumerable:!0,get:function(){return Pe[J]}})}:function(q,Pe,J,ae){void 0===ae&&(ae=J),q[ae]=Pe[J]};function A(q,Pe){for(var J in q)"default"!==J&&!Object.prototype.hasOwnProperty.call(Pe,J)&&h(Pe,q,J)}function T(q){var Pe="function"==typeof Symbol&&Symbol.iterator,J=Pe&&q[Pe],ae=0;if(J)return J.call(q);if(q&&"number"==typeof q.length)return{next:function(){return q&&ae>=q.length&&(q=void 0),{value:q&&q[ae++],done:!q}}};throw new TypeError(Pe?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(q,Pe){var J="function"==typeof Symbol&&q[Symbol.iterator];if(!J)return q;var Ie,Ke,ae=J.call(q),ie=[];try{for(;(void 0===Pe||Pe-- >0)&&!(Ie=ae.next()).done;)ie.push(Ie.value)}catch(ge){Ke={error:ge}}finally{try{Ie&&!Ie.done&&(J=ae.return)&&J.call(ae)}finally{if(Ke)throw Ke.error}}return ie}function x(){for(var q=[],Pe=0;Pe<arguments.length;Pe++)q=q.concat(b(arguments[Pe]));return q}function V(){for(var q=0,Pe=0,J=arguments.length;Pe<J;Pe++)q+=arguments[Pe].length;var ae=Array(q),Ie=0;for(Pe=0;Pe<J;Pe++)for(var ie=arguments[Pe],Ke=0,ge=ie.length;Ke<ge;Ke++,Ie++)ae[Ie]=ie[Ke];return ae}function fe(q,Pe,J){if(J||2===arguments.length)for(var ie,ae=0,Ie=Pe.length;ae<Ie;ae++)(ie||!(ae in Pe))&&(ie||(ie=Array.prototype.slice.call(Pe,0,ae)),ie[ae]=Pe[ae]);return q.concat(ie||Array.prototype.slice.call(Pe))}function $(q){return this instanceof $?(this.v=q,this):new $(q)}function le(q,Pe,J){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ie,ae=J.apply(q,Pe||[]),ie=[];return Ie={},Ke("next"),Ke("throw"),Ke("return"),Ie[Symbol.asyncIterator]=function(){return this},Ie;function Ke(Tt){ae[Tt]&&(Ie[Tt]=function(Fe){return new Promise(function(Je,Y){ie.push([Tt,Fe,Je,Y])>1||ge(Tt,Fe)})})}function ge(Tt,Fe){try{!function nt(Tt){Tt.value instanceof $?Promise.resolve(Tt.value.v).then(ve,$e):ct(ie[0][2],Tt)}(ae[Tt](Fe))}catch(Je){ct(ie[0][3],Je)}}function ve(Tt){ge("next",Tt)}function $e(Tt){ge("throw",Tt)}function ct(Tt,Fe){Tt(Fe),ie.shift(),ie.length&&ge(ie[0][0],ie[0][1])}}function Me(q){var Pe,J;return Pe={},ae("next"),ae("throw",function(Ie){throw Ie}),ae("return"),Pe[Symbol.iterator]=function(){return this},Pe;function ae(Ie,ie){Pe[Ie]=q[Ie]?function(Ke){return(J=!J)?{value:$(q[Ie](Ke)),done:"return"===Ie}:ie?ie(Ke):Ke}:ie}}function pe(q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var J,Pe=q[Symbol.asyncIterator];return Pe?Pe.call(q):(q=T(q),J={},ae("next"),ae("throw"),ae("return"),J[Symbol.asyncIterator]=function(){return this},J);function ae(ie){J[ie]=q[ie]&&function(Ke){return new Promise(function(ge,nt){!function Ie(ie,Ke,ge,nt){Promise.resolve(nt).then(function(ve){ie({value:ve,done:ge})},Ke)}(ge,nt,(Ke=q[ie](Ke)).done,Ke.value)})}}}function ye(q,Pe){return Object.defineProperty?Object.defineProperty(q,"raw",{value:Pe}):q.raw=Pe,q}var se=Object.create?function(q,Pe){Object.defineProperty(q,"default",{enumerable:!0,value:Pe})}:function(q,Pe){q.default=Pe};function De(q){if(q&&q.__esModule)return q;var Pe={};if(null!=q)for(var J in q)"default"!==J&&Object.prototype.hasOwnProperty.call(q,J)&&h(Pe,q,J);return se(Pe,q),Pe}function ke(q){return q&&q.__esModule?q:{default:q}}function Xe(q,Pe,J,ae){if("a"===J&&!ae)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof Pe?q!==Pe||!ae:!Pe.has(q))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===J?ae:"a"===J?ae.call(q):ae?ae.value:Pe.get(q)}function st(q,Pe,J,ae,Ie){if("m"===ae)throw new TypeError("Private method is not writable");if("a"===ae&&!Ie)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof Pe?q!==Pe||!Ie:!Pe.has(q))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===ae?Ie.call(q,J):Ie?Ie.value=J:Pe.set(q,J),J}},1777:(Le,g,l)=>{"use strict";l.d(g,{l3:()=>m,_j:()=>i,LC:()=>u,ZN:()=>le,jt:()=>s,F4:()=>h,vP:()=>C,SB:()=>I,oB:()=>D,eR:()=>A,X$:()=>c,ZE:()=>Me,k1:()=>pe});class i{}class u{}const m="*";function c(ye,se){return{type:7,name:ye,definitions:se,options:{}}}function s(ye,se=null){return{type:4,styles:se,timings:ye}}function C(ye,se=null){return{type:2,steps:ye,options:se}}function D(ye){return{type:6,styles:ye,offset:null}}function I(ye,se,De){return{type:0,name:ye,styles:se,options:De}}function h(ye){return{type:5,steps:ye}}function A(ye,se,De=null){return{type:1,expr:ye,animation:se,options:De}}function $(ye){Promise.resolve(null).then(ye)}class le{constructor(se=0,De=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=se+De}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(se=>se()),this._onDoneFns=[])}onStart(se){this._onStartFns.push(se)}onDone(se){this._onDoneFns.push(se)}onDestroy(se){this._onDestroyFns.push(se)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){$(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(se=>se()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(se=>se()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(se){this._position=this.totalTime?se*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(se){const De="start"==se?this._onStartFns:this._onDoneFns;De.forEach(ke=>ke()),De.length=0}}class Me{constructor(se){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=se;let De=0,ke=0,Xe=0;const st=this.players.length;0==st?$(()=>this._onFinish()):this.players.forEach(q=>{q.onDone(()=>{++De==st&&this._onFinish()}),q.onDestroy(()=>{++ke==st&&this._onDestroy()}),q.onStart(()=>{++Xe==st&&this._onStart()})}),this.totalTime=this.players.reduce((q,Pe)=>Math.max(q,Pe.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(se=>se()),this._onDoneFns=[])}init(){this.players.forEach(se=>se.init())}onStart(se){this._onStartFns.push(se)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(se=>se()),this._onStartFns=[])}onDone(se){this._onDoneFns.push(se)}onDestroy(se){this._onDestroyFns.push(se)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(se=>se.play())}pause(){this.players.forEach(se=>se.pause())}restart(){this.players.forEach(se=>se.restart())}finish(){this._onFinish(),this.players.forEach(se=>se.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(se=>se.destroy()),this._onDestroyFns.forEach(se=>se()),this._onDestroyFns=[])}reset(){this.players.forEach(se=>se.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(se){const De=se*this.totalTime;this.players.forEach(ke=>{const Xe=ke.totalTime?Math.min(1,De/ke.totalTime):1;ke.setPosition(Xe)})}getPosition(){const se=this.players.reduce((De,ke)=>null===De||ke.totalTime>De.totalTime?ke:De,null);return null!=se?se.getPosition():0}beforeDestroy(){this.players.forEach(se=>{se.beforeDestroy&&se.beforeDestroy()})}triggerCallback(se){const De="start"==se?this._onStartFns:this._onDoneFns;De.forEach(ke=>ke()),De.length=0}}const pe="!"},5664:(Le,g,l)=>{"use strict";l.d(g,{rt:()=>ce,$s:()=>J,kH:()=>St,Em:()=>ge,tE:()=>zt,qV:()=>Ot,qm:()=>Ge,ic:()=>ve,X6:()=>Te,yG:()=>be});var i=l(9808),u=l(5e3),m=l(6758),c=l(6921),s=l(1135),_=l(9646),C=l(1159),D=l(8505),I=l(8372),h=l(9300),A=l(4004),T=l(5698),b=l(5684),x=l(1884),V=l(2722),fe=l(3191),$=l(925),le=l(7144);function se(L,v){return(L.getAttribute(v)||"").match(/\S+/g)||[]}const De="cdk-describedby-message-container",ke="cdk-describedby-message",Xe="cdk-describedby-host";let st=0;const q=new Map;let Pe=null,J=(()=>{class L{constructor(S){this._document=S}describe(S,M,G){if(!this._canBeDescribed(S,M))return;const rt=ae(M,G);"string"!=typeof M?(Ie(M),q.set(rt,{messageElement:M,referenceCount:0})):q.has(rt)||this._createMessageElement(M,G),this._isElementDescribedByMessage(S,rt)||this._addMessageReference(S,rt)}removeDescription(S,M,G){if(!M||!this._isElementNode(S))return;const rt=ae(M,G);if(this._isElementDescribedByMessage(S,rt)&&this._removeMessageReference(S,rt),"string"==typeof M){const Dt=q.get(rt);Dt&&0===Dt.referenceCount&&this._deleteMessageElement(rt)}Pe&&0===Pe.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const S=this._document.querySelectorAll(`[${Xe}]`);for(let M=0;M<S.length;M++)this._removeCdkDescribedByReferenceIds(S[M]),S[M].removeAttribute(Xe);Pe&&this._deleteMessagesContainer(),q.clear()}_createMessageElement(S,M){const G=this._document.createElement("div");Ie(G),G.textContent=S,M&&G.setAttribute("role",M),this._createMessagesContainer(),Pe.appendChild(G),q.set(ae(S,M),{messageElement:G,referenceCount:0})}_deleteMessageElement(S){var M;const G=q.get(S);null===(M=null==G?void 0:G.messageElement)||void 0===M||M.remove(),q.delete(S)}_createMessagesContainer(){if(!Pe){const S=this._document.getElementById(De);null==S||S.remove(),Pe=this._document.createElement("div"),Pe.id=De,Pe.style.visibility="hidden",Pe.classList.add("cdk-visually-hidden"),this._document.body.appendChild(Pe)}}_deleteMessagesContainer(){Pe&&(Pe.remove(),Pe=null)}_removeCdkDescribedByReferenceIds(S){const M=se(S,"aria-describedby").filter(G=>0!=G.indexOf(ke));S.setAttribute("aria-describedby",M.join(" "))}_addMessageReference(S,M){const G=q.get(M);(function pe(L,v,S){const M=se(L,v);M.some(G=>G.trim()==S.trim())||(M.push(S.trim()),L.setAttribute(v,M.join(" ")))})(S,"aria-describedby",G.messageElement.id),S.setAttribute(Xe,""),G.referenceCount++}_removeMessageReference(S,M){const G=q.get(M);G.referenceCount--,function ye(L,v,S){const G=se(L,v).filter(rt=>rt!=S.trim());G.length?L.setAttribute(v,G.join(" ")):L.removeAttribute(v)}(S,"aria-describedby",G.messageElement.id),S.removeAttribute(Xe)}_isElementDescribedByMessage(S,M){const G=se(S,"aria-describedby"),rt=q.get(M),Dt=rt&&rt.messageElement.id;return!!Dt&&-1!=G.indexOf(Dt)}_canBeDescribed(S,M){if(!this._isElementNode(S))return!1;if(M&&"object"==typeof M)return!0;const G=null==M?"":`${M}`.trim(),rt=S.getAttribute("aria-label");return!(!G||rt&&rt.trim()===G)}_isElementNode(S){return S.nodeType===this._document.ELEMENT_NODE}}return L.\u0275fac=function(S){return new(S||L)(u.\u0275\u0275inject(i.DOCUMENT))},L.\u0275prov=u.\u0275\u0275defineInjectable({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();function ae(L,v){return"string"==typeof L?`${v||""}/${L}`:L}function Ie(L){L.id||(L.id=`${ke}-${st++}`)}class ge extends class ie{constructor(v){this._items=v,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new m.x,this._typeaheadSubscription=c.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=S=>S.disabled,this._pressedLetters=[],this.tabOut=new m.x,this.change=new m.x,v instanceof u.QueryList&&v.changes.subscribe(S=>{if(this._activeItem){const G=S.toArray().indexOf(this._activeItem);G>-1&&G!==this._activeItemIndex&&(this._activeItemIndex=G)}})}skipPredicate(v){return this._skipPredicateFn=v,this}withWrap(v=!0){return this._wrap=v,this}withVerticalOrientation(v=!0){return this._vertical=v,this}withHorizontalOrientation(v){return this._horizontal=v,this}withAllowedModifierKeys(v){return this._allowedModifierKeys=v,this}withTypeAhead(v=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,D.b)(S=>this._pressedLetters.push(S)),(0,I.b)(v),(0,h.h)(()=>this._pressedLetters.length>0),(0,A.U)(()=>this._pressedLetters.join(""))).subscribe(S=>{const M=this._getItemsArray();for(let G=1;G<M.length+1;G++){const rt=(this._activeItemIndex+G)%M.length,Dt=M[rt];if(!this._skipPredicateFn(Dt)&&0===Dt.getLabel().toUpperCase().trim().indexOf(S)){this.setActiveItem(rt);break}}this._pressedLetters=[]}),this}withHomeAndEnd(v=!0){return this._homeAndEnd=v,this}setActiveItem(v){const S=this._activeItem;this.updateActiveItem(v),this._activeItem!==S&&this.change.next(this._activeItemIndex)}onKeydown(v){const S=v.keyCode,G=["altKey","ctrlKey","metaKey","shiftKey"].every(rt=>!v[rt]||this._allowedModifierKeys.indexOf(rt)>-1);switch(S){case C.Mf:return void this.tabOut.next();case C.JH:if(this._vertical&&G){this.setNextItemActive();break}return;case C.LH:if(this._vertical&&G){this.setPreviousItemActive();break}return;case C.SV:if(this._horizontal&&G){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case C.oh:if(this._horizontal&&G){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case C.Sd:if(this._homeAndEnd&&G){this.setFirstItemActive();break}return;case C.uR:if(this._homeAndEnd&&G){this.setLastItemActive();break}return;default:return void((G||(0,C.Vb)(v,"shiftKey"))&&(v.key&&1===v.key.length?this._letterKeyStream.next(v.key.toLocaleUpperCase()):(S>=C.A&&S<=C.Z||S>=C.xE&&S<=C.aO)&&this._letterKeyStream.next(String.fromCharCode(S))))}this._pressedLetters=[],v.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(v){const S=this._getItemsArray(),M="number"==typeof v?v:S.indexOf(v),G=S[M];this._activeItem=null==G?null:G,this._activeItemIndex=M}_setActiveItemByDelta(v){this._wrap?this._setActiveInWrapMode(v):this._setActiveInDefaultMode(v)}_setActiveInWrapMode(v){const S=this._getItemsArray();for(let M=1;M<=S.length;M++){const G=(this._activeItemIndex+v*M+S.length)%S.length;if(!this._skipPredicateFn(S[G]))return void this.setActiveItem(G)}}_setActiveInDefaultMode(v){this._setActiveItemByIndex(this._activeItemIndex+v,v)}_setActiveItemByIndex(v,S){const M=this._getItemsArray();if(M[v]){for(;this._skipPredicateFn(M[v]);)if(!M[v+=S])return;this.setActiveItem(v)}}_getItemsArray(){return this._items instanceof u.QueryList?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(v){return this._origin=v,this}setActiveItem(v){super.setActiveItem(v),this.activeItem&&this.activeItem.focus(this._origin)}}let ve=(()=>{class L{constructor(S){this._platform=S}isDisabled(S){return S.hasAttribute("disabled")}isVisible(S){return function ct(L){return!!(L.offsetWidth||L.offsetHeight||"function"==typeof L.getClientRects&&L.getClientRects().length)}(S)&&"visible"===getComputedStyle(S).visibility}isTabbable(S){if(!this._platform.isBrowser)return!1;const M=function $e(L){try{return L.frameElement}catch(v){return null}}(function yt(L){return L.ownerDocument&&L.ownerDocument.defaultView||window}(S));if(M&&(-1===Re(M)||!this.isVisible(M)))return!1;let G=S.nodeName.toLowerCase(),rt=Re(S);return S.hasAttribute("contenteditable")?-1!==rt:!("iframe"===G||"object"===G||this._platform.WEBKIT&&this._platform.IOS&&!function _e(L){let v=L.nodeName.toLowerCase(),S="input"===v&&L.type;return"text"===S||"password"===S||"select"===v||"textarea"===v}(S))&&("audio"===G?!!S.hasAttribute("controls")&&-1!==rt:"video"===G?-1!==rt&&(null!==rt||this._platform.FIREFOX||S.hasAttribute("controls")):S.tabIndex>=0)}isFocusable(S,M){return function Ye(L){return!function Fe(L){return function Y(L){return"input"==L.nodeName.toLowerCase()}(L)&&"hidden"==L.type}(L)&&(function Tt(L){let v=L.nodeName.toLowerCase();return"input"===v||"select"===v||"button"===v||"textarea"===v}(L)||function Je(L){return function me(L){return"a"==L.nodeName.toLowerCase()}(L)&&L.hasAttribute("href")}(L)||L.hasAttribute("contenteditable")||we(L))}(S)&&!this.isDisabled(S)&&((null==M?void 0:M.ignoreVisibility)||this.isVisible(S))}}return L.\u0275fac=function(S){return new(S||L)(u.\u0275\u0275inject($.t4))},L.\u0275prov=u.\u0275\u0275defineInjectable({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();function we(L){if(!L.hasAttribute("tabindex")||void 0===L.tabIndex)return!1;let v=L.getAttribute("tabindex");return!(!v||isNaN(parseInt(v,10)))}function Re(L){if(!we(L))return null;const v=parseInt(L.getAttribute("tabindex")||"",10);return isNaN(v)?-1:v}class Ct{constructor(v,S,M,G,rt=!1){this._element=v,this._checker=S,this._ngZone=M,this._document=G,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,rt||this.attachAnchors()}get enabled(){return this._enabled}set enabled(v){this._enabled=v,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(v,this._startAnchor),this._toggleAnchorTabIndex(v,this._endAnchor))}destroy(){const v=this._startAnchor,S=this._endAnchor;v&&(v.removeEventListener("focus",this.startAnchorListener),v.remove()),S&&(S.removeEventListener("focus",this.endAnchorListener),S.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(v){return new Promise(S=>{this._executeOnStable(()=>S(this.focusInitialElement(v)))})}focusFirstTabbableElementWhenReady(v){return new Promise(S=>{this._executeOnStable(()=>S(this.focusFirstTabbableElement(v)))})}focusLastTabbableElementWhenReady(v){return new Promise(S=>{this._executeOnStable(()=>S(this.focusLastTabbableElement(v)))})}_getRegionBoundary(v){const S=this._element.querySelectorAll(`[cdk-focus-region-${v}], [cdkFocusRegion${v}], [cdk-focus-${v}]`);return"start"==v?S.length?S[0]:this._getFirstTabbableElement(this._element):S.length?S[S.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(v){const S=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(S){if(!this._checker.isFocusable(S)){const M=this._getFirstTabbableElement(S);return null==M||M.focus(v),!!M}return S.focus(v),!0}return this.focusFirstTabbableElement(v)}focusFirstTabbableElement(v){const S=this._getRegionBoundary("start");return S&&S.focus(v),!!S}focusLastTabbableElement(v){const S=this._getRegionBoundary("end");return S&&S.focus(v),!!S}hasAttached(){return this._hasAttached}_getFirstTabbableElement(v){if(this._checker.isFocusable(v)&&this._checker.isTabbable(v))return v;const S=v.children;for(let M=0;M<S.length;M++){const G=S[M].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(S[M]):null;if(G)return G}return null}_getLastTabbableElement(v){if(this._checker.isFocusable(v)&&this._checker.isTabbable(v))return v;const S=v.children;for(let M=S.length-1;M>=0;M--){const G=S[M].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(S[M]):null;if(G)return G}return null}_createAnchor(){const v=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,v),v.classList.add("cdk-visually-hidden"),v.classList.add("cdk-focus-trap-anchor"),v.setAttribute("aria-hidden","true"),v}_toggleAnchorTabIndex(v,S){v?S.setAttribute("tabindex","0"):S.removeAttribute("tabindex")}toggleAnchors(v){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(v,this._startAnchor),this._toggleAnchorTabIndex(v,this._endAnchor))}_executeOnStable(v){this._ngZone.isStable?v():this._ngZone.onStable.pipe((0,T.q)(1)).subscribe(v)}}let Ot=(()=>{class L{constructor(S,M,G){this._checker=S,this._ngZone=M,this._document=G}create(S,M=!1){return new Ct(S,this._checker,this._ngZone,this._document,M)}}return L.\u0275fac=function(S){return new(S||L)(u.\u0275\u0275inject(ve),u.\u0275\u0275inject(u.NgZone),u.\u0275\u0275inject(i.DOCUMENT))},L.\u0275prov=u.\u0275\u0275defineInjectable({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();function Te(L){return 0===L.buttons||0===L.offsetX&&0===L.offsetY}function be(L){const v=L.touches&&L.touches[0]||L.changedTouches&&L.changedTouches[0];return!(!v||-1!==v.identifier||null!=v.radiusX&&1!==v.radiusX||null!=v.radiusY&&1!==v.radiusY)}const re=new u.InjectionToken("cdk-input-modality-detector-options"),Ce={ignoreKeys:[C.zL,C.jx,C.b2,C.MW,C.JU]},tt=(0,$.i$)({passive:!0,capture:!0});let ft=(()=>{class L{constructor(S,M,G,rt){this._platform=S,this._mostRecentTarget=null,this._modality=new s.X(null),this._lastTouchMs=0,this._onKeydown=Dt=>{var Kt,rn;(null===(rn=null===(Kt=this._options)||void 0===Kt?void 0:Kt.ignoreKeys)||void 0===rn?void 0:rn.some(je=>je===Dt.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,$.sA)(Dt))},this._onMousedown=Dt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Te(Dt)?"keyboard":"mouse"),this._mostRecentTarget=(0,$.sA)(Dt))},this._onTouchstart=Dt=>{be(Dt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,$.sA)(Dt))},this._options=Object.assign(Object.assign({},Ce),rt),this.modalityDetected=this._modality.pipe((0,b.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,x.x)()),S.isBrowser&&M.runOutsideAngular(()=>{G.addEventListener("keydown",this._onKeydown,tt),G.addEventListener("mousedown",this._onMousedown,tt),G.addEventListener("touchstart",this._onTouchstart,tt)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,tt),document.removeEventListener("mousedown",this._onMousedown,tt),document.removeEventListener("touchstart",this._onTouchstart,tt))}}return L.\u0275fac=function(S){return new(S||L)(u.\u0275\u0275inject($.t4),u.\u0275\u0275inject(u.NgZone),u.\u0275\u0275inject(i.DOCUMENT),u.\u0275\u0275inject(re,8))},L.\u0275prov=u.\u0275\u0275defineInjectable({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();const En=new u.InjectionToken("cdk-focus-monitor-default-options"),sn=(0,$.i$)({passive:!0,capture:!0});let zt=(()=>{class L{constructor(S,M,G,rt,Dt){this._ngZone=S,this._platform=M,this._inputModalityDetector=G,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 m.x,this._rootNodeFocusAndBlurListener=Kt=>{const rn=(0,$.sA)(Kt),je="focus"===Kt.type?this._onFocus:this._onBlur;for(let Ue=rn;Ue;Ue=Ue.parentElement)je.call(this,Kt,Ue)},this._document=rt,this._detectionMode=(null==Dt?void 0:Dt.detectionMode)||0}monitor(S,M=!1){const G=(0,fe.fI)(S);if(!this._platform.isBrowser||1!==G.nodeType)return(0,_.of)(null);const rt=(0,$.kV)(G)||this._getDocument(),Dt=this._elementInfo.get(G);if(Dt)return M&&(Dt.checkChildren=!0),Dt.subject;const Kt={checkChildren:M,subject:new m.x,rootNode:rt};return this._elementInfo.set(G,Kt),this._registerGlobalListeners(Kt),Kt.subject}stopMonitoring(S){const M=(0,fe.fI)(S),G=this._elementInfo.get(M);G&&(G.subject.complete(),this._setClasses(M),this._elementInfo.delete(M),this._removeGlobalListeners(G))}focusVia(S,M,G){const rt=(0,fe.fI)(S);rt===this._getDocument().activeElement?this._getClosestElementsInfo(rt).forEach(([Kt,rn])=>this._originChanged(Kt,M,rn)):(this._setOrigin(M),"function"==typeof rt.focus&&rt.focus(G))}ngOnDestroy(){this._elementInfo.forEach((S,M)=>this.stopMonitoring(M))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(S){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(S)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(S){return 1===this._detectionMode||!!(null==S?void 0:S.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(S,M){S.classList.toggle("cdk-focused",!!M),S.classList.toggle("cdk-touch-focused","touch"===M),S.classList.toggle("cdk-keyboard-focused","keyboard"===M),S.classList.toggle("cdk-mouse-focused","mouse"===M),S.classList.toggle("cdk-program-focused","program"===M)}_setOrigin(S,M=!1){this._ngZone.runOutsideAngular(()=>{this._origin=S,this._originFromTouchInteraction="touch"===S&&M,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(S,M){const G=this._elementInfo.get(M),rt=(0,$.sA)(S);!G||!G.checkChildren&&M!==rt||this._originChanged(M,this._getFocusOrigin(rt),G)}_onBlur(S,M){const G=this._elementInfo.get(M);!G||G.checkChildren&&S.relatedTarget instanceof Node&&M.contains(S.relatedTarget)||(this._setClasses(M),this._emitOrigin(G.subject,null))}_emitOrigin(S,M){this._ngZone.run(()=>S.next(M))}_registerGlobalListeners(S){if(!this._platform.isBrowser)return;const M=S.rootNode,G=this._rootNodeFocusListenerCount.get(M)||0;G||this._ngZone.runOutsideAngular(()=>{M.addEventListener("focus",this._rootNodeFocusAndBlurListener,sn),M.addEventListener("blur",this._rootNodeFocusAndBlurListener,sn)}),this._rootNodeFocusListenerCount.set(M,G+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,V.R)(this._stopInputModalityDetector)).subscribe(rt=>{this._setOrigin(rt,!0)}))}_removeGlobalListeners(S){const M=S.rootNode;if(this._rootNodeFocusListenerCount.has(M)){const G=this._rootNodeFocusListenerCount.get(M);G>1?this._rootNodeFocusListenerCount.set(M,G-1):(M.removeEventListener("focus",this._rootNodeFocusAndBlurListener,sn),M.removeEventListener("blur",this._rootNodeFocusAndBlurListener,sn),this._rootNodeFocusListenerCount.delete(M))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(S,M,G){this._setClasses(S,M),this._emitOrigin(G.subject,M),this._lastFocusOrigin=M}_getClosestElementsInfo(S){const M=[];return this._elementInfo.forEach((G,rt)=>{(rt===S||G.checkChildren&&rt.contains(S))&&M.push([rt,G])}),M}}return L.\u0275fac=function(S){return new(S||L)(u.\u0275\u0275inject(u.NgZone),u.\u0275\u0275inject($.t4),u.\u0275\u0275inject(ft),u.\u0275\u0275inject(i.DOCUMENT,8),u.\u0275\u0275inject(En,8))},L.\u0275prov=u.\u0275\u0275defineInjectable({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),St=(()=>{class L{constructor(S,M){this._elementRef=S,this._focusMonitor=M,this.cdkFocusChange=new u.EventEmitter}ngAfterViewInit(){const S=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(S,1===S.nodeType&&S.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(M=>this.cdkFocusChange.emit(M))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return L.\u0275fac=function(S){return new(S||L)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(zt))},L.\u0275dir=u.\u0275\u0275defineDirective({type:L,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),L})();const bn="cdk-high-contrast-black-on-white",Zt="cdk-high-contrast-white-on-black",an="cdk-high-contrast-active";let Ge=(()=>{class L{constructor(S,M){this._platform=S,this._document=M}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const S=this._document.createElement("div");S.style.backgroundColor="rgb(1,2,3)",S.style.position="absolute",this._document.body.appendChild(S);const M=this._document.defaultView||window,G=M&&M.getComputedStyle?M.getComputedStyle(S):null,rt=(G&&G.backgroundColor||"").replace(/ /g,"");switch(S.remove(),rt){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 S=this._document.body.classList;S.remove(an),S.remove(bn),S.remove(Zt),this._hasCheckedHighContrastMode=!0;const M=this.getHighContrastMode();1===M?(S.add(an),S.add(bn)):2===M&&(S.add(an),S.add(Zt))}}}return L.\u0275fac=function(S){return new(S||L)(u.\u0275\u0275inject($.t4),u.\u0275\u0275inject(i.DOCUMENT))},L.\u0275prov=u.\u0275\u0275defineInjectable({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),ce=(()=>{class L{constructor(S){S._applyBodyHighContrastModeCssClasses()}}return L.\u0275fac=function(S){return new(S||L)(u.\u0275\u0275inject(Ge))},L.\u0275mod=u.\u0275\u0275defineNgModule({type:L}),L.\u0275inj=u.\u0275\u0275defineInjector({imports:[[$.ud,le.Q8]]}),L})()},226:(Le,g,l)=>{"use strict";l.d(g,{vT:()=>I,Is:()=>C});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 C=(()=>{class h{constructor(T){if(this.value="ltr",this.change=new i.EventEmitter,T){const x=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)||x||"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})(),I=(()=>{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:(Le,g,l)=>{"use strict";l.d(g,{t6:()=>c,Eq:()=>s,Ig:()=>u,HM:()=>_,fI:()=>C,su:()=>m});var i=l(5e3);function u(I){return null!=I&&"false"!=`${I}`}function m(I,h=0){return c(I)?Number(I):h}function c(I){return!isNaN(parseFloat(I))&&!isNaN(Number(I))}function s(I){return Array.isArray(I)?I:[I]}function _(I){return null==I?"":"string"==typeof I?I:`${I}px`}function C(I){return I instanceof i.ElementRef?I.nativeElement:I}},449:(Le,g,l)=>{"use strict";l.d(g,{o2:()=>m,Ov:()=>D,yy:()=>_,eX:()=>C,k:()=>A,Z9:()=>c});var i=l(6758),u=l(5e3);class m{}function c(T){return T&&"function"==typeof T.connect}class _{applyChanges(b,x,V,fe,$){b.forEachOperation((le,Me,pe)=>{let ye,se;if(null==le.previousIndex){const De=V(le,Me,pe);ye=x.createEmbeddedView(De.templateRef,De.context,De.index),se=1}else null==pe?(x.remove(Me),se=3):(ye=x.get(Me),x.move(ye,pe),se=2);$&&$({context:null==ye?void 0:ye.context,operation:se,record:le})})}detach(){}}class C{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(b,x,V,fe,$){b.forEachOperation((le,Me,pe)=>{let ye,se;null==le.previousIndex?(ye=this._insertView(()=>V(le,Me,pe),pe,x,fe(le)),se=ye?1:0):null==pe?(this._detachAndCacheView(Me,x),se=3):(ye=this._moveView(Me,pe,x,fe(le)),se=2),$&&$({context:null==ye?void 0:ye.context,operation:se,record:le})})}detach(){for(const b of this._viewCache)b.destroy();this._viewCache=[]}_insertView(b,x,V,fe){const $=this._insertViewFromCache(x,V);if($)return void($.context.$implicit=fe);const le=b();return V.createEmbeddedView(le.templateRef,le.context,le.index)}_detachAndCacheView(b,x){const V=x.detach(b);this._maybeCacheView(V,x)}_moveView(b,x,V,fe){const $=V.get(b);return V.move($,x),$.context.$implicit=fe,$}_maybeCacheView(b,x){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(b);else{const V=x.indexOf(b);-1===V?b.destroy():x.remove(V)}}_insertViewFromCache(b,x){const V=this._viewCache.pop();return V&&x.insert(V,b),V||null}}class D{constructor(b=!1,x,V=!0){this._multiple=b,this._emitChanges=V,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new i.x,x&&x.length&&(b?x.forEach(fe=>this._markSelected(fe)):this._markSelected(x[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...b){this._verifyValueAssignment(b),b.forEach(x=>this._markSelected(x)),this._emitChangeEvent()}deselect(...b){this._verifyValueAssignment(b),b.forEach(x=>this._unmarkSelected(x)),this._emitChangeEvent()}toggle(b){this.isSelected(b)?this.deselect(b):this.select(b)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(b){return this._selection.has(b)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(b){this._multiple&&this.selected&&this._selected.sort(b)}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(b){this.isSelected(b)||(this._multiple||this._unmarkAll(),this._selection.add(b),this._emitChanges&&this._selectedToEmit.push(b))}_unmarkSelected(b){this.isSelected(b)&&(this._selection.delete(b),this._emitChanges&&this._deselectedToEmit.push(b))}_unmarkAll(){this.isEmpty()||this._selection.forEach(b=>this._unmarkSelected(b))}_verifyValueAssignment(b){}}const A=new u.InjectionToken("_ViewRepeater")},1159:(Le,g,l)=>{"use strict";l.d(g,{A:()=>Tt,zL:()=>D,ZH:()=>u,jx:()=>C,yY:()=>ke,JH:()=>pe,uR:()=>V,K5:()=>s,hY:()=>A,Sd:()=>fe,oh:()=>$,b2:()=>ai,MW:()=>wt,aO:()=>ge,SV:()=>Me,JU:()=>_,L_:()=>T,Mf:()=>m,LH:()=>le,Z:()=>pt,xE:()=>Xe,Vb:()=>xn});const u=8,m=9,s=13,_=16,C=17,D=18,A=27,T=32,V=35,fe=36,$=37,le=38,Me=39,pe=40,ke=46,Xe=48,ge=57,Tt=65,pt=90,wt=91,ai=224;function xn(gn,...ni){return ni.length?ni.some(li=>gn[li]):gn.altKey||gn.shiftKey||gn.ctrlKey||gn.metaKey}},5113:(Le,g,l)=>{"use strict";l.r(g),l.d(g,{BreakpointObserver:()=>pe,Breakpoints:()=>se,LayoutModule:()=>x,MediaMatcher:()=>$});var i=l(5e3),u=l(3191),m=l(6758),c=l(9841),s=l(1350),_=l(9751),C=l(5698),D=l(5684),I=l(8372),h=l(4004),A=l(8675),T=l(2722),b=l(925);let x=(()=>{class De{}return De.\u0275fac=function(Xe){return new(Xe||De)},De.\u0275mod=i.\u0275\u0275defineNgModule({type:De}),De.\u0275inj=i.\u0275\u0275defineInjector({}),De})();const V=new Set;let fe,$=(()=>{class De{constructor(Xe){this._platform=Xe,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Me}matchMedia(Xe){return(this._platform.WEBKIT||this._platform.BLINK)&&function le(De){if(!V.has(De))try{fe||(fe=document.createElement("style"),fe.setAttribute("type","text/css"),document.head.appendChild(fe)),fe.sheet&&(fe.sheet.insertRule(`@media ${De} {body{ }}`,0),V.add(De))}catch(ke){console.error(ke)}}(Xe),this._matchMedia(Xe)}}return De.\u0275fac=function(Xe){return new(Xe||De)(i.\u0275\u0275inject(b.t4))},De.\u0275prov=i.\u0275\u0275defineInjectable({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();function Me(De){return{matches:"all"===De||""===De,media:De,addListener:()=>{},removeListener:()=>{}}}let pe=(()=>{class De{constructor(Xe,st){this._mediaMatcher=Xe,this._zone=st,this._queries=new Map,this._destroySubject=new m.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Xe){return ye((0,u.Eq)(Xe)).some(q=>this._registerQuery(q).mql.matches)}observe(Xe){const q=ye((0,u.Eq)(Xe)).map(J=>this._registerQuery(J).observable);let Pe=(0,c.a)(q);return Pe=(0,s.z)(Pe.pipe((0,C.q)(1)),Pe.pipe((0,D.T)(1),(0,I.b)(0))),Pe.pipe((0,h.U)(J=>{const ae={matches:!1,breakpoints:{}};return J.forEach(({matches:Ie,query:ie})=>{ae.matches=ae.matches||Ie,ae.breakpoints[ie]=Ie}),ae}))}_registerQuery(Xe){if(this._queries.has(Xe))return this._queries.get(Xe);const st=this._mediaMatcher.matchMedia(Xe),Pe={observable:new _.y(J=>{const ae=Ie=>this._zone.run(()=>J.next(Ie));return st.addListener(ae),()=>{st.removeListener(ae)}}).pipe((0,A.O)(st),(0,h.U)(({matches:J})=>({query:Xe,matches:J})),(0,T.R)(this._destroySubject)),mql:st};return this._queries.set(Xe,Pe),Pe}}return De.\u0275fac=function(Xe){return new(Xe||De)(i.\u0275\u0275inject($),i.\u0275\u0275inject(i.NgZone))},De.\u0275prov=i.\u0275\u0275defineInjectable({token:De,factory:De.\u0275fac,providedIn:"root"}),De})();function ye(De){return De.map(ke=>ke.split(",")).reduce((ke,Xe)=>ke.concat(Xe)).map(ke=>ke.trim())}const se={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:(Le,g,l)=>{"use strict";l.d(g,{wD:()=>D,Q8:()=>I});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})(),C=(()=>{class h{constructor(T){this._mutationObserverFactory=T,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((T,b)=>this._cleanupObserver(b))}observe(T){const b=(0,i.fI)(T);return new m.y(x=>{const fe=this._observeElement(b).subscribe(x);return()=>{fe.unsubscribe(),this._unobserveElement(b)}})}_observeElement(T){if(this._observedElements.has(T))this._observedElements.get(T).count++;else{const b=new c.x,x=this._mutationObserverFactory.create(V=>b.next(V));x&&x.observe(T,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(T,{observer:x,stream:b,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:b,stream:x}=this._observedElements.get(T);b&&b.disconnect(),x.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})(),D=(()=>{class h{constructor(T,b,x){this._contentObserver=T,this._elementRef=b,this._ngZone=x,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(C),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})(),I=(()=>{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:(Le,g,l)=>{"use strict";l.d(g,{aV:()=>me,X_:()=>se,Xj:()=>J,U8:()=>Ot});var i=l(9071),u=l(9808),m=l(5e3),c=l(3191),s=l(925),_=l(226),C=l(7429),D=l(6758),I=l(6921),h=l(6451),A=l(5698),T=l(2722);const b=(0,s.Mq)();class x{constructor(N,oe){this._viewportRuler=N,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=oe}attach(){}enable(){if(this._canBeEnabled()){const N=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=N.style.left||"",this._previousHTMLStyles.top=N.style.top||"",N.style.left=(0,c.HM)(-this._previousScrollPosition.left),N.style.top=(0,c.HM)(-this._previousScrollPosition.top),N.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const N=this._document.documentElement,Oe=N.style,ue=this._document.body.style,Te=Oe.scrollBehavior||"",be=ue.scrollBehavior||"";this._isEnabled=!1,Oe.left=this._previousHTMLStyles.left,Oe.top=this._previousHTMLStyles.top,N.classList.remove("cdk-global-scrollblock"),b&&(Oe.scrollBehavior=ue.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),b&&(Oe.scrollBehavior=Te,ue.scrollBehavior=be)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const oe=this._document.body,Oe=this._viewportRuler.getViewportSize();return oe.scrollHeight>Oe.height||oe.scrollWidth>Oe.width}}class fe{constructor(N,oe,Oe,ue){this._scrollDispatcher=N,this._ngZone=oe,this._viewportRuler=Oe,this._config=ue,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(N){this._overlayRef=N}enable(){if(this._scrollSubscription)return;const N=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=N.subscribe(()=>{const oe=this._viewportRuler.getViewportScrollPosition().top;Math.abs(oe-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=N.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ${enable(){}disable(){}attach(){}}function le(Qe,N){return N.some(oe=>Qe.bottom<oe.top||Qe.top>oe.bottom||Qe.right<oe.left||Qe.left>oe.right)}function Me(Qe,N){return N.some(oe=>Qe.top<oe.top||Qe.bottom>oe.bottom||Qe.left<oe.left||Qe.right>oe.right)}class pe{constructor(N,oe,Oe,ue){this._scrollDispatcher=N,this._viewportRuler=oe,this._ngZone=Oe,this._config=ue,this._scrollSubscription=null}attach(N){this._overlayRef=N}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 oe=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Oe,height:ue}=this._viewportRuler.getViewportSize();le(oe,[{width:Oe,height:ue,bottom:ue,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 ye=(()=>{class Qe{constructor(oe,Oe,ue,Te){this._scrollDispatcher=oe,this._viewportRuler=Oe,this._ngZone=ue,this.noop=()=>new $,this.close=be=>new fe(this._scrollDispatcher,this._ngZone,this._viewportRuler,be),this.block=()=>new x(this._viewportRuler,this._document),this.reposition=be=>new pe(this._scrollDispatcher,this._viewportRuler,this._ngZone,be),this._document=Te}}return Qe.\u0275fac=function(oe){return new(oe||Qe)(m.\u0275\u0275inject(i.mF),m.\u0275\u0275inject(i.rL),m.\u0275\u0275inject(m.NgZone),m.\u0275\u0275inject(u.DOCUMENT))},Qe.\u0275prov=m.\u0275\u0275defineInjectable({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})();class se{constructor(N){if(this.scrollStrategy=new $,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,N){const oe=Object.keys(N);for(const Oe of oe)void 0!==N[Oe]&&(this[Oe]=N[Oe])}}}class Xe{constructor(N,oe){this.connectionPair=N,this.scrollableViewProperties=oe}}class Pe{constructor(N,oe,Oe,ue,Te,be,re,Ce,Ze){this._portalOutlet=N,this._host=oe,this._pane=Oe,this._config=ue,this._ngZone=Te,this._keyboardDispatcher=be,this._document=re,this._location=Ce,this._outsideClickDispatcher=Ze,this._backdropElement=null,this._backdropClick=new D.x,this._attachments=new D.x,this._detachments=new D.x,this._locationChanges=I.w0.EMPTY,this._backdropClickHandler=tt=>this._backdropClick.next(tt),this._keydownEvents=new D.x,this._outsidePointerEvents=new D.x,ue.scrollStrategy&&(this._scrollStrategy=ue.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=ue.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(N){let oe=this._portalOutlet.attach(N);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),oe}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const N=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),N}dispose(){var N;const oe=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===(N=this._host)||void 0===N||N.remove(),this._previousHostParent=this._pane=this._host=null,oe&&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(N){N!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=N,this.hasAttached()&&(N.attach(this),this.updatePosition()))}updateSize(N){this._config=Object.assign(Object.assign({},this._config),N),this._updateElementSize()}setDirection(N){this._config=Object.assign(Object.assign({},this._config),{direction:N}),this._updateElementDirection()}addPanelClass(N){this._pane&&this._toggleClasses(this._pane,N,!0)}removePanelClass(N){this._pane&&this._toggleClasses(this._pane,N,!1)}getDirection(){const N=this._config.direction;return N?"string"==typeof N?N:N.value:"ltr"}updateScrollStrategy(N){N!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=N,this.hasAttached()&&(N.attach(this),N.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const N=this._pane.style;N.width=(0,c.HM)(this._config.width),N.height=(0,c.HM)(this._config.height),N.minWidth=(0,c.HM)(this._config.minWidth),N.minHeight=(0,c.HM)(this._config.minHeight),N.maxWidth=(0,c.HM)(this._config.maxWidth),N.maxHeight=(0,c.HM)(this._config.maxHeight)}_togglePointerEvents(N){this._pane.style.pointerEvents=N?"":"none"}_attachBackdrop(){const N="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(N)})}):this._backdropElement.classList.add(N)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const N=this._backdropElement;if(!N)return;let oe;const Oe=()=>{N&&(N.removeEventListener("click",this._backdropClickHandler),N.removeEventListener("transitionend",Oe),this._disposeBackdrop(N)),this._config.backdropClass&&this._toggleClasses(N,this._config.backdropClass,!1),clearTimeout(oe)};N.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{N.addEventListener("transitionend",Oe)}),N.style.pointerEvents="none",oe=this._ngZone.runOutsideAngular(()=>setTimeout(Oe,500))}_toggleClasses(N,oe,Oe){const ue=(0,c.Eq)(oe||[]).filter(Te=>!!Te);ue.length&&(Oe?N.classList.add(...ue):N.classList.remove(...ue))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const N=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()),N.unsubscribe())})})}_disposeScrollStrategy(){const N=this._scrollStrategy;N&&(N.disable(),N.detach&&N.detach())}_disposeBackdrop(N){N&&(N.remove(),this._backdropElement===N&&(this._backdropElement=null))}}let J=(()=>{class Qe{constructor(oe,Oe){this._platform=Oe,this._document=oe}ngOnDestroy(){var oe;null===(oe=this._containerElement)||void 0===oe||oe.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const oe="cdk-overlay-container";if(this._platform.isBrowser||(0,s.Oy)()){const ue=this._document.querySelectorAll(`.${oe}[platform="server"], .${oe}[platform="test"]`);for(let Te=0;Te<ue.length;Te++)ue[Te].remove()}const Oe=this._document.createElement("div");Oe.classList.add(oe),(0,s.Oy)()?Oe.setAttribute("platform","test"):this._platform.isBrowser||Oe.setAttribute("platform","server"),this._document.body.appendChild(Oe),this._containerElement=Oe}}return Qe.\u0275fac=function(oe){return new(oe||Qe)(m.\u0275\u0275inject(u.DOCUMENT),m.\u0275\u0275inject(s.t4))},Qe.\u0275prov=m.\u0275\u0275defineInjectable({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})();const ae="cdk-overlay-connected-position-bounding-box",Ie=/([A-Za-z%]+)$/;class ie{constructor(N,oe,Oe,ue,Te){this._viewportRuler=oe,this._document=Oe,this._platform=ue,this._overlayContainer=Te,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 D.x,this._resizeSubscription=I.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(N)}get positions(){return this._preferredPositions}attach(N){this._validatePositions(),N.hostElement.classList.add(ae),this._overlayRef=N,this._boundingBox=N.hostElement,this._pane=N.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 N=this._originRect,oe=this._overlayRect,Oe=this._viewportRect,ue=this._containerRect,Te=[];let be;for(let re of this._preferredPositions){let Ce=this._getOriginPoint(N,ue,re),Ze=this._getOverlayPoint(Ce,oe,re),tt=this._getOverlayFit(Ze,oe,Oe,re);if(tt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(re,Ce);this._canFitWithFlexibleDimensions(tt,Ze,Oe)?Te.push({position:re,origin:Ce,overlayRect:oe,boundingBoxRect:this._calculateBoundingBoxRect(Ce,re)}):(!be||be.overlayFit.visibleArea<tt.visibleArea)&&(be={overlayFit:tt,overlayPoint:Ze,originPoint:Ce,position:re,overlayRect:oe})}if(Te.length){let re=null,Ce=-1;for(const Ze of Te){const tt=Ze.boundingBoxRect.width*Ze.boundingBoxRect.height*(Ze.position.weight||1);tt>Ce&&(Ce=tt,re=Ze)}return this._isPushed=!1,void this._applyPosition(re.position,re.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(be.position,be.originPoint);this._applyPosition(be.position,be.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ke(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ae),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const N=this._lastPosition||this._preferredPositions[0],oe=this._getOriginPoint(this._originRect,this._containerRect,N);this._applyPosition(N,oe)}}withScrollableContainers(N){return this._scrollables=N,this}withPositions(N){return this._preferredPositions=N,-1===N.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(N){return this._viewportMargin=N,this}withFlexibleDimensions(N=!0){return this._hasFlexibleDimensions=N,this}withGrowAfterOpen(N=!0){return this._growAfterOpen=N,this}withPush(N=!0){return this._canPush=N,this}withLockedPosition(N=!0){return this._positionLocked=N,this}setOrigin(N){return this._origin=N,this}withDefaultOffsetX(N){return this._offsetX=N,this}withDefaultOffsetY(N){return this._offsetY=N,this}withTransformOriginOn(N){return this._transformOriginSelector=N,this}_getOriginPoint(N,oe,Oe){let ue,Te;if("center"==Oe.originX)ue=N.left+N.width/2;else{const be=this._isRtl()?N.right:N.left,re=this._isRtl()?N.left:N.right;ue="start"==Oe.originX?be:re}return oe.left<0&&(ue-=oe.left),Te="center"==Oe.originY?N.top+N.height/2:"top"==Oe.originY?N.top:N.bottom,oe.top<0&&(Te-=oe.top),{x:ue,y:Te}}_getOverlayPoint(N,oe,Oe){let ue,Te;return ue="center"==Oe.overlayX?-oe.width/2:"start"===Oe.overlayX?this._isRtl()?-oe.width:0:this._isRtl()?0:-oe.width,Te="center"==Oe.overlayY?-oe.height/2:"top"==Oe.overlayY?0:-oe.height,{x:N.x+ue,y:N.y+Te}}_getOverlayFit(N,oe,Oe,ue){const Te=nt(oe);let{x:be,y:re}=N,Ce=this._getOffset(ue,"x"),Ze=this._getOffset(ue,"y");Ce&&(be+=Ce),Ze&&(re+=Ze);let pt=0-re,wt=re+Te.height-Oe.height,$t=this._subtractOverflows(Te.width,0-be,be+Te.width-Oe.width),nn=this._subtractOverflows(Te.height,pt,wt),Ht=$t*nn;return{visibleArea:Ht,isCompletelyWithinViewport:Te.width*Te.height===Ht,fitsInViewportVertically:nn===Te.height,fitsInViewportHorizontally:$t==Te.width}}_canFitWithFlexibleDimensions(N,oe,Oe){if(this._hasFlexibleDimensions){const ue=Oe.bottom-oe.y,Te=Oe.right-oe.x,be=ge(this._overlayRef.getConfig().minHeight),re=ge(this._overlayRef.getConfig().minWidth),Ze=N.fitsInViewportHorizontally||null!=re&&re<=Te;return(N.fitsInViewportVertically||null!=be&&be<=ue)&&Ze}return!1}_pushOverlayOnScreen(N,oe,Oe){if(this._previousPushAmount&&this._positionLocked)return{x:N.x+this._previousPushAmount.x,y:N.y+this._previousPushAmount.y};const ue=nt(oe),Te=this._viewportRect,be=Math.max(N.x+ue.width-Te.width,0),re=Math.max(N.y+ue.height-Te.height,0),Ce=Math.max(Te.top-Oe.top-N.y,0),Ze=Math.max(Te.left-Oe.left-N.x,0);let tt=0,ft=0;return tt=ue.width<=Te.width?Ze||-be:N.x<this._viewportMargin?Te.left-Oe.left-N.x:0,ft=ue.height<=Te.height?Ce||-re:N.y<this._viewportMargin?Te.top-Oe.top-N.y:0,this._previousPushAmount={x:tt,y:ft},{x:N.x+tt,y:N.y+ft}}_applyPosition(N,oe){if(this._setTransformOrigin(N),this._setOverlayElementStyles(oe,N),this._setBoundingBoxStyles(oe,N),N.panelClass&&this._addPanelClasses(N.panelClass),this._lastPosition=N,this._positionChanges.observers.length){const Oe=this._getScrollVisibility(),ue=new Xe(N,Oe);this._positionChanges.next(ue)}this._isInitialRender=!1}_setTransformOrigin(N){if(!this._transformOriginSelector)return;const oe=this._boundingBox.querySelectorAll(this._transformOriginSelector);let Oe,ue=N.overlayY;Oe="center"===N.overlayX?"center":this._isRtl()?"start"===N.overlayX?"right":"left":"start"===N.overlayX?"left":"right";for(let Te=0;Te<oe.length;Te++)oe[Te].style.transformOrigin=`${Oe} ${ue}`}_calculateBoundingBoxRect(N,oe){const Oe=this._viewportRect,ue=this._isRtl();let Te,be,re,tt,ft,pt;if("top"===oe.overlayY)be=N.y,Te=Oe.height-be+this._viewportMargin;else if("bottom"===oe.overlayY)re=Oe.height-N.y+2*this._viewportMargin,Te=Oe.height-re+this._viewportMargin;else{const wt=Math.min(Oe.bottom-N.y+Oe.top,N.y),$t=this._lastBoundingBoxSize.height;Te=2*wt,be=N.y-wt,Te>$t&&!this._isInitialRender&&!this._growAfterOpen&&(be=N.y-$t/2)}if("end"===oe.overlayX&&!ue||"start"===oe.overlayX&&ue)pt=Oe.width-N.x+this._viewportMargin,tt=N.x-this._viewportMargin;else if("start"===oe.overlayX&&!ue||"end"===oe.overlayX&&ue)ft=N.x,tt=Oe.right-N.x;else{const wt=Math.min(Oe.right-N.x+Oe.left,N.x),$t=this._lastBoundingBoxSize.width;tt=2*wt,ft=N.x-wt,tt>$t&&!this._isInitialRender&&!this._growAfterOpen&&(ft=N.x-$t/2)}return{top:be,left:ft,bottom:re,right:pt,width:tt,height:Te}}_setBoundingBoxStyles(N,oe){const Oe=this._calculateBoundingBoxRect(N,oe);!this._isInitialRender&&!this._growAfterOpen&&(Oe.height=Math.min(Oe.height,this._lastBoundingBoxSize.height),Oe.width=Math.min(Oe.width,this._lastBoundingBoxSize.width));const ue={};if(this._hasExactPosition())ue.top=ue.left="0",ue.bottom=ue.right=ue.maxHeight=ue.maxWidth="",ue.width=ue.height="100%";else{const Te=this._overlayRef.getConfig().maxHeight,be=this._overlayRef.getConfig().maxWidth;ue.height=(0,c.HM)(Oe.height),ue.top=(0,c.HM)(Oe.top),ue.bottom=(0,c.HM)(Oe.bottom),ue.width=(0,c.HM)(Oe.width),ue.left=(0,c.HM)(Oe.left),ue.right=(0,c.HM)(Oe.right),ue.alignItems="center"===oe.overlayX?"center":"end"===oe.overlayX?"flex-end":"flex-start",ue.justifyContent="center"===oe.overlayY?"center":"bottom"===oe.overlayY?"flex-end":"flex-start",Te&&(ue.maxHeight=(0,c.HM)(Te)),be&&(ue.maxWidth=(0,c.HM)(be))}this._lastBoundingBoxSize=Oe,Ke(this._boundingBox.style,ue)}_resetBoundingBoxStyles(){Ke(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ke(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(N,oe){const Oe={},ue=this._hasExactPosition(),Te=this._hasFlexibleDimensions,be=this._overlayRef.getConfig();if(ue){const tt=this._viewportRuler.getViewportScrollPosition();Ke(Oe,this._getExactOverlayY(oe,N,tt)),Ke(Oe,this._getExactOverlayX(oe,N,tt))}else Oe.position="static";let re="",Ce=this._getOffset(oe,"x"),Ze=this._getOffset(oe,"y");Ce&&(re+=`translateX(${Ce}px) `),Ze&&(re+=`translateY(${Ze}px)`),Oe.transform=re.trim(),be.maxHeight&&(ue?Oe.maxHeight=(0,c.HM)(be.maxHeight):Te&&(Oe.maxHeight="")),be.maxWidth&&(ue?Oe.maxWidth=(0,c.HM)(be.maxWidth):Te&&(Oe.maxWidth="")),Ke(this._pane.style,Oe)}_getExactOverlayY(N,oe,Oe){let ue={top:"",bottom:""},Te=this._getOverlayPoint(oe,this._overlayRect,N);return this._isPushed&&(Te=this._pushOverlayOnScreen(Te,this._overlayRect,Oe)),"bottom"===N.overlayY?ue.bottom=this._document.documentElement.clientHeight-(Te.y+this._overlayRect.height)+"px":ue.top=(0,c.HM)(Te.y),ue}_getExactOverlayX(N,oe,Oe){let be,ue={left:"",right:""},Te=this._getOverlayPoint(oe,this._overlayRect,N);return this._isPushed&&(Te=this._pushOverlayOnScreen(Te,this._overlayRect,Oe)),be=this._isRtl()?"end"===N.overlayX?"left":"right":"end"===N.overlayX?"right":"left","right"===be?ue.right=this._document.documentElement.clientWidth-(Te.x+this._overlayRect.width)+"px":ue.left=(0,c.HM)(Te.x),ue}_getScrollVisibility(){const N=this._getOriginRect(),oe=this._pane.getBoundingClientRect(),Oe=this._scrollables.map(ue=>ue.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Me(N,Oe),isOriginOutsideView:le(N,Oe),isOverlayClipped:Me(oe,Oe),isOverlayOutsideView:le(oe,Oe)}}_subtractOverflows(N,...oe){return oe.reduce((Oe,ue)=>Oe-Math.max(ue,0),N)}_getNarrowedViewportRect(){const N=this._document.documentElement.clientWidth,oe=this._document.documentElement.clientHeight,Oe=this._viewportRuler.getViewportScrollPosition();return{top:Oe.top+this._viewportMargin,left:Oe.left+this._viewportMargin,right:Oe.left+N-this._viewportMargin,bottom:Oe.top+oe-this._viewportMargin,width:N-2*this._viewportMargin,height:oe-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(N,oe){return"x"===oe?null==N.offsetX?this._offsetX:N.offsetX:null==N.offsetY?this._offsetY:N.offsetY}_validatePositions(){}_addPanelClasses(N){this._pane&&(0,c.Eq)(N).forEach(oe=>{""!==oe&&-1===this._appliedPanelClasses.indexOf(oe)&&(this._appliedPanelClasses.push(oe),this._pane.classList.add(oe))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(N=>{this._pane.classList.remove(N)}),this._appliedPanelClasses=[])}_getOriginRect(){const N=this._origin;if(N instanceof m.ElementRef)return N.nativeElement.getBoundingClientRect();if(N instanceof Element)return N.getBoundingClientRect();const oe=N.width||0,Oe=N.height||0;return{top:N.y,bottom:N.y+Oe,left:N.x,right:N.x+oe,height:Oe,width:oe}}}function Ke(Qe,N){for(let oe in N)N.hasOwnProperty(oe)&&(Qe[oe]=N[oe]);return Qe}function ge(Qe){if("number"!=typeof Qe&&null!=Qe){const[N,oe]=Qe.split(Ie);return oe&&"px"!==oe?null:parseFloat(N)}return Qe||null}function nt(Qe){return{top:Math.floor(Qe.top),right:Math.floor(Qe.right),bottom:Math.floor(Qe.bottom),left:Math.floor(Qe.left),width:Math.floor(Qe.width),height:Math.floor(Qe.height)}}const ve="cdk-global-overlay-wrapper";class $e{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(N){const oe=N.getConfig();this._overlayRef=N,this._width&&!oe.width&&N.updateSize({width:this._width}),this._height&&!oe.height&&N.updateSize({height:this._height}),N.hostElement.classList.add(ve),this._isDisposed=!1}top(N=""){return this._bottomOffset="",this._topOffset=N,this._alignItems="flex-start",this}left(N=""){return this._rightOffset="",this._leftOffset=N,this._justifyContent="flex-start",this}bottom(N=""){return this._topOffset="",this._bottomOffset=N,this._alignItems="flex-end",this}right(N=""){return this._leftOffset="",this._rightOffset=N,this._justifyContent="flex-end",this}width(N=""){return this._overlayRef?this._overlayRef.updateSize({width:N}):this._width=N,this}height(N=""){return this._overlayRef?this._overlayRef.updateSize({height:N}):this._height=N,this}centerHorizontally(N=""){return this.left(N),this._justifyContent="center",this}centerVertically(N=""){return this.top(N),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const N=this._overlayRef.overlayElement.style,oe=this._overlayRef.hostElement.style,Oe=this._overlayRef.getConfig(),{width:ue,height:Te,maxWidth:be,maxHeight:re}=Oe,Ce=!("100%"!==ue&&"100vw"!==ue||be&&"100%"!==be&&"100vw"!==be),Ze=!("100%"!==Te&&"100vh"!==Te||re&&"100%"!==re&&"100vh"!==re);N.position=this._cssPosition,N.marginLeft=Ce?"0":this._leftOffset,N.marginTop=Ze?"0":this._topOffset,N.marginBottom=this._bottomOffset,N.marginRight=this._rightOffset,Ce?oe.justifyContent="flex-start":"center"===this._justifyContent?oe.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?oe.justifyContent="flex-end":"flex-end"===this._justifyContent&&(oe.justifyContent="flex-start"):oe.justifyContent=this._justifyContent,oe.alignItems=Ze?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const N=this._overlayRef.overlayElement.style,oe=this._overlayRef.hostElement,Oe=oe.style;oe.classList.remove(ve),Oe.justifyContent=Oe.alignItems=N.marginTop=N.marginBottom=N.marginLeft=N.marginRight=N.position="",this._overlayRef=null,this._isDisposed=!0}}let ct=(()=>{class Qe{constructor(oe,Oe,ue,Te){this._viewportRuler=oe,this._document=Oe,this._platform=ue,this._overlayContainer=Te}global(){return new $e}flexibleConnectedTo(oe){return new ie(oe,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Qe.\u0275fac=function(oe){return new(oe||Qe)(m.\u0275\u0275inject(i.rL),m.\u0275\u0275inject(u.DOCUMENT),m.\u0275\u0275inject(s.t4),m.\u0275\u0275inject(J))},Qe.\u0275prov=m.\u0275\u0275defineInjectable({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})(),Tt=(()=>{class Qe{constructor(oe){this._attachedOverlays=[],this._document=oe}ngOnDestroy(){this.detach()}add(oe){this.remove(oe),this._attachedOverlays.push(oe)}remove(oe){const Oe=this._attachedOverlays.indexOf(oe);Oe>-1&&this._attachedOverlays.splice(Oe,1),0===this._attachedOverlays.length&&this.detach()}}return Qe.\u0275fac=function(oe){return new(oe||Qe)(m.\u0275\u0275inject(u.DOCUMENT))},Qe.\u0275prov=m.\u0275\u0275defineInjectable({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})(),Fe=(()=>{class Qe extends Tt{constructor(oe){super(oe),this._keydownListener=Oe=>{const ue=this._attachedOverlays;for(let Te=ue.length-1;Te>-1;Te--)if(ue[Te]._keydownEvents.observers.length>0){ue[Te]._keydownEvents.next(Oe);break}}}add(oe){super.add(oe),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 Qe.\u0275fac=function(oe){return new(oe||Qe)(m.\u0275\u0275inject(u.DOCUMENT))},Qe.\u0275prov=m.\u0275\u0275defineInjectable({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})(),Je=(()=>{class Qe extends Tt{constructor(oe,Oe){super(oe),this._platform=Oe,this._cursorStyleIsSet=!1,this._pointerDownListener=ue=>{this._pointerDownEventTarget=(0,s.sA)(ue)},this._clickListener=ue=>{const Te=(0,s.sA)(ue),be="click"===ue.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Te;this._pointerDownEventTarget=null;const re=this._attachedOverlays.slice();for(let Ce=re.length-1;Ce>-1;Ce--){const Ze=re[Ce];if(!(Ze._outsidePointerEvents.observers.length<1)&&Ze.hasAttached()){if(Ze.overlayElement.contains(Te)||Ze.overlayElement.contains(be))break;Ze._outsidePointerEvents.next(ue)}}}}add(oe){if(super.add(oe),!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 oe=this._document.body;oe.removeEventListener("pointerdown",this._pointerDownListener,!0),oe.removeEventListener("click",this._clickListener,!0),oe.removeEventListener("auxclick",this._clickListener,!0),oe.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(oe.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return Qe.\u0275fac=function(oe){return new(oe||Qe)(m.\u0275\u0275inject(u.DOCUMENT),m.\u0275\u0275inject(s.t4))},Qe.\u0275prov=m.\u0275\u0275defineInjectable({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})(),Y=0,me=(()=>{class Qe{constructor(oe,Oe,ue,Te,be,re,Ce,Ze,tt,ft,pt){this.scrollStrategies=oe,this._overlayContainer=Oe,this._componentFactoryResolver=ue,this._positionBuilder=Te,this._keyboardDispatcher=be,this._injector=re,this._ngZone=Ce,this._document=Ze,this._directionality=tt,this._location=ft,this._outsideClickDispatcher=pt}create(oe){const Oe=this._createHostElement(),ue=this._createPaneElement(Oe),Te=this._createPortalOutlet(ue),be=new se(oe);return be.direction=be.direction||this._directionality.value,new Pe(Te,Oe,ue,be,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(oe){const Oe=this._document.createElement("div");return Oe.id="cdk-overlay-"+Y++,Oe.classList.add("cdk-overlay-pane"),oe.appendChild(Oe),Oe}_createHostElement(){const oe=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(oe),oe}_createPortalOutlet(oe){return this._appRef||(this._appRef=this._injector.get(m.ApplicationRef)),new C.u0(oe,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Qe.\u0275fac=function(oe){return new(oe||Qe)(m.\u0275\u0275inject(ye),m.\u0275\u0275inject(J),m.\u0275\u0275inject(m.ComponentFactoryResolver),m.\u0275\u0275inject(ct),m.\u0275\u0275inject(Fe),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(Je))},Qe.\u0275prov=m.\u0275\u0275defineInjectable({token:Qe,factory:Qe.\u0275fac}),Qe})();const Ct={provide:new m.InjectionToken("cdk-connected-overlay-scroll-strategy"),deps:[me],useFactory:function yt(Qe){return()=>Qe.scrollStrategies.reposition()}};let Ot=(()=>{class Qe{}return Qe.\u0275fac=function(oe){return new(oe||Qe)},Qe.\u0275mod=m.\u0275\u0275defineNgModule({type:Qe}),Qe.\u0275inj=m.\u0275\u0275defineInjector({providers:[me,Ct],imports:[[_.vT,C.eL,i.Cl],i.Cl]}),Qe})()},925:(Le,g,l)=>{"use strict";l.d(g,{t4:()=>c,ud:()=>s,sA:()=>pe,ht:()=>Me,kV:()=>le,Oy:()=>ye,i$:()=>A,Mq:()=>x});var i=l(5e3),u=l(9808);let m;try{m="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(se){m=!1}let I,b,fe,c=(()=>{class se{constructor(ke){this._platformId=ke,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 se.\u0275fac=function(ke){return new(ke||se)(i.\u0275\u0275inject(i.PLATFORM_ID))},se.\u0275prov=i.\u0275\u0275defineInjectable({token:se,factory:se.\u0275fac,providedIn:"root"}),se})(),s=(()=>{class se{}return se.\u0275fac=function(ke){return new(ke||se)},se.\u0275mod=i.\u0275\u0275defineNgModule({type:se}),se.\u0275inj=i.\u0275\u0275defineInjector({}),se})();function A(se){return function h(){if(null==I&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>I=!0}))}finally{I=I||!1}return I}()?se:!!se.capture}function x(){if(null==b){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return b=!1,b;if("scrollBehavior"in document.documentElement.style)b=!0;else{const se=Element.prototype.scrollTo;b=!!se&&!/\{\s*\[native code\]\s*\}/.test(se.toString())}}return b}function le(se){if(function $(){if(null==fe){const se="undefined"!=typeof document?document.head:null;fe=!(!se||!se.createShadowRoot&&!se.attachShadow)}return fe}()){const De=se.getRootNode?se.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&De instanceof ShadowRoot)return De}return null}function Me(){let se="undefined"!=typeof document&&document?document.activeElement:null;for(;se&&se.shadowRoot;){const De=se.shadowRoot.activeElement;if(De===se)break;se=De}return se}function pe(se){return se.composedPath?se.composedPath()[0]:se.target}function ye(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(Le,g,l)=>{"use strict";l.d(g,{en:()=>b,ig:()=>$,Pl:()=>Me,C5:()=>h,u0:()=>V,eL:()=>ye,UE:()=>A});var i=l(5e3),u=l(9808);class I{attach(ke){return this._attachedHost=ke,ke.attach(this)}detach(){let ke=this._attachedHost;null!=ke&&(this._attachedHost=null,ke.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(ke){this._attachedHost=ke}}class h extends I{constructor(ke,Xe,st,q){super(),this.component=ke,this.viewContainerRef=Xe,this.injector=st,this.componentFactoryResolver=q}}class A extends I{constructor(ke,Xe,st){super(),this.templateRef=ke,this.viewContainerRef=Xe,this.context=st}get origin(){return this.templateRef.elementRef}attach(ke,Xe=this.context){return this.context=Xe,super.attach(ke)}detach(){return this.context=void 0,super.detach()}}class T extends I{constructor(ke){super(),this.element=ke instanceof i.ElementRef?ke.nativeElement:ke}}class b{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(ke){return ke instanceof h?(this._attachedPortal=ke,this.attachComponentPortal(ke)):ke instanceof A?(this._attachedPortal=ke,this.attachTemplatePortal(ke)):this.attachDomPortal&&ke instanceof T?(this._attachedPortal=ke,this.attachDomPortal(ke)):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(ke){this._disposeFn=ke}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class V extends b{constructor(ke,Xe,st,q,Pe){super(),this.outletElement=ke,this._componentFactoryResolver=Xe,this._appRef=st,this._defaultInjector=q,this.attachDomPortal=J=>{const ae=J.element,Ie=this._document.createComment("dom-portal");ae.parentNode.insertBefore(Ie,ae),this.outletElement.appendChild(ae),this._attachedPortal=J,super.setDisposeFn(()=>{Ie.parentNode&&Ie.parentNode.replaceChild(ae,Ie)})},this._document=Pe}attachComponentPortal(ke){const st=(ke.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ke.component);let q;return ke.viewContainerRef?(q=ke.viewContainerRef.createComponent(st,ke.viewContainerRef.length,ke.injector||ke.viewContainerRef.injector),this.setDisposeFn(()=>q.destroy())):(q=st.create(ke.injector||this._defaultInjector),this._appRef.attachView(q.hostView),this.setDisposeFn(()=>{this._appRef.detachView(q.hostView),q.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(q)),this._attachedPortal=ke,q}attachTemplatePortal(ke){let Xe=ke.viewContainerRef,st=Xe.createEmbeddedView(ke.templateRef,ke.context);return st.rootNodes.forEach(q=>this.outletElement.appendChild(q)),st.detectChanges(),this.setDisposeFn(()=>{let q=Xe.indexOf(st);-1!==q&&Xe.remove(q)}),this._attachedPortal=ke,st}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ke){return ke.hostView.rootNodes[0]}}let $=(()=>{class De extends A{constructor(Xe,st){super(Xe,st)}}return De.\u0275fac=function(Xe){return new(Xe||De)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.ViewContainerRef))},De.\u0275dir=i.\u0275\u0275defineDirective({type:De,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[i.\u0275\u0275InheritDefinitionFeature]}),De})(),Me=(()=>{class De extends b{constructor(Xe,st,q){super(),this._componentFactoryResolver=Xe,this._viewContainerRef=st,this._isInitialized=!1,this.attached=new i.EventEmitter,this.attachDomPortal=Pe=>{const J=Pe.element,ae=this._document.createComment("dom-portal");Pe.setAttachedHost(this),J.parentNode.insertBefore(ae,J),this._getRootNode().appendChild(J),this._attachedPortal=Pe,super.setDisposeFn(()=>{ae.parentNode&&ae.parentNode.replaceChild(J,ae)})},this._document=q}get portal(){return this._attachedPortal}set portal(Xe){this.hasAttached()&&!Xe&&!this._isInitialized||(this.hasAttached()&&super.detach(),Xe&&super.attach(Xe),this._attachedPortal=Xe||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(Xe){Xe.setAttachedHost(this);const st=null!=Xe.viewContainerRef?Xe.viewContainerRef:this._viewContainerRef,Pe=(Xe.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Xe.component),J=st.createComponent(Pe,st.length,Xe.injector||st.injector);return st!==this._viewContainerRef&&this._getRootNode().appendChild(J.hostView.rootNodes[0]),super.setDisposeFn(()=>J.destroy()),this._attachedPortal=Xe,this._attachedRef=J,this.attached.emit(J),J}attachTemplatePortal(Xe){Xe.setAttachedHost(this);const st=this._viewContainerRef.createEmbeddedView(Xe.templateRef,Xe.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Xe,this._attachedRef=st,this.attached.emit(st),st}_getRootNode(){const Xe=this._viewContainerRef.element.nativeElement;return Xe.nodeType===Xe.ELEMENT_NODE?Xe:Xe.parentNode}}return De.\u0275fac=function(Xe){return new(Xe||De)(i.\u0275\u0275directiveInject(i.ComponentFactoryResolver),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(u.DOCUMENT))},De.\u0275dir=i.\u0275\u0275defineDirective({type:De,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.\u0275\u0275InheritDefinitionFeature]}),De})(),ye=(()=>{class De{}return De.\u0275fac=function(Xe){return new(Xe||De)},De.\u0275mod=i.\u0275\u0275defineNgModule({type:De}),De.\u0275inj=i.\u0275\u0275defineInjector({}),De})()},9071:(Le,g,l)=>{"use strict";l.d(g,{ZD:()=>ae,mF:()=>ye,Cl:()=>Ie,rL:()=>ke});var i=l(3191),u=l(5e3),m=l(6758),c=l(9646),s=l(9751),_=l(4968),I=(l(29),l(3101),l(453)),h=l(9300),A=l(9808),T=l(925),b=l(226);let ye=(()=>{class ie{constructor(ge,nt,ve){this._ngZone=ge,this._platform=nt,this._scrolled=new m.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ve}register(ge){this.scrollContainers.has(ge)||this.scrollContainers.set(ge,ge.elementScrolled().subscribe(()=>this._scrolled.next(ge)))}deregister(ge){const nt=this.scrollContainers.get(ge);nt&&(nt.unsubscribe(),this.scrollContainers.delete(ge))}scrolled(ge=20){return this._platform.isBrowser?new s.y(nt=>{this._globalSubscription||this._addGlobalListener();const ve=ge>0?this._scrolled.pipe((0,I.e)(ge)).subscribe(nt):this._scrolled.subscribe(nt);return this._scrolledCount++,()=>{ve.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,c.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ge,nt)=>this.deregister(nt)),this._scrolled.complete()}ancestorScrolled(ge,nt){const ve=this.getAncestorScrollContainers(ge);return this.scrolled(nt).pipe((0,h.h)($e=>!$e||ve.indexOf($e)>-1))}getAncestorScrollContainers(ge){const nt=[];return this.scrollContainers.forEach((ve,$e)=>{this._scrollableContainsElement($e,ge)&&nt.push($e)}),nt}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ge,nt){let ve=(0,i.fI)(nt),$e=ge.getElementRef().nativeElement;do{if(ve==$e)return!0}while(ve=ve.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ge=this._getWindow();return(0,_.R)(ge.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return ie.\u0275fac=function(ge){return new(ge||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})(),ke=(()=>{class ie{constructor(ge,nt,ve){this._platform=ge,this._change=new m.x,this._changeListener=$e=>{this._change.next($e)},this._document=ve,nt.runOutsideAngular(()=>{if(ge.isBrowser){const $e=this._getWindow();$e.addEventListener("resize",this._changeListener),$e.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ge=this._getWindow();ge.removeEventListener("resize",this._changeListener),ge.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ge={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ge}getViewportRect(){const ge=this.getViewportScrollPosition(),{width:nt,height:ve}=this.getViewportSize();return{top:ge.top,left:ge.left,bottom:ge.top+ve,right:ge.left+nt,height:ve,width:nt}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ge=this._document,nt=this._getWindow(),ve=ge.documentElement,$e=ve.getBoundingClientRect();return{top:-$e.top||ge.body.scrollTop||nt.scrollY||ve.scrollTop||0,left:-$e.left||ge.body.scrollLeft||nt.scrollX||ve.scrollLeft||0}}change(ge=20){return ge>0?this._change.pipe((0,I.e)(ge)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ge=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ge.innerWidth,height:ge.innerHeight}:{width:0,height:0}}}return ie.\u0275fac=function(ge){return new(ge||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})(),ae=(()=>{class ie{}return ie.\u0275fac=function(ge){return new(ge||ie)},ie.\u0275mod=u.\u0275\u0275defineNgModule({type:ie}),ie.\u0275inj=u.\u0275\u0275defineInjector({}),ie})(),Ie=(()=>{class ie{}return ie.\u0275fac=function(ge){return new(ge||ie)},ie.\u0275mod=u.\u0275\u0275defineNgModule({type:ie}),ie.\u0275inj=u.\u0275\u0275defineInjector({imports:[[b.vT,T.ud,ae],b.vT,ae]}),ie})()},9808:(Le,g,l)=>{"use strict";l.r(g),l.d(g,{APP_BASE_HREF:()=>Me,AsyncPipe:()=>Wi,CommonModule:()=>rr,CurrencyPipe:()=>Ai,DATE_PIPE_DEFAULT_TIMEZONE:()=>gr,DOCUMENT:()=>C,DatePipe:()=>Di,DecimalPipe:()=>_r,FormStyle:()=>J,FormatWidth:()=>Ie,HashLocationStrategy:()=>ye,I18nPluralPipe:()=>Ar,I18nSelectPipe:()=>Ki,JsonPipe:()=>Ii,KeyValuePipe:()=>Or,LOCATION_INITIALIZED:()=>h,Location:()=>se,LocationStrategy:()=>$,LowerCasePipe:()=>Ir,NgClass:()=>hn,NgComponentOutlet:()=>$n,NgForOf:()=>Sn,NgForOfContext:()=>Un,NgIf:()=>xn,NgIfContext:()=>gn,NgLocaleLocalization:()=>vn,NgLocalization:()=>Lt,NgPlural:()=>hi,NgPluralCase:()=>Wn,NgStyle:()=>Sr,NgSwitch:()=>Kn,NgSwitchCase:()=>Gn,NgSwitchDefault:()=>Ci,NgTemplateOutlet:()=>nr,NumberFormatStyle:()=>q,NumberSymbol:()=>ie,PathLocationStrategy:()=>pe,PercentPipe:()=>fi,PlatformLocation:()=>D,Plural:()=>Pe,SlicePipe:()=>mi,TitleCasePipe:()=>zi,TranslationWidth:()=>ae,UpperCasePipe:()=>ci,VERSION:()=>Yi,ViewportScroller:()=>ki,WeekDay:()=>Ke,XhrFactory:()=>Ln,formatCurrency:()=>Bn,formatDate:()=>$t,formatNumber:()=>Se,formatPercent:()=>H,getCurrencySymbol:()=>Te,getLocaleCurrencyCode:()=>yt,getLocaleCurrencyName:()=>Ye,getLocaleCurrencySymbol:()=>_e,getLocaleDateFormat:()=>Je,getLocaleDateTimeFormat:()=>me,getLocaleDayNames:()=>ve,getLocaleDayPeriods:()=>nt,getLocaleDirection:()=>oe,getLocaleEraNames:()=>ct,getLocaleExtraDayPeriodRules:()=>Qe,getLocaleExtraDayPeriods:()=>N,getLocaleFirstDayOfWeek:()=>Tt,getLocaleId:()=>ge,getLocaleMonthNames:()=>$e,getLocaleNumberFormat:()=>Re,getLocaleNumberSymbol:()=>we,getLocalePluralCase:()=>Ot,getLocaleTimeFormat:()=>Y,getLocaleWeekEndRange:()=>Fe,getNumberOfCurrencyDigits:()=>re,isPlatformBrowser:()=>ti,isPlatformServer:()=>Ri,isPlatformWorkerApp:()=>or,isPlatformWorkerUi:()=>Fi,registerLocaleData:()=>jt,\u0275BrowserPlatformLocation:()=>A,\u0275DomAdapter:()=>_,\u0275NullViewportScroller:()=>ar,\u0275PLATFORM_BROWSER_ID:()=>Oi,\u0275PLATFORM_SERVER_ID:()=>wi,\u0275PLATFORM_WORKER_APP_ID:()=>xi,\u0275PLATFORM_WORKER_UI_ID:()=>Zi,\u0275getDOM:()=>m,\u0275parseCookieValue:()=>On,\u0275setRootDomAdapter:()=>s});var i=l(5e3);let u=null;function m(){return u}function s(R){u||(u=R)}class _{}const C=new i.InjectionToken("DocumentToken");let D=(()=>{class R{historyGo(F){throw new Error("Not implemented")}}return R.\u0275fac=function(F){return new(F||R)},R.\u0275prov=i.\u0275\u0275defineInjectable({token:R,factory:function(){return function I(){return(0,i.\u0275\u0275inject)(A)}()},providedIn:"platform"}),R})();const h=new i.InjectionToken("Location Initialized");let A=(()=>{class R extends D{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 ne=m().getGlobalEventTarget(this._doc,"window");return ne.addEventListener("popstate",F,!1),()=>ne.removeEventListener("popstate",F)}onHashChange(F){const ne=m().getGlobalEventTarget(this._doc,"window");return ne.addEventListener("hashchange",F,!1),()=>ne.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,ne,ze){T()?this._history.pushState(F,ne,ze):this.location.hash=ze}replaceState(F,ne,ze){T()?this._history.replaceState(F,ne,ze):this.location.hash=ze}forward(){this._history.forward()}back(){this._history.back()}historyGo(F=0){this._history.go(F)}getState(){return this._history.state}}return R.\u0275fac=function(F){return new(F||R)(i.\u0275\u0275inject(C))},R.\u0275prov=i.\u0275\u0275defineInjectable({token:R,factory:function(){return function b(){return new A((0,i.\u0275\u0275inject)(C))}()},providedIn:"platform"}),R})();function T(){return!!window.history.pushState}function x(R,Q){if(0==R.length)return Q;if(0==Q.length)return R;let F=0;return R.endsWith("/")&&F++,Q.startsWith("/")&&F++,2==F?R+Q.substring(1):1==F?R+Q:R+"/"+Q}function V(R){const Q=R.match(/#|\?|$/),F=Q&&Q.index||R.length;return R.slice(0,F-("/"===R[F-1]?1:0))+R.slice(F)}function fe(R){return R&&"?"!==R[0]?"?"+R:R}let $=(()=>{class R{historyGo(F){throw new Error("Not implemented")}}return R.\u0275fac=function(F){return new(F||R)},R.\u0275prov=i.\u0275\u0275defineInjectable({token:R,factory:function(){return function le(R){const Q=(0,i.\u0275\u0275inject)(C).location;return new pe((0,i.\u0275\u0275inject)(D),Q&&Q.origin||"")}()},providedIn:"root"}),R})();const Me=new i.InjectionToken("appBaseHref");let pe=(()=>{class R extends ${constructor(F,ne){if(super(),this._platformLocation=F,this._removeListenerFns=[],null==ne&&(ne=this._platformLocation.getBaseHrefFromDOM()),null==ne)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=ne}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 x(this._baseHref,F)}path(F=!1){const ne=this._platformLocation.pathname+fe(this._platformLocation.search),ze=this._platformLocation.hash;return ze&&F?`${ne}${ze}`:ne}pushState(F,ne,ze,ut){const bt=this.prepareExternalUrl(ze+fe(ut));this._platformLocation.pushState(F,ne,bt)}replaceState(F,ne,ze,ut){const bt=this.prepareExternalUrl(ze+fe(ut));this._platformLocation.replaceState(F,ne,bt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(F=0){var ne,ze;null===(ze=(ne=this._platformLocation).historyGo)||void 0===ze||ze.call(ne,F)}}return R.\u0275fac=function(F){return new(F||R)(i.\u0275\u0275inject(D),i.\u0275\u0275inject(Me,8))},R.\u0275prov=i.\u0275\u0275defineInjectable({token:R,factory:R.\u0275fac}),R})(),ye=(()=>{class R extends ${constructor(F,ne){super(),this._platformLocation=F,this._baseHref="",this._removeListenerFns=[],null!=ne&&(this._baseHref=ne)}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 ne=this._platformLocation.hash;return null==ne&&(ne="#"),ne.length>0?ne.substring(1):ne}prepareExternalUrl(F){const ne=x(this._baseHref,F);return ne.length>0?"#"+ne:ne}pushState(F,ne,ze,ut){let bt=this.prepareExternalUrl(ze+fe(ut));0==bt.length&&(bt=this._platformLocation.pathname),this._platformLocation.pushState(F,ne,bt)}replaceState(F,ne,ze,ut){let bt=this.prepareExternalUrl(ze+fe(ut));0==bt.length&&(bt=this._platformLocation.pathname),this._platformLocation.replaceState(F,ne,bt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(F=0){var ne,ze;null===(ze=(ne=this._platformLocation).historyGo)||void 0===ze||ze.call(ne,F)}}return R.\u0275fac=function(F){return new(F||R)(i.\u0275\u0275inject(D),i.\u0275\u0275inject(Me,8))},R.\u0275prov=i.\u0275\u0275defineInjectable({token:R,factory:R.\u0275fac}),R})(),se=(()=>{class R{constructor(F,ne){this._subject=new i.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=F;const ze=this._platformStrategy.getBaseHref();this._platformLocation=ne,this._baseHref=V(Xe(ze)),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,ne=""){return this.path()==this.normalize(F+fe(ne))}normalize(F){return R.stripTrailingSlash(function ke(R,Q){return R&&Q.startsWith(R)?Q.substring(R.length):Q}(this._baseHref,Xe(F)))}prepareExternalUrl(F){return F&&"/"!==F[0]&&(F="/"+F),this._platformStrategy.prepareExternalUrl(F)}go(F,ne="",ze=null){this._platformStrategy.pushState(ze,"",F,ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+fe(ne)),ze)}replaceState(F,ne="",ze=null){this._platformStrategy.replaceState(ze,"",F,ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+fe(ne)),ze)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(F=0){var ne,ze;null===(ze=(ne=this._platformStrategy).historyGo)||void 0===ze||ze.call(ne,F)}onUrlChange(F){this._urlChangeListeners.push(F),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(ne=>{this._notifyUrlChangeListeners(ne.url,ne.state)}))}_notifyUrlChangeListeners(F="",ne){this._urlChangeListeners.forEach(ze=>ze(F,ne))}subscribe(F,ne,ze){return this._subject.subscribe({next:F,error:ne,complete:ze})}}return R.normalizeQueryParams=fe,R.joinWithSlash=x,R.stripTrailingSlash=V,R.\u0275fac=function(F){return new(F||R)(i.\u0275\u0275inject($),i.\u0275\u0275inject(D))},R.\u0275prov=i.\u0275\u0275defineInjectable({token:R,factory:function(){return function De(){return new se((0,i.\u0275\u0275inject)($),(0,i.\u0275\u0275inject)(D))}()},providedIn:"root"}),R})();function Xe(R){return R.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 q=(()=>((q=q||{})[q.Decimal=0]="Decimal",q[q.Percent=1]="Percent",q[q.Currency=2]="Currency",q[q.Scientific=3]="Scientific",q))(),Pe=(()=>((Pe=Pe||{})[Pe.Zero=0]="Zero",Pe[Pe.One=1]="One",Pe[Pe.Two=2]="Two",Pe[Pe.Few=3]="Few",Pe[Pe.Many=4]="Many",Pe[Pe.Other=5]="Other",Pe))(),J=(()=>((J=J||{})[J.Format=0]="Format",J[J.Standalone=1]="Standalone",J))(),ae=(()=>((ae=ae||{})[ae.Narrow=0]="Narrow",ae[ae.Abbreviated=1]="Abbreviated",ae[ae.Wide=2]="Wide",ae[ae.Short=3]="Short",ae))(),Ie=(()=>((Ie=Ie||{})[Ie.Short=0]="Short",Ie[Ie.Medium=1]="Medium",Ie[Ie.Long=2]="Long",Ie[Ie.Full=3]="Full",Ie))(),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))(),Ke=(()=>((Ke=Ke||{})[Ke.Sunday=0]="Sunday",Ke[Ke.Monday=1]="Monday",Ke[Ke.Tuesday=2]="Tuesday",Ke[Ke.Wednesday=3]="Wednesday",Ke[Ke.Thursday=4]="Thursday",Ke[Ke.Friday=5]="Friday",Ke[Ke.Saturday=6]="Saturday",Ke))();function ge(R){return(0,i.\u0275findLocaleData)(R)[i.\u0275LocaleDataIndex.LocaleId]}function nt(R,Q,F){const ne=(0,i.\u0275findLocaleData)(R),ut=Oe([ne[i.\u0275LocaleDataIndex.DayPeriodsFormat],ne[i.\u0275LocaleDataIndex.DayPeriodsStandalone]],Q);return Oe(ut,F)}function ve(R,Q,F){const ne=(0,i.\u0275findLocaleData)(R),ut=Oe([ne[i.\u0275LocaleDataIndex.DaysFormat],ne[i.\u0275LocaleDataIndex.DaysStandalone]],Q);return Oe(ut,F)}function $e(R,Q,F){const ne=(0,i.\u0275findLocaleData)(R),ut=Oe([ne[i.\u0275LocaleDataIndex.MonthsFormat],ne[i.\u0275LocaleDataIndex.MonthsStandalone]],Q);return Oe(ut,F)}function ct(R,Q){return Oe((0,i.\u0275findLocaleData)(R)[i.\u0275LocaleDataIndex.Eras],Q)}function Tt(R){return(0,i.\u0275findLocaleData)(R)[i.\u0275LocaleDataIndex.FirstDayOfWeek]}function Fe(R){return(0,i.\u0275findLocaleData)(R)[i.\u0275LocaleDataIndex.WeekendRange]}function Je(R,Q){return Oe((0,i.\u0275findLocaleData)(R)[i.\u0275LocaleDataIndex.DateFormat],Q)}function Y(R,Q){return Oe((0,i.\u0275findLocaleData)(R)[i.\u0275LocaleDataIndex.TimeFormat],Q)}function me(R,Q){return Oe((0,i.\u0275findLocaleData)(R)[i.\u0275LocaleDataIndex.DateTimeFormat],Q)}function we(R,Q){const F=(0,i.\u0275findLocaleData)(R),ne=F[i.\u0275LocaleDataIndex.NumberSymbols][Q];if(void 0===ne){if(Q===ie.CurrencyDecimal)return F[i.\u0275LocaleDataIndex.NumberSymbols][ie.Decimal];if(Q===ie.CurrencyGroup)return F[i.\u0275LocaleDataIndex.NumberSymbols][ie.Group]}return ne}function Re(R,Q){return(0,i.\u0275findLocaleData)(R)[i.\u0275LocaleDataIndex.NumberFormats][Q]}function _e(R){return(0,i.\u0275findLocaleData)(R)[i.\u0275LocaleDataIndex.CurrencySymbol]||null}function Ye(R){return(0,i.\u0275findLocaleData)(R)[i.\u0275LocaleDataIndex.CurrencyName]||null}function yt(R){return(0,i.\u0275getLocaleCurrencyCode)(R)}const Ot=i.\u0275getLocalePluralCase;function dt(R){if(!R[i.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${R[i.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Qe(R){const Q=(0,i.\u0275findLocaleData)(R);return dt(Q),(Q[i.\u0275LocaleDataIndex.ExtraData][2]||[]).map(ne=>"string"==typeof ne?ue(ne):[ue(ne[0]),ue(ne[1])])}function N(R,Q,F){const ne=(0,i.\u0275findLocaleData)(R);dt(ne);const ut=Oe([ne[i.\u0275LocaleDataIndex.ExtraData][0],ne[i.\u0275LocaleDataIndex.ExtraData][1]],Q)||[];return Oe(ut,F)||[]}function oe(R){return(0,i.\u0275findLocaleData)(R)[i.\u0275LocaleDataIndex.Directionality]}function Oe(R,Q){for(let F=Q;F>-1;F--)if(void 0!==R[F])return R[F];throw new Error("Locale data API: locale data undefined")}function ue(R){const[Q,F]=R.split(":");return{hours:+Q,minutes:+F}}function Te(R,Q,F="en"){const ne=function Ct(R){return(0,i.\u0275findLocaleData)(R)[i.\u0275LocaleDataIndex.Currencies]}(F)[R]||st[R]||[],ze=ne[1];return"narrow"===Q&&"string"==typeof ze?ze:ne[0]||R}function re(R){let Q;const F=st[R];return F&&(Q=F[2]),"number"==typeof Q?Q:2}const Ce=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ze={},tt=/((?:[^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 ft=(()=>((ft=ft||{})[ft.Short=0]="Short",ft[ft.ShortGMT=1]="ShortGMT",ft[ft.Long=2]="Long",ft[ft.Extended=3]="Extended",ft))(),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))(),wt=(()=>((wt=wt||{})[wt.DayPeriods=0]="DayPeriods",wt[wt.Days=1]="Days",wt[wt.Months=2]="Months",wt[wt.Eras=3]="Eras",wt))();function $t(R,Q,F,ne){let ze=function Ue(R){if(Ve(R))return R;if("number"==typeof R&&!isNaN(R))return new Date(R);if("string"==typeof R){if(R=R.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(R)){const[ze,ut=1,bt=1]=R.split("-").map(Ft=>+Ft);return nn(ze,ut-1,bt)}const F=parseFloat(R);if(!isNaN(R-F))return new Date(F);let ne;if(ne=R.match(Ce))return function he(R){const Q=new Date(0);let F=0,ne=0;const ze=R[8]?Q.setUTCFullYear:Q.setFullYear,ut=R[8]?Q.setUTCHours:Q.setHours;R[9]&&(F=Number(R[9]+R[10]),ne=Number(R[9]+R[11])),ze.call(Q,Number(R[1]),Number(R[2])-1,Number(R[3]));const bt=Number(R[4]||0)-F,Ft=Number(R[5]||0)-ne,Tn=Number(R[6]||0),Mn=Math.floor(1e3*parseFloat("0."+(R[7]||0)));return ut.call(Q,bt,Ft,Tn,Mn),Q}(ne)}const Q=new Date(R);if(!Ve(Q))throw new Error(`Unable to convert "${R}" into a date`);return Q}(R);Q=Ht(F,Q)||Q;let Ft,bt=[];for(;Q;){if(Ft=tt.exec(Q),!Ft){bt.push(Q);break}{bt=bt.concat(Ft.slice(1));const In=bt.pop();if(!In)break;Q=In}}let Tn=ze.getTimezoneOffset();ne&&(Tn=Kt(ne,Tn),ze=function je(R,Q,F){const ne=F?-1:1,ze=R.getTimezoneOffset();return function rn(R,Q){return(R=new Date(R.getTime())).setMinutes(R.getMinutes()+Q),R}(R,ne*(Kt(Q,ze)-ze))}(ze,ne,!0));let Mn="";return bt.forEach(In=>{const fn=function Dt(R){if(rt[R])return rt[R];let Q;switch(R){case"G":case"GG":case"GGG":Q=Zt(wt.Eras,ae.Abbreviated);break;case"GGGG":Q=Zt(wt.Eras,ae.Wide);break;case"GGGGG":Q=Zt(wt.Eras,ae.Narrow);break;case"y":Q=St(pt.FullYear,1,0,!1,!0);break;case"yy":Q=St(pt.FullYear,2,0,!0,!0);break;case"yyy":Q=St(pt.FullYear,3,0,!1,!0);break;case"yyyy":Q=St(pt.FullYear,4,0,!1,!0);break;case"Y":Q=G(1);break;case"YY":Q=G(2,!0);break;case"YYY":Q=G(3);break;case"YYYY":Q=G(4);break;case"M":case"L":Q=St(pt.Month,1,1);break;case"MM":case"LL":Q=St(pt.Month,2,1);break;case"MMM":Q=Zt(wt.Months,ae.Abbreviated);break;case"MMMM":Q=Zt(wt.Months,ae.Wide);break;case"MMMMM":Q=Zt(wt.Months,ae.Narrow);break;case"LLL":Q=Zt(wt.Months,ae.Abbreviated,J.Standalone);break;case"LLLL":Q=Zt(wt.Months,ae.Wide,J.Standalone);break;case"LLLLL":Q=Zt(wt.Months,ae.Narrow,J.Standalone);break;case"w":Q=M(1);break;case"ww":Q=M(2);break;case"W":Q=M(1,!0);break;case"d":Q=St(pt.Date,1);break;case"dd":Q=St(pt.Date,2);break;case"c":case"cc":Q=St(pt.Day,1);break;case"ccc":Q=Zt(wt.Days,ae.Abbreviated,J.Standalone);break;case"cccc":Q=Zt(wt.Days,ae.Wide,J.Standalone);break;case"ccccc":Q=Zt(wt.Days,ae.Narrow,J.Standalone);break;case"cccccc":Q=Zt(wt.Days,ae.Short,J.Standalone);break;case"E":case"EE":case"EEE":Q=Zt(wt.Days,ae.Abbreviated);break;case"EEEE":Q=Zt(wt.Days,ae.Wide);break;case"EEEEE":Q=Zt(wt.Days,ae.Narrow);break;case"EEEEEE":Q=Zt(wt.Days,ae.Short);break;case"a":case"aa":case"aaa":Q=Zt(wt.DayPeriods,ae.Abbreviated);break;case"aaaa":Q=Zt(wt.DayPeriods,ae.Wide);break;case"aaaaa":Q=Zt(wt.DayPeriods,ae.Narrow);break;case"b":case"bb":case"bbb":Q=Zt(wt.DayPeriods,ae.Abbreviated,J.Standalone,!0);break;case"bbbb":Q=Zt(wt.DayPeriods,ae.Wide,J.Standalone,!0);break;case"bbbbb":Q=Zt(wt.DayPeriods,ae.Narrow,J.Standalone,!0);break;case"B":case"BB":case"BBB":Q=Zt(wt.DayPeriods,ae.Abbreviated,J.Format,!0);break;case"BBBB":Q=Zt(wt.DayPeriods,ae.Wide,J.Format,!0);break;case"BBBBB":Q=Zt(wt.DayPeriods,ae.Narrow,J.Format,!0);break;case"h":Q=St(pt.Hours,1,-12);break;case"hh":Q=St(pt.Hours,2,-12);break;case"H":Q=St(pt.Hours,1);break;case"HH":Q=St(pt.Hours,2);break;case"m":Q=St(pt.Minutes,1);break;case"mm":Q=St(pt.Minutes,2);break;case"s":Q=St(pt.Seconds,1);break;case"ss":Q=St(pt.Seconds,2);break;case"S":Q=St(pt.FractionalSeconds,1);break;case"SS":Q=St(pt.FractionalSeconds,2);break;case"SSS":Q=St(pt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Q=Ge(ft.Short);break;case"ZZZZZ":Q=Ge(ft.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Q=Ge(ft.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Q=Ge(ft.Long);break;default:return null}return rt[R]=Q,Q}(In);Mn+=fn?fn(ze,F,Tn):"''"===In?"'":In.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Mn}function nn(R,Q,F){const ne=new Date(0);return ne.setFullYear(R,Q,F),ne.setHours(0,0,0),ne}function Ht(R,Q){const F=ge(R);if(Ze[F]=Ze[F]||{},Ze[F][Q])return Ze[F][Q];let ne="";switch(Q){case"shortDate":ne=Je(R,Ie.Short);break;case"mediumDate":ne=Je(R,Ie.Medium);break;case"longDate":ne=Je(R,Ie.Long);break;case"fullDate":ne=Je(R,Ie.Full);break;case"shortTime":ne=Y(R,Ie.Short);break;case"mediumTime":ne=Y(R,Ie.Medium);break;case"longTime":ne=Y(R,Ie.Long);break;case"fullTime":ne=Y(R,Ie.Full);break;case"short":const ze=Ht(R,"shortTime"),ut=Ht(R,"shortDate");ne=En(me(R,Ie.Short),[ze,ut]);break;case"medium":const bt=Ht(R,"mediumTime"),Ft=Ht(R,"mediumDate");ne=En(me(R,Ie.Medium),[bt,Ft]);break;case"long":const Tn=Ht(R,"longTime"),Mn=Ht(R,"longDate");ne=En(me(R,Ie.Long),[Tn,Mn]);break;case"full":const In=Ht(R,"fullTime"),fn=Ht(R,"fullDate");ne=En(me(R,Ie.Full),[In,fn])}return ne&&(Ze[F][Q]=ne),ne}function En(R,Q){return Q&&(R=R.replace(/\{([^}]+)}/g,function(F,ne){return null!=Q&&ne in Q?Q[ne]:F})),R}function sn(R,Q,F="-",ne,ze){let ut="";(R<0||ze&&R<=0)&&(ze?R=1-R:(R=-R,ut=F));let bt=String(R);for(;bt.length<Q;)bt="0"+bt;return ne&&(bt=bt.substr(bt.length-Q)),ut+bt}function St(R,Q,F=0,ne=!1,ze=!1){return function(ut,bt){let Ft=function bn(R,Q){switch(R){case pt.FullYear:return Q.getFullYear();case pt.Month:return Q.getMonth();case pt.Date:return Q.getDate();case pt.Hours:return Q.getHours();case pt.Minutes:return Q.getMinutes();case pt.Seconds:return Q.getSeconds();case pt.FractionalSeconds:return Q.getMilliseconds();case pt.Day:return Q.getDay();default:throw new Error(`Unknown DateType value "${R}".`)}}(R,ut);if((F>0||Ft>-F)&&(Ft+=F),R===pt.Hours)0===Ft&&-12===F&&(Ft=12);else if(R===pt.FractionalSeconds)return function zt(R,Q){return sn(R,3).substr(0,Q)}(Ft,Q);const Tn=we(bt,ie.MinusSign);return sn(Ft,Q,Tn,ne,ze)}}function Zt(R,Q,F=J.Format,ne=!1){return function(ze,ut){return function an(R,Q,F,ne,ze,ut){switch(F){case wt.Months:return $e(Q,ze,ne)[R.getMonth()];case wt.Days:return ve(Q,ze,ne)[R.getDay()];case wt.DayPeriods:const bt=R.getHours(),Ft=R.getMinutes();if(ut){const Mn=Qe(Q),In=N(Q,ze,ne),fn=Mn.findIndex(k=>{if(Array.isArray(k)){const[O,E]=k,X=bt>=O.hours&&Ft>=O.minutes,lt=bt<E.hours||bt===E.hours&&Ft<E.minutes;if(O.hours<E.hours){if(X&&lt)return!0}else if(X||lt)return!0}else if(k.hours===bt&&k.minutes===Ft)return!0;return!1});if(-1!==fn)return In[fn]}return nt(Q,ze,ne)[bt<12?0:1];case wt.Eras:return ct(Q,ne)[R.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${F}`)}}(ze,ut,R,Q,F,ne)}}function Ge(R){return function(Q,F,ne){const ze=-1*ne,ut=we(F,ie.MinusSign),bt=ze>0?Math.floor(ze/60):Math.ceil(ze/60);switch(R){case ft.Short:return(ze>=0?"+":"")+sn(bt,2,ut)+sn(Math.abs(ze%60),2,ut);case ft.ShortGMT:return"GMT"+(ze>=0?"+":"")+sn(bt,1,ut);case ft.Long:return"GMT"+(ze>=0?"+":"")+sn(bt,2,ut)+":"+sn(Math.abs(ze%60),2,ut);case ft.Extended:return 0===ne?"Z":(ze>=0?"+":"")+sn(bt,2,ut)+":"+sn(Math.abs(ze%60),2,ut);default:throw new Error(`Unknown zone width "${R}"`)}}}function S(R){return nn(R.getFullYear(),R.getMonth(),R.getDate()+(4-R.getDay()))}function M(R,Q=!1){return function(F,ne){let ze;if(Q){const ut=new Date(F.getFullYear(),F.getMonth(),1).getDay()-1,bt=F.getDate();ze=1+Math.floor((bt+ut)/7)}else{const ut=S(F),bt=function v(R){const Q=nn(R,0,1).getDay();return nn(R,0,1+(Q<=4?4:11)-Q)}(ut.getFullYear()),Ft=ut.getTime()-bt.getTime();ze=1+Math.round(Ft/6048e5)}return sn(ze,R,we(ne,ie.MinusSign))}}function G(R,Q=!1){return function(F,ne){return sn(S(F).getFullYear(),R,we(ne,ie.MinusSign),Q)}}const rt={};function Kt(R,Q){R=R.replace(/:/g,"");const F=Date.parse("Jan 01, 1970 00:00:00 "+R)/6e4;return isNaN(F)?Q:F}function Ve(R){return R instanceof Date&&!isNaN(R.valueOf())}const ht=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function zn(R,Q,F,ne,ze,ut,bt=!1){let Ft="",Tn=!1;if(isFinite(R)){let Mn=function qe(R){let ne,ze,ut,bt,Ft,Q=Math.abs(R)+"",F=0;for((ze=Q.indexOf("."))>-1&&(Q=Q.replace(".","")),(ut=Q.search(/e/i))>0?(ze<0&&(ze=ut),ze+=+Q.slice(ut+1),Q=Q.substring(0,ut)):ze<0&&(ze=Q.length),ut=0;"0"===Q.charAt(ut);ut++);if(ut===(Ft=Q.length))ne=[0],ze=1;else{for(Ft--;"0"===Q.charAt(Ft);)Ft--;for(ze-=ut,ne=[],bt=0;ut<=Ft;ut++,bt++)ne[bt]=Number(Q.charAt(ut))}return ze>22&&(ne=ne.splice(0,21),F=ze-1,ze=1),{digits:ne,exponent:F,integerLen:ze}}(R);bt&&(Mn=function Ae(R){if(0===R.digits[0])return R;const Q=R.digits.length-R.integerLen;return R.exponent?R.exponent+=2:(0===Q?R.digits.push(0,0):1===Q&&R.digits.push(0),R.integerLen+=2),R}(Mn));let In=Q.minInt,fn=Q.minFrac,k=Q.maxFrac;if(ut){const Pn=ut.match(ht);if(null===Pn)throw new Error(`${ut} is not a valid digit info`);const qn=Pn[1],gi=Pn[3],Ni=Pn[5];null!=qn&&(In=It(qn)),null!=gi&&(fn=It(gi)),null!=Ni?k=It(Ni):null!=gi&&fn>k&&(k=fn)}!function at(R,Q,F){if(Q>F)throw new Error(`The minimum number of digits after fraction (${Q}) is higher than the maximum (${F}).`);let ne=R.digits,ze=ne.length-R.integerLen;const ut=Math.min(Math.max(Q,ze),F);let bt=ut+R.integerLen,Ft=ne[bt];if(bt>0){ne.splice(Math.max(R.integerLen,bt));for(let fn=bt;fn<ne.length;fn++)ne[fn]=0}else{ze=Math.max(0,ze),R.integerLen=1,ne.length=Math.max(1,bt=ut+1),ne[0]=0;for(let fn=1;fn<bt;fn++)ne[fn]=0}if(Ft>=5)if(bt-1<0){for(let fn=0;fn>bt;fn--)ne.unshift(0),R.integerLen++;ne.unshift(1),R.integerLen++}else ne[bt-1]++;for(;ze<Math.max(0,ut);ze++)ne.push(0);let Tn=0!==ut;const Mn=Q+R.integerLen,In=ne.reduceRight(function(fn,k,O,E){return E[O]=(k+=fn)<10?k:k-10,Tn&&(0===E[O]&&O>=Mn?E.pop():Tn=!1),k>=10?1:0},0);In&&(ne.unshift(In),R.integerLen++)}(Mn,fn,k);let O=Mn.digits,E=Mn.integerLen;const X=Mn.exponent;let lt=[];for(Tn=O.every(Pn=>!Pn);E<In;E++)O.unshift(0);for(;E<0;E++)O.unshift(0);E>0?lt=O.splice(E,O.length):(lt=O,O=[0]);const Vt=[];for(O.length>=Q.lgSize&&Vt.unshift(O.splice(-Q.lgSize,O.length).join(""));O.length>Q.gSize;)Vt.unshift(O.splice(-Q.gSize,O.length).join(""));O.length&&Vt.unshift(O.join("")),Ft=Vt.join(we(F,ne)),lt.length&&(Ft+=we(F,ze)+lt.join("")),X&&(Ft+=we(F,ie.Exponential)+"+"+X)}else Ft=we(F,ie.Infinity);return Ft=R<0&&!Tn?Q.negPre+Ft+Q.negSuf:Q.posPre+Ft+Q.posSuf,Ft}function Bn(R,Q,F,ne,ze){const bt=z(Re(Q,q.Currency),we(Q,ie.MinusSign));return bt.minFrac=re(ne),bt.maxFrac=bt.minFrac,zn(R,bt,Q,ie.CurrencyGroup,ie.CurrencyDecimal,ze).replace("\xa4",F).replace("\xa4","").trim()}function H(R,Q,F){return zn(R,z(Re(Q,q.Percent),we(Q,ie.MinusSign)),Q,ie.Group,ie.Decimal,F,!0).replace(new RegExp("%","g"),we(Q,ie.PercentSign))}function Se(R,Q,F){return zn(R,z(Re(Q,q.Decimal),we(Q,ie.MinusSign)),Q,ie.Group,ie.Decimal,F)}function z(R,Q="-"){const F={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},ne=R.split(";"),ze=ne[0],ut=ne[1],bt=-1!==ze.indexOf(".")?ze.split("."):[ze.substring(0,ze.lastIndexOf("0")+1),ze.substring(ze.lastIndexOf("0")+1)],Ft=bt[0],Tn=bt[1]||"";F.posPre=Ft.substr(0,Ft.indexOf("#"));for(let In=0;In<Tn.length;In++){const fn=Tn.charAt(In);"0"===fn?F.minFrac=F.maxFrac=In+1:"#"===fn?F.maxFrac=In+1:F.posSuf+=fn}const Mn=Ft.split(",");if(F.gSize=Mn[1]?Mn[1].length:0,F.lgSize=Mn[2]||Mn[1]?(Mn[2]||Mn[1]).length:0,ut){const In=ze.length-F.posPre.length-F.posSuf.length,fn=ut.indexOf("#");F.negPre=ut.substr(0,fn).replace(/'/g,""),F.negSuf=ut.substr(fn+In).replace(/'/g,"")}else F.negPre=Q+F.posPre,F.negSuf=F.posSuf;return F}function It(R){const Q=parseInt(R);if(isNaN(Q))throw new Error("Invalid integer literal when parsing "+R);return Q}class Lt{}function qt(R,Q,F,ne){let ze=`=${R}`;if(Q.indexOf(ze)>-1||(ze=F.getPluralCategory(R,ne),Q.indexOf(ze)>-1))return ze;if(Q.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${R}"`)}let vn=(()=>{class R extends Lt{constructor(F){super(),this.locale=F}getPluralCategory(F,ne){switch(Ot(ne||this.locale)(F)){case Pe.Zero:return"zero";case Pe.One:return"one";case Pe.Two:return"two";case Pe.Few:return"few";case Pe.Many:return"many";default:return"other"}}}return R.\u0275fac=function(F){return new(F||R)(i.\u0275\u0275inject(i.LOCALE_ID))},R.\u0275prov=i.\u0275\u0275defineInjectable({token:R,factory:R.\u0275fac}),R})();function jt(R,Q,F){return(0,i.\u0275registerLocaleData)(R,Q,F)}function On(R,Q){Q=encodeURIComponent(Q);for(const F of R.split(";")){const ne=F.indexOf("="),[ze,ut]=-1==ne?[F,""]:[F.slice(0,ne),F.slice(ne+1)];if(ze.trim()===Q)return decodeURIComponent(ut)}return null}let hn=(()=>{class R{constructor(F,ne,ze,ut){this._iterableDiffers=F,this._keyValueDiffers=ne,this._ngEl=ze,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(ne=>this._toggleClass(ne.key,ne.currentValue)),F.forEachChangedItem(ne=>this._toggleClass(ne.key,ne.currentValue)),F.forEachRemovedItem(ne=>{ne.previousValue&&this._toggleClass(ne.key,!1)})}_applyIterableChanges(F){F.forEachAddedItem(ne=>{if("string"!=typeof ne.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,i.\u0275stringify)(ne.item)}`);this._toggleClass(ne.item,!0)}),F.forEachRemovedItem(ne=>this._toggleClass(ne.item,!1))}_applyClasses(F){F&&(Array.isArray(F)||F instanceof Set?F.forEach(ne=>this._toggleClass(ne,!0)):Object.keys(F).forEach(ne=>this._toggleClass(ne,!!F[ne])))}_removeClasses(F){F&&(Array.isArray(F)||F instanceof Set?F.forEach(ne=>this._toggleClass(ne,!1)):Object.keys(F).forEach(ne=>this._toggleClass(ne,!1)))}_toggleClass(F,ne){(F=F.trim())&&F.split(/\s+/g).forEach(ze=>{ne?this._renderer.addClass(this._ngEl.nativeElement,ze):this._renderer.removeClass(this._ngEl.nativeElement,ze)})}}return R.\u0275fac=function(F){return new(F||R)(i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(i.KeyValueDiffers),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2))},R.\u0275dir=i.\u0275\u0275defineDirective({type:R,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),R})(),$n=(()=>{class R{constructor(F){this._viewContainerRef=F,this._componentRef=null,this._moduleRef=null}ngOnChanges(F){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const ne=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(F.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const bt=ne.get(i.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(bt.injector)}else this._moduleRef=null;const ut=(this._moduleRef?this._moduleRef.componentFactoryResolver:ne.get(i.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(ut,this._viewContainerRef.length,ne,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return R.\u0275fac=function(F){return new(F||R)(i.\u0275\u0275directiveInject(i.ViewContainerRef))},R.\u0275dir=i.\u0275\u0275defineDirective({type:R,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[i.\u0275\u0275NgOnChangesFeature]}),R})();class Un{constructor(Q,F,ne,ze){this.$implicit=Q,this.ngForOf=F,this.index=ne,this.count=ze}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 Sn=(()=>{class R{constructor(F,ne,ze){this._viewContainer=F,this._template=ne,this._differs=ze,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 ne=this._viewContainer;F.forEachOperation((ze,ut,bt)=>{if(null==ze.previousIndex)ne.createEmbeddedView(this._template,new Un(ze.item,this._ngForOf,-1,-1),null===bt?void 0:bt);else if(null==bt)ne.remove(null===ut?void 0:ut);else if(null!==ut){const Ft=ne.get(ut);ne.move(Ft,bt),kn(Ft,ze)}});for(let ze=0,ut=ne.length;ze<ut;ze++){const Ft=ne.get(ze).context;Ft.index=ze,Ft.count=ut,Ft.ngForOf=this._ngForOf}F.forEachIdentityChange(ze=>{kn(ne.get(ze.currentIndex),ze)})}static ngTemplateContextGuard(F,ne){return!0}}return R.\u0275fac=function(F){return new(F||R)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers))},R.\u0275dir=i.\u0275\u0275defineDirective({type:R,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),R})();function kn(R,Q){R.context.$implicit=Q.item}let xn=(()=>{class R{constructor(F,ne){this._viewContainer=F,this._context=new gn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ne}set ngIf(F){this._context.$implicit=this._context.ngIf=F,this._updateView()}set ngIfThen(F){ni("ngIfThen",F),this._thenTemplateRef=F,this._thenViewRef=null,this._updateView()}set ngIfElse(F){ni("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,ne){return!0}}return R.\u0275fac=function(F){return new(F||R)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef))},R.\u0275dir=i.\u0275\u0275defineDirective({type:R,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),R})();class gn{constructor(){this.$implicit=null,this.ngIf=null}}function ni(R,Q){if(Q&&!Q.createEmbeddedView)throw new Error(`${R} must be a TemplateRef, but received '${(0,i.\u0275stringify)(Q)}'.`)}class li{constructor(Q,F){this._viewContainerRef=Q,this._templateRef=F,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Q){Q&&!this._created?this.create():!Q&&this._created&&this.destroy()}}let Kn=(()=>{class R{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 ne=F==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||ne,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),ne}_updateDefaultCases(F){if(this._defaultViews&&F!==this._defaultUsed){this._defaultUsed=F;for(let ne=0;ne<this._defaultViews.length;ne++)this._defaultViews[ne].enforceState(F)}}}return R.\u0275fac=function(F){return new(F||R)},R.\u0275dir=i.\u0275\u0275defineDirective({type:R,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),R})(),Gn=(()=>{class R{constructor(F,ne,ze){this.ngSwitch=ze,ze._addCase(),this._view=new li(F,ne)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return R.\u0275fac=function(F){return new(F||R)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(Kn,9))},R.\u0275dir=i.\u0275\u0275defineDirective({type:R,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),R})(),Ci=(()=>{class R{constructor(F,ne,ze){ze._addDefault(new li(F,ne))}}return R.\u0275fac=function(F){return new(F||R)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(Kn,9))},R.\u0275dir=i.\u0275\u0275defineDirective({type:R,selectors:[["","ngSwitchDefault",""]]}),R})(),hi=(()=>{class R{constructor(F){this._localization=F,this._caseViews={}}set ngPlural(F){this._switchValue=F,this._updateView()}addCase(F,ne){this._caseViews[F]=ne}_updateView(){this._clearViews();const F=Object.keys(this._caseViews),ne=qt(this._switchValue,F,this._localization);this._activateView(this._caseViews[ne])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(F){F&&(this._activeView=F,this._activeView.create())}}return R.\u0275fac=function(F){return new(F||R)(i.\u0275\u0275directiveInject(Lt))},R.\u0275dir=i.\u0275\u0275defineDirective({type:R,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),R})(),Wn=(()=>{class R{constructor(F,ne,ze,ut){this.value=F;const bt=!isNaN(Number(F));ut.addCase(bt?`=${F}`:F,new li(ze,ne))}}return R.\u0275fac=function(F){return new(F||R)(i.\u0275\u0275injectAttribute("ngPluralCase"),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(hi,1))},R.\u0275dir=i.\u0275\u0275defineDirective({type:R,selectors:[["","ngPluralCase",""]]}),R})(),Sr=(()=>{class R{constructor(F,ne,ze){this._ngEl=F,this._differs=ne,this._renderer=ze,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,ne){const[ze,ut]=F.split(".");null!=(ne=null!=ne&&ut?`${ne}${ut}`:ne)?this._renderer.setStyle(this._ngEl.nativeElement,ze,ne):this._renderer.removeStyle(this._ngEl.nativeElement,ze)}_applyChanges(F){F.forEachRemovedItem(ne=>this._setStyle(ne.key,null)),F.forEachAddedItem(ne=>this._setStyle(ne.key,ne.currentValue)),F.forEachChangedItem(ne=>this._setStyle(ne.key,ne.currentValue))}}return R.\u0275fac=function(F){return new(F||R)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.KeyValueDiffers),i.\u0275\u0275directiveInject(i.Renderer2))},R.\u0275dir=i.\u0275\u0275defineDirective({type:R,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),R})(),nr=(()=>{class R{constructor(F){this._viewContainerRef=F,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(F){if(F.ngTemplateOutlet){const ne=this._viewContainerRef;this._viewRef&&ne.remove(ne.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?ne.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&F.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return R.\u0275fac=function(F){return new(F||R)(i.\u0275\u0275directiveInject(i.ViewContainerRef))},R.\u0275dir=i.\u0275\u0275defineDirective({type:R,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.\u0275\u0275NgOnChangesFeature]}),R})();function Qn(R,Q){return new i.\u0275RuntimeError(2100,"")}class Zn{createSubscription(Q,F){return Q.subscribe({next:F,error:ne=>{throw ne}})}dispose(Q){Q.unsubscribe()}onDestroy(Q){Q.unsubscribe()}}class Ei{createSubscription(Q,F){return Q.then(F,ne=>{throw ne})}dispose(Q){}onDestroy(Q){}}const Ui=new Ei,Lr=new Zn;let Wi=(()=>{class R{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,ne=>this._updateLatestValue(F,ne))}_selectStrategy(F){if((0,i.\u0275isPromise)(F))return Ui;if((0,i.\u0275isSubscribable)(F))return Lr;throw Qn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(F,ne){F===this._obj&&(this._latestValue=ne,this._ref.markForCheck())}}return R.\u0275fac=function(F){return new(F||R)(i.\u0275\u0275directiveInject(i.ChangeDetectorRef,16))},R.\u0275pipe=i.\u0275\u0275definePipe({name:"async",type:R,pure:!1}),R})(),Ir=(()=>{class R{transform(F){if(null==F)return null;if("string"!=typeof F)throw Qn();return F.toLowerCase()}}return R.\u0275fac=function(F){return new(F||R)},R.\u0275pipe=i.\u0275\u0275definePipe({name:"lowercase",type:R,pure:!0}),R})();const Si=/(?:[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 zi=(()=>{class R{transform(F){if(null==F)return null;if("string"!=typeof F)throw Qn();return F.replace(Si,ne=>ne[0].toUpperCase()+ne.substr(1).toLowerCase())}}return R.\u0275fac=function(F){return new(F||R)},R.\u0275pipe=i.\u0275\u0275definePipe({name:"titlecase",type:R,pure:!0}),R})(),ci=(()=>{class R{transform(F){if(null==F)return null;if("string"!=typeof F)throw Qn();return F.toUpperCase()}}return R.\u0275fac=function(F){return new(F||R)},R.\u0275pipe=i.\u0275\u0275definePipe({name:"uppercase",type:R,pure:!0}),R})();const gr=new i.InjectionToken("DATE_PIPE_DEFAULT_TIMEZONE");let Di=(()=>{class R{constructor(F,ne){this.locale=F,this.defaultTimezone=ne}transform(F,ne="mediumDate",ze,ut){var bt;if(null==F||""===F||F!=F)return null;try{return $t(F,ne,ut||this.locale,null!==(bt=null!=ze?ze:this.defaultTimezone)&&void 0!==bt?bt:void 0)}catch(Ft){throw Qn()}}}return R.\u0275fac=function(F){return new(F||R)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16),i.\u0275\u0275directiveInject(gr,24))},R.\u0275pipe=i.\u0275\u0275definePipe({name:"date",type:R,pure:!0}),R})();const Pr=/#/g;let Ar=(()=>{class R{constructor(F){this._localization=F}transform(F,ne,ze){if(null==F)return"";if("object"!=typeof ne||null===ne)throw Qn();return ne[qt(F,Object.keys(ne),this._localization,ze)].replace(Pr,F.toString())}}return R.\u0275fac=function(F){return new(F||R)(i.\u0275\u0275directiveInject(Lt,16))},R.\u0275pipe=i.\u0275\u0275definePipe({name:"i18nPlural",type:R,pure:!0}),R})(),Ki=(()=>{class R{transform(F,ne){if(null==F)return"";if("object"!=typeof ne||"string"!=typeof F)throw Qn();return ne.hasOwnProperty(F)?ne[F]:ne.hasOwnProperty("other")?ne.other:""}}return R.\u0275fac=function(F){return new(F||R)},R.\u0275pipe=i.\u0275\u0275definePipe({name:"i18nSelect",type:R,pure:!0}),R})(),Ii=(()=>{class R{transform(F){return JSON.stringify(F,null,2)}}return R.\u0275fac=function(F){return new(F||R)},R.\u0275pipe=i.\u0275\u0275definePipe({name:"json",type:R,pure:!1}),R})(),Or=(()=>{class R{constructor(F){this.differs=F,this.keyValues=[],this.compareFn=Pi}transform(F,ne=Pi){if(!F||!(F instanceof Map)&&"object"!=typeof F)return null;this.differ||(this.differ=this.differs.find(F).create());const ze=this.differ.diff(F),ut=ne!==this.compareFn;return ze&&(this.keyValues=[],ze.forEachItem(bt=>{this.keyValues.push(function Gi(R,Q){return{key:R,value:Q}}(bt.key,bt.currentValue))})),(ze||ut)&&(this.keyValues.sort(ne),this.compareFn=ne),this.keyValues}}return R.\u0275fac=function(F){return new(F||R)(i.\u0275\u0275directiveInject(i.KeyValueDiffers,16))},R.\u0275pipe=i.\u0275\u0275definePipe({name:"keyvalue",type:R,pure:!1}),R})();function Pi(R,Q){const F=R.key,ne=Q.key;if(F===ne)return 0;if(void 0===F)return 1;if(void 0===ne)return-1;if(null===F)return 1;if(null===ne)return-1;if("string"==typeof F&&"string"==typeof ne)return F<ne?-1:1;if("number"==typeof F&&"number"==typeof ne)return F-ne;if("boolean"==typeof F&&"boolean"==typeof ne)return F<ne?-1:1;const ze=String(F),ut=String(ne);return ze==ut?0:ze<ut?-1:1}let _r=(()=>{class R{constructor(F){this._locale=F}transform(F,ne,ze){if(!pi(F))return null;ze=ze||this._locale;try{return Se(Qi(F),ze,ne)}catch(ut){throw Qn()}}}return R.\u0275fac=function(F){return new(F||R)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16))},R.\u0275pipe=i.\u0275\u0275definePipe({name:"number",type:R,pure:!0}),R})(),fi=(()=>{class R{constructor(F){this._locale=F}transform(F,ne,ze){if(!pi(F))return null;ze=ze||this._locale;try{return H(Qi(F),ze,ne)}catch(ut){throw Qn()}}}return R.\u0275fac=function(F){return new(F||R)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16))},R.\u0275pipe=i.\u0275\u0275definePipe({name:"percent",type:R,pure:!0}),R})(),Ai=(()=>{class R{constructor(F,ne="USD"){this._locale=F,this._defaultCurrencyCode=ne}transform(F,ne=this._defaultCurrencyCode,ze="symbol",ut,bt){if(!pi(F))return null;bt=bt||this._locale,"boolean"==typeof ze&&(ze=ze?"symbol":"code");let Ft=ne||this._defaultCurrencyCode;"code"!==ze&&(Ft="symbol"===ze||"symbol-narrow"===ze?Te(Ft,"symbol"===ze?"wide":"narrow",bt):ze);try{return Bn(Qi(F),bt,Ft,ne,ut)}catch(Tn){throw Qn()}}}return R.\u0275fac=function(F){return new(F||R)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16),i.\u0275\u0275directiveInject(i.DEFAULT_CURRENCY_CODE,16))},R.\u0275pipe=i.\u0275\u0275definePipe({name:"currency",type:R,pure:!0}),R})();function pi(R){return!(null==R||""===R||R!=R)}function Qi(R){if("string"==typeof R&&!isNaN(Number(R)-parseFloat(R)))return Number(R);if("number"!=typeof R)throw new Error(`${R} is not a number`);return R}let mi=(()=>{class R{transform(F,ne,ze){if(null==F)return null;if(!this.supports(F))throw Qn();return F.slice(ne,ze)}supports(F){return"string"==typeof F||Array.isArray(F)}}return R.\u0275fac=function(F){return new(F||R)},R.\u0275pipe=i.\u0275\u0275definePipe({name:"slice",type:R,pure:!1}),R})(),rr=(()=>{class R{}return R.\u0275fac=function(F){return new(F||R)},R.\u0275mod=i.\u0275\u0275defineNgModule({type:R}),R.\u0275inj=i.\u0275\u0275defineInjector({providers:[{provide:Lt,useClass:vn}]}),R})();const Oi="browser",wi="server",xi="browserWorkerApp",Zi="browserWorkerUi";function ti(R){return R===Oi}function Ri(R){return R===wi}function or(R){return R===xi}function Fi(R){return R===Zi}const Yi=new i.Version("13.1.3");let ki=(()=>{class R{}return R.\u0275prov=(0,i.\u0275\u0275defineInjectable)({token:R,providedIn:"root",factory:()=>new xr((0,i.\u0275\u0275inject)(C),window)}),R})();class xr{constructor(Q,F){this.document=Q,this.window=F,this.offset=()=>[0,0]}setOffset(Q){this.offset=Array.isArray(Q)?()=>Q:Q}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Q){this.supportsScrolling()&&this.window.scrollTo(Q[0],Q[1])}scrollToAnchor(Q){if(!this.supportsScrolling())return;const F=function sr(R,Q){const F=R.getElementById(Q)||R.getElementsByName(Q)[0];if(F)return F;if("function"==typeof R.createTreeWalker&&R.body&&(R.body.createShadowRoot||R.body.attachShadow)){const ne=R.createTreeWalker(R.body,NodeFilter.SHOW_ELEMENT);let ze=ne.currentNode;for(;ze;){const ut=ze.shadowRoot;if(ut){const bt=ut.getElementById(Q)||ut.querySelector(`[name="${Q}"]`);if(bt)return bt}ze=ne.nextNode()}}return null}(this.document,Q);F&&(this.scrollToElement(F),this.attemptFocus(F))}setHistoryScrollRestoration(Q){if(this.supportScrollRestoration()){const F=this.window.history;F&&F.scrollRestoration&&(F.scrollRestoration=Q)}}scrollToElement(Q){const F=Q.getBoundingClientRect(),ne=F.left+this.window.pageXOffset,ze=F.top+this.window.pageYOffset,ut=this.offset();this.window.scrollTo(ne-ut[0],ze-ut[1])}attemptFocus(Q){return Q.focus(),this.document.activeElement===Q}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Q=Rn(this.window.history)||Rn(Object.getPrototypeOf(this.window.history));return!(!Q||!Q.writable&&!Q.set)}catch(Q){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(Q){return!1}}}function Rn(R){return Object.getOwnPropertyDescriptor(R,"scrollRestoration")}class ar{setOffset(Q){}getScrollPosition(){return[0,0]}scrollToPosition(Q){}scrollToAnchor(Q){}setHistoryScrollRestoration(Q){}}class Ln{}},520:(Le,g,l)=>{"use strict";l.r(g),l.d(g,{HTTP_INTERCEPTORS:()=>ge,HttpBackend:()=>I,HttpClient:()=>ie,HttpClientJsonpModule:()=>ue,HttpClientModule:()=>Oe,HttpClientXsrfModule:()=>oe,HttpContext:()=>Me,HttpContextToken:()=>le,HttpErrorResponse:()=>ae,HttpEventType:()=>st,HttpHandler:()=>D,HttpHeaderResponse:()=>Pe,HttpHeaders:()=>h,HttpParams:()=>$,HttpRequest:()=>Xe,HttpResponse:()=>J,HttpResponseBase:()=>q,HttpUrlEncodingCodec:()=>A,HttpXhrBackend:()=>Re,HttpXsrfTokenExtractor:()=>yt,JsonpClientBackend:()=>Je,JsonpInterceptor:()=>Y,XhrFactory:()=>Te,\u0275HttpInterceptingHandler:()=>dt});var i=l(9808),u=l(5e3),m=l(9646),c=l(9751),s=l(4351),_=l(9300),C=l(4004);class D{}class I{}class h{constructor(re){this.normalizedNames=new Map,this.lazyUpdate=null,re?this.lazyInit="string"==typeof re?()=>{this.headers=new Map,re.split("\n").forEach(Ce=>{const Ze=Ce.indexOf(":");if(Ze>0){const tt=Ce.slice(0,Ze),ft=tt.toLowerCase(),pt=Ce.slice(Ze+1).trim();this.maybeSetNormalizedName(tt,ft),this.headers.has(ft)?this.headers.get(ft).push(pt):this.headers.set(ft,[pt])}})}:()=>{this.headers=new Map,Object.keys(re).forEach(Ce=>{let Ze=re[Ce];const tt=Ce.toLowerCase();"string"==typeof Ze&&(Ze=[Ze]),Ze.length>0&&(this.headers.set(tt,Ze),this.maybeSetNormalizedName(Ce,tt))})}:this.headers=new Map}has(re){return this.init(),this.headers.has(re.toLowerCase())}get(re){this.init();const Ce=this.headers.get(re.toLowerCase());return Ce&&Ce.length>0?Ce[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(re){return this.init(),this.headers.get(re.toLowerCase())||null}append(re,Ce){return this.clone({name:re,value:Ce,op:"a"})}set(re,Ce){return this.clone({name:re,value:Ce,op:"s"})}delete(re,Ce){return this.clone({name:re,value:Ce,op:"d"})}maybeSetNormalizedName(re,Ce){this.normalizedNames.has(Ce)||this.normalizedNames.set(Ce,re)}init(){this.lazyInit&&(this.lazyInit instanceof h?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(re=>this.applyUpdate(re)),this.lazyUpdate=null))}copyFrom(re){re.init(),Array.from(re.headers.keys()).forEach(Ce=>{this.headers.set(Ce,re.headers.get(Ce)),this.normalizedNames.set(Ce,re.normalizedNames.get(Ce))})}clone(re){const Ce=new h;return Ce.lazyInit=this.lazyInit&&this.lazyInit instanceof h?this.lazyInit:this,Ce.lazyUpdate=(this.lazyUpdate||[]).concat([re]),Ce}applyUpdate(re){const Ce=re.name.toLowerCase();switch(re.op){case"a":case"s":let Ze=re.value;if("string"==typeof Ze&&(Ze=[Ze]),0===Ze.length)return;this.maybeSetNormalizedName(re.name,Ce);const tt=("a"===re.op?this.headers.get(Ce):void 0)||[];tt.push(...Ze),this.headers.set(Ce,tt);break;case"d":const ft=re.value;if(ft){let pt=this.headers.get(Ce);if(!pt)return;pt=pt.filter(wt=>-1===ft.indexOf(wt)),0===pt.length?(this.headers.delete(Ce),this.normalizedNames.delete(Ce)):this.headers.set(Ce,pt)}else this.headers.delete(Ce),this.normalizedNames.delete(Ce)}}forEach(re){this.init(),Array.from(this.normalizedNames.keys()).forEach(Ce=>re(this.normalizedNames.get(Ce),this.headers.get(Ce)))}}class A{encodeKey(re){return V(re)}encodeValue(re){return V(re)}decodeKey(re){return decodeURIComponent(re)}decodeValue(re){return decodeURIComponent(re)}}const b=/%(\d[a-f0-9])/gi,x={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function V(be){return encodeURIComponent(be).replace(b,(re,Ce)=>{var Ze;return null!==(Ze=x[Ce])&&void 0!==Ze?Ze:re})}function fe(be){return`${be}`}class ${constructor(re={}){if(this.updates=null,this.cloneFrom=null,this.encoder=re.encoder||new A,re.fromString){if(re.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function T(be,re){const Ce=new Map;return be.length>0&&be.replace(/^\?/,"").split("&").forEach(tt=>{const ft=tt.indexOf("="),[pt,wt]=-1==ft?[re.decodeKey(tt),""]:[re.decodeKey(tt.slice(0,ft)),re.decodeValue(tt.slice(ft+1))],$t=Ce.get(pt)||[];$t.push(wt),Ce.set(pt,$t)}),Ce}(re.fromString,this.encoder)}else re.fromObject?(this.map=new Map,Object.keys(re.fromObject).forEach(Ce=>{const Ze=re.fromObject[Ce];this.map.set(Ce,Array.isArray(Ze)?Ze:[Ze])})):this.map=null}has(re){return this.init(),this.map.has(re)}get(re){this.init();const Ce=this.map.get(re);return Ce?Ce[0]:null}getAll(re){return this.init(),this.map.get(re)||null}keys(){return this.init(),Array.from(this.map.keys())}append(re,Ce){return this.clone({param:re,value:Ce,op:"a"})}appendAll(re){const Ce=[];return Object.keys(re).forEach(Ze=>{const tt=re[Ze];Array.isArray(tt)?tt.forEach(ft=>{Ce.push({param:Ze,value:ft,op:"a"})}):Ce.push({param:Ze,value:tt,op:"a"})}),this.clone(Ce)}set(re,Ce){return this.clone({param:re,value:Ce,op:"s"})}delete(re,Ce){return this.clone({param:re,value:Ce,op:"d"})}toString(){return this.init(),this.keys().map(re=>{const Ce=this.encoder.encodeKey(re);return this.map.get(re).map(Ze=>Ce+"="+this.encoder.encodeValue(Ze)).join("&")}).filter(re=>""!==re).join("&")}clone(re){const Ce=new $({encoder:this.encoder});return Ce.cloneFrom=this.cloneFrom||this,Ce.updates=(this.updates||[]).concat(re),Ce}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(re=>this.map.set(re,this.cloneFrom.map.get(re))),this.updates.forEach(re=>{switch(re.op){case"a":case"s":const Ce=("a"===re.op?this.map.get(re.param):void 0)||[];Ce.push(fe(re.value)),this.map.set(re.param,Ce);break;case"d":if(void 0===re.value){this.map.delete(re.param);break}{let Ze=this.map.get(re.param)||[];const tt=Ze.indexOf(fe(re.value));-1!==tt&&Ze.splice(tt,1),Ze.length>0?this.map.set(re.param,Ze):this.map.delete(re.param)}}}),this.cloneFrom=this.updates=null)}}class le{constructor(re){this.defaultValue=re}}class Me{constructor(){this.map=new Map}set(re,Ce){return this.map.set(re,Ce),this}get(re){return this.map.has(re)||this.map.set(re,re.defaultValue()),this.map.get(re)}delete(re){return this.map.delete(re),this}has(re){return this.map.has(re)}keys(){return this.map.keys()}}function ye(be){return"undefined"!=typeof ArrayBuffer&&be instanceof ArrayBuffer}function se(be){return"undefined"!=typeof Blob&&be instanceof Blob}function De(be){return"undefined"!=typeof FormData&&be instanceof FormData}class Xe{constructor(re,Ce,Ze,tt){let ft;if(this.url=Ce,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=re.toUpperCase(),function pe(be){switch(be){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||tt?(this.body=void 0!==Ze?Ze:null,ft=tt):ft=Ze,ft&&(this.reportProgress=!!ft.reportProgress,this.withCredentials=!!ft.withCredentials,ft.responseType&&(this.responseType=ft.responseType),ft.headers&&(this.headers=ft.headers),ft.context&&(this.context=ft.context),ft.params&&(this.params=ft.params)),this.headers||(this.headers=new h),this.context||(this.context=new Me),this.params){const pt=this.params.toString();if(0===pt.length)this.urlWithParams=Ce;else{const wt=Ce.indexOf("?");this.urlWithParams=Ce+(-1===wt?"?":wt<Ce.length-1?"&":"")+pt}}else this.params=new $,this.urlWithParams=Ce}serializeBody(){return null===this.body?null:ye(this.body)||se(this.body)||De(this.body)||function ke(be){return"undefined"!=typeof URLSearchParams&&be instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof $?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||De(this.body)?null:se(this.body)?this.body.type||null:ye(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof $?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(re={}){var Ce;const Ze=re.method||this.method,tt=re.url||this.url,ft=re.responseType||this.responseType,pt=void 0!==re.body?re.body:this.body,wt=void 0!==re.withCredentials?re.withCredentials:this.withCredentials,$t=void 0!==re.reportProgress?re.reportProgress:this.reportProgress;let nn=re.headers||this.headers,Ht=re.params||this.params;const En=null!==(Ce=re.context)&&void 0!==Ce?Ce:this.context;return void 0!==re.setHeaders&&(nn=Object.keys(re.setHeaders).reduce((sn,zt)=>sn.set(zt,re.setHeaders[zt]),nn)),re.setParams&&(Ht=Object.keys(re.setParams).reduce((sn,zt)=>sn.set(zt,re.setParams[zt]),Ht)),new Xe(Ze,tt,pt,{params:Ht,headers:nn,context:En,reportProgress:$t,responseType:ft,withCredentials:wt})}}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 q{constructor(re,Ce=200,Ze="OK"){this.headers=re.headers||new h,this.status=void 0!==re.status?re.status:Ce,this.statusText=re.statusText||Ze,this.url=re.url||null,this.ok=this.status>=200&&this.status<300}}class Pe extends q{constructor(re={}){super(re),this.type=st.ResponseHeader}clone(re={}){return new Pe({headers:re.headers||this.headers,status:void 0!==re.status?re.status:this.status,statusText:re.statusText||this.statusText,url:re.url||this.url||void 0})}}class J extends q{constructor(re={}){super(re),this.type=st.Response,this.body=void 0!==re.body?re.body:null}clone(re={}){return new J({body:void 0!==re.body?re.body:this.body,headers:re.headers||this.headers,status:void 0!==re.status?re.status:this.status,statusText:re.statusText||this.statusText,url:re.url||this.url||void 0})}}class ae extends q{constructor(re){super(re,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${re.url||"(unknown url)"}`:`Http failure response for ${re.url||"(unknown url)"}: ${re.status} ${re.statusText}`,this.error=re.error||null}}function Ie(be,re){return{body:re,headers:be.headers,context:be.context,observe:be.observe,params:be.params,reportProgress:be.reportProgress,responseType:be.responseType,withCredentials:be.withCredentials}}let ie=(()=>{class be{constructor(Ce){this.handler=Ce}request(Ce,Ze,tt={}){let ft;if(Ce instanceof Xe)ft=Ce;else{let $t,nn;$t=tt.headers instanceof h?tt.headers:new h(tt.headers),tt.params&&(nn=tt.params instanceof $?tt.params:new $({fromObject:tt.params})),ft=new Xe(Ce,Ze,void 0!==tt.body?tt.body:null,{headers:$t,context:tt.context,params:nn,reportProgress:tt.reportProgress,responseType:tt.responseType||"json",withCredentials:tt.withCredentials})}const pt=(0,m.of)(ft).pipe((0,s.b)($t=>this.handler.handle($t)));if(Ce instanceof Xe||"events"===tt.observe)return pt;const wt=pt.pipe((0,_.h)($t=>$t instanceof J));switch(tt.observe||"body"){case"body":switch(ft.responseType){case"arraybuffer":return wt.pipe((0,C.U)($t=>{if(null!==$t.body&&!($t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return $t.body}));case"blob":return wt.pipe((0,C.U)($t=>{if(null!==$t.body&&!($t.body instanceof Blob))throw new Error("Response is not a Blob.");return $t.body}));case"text":return wt.pipe((0,C.U)($t=>{if(null!==$t.body&&"string"!=typeof $t.body)throw new Error("Response is not a string.");return $t.body}));default:return wt.pipe((0,C.U)($t=>$t.body))}case"response":return wt;default:throw new Error(`Unreachable: unhandled observe type ${tt.observe}}`)}}delete(Ce,Ze={}){return this.request("DELETE",Ce,Ze)}get(Ce,Ze={}){return this.request("GET",Ce,Ze)}head(Ce,Ze={}){return this.request("HEAD",Ce,Ze)}jsonp(Ce,Ze){return this.request("JSONP",Ce,{params:(new $).append(Ze,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Ce,Ze={}){return this.request("OPTIONS",Ce,Ze)}patch(Ce,Ze,tt={}){return this.request("PATCH",Ce,Ie(tt,Ze))}post(Ce,Ze,tt={}){return this.request("POST",Ce,Ie(tt,Ze))}put(Ce,Ze,tt={}){return this.request("PUT",Ce,Ie(tt,Ze))}}return be.\u0275fac=function(Ce){return new(Ce||be)(u.\u0275\u0275inject(D))},be.\u0275prov=u.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})();class Ke{constructor(re,Ce){this.next=re,this.interceptor=Ce}handle(re){return this.interceptor.intercept(re,this.next)}}const ge=new u.InjectionToken("HTTP_INTERCEPTORS");let nt=(()=>{class be{intercept(Ce,Ze){return Ze.handle(Ce)}}return be.\u0275fac=function(Ce){return new(Ce||be)},be.\u0275prov=u.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})(),ve=0;class Fe{}let Je=(()=>{class be{constructor(Ce,Ze){this.callbackMap=Ce,this.document=Ze,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+ve++}handle(Ce){if("JSONP"!==Ce.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==Ce.responseType)throw new Error("JSONP requests must use Json response type.");return new c.y(Ze=>{const tt=this.nextCallback(),ft=Ce.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${tt}$1`),pt=this.document.createElement("script");pt.src=ft;let wt=null,$t=!1,nn=!1;this.callbackMap[tt]=zt=>{delete this.callbackMap[tt],!nn&&(wt=zt,$t=!0)};const Ht=()=>{pt.parentNode&&pt.parentNode.removeChild(pt),delete this.callbackMap[tt]},En=zt=>{nn||this.resolvedPromise.then(()=>{Ht(),$t?(Ze.next(new J({body:wt,status:200,statusText:"OK",url:ft})),Ze.complete()):Ze.error(new ae({url:ft,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})},sn=zt=>{nn||(Ht(),Ze.error(new ae({error:zt,status:0,statusText:"JSONP Error",url:ft})))};return pt.addEventListener("load",En),pt.addEventListener("error",sn),this.document.body.appendChild(pt),Ze.next({type:st.Sent}),()=>{nn=!0,pt.removeEventListener("load",En),pt.removeEventListener("error",sn),Ht()}})}}return be.\u0275fac=function(Ce){return new(Ce||be)(u.\u0275\u0275inject(Fe),u.\u0275\u0275inject(i.DOCUMENT))},be.\u0275prov=u.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})(),Y=(()=>{class be{constructor(Ce){this.jsonp=Ce}intercept(Ce,Ze){return"JSONP"===Ce.method?this.jsonp.handle(Ce):Ze.handle(Ce)}}return be.\u0275fac=function(Ce){return new(Ce||be)(u.\u0275\u0275inject(Je))},be.\u0275prov=u.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})();const me=/^\)\]\}',?\n/;let Re=(()=>{class be{constructor(Ce){this.xhrFactory=Ce}handle(Ce){if("JSONP"===Ce.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new c.y(Ze=>{const tt=this.xhrFactory.build();if(tt.open(Ce.method,Ce.urlWithParams),Ce.withCredentials&&(tt.withCredentials=!0),Ce.headers.forEach((zt,St)=>tt.setRequestHeader(zt,St.join(","))),Ce.headers.has("Accept")||tt.setRequestHeader("Accept","application/json, text/plain, */*"),!Ce.headers.has("Content-Type")){const zt=Ce.detectContentTypeHeader();null!==zt&&tt.setRequestHeader("Content-Type",zt)}if(Ce.responseType){const zt=Ce.responseType.toLowerCase();tt.responseType="json"!==zt?zt:"text"}const ft=Ce.serializeBody();let pt=null;const wt=()=>{if(null!==pt)return pt;const zt=1223===tt.status?204:tt.status,St=tt.statusText||"OK",bn=new h(tt.getAllResponseHeaders()),Zt=function we(be){return"responseURL"in be&&be.responseURL?be.responseURL:/^X-Request-URL:/m.test(be.getAllResponseHeaders())?be.getResponseHeader("X-Request-URL"):null}(tt)||Ce.url;return pt=new Pe({headers:bn,status:zt,statusText:St,url:Zt}),pt},$t=()=>{let{headers:zt,status:St,statusText:bn,url:Zt}=wt(),an=null;204!==St&&(an=void 0===tt.response?tt.responseText:tt.response),0===St&&(St=an?200:0);let Ge=St>=200&&St<300;if("json"===Ce.responseType&&"string"==typeof an){const ce=an;an=an.replace(me,"");try{an=""!==an?JSON.parse(an):null}catch(L){an=ce,Ge&&(Ge=!1,an={error:L,text:an})}}Ge?(Ze.next(new J({body:an,headers:zt,status:St,statusText:bn,url:Zt||void 0})),Ze.complete()):Ze.error(new ae({error:an,headers:zt,status:St,statusText:bn,url:Zt||void 0}))},nn=zt=>{const{url:St}=wt(),bn=new ae({error:zt,status:tt.status||0,statusText:tt.statusText||"Unknown Error",url:St||void 0});Ze.error(bn)};let Ht=!1;const En=zt=>{Ht||(Ze.next(wt()),Ht=!0);let St={type:st.DownloadProgress,loaded:zt.loaded};zt.lengthComputable&&(St.total=zt.total),"text"===Ce.responseType&&!!tt.responseText&&(St.partialText=tt.responseText),Ze.next(St)},sn=zt=>{let St={type:st.UploadProgress,loaded:zt.loaded};zt.lengthComputable&&(St.total=zt.total),Ze.next(St)};return tt.addEventListener("load",$t),tt.addEventListener("error",nn),tt.addEventListener("timeout",nn),tt.addEventListener("abort",nn),Ce.reportProgress&&(tt.addEventListener("progress",En),null!==ft&&tt.upload&&tt.upload.addEventListener("progress",sn)),tt.send(ft),Ze.next({type:st.Sent}),()=>{tt.removeEventListener("error",nn),tt.removeEventListener("abort",nn),tt.removeEventListener("load",$t),tt.removeEventListener("timeout",nn),Ce.reportProgress&&(tt.removeEventListener("progress",En),null!==ft&&tt.upload&&tt.upload.removeEventListener("progress",sn)),tt.readyState!==tt.DONE&&tt.abort()}})}}return be.\u0275fac=function(Ce){return new(Ce||be)(u.\u0275\u0275inject(i.XhrFactory))},be.\u0275prov=u.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})();const _e=new u.InjectionToken("XSRF_COOKIE_NAME"),Ye=new u.InjectionToken("XSRF_HEADER_NAME");class yt{}let Ct=(()=>{class be{constructor(Ce,Ze,tt){this.doc=Ce,this.platform=Ze,this.cookieName=tt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Ce=this.doc.cookie||"";return Ce!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,i.\u0275parseCookieValue)(Ce,this.cookieName),this.lastCookieString=Ce),this.lastToken}}return be.\u0275fac=function(Ce){return new(Ce||be)(u.\u0275\u0275inject(i.DOCUMENT),u.\u0275\u0275inject(u.PLATFORM_ID),u.\u0275\u0275inject(_e))},be.\u0275prov=u.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})(),Ot=(()=>{class be{constructor(Ce,Ze){this.tokenService=Ce,this.headerName=Ze}intercept(Ce,Ze){const tt=Ce.url.toLowerCase();if("GET"===Ce.method||"HEAD"===Ce.method||tt.startsWith("http://")||tt.startsWith("https://"))return Ze.handle(Ce);const ft=this.tokenService.getToken();return null!==ft&&!Ce.headers.has(this.headerName)&&(Ce=Ce.clone({headers:Ce.headers.set(this.headerName,ft)})),Ze.handle(Ce)}}return be.\u0275fac=function(Ce){return new(Ce||be)(u.\u0275\u0275inject(yt),u.\u0275\u0275inject(Ye))},be.\u0275prov=u.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})(),dt=(()=>{class be{constructor(Ce,Ze){this.backend=Ce,this.injector=Ze,this.chain=null}handle(Ce){if(null===this.chain){const Ze=this.injector.get(ge,[]);this.chain=Ze.reduceRight((tt,ft)=>new Ke(tt,ft),this.backend)}return this.chain.handle(Ce)}}return be.\u0275fac=function(Ce){return new(Ce||be)(u.\u0275\u0275inject(I),u.\u0275\u0275inject(u.Injector))},be.\u0275prov=u.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})();function N(){return"object"==typeof window?window:{}}let oe=(()=>{class be{static disable(){return{ngModule:be,providers:[{provide:Ot,useClass:nt}]}}static withOptions(Ce={}){return{ngModule:be,providers:[Ce.cookieName?{provide:_e,useValue:Ce.cookieName}:[],Ce.headerName?{provide:Ye,useValue:Ce.headerName}:[]]}}}return be.\u0275fac=function(Ce){return new(Ce||be)},be.\u0275mod=u.\u0275\u0275defineNgModule({type:be}),be.\u0275inj=u.\u0275\u0275defineInjector({providers:[Ot,{provide:ge,useExisting:Ot,multi:!0},{provide:yt,useClass:Ct},{provide:_e,useValue:"XSRF-TOKEN"},{provide:Ye,useValue:"X-XSRF-TOKEN"}]}),be})(),Oe=(()=>{class be{}return be.\u0275fac=function(Ce){return new(Ce||be)},be.\u0275mod=u.\u0275\u0275defineNgModule({type:be}),be.\u0275inj=u.\u0275\u0275defineInjector({providers:[ie,{provide:D,useClass:dt},Re,{provide:I,useExisting:Re}],imports:[[oe.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),be})(),ue=(()=>{class be{}return be.\u0275fac=function(Ce){return new(Ce||be)},be.\u0275mod=u.\u0275\u0275defineNgModule({type:be}),be.\u0275inj=u.\u0275\u0275defineInjector({providers:[Je,{provide:Fe,useFactory:N},{provide:ge,useClass:Y,multi:!0}]}),be})();const Te=i.XhrFactory},5e3:(Le,g,l)=>{"use strict";l.r(g),l.d(g,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>i_,APP_BOOTSTRAP_LISTENER:()=>hg,APP_ID:()=>lg,APP_INITIALIZER:()=>uu,ApplicationInitStatus:()=>Lo,ApplicationModule:()=>FE,ApplicationRef:()=>Es,Attribute:()=>Yu,COMPILER_OPTIONS:()=>gg,CUSTOM_ELEMENTS_SCHEMA:()=>xd,ChangeDetectionStrategy:()=>Ce,ChangeDetectorRef:()=>Og,Compiler:()=>hu,CompilerFactory:()=>K0,Component:()=>k0,ComponentFactory:()=>sa,ComponentFactoryResolver:()=>ms,ComponentRef:()=>Gp,ContentChild:()=>o_,ContentChildren:()=>r_,DEFAULT_CURRENCY_CODE:()=>pg,DebugElement:()=>vE,DebugEventListener:()=>dE,DebugNode:()=>yE,DefaultIterableDiffer:()=>Lg,Directive:()=>ag,ElementRef:()=>gs,EmbeddedViewRef:()=>uE,ErrorHandler:()=>qo,EventEmitter:()=>Mr,Host:()=>id,HostBinding:()=>j0,HostListener:()=>V0,INJECTOR:()=>Zs,Inject:()=>Go,InjectFlags:()=>N,Injectable:()=>sb,InjectionToken:()=>Yn,Injector:()=>Vi,Input:()=>L0,IterableDiffers:()=>ya,KeyValueDiffers:()=>va,LOCALE_ID:()=>ga,MissingTranslationStrategy:()=>wr,ModuleWithComponentFactories:()=>mg,NO_ERRORS_SCHEMA:()=>Rd,NgModule:()=>$0,NgModuleFactory:()=>im,NgModuleRef:()=>Fo,NgProbeToken:()=>eE,NgZone:()=>$i,Optional:()=>Wr,Output:()=>B0,PACKAGE_ROOT_URL:()=>U0,PLATFORM_ID:()=>dg,PLATFORM_INITIALIZER:()=>ug,Pipe:()=>N0,PlatformRef:()=>bu,Query:()=>Ho,QueryList:()=>da,ReflectiveInjector:()=>Io,ReflectiveKey:()=>Nr,Renderer2:()=>ZC,RendererFactory2:()=>Zp,RendererStyleFlags2:()=>Cr,ResolvedReflectiveFactory:()=>Df,Sanitizer:()=>Yp,SecurityContext:()=>ei,Self:()=>ks,SimpleChange:()=>Ai,SkipSelf:()=>zr,TRANSLATIONS:()=>W0,TRANSLATIONS_FORMAT:()=>z0,TemplateRef:()=>vs,Testability:()=>bg,TestabilityRegistry:()=>gu,Type:()=>Os,VERSION:()=>Xp,Version:()=>Jp,ViewChild:()=>a_,ViewChildren:()=>s_,ViewContainerRef:()=>fa,ViewEncapsulation:()=>ft,ViewRef:()=>Rg,asNativeElements:()=>hE,assertPlatform:()=>Mg,createNgModuleRef:()=>r0,createPlatform:()=>Dg,createPlatformFactory:()=>Tg,defineInjectable:()=>Y,destroyPlatform:()=>tE,enableProdMode:()=>sE,forwardRef:()=>A,getDebugNode:()=>_a,getModuleFactory:()=>aE,getNgModuleById:()=>lE,getPlatform:()=>vu,inject:()=>C_,isDevMode:()=>oE,platformCore:()=>SE,resolveForwardRef:()=>T,setTestabilityGetter:()=>q0,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>yu,\u0275APP_ID_RANDOM_PROVIDER:()=>cg,\u0275ChangeDetectorStatus:()=>Ze,\u0275ComponentFactory:()=>sa,\u0275Console:()=>fg,\u0275DEFAULT_LOCALE_ID:()=>us,\u0275INJECTOR_SCOPE:()=>Il,\u0275LifecycleHooksFeature:()=>cf,\u0275LocaleDataIndex:()=>on,\u0275NG_COMP_DEF:()=>bn,\u0275NG_DIR_DEF:()=>Zt,\u0275NG_ELEMENT_ID:()=>L,\u0275NG_INJ_DEF:()=>Ot,\u0275NG_MOD_DEF:()=>Ge,\u0275NG_PIPE_DEF:()=>an,\u0275NG_PROV_DEF:()=>Ct,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>aa,\u0275NO_CHANGE:()=>mn,\u0275NgModuleFactory:()=>ua,\u0275NoopNgZone:()=>vg,\u0275ReflectionCapabilities:()=>Aa,\u0275Render3ComponentFactory:()=>ca,\u0275Render3ComponentRef:()=>tm,\u0275Render3NgModuleRef:()=>Zc,\u0275RuntimeError:()=>V,\u0275ViewRef:()=>Ro,\u0275_sanitizeHtml:()=>bd,\u0275_sanitizeUrl:()=>Zo,\u0275allowSanitizationBypassAndThrow:()=>co,\u0275bypassSanitizationTrustHtml:()=>L_,\u0275bypassSanitizationTrustResourceUrl:()=>$_,\u0275bypassSanitizationTrustScript:()=>j_,\u0275bypassSanitizationTrustStyle:()=>B_,\u0275bypassSanitizationTrustUrl:()=>V_,\u0275clearResolutionOfComponentResourcesQueue:()=>ld,\u0275compileComponent:()=>Zm,\u0275compileDirective:()=>cu,\u0275compileNgModule:()=>Um,\u0275compileNgModuleDefs:()=>Wm,\u0275compileNgModuleFactory:()=>Cg,\u0275compilePipe:()=>og,\u0275createInjector:()=>Al,\u0275defaultIterableDiffers:()=>Ug,\u0275defaultKeyValueDiffers:()=>Wg,\u0275detectChanges:()=>Uh,\u0275devModeEqual:()=>hf,\u0275findLocaleData:()=>jc,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>$m,\u0275getDebugNode:()=>_a,\u0275getDebugNodeR2:()=>_E,\u0275getDirectives:()=>ef,\u0275getHostElement:()=>Rl,\u0275getInjectableDef:()=>we,\u0275getLContext:()=>yi,\u0275getLocaleCurrencyCode:()=>Zb,\u0275getLocalePluralCase:()=>_p,\u0275getSanitizationBypassType:()=>hd,\u0275global:()=>Ht,\u0275injectChangeDetectorRef:()=>xg,\u0275isBoundToModule:()=>Eg,\u0275isDefaultChangeDetectionStrategy:()=>tt,\u0275isListLikeIterable:()=>os,\u0275isObservable:()=>xf,\u0275isPromise:()=>ic,\u0275isSubscribable:()=>Of,\u0275ivyEnabled:()=>kE,\u0275makeDecorator:()=>ro,\u0275markDirty:()=>Wh,\u0275noSideEffects:()=>re,\u0275patchComponentDefWithScope:()=>su,\u0275publishDefaultGlobalUtils:()=>Uv,\u0275publishGlobalUtil:()=>er,\u0275registerLocaleData:()=>Qb,\u0275registerNgModuleType:()=>om,\u0275renderComponent:()=>Wv,\u0275resetCompiledComponents:()=>M0,\u0275resetJitOptions:()=>D0,\u0275resolveComponentResources:()=>sd,\u0275setClassMetadata:()=>nm,\u0275setCurrentInjector:()=>Ra,\u0275setDocument:()=>Yi,\u0275setLocaleId:()=>bp,\u0275store:()=>pf,\u0275stringify:()=>D,\u0275transitiveScopesFor:()=>Cs,\u0275unregisterLocaleData:()=>Yb,\u0275unwrapSafeValue:()=>Rr,\u0275whenRendered:()=>zv,\u0275\u0275CopyDefinitionFeature:()=>df,\u0275\u0275FactoryTarget:()=>ii,\u0275\u0275InheritDefinitionFeature:()=>kl,\u0275\u0275NgOnChangesFeature:()=>pi,\u0275\u0275ProvidersFeature:()=>Kp,\u0275\u0275advance:()=>uh,\u0275\u0275attribute:()=>Bl,\u0275\u0275attributeInterpolate1:()=>jl,\u0275\u0275attributeInterpolate2:()=>Vl,\u0275\u0275attributeInterpolate3:()=>$l,\u0275\u0275attributeInterpolate4:()=>Hl,\u0275\u0275attributeInterpolate5:()=>Ul,\u0275\u0275attributeInterpolate6:()=>Wl,\u0275\u0275attributeInterpolate7:()=>zl,\u0275\u0275attributeInterpolate8:()=>Kl,\u0275\u0275attributeInterpolateV:()=>Gl,\u0275\u0275classMap:()=>zf,\u0275\u0275classMapInterpolate1:()=>qf,\u0275\u0275classMapInterpolate2:()=>ep,\u0275\u0275classMapInterpolate3:()=>tp,\u0275\u0275classMapInterpolate4:()=>np,\u0275\u0275classMapInterpolate5:()=>ip,\u0275\u0275classMapInterpolate6:()=>rp,\u0275\u0275classMapInterpolate7:()=>op,\u0275\u0275classMapInterpolate8:()=>sp,\u0275\u0275classMapInterpolateV:()=>ap,\u0275\u0275classProp:()=>_c,\u0275\u0275contentQuery:()=>km,\u0275\u0275defineComponent:()=>S,\u0275\u0275defineDirective:()=>Ue,\u0275\u0275defineInjectable:()=>Je,\u0275\u0275defineInjector:()=>me,\u0275\u0275defineNgModule:()=>Kt,\u0275\u0275definePipe:()=>he,\u0275\u0275directiveInject:()=>ls,\u0275\u0275disableBindings:()=>Ni,\u0275\u0275element:()=>If,\u0275\u0275elementContainer:()=>Pf,\u0275\u0275elementContainerEnd:()=>nc,\u0275\u0275elementContainerStart:()=>tc,\u0275\u0275elementEnd:()=>ec,\u0275\u0275elementStart:()=>ql,\u0275\u0275enableBindings:()=>gi,\u0275\u0275getCurrentView:()=>Af,\u0275\u0275getInheritedFactory:()=>Zu,\u0275\u0275hostProperty:()=>Lc,\u0275\u0275i18n:()=>$p,\u0275\u0275i18nApply:()=>Up,\u0275\u0275i18nAttributes:()=>Hp,\u0275\u0275i18nEnd:()=>Uc,\u0275\u0275i18nExp:()=>Wc,\u0275\u0275i18nPostprocess:()=>Wp,\u0275\u0275i18nStart:()=>Hc,\u0275\u0275inject:()=>si,\u0275\u0275injectAttribute:()=>Sa,\u0275\u0275invalidFactory:()=>Sf,\u0275\u0275invalidFactoryDep:()=>Fa,\u0275\u0275listener:()=>rc,\u0275\u0275loadQuery:()=>Nm,\u0275\u0275namespaceHTML:()=>Vn,\u0275\u0275namespaceMathML:()=>lr,\u0275\u0275namespaceSVG:()=>_i,\u0275\u0275nextContext:()=>kf,\u0275\u0275ngDeclareClassMetadata:()=>LE,\u0275\u0275ngDeclareComponent:()=>BE,\u0275\u0275ngDeclareDirective:()=>NE,\u0275\u0275ngDeclareFactory:()=>jE,\u0275\u0275ngDeclareInjectable:()=>$E,\u0275\u0275ngDeclareInjector:()=>HE,\u0275\u0275ngDeclareNgModule:()=>UE,\u0275\u0275ngDeclarePipe:()=>WE,\u0275\u0275pipe:()=>Em,\u0275\u0275pipeBind1:()=>Dm,\u0275\u0275pipeBind2:()=>Tm,\u0275\u0275pipeBind3:()=>Mm,\u0275\u0275pipeBind4:()=>wm,\u0275\u0275pipeBindV:()=>Sm,\u0275\u0275projection:()=>Lf,\u0275\u0275projectionDef:()=>Nf,\u0275\u0275property:()=>Jl,\u0275\u0275propertyInterpolate:()=>ac,\u0275\u0275propertyInterpolate1:()=>qs,\u0275\u0275propertyInterpolate2:()=>lc,\u0275\u0275propertyInterpolate3:()=>cc,\u0275\u0275propertyInterpolate4:()=>uc,\u0275\u0275propertyInterpolate5:()=>dc,\u0275\u0275propertyInterpolate6:()=>hc,\u0275\u0275propertyInterpolate7:()=>fc,\u0275\u0275propertyInterpolate8:()=>pc,\u0275\u0275propertyInterpolateV:()=>mc,\u0275\u0275pureFunction0:()=>am,\u0275\u0275pureFunction1:()=>lm,\u0275\u0275pureFunction2:()=>cm,\u0275\u0275pureFunction3:()=>um,\u0275\u0275pureFunction4:()=>dm,\u0275\u0275pureFunction5:()=>hm,\u0275\u0275pureFunction6:()=>fm,\u0275\u0275pureFunction7:()=>pm,\u0275\u0275pureFunction8:()=>mm,\u0275\u0275pureFunctionV:()=>gm,\u0275\u0275queryRefresh:()=>Rm,\u0275\u0275reference:()=>mf,\u0275\u0275resolveBody:()=>Bd,\u0275\u0275resolveDocument:()=>Ld,\u0275\u0275resolveWindow:()=>Nd,\u0275\u0275restoreView:()=>d,\u0275\u0275sanitizeHtml:()=>Cd,\u0275\u0275sanitizeResourceUrl:()=>Wa,\u0275\u0275sanitizeScript:()=>Dd,\u0275\u0275sanitizeStyle:()=>Ed,\u0275\u0275sanitizeUrl:()=>Ua,\u0275\u0275sanitizeUrlOrResourceUrl:()=>wd,\u0275\u0275setComponentScope:()=>M,\u0275\u0275setNgModuleScope:()=>rn,\u0275\u0275styleMap:()=>dr,\u0275\u0275styleMapInterpolate1:()=>lp,\u0275\u0275styleMapInterpolate2:()=>cp,\u0275\u0275styleMapInterpolate3:()=>up,\u0275\u0275styleMapInterpolate4:()=>dp,\u0275\u0275styleMapInterpolate5:()=>hp,\u0275\u0275styleMapInterpolate6:()=>fp,\u0275\u0275styleMapInterpolate7:()=>pp,\u0275\u0275styleMapInterpolate8:()=>mp,\u0275\u0275styleMapInterpolateV:()=>gp,\u0275\u0275styleProp:()=>gc,\u0275\u0275stylePropInterpolate1:()=>Ic,\u0275\u0275stylePropInterpolate2:()=>Pc,\u0275\u0275stylePropInterpolate3:()=>Ac,\u0275\u0275stylePropInterpolate4:()=>Oc,\u0275\u0275stylePropInterpolate5:()=>xc,\u0275\u0275stylePropInterpolate6:()=>Rc,\u0275\u0275stylePropInterpolate7:()=>Fc,\u0275\u0275stylePropInterpolate8:()=>kc,\u0275\u0275stylePropInterpolateV:()=>Nc,\u0275\u0275syntheticHostListener:()=>oc,\u0275\u0275syntheticHostProperty:()=>Bc,\u0275\u0275template:()=>ff,\u0275\u0275templateRefExtractor:()=>Vm,\u0275\u0275text:()=>Xf,\u0275\u0275textInterpolate:()=>vc,\u0275\u0275textInterpolate1:()=>ta,\u0275\u0275textInterpolate2:()=>bc,\u0275\u0275textInterpolate3:()=>Cc,\u0275\u0275textInterpolate4:()=>Ec,\u0275\u0275textInterpolate5:()=>Dc,\u0275\u0275textInterpolate6:()=>Tc,\u0275\u0275textInterpolate7:()=>Mc,\u0275\u0275textInterpolate8:()=>wc,\u0275\u0275textInterpolateV:()=>Sc,\u0275\u0275trustConstantHtml:()=>Td,\u0275\u0275trustConstantResourceUrl:()=>Md,\u0275\u0275viewQuery:()=>Fm});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 C(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function D(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(D).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 I(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 D(this())},e}function T(e){return b(e)?e():e}function b(e){return"function"==typeof e&&e.hasOwnProperty(h)&&e.__forward_ref__===A}class V extends Error{constructor(t,n){super(function fe(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function $(e){return"string"==typeof e?e:null==e?"":String(e)}function le(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():$(e)}function se(e,t){const n=t?` in ${t}`:"";throw new V(-201,`No provider for ${le(e)} found${n}`)}function $e(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function Je(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const Y=Je;function me(e){return{providers:e.providers||[],imports:e.imports||[]}}function we(e){return Re(e,Ct)||Re(e,dt)}function Re(e,t){return e.hasOwnProperty(t)?e[t]:null}function yt(e){return e&&(e.hasOwnProperty(Ot)||e.hasOwnProperty(Qe))?e[Ot]:null}const Ct=_({\u0275prov:_}),Ot=_({\u0275inj:_}),dt=_({ngInjectableDef:_}),Qe=_({ngInjectorDef:_});var N=(()=>((N=N||{})[N.Default=0]="Default",N[N.Host=1]="Host",N[N.Self=2]="Self",N[N.SkipSelf=4]="SkipSelf",N[N.Optional=8]="Optional",N))();let oe;function ue(e){const t=oe;return oe=e,t}function Te(e,t,n){const r=we(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&N.Optional?null:void 0!==t?t:void se(D(e),"Injector")}function re(e){return{toString:e}.toString()}var Ce=(()=>((Ce=Ce||{})[Ce.OnPush=0]="OnPush",Ce[Ce.Default=1]="Default",Ce))(),Ze=(()=>((Ze=Ze||{})[Ze.CheckOnce=0]="CheckOnce",Ze[Ze.Checked=1]="Checked",Ze[Ze.CheckAlways=2]="CheckAlways",Ze[Ze.Detached=3]="Detached",Ze[Ze.Errored=4]="Errored",Ze[Ze.Destroyed=5]="Destroyed",Ze))();function tt(e){return null==e||e===Ce.Default}var ft=(()=>{return(e=ft||(ft={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",ft;var e})();const pt="undefined"!=typeof globalThis&&globalThis,wt="undefined"!=typeof window&&window,$t="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ht=pt||"undefined"!=typeof global&&global||wt||$t,zt={},St=[],bn=_({\u0275cmp:_}),Zt=_({\u0275dir:_}),an=_({\u0275pipe:_}),Ge=_({\u0275mod:_}),ce=_({\u0275fac:_}),L=_({__NG_ELEMENT_ID__:_});let v=0;function S(e){return re(()=>{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===Ce.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||St,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||ft.Emulated,id:"c",styles:e.styles||St,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,a=e.features,f=e.pipes;return r.id+=v++,r.inputs=je(e.inputs,n),r.outputs=je(e.outputs),a&&a.forEach(y=>y(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(G):null,r.pipeDefs=f?()=>("function"==typeof f?f():f).map(rt):null,r})}function M(e,t,n){const r=e.\u0275cmp;r.directiveDefs=()=>t.map(G),r.pipeDefs=()=>n.map(rt)}function G(e){return Ve(e)||ht(e)}function rt(e){return Bt(e)}const Dt={};function Kt(e){return re(()=>{const t={type:e.type,bootstrap:e.bootstrap||St,declarations:e.declarations||St,imports:e.imports||St,exports:e.exports||St,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(Dt[e.id]=e.type),t})}function rn(e,t){return re(()=>{const n=Nt(e,!0);n.declarations=t.declarations||St,n.imports=t.imports||St,n.exports=t.exports||St})}function je(e,t){if(null==e)return zt;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 Ue=S;function he(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[bn]||null}function ht(e){return e[Zt]||null}function Bt(e){return e[an]||null}function Nt(e,t){const n=e[Ge]||null;if(!n&&!0===t)throw new Error(`Type ${D(e)} does not have '\u0275mod' property.`);return n}function Kn(e){return Array.isArray(e)&&"object"==typeof e[1]}function Gn(e){return Array.isArray(e)&&!0===e[1]}function Ci(e){return 0!=(8&e.flags)}function Mi(e){return 2==(2&e.flags)}function hi(e){return 1==(1&e.flags)}function Wn(e){return null!==e.template}function Sr(e){return 0!=(512&e[2])}function fi(e,t){return e.hasOwnProperty(ce)?e[ce]:null}class Ai{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function pi(){return Qi}function Qi(e){return e.type.prototype.ngOnChanges&&(e.setInput=ir),mi}function mi(){const e=Oi(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===zt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function ir(e,t,n,r){const o=Oi(e)||function wi(e,t){return e[rr]=t}(e,{previous:zt,current:null}),a=o.current||(o.current={}),f=o.previous,y=this.declaredInputs[n],w=f[y];a[y]=new Ai(w&&w.currentValue,t,f===zt),e[r]=t}pi.ngInherit=!0;const rr="__ngSimpleChanges__";function Oi(e){return e[rr]||null}let xi=null;const Zi=e=>{xi=e},ti=function(e,t,n){null!=xi&&xi(e,t,n)},Ri="http://www.w3.org/2000/svg",or="http://www.w3.org/1998/MathML/";let Fi;function Yi(e){Fi=e}function ki(){return void 0!==Fi?Fi:"undefined"!=typeof document?document:void 0}function Rn(e){return!!e.listen}const sr={createRenderer:(e,t)=>ki()};function Ln(e){for(;Array.isArray(e);)e=e[0];return e}function F(e,t){return Ln(t[e])}function ne(e,t){return Ln(t[e.index])}function ut(e,t){return e.data[t]}function bt(e,t){return e[t]}function Ft(e,t){const n=t[e];return Kn(n)?n:n[0]}function Tn(e){return 4==(4&e[2])}function Mn(e){return 128==(128&e[2])}function fn(e,t){return null==t?null:e[t]}function k(e){e[18]=0}function O(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 E={lFrame:un(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function qn(){return E.bindingsEnabled}function gi(){E.bindingsEnabled=!0}function Ni(){E.bindingsEnabled=!1}function Mt(){return E.lFrame.lView}function j(){return E.lFrame.tView}function d(e){return E.lFrame.contextLView=e,e[8]}function p(){let e=P();for(;null!==e&&64===e.type;)e=e.parent;return e}function P(){return E.lFrame.currentTNode}function U(){const e=E.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function de(e,t){const n=E.lFrame;n.currentTNode=e,n.isParent=t}function Ne(){return E.lFrame.isParent}function He(){E.lFrame.isParent=!1}function xt(){return E.isInCheckNoChangesMode}function Wt(e){E.isInCheckNoChangesMode=e}function Yt(){const e=E.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function ln(){return E.lFrame.bindingIndex}function Jt(e){return E.lFrame.bindingIndex=e}function en(){return E.lFrame.bindingIndex++}function pn(e){const t=E.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function W(e){E.lFrame.inI18n=e}function Z(e,t){const n=E.lFrame;n.bindingIndex=n.bindingRootIndex=e,xe(t)}function xe(e){E.lFrame.currentDirectiveIndex=e}function Be(e){const t=E.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function et(){return E.lFrame.currentQueryIndex}function vt(e){E.lFrame.currentQueryIndex=e}function _t(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Ut(e,t,n){if(n&N.SkipSelf){let o=t,a=e;for(;!(o=o.parent,null!==o||n&N.Host||(o=_t(a),null===o||(a=a[15],10&o.type))););if(null===o)return!1;t=o,e=a}const r=E.lFrame=yn();return r.currentTNode=t,r.lView=e,!0}function Qt(e){const t=yn(),n=e[1];E.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function yn(){const e=E.lFrame,t=null===e?null:e.child;return null===t?un(e):t}function un(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 wn(){const e=E.lFrame;return E.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const _n=wn;function Pt(){const e=wn();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 cn(){return E.lFrame.selectedIndex}function jn(e){E.lFrame.selectedIndex=e}function An(){const e=E.lFrame;return ut(e.tView,e.selectedIndex)}function _i(){E.lFrame.currentNamespace=Ri}function lr(){E.lFrame.currentNamespace=or}function Vn(){!function Ts(){E.lFrame.currentNamespace=null}()}function Ji(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const a=e.data[n].type.prototype,{ngAfterContentInit:f,ngAfterContentChecked:y,ngAfterViewInit:w,ngAfterViewChecked:B,ngOnDestroy:K}=a;f&&(e.contentHooks||(e.contentHooks=[])).push(-n,f),y&&((e.contentHooks||(e.contentHooks=[])).push(n,y),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,y)),w&&(e.viewHooks||(e.viewHooks=[])).push(-n,w),B&&((e.viewHooks||(e.viewHooks=[])).push(n,B),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,B)),null!=K&&(e.destroyHooks||(e.destroyHooks=[])).push(n,K)}}function Li(e,t,n){Lu(e,t,3,n)}function Xi(e,t,n,r){(3&e[2])===n&&Lu(e,t,n,r)}function Ur(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Lu(e,t,n,r){const a=null!=r?r:-1,f=t.length-1;let y=0;for(let w=void 0!==r?65535&e[18]:0;w<f;w++)if("number"==typeof t[w+1]){if(y=t[w],null!=r&&y>=r)break}else t[w]<0&&(e[18]+=65536),(y<a||-1==a)&&(zg(e,n,t,w),e[18]=(4294901760&e[18])+w+2),w++}function zg(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,ti(4,y,a);try{a.call(y)}finally{ti(5,y,a)}}}else{ti(4,y,a);try{a.call(y)}finally{ti(5,y,a)}}}class Bo{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Ms(e,t,n){const r=Rn(e);let o=0;for(;o<n.length;){const a=n[o];if("number"==typeof a){if(0!==a)break;o++;const f=n[o++],y=n[o++],w=n[o++];r?e.setAttribute(t,y,w,f):t.setAttributeNS(f,y,w)}else{const f=a,y=n[++o];Ea(f)?r&&e.setProperty(t,f,y):r?e.setAttribute(t,f,y):t.setAttribute(f,y),o++}}return o}function Bu(e){return 3===e||4===e||6===e}function Ea(e){return 64===e.charCodeAt(0)}function ws(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||ju(e,n,o,null,-1===n||2===n?t[++r]:null)}}return e}function ju(e,t,n,r,o){let a=0,f=e.length;if(-1===t)f=-1;else for(;a<e.length;){const y=e[a++];if("number"==typeof y){if(y===t){f=-1;break}if(y>t){f=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!==f&&(e.splice(f,0,t),a=f+1),e.splice(a++,0,n),null!==r&&e.splice(a++,0,r),null!==o&&e.splice(a++,0,o)}function Vu(e){return-1!==e}function Xr(e){return 32767&e}function qr(e,t){let n=function Yg(e){return e>>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let Da=!0;function Ss(e){const t=Da;return Da=e,t}let Jg=0;function Vo(e,t){const n=Ma(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Ta(r.data,e),Ta(t,null),Ta(r.blueprint,null));const o=Is(e,t),a=e.injectorIndex;if(Vu(o)){const f=Xr(o),y=qr(o,t),w=y[1].data;for(let B=0;B<8;B++)t[a+B]=y[f+B]|w[f+B]}return t[a+8]=o,a}function Ta(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ma(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Is(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],f=a.type;if(r=2===f?a.declTNode:1===f?o[6]:null,null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Ps(e,t,n){!function Xg(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(L)&&(r=n[L]),null==r&&(r=n[L]=Jg++);const o=255&r;t.data[e+(o>>5)]|=1<<o}(e,t,n)}function Uu(e,t,n){if(n&N.Optional)return e;se(t,"NodeInjector")}function Wu(e,t,n,r){if(n&N.Optional&&void 0===r&&(r=null),0==(n&(N.Self|N.Host))){const o=e[9],a=ue(void 0);try{return o?o.get(t,r,n&N.Optional):Te(t,r,n&N.Optional)}finally{ue(a)}}return Uu(r,t,n)}function zu(e,t,n,r=N.Default,o){if(null!==e){const a=function n_(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(L)?e[L]:void 0;return"number"==typeof t?t>=0?255&t:e_:t}(n);if("function"==typeof a){if(!Ut(t,e,r))return r&N.Host?Uu(o,n,r):Wu(t,n,r,o);try{const f=a(r);if(null!=f||r&N.Optional)return f;se(n)}finally{_n()}}else if("number"==typeof a){let f=null,y=Ma(e,t),w=-1,B=r&N.Host?t[16][6]:null;for((-1===y||r&N.SkipSelf)&&(w=-1===y?Is(e,t):t[y+8],-1!==w&&Qu(r,!1)?(f=t[1],y=Xr(w),t=qr(w,t)):y=-1);-1!==y;){const K=t[1];if(Gu(a,y,K.data)){const Ee=t_(y,t,n,f,r,B);if(Ee!==Ku)return Ee}w=t[y+8],-1!==w&&Qu(r,t[1].data[y+8]===B)&&Gu(a,y,t)?(f=K,y=Xr(w),t=qr(w,t)):y=-1}}}return Wu(t,n,r,o)}const Ku={};function e_(){return new eo(p(),Mt())}function t_(e,t,n,r,o,a){const f=t[1],y=f.data[e+8],K=As(y,f,n,null==r?Mi(y)&&Da:r!=f&&0!=(3&y.type),o&N.Host&&a===y);return null!==K?$o(t,f,K,y):Ku}function As(e,t,n,r,o){const a=e.providerIndexes,f=t.data,y=1048575&a,w=e.directiveStart,K=a>>20,We=o?y+K:e.directiveEnd;for(let it=r?y:y+K;it<We;it++){const gt=f[it];if(it<w&&n===gt||it>=w&&gt.type===n)return it}if(o){const it=f[w];if(it&&Wn(it)&&it.type===n)return w}return null}function $o(e,t,n,r){let o=e[n];const a=t.data;if(function Kg(e){return e instanceof Bo}(o)){const f=o;f.resolving&&function Me(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new V(-200,`Circular dependency in DI detected for ${e}${n}`)}(le(a[n]));const y=Ss(f.canSeeViewProviders);f.resolving=!0;const w=f.injectImpl?ue(f.injectImpl):null;Ut(e,r,N.Default);try{o=e[n]=f.factory(void 0,a,e,r),t.firstCreatePass&&n>=r.directiveStart&&function ui(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:a}=t.type.prototype;if(r){const f=Qi(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,f),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,f)}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!==w&&ue(w),Ss(y),f.resolving=!1,_n()}}return o}function Gu(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Qu(e,t){return!(e&N.Self||e&N.Host&&t)}class eo{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return zu(this._tNode,this._lView,t,r,n)}}function Zu(e){return re(()=>{const t=e.prototype.constructor,n=t[ce]||wa(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const a=o[ce]||wa(o);if(a&&a!==n)return a;o=Object.getPrototypeOf(o)}return a=>new a})}function wa(e){return b(e)?()=>{const t=wa(T(e));return t&&t()}:fi(e)}function Sa(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(Bu(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}(p(),e)}const to="__annotations__",no="__parameters__",io="__prop__metadata__";function ro(e,t,n,r,o){return re(()=>{const a=Ia(t);function f(...y){if(this instanceof f)return a.call(this,...y),this;const w=new f(...y);return function(K){return o&&o(K,...y),(K.hasOwnProperty(to)?K[to]:Object.defineProperty(K,to,{value:[]})[to]).push(w),r&&r(K),K}}return n&&(f.prototype=Object.create(n.prototype)),f.prototype.ngMetadataName=e,f.annotationCls=f,f})}function Ia(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}function oo(e,t,n){return re(()=>{const r=Ia(t);function o(...a){if(this instanceof o)return r.apply(this,a),this;const f=new o(...a);return y.annotation=f,y;function y(w,B,K){const Ee=w.hasOwnProperty(no)?w[no]:Object.defineProperty(w,no,{value:[]})[no];for(;Ee.length<=K;)Ee.push(null);return(Ee[K]=Ee[K]||[]).push(f),w}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function jr(e,t,n,r){return re(()=>{const o=Ia(t);function a(...f){if(this instanceof a)return o.apply(this,f),this;const y=new a(...f);return function w(B,K){const Ee=B.constructor,We=Ee.hasOwnProperty(io)?Ee[io]:Object.defineProperty(Ee,io,{value:{}})[io];We[K]=We.hasOwnProperty(K)&&We[K]||[],We[K].unshift(y),r&&r(B,K,...f)}}return n&&(a.prototype=Object.create(n.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}const Yu=oo("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>Sa(e)}));class Yn{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=Je({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const i_=new Yn("AnalyzeForEntryComponents");class Ho{}const r_=jr("ContentChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0},t),Ho),o_=jr("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),Ho),s_=jr("ViewChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0},t),Ho),a_=jr("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),Ho);var ii=(()=>((ii=ii||{})[ii.Directive=0]="Directive",ii[ii.Component=1]="Component",ii[ii.Injectable=2]="Injectable",ii[ii.Pipe=3]="Pipe",ii[ii.NgModule=4]="NgModule",ii))();function ri(e){const t=Ht.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Os=Function;function Uo(e){return"function"==typeof e}function qi(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)),qi(r,t)):t!==e&&t.push(r)}return t}function yr(e,t){e.forEach(n=>Array.isArray(n)?yr(n,t):t(n))}function Xu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function xs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Wo(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}function Bi(e,t,n){let r=so(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 Pa(e,t){const n=so(e,t);if(n>=0)return e[1|n]}function so(e,t){return function td(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const a=r+(o-r>>1),f=e[a<<n];if(t===f)return a<<n;f>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*{\s*super\(\.\.\.arguments\)/;class Aa{constructor(t){this._reflect=t||Ht.Reflect}isReflectionEnabled(){return!0}factory(t){return(...n)=>new t(...n)}_zipTypesAndAnnotations(t,n){let r;r=Wo(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,w=y.map(K=>K&&K.type),B=y.map(K=>K&&Oa(K.decorators));return this._zipTypesAndAnnotations(w,B)}const a=t.hasOwnProperty(no)&&t[no],f=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return f||a?this._zipTypesAndAnnotations(f,a):Wo(t.length)}parameters(t){if(!Uo(t))return[];const n=Rs(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?Oa(t.decorators):t.hasOwnProperty(to)?t[to]:null}annotations(t){if(!Uo(t))return[];const n=Rs(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]=Oa(r[a])}),o}return t.hasOwnProperty(io)?t[io]:null}propMetadata(t){if(!Uo(t))return{};const n=Rs(t),r={};if(n!==Object){const a=this.propMetadata(n);Object.keys(a).forEach(f=>{r[f]=a[f]})}const o=this._ownPropMetadata(t,n);return o&&Object.keys(o).forEach(a=>{const f=[];r.hasOwnProperty(a)&&f.push(...r[a]),f.push(...o[a]),r[a]=f}),r}ownPropMetadata(t){return Uo(t)&&this._ownPropMetadata(t,Rs(t))||{}}hasLifecycleHook(t,n){return t instanceof Os&&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:`./${D(t)}`}resourceUri(t){return`./${D(t)}`}resolveIdentifier(t,n,r,o){return o}resolveEnum(t,n){return t[n]}}function Oa(e){return e?e.map(t=>new(0,t.type.annotationCls)(...t.args?t.args:[])):[]}function Rs(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}const Vr={},xa="__NG_DI_FLAG__",Fs="ngTempTokenPath",__=/\n/gm,nd="__source",v_=_({provide:String,useValue:_});let zo;function Ra(e){const t=zo;return zo=e,t}function b_(e,t=N.Default){if(void 0===zo)throw new V(203,"");return null===zo?Te(e,void 0,t):zo.get(e,t&N.Optional?null:void 0,t)}function si(e,t=N.Default){return(function Oe(){return oe}()||b_)(T(e),t)}function Fa(e){throw new Error("invalid")}const C_=si;function ka(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 V(900,"");let o,a=N.Default;for(let f=0;f<r.length;f++){const y=r[f],w=E_(y);"number"==typeof w?-1===w?o=y.token:a|=w:o=y}t.push(si(o,a))}else t.push(si(r))}return t}function Ko(e,t){return e[xa]=t,e.prototype[xa]=t,e}function E_(e){return e[xa]}const Go=Ko(oo("Inject",e=>({token:e})),-1),Wr=Ko(oo("Optional"),8),ks=Ko(oo("Self"),2),zr=Ko(oo("SkipSelf"),4),id=Ko(oo("Host"),1);let rd=null;function Na(){return rd=rd||new Aa}function Ns(e){return od(Na().parameters(e))}function od(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 Wr||"Optional"===o.ngMetadataName)t.optional=!0;else if(r instanceof zr||"SkipSelf"===o.ngMetadataName)t.skipSelf=!0;else if(r instanceof ks||"Self"===o.ngMetadataName)t.self=!0;else if(r instanceof id||"Host"===o.ngMetadataName)t.host=!0;else if(r instanceof Go)t.token=r.token;else if(r instanceof Yu){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 sd(e){const t=[],n=new Map;function r(o){let a=n.get(o);if(!a){const f=e(o);n.set(o,a=f.then(I_))}return a}return ao.forEach((o,a)=>{const f=[];o.templateUrl&&f.push(r(o.templateUrl).then(Ee=>{o.template=Ee}));const y=o.styleUrls,w=o.styles||(o.styles=[]),B=o.styles.length;y&&y.forEach((Ee,We)=>{w.push(""),f.push(r(Ee).then(it=>{w[B+We]=it,y.splice(y.indexOf(Ee),1),0==y.length&&(o.styleUrls=void 0)}))});const K=Promise.all(f).then(()=>function P_(e){Qo.delete(e)}(a));t.push(K)}),ld(),Promise.all(t).then(()=>{})}let ao=new Map;const Qo=new Set;function ad(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length)}function ld(){const e=ao;return ao=new Map,e}function I_(e){return"string"==typeof e?e:e.text()}let Ls,Bs;function La(){if(void 0===Ls&&(Ls=null,Ht.trustedTypes))try{Ls=Ht.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Ls}function lo(e){var t;return(null===(t=La())||void 0===t?void 0:t.createHTML(e))||e}function Ba(){if(void 0===Bs&&(Bs=null,Ht.trustedTypes))try{Bs=Ht.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Bs}function cd(e){var t;return(null===(t=Ba())||void 0===t?void 0:t.createHTML(e))||e}function ud(e){var t;return(null===(t=Ba())||void 0===t?void 0:t.createScript(e))||e}function dd(e){var t;return(null===(t=Ba())||void 0===t?void 0:t.createScriptURL(e))||e}class Kr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class x_ extends Kr{getTypeName(){return"HTML"}}class R_ extends Kr{getTypeName(){return"Style"}}class F_ extends Kr{getTypeName(){return"Script"}}class k_ extends Kr{getTypeName(){return"URL"}}class N_ extends Kr{getTypeName(){return"ResourceURL"}}function Rr(e){return e instanceof Kr?e.changingThisBreaksApplicationSecurity:e}function co(e,t){const n=hd(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 hd(e){return e instanceof Kr&&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 fd(e){const t=new U_(e);return function W_(){try{return!!(new window.DOMParser).parseFromString(lo(""),"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(lo(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=lo(t),n;const r=this.inertDocument.createElement("body");return r.innerHTML=lo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const n=t.attributes;for(let o=n.length-1;0<o;o--){const f=n.item(o).name;("xmlns:ns1"===f||0===f.indexOf("ns1:"))&&t.removeAttribute(f)}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 Zo(e){return(e=String(e)).match(z_)||e.match(K_)?e:"unsafe:"+e}function pd(e){return(e=String(e)).split(",").map(t=>Zo(t.trim())).join(", ")}function vr(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Yo(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const md=vr("area,br,col,hr,img,wbr"),gd=vr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),_d=vr("rp,rt"),ja=Yo(md,Yo(gd,vr("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")),Yo(_d,vr("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")),Yo(_d,gd)),Va=vr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),$a=vr("srcset"),yd=Yo(Va,$a,vr("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"),vr("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_=vr("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(!ja.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),f=a.name,y=f.toLowerCase();if(!yd.hasOwnProperty(y)){this.sanitizedSomething=!0;continue}let w=a.value;Va[y]&&(w=Zo(w)),$a[y]&&(w=pd(w)),this.buf.push(" ",f,'="',vd(w),'"')}return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();ja.hasOwnProperty(n)&&!md.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(vd(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 vd(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 js;function bd(e,t){let n=null;try{js=js||fd(e);let r=t?String(t):"";n=js.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=js.getInertBodyElement(r)}while(r!==a);return lo((new Q_).sanitizeChildren(Ha(n)||n))}finally{if(n){const r=Ha(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Ha(e){return"content"in e&&function J_(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var ei=(()=>((ei=ei||{})[ei.NONE=0]="NONE",ei[ei.HTML=1]="HTML",ei[ei.STYLE=2]="STYLE",ei[ei.SCRIPT=3]="SCRIPT",ei[ei.URL=4]="URL",ei[ei.RESOURCE_URL=5]="RESOURCE_URL",ei))();function Cd(e){const t=Jo();return t?cd(t.sanitize(ei.HTML,e)||""):co(e,"HTML")?cd(Rr(e)):bd(ki(),$(e))}function Ed(e){const t=Jo();return t?t.sanitize(ei.STYLE,e)||"":co(e,"Style")?Rr(e):$(e)}function Ua(e){const t=Jo();return t?t.sanitize(ei.URL,e)||"":co(e,"URL")?Rr(e):Zo($(e))}function Wa(e){const t=Jo();if(t)return dd(t.sanitize(ei.RESOURCE_URL,e)||"");if(co(e,"ResourceURL"))return dd(Rr(e));throw new V(904,"")}function Dd(e){const t=Jo();if(t)return ud(t.sanitize(ei.SCRIPT,e)||"");if(co(e,"Script"))return ud(Rr(e));throw new V(905,"")}function Td(e){return lo(e[0])}function Md(e){return function O_(e){var t;return(null===(t=La())||void 0===t?void 0:t.createScriptURL(e))||e}(e[0])}function wd(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)?Wa:Ua}(t,n)(e)}function Jo(){const e=Mt();return e&&e[12]}function yi(e){let t=Xo(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=Ad(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=Od(r,n,!1)}else if(r=Pd(n,e),-1==r)return null;const f=Ln(n[r]),y=Xo(f),w=y&&!Array.isArray(y)?y:za(n,r,f);if(o&&void 0===w.component&&(w.component=o,vi(w.component,w)),a&&void 0===w.directives){w.directives=a;for(let B=0;B<a.length;B++)vi(a[B],w)}vi(w.native,w),t=w}}else{const n=e;let r=n;for(;r=r.parentNode;){const o=Xo(r);if(o){let a;if(a=Array.isArray(o)?o:o.lView,!a)return null;const f=Pd(a,n);if(f>=0){const y=Ln(a[f]),w=za(a,f,y);vi(y,w),t=w;break}}}}return t||null}function za(e,t,n){return{lView:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}function Sd(e){let n,t=Xo(e);if(Array.isArray(t)){const r=Ad(t,e);n=Ft(r,t);const o=za(t,r,n[0]);o.component=e,vi(e,o),vi(o.native,o)}else n=Ft(t.nodeIndex,t.lView);return n}const Id="__ngContext__";function vi(e,t){e[Id]=t}function Xo(e){return e[Id]||null}function Ka(e){const t=Xo(e);return t?Array.isArray(t)?t:t.lView:null}function Pd(e,t){const n=e[1];for(let r=20;r<n.bindingStartIndex;r++)if(Ln(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 Ad(e,t){const n=e[1].components;if(n)for(let r=0;r<n.length;r++){const o=n[r];if(Ft(o,e)[8]===t)return o}else if(Ft(20,e)[8]===t)return 20;return-1}function Od(e,t,n){const r=t[1].data[e];let o=r.directiveStart;return 0==o?St:(!n&&2&r.flags&&o++,t.slice(o,r.directiveEnd))}const Ga="ngOriginalError";function Qa(e){return e[Ga]}function ly(e,...t){e.error(...t)}class qo{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&&Qa(t);for(;n&&Qa(n);)n=Qa(n);return n||null}}const xd={name:"custom-elements"},Rd={name:"no-errors-schema"},cy=/^>|^->|<!--|-->|--!>|<!-$/g,uy=/(<|>)/;const kd=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ht))();function Nd(e){return e.ownerDocument.defaultView}function Ld(e){return e.ownerDocument}function Bd(e){return e.ownerDocument.body}function br(e){return e instanceof Function?e():e}var Cr=(()=>((Cr=Cr||{})[Cr.Important=1]="Important",Cr[Cr.DashCase=2]="DashCase",Cr))();let Za;function Ya(e,t){return Za(e,t)}function es(e){const t=e[3];return Gn(t)?t[3]:t}function Hd(e){return function $d(e){let t=Kn(e)?e:Ka(e);for(;t&&!(512&t[2]);)t=es(t);return t}(e)[8]}function Ja(e){return Ud(e[13])}function Xa(e){return Ud(e[4])}function Ud(e){for(;null!==e&&!Gn(e);)e=e[4];return e}function ho(e,t,n,r,o){if(null!=r){let a,f=!1;Gn(r)?a=r:Kn(r)&&(f=!0,r=r[0]);const y=Ln(r);0===e&&null!==n?null==o?Zd(t,n,y):Gr(t,n,y,o||null,!0):1===e&&null!==n?Gr(t,n,y,o||null,!0):2===e?nh(t,y,f):3===e&&t.destroyNode(y),null!=a&&function Py(e,t,n,r,o){const a=n[7];a!==Ln(n)&&ho(t,e,r,a,o);for(let y=10;y<n.length;y++){const w=n[y];ts(w[1],w,e,t,r,a)}}(t,e,a,n,o)}}function qa(e,t){return Rn(e)?e.createText(t):e.createTextNode(t)}function Wd(e,t,n){Rn(e)?e.setValue(t,n):t.textContent=n}function _y(e,t){return e.createComment(function Fd(e){return e.replace(cy,t=>t.replace(uy,"\u200b$1\u200b"))}(t))}function el(e,t,n){return Rn(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function zd(e,t){const n=e[9],r=n.indexOf(t),o=t[3];1024&t[2]&&(t[2]&=-1025,O(o,-1)),n.splice(r,1)}function tl(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const o=r[17];null!==o&&o!==e&&zd(o,r),t>0&&(e[n-1][4]=r[4]);const a=xs(e,10+t);!function yy(e,t){ts(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const f=a[19];null!==f&&f.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Kd(e,t){if(!(256&t[2])){const n=t[11];Rn(n)&&n.destroyNode&&ts(e,t,n,3,null,null),function Cy(e){let t=e[13];if(!t)return nl(e[1],e);for(;t;){let n=null;if(Kn(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Kn(t)&&nl(t[1],t),t=t[3];null===t&&(t=e),Kn(t)&&nl(t[1],t),n=t&&t[4]}t=n}}(t)}}function nl(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 Bo)){const a=n[r+1];if(Array.isArray(a))for(let f=0;f<a.length;f+=2){const y=o[a[f]],w=a[f+1];ti(4,y,w);try{w.call(y)}finally{ti(5,y,w)}}else{ti(4,o,a);try{a.call(o)}finally{ti(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 f=n[a+1],y="function"==typeof f?f(t):Ln(t[f]),w=r[o=n[a+2]],B=n[a+3];"boolean"==typeof B?y.removeEventListener(n[a],w,B):B>=0?r[o=B]():r[o=-B].unsubscribe(),a+=2}else{const f=r[o=n[a+1]];n[a].call(f)}if(null!==r){for(let a=o+1;a<r.length;a++)r[a]();t[7]=null}}(e,t),1===t[1].type&&Rn(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&Gn(t[3])){n!==t[3]&&zd(n,t);const r=t[19];null!==r&&r.detachView(e)}}}function Gd(e,t,n){return Qd(e,t.parent,n)}function Qd(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===ft.None||o===ft.Emulated)return null}return ne(r,n)}function Gr(e,t,n,r,o){Rn(e)?e.insertBefore(t,n,r,o):t.insertBefore(n,r,o)}function Zd(e,t,n){Rn(e)?e.appendChild(t,n):t.appendChild(n)}function Yd(e,t,n,r,o){null!==r?Gr(e,t,n,r,o):Zd(e,t,n)}function Vs(e,t){return Rn(e)?e.parentNode(t):t.parentNode}function Jd(e,t,n){return qd(e,t,n)}function Xd(e,t,n){return 40&e.type?ne(e,n):null}let il,qd=Xd;function eh(e,t){qd=e,il=t}function $s(e,t,n,r){const o=Gd(e,r,t),a=t[11],y=Jd(r.parent||t[6],r,t);if(null!=o)if(Array.isArray(n))for(let w=0;w<n.length;w++)Yd(a,o,n[w],y,!1);else Yd(a,o,n,y,!1);void 0!==il&&il(a,r,t,n,o)}function Hs(e,t){if(null!==t){const n=t.type;if(3&n)return ne(t,e);if(4&n)return rl(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return Hs(e,r);{const o=e[t.index];return Gn(o)?rl(-1,o):Ln(o)}}if(32&n)return Ya(t,e)()||Ln(e[t.index]);{const r=th(e,t);return null!==r?Array.isArray(r)?r[0]:Hs(es(e[16]),r):Hs(e,t.next)}}return null}function th(e,t){return null!==t?e[16][6].projection[t.projection]:null}function rl(e,t){const n=10+e+1;if(n<t.length){const r=t[n],o=r[1].firstChild;if(null!==o)return Hs(r,o)}return t[7]}function nh(e,t,n){const r=Vs(e,t);r&&function wy(e,t,n,r){Rn(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}function ol(e,t,n,r,o,a,f){for(;null!=n;){const y=r[n.index],w=n.type;if(f&&0===t&&(y&&vi(Ln(y),r),n.flags|=4),64!=(64&n.flags))if(8&w)ol(e,t,n.child,r,o,a,!1),ho(t,e,o,y,a);else if(32&w){const B=Ya(n,r);let K;for(;K=B();)ho(t,e,o,K,a);ho(t,e,o,y,a)}else 16&w?ih(e,t,r,n,o,a):ho(t,e,o,y,a);n=f?n.projectionNext:n.next}}function ts(e,t,n,r,o,a){ol(n,r,e.firstChild,t,o,a,!1)}function ih(e,t,n,r,o,a){const f=n[16],w=f[6].projection[r.projection];if(Array.isArray(w))for(let B=0;B<w.length;B++)ho(t,e,o,w[B],a);else ol(e,t,w,f[3],o,a,!0)}function rh(e,t,n){Rn(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function sl(e,t,n){Rn(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function oh(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 sh="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!==oh(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 ah(e){return 4===e.type&&e.value!==sh}function xy(e,t,n){return t===(4!==e.type||n?e.value:sh)}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(Bu(e[t]))return t;return e.length}(o);let f=!1;for(let y=0;y<t.length;y++){const w=t[y];if("number"!=typeof w){if(!f)if(4&r){if(r=2|1&r,""!==w&&!xy(e,w,n)||""===w&&1===t.length){if(cr(r))return!1;f=!0}}else{const B=8&r?w:t[++y];if(8&r&&null!==e.attrs){if(!Oy(e.attrs,B,n)){if(cr(r))return!1;f=!0}continue}const Ee=Fy(8&r?"class":w,o,ah(e),n);if(-1===Ee){if(cr(r))return!1;f=!0;continue}if(""!==B){let We;We=Ee>a?"":o[Ee+1].toLowerCase();const it=8&r?We:null;if(it&&-1!==oh(it,B,0)||2&r&&B!==We){if(cr(r))return!1;f=!0}}}}else{if(!f&&!cr(r)&&!cr(w))return!1;if(f&&cr(w))continue;f=!1,r=w|1&r}}return cr(r)||f}function cr(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 f=t[o];if(f===e)return o;if(3===f||6===f)a=!0;else{if(1===f||2===f){let y=t[++o];for(;"string"==typeof y;)y=t[++o];continue}if(4===f)break;if(0===f){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 lh(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 ch(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 f=e[n];if("string"==typeof f)if(2&r){const y=e[++n];o+="["+f+(y.length>0?'="'+y+'"':"")+"]"}else 8&r?o+="."+f:4&r&&(o+=" "+f);else""!==o&&!cr(f)&&(t+=ch(a,o),o=""),r=f,a=a||!cr(r);n++}return""!==o&&(t+=ch(a,o)),t}const mn={};function uh(e){dh(j(),Mt(),cn()+e,xt())}function dh(e,t,n,r){if(!r)if(3==(3&t[2])){const a=e.preOrderCheckHooks;null!==a&&Li(t,a,n)}else{const a=e.preOrderHooks;null!==a&&Xi(t,a,0,n)}jn(n)}function Us(e,t){return e<<17|t<<2}function ur(e){return e>>17&32767}function al(e){return 2|e}function Fr(e){return(131068&e)>>2}function ll(e,t){return-131069&e|t<<2}function cl(e){return 1|e}const _l=(()=>Promise.resolve(null))();function Eh(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 f=e.data[a];vt(o),f.contentQueries(2,t[a],a)}}}function ns(e,t,n,r,o,a,f,y,w,B){const K=t.blueprint.slice();return K[0]=o,K[2]=140|r,k(K),K[3]=K[15]=e,K[8]=n,K[10]=f||e&&e[10],K[11]=y||e&&e[11],K[12]=w||e&&e[12]||null,K[9]=B||e&&e[9]||null,K[6]=a,K[16]=2==t.type?e[16]:K,K}function fo(e,t,n,r,o){let a=e.data[t];if(null===a)a=yl(e,t,n,r,o),function ee(){return E.lFrame.inI18n}()&&(a.flags|=64);else if(64&a.type){a.type=n,a.value=r,a.attrs=o;const f=U();a.injectorIndex=null===f?-1:f.injectorIndex}return de(a,!0),a}function yl(e,t,n,r,o){const a=P(),f=Ne(),w=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,f?a:a&&a.parent,n,t,r,o);return null===e.firstChild&&(e.firstChild=w),null!==a&&(f?null==a.child&&null!==w.parent&&(a.child=w):null===a.next&&(a.next=w)),w}function po(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 is(e,t,n){Qt(t);try{const r=e.viewQuery;null!==r&&Sl(1,r,n);const o=e.template;null!==o&&Dh(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Eh(e,t),e.staticViewQueries&&Sl(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,Pt()}}function mo(e,t,n,r){const o=t[2];if(256==(256&o))return;Qt(t);const a=xt();try{k(t),Jt(e.bindingStartIndex),null!==n&&Dh(e,t,n,2,r);const f=3==(3&o);if(!a)if(f){const B=e.preOrderCheckHooks;null!==B&&Li(t,B,null)}else{const B=e.preOrderHooks;null!==B&&Xi(t,B,0,null),Ur(t,0)}if(function vv(e){for(let t=Ja(e);null!==t;t=Xa(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])&&O(a,1),o[2]|=1024}}}(t),function yv(e){for(let t=Ja(e);null!==t;t=Xa(t))for(let n=10;n<t.length;n++){const r=t[n],o=r[1];Mn(r)&&mo(o,r,o.template,r[8])}}(t),null!==e.contentQueries&&Eh(e,t),!a)if(f){const B=e.contentCheckHooks;null!==B&&Li(t,B)}else{const B=e.contentHooks;null!==B&&Xi(t,B,1),Ur(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)jn(~o);else{const a=o,f=n[++r],y=n[++r];Z(f,a),y(2,t[a])}}}finally{jn(-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 w=e.viewQuery;if(null!==w&&Sl(2,w,r),!a)if(f){const B=e.viewCheckHooks;null!==B&&Li(t,B)}else{const B=e.viewHooks;null!==B&&Xi(t,B,2),Ur(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),a||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,O(t[3],-1))}finally{Pt()}}function tv(e,t,n,r){const o=t[10],a=!xt(),f=Tn(t);try{a&&!f&&o.begin&&o.begin(),f&&is(e,t,r),mo(e,t,n,r)}finally{a&&!f&&o.end&&o.end()}}function Dh(e,t,n,r,o){const a=cn(),f=2&r;try{jn(-1),f&&t.length>20&&dh(e,t,20,xt()),ti(f?2:0,o),n(r,o)}finally{jn(a),ti(f?3:1,o)}}function Th(e,t,n){if(Ci(t)){const o=t.directiveEnd;for(let a=t.directiveStart;a<o;a++){const f=e.data[a];f.contentQueries&&f.contentQueries(1,n[a],a)}}}function vl(e,t,n){!qn()||(function uv(e,t,n,r){const o=n.directiveStart,a=n.directiveEnd;e.firstCreatePass||Vo(n,t),vi(r,t);const f=n.initialInputs;for(let y=o;y<a;y++){const w=e.data[y],B=Wn(w);B&&mv(t,n,w);const K=$o(t,e,y,n);vi(K,t),null!==f&&gv(0,y-o,K,w,0,f),B&&(Ft(n.index,t)[8]=K)}}(e,t,n,ne(n,t)),128==(128&n.flags)&&function dv(e,t,n){const r=n.directiveStart,o=n.directiveEnd,f=n.index,y=function te(){return E.lFrame.currentDirectiveIndex}();try{jn(f);for(let w=r;w<o;w++){const B=e.data[w],K=t[w];xe(w),(null!==B.hostBindings||0!==B.hostVars||null!==B.hostAttrs)&&xh(B,K)}}finally{jn(-1),xe(y)}}(e,t,n))}function bl(e,t,n=ne){const r=t.localNames;if(null!==r){let o=t.index+1;for(let a=0;a<r.length;a+=2){const f=r[a+1],y=-1===f?n(t,e):e[f];e[o++]=y}}}function Mh(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Ks(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Ks(e,t,n,r,o,a,f,y,w,B){const K=20+r,Ee=K+o,We=function nv(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:mn);return n}(K,Ee),it="function"==typeof B?B():B;return We[1]={type:e,blueprint:We,template:n,queries:null,viewQuery:y,declTNode:t,data:We.slice().fill(null,K),bindingStartIndex:K,expandoStartIndex:Ee,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 f?f():f,firstChild:null,schemas:w,consts:it,incompleteFirstPass:!1}}function Sh(e,t,n){if(Rn(e))return e.selectRootElement(t,n===ft.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}function Ih(e,t,n,r){const o=Bh(t);null===n?o.push(r):(o.push(n),e.firstCreatePass&&jh(e).push(r,o.length-1))}function Ph(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 ji(e,t,n,r,o,a,f,y){const w=ne(t,n);let K,B=t.inputs;!y&&null!=B&&(K=B[r])?(Hh(e,n,K,r,o),Mi(t)&&function sv(e,t){const n=Ft(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!=f?f(o,t.value||"",r):o,Rn(a)?a.setProperty(w,r,o):Ea(r)||(w.setProperty?w.setProperty(r,o):w[r]=o))}function Cl(e,t,n,r){let o=!1;if(qn()){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 f=r[a];lh(n,f.selectors,!1)&&(o||(o=[]),Ps(Vo(n,t),e,f.type),Wn(f)?(Rh(e,n),o.unshift(f)):o.push(f))}return o}(e,t,n),f=null===r?null:{"":-1};if(null!==a){o=!0,Fh(n,e.data.length,a.length);for(let K=0;K<a.length;K++){const Ee=a[K];Ee.providersResolver&&Ee.providersResolver(Ee)}let y=!1,w=!1,B=po(e,t,a.length,null);for(let K=0;K<a.length;K++){const Ee=a[K];n.mergedAttrs=ws(n.mergedAttrs,Ee.hostAttrs),kh(e,n,t,B,Ee),pv(B,Ee,f),null!==Ee.contentQueries&&(n.flags|=8),(null!==Ee.hostBindings||null!==Ee.hostAttrs||0!==Ee.hostVars)&&(n.flags|=128);const We=Ee.type.prototype;!y&&(We.ngOnChanges||We.ngOnInit||We.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),y=!0),!w&&(We.ngOnChanges||We.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),w=!0),B++}!function rv(e,t){const r=t.directiveEnd,o=e.data,a=t.attrs,f=[];let y=null,w=null;for(let B=t.directiveStart;B<r;B++){const K=o[B],Ee=K.inputs,We=null===a||ah(t)?null:_v(Ee,a);f.push(We),y=Ph(Ee,B,y),w=Ph(K.outputs,B,w)}null!==y&&(y.hasOwnProperty("class")&&(t.flags|=16),y.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=f,t.inputs=y,t.outputs=w}(e,n)}f&&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 V(-301,`Export of name '${t[o+1]}' not found!`);r.push(t[o],a)}}}(n,r,f)}return n.mergedAttrs=ws(n.mergedAttrs,n.attrs),o}function Oh(e,t,n,r,o,a){const f=a.hostBindings;if(f){let y=e.hostBindingOpCodes;null===y&&(y=e.hostBindingOpCodes=[]);const w=~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)!=w&&y.push(w),y.push(r,o,f)}}function xh(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Rh(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;Wn(t)&&(n[""]=e)}}function Fh(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function kh(e,t,n,r,o){e.data[r]=o;const a=o.factory||(o.factory=fi(o.type)),f=new Bo(a,Wn(o),null);e.blueprint[r]=f,n[r]=f,Oh(e,t,0,r,po(e,n,o.hostVars,mn),o)}function mv(e,t,n){const r=ne(t,e),o=Mh(n),a=e[10],f=Gs(e,ns(e,o,null,n.onPush?64:16,r,t,a,a.createRenderer(r,n),null,null));e[t.index]=f}function Er(e,t,n,r,o,a){const f=ne(e,t);El(t[11],f,a,e.value,n,r,o)}function El(e,t,n,r,o,a,f){if(null==a)Rn(e)?e.removeAttribute(t,o,n):t.removeAttribute(o);else{const y=null==f?$(a):f(a,r||"",o);Rn(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 f=a[t];if(null!==f){const y=r.setInput;for(let w=0;w<f.length;){const B=f[w++],K=f[w++],Ee=f[w++];null!==y?r.setInput(n,Ee,B,K):n[K]=Ee}}}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 Nh(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function bv(e,t){const n=Ft(t,e);if(Mn(n)){const r=n[1];80&n[2]?mo(r,n,r.template,n[8]):n[5]>0&&Dl(n)}}function Dl(e){for(let r=Ja(e);null!==r;r=Xa(r))for(let o=10;o<r.length;o++){const a=r[o];if(1024&a[2]){const f=a[1];mo(f,a,f.template,a[8])}else a[5]>0&&Dl(a)}const n=e[1].components;if(null!==n)for(let r=0;r<n.length;r++){const o=Ft(n[r],e);Mn(o)&&o[5]>0&&Dl(o)}}function Cv(e,t){const n=Ft(t,e),r=n[1];(function Ev(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(r,n),is(r,n,n[8])}function Gs(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Tl(e){for(;e;){e[2]|=64;const t=es(e);if(Sr(e)&&!t)return e;e=t}return null}function Ml(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],r=Ka(n),o=r[1];tv(o,r,o.template,n)}}function wl(e,t,n){const r=t[10];r.begin&&r.begin();try{mo(e,t,e.template,n)}catch(o){throw $h(t,o),o}finally{r.end&&r.end()}}function Lh(e){Ml(e[8])}function Sl(e,t,n){vt(0),t(e,n)}const wv=_l;function Bh(e){return e[7]||(e[7]=[])}function jh(e){return e.cleanup||(e.cleanup=[])}function Vh(e,t,n){return(null===e||Wn(e))&&(n=function R(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function $h(e,t){const n=e[9],r=n?n.get(qo,null):null;r&&r.handleError(t)}function Hh(e,t,n,r,o){for(let a=0;a<n.length;){const f=n[a++],y=n[a++],w=t[f],B=e.data[f];null!==B.setInput?B.setInput(w,o,r,y):w[y]=o}}function kr(e,t,n){const r=F(t,e);Wd(e[11],r,n)}function Qs(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,a=0;if(null!==t)for(let f=0;f<t.length;f++){const y=t[f];"number"==typeof y?a=y:1==a?o=I(o,y):2==a&&(r=I(r,y+": "+t[++f]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function Uh(e){const t=Sd(e);wl(t[1],t,e)}function Wh(e){!function Dv(e,t){if(0===e.flags&&e.clean==_l){let r;e.flags|=t,e.clean=new Promise(o=>r=o),e.scheduler(()=>{if(1&e.flags&&(e.flags&=-2,Ml(e)),2&e.flags){e.flags&=-3;const o=e.playerHandler;o&&o.flushPlayers()}e.clean=_l,r(null)})}}(Tl(Sd(e))[8],1)}const Zs=new Yn("INJECTOR",-1);class zh{get(t,n=Vr){if(n===Vr){const r=new Error(`NullInjectorError: No provider for ${D(t)}!`);throw r.name="NullInjectorError",r}return n}}const Il=new Yn("Set Injector scope."),rs={},Sv={};let Pl;function Kh(){return void 0===Pl&&(Pl=new zh),Pl}function Al(e,t=null,n=null,r){const o=Gh(e,t,n,r);return o._resolveInjectorDefTypes(),o}function Gh(e,t=null,n=null,r){return new Iv(e,n,t||Kh(),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&&yr(n,y=>this.processProvider(y,t,n)),yr([t],y=>this.processInjectorType(y,[],a)),this.records.set(Zs,go(void 0,this));const f=this.records.get(Il);this.scope=null!=f?f.value:null,this.source=o||("object"==typeof t?null:D(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=Vr,r=N.Default){this.assertNotDestroyed();const o=Ra(this),a=ue(void 0);try{if(!(r&N.SkipSelf)){let y=this.records.get(t);if(void 0===y){const w=function Nv(e){return"function"==typeof e||"object"==typeof e&&e instanceof Yn}(t)&&we(t);y=w&&this.injectableDefInScope(w)?go(Ol(t),rs):null,this.records.set(t,y)}if(null!=y)return this.hydrate(t,y)}return(r&N.Self?Kh():this.parent).get(t,n=r&N.Optional&&n===Vr?null:n)}catch(f){if("NullInjectorError"===f.name){if((f[Fs]=f[Fs]||[]).unshift(D(t)),o)throw f;return function D_(e,t,n,r){const o=e[Fs];throw t[nd]&&o.unshift(t[nd]),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=D(t);if(Array.isArray(t))o=t.map(D).join(" -> ");else if("object"==typeof t){let a=[];for(let f in t)if(t.hasOwnProperty(f)){let y=t[f];a.push(f+":"+("string"==typeof y?JSON.stringify(y):D(y)))}o=`{${a.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(__,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[Fs]=null,e}(f,t,"R3InjectorError",this.source)}throw f}finally{ue(a),Ra(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,o)=>t.push(D(o))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new V(205,"")}processInjectorType(t,n,r){if(!(t=T(t)))return!1;let o=yt(t);const a=null==o&&t.ngModule||void 0,f=void 0===a?t:a,y=-1!==r.indexOf(f);if(void 0!==a&&(o=yt(a)),null==o)return!1;if(null!=o.imports&&!y){let K;r.push(f);try{yr(o.imports,Ee=>{this.processInjectorType(Ee,n,r)&&(void 0===K&&(K=[]),K.push(Ee))})}finally{}if(void 0!==K)for(let Ee=0;Ee<K.length;Ee++){const{ngModule:We,providers:it}=K[Ee];yr(it,gt=>this.processProvider(gt,We,it||St))}}this.injectorDefTypes.add(f);const w=fi(f)||(()=>new f);this.records.set(f,go(w,rs));const B=o.providers;if(null!=B&&!y){const K=t;yr(B,Ee=>this.processProvider(Ee,K,B))}return void 0!==a&&void 0!==t.providers}processProvider(t,n,r){let o=_o(t=T(t))?t:T(t&&t.provide);const a=function Av(e,t,n){return Zh(e)?go(void 0,e.useValue):go(Qh(e),rs)}(t);if(_o(t)||!0!==t.multi)this.records.get(o);else{let f=this.records.get(o);f||(f=go(void 0,rs,!0),f.factory=()=>ka(f.multi),this.records.set(o,f)),o=t,f.multi.push(t)}this.records.set(o,a)}hydrate(t,n){return n.value===rs&&(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 Ol(e){const t=we(e),n=null!==t?t.factory:fi(e);if(null!==n)return n;if(e instanceof Yn)throw new V(204,"");if(e instanceof Function)return function Pv(e){const t=e.length;if(t>0)throw Wo(t,"?"),new V(204,"");const n=function _e(e){const t=e&&(e[Ct]||e[dt]);if(t){const n=function Ye(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 V(204,"")}function Qh(e,t,n){let r;if(_o(e)){const o=T(e);return fi(o)||Ol(o)}if(Zh(e))r=()=>T(e.useValue);else if(function xv(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...ka(e.deps||[]));else if(function Ov(e){return!(!e||!e.useExisting)}(e))r=()=>si(T(e.useExisting));else{const o=T(e&&(e.useClass||e.provide));if(!function Fv(e){return!!e.deps}(e))return fi(o)||Ol(o);r=()=>new o(...ka(e.deps))}return r}function go(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Zh(e){return null!==e&&"object"==typeof e&&v_ in e}function _o(e){return"function"==typeof e}let Vi=(()=>{class e{static create(n,r){var o;if(Array.isArray(n))return Al({name:""},r,n,"");{const a=null!==(o=n.name)&&void 0!==o?o:"";return Al({name:a},n.parent,n.providers,a)}}}return e.THROW_IF_NOT_FOUND=Vr,e.NULL=new zh,e.\u0275prov=Je({token:e,providedIn:"any",factory:()=>si(Zs)}),e.__NG_ELEMENT_ID__=-1,e})();function xl(e){Fl(e);const t=yi(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 Yh(e){Fl(e);const t=yi(e);return null===t?null:t.lView[8]}function Jh(e){const t=yi(e);if(null===t)return null;let r,n=t.lView;for(;2===n[1].type&&(r=es(n));)n=r;return 512&n[2]?null:n[8]}function Xh(e){return[...Hd(e).components]}function qh(e){const t=yi(e);return null===t?Vi.NULL:new eo(t.lView[1].data[t.nodeIndex],t.lView)}function ef(e){if(e instanceof Text)return[];const t=yi(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=Od(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?Ce.OnPush:Ce.Default};const r=ht(t);return r?{inputs:r.inputs,outputs:r.outputs}:null}function Rl(e){return yi(e).native}function tf(e){Fl(e);const t=yi(e);if(null===t)return[];const n=t.lView,o=n[7],a=n[1].cleanup,f=[];if(a&&o)for(let y=0;y<a.length;){const w=a[y++],B=a[y++];if("string"==typeof w){const K=w,Ee=Ln(n[B]),We=o[a[y++]],it=a[y++],gt="boolean"==typeof it||it>=0?"dom":"output",At="boolean"==typeof it&&it;e==Ee&&f.push({element:e,name:K,callback:We,useCapture:At,type:gt})}}return f.sort(Vv),f}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 Fl(e){if("undefined"!=typeof Element&&!(e instanceof Element))throw new Error("Expecting instance of DOM Element")}function Hv(e){Wh(e),Xh(e).forEach(t=>Uh(t))}let rf=!1;function Uv(){rf||(rf=!0,er("\u0275setProfiler",Zi),er("getDirectiveMetadata",Bv),er("getComponent",xl),er("getContext",Yh),er("getListeners",tf),er("getOwningComponent",Jh),er("getHostElement",Rl),er("getInjector",qh),er("getRootComponents",Xh),er("getDirectives",ef),er("applyChanges",Hv))}function er(e,t){if("undefined"==typeof COMPILED||!COMPILED){const n=Ht;if(n){let r=n.ng;r||(r=n.ng={}),r[e]=t}}}function Wv(e,t={}){const n=t.rendererFactory||sr,r=t.sanitizer||null,o=Ve(e);o.type!=e&&(o.type=e);const a=o.selectors[0][0],y=Sh(n.createRenderer(null,null),t.host||a,o.encapsulation),w=o.onPush?576:528,B=lf(t.scheduler,t.playerHandler),K=n.createRenderer(y,o),Ee=Ks(0,null,null,1,0,null,null,null,null,null),We=ns(null,Ee,B,w,null,null,n,K,null,t.injector||null);let it;Qt(We);try{n.begin&&n.begin(),it=af(sf(y,o,We,n,K,r),o,We,B,t.hostFeatures||null),is(Ee,We,null),mo(Ee,We,null,null)}finally{Pt(),n.end&&n.end()}return it}function sf(e,t,n,r,o,a){const f=n[1];n[20]=e;const w=fo(f,20,2,"#host",null),B=w.mergedAttrs=t.hostAttrs;null!==B&&(Qs(w,B,!0),null!==e&&(Ms(o,e,B),null!==w.classes&&sl(o,e,w.classes),null!==w.styles&&rh(o,e,w.styles)));const K=r.createRenderer(e,t),Ee=ns(n,Mh(t),null,t.onPush?64:16,n[20],w,r,K,a||null,null);return f.firstCreatePass&&(Ps(Vo(w,n),f,t.type),Rh(f,w),Fh(w,n.length,1)),Gs(n,Ee),n[20]=Ee}function af(e,t,n,r,o){const a=n[1],f=function lv(e,t,n){const r=p();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),kh(e,r,t,po(e,t,1,null),n));const o=$o(t,e,r.directiveStart,r);vi(o,t);const a=ne(r,t);return a&&vi(a,t),o}(a,n,t);if(r.components.push(f),e[8]=f,o&&o.forEach(w=>w(f,t)),t.contentQueries){const w=p();t.contentQueries(1,f,w.directiveStart)}const y=p();return!a.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(jn(y.index),Oh(n[1],y,0,y.directiveStart,y.directiveEnd,t),xh(t,f)),f}function lf(e,t){return{components:[],scheduler:e||kd,clean:wv,playerHandler:t||null,flags:0}}function cf(e,t){Ji(Ka(e)[1],p())}function zv(e){return Hd(e).clean}function uf(e){return Object.getPrototypeOf(e.prototype).constructor}function kl(e){let t=uf(e.type),n=!0;const r=[e];for(;t;){let o;if(Wn(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new V(903,"");o=t.\u0275dir}if(o){if(n){r.push(o);const f=e;f.inputs=Nl(e.inputs),f.declaredInputs=Nl(e.declaredInputs),f.outputs=Nl(e.outputs);const y=o.hostBindings;y&&Zv(e,y);const w=o.viewQuery,B=o.contentQueries;if(w&&Gv(e,w),B&&Qv(e,B),C(e.inputs,o.inputs),C(e.declaredInputs,o.declaredInputs),C(e.outputs,o.outputs),Wn(o)&&o.data.animation){const K=e.data;K.animation=(K.animation||[]).concat(o.data.animation)}}const a=o.features;if(a)for(let f=0;f<a.length;f++){const y=a[f];y&&y.ngInherit&&y(e),y===kl&&(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=ws(o.hostAttrs,n=ws(n,o.hostAttrs))}}(r)}function Nl(e){return e===zt?{}:e===St?[]: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 df(e){let n,t=uf(e.type);n=Wn(e)?t.\u0275cmp:t.\u0275dir;const r=e;for(const o of Yv)r[o]=n[o];if(Wn(n))for(const o of Jv)r[o]=n[o]}let Ys=null;function yo(){if(!Ys){const e=Ht.Symbol;if(e&&e.iterator)Ys=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&&(Ys=r)}}}return Ys}function hf(e,t){const n=os(e),r=os(t);return n&&r?function Xv(e,t,n){const r=e[yo()](),o=t[yo()]();for(;;){const a=r.next(),f=o.next();if(a.done&&f.done)return!0;if(a.done||f.done||!n(a.value,f.value))return!1}}(e,t,hf):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||Object.is(e,t)}function os(e){return!!Ll(e)&&(Array.isArray(e)||!(e instanceof Map)&&yo()in e)}function Ll(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Dr(e,t,n){return e[t]=n}function ss(e,t){return e[t]}function bi(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Qr(e,t,n,r){const o=bi(e,t,n);return bi(e,t+1,r)||o}function Js(e,t,n,r,o){const a=Qr(e,t,n,r);return bi(e,t+2,o)||a}function tr(e,t,n,r,o,a){const f=Qr(e,t,n,r);return Qr(e,t+2,o,a)||f}function Bl(e,t,n,r){const o=Mt();return bi(o,en(),t)&&(j(),Er(An(),o,e,t,n,r)),Bl}function vo(e,t){let n=!1,r=ln();for(let a=1;a<t.length;a+=2)n=bi(e,r++,t[a])||n;if(Jt(r),!n)return mn;let o=t[0];for(let a=1;a<t.length;a+=2)o+=$(t[a])+t[a+1];return o}function bo(e,t,n,r){return bi(e,en(),n)?t+$(n)+r:mn}function Co(e,t,n,r,o,a){const y=Qr(e,ln(),n,o);return pn(2),y?t+$(n)+r+$(o)+a:mn}function Eo(e,t,n,r,o,a,f,y){const B=Js(e,ln(),n,o,f);return pn(3),B?t+$(n)+r+$(o)+a+$(f)+y:mn}function Do(e,t,n,r,o,a,f,y,w,B){const Ee=tr(e,ln(),n,o,f,w);return pn(4),Ee?t+$(n)+r+$(o)+a+$(f)+y+$(w)+B:mn}function To(e,t,n,r,o,a,f,y,w,B,K,Ee){const We=ln();let it=tr(e,We,n,o,f,w);return it=bi(e,We+4,K)||it,pn(5),it?t+$(n)+r+$(o)+a+$(f)+y+$(w)+B+$(K)+Ee:mn}function Mo(e,t,n,r,o,a,f,y,w,B,K,Ee,We,it){const gt=ln();let At=tr(e,gt,n,o,f,w);return At=Qr(e,gt+4,K,We)||At,pn(6),At?t+$(n)+r+$(o)+a+$(f)+y+$(w)+B+$(K)+Ee+$(We)+it:mn}function wo(e,t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt,At){const kt=ln();let Gt=tr(e,kt,n,o,f,w);return Gt=Js(e,kt+4,K,We,gt)||Gt,pn(7),Gt?t+$(n)+r+$(o)+a+$(f)+y+$(w)+B+$(K)+Ee+$(We)+it+$(gt)+At:mn}function So(e,t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt,At,kt,Gt){const Et=ln();let tn=tr(e,Et,n,o,f,w);return tn=tr(e,Et+4,K,We,gt,kt)||tn,pn(8),tn?t+$(n)+r+$(o)+a+$(f)+y+$(w)+B+$(K)+Ee+$(We)+it+$(gt)+At+$(kt)+Gt:mn}function jl(e,t,n,r,o,a){const f=Mt(),y=bo(f,t,n,r);return y!==mn&&Er(An(),f,e,y,o,a),jl}function Vl(e,t,n,r,o,a,f,y){const w=Mt(),B=Co(w,t,n,r,o,a);return B!==mn&&Er(An(),w,e,B,f,y),Vl}function $l(e,t,n,r,o,a,f,y,w,B){const K=Mt(),Ee=Eo(K,t,n,r,o,a,f,y);return Ee!==mn&&Er(An(),K,e,Ee,w,B),$l}function Hl(e,t,n,r,o,a,f,y,w,B,K,Ee){const We=Mt(),it=Do(We,t,n,r,o,a,f,y,w,B);return it!==mn&&Er(An(),We,e,it,K,Ee),Hl}function Ul(e,t,n,r,o,a,f,y,w,B,K,Ee,We,it){const gt=Mt(),At=To(gt,t,n,r,o,a,f,y,w,B,K,Ee);return At!==mn&&Er(An(),gt,e,At,We,it),Ul}function Wl(e,t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt,At){const kt=Mt(),Gt=Mo(kt,t,n,r,o,a,f,y,w,B,K,Ee,We,it);return Gt!==mn&&Er(An(),kt,e,Gt,gt,At),Wl}function zl(e,t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt,At,kt,Gt){const Et=Mt(),tn=wo(Et,t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt,At);return tn!==mn&&Er(An(),Et,e,tn,kt,Gt),zl}function Kl(e,t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt,At,kt,Gt,Et,tn){const Cn=Mt(),Fn=So(Cn,t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt,At,kt,Gt);return Fn!==mn&&Er(An(),Cn,e,Fn,Et,tn),Kl}function Gl(e,t,n,r){const o=Mt(),a=vo(o,t);return a!==mn&&Er(An(),o,e,a,n,r),Gl}function ff(e,t,n,r,o,a,f,y){const w=Mt(),B=j(),K=e+20,Ee=B.firstCreatePass?function eb(e,t,n,r,o,a,f,y,w){const B=t.consts,K=fo(t,e,4,f||null,fn(B,y));Cl(t,n,K,fn(B,w)),Ji(t,K);const Ee=K.tViews=Ks(2,K,r,o,a,t.directiveRegistry,t.pipeRegistry,null,t.schemas,B);return null!==t.queries&&(t.queries.template(t,K),Ee.queries=t.queries.embeddedTView(K)),K}(K,B,w,t,n,r,o,a,f):B.data[K];de(Ee,!1);const We=w[11].createComment("");$s(B,w,We,Ee),vi(We,w),Gs(w,w[K]=Nh(We,w,We,Ee)),hi(Ee)&&vl(B,w,Ee),null!=f&&bl(w,Ee,y)}function pf(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function mf(e){return bt(function mt(){return E.lFrame.contextLView}(),20+e)}const gf={\u0275\u0275defineInjectable:Je,\u0275\u0275defineInjector:me,\u0275\u0275inject:si,\u0275\u0275invalidFactoryDep:Fa,resolveForwardRef:T};const nb=_({provide:String,useValue:_});function _f(e){return void 0!==e.useClass}function yf(e){return void 0!==e.useFactory}const sb=ro("Injectable",void 0,void 0,void 0,(e,t)=>function tb(e,t){let n=null,r=null;e.hasOwnProperty(Ct)||Object.defineProperty(e,Ct,{get:()=>(null===n&&(n=ri().compileInjectable(gf,`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(_f(n)||yf(n))&&void 0!==n.deps&&(r.deps=od(n.deps)),_f(n)?r.useClass=n.useClass:function ib(e){return nb in e}(n)?r.useValue=n.useValue:yf(n)?r.useFactory=n.useFactory:function rb(e){return void 0!==e.useExisting}(n)&&(r.useExisting=n.useExisting),r}(e,t))),n)}),e.hasOwnProperty(ce)||Object.defineProperty(e,ce,{get:()=>{if(null===r){const o=ri();r=o.compileFactory(gf,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:Ns(e),target:o.FactoryTarget.Injectable})}return r},configurable:!0})}(e,t));function Ql(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=>D(r.token)).join(" -> ")+")":""}function Zl(e,t,n,r){const o=[t],a=n(o),f=r?function sy(e,t){const n=`${e} caused by: ${t instanceof Error?t.message:t}`,r=Error(n);return r[Ga]=t,r}(a,r):Error(a);return f.addKey=lb,f.keys=o,f.injectors=[e],f.constructResolvingMessage=n,f[Ga]=r,f}function lb(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function vf(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(D).join(" "):"?")}return Error("Cannot resolve all parameters for '"+D(e)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+D(e)+"' is decorated with Injectable.")}function pb(e,t){return Error(`Cannot mix multi providers and regular providers, got: ${e} ${t}`)}class Nr{constructor(t,n){if(this.token=t,this.id=n,!t)throw new Error("Token must be defined!");this.displayName=D(this.token)}static get(t){return bf.get(T(t))}static get numberOfKeys(){return bf.numberOfKeys}}class mb{constructor(){this._allKeys=new Map}get(t){if(t instanceof Nr)return t;if(this._allKeys.has(t))return this._allKeys.get(t);const n=new Nr(t,Nr.numberOfKeys);return this._allKeys.set(t,n),n}get numberOfKeys(){return this._allKeys.size}}const bf=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 Cf=new gb(new Aa);class Xs{constructor(t,n,r){this.key=t,this.optional=n,this.visibility=r}static fromKey(t){return new Xs(t,!1,null)}}const _b=[];class Ef{constructor(t,n,r){this.key=t,this.resolvedFactories=n,this.multiProvider=r,this.resolvedFactory=this.resolvedFactories[0]}}class Df{constructor(t,n){this.factory=t,this.dependencies=n}}function yb(e){let t,n;if(e.useClass){const r=T(e.useClass);t=Cf.factory(r),n=Mf(r)}else e.useExisting?(t=r=>r,n=[Xs.fromKey(Nr.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=function Eb(e,t){if(t){const n=t.map(r=>[r]);return t.map(r=>wf(e,r,n))}return Mf(e)}(e.useFactory,e.deps)):(t=()=>e.useValue,n=_b);return new Df(t,n)}function vb(e){return new Ef(Nr.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 Ef(r.key,r.resolvedFactories.slice(),r.multiProvider):r,t.set(r.key.id,a)}}return t}(Tf(e,[]).map(vb),new Map);return Array.from(r.values())}function Tf(e,t){return e.forEach(n=>{if(n instanceof Os)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);Tf(n,t)}}),t}function Mf(e){const t=Cf.parameters(e);if(!t)return[];if(t.some(n=>null==n))throw vf(e,t);return t.map(n=>wf(e,n,t))}function wf(e,t,n){let r=null,o=!1;if(!Array.isArray(t))return Yl(t instanceof Go?t.token:t,o,null);let a=null;for(let f=0;f<t.length;++f){const y=t[f];y instanceof Os?r=y:y instanceof Go?r=y.token:y instanceof Wr?o=!0:y instanceof ks||y instanceof zr?a=y:y instanceof Yn&&(r=y)}if(r=T(r),null!=r)return Yl(r,o,a);throw vf(e,n)}function Yl(e,t,n){return new Xs(Nr.get(e),t,n)}const as={};class Io{static resolve(t){return bb(t)}static resolveAndCreate(t,n){const r=Io.resolve(t);return Io.fromResolvedProviders(r,n)}static fromResolvedProviders(t,n){return new Db(t,n)}}let Db=(()=>{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]=as}get(n,r=Vr){return this._getByKey(Nr.get(n),null,r)}resolveAndCreateChild(n){const r=Io.resolve(n);return this.createChildFromResolved(r)}createChildFromResolved(n){const r=new e(n);return r.parent=this,r}resolveAndInstantiate(n){return this.instantiateResolved(Io.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 Zl(e,t,function(n){return`Cannot instantiate cyclic dependency!${Ql(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,f;try{a=r.dependencies.map(y=>this._getByReflectiveDependency(y))}catch(y){throw y.addKey&&y.addKey(this,n.key),y}try{f=o(...a)}catch(y){throw function db(e,t,n,r){return Zl(e,r,function(o){const a=D(o[0].token);return`${t.message}: Error during instantiation of ${a}!${Ql(o)}.`},t)}(this,y,0,n.key)}return f}_getByReflectiveDependency(n){return this._getByKey(n.key,n.visibility,n.optional?null:Vr)}_getByKey(n,r,o){return n===e.INJECTOR_KEY?this:r instanceof ks?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]===as&&(this.objs[r]=this._new(this._providers[r])),this.objs[r];return as}_throwOrNull(n,r){if(r!==Vr)return r;throw function cb(e,t){return Zl(e,t,function(n){return`No provider for ${D(n[0].token)}!${Ql(n)}`})}(this,n)}_getByKeySelf(n,r){const o=this._getObjByKeyId(n.id);return o!==as?o:this._throwOrNull(n,r)}_getByKeyDefault(n,r,o){let a;for(a=o instanceof zr?this.parent:this;a instanceof e;){const f=a,y=f._getObjByKeyId(n.id);if(y!==as)return y;a=f.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=Nr.get(Vi),e})();function ls(e,t=N.Default){const n=Mt();return null===n?si(e,t):zu(p(),n,T(e),t)}function Sf(){throw new Error("invalid")}function Jl(e,t,n){const r=Mt();return bi(r,en(),t)&&ji(j(),An(),r,e,t,r[11],n,!1),Jl}function Xl(e,t,n,r,o){const f=o?"class":"style";Hh(e,n,t.inputs[f],f,r)}function ql(e,t,n,r){const o=Mt(),a=j(),f=20+e,y=o[11],w=o[f]=el(y,t,function ba(){return E.lFrame.currentNamespace}()),B=a.firstCreatePass?function Mb(e,t,n,r,o,a,f){const y=t.consts,B=fo(t,e,2,o,fn(y,a));return Cl(t,n,B,fn(y,f)),null!==B.attrs&&Qs(B,B.attrs,!1),null!==B.mergedAttrs&&Qs(B,B.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,B),B}(f,a,o,0,t,n,r):a.data[f];de(B,!0);const K=B.mergedAttrs;null!==K&&Ms(y,w,K);const Ee=B.classes;null!==Ee&&sl(y,w,Ee);const We=B.styles;null!==We&&rh(y,w,We),64!=(64&B.flags)&&$s(a,o,w,B),0===function lt(){return E.lFrame.elementDepthCount}()&&vi(w,o),function Vt(){E.lFrame.elementDepthCount++}(),hi(B)&&(vl(a,o,B),Th(a,B,o)),null!==r&&bl(o,B)}function ec(){let e=p();Ne()?He():(e=e.parent,de(e,!1));const t=e;!function Pn(){E.lFrame.elementDepthCount--}();const n=j();n.firstCreatePass&&(Ji(n,e),Ci(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Qg(e){return 0!=(16&e.flags)}(t)&&Xl(n,t,Mt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Zg(e){return 0!=(32&e.flags)}(t)&&Xl(n,t,Mt(),t.stylesWithoutHost,!1)}function If(e,t,n,r){ql(e,t,n,r),ec()}function tc(e,t,n){const r=Mt(),o=j(),a=e+20,f=o.firstCreatePass?function wb(e,t,n,r,o){const a=t.consts,f=fn(a,r),y=fo(t,e,8,"ng-container",f);return null!==f&&Qs(y,f,!0),Cl(t,n,y,fn(a,o)),null!==t.queries&&t.queries.elementStart(t,y),y}(a,o,r,t,n):o.data[a];de(f,!0);const y=r[a]=r[11].createComment("");$s(o,r,y,f),vi(y,r),hi(f)&&(vl(o,r,f),Th(o,f,r)),null!=n&&bl(r,f)}function nc(){let e=p();const t=j();Ne()?He():(e=e.parent,de(e,!1)),t.firstCreatePass&&(Ji(t,e),Ci(e)&&t.queries.elementEnd(e))}function Pf(e,t,n){tc(e,t,n),nc()}function Af(){return Mt()}function ic(e){return!!e&&"function"==typeof e.then}function Of(e){return!!e&&"function"==typeof e.subscribe}const xf=Of;function rc(e,t,n,r){const o=Mt(),a=j(),f=p();return Rf(a,o,o[11],f,e,t,!!n,r),rc}function oc(e,t){const n=p(),r=Mt(),o=j();return Rf(o,r,Vh(Be(o.data),n,r),n,e,t,!1),oc}function Rf(e,t,n,r,o,a,f,y){const w=hi(r),K=e.firstCreatePass&&jh(e),Ee=t[8],We=Bh(t);let it=!0;if(3&r.type||y){const kt=ne(r,t),Gt=y?y(kt):kt,Et=We.length,tn=y?Cn=>y(Ln(Cn[r.index])):r.index;if(Rn(n)){let Cn=null;if(!y&&w&&(Cn=function Sb(e,t,n,r){const o=e.cleanup;if(null!=o)for(let a=0;a<o.length-1;a+=2){const f=o[a];if(f===n&&o[a+1]===r){const y=t[7],w=o[a+2];return y.length>w?y[w]:null}"string"==typeof f&&(a+=2)}return null}(e,t,o,r.index)),null!==Cn)(Cn.__ngLastListenerFn__||Cn).__ngNextListenerFn__=a,Cn.__ngLastListenerFn__=a,it=!1;else{a=sc(r,t,Ee,a,!1);const Fn=n.listen(Gt,o,a);We.push(a,Fn),K&&K.push(o,tn,Et,Et+1)}}else a=sc(r,t,Ee,a,!0),Gt.addEventListener(o,a,f),We.push(a),K&&K.push(o,tn,Et,f)}else a=sc(r,t,Ee,a,!1);const gt=r.outputs;let At;if(it&&null!==gt&&(At=gt[o])){const kt=At.length;if(kt)for(let Gt=0;Gt<kt;Gt+=2){const Hi=t[At[Gt]][At[Gt+1]].subscribe(a),Jr=We.length;We.push(a,Hi),K&&K.push(o,r.index,Jr,-(Jr+1))}}}function Ff(e,t,n,r){try{return ti(6,t,n),!1!==n(r)}catch(o){return $h(e,o),!1}finally{ti(7,t,n)}}function sc(e,t,n,r,o){return function a(f){if(f===Function)return r;const y=2&e.flags?Ft(e.index,t):t;0==(32&t[2])&&Tl(y);let w=Ff(t,n,r,f),B=a.__ngNextListenerFn__;for(;B;)w=Ff(t,n,B,f)&&w,B=B.__ngNextListenerFn__;return o&&!1===w&&(f.preventDefault(),f.returnValue=!1),w}}function kf(e=1){return function Rt(e){return(E.lFrame.contextLView=function Xt(e,t){for(;e>0;)t=t[15],e--;return t}(e,E.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?lh(e,a,!0):By(r,a))return o}else n=o}return n}function Nf(e){const t=Mt()[16][6];if(!t.projection){const r=t.projection=Wo(e?e.length:1,null),o=r.slice();let a=t.child;for(;null!==a;){const f=e?Ib(a,e):0;null!==f&&(o[f]?o[f].projectionNext=a:r[f]=a,o[f]=a),a=a.next}}}function Lf(e,t=0,n){const r=Mt(),o=j(),a=fo(o,20+e,16,null,n||null);null===a.projection&&(a.projection=t),He(),64!=(64&a.flags)&&function Iy(e,t,n){ih(t[11],0,t,n,Gd(e,n,t),Jd(n.parent||t[6],n,t))}(o,r,a)}function ac(e,t,n){return qs(e,"",t,"",n),ac}function qs(e,t,n,r,o){const a=Mt(),f=bo(a,t,n,r);return f!==mn&&ji(j(),An(),a,e,f,a[11],o,!1),qs}function lc(e,t,n,r,o,a,f){const y=Mt(),w=Co(y,t,n,r,o,a);return w!==mn&&ji(j(),An(),y,e,w,y[11],f,!1),lc}function cc(e,t,n,r,o,a,f,y,w){const B=Mt(),K=Eo(B,t,n,r,o,a,f,y);return K!==mn&&ji(j(),An(),B,e,K,B[11],w,!1),cc}function uc(e,t,n,r,o,a,f,y,w,B,K){const Ee=Mt(),We=Do(Ee,t,n,r,o,a,f,y,w,B);return We!==mn&&ji(j(),An(),Ee,e,We,Ee[11],K,!1),uc}function dc(e,t,n,r,o,a,f,y,w,B,K,Ee,We){const it=Mt(),gt=To(it,t,n,r,o,a,f,y,w,B,K,Ee);return gt!==mn&&ji(j(),An(),it,e,gt,it[11],We,!1),dc}function hc(e,t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt){const At=Mt(),kt=Mo(At,t,n,r,o,a,f,y,w,B,K,Ee,We,it);return kt!==mn&&ji(j(),An(),At,e,kt,At[11],gt,!1),hc}function fc(e,t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt,At,kt){const Gt=Mt(),Et=wo(Gt,t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt,At);return Et!==mn&&ji(j(),An(),Gt,e,Et,Gt[11],kt,!1),fc}function pc(e,t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt,At,kt,Gt,Et){const tn=Mt(),Cn=So(tn,t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt,At,kt,Gt);return Cn!==mn&&ji(j(),An(),tn,e,Cn,tn[11],Et,!1),pc}function mc(e,t,n){const r=Mt(),o=vo(r,t);return o!==mn&&ji(j(),An(),r,e,o,r[11],n,!1),mc}function Bf(e,t,n,r,o){const a=e[n+1],f=null===t;let y=r?ur(a):Fr(a),w=!1;for(;0!==y&&(!1===w||f);){const K=e[y+1];Ob(e[y],t)&&(w=!0,e[y+1]=r?cl(K):al(K)),y=r?ur(K):Fr(K)}w&&(e[n+1]=r?al(a):cl(a))}function Ob(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&so(e,t)>=0}const oi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function jf(e){return e.substring(oi.key,oi.keyEnd)}function xb(e){return e.substring(oi.value,oi.valueEnd)}function Vf(e,t){const n=oi.textEnd;return n===t?-1:(t=oi.keyEnd=function kb(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,oi.key=t,n),Po(e,t,n))}function $f(e,t){const n=oi.textEnd;let r=oi.key=Po(e,t,n);return n===r?-1:(r=oi.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=Uf(e,r,n),r=oi.value=Po(e,r,n),r=oi.valueEnd=function Lb(e,t,n){let r=-1,o=-1,a=-1,f=t,y=f;for(;f<n;){const w=e.charCodeAt(f++);if(59===w)return y;34===w||39===w?y=f=Wf(e,w,f,n):t===f-4&&85===a&&82===o&&76===r&&40===w?y=f=Wf(e,41,f,n):w>32&&(y=f),a=o,o=r,r=-33&w}return y}(e,r,n),Uf(e,r,n))}function Hf(e){oi.key=0,oi.keyEnd=0,oi.value=0,oi.valueEnd=0,oi.textEnd=e.length}function Po(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Uf(e,t,n,r){return(t=Po(e,t,n))<n&&t++,t}function Wf(e,t,n,r){let o=-1,a=n;for(;a<r;){const f=e.charCodeAt(a++);if(f==t&&92!==o)return a;o=92==f&&92===o?0:f}throw new Error}function gc(e,t,n){return hr(e,t,n,!1),gc}function _c(e,t){return hr(e,t,null,!0),_c}function dr(e){fr(Qf,Bb,e,!1)}function Bb(e,t){for(let n=function Fb(e){return Hf(e),$f(e,Po(e,0,oi.textEnd))}(t);n>=0;n=$f(t,n))Qf(e,jf(t),xb(t))}function zf(e){fr(Bi,Tr,e,!0)}function Tr(e,t){for(let n=function Rb(e){return Hf(e),Vf(e,Po(e,0,oi.textEnd))}(t);n>=0;n=Vf(t,n))Bi(e,jf(t),!0)}function hr(e,t,n,r){const o=Mt(),a=j(),f=pn(2);a.firstUpdatePass&&Gf(a,e,f,r),t!==mn&&bi(o,f,t)&&Zf(a,a.data[cn()],o,o[11],e,o[f+1]=function zb(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=D(Rr(e)))),e}(t,n),r,f)}function fr(e,t,n,r){const o=j(),a=pn(2);o.firstUpdatePass&&Gf(o,null,a,r);const f=Mt();if(n!==mn&&bi(f,a,n)){const y=o.data[cn()];if(Jf(y,r)&&!Kf(o,a)){let w=r?y.classesWithoutHost:y.stylesWithoutHost;null!==w&&(n=I(w,n||"")),Xl(o,y,f,n,r)}else!function Wb(e,t,n,r,o,a,f,y){o===mn&&(o=St);let w=0,B=0,K=0<o.length?o[0]:null,Ee=0<a.length?a[0]:null;for(;null!==K||null!==Ee;){const We=w<o.length?o[w+1]:void 0,it=B<a.length?a[B+1]:void 0;let At,gt=null;K===Ee?(w+=2,B+=2,We!==it&&(gt=Ee,At=it)):null===Ee||null!==K&&K<Ee?(w+=2,gt=K):(B+=2,gt=Ee,At=it),null!==gt&&Zf(e,t,n,r,gt,At,f,y),K=w<o.length?o[w]:null,Ee=B<a.length?a[B]:null}}(o,y,f,f[11],f[a+1],f[a+1]=function Ub(e,t,n){if(null==n||""===n)return St;const r=[],o=Rr(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 Kf(e,t){return t>=e.expandoStartIndex}function Gf(e,t,n,r){const o=e.data;if(null===o[n+1]){const a=o[cn()],f=Kf(e,n);Jf(a,r)&&null===t&&!f&&(t=!1),t=function jb(e,t,n,r){const o=Be(e);let a=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=cs(n=yc(null,e,t,n,r),t.attrs,r),a=null);else{const f=t.directiveStylingLast;if(-1===f||e[f]!==o)if(n=yc(o,e,t,n,r),null===a){let w=function Vb(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Fr(r))return e[ur(r)]}(e,t,r);void 0!==w&&Array.isArray(w)&&(w=yc(null,e,t,w[1],r),w=cs(w,t.attrs,r),function $b(e,t,n,r){e[ur(n?t.classBindings:t.styleBindings)]=r}(e,t,r,w))}else a=function Hb(e,t,n){let r;const o=t.directiveEnd;for(let a=1+t.directiveStylingLast;a<o;a++)r=cs(r,e[a].hostAttrs,n);return cs(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 f=a?t.classBindings:t.styleBindings,y=ur(f),w=Fr(f);e[r]=n;let K,B=!1;if(Array.isArray(n)){const Ee=n;K=Ee[1],(null===K||so(Ee,K)>0)&&(B=!0)}else K=n;if(o)if(0!==w){const We=ur(e[y+1]);e[r+1]=Us(We,y),0!==We&&(e[We+1]=ll(e[We+1],r)),e[y+1]=function Hy(e,t){return 131071&e|t<<17}(e[y+1],r)}else e[r+1]=Us(y,0),0!==y&&(e[y+1]=ll(e[y+1],r)),y=r;else e[r+1]=Us(w,0),0===y?y=r:e[w+1]=ll(e[w+1],r),w=r;B&&(e[r+1]=al(e[r+1])),Bf(e,K,r,!0),Bf(e,K,r,!1),function Ab(e,t,n,r,o){const a=o?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&so(a,t)>=0&&(n[r+1]=cl(n[r+1]))}(t,K,e,r,a),f=Us(y,w),a?t.classBindings=f:t.styleBindings=f}(o,a,t,n,f,r)}}function yc(e,t,n,r,o){let a=null;const f=n.directiveEnd;let y=n.directiveStylingLast;for(-1===y?y=n.directiveStart:y++;y<f&&(a=t[y],r=cs(r,a.hostAttrs,o),a!==e);)y++;return null!==e&&(n.directiveStylingLast=y),r}function cs(e,t,n){const r=n?1:2;let o=-1;if(null!==t)for(let a=0;a<t.length;a++){const f=t[a];"number"==typeof f?o=f:o===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Bi(e,f,!!n||t[++a]))}return void 0===e?null:e}function Qf(e,t,n){Bi(e,t,Rr(n))}function Zf(e,t,n,r,o,a,f,y){if(!(3&t.type))return;const w=e.data,B=w[y+1];ea(function ph(e){return 1==(1&e)}(B)?Yf(w,t,n,o,Fr(B),f):void 0)||(ea(a)||function fh(e){return 2==(2&e)}(B)&&(a=Yf(w,null,n,o,y,f)),function Ay(e,t,n,r,o){const a=Rn(e);if(t)o?a?e.addClass(n,r):n.classList.add(r):a?e.removeClass(n,r):n.classList.remove(r);else{let f=-1===r.indexOf("-")?void 0:Cr.DashCase;if(null==o)a?e.removeStyle(n,r,f):n.style.removeProperty(r);else{const y="string"==typeof o&&o.endsWith("!important");y&&(o=o.slice(0,-10),f|=Cr.Important),a?e.setStyle(n,r,o,f):n.style.setProperty(r,o,y?"important":"")}}}(r,f,F(cn(),n),o,a))}function Yf(e,t,n,r,o,a){const f=null===t;let y;for(;o>0;){const w=e[o],B=Array.isArray(w),K=B?w[1]:w,Ee=null===K;let We=n[o+1];We===mn&&(We=Ee?St:void 0);let it=Ee?Pa(We,r):K===r?We:void 0;if(B&&!ea(it)&&(it=Pa(w,r)),ea(it)&&(y=it,f))return y;const gt=e[o+1];o=f?ur(gt):Fr(gt)}if(null!==t){let w=a?t.residualClasses:t.residualStyles;null!=w&&(y=Pa(w,r))}return y}function ea(e){return void 0!==e}function Jf(e,t){return 0!=(e.flags&(t?16:32))}function Xf(e,t=""){const n=Mt(),r=j(),o=e+20,a=r.firstCreatePass?fo(r,o,1,t,null):r.data[o],f=n[o]=qa(n[11],t);$s(r,n,f,a),de(a,!1)}function vc(e){return ta("",e,""),vc}function ta(e,t,n){const r=Mt(),o=bo(r,e,t,n);return o!==mn&&kr(r,cn(),o),ta}function bc(e,t,n,r,o){const a=Mt(),f=Co(a,e,t,n,r,o);return f!==mn&&kr(a,cn(),f),bc}function Cc(e,t,n,r,o,a,f){const y=Mt(),w=Eo(y,e,t,n,r,o,a,f);return w!==mn&&kr(y,cn(),w),Cc}function Ec(e,t,n,r,o,a,f,y,w){const B=Mt(),K=Do(B,e,t,n,r,o,a,f,y,w);return K!==mn&&kr(B,cn(),K),Ec}function Dc(e,t,n,r,o,a,f,y,w,B,K){const Ee=Mt(),We=To(Ee,e,t,n,r,o,a,f,y,w,B,K);return We!==mn&&kr(Ee,cn(),We),Dc}function Tc(e,t,n,r,o,a,f,y,w,B,K,Ee,We){const it=Mt(),gt=Mo(it,e,t,n,r,o,a,f,y,w,B,K,Ee,We);return gt!==mn&&kr(it,cn(),gt),Tc}function Mc(e,t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt){const At=Mt(),kt=wo(At,e,t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt);return kt!==mn&&kr(At,cn(),kt),Mc}function wc(e,t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt,At,kt){const Gt=Mt(),Et=So(Gt,e,t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt,At,kt);return Et!==mn&&kr(Gt,cn(),Et),wc}function Sc(e){const t=Mt(),n=vo(t,e);return n!==mn&&kr(t,cn(),n),Sc}function qf(e,t,n){fr(Bi,Tr,bo(Mt(),e,t,n),!0)}function ep(e,t,n,r,o){fr(Bi,Tr,Co(Mt(),e,t,n,r,o),!0)}function tp(e,t,n,r,o,a,f){fr(Bi,Tr,Eo(Mt(),e,t,n,r,o,a,f),!0)}function np(e,t,n,r,o,a,f,y,w){fr(Bi,Tr,Do(Mt(),e,t,n,r,o,a,f,y,w),!0)}function ip(e,t,n,r,o,a,f,y,w,B,K){fr(Bi,Tr,To(Mt(),e,t,n,r,o,a,f,y,w,B,K),!0)}function rp(e,t,n,r,o,a,f,y,w,B,K,Ee,We){fr(Bi,Tr,Mo(Mt(),e,t,n,r,o,a,f,y,w,B,K,Ee,We),!0)}function op(e,t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt){fr(Bi,Tr,wo(Mt(),e,t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt),!0)}function sp(e,t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt,At,kt){fr(Bi,Tr,So(Mt(),e,t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt,At,kt),!0)}function ap(e){fr(Bi,Tr,vo(Mt(),e),!0)}function lp(e,t,n){dr(bo(Mt(),e,t,n))}function cp(e,t,n,r,o){dr(Co(Mt(),e,t,n,r,o))}function up(e,t,n,r,o,a,f){dr(Eo(Mt(),e,t,n,r,o,a,f))}function dp(e,t,n,r,o,a,f,y,w){dr(Do(Mt(),e,t,n,r,o,a,f,y,w))}function hp(e,t,n,r,o,a,f,y,w,B,K){dr(To(Mt(),e,t,n,r,o,a,f,y,w,B,K))}function fp(e,t,n,r,o,a,f,y,w,B,K,Ee,We){dr(Mo(Mt(),e,t,n,r,o,a,f,y,w,B,K,Ee,We))}function pp(e,t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt){dr(wo(Mt(),e,t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt))}function mp(e,t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt,At,kt){dr(So(Mt(),e,t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt,At,kt))}function gp(e){dr(vo(Mt(),e))}function Ic(e,t,n,r,o){return hr(e,bo(Mt(),t,n,r),o,!1),Ic}function Pc(e,t,n,r,o,a,f){return hr(e,Co(Mt(),t,n,r,o,a),f,!1),Pc}function Ac(e,t,n,r,o,a,f,y,w){return hr(e,Eo(Mt(),t,n,r,o,a,f,y),w,!1),Ac}function Oc(e,t,n,r,o,a,f,y,w,B,K){return hr(e,Do(Mt(),t,n,r,o,a,f,y,w,B),K,!1),Oc}function xc(e,t,n,r,o,a,f,y,w,B,K,Ee,We){return hr(e,To(Mt(),t,n,r,o,a,f,y,w,B,K,Ee),We,!1),xc}function Rc(e,t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt){return hr(e,Mo(Mt(),t,n,r,o,a,f,y,w,B,K,Ee,We,it),gt,!1),Rc}function Fc(e,t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt,At,kt){return hr(e,wo(Mt(),t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt,At),kt,!1),Fc}function kc(e,t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt,At,kt,Gt,Et){return hr(e,So(Mt(),t,n,r,o,a,f,y,w,B,K,Ee,We,it,gt,At,kt,Gt),Et,!1),kc}function Nc(e,t,n){return hr(e,vo(Mt(),t),n,!1),Nc}function Lc(e,t,n){const r=Mt();return bi(r,en(),t)&&ji(j(),An(),r,e,t,r[11],n,!0),Lc}function Bc(e,t,n){const r=Mt();if(bi(r,en(),t)){const a=j(),f=An();ji(a,f,r,e,t,Vh(Be(a.data),f,r),n,!0)}return Bc}const Zr=void 0;var Gb=["en",[["a","p"],["AM","PM"],Zr],[["AM","PM"],Zr,Zr],[["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"]],Zr,[["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"]],Zr,[["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}",Zr,"{1} 'at' {0}",Zr],[".",",",";","%","+","-","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 Ao={};function Qb(e,t,n){"string"!=typeof t&&(n=t,t=e[on.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Ao[t]=e,n&&(Ao[t][on.ExtraData]=n)}function jc(e){const t=function Jb(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=yp(t);if(n)return n;const r=t.split("-")[0];if(n=yp(r),n)return n;if("en"===r)return Gb;throw new Error(`Missing locale data for the locale "${e}".`)}function Zb(e){return jc(e)[on.CurrencyCode]||null}function _p(e){return jc(e)[on.PluralCase]}function yp(e){return e in Ao||(Ao[e]=Ht.ng&&Ht.ng.common&&Ht.ng.common.locales&&Ht.ng.common.locales[e]),Ao[e]}function Yb(){Ao={}}var on=(()=>((on=on||{})[on.LocaleId=0]="LocaleId",on[on.DayPeriodsFormat=1]="DayPeriodsFormat",on[on.DayPeriodsStandalone=2]="DayPeriodsStandalone",on[on.DaysFormat=3]="DaysFormat",on[on.DaysStandalone=4]="DaysStandalone",on[on.MonthsFormat=5]="MonthsFormat",on[on.MonthsStandalone=6]="MonthsStandalone",on[on.Eras=7]="Eras",on[on.FirstDayOfWeek=8]="FirstDayOfWeek",on[on.WeekendRange=9]="WeekendRange",on[on.DateFormat=10]="DateFormat",on[on.TimeFormat=11]="TimeFormat",on[on.DateTimeFormat=12]="DateTimeFormat",on[on.NumberSymbols=13]="NumberSymbols",on[on.NumberFormats=14]="NumberFormats",on[on.CurrencyCode=15]="CurrencyCode",on[on.CurrencySymbol=16]="CurrencySymbol",on[on.CurrencyName=17]="CurrencyName",on[on.Currencies=18]="Currencies",on[on.Directionality=19]="Directionality",on[on.PluralCase=20]="PluralCase",on[on.ExtraData=21]="ExtraData",on))();const Xb=["zero","one","two","few","many"],us="en-US",na={marker:"element"},ia={marker:"ICU"};var Jn=(()=>((Jn=Jn||{})[Jn.SHIFT=2]="SHIFT",Jn[Jn.APPEND_EAGERLY=1]="APPEND_EAGERLY",Jn[Jn.COMMENT=2]="COMMENT",Jn))();let vp=us;function bp(e){(function ve(e,t){null==e&&$e(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(vp=e.toLowerCase().replace(/_/g,"-"))}function Cp(e,t,n){const r=t.insertBeforeIndex,o=Array.isArray(r)?r[0]:r;return null===o?Xd(e,0,n):Ln(n[o])}function Ep(e,t,n,r,o){const a=t.insertBeforeIndex;if(Array.isArray(a)){let f=r,y=null;if(3&t.type||(y=f,f=o),null!==f&&0==(2&t.flags))for(let w=1;w<a.length;w++)Gr(e,f,n[a[w]],y,!1)}}function Dp(e,t){if(e.push(t),e.length>1)for(let n=e.length-2;n>=0;n--){const r=e[n];Tp(r)||nC(r,t)&&null===iC(r)&&rC(r,t.index)}}function Tp(e){return!(64&e.type)}function nC(e,t){return Tp(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:(eh(Cp,Ep),e.insertBeforeIndex=t)}function ds(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=yl(e,n,64,null,null);return Dp(t,r),r}function ra(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function Mp(e){return e>>>17}function wp(e){return(131070&e)>>>1}let hs=0,fs=0;function Ip(e,t,n,r){const o=n[11];let f,a=null;for(let y=0;y<t.length;y++){const w=t[y];if("string"==typeof w){const B=t[++y];null===n[B]&&(n[B]=qa(o,w))}else if("number"==typeof w)switch(1&w){case 0:const B=Mp(w);let K,Ee;if(null===a&&(a=B,f=Vs(o,r)),B===a?(K=r,Ee=f):(K=null,Ee=Ln(n[B])),null!==Ee){const At=wp(w);Gr(o,Ee,n[At],K,!1);const Gt=ds(e,At);if(null!==Gt&&"object"==typeof Gt){const Et=ra(Gt,n);null!==Et&&Ip(e,Gt.create[Et],n,n[Gt.anchorIdx])}}break;case 1:const it=t[++y],gt=t[++y];El(o,F(w>>>1,n),null,null,it,gt,null)}else switch(w){case ia:const B=t[++y],K=t[++y];null===n[K]&&vi(n[K]=_y(o,B),n);break;case na:const Ee=t[++y],We=t[++y];null===n[We]&&vi(n[We]=el(o,Ee,null),n)}}}function Pp(e,t,n,r,o){for(let a=0;a<n.length;a++){const f=n[a],y=n[++a];if(f&o){let w="";for(let B=a+1;B<=a+y;B++){const K=n[B];if("string"==typeof K)w+=K;else if("number"==typeof K)if(K<0)w+=$(t[r-K]);else{const Ee=K>>>2;switch(3&K){case 1:const We=n[++B],it=n[++B],gt=e.data[Ee];"string"==typeof gt?El(t[11],t[Ee],null,gt,We,w,it):ji(e,gt,t,We,w,t[11],it,!1);break;case 0:const At=t[Ee];null!==At&&Wd(t[11],At,w);break;case 2:hC(e,ds(e,Ee),t,w);break;case 3:Ap(e,ds(e,Ee),r,t)}}}}else{const w=n[a+1];if(w>0&&3==(3&w)){const K=ds(e,w>>>2);t[K.currentCaseLViewIndex]<0&&Ap(e,K,r,t)}}a+=y}}function Ap(e,t,n,r){let o=r[t.currentCaseLViewIndex];if(null!==o){let a=hs;o<0&&(o=r[t.currentCaseLViewIndex]=~o,a=-1),Pp(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=_p(t)(parseInt(e,10)),r=Xb[n];return void 0!==r?r:"other"}(t,function tC(){return vp}());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(ra(t,n)!==o&&(Op(e,t,n),n[t.currentCaseLViewIndex]=null===o?null:~o,null!==o)){const f=n[t.anchorIdx];f&&Ip(e,t.create[o],n,f)}}function Op(e,t,n){let r=ra(t,n);if(null!==r){const o=t.remove[r];for(let a=0;a<o.length;a++){const f=o[a];if(f>0){const y=F(f,n);null!==y&&nh(n[11],y)}else Op(e,ds(e,~f),n)}}}function pC(){const e=[];let n,r,t=-1;function a(y,w){t=0;const B=ra(y,w);r=null!==B?y.remove[B]:St}function f(){if(t<r.length){const y=r[t++];return y>0?n[y]:(e.push(t,r),a(n[1].data[~y],n),f())}return 0===e.length?null:(r=e.pop(),t=e.pop(),f())}return function o(y,w){for(n=w;e.length;)e.pop();return a(y.value,w),f}}const oa=/\ufffd(\d+):?\d*\ufffd/gi,mC=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,gC=/\ufffd(\d+)\ufffd/,Rp=/^\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 Fp(e,t,n,r,o,a,f){const y=po(e,r,1,null);let w=y<<Jn.SHIFT,B=U();t===B&&(B=null),null===B&&(w|=Jn.APPEND_EAGERLY),f&&(w|=Jn.COMMENT,function gy(e){void 0===Za&&(Za=e())}(pC)),o.push(w,null===a?"":a);const K=yl(e,y,f?32:1,null===a?"":a,null);Dp(n,K);const Ee=K.index;return de(K,!1),null!==B&&t!==B&&function sC(e,t){let n=e.insertBeforeIndex;null===n?(eh(Cp,Ep),n=e.insertBeforeIndex=[null,t]):(function q(e,t,n){e!=t&&$e(n,e,t,"==")}(Array.isArray(n),!0,"Expecting array here"),n.push(t))}(B,Ee),K}function EC(e,t,n,r,o,a,f){const y=f.match(oa),w=Fp(e,t,n,a,r,y?null:f,!1);y&&Oo(o,f,w.index,null,0,null)}function Oo(e,t,n,r,o,a){const f=e.length,y=f+1;e.push(null,null);const w=f+2,B=t.split(oa);let K=0;for(let Ee=0;Ee<B.length;Ee++){const We=B[Ee];if(1&Ee){const it=o+parseInt(We,10);e.push(-1-it),K|=kp(it)}else""!==We&&e.push(We)}return e.push(n<<2|(r?1:0)),r&&e.push(r,a),e[f]=K,e[y]=e.length-w,K}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 kp(e){return 1<<Math.min(e,31)}function Np(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 Lp(e,t,n,r,o,a){let f=0;const y={type:o.type,currentCaseLViewIndex:po(e,t,1,null),anchorIdx:a,cases:[],create:[],remove:[],update:[]};(function AC(e,t,n){e.push(kp(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 w=o.values;for(let B=0;B<w.length;B++){const K=w[B],Ee=[];for(let We=0;We<K.length;We++){const it=K[We];if("string"!=typeof it){const gt=Ee.push(it)-1;K[We]=`\x3c!--\ufffd${gt}\ufffd--\x3e`}}f=IC(e,y,t,n,r,o.cases[B],K.join(""),Ee)|f}f&&function OC(e,t,n){e.push(t,1,n<<2|3)}(n,f,a)}function SC(e){const t=[],n=[];let r=1,o=0;const a=Vc(e=e.replace(Rp,function(f,y,w){return r="select"===w?0:1,o=parseInt(y.substr(1),10),""}));for(let f=0;f<a.length;){let y=a[f++].trim();1===r&&(y=y.replace(/\s*(?:=)?(\w+)\s*/,"$1")),y.length&&t.push(y);const w=Vc(a[f++]);t.length>n.length&&n.push(w)}return{type:r,mainBinding:o,cases:t,values:n}}function Vc(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 w=e.substring(t,y);Rp.test(w)?r.push(SC(w)):r.push(w),t=y+1}}else{if(0==n.length){const w=e.substring(t,y);r.push(w),t=y+1}n.push("{")}}const f=e.substring(t);return r.push(f),r}function IC(e,t,n,r,o,a,f,y){const w=[],B=[],K=[];t.cases.push(a),t.create.push(w),t.remove.push(B),t.update.push(K);const We=fd(ki()).getInertBodyElement(f),it=Ha(We)||We;return it?Bp(e,t,n,r,w,B,K,it,o,y,0):0}function Bp(e,t,n,r,o,a,f,y,w,B,K){let Ee=0,We=y.firstChild;for(;We;){const it=po(e,n,1,null);switch(We.nodeType){case Node.ELEMENT_NODE:const gt=We,At=gt.tagName.toLowerCase();if(ja.hasOwnProperty(At)){$c(o,na,At,w,it),e.data[it]=At;const tn=gt.attributes;for(let Cn=0;Cn<tn.length;Cn++){const Fn=tn.item(Cn),Hi=Fn.name.toLowerCase();Fn.value.match(oa)?yd.hasOwnProperty(Hi)&&Oo(f,Fn.value,it,Fn.name,0,Va[Hi]?Zo:$a[Hi]?pd:null):xC(o,it,Fn)}Ee=Bp(e,t,n,r,o,a,f,We,it,B,K+1)|Ee,jp(a,it,K)}break;case Node.TEXT_NODE:const kt=We.textContent||"",Gt=kt.match(oa);$c(o,null,Gt?"":kt,w,it),jp(a,it,K),Gt&&(Ee=Oo(f,kt,it,null,0,null)|Ee);break;case Node.COMMENT_NODE:const Et=gC.exec(We.textContent||"");if(Et){const Cn=B[parseInt(Et[1],10)];$c(o,ia,"",w,it),Lp(e,n,r,w,Cn,it),PC(a,it,K)}}We=We.nextSibling}return Ee}function jp(e,t,n){0===n&&e.push(t)}function PC(e,t,n){0===n&&(e.push(~t),e.push(t))}function $c(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 Hc(e,t,n=-1){const r=j(),o=Mt(),a=20+e,f=fn(r.consts,t),y=U();r.firstCreatePass&&function CC(e,t,n,r,o,a){const f=U(),y=[],w=[],B=[[]];o=function wC(e,t){if(function MC(e){return-1===e}(t))return Np(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,r=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return Np(e.substring(n,r))}}(o,a);const K=function bC(e){return e.replace(vC," ")}(o).split(yC);for(let Ee=0;Ee<K.length;Ee++){let We=K[Ee];if(0==(1&Ee)){const it=Vc(We);for(let gt=0;gt<it.length;gt++){let At=it[gt];if(0==(1&gt)){const kt=At;""!==kt&&EC(e,f,B[0],y,w,n,kt)}else{const kt=At;if("object"!=typeof kt)throw new Error(`Unable to parse ICU expression in "${o}" message.`);Lp(e,n,w,t,kt,Fp(e,f,B[0],n,y,"",!0).index)}}}else{const it=47===We.charCodeAt(0),At=(We.charCodeAt(it?1:0),20+Number.parseInt(We.substring(it?2:1)));if(it)B.shift(),de(U(),!1);else{const kt=aC(e,B[0],At);B.unshift([]),de(kt,!0)}}}e.data[r]={create:y,update:w}}(r,null===y?0:y.index,o,a,f,n);const w=r.data[a],K=Qd(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 f=t[a++],y=t[a],w=(f&Jn.COMMENT)===Jn.COMMENT,B=(f&Jn.APPEND_EAGERLY)===Jn.APPEND_EAGERLY,K=f>>>Jn.SHIFT;let Ee=e[K];null===Ee&&(Ee=e[K]=w?o.createComment(y):qa(o,y)),B&&null!==n&&Gr(o,n,Ee,r,!1)}})(o,w.create,K,y&&8&y.type?o[y.index]:null),W(!0)}function Uc(){W(!1)}function $p(e,t,n){Hc(e,t,n),Uc()}function Hp(e,t){const n=j();!function DC(e,t,n){const o=p().index,a=[];if(e.firstCreatePass&&null===e.data[t]){for(let f=0;f<n.length;f+=2){const y=n[f],w=n[f+1];if(""!==w){if(mC.test(w))throw new Error(`ICU expressions are not supported in attributes. Message: "${w}".`);Oo(a,w,o,y,TC(a),null)}}e.data[t]=a}}(n,e+20,fn(n.consts,t))}function Wc(e){return function cC(e){e&&(hs|=1<<Math.min(fs,31)),fs++}(bi(Mt(),en(),e)),Wc}function Up(e){!function uC(e,t,n){if(fs>0){const r=e.data[n];Pp(e,t,Array.isArray(r)?r:r.update,ln()-fs-1,hs)}hs=0,fs=0}(j(),Mt(),e+20)}function Wp(e,t={}){return function VC(e,t={}){let n=e;if(RC.test(e)){const r={},o=[0];n=n.replace(FC,(a,f,y)=>{const w=f||y,B=r[w]||[];if(B.length||(w.split("|").forEach(At=>{const kt=At.match(jC),Gt=kt?parseInt(kt[1],10):0,Et=BC.test(At);B.push([Gt,Et,At])}),r[w]=B),!B.length)throw new Error(`i18n postprocess: unmatched placeholder - ${w}`);const K=o[o.length-1];let Ee=0;for(let At=0;At<B.length;At++)if(B[At][0]===K){Ee=At;break}const[We,it,gt]=B[Ee];return it?o.pop():K!==We&&o.push(We),B.splice(Ee,1),gt})}return Object.keys(t).length&&(n=n.replace(kC,(r,o,a,f,y,w)=>t.hasOwnProperty(a)?`${o}${t[a]}${w}`: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 zc(e,t,n,r,o){if(e=T(e),Array.isArray(e))for(let a=0;a<e.length;a++)zc(e[a],t,n,r,o);else{const a=j(),f=Mt();let y=_o(e)?e:T(e.provide),w=Qh(e);const B=p(),K=1048575&B.providerIndexes,Ee=B.directiveStart,We=B.providerIndexes>>20;if(_o(e)||!e.multi){const it=new Bo(w,o,ls),gt=Gc(y,t,o?K:K+We,Ee);-1===gt?(Ps(Vo(B,f),a,y),Kc(a,e,t.length),t.push(y),B.directiveStart++,B.directiveEnd++,o&&(B.providerIndexes+=1048576),n.push(it),f.push(it)):(n[gt]=it,f[gt]=it)}else{const it=Gc(y,t,K+We,Ee),gt=Gc(y,t,K,K+We),At=it>=0&&n[it],kt=gt>=0&&n[gt];if(o&&!kt||!o&&!At){Ps(Vo(B,f),a,y);const Gt=function WC(e,t,n,r,o){const a=new Bo(e,n,ls);return a.multi=[],a.index=t,a.componentProviders=0,zp(a,o,r&&!n),a}(o?UC:HC,n.length,o,r,w);!o&&kt&&(n[gt].providerFactory=Gt),Kc(a,e,t.length,0),t.push(y),B.directiveStart++,B.directiveEnd++,o&&(B.providerIndexes+=1048576),n.push(Gt),f.push(Gt)}else Kc(a,e,it>-1?it:gt,zp(n[o?gt:it],w,!o&&r));!o&&r&&kt&&n[gt].componentProviders++}}}function Kc(e,t,n,r){const o=_o(t),a=function Rv(e){return!!e.useClass}(t);if(o||a){const w=(a?T(t.useClass):t).prototype.ngOnDestroy;if(w){const B=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const K=B.indexOf(n);-1===K?B.push(n,[r,w]):B[K+1].push(r,w)}else B.push(n,w)}}}function zp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Gc(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 Qc(this.multi,[])}function UC(e,t,n,r){const o=this.multi;let a;if(this.providerFactory){const f=this.providerFactory.componentProviders,y=$o(n,n[1],this.providerFactory.index,r);a=y.slice(0,f),Qc(o,a);for(let w=f;w<y.length;w++)a.push(y[w])}else a=[],Qc(o,a);return a}function Qc(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function Kp(e,t=[]){return n=>{n.providersResolver=(r,o)=>function $C(e,t,n){const r=j();if(r.firstCreatePass){const o=Wn(e);zc(n,r.data,r.blueprint,o,!0),zc(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class Gp{}class sa{}class KC{resolveComponentFactory(t){throw function zC(e){const t=Error(`No component factory found for ${D(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 xo(p(),Mt())}function xo(e,t){return new gs(ne(e,t))}let gs=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=GC,e})();function QC(e){return e instanceof gs?e.nativeElement:e}class Zp{}let ZC=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function JC(){const e=Mt(),n=Ft(p().index,e);return function YC(e){return e[11]}(Kn(n)?n:e)}(),e})(),Yp=(()=>{class e{}return e.\u0275prov=Je({token:e,providedIn:"root",factory:()=>null}),e})();class Jp{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Xp=new Jp("13.1.3"),aa={};function la(e,t,n,r,o=!1){for(;null!==n;){const a=t[n.index];if(null!==a&&r.push(Ln(a)),Gn(a))for(let y=10;y<a.length;y++){const w=a[y],B=w[1].firstChild;null!==B&&la(w[1],w,B,r)}const f=n.type;if(8&f)la(e,t,n.child,r);else if(32&f){const y=Ya(n,t);let w;for(;w=y();)r.push(w)}else if(16&f){const y=th(t,n);if(Array.isArray(y))r.push(...y);else{const w=es(t[16]);la(w[1],w,y,r,!0)}}n=o?n.projectionNext:n.next}return r}class Ro{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 la(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(Gn(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(tl(t,r),xs(n,r))}this._attachedToViewContainer=!1}Kd(this._lView[1],this._lView)}onDestroy(t){Ih(this._lView[1],this._lView,null,t)}markForCheck(){Tl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){wl(this._lView[1],this._lView,this.context)}checkNoChanges(){!function Tv(e,t,n){Wt(!0);try{wl(e,t,n)}finally{Wt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new V(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function by(e,t){ts(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new V(902,"");this._appRef=t}}class XC extends Ro{constructor(t){super(t),this._view=t}detectChanges(){Lh(this._view)}checkNoChanges(){!function Mv(e){Wt(!0);try{Lh(e)}finally{Wt(!1)}}(this._view)}get context(){return null}}class qp extends ms{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Ve(t);return new ca(n,this.ngModule)}}function em(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const e0=new Yn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>kd});class ca extends sa{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 em(this.componentDef.inputs)}get outputs(){return em(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,aa,o);return a!==aa||r===aa?a:t.get(n,r,o)}}}(t,o.injector):t,f=a.get(Zp,sr),y=a.get(Yp,null),w=f.createRenderer(null,this.componentDef),B=this.componentDef.selectors[0][0]||"div",K=r?Sh(w,r,this.componentDef.encapsulation):el(f.createRenderer(null,this.componentDef),B,function qC(e){const t=e.toLowerCase();return"svg"===t?Ri:"math"===t?or:null}(B)),Ee=this.componentDef.onPush?576:528,We=lf(),it=Ks(0,null,null,1,0,null,null,null,null,null),gt=ns(null,it,We,Ee,null,null,f,w,y,a);let At,kt;Qt(gt);try{const Gt=sf(K,this.componentDef,gt,f,w);if(K)if(r)Ms(w,K,["ng-version",Xp.full]);else{const{attrs:Et,classes:tn}=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(!cr(o))break;o=a}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);Et&&Ms(w,K,Et),tn&&tn.length>0&&sl(w,K,tn.join(" "))}if(kt=ut(it,20),void 0!==n){const Et=kt.projection=[];for(let tn=0;tn<this.ngContentSelectors.length;tn++){const Cn=n[tn];Et.push(null!=Cn?Array.from(Cn):null)}}At=af(Gt,this.componentDef,gt,We,[cf]),is(it,gt,null)}finally{Pt()}return new tm(this.componentType,At,xo(kt,gt),gt,kt)}}class tm extends Gp{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 eo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function nm(e,t,n,r){return re(()=>{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 Fo{}class im{}const ko=new Map;function om(e){const t=new Set;!function n(r){const o=Nt(r,!0),a=o.id;if(null!==a){(function rm(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${D(t)} vs ${D(t.name)}`)})(a,ko.get(a),r),ko.set(a,r)}const f=br(o.imports);for(const y of f)t.has(y)||(t.add(y),n(y))}(e)}function sm(e){return ko.get(e)||Dt[e]}function r0(e,t){return new Zc(e,null!=t?t:null)}class Zc extends Fo{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new qp(this);const r=Nt(t);this._bootstrapComponents=br(r.bootstrap),this._r3Injector=Gh(t,n,[{provide:Fo,useValue:this},{provide:ms,useValue:this.componentFactoryResolver}],D(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=Vi.THROW_IF_NOT_FOUND,r=N.Default){return t===Vi||t===Fo||t===Zs?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 ua extends im{constructor(t){super(),this.moduleType=t,null!==Nt(t)&&om(t)}create(t){return new Zc(this.moduleType,t)}}function am(e,t,n){const r=Yt()+e,o=Mt();return o[r]===mn?Dr(o,r,n?t.call(n):t()):ss(o,r)}function lm(e,t,n,r){return _m(Mt(),Yt(),e,t,n,r)}function cm(e,t,n,r,o){return ym(Mt(),Yt(),e,t,n,r,o)}function um(e,t,n,r,o,a){return vm(Mt(),Yt(),e,t,n,r,o,a)}function dm(e,t,n,r,o,a,f){return bm(Mt(),Yt(),e,t,n,r,o,a,f)}function hm(e,t,n,r,o,a,f,y){const w=Yt()+e,B=Mt(),K=tr(B,w,n,r,o,a);return bi(B,w+4,f)||K?Dr(B,w+5,y?t.call(y,n,r,o,a,f):t(n,r,o,a,f)):ss(B,w+5)}function fm(e,t,n,r,o,a,f,y,w){const B=Yt()+e,K=Mt(),Ee=tr(K,B,n,r,o,a);return Qr(K,B+4,f,y)||Ee?Dr(K,B+6,w?t.call(w,n,r,o,a,f,y):t(n,r,o,a,f,y)):ss(K,B+6)}function pm(e,t,n,r,o,a,f,y,w,B){const K=Yt()+e,Ee=Mt();let We=tr(Ee,K,n,r,o,a);return Js(Ee,K+4,f,y,w)||We?Dr(Ee,K+7,B?t.call(B,n,r,o,a,f,y,w):t(n,r,o,a,f,y,w)):ss(Ee,K+7)}function mm(e,t,n,r,o,a,f,y,w,B,K){const Ee=Yt()+e,We=Mt(),it=tr(We,Ee,n,r,o,a);return tr(We,Ee+4,f,y,w,B)||it?Dr(We,Ee+8,K?t.call(K,n,r,o,a,f,y,w,B):t(n,r,o,a,f,y,w,B)):ss(We,Ee+8)}function gm(e,t,n,r){return Cm(Mt(),Yt(),e,t,n,r)}function _s(e,t){const n=e[t];return n===mn?void 0:n}function _m(e,t,n,r,o,a){const f=t+n;return bi(e,f,o)?Dr(e,f+1,a?r.call(a,o):r(o)):_s(e,f+1)}function ym(e,t,n,r,o,a,f){const y=t+n;return Qr(e,y,o,a)?Dr(e,y+2,f?r.call(f,o,a):r(o,a)):_s(e,y+2)}function vm(e,t,n,r,o,a,f,y){const w=t+n;return Js(e,w,o,a,f)?Dr(e,w+3,y?r.call(y,o,a,f):r(o,a,f)):_s(e,w+3)}function bm(e,t,n,r,o,a,f,y,w){const B=t+n;return tr(e,B,o,a,f,y)?Dr(e,B+4,w?r.call(w,o,a,f,y):r(o,a,f,y)):_s(e,B+4)}function Cm(e,t,n,r,o,a){let f=t+n,y=!1;for(let w=0;w<o.length;w++)bi(e,f++,o[w])&&(y=!0);return y?Dr(e,f,r.apply(a,o)):_s(e,f)}function Em(e,t){const n=j();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=fi(r.type)),f=ue(ls);try{const y=Ss(!1),w=a();return Ss(y),pf(n,Mt(),o,w),w}finally{ue(f)}}function Dm(e,t,n){const r=e+20,o=Mt(),a=bt(o,r);return ys(o,r)?_m(o,Yt(),t,a.transform,n,a):a.transform(n)}function Tm(e,t,n,r){const o=e+20,a=Mt(),f=bt(a,o);return ys(a,o)?ym(a,Yt(),t,f.transform,n,r,f):f.transform(n,r)}function Mm(e,t,n,r,o){const a=e+20,f=Mt(),y=bt(f,a);return ys(f,a)?vm(f,Yt(),t,y.transform,n,r,o,y):y.transform(n,r,o)}function wm(e,t,n,r,o,a){const f=e+20,y=Mt(),w=bt(y,f);return ys(y,f)?bm(y,Yt(),t,w.transform,n,r,o,a,w):w.transform(n,r,o,a)}function Sm(e,t,n){const r=e+20,o=Mt(),a=bt(o,r);return ys(o,r)?Cm(o,Yt(),t,a.transform,n,a):a.transform.apply(a,n)}function ys(e,t){return e[1].data[t].pure}function Yc(e){return t=>{setTimeout(e,void 0,t)}}const Mr=class s0 extends i.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var o,a,f;let y=t,w=n||(()=>null),B=r;if(t&&"object"==typeof t){const Ee=t;y=null===(o=Ee.next)||void 0===o?void 0:o.bind(Ee),w=null===(a=Ee.error)||void 0===a?void 0:a.bind(Ee),B=null===(f=Ee.complete)||void 0===f?void 0:f.bind(Ee)}this.__isAsync&&(w=Yc(w),y&&(y=Yc(y)),B&&(B=Yc(B)));const K=super.subscribe({next:y,error:w,complete:B});return t instanceof u.w0&&t.add(K),K}};function a0(){return this._results[yo()]()}class da{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=yo(),r=da.prototype;r[n]||(r[n]=a0)}get changes(){return this._changes||(this._changes=new Mr)}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=qi(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 vs=(()=>{class e{}return e.__NG_ELEMENT_ID__=u0,e})();const l0=vs,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=ns(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)),is(n,r,t),new Ro(r)}};function u0(){return ha(p(),Mt())}function ha(e,t){return 4&e.type?new c0(t,e,xo(e,t)):null}let fa=(()=>{class e{}return e.__NG_ELEMENT_ID__=d0,e})();function d0(){return Am(p(),Mt())}const h0=fa,Im=class extends h0{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return xo(this._hostTNode,this._hostLView)}get injector(){return new eo(this._hostTNode,this._hostLView)}get parentInjector(){const t=Is(this._hostTNode,this._hostLView);if(Vu(t)){const n=qr(t,this._hostLView),r=Xr(t);return new eo(n[1].data[r+8],n)}return new eo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Pm(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 f=t&&!Uo(t);let y;if(f)y=n;else{const Ee=n||{};y=Ee.index,r=Ee.injector,o=Ee.projectableNodes,a=Ee.ngModuleRef}const w=f?t:new ca(Ve(t)),B=r||this.parentInjector;if(!a&&null==w.ngModule&&B){const Ee=B.get(Fo,null);Ee&&(a=Ee)}const K=w.create(B,o,void 0,a);return this.insert(K.hostView,y),K}insert(t,n){const r=t._lView,o=r[1];if(function In(e){return Gn(e[3])}(r)){const K=this.indexOf(t);if(-1!==K)this.detach(K);else{const Ee=r[3],We=new Im(Ee,Ee[6],Ee[3]);We.detach(We.indexOf(t))}}const a=this._adjustIndex(n),f=this._lContainer;!function Ey(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],Xu(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;const f=t[17];null!==f&&n!==f&&function Dy(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(f,t);const y=t[19];null!==y&&y.insertView(e),t[2]|=128}(o,r,f,a);const y=rl(a,f),w=r[11],B=Vs(w,f[7]);return null!==B&&function vy(e,t,n,r,o,a){r[0]=o,r[6]=t,ts(e,r,n,1,o,a)}(o,f[6],w,r,B,y),t.attachToViewContainerRef(),Xu(Jc(f),a,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Pm(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=tl(this._lContainer,n);r&&(xs(Jc(this._lContainer),n),Kd(r[1],r))}detach(t){const n=this._adjustIndex(t,-1),r=tl(this._lContainer,n);return r&&null!=xs(Jc(this._lContainer),n)?new Ro(r):null}_adjustIndex(t,n=0){return null==t?this.length+n:t}};function Pm(e){return e[8]}function Jc(e){return e[8]||(e[8]=[])}function Am(e,t){let n;const r=t[e.index];if(Gn(r))n=r;else{let o;if(8&e.type)o=Ln(r);else{const a=t[11];o=a.createComment("");const f=ne(e,t);Gr(a,Vs(a,f),o,function Sy(e,t){return Rn(e)?e.nextSibling(t):t.nextSibling}(a,f),!1)}t[e.index]=n=Nh(r,t,o,e),Gs(t,n)}return new Im(n,e,t)}class Xc{constructor(t){this.queryList=t,this.matches=null}clone(){return new Xc(this.queryList)}setDirty(){this.queryList.setDirty()}}class qc{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 f=n.getByIndex(a);o.push(this.queries[f.indexInDeclarationView].clone())}return new qc(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!==jm(t,n).matches&&this.queries[n].setDirty()}}class Om{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class eu{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 eu(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 tu{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 tu(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,As(n,t,a,!1,!1))}else r===vs?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,As(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const o=this.metadata.read;if(null!==o)if(o===gs||o===fa||o===vs&&4&n.type)this.addMatch(n.index,-2);else{const a=As(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?xo(e,t):4&e.type?ha(e,t):null}(t,e):-2===n?function y0(e,t,n){return n===gs?xo(t,e):n===vs?ha(t,e):n===fa?Am(t,e):void 0}(e,t,r):$o(e,e[1],n,t)}function xm(e,t,n,r){const o=t[19].queries[r];if(null===o.matches){const a=e.data,f=n.matches,y=[];for(let w=0;w<f.length;w+=2){const B=f[w];y.push(B<0?null:_0(t,a[B],f[w+1],n.metadata.read))}o.matches=y}return o.matches}function nu(e,t,n,r){const o=e.queries.getByIndex(n),a=o.matches;if(null!==a){const f=xm(e,t,o,n);for(let y=0;y<a.length;y+=2){const w=a[y];if(w>0)r.push(f[y/2]);else{const B=a[y+1],K=t[-w];for(let Ee=10;Ee<K.length;Ee++){const We=K[Ee];We[17]===We[3]&&nu(We[1],We,B,r)}if(null!==K[9]){const Ee=K[9];for(let We=0;We<Ee.length;We++){const it=Ee[We];nu(it[1],it,B,r)}}}}}return r}function Rm(e){const t=Mt(),n=j(),r=et();vt(r+1);const o=jm(n,r);if(e.dirty&&Tn(t)===(2==(2&o.metadata.flags))){if(null===o.matches)e.reset([]);else{const a=o.crossesNgTemplate?nu(n,t,r,[]):xm(n,t,o,r);e.reset(a,QC),e.notifyOnChanges()}return!0}return!1}function Fm(e,t,n){const r=j();r.firstCreatePass&&(Bm(r,new Om(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),Lm(r,Mt(),t)}function km(e,t,n,r){const o=j();if(o.firstCreatePass){const a=p();Bm(o,new Om(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)}Lm(o,Mt(),n)}function Nm(){return function v0(e,t){return e[19].queries[t].queryList}(Mt(),et())}function Lm(e,t,n){const r=new da(4==(4&n));Ih(e,t,r,r.destroy),null===t[19]&&(t[19]=new qc),t[19].queries.push(new Xc(r))}function Bm(e,t,n){null===e.queries&&(e.queries=new eu),e.queries.track(new tu(t,n))}function jm(e,t){return e.queries.getByIndex(t)}function Vm(e,t){return ha(e,t)}const Ti=(()=>({\u0275\u0275attribute:Bl,\u0275\u0275attributeInterpolate1:jl,\u0275\u0275attributeInterpolate2:Vl,\u0275\u0275attributeInterpolate3:$l,\u0275\u0275attributeInterpolate4:Hl,\u0275\u0275attributeInterpolate5:Ul,\u0275\u0275attributeInterpolate6:Wl,\u0275\u0275attributeInterpolate7:zl,\u0275\u0275attributeInterpolate8:Kl,\u0275\u0275attributeInterpolateV:Gl,\u0275\u0275defineComponent:S,\u0275\u0275defineDirective:Ue,\u0275\u0275defineInjectable:Je,\u0275\u0275defineInjector:me,\u0275\u0275defineNgModule:Kt,\u0275\u0275definePipe:he,\u0275\u0275directiveInject:ls,\u0275\u0275getInheritedFactory:Zu,\u0275\u0275inject:si,\u0275\u0275injectAttribute:Sa,\u0275\u0275invalidFactory:Sf,\u0275\u0275invalidFactoryDep:Fa,\u0275\u0275templateRefExtractor:Vm,\u0275\u0275NgOnChangesFeature:pi,\u0275\u0275ProvidersFeature:Kp,\u0275\u0275CopyDefinitionFeature:df,\u0275\u0275InheritDefinitionFeature:kl,\u0275\u0275nextContext:kf,\u0275\u0275namespaceHTML:Vn,\u0275\u0275namespaceMathML:lr,\u0275\u0275namespaceSVG:_i,\u0275\u0275enableBindings:gi,\u0275\u0275disableBindings:Ni,\u0275\u0275elementStart:ql,\u0275\u0275elementEnd:ec,\u0275\u0275element:If,\u0275\u0275elementContainerStart:tc,\u0275\u0275elementContainerEnd:nc,\u0275\u0275elementContainer:Pf,\u0275\u0275pureFunction0:am,\u0275\u0275pureFunction1:lm,\u0275\u0275pureFunction2:cm,\u0275\u0275pureFunction3:um,\u0275\u0275pureFunction4:dm,\u0275\u0275pureFunction5:hm,\u0275\u0275pureFunction6:fm,\u0275\u0275pureFunction7:pm,\u0275\u0275pureFunction8:mm,\u0275\u0275pureFunctionV:gm,\u0275\u0275getCurrentView:Af,\u0275\u0275restoreView:d,\u0275\u0275listener:rc,\u0275\u0275projection:Lf,\u0275\u0275syntheticHostProperty:Bc,\u0275\u0275syntheticHostListener:oc,\u0275\u0275pipeBind1:Dm,\u0275\u0275pipeBind2:Tm,\u0275\u0275pipeBind3:Mm,\u0275\u0275pipeBind4:wm,\u0275\u0275pipeBindV:Sm,\u0275\u0275projectionDef:Nf,\u0275\u0275hostProperty:Lc,\u0275\u0275property:Jl,\u0275\u0275propertyInterpolate:ac,\u0275\u0275propertyInterpolate1:qs,\u0275\u0275propertyInterpolate2:lc,\u0275\u0275propertyInterpolate3:cc,\u0275\u0275propertyInterpolate4:uc,\u0275\u0275propertyInterpolate5:dc,\u0275\u0275propertyInterpolate6:hc,\u0275\u0275propertyInterpolate7:fc,\u0275\u0275propertyInterpolate8:pc,\u0275\u0275propertyInterpolateV:mc,\u0275\u0275pipe:Em,\u0275\u0275queryRefresh:Rm,\u0275\u0275viewQuery:Fm,\u0275\u0275loadQuery:Nm,\u0275\u0275contentQuery:km,\u0275\u0275reference:mf,\u0275\u0275classMap:zf,\u0275\u0275classMapInterpolate1:qf,\u0275\u0275classMapInterpolate2:ep,\u0275\u0275classMapInterpolate3:tp,\u0275\u0275classMapInterpolate4:np,\u0275\u0275classMapInterpolate5:ip,\u0275\u0275classMapInterpolate6:rp,\u0275\u0275classMapInterpolate7:op,\u0275\u0275classMapInterpolate8:sp,\u0275\u0275classMapInterpolateV:ap,\u0275\u0275styleMap:dr,\u0275\u0275styleMapInterpolate1:lp,\u0275\u0275styleMapInterpolate2:cp,\u0275\u0275styleMapInterpolate3:up,\u0275\u0275styleMapInterpolate4:dp,\u0275\u0275styleMapInterpolate5:hp,\u0275\u0275styleMapInterpolate6:fp,\u0275\u0275styleMapInterpolate7:pp,\u0275\u0275styleMapInterpolate8:mp,\u0275\u0275styleMapInterpolateV:gp,\u0275\u0275styleProp:gc,\u0275\u0275stylePropInterpolate1:Ic,\u0275\u0275stylePropInterpolate2:Pc,\u0275\u0275stylePropInterpolate3:Ac,\u0275\u0275stylePropInterpolate4:Oc,\u0275\u0275stylePropInterpolate5:xc,\u0275\u0275stylePropInterpolate6:Rc,\u0275\u0275stylePropInterpolate7:Fc,\u0275\u0275stylePropInterpolate8:kc,\u0275\u0275stylePropInterpolateV:Nc,\u0275\u0275classProp:_c,\u0275\u0275advance:uh,\u0275\u0275template:ff,\u0275\u0275text:Xf,\u0275\u0275textInterpolate:vc,\u0275\u0275textInterpolate1:ta,\u0275\u0275textInterpolate2:bc,\u0275\u0275textInterpolate3:Cc,\u0275\u0275textInterpolate4:Ec,\u0275\u0275textInterpolate5:Dc,\u0275\u0275textInterpolate6:Tc,\u0275\u0275textInterpolate7:Mc,\u0275\u0275textInterpolate8:wc,\u0275\u0275textInterpolateV:Sc,\u0275\u0275i18n:$p,\u0275\u0275i18nAttributes:Hp,\u0275\u0275i18nExp:Wc,\u0275\u0275i18nStart:Hc,\u0275\u0275i18nEnd:Uc,\u0275\u0275i18nApply:Up,\u0275\u0275i18nPostprocess:Wp,\u0275\u0275resolveWindow:Nd,\u0275\u0275resolveDocument:Ld,\u0275\u0275resolveBody:Bd,\u0275\u0275setComponentScope:M,\u0275\u0275setNgModuleScope:rn,\u0275\u0275sanitizeHtml:Cd,\u0275\u0275sanitizeStyle:Ed,\u0275\u0275sanitizeResourceUrl:Wa,\u0275\u0275sanitizeScript:Dd,\u0275\u0275sanitizeUrl:Ua,\u0275\u0275sanitizeUrlOrResourceUrl:wd,\u0275\u0275trustConstantHtml:Td,\u0275\u0275trustConstantResourceUrl:Md,forwardRef:A,resolveForwardRef:T}))();let No=null;function D0(){No=null}const bs=[];let iu=!1;function $m(){if(!iu){iu=!0;try{for(let e=bs.length-1;e>=0;e--){const{moduleType:t,ngModule:n}=bs[e];n.declarations&&n.declarations.every(Hm)&&(bs.splice(e,1),w0(t,n))}}finally{iu=!1}}}function Hm(e){return Array.isArray(e)?e.every(Hm):!!T(e)}function Um(e,t={}){Wm(e,t),function T0(e,t){bs.push({moduleType:e,ngModule:t})}(e,t)}function Wm(e,t,n=!1){const r=qi(t.declarations||St);let o=null;Object.defineProperty(e,Ge,{configurable:!0,get:()=>(null===o&&(o=ri().compileNgModule(Ti,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:qi(t.bootstrap||St).map(T),declarations:r.map(T),imports:qi(t.imports||St).map(T).map(Qm),exports:qi(t.exports||St).map(T).map(Qm),schemas:t.schemas?qi(t.schemas):null,id:t.id||null}),o.schemas||(o.schemas=[])),o)});let a=null;Object.defineProperty(e,ce,{get:()=>{if(null===a){const y=ri();a=y.compileFactory(Ti,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,deps:Ns(e),target:y.FactoryTarget.NgModule,typeArgumentCount:0})}return a},configurable:!1});let f=null;Object.defineProperty(e,Ot,{get:()=>{if(null===f){const y={name:e.name,type:e,providers:t.providers||St,imports:[(t.imports||St).map(T),(t.exports||St).map(T)]};f=ri().compileInjector(Ti,`ng:///${e.name}/\u0275inj.js`,y)}return f},configurable:!1})}let pa=new WeakMap,ou=new WeakMap;function M0(){pa=new WeakMap,ou=new WeakMap,bs.length=0}function w0(e,t){const n=qi(t.declarations||St),r=Cs(e);n.forEach(o=>{o.hasOwnProperty(bn)?su(Ve(o),r):!o.hasOwnProperty(Zt)&&!o.hasOwnProperty(an)&&(o.ngSelectorScope=e)})}function su(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map(n=>n.hasOwnProperty(bn)?Ve(n):ht(n)).filter(n=>!!n),e.pipeDefs=()=>Array.from(t.compilation.pipes).map(n=>Bt(n)),e.schemas=t.schemas,e.tView=null}function Cs(e){if(!au(e))throw new Error(`${e.name} does not have a module def (\u0275mod property)`);const t=Nt(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 br(t.imports).forEach(r=>{const o=r;if(!au(o))throw new Error(`Importing ${o.name} which does not have a \u0275mod property`);const a=Cs(o);a.exported.directives.forEach(f=>n.compilation.directives.add(f)),a.exported.pipes.forEach(f=>n.compilation.pipes.add(f))}),br(t.declarations).forEach(r=>{Bt(r)?n.compilation.pipes.add(r):n.compilation.directives.add(r)}),br(t.exports).forEach(r=>{const o=r;if(au(o)){const a=Cs(o);a.exported.directives.forEach(f=>{n.compilation.directives.add(f),n.exported.directives.add(f)}),a.exported.pipes.forEach(f=>{n.compilation.pipes.add(f),n.exported.pipes.add(f)})}else Bt(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 au(e){return!!Nt(e)}let lu=0;function Zm(e,t){let n=null;(function w_(e,t){ad(t)&&(ao.set(e,t),Qo.add(e))})(e,t),Jm(e,t),Object.defineProperty(e,bn,{get:()=>{if(null===n){const r=ri();if(ad(t)){const B=[`Component '${e.name}' is not resolved:`];throw t.templateUrl&&B.push(` - templateUrl: ${t.templateUrl}`),t.styleUrls&&t.styleUrls.length&&B.push(` - styleUrls: ${JSON.stringify(t.styleUrls)}`),B.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(B.join("\n"))}const o=function E0(){return No}();let a=t.preserveWhitespaces;void 0===a&&(a=null!==o&&void 0!==o.preserveWhitespaces&&o.preserveWhitespaces);let f=t.encapsulation;void 0===f&&(f=null!==o&&void 0!==o.defaultEncapsulation?o.defaultEncapsulation:ft.Emulated);const y=t.templateUrl||`ng:///${e.name}/template.html`,w=Object.assign(Object.assign({},Xm(e,t)),{typeSourceSpan:r.createParseSourceSpan("Component",e.name,y),template:t.template||"",preserveWhitespaces:a,styles:t.styles||St,animations:t.animations,directives:[],changeDetection:t.changeDetection,pipes:new Map,encapsulation:f,interpolation:t.interpolation,viewProviders:t.viewProviders||null});lu++;try{w.usesInheritance&&qm(e),n=r.compileComponent(Ti,y,w)}finally{lu--}if(0===lu&&$m(),function I0(e){return void 0!==e.ngSelectorScope}(e)){const B=Cs(e.ngSelectorScope);su(n,B)}}return n},configurable:!1})}function cu(e,t){let n=null;Jm(e,t||{}),Object.defineProperty(e,Zt,{get:()=>{if(null===n){const r=Ym(e,t||{});n=ri().compileDirective(Ti,r.sourceMapUrl,r.metadata)}return n},configurable:!1})}function Ym(e,t){const n=e&&e.name,r=`ng:///${n}/\u0275dir.js`,o=ri(),a=Xm(e,t);return a.typeSourceSpan=o.createParseSourceSpan("Directive",n,r),a.usesInheritance&&qm(e),{metadata:a,sourceMapUrl:r}}function Jm(e,t){let n=null;Object.defineProperty(e,ce,{get:()=>{if(null===n){const r=Ym(e,t),o=ri();n=o.compileFactory(Ti,`ng:///${e.name}/\u0275fac.js`,{name:r.metadata.name,type:r.metadata.type,typeArgumentCount:0,deps:Ns(e),target:o.FactoryTarget.Directive})}return n},configurable:!1})}function P0(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function Xm(e,t){const n=Na(),r=n.ownPropMetadata(e);return{name:e.name,type:e,selector:void 0!==t.selector?t.selector:null,host:t.host||zt,propMetadata:r,inputs:t.inputs||St,outputs:t.outputs||St,queries:eg(e,r,tg),lifecycle:{usesOnChanges:n.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!P0(e),exportAs:x0(t.exportAs),providers:t.providers||null,viewQueries:eg(e,r,ng)}}function qm(e){const t=Object.prototype;let n=Object.getPrototypeOf(e.prototype).constructor;for(;n&&n!==t;)!ht(n)&&!Ve(n)&&F0(n)&&cu(n,null),n=Object.getPrototypeOf(n)}function A0(e){return"string"==typeof e?rg(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 eg(e,t,n){const r=[];for(const o in t)if(t.hasOwnProperty(o)){const a=t[o];a.forEach(f=>{if(n(f)){if(!f.selector)throw new Error(`Can't construct a query for the property "${o}" of "${le(e)}" since the query selector wasn't defined.`);if(a.some(ig))throw new Error("Cannot combine @Input decorators with query decorators");r.push(O0(o,f))}})}return r}function x0(e){return void 0===e?null:rg(e)}function tg(e){const t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function ng(e){const t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function ig(e){return"Input"===e.ngMetadataName}function rg(e){return e.split(",").map(t=>t.trim())}const R0=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function F0(e){const t=Na();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 f=o[a],y=f.ngMetadataName;if(ig(f)||tg(f)||ng(f)||"Output"===y||"HostBinding"===y||"HostListener"===y)return!0}}return!1}function og(e,t){let n=null,r=null;Object.defineProperty(e,ce,{get:()=>{if(null===r){const o=sg(e,t),a=ri();r=a.compileFactory(Ti,`ng:///${o.name}/\u0275fac.js`,{name:o.name,type:o.type,typeArgumentCount:0,deps:Ns(e),target:a.FactoryTarget.Pipe})}return r},configurable:!1}),Object.defineProperty(e,an,{get:()=>{if(null===n){const o=sg(e,t);n=ri().compilePipe(Ti,`ng:///${o.name}/\u0275pipe.js`,o)}return n},configurable:!1})}function sg(e,t){return{type:e,name:e.name,pipeName:t.name,pure:void 0===t.pure||t.pure}}const ag=ro("Directive",(e={})=>e,void 0,void 0,(e,t)=>cu(e,t)),k0=ro("Component",(e={})=>Object.assign({changeDetection:Ce.Default},e),ag,void 0,(e,t)=>Zm(e,t)),N0=ro("Pipe",e=>Object.assign({pure:!0},e),void 0,void 0,(e,t)=>og(e,t)),L0=jr("Input",e=>({bindingPropertyName:e})),B0=jr("Output",e=>({bindingPropertyName:e})),j0=jr("HostBinding",e=>({hostPropertyName:e})),V0=jr("HostListener",(e,t)=>({eventName:e,args:t})),$0=ro("NgModule",e=>e,void 0,void 0,(e,t)=>Um(e,t));function ma(...e){}const uu=new Yn("Application Initializer");let Lo=(()=>{class e{constructor(n){this.appInits=n,this.resolve=ma,this.reject=ma,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(ic(a))n.push(a);else if(xf(a)){const f=new Promise((y,w)=>{a.subscribe({complete:y,error:w})});n.push(f)}}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)(si(uu,8))},e.\u0275prov=Je({token:e,factory:e.\u0275fac}),e})();const lg=new Yn("AppId"),cg={provide:lg,useFactory:function H0(){return`${du()}${du()}${du()}`},deps:[]};function du(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ug=new Yn("Platform Initializer"),dg=new Yn("Platform ID"),hg=new Yn("appBootstrapListener"),U0=new Yn("Application Packages Root URL");let fg=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Je({token:e,factory:e.\u0275fac}),e})();const ga=new Yn("LocaleId"),pg=new Yn("DefaultCurrencyCode"),W0=new Yn("Translations"),z0=new Yn("TranslationsFormat");var wr=(()=>((wr=wr||{})[wr.Error=0]="Error",wr[wr.Warning=1]="Warning",wr[wr.Ignore=2]="Ignore",wr))();class mg{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let hu=(()=>{class e{compileModuleSync(n){return new ua(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),a=br(Nt(n).declarations).reduce((f,y)=>{const w=Ve(y);return w&&f.push(new ca(w)),f},[]);return new mg(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=Je({token:e,factory:e.\u0275fac}),e})();const gg=new Yn("compilerOptions");class K0{}const G0=(()=>Promise.resolve(0))();function fu(e){"undefined"==typeof Zone?G0.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class $i{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Mr(!1),this.onMicrotaskEmpty=new Mr(!1),this.onStable=new Mr(!1),this.onError=new Mr(!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=Ht.requestAnimationFrame,t=Ht.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(Ht,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,mu(e),e.isCheckStableRunning=!0,pu(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),mu(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,a,f,y)=>{try{return _g(e),n.invokeTask(o,a,f,y)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&t(),yg(e)}},onInvoke:(n,r,o,a,f,y,w)=>{try{return _g(e),n.invoke(o,a,f,y,w)}finally{e.shouldCoalesceRunChangeDetection&&t(),yg(e)}},onHasTask:(n,r,o,a)=>{n.hasTask(o,a),r===o&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,mu(e),pu(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!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!$i.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if($i.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,f=a.scheduleEventTask("NgZoneEvent: "+o,t,Z0,ma,ma);try{return a.runTask(f,n,r)}finally{a.cancelTask(f)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const Z0={};function pu(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 mu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function _g(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function yg(e){e._nesting--,pu(e)}class vg{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Mr,this.onMicrotaskEmpty=new Mr,this.onStable=new Mr,this.onError=new Mr}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 bg=(()=>{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:()=>{$i.assertNotInAngularZone(),fu(()=>{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())fu(()=>{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(f=>f.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)(si($i))},e.\u0275prov=Je({token:e,factory:e.\u0275fac}),e})(),gu=(()=>{class e{constructor(){this._applications=new Map,_u.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 _u.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Je({token:e,factory:e.\u0275fac}),e})();class X0{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}function q0(e){_u=e}let pr,_u=new X0;function Cg(e,t,n){const r=new ua(n);return Promise.resolve(r)}function Eg(e){return e.isBoundToModule}const yu=new Yn("AllowMultipleToken");class eE{constructor(t,n){this.name=t,this.token=n}}function Dg(e){if(pr&&!pr.destroyed&&!pr.injector.get(yu,!1))throw new V(400,"");pr=e.get(bu);const t=e.get(ug,null);return t&&t.forEach(n=>n()),pr}function Tg(e,t,n=[]){const r=`Platform: ${t}`,o=new Yn(r);return(a=[])=>{let f=vu();if(!f||f.injector.get(yu,!1))if(e)e(n.concat(a).concat({provide:o,useValue:!0}));else{const y=n.concat(a).concat({provide:o,useValue:!0},{provide:Il,useValue:"platform"});Dg(Vi.create({providers:y,name:r}))}return Mg()}}function Mg(e){const t=vu();if(!t)throw new V(401,"");return t}function tE(){pr&&!pr.destroyed&&pr.destroy()}function vu(){return pr&&!pr.destroyed?pr:null}let bu=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const y=function nE(e,t){let n;return n="noop"===e?new vg:("zone.js"===e?void 0:e)||new $i({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}),w=[{provide:$i,useValue:y}];return y.run(()=>{const B=Vi.create({providers:w,parent:this.injector,name:n.moduleType.name}),K=n.create(B),Ee=K.injector.get(qo,null);if(!Ee)throw new V(402,"");return y.runOutsideAngular(()=>{const We=y.onError.subscribe({next:it=>{Ee.handleError(it)}});K.onDestroy(()=>{Cu(this._modules,K),We.unsubscribe()})}),function iE(e,t,n){try{const r=n();return ic(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(Ee,y,()=>{const We=K.injector.get(Lo);return We.runInitializers(),We.donePromise.then(()=>(bp(K.injector.get(ga,us)||us),this._moduleDoBootstrap(K),K))})})}bootstrapModule(n,r=[]){const o=wg({},r);return Cg(0,0,n).then(a=>this.bootstrapModuleFactory(a,o))}_moduleDoBootstrap(n){const r=n.injector.get(Es);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new V(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 V(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)(si(Vi))},e.\u0275prov=Je({token:e,factory:e.\u0275fac}),e})();function wg(e,t){return Array.isArray(t)?t.reduce(wg,e):Object.assign(Object.assign({},e),t)}let Es=(()=>{class e{constructor(n,r,o,a,f){this._zone=n,this._injector=r,this._exceptionHandler=o,this._componentFactoryResolver=a,this._initStatus=f,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(B=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{B.next(this._stable),B.complete()})}),w=new m.y(B=>{let K;this._zone.runOutsideAngular(()=>{K=this._zone.onStable.subscribe(()=>{$i.assertNotInAngularZone(),fu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,B.next(!0))})})});const Ee=this._zone.onUnstable.subscribe(()=>{$i.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{B.next(!1)}))});return()=>{K.unsubscribe(),Ee.unsubscribe()}});this.isStable=(0,c.T)(y,w.pipe((0,s.B)()))}bootstrap(n,r){if(!this._initStatus.done)throw new V(405,"");let o;o=n instanceof sa?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);const a=Eg(o)?void 0:this._injector.get(Fo),y=o.create(Vi.NULL,[],r||o.selector,a),w=y.location.nativeElement,B=y.injector.get(bg,null),K=B&&y.injector.get(gu);return B&&K&&K.registerApplication(w,B),y.onDestroy(()=>{this.detachView(y.hostView),Cu(this.components,y),K&&K.unregisterApplication(w)}),this._loadComponent(y),y}tick(){if(this._runningTick)throw new V(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;Cu(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(hg,[]).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)(si($i),si(Vi),si(qo),si(ms),si(Lo))},e.\u0275prov=Je({token:e,factory:e.\u0275fac}),e})();function Cu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Ig=!0,Pg=!1;function oE(){return Pg=!0,Ig}function sE(){if(Pg)throw new Error("Cannot enable prod mode after platform setup.");Ig=!1}function aE(e){const t=sm(e);if(!t)throw Ag(e);return new ua(t)}function lE(e){const t=sm(e);if(!t)throw Ag(e);return t}function Ag(e){return new Error(`No module with ID ${e} loaded`)}let Og=(()=>{class e{}return e.__NG_ELEMENT_ID__=xg,e})();function xg(e){return function cE(e,t,n){if(Mi(e)&&!n){const r=Ft(e.index,t);return new Ro(r,r)}return 47&e.type?new Ro(t[16],t):null}(p(),Mt(),16==(16&e))}class Rg extends Og{}class uE extends Rg{}class dE{constructor(t,n){this.name=t,this.callback=n}}function hE(e){return e.map(t=>t.nativeElement)}class Eu{constructor(t){this.nativeNode=t}get parent(){const t=this.nativeNode.parentNode;return t?new Ds(t):null}get injector(){return qh(this.nativeNode)}get componentInstance(){const t=this.nativeNode;return t&&(xl(t)||Jh(t))}get context(){return xl(this.nativeNode)||Yh(this.nativeNode)}get listeners(){return tf(this.nativeNode).filter(t=>"dom"===t.type)}get references(){return function jv(e){const t=yi(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=yi(e);if(null===t)return[];const r=t.lView[1],o=r.data[t.nodeIndex],a=[],y=o.directiveEnd;for(let w=1048575&o.providerIndexes;w<y;w++){let B=r.data[w];$v(B)&&(B=B.type),a.push(B)}return a}(this.nativeNode)}}class Ds extends Eu{constructor(t){super(t)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){const t=yi(this.nativeNode);return null!==t?t.lView[1].data[t.nodeIndex].value:this.nativeNode.nodeName}get properties(){const t=yi(this.nativeNode);if(null===t)return{};const n=t.lView,r=n[1].data,o=r[t.nodeIndex],a={};return function fE(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 f=e[a];pE(f)&&(t[a]=f)}n=Object.getPrototypeOf(n)}}}(this.nativeElement,a),function mE(e,t,n,r){let o=t.propertyBindings;if(null!==o)for(let a=0;a<o.length;a++){const f=o[a],w=r[f].split("\ufffd"),B=w[0];if(w.length>1){let K=w[1];for(let Ee=1;Ee<w.length-1;Ee++)K+=$(n[f+Ee-1])+w[Ee+1];e[B]=K}else e[B]=n[f]}}(a,o,n,r),a}get attributes(){const t={},n=this.nativeElement;if(!n)return t;const r=yi(n);if(null===r)return{};const a=r.lView[1].data[r.nodeIndex].attrs,f=[];if(a){let w=0;for(;w<a.length;){const B=a[w];if("string"!=typeof B)break;t[B]=a[w+1],f.push(B.toLowerCase()),w+=2}}const y=n.attributes;for(let w=0;w<y.length;w++){const B=y[w],K=B.name.toLowerCase();-1===f.indexOf(K)&&(t[K]=B.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(Su(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(Su(n[o]));return r}query(t){return this.queryAll(t)[0]||null}queryAll(t){const n=[];return Fg(this,t,n,!0),n}queryAllNodes(t){const n=[];return Fg(this,t,n,!1),n}triggerEventHandler(t,n){const r=this.nativeNode,o=[];this.listeners.forEach(a=>{if(a.name===t){const f=a.callback;f.call(r,n),o.push(f)}}),"function"==typeof r.eventListeners&&r.eventListeners(t).forEach(a=>{if(-1!==a.toString().indexOf("__ngUnwrap__")){const f=a("__ngUnwrap__");return-1===o.indexOf(f)&&f.call(r,n)}})}}function pE(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function Fg(e,t,n,r){const o=yi(e.nativeNode);null!==o?Yr(o.lView[1].data[o.nodeIndex],o.lView,t,n,r,e.nativeNode):Tu(e.nativeNode,t,n,r)}function Yr(e,t,n,r,o,a){const f=function ze(e,t){const n=null===e?-1:e.index;return-1!==n?Ln(t[n]):null}(e,t);if(11&e.type){if(Du(f,n,r,o,a),Mi(e)){const w=Ft(e.index,t);w&&w[1].firstChild&&Yr(w[1].firstChild,w,n,r,o,a)}else e.child&&Yr(e.child,t,n,r,o,a),f&&Tu(f,n,r,o);const y=t[e.index];Gn(y)&&kg(y,n,r,o,a)}else if(4&e.type){const y=t[e.index];Du(y[7],n,r,o,a),kg(y,n,r,o,a)}else if(16&e.type){const y=t[16],B=y[6].projection[e.projection];if(Array.isArray(B))for(let K of B)Du(K,n,r,o,a);else if(B){const K=y[3];Yr(K[1].data[B.index],K,n,r,o,a)}}else e.child&&Yr(e.child,t,n,r,o,a);if(a!==f){const y=4&e.flags?e.projectionNext:e.next;y&&Yr(y,t,n,r,o,a)}}function kg(e,t,n,r,o){for(let a=10;a<e.length;a++){const f=e[a],y=f[1].firstChild;y&&Yr(y,f,t,n,r,o)}}function Du(e,t,n,r,o){if(o!==e){const a=_a(e);if(!a)return;(r&&a instanceof Ds&&t(a)&&-1===n.indexOf(a)||!r&&t(a)&&-1===n.indexOf(a))&&n.push(a)}}function Tu(e,t,n,r){const o=e.childNodes,a=o.length;for(let f=0;f<a;f++){const y=o[f],w=_a(y);w&&((r&&w instanceof Ds&&t(w)&&-1===n.indexOf(w)||!r&&t(w)&&-1===n.indexOf(w))&&n.push(w),Tu(y,t,n,r))}}const wu="__ng_debug__";function Su(e){return e instanceof Node?(e.hasOwnProperty(wu)||(e[wu]=e.nodeType==Node.ELEMENT_NODE?new Ds(e):new Eu(e)),e[wu]):null}const _a=Su,_E=function gE(e){return null},yE=Eu,vE=Ds;class Ng{constructor(){}supports(t){return os(t)}create(t){return new Lg(t)}}const bE=(e,t)=>t;class Lg{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||bE}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 f=!r||n&&n.currentIndex<jg(r,o,a)?n:r,y=jg(f,o,a),w=f.currentIndex;if(f===r)o--,r=r._nextRemoved;else if(n=n._next,null==f.previousIndex)o++;else{a||(a=[]);const B=y-o,K=w-o;if(B!=K){for(let We=0;We<B;We++){const it=We<a.length?a[We]:a[We]=0,gt=it+We;K<=gt&&gt<B&&(a[We]=it+1)}a[f.previousIndex]=K-B}}y!==w&&t(f,y,w)}}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=[]),!os(t))throw new V(900,"");return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let o,a,f,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let y=0;y<this.length;y++)a=t[y],f=this._trackByFn(y,a),null!==n&&Object.is(n.trackById,f)?(r&&(n=this._verifyReinsertion(n,a,f,y)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,f,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[yo()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,y=>{f=this._trackByFn(o,y),null!==n&&Object.is(n.trackById,f)?(r&&(n=this._verifyReinsertion(n,y,f,o)),Object.is(n.item,y)||this._addIdentityChange(n,y)):(n=this._mismatch(n,y,f,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 CE(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 Bg),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 Bg),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 CE{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 EE{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 Bg{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new EE,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 jg(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 Vg{constructor(){}supports(t){return t instanceof Map||Ll(t)}create(){return new DE}}class DE{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||Ll(t)))throw new V(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,f=o._next;return a&&(a._next=f),f&&(f._prev=a),o._next=null,o._prev=null,o}const r=new TE(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 TE{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 $g(){return new ya([new Ng])}let ya=(()=>{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||$g()),deps:[[e,new zr,new Wr]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new V(901,"")}}return e.\u0275prov=Je({token:e,providedIn:"root",factory:$g}),e})();function Hg(){return new va([new Vg])}let va=(()=>{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||Hg()),deps:[[e,new zr,new Wr]]}}find(n){const r=this.factories.find(a=>a.supports(n));if(r)return r;throw new V(901,"")}}return e.\u0275prov=Je({token:e,providedIn:"root",factory:Hg}),e})();const ME=[new Vg],Ug=new ya([new Ng]),Wg=new va(ME),SE=Tg(null,"core",[{provide:dg,useValue:"unknown"},{provide:bu,deps:[Vi]},{provide:gu,deps:[]},{provide:fg,deps:[]}]),xE=[{provide:Es,useClass:Es,deps:[$i,Vi,qo,ms,Lo]},{provide:e0,deps:[$i],useFactory:function RE(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:Lo,useClass:Lo,deps:[[new Wr,uu]]},{provide:hu,useClass:hu,deps:[]},cg,{provide:ya,useFactory:function IE(){return Ug},deps:[]},{provide:va,useFactory:function PE(){return Wg},deps:[]},{provide:ga,useFactory:function AE(e){return e||function OE(){return"undefined"!=typeof $localize&&$localize.locale||us}()},deps:[[new Go(ga),new Wr,new zr]]},{provide:pg,useValue:"USD"}];let FE=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(si(Es))},e.\u0275mod=Kt({type:e}),e.\u0275inj=me({providers:xE}),e})();const kE=!0;function NE(e){return ri().compileDirectiveDeclaration(Ti,`ng:///${e.type.name}/\u0275fac.js`,e)}function LE(e){var t,n;nm(e.type,e.decorators,null!==(t=e.ctorParameters)&&void 0!==t?t:null,null!==(n=e.propDecorators)&&void 0!==n?n:null)}function BE(e){return ri().compileComponentDeclaration(Ti,`ng:///${e.type.name}/\u0275cmp.js`,e)}function jE(e){return ri(function VE(e){switch(e){case ii.Directive:return"directive";case ii.Component:return"component";case ii.Injectable:return"injectable";case ii.Pipe:return"pipe";case ii.NgModule:return"NgModule"}}(e.target)).compileFactoryDeclaration(Ti,`ng:///${e.type.name}/\u0275fac.js`,e)}function $E(e){return ri().compileInjectableDeclaration(Ti,`ng:///${e.type.name}/\u0275prov.js`,e)}function HE(e){return ri().compileInjectorDeclaration(Ti,`ng:///${e.type.name}/\u0275inj.js`,e)}function UE(e){return ri().compileNgModuleDeclaration(Ti,`ng:///${e.type.name}/\u0275mod.js`,e)}function WE(e){return ri().compilePipeDeclaration(Ti,`ng:///${e.type.name}/\u0275pipe.js`,e)}},3075:(Le,g,l)=>{"use strict";l.r(g),l.d(g,{AbstractControl:()=>Lt,AbstractControlDirective:()=>Ye,AbstractFormGroupDirective:()=>Un,COMPOSITION_BUFFER_MODE:()=>b,CheckboxControlValueAccessor:()=>h,CheckboxRequiredValidator:()=>ki,ControlContainer:()=>Ct,DefaultValueAccessor:()=>x,EmailValidator:()=>Rn,FormArray:()=>jt,FormArrayName:()=>Di,FormBuilder:()=>In,FormControl:()=>qt,FormControlDirective:()=>Wi,FormControlName:()=>Ki,FormGroup:()=>vn,FormGroupDirective:()=>Si,FormGroupName:()=>ci,FormsModule:()=>Ft,MaxLengthValidator:()=>R,MaxValidator:()=>Zi,MinLengthValidator:()=>ar,MinValidator:()=>Ri,NG_ASYNC_VALIDATORS:()=>le,NG_VALIDATORS:()=>$,NG_VALUE_ACCESSOR:()=>D,NgControl:()=>yt,NgControlStatus:()=>N,NgControlStatusGroup:()=>oe,NgForm:()=>$n,NgModel:()=>Gn,NgModelGroup:()=>ni,NgSelectOption:()=>_r,NumberValueAccessor:()=>hi,PatternValidator:()=>F,RadioControlValueAccessor:()=>Qn,RangeValueAccessor:()=>Ei,ReactiveFormsModule:()=>Tn,RequiredValidator:()=>Yi,SelectControlValueAccessor:()=>Pi,SelectMultipleControlValueAccessor:()=>mi,VERSION:()=>fn,Validators:()=>pe,\u0275InternalFormsSharedModule:()=>bt,\u0275NgNoValidate:()=>Ci,\u0275NgSelectMultipleOption:()=>ir});var i=l(5e3),u=l(9808),m=l(188),c=l(4128),s=l(4004);let _=(()=>{class k{constructor(E,X){this._renderer=E,this._elementRef=X,this.onChange=lt=>{},this.onTouched=()=>{}}setProperty(E,X){this._renderer.setProperty(this._elementRef.nativeElement,E,X)}registerOnTouched(E){this.onTouched=E}registerOnChange(E){this.onChange=E}setDisabledState(E){this.setProperty("disabled",E)}}return k.\u0275fac=function(E){return new(E||k)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k}),k})(),C=(()=>{class k extends _{}return k.\u0275fac=function(){let O;return function(X){return(O||(O=i.\u0275\u0275getInheritedFactory(k)))(X||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,features:[i.\u0275\u0275InheritDefinitionFeature]}),k})();const D=new i.InjectionToken("NgValueAccessor"),I={provide:D,useExisting:(0,i.forwardRef)(()=>h),multi:!0};let h=(()=>{class k extends C{writeValue(E){this.setProperty("checked",E)}}return k.\u0275fac=function(){let O;return function(X){return(O||(O=i.\u0275\u0275getInheritedFactory(k)))(X||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(E,X){1&E&&i.\u0275\u0275listener("change",function(Vt){return X.onChange(Vt.target.checked)})("blur",function(){return X.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([I]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const A={provide:D,useExisting:(0,i.forwardRef)(()=>x),multi:!0},b=new i.InjectionToken("CompositionEventMode");let x=(()=>{class k extends _{constructor(E,X,lt){super(E,X),this._compositionMode=lt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function T(){const k=(0,u.\u0275getDOM)()?(0,u.\u0275getDOM)().getUserAgent():"";return/android (\d+)/.test(k.toLowerCase())}())}writeValue(E){this.setProperty("value",null==E?"":E)}_handleInput(E){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(E)}_compositionStart(){this._composing=!0}_compositionEnd(E){this._composing=!1,this._compositionMode&&this.onChange(E)}}return k.\u0275fac=function(E){return new(E||k)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(b,8))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,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(E,X){1&E&&i.\u0275\u0275listener("input",function(Vt){return X._handleInput(Vt.target.value)})("blur",function(){return X.onTouched()})("compositionstart",function(){return X._compositionStart()})("compositionend",function(Vt){return X._compositionEnd(Vt.target.value)})},features:[i.\u0275\u0275ProvidersFeature([A]),i.\u0275\u0275InheritDefinitionFeature]}),k})();function V(k){return null==k||0===k.length}function fe(k){return null!=k&&"number"==typeof k.length}const $=new i.InjectionToken("NgValidators"),le=new i.InjectionToken("NgAsyncValidators"),Me=/^(?=.{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 pe{static min(O){return ye(O)}static max(O){return se(O)}static required(O){return De(O)}static requiredTrue(O){return ke(O)}static email(O){return Xe(O)}static minLength(O){return st(O)}static maxLength(O){return q(O)}static pattern(O){return Pe(O)}static nullValidator(O){return null}static compose(O){return ve(O)}static composeAsync(O){return ct(O)}}function ye(k){return O=>{if(V(O.value)||V(k))return null;const E=parseFloat(O.value);return!isNaN(E)&&E<k?{min:{min:k,actual:O.value}}:null}}function se(k){return O=>{if(V(O.value)||V(k))return null;const E=parseFloat(O.value);return!isNaN(E)&&E>k?{max:{max:k,actual:O.value}}:null}}function De(k){return V(k.value)?{required:!0}:null}function ke(k){return!0===k.value?null:{required:!0}}function Xe(k){return V(k.value)||Me.test(k.value)?null:{email:!0}}function st(k){return O=>V(O.value)||!fe(O.value)?null:O.value.length<k?{minlength:{requiredLength:k,actualLength:O.value.length}}:null}function q(k){return O=>fe(O.value)&&O.value.length>k?{maxlength:{requiredLength:k,actualLength:O.value.length}}:null}function Pe(k){if(!k)return J;let O,E;return"string"==typeof k?(E="","^"!==k.charAt(0)&&(E+="^"),E+=k,"$"!==k.charAt(k.length-1)&&(E+="$"),O=new RegExp(E)):(E=k.toString(),O=k),X=>{if(V(X.value))return null;const lt=X.value;return O.test(lt)?null:{pattern:{requiredPattern:E,actualValue:lt}}}}function J(k){return null}function ae(k){return null!=k}function Ie(k){const O=(0,i.\u0275isPromise)(k)?(0,m.D)(k):k;return(0,i.\u0275isObservable)(O),O}function ie(k){let O={};return k.forEach(E=>{O=null!=E?Object.assign(Object.assign({},O),E):O}),0===Object.keys(O).length?null:O}function Ke(k,O){return O.map(E=>E(k))}function nt(k){return k.map(O=>function ge(k){return!k.validate}(O)?O:E=>O.validate(E))}function ve(k){if(!k)return null;const O=k.filter(ae);return 0==O.length?null:function(E){return ie(Ke(E,O))}}function $e(k){return null!=k?ve(nt(k)):null}function ct(k){if(!k)return null;const O=k.filter(ae);return 0==O.length?null:function(E){const X=Ke(E,O).map(Ie);return(0,c.D)(X).pipe((0,s.U)(ie))}}function Tt(k){return null!=k?ct(nt(k)):null}function Fe(k,O){return null===k?[O]:Array.isArray(k)?[...k,O]:[k,O]}function Je(k){return k._rawValidators}function Y(k){return k._rawAsyncValidators}function me(k){return k?Array.isArray(k)?k:[k]:[]}function we(k,O){return Array.isArray(k)?k.includes(O):k===O}function Re(k,O){const E=me(O);return me(k).forEach(lt=>{we(E,lt)||E.push(lt)}),E}function _e(k,O){return me(O).filter(E=>!we(k,E))}class Ye{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(O){this._rawValidators=O||[],this._composedValidatorFn=$e(this._rawValidators)}_setAsyncValidators(O){this._rawAsyncValidators=O||[],this._composedAsyncValidatorFn=Tt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(O){this._onDestroyCallbacks.push(O)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(O=>O()),this._onDestroyCallbacks=[]}reset(O){this.control&&this.control.reset(O)}hasError(O,E){return!!this.control&&this.control.hasError(O,E)}getError(O,E){return this.control?this.control.getError(O,E):null}}class yt extends Ye{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ct extends Ye{get formDirective(){return null}get path(){return null}}class Ot{constructor(O){this._cd=O}is(O){var E,X,lt;return"submitted"===O?!!(null===(E=this._cd)||void 0===E?void 0:E.submitted):!!(null===(lt=null===(X=this._cd)||void 0===X?void 0:X.control)||void 0===lt?void 0:lt[O])}}let N=(()=>{class k extends Ot{constructor(E){super(E)}}return k.\u0275fac=function(E){return new(E||k)(i.\u0275\u0275directiveInject(yt,2))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(E,X){2&E&&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]}),k})(),oe=(()=>{class k extends Ot{constructor(E){super(E)}}return k.\u0275fac=function(E){return new(E||k)(i.\u0275\u0275directiveInject(Ct,10))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(E,X){2&E&&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]}),k})();function zt(k,O){return[...O.path,k]}function St(k,O){Ge(k,O),O.valueAccessor.writeValue(k.value),function L(k,O){O.valueAccessor.registerOnChange(E=>{k._pendingValue=E,k._pendingChange=!0,k._pendingDirty=!0,"change"===k.updateOn&&S(k,O)})}(k,O),function M(k,O){const E=(X,lt)=>{O.valueAccessor.writeValue(X),lt&&O.viewToModelUpdate(X)};k.registerOnChange(E),O._registerOnDestroy(()=>{k._unregisterOnChange(E)})}(k,O),function v(k,O){O.valueAccessor.registerOnTouched(()=>{k._pendingTouched=!0,"blur"===k.updateOn&&k._pendingChange&&S(k,O),"submit"!==k.updateOn&&k.markAsTouched()})}(k,O),function an(k,O){if(O.valueAccessor.setDisabledState){const E=X=>{O.valueAccessor.setDisabledState(X)};k.registerOnDisabledChange(E),O._registerOnDestroy(()=>{k._unregisterOnDisabledChange(E)})}}(k,O)}function bn(k,O,E=!0){const X=()=>{};O.valueAccessor&&(O.valueAccessor.registerOnChange(X),O.valueAccessor.registerOnTouched(X)),ce(k,O),k&&(O._invokeOnDestroyCallbacks(),k._registerOnCollectionChange(()=>{}))}function Zt(k,O){k.forEach(E=>{E.registerOnValidatorChange&&E.registerOnValidatorChange(O)})}function Ge(k,O){const E=Je(k);null!==O.validator?k.setValidators(Fe(E,O.validator)):"function"==typeof E&&k.setValidators([E]);const X=Y(k);null!==O.asyncValidator?k.setAsyncValidators(Fe(X,O.asyncValidator)):"function"==typeof X&&k.setAsyncValidators([X]);const lt=()=>k.updateValueAndValidity();Zt(O._rawValidators,lt),Zt(O._rawAsyncValidators,lt)}function ce(k,O){let E=!1;if(null!==k){if(null!==O.validator){const lt=Je(k);if(Array.isArray(lt)&&lt.length>0){const Vt=lt.filter(Pn=>Pn!==O.validator);Vt.length!==lt.length&&(E=!0,k.setValidators(Vt))}}if(null!==O.asyncValidator){const lt=Y(k);if(Array.isArray(lt)&&lt.length>0){const Vt=lt.filter(Pn=>Pn!==O.asyncValidator);Vt.length!==lt.length&&(E=!0,k.setAsyncValidators(Vt))}}}const X=()=>{};return Zt(O._rawValidators,X),Zt(O._rawAsyncValidators,X),E}function S(k,O){k._pendingDirty&&k.markAsDirty(),k.setValue(k._pendingValue,{emitModelToViewChange:!1}),O.viewToModelUpdate(k._pendingValue),k._pendingChange=!1}function G(k,O){Ge(k,O)}function rn(k,O){if(!k.hasOwnProperty("model"))return!1;const E=k.model;return!!E.isFirstChange()||!Object.is(O,E.currentValue)}function Ue(k,O){k._syncPendingControls(),O.forEach(E=>{const X=E.control;"submit"===X.updateOn&&X._pendingChange&&(E.viewToModelUpdate(X._pendingValue),X._pendingChange=!1)})}function he(k,O){if(!O)return null;let E,X,lt;return Array.isArray(O),O.forEach(Vt=>{Vt.constructor===x?E=Vt:function je(k){return Object.getPrototypeOf(k.constructor)===C}(Vt)?X=Vt:lt=Vt}),lt||X||E||null}function Ve(k,O){const E=k.indexOf(O);E>-1&&k.splice(E,1)}const Nt="VALID",dn="INVALID",Dn="PENDING",Hn="DISABLED";function Xn(k){return(H(k)?k.validators:k)||null}function Nn(k){return Array.isArray(k)?$e(k):k||null}function zn(k,O){return(H(O)?O.asyncValidators:k)||null}function Bn(k){return Array.isArray(k)?Tt(k):k||null}function H(k){return null!=k&&!Array.isArray(k)&&"object"==typeof k}const Se=k=>k instanceof qt,z=k=>k instanceof vn,Ae=k=>k instanceof jt;function qe(k){return Se(k)?k.value:k.getRawValue()}function at(k,O){const E=z(k),X=k.controls;if(!(E?Object.keys(X):X).length)throw new i.\u0275RuntimeError(1e3,"");if(!X[O])throw new i.\u0275RuntimeError(1001,"")}function It(k,O){z(k),k._forEachChild((X,lt)=>{if(void 0===O[lt])throw new i.\u0275RuntimeError(1002,"")})}class Lt{constructor(O,E){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=O,this._rawAsyncValidators=E,this._composedValidatorFn=Nn(this._rawValidators),this._composedAsyncValidatorFn=Bn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(O){this._rawValidators=this._composedValidatorFn=O}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(O){this._rawAsyncValidators=this._composedAsyncValidatorFn=O}get parent(){return this._parent}get valid(){return this.status===Nt}get invalid(){return this.status===dn}get pending(){return this.status==Dn}get disabled(){return this.status===Hn}get enabled(){return this.status!==Hn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(O){this._rawValidators=O,this._composedValidatorFn=Nn(O)}setAsyncValidators(O){this._rawAsyncValidators=O,this._composedAsyncValidatorFn=Bn(O)}addValidators(O){this.setValidators(Re(O,this._rawValidators))}addAsyncValidators(O){this.setAsyncValidators(Re(O,this._rawAsyncValidators))}removeValidators(O){this.setValidators(_e(O,this._rawValidators))}removeAsyncValidators(O){this.setAsyncValidators(_e(O,this._rawAsyncValidators))}hasValidator(O){return we(this._rawValidators,O)}hasAsyncValidator(O){return we(this._rawAsyncValidators,O)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(O={}){this.touched=!0,this._parent&&!O.onlySelf&&this._parent.markAsTouched(O)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(O=>O.markAllAsTouched())}markAsUntouched(O={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(E=>{E.markAsUntouched({onlySelf:!0})}),this._parent&&!O.onlySelf&&this._parent._updateTouched(O)}markAsDirty(O={}){this.pristine=!1,this._parent&&!O.onlySelf&&this._parent.markAsDirty(O)}markAsPristine(O={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(E=>{E.markAsPristine({onlySelf:!0})}),this._parent&&!O.onlySelf&&this._parent._updatePristine(O)}markAsPending(O={}){this.status=Dn,!1!==O.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!O.onlySelf&&this._parent.markAsPending(O)}disable(O={}){const E=this._parentMarkedDirty(O.onlySelf);this.status=Hn,this.errors=null,this._forEachChild(X=>{X.disable(Object.assign(Object.assign({},O),{onlySelf:!0}))}),this._updateValue(),!1!==O.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},O),{skipPristineCheck:E})),this._onDisabledChange.forEach(X=>X(!0))}enable(O={}){const E=this._parentMarkedDirty(O.onlySelf);this.status=Nt,this._forEachChild(X=>{X.enable(Object.assign(Object.assign({},O),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:O.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},O),{skipPristineCheck:E})),this._onDisabledChange.forEach(X=>X(!1))}_updateAncestors(O){this._parent&&!O.onlySelf&&(this._parent.updateValueAndValidity(O),O.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(O){this._parent=O}updateValueAndValidity(O={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Nt||this.status===Dn)&&this._runAsyncValidator(O.emitEvent)),!1!==O.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!O.onlySelf&&this._parent.updateValueAndValidity(O)}_updateTreeValidity(O={emitEvent:!0}){this._forEachChild(E=>E._updateTreeValidity(O)),this.updateValueAndValidity({onlySelf:!0,emitEvent:O.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Hn:Nt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(O){if(this.asyncValidator){this.status=Dn,this._hasOwnPendingAsyncValidator=!0;const E=Ie(this.asyncValidator(this));this._asyncValidationSubscription=E.subscribe(X=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(X,{emitEvent:O})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(O,E={}){this.errors=O,this._updateControlsErrors(!1!==E.emitEvent)}get(O){return function di(k,O,E){if(null==O||(Array.isArray(O)||(O=O.split(E)),Array.isArray(O)&&0===O.length))return null;let X=k;return O.forEach(lt=>{X=z(X)?X.controls.hasOwnProperty(lt)?X.controls[lt]:null:Ae(X)&&X.at(lt)||null}),X}(this,O,".")}getError(O,E){const X=E?this.get(E):this;return X&&X.errors?X.errors[O]:null}hasError(O,E){return!!this.getError(O,E)}get root(){let O=this;for(;O._parent;)O=O._parent;return O}_updateControlsErrors(O){this.status=this._calculateStatus(),O&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(O)}_initObservables(){this.valueChanges=new i.EventEmitter,this.statusChanges=new i.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?Hn:this.errors?dn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Dn)?Dn:this._anyControlsHaveStatus(dn)?dn:Nt}_anyControlsHaveStatus(O){return this._anyControls(E=>E.status===O)}_anyControlsDirty(){return this._anyControls(O=>O.dirty)}_anyControlsTouched(){return this._anyControls(O=>O.touched)}_updatePristine(O={}){this.pristine=!this._anyControlsDirty(),this._parent&&!O.onlySelf&&this._parent._updatePristine(O)}_updateTouched(O={}){this.touched=this._anyControlsTouched(),this._parent&&!O.onlySelf&&this._parent._updateTouched(O)}_isBoxedValue(O){return"object"==typeof O&&null!==O&&2===Object.keys(O).length&&"value"in O&&"disabled"in O}_registerOnCollectionChange(O){this._onCollectionChange=O}_setUpdateStrategy(O){H(O)&&null!=O.updateOn&&(this._updateOn=O.updateOn)}_parentMarkedDirty(O){return!O&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class qt extends Lt{constructor(O=null,E,X){super(Xn(E),zn(X,E)),this._onChange=[],this._pendingChange=!1,this._applyFormState(O),this._setUpdateStrategy(E),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(O,E={}){this.value=this._pendingValue=O,this._onChange.length&&!1!==E.emitModelToViewChange&&this._onChange.forEach(X=>X(this.value,!1!==E.emitViewToModelChange)),this.updateValueAndValidity(E)}patchValue(O,E={}){this.setValue(O,E)}reset(O=null,E={}){this._applyFormState(O),this.markAsPristine(E),this.markAsUntouched(E),this.setValue(this.value,E),this._pendingChange=!1}_updateValue(){}_anyControls(O){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(O){this._onChange.push(O)}_unregisterOnChange(O){Ve(this._onChange,O)}registerOnDisabledChange(O){this._onDisabledChange.push(O)}_unregisterOnDisabledChange(O){Ve(this._onDisabledChange,O)}_forEachChild(O){}_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(O){this._isBoxedValue(O)?(this.value=this._pendingValue=O.value,O.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=O}}class vn extends Lt{constructor(O,E,X){super(Xn(E),zn(X,E)),this.controls=O,this._initObservables(),this._setUpdateStrategy(E),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(O,E){return this.controls[O]?this.controls[O]:(this.controls[O]=E,E.setParent(this),E._registerOnCollectionChange(this._onCollectionChange),E)}addControl(O,E,X={}){this.registerControl(O,E),this.updateValueAndValidity({emitEvent:X.emitEvent}),this._onCollectionChange()}removeControl(O,E={}){this.controls[O]&&this.controls[O]._registerOnCollectionChange(()=>{}),delete this.controls[O],this.updateValueAndValidity({emitEvent:E.emitEvent}),this._onCollectionChange()}setControl(O,E,X={}){this.controls[O]&&this.controls[O]._registerOnCollectionChange(()=>{}),delete this.controls[O],E&&this.registerControl(O,E),this.updateValueAndValidity({emitEvent:X.emitEvent}),this._onCollectionChange()}contains(O){return this.controls.hasOwnProperty(O)&&this.controls[O].enabled}setValue(O,E={}){It(this,O),Object.keys(O).forEach(X=>{at(this,X),this.controls[X].setValue(O[X],{onlySelf:!0,emitEvent:E.emitEvent})}),this.updateValueAndValidity(E)}patchValue(O,E={}){null!=O&&(Object.keys(O).forEach(X=>{this.controls[X]&&this.controls[X].patchValue(O[X],{onlySelf:!0,emitEvent:E.emitEvent})}),this.updateValueAndValidity(E))}reset(O={},E={}){this._forEachChild((X,lt)=>{X.reset(O[lt],{onlySelf:!0,emitEvent:E.emitEvent})}),this._updatePristine(E),this._updateTouched(E),this.updateValueAndValidity(E)}getRawValue(){return this._reduceChildren({},(O,E,X)=>(O[X]=qe(E),O))}_syncPendingControls(){let O=this._reduceChildren(!1,(E,X)=>!!X._syncPendingControls()||E);return O&&this.updateValueAndValidity({onlySelf:!0}),O}_forEachChild(O){Object.keys(this.controls).forEach(E=>{const X=this.controls[E];X&&O(X,E)})}_setUpControls(){this._forEachChild(O=>{O.setParent(this),O._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(O){for(const E of Object.keys(this.controls)){const X=this.controls[E];if(this.contains(E)&&O(X))return!0}return!1}_reduceValue(){return this._reduceChildren({},(O,E,X)=>((E.enabled||this.disabled)&&(O[X]=E.value),O))}_reduceChildren(O,E){let X=O;return this._forEachChild((lt,Vt)=>{X=E(X,lt,Vt)}),X}_allControlsDisabled(){for(const O of Object.keys(this.controls))if(this.controls[O].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class jt extends Lt{constructor(O,E,X){super(Xn(E),zn(X,E)),this.controls=O,this._initObservables(),this._setUpdateStrategy(E),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(O){return this.controls[O]}push(O,E={}){this.controls.push(O),this._registerControl(O),this.updateValueAndValidity({emitEvent:E.emitEvent}),this._onCollectionChange()}insert(O,E,X={}){this.controls.splice(O,0,E),this._registerControl(E),this.updateValueAndValidity({emitEvent:X.emitEvent})}removeAt(O,E={}){this.controls[O]&&this.controls[O]._registerOnCollectionChange(()=>{}),this.controls.splice(O,1),this.updateValueAndValidity({emitEvent:E.emitEvent})}setControl(O,E,X={}){this.controls[O]&&this.controls[O]._registerOnCollectionChange(()=>{}),this.controls.splice(O,1),E&&(this.controls.splice(O,0,E),this._registerControl(E)),this.updateValueAndValidity({emitEvent:X.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(O,E={}){It(this,O),O.forEach((X,lt)=>{at(this,lt),this.at(lt).setValue(X,{onlySelf:!0,emitEvent:E.emitEvent})}),this.updateValueAndValidity(E)}patchValue(O,E={}){null!=O&&(O.forEach((X,lt)=>{this.at(lt)&&this.at(lt).patchValue(X,{onlySelf:!0,emitEvent:E.emitEvent})}),this.updateValueAndValidity(E))}reset(O=[],E={}){this._forEachChild((X,lt)=>{X.reset(O[lt],{onlySelf:!0,emitEvent:E.emitEvent})}),this._updatePristine(E),this._updateTouched(E),this.updateValueAndValidity(E)}getRawValue(){return this.controls.map(O=>qe(O))}clear(O={}){this.controls.length<1||(this._forEachChild(E=>E._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:O.emitEvent}))}_syncPendingControls(){let O=this.controls.reduce((E,X)=>!!X._syncPendingControls()||E,!1);return O&&this.updateValueAndValidity({onlySelf:!0}),O}_forEachChild(O){this.controls.forEach((E,X)=>{O(E,X)})}_updateValue(){this.value=this.controls.filter(O=>O.enabled||this.disabled).map(O=>O.value)}_anyControls(O){return this.controls.some(E=>E.enabled&&O(E))}_setUpControls(){this._forEachChild(O=>this._registerControl(O))}_allControlsDisabled(){for(const O of this.controls)if(O.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(O){O.setParent(this),O._registerOnCollectionChange(this._onCollectionChange)}}const On={provide:Ct,useExisting:(0,i.forwardRef)(()=>$n)},hn=(()=>Promise.resolve(null))();let $n=(()=>{class k extends Ct{constructor(E,X){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.EventEmitter,this.form=new vn({},$e(E),Tt(X))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(E){hn.then(()=>{const X=this._findContainer(E.path);E.control=X.registerControl(E.name,E.control),St(E.control,E),E.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(E)})}getControl(E){return this.form.get(E.path)}removeControl(E){hn.then(()=>{const X=this._findContainer(E.path);X&&X.removeControl(E.name),Ve(this._directives,E)})}addFormGroup(E){hn.then(()=>{const X=this._findContainer(E.path),lt=new vn({});G(lt,E),X.registerControl(E.name,lt),lt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(E){hn.then(()=>{const X=this._findContainer(E.path);X&&X.removeControl(E.name)})}getFormGroup(E){return this.form.get(E.path)}updateModel(E,X){hn.then(()=>{this.form.get(E.path).setValue(X)})}setValue(E){this.control.setValue(E)}onSubmit(E){return this.submitted=!0,Ue(this.form,this._directives),this.ngSubmit.emit(E),!1}onReset(){this.resetForm()}resetForm(E){this.form.reset(E),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(E){return E.pop(),E.length?this.form.get(E):this.form}}return k.\u0275fac=function(E){return new(E||k)(i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(le,10))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(E,X){1&E&&i.\u0275\u0275listener("submit",function(Vt){return X.onSubmit(Vt)})("reset",function(){return X.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([On]),i.\u0275\u0275InheritDefinitionFeature]}),k})(),Un=(()=>{class k extends Ct{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return zt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return k.\u0275fac=function(){let O;return function(X){return(O||(O=i.\u0275\u0275getInheritedFactory(k)))(X||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,features:[i.\u0275\u0275InheritDefinitionFeature]}),k})();const gn={provide:Ct,useExisting:(0,i.forwardRef)(()=>ni)};let ni=(()=>{class k extends Un{constructor(E,X,lt){super(),this._parent=E,this._setValidators(X),this._setAsyncValidators(lt)}_checkParentType(){}}return k.\u0275fac=function(E){return new(E||k)(i.\u0275\u0275directiveInject(Ct,5),i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(le,10))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[i.\u0275\u0275ProvidersFeature([gn]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const li={provide:yt,useExisting:(0,i.forwardRef)(()=>Gn)},Kn=(()=>Promise.resolve(null))();let Gn=(()=>{class k extends yt{constructor(E,X,lt,Vt){super(),this.control=new qt,this._registered=!1,this.update=new i.EventEmitter,this._parent=E,this._setValidators(X),this._setAsyncValidators(lt),this.valueAccessor=he(0,Vt)}ngOnChanges(E){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in E&&this._updateDisabled(E),rn(E,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?zt(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(E){this.viewModel=E,this.update.emit(E)}_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(){St(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(E){Kn.then(()=>{this.control.setValue(E,{emitViewToModelChange:!1})})}_updateDisabled(E){const X=E.isDisabled.currentValue,lt=""===X||X&&"false"!==X;Kn.then(()=>{lt&&!this.control.disabled?this.control.disable():!lt&&this.control.disabled&&this.control.enable()})}}return k.\u0275fac=function(E){return new(E||k)(i.\u0275\u0275directiveInject(Ct,9),i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(le,10),i.\u0275\u0275directiveInject(D,10))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,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([li]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),k})(),Ci=(()=>{class k{}return k.\u0275fac=function(E){return new(E||k)},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),k})();const Mi={provide:D,useExisting:(0,i.forwardRef)(()=>hi),multi:!0};let hi=(()=>{class k extends C{writeValue(E){this.setProperty("value",null==E?"":E)}registerOnChange(E){this.onChange=X=>{E(""==X?null:parseFloat(X))}}}return k.\u0275fac=function(){let O;return function(X){return(O||(O=i.\u0275\u0275getInheritedFactory(k)))(X||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(E,X){1&E&&i.\u0275\u0275listener("input",function(Vt){return X.onChange(Vt.target.value)})("blur",function(){return X.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([Mi]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const Wn={provide:D,useExisting:(0,i.forwardRef)(()=>Qn),multi:!0};let nr=(()=>{class k{}return k.\u0275fac=function(E){return new(E||k)},k.\u0275mod=i.\u0275\u0275defineNgModule({type:k}),k.\u0275inj=i.\u0275\u0275defineInjector({}),k})(),mr=(()=>{class k{constructor(){this._accessors=[]}add(E,X){this._accessors.push([E,X])}remove(E){for(let X=this._accessors.length-1;X>=0;--X)if(this._accessors[X][1]===E)return void this._accessors.splice(X,1)}select(E){this._accessors.forEach(X=>{this._isSameGroup(X,E)&&X[1]!==E&&X[1].fireUncheck(E.value)})}_isSameGroup(E,X){return!!E[0].control&&E[0]._parent===X._control._parent&&E[1].name===X.name}}return k.\u0275fac=function(E){return new(E||k)},k.\u0275prov=i.\u0275\u0275defineInjectable({token:k,factory:k.\u0275fac,providedIn:nr}),k})(),Qn=(()=>{class k extends C{constructor(E,X,lt,Vt){super(E,X),this._registry=lt,this._injector=Vt,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(yt),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(E){this._state=E===this.value,this.setProperty("checked",this._state)}registerOnChange(E){this._fn=E,this.onChange=()=>{E(this.value),this._registry.select(this)}}fireUncheck(E){this.writeValue(E)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return k.\u0275fac=function(E){return new(E||k)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(mr),i.\u0275\u0275directiveInject(i.Injector))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(E,X){1&E&&i.\u0275\u0275listener("change",function(){return X.onChange()})("blur",function(){return X.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[i.\u0275\u0275ProvidersFeature([Wn]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const Zn={provide:D,useExisting:(0,i.forwardRef)(()=>Ei),multi:!0};let Ei=(()=>{class k extends C{writeValue(E){this.setProperty("value",parseFloat(E))}registerOnChange(E){this.onChange=X=>{E(""==X?null:parseFloat(X))}}}return k.\u0275fac=function(){let O;return function(X){return(O||(O=i.\u0275\u0275getInheritedFactory(k)))(X||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(E,X){1&E&&i.\u0275\u0275listener("change",function(Vt){return X.onChange(Vt.target.value)})("input",function(Vt){return X.onChange(Vt.target.value)})("blur",function(){return X.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([Zn]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const Ui=new i.InjectionToken("NgModelWithFormControlWarning"),Lr={provide:yt,useExisting:(0,i.forwardRef)(()=>Wi)};let Wi=(()=>{class k extends yt{constructor(E,X,lt,Vt){super(),this._ngModelWarningConfig=Vt,this.update=new i.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(E),this._setAsyncValidators(X),this.valueAccessor=he(0,lt)}set isDisabled(E){}ngOnChanges(E){if(this._isControlChanged(E)){const X=E.form.previousValue;X&&bn(X,this,!1),St(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}rn(E,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&bn(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(E){this.viewModel=E,this.update.emit(E)}_isControlChanged(E){return E.hasOwnProperty("form")}}return k._ngModelWarningSentOnce=!1,k.\u0275fac=function(E){return new(E||k)(i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(le,10),i.\u0275\u0275directiveInject(D,10),i.\u0275\u0275directiveInject(Ui,8))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([Lr]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),k})();const Ir={provide:Ct,useExisting:(0,i.forwardRef)(()=>Si)};let Si=(()=>{class k extends Ct{constructor(E,X){super(),this.validators=E,this.asyncValidators=X,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.EventEmitter,this._setValidators(E),this._setAsyncValidators(X)}ngOnChanges(E){this._checkFormPresent(),E.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ce(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(E){const X=this.form.get(E.path);return St(X,E),X.updateValueAndValidity({emitEvent:!1}),this.directives.push(E),X}getControl(E){return this.form.get(E.path)}removeControl(E){bn(E.control||null,E,!1),Ve(this.directives,E)}addFormGroup(E){this._setUpFormContainer(E)}removeFormGroup(E){this._cleanUpFormContainer(E)}getFormGroup(E){return this.form.get(E.path)}addFormArray(E){this._setUpFormContainer(E)}removeFormArray(E){this._cleanUpFormContainer(E)}getFormArray(E){return this.form.get(E.path)}updateModel(E,X){this.form.get(E.path).setValue(X)}onSubmit(E){return this.submitted=!0,Ue(this.form,this.directives),this.ngSubmit.emit(E),!1}onReset(){this.resetForm()}resetForm(E){this.form.reset(E),this.submitted=!1}_updateDomValue(){this.directives.forEach(E=>{const X=E.control,lt=this.form.get(E.path);X!==lt&&(bn(X||null,E),Se(lt)&&(St(lt,E),E.control=lt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(E){const X=this.form.get(E.path);G(X,E),X.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(E){if(this.form){const X=this.form.get(E.path);X&&function rt(k,O){return ce(k,O)}(X,E)&&X.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ge(this.form,this),this._oldForm&&ce(this._oldForm,this)}_checkFormPresent(){}}return k.\u0275fac=function(E){return new(E||k)(i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(le,10))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","formGroup",""]],hostBindings:function(E,X){1&E&&i.\u0275\u0275listener("submit",function(Vt){return X.onSubmit(Vt)})("reset",function(){return X.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([Ir]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),k})();const zi={provide:Ct,useExisting:(0,i.forwardRef)(()=>ci)};let ci=(()=>{class k extends Un{constructor(E,X,lt){super(),this._parent=E,this._setValidators(X),this._setAsyncValidators(lt)}_checkParentType(){Pr(this._parent)}}return k.\u0275fac=function(E){return new(E||k)(i.\u0275\u0275directiveInject(Ct,13),i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(le,10))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[i.\u0275\u0275ProvidersFeature([zi]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const gr={provide:Ct,useExisting:(0,i.forwardRef)(()=>Di)};let Di=(()=>{class k extends Ct{constructor(E,X,lt){super(),this._parent=E,this._setValidators(X),this._setAsyncValidators(lt)}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 zt(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Pr(this._parent)}}return k.\u0275fac=function(E){return new(E||k)(i.\u0275\u0275directiveInject(Ct,13),i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(le,10))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[i.\u0275\u0275ProvidersFeature([gr]),i.\u0275\u0275InheritDefinitionFeature]}),k})();function Pr(k){return!(k instanceof ci||k instanceof Si||k instanceof Di)}const Ar={provide:yt,useExisting:(0,i.forwardRef)(()=>Ki)};let Ki=(()=>{class k extends yt{constructor(E,X,lt,Vt,Pn){super(),this._ngModelWarningConfig=Pn,this._added=!1,this.update=new i.EventEmitter,this._ngModelWarningSent=!1,this._parent=E,this._setValidators(X),this._setAsyncValidators(lt),this.valueAccessor=he(0,Vt)}set isDisabled(E){}ngOnChanges(E){this._added||this._setUpControl(),rn(E,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(E){this.viewModel=E,this.update.emit(E)}get path(){return zt(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 k._ngModelWarningSentOnce=!1,k.\u0275fac=function(E){return new(E||k)(i.\u0275\u0275directiveInject(Ct,13),i.\u0275\u0275directiveInject($,10),i.\u0275\u0275directiveInject(le,10),i.\u0275\u0275directiveInject(D,10),i.\u0275\u0275directiveInject(Ui,8))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[i.\u0275\u0275ProvidersFeature([Ar]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),k})();const Ii={provide:D,useExisting:(0,i.forwardRef)(()=>Pi),multi:!0};function Gi(k,O){return null==k?`${O}`:(O&&"object"==typeof O&&(O="Object"),`${k}: ${O}`.slice(0,50))}let Pi=(()=>{class k extends C{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(E){this._compareWith=E}writeValue(E){this.value=E;const X=this._getOptionId(E);null==X&&this.setProperty("selectedIndex",-1);const lt=Gi(X,E);this.setProperty("value",lt)}registerOnChange(E){this.onChange=X=>{this.value=this._getOptionValue(X),E(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(E){for(const X of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(X),E))return X;return null}_getOptionValue(E){const X=function Or(k){return k.split(":")[0]}(E);return this._optionMap.has(X)?this._optionMap.get(X):E}}return k.\u0275fac=function(){let O;return function(X){return(O||(O=i.\u0275\u0275getInheritedFactory(k)))(X||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(E,X){1&E&&i.\u0275\u0275listener("change",function(Vt){return X.onChange(Vt.target.value)})("blur",function(){return X.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.\u0275\u0275ProvidersFeature([Ii]),i.\u0275\u0275InheritDefinitionFeature]}),k})(),_r=(()=>{class k{constructor(E,X,lt){this._element=E,this._renderer=X,this._select=lt,this._select&&(this.id=this._select._registerOption())}set ngValue(E){null!=this._select&&(this._select._optionMap.set(this.id,E),this._setElementValue(Gi(this.id,E)),this._select.writeValue(this._select.value))}set value(E){this._setElementValue(E),this._select&&this._select.writeValue(this._select.value)}_setElementValue(E){this._renderer.setProperty(this._element.nativeElement,"value",E)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return k.\u0275fac=function(E){return new(E||k)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(Pi,9))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),k})();const fi={provide:D,useExisting:(0,i.forwardRef)(()=>mi),multi:!0};function Ai(k,O){return null==k?`${O}`:("string"==typeof O&&(O=`'${O}'`),O&&"object"==typeof O&&(O="Object"),`${k}: ${O}`.slice(0,50))}let mi=(()=>{class k extends C{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(E){this._compareWith=E}writeValue(E){let X;if(this.value=E,Array.isArray(E)){const lt=E.map(Vt=>this._getOptionId(Vt));X=(Vt,Pn)=>{Vt._setSelected(lt.indexOf(Pn.toString())>-1)}}else X=(lt,Vt)=>{lt._setSelected(!1)};this._optionMap.forEach(X)}registerOnChange(E){this.onChange=X=>{const lt=[],Vt=X.selectedOptions;if(void 0!==Vt){const Pn=Vt;for(let qn=0;qn<Pn.length;qn++){const Ni=this._getOptionValue(Pn[qn].value);lt.push(Ni)}}else{const Pn=X.options;for(let qn=0;qn<Pn.length;qn++){const gi=Pn[qn];if(gi.selected){const Ni=this._getOptionValue(gi.value);lt.push(Ni)}}}this.value=lt,E(lt)}}_registerOption(E){const X=(this._idCounter++).toString();return this._optionMap.set(X,E),X}_getOptionId(E){for(const X of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(X)._value,E))return X;return null}_getOptionValue(E){const X=function pi(k){return k.split(":")[0]}(E);return this._optionMap.has(X)?this._optionMap.get(X)._value:E}}return k.\u0275fac=function(){let O;return function(X){return(O||(O=i.\u0275\u0275getInheritedFactory(k)))(X||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(E,X){1&E&&i.\u0275\u0275listener("change",function(Vt){return X.onChange(Vt.target)})("blur",function(){return X.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.\u0275\u0275ProvidersFeature([fi]),i.\u0275\u0275InheritDefinitionFeature]}),k})(),ir=(()=>{class k{constructor(E,X,lt){this._element=E,this._renderer=X,this._select=lt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(E){null!=this._select&&(this._value=E,this._setElementValue(Ai(this.id,E)),this._select.writeValue(this._select.value))}set value(E){this._select?(this._value=E,this._setElementValue(Ai(this.id,E)),this._select.writeValue(this._select.value)):this._setElementValue(E)}_setElementValue(E){this._renderer.setProperty(this._element.nativeElement,"value",E)}_setSelected(E){this._renderer.setProperty(this._element.nativeElement,"selected",E)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return k.\u0275fac=function(E){return new(E||k)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(mi,9))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),k})();function rr(k){return"number"==typeof k?k:parseInt(k,10)}function Oi(k){return"number"==typeof k?k:parseFloat(k)}let wi=(()=>{class k{constructor(){this._validator=J}ngOnChanges(E){if(this.inputName in E){const X=this.normalizeInput(E[this.inputName].currentValue);this._enabled=this.enabled(X),this._validator=this._enabled?this.createValidator(X):J,this._onChange&&this._onChange()}}validate(E){return this._validator(E)}registerOnValidatorChange(E){this._onChange=E}enabled(E){return null!=E}}return k.\u0275fac=function(E){return new(E||k)},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,features:[i.\u0275\u0275NgOnChangesFeature]}),k})();const xi={provide:$,useExisting:(0,i.forwardRef)(()=>Zi),multi:!0};let Zi=(()=>{class k extends wi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=E=>Oi(E),this.createValidator=E=>se(E)}}return k.\u0275fac=function(){let O;return function(X){return(O||(O=i.\u0275\u0275getInheritedFactory(k)))(X||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(E,X){2&E&&i.\u0275\u0275attribute("max",X._enabled?X.max:null)},inputs:{max:"max"},features:[i.\u0275\u0275ProvidersFeature([xi]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const ti={provide:$,useExisting:(0,i.forwardRef)(()=>Ri),multi:!0};let Ri=(()=>{class k extends wi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=E=>Oi(E),this.createValidator=E=>ye(E)}}return k.\u0275fac=function(){let O;return function(X){return(O||(O=i.\u0275\u0275getInheritedFactory(k)))(X||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(E,X){2&E&&i.\u0275\u0275attribute("min",X._enabled?X.min:null)},inputs:{min:"min"},features:[i.\u0275\u0275ProvidersFeature([ti]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const or={provide:$,useExisting:(0,i.forwardRef)(()=>Yi),multi:!0},Fi={provide:$,useExisting:(0,i.forwardRef)(()=>ki),multi:!0};let Yi=(()=>{class k{constructor(){this._required=!1}get required(){return this._required}set required(E){this._required=null!=E&&!1!==E&&"false"!=`${E}`,this._onChange&&this._onChange()}validate(E){return this.required?De(E):null}registerOnValidatorChange(E){this._onChange=E}}return k.\u0275fac=function(E){return new(E||k)},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(E,X){2&E&&i.\u0275\u0275attribute("required",X.required?"":null)},inputs:{required:"required"},features:[i.\u0275\u0275ProvidersFeature([or])]}),k})(),ki=(()=>{class k extends Yi{validate(E){return this.required?ke(E):null}}return k.\u0275fac=function(){let O;return function(X){return(O||(O=i.\u0275\u0275getInheritedFactory(k)))(X||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(E,X){2&E&&i.\u0275\u0275attribute("required",X.required?"":null)},features:[i.\u0275\u0275ProvidersFeature([Fi]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const xr={provide:$,useExisting:(0,i.forwardRef)(()=>Rn),multi:!0};let Rn=(()=>{class k extends wi{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=E=>""===E||!0===E||"true"===E,this.createValidator=E=>Xe}enabled(E){return E}}return k.\u0275fac=function(){let O;return function(X){return(O||(O=i.\u0275\u0275getInheritedFactory(k)))(X||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[i.\u0275\u0275ProvidersFeature([xr]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const sr={provide:$,useExisting:(0,i.forwardRef)(()=>ar),multi:!0};let ar=(()=>{class k extends wi{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=E=>rr(E),this.createValidator=E=>st(E)}}return k.\u0275fac=function(){let O;return function(X){return(O||(O=i.\u0275\u0275getInheritedFactory(k)))(X||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(E,X){2&E&&i.\u0275\u0275attribute("minlength",X._enabled?X.minlength:null)},inputs:{minlength:"minlength"},features:[i.\u0275\u0275ProvidersFeature([sr]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const Ln={provide:$,useExisting:(0,i.forwardRef)(()=>R),multi:!0};let R=(()=>{class k extends wi{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=E=>rr(E),this.createValidator=E=>q(E)}}return k.\u0275fac=function(){let O;return function(X){return(O||(O=i.\u0275\u0275getInheritedFactory(k)))(X||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(E,X){2&E&&i.\u0275\u0275attribute("maxlength",X._enabled?X.maxlength:null)},inputs:{maxlength:"maxlength"},features:[i.\u0275\u0275ProvidersFeature([Ln]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const Q={provide:$,useExisting:(0,i.forwardRef)(()=>F),multi:!0};let F=(()=>{class k{constructor(){this._validator=J}ngOnChanges(E){"pattern"in E&&(this._createValidator(),this._onChange&&this._onChange())}validate(E){return this._validator(E)}registerOnValidatorChange(E){this._onChange=E}_createValidator(){this._validator=Pe(this.pattern)}}return k.\u0275fac=function(E){return new(E||k)},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(E,X){2&E&&i.\u0275\u0275attribute("pattern",X.pattern?X.pattern:null)},inputs:{pattern:"pattern"},features:[i.\u0275\u0275ProvidersFeature([Q]),i.\u0275\u0275NgOnChangesFeature]}),k})(),bt=(()=>{class k{}return k.\u0275fac=function(E){return new(E||k)},k.\u0275mod=i.\u0275\u0275defineNgModule({type:k}),k.\u0275inj=i.\u0275\u0275defineInjector({imports:[[nr]]}),k})(),Ft=(()=>{class k{}return k.\u0275fac=function(E){return new(E||k)},k.\u0275mod=i.\u0275\u0275defineNgModule({type:k}),k.\u0275inj=i.\u0275\u0275defineInjector({imports:[bt]}),k})(),Tn=(()=>{class k{static withConfig(E){return{ngModule:k,providers:[{provide:Ui,useValue:E.warnOnNgModelWithFormControl}]}}}return k.\u0275fac=function(E){return new(E||k)},k.\u0275mod=i.\u0275\u0275defineNgModule({type:k}),k.\u0275inj=i.\u0275\u0275defineInjector({imports:[bt]}),k})(),In=(()=>{class k{group(E,X=null){const lt=this._reduceControls(E);let qn,Vt=null,Pn=null;return null!=X&&(function Mn(k){return void 0!==k.asyncValidators||void 0!==k.validators||void 0!==k.updateOn}(X)?(Vt=null!=X.validators?X.validators:null,Pn=null!=X.asyncValidators?X.asyncValidators:null,qn=null!=X.updateOn?X.updateOn:void 0):(Vt=null!=X.validator?X.validator:null,Pn=null!=X.asyncValidator?X.asyncValidator:null)),new vn(lt,{asyncValidators:Pn,updateOn:qn,validators:Vt})}control(E,X,lt){return new qt(E,X,lt)}array(E,X,lt){const Vt=E.map(Pn=>this._createControl(Pn));return new jt(Vt,X,lt)}_reduceControls(E){const X={};return Object.keys(E).forEach(lt=>{X[lt]=this._createControl(E[lt])}),X}_createControl(E){return Se(E)||z(E)||Ae(E)?E:Array.isArray(E)?this.control(E[0],E.length>1?E[1]:null,E.length>2?E[2]:null):this.control(E)}}return k.\u0275fac=function(E){return new(E||k)},k.\u0275prov=i.\u0275\u0275defineInjectable({token:k,factory:k.\u0275fac,providedIn:Tn}),k})();const fn=new i.Version("13.1.3")},7423:(Le,g,l)=>{"use strict";l.r(g),l.d(g,{MatAnchor:()=>T,MatButton:()=>A,MatButtonModule:()=>b});var i=l(5e3),u=l(508),m=l(6360),c=l(5664);const s=["mat-button",""],_=["*"],I=["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(x){this._elementRef=x}})));let A=(()=>{class x extends h{constructor(fe,$,le){super(fe),this._focusMonitor=$,this._animationMode=le,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const Me of I)this._hasHostAttributes(Me)&&this._getHostElement().classList.add(Me);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,$){fe?this._focusMonitor.focusVia(this._getHostElement(),fe,$):this._getHostElement().focus($)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...fe){return fe.some($=>this._getHostElement().hasAttribute($))}}return x.\u0275fac=function(fe){return new(fe||x)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(c.tE),i.\u0275\u0275directiveInject(m.ANIMATION_MODULE_TYPE,8))},x.\u0275cmp=i.\u0275\u0275defineComponent({type:x,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,$){if(1&fe&&i.\u0275\u0275viewQuery(u.MatRipple,5),2&fe){let le;i.\u0275\u0275queryRefresh(le=i.\u0275\u0275loadQuery())&&($.ripple=le.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(fe,$){2&fe&&(i.\u0275\u0275attribute("disabled",$.disabled||null),i.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===$._animationMode)("mat-button-disabled",$.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,$){1&fe&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275elementStart(0,"span",0),i.\u0275\u0275projection(1),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(2,"span",1),i.\u0275\u0275element(3,"span",2)),2&fe&&(i.\u0275\u0275advance(2),i.\u0275\u0275classProp("mat-button-ripple-round",$.isRoundButton||$.isIconButton),i.\u0275\u0275property("matRippleDisabled",$._isRippleDisabled())("matRippleCentered",$.isIconButton)("matRippleTrigger",$._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}),x})(),T=(()=>{class x extends A{constructor(fe,$,le,Me){super($,fe,le),this._ngZone=Me,this._haltDisabledEvents=pe=>{this.disabled&&(pe.preventDefault(),pe.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 x.\u0275fac=function(fe){return new(fe||x)(i.\u0275\u0275directiveInject(c.tE),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(m.ANIMATION_MODULE_TYPE,8),i.\u0275\u0275directiveInject(i.NgZone,8))},x.\u0275cmp=i.\u0275\u0275defineComponent({type:x,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,$){2&fe&&(i.\u0275\u0275attribute("tabindex",$.disabled?-1:$.tabIndex||0)("disabled",$.disabled||null)("aria-disabled",$.disabled.toString()),i.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===$._animationMode)("mat-button-disabled",$.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,$){1&fe&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275elementStart(0,"span",0),i.\u0275\u0275projection(1),i.\u0275\u0275elementEnd(),i.\u0275\u0275element(2,"span",1),i.\u0275\u0275element(3,"span",2)),2&fe&&(i.\u0275\u0275advance(2),i.\u0275\u0275classProp("mat-button-ripple-round",$.isRoundButton||$.isIconButton),i.\u0275\u0275property("matRippleDisabled",$._isRippleDisabled())("matRippleCentered",$.isIconButton)("matRippleTrigger",$._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}),x})(),b=(()=>{class x{}return x.\u0275fac=function(fe){return new(fe||x)},x.\u0275mod=i.\u0275\u0275defineNgModule({type:x}),x.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.MatRippleModule,u.MatCommonModule],u.MatCommonModule]}),x})()},9417:(Le,g,l)=>{"use strict";l.r(g),l.d(g,{MAT_CHIPS_DEFAULT_OPTIONS:()=>sn,MAT_CHIP_AVATAR:()=>tt,MAT_CHIP_REMOVE:()=>Ze,MAT_CHIP_TRAILING_ICON:()=>ft,MatChip:()=>Ht,MatChipAvatar:()=>$t,MatChipInput:()=>St,MatChipList:()=>Ge,MatChipListChange:()=>an,MatChipRemove:()=>En,MatChipSelectionChange:()=>Ce,MatChipTrailingIcon:()=>nn,MatChipsModule:()=>L});var i=l(1159),u=l(5e3),m=l(508),c=l(3191),s=l(9808),_=l(6360),C=l(6758),D=l(6451),I=l(5698),h=l(2722),A=l(8675),T=l(925),b=l(5664),x=l(449),V=l(3075);l(1777);let $e=(()=>{class v{}return v.\u0275fac=function(M){return new(M||v)},v.\u0275dir=u.\u0275\u0275defineDirective({type:v}),v})();var be=l(226);const re=["*"];class Ce{constructor(S,M,G=!1){this.source=S,this.selected=M,this.isUserInput=G}}const Ze=new u.InjectionToken("MatChipRemove"),tt=new u.InjectionToken("MatChipAvatar"),ft=new u.InjectionToken("MatChipTrailingIcon");class pt{constructor(S){this._elementRef=S}}const wt=(0,m.mixinTabIndex)((0,m.mixinColor)((0,m.mixinDisableRipple)(pt),"primary"),-1);let $t=(()=>{class v{}return v.\u0275fac=function(M){return new(M||v)},v.\u0275dir=u.\u0275\u0275defineDirective({type:v,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[u.\u0275\u0275ProvidersFeature([{provide:tt,useExisting:v}])]}),v})(),nn=(()=>{class v{}return v.\u0275fac=function(M){return new(M||v)},v.\u0275dir=u.\u0275\u0275defineDirective({type:v,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"],features:[u.\u0275\u0275ProvidersFeature([{provide:ft,useExisting:v}])]}),v})(),Ht=(()=>{class v extends wt{constructor(M,G,rt,Dt,Kt,rn,je,Ue){super(M),this._ngZone=G,this._changeDetectorRef=Kt,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 C.x,this._onBlur=new C.x,this.selectionChange=new u.EventEmitter,this.destroyed=new u.EventEmitter,this.removed=new u.EventEmitter,this._addHostClassName(),this._chipRippleTarget=rn.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new m.RippleRenderer(this,G,this._chipRippleTarget,rt),this._chipRipple.setupTriggerEvents(M),this.rippleConfig=Dt||{},this._animationsDisabled="NoopAnimations"===je,this.tabIndex=null!=Ue&&parseInt(Ue)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(M){const G=(0,c.Ig)(M);G!==this._selected&&(this._selected=G,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(M){this._value=M}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(M){this._selectable=(0,c.Ig)(M)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(M){this._disabled=(0,c.Ig)(M)}get removable(){return this._removable}set removable(M){this._removable=(0,c.Ig)(M)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const M="mat-basic-chip",G=this._elementRef.nativeElement;G.hasAttribute(M)||G.tagName.toLowerCase()===M?G.classList.add(M):G.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(M=!1){return this._selected=!this.selected,this._dispatchSelectionChange(M),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(M){this.disabled?M.preventDefault():M.stopPropagation()}_handleKeydown(M){if(!this.disabled)switch(M.keyCode){case i.yY:case i.ZH:this.remove(),M.preventDefault();break;case i.L_:this.selectable&&this.toggleSelected(!0),M.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,I.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(M=!1){this.selectionChange.emit({source:this,isUserInput:M,selected:this._selected})}}return v.\u0275fac=function(M){return new(M||v)(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"))},v.\u0275dir=u.\u0275\u0275defineDirective({type:v,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(M,G,rt){if(1&M&&(u.\u0275\u0275contentQuery(rt,tt,5),u.\u0275\u0275contentQuery(rt,ft,5),u.\u0275\u0275contentQuery(rt,Ze,5)),2&M){let Dt;u.\u0275\u0275queryRefresh(Dt=u.\u0275\u0275loadQuery())&&(G.avatar=Dt.first),u.\u0275\u0275queryRefresh(Dt=u.\u0275\u0275loadQuery())&&(G.trailingIcon=Dt.first),u.\u0275\u0275queryRefresh(Dt=u.\u0275\u0275loadQuery())&&(G.removeIcon=Dt.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(M,G){1&M&&u.\u0275\u0275listener("click",function(Dt){return G._handleClick(Dt)})("keydown",function(Dt){return G._handleKeydown(Dt)})("focus",function(){return G.focus()})("blur",function(){return G._blur()}),2&M&&(u.\u0275\u0275attribute("tabindex",G.disabled?null:G.tabIndex)("disabled",G.disabled||null)("aria-disabled",G.disabled.toString())("aria-selected",G.ariaSelected),u.\u0275\u0275classProp("mat-chip-selected",G.selected)("mat-chip-with-avatar",G.avatar)("mat-chip-with-trailing-icon",G.trailingIcon||G.removeIcon)("mat-chip-disabled",G.disabled)("_mat-animation-noopable",G._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]}),v})(),En=(()=>{class v{constructor(M,G){this._parentChip=M,"BUTTON"===G.nativeElement.nodeName&&G.nativeElement.setAttribute("type","button")}_handleClick(M){const G=this._parentChip;G.removable&&!G.disabled&&G.remove(),M.stopPropagation()}}return v.\u0275fac=function(M){return new(M||v)(u.\u0275\u0275directiveInject(Ht),u.\u0275\u0275directiveInject(u.ElementRef))},v.\u0275dir=u.\u0275\u0275defineDirective({type:v,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(M,G){1&M&&u.\u0275\u0275listener("click",function(Dt){return G._handleClick(Dt)})},features:[u.\u0275\u0275ProvidersFeature([{provide:Ze,useExisting:v}])]}),v})();const sn=new u.InjectionToken("mat-chips-default-options");let zt=0,St=(()=>{class v{constructor(M,G){this._elementRef=M,this._defaultOptions=G,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new u.EventEmitter,this.placeholder="",this.id="mat-chip-list-input-"+zt++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(M){M&&(this._chipList=M,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(M){this._addOnBlur=(0,c.Ig)(M)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(M){this._disabled=(0,c.Ig)(M)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(M){if(M){if(M.keyCode===i.Mf&&!(0,i.Vb)(M,"shiftKey")&&this._chipList._allowFocusEscape(),M.keyCode===i.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void M.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(M)}_keyup(M){!this._focusLastChipOnBackspace&&M.keyCode===i.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,M.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(M){!this.inputElement.value&&!!M&&this._chipList._keydown(M),(!M||this._isSeparatorKey(M))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==M||M.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(M){this.inputElement.focus(M)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(M){return!(0,i.Vb)(M)&&new Set(this.separatorKeyCodes).has(M.keyCode)}}return v.\u0275fac=function(M){return new(M||v)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(sn))},v.\u0275dir=u.\u0275\u0275defineDirective({type:v,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(M,G){1&M&&u.\u0275\u0275listener("keydown",function(Dt){return G._keydown(Dt)})("keyup",function(Dt){return G._keyup(Dt)})("blur",function(){return G._blur()})("focus",function(){return G._focus()})("input",function(){return G._onInput()}),2&M&&(u.\u0275\u0275hostProperty("id",G.id),u.\u0275\u0275attribute("disabled",G.disabled||null)("placeholder",G.placeholder||null)("aria-invalid",G._chipList&&G._chipList.ngControl?G._chipList.ngControl.invalid:null)("aria-required",G._chipList&&G._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]}),v})();const bn=(0,m.mixinErrorState)(class{constructor(v,S,M,G){this._defaultErrorStateMatcher=v,this._parentForm=S,this._parentFormGroup=M,this.ngControl=G}});let Zt=0;class an{constructor(S,M){this.source=S,this.value=M}}let Ge=(()=>{class v extends bn{constructor(M,G,rt,Dt,Kt,rn,je){super(rn,Dt,Kt,je),this._elementRef=M,this._changeDetectorRef=G,this._dir=rt,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new C.x,this._uid="mat-chip-list-"+Zt++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(Ue,he)=>Ue===he,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 M,G;return this.multiple?(null===(M=this._selectionModel)||void 0===M?void 0:M.selected)||[]:null===(G=this._selectionModel)||void 0===G?void 0:G.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(M){this._multiple=(0,c.Ig)(M),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(M){this._compareWith=M,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(M){this.writeValue(M),this._value=M}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var M,G,rt,Dt;return null!==(Dt=null!==(M=this._required)&&void 0!==M?M:null===(rt=null===(G=this.ngControl)||void 0===G?void 0:G.control)||void 0===rt?void 0:rt.hasValidator(V.Validators.required))&&void 0!==Dt&&Dt}set required(M){this._required=(0,c.Ig)(M),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(M){this._placeholder=M,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(M){this._disabled=(0,c.Ig)(M),this._syncChipsState()}get selectable(){return this._selectable}set selectable(M){this._selectable=(0,c.Ig)(M),this.chips&&this.chips.forEach(G=>G.chipListSelectable=this._selectable)}set tabIndex(M){this._userTabIndex=M,this._tabIndex=M}get chipSelectionChanges(){return(0,D.T)(...this.chips.map(M=>M.selectionChange))}get chipFocusChanges(){return(0,D.T)(...this.chips.map(M=>M._onFocus))}get chipBlurChanges(){return(0,D.T)(...this.chips.map(M=>M._onBlur))}get chipRemoveChanges(){return(0,D.T)(...this.chips.map(M=>M.destroyed))}ngAfterContentInit(){this._keyManager=new b.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(M=>this._keyManager.withHorizontalOrientation(M)),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 x.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(M){this._chipInput=M,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",M.id)}setDescribedByIds(M){this._ariaDescribedby=M.join(" ")}writeValue(M){this.chips&&this._setSelectionByValue(M,!1)}registerOnChange(M){this._onChange=M}registerOnTouched(M){this._onTouched=M}setDisabledState(M){this.disabled=M,this.stateChanges.next()}onContainerClick(M){this._originatesFromChip(M)||this.focus()}focus(M){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(M),this.stateChanges.next()))}_focusInput(M){this._chipInput&&this._chipInput.focus(M)}_keydown(M){const G=M.target;G&&G.classList.contains("mat-chip")&&(this._keyManager.onKeydown(M),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const M=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(M)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(M){return M>=0&&M<this.chips.length}_setSelectionByValue(M,G=!0){if(this._clearSelection(),this.chips.forEach(rt=>rt.deselect()),Array.isArray(M))M.forEach(rt=>this._selectValue(rt,G)),this._sortValues();else{const rt=this._selectValue(M,G);rt&&G&&this._keyManager.setActiveItem(rt)}}_selectValue(M,G=!0){const rt=this.chips.find(Dt=>null!=Dt.value&&this._compareWith(Dt.value,M));return rt&&(G?rt.selectViaInteraction():rt.select(),this._selectionModel.select(rt)),rt}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(M){this._selectionModel.clear(),this.chips.forEach(G=>{G!==M&&G.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(M=>{M.selected&&this._selectionModel.select(M)}),this.stateChanges.next())}_propagateChanges(M){let G=null;G=Array.isArray(this.selected)?this.selected.map(rt=>rt.value):this.selected?this.selected.value:M,this._value=G,this.change.emit(new an(this,G)),this.valueChange.emit(G),this._onChange(G),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(M=>{M.source.selected?this._selectionModel.select(M.source):this._selectionModel.deselect(M.source),this.multiple||this.chips.forEach(G=>{!this._selectionModel.isSelected(G)&&G.selected&&G.deselect()}),M.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(M=>{let G=this.chips.toArray().indexOf(M.chip);this._isValidIndex(G)&&this._keyManager.updateActiveItem(G),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(M=>{const G=M.chip,rt=this.chips.toArray().indexOf(M.chip);this._isValidIndex(rt)&&G._hasFocus&&(this._lastDestroyedChipIndex=rt)})}_originatesFromChip(M){let G=M.target;for(;G&&G!==this._elementRef.nativeElement;){if(G.classList.contains("mat-chip"))return!0;G=G.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(M=>M._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(M=>{M._chipListDisabled=this._disabled,M._chipListMultiple=this.multiple})}}return v.\u0275fac=function(M){return new(M||v)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.ChangeDetectorRef),u.\u0275\u0275directiveInject(be.Is,8),u.\u0275\u0275directiveInject(V.NgForm,8),u.\u0275\u0275directiveInject(V.FormGroupDirective,8),u.\u0275\u0275directiveInject(m.ErrorStateMatcher),u.\u0275\u0275directiveInject(V.NgControl,10))},v.\u0275cmp=u.\u0275\u0275defineComponent({type:v,selectors:[["mat-chip-list"]],contentQueries:function(M,G,rt){if(1&M&&u.\u0275\u0275contentQuery(rt,Ht,5),2&M){let Dt;u.\u0275\u0275queryRefresh(Dt=u.\u0275\u0275loadQuery())&&(G.chips=Dt)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(M,G){1&M&&u.\u0275\u0275listener("focus",function(){return G.focus()})("blur",function(){return G._blur()})("keydown",function(Dt){return G._keydown(Dt)}),2&M&&(u.\u0275\u0275hostProperty("id",G._uid),u.\u0275\u0275attribute("tabindex",G.disabled?null:G._tabIndex)("aria-describedby",G._ariaDescribedby||null)("aria-required",G.role?G.required:null)("aria-disabled",G.disabled.toString())("aria-invalid",G.errorState)("aria-multiselectable",G.multiple)("role",G.role)("aria-orientation",G.ariaOrientation),u.\u0275\u0275classProp("mat-chip-list-disabled",G.disabled)("mat-chip-list-invalid",G.errorState)("mat-chip-list-required",G.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:$e,useExisting:v}]),u.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:re,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(M,G){1&M&&(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}),v})(),L=(()=>{class v{}return v.\u0275fac=function(M){return new(M||v)},v.\u0275mod=u.\u0275\u0275defineNgModule({type:v}),v.\u0275inj=u.\u0275\u0275defineInjector({providers:[m.ErrorStateMatcher,{provide:sn,useValue:{separatorKeyCodes:[i.K5]}}],imports:[[m.MatCommonModule]]}),v})()},508:(Le,g,l)=>{"use strict";l.r(g),l.d(g,{AnimationCurves:()=>Me,AnimationDurations:()=>pe,DateAdapter:()=>nt,ErrorStateMatcher:()=>we,MATERIAL_SANITY_CHECKS:()=>se,MAT_DATE_FORMATS:()=>ve,MAT_DATE_LOCALE:()=>Ke,MAT_DATE_LOCALE_FACTORY:()=>ge,MAT_NATIVE_DATE_FORMATS:()=>Fe,MAT_OPTGROUP:()=>nn,MAT_OPTION_PARENT_COMPONENT:()=>ft,MAT_RIPPLE_GLOBAL_OPTIONS:()=>be,MatCommonModule:()=>De,MatLine:()=>Re,MatLineModule:()=>yt,MatNativeDateModule:()=>Y,MatOptgroup:()=>Ht,MatOption:()=>St,MatOptionModule:()=>an,MatOptionSelectionChange:()=>sn,MatPseudoCheckbox:()=>Ze,MatPseudoCheckboxModule:()=>tt,MatRipple:()=>re,MatRippleModule:()=>Ce,NativeDateAdapter:()=>Tt,NativeDateModule:()=>Je,RippleRef:()=>Ct,RippleRenderer:()=>Oe,ShowOnDirtyErrorStateMatcher:()=>me,VERSION:()=>le,_MatOptgroupBase:()=>$t,_MatOptionBase:()=>zt,_countGroupLabelsBeforeOption:()=>bn,_getOptionScrollPosition:()=>Zt,defaultRippleAnimationConfig:()=>Ot,mixinColor:()=>Pe,mixinDisableRipple:()=>J,mixinDisabled:()=>q,mixinErrorState:()=>Ie,mixinInitialized:()=>ie,mixinTabIndex:()=>ae,setLines:()=>_e});var i=l(5e3),u=l(226),c=l(9808),s=l(925),_=l(5664),C=l(3191),D=l(6758),I=l(9751),h=l(8675),A=l(6360),T=l(1159);const b=["*",[["mat-option"],["ng-container"]]],x=["*","mat-option, ng-container"];function V(Ge,ce){if(1&Ge&&i.\u0275\u0275element(0,"mat-pseudo-checkbox",4),2&Ge){const L=i.\u0275\u0275nextContext();i.\u0275\u0275property("state",L.selected?"checked":"unchecked")("disabled",L.disabled)}}function fe(Ge,ce){if(1&Ge&&(i.\u0275\u0275elementStart(0,"span",5),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&Ge){const L=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("(",L.group.label,")")}}const $=["*"],le=new i.Version("13.1.3");let Me=(()=>{class Ge{}return Ge.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Ge.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Ge.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Ge.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Ge})(),pe=(()=>{class Ge{}return Ge.COMPLEX="375ms",Ge.ENTERING="225ms",Ge.EXITING="195ms",Ge})();const se=new i.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function ye(){return!0}});let De=(()=>{class Ge{constructor(L,v,S){this._sanityChecks=v,this._document=S,this._hasDoneGlobalChecks=!1,L._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(L){return!(0,s.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[L])}}return Ge.\u0275fac=function(L){return new(L||Ge)(i.\u0275\u0275inject(_.qm),i.\u0275\u0275inject(se,8),i.\u0275\u0275inject(c.DOCUMENT))},Ge.\u0275mod=i.\u0275\u0275defineNgModule({type:Ge}),Ge.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.vT],u.vT]}),Ge})();function q(Ge){return class extends Ge{constructor(...ce){super(...ce),this._disabled=!1}get disabled(){return this._disabled}set disabled(ce){this._disabled=(0,C.Ig)(ce)}}}function Pe(Ge,ce){return class extends Ge{constructor(...L){super(...L),this.defaultColor=ce,this.color=ce}get color(){return this._color}set color(L){const v=L||this.defaultColor;v!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),v&&this._elementRef.nativeElement.classList.add(`mat-${v}`),this._color=v)}}}function J(Ge){return class extends Ge{constructor(...ce){super(...ce),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(ce){this._disableRipple=(0,C.Ig)(ce)}}}function ae(Ge,ce=0){return class extends Ge{constructor(...L){super(...L),this._tabIndex=ce,this.defaultTabIndex=ce}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(L){this._tabIndex=null!=L?(0,C.su)(L):this.defaultTabIndex}}}function Ie(Ge){return class extends Ge{constructor(...ce){super(...ce),this.stateChanges=new D.x,this.errorState=!1}updateErrorState(){const ce=this.errorState,M=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);M!==ce&&(this.errorState=M,this.stateChanges.next())}}}function ie(Ge){return class extends Ge{constructor(...ce){super(...ce),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new I.y(L=>{this._isInitialized?this._notifySubscriber(L):this._pendingSubscribers.push(L)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(ce){ce.next(),ce.complete()}}}const Ke=new i.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:ge});function ge(){return(0,i.inject)(i.LOCALE_ID)}class nt{constructor(){this._localeChanges=new D.x,this.localeChanges=this._localeChanges}getValidDateOrNull(ce){return this.isDateInstance(ce)&&this.isValid(ce)?ce:null}deserialize(ce){return null==ce||this.isDateInstance(ce)&&this.isValid(ce)?ce:this.invalid()}setLocale(ce){this.locale=ce,this._localeChanges.next()}compareDate(ce,L){return this.getYear(ce)-this.getYear(L)||this.getMonth(ce)-this.getMonth(L)||this.getDate(ce)-this.getDate(L)}sameDate(ce,L){if(ce&&L){let v=this.isValid(ce),S=this.isValid(L);return v&&S?!this.compareDate(ce,L):v==S}return ce==L}clampDate(ce,L,v){return L&&this.compareDate(ce,L)<0?L:v&&this.compareDate(ce,v)>0?v:ce}}const ve=new i.InjectionToken("mat-date-formats"),$e=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function ct(Ge,ce){const L=Array(Ge);for(let v=0;v<Ge;v++)L[v]=ce(v);return L}let Tt=(()=>{class Ge extends nt{constructor(L,v){super(),this.useUtcForDisplay=!1,super.setLocale(L)}getYear(L){return L.getFullYear()}getMonth(L){return L.getMonth()}getDate(L){return L.getDate()}getDayOfWeek(L){return L.getDay()}getMonthNames(L){const v=new Intl.DateTimeFormat(this.locale,{month:L,timeZone:"utc"});return ct(12,S=>this._format(v,new Date(2017,S,1)))}getDateNames(){const L=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return ct(31,v=>this._format(L,new Date(2017,0,v+1)))}getDayOfWeekNames(L){const v=new Intl.DateTimeFormat(this.locale,{weekday:L,timeZone:"utc"});return ct(7,S=>this._format(v,new Date(2017,0,S+1)))}getYearName(L){const v=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(v,L)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(L){return this.getDate(this._createDateWithOverflow(this.getYear(L),this.getMonth(L)+1,0))}clone(L){return new Date(L.getTime())}createDate(L,v,S){let M=this._createDateWithOverflow(L,v,S);return M.getMonth(),M}today(){return new Date}parse(L){return"number"==typeof L?new Date(L):L?new Date(Date.parse(L)):null}format(L,v){if(!this.isValid(L))throw Error("NativeDateAdapter: Cannot format invalid date.");const S=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},v),{timeZone:"utc"}));return this._format(S,L)}addCalendarYears(L,v){return this.addCalendarMonths(L,12*v)}addCalendarMonths(L,v){let S=this._createDateWithOverflow(this.getYear(L),this.getMonth(L)+v,this.getDate(L));return this.getMonth(S)!=((this.getMonth(L)+v)%12+12)%12&&(S=this._createDateWithOverflow(this.getYear(S),this.getMonth(S),0)),S}addCalendarDays(L,v){return this._createDateWithOverflow(this.getYear(L),this.getMonth(L),this.getDate(L)+v)}toIso8601(L){return[L.getUTCFullYear(),this._2digit(L.getUTCMonth()+1),this._2digit(L.getUTCDate())].join("-")}deserialize(L){if("string"==typeof L){if(!L)return null;if($e.test(L)){let v=new Date(L);if(this.isValid(v))return v}}return super.deserialize(L)}isDateInstance(L){return L instanceof Date}isValid(L){return!isNaN(L.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(L,v,S){const M=new Date;return M.setFullYear(L,v,S),M.setHours(0,0,0,0),M}_2digit(L){return("00"+L).slice(-2)}_format(L,v){const S=new Date;return S.setUTCFullYear(v.getFullYear(),v.getMonth(),v.getDate()),S.setUTCHours(v.getHours(),v.getMinutes(),v.getSeconds(),v.getMilliseconds()),L.format(S)}}return Ge.\u0275fac=function(L){return new(L||Ge)(i.\u0275\u0275inject(Ke,8),i.\u0275\u0275inject(s.t4))},Ge.\u0275prov=i.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac}),Ge})();const Fe={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 Je=(()=>{class Ge{}return Ge.\u0275fac=function(L){return new(L||Ge)},Ge.\u0275mod=i.\u0275\u0275defineNgModule({type:Ge}),Ge.\u0275inj=i.\u0275\u0275defineInjector({providers:[{provide:nt,useClass:Tt}],imports:[[s.ud]]}),Ge})(),Y=(()=>{class Ge{}return Ge.\u0275fac=function(L){return new(L||Ge)},Ge.\u0275mod=i.\u0275\u0275defineNgModule({type:Ge}),Ge.\u0275inj=i.\u0275\u0275defineInjector({providers:[{provide:ve,useValue:Fe}],imports:[[Je]]}),Ge})(),me=(()=>{class Ge{isErrorState(L,v){return!!(L&&L.invalid&&(L.dirty||v&&v.submitted))}}return Ge.\u0275fac=function(L){return new(L||Ge)},Ge.\u0275prov=i.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac}),Ge})(),we=(()=>{class Ge{isErrorState(L,v){return!!(L&&L.invalid&&(L.touched||v&&v.submitted))}}return Ge.\u0275fac=function(L){return new(L||Ge)},Ge.\u0275prov=i.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})(),Re=(()=>{class Ge{}return Ge.\u0275fac=function(L){return new(L||Ge)},Ge.\u0275dir=i.\u0275\u0275defineDirective({type:Ge,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Ge})();function _e(Ge,ce,L="mat"){Ge.changes.pipe((0,h.O)(Ge)).subscribe(({length:v})=>{Ye(ce,`${L}-2-line`,!1),Ye(ce,`${L}-3-line`,!1),Ye(ce,`${L}-multi-line`,!1),2===v||3===v?Ye(ce,`${L}-${v}-line`,!0):v>3&&Ye(ce,`${L}-multi-line`,!0)})}function Ye(Ge,ce,L){Ge.nativeElement.classList.toggle(ce,L)}let yt=(()=>{class Ge{}return Ge.\u0275fac=function(L){return new(L||Ge)},Ge.\u0275mod=i.\u0275\u0275defineNgModule({type:Ge}),Ge.\u0275inj=i.\u0275\u0275defineInjector({imports:[[De],De]}),Ge})();class Ct{constructor(ce,L,v){this._renderer=ce,this.element=L,this.config=v,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ot={enterDuration:225,exitDuration:150},Qe=(0,s.i$)({passive:!0}),N=["mousedown","touchstart"],oe=["mouseup","mouseleave","touchend","touchcancel"];class Oe{constructor(ce,L,v,S){this._target=ce,this._ngZone=L,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,S.isBrowser&&(this._containerElement=(0,C.fI)(v))}fadeInRipple(ce,L,v={}){const S=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),M=Object.assign(Object.assign({},Ot),v.animation);v.centered&&(ce=S.left+S.width/2,L=S.top+S.height/2);const G=v.radius||function Te(Ge,ce,L){const v=Math.max(Math.abs(Ge-L.left),Math.abs(Ge-L.right)),S=Math.max(Math.abs(ce-L.top),Math.abs(ce-L.bottom));return Math.sqrt(v*v+S*S)}(ce,L,S),rt=ce-S.left,Dt=L-S.top,Kt=M.enterDuration,rn=document.createElement("div");rn.classList.add("mat-ripple-element"),rn.style.left=rt-G+"px",rn.style.top=Dt-G+"px",rn.style.height=2*G+"px",rn.style.width=2*G+"px",null!=v.color&&(rn.style.backgroundColor=v.color),rn.style.transitionDuration=`${Kt}ms`,this._containerElement.appendChild(rn),function ue(Ge){window.getComputedStyle(Ge).getPropertyValue("opacity")}(rn),rn.style.transform="scale(1)";const je=new Ct(this,rn,v);return je.state=0,this._activeRipples.add(je),v.persistent||(this._mostRecentTransientRipple=je),this._runTimeoutOutsideZone(()=>{const Ue=je===this._mostRecentTransientRipple;je.state=1,!v.persistent&&(!Ue||!this._isPointerDown)&&je.fadeOut()},Kt),je}fadeOutRipple(ce){const L=this._activeRipples.delete(ce);if(ce===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!L)return;const v=ce.element,S=Object.assign(Object.assign({},Ot),ce.config.animation);v.style.transitionDuration=`${S.exitDuration}ms`,v.style.opacity="0",ce.state=2,this._runTimeoutOutsideZone(()=>{ce.state=3,v.remove()},S.exitDuration)}fadeOutAll(){this._activeRipples.forEach(ce=>ce.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(ce=>{ce.config.persistent||ce.fadeOut()})}setupTriggerEvents(ce){const L=(0,C.fI)(ce);!L||L===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=L,this._registerEvents(N))}handleEvent(ce){"mousedown"===ce.type?this._onMousedown(ce):"touchstart"===ce.type?this._onTouchStart(ce):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(oe),this._pointerUpEventsRegistered=!0)}_onMousedown(ce){const L=(0,_.X6)(ce),v=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!L&&!v&&(this._isPointerDown=!0,this.fadeInRipple(ce.clientX,ce.clientY,this._target.rippleConfig))}_onTouchStart(ce){if(!this._target.rippleDisabled&&!(0,_.yG)(ce)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const L=ce.changedTouches;for(let v=0;v<L.length;v++)this.fadeInRipple(L[v].clientX,L[v].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(ce=>{!ce.config.persistent&&(1===ce.state||ce.config.terminateOnPointerUp&&0===ce.state)&&ce.fadeOut()}))}_runTimeoutOutsideZone(ce,L=0){this._ngZone.runOutsideAngular(()=>setTimeout(ce,L))}_registerEvents(ce){this._ngZone.runOutsideAngular(()=>{ce.forEach(L=>{this._triggerElement.addEventListener(L,this,Qe)})})}_removeTriggerEvents(){this._triggerElement&&(N.forEach(ce=>{this._triggerElement.removeEventListener(ce,this,Qe)}),this._pointerUpEventsRegistered&&oe.forEach(ce=>{this._triggerElement.removeEventListener(ce,this,Qe)}))}}const be=new i.InjectionToken("mat-ripple-global-options");let re=(()=>{class Ge{constructor(L,v,S,M,G){this._elementRef=L,this._animationMode=G,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=M||{},this._rippleRenderer=new Oe(this,v,L,S)}get disabled(){return this._disabled}set disabled(L){L&&this.fadeOutAllNonPersistent(),this._disabled=L,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(L){this._trigger=L,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(L,v=0,S){return"number"==typeof L?this._rippleRenderer.fadeInRipple(L,v,Object.assign(Object.assign({},this.rippleConfig),S)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),L))}}return Ge.\u0275fac=function(L){return new(L||Ge)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(s.t4),i.\u0275\u0275directiveInject(be,8),i.\u0275\u0275directiveInject(A.ANIMATION_MODULE_TYPE,8))},Ge.\u0275dir=i.\u0275\u0275defineDirective({type:Ge,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(L,v){2&L&&i.\u0275\u0275classProp("mat-ripple-unbounded",v.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"]}),Ge})(),Ce=(()=>{class Ge{}return Ge.\u0275fac=function(L){return new(L||Ge)},Ge.\u0275mod=i.\u0275\u0275defineNgModule({type:Ge}),Ge.\u0275inj=i.\u0275\u0275defineInjector({imports:[[De,s.ud],De]}),Ge})(),Ze=(()=>{class Ge{constructor(L){this._animationMode=L,this.state="unchecked",this.disabled=!1}}return Ge.\u0275fac=function(L){return new(L||Ge)(i.\u0275\u0275directiveInject(A.ANIMATION_MODULE_TYPE,8))},Ge.\u0275cmp=i.\u0275\u0275defineComponent({type:Ge,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(L,v){2&L&&i.\u0275\u0275classProp("mat-pseudo-checkbox-indeterminate","indeterminate"===v.state)("mat-pseudo-checkbox-checked","checked"===v.state)("mat-pseudo-checkbox-disabled",v.disabled)("_mat-animation-noopable","NoopAnimations"===v._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(L,v){},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}),Ge})(),tt=(()=>{class Ge{}return Ge.\u0275fac=function(L){return new(L||Ge)},Ge.\u0275mod=i.\u0275\u0275defineNgModule({type:Ge}),Ge.\u0275inj=i.\u0275\u0275defineInjector({imports:[[De]]}),Ge})();const ft=new i.InjectionToken("MAT_OPTION_PARENT_COMPONENT"),pt=q(class{});let wt=0,$t=(()=>{class Ge extends pt{constructor(L){var v;super(),this._labelId="mat-optgroup-label-"+wt++,this._inert=null!==(v=null==L?void 0:L.inertGroups)&&void 0!==v&&v}}return Ge.\u0275fac=function(L){return new(L||Ge)(i.\u0275\u0275directiveInject(ft,8))},Ge.\u0275dir=i.\u0275\u0275defineDirective({type:Ge,inputs:{label:"label"},features:[i.\u0275\u0275InheritDefinitionFeature]}),Ge})();const nn=new i.InjectionToken("MatOptgroup");let Ht=(()=>{class Ge extends $t{}return Ge.\u0275fac=function(){let ce;return function(v){return(ce||(ce=i.\u0275\u0275getInheritedFactory(Ge)))(v||Ge)}}(),Ge.\u0275cmp=i.\u0275\u0275defineComponent({type:Ge,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(L,v){2&L&&(i.\u0275\u0275attribute("role",v._inert?null:"group")("aria-disabled",v._inert?null:v.disabled.toString())("aria-labelledby",v._inert?null:v._labelId),i.\u0275\u0275classProp("mat-optgroup-disabled",v.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[i.\u0275\u0275ProvidersFeature([{provide:nn,useExisting:Ge}]),i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:x,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(L,v){1&L&&(i.\u0275\u0275projectionDef(b),i.\u0275\u0275elementStart(0,"span",0),i.\u0275\u0275text(1),i.\u0275\u0275projection(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275projection(3,1)),2&L&&(i.\u0275\u0275property("id",v._labelId),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("",v.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}),Ge})(),En=0;class sn{constructor(ce,L=!1){this.source=ce,this.isUserInput=L}}let zt=(()=>{class Ge{constructor(L,v,S,M){this._element=L,this._changeDetectorRef=v,this._parent=S,this.group=M,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+En++,this.onSelectionChange=new i.EventEmitter,this._stateChanges=new D.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(L){this._disabled=(0,C.Ig)(L)}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(L,v){const S=this._getHostElement();"function"==typeof S.focus&&S.focus(v)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(L){(L.keyCode===T.K5||L.keyCode===T.L_)&&!(0,T.Vb)(L)&&(this._selectViaInteraction(),L.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 L=this.viewValue;L!==this._mostRecentViewValue&&(this._mostRecentViewValue=L,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(L=!1){this.onSelectionChange.emit(new sn(this,L))}}return Ge.\u0275fac=function(L){i.\u0275\u0275invalidFactory()},Ge.\u0275dir=i.\u0275\u0275defineDirective({type:Ge,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Ge})(),St=(()=>{class Ge extends zt{constructor(L,v,S,M){super(L,v,S,M)}}return Ge.\u0275fac=function(L){return new(L||Ge)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(ft,8),i.\u0275\u0275directiveInject(nn,8))},Ge.\u0275cmp=i.\u0275\u0275defineComponent({type:Ge,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(L,v){1&L&&i.\u0275\u0275listener("click",function(){return v._selectViaInteraction()})("keydown",function(M){return v._handleKeydown(M)}),2&L&&(i.\u0275\u0275hostProperty("id",v.id),i.\u0275\u0275attribute("tabindex",v._getTabIndex())("aria-selected",v._getAriaSelected())("aria-disabled",v.disabled.toString()),i.\u0275\u0275classProp("mat-selected",v.selected)("mat-option-multiple",v.multiple)("mat-active",v.active)("mat-option-disabled",v.disabled))},exportAs:["matOption"],features:[i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:$,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(L,v){1&L&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275template(0,V,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&L&&(i.\u0275\u0275property("ngIf",v.multiple),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngIf",v.group&&v.group._inert),i.\u0275\u0275advance(1),i.\u0275\u0275property("matRippleTrigger",v._getHostElement())("matRippleDisabled",v.disabled||v.disableRipple))},directives:[Ze,c.NgIf,re],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}),Ge})();function bn(Ge,ce,L){if(L.length){let v=ce.toArray(),S=L.toArray(),M=0;for(let G=0;G<Ge+1;G++)v[G].group&&v[G].group===S[M]&&M++;return M}return 0}function Zt(Ge,ce,L,v){return Ge<L?Ge:Ge+ce>L+v?Math.max(0,Ge-v+ce):L}let an=(()=>{class Ge{}return Ge.\u0275fac=function(L){return new(L||Ge)},Ge.\u0275mod=i.\u0275\u0275defineNgModule({type:Ge}),Ge.\u0275inj=i.\u0275\u0275defineInjector({imports:[[Ce,c.CommonModule,De,tt]]}),Ge})()},8966:(Le,g,l)=>{"use strict";l.r(g),l.d(g,{MAT_DIALOG_DATA:()=>Pe,MAT_DIALOG_DEFAULT_OPTIONS:()=>J,MAT_DIALOG_SCROLL_STRATEGY:()=>ae,MAT_DIALOG_SCROLL_STRATEGY_FACTORY:()=>Ie,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER:()=>Ke,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY:()=>ie,MatDialog:()=>nt,MatDialogActions:()=>Je,MatDialogClose:()=>ct,MatDialogConfig:()=>pe,MatDialogContainer:()=>ke,MatDialogContent:()=>Fe,MatDialogModule:()=>me,MatDialogRef:()=>st,MatDialogTitle:()=>Tt,_MatDialogBase:()=>ge,_MatDialogContainerBase:()=>De,_closeDialogVia:()=>q,matDialogAnimations:()=>ye,throwMatDialogContentAlreadyAttachedError:()=>se});var i=l(1314),u=l(7429),m=l(5e3),c=l(508),s=l(226),_=l(6758),C=l(9770),D=l(6921),I=l(9646),h=l(9300),A=l(5698),T=l(8675),b=l(925),x=l(9808),V=l(1777),fe=l(5664),$=l(1159),le=l(6360);function Me(we,Re){}class pe{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 ye={dialogContainer:(0,V.X$)("dialogContainer",[(0,V.SB)("void, exit",(0,V.oB)({opacity:0,transform:"scale(0.7)"})),(0,V.SB)("enter",(0,V.oB)({transform:"none"})),(0,V.eR)("* => enter",(0,V.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,V.oB)({transform:"none",opacity:1}))),(0,V.eR)("* => void, * => exit",(0,V.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,V.oB)({opacity:0})))])};function se(){throw Error("Attempting to attach dialog content after content is already attached")}let De=(()=>{class we extends u.en{constructor(_e,Ye,yt,Ct,Ot,dt,Qe,N){super(),this._elementRef=_e,this._focusTrapFactory=Ye,this._changeDetectorRef=yt,this._config=Ot,this._interactivityChecker=dt,this._ngZone=Qe,this._focusMonitor=N,this._animationStateChanged=new m.EventEmitter,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=oe=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(oe)),this._ariaLabelledBy=Ot.ariaLabelledBy||null,this._document=Ct}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(_e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(_e)}attachTemplatePortal(_e){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(_e)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(_e,Ye){this._interactivityChecker.isFocusable(_e)||(_e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{_e.addEventListener("blur",()=>_e.removeAttribute("tabindex")),_e.addEventListener("mousedown",()=>_e.removeAttribute("tabindex"))})),_e.focus(Ye)}_focusByCssSelector(_e,Ye){let yt=this._elementRef.nativeElement.querySelector(_e);yt&&this._forceFocus(yt,Ye)}_trapFocus(){const _e=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||_e.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Ye=>{Ye||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 _e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&_e&&"function"==typeof _e.focus){const Ye=(0,b.ht)(),yt=this._elementRef.nativeElement;(!Ye||Ye===this._document.body||Ye===yt||yt.contains(Ye))&&(this._focusMonitor?(this._focusMonitor.focusVia(_e,this._closeInteractionType),this._closeInteractionType=null):_e.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,b.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const _e=this._elementRef.nativeElement,Ye=(0,b.ht)();return _e===Ye||_e.contains(Ye)}}return we.\u0275fac=function(_e){return new(_e||we)(m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(fe.qV),m.\u0275\u0275directiveInject(m.ChangeDetectorRef),m.\u0275\u0275directiveInject(x.DOCUMENT,8),m.\u0275\u0275directiveInject(pe),m.\u0275\u0275directiveInject(fe.ic),m.\u0275\u0275directiveInject(m.NgZone),m.\u0275\u0275directiveInject(fe.tE))},we.\u0275dir=m.\u0275\u0275defineDirective({type:we,viewQuery:function(_e,Ye){if(1&_e&&m.\u0275\u0275viewQuery(u.Pl,7),2&_e){let yt;m.\u0275\u0275queryRefresh(yt=m.\u0275\u0275loadQuery())&&(Ye._portalOutlet=yt.first)}},features:[m.\u0275\u0275InheritDefinitionFeature]}),we})(),ke=(()=>{class we extends De{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:_e,totalTime:Ye}){"enter"===_e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Ye})):"exit"===_e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:Ye}))}_onAnimationStart({toState:_e,totalTime:Ye}){"enter"===_e?this._animationStateChanged.next({state:"opening",totalTime:Ye}):("exit"===_e||"void"===_e)&&this._animationStateChanged.next({state:"closing",totalTime:Ye})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return we.\u0275fac=function(){let Re;return function(Ye){return(Re||(Re=m.\u0275\u0275getInheritedFactory(we)))(Ye||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(_e,Ye){1&_e&&m.\u0275\u0275syntheticHostListener("@dialogContainer.start",function(Ct){return Ye._onAnimationStart(Ct)})("@dialogContainer.done",function(Ct){return Ye._onAnimationDone(Ct)}),2&_e&&(m.\u0275\u0275hostProperty("id",Ye._id),m.\u0275\u0275attribute("role",Ye._config.role)("aria-labelledby",Ye._config.ariaLabel?null:Ye._ariaLabelledBy)("aria-label",Ye._config.ariaLabel)("aria-describedby",Ye._config.ariaDescribedBy||null),m.\u0275\u0275syntheticHostProperty("@dialogContainer",Ye._state))},features:[m.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(_e,Ye){1&_e&&m.\u0275\u0275template(0,Me,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:[ye.dialogContainer]}}),we})(),Xe=0;class st{constructor(Re,_e,Ye="mat-dialog-"+Xe++){this._overlayRef=Re,this._containerInstance=_e,this.id=Ye,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new _.x,this._afterClosed=new _.x,this._beforeClosed=new _.x,this._state=0,_e._id=Ye,_e._animationStateChanged.pipe((0,h.h)(yt=>"opened"===yt.state),(0,A.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),_e._animationStateChanged.pipe((0,h.h)(yt=>"closed"===yt.state),(0,A.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Re.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),Re.keydownEvents().pipe((0,h.h)(yt=>yt.keyCode===$.hY&&!this.disableClose&&!(0,$.Vb)(yt))).subscribe(yt=>{yt.preventDefault(),q(this,"keyboard")}),Re.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():q(this,"mouse")})}close(Re){this._result=Re,this._containerInstance._animationStateChanged.pipe((0,h.h)(_e=>"closing"===_e.state),(0,A.q)(1)).subscribe(_e=>{this._beforeClosed.next(Re),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),_e.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(Re){let _e=this._getPositionStrategy();return Re&&(Re.left||Re.right)?Re.left?_e.left(Re.left):_e.right(Re.right):_e.centerHorizontally(),Re&&(Re.top||Re.bottom)?Re.top?_e.top(Re.top):_e.bottom(Re.bottom):_e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(Re="",_e=""){return this._overlayRef.updateSize({width:Re,height:_e}),this._overlayRef.updatePosition(),this}addPanelClass(Re){return this._overlayRef.addPanelClass(Re),this}removePanelClass(Re){return this._overlayRef.removePanelClass(Re),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function q(we,Re,_e){return void 0!==we._containerInstance&&(we._containerInstance._closeInteractionType=Re),we.close(_e)}const Pe=new m.InjectionToken("MatDialogData"),J=new m.InjectionToken("mat-dialog-default-options"),ae=new m.InjectionToken("mat-dialog-scroll-strategy");function Ie(we){return()=>we.scrollStrategies.block()}function ie(we){return()=>we.scrollStrategies.block()}const Ke={provide:ae,deps:[i.aV],useFactory:ie};let ge=(()=>{class we{constructor(_e,Ye,yt,Ct,Ot,dt,Qe,N,oe,Oe){this._overlay=_e,this._injector=Ye,this._defaultOptions=yt,this._parentDialog=Ct,this._overlayContainer=Ot,this._dialogRefConstructor=Qe,this._dialogContainerType=N,this._dialogDataToken=oe,this._animationMode=Oe,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new _.x,this._afterOpenedAtThisLevel=new _.x,this._ariaHiddenElements=new Map,this._dialogAnimatingOpen=!1,this.afterAllClosed=(0,C.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 _e=this._parentDialog;return _e?_e._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(_e,Ye){if(Ye=function ve(we,Re){return Object.assign(Object.assign({},Re),we)}(Ye,this._defaultOptions||new pe),Ye.id&&this.getDialogById(Ye.id),this._dialogAnimatingOpen)return this._lastDialogRef;const yt=this._createOverlay(Ye),Ct=this._attachDialogContainer(yt,Ye);if("NoopAnimations"!==this._animationMode){const dt=Ct._animationStateChanged.subscribe(Qe=>{"opening"===Qe.state&&(this._dialogAnimatingOpen=!0),"opened"===Qe.state&&(this._dialogAnimatingOpen=!1,dt.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new D.w0),this._animationStateSubscriptions.add(dt)}const Ot=this._attachDialogContent(_e,Ct,yt,Ye);return this._lastDialogRef=Ot,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Ot),Ot.afterClosed().subscribe(()=>this._removeOpenDialog(Ot)),this.afterOpened.next(Ot),Ct._initializeWithAttachedContent(),Ot}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(_e){return this.openDialogs.find(Ye=>Ye.id===_e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(_e){const Ye=this._getOverlayConfig(_e);return this._overlay.create(Ye)}_getOverlayConfig(_e){const Ye=new i.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:_e.scrollStrategy||this._scrollStrategy(),panelClass:_e.panelClass,hasBackdrop:_e.hasBackdrop,direction:_e.direction,minWidth:_e.minWidth,minHeight:_e.minHeight,maxWidth:_e.maxWidth,maxHeight:_e.maxHeight,disposeOnNavigation:_e.closeOnNavigation});return _e.backdropClass&&(Ye.backdropClass=_e.backdropClass),Ye}_attachDialogContainer(_e,Ye){const Ct=m.Injector.create({parent:Ye&&Ye.viewContainerRef&&Ye.viewContainerRef.injector||this._injector,providers:[{provide:pe,useValue:Ye}]}),Ot=new u.C5(this._dialogContainerType,Ye.viewContainerRef,Ct,Ye.componentFactoryResolver);return _e.attach(Ot).instance}_attachDialogContent(_e,Ye,yt,Ct){const Ot=new this._dialogRefConstructor(yt,Ye,Ct.id);if(_e instanceof m.TemplateRef)Ye.attachTemplatePortal(new u.UE(_e,null,{$implicit:Ct.data,dialogRef:Ot}));else{const dt=this._createInjector(Ct,Ot,Ye),Qe=Ye.attachComponentPortal(new u.C5(_e,Ct.viewContainerRef,dt));Ot.componentInstance=Qe.instance}return Ot.updateSize(Ct.width,Ct.height).updatePosition(Ct.position),Ot}_createInjector(_e,Ye,yt){const Ct=_e&&_e.viewContainerRef&&_e.viewContainerRef.injector,Ot=[{provide:this._dialogContainerType,useValue:yt},{provide:this._dialogDataToken,useValue:_e.data},{provide:this._dialogRefConstructor,useValue:Ye}];return _e.direction&&(!Ct||!Ct.get(s.Is,null,m.InjectFlags.Optional))&&Ot.push({provide:s.Is,useValue:{value:_e.direction,change:(0,I.of)()}}),m.Injector.create({parent:Ct||this._injector,providers:Ot})}_removeOpenDialog(_e){const Ye=this.openDialogs.indexOf(_e);Ye>-1&&(this.openDialogs.splice(Ye,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((yt,Ct)=>{yt?Ct.setAttribute("aria-hidden",yt):Ct.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const _e=this._overlayContainer.getContainerElement();if(_e.parentElement){const Ye=_e.parentElement.children;for(let yt=Ye.length-1;yt>-1;yt--){let Ct=Ye[yt];Ct!==_e&&"SCRIPT"!==Ct.nodeName&&"STYLE"!==Ct.nodeName&&!Ct.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Ct,Ct.getAttribute("aria-hidden")),Ct.setAttribute("aria-hidden","true"))}}}_closeDialogs(_e){let Ye=_e.length;for(;Ye--;)_e[Ye].close()}}return we.\u0275fac=function(_e){m.\u0275\u0275invalidFactory()},we.\u0275dir=m.\u0275\u0275defineDirective({type:we}),we})(),nt=(()=>{class we extends ge{constructor(_e,Ye,yt,Ct,Ot,dt,Qe,N){super(_e,Ye,Ct,dt,Qe,Ot,st,ke,Pe,N)}}return we.\u0275fac=function(_e){return new(_e||we)(m.\u0275\u0275inject(i.aV),m.\u0275\u0275inject(m.Injector),m.\u0275\u0275inject(x.Location,8),m.\u0275\u0275inject(J,8),m.\u0275\u0275inject(ae),m.\u0275\u0275inject(we,12),m.\u0275\u0275inject(i.Xj),m.\u0275\u0275inject(le.ANIMATION_MODULE_TYPE,8))},we.\u0275prov=m.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})(),$e=0,ct=(()=>{class we{constructor(_e,Ye,yt){this.dialogRef=_e,this._elementRef=Ye,this._dialog=yt,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Y(this._elementRef,this._dialog.openDialogs))}ngOnChanges(_e){const Ye=_e._matDialogClose||_e._matDialogCloseResult;Ye&&(this.dialogResult=Ye.currentValue)}_onButtonClick(_e){q(this.dialogRef,0===_e.screenX&&0===_e.screenY?"keyboard":"mouse",this.dialogResult)}}return we.\u0275fac=function(_e){return new(_e||we)(m.\u0275\u0275directiveInject(st,8),m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(nt))},we.\u0275dir=m.\u0275\u0275defineDirective({type:we,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(_e,Ye){1&_e&&m.\u0275\u0275listener("click",function(Ct){return Ye._onButtonClick(Ct)}),2&_e&&m.\u0275\u0275attribute("aria-label",Ye.ariaLabel||null)("type",Ye.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[m.\u0275\u0275NgOnChangesFeature]}),we})(),Tt=(()=>{class we{constructor(_e,Ye,yt){this._dialogRef=_e,this._elementRef=Ye,this._dialog=yt,this.id="mat-dialog-title-"+$e++}ngOnInit(){this._dialogRef||(this._dialogRef=Y(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const _e=this._dialogRef._containerInstance;_e&&!_e._ariaLabelledBy&&(_e._ariaLabelledBy=this.id)})}}return we.\u0275fac=function(_e){return new(_e||we)(m.\u0275\u0275directiveInject(st,8),m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(nt))},we.\u0275dir=m.\u0275\u0275defineDirective({type:we,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(_e,Ye){2&_e&&m.\u0275\u0275hostProperty("id",Ye.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),we})(),Fe=(()=>{class we{}return we.\u0275fac=function(_e){return new(_e||we)},we.\u0275dir=m.\u0275\u0275defineDirective({type:we,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),we})(),Je=(()=>{class we{}return we.\u0275fac=function(_e){return new(_e||we)},we.\u0275dir=m.\u0275\u0275defineDirective({type:we,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),we})();function Y(we,Re){let _e=we.nativeElement.parentElement;for(;_e&&!_e.classList.contains("mat-dialog-container");)_e=_e.parentElement;return _e?Re.find(Ye=>Ye.id===_e.id):null}let me=(()=>{class we{}return we.\u0275fac=function(_e){return new(_e||we)},we.\u0275mod=m.\u0275\u0275defineNgModule({type:we}),we.\u0275inj=m.\u0275\u0275defineInjector({providers:[nt,Ke],imports:[[i.U8,u.eL,c.MatCommonModule],c.MatCommonModule]}),we})()},5245:(Le,g,l)=>{"use strict";l.r(g),l.d(g,{ICON_REGISTRY_PROVIDER:()=>Pe,ICON_REGISTRY_PROVIDER_FACTORY:()=>q,MAT_ICON_LOCATION:()=>Ke,MAT_ICON_LOCATION_FACTORY:()=>ge,MatIcon:()=>ct,MatIconModule:()=>Tt,MatIconRegistry:()=>st,getMatIconFailedToSanitizeLiteralError:()=>ke,getMatIconFailedToSanitizeUrlError:()=>De,getMatIconNameNotFoundError:()=>ye,getMatIconNoHttpProviderError:()=>se});var i=l(5e3),u=l(508),m=l(3191),c=l(9808),s=l(9646),_=l(2843),C=l(4128),D=l(6921),I=l(8505),h=l(4004),A=l(262),T=l(8746),b=l(3099),x=l(5698),V=l(520),fe=l(2313);const $=["*"];let le;function pe(Fe){var Je;return(null===(Je=function Me(){if(void 0===le&&(le=null,"undefined"!=typeof window)){const Fe=window;void 0!==Fe.trustedTypes&&(le=Fe.trustedTypes.createPolicy("angular#components",{createHTML:Je=>Je}))}return le}())||void 0===Je?void 0:Je.createHTML(Fe))||Fe}function ye(Fe){return Error(`Unable to find icon with the name "${Fe}"`)}function se(){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 De(Fe){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Fe}".`)}function ke(Fe){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Fe}".`)}class Xe{constructor(Je,Y,me){this.url=Je,this.svgText=Y,this.options=me}}let st=(()=>{class Fe{constructor(Y,me,we,Re){this._httpClient=Y,this._sanitizer=me,this._errorHandler=Re,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(Y,me,we){return this.addSvgIconInNamespace("",Y,me,we)}addSvgIconLiteral(Y,me,we){return this.addSvgIconLiteralInNamespace("",Y,me,we)}addSvgIconInNamespace(Y,me,we,Re){return this._addSvgIconConfig(Y,me,new Xe(we,null,Re))}addSvgIconResolver(Y){return this._resolvers.push(Y),this}addSvgIconLiteralInNamespace(Y,me,we,Re){const _e=this._sanitizer.sanitize(i.SecurityContext.HTML,we);if(!_e)throw ke(we);const Ye=pe(_e);return this._addSvgIconConfig(Y,me,new Xe("",Ye,Re))}addSvgIconSet(Y,me){return this.addSvgIconSetInNamespace("",Y,me)}addSvgIconSetLiteral(Y,me){return this.addSvgIconSetLiteralInNamespace("",Y,me)}addSvgIconSetInNamespace(Y,me,we){return this._addSvgIconSetConfig(Y,new Xe(me,null,we))}addSvgIconSetLiteralInNamespace(Y,me,we){const Re=this._sanitizer.sanitize(i.SecurityContext.HTML,me);if(!Re)throw ke(me);const _e=pe(Re);return this._addSvgIconSetConfig(Y,new Xe("",_e,we))}registerFontClassAlias(Y,me=Y){return this._fontCssClassesByAlias.set(Y,me),this}classNameForFontAlias(Y){return this._fontCssClassesByAlias.get(Y)||Y}setDefaultFontSetClass(Y){return this._defaultFontSetClass=Y,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Y){const me=this._sanitizer.sanitize(i.SecurityContext.RESOURCE_URL,Y);if(!me)throw De(Y);const we=this._cachedIconsByUrl.get(me);return we?(0,s.of)(J(we)):this._loadSvgIconFromConfig(new Xe(Y,null)).pipe((0,I.b)(Re=>this._cachedIconsByUrl.set(me,Re)),(0,h.U)(Re=>J(Re)))}getNamedSvgIcon(Y,me=""){const we=ae(me,Y);let Re=this._svgIconConfigs.get(we);if(Re)return this._getSvgFromConfig(Re);if(Re=this._getIconConfigFromResolvers(me,Y),Re)return this._svgIconConfigs.set(we,Re),this._getSvgFromConfig(Re);const _e=this._iconSetConfigs.get(me);return _e?this._getSvgFromIconSetConfigs(Y,_e):(0,_._)(ye(we))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Y){return Y.svgText?(0,s.of)(J(this._svgElementFromConfig(Y))):this._loadSvgIconFromConfig(Y).pipe((0,h.U)(me=>J(me)))}_getSvgFromIconSetConfigs(Y,me){const we=this._extractIconWithNameFromAnySet(Y,me);if(we)return(0,s.of)(we);const Re=me.filter(_e=>!_e.svgText).map(_e=>this._loadSvgIconSetFromConfig(_e).pipe((0,A.K)(Ye=>{const Ct=`Loading icon set URL: ${this._sanitizer.sanitize(i.SecurityContext.RESOURCE_URL,_e.url)} failed: ${Ye.message}`;return this._errorHandler.handleError(new Error(Ct)),(0,s.of)(null)})));return(0,C.D)(Re).pipe((0,h.U)(()=>{const _e=this._extractIconWithNameFromAnySet(Y,me);if(!_e)throw ye(Y);return _e}))}_extractIconWithNameFromAnySet(Y,me){for(let we=me.length-1;we>=0;we--){const Re=me[we];if(Re.svgText&&Re.svgText.toString().indexOf(Y)>-1){const _e=this._svgElementFromConfig(Re),Ye=this._extractSvgIconFromSet(_e,Y,Re.options);if(Ye)return Ye}}return null}_loadSvgIconFromConfig(Y){return this._fetchIcon(Y).pipe((0,I.b)(me=>Y.svgText=me),(0,h.U)(()=>this._svgElementFromConfig(Y)))}_loadSvgIconSetFromConfig(Y){return Y.svgText?(0,s.of)(null):this._fetchIcon(Y).pipe((0,I.b)(me=>Y.svgText=me))}_extractSvgIconFromSet(Y,me,we){const Re=Y.querySelector(`[id="${me}"]`);if(!Re)return null;const _e=Re.cloneNode(!0);if(_e.removeAttribute("id"),"svg"===_e.nodeName.toLowerCase())return this._setSvgAttributes(_e,we);if("symbol"===_e.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(_e),we);const Ye=this._svgElementFromString(pe("<svg></svg>"));return Ye.appendChild(_e),this._setSvgAttributes(Ye,we)}_svgElementFromString(Y){const me=this._document.createElement("DIV");me.innerHTML=Y;const we=me.querySelector("svg");if(!we)throw Error("<svg> tag not found");return we}_toSvgElement(Y){const me=this._svgElementFromString(pe("<svg></svg>")),we=Y.attributes;for(let Re=0;Re<we.length;Re++){const{name:_e,value:Ye}=we[Re];"id"!==_e&&me.setAttribute(_e,Ye)}for(let Re=0;Re<Y.childNodes.length;Re++)Y.childNodes[Re].nodeType===this._document.ELEMENT_NODE&&me.appendChild(Y.childNodes[Re].cloneNode(!0));return me}_setSvgAttributes(Y,me){return Y.setAttribute("fit",""),Y.setAttribute("height","100%"),Y.setAttribute("width","100%"),Y.setAttribute("preserveAspectRatio","xMidYMid meet"),Y.setAttribute("focusable","false"),me&&me.viewBox&&Y.setAttribute("viewBox",me.viewBox),Y}_fetchIcon(Y){var me;const{url:we,options:Re}=Y,_e=null!==(me=null==Re?void 0:Re.withCredentials)&&void 0!==me&&me;if(!this._httpClient)throw se();if(null==we)throw Error(`Cannot fetch icon from URL "${we}".`);const Ye=this._sanitizer.sanitize(i.SecurityContext.RESOURCE_URL,we);if(!Ye)throw De(we);const yt=this._inProgressUrlFetches.get(Ye);if(yt)return yt;const Ct=this._httpClient.get(Ye,{responseType:"text",withCredentials:_e}).pipe((0,h.U)(Ot=>pe(Ot)),(0,T.x)(()=>this._inProgressUrlFetches.delete(Ye)),(0,b.B)());return this._inProgressUrlFetches.set(Ye,Ct),Ct}_addSvgIconConfig(Y,me,we){return this._svgIconConfigs.set(ae(Y,me),we),this}_addSvgIconSetConfig(Y,me){const we=this._iconSetConfigs.get(Y);return we?we.push(me):this._iconSetConfigs.set(Y,[me]),this}_svgElementFromConfig(Y){if(!Y.svgElement){const me=this._svgElementFromString(Y.svgText);this._setSvgAttributes(me,Y.options),Y.svgElement=me}return Y.svgElement}_getIconConfigFromResolvers(Y,me){for(let we=0;we<this._resolvers.length;we++){const Re=this._resolvers[we](me,Y);if(Re)return Ie(Re)?new Xe(Re.url,null,Re.options):new Xe(Re,null)}}}return Fe.\u0275fac=function(Y){return new(Y||Fe)(i.\u0275\u0275inject(V.HttpClient,8),i.\u0275\u0275inject(fe.DomSanitizer),i.\u0275\u0275inject(c.DOCUMENT,8),i.\u0275\u0275inject(i.ErrorHandler))},Fe.\u0275prov=i.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac,providedIn:"root"}),Fe})();function q(Fe,Je,Y,me,we){return Fe||new st(Je,Y,we,me)}const Pe={provide:st,deps:[[new i.Optional,new i.SkipSelf,st],[new i.Optional,V.HttpClient],fe.DomSanitizer,i.ErrorHandler,[new i.Optional,c.DOCUMENT]],useFactory:q};function J(Fe){return Fe.cloneNode(!0)}function ae(Fe,Je){return Fe+":"+Je}function Ie(Fe){return!(!Fe.url||!Fe.options)}const ie=(0,u.mixinColor)(class{constructor(Fe){this._elementRef=Fe}}),Ke=new i.InjectionToken("mat-icon-location",{providedIn:"root",factory:ge});function ge(){const Fe=(0,i.inject)(c.DOCUMENT),Je=Fe?Fe.location:null;return{getPathname:()=>Je?Je.pathname+Je.search:""}}const nt=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],ve=nt.map(Fe=>`[${Fe}]`).join(", "),$e=/^url\(['"]?#(.*?)['"]?\)$/;let ct=(()=>{class Fe extends ie{constructor(Y,me,we,Re,_e){super(Y),this._iconRegistry=me,this._location=Re,this._errorHandler=_e,this._inline=!1,this._currentIconFetch=D.w0.EMPTY,we||Y.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(Y){this._inline=(0,m.Ig)(Y)}get svgIcon(){return this._svgIcon}set svgIcon(Y){Y!==this._svgIcon&&(Y?this._updateSvgIcon(Y):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Y)}get fontSet(){return this._fontSet}set fontSet(Y){const me=this._cleanupFontValue(Y);me!==this._fontSet&&(this._fontSet=me,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Y){const me=this._cleanupFontValue(Y);me!==this._fontIcon&&(this._fontIcon=me,this._updateFontIconClasses())}_splitIconName(Y){if(!Y)return["",""];const me=Y.split(":");switch(me.length){case 1:return["",me[0]];case 2:return me;default:throw Error(`Invalid icon name: "${Y}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Y=this._elementsWithExternalReferences;if(Y&&Y.size){const me=this._location.getPathname();me!==this._previousPath&&(this._previousPath=me,this._prependPathToReferences(me))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Y){this._clearSvgElement();const me=Y.querySelectorAll("style");for(let Re=0;Re<me.length;Re++)me[Re].textContent+=" ";const we=this._location.getPathname();this._previousPath=we,this._cacheChildrenWithExternalReferences(Y),this._prependPathToReferences(we),this._elementRef.nativeElement.appendChild(Y)}_clearSvgElement(){const Y=this._elementRef.nativeElement;let me=Y.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();me--;){const we=Y.childNodes[me];(1!==we.nodeType||"svg"===we.nodeName.toLowerCase())&&we.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Y=this._elementRef.nativeElement,me=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();me!=this._previousFontSetClass&&(this._previousFontSetClass&&Y.classList.remove(this._previousFontSetClass),me&&Y.classList.add(me),this._previousFontSetClass=me),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&Y.classList.remove(this._previousFontIconClass),this.fontIcon&&Y.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Y){return"string"==typeof Y?Y.trim().split(" ")[0]:Y}_prependPathToReferences(Y){const me=this._elementsWithExternalReferences;me&&me.forEach((we,Re)=>{we.forEach(_e=>{Re.setAttribute(_e.name,`url('${Y}#${_e.value}')`)})})}_cacheChildrenWithExternalReferences(Y){const me=Y.querySelectorAll(ve),we=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Re=0;Re<me.length;Re++)nt.forEach(_e=>{const Ye=me[Re],yt=Ye.getAttribute(_e),Ct=yt?yt.match($e):null;if(Ct){let Ot=we.get(Ye);Ot||(Ot=[],we.set(Ye,Ot)),Ot.push({name:_e,value:Ct[1]})}})}_updateSvgIcon(Y){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Y){const[me,we]=this._splitIconName(Y);me&&(this._svgNamespace=me),we&&(this._svgName=we),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(we,me).pipe((0,x.q)(1)).subscribe(Re=>this._setSvgElement(Re),Re=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${me}:${we}! ${Re.message}`))})}}}return Fe.\u0275fac=function(Y){return new(Y||Fe)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(st),i.\u0275\u0275injectAttribute("aria-hidden"),i.\u0275\u0275directiveInject(Ke),i.\u0275\u0275directiveInject(i.ErrorHandler))},Fe.\u0275cmp=i.\u0275\u0275defineComponent({type:Fe,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(Y,me){2&Y&&(i.\u0275\u0275attribute("data-mat-icon-type",me._usingFontIcon()?"font":"svg")("data-mat-icon-name",me._svgName||me.fontIcon)("data-mat-icon-namespace",me._svgNamespace||me.fontSet),i.\u0275\u0275classProp("mat-icon-inline",me.inline)("mat-icon-no-color","primary"!==me.color&&"accent"!==me.color&&"warn"!==me.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:$,decls:1,vars:0,template:function(Y,me){1&Y&&(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}),Fe})(),Tt=(()=>{class Fe{}return Fe.\u0275fac=function(Y){return new(Y||Fe)},Fe.\u0275mod=i.\u0275\u0275defineNgModule({type:Fe}),Fe.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.MatCommonModule],u.MatCommonModule]}),Fe})()},2181:(Le,g,l)=>{"use strict";l.r(g),l.d(g,{MAT_MENU_CONTENT:()=>Ie,MAT_MENU_DEFAULT_OPTIONS:()=>Je,MAT_MENU_PANEL:()=>ct,MAT_MENU_SCROLL_STRATEGY:()=>_e,MatMenu:()=>Re,MatMenuContent:()=>Ke,MatMenuItem:()=>Fe,MatMenuModule:()=>N,MatMenuTrigger:()=>Qe,_MatMenuBase:()=>we,_MatMenuContentBase:()=>ie,_MatMenuTriggerBase:()=>dt,fadeInItems:()=>J,matMenuAnimations:()=>Pe,transformMenu:()=>ae});var i=l(5664),u=l(3191),m=l(1159),c=l(5e3),s=l(6758),_=l(6921),C=l(6451),D=l(9646),I=l(3101),h=l(8675),A=l(3900),T=l(5698),b=l(9300),x=l(2722),V=l(4326),fe=l(1777),$=l(7429),le=l(9808),Me=l(508),pe=l(1314),ye=l(925),se=l(226),De=l(9071);const ke=["mat-menu-item",""];function Xe(oe,Oe){1&oe&&(c.\u0275\u0275namespaceSVG(),c.\u0275\u0275elementStart(0,"svg",2),c.\u0275\u0275element(1,"polygon",3),c.\u0275\u0275elementEnd())}const st=["*"];function q(oe,Oe){if(1&oe){const ue=c.\u0275\u0275getCurrentView();c.\u0275\u0275elementStart(0,"div",0),c.\u0275\u0275listener("keydown",function(be){return c.\u0275\u0275restoreView(ue),c.\u0275\u0275nextContext()._handleKeydown(be)})("click",function(){return c.\u0275\u0275restoreView(ue),c.\u0275\u0275nextContext().closed.emit("click")})("@transformMenu.start",function(be){return c.\u0275\u0275restoreView(ue),c.\u0275\u0275nextContext()._onAnimationStart(be)})("@transformMenu.done",function(be){return c.\u0275\u0275restoreView(ue),c.\u0275\u0275nextContext()._onAnimationDone(be)}),c.\u0275\u0275elementStart(1,"div",1),c.\u0275\u0275projection(2),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementEnd()}if(2&oe){const ue=c.\u0275\u0275nextContext();c.\u0275\u0275property("id",ue.panelId)("ngClass",ue._classList)("@transformMenu",ue._panelAnimationState),c.\u0275\u0275attribute("aria-label",ue.ariaLabel||null)("aria-labelledby",ue.ariaLabelledby||null)("aria-describedby",ue.ariaDescribedby||null)}}const Pe={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)")])])},J=Pe.fadeInItems,ae=Pe.transformMenu,Ie=new c.InjectionToken("MatMenuContent");let ie=(()=>{class oe{constructor(ue,Te,be,re,Ce,Ze,tt){this._template=ue,this._componentFactoryResolver=Te,this._appRef=be,this._injector=re,this._viewContainerRef=Ce,this._document=Ze,this._changeDetectorRef=tt,this._attached=new s.x}attach(ue={}){var Te;this._portal||(this._portal=new $.UE(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new $.u0(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const be=this._template.elementRef.nativeElement;be.parentNode.insertBefore(this._outlet.outletElement,be),null===(Te=this._changeDetectorRef)||void 0===Te||Te.markForCheck(),this._portal.attach(this._outlet,ue),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return oe.\u0275fac=function(ue){return new(ue||oe)(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(le.DOCUMENT),c.\u0275\u0275directiveInject(c.ChangeDetectorRef))},oe.\u0275dir=c.\u0275\u0275defineDirective({type:oe}),oe})(),Ke=(()=>{class oe extends ie{}return oe.\u0275fac=function(){let Oe;return function(Te){return(Oe||(Oe=c.\u0275\u0275getInheritedFactory(oe)))(Te||oe)}}(),oe.\u0275dir=c.\u0275\u0275defineDirective({type:oe,selectors:[["ng-template","matMenuContent",""]],features:[c.\u0275\u0275ProvidersFeature([{provide:Ie,useExisting:oe}]),c.\u0275\u0275InheritDefinitionFeature]}),oe})();const ct=new c.InjectionToken("MAT_MENU_PANEL"),Tt=(0,Me.mixinDisableRipple)((0,Me.mixinDisabled)(class{}));let Fe=(()=>{class oe extends Tt{constructor(ue,Te,be,re,Ce){var Ze;super(),this._elementRef=ue,this._focusMonitor=be,this._parentMenu=re,this._changeDetectorRef=Ce,this.role="menuitem",this._hovered=new s.x,this._focused=new s.x,this._highlighted=!1,this._triggersSubmenu=!1,null===(Ze=null==re?void 0:re.addItem)||void 0===Ze||Ze.call(re,this)}focus(ue,Te){this._focusMonitor&&ue?this._focusMonitor.focusVia(this._getHostElement(),ue,Te):this._getHostElement().focus(Te),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(ue){this.disabled&&(ue.preventDefault(),ue.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var ue;const Te=this._elementRef.nativeElement.cloneNode(!0),be=Te.querySelectorAll("mat-icon, .material-icons");for(let re=0;re<be.length;re++)be[re].remove();return(null===(ue=Te.textContent)||void 0===ue?void 0:ue.trim())||""}_setHighlighted(ue){var Te;this._highlighted=ue,null===(Te=this._changeDetectorRef)||void 0===Te||Te.markForCheck()}}return oe.\u0275fac=function(ue){return new(ue||oe)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(le.DOCUMENT),c.\u0275\u0275directiveInject(i.tE),c.\u0275\u0275directiveInject(ct,8),c.\u0275\u0275directiveInject(c.ChangeDetectorRef))},oe.\u0275cmp=c.\u0275\u0275defineComponent({type:oe,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(ue,Te){1&ue&&c.\u0275\u0275listener("click",function(re){return Te._checkDisabled(re)})("mouseenter",function(){return Te._handleMouseEnter()}),2&ue&&(c.\u0275\u0275attribute("role",Te.role)("tabindex",Te._getTabIndex())("aria-disabled",Te.disabled.toString())("disabled",Te.disabled||null),c.\u0275\u0275classProp("mat-menu-item",!0)("mat-menu-item-highlighted",Te._highlighted)("mat-menu-item-submenu-trigger",Te._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[c.\u0275\u0275InheritDefinitionFeature],attrs:ke,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(ue,Te){1&ue&&(c.\u0275\u0275projectionDef(),c.\u0275\u0275projection(0),c.\u0275\u0275element(1,"div",0),c.\u0275\u0275template(2,Xe,2,0,"svg",1)),2&ue&&(c.\u0275\u0275advance(1),c.\u0275\u0275property("matRippleDisabled",Te.disableRipple||Te.disabled)("matRippleTrigger",Te._getHostElement()),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngIf",Te._triggersSubmenu))},directives:[Me.MatRipple,le.NgIf],encapsulation:2,changeDetection:0}),oe})();const Je=new c.InjectionToken("mat-menu-default-options",{providedIn:"root",factory:function Y(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let me=0,we=(()=>{class oe{constructor(ue,Te,be){this._elementRef=ue,this._ngZone=Te,this._defaultOptions=be,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-"+me++}get xPosition(){return this._xPosition}set xPosition(ue){this._xPosition=ue,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(ue){this._yPosition=ue,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(ue){this._overlapTrigger=(0,u.Ig)(ue)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ue){this._hasBackdrop=(0,u.Ig)(ue)}set panelClass(ue){const Te=this._previousPanelClass;Te&&Te.length&&Te.split(" ").forEach(be=>{this._classList[be]=!1}),this._previousPanelClass=ue,ue&&ue.length&&(ue.split(" ").forEach(be=>{this._classList[be]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(ue){this.panelClass=ue}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)(ue=>(0,C.T)(...ue.map(Te=>Te._focused)))).subscribe(ue=>this._keyManager.updateActiveItem(ue))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,h.O)(this._directDescendantItems),(0,A.w)(Te=>(0,C.T)(...Te.map(be=>be._hovered))))}addItem(ue){}removeItem(ue){}_handleKeydown(ue){const Te=ue.keyCode,be=this._keyManager;switch(Te){case m.hY:(0,m.Vb)(ue)||(ue.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(Te===m.LH||Te===m.JH)&&be.setFocusOrigin("keyboard"),void be.onKeydown(ue)}ue.stopPropagation()}focusFirstItem(ue="program"){this.lazyContent?this._ngZone.onStable.pipe((0,T.q)(1)).subscribe(()=>this._focusFirstItem(ue)):this._focusFirstItem(ue)}_focusFirstItem(ue){const Te=this._keyManager;if(Te.setFocusOrigin(ue).setFirstItemActive(),!Te.activeItem&&this._directDescendantItems.length){let be=this._directDescendantItems.first._getHostElement().parentElement;for(;be;){if("menu"===be.getAttribute("role")){be.focus();break}be=be.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(ue){const Te=Math.min(this._baseElevation+ue,24),be=`${this._elevationPrefix}${Te}`,re=Object.keys(this._classList).find(Ce=>Ce.startsWith(this._elevationPrefix));(!re||re===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[be]=!0,this._previousElevation=be)}setPositionClasses(ue=this.xPosition,Te=this.yPosition){const be=this._classList;be["mat-menu-before"]="before"===ue,be["mat-menu-after"]="after"===ue,be["mat-menu-above"]="above"===Te,be["mat-menu-below"]="below"===Te}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(ue){this._animationDone.next(ue),this._isAnimating=!1}_onAnimationStart(ue){this._isAnimating=!0,"enter"===ue.toState&&0===this._keyManager.activeItemIndex&&(ue.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,h.O)(this._allItems)).subscribe(ue=>{this._directDescendantItems.reset(ue.filter(Te=>Te._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return oe.\u0275fac=function(ue){return new(ue||oe)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.NgZone),c.\u0275\u0275directiveInject(Je))},oe.\u0275dir=c.\u0275\u0275defineDirective({type:oe,contentQueries:function(ue,Te,be){if(1&ue&&(c.\u0275\u0275contentQuery(be,Ie,5),c.\u0275\u0275contentQuery(be,Fe,5),c.\u0275\u0275contentQuery(be,Fe,4)),2&ue){let re;c.\u0275\u0275queryRefresh(re=c.\u0275\u0275loadQuery())&&(Te.lazyContent=re.first),c.\u0275\u0275queryRefresh(re=c.\u0275\u0275loadQuery())&&(Te._allItems=re),c.\u0275\u0275queryRefresh(re=c.\u0275\u0275loadQuery())&&(Te.items=re)}},viewQuery:function(ue,Te){if(1&ue&&c.\u0275\u0275viewQuery(c.TemplateRef,5),2&ue){let be;c.\u0275\u0275queryRefresh(be=c.\u0275\u0275loadQuery())&&(Te.templateRef=be.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"}}),oe})(),Re=(()=>{class oe extends we{constructor(ue,Te,be){super(ue,Te,be),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return oe.\u0275fac=function(ue){return new(ue||oe)(c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.NgZone),c.\u0275\u0275directiveInject(Je))},oe.\u0275cmp=c.\u0275\u0275defineComponent({type:oe,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(ue,Te){2&ue&&c.\u0275\u0275attribute("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[c.\u0275\u0275ProvidersFeature([{provide:ct,useExisting:oe}]),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(ue,Te){1&ue&&(c.\u0275\u0275projectionDef(),c.\u0275\u0275template(0,q,3,6,"ng-template"))},directives:[le.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:[Pe.transformMenu,Pe.fadeInItems]},changeDetection:0}),oe})();const _e=new c.InjectionToken("mat-menu-scroll-strategy"),yt={provide:_e,deps:[pe.aV],useFactory:function Ye(oe){return()=>oe.scrollStrategies.reposition()}},Ot=(0,ye.i$)({passive:!0});let dt=(()=>{class oe{constructor(ue,Te,be,re,Ce,Ze,tt,ft){this._overlay=ue,this._element=Te,this._viewContainerRef=be,this._menuItemInstance=Ze,this._dir=tt,this._focusMonitor=ft,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=_.w0.EMPTY,this._hoverSubscription=_.w0.EMPTY,this._menuCloseSubscription=_.w0.EMPTY,this._handleTouchStart=pt=>{(0,i.yG)(pt)||(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=re,this._parentMaterialMenu=Ce instanceof we?Ce:void 0,Te.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ot),Ze&&(Ze._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(ue){this.menu=ue}get menu(){return this._menu}set menu(ue){ue!==this._menu&&(this._menu=ue,this._menuCloseSubscription.unsubscribe(),ue&&(this._menuCloseSubscription=ue.close.subscribe(Te=>{this._destroyMenu(Te),("click"===Te||"tab"===Te)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(Te)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ot),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 ue=this._createOverlay(),Te=ue.getConfig();this._setPosition(Te.positionStrategy),Te.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,ue.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()}closeMenu(){this.menu.close.emit()}focus(ue,Te){this._focusMonitor&&ue?this._focusMonitor.focusVia(this._element,ue,Te):this._element.nativeElement.focus(Te)}updatePosition(){var ue;null===(ue=this._overlayRef)||void 0===ue||ue.updatePosition()}_destroyMenu(ue){if(!this._overlayRef||!this.menuOpen)return;const Te=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===ue||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,Te instanceof we?(Te._resetAnimation(),Te.lazyContent?Te._animationDone.pipe((0,b.h)(be=>"void"===be.toState),(0,T.q)(1),(0,x.R)(Te.lazyContent._attached)).subscribe({next:()=>Te.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),Te.lazyContent&&Te.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 ue=0,Te=this.menu.parentMenu;for(;Te;)ue++,Te=Te.parentMenu;this.menu.setElevation(ue)}}_setIsMenuOpen(ue){this._menuOpen=ue,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(ue)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const ue=this._getOverlayConfig();this._subscribeToPositions(ue.positionStrategy),this._overlayRef=this._overlay.create(ue),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new pe.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(ue){this.menu.setPositionClasses&&ue.positionChanges.subscribe(Te=>{this.menu.setPositionClasses("start"===Te.connectionPair.overlayX?"after":"before","top"===Te.connectionPair.overlayY?"below":"above")})}_setPosition(ue){let[Te,be]="before"===this.menu.xPosition?["end","start"]:["start","end"],[re,Ce]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[Ze,tt]=[re,Ce],[ft,pt]=[Te,be],wt=0;this.triggersSubmenu()?(pt=Te="before"===this.menu.xPosition?"start":"end",be=ft="end"===Te?"start":"end",wt="bottom"===re?8:-8):this.menu.overlapTrigger||(Ze="top"===re?"bottom":"top",tt="top"===Ce?"bottom":"top"),ue.withPositions([{originX:Te,originY:Ze,overlayX:ft,overlayY:re,offsetY:wt},{originX:be,originY:Ze,overlayX:pt,overlayY:re,offsetY:wt},{originX:Te,originY:tt,overlayX:ft,overlayY:Ce,offsetY:-wt},{originX:be,originY:tt,overlayX:pt,overlayY:Ce,offsetY:-wt}])}_menuClosingActions(){const ue=this._overlayRef.backdropClick(),Te=this._overlayRef.detachments(),be=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,D.of)(),re=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,b.h)(Ce=>Ce!==this._menuItemInstance),(0,b.h)(()=>this._menuOpen)):(0,D.of)();return(0,C.T)(ue,be,re,Te)}_handleMousedown(ue){(0,i.X6)(ue)||(this._openedBy=0===ue.button?"mouse":void 0,this.triggersSubmenu()&&ue.preventDefault())}_handleKeydown(ue){const Te=ue.keyCode;(Te===m.K5||Te===m.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(Te===m.SV&&"ltr"===this.dir||Te===m.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(ue){this.triggersSubmenu()?(ue.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,b.h)(ue=>ue===this._menuItemInstance&&!ue.disabled),(0,V.g)(0,I.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof we&&this.menu._isAnimating?this.menu._animationDone.pipe((0,T.q)(1),(0,V.g)(0,I.E),(0,x.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new $.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return oe.\u0275fac=function(ue){return new(ue||oe)(c.\u0275\u0275directiveInject(pe.aV),c.\u0275\u0275directiveInject(c.ElementRef),c.\u0275\u0275directiveInject(c.ViewContainerRef),c.\u0275\u0275directiveInject(_e),c.\u0275\u0275directiveInject(ct,8),c.\u0275\u0275directiveInject(Fe,10),c.\u0275\u0275directiveInject(se.Is,8),c.\u0275\u0275directiveInject(i.tE))},oe.\u0275dir=c.\u0275\u0275defineDirective({type:oe,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(ue,Te){1&ue&&c.\u0275\u0275listener("click",function(re){return Te._handleClick(re)})("mousedown",function(re){return Te._handleMousedown(re)})("keydown",function(re){return Te._handleKeydown(re)}),2&ue&&c.\u0275\u0275attribute("aria-expanded",Te.menuOpen||null)("aria-controls",Te.menuOpen?Te.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"}}),oe})(),Qe=(()=>{class oe extends dt{}return oe.\u0275fac=function(){let Oe;return function(Te){return(Oe||(Oe=c.\u0275\u0275getInheritedFactory(oe)))(Te||oe)}}(),oe.\u0275dir=c.\u0275\u0275defineDirective({type:oe,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[c.\u0275\u0275InheritDefinitionFeature]}),oe})(),N=(()=>{class oe{}return oe.\u0275fac=function(ue){return new(ue||oe)},oe.\u0275mod=c.\u0275\u0275defineNgModule({type:oe}),oe.\u0275inj=c.\u0275\u0275defineInjector({providers:[yt],imports:[[le.CommonModule,Me.MatCommonModule,Me.MatRippleModule,pe.U8],De.ZD,Me.MatCommonModule]}),oe})()},2075:(Le,g,l)=>{"use strict";l.r(g),l.d(g,{MatCell:()=>Ue,MatCellDef:()=>G,MatColumnDef:()=>Kt,MatFooterCell:()=>je,MatFooterCellDef:()=>Dt,MatFooterRow:()=>Nt,MatFooterRowDef:()=>Ve,MatHeaderCell:()=>rn,MatHeaderCellDef:()=>rt,MatHeaderRow:()=>Bt,MatHeaderRowDef:()=>he,MatNoDataRow:()=>Dn,MatRecycleRows:()=>S,MatRow:()=>dn,MatRowDef:()=>ht,MatTable:()=>M,MatTableDataSource:()=>Bn,MatTableModule:()=>Xn,MatTextColumn:()=>Hn,_MatTableDataSource:()=>zn});var i=l(5e3),u=l(3191),m=l(449),c=l(9808),s=l(6758),_=l(188),C=l(1135),D=l(5191),I=l(9646),h=l(2722),A=l(5698),T=l(226),b=l(925),x=l(9071);const V=[[["caption"]],[["colgroup"],["col"]]],fe=["caption","colgroup, col"];function $(H,Se){if(1&H&&(i.\u0275\u0275elementStart(0,"th",3),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&H){const z=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",z.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",z.headerText," ")}}function le(H,Se){if(1&H&&(i.\u0275\u0275elementStart(0,"td",4),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&H){const z=Se.$implicit,Ae=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",Ae.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Ae.dataAccessor(z,Ae.name)," ")}}function Me(H){return class extends H{constructor(...Se){super(...Se),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Se){const z=this._sticky;this._sticky=(0,u.Ig)(Se),this._hasStickyChanged=z!==this._sticky}hasStickyChanged(){const Se=this._hasStickyChanged;return this._hasStickyChanged=!1,Se}resetStickyChanged(){this._hasStickyChanged=!1}}}const pe=new i.InjectionToken("CDK_TABLE"),ye=new i.InjectionToken("text-column-options");let se=(()=>{class H{constructor(z){this.template=z}}return H.\u0275fac=function(z){return new(z||H)(i.\u0275\u0275directiveInject(i.TemplateRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkCellDef",""]]}),H})(),De=(()=>{class H{constructor(z){this.template=z}}return H.\u0275fac=function(z){return new(z||H)(i.\u0275\u0275directiveInject(i.TemplateRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkHeaderCellDef",""]]}),H})(),ke=(()=>{class H{constructor(z){this.template=z}}return H.\u0275fac=function(z){return new(z||H)(i.\u0275\u0275directiveInject(i.TemplateRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkFooterCellDef",""]]}),H})();class Xe{}const st=Me(Xe);let q=(()=>{class H extends st{constructor(z){super(),this._table=z,this._stickyEnd=!1}get name(){return this._name}set name(z){this._setNameInput(z)}get stickyEnd(){return this._stickyEnd}set stickyEnd(z){const Ae=this._stickyEnd;this._stickyEnd=(0,u.Ig)(z),this._hasStickyChanged=Ae!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(z){z&&(this._name=z,this.cssClassFriendlyName=z.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return H.\u0275fac=function(z){return new(z||H)(i.\u0275\u0275directiveInject(pe,8))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkColumnDef",""]],contentQueries:function(z,Ae,qe){if(1&z&&(i.\u0275\u0275contentQuery(qe,se,5),i.\u0275\u0275contentQuery(qe,De,5),i.\u0275\u0275contentQuery(qe,ke,5)),2&z){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:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})();class Pe{constructor(Se,z){z.nativeElement.classList.add(...Se._columnCssClassName)}}let J=(()=>{class H extends Pe{constructor(z,Ae){super(z,Ae)}}return H.\u0275fac=function(z){return new(z||H)(i.\u0275\u0275directiveInject(q),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),H})(),ae=(()=>{class H extends Pe{constructor(z,Ae){var qe;if(super(z,Ae),1===(null===(qe=z._table)||void 0===qe?void 0:qe._elementRef.nativeElement.nodeType)){const at=z._table._elementRef.nativeElement.getAttribute("role");Ae.nativeElement.setAttribute("role","grid"===at||"treegrid"===at?"gridcell":"cell")}}}return H.\u0275fac=function(z){return new(z||H)(i.\u0275\u0275directiveInject(q),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),H})(),Ie=(()=>{class H extends Pe{constructor(z,Ae){var qe;if(super(z,Ae),1===(null===(qe=z._table)||void 0===qe?void 0:qe._elementRef.nativeElement.nodeType)){const at=z._table._elementRef.nativeElement.getAttribute("role");Ae.nativeElement.setAttribute("role","grid"===at||"treegrid"===at?"gridcell":"cell")}}}return H.\u0275fac=function(z){return new(z||H)(i.\u0275\u0275directiveInject(q),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),H})();class ie{constructor(){this.tasks=[],this.endTasks=[]}}const Ke=new i.InjectionToken("_COALESCED_STYLE_SCHEDULER");let ge=(()=>{class H{constructor(z){this._ngZone=z,this._currentSchedule=null,this._destroyed=new s.x}schedule(z){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(z)}scheduleEnd(z){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(z)}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 z=this._currentSchedule;this._currentSchedule=new ie;for(const Ae of z.tasks)Ae();for(const Ae of z.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 H.\u0275fac=function(z){return new(z||H)(i.\u0275\u0275inject(i.NgZone))},H.\u0275prov=i.\u0275\u0275defineInjectable({token:H,factory:H.\u0275fac}),H})(),ve=(()=>{class H{constructor(z,Ae){this.template=z,this._differs=Ae}ngOnChanges(z){if(!this._columnsDiffer){const Ae=z.columns&&z.columns.currentValue||[];this._columnsDiffer=this._differs.find(Ae).create(),this._columnsDiffer.diff(Ae)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(z){return this instanceof Tt?z.headerCell.template:this instanceof Y?z.footerCell.template:z.cell.template}}return H.\u0275fac=function(z){return new(z||H)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,features:[i.\u0275\u0275NgOnChangesFeature]}),H})();class $e extends ve{}const ct=Me($e);let Tt=(()=>{class H extends ct{constructor(z,Ae,qe){super(z,Ae),this._table=qe}ngOnChanges(z){super.ngOnChanges(z)}}return H.\u0275fac=function(z){return new(z||H)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(pe,8))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),H})();class Fe extends ve{}const Je=Me(Fe);let Y=(()=>{class H extends Je{constructor(z,Ae,qe){super(z,Ae),this._table=qe}ngOnChanges(z){super.ngOnChanges(z)}}return H.\u0275fac=function(z){return new(z||H)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(pe,8))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),H})(),me=(()=>{class H extends ve{constructor(z,Ae,qe){super(z,Ae),this._table=qe}}return H.\u0275fac=function(z){return new(z||H)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(pe,8))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.\u0275\u0275InheritDefinitionFeature]}),H})(),we=(()=>{class H{constructor(z){this._viewContainer=z,H.mostRecentCellOutlet=this}ngOnDestroy(){H.mostRecentCellOutlet===this&&(H.mostRecentCellOutlet=null)}}return H.mostRecentCellOutlet=null,H.\u0275fac=function(z){return new(z||H)(i.\u0275\u0275directiveInject(i.ViewContainerRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkCellOutlet",""]]}),H})(),Re=(()=>{class H{}return H.\u0275fac=function(z){return new(z||H)},H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(z,Ae){1&z&&i.\u0275\u0275elementContainer(0,0)},directives:[we],encapsulation:2}),H})(),_e=(()=>{class H{}return H.\u0275fac=function(z){return new(z||H)},H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(z,Ae){1&z&&i.\u0275\u0275elementContainer(0,0)},directives:[we],encapsulation:2}),H})(),Ye=(()=>{class H{}return H.\u0275fac=function(z){return new(z||H)},H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(z,Ae){1&z&&i.\u0275\u0275elementContainer(0,0)},directives:[we],encapsulation:2}),H})(),yt=(()=>{class H{constructor(z){this.templateRef=z,this._contentClassName="cdk-no-data-row"}}return H.\u0275fac=function(z){return new(z||H)(i.\u0275\u0275directiveInject(i.TemplateRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["ng-template","cdkNoDataRow",""]]}),H})();const Ct=["top","bottom","left","right"];class Ot{constructor(Se,z,Ae,qe,at=!0,It=!0,Lt){this._isNativeHtmlTable=Se,this._stickCellCss=z,this.direction=Ae,this._coalescedStyleScheduler=qe,this._isBrowser=at,this._needsPositionStickyOnElement=It,this._positionListener=Lt,this._cachedCellWidths=[],this._borderCellCss={top:`${z}-border-elem-top`,bottom:`${z}-border-elem-bottom`,left:`${z}-border-elem-left`,right:`${z}-border-elem-right`}}clearStickyPositioning(Se,z){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,z)})}updateStickyColumns(Se,z,Ae,qe=!0){if(!Se.length||!this._isBrowser||!z.some(hn=>hn)&&!Ae.some(hn=>hn))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const at=Se[0],It=at.children.length,Lt=this._getCellWidths(at,qe),qt=this._getStickyStartColumnPositions(Lt,z),vn=this._getStickyEndColumnPositions(Lt,Ae),jt=z.lastIndexOf(!0),On=Ae.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const hn="rtl"===this.direction,$n=hn?"right":"left",Un=hn?"left":"right";for(const Sn of Se)for(let kn=0;kn<It;kn++){const ai=Sn.children[kn];z[kn]&&this._addStickyStyle(ai,$n,qt[kn],kn===jt),Ae[kn]&&this._addStickyStyle(ai,Un,vn[kn],kn===On)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===jt?[]:Lt.slice(0,jt+1).map((Sn,kn)=>z[kn]?Sn:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===On?[]:Lt.slice(On).map((Sn,kn)=>Ae[kn+On]?Sn:null).reverse()}))})}stickRows(Se,z,Ae){if(!this._isBrowser)return;const qe="bottom"===Ae?Se.slice().reverse():Se,at="bottom"===Ae?z.slice().reverse():z,It=[],Lt=[],qt=[];for(let jt=0,On=0;jt<qe.length;jt++){if(!at[jt])continue;It[jt]=On;const hn=qe[jt];qt[jt]=this._isNativeHtmlTable?Array.from(hn.children):[hn];const $n=hn.getBoundingClientRect().height;On+=$n,Lt[jt]=$n}const vn=at.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{var jt,On;for(let hn=0;hn<qe.length;hn++){if(!at[hn])continue;const $n=It[hn],Un=hn===vn;for(const Sn of qt[hn])this._addStickyStyle(Sn,Ae,$n,Un)}"top"===Ae?null===(jt=this._positionListener)||void 0===jt||jt.stickyHeaderRowsUpdated({sizes:Lt,offsets:It,elements:qt}):null===(On=this._positionListener)||void 0===On||On.stickyFooterRowsUpdated({sizes:Lt,offsets:It,elements:qt})})}updateStickyFooterContainer(Se,z){if(!this._isNativeHtmlTable)return;const Ae=Se.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{z.some(qe=>!qe)?this._removeStickyStyle(Ae,["bottom"]):this._addStickyStyle(Ae,"bottom",0,!1)})}_removeStickyStyle(Se,z){for(const qe of z)Se.style[qe]="",Se.classList.remove(this._borderCellCss[qe]);Ct.some(qe=>-1===z.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,z,Ae,qe){Se.classList.add(this._stickCellCss),qe&&Se.classList.add(this._borderCellCss[z]),Se.style[z]=`${Ae}px`,Se.style.zIndex=this._getCalculatedZIndex(Se),this._needsPositionStickyOnElement&&(Se.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Se){const z={top:100,bottom:10,left:1,right:1};let Ae=0;for(const qe of Ct)Se.style[qe]&&(Ae+=z[qe]);return Ae?`${Ae}`:""}_getCellWidths(Se,z=!0){if(!z&&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,z){const Ae=[];let qe=0;for(let at=0;at<Se.length;at++)z[at]&&(Ae[at]=qe,qe+=Se[at]);return Ae}_getStickyEndColumnPositions(Se,z){const Ae=[];let qe=0;for(let at=Se.length;at>0;at--)z[at]&&(Ae[at]=qe,qe+=Se[at]);return Ae}}const re=new i.InjectionToken("CDK_SPL");let Ze=(()=>{class H{constructor(z,Ae){this.viewContainer=z,this.elementRef=Ae}}return H.\u0275fac=function(z){return new(z||H)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","rowOutlet",""]]}),H})(),tt=(()=>{class H{constructor(z,Ae){this.viewContainer=z,this.elementRef=Ae}}return H.\u0275fac=function(z){return new(z||H)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","headerRowOutlet",""]]}),H})(),ft=(()=>{class H{constructor(z,Ae){this.viewContainer=z,this.elementRef=Ae}}return H.\u0275fac=function(z){return new(z||H)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","footerRowOutlet",""]]}),H})(),pt=(()=>{class H{constructor(z,Ae){this.viewContainer=z,this.elementRef=Ae}}return H.\u0275fac=function(z){return new(z||H)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.ElementRef))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","noDataRowOutlet",""]]}),H})(),nn=(()=>{class H{constructor(z,Ae,qe,at,It,Lt,qt,vn,jt,On,hn,$n){this._differs=z,this._changeDetectorRef=Ae,this._elementRef=qe,this._dir=It,this._platform=qt,this._viewRepeater=vn,this._coalescedStyleScheduler=jt,this._viewportRuler=On,this._stickyPositioningListener=hn,this._ngZone=$n,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 C.X({start:0,end:Number.MAX_VALUE}),at||this._elementRef.nativeElement.setAttribute("role","table"),this._document=Lt,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(z){this._trackByFn=z}get dataSource(){return this._dataSource}set dataSource(z){this._dataSource!==z&&this._switchDataSource(z)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(z){this._multiTemplateDataRows=(0,u.Ig)(z),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(z){this._fixedLayout=(0,u.Ig)(z),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((z,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(z=>{z.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 z=this._dataDiffer.diff(this._renderRows);if(!z)return this._updateNoDataRow(),void this.contentChanged.next();const Ae=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(z,Ae,(qe,at,It)=>this._getEmbeddedViewArgs(qe.item,It),qe=>qe.item.data,qe=>{1===qe.operation&&qe.context&&this._renderCellTemplateForItem(qe.record.item.rowDef,qe.context)}),this._updateRowIndexContext(),z.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(z){this._customColumnDefs.add(z)}removeColumnDef(z){this._customColumnDefs.delete(z)}addRowDef(z){this._customRowDefs.add(z)}removeRowDef(z){this._customRowDefs.delete(z)}addHeaderRowDef(z){this._customHeaderRowDefs.add(z),this._headerRowDefChanged=!0}removeHeaderRowDef(z){this._customHeaderRowDefs.delete(z),this._headerRowDefChanged=!0}addFooterRowDef(z){this._customFooterRowDefs.add(z),this._footerRowDefChanged=!0}removeFooterRowDef(z){this._customFooterRowDefs.delete(z),this._footerRowDefChanged=!0}setNoDataRow(z){this._customNoDataRow=z}updateStickyHeaderRowStyles(){const z=this._getRenderedRows(this._headerRowOutlet),qe=this._elementRef.nativeElement.querySelector("thead");qe&&(qe.style.display=z.length?"":"none");const at=this._headerRowDefs.map(It=>It.sticky);this._stickyStyler.clearStickyPositioning(z,["top"]),this._stickyStyler.stickRows(z,at,"top"),this._headerRowDefs.forEach(It=>It.resetStickyChanged())}updateStickyFooterRowStyles(){const z=this._getRenderedRows(this._footerRowOutlet),qe=this._elementRef.nativeElement.querySelector("tfoot");qe&&(qe.style.display=z.length?"":"none");const at=this._footerRowDefs.map(It=>It.sticky);this._stickyStyler.clearStickyPositioning(z,["bottom"]),this._stickyStyler.stickRows(z,at,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,at),this._footerRowDefs.forEach(It=>It.resetStickyChanged())}updateStickyColumnStyles(){const z=this._getRenderedRows(this._headerRowOutlet),Ae=this._getRenderedRows(this._rowOutlet),qe=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...z,...Ae,...qe],["left","right"]),this._stickyColumnStylesNeedReset=!1),z.forEach((at,It)=>{this._addStickyColumnStyles([at],this._headerRowDefs[It])}),this._rowDefs.forEach(at=>{const It=[];for(let Lt=0;Lt<Ae.length;Lt++)this._renderRows[Lt].rowDef===at&&It.push(Ae[Lt]);this._addStickyColumnStyles(It,at)}),qe.forEach((at,It)=>{this._addStickyColumnStyles([at],this._footerRowDefs[It])}),Array.from(this._columnDefsByName.values()).forEach(at=>at.resetStickyChanged())}_getAllRenderRows(){const z=[],Ae=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let qe=0;qe<this._data.length;qe++){let at=this._data[qe];const It=this._getRenderRowsForData(at,qe,Ae.get(at));this._cachedRenderRowsMap.has(at)||this._cachedRenderRowsMap.set(at,new WeakMap);for(let Lt=0;Lt<It.length;Lt++){let qt=It[Lt];const vn=this._cachedRenderRowsMap.get(qt.data);vn.has(qt.rowDef)?vn.get(qt.rowDef).push(qt):vn.set(qt.rowDef,[qt]),z.push(qt)}}return z}_getRenderRowsForData(z,Ae,qe){return this._getRowDefs(z,Ae).map(It=>{const Lt=qe&&qe.has(It)?qe.get(It):[];if(Lt.length){const qt=Lt.shift();return qt.dataIndex=Ae,qt}return{data:z,rowDef:It,dataIndex:Ae}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Ht(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Ae=>{this._columnDefsByName.has(Ae.name),this._columnDefsByName.set(Ae.name,Ae)})}_cacheRowDefs(){this._headerRowDefs=Ht(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Ht(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Ht(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const z=this._rowDefs.filter(Ae=>!Ae.when);this._defaultRowDef=z[0]}_renderUpdatedColumns(){const z=(It,Lt)=>It||!!Lt.getColumnsDiff(),Ae=this._rowDefs.reduce(z,!1);Ae&&this._forceRenderDataRows();const qe=this._headerRowDefs.reduce(z,!1);qe&&this._forceRenderHeaderRows();const at=this._footerRowDefs.reduce(z,!1);return at&&this._forceRenderFooterRows(),Ae||qe||at}_switchDataSource(z){this._data=[],(0,m.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),z||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=z}_observeRenderChanges(){if(!this.dataSource)return;let z;(0,m.Z9)(this.dataSource)?z=this.dataSource.connect(this):(0,D.b)(this.dataSource)?z=this.dataSource:Array.isArray(this.dataSource)&&(z=(0,I.of)(this.dataSource)),this._renderChangeSubscription=z.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((z,Ae)=>this._renderRow(this._headerRowOutlet,z,Ae)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((z,Ae)=>this._renderRow(this._footerRowOutlet,z,Ae)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(z,Ae){const qe=Array.from(Ae.columns||[]).map(Lt=>this._columnDefsByName.get(Lt)),at=qe.map(Lt=>Lt.sticky),It=qe.map(Lt=>Lt.stickyEnd);this._stickyStyler.updateStickyColumns(z,at,It,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(z){const Ae=[];for(let qe=0;qe<z.viewContainer.length;qe++){const at=z.viewContainer.get(qe);Ae.push(at.rootNodes[0])}return Ae}_getRowDefs(z,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,z));else{let at=this._rowDefs.find(It=>It.when&&It.when(Ae,z))||this._defaultRowDef;at&&qe.push(at)}return qe}_getEmbeddedViewArgs(z,Ae){return{templateRef:z.rowDef.template,context:{$implicit:z.data},index:Ae}}_renderRow(z,Ae,qe,at={}){const It=z.viewContainer.createEmbeddedView(Ae.template,at,qe);return this._renderCellTemplateForItem(Ae,at),It}_renderCellTemplateForItem(z,Ae){for(let qe of this._getCellTemplates(z))we.mostRecentCellOutlet&&we.mostRecentCellOutlet._viewContainer.createEmbeddedView(qe,Ae);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const z=this._rowOutlet.viewContainer;for(let Ae=0,qe=z.length;Ae<qe;Ae++){const It=z.get(Ae).context;It.count=qe,It.first=0===Ae,It.last=Ae===qe-1,It.even=Ae%2==0,It.odd=!It.even,this.multiTemplateDataRows?(It.dataIndex=this._renderRows[Ae].dataIndex,It.renderIndex=Ae):It.index=this._renderRows[Ae].dataIndex}}_getCellTemplates(z){return z&&z.columns?Array.from(z.columns,Ae=>{const qe=this._columnDefsByName.get(Ae);return z.extractCellTemplate(qe)}):[]}_applyNativeTableSections(){const z=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 It of qe.outlets)at.appendChild(It.elementRef.nativeElement);z.appendChild(at)}this._elementRef.nativeElement.appendChild(z)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const z=(Ae,qe)=>Ae||qe.hasStickyChanged();this._headerRowDefs.reduce(z,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(z,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(z,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Ot(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,I.of)()).pipe((0,h.R)(this._onDestroy)).subscribe(Ae=>{this._stickyStyler.direction=Ae,this.updateStickyColumnStyles()})}_getOwnDefs(z){return z.filter(Ae=>!Ae._table||Ae._table===this)}_updateNoDataRow(){const z=this._customNoDataRow||this._noDataRow;if(!z)return;const Ae=0===this._rowOutlet.viewContainer.length;if(Ae===this._isShowingNoDataRow)return;const qe=this._noDataRowOutlet.viewContainer;if(Ae){const at=qe.createEmbeddedView(z.templateRef),It=at.rootNodes[0];1===at.rootNodes.length&&(null==It?void 0:It.nodeType)===this._document.ELEMENT_NODE&&(It.setAttribute("role","row"),It.classList.add(z._contentClassName))}else qe.clear();this._isShowingNoDataRow=Ae}}return H.\u0275fac=function(z){return new(z||H)(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(b.t4),i.\u0275\u0275directiveInject(m.k),i.\u0275\u0275directiveInject(Ke),i.\u0275\u0275directiveInject(x.rL),i.\u0275\u0275directiveInject(re,12),i.\u0275\u0275directiveInject(i.NgZone,8))},H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(z,Ae,qe){if(1&z&&(i.\u0275\u0275contentQuery(qe,yt,5),i.\u0275\u0275contentQuery(qe,q,5),i.\u0275\u0275contentQuery(qe,me,5),i.\u0275\u0275contentQuery(qe,Tt,5),i.\u0275\u0275contentQuery(qe,Y,5)),2&z){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(z,Ae){if(1&z&&(i.\u0275\u0275viewQuery(Ze,7),i.\u0275\u0275viewQuery(tt,7),i.\u0275\u0275viewQuery(ft,7),i.\u0275\u0275viewQuery(pt,7)),2&z){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(z,Ae){2&z&&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:pe,useExisting:H},{provide:m.k,useClass:m.yy},{provide:Ke,useClass:ge},{provide:re,useValue:null}])],ngContentSelectors:fe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(z,Ae){1&z&&(i.\u0275\u0275projectionDef(V),i.\u0275\u0275projection(0),i.\u0275\u0275projection(1,1),i.\u0275\u0275elementContainer(2,0),i.\u0275\u0275elementContainer(3,1),i.\u0275\u0275elementContainer(4,2),i.\u0275\u0275elementContainer(5,3))},directives:[tt,Ze,pt,ft],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),H})();function Ht(H,Se){return H.concat(Array.from(Se))}let En=(()=>{class H{constructor(z,Ae){this._table=z,this._options=Ae,this.justify="start",this._options=Ae||{}}get name(){return this._name}set name(z){this._name=z,this._syncColumnDefName()}ngOnInit(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((z,Ae)=>z[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 z=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(z):z[0].toUpperCase()+z.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}return H.\u0275fac=function(z){return new(z||H)(i.\u0275\u0275directiveInject(nn,8),i.\u0275\u0275directiveInject(ye,8))},H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["cdk-text-column"]],viewQuery:function(z,Ae){if(1&z&&(i.\u0275\u0275viewQuery(q,7),i.\u0275\u0275viewQuery(se,7),i.\u0275\u0275viewQuery(De,7)),2&z){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(z,Ae){1&z&&(i.\u0275\u0275elementContainerStart(0,0),i.\u0275\u0275template(1,$,2,3,"th",1),i.\u0275\u0275template(2,le,2,3,"td",2),i.\u0275\u0275elementContainerEnd())},directives:[q,De,J,se,Ie],encapsulation:2}),H})(),zt=(()=>{class H{}return H.\u0275fac=function(z){return new(z||H)},H.\u0275mod=i.\u0275\u0275defineNgModule({type:H}),H.\u0275inj=i.\u0275\u0275defineInjector({imports:[[x.Cl]]}),H})();var St=l(508),bn=l(6451),Zt=l(9841),an=l(4004);const Ge=[[["caption"]],[["colgroup"],["col"]]],ce=["caption","colgroup, col"];function L(H,Se){if(1&H&&(i.\u0275\u0275elementStart(0,"th",3),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&H){const z=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",z.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",z.headerText," ")}}function v(H,Se){if(1&H&&(i.\u0275\u0275elementStart(0,"td",4),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&H){const z=Se.$implicit,Ae=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("text-align",Ae.justify),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Ae.dataAccessor(z,Ae.name)," ")}}let S=(()=>{class H{}return H.\u0275fac=function(z){return new(z||H)},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:m.k,useClass:m.eX}])]}),H})(),M=(()=>{class H extends nn{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return H.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(z,Ae){2&z&&i.\u0275\u0275classProp("mat-table-fixed-layout",Ae.fixedLayout)},exportAs:["matTable"],features:[i.\u0275\u0275ProvidersFeature([{provide:m.k,useClass:m.yy},{provide:nn,useExisting:H},{provide:pe,useExisting:H},{provide:Ke,useClass:ge},{provide:re,useValue:null}]),i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:ce,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(z,Ae){1&z&&(i.\u0275\u0275projectionDef(Ge),i.\u0275\u0275projection(0),i.\u0275\u0275projection(1,1),i.\u0275\u0275elementContainer(2,0),i.\u0275\u0275elementContainer(3,1),i.\u0275\u0275elementContainer(4,2),i.\u0275\u0275elementContainer(5,3))},directives:[tt,Ze,pt,ft],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}),H})(),G=(()=>{class H extends se{}return H.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matCellDef",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:se,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),rt=(()=>{class H extends De{}return H.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matHeaderCellDef",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:De,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),Dt=(()=>{class H extends ke{}return H.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matFooterCellDef",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:ke,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),Kt=(()=>{class H extends q{get name(){return this._name}set name(z){this._setNameInput(z)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return H.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i.\u0275\u0275ProvidersFeature([{provide:q,useExisting:H},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),rn=(()=>{class H extends J{}return H.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),H})(),je=(()=>{class H extends ae{}return H.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),H})(),Ue=(()=>{class H extends Ie{}return H.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[i.\u0275\u0275InheritDefinitionFeature]}),H})(),he=(()=>{class H extends Tt{}return H.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i.\u0275\u0275ProvidersFeature([{provide:Tt,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),Ve=(()=>{class H extends Y{}return H.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[i.\u0275\u0275ProvidersFeature([{provide:Y,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),ht=(()=>{class H extends me{}return H.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i.\u0275\u0275ProvidersFeature([{provide:me,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),Bt=(()=>{class H extends Re{}return H.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[i.\u0275\u0275ProvidersFeature([{provide:Re,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(z,Ae){1&z&&i.\u0275\u0275elementContainer(0,0)},directives:[we],encapsulation:2}),H})(),Nt=(()=>{class H extends _e{}return H.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[i.\u0275\u0275ProvidersFeature([{provide:_e,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(z,Ae){1&z&&i.\u0275\u0275elementContainer(0,0)},directives:[we],encapsulation:2}),H})(),dn=(()=>{class H extends Ye{}return H.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[i.\u0275\u0275ProvidersFeature([{provide:Ye,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(z,Ae){1&z&&i.\u0275\u0275elementContainer(0,0)},directives:[we],encapsulation:2}),H})(),Dn=(()=>{class H extends yt{constructor(){super(...arguments),this._contentClassName="mat-no-data-row"}}return H.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["ng-template","matNoDataRow",""]],features:[i.\u0275\u0275ProvidersFeature([{provide:yt,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),Hn=(()=>{class H extends En{}return H.\u0275fac=function(){let Se;return function(Ae){return(Se||(Se=i.\u0275\u0275getInheritedFactory(H)))(Ae||H)}}(),H.\u0275cmp=i.\u0275\u0275defineComponent({type:H,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(z,Ae){1&z&&(i.\u0275\u0275elementContainerStart(0,0),i.\u0275\u0275template(1,L,2,3,"th",1),i.\u0275\u0275template(2,v,2,3,"td",2),i.\u0275\u0275elementContainerEnd())},directives:[Kt,rt,rn,G,Ue],encapsulation:2}),H})(),Xn=(()=>{class H{}return H.\u0275fac=function(z){return new(z||H)},H.\u0275mod=i.\u0275\u0275defineNgModule({type:H}),H.\u0275inj=i.\u0275\u0275defineInjector({imports:[[zt,St.MatCommonModule],St.MatCommonModule]}),H})();class zn extends m.o2{constructor(Se=[]){super(),this._renderData=new C.X([]),this._filter=new C.X(""),this._internalPageChanges=new s.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(z,Ae)=>{const qe=z[Ae];if((0,u.t6)(qe)){const at=Number(qe);return at<9007199254740991?at:qe}return qe},this.sortData=(z,Ae)=>{const qe=Ae.active,at=Ae.direction;return qe&&""!=at?z.sort((It,Lt)=>{let qt=this.sortingDataAccessor(It,qe),vn=this.sortingDataAccessor(Lt,qe);const jt=typeof qt,On=typeof vn;jt!==On&&("number"===jt&&(qt+=""),"number"===On&&(vn+=""));let hn=0;return null!=qt&&null!=vn?qt>vn?hn=1:qt<vn&&(hn=-1):null!=qt?hn=1:null!=vn&&(hn=-1),hn*("asc"==at?1:-1)}):z},this.filterPredicate=(z,Ae)=>{const qe=Object.keys(z).reduce((It,Lt)=>It+z[Lt]+"\u25ec","").toLowerCase(),at=Ae.trim().toLowerCase();return-1!=qe.indexOf(at)},this._data=new C.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 z=this._sort?(0,bn.T)(this._sort.sortChange,this._sort.initialized):(0,I.of)(null),Ae=this._paginator?(0,bn.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,I.of)(null),at=(0,Zt.a)([this._data,this._filter]).pipe((0,an.U)(([qt])=>this._filterData(qt))),It=(0,Zt.a)([at,z]).pipe((0,an.U)(([qt])=>this._orderData(qt))),Lt=(0,Zt.a)([It,Ae]).pipe((0,an.U)(([qt])=>this._pageData(qt)));null===(Se=this._renderChangesSubscription)||void 0===Se||Se.unsubscribe(),this._renderChangesSubscription=Lt.subscribe(qt=>this._renderData.next(qt))}_filterData(Se){return this.filteredData=null==this.filter||""===this.filter?Se:Se.filter(z=>this.filterPredicate(z,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 z=this.paginator.pageIndex*this.paginator.pageSize;return Se.slice(z,z+this.paginator.pageSize)}_updatePaginator(Se){Promise.resolve().then(()=>{const z=this.paginator;if(z&&(z.length=Se,z.pageIndex>0)){const Ae=Math.ceil(z.length/z.pageSize)-1||0,qe=Math.min(z.pageIndex,Ae);qe!==z.pageIndex&&(z.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 Bn extends zn{}},3251:(Le,g,l)=>{"use strict";l.r(g),l.d(g,{MAT_TAB:()=>Ye,MAT_TABS_CONFIG:()=>ue,MAT_TAB_GROUP:()=>Ot,MatInkBar:()=>me,MatTab:()=>dt,MatTabBody:()=>Oe,MatTabBodyPortal:()=>N,MatTabChangeEvent:()=>nn,MatTabContent:()=>Re,MatTabGroup:()=>sn,MatTabHeader:()=>wt,MatTabLabel:()=>yt,MatTabLabelWrapper:()=>be,MatTabLink:()=>an,MatTabNav:()=>St,MatTabsModule:()=>Ge,_MAT_INK_BAR_POSITIONER:()=>Je,_MatTabBodyBase:()=>oe,_MatTabGroupBase:()=>En,_MatTabHeaderBase:()=>pt,_MatTabLinkBase:()=>Zt,_MatTabNavBase:()=>zt,matTabsAnimations:()=>Qe});var i=l(5664),u=l(7144),m=l(7429),c=l(9808),s=l(5e3),_=l(508),C=l(6360),D=l(6758),I=l(6921),h=l(4968),A=l(9646),T=l(6451),b=l(2805),x=l(1777),V=l(8675),fe=l(1884),$=l(2722),le=l(226),Me=l(3191),pe=l(1159),ye=l(925),se=l(9071);function De(ce,L){1&ce&&s.\u0275\u0275projection(0)}const ke=["*"];function Xe(ce,L){}const st=function(ce){return{animationDuration:ce}},q=function(ce,L){return{value:ce,params:L}},Pe=["tabListContainer"],J=["tabList"],ae=["tabListInner"],Ie=["nextPaginator"],ie=["previousPaginator"],Ke=["tabBodyWrapper"],ge=["tabHeader"];function nt(ce,L){}function ve(ce,L){if(1&ce&&s.\u0275\u0275template(0,nt,0,0,"ng-template",9),2&ce){const v=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275property("cdkPortalOutlet",v.templateLabel)}}function $e(ce,L){if(1&ce&&s.\u0275\u0275text(0),2&ce){const v=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275textInterpolate(v.textLabel)}}function ct(ce,L){if(1&ce){const v=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"div",6),s.\u0275\u0275listener("click",function(){const M=s.\u0275\u0275restoreView(v),G=M.$implicit,rt=M.index,Dt=s.\u0275\u0275nextContext(),Kt=s.\u0275\u0275reference(1);return Dt._handleClick(G,Kt,rt)})("cdkFocusChange",function(M){const rt=s.\u0275\u0275restoreView(v).index;return s.\u0275\u0275nextContext()._tabFocusChanged(M,rt)}),s.\u0275\u0275elementStart(1,"div",7),s.\u0275\u0275template(2,ve,1,1,"ng-template",8),s.\u0275\u0275template(3,$e,1,1,"ng-template",8),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()}if(2&ce){const v=L.$implicit,S=L.index,M=s.\u0275\u0275nextContext();s.\u0275\u0275classProp("mat-tab-label-active",M.selectedIndex==S),s.\u0275\u0275property("id",M._getTabLabelId(S))("disabled",v.disabled)("matRippleDisabled",v.disabled||M.disableRipple),s.\u0275\u0275attribute("tabIndex",M._getTabIndex(v,S))("aria-posinset",S+1)("aria-setsize",M._tabs.length)("aria-controls",M._getTabContentId(S))("aria-selected",M.selectedIndex==S)("aria-label",v.ariaLabel||null)("aria-labelledby",!v.ariaLabel&&v.ariaLabelledby?v.ariaLabelledby:null),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngIf",v.templateLabel),s.\u0275\u0275advance(1),s.\u0275\u0275property("ngIf",!v.templateLabel)}}function Tt(ce,L){if(1&ce){const v=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"mat-tab-body",10),s.\u0275\u0275listener("_onCentered",function(){return s.\u0275\u0275restoreView(v),s.\u0275\u0275nextContext()._removeTabBodyWrapperHeight()})("_onCentering",function(M){return s.\u0275\u0275restoreView(v),s.\u0275\u0275nextContext()._setTabBodyWrapperHeight(M)}),s.\u0275\u0275elementEnd()}if(2&ce){const v=L.$implicit,S=L.index,M=s.\u0275\u0275nextContext();s.\u0275\u0275classProp("mat-tab-body-active",M.selectedIndex===S),s.\u0275\u0275property("id",M._getTabContentId(S))("content",v.content)("position",v.position)("origin",v.origin)("animationDuration",M.animationDuration),s.\u0275\u0275attribute("tabindex",null!=M.contentTabIndex&&M.selectedIndex===S?M.contentTabIndex:null)("aria-labelledby",M._getTabLabelId(S))}}const Fe=["mat-tab-nav-bar",""],Je=new s.InjectionToken("MatInkBarPositioner",{providedIn:"root",factory:function Y(){return L=>({left:L?(L.offsetLeft||0)+"px":"0",width:L?(L.offsetWidth||0)+"px":"0"})}});let me=(()=>{class ce{constructor(v,S,M,G){this._elementRef=v,this._ngZone=S,this._inkBarPositioner=M,this._animationMode=G}alignToElement(v){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(v))}):this._setStyles(v)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(v){const S=this._inkBarPositioner(v),M=this._elementRef.nativeElement;M.style.left=S.left,M.style.width=S.width}}return ce.\u0275fac=function(v){return new(v||ce)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(Je),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},ce.\u0275dir=s.\u0275\u0275defineDirective({type:ce,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(v,S){2&v&&s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===S._animationMode)}}),ce})();const we=new s.InjectionToken("MatTabContent");let Re=(()=>{class ce{constructor(v){this.template=v}}return ce.\u0275fac=function(v){return new(v||ce)(s.\u0275\u0275directiveInject(s.TemplateRef))},ce.\u0275dir=s.\u0275\u0275defineDirective({type:ce,selectors:[["","matTabContent",""]],features:[s.\u0275\u0275ProvidersFeature([{provide:we,useExisting:ce}])]}),ce})();const _e=new s.InjectionToken("MatTabLabel"),Ye=new s.InjectionToken("MAT_TAB");let yt=(()=>{class ce extends m.ig{constructor(v,S,M){super(v,S),this._closestTab=M}}return ce.\u0275fac=function(v){return new(v||ce)(s.\u0275\u0275directiveInject(s.TemplateRef),s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject(Ye,8))},ce.\u0275dir=s.\u0275\u0275defineDirective({type:ce,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[s.\u0275\u0275ProvidersFeature([{provide:_e,useExisting:ce}]),s.\u0275\u0275InheritDefinitionFeature]}),ce})();const Ct=(0,_.mixinDisabled)(class{}),Ot=new s.InjectionToken("MAT_TAB_GROUP");let dt=(()=>{class ce extends Ct{constructor(v,S){super(),this._viewContainerRef=v,this._closestTabGroup=S,this.textLabel="",this._contentPortal=null,this._stateChanges=new D.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(v){this._setTemplateLabelInput(v)}get content(){return this._contentPortal}ngOnChanges(v){(v.hasOwnProperty("textLabel")||v.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new m.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(v){v&&v._closestTab===this&&(this._templateLabel=v)}}return ce.\u0275fac=function(v){return new(v||ce)(s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject(Ot,8))},ce.\u0275cmp=s.\u0275\u0275defineComponent({type:ce,selectors:[["mat-tab"]],contentQueries:function(v,S,M){if(1&v&&(s.\u0275\u0275contentQuery(M,_e,5),s.\u0275\u0275contentQuery(M,we,7,s.TemplateRef)),2&v){let G;s.\u0275\u0275queryRefresh(G=s.\u0275\u0275loadQuery())&&(S.templateLabel=G.first),s.\u0275\u0275queryRefresh(G=s.\u0275\u0275loadQuery())&&(S._explicitContent=G.first)}},viewQuery:function(v,S){if(1&v&&s.\u0275\u0275viewQuery(s.TemplateRef,7),2&v){let M;s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(S._implicitContent=M.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[s.\u0275\u0275ProvidersFeature([{provide:Ye,useExisting:ce}]),s.\u0275\u0275InheritDefinitionFeature,s.\u0275\u0275NgOnChangesFeature],ngContentSelectors:ke,decls:1,vars:0,template:function(v,S){1&v&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275template(0,De,1,0,"ng-template"))},encapsulation:2}),ce})();const Qe={translateTab:(0,x.X$)("translateTab",[(0,x.SB)("center, void, left-origin-center, right-origin-center",(0,x.oB)({transform:"none"})),(0,x.SB)("left",(0,x.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,x.SB)("right",(0,x.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,x.eR)("* => left, * => right, left => center, right => center",(0,x.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,x.eR)("void => left-origin-center",[(0,x.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,x.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,x.eR)("void => right-origin-center",[(0,x.oB)({transform:"translate3d(100%, 0, 0)"}),(0,x.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let N=(()=>{class ce extends m.Pl{constructor(v,S,M,G){super(v,S,G),this._host=M,this._centeringSub=I.w0.EMPTY,this._leavingSub=I.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,V.O)(this._host._isCenterPosition(this._host._position))).subscribe(v=>{v&&!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 ce.\u0275fac=function(v){return new(v||ce)(s.\u0275\u0275directiveInject(s.ComponentFactoryResolver),s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject((0,s.forwardRef)(()=>Oe)),s.\u0275\u0275directiveInject(c.DOCUMENT))},ce.\u0275dir=s.\u0275\u0275defineDirective({type:ce,selectors:[["","matTabBodyHost",""]],features:[s.\u0275\u0275InheritDefinitionFeature]}),ce})(),oe=(()=>{class ce{constructor(v,S,M){this._elementRef=v,this._dir=S,this._dirChangeSubscription=I.w0.EMPTY,this._translateTabComplete=new D.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",S&&(this._dirChangeSubscription=S.change.subscribe(G=>{this._computePositionAnimationState(G),M.markForCheck()})),this._translateTabComplete.pipe((0,fe.x)((G,rt)=>G.fromState===rt.fromState&&G.toState===rt.toState)).subscribe(G=>{this._isCenterPosition(G.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(G.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(v){this._positionIndex=v,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(v){const S=this._isCenterPosition(v.toState);this._beforeCentering.emit(S),S&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(v){return"center"==v||"left-origin-center"==v||"right-origin-center"==v}_computePositionAnimationState(v=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==v?"left":"right":this._positionIndex>0?"ltr"==v?"right":"left":"center"}_computePositionFromOrigin(v){const S=this._getLayoutDirection();return"ltr"==S&&v<=0||"rtl"==S&&v>0?"left-origin-center":"right-origin-center"}}return ce.\u0275fac=function(v){return new(v||ce)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(le.Is,8),s.\u0275\u0275directiveInject(s.ChangeDetectorRef))},ce.\u0275dir=s.\u0275\u0275defineDirective({type:ce,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),ce})(),Oe=(()=>{class ce extends oe{constructor(v,S,M){super(v,S,M)}}return ce.\u0275fac=function(v){return new(v||ce)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(le.Is,8),s.\u0275\u0275directiveInject(s.ChangeDetectorRef))},ce.\u0275cmp=s.\u0275\u0275defineComponent({type:ce,selectors:[["mat-tab-body"]],viewQuery:function(v,S){if(1&v&&s.\u0275\u0275viewQuery(m.Pl,5),2&v){let M;s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(S._portalHost=M.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(v,S){1&v&&(s.\u0275\u0275elementStart(0,"div",0,1),s.\u0275\u0275listener("@translateTab.start",function(G){return S._onTranslateTabStarted(G)})("@translateTab.done",function(G){return S._translateTabComplete.next(G)}),s.\u0275\u0275template(2,Xe,0,0,"ng-template",2),s.\u0275\u0275elementEnd()),2&v&&s.\u0275\u0275property("@translateTab",s.\u0275\u0275pureFunction2(3,q,S._position,s.\u0275\u0275pureFunction1(1,st,S.animationDuration)))},directives:[N],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Qe.translateTab]}}),ce})();const ue=new s.InjectionToken("MAT_TABS_CONFIG"),Te=(0,_.mixinDisabled)(class{});let be=(()=>{class ce extends Te{constructor(v){super(),this.elementRef=v}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return ce.\u0275fac=function(v){return new(v||ce)(s.\u0275\u0275directiveInject(s.ElementRef))},ce.\u0275dir=s.\u0275\u0275defineDirective({type:ce,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(v,S){2&v&&(s.\u0275\u0275attribute("aria-disabled",!!S.disabled),s.\u0275\u0275classProp("mat-tab-disabled",S.disabled))},inputs:{disabled:"disabled"},features:[s.\u0275\u0275InheritDefinitionFeature]}),ce})();const re=(0,ye.i$)({passive:!0});let ft=(()=>{class ce{constructor(v,S,M,G,rt,Dt,Kt){this._elementRef=v,this._changeDetectorRef=S,this._viewportRuler=M,this._dir=G,this._ngZone=rt,this._platform=Dt,this._animationMode=Kt,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new D.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new D.x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new s.EventEmitter,this.indexFocused=new s.EventEmitter,rt.runOutsideAngular(()=>{(0,h.R)(v.nativeElement,"mouseleave").pipe((0,$.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(v){v=(0,Me.su)(v),this._selectedIndex!=v&&(this._selectedIndexChanged=!0,this._selectedIndex=v,this._keyManager&&this._keyManager.updateActiveItem(v))}ngAfterViewInit(){(0,h.R)(this._previousPaginator.nativeElement,"touchstart",re).pipe((0,$.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,h.R)(this._nextPaginator.nativeElement,"touchstart",re).pipe((0,$.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const v=this._dir?this._dir.change:(0,A.of)("ltr"),S=this._viewportRuler.change(150),M=()=>{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(M):M(),(0,T.T)(v,S,this._items.changes).pipe((0,$.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(M)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,$.R)(this._destroyed)).subscribe(G=>{this.indexFocused.emit(G),this._setTabFocus(G)})}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(v){if(!(0,pe.Vb)(v))switch(v.keyCode){case pe.K5:case pe.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(v));break;default:this._keyManager.onKeydown(v)}}_onContentChanges(){const v=this._elementRef.nativeElement.textContent;v!==this._currentTextContent&&(this._currentTextContent=v||"",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(v){!this._isValidIndex(v)||this.focusIndex===v||!this._keyManager||this._keyManager.setActiveItem(v)}_isValidIndex(v){if(!this._items)return!0;const S=this._items?this._items.toArray()[v]:null;return!!S&&!S.disabled}_setTabFocus(v){if(this._showPaginationControls&&this._scrollToLabel(v),this._items&&this._items.length){this._items.toArray()[v].focus();const S=this._tabListContainer.nativeElement;S.scrollLeft="ltr"==this._getLayoutDirection()?0:S.scrollWidth-S.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const v=this.scrollDistance,S="ltr"===this._getLayoutDirection()?-v:v;this._tabList.nativeElement.style.transform=`translateX(${Math.round(S)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(v){this._scrollTo(v)}_scrollHeader(v){return this._scrollTo(this._scrollDistance+("before"==v?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(v){this._stopInterval(),this._scrollHeader(v)}_scrollToLabel(v){if(this.disablePagination)return;const S=this._items?this._items.toArray()[v]:null;if(!S)return;const M=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:G,offsetWidth:rt}=S.elementRef.nativeElement;let Dt,Kt;"ltr"==this._getLayoutDirection()?(Dt=G,Kt=Dt+rt):(Kt=this._tabListInner.nativeElement.offsetWidth-G,Dt=Kt-rt);const rn=this.scrollDistance,je=this.scrollDistance+M;Dt<rn?this.scrollDistance-=rn-Dt+60:Kt>je&&(this.scrollDistance+=Kt-je+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const v=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;v||(this.scrollDistance=0),v!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=v}}_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 v=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,S=v?v.elementRef.nativeElement:null;S?this._inkBar.alignToElement(S):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(v,S){S&&null!=S.button&&0!==S.button||(this._stopInterval(),(0,b.H)(650,100).pipe((0,$.R)((0,T.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:M,distance:G}=this._scrollHeader(v);(0===G||G>=M)&&this._stopInterval()}))}_scrollTo(v){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const S=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(S,v)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:S,distance:this._scrollDistance}}}return ce.\u0275fac=function(v){return new(v||ce)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(se.rL),s.\u0275\u0275directiveInject(le.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(ye.t4),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},ce.\u0275dir=s.\u0275\u0275defineDirective({type:ce,inputs:{disablePagination:"disablePagination"}}),ce})(),pt=(()=>{class ce extends ft{constructor(v,S,M,G,rt,Dt,Kt){super(v,S,M,G,rt,Dt,Kt),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(v){this._disableRipple=(0,Me.Ig)(v)}_itemSelected(v){v.preventDefault()}}return ce.\u0275fac=function(v){return new(v||ce)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(se.rL),s.\u0275\u0275directiveInject(le.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(ye.t4),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},ce.\u0275dir=s.\u0275\u0275defineDirective({type:ce,inputs:{disableRipple:"disableRipple"},features:[s.\u0275\u0275InheritDefinitionFeature]}),ce})(),wt=(()=>{class ce extends pt{constructor(v,S,M,G,rt,Dt,Kt){super(v,S,M,G,rt,Dt,Kt)}}return ce.\u0275fac=function(v){return new(v||ce)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(se.rL),s.\u0275\u0275directiveInject(le.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(ye.t4),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},ce.\u0275cmp=s.\u0275\u0275defineComponent({type:ce,selectors:[["mat-tab-header"]],contentQueries:function(v,S,M){if(1&v&&s.\u0275\u0275contentQuery(M,be,4),2&v){let G;s.\u0275\u0275queryRefresh(G=s.\u0275\u0275loadQuery())&&(S._items=G)}},viewQuery:function(v,S){if(1&v&&(s.\u0275\u0275viewQuery(me,7),s.\u0275\u0275viewQuery(Pe,7),s.\u0275\u0275viewQuery(J,7),s.\u0275\u0275viewQuery(ae,7),s.\u0275\u0275viewQuery(Ie,5),s.\u0275\u0275viewQuery(ie,5)),2&v){let M;s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(S._inkBar=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(S._tabListContainer=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(S._tabList=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(S._tabListInner=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(S._nextPaginator=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(S._previousPaginator=M.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(v,S){2&v&&s.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",S._showPaginationControls)("mat-tab-header-rtl","rtl"==S._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[s.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:ke,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","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","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(v,S){1&v&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275elementStart(0,"div",0,1),s.\u0275\u0275listener("click",function(){return S._handlePaginatorClick("before")})("mousedown",function(G){return S._handlePaginatorPress("before",G)})("touchend",function(){return S._stopInterval()}),s.\u0275\u0275element(2,"div",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"div",3,4),s.\u0275\u0275listener("keydown",function(G){return S._handleKeydown(G)}),s.\u0275\u0275elementStart(5,"div",5,6),s.\u0275\u0275listener("cdkObserveContent",function(){return S._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\u0275elementEnd(),s.\u0275\u0275elementStart(11,"div",9,10),s.\u0275\u0275listener("mousedown",function(G){return S._handlePaginatorPress("after",G)})("click",function(){return S._handlePaginatorClick("after")})("touchend",function(){return S._stopInterval()}),s.\u0275\u0275element(13,"div",2),s.\u0275\u0275elementEnd()),2&v&&(s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",S._disableScrollBefore),s.\u0275\u0275property("matRippleDisabled",S._disableScrollBefore||S.disableRipple),s.\u0275\u0275advance(5),s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===S._animationMode),s.\u0275\u0275advance(6),s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",S._disableScrollAfter),s.\u0275\u0275property("matRippleDisabled",S._disableScrollAfter||S.disableRipple))},directives:[_.MatRipple,u.wD,me],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}.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}),ce})(),$t=0;class nn{}const Ht=(0,_.mixinColor)((0,_.mixinDisableRipple)(class{constructor(ce){this._elementRef=ce}}),"primary");let En=(()=>{class ce extends Ht{constructor(v,S,M,G){var rt;super(v),this._changeDetectorRef=S,this._animationMode=G,this._tabs=new s.QueryList,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=I.w0.EMPTY,this._tabLabelSubscription=I.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=$t++,this.animationDuration=M&&M.animationDuration?M.animationDuration:"500ms",this.disablePagination=!(!M||null==M.disablePagination)&&M.disablePagination,this.dynamicHeight=!(!M||null==M.dynamicHeight)&&M.dynamicHeight,this.contentTabIndex=null!==(rt=null==M?void 0:M.contentTabIndex)&&void 0!==rt?rt:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(v){this._dynamicHeight=(0,Me.Ig)(v)}get selectedIndex(){return this._selectedIndex}set selectedIndex(v){this._indexToSelect=(0,Me.su)(v,null)}get animationDuration(){return this._animationDuration}set animationDuration(v){this._animationDuration=/^\d+$/.test(v+"")?v+"ms":v}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(v){this._contentTabIndex=(0,Me.su)(v,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(v){const S=this._elementRef.nativeElement;S.classList.remove(`mat-background-${this.backgroundColor}`),v&&S.classList.add(`mat-background-${v}`),this._backgroundColor=v}ngAfterContentChecked(){const v=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=v){const S=null==this._selectedIndex;if(!S){this.selectedTabChange.emit(this._createChangeEvent(v));const M=this._tabBodyWrapper.nativeElement;M.style.minHeight=M.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((M,G)=>M.isActive=G===v),S||(this.selectedIndexChange.emit(v),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((S,M)=>{S.position=M-v,null!=this._selectedIndex&&0==S.position&&!S.origin&&(S.origin=v-this._selectedIndex)}),this._selectedIndex!==v&&(this._selectedIndex=v,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const S=this._tabs.toArray();for(let M=0;M<S.length;M++)if(S[M].isActive){this._indexToSelect=this._selectedIndex=M;break}}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,V.O)(this._allTabs)).subscribe(v=>{this._tabs.reset(v.filter(S=>S._closestTabGroup===this||!S._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(v){const S=this._tabHeader;S&&(S.focusIndex=v)}_focusChanged(v){this.focusChange.emit(this._createChangeEvent(v))}_createChangeEvent(v){const S=new nn;return S.index=v,this._tabs&&this._tabs.length&&(S.tab=this._tabs.toArray()[v]),S}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,T.T)(...this._tabs.map(v=>v._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(v){return Math.min(this._tabs.length-1,Math.max(v||0,0))}_getTabLabelId(v){return`mat-tab-label-${this._groupId}-${v}`}_getTabContentId(v){return`mat-tab-content-${this._groupId}-${v}`}_setTabBodyWrapperHeight(v){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const S=this._tabBodyWrapper.nativeElement;S.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(S.style.height=v+"px")}_removeTabBodyWrapperHeight(){const v=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=v.clientHeight,v.style.height="",this.animationDone.emit()}_handleClick(v,S,M){v.disabled||(this.selectedIndex=S.focusIndex=M)}_getTabIndex(v,S){return v.disabled?null:this.selectedIndex===S?0:-1}_tabFocusChanged(v,S){v&&"mouse"!==v&&"touch"!==v&&(this._tabHeader.focusIndex=S)}}return ce.\u0275fac=function(v){return new(v||ce)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(ue,8),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},ce.\u0275dir=s.\u0275\u0275defineDirective({type:ce,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]}),ce})(),sn=(()=>{class ce extends En{constructor(v,S,M,G){super(v,S,M,G)}}return ce.\u0275fac=function(v){return new(v||ce)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(ue,8),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},ce.\u0275cmp=s.\u0275\u0275defineComponent({type:ce,selectors:[["mat-tab-group"]],contentQueries:function(v,S,M){if(1&v&&s.\u0275\u0275contentQuery(M,dt,5),2&v){let G;s.\u0275\u0275queryRefresh(G=s.\u0275\u0275loadQuery())&&(S._allTabs=G)}},viewQuery:function(v,S){if(1&v&&(s.\u0275\u0275viewQuery(Ke,5),s.\u0275\u0275viewQuery(ge,5)),2&v){let M;s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(S._tabBodyWrapper=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(S._tabHeader=M.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(v,S){2&v&&s.\u0275\u0275classProp("mat-tab-group-dynamic-height",S.dynamicHeight)("mat-tab-group-inverted-header","below"===S.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[s.\u0275\u0275ProvidersFeature([{provide:Ot,useExisting:ce}]),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","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(v,S){1&v&&(s.\u0275\u0275elementStart(0,"mat-tab-header",0,1),s.\u0275\u0275listener("indexFocused",function(G){return S._focusChanged(G)})("selectFocusedIndex",function(G){return S.selectedIndex=G}),s.\u0275\u0275template(2,ct,4,14,"div",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"div",3,4),s.\u0275\u0275template(5,Tt,1,9,"mat-tab-body",5),s.\u0275\u0275elementEnd()),2&v&&(s.\u0275\u0275property("selectedIndex",S.selectedIndex||0)("disableRipple",S.disableRipple)("disablePagination",S.disablePagination),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",S._tabs),s.\u0275\u0275advance(1),s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===S._animationMode),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",S._tabs))},directives:[wt,Oe,c.NgForOf,be,_.MatRipple,i.kH,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}),ce})(),zt=(()=>{class ce extends ft{constructor(v,S,M,G,rt,Dt,Kt){super(v,G,rt,S,M,Dt,Kt),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(v){const S=this._elementRef.nativeElement.classList;S.remove(`mat-background-${this.backgroundColor}`),v&&S.add(`mat-background-${v}`),this._backgroundColor=v}get disableRipple(){return this._disableRipple}set disableRipple(v){this._disableRipple=(0,Me.Ig)(v)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,V.O)(null),(0,$.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const v=this._items.toArray();for(let S=0;S<v.length;S++)if(v[S].active)return this.selectedIndex=S,void this._changeDetectorRef.markForCheck();this.selectedIndex=-1,this._inkBar.hide()}}return ce.\u0275fac=function(v){return new(v||ce)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(le.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(se.rL),s.\u0275\u0275directiveInject(ye.t4),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},ce.\u0275dir=s.\u0275\u0275defineDirective({type:ce,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color"},features:[s.\u0275\u0275InheritDefinitionFeature]}),ce})(),St=(()=>{class ce extends zt{constructor(v,S,M,G,rt,Dt,Kt){super(v,S,M,G,rt,Dt,Kt)}}return ce.\u0275fac=function(v){return new(v||ce)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(le.Is,8),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(se.rL),s.\u0275\u0275directiveInject(ye.t4),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},ce.\u0275cmp=s.\u0275\u0275defineComponent({type:ce,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(v,S,M){if(1&v&&s.\u0275\u0275contentQuery(M,an,5),2&v){let G;s.\u0275\u0275queryRefresh(G=s.\u0275\u0275loadQuery())&&(S._items=G)}},viewQuery:function(v,S){if(1&v&&(s.\u0275\u0275viewQuery(me,7),s.\u0275\u0275viewQuery(Pe,7),s.\u0275\u0275viewQuery(J,7),s.\u0275\u0275viewQuery(ae,7),s.\u0275\u0275viewQuery(Ie,5),s.\u0275\u0275viewQuery(ie,5)),2&v){let M;s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(S._inkBar=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(S._tabListContainer=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(S._tabList=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(S._tabListInner=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(S._nextPaginator=M.first),s.\u0275\u0275queryRefresh(M=s.\u0275\u0275loadQuery())&&(S._previousPaginator=M.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(v,S){2&v&&s.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",S._showPaginationControls)("mat-tab-header-rtl","rtl"==S._getLayoutDirection())("mat-primary","warn"!==S.color&&"accent"!==S.color)("mat-accent","accent"===S.color)("mat-warn","warn"===S.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[s.\u0275\u0275InheritDefinitionFeature],attrs:Fe,ngContentSelectors:ke,decls:14,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","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","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(v,S){1&v&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275elementStart(0,"div",0,1),s.\u0275\u0275listener("click",function(){return S._handlePaginatorClick("before")})("mousedown",function(G){return S._handlePaginatorPress("before",G)})("touchend",function(){return S._stopInterval()}),s.\u0275\u0275element(2,"div",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"div",3,4),s.\u0275\u0275listener("keydown",function(G){return S._handleKeydown(G)}),s.\u0275\u0275elementStart(5,"div",5,6),s.\u0275\u0275listener("cdkObserveContent",function(){return S._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\u0275elementEnd(),s.\u0275\u0275elementStart(11,"div",9,10),s.\u0275\u0275listener("mousedown",function(G){return S._handlePaginatorPress("after",G)})("click",function(){return S._handlePaginatorClick("after")})("touchend",function(){return S._stopInterval()}),s.\u0275\u0275element(13,"div",2),s.\u0275\u0275elementEnd()),2&v&&(s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",S._disableScrollBefore),s.\u0275\u0275property("matRippleDisabled",S._disableScrollBefore||S.disableRipple),s.\u0275\u0275advance(5),s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===S._animationMode),s.\u0275\u0275advance(6),s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",S._disableScrollAfter),s.\u0275\u0275property("matRippleDisabled",S._disableScrollAfter||S.disableRipple))},directives:[_.MatRipple,u.wD,me],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}.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}),ce})();const bn=(0,_.mixinTabIndex)((0,_.mixinDisableRipple)((0,_.mixinDisabled)(class{})));let Zt=(()=>{class ce extends bn{constructor(v,S,M,G,rt,Dt){super(),this._tabNavBar=v,this.elementRef=S,this._focusMonitor=rt,this._isActive=!1,this.rippleConfig=M||{},this.tabIndex=parseInt(G)||0,"NoopAnimations"===Dt&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(v){const S=(0,Me.Ig)(v);S!==this._isActive&&(this._isActive=S,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)}}return ce.\u0275fac=function(v){return new(v||ce)(s.\u0275\u0275directiveInject(zt),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(C.ANIMATION_MODULE_TYPE,8))},ce.\u0275dir=s.\u0275\u0275defineDirective({type:ce,inputs:{active:"active"},features:[s.\u0275\u0275InheritDefinitionFeature]}),ce})(),an=(()=>{class ce extends Zt{constructor(v,S,M,G,rt,Dt,Kt,rn){super(v,S,rt,Dt,Kt,rn),this._tabLinkRipple=new _.RippleRenderer(this,M,S,G),this._tabLinkRipple.setupTriggerEvents(S.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return ce.\u0275fac=function(v){return new(v||ce)(s.\u0275\u0275directiveInject(St),s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(ye.t4),s.\u0275\u0275directiveInject(_.MAT_RIPPLE_GLOBAL_OPTIONS,8),s.\u0275\u0275injectAttribute("tabindex"),s.\u0275\u0275directiveInject(i.tE),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},ce.\u0275dir=s.\u0275\u0275defineDirective({type:ce,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(v,S){1&v&&s.\u0275\u0275listener("focus",function(){return S._handleFocus()}),2&v&&(s.\u0275\u0275attribute("aria-current",S.active?"page":null)("aria-disabled",S.disabled)("tabIndex",S.tabIndex),s.\u0275\u0275classProp("mat-tab-disabled",S.disabled)("mat-tab-label-active",S.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[s.\u0275\u0275InheritDefinitionFeature]}),ce})(),Ge=(()=>{class ce{}return ce.\u0275fac=function(v){return new(v||ce)},ce.\u0275mod=s.\u0275\u0275defineNgModule({type:ce}),ce.\u0275inj=s.\u0275\u0275defineInjector({imports:[[c.CommonModule,_.MatCommonModule,m.eL,_.MatRippleModule,u.Q8,i.rt],_.MatCommonModule]}),ce})()},7238:(Le,g,l)=>{"use strict";l.r(g),l.d(g,{MAT_TOOLTIP_DEFAULT_OPTIONS:()=>q,MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY:()=>Pe,MAT_TOOLTIP_SCROLL_STRATEGY:()=>ke,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY:()=>Xe,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER:()=>st,MatTooltip:()=>ae,MatTooltipModule:()=>Ke,SCROLL_THROTTLE_MS:()=>le,TOOLTIP_PANEL_CLASS:()=>Me,TooltipComponent:()=>ie,_MatTooltipBase:()=>J,_TooltipComponentBase:()=>Ie,getMatTooltipInvalidPositionError:()=>De,matTooltipAnimations:()=>$});var i=l(1314),u=l(5664),m=l(9808),c=l(5e3),s=l(508),_=l(9071),C=l(3191),D=l(1159),I=l(5113),h=l(925),A=l(7429),T=l(6758),b=l(2722),x=l(5698),V=l(1777),fe=l(226);const $={tooltipState:(0,V.X$)("state",[(0,V.SB)("initial, void, hidden",(0,V.oB)({opacity:0,transform:"scale(0)"})),(0,V.SB)("visible",(0,V.oB)({transform:"scale(1)"})),(0,V.eR)("* => visible",(0,V.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,V.F4)([(0,V.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,V.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,V.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,V.eR)("* => hidden",(0,V.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,V.oB)({opacity:0})))])},le=20,Me="mat-tooltip-panel",pe="tooltip-panel",ye=(0,h.i$)({passive:!0});function De(ge){return Error(`Tooltip position "${ge}" is invalid.`)}const ke=new c.InjectionToken("mat-tooltip-scroll-strategy");function Xe(ge){return()=>ge.scrollStrategies.reposition({scrollThrottle:le})}const st={provide:ke,deps:[i.aV],useFactory:Xe},q=new c.InjectionToken("mat-tooltip-default-options",{providedIn:"root",factory:Pe});function Pe(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}let J=(()=>{class ge{constructor(ve,$e,ct,Tt,Fe,Je,Y,me,we,Re,_e,Ye){this._overlay=ve,this._elementRef=$e,this._scrollDispatcher=ct,this._viewContainerRef=Tt,this._ngZone=Fe,this._platform=Je,this._ariaDescriber=Y,this._focusMonitor=me,this._dir=Re,this._defaultOptions=_e,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=Ye,_e&&(_e.position&&(this.position=_e.position),_e.touchGestures&&(this.touchGestures=_e.touchGestures)),Re.change.pipe((0,b.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(ve){var $e;ve!==this._position&&(this._position=ve,this._overlayRef&&(this._updatePosition(this._overlayRef),null===($e=this._tooltipInstance)||void 0===$e||$e.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(ve){this._disabled=(0,C.Ig)(ve),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(ve){this._showDelay=(0,C.su)(ve)}get hideDelay(){return this._hideDelay}set hideDelay(ve){this._hideDelay=(0,C.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,b.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(([$e,ct])=>{ve.removeEventListener($e,ct,ye)}),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 $e=this._createOverlay();this._detach(),this._portal=this._portal||new A.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=$e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,b.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),$e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(ve);return $e.positionChanges.pipe((0,b.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:$e,panelClass:`${this._cssClassPrefix}-${pe}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,b.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,b.R)(this._destroyed)).subscribe(()=>{var ct;return null===(ct=this._tooltipInstance)||void 0===ct?void 0:ct._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,b.R)(this._destroyed)).subscribe(ct=>{this._isTooltipVisible()&&ct.keyCode===D.hY&&!(0,D.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 $e=ve.getConfig().positionStrategy,ct=this._getOrigin(),Tt=this._getOverlayPosition();$e.withPositions([this._addOffset(Object.assign(Object.assign({},ct.main),Tt.main)),this._addOffset(Object.assign(Object.assign({},ct.fallback),Tt.fallback))])}_addOffset(ve){return ve}_getOrigin(){const ve=!this._dir||"ltr"==this._dir.value,$e=this.position;let ct;"above"==$e||"below"==$e?ct={originX:"center",originY:"above"==$e?"top":"bottom"}:"before"==$e||"left"==$e&&ve||"right"==$e&&!ve?ct={originX:"start",originY:"center"}:("after"==$e||"right"==$e&&ve||"left"==$e&&!ve)&&(ct={originX:"end",originY:"center"});const{x:Tt,y:Fe}=this._invertPosition(ct.originX,ct.originY);return{main:ct,fallback:{originX:Tt,originY:Fe}}}_getOverlayPosition(){const ve=!this._dir||"ltr"==this._dir.value,$e=this.position;let ct;"above"==$e?ct={overlayX:"center",overlayY:"bottom"}:"below"==$e?ct={overlayX:"center",overlayY:"top"}:"before"==$e||"left"==$e&&ve||"right"==$e&&!ve?ct={overlayX:"end",overlayY:"center"}:("after"==$e||"right"==$e&&ve||"left"==$e&&!ve)&&(ct={overlayX:"start",overlayY:"center"});const{x:Tt,y:Fe}=this._invertPosition(ct.overlayX,ct.overlayY);return{main:ct,fallback:{overlayX:Tt,overlayY:Fe}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,x.q)(1),(0,b.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(ve){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=ve,this._tooltipInstance._markForCheck())}_invertPosition(ve,$e){return"above"===this.position||"below"===this.position?"top"===$e?$e="bottom":"bottom"===$e&&($e="top"):"end"===ve?ve="start":"start"===ve&&(ve="end"),{x:ve,y:$e}}_updateCurrentPositionClass(ve){const{overlayY:$e,originX:ct,originY:Tt}=ve;let Fe;if(Fe="center"===$e?this._dir&&"rtl"===this._dir.value?"end"===ct?"left":"right":"start"===ct?"left":"right":"bottom"===$e&&"top"===Tt?"above":"below",Fe!==this._currentPosition){const Je=this._overlayRef;if(Je){const Y=`${this._cssClassPrefix}-${pe}-`;Je.removePanelClass(Y+this._currentPosition),Je.addPanelClass(Y+Fe)}this._currentPosition=Fe}}_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",$e=>this._wheelListener($e)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const $e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};ve.push(["touchend",$e],["touchcancel",$e])}this._addListeners(ve),this._passiveListeners.push(...ve)}_addListeners(ve){ve.forEach(([$e,ct])=>{this._elementRef.nativeElement.addEventListener($e,ct,ye)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(ve){if(this._isTooltipVisible()){const $e=this._document.elementFromPoint(ve.clientX,ve.clientY),ct=this._elementRef.nativeElement;$e!==ct&&!ct.contains($e)&&this.hide()}}_disableNativeGesturesIfNecessary(){const ve=this.touchGestures;if("off"!==ve){const $e=this._elementRef.nativeElement,ct=$e.style;("on"===ve||"INPUT"!==$e.nodeName&&"TEXTAREA"!==$e.nodeName)&&(ct.userSelect=ct.msUserSelect=ct.webkitUserSelect=ct.MozUserSelect="none"),("on"===ve||!$e.draggable)&&(ct.webkitUserDrag="none"),ct.touchAction="none",ct.webkitTapHighlightColor="transparent"}}}return ge.\u0275fac=function(ve){c.\u0275\u0275invalidFactory()},ge.\u0275dir=c.\u0275\u0275defineDirective({type:ge,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),ge})(),ae=(()=>{class ge extends J{constructor(ve,$e,ct,Tt,Fe,Je,Y,me,we,Re,_e,Ye){super(ve,$e,ct,Tt,Fe,Je,Y,me,we,Re,_e,Ye),this._tooltipComponent=ie}}return ge.\u0275fac=function(ve){return new(ve||ge)(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(ke),c.\u0275\u0275directiveInject(fe.Is,8),c.\u0275\u0275directiveInject(q,8),c.\u0275\u0275directiveInject(m.DOCUMENT))},ge.\u0275dir=c.\u0275\u0275defineDirective({type:ge,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[c.\u0275\u0275InheritDefinitionFeature]}),ge})(),Ie=(()=>{class ge{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 $e=ve.toState;"hidden"===$e&&!this.isVisible()&&this._onHide.next(),("visible"===$e||"hidden"===$e)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return ge.\u0275fac=function(ve){return new(ve||ge)(c.\u0275\u0275directiveInject(c.ChangeDetectorRef))},ge.\u0275dir=c.\u0275\u0275defineDirective({type:ge}),ge})(),ie=(()=>{class ge extends Ie{constructor(ve,$e){super(ve),this._breakpointObserver=$e,this._isHandset=this._breakpointObserver.observe(I.Breakpoints.Handset)}}return ge.\u0275fac=function(ve){return new(ve||ge)(c.\u0275\u0275directiveInject(c.ChangeDetectorRef),c.\u0275\u0275directiveInject(I.BreakpointObserver))},ge.\u0275cmp=c.\u0275\u0275defineComponent({type:ge,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(ve,$e){2&ve&&c.\u0275\u0275styleProp("zoom","visible"===$e._visibility?1:null)},features:[c.\u0275\u0275InheritDefinitionFeature],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(ve,$e){if(1&ve&&(c.\u0275\u0275elementStart(0,"div",0),c.\u0275\u0275listener("@state.start",function(){return $e._animationStart()})("@state.done",function(Tt){return $e._animationDone(Tt)}),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,$e._isHandset))?null:ct.matches),c.\u0275\u0275property("ngClass",$e.tooltipClass)("@state",$e._visibility),c.\u0275\u0275advance(2),c.\u0275\u0275textInterpolate($e.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:[$.tooltipState]},changeDetection:0}),ge})(),Ke=(()=>{class ge{}return ge.\u0275fac=function(ve){return new(ve||ge)},ge.\u0275mod=c.\u0275\u0275defineNgModule({type:ge}),ge.\u0275inj=c.\u0275\u0275defineInjector({providers:[st],imports:[[u.rt,m.CommonModule,i.U8,s.MatCommonModule],s.MatCommonModule,_.ZD]}),ge})()},6360:(Le,g,l)=>{"use strict";l.r(g),l.d(g,{ANIMATION_MODULE_TYPE:()=>Vt,BrowserAnimationsModule:()=>Ni,NoopAnimationsModule:()=>Mt,\u0275AnimationRenderer:()=>In,\u0275AnimationRendererFactory:()=>Tn,\u0275BrowserAnimationBuilder:()=>F,\u0275BrowserAnimationFactory:()=>ne,\u0275InjectableAnimationEngine:()=>O});var i=l(5e3),u=l(2313),m=l(1777);function c(){return"undefined"!=typeof window&&void 0!==window.document}function s(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function _(j){switch(j.length){case 0:return new m.ZN;case 1:return j[0];default:return new m.ZE(j)}}function C(j,d,p,P,U={},de={}){const Ne=[],He=[];let ot=-1,mt=null;if(P.forEach(xt=>{const Wt=xt.offset,Yt=Wt==ot,ln=Yt&&mt||{};Object.keys(xt).forEach(Jt=>{let en=Jt,pn=xt[Jt];if("offset"!==Jt)switch(en=d.normalizePropertyName(en,Ne),pn){case m.k1:pn=U[Jt];break;case m.l3:pn=de[Jt];break;default:pn=d.normalizeStyleValue(Jt,en,pn,Ne)}ln[en]=pn}),Yt||He.push(ln),mt=ln,ot=Wt}),Ne.length){const xt="\n - ";throw new Error(`Unable to animate due to the following errors:${xt}${Ne.join(xt)}`)}return He}function D(j,d,p,P){switch(d){case"start":j.onStart(()=>P(p&&I(p,"start",j)));break;case"done":j.onDone(()=>P(p&&I(p,"done",j)));break;case"destroy":j.onDestroy(()=>P(p&&I(p,"destroy",j)))}}function I(j,d,p){const P=p.totalTime,de=h(j.element,j.triggerName,j.fromState,j.toState,d||j.phaseName,null==P?j.totalTime:P,!!p.disabled),Ne=j._data;return null!=Ne&&(de._data=Ne),de}function h(j,d,p,P,U="",de=0,Ne){return{element:j,triggerName:d,fromState:p,toState:P,phaseName:U,totalTime:de,disabled:!!Ne}}function A(j,d,p){let P;return j instanceof Map?(P=j.get(d),P||j.set(d,P=p)):(P=j[d],P||(P=j[d]=p)),P}function T(j){const d=j.indexOf(":");return[j.substring(1,d),j.substr(d+1)]}let b=(j,d)=>!1,x=(j,d,p)=>[];(s()||"undefined"!=typeof Element)&&(b=c()?(j,d)=>{for(;d&&d!==document.documentElement;){if(d===j)return!0;d=d.parentNode||d.host}return!1}:(j,d)=>j.contains(d),x=(j,d,p)=>{if(p)return Array.from(j.querySelectorAll(d));const P=j.querySelector(d);return P?[P]:[]});let $=null,le=!1;function Me(j){$||($=function pe(){return"undefined"!=typeof document?document.body:null}()||{},le=!!$.style&&"WebkitAppearance"in $.style);let d=!0;return $.style&&!function fe(j){return"ebkit"==j.substring(1,6)}(j)&&(d=j in $.style,!d&&le&&(d="Webkit"+j.charAt(0).toUpperCase()+j.substr(1)in $.style)),d}const ye=b,se=x;function De(j){const d={};return Object.keys(j).forEach(p=>{const P=p.replace(/([a-z])([A-Z])/g,"$1-$2");d[P]=j[p]}),d}let ke=(()=>{class j{validateStyleProperty(p){return Me(p)}matchesElement(p,P){return!1}containsElement(p,P){return ye(p,P)}query(p,P,U){return se(p,P,U)}computeStyle(p,P,U){return U||""}animate(p,P,U,de,Ne,He=[],ot){return new m.ZN(U,de)}}return j.\u0275fac=function(p){return new(p||j)},j.\u0275prov=i.\u0275\u0275defineInjectable({token:j,factory:j.\u0275fac}),j})(),Xe=(()=>{class j{}return j.NOOP=new ke,j})();const J="ng-enter",ae="ng-leave",Ie="ng-trigger",ie=".ng-trigger",Ke="ng-animating",ge=".ng-animating";function nt(j){if("number"==typeof j)return j;const d=j.match(/^(-?[\.\d]+)(m?s)/);return!d||d.length<2?0:ve(parseFloat(d[1]),d[2])}function ve(j,d){return"s"===d?1e3*j:j}function $e(j,d,p){return j.hasOwnProperty("duration")?j:function ct(j,d,p){let U,de=0,Ne="";if("string"==typeof j){const He=j.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===He)return d.push(`The provided timing value "${j}" is invalid.`),{duration:0,delay:0,easing:""};U=ve(parseFloat(He[1]),He[2]);const ot=He[3];null!=ot&&(de=ve(parseFloat(ot),He[4]));const mt=He[5];mt&&(Ne=mt)}else U=j;if(!p){let He=!1,ot=d.length;U<0&&(d.push("Duration values below 0 are not allowed for this animation step."),He=!0),de<0&&(d.push("Delay values below 0 are not allowed for this animation step."),He=!0),He&&d.splice(ot,0,`The provided timing value "${j}" is invalid.`)}return{duration:U,delay:de,easing:Ne}}(j,d,p)}function Tt(j,d={}){return Object.keys(j).forEach(p=>{d[p]=j[p]}),d}function Je(j,d,p={}){if(d)for(let P in j)p[P]=j[P];else Tt(j,p);return p}function Y(j,d,p){return p?d+":"+p+";":""}function me(j){let d="";for(let p=0;p<j.style.length;p++){const P=j.style.item(p);d+=Y(0,P,j.style.getPropertyValue(P))}for(const p in j.style)j.style.hasOwnProperty(p)&&!p.startsWith("_")&&(d+=Y(0,oe(p),j.style[p]));j.setAttribute("style",d)}function we(j,d,p){j.style&&(Object.keys(d).forEach(P=>{const U=N(P);p&&!p.hasOwnProperty(P)&&(p[P]=j.style[U]),j.style[U]=d[P]}),s()&&me(j))}function Re(j,d){j.style&&(Object.keys(d).forEach(p=>{const P=N(p);j.style[P]=""}),s()&&me(j))}function _e(j){return Array.isArray(j)?1==j.length?j[0]:(0,m.vP)(j):j}const yt=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ct(j){let d=[];if("string"==typeof j){let p;for(;p=yt.exec(j);)d.push(p[1]);yt.lastIndex=0}return d}function Ot(j,d,p){const P=j.toString(),U=P.replace(yt,(de,Ne)=>{let He=d[Ne];return d.hasOwnProperty(Ne)||(p.push(`Please provide a value for the animation param ${Ne}`),He=""),He.toString()});return U==P?j:U}function dt(j){const d=[];let p=j.next();for(;!p.done;)d.push(p.value),p=j.next();return d}const Qe=/-+([a-z0-9])/g;function N(j){return j.replace(Qe,(...d)=>d[1].toUpperCase())}function oe(j){return j.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Oe(j,d){return 0===j||0===d}function ue(j,d,p){const P=Object.keys(p);if(P.length&&d.length){let de=d[0],Ne=[];if(P.forEach(He=>{de.hasOwnProperty(He)||Ne.push(He),de[He]=p[He]}),Ne.length)for(var U=1;U<d.length;U++){let He=d[U];Ne.forEach(function(ot){He[ot]=be(j,ot)})}}return d}function Te(j,d,p){switch(d.type){case 7:return j.visitTrigger(d,p);case 0:return j.visitState(d,p);case 1:return j.visitTransition(d,p);case 2:return j.visitSequence(d,p);case 3:return j.visitGroup(d,p);case 4:return j.visitAnimate(d,p);case 5:return j.visitKeyframes(d,p);case 6:return j.visitStyle(d,p);case 8:return j.visitReference(d,p);case 9:return j.visitAnimateChild(d,p);case 10:return j.visitAnimateRef(d,p);case 11:return j.visitQuery(d,p);case 12:return j.visitStagger(d,p);default:throw new Error(`Unable to resolve animation metadata node #${d.type}`)}}function be(j,d){return window.getComputedStyle(j)[d]}function Ce(j,d){const p=[];return"string"==typeof j?j.split(/\s*,\s*/).forEach(P=>function Ze(j,d,p){if(":"==j[0]){const ot=function tt(j,d){switch(j){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(p,P)=>parseFloat(P)>parseFloat(p);case":decrement":return(p,P)=>parseFloat(P)<parseFloat(p);default:return d.push(`The transition alias value "${j}" is not supported`),"* => *"}}(j,p);if("function"==typeof ot)return void d.push(ot);j=ot}const P=j.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==P||P.length<4)return p.push(`The provided transition expression "${j}" is not supported`),d;const U=P[1],de=P[2],Ne=P[3];d.push(wt(U,Ne));"<"==de[0]&&!("*"==U&&"*"==Ne)&&d.push(wt(Ne,U))}(P,p,d)):p.push(j),p}const ft=new Set(["true","1"]),pt=new Set(["false","0"]);function wt(j,d){const p=ft.has(j)||pt.has(j),P=ft.has(d)||pt.has(d);return(U,de)=>{let Ne="*"==j||j==U,He="*"==d||d==de;return!Ne&&p&&"boolean"==typeof U&&(Ne=U?ft.has(j):pt.has(j)),!He&&P&&"boolean"==typeof de&&(He=de?ft.has(d):pt.has(d)),Ne&&He}}const nn=new RegExp("s*:selfs*,?","g");function Ht(j,d,p){return new sn(j).build(d,p)}class sn{constructor(d){this._driver=d}build(d,p){const P=new bn(p);return this._resetContextStyleTimingState(P),Te(this,_e(d),P)}_resetContextStyleTimingState(d){d.currentQuerySelector="",d.collectedStyles={},d.collectedStyles[""]={},d.currentTime=0}visitTrigger(d,p){let P=p.queryCount=0,U=p.depCount=0;const de=[],Ne=[];return"@"==d.name.charAt(0)&&p.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),d.definitions.forEach(He=>{if(this._resetContextStyleTimingState(p),0==He.type){const ot=He,mt=ot.name;mt.toString().split(/\s*,\s*/).forEach(xt=>{ot.name=xt,de.push(this.visitState(ot,p))}),ot.name=mt}else if(1==He.type){const ot=this.visitTransition(He,p);P+=ot.queryCount,U+=ot.depCount,Ne.push(ot)}else p.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:d.name,states:de,transitions:Ne,queryCount:P,depCount:U,options:null}}visitState(d,p){const P=this.visitStyle(d.styles,p),U=d.options&&d.options.params||null;if(P.containsDynamicStyles){const de=new Set,Ne=U||{};if(P.styles.forEach(He=>{if(an(He)){const ot=He;Object.keys(ot).forEach(mt=>{Ct(ot[mt]).forEach(xt=>{Ne.hasOwnProperty(xt)||de.add(xt)})})}}),de.size){const He=dt(de.values());p.errors.push(`state("${d.name}", ...) must define default values for all the following style substitutions: ${He.join(", ")}`)}}return{type:0,name:d.name,style:P,options:U?{params:U}:null}}visitTransition(d,p){p.queryCount=0,p.depCount=0;const P=Te(this,_e(d.animation),p);return{type:1,matchers:Ce(d.expr,p.errors),animation:P,queryCount:p.queryCount,depCount:p.depCount,options:ce(d.options)}}visitSequence(d,p){return{type:2,steps:d.steps.map(P=>Te(this,P,p)),options:ce(d.options)}}visitGroup(d,p){const P=p.currentTime;let U=0;const de=d.steps.map(Ne=>{p.currentTime=P;const He=Te(this,Ne,p);return U=Math.max(U,p.currentTime),He});return p.currentTime=U,{type:3,steps:de,options:ce(d.options)}}visitAnimate(d,p){const P=function Ge(j,d){let p=null;if(j.hasOwnProperty("duration"))p=j;else if("number"==typeof j)return L($e(j,d).duration,0,"");const P=j;if(P.split(/\s+/).some(de=>"{"==de.charAt(0)&&"{"==de.charAt(1))){const de=L(0,0,"");return de.dynamic=!0,de.strValue=P,de}return p=p||$e(P,d),L(p.duration,p.delay,p.easing)}(d.timings,p.errors);p.currentAnimateTimings=P;let U,de=d.styles?d.styles:(0,m.oB)({});if(5==de.type)U=this.visitKeyframes(de,p);else{let Ne=d.styles,He=!1;if(!Ne){He=!0;const mt={};P.easing&&(mt.easing=P.easing),Ne=(0,m.oB)(mt)}p.currentTime+=P.duration+P.delay;const ot=this.visitStyle(Ne,p);ot.isEmptyStep=He,U=ot}return p.currentAnimateTimings=null,{type:4,timings:P,style:U,options:null}}visitStyle(d,p){const P=this._makeStyleAst(d,p);return this._validateStyleAst(P,p),P}_makeStyleAst(d,p){const P=[];Array.isArray(d.styles)?d.styles.forEach(Ne=>{"string"==typeof Ne?Ne==m.l3?P.push(Ne):p.errors.push(`The provided style string value ${Ne} is not allowed.`):P.push(Ne)}):P.push(d.styles);let U=!1,de=null;return P.forEach(Ne=>{if(an(Ne)){const He=Ne,ot=He.easing;if(ot&&(de=ot,delete He.easing),!U)for(let mt in He)if(He[mt].toString().indexOf("{{")>=0){U=!0;break}}}),{type:6,styles:P,easing:de,offset:d.offset,containsDynamicStyles:U,options:null}}_validateStyleAst(d,p){const P=p.currentAnimateTimings;let U=p.currentTime,de=p.currentTime;P&&de>0&&(de-=P.duration+P.delay),d.styles.forEach(Ne=>{"string"!=typeof Ne&&Object.keys(Ne).forEach(He=>{if(!this._driver.validateStyleProperty(He))return void p.errors.push(`The provided animation property "${He}" is not a supported CSS property for animations`);const ot=p.collectedStyles[p.currentQuerySelector],mt=ot[He];let xt=!0;mt&&(de!=U&&de>=mt.startTime&&U<=mt.endTime&&(p.errors.push(`The CSS property "${He}" that exists between the times of "${mt.startTime}ms" and "${mt.endTime}ms" is also being animated in a parallel animation between the times of "${de}ms" and "${U}ms"`),xt=!1),de=mt.startTime),xt&&(ot[He]={startTime:de,endTime:U}),p.options&&function Ye(j,d,p){const P=d.params||{},U=Ct(j);U.length&&U.forEach(de=>{P.hasOwnProperty(de)||p.push(`Unable to resolve the local animation param ${de} in the given list of values`)})}(Ne[He],p.options,p.errors)})})}visitKeyframes(d,p){const P={type:5,styles:[],options:null};if(!p.currentAnimateTimings)return p.errors.push("keyframes() must be placed inside of a call to animate()"),P;let de=0;const Ne=[];let He=!1,ot=!1,mt=0;const xt=d.steps.map(ee=>{const W=this._makeStyleAst(ee,p);let Z=null!=W.offset?W.offset:function Zt(j){if("string"==typeof j)return null;let d=null;if(Array.isArray(j))j.forEach(p=>{if(an(p)&&p.hasOwnProperty("offset")){const P=p;d=parseFloat(P.offset),delete P.offset}});else if(an(j)&&j.hasOwnProperty("offset")){const p=j;d=parseFloat(p.offset),delete p.offset}return d}(W.styles),te=0;return null!=Z&&(de++,te=W.offset=Z),ot=ot||te<0||te>1,He=He||te<mt,mt=te,Ne.push(te),W});ot&&p.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),He&&p.errors.push("Please ensure that all keyframe offsets are in order");const Wt=d.steps.length;let Yt=0;de>0&&de<Wt?p.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==de&&(Yt=1/(Wt-1));const ln=Wt-1,Jt=p.currentTime,en=p.currentAnimateTimings,pn=en.duration;return xt.forEach((ee,W)=>{const Z=Yt>0?W==ln?1:Yt*W:Ne[W],te=Z*pn;p.currentTime=Jt+en.delay+te,en.duration=te,this._validateStyleAst(ee,p),ee.offset=Z,P.styles.push(ee)}),P}visitReference(d,p){return{type:8,animation:Te(this,_e(d.animation),p),options:ce(d.options)}}visitAnimateChild(d,p){return p.depCount++,{type:9,options:ce(d.options)}}visitAnimateRef(d,p){return{type:10,animation:this.visitReference(d.animation,p),options:ce(d.options)}}visitQuery(d,p){const P=p.currentQuerySelector,U=d.options||{};p.queryCount++,p.currentQuery=d;const[de,Ne]=function zt(j){const d=!!j.split(/\s*,\s*/).find(p=>":self"==p);return d&&(j=j.replace(nn,"")),j=j.replace(/@\*/g,ie).replace(/@\w+/g,p=>ie+"-"+p.substr(1)).replace(/:animating/g,ge),[j,d]}(d.selector);p.currentQuerySelector=P.length?P+" "+de:de,A(p.collectedStyles,p.currentQuerySelector,{});const He=Te(this,_e(d.animation),p);return p.currentQuery=null,p.currentQuerySelector=P,{type:11,selector:de,limit:U.limit||0,optional:!!U.optional,includeSelf:Ne,animation:He,originalSelector:d.selector,options:ce(d.options)}}visitStagger(d,p){p.currentQuery||p.errors.push("stagger() can only be used inside of query()");const P="full"===d.timings?{duration:0,delay:0,easing:"full"}:$e(d.timings,p.errors,!0);return{type:12,animation:Te(this,_e(d.animation),p),timings:P,options:null}}}class bn{constructor(d){this.errors=d,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 an(j){return!Array.isArray(j)&&"object"==typeof j}function ce(j){return j?(j=Tt(j)).params&&(j.params=function St(j){return j?Tt(j):null}(j.params)):j={},j}function L(j,d,p){return{duration:j,delay:d,easing:p}}function v(j,d,p,P,U,de,Ne=null,He=!1){return{type:1,element:j,keyframes:d,preStyleProps:p,postStyleProps:P,duration:U,delay:de,totalTime:U+de,easing:Ne,subTimeline:He}}class S{constructor(){this._map=new Map}get(d){return this._map.get(d)||[]}append(d,p){let P=this._map.get(d);P||this._map.set(d,P=[]),P.push(...p)}has(d){return this._map.has(d)}clear(){this._map.clear()}}const rt=new RegExp(":enter","g"),Kt=new RegExp(":leave","g");function rn(j,d,p,P,U,de={},Ne={},He,ot,mt=[]){return(new je).buildKeyframes(j,d,p,P,U,de,Ne,He,ot,mt)}class je{buildKeyframes(d,p,P,U,de,Ne,He,ot,mt,xt=[]){mt=mt||new S;const Wt=new he(d,p,mt,U,de,xt,[]);Wt.options=ot,Wt.currentTimeline.setStyles([Ne],null,Wt.errors,ot),Te(this,P,Wt);const Yt=Wt.timelines.filter(ln=>ln.containsAnimation());if(Object.keys(He).length){let ln;for(let Jt=Yt.length-1;Jt>=0;Jt--){const en=Yt[Jt];if(en.element===p){ln=en;break}}ln&&!ln.allowOnlyTimelineStyles()&&ln.setStyles([He],null,Wt.errors,ot)}return Yt.length?Yt.map(ln=>ln.buildKeyframes()):[v(p,[],[],[],0,0,"",!1)]}visitTrigger(d,p){}visitState(d,p){}visitTransition(d,p){}visitAnimateChild(d,p){const P=p.subInstructions.get(p.element);if(P){const U=p.createSubContext(d.options),de=p.currentTimeline.currentTime,Ne=this._visitSubInstructions(P,U,U.options);de!=Ne&&p.transformIntoNewTimeline(Ne)}p.previousNode=d}visitAnimateRef(d,p){const P=p.createSubContext(d.options);P.transformIntoNewTimeline(),this.visitReference(d.animation,P),p.transformIntoNewTimeline(P.currentTimeline.currentTime),p.previousNode=d}_visitSubInstructions(d,p,P){let de=p.currentTimeline.currentTime;const Ne=null!=P.duration?nt(P.duration):null,He=null!=P.delay?nt(P.delay):null;return 0!==Ne&&d.forEach(ot=>{const mt=p.appendInstructionToTimeline(ot,Ne,He);de=Math.max(de,mt.duration+mt.delay)}),de}visitReference(d,p){p.updateOptions(d.options,!0),Te(this,d.animation,p),p.previousNode=d}visitSequence(d,p){const P=p.subContextCount;let U=p;const de=d.options;if(de&&(de.params||de.delay)&&(U=p.createSubContext(de),U.transformIntoNewTimeline(),null!=de.delay)){6==U.previousNode.type&&(U.currentTimeline.snapshotCurrentStyles(),U.previousNode=Ue);const Ne=nt(de.delay);U.delayNextStep(Ne)}d.steps.length&&(d.steps.forEach(Ne=>Te(this,Ne,U)),U.currentTimeline.applyStylesToKeyframe(),U.subContextCount>P&&U.transformIntoNewTimeline()),p.previousNode=d}visitGroup(d,p){const P=[];let U=p.currentTimeline.currentTime;const de=d.options&&d.options.delay?nt(d.options.delay):0;d.steps.forEach(Ne=>{const He=p.createSubContext(d.options);de&&He.delayNextStep(de),Te(this,Ne,He),U=Math.max(U,He.currentTimeline.currentTime),P.push(He.currentTimeline)}),P.forEach(Ne=>p.currentTimeline.mergeTimelineCollectedStyles(Ne)),p.transformIntoNewTimeline(U),p.previousNode=d}_visitTiming(d,p){if(d.dynamic){const P=d.strValue;return $e(p.params?Ot(P,p.params,p.errors):P,p.errors)}return{duration:d.duration,delay:d.delay,easing:d.easing}}visitAnimate(d,p){const P=p.currentAnimateTimings=this._visitTiming(d.timings,p),U=p.currentTimeline;P.delay&&(p.incrementTime(P.delay),U.snapshotCurrentStyles());const de=d.style;5==de.type?this.visitKeyframes(de,p):(p.incrementTime(P.duration),this.visitStyle(de,p),U.applyStylesToKeyframe()),p.currentAnimateTimings=null,p.previousNode=d}visitStyle(d,p){const P=p.currentTimeline,U=p.currentAnimateTimings;!U&&P.getCurrentStyleProperties().length&&P.forwardFrame();const de=U&&U.easing||d.easing;d.isEmptyStep?P.applyEmptyStep(de):P.setStyles(d.styles,de,p.errors,p.options),p.previousNode=d}visitKeyframes(d,p){const P=p.currentAnimateTimings,U=p.currentTimeline.duration,de=P.duration,He=p.createSubContext().currentTimeline;He.easing=P.easing,d.styles.forEach(ot=>{He.forwardTime((ot.offset||0)*de),He.setStyles(ot.styles,ot.easing,p.errors,p.options),He.applyStylesToKeyframe()}),p.currentTimeline.mergeTimelineCollectedStyles(He),p.transformIntoNewTimeline(U+de),p.previousNode=d}visitQuery(d,p){const P=p.currentTimeline.currentTime,U=d.options||{},de=U.delay?nt(U.delay):0;de&&(6===p.previousNode.type||0==P&&p.currentTimeline.getCurrentStyleProperties().length)&&(p.currentTimeline.snapshotCurrentStyles(),p.previousNode=Ue);let Ne=P;const He=p.invokeQuery(d.selector,d.originalSelector,d.limit,d.includeSelf,!!U.optional,p.errors);p.currentQueryTotal=He.length;let ot=null;He.forEach((mt,xt)=>{p.currentQueryIndex=xt;const Wt=p.createSubContext(d.options,mt);de&&Wt.delayNextStep(de),mt===p.element&&(ot=Wt.currentTimeline),Te(this,d.animation,Wt),Wt.currentTimeline.applyStylesToKeyframe(),Ne=Math.max(Ne,Wt.currentTimeline.currentTime)}),p.currentQueryIndex=0,p.currentQueryTotal=0,p.transformIntoNewTimeline(Ne),ot&&(p.currentTimeline.mergeTimelineCollectedStyles(ot),p.currentTimeline.snapshotCurrentStyles()),p.previousNode=d}visitStagger(d,p){const P=p.parentContext,U=p.currentTimeline,de=d.timings,Ne=Math.abs(de.duration),He=Ne*(p.currentQueryTotal-1);let ot=Ne*p.currentQueryIndex;switch(de.duration<0?"reverse":de.easing){case"reverse":ot=He-ot;break;case"full":ot=P.currentStaggerTime}const xt=p.currentTimeline;ot&&xt.delayNextStep(ot);const Wt=xt.currentTime;Te(this,d.animation,p),p.previousNode=d,P.currentStaggerTime=U.currentTime-Wt+(U.startTime-P.currentTimeline.startTime)}}const Ue={};class he{constructor(d,p,P,U,de,Ne,He,ot){this._driver=d,this.element=p,this.subInstructions=P,this._enterClassName=U,this._leaveClassName=de,this.errors=Ne,this.timelines=He,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ue,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=ot||new Ve(this._driver,p,0),He.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(d,p){if(!d)return;const P=d;let U=this.options;null!=P.duration&&(U.duration=nt(P.duration)),null!=P.delay&&(U.delay=nt(P.delay));const de=P.params;if(de){let Ne=U.params;Ne||(Ne=this.options.params={}),Object.keys(de).forEach(He=>{(!p||!Ne.hasOwnProperty(He))&&(Ne[He]=Ot(de[He],Ne,this.errors))})}}_copyOptions(){const d={};if(this.options){const p=this.options.params;if(p){const P=d.params={};Object.keys(p).forEach(U=>{P[U]=p[U]})}}return d}createSubContext(d=null,p,P){const U=p||this.element,de=new he(this._driver,U,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(U,P||0));return de.previousNode=this.previousNode,de.currentAnimateTimings=this.currentAnimateTimings,de.options=this._copyOptions(),de.updateOptions(d),de.currentQueryIndex=this.currentQueryIndex,de.currentQueryTotal=this.currentQueryTotal,de.parentContext=this,this.subContextCount++,de}transformIntoNewTimeline(d){return this.previousNode=Ue,this.currentTimeline=this.currentTimeline.fork(this.element,d),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(d,p,P){const U={duration:null!=p?p:d.duration,delay:this.currentTimeline.currentTime+(null!=P?P:0)+d.delay,easing:""},de=new ht(this._driver,d.element,d.keyframes,d.preStyleProps,d.postStyleProps,U,d.stretchStartingKeyframe);return this.timelines.push(de),U}incrementTime(d){this.currentTimeline.forwardTime(this.currentTimeline.duration+d)}delayNextStep(d){d>0&&this.currentTimeline.delayNextStep(d)}invokeQuery(d,p,P,U,de,Ne){let He=[];if(U&&He.push(this.element),d.length>0){d=(d=d.replace(rt,"."+this._enterClassName)).replace(Kt,"."+this._leaveClassName);let mt=this._driver.query(this.element,d,1!=P);0!==P&&(mt=P<0?mt.slice(mt.length+P,mt.length):mt.slice(0,P)),He.push(...mt)}return!de&&0==He.length&&Ne.push(`\`query("${p}")\` returned zero elements. (Use \`query("${p}", { optional: true })\` if you wish to allow this.)`),He}}class Ve{constructor(d,p,P,U){this._driver=d,this.element=p,this.startTime=P,this._elementTimelineStylesLookup=U,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(d){const p=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||p?(this.forwardTime(this.currentTime+d),p&&this.snapshotCurrentStyles()):this.startTime+=d}fork(d,p){return this.applyStylesToKeyframe(),new Ve(this._driver,d,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(d){this.applyStylesToKeyframe(),this.duration=d,this._loadKeyframe()}_updateStyle(d,p){this._localTimelineStyles[d]=p,this._globalTimelineStyles[d]=p,this._styleSummary[d]={time:this.currentTime,value:p}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(d){d&&(this._previousKeyframe.easing=d),Object.keys(this._globalTimelineStyles).forEach(p=>{this._backFill[p]=this._globalTimelineStyles[p]||m.l3,this._currentKeyframe[p]=m.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(d,p,P,U){p&&(this._previousKeyframe.easing=p);const de=U&&U.params||{},Ne=function Nt(j,d){const p={};let P;return j.forEach(U=>{"*"===U?(P=P||Object.keys(d),P.forEach(de=>{p[de]=m.l3})):Je(U,!1,p)}),p}(d,this._globalTimelineStyles);Object.keys(Ne).forEach(He=>{const ot=Ot(Ne[He],de,P);this._pendingStyles[He]=ot,this._localTimelineStyles.hasOwnProperty(He)||(this._backFill[He]=this._globalTimelineStyles.hasOwnProperty(He)?this._globalTimelineStyles[He]:m.l3),this._updateStyle(He,ot)})}applyStylesToKeyframe(){const d=this._pendingStyles,p=Object.keys(d);0!=p.length&&(this._pendingStyles={},p.forEach(P=>{this._currentKeyframe[P]=d[P]}),Object.keys(this._localTimelineStyles).forEach(P=>{this._currentKeyframe.hasOwnProperty(P)||(this._currentKeyframe[P]=this._localTimelineStyles[P])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(d=>{const p=this._localTimelineStyles[d];this._pendingStyles[d]=p,this._updateStyle(d,p)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const d=[];for(let p in this._currentKeyframe)d.push(p);return d}mergeTimelineCollectedStyles(d){Object.keys(d._styleSummary).forEach(p=>{const P=this._styleSummary[p],U=d._styleSummary[p];(!P||U.time>P.time)&&this._updateStyle(p,U.value)})}buildKeyframes(){this.applyStylesToKeyframe();const d=new Set,p=new Set,P=1===this._keyframes.size&&0===this.duration;let U=[];this._keyframes.forEach((He,ot)=>{const mt=Je(He,!0);Object.keys(mt).forEach(xt=>{const Wt=mt[xt];Wt==m.k1?d.add(xt):Wt==m.l3&&p.add(xt)}),P||(mt.offset=ot/this.duration),U.push(mt)});const de=d.size?dt(d.values()):[],Ne=p.size?dt(p.values()):[];if(P){const He=U[0],ot=Tt(He);He.offset=0,ot.offset=1,U=[He,ot]}return v(this.element,U,de,Ne,this.duration,this.startTime,this.easing,!1)}}class ht extends Ve{constructor(d,p,P,U,de,Ne,He=!1){super(d,p,Ne.delay),this.keyframes=P,this.preStyleProps=U,this.postStyleProps=de,this._stretchStartingKeyframe=He,this.timings={duration:Ne.duration,delay:Ne.delay,easing:Ne.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let d=this.keyframes,{delay:p,duration:P,easing:U}=this.timings;if(this._stretchStartingKeyframe&&p){const de=[],Ne=P+p,He=p/Ne,ot=Je(d[0],!1);ot.offset=0,de.push(ot);const mt=Je(d[0],!1);mt.offset=Bt(He),de.push(mt);const xt=d.length-1;for(let Wt=1;Wt<=xt;Wt++){let Yt=Je(d[Wt],!1);Yt.offset=Bt((p+Yt.offset*P)/Ne),de.push(Yt)}P=Ne,p=0,U="",d=de}return v(this.element,d,this.preStyleProps,this.postStyleProps,P,p,U,!0)}}function Bt(j,d=3){const p=Math.pow(10,d-1);return Math.round(j*p)/p}class Dn{}class di extends Dn{normalizePropertyName(d,p){return N(d)}normalizeStyleValue(d,p,P,U){let de="";const Ne=P.toString().trim();if(Xn[p]&&0!==P&&"0"!==P)if("number"==typeof P)de="px";else{const He=P.match(/^[+-]?[\d\.]+([a-z]*)$/);He&&0==He[1].length&&U.push(`Please provide a CSS unit value for ${d}:${P}`)}return Ne+de}}const Xn=(()=>function Nn(j){const d={};return j.forEach(p=>d[p]=!0),d}("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 zn(j,d,p,P,U,de,Ne,He,ot,mt,xt,Wt,Yt){return{type:0,element:j,triggerName:d,isRemovalTransition:U,fromState:p,fromStyles:de,toState:P,toStyles:Ne,timelines:He,queriedElements:ot,preStyleProps:mt,postStyleProps:xt,totalTime:Wt,errors:Yt}}const Bn={};class H{constructor(d,p,P){this._triggerName=d,this.ast=p,this._stateStyles=P}match(d,p,P,U){return function Se(j,d,p,P,U){return j.some(de=>de(d,p,P,U))}(this.ast.matchers,d,p,P,U)}buildStyles(d,p,P){const U=this._stateStyles["*"],de=this._stateStyles[d],Ne=U?U.buildStyles(p,P):{};return de?de.buildStyles(p,P):Ne}build(d,p,P,U,de,Ne,He,ot,mt,xt){const Wt=[],Yt=this.ast.options&&this.ast.options.params||Bn,Jt=this.buildStyles(P,He&&He.params||Bn,Wt),en=ot&&ot.params||Bn,pn=this.buildStyles(U,en,Wt),ee=new Set,W=new Map,Z=new Map,te="void"===U,xe={params:Object.assign(Object.assign({},Yt),en)},Be=xt?[]:rn(d,p,this.ast.animation,de,Ne,Jt,pn,xe,mt,Wt);let et=0;if(Be.forEach(_t=>{et=Math.max(_t.duration+_t.delay,et)}),Wt.length)return zn(p,this._triggerName,P,U,te,Jt,pn,[],[],W,Z,et,Wt);Be.forEach(_t=>{const Ut=_t.element,Qt=A(W,Ut,{});_t.preStyleProps.forEach(un=>Qt[un]=!0);const yn=A(Z,Ut,{});_t.postStyleProps.forEach(un=>yn[un]=!0),Ut!==p&&ee.add(Ut)});const vt=dt(ee.values());return zn(p,this._triggerName,P,U,te,Jt,pn,Be,vt,W,Z,et)}}class z{constructor(d,p,P){this.styles=d,this.defaultParams=p,this.normalizer=P}buildStyles(d,p){const P={},U=Tt(this.defaultParams);return Object.keys(d).forEach(de=>{const Ne=d[de];null!=Ne&&(U[de]=Ne)}),this.styles.styles.forEach(de=>{if("string"!=typeof de){const Ne=de;Object.keys(Ne).forEach(He=>{let ot=Ne[He];ot.length>1&&(ot=Ot(ot,U,p));const mt=this.normalizer.normalizePropertyName(He,p);ot=this.normalizer.normalizeStyleValue(He,mt,ot,p),P[mt]=ot})}}),P}}class qe{constructor(d,p,P){this.name=d,this.ast=p,this._normalizer=P,this.transitionFactories=[],this.states={},p.states.forEach(U=>{this.states[U.name]=new z(U.style,U.options&&U.options.params||{},P)}),It(this.states,"true","1"),It(this.states,"false","0"),p.transitions.forEach(U=>{this.transitionFactories.push(new H(d,U,this.states))}),this.fallbackTransition=function at(j,d,p){return new H(j,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Ne,He)=>!0],options:null,queryCount:0,depCount:0},d)}(d,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(d,p,P,U){return this.transitionFactories.find(Ne=>Ne.match(d,p,P,U))||null}matchStyles(d,p,P){return this.fallbackTransition.buildStyles(d,p,P)}}function It(j,d,p){j.hasOwnProperty(d)?j.hasOwnProperty(p)||(j[p]=j[d]):j.hasOwnProperty(p)&&(j[d]=j[p])}const Lt=new S;class qt{constructor(d,p,P){this.bodyNode=d,this._driver=p,this._normalizer=P,this._animations={},this._playersById={},this.players=[]}register(d,p){const P=[],U=Ht(this._driver,p,P);if(P.length)throw new Error(`Unable to build the animation due to the following errors: ${P.join("\n")}`);this._animations[d]=U}_buildPlayer(d,p,P){const U=d.element,de=C(0,this._normalizer,0,d.keyframes,p,P);return this._driver.animate(U,de,d.duration,d.delay,d.easing,[],!0)}create(d,p,P={}){const U=[],de=this._animations[d];let Ne;const He=new Map;if(de?(Ne=rn(this._driver,p,de,J,ae,{},{},P,Lt,U),Ne.forEach(xt=>{const Wt=A(He,xt.element,{});xt.postStyleProps.forEach(Yt=>Wt[Yt]=null)})):(U.push("The requested animation doesn't exist or has already been destroyed"),Ne=[]),U.length)throw new Error(`Unable to create the animation due to the following errors: ${U.join("\n")}`);He.forEach((xt,Wt)=>{Object.keys(xt).forEach(Yt=>{xt[Yt]=this._driver.computeStyle(Wt,Yt,m.l3)})});const mt=_(Ne.map(xt=>{const Wt=He.get(xt.element);return this._buildPlayer(xt,{},Wt)}));return this._playersById[d]=mt,mt.onDestroy(()=>this.destroy(d)),this.players.push(mt),mt}destroy(d){const p=this._getPlayer(d);p.destroy(),delete this._playersById[d];const P=this.players.indexOf(p);P>=0&&this.players.splice(P,1)}_getPlayer(d){const p=this._playersById[d];if(!p)throw new Error(`Unable to find the timeline player referenced by ${d}`);return p}listen(d,p,P,U){const de=h(p,"","","");return D(this._getPlayer(d),P,de,U),()=>{}}command(d,p,P,U){if("register"==P)return void this.register(d,U[0]);if("create"==P)return void this.create(d,p,U[0]||{});const de=this._getPlayer(d);switch(P){case"play":de.play();break;case"pause":de.pause();break;case"reset":de.reset();break;case"restart":de.restart();break;case"finish":de.finish();break;case"init":de.init();break;case"setPosition":de.setPosition(parseFloat(U[0]));break;case"destroy":this.destroy(d)}}}const vn="ng-animate-queued",On="ng-animate-disabled",Sn=[],kn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ai={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},xn="__ng_removed";class gn{constructor(d,p=""){this.namespaceId=p;const P=d&&d.hasOwnProperty("value");if(this.value=function hi(j){return null!=j?j:null}(P?d.value:d),P){const de=Tt(d);delete de.value,this.options=de}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(d){const p=d.params;if(p){const P=this.options.params;Object.keys(p).forEach(U=>{null==P[U]&&(P[U]=p[U])})}}}const ni="void",li=new gn(ni);class Kn{constructor(d,p,P){this.id=d,this.hostElement=p,this._engine=P,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+d,Zn(p,this._hostClassName)}listen(d,p,P,U){if(!this._triggers.hasOwnProperty(p))throw new Error(`Unable to listen on the animation trigger event "${P}" because the animation trigger "${p}" doesn't exist!`);if(null==P||0==P.length)throw new Error(`Unable to listen on the animation trigger "${p}" because the provided event is undefined!`);if(!function Sr(j){return"start"==j||"done"==j}(P))throw new Error(`The provided animation trigger event "${P}" for the animation trigger "${p}" is not supported!`);const de=A(this._elementListeners,d,[]),Ne={name:p,phase:P,callback:U};de.push(Ne);const He=A(this._engine.statesByElement,d,{});return He.hasOwnProperty(p)||(Zn(d,Ie),Zn(d,Ie+"-"+p),He[p]=li),()=>{this._engine.afterFlush(()=>{const ot=de.indexOf(Ne);ot>=0&&de.splice(ot,1),this._triggers[p]||delete He[p]})}}register(d,p){return!this._triggers[d]&&(this._triggers[d]=p,!0)}_getTrigger(d){const p=this._triggers[d];if(!p)throw new Error(`The provided animation trigger "${d}" has not been registered!`);return p}trigger(d,p,P,U=!0){const de=this._getTrigger(p),Ne=new Ci(this.id,p,d);let He=this._engine.statesByElement.get(d);He||(Zn(d,Ie),Zn(d,Ie+"-"+p),this._engine.statesByElement.set(d,He={}));let ot=He[p];const mt=new gn(P,this.id);if(!(P&&P.hasOwnProperty("value"))&&ot&&mt.absorbOptions(ot.options),He[p]=mt,ot||(ot=li),mt.value!==ni&&ot.value===mt.value){if(!function Ir(j,d){const p=Object.keys(j),P=Object.keys(d);if(p.length!=P.length)return!1;for(let U=0;U<p.length;U++){const de=p[U];if(!d.hasOwnProperty(de)||j[de]!==d[de])return!1}return!0}(ot.params,mt.params)){const en=[],pn=de.matchStyles(ot.value,ot.params,en),ee=de.matchStyles(mt.value,mt.params,en);en.length?this._engine.reportError(en):this._engine.afterFlush(()=>{Re(d,pn),we(d,ee)})}return}const Yt=A(this._engine.playersByElement,d,[]);Yt.forEach(en=>{en.namespaceId==this.id&&en.triggerName==p&&en.queued&&en.destroy()});let ln=de.matchTransition(ot.value,mt.value,d,mt.params),Jt=!1;if(!ln){if(!U)return;ln=de.fallbackTransition,Jt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:d,triggerName:p,transition:ln,fromState:ot,toState:mt,player:Ne,isFallbackTransition:Jt}),Jt||(Zn(d,vn),Ne.onStart(()=>{Ei(d,vn)})),Ne.onDone(()=>{let en=this.players.indexOf(Ne);en>=0&&this.players.splice(en,1);const pn=this._engine.playersByElement.get(d);if(pn){let ee=pn.indexOf(Ne);ee>=0&&pn.splice(ee,1)}}),this.players.push(Ne),Yt.push(Ne),Ne}deregister(d){delete this._triggers[d],this._engine.statesByElement.forEach((p,P)=>{delete p[d]}),this._elementListeners.forEach((p,P)=>{this._elementListeners.set(P,p.filter(U=>U.name!=d))})}clearElementCache(d){this._engine.statesByElement.delete(d),this._elementListeners.delete(d);const p=this._engine.playersByElement.get(d);p&&(p.forEach(P=>P.destroy()),this._engine.playersByElement.delete(d))}_signalRemovalForInnerTriggers(d,p){const P=this._engine.driver.query(d,ie,!0);P.forEach(U=>{if(U[xn])return;const de=this._engine.fetchNamespacesByElement(U);de.size?de.forEach(Ne=>Ne.triggerLeaveAnimation(U,p,!1,!0)):this.clearElementCache(U)}),this._engine.afterFlushAnimationsDone(()=>P.forEach(U=>this.clearElementCache(U)))}triggerLeaveAnimation(d,p,P,U){const de=this._engine.statesByElement.get(d),Ne=new Map;if(de){const He=[];if(Object.keys(de).forEach(ot=>{if(Ne.set(ot,de[ot].value),this._triggers[ot]){const mt=this.trigger(d,ot,ni,U);mt&&He.push(mt)}}),He.length)return this._engine.markElementAsRemoved(this.id,d,!0,p,Ne),P&&_(He).onDone(()=>this._engine.processLeaveNode(d)),!0}return!1}prepareLeaveAnimationListeners(d){const p=this._elementListeners.get(d),P=this._engine.statesByElement.get(d);if(p&&P){const U=new Set;p.forEach(de=>{const Ne=de.name;if(U.has(Ne))return;U.add(Ne);const ot=this._triggers[Ne].fallbackTransition,mt=P[Ne]||li,xt=new gn(ni),Wt=new Ci(this.id,Ne,d);this._engine.totalQueuedPlayers++,this._queue.push({element:d,triggerName:Ne,transition:ot,fromState:mt,toState:xt,player:Wt,isFallbackTransition:!0})})}}removeNode(d,p){const P=this._engine;if(d.childElementCount&&this._signalRemovalForInnerTriggers(d,p),this.triggerLeaveAnimation(d,p,!0))return;let U=!1;if(P.totalAnimations){const de=P.players.length?P.playersByQueriedElement.get(d):[];if(de&&de.length)U=!0;else{let Ne=d;for(;Ne=Ne.parentNode;)if(P.statesByElement.get(Ne)){U=!0;break}}}if(this.prepareLeaveAnimationListeners(d),U)P.markElementAsRemoved(this.id,d,!1,p);else{const de=d[xn];(!de||de===kn)&&(P.afterFlush(()=>this.clearElementCache(d)),P.destroyInnerAnimations(d),P._onRemovalComplete(d,p))}}insertNode(d,p){Zn(d,this._hostClassName)}drainQueuedTransitions(d){const p=[];return this._queue.forEach(P=>{const U=P.player;if(U.destroyed)return;const de=P.element,Ne=this._elementListeners.get(de);Ne&&Ne.forEach(He=>{if(He.name==P.triggerName){const ot=h(de,P.triggerName,P.fromState.value,P.toState.value);ot._data=d,D(P.player,He.phase,ot,He.callback)}}),U.markedForDestroy?this._engine.afterFlush(()=>{U.destroy()}):p.push(P)}),this._queue=[],p.sort((P,U)=>{const de=P.transition.ast.depCount,Ne=U.transition.ast.depCount;return 0==de||0==Ne?de-Ne:this._engine.driver.containsElement(P.element,U.element)?1:-1})}destroy(d){this.players.forEach(p=>p.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,d)}elementContainsData(d){let p=!1;return this._elementListeners.has(d)&&(p=!0),p=!!this._queue.find(P=>P.element===d)||p,p}}class Gn{constructor(d,p,P){this.bodyNode=d,this.driver=p,this._normalizer=P,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=(U,de)=>{}}_onRemovalComplete(d,p){this.onRemovalComplete(d,p)}get queuedPlayers(){const d=[];return this._namespaceList.forEach(p=>{p.players.forEach(P=>{P.queued&&d.push(P)})}),d}createNamespace(d,p){const P=new Kn(d,p,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,p)?this._balanceNamespaceList(P,p):(this.newHostElements.set(p,P),this.collectEnterElement(p)),this._namespaceLookup[d]=P}_balanceNamespaceList(d,p){const P=this._namespaceList.length-1;if(P>=0){let U=!1;for(let de=P;de>=0;de--)if(this.driver.containsElement(this._namespaceList[de].hostElement,p)){this._namespaceList.splice(de+1,0,d),U=!0;break}U||this._namespaceList.splice(0,0,d)}else this._namespaceList.push(d);return this.namespacesByHostElement.set(p,d),d}register(d,p){let P=this._namespaceLookup[d];return P||(P=this.createNamespace(d,p)),P}registerTrigger(d,p,P){let U=this._namespaceLookup[d];U&&U.register(p,P)&&this.totalAnimations++}destroy(d,p){if(!d)return;const P=this._fetchNamespace(d);this.afterFlush(()=>{this.namespacesByHostElement.delete(P.hostElement),delete this._namespaceLookup[d];const U=this._namespaceList.indexOf(P);U>=0&&this._namespaceList.splice(U,1)}),this.afterFlushAnimationsDone(()=>P.destroy(p))}_fetchNamespace(d){return this._namespaceLookup[d]}fetchNamespacesByElement(d){const p=new Set,P=this.statesByElement.get(d);if(P){const U=Object.keys(P);for(let de=0;de<U.length;de++){const Ne=P[U[de]].namespaceId;if(Ne){const He=this._fetchNamespace(Ne);He&&p.add(He)}}}return p}trigger(d,p,P,U){if(Wn(p)){const de=this._fetchNamespace(d);if(de)return de.trigger(p,P,U),!0}return!1}insertNode(d,p,P,U){if(!Wn(p))return;const de=p[xn];if(de&&de.setForRemoval){de.setForRemoval=!1,de.setForMove=!0;const Ne=this.collectedLeaveElements.indexOf(p);Ne>=0&&this.collectedLeaveElements.splice(Ne,1)}if(d){const Ne=this._fetchNamespace(d);Ne&&Ne.insertNode(p,P)}U&&this.collectEnterElement(p)}collectEnterElement(d){this.collectedEnterElements.push(d)}markElementAsDisabled(d,p){p?this.disabledNodes.has(d)||(this.disabledNodes.add(d),Zn(d,On)):this.disabledNodes.has(d)&&(this.disabledNodes.delete(d),Ei(d,On))}removeNode(d,p,P,U){if(Wn(p)){const de=d?this._fetchNamespace(d):null;if(de?de.removeNode(p,U):this.markElementAsRemoved(d,p,!1,U),P){const Ne=this.namespacesByHostElement.get(p);Ne&&Ne.id!==d&&Ne.removeNode(p,U)}}else this._onRemovalComplete(p,U)}markElementAsRemoved(d,p,P,U,de){this.collectedLeaveElements.push(p),p[xn]={namespaceId:d,setForRemoval:U,hasAnimation:P,removedBeforeQueried:!1,previousTriggersValues:de}}listen(d,p,P,U,de){return Wn(p)?this._fetchNamespace(d).listen(p,P,U,de):()=>{}}_buildInstruction(d,p,P,U,de){return d.transition.build(this.driver,d.element,d.fromState.value,d.toState.value,P,U,d.fromState.options,d.toState.options,p,de)}destroyInnerAnimations(d){let p=this.driver.query(d,ie,!0);p.forEach(P=>this.destroyActiveAnimationsForElement(P)),0!=this.playersByQueriedElement.size&&(p=this.driver.query(d,ge,!0),p.forEach(P=>this.finishActiveQueriedAnimationOnElement(P)))}destroyActiveAnimationsForElement(d){const p=this.playersByElement.get(d);p&&p.forEach(P=>{P.queued?P.markedForDestroy=!0:P.destroy()})}finishActiveQueriedAnimationOnElement(d){const p=this.playersByQueriedElement.get(d);p&&p.forEach(P=>P.finish())}whenRenderingDone(){return new Promise(d=>{if(this.players.length)return _(this.players).onDone(()=>d());d()})}processLeaveNode(d){var p;const P=d[xn];if(P&&P.setForRemoval){if(d[xn]=kn,P.namespaceId){this.destroyInnerAnimations(d);const U=this._fetchNamespace(P.namespaceId);U&&U.clearElementCache(d)}this._onRemovalComplete(d,P.setForRemoval)}(null===(p=d.classList)||void 0===p?void 0:p.contains(On))&&this.markElementAsDisabled(d,!1),this.driver.query(d,".ng-animate-disabled",!0).forEach(U=>{this.markElementAsDisabled(U,!1)})}flush(d=-1){let p=[];if(this.newHostElements.size&&(this.newHostElements.forEach((P,U)=>this._balanceNamespaceList(P,U)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let P=0;P<this.collectedEnterElements.length;P++)Zn(this.collectedEnterElements[P],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const P=[];try{p=this._flushAnimations(P,d)}finally{for(let U=0;U<P.length;U++)P[U]()}}else for(let P=0;P<this.collectedLeaveElements.length;P++)this.processLeaveNode(this.collectedLeaveElements[P]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(P=>P()),this._flushFns=[],this._whenQuietFns.length){const P=this._whenQuietFns;this._whenQuietFns=[],p.length?_(p).onDone(()=>{P.forEach(U=>U())}):P.forEach(U=>U())}}reportError(d){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${d.join("\n")}`)}_flushAnimations(d,p){const P=new S,U=[],de=new Map,Ne=[],He=new Map,ot=new Map,mt=new Map,xt=new Set;this.disabledNodes.forEach(Pt=>{xt.add(Pt);const Rt=this.driver.query(Pt,".ng-animate-queued",!0);for(let Xt=0;Xt<Rt.length;Xt++)xt.add(Rt[Xt])});const Wt=this.bodyNode,Yt=Array.from(this.statesByElement.keys()),ln=Qn(Yt,this.collectedEnterElements),Jt=new Map;let en=0;ln.forEach((Pt,Rt)=>{const Xt=J+en++;Jt.set(Rt,Xt),Pt.forEach(cn=>Zn(cn,Xt))});const pn=[],ee=new Set,W=new Set;for(let Pt=0;Pt<this.collectedLeaveElements.length;Pt++){const Rt=this.collectedLeaveElements[Pt],Xt=Rt[xn];Xt&&Xt.setForRemoval&&(pn.push(Rt),ee.add(Rt),Xt.hasAnimation?this.driver.query(Rt,".ng-star-inserted",!0).forEach(cn=>ee.add(cn)):W.add(Rt))}const Z=new Map,te=Qn(Yt,Array.from(ee));te.forEach((Pt,Rt)=>{const Xt=ae+en++;Z.set(Rt,Xt),Pt.forEach(cn=>Zn(cn,Xt))}),d.push(()=>{ln.forEach((Pt,Rt)=>{const Xt=Jt.get(Rt);Pt.forEach(cn=>Ei(cn,Xt))}),te.forEach((Pt,Rt)=>{const Xt=Z.get(Rt);Pt.forEach(cn=>Ei(cn,Xt))}),pn.forEach(Pt=>{this.processLeaveNode(Pt)})});const xe=[],Be=[];for(let Pt=this._namespaceList.length-1;Pt>=0;Pt--)this._namespaceList[Pt].drainQueuedTransitions(p).forEach(Xt=>{const cn=Xt.player,jn=Xt.element;if(xe.push(cn),this.collectedEnterElements.length){const ui=jn[xn];if(ui&&ui.setForMove){if(ui.previousTriggersValues&&ui.previousTriggersValues.has(Xt.triggerName)){const Ji=ui.previousTriggersValues.get(Xt.triggerName),Li=this.statesByElement.get(Xt.element);Li&&Li[Xt.triggerName]&&(Li[Xt.triggerName].value=Ji)}return void cn.destroy()}}const An=!Wt||!this.driver.containsElement(Wt,jn),_i=Z.get(jn),lr=Jt.get(jn),Vn=this._buildInstruction(Xt,P,lr,_i,An);if(Vn.errors&&Vn.errors.length)return void Be.push(Vn);if(An)return cn.onStart(()=>Re(jn,Vn.fromStyles)),cn.onDestroy(()=>we(jn,Vn.toStyles)),void U.push(cn);if(Xt.isFallbackTransition)return cn.onStart(()=>Re(jn,Vn.fromStyles)),cn.onDestroy(()=>we(jn,Vn.toStyles)),void U.push(cn);const Ts=[];Vn.timelines.forEach(ui=>{ui.stretchStartingKeyframe=!0,this.disabledNodes.has(ui.element)||Ts.push(ui)}),Vn.timelines=Ts,P.append(jn,Vn.timelines),Ne.push({instruction:Vn,player:cn,element:jn}),Vn.queriedElements.forEach(ui=>A(He,ui,[]).push(cn)),Vn.preStyleProps.forEach((ui,Ji)=>{const Li=Object.keys(ui);if(Li.length){let Xi=ot.get(Ji);Xi||ot.set(Ji,Xi=new Set),Li.forEach(Ur=>Xi.add(Ur))}}),Vn.postStyleProps.forEach((ui,Ji)=>{const Li=Object.keys(ui);let Xi=mt.get(Ji);Xi||mt.set(Ji,Xi=new Set),Li.forEach(Ur=>Xi.add(Ur))})});if(Be.length){const Pt=[];Be.forEach(Rt=>{Pt.push(`@${Rt.triggerName} has failed due to:\n`),Rt.errors.forEach(Xt=>Pt.push(`- ${Xt}\n`))}),xe.forEach(Rt=>Rt.destroy()),this.reportError(Pt)}const et=new Map,vt=new Map;Ne.forEach(Pt=>{const Rt=Pt.element;P.has(Rt)&&(vt.set(Rt,Rt),this._beforeAnimationBuild(Pt.player.namespaceId,Pt.instruction,et))}),U.forEach(Pt=>{const Rt=Pt.element;this._getPreviousPlayers(Rt,!1,Pt.namespaceId,Pt.triggerName,null).forEach(cn=>{A(et,Rt,[]).push(cn),cn.destroy()})});const _t=pn.filter(Pt=>Si(Pt,ot,mt)),Ut=new Map;mr(Ut,this.driver,W,mt,m.l3).forEach(Pt=>{Si(Pt,ot,mt)&&_t.push(Pt)});const yn=new Map;ln.forEach((Pt,Rt)=>{mr(yn,this.driver,new Set(Pt),ot,m.k1)}),_t.forEach(Pt=>{const Rt=Ut.get(Pt),Xt=yn.get(Pt);Ut.set(Pt,Object.assign(Object.assign({},Rt),Xt))});const un=[],wn=[],_n={};Ne.forEach(Pt=>{const{element:Rt,player:Xt,instruction:cn}=Pt;if(P.has(Rt)){if(xt.has(Rt))return Xt.onDestroy(()=>we(Rt,cn.toStyles)),Xt.disabled=!0,Xt.overrideTotalTime(cn.totalTime),void U.push(Xt);let jn=_n;if(vt.size>1){let _i=Rt;const lr=[];for(;_i=_i.parentNode;){const Vn=vt.get(_i);if(Vn){jn=Vn;break}lr.push(_i)}lr.forEach(Vn=>vt.set(Vn,jn))}const An=this._buildAnimation(Xt.namespaceId,cn,et,de,yn,Ut);if(Xt.setRealPlayer(An),jn===_n)un.push(Xt);else{const _i=this.playersByElement.get(jn);_i&&_i.length&&(Xt.parentPlayer=_(_i)),U.push(Xt)}}else Re(Rt,cn.fromStyles),Xt.onDestroy(()=>we(Rt,cn.toStyles)),wn.push(Xt),xt.has(Rt)&&U.push(Xt)}),wn.forEach(Pt=>{const Rt=de.get(Pt.element);if(Rt&&Rt.length){const Xt=_(Rt);Pt.setRealPlayer(Xt)}}),U.forEach(Pt=>{Pt.parentPlayer?Pt.syncPlayerEvents(Pt.parentPlayer):Pt.destroy()});for(let Pt=0;Pt<pn.length;Pt++){const Rt=pn[Pt],Xt=Rt[xn];if(Ei(Rt,ae),Xt&&Xt.hasAnimation)continue;let cn=[];if(He.size){let An=He.get(Rt);An&&An.length&&cn.push(...An);let _i=this.driver.query(Rt,ge,!0);for(let lr=0;lr<_i.length;lr++){let Vn=He.get(_i[lr]);Vn&&Vn.length&&cn.push(...Vn)}}const jn=cn.filter(An=>!An.destroyed);jn.length?Ui(this,Rt,jn):this.processLeaveNode(Rt)}return pn.length=0,un.forEach(Pt=>{this.players.push(Pt),Pt.onDone(()=>{Pt.destroy();const Rt=this.players.indexOf(Pt);this.players.splice(Rt,1)}),Pt.play()}),un}elementContainsData(d,p){let P=!1;const U=p[xn];return U&&U.setForRemoval&&(P=!0),this.playersByElement.has(p)&&(P=!0),this.playersByQueriedElement.has(p)&&(P=!0),this.statesByElement.has(p)&&(P=!0),this._fetchNamespace(d).elementContainsData(p)||P}afterFlush(d){this._flushFns.push(d)}afterFlushAnimationsDone(d){this._whenQuietFns.push(d)}_getPreviousPlayers(d,p,P,U,de){let Ne=[];if(p){const He=this.playersByQueriedElement.get(d);He&&(Ne=He)}else{const He=this.playersByElement.get(d);if(He){const ot=!de||de==ni;He.forEach(mt=>{mt.queued||!ot&&mt.triggerName!=U||Ne.push(mt)})}}return(P||U)&&(Ne=Ne.filter(He=>!(P&&P!=He.namespaceId||U&&U!=He.triggerName))),Ne}_beforeAnimationBuild(d,p,P){const de=p.element,Ne=p.isRemovalTransition?void 0:d,He=p.isRemovalTransition?void 0:p.triggerName;for(const ot of p.timelines){const mt=ot.element,xt=mt!==de,Wt=A(P,mt,[]);this._getPreviousPlayers(mt,xt,Ne,He,p.toState).forEach(ln=>{const Jt=ln.getRealPlayer();Jt.beforeDestroy&&Jt.beforeDestroy(),ln.destroy(),Wt.push(ln)})}Re(de,p.fromStyles)}_buildAnimation(d,p,P,U,de,Ne){const He=p.triggerName,ot=p.element,mt=[],xt=new Set,Wt=new Set,Yt=p.timelines.map(Jt=>{const en=Jt.element;xt.add(en);const pn=en[xn];if(pn&&pn.removedBeforeQueried)return new m.ZN(Jt.duration,Jt.delay);const ee=en!==ot,W=function Lr(j){const d=[];return Wi(j,d),d}((P.get(en)||Sn).map(et=>et.getRealPlayer())).filter(et=>!!et.element&&et.element===en),Z=de.get(en),te=Ne.get(en),xe=C(0,this._normalizer,0,Jt.keyframes,Z,te),Be=this._buildPlayer(Jt,xe,W);if(Jt.subTimeline&&U&&Wt.add(en),ee){const et=new Ci(d,He,en);et.setRealPlayer(Be),mt.push(et)}return Be});mt.forEach(Jt=>{A(this.playersByQueriedElement,Jt.element,[]).push(Jt),Jt.onDone(()=>function Mi(j,d,p){let P;if(j instanceof Map){if(P=j.get(d),P){if(P.length){const U=P.indexOf(p);P.splice(U,1)}0==P.length&&j.delete(d)}}else if(P=j[d],P){if(P.length){const U=P.indexOf(p);P.splice(U,1)}0==P.length&&delete j[d]}return P}(this.playersByQueriedElement,Jt.element,Jt))}),xt.forEach(Jt=>Zn(Jt,Ke));const ln=_(Yt);return ln.onDestroy(()=>{xt.forEach(Jt=>Ei(Jt,Ke)),we(ot,p.toStyles)}),Wt.forEach(Jt=>{A(U,Jt,[]).push(ln)}),ln}_buildPlayer(d,p,P){return p.length>0?this.driver.animate(d.element,p,d.duration,d.delay,d.easing,P):new m.ZN(d.duration,d.delay)}}class Ci{constructor(d,p,P){this.namespaceId=d,this.triggerName=p,this.element=P,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(d){this._containsRealPlayer||(this._player=d,Object.keys(this._queuedCallbacks).forEach(p=>{this._queuedCallbacks[p].forEach(P=>D(d,p,void 0,P))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(d.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(d){this.totalTime=d}syncPlayerEvents(d){const p=this._player;p.triggerCallback&&d.onStart(()=>p.triggerCallback("start")),d.onDone(()=>this.finish()),d.onDestroy(()=>this.destroy())}_queueEvent(d,p){A(this._queuedCallbacks,d,[]).push(p)}onDone(d){this.queued&&this._queueEvent("done",d),this._player.onDone(d)}onStart(d){this.queued&&this._queueEvent("start",d),this._player.onStart(d)}onDestroy(d){this.queued&&this._queueEvent("destroy",d),this._player.onDestroy(d)}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(d){this.queued||this._player.setPosition(d)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(d){const p=this._player;p.triggerCallback&&p.triggerCallback(d)}}function Wn(j){return j&&1===j.nodeType}function nr(j,d){const p=j.style.display;return j.style.display=null!=d?d:"none",p}function mr(j,d,p,P,U){const de=[];p.forEach(ot=>de.push(nr(ot)));const Ne=[];P.forEach((ot,mt)=>{const xt={};ot.forEach(Wt=>{const Yt=xt[Wt]=d.computeStyle(mt,Wt,U);(!Yt||0==Yt.length)&&(mt[xn]=ai,Ne.push(mt))}),j.set(mt,xt)});let He=0;return p.forEach(ot=>nr(ot,de[He++])),Ne}function Qn(j,d){const p=new Map;if(j.forEach(He=>p.set(He,[])),0==d.length)return p;const U=new Set(d),de=new Map;function Ne(He){if(!He)return 1;let ot=de.get(He);if(ot)return ot;const mt=He.parentNode;return ot=p.has(mt)?mt:U.has(mt)?1:Ne(mt),de.set(He,ot),ot}return d.forEach(He=>{const ot=Ne(He);1!==ot&&p.get(ot).push(He)}),p}function Zn(j,d){var p;null===(p=j.classList)||void 0===p||p.add(d)}function Ei(j,d){var p;null===(p=j.classList)||void 0===p||p.remove(d)}function Ui(j,d,p){_(p).onDone(()=>j.processLeaveNode(d))}function Wi(j,d){for(let p=0;p<j.length;p++){const P=j[p];P instanceof m.ZE?Wi(P.players,d):d.push(P)}}function Si(j,d,p){const P=p.get(j);if(!P)return!1;let U=d.get(j);return U?P.forEach(de=>U.add(de)):d.set(j,P),p.delete(j),!0}class zi{constructor(d,p,P){this.bodyNode=d,this._driver=p,this._normalizer=P,this._triggerCache={},this.onRemovalComplete=(U,de)=>{},this._transitionEngine=new Gn(d,p,P),this._timelineEngine=new qt(d,p,P),this._transitionEngine.onRemovalComplete=(U,de)=>this.onRemovalComplete(U,de)}registerTrigger(d,p,P,U,de){const Ne=d+"-"+U;let He=this._triggerCache[Ne];if(!He){const ot=[],mt=Ht(this._driver,de,ot);if(ot.length)throw new Error(`The animation trigger "${U}" has failed to build due to the following errors:\n - ${ot.join("\n - ")}`);He=function Ae(j,d,p){return new qe(j,d,p)}(U,mt,this._normalizer),this._triggerCache[Ne]=He}this._transitionEngine.registerTrigger(p,U,He)}register(d,p){this._transitionEngine.register(d,p)}destroy(d,p){this._transitionEngine.destroy(d,p)}onInsert(d,p,P,U){this._transitionEngine.insertNode(d,p,P,U)}onRemove(d,p,P,U){this._transitionEngine.removeNode(d,p,U||!1,P)}disableAnimations(d,p){this._transitionEngine.markElementAsDisabled(d,p)}process(d,p,P,U){if("@"==P.charAt(0)){const[de,Ne]=T(P);this._timelineEngine.command(de,p,Ne,U)}else this._transitionEngine.trigger(d,p,P,U)}listen(d,p,P,U,de){if("@"==P.charAt(0)){const[Ne,He]=T(P);return this._timelineEngine.listen(Ne,p,He,de)}return this._transitionEngine.listen(d,p,P,U,de)}flush(d=-1){this._transitionEngine.flush(d)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ci(j,d){let p=null,P=null;return Array.isArray(d)&&d.length?(p=Di(d[0]),d.length>1&&(P=Di(d[d.length-1]))):d&&(p=Di(d)),p||P?new gr(j,p,P):null}let gr=(()=>{class j{constructor(p,P,U){this._element=p,this._startStyles=P,this._endStyles=U,this._state=0;let de=j.initialStylesByElement.get(p);de||j.initialStylesByElement.set(p,de={}),this._initialStyles=de}start(){this._state<1&&(this._startStyles&&we(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(we(this._element,this._initialStyles),this._endStyles&&(we(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(j.initialStylesByElement.delete(this._element),this._startStyles&&(Re(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Re(this._element,this._endStyles),this._endStyles=null),we(this._element,this._initialStyles),this._state=3)}}return j.initialStylesByElement=new WeakMap,j})();function Di(j){let d=null;const p=Object.keys(j);for(let P=0;P<p.length;P++){const U=p[P];Pr(U)&&(d=d||{},d[U]=j[U])}return d}function Pr(j){return"display"===j||"position"===j}const Ki="animation",Ii="animationend";class Or{constructor(d,p,P,U,de,Ne,He){this._element=d,this._name=p,this._duration=P,this._delay=U,this._easing=de,this._fillMode=Ne,this._onDoneFn=He,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=ot=>this._handleCallback(ot)}apply(){(function _r(j,d){const p=ir(j,"").trim();let P=0;p.length&&(P=function rr(j,d){let p=0;for(let P=0;P<j.length;P++)j.charAt(P)===d&&p++;return p}(p,",")+1,d=`${p}, ${d}`),mi(j,"",d)})(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Qi(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Pi(this._element,this._name,"paused")}resume(){Pi(this._element,this._name,"running")}setPosition(d){const p=Ai(this._element,this._name);this._position=d*this._duration,mi(this._element,"Delay",`-${this._position}ms`,p)}getPosition(){return this._position}_handleCallback(d){const p=d._ngTestManualTimestamp||Date.now(),P=1e3*parseFloat(d.elapsedTime.toFixed(3));d.animationName==this._name&&Math.max(p-this._startTime,0)>=this._delay&&P>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Qi(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function fi(j,d){const P=ir(j,"").split(","),U=pi(P,d);U>=0&&(P.splice(U,1),mi(j,"",P.join(",")))}(this._element,this._name))}}function Pi(j,d,p){mi(j,"PlayState",p,Ai(j,d))}function Ai(j,d){const p=ir(j,"");return p.indexOf(",")>0?pi(p.split(","),d):pi([p],d)}function pi(j,d){for(let p=0;p<j.length;p++)if(j[p].indexOf(d)>=0)return p;return-1}function Qi(j,d,p){p?j.removeEventListener(Ii,d):j.addEventListener(Ii,d)}function mi(j,d,p,P){const U=Ki+d;if(null!=P){const de=j.style[U];if(de.length){const Ne=de.split(",");Ne[P]=p,p=Ne.join(",")}}j.style[U]=p}function ir(j,d){return j.style[Ki+d]||""}class xi{constructor(d,p,P,U,de,Ne,He,ot){this.element=d,this.keyframes=p,this.animationName=P,this._duration=U,this._delay=de,this._finalStyles=He,this._specialStyles=ot,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=Ne||"linear",this.totalTime=U+de,this._buildStyler()}onStart(d){this._onStartFns.push(d)}onDone(d){this._onDoneFns.push(d)}onDestroy(d){this._onDestroyFns.push(d)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(d=>d()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(d=>d()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(d=>d()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(d){this._styler.setPosition(d)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Or(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(d){const p="start"==d?this._onStartFns:this._onDoneFns;p.forEach(P=>P()),p.length=0}beforeDestroy(){this.init();const d={};if(this.hasStarted()){const p=this._state>=3;Object.keys(this._finalStyles).forEach(P=>{"offset"!=P&&(d[P]=p?this._finalStyles[P]:be(this.element,P))})}this.currentSnapshot=d}}class Zi extends m.ZN{constructor(d,p){super(),this.element=d,this._startingStyles={},this.__initialized=!1,this._styles=De(p)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(d=>{this._startingStyles[d]=this.element.style[d]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(d=>this.element.style.setProperty(d,this._styles[d])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(d=>{const p=this._startingStyles[d];p?this.element.style.setProperty(d,p):this.element.style.removeProperty(d)}),this._startingStyles=null,super.destroy())}}class or{constructor(){this._count=0}validateStyleProperty(d){return Me(d)}matchesElement(d,p){return!1}containsElement(d,p){return ye(d,p)}query(d,p,P){return se(d,p,P)}computeStyle(d,p,P){return window.getComputedStyle(d)[p]}buildKeyframeElement(d,p,P){P=P.map(He=>De(He));let U=`@keyframes ${p} {\n`,de="";P.forEach(He=>{de=" ";const ot=parseFloat(He.offset);U+=`${de}${100*ot}% {\n`,de+=" ",Object.keys(He).forEach(mt=>{const xt=He[mt];switch(mt){case"offset":return;case"easing":return void(xt&&(U+=`${de}animation-timing-function: ${xt};\n`));default:return void(U+=`${de}${mt}: ${xt};\n`)}}),U+=`${de}}\n`}),U+="}\n";const Ne=document.createElement("style");return Ne.textContent=U,Ne}animate(d,p,P,U,de,Ne=[],He){const ot=Ne.filter(pn=>pn instanceof xi),mt={};Oe(P,U)&&ot.forEach(pn=>{let ee=pn.currentSnapshot;Object.keys(ee).forEach(W=>mt[W]=ee[W])});const xt=function Yi(j){let d={};return j&&(Array.isArray(j)?j:[j]).forEach(P=>{Object.keys(P).forEach(U=>{"offset"==U||"easing"==U||(d[U]=P[U])})}),d}(p=ue(d,p,mt));if(0==P)return new Zi(d,xt);const Wt="gen_css_kf_"+this._count++,Yt=this.buildKeyframeElement(d,Wt,p);(function Fi(j){var d;const p=null===(d=j.getRootNode)||void 0===d?void 0:d.call(j);return"undefined"!=typeof ShadowRoot&&p instanceof ShadowRoot?p:document.head})(d).appendChild(Yt);const Jt=ci(d,p),en=new xi(d,p,Wt,P,U,de,xt,Jt);return en.onDestroy(()=>function ki(j){j.parentNode.removeChild(j)}(Yt)),en}}class sr{constructor(d,p,P,U){this.element=d,this.keyframes=p,this.options=P,this._specialStyles=U,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=P.duration,this._delay=P.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(d=>d()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const d=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,d,this.options),this._finalKeyframe=d.length?d[d.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(d,p,P){return d.animate(p,P)}onStart(d){this._onStartFns.push(d)}onDone(d){this._onDoneFns.push(d)}onDestroy(d){this._onDestroyFns.push(d)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(d=>d()),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(d=>d()),this._onDestroyFns=[])}setPosition(d){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=d*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const d={};if(this.hasStarted()){const p=this._finalKeyframe;Object.keys(p).forEach(P=>{"offset"!=P&&(d[P]=this._finished?p[P]:be(this.element,P))})}this.currentSnapshot=d}triggerCallback(d){const p="start"==d?this._onStartFns:this._onDoneFns;p.forEach(P=>P()),p.length=0}}class ar{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(R().toString()),this._cssKeyframesDriver=new or}validateStyleProperty(d){return Me(d)}matchesElement(d,p){return!1}containsElement(d,p){return ye(d,p)}query(d,p,P){return se(d,p,P)}computeStyle(d,p,P){return window.getComputedStyle(d)[p]}overrideWebAnimationsSupport(d){this._isNativeImpl=d}animate(d,p,P,U,de,Ne=[],He){if(!He&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(d,p,P,U,de,Ne);const xt={duration:P,delay:U,fill:0==U?"both":"forwards"};de&&(xt.easing=de);const Wt={},Yt=Ne.filter(Jt=>Jt instanceof sr);Oe(P,U)&&Yt.forEach(Jt=>{let en=Jt.currentSnapshot;Object.keys(en).forEach(pn=>Wt[pn]=en[pn])});const ln=ci(d,p=ue(d,p=p.map(Jt=>Je(Jt,!1)),Wt));return new sr(d,p,xt,ln)}}function R(){return c()&&Element.prototype.animate||{}}var Q=l(9808);let F=(()=>{class j extends m._j{constructor(p,P){super(),this._nextAnimationId=0,this._renderer=p.createRenderer(P.body,{id:"0",encapsulation:i.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(p){const P=this._nextAnimationId.toString();this._nextAnimationId++;const U=Array.isArray(p)?(0,m.vP)(p):p;return ut(this._renderer,null,P,"register",[U]),new ne(P,this._renderer)}}return j.\u0275fac=function(p){return new(p||j)(i.\u0275\u0275inject(i.RendererFactory2),i.\u0275\u0275inject(Q.DOCUMENT))},j.\u0275prov=i.\u0275\u0275defineInjectable({token:j,factory:j.\u0275fac}),j})();class ne extends m.LC{constructor(d,p){super(),this._id=d,this._renderer=p}create(d,p){return new ze(this._id,d,p||{},this._renderer)}}class ze{constructor(d,p,P,U){this.id=d,this.element=p,this._renderer=U,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",P)}_listen(d,p){return this._renderer.listen(this.element,`@@${this.id}:${d}`,p)}_command(d,...p){return ut(this._renderer,this.element,this.id,d,p)}onDone(d){this._listen("done",d)}onStart(d){this._listen("start",d)}onDestroy(d){this._listen("destroy",d)}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(d){this._command("setPosition",d)}getPosition(){var d,p;return null!==(p=null===(d=this._renderer.engine.players[+this.id])||void 0===d?void 0:d.getPosition())&&void 0!==p?p:0}}function ut(j,d,p,P,U){return j.setProperty(d,`@@${p}:${P}`,U)}const Ft="@.disabled";let Tn=(()=>{class j{constructor(p,P,U){this.delegate=p,this.engine=P,this._zone=U,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),P.onRemovalComplete=(de,Ne)=>{const He=null==Ne?void 0:Ne.parentNode(de);He&&Ne.removeChild(He,de)}}createRenderer(p,P){const de=this.delegate.createRenderer(p,P);if(!(p&&P&&P.data&&P.data.animation)){let xt=this._rendererCache.get(de);return xt||(xt=new Mn("",de,this.engine),this._rendererCache.set(de,xt)),xt}const Ne=P.id,He=P.id+"-"+this._currentId;this._currentId++,this.engine.register(He,p);const ot=xt=>{Array.isArray(xt)?xt.forEach(ot):this.engine.registerTrigger(Ne,He,p,xt.name,xt)};return P.data.animation.forEach(ot),new In(this,He,de,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(p,P,U){p>=0&&p<this._microtaskId?this._zone.run(()=>P(U)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(de=>{const[Ne,He]=de;Ne(He)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([P,U]))}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 j.\u0275fac=function(p){return new(p||j)(i.\u0275\u0275inject(i.RendererFactory2),i.\u0275\u0275inject(zi),i.\u0275\u0275inject(i.NgZone))},j.\u0275prov=i.\u0275\u0275defineInjectable({token:j,factory:j.\u0275fac}),j})();class Mn{constructor(d,p,P){this.namespaceId=d,this.delegate=p,this.engine=P,this.destroyNode=this.delegate.destroyNode?U=>p.destroyNode(U):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(d,p){return this.delegate.createElement(d,p)}createComment(d){return this.delegate.createComment(d)}createText(d){return this.delegate.createText(d)}appendChild(d,p){this.delegate.appendChild(d,p),this.engine.onInsert(this.namespaceId,p,d,!1)}insertBefore(d,p,P,U=!0){this.delegate.insertBefore(d,p,P),this.engine.onInsert(this.namespaceId,p,d,U)}removeChild(d,p,P){this.engine.onRemove(this.namespaceId,p,this.delegate,P)}selectRootElement(d,p){return this.delegate.selectRootElement(d,p)}parentNode(d){return this.delegate.parentNode(d)}nextSibling(d){return this.delegate.nextSibling(d)}setAttribute(d,p,P,U){this.delegate.setAttribute(d,p,P,U)}removeAttribute(d,p,P){this.delegate.removeAttribute(d,p,P)}addClass(d,p){this.delegate.addClass(d,p)}removeClass(d,p){this.delegate.removeClass(d,p)}setStyle(d,p,P,U){this.delegate.setStyle(d,p,P,U)}removeStyle(d,p,P){this.delegate.removeStyle(d,p,P)}setProperty(d,p,P){"@"==p.charAt(0)&&p==Ft?this.disableAnimations(d,!!P):this.delegate.setProperty(d,p,P)}setValue(d,p){this.delegate.setValue(d,p)}listen(d,p,P){return this.delegate.listen(d,p,P)}disableAnimations(d,p){this.engine.disableAnimations(d,p)}}class In extends Mn{constructor(d,p,P,U){super(p,P,U),this.factory=d,this.namespaceId=p}setProperty(d,p,P){"@"==p.charAt(0)?"."==p.charAt(1)&&p==Ft?this.disableAnimations(d,P=void 0===P||!!P):this.engine.process(this.namespaceId,d,p.substr(1),P):this.delegate.setProperty(d,p,P)}listen(d,p,P){if("@"==p.charAt(0)){const U=function fn(j){switch(j){case"body":return document.body;case"document":return document;case"window":return window;default:return j}}(d);let de=p.substr(1),Ne="";return"@"!=de.charAt(0)&&([de,Ne]=function k(j){const d=j.indexOf(".");return[j.substring(0,d),j.substr(d+1)]}(de)),this.engine.listen(this.namespaceId,U,de,Ne,He=>{this.factory.scheduleListenerCallback(He._data||-1,P,He)})}return this.delegate.listen(d,p,P)}}let O=(()=>{class j extends zi{constructor(p,P,U){super(p.body,P,U)}ngOnDestroy(){this.flush()}}return j.\u0275fac=function(p){return new(p||j)(i.\u0275\u0275inject(Q.DOCUMENT),i.\u0275\u0275inject(Xe),i.\u0275\u0275inject(Dn))},j.\u0275prov=i.\u0275\u0275defineInjectable({token:j,factory:j.\u0275fac}),j})();const Vt=new i.InjectionToken("AnimationModuleType"),Pn=[{provide:m._j,useClass:F},{provide:Dn,useFactory:function X(){return new di}},{provide:zi,useClass:O},{provide:i.RendererFactory2,useFactory:function lt(j,d,p){return new Tn(j,d,p)},deps:[u.\u0275DomRendererFactory2,zi,i.NgZone]}],qn=[{provide:Xe,useFactory:function E(){return function Ln(){return"function"==typeof R()}()?new ar:new or}},{provide:Vt,useValue:"BrowserAnimations"},...Pn],gi=[{provide:Xe,useClass:ke},{provide:Vt,useValue:"NoopAnimations"},...Pn];let Ni=(()=>{class j{static withConfig(p){return{ngModule:j,providers:p.disableAnimations?gi:qn}}}return j.\u0275fac=function(p){return new(p||j)},j.\u0275mod=i.\u0275\u0275defineNgModule({type:j}),j.\u0275inj=i.\u0275\u0275defineInjector({providers:qn,imports:[u.BrowserModule]}),j})(),Mt=(()=>{class j{}return j.\u0275fac=function(p){return new(p||j)},j.\u0275mod=i.\u0275\u0275defineNgModule({type:j}),j.\u0275inj=i.\u0275\u0275defineInjector({providers:gi,imports:[u.BrowserModule]}),j})()},2313:(Le,g,l)=>{"use strict";l.r(g),l.d(g,{\u0275getDOM:()=>i.\u0275getDOM,BrowserModule:()=>dt,BrowserTransferStateModule:()=>Zt,By:()=>an,DomSanitizer:()=>rt,EVENT_MANAGER_PLUGINS:()=>x,EventManager:()=>V,HAMMER_GESTURE_CONFIG:()=>L,HAMMER_LOADER:()=>v,HammerGestureConfig:()=>S,HammerModule:()=>G,Meta:()=>N,Title:()=>ue,TransferState:()=>St,VERSION:()=>rn,disableDebugTools:()=>Ht,enableDebugTools:()=>nn,makeStateKey:()=>zt,platformBrowser:()=>Ct,\u0275BrowserDomAdapter:()=>c,\u0275BrowserGetTestability:()=>T,\u0275DomEventsPlugin:()=>$e,\u0275DomRendererFactory2:()=>Ie,\u0275DomSanitizerImpl:()=>Kt,\u0275DomSharedStylesHost:()=>le,\u0275HammerGesturesPlugin:()=>M,\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS:()=>yt,\u0275KeyEventsPlugin:()=>me,\u0275NAMESPACE_URIS:()=>pe,\u0275SharedStylesHost:()=>$,\u0275TRANSITION_ID:()=>I,\u0275escapeHtml:()=>En,\u0275flattenStyles:()=>Pe,\u0275initDomAdapter:()=>Re,\u0275shimContentAttribute:()=>st,\u0275shimHostAttribute:()=>q});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(Ue,he,Ve){return Ue.addEventListener(he,Ve,!1),()=>{Ue.removeEventListener(he,Ve,!1)}}dispatchEvent(Ue,he){Ue.dispatchEvent(he)}remove(Ue){Ue.parentNode&&Ue.parentNode.removeChild(Ue)}createElement(Ue,he){return(he=he||this.getDefaultDocument()).createElement(Ue)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ue){return Ue.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ue){return Ue instanceof DocumentFragment}getGlobalEventTarget(Ue,he){return"window"===he?window:"document"===he?Ue:"body"===he?Ue.body:null}getBaseHref(Ue){const he=function _(){return s=s||document.querySelector("base"),s?s.getAttribute("href"):null}();return null==he?null:function D(je){C=C||document.createElement("a"),C.setAttribute("href",je);const Ue=C.pathname;return"/"===Ue.charAt(0)?Ue:`/${Ue}`}(he)}resetBaseElement(){s=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ue){return(0,i.\u0275parseCookieValue)(document.cookie,Ue)}}let C,s=null;const I=new u.InjectionToken("TRANSITION_ID"),A=[{provide:u.APP_INITIALIZER,useFactory:function h(je,Ue,he){return()=>{he.get(u.ApplicationInitStatus).donePromise.then(()=>{const Ve=(0,i.\u0275getDOM)(),ht=Ue.querySelectorAll(`style[ng-transition="${je}"]`);for(let Bt=0;Bt<ht.length;Bt++)Ve.remove(ht[Bt])})}},deps:[I,i.DOCUMENT,u.Injector],multi:!0}];class T{static init(){(0,u.setTestabilityGetter)(new T)}addToWindow(Ue){u.\u0275global.getAngularTestability=(Ve,ht=!0)=>{const Bt=Ue.findTestabilityInTree(Ve,ht);if(null==Bt)throw new Error("Could not find testability for element.");return Bt},u.\u0275global.getAllAngularTestabilities=()=>Ue.getAllTestabilities(),u.\u0275global.getAllAngularRootElements=()=>Ue.getAllRootElements(),u.\u0275global.frameworkStabilizers||(u.\u0275global.frameworkStabilizers=[]),u.\u0275global.frameworkStabilizers.push(Ve=>{const ht=u.\u0275global.getAllAngularTestabilities();let Bt=ht.length,Nt=!1;const dn=function(Dn){Nt=Nt||Dn,Bt--,0==Bt&&Ve(Nt)};ht.forEach(function(Dn){Dn.whenStable(dn)})})}findTestabilityInTree(Ue,he,Ve){if(null==he)return null;const ht=Ue.getTestability(he);return null!=ht?ht:Ve?(0,i.\u0275getDOM)().isShadowRoot(he)?this.findTestabilityInTree(Ue,he.host,!0):this.findTestabilityInTree(Ue,he.parentElement,!0):null}}let b=(()=>{class je{build(){return new XMLHttpRequest}}return je.\u0275fac=function(he){return new(he||je)},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:je.\u0275fac}),je})();const x=new u.InjectionToken("EventManagerPlugins");let V=(()=>{class je{constructor(he,Ve){this._zone=Ve,this._eventNameToPlugin=new Map,he.forEach(ht=>ht.manager=this),this._plugins=he.slice().reverse()}addEventListener(he,Ve,ht){return this._findPluginFor(Ve).addEventListener(he,Ve,ht)}addGlobalEventListener(he,Ve,ht){return this._findPluginFor(Ve).addGlobalEventListener(he,Ve,ht)}getZone(){return this._zone}_findPluginFor(he){const Ve=this._eventNameToPlugin.get(he);if(Ve)return Ve;const ht=this._plugins;for(let Bt=0;Bt<ht.length;Bt++){const Nt=ht[Bt];if(Nt.supports(he))return this._eventNameToPlugin.set(he,Nt),Nt}throw new Error(`No event manager plugin found for event ${he}`)}}return je.\u0275fac=function(he){return new(he||je)(u.\u0275\u0275inject(x),u.\u0275\u0275inject(u.NgZone))},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:je.\u0275fac}),je})();class fe{constructor(Ue){this._doc=Ue}addGlobalEventListener(Ue,he,Ve){const ht=(0,i.\u0275getDOM)().getGlobalEventTarget(this._doc,Ue);if(!ht)throw new Error(`Unsupported event target ${ht} for event ${he}`);return this.addEventListener(ht,he,Ve)}}let $=(()=>{class je{constructor(){this._stylesSet=new Set}addStyles(he){const Ve=new Set;he.forEach(ht=>{this._stylesSet.has(ht)||(this._stylesSet.add(ht),Ve.add(ht))}),this.onStylesAdded(Ve)}onStylesAdded(he){}getAllStyles(){return Array.from(this._stylesSet)}}return je.\u0275fac=function(he){return new(he||je)},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:je.\u0275fac}),je})(),le=(()=>{class je extends ${constructor(he){super(),this._doc=he,this._hostNodes=new Map,this._hostNodes.set(he.head,[])}_addStylesToHost(he,Ve,ht){he.forEach(Bt=>{const Nt=this._doc.createElement("style");Nt.textContent=Bt,ht.push(Ve.appendChild(Nt))})}addHost(he){const Ve=[];this._addStylesToHost(this._stylesSet,he,Ve),this._hostNodes.set(he,Ve)}removeHost(he){const Ve=this._hostNodes.get(he);Ve&&Ve.forEach(Me),this._hostNodes.delete(he)}onStylesAdded(he){this._hostNodes.forEach((Ve,ht)=>{this._addStylesToHost(he,ht,Ve)})}ngOnDestroy(){this._hostNodes.forEach(he=>he.forEach(Me))}}return je.\u0275fac=function(he){return new(he||je)(u.\u0275\u0275inject(i.DOCUMENT))},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:je.\u0275fac}),je})();function Me(je){(0,i.\u0275getDOM)().remove(je)}const pe={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/"},ye=/%COMP%/g;function st(je){return"_ngcontent-%COMP%".replace(ye,je)}function q(je){return"_nghost-%COMP%".replace(ye,je)}function Pe(je,Ue,he){for(let Ve=0;Ve<Ue.length;Ve++){let ht=Ue[Ve];Array.isArray(ht)?Pe(je,ht,he):(ht=ht.replace(ye,je),he.push(ht))}return he}function J(je){return Ue=>{if("__ngUnwrap__"===Ue)return je;!1===je(Ue)&&(Ue.preventDefault(),Ue.returnValue=!1)}}let Ie=(()=>{class je{constructor(he,Ve,ht){this.eventManager=he,this.sharedStylesHost=Ve,this.appId=ht,this.rendererByCompId=new Map,this.defaultRenderer=new ie(he)}createRenderer(he,Ve){if(!he||!Ve)return this.defaultRenderer;switch(Ve.encapsulation){case u.ViewEncapsulation.Emulated:{let ht=this.rendererByCompId.get(Ve.id);return ht||(ht=new nt(this.eventManager,this.sharedStylesHost,Ve,this.appId),this.rendererByCompId.set(Ve.id,ht)),ht.applyToHost(he),ht}case 1:case u.ViewEncapsulation.ShadowDom:return new ve(this.eventManager,this.sharedStylesHost,he,Ve);default:if(!this.rendererByCompId.has(Ve.id)){const ht=Pe(Ve.id,Ve.styles,[]);this.sharedStylesHost.addStyles(ht),this.rendererByCompId.set(Ve.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return je.\u0275fac=function(he){return new(he||je)(u.\u0275\u0275inject(V),u.\u0275\u0275inject(le),u.\u0275\u0275inject(u.APP_ID))},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:je.\u0275fac}),je})();class ie{constructor(Ue){this.eventManager=Ue,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Ue,he){return he?document.createElementNS(pe[he]||he,Ue):document.createElement(Ue)}createComment(Ue){return document.createComment(Ue)}createText(Ue){return document.createTextNode(Ue)}appendChild(Ue,he){Ue.appendChild(he)}insertBefore(Ue,he,Ve){Ue&&Ue.insertBefore(he,Ve)}removeChild(Ue,he){Ue&&Ue.removeChild(he)}selectRootElement(Ue,he){let Ve="string"==typeof Ue?document.querySelector(Ue):Ue;if(!Ve)throw new Error(`The selector "${Ue}" did not match any elements`);return he||(Ve.textContent=""),Ve}parentNode(Ue){return Ue.parentNode}nextSibling(Ue){return Ue.nextSibling}setAttribute(Ue,he,Ve,ht){if(ht){he=ht+":"+he;const Bt=pe[ht];Bt?Ue.setAttributeNS(Bt,he,Ve):Ue.setAttribute(he,Ve)}else Ue.setAttribute(he,Ve)}removeAttribute(Ue,he,Ve){if(Ve){const ht=pe[Ve];ht?Ue.removeAttributeNS(ht,he):Ue.removeAttribute(`${Ve}:${he}`)}else Ue.removeAttribute(he)}addClass(Ue,he){Ue.classList.add(he)}removeClass(Ue,he){Ue.classList.remove(he)}setStyle(Ue,he,Ve,ht){ht&(u.RendererStyleFlags2.DashCase|u.RendererStyleFlags2.Important)?Ue.style.setProperty(he,Ve,ht&u.RendererStyleFlags2.Important?"important":""):Ue.style[he]=Ve}removeStyle(Ue,he,Ve){Ve&u.RendererStyleFlags2.DashCase?Ue.style.removeProperty(he):Ue.style[he]=""}setProperty(Ue,he,Ve){Ue[he]=Ve}setValue(Ue,he){Ue.nodeValue=he}listen(Ue,he,Ve){return"string"==typeof Ue?this.eventManager.addGlobalEventListener(Ue,he,J(Ve)):this.eventManager.addEventListener(Ue,he,J(Ve))}}class nt extends ie{constructor(Ue,he,Ve,ht){super(Ue),this.component=Ve;const Bt=Pe(ht+"-"+Ve.id,Ve.styles,[]);he.addStyles(Bt),this.contentAttr=st(ht+"-"+Ve.id),this.hostAttr=q(ht+"-"+Ve.id)}applyToHost(Ue){super.setAttribute(Ue,this.hostAttr,"")}createElement(Ue,he){const Ve=super.createElement(Ue,he);return super.setAttribute(Ve,this.contentAttr,""),Ve}}class ve extends ie{constructor(Ue,he,Ve,ht){super(Ue),this.sharedStylesHost=he,this.hostEl=Ve,this.shadowRoot=Ve.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Bt=Pe(ht.id,ht.styles,[]);for(let Nt=0;Nt<Bt.length;Nt++){const dn=document.createElement("style");dn.textContent=Bt[Nt],this.shadowRoot.appendChild(dn)}}nodeOrShadowRoot(Ue){return Ue===this.hostEl?this.shadowRoot:Ue}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(Ue,he){return super.appendChild(this.nodeOrShadowRoot(Ue),he)}insertBefore(Ue,he,Ve){return super.insertBefore(this.nodeOrShadowRoot(Ue),he,Ve)}removeChild(Ue,he){return super.removeChild(this.nodeOrShadowRoot(Ue),he)}parentNode(Ue){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Ue)))}}let $e=(()=>{class je extends fe{constructor(he){super(he)}supports(he){return!0}addEventListener(he,Ve,ht){return he.addEventListener(Ve,ht,!1),()=>this.removeEventListener(he,Ve,ht)}removeEventListener(he,Ve,ht){return he.removeEventListener(Ve,ht)}}return je.\u0275fac=function(he){return new(he||je)(u.\u0275\u0275inject(i.DOCUMENT))},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:je.\u0275fac}),je})();const ct=["alt","control","meta","shift"],Fe={"\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"},Je={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"},Y={alt:je=>je.altKey,control:je=>je.ctrlKey,meta:je=>je.metaKey,shift:je=>je.shiftKey};let me=(()=>{class je extends fe{constructor(he){super(he)}supports(he){return null!=je.parseEventName(he)}addEventListener(he,Ve,ht){const Bt=je.parseEventName(Ve),Nt=je.eventCallback(Bt.fullKey,ht,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.\u0275getDOM)().onAndCancel(he,Bt.domEventName,Nt))}static parseEventName(he){const Ve=he.toLowerCase().split("."),ht=Ve.shift();if(0===Ve.length||"keydown"!==ht&&"keyup"!==ht)return null;const Bt=je._normalizeKey(Ve.pop());let Nt="";if(ct.forEach(Dn=>{const Hn=Ve.indexOf(Dn);Hn>-1&&(Ve.splice(Hn,1),Nt+=Dn+".")}),Nt+=Bt,0!=Ve.length||0===Bt.length)return null;const dn={};return dn.domEventName=ht,dn.fullKey=Nt,dn}static getEventFullKey(he){let Ve="",ht=function we(je){let Ue=je.key;if(null==Ue){if(Ue=je.keyIdentifier,null==Ue)return"Unidentified";Ue.startsWith("U+")&&(Ue=String.fromCharCode(parseInt(Ue.substring(2),16)),3===je.location&&Je.hasOwnProperty(Ue)&&(Ue=Je[Ue]))}return Fe[Ue]||Ue}(he);return ht=ht.toLowerCase()," "===ht?ht="space":"."===ht&&(ht="dot"),ct.forEach(Bt=>{Bt!=ht&&Y[Bt](he)&&(Ve+=Bt+".")}),Ve+=ht,Ve}static eventCallback(he,Ve,ht){return Bt=>{je.getEventFullKey(Bt)===he&&ht.runGuarded(()=>Ve(Bt))}}static _normalizeKey(he){return"esc"===he?"escape":he}}return je.\u0275fac=function(he){return new(he||je)(u.\u0275\u0275inject(i.DOCUMENT))},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:je.\u0275fac}),je})();function Re(){c.makeCurrent(),T.init()}const yt=[{provide:u.PLATFORM_ID,useValue:i.\u0275PLATFORM_BROWSER_ID},{provide:u.PLATFORM_INITIALIZER,useValue:Re,multi:!0},{provide:i.DOCUMENT,useFactory:function Ye(){return(0,u.\u0275setDocument)(document),document},deps:[]}],Ct=(0,u.createPlatformFactory)(u.platformCore,"browser",yt),Ot=[{provide:u.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:u.ErrorHandler,useFactory:function _e(){return new u.ErrorHandler},deps:[]},{provide:x,useClass:$e,multi:!0,deps:[i.DOCUMENT,u.NgZone,u.PLATFORM_ID]},{provide:x,useClass:me,multi:!0,deps:[i.DOCUMENT]},{provide:Ie,useClass:Ie,deps:[V,le,u.APP_ID]},{provide:u.RendererFactory2,useExisting:Ie},{provide:$,useExisting:le},{provide:le,useClass:le,deps:[i.DOCUMENT]},{provide:u.Testability,useClass:u.Testability,deps:[u.NgZone]},{provide:V,useClass:V,deps:[x,u.NgZone]},{provide:i.XhrFactory,useClass:b,deps:[]}];let dt=(()=>{class je{constructor(he){if(he)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(he){return{ngModule:je,providers:[{provide:u.APP_ID,useValue:he.appId},{provide:I,useExisting:u.APP_ID},A]}}}return je.\u0275fac=function(he){return new(he||je)(u.\u0275\u0275inject(je,12))},je.\u0275mod=u.\u0275\u0275defineNgModule({type:je}),je.\u0275inj=u.\u0275\u0275defineInjector({providers:Ot,imports:[i.CommonModule,u.ApplicationModule]}),je})(),N=(()=>{class je{constructor(he){this._doc=he,this._dom=(0,i.\u0275getDOM)()}addTag(he,Ve=!1){return he?this._getOrCreateElement(he,Ve):null}addTags(he,Ve=!1){return he?he.reduce((ht,Bt)=>(Bt&&ht.push(this._getOrCreateElement(Bt,Ve)),ht),[]):[]}getTag(he){return he&&this._doc.querySelector(`meta[${he}]`)||null}getTags(he){if(!he)return[];const Ve=this._doc.querySelectorAll(`meta[${he}]`);return Ve?[].slice.call(Ve):[]}updateTag(he,Ve){if(!he)return null;Ve=Ve||this._parseSelector(he);const ht=this.getTag(Ve);return ht?this._setMetaElementAttributes(he,ht):this._getOrCreateElement(he,!0)}removeTag(he){this.removeTagElement(this.getTag(he))}removeTagElement(he){he&&this._dom.remove(he)}_getOrCreateElement(he,Ve=!1){if(!Ve){const Nt=this._parseSelector(he),dn=this.getTags(Nt).filter(Dn=>this._containsAttributes(he,Dn))[0];if(void 0!==dn)return dn}const ht=this._dom.createElement("meta");return this._setMetaElementAttributes(he,ht),this._doc.getElementsByTagName("head")[0].appendChild(ht),ht}_setMetaElementAttributes(he,Ve){return Object.keys(he).forEach(ht=>Ve.setAttribute(this._getMetaKeyMap(ht),he[ht])),Ve}_parseSelector(he){const Ve=he.name?"name":"property";return`${Ve}="${he[Ve]}"`}_containsAttributes(he,Ve){return Object.keys(he).every(ht=>Ve.getAttribute(this._getMetaKeyMap(ht))===he[ht])}_getMetaKeyMap(he){return oe[he]||he}}return je.\u0275fac=function(he){return new(he||je)(u.\u0275\u0275inject(i.DOCUMENT))},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:function(he){let Ve=null;return Ve=he?new he:function Qe(){return new N((0,u.\u0275\u0275inject)(i.DOCUMENT))}(),Ve},providedIn:"root"}),je})();const oe={httpEquiv:"http-equiv"};let ue=(()=>{class je{constructor(he){this._doc=he}getTitle(){return this._doc.title}setTitle(he){this._doc.title=he||""}}return je.\u0275fac=function(he){return new(he||je)(u.\u0275\u0275inject(i.DOCUMENT))},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:function(he){let Ve=null;return Ve=he?new he:function Oe(){return new ue((0,u.\u0275\u0275inject)(i.DOCUMENT))}(),Ve},providedIn:"root"}),je})();function Ze(je,Ue){"undefined"!=typeof COMPILED&&COMPILED||((u.\u0275global.ng=u.\u0275global.ng||{})[je]=Ue)}const tt="undefined"!=typeof window&&window||{};class ft{constructor(Ue,he){this.msPerTick=Ue,this.numTicks=he}}class pt{constructor(Ue){this.appRef=Ue.injector.get(u.ApplicationRef)}timeChangeDetection(Ue){const he=Ue&&Ue.record,Ve="Change Detection",ht=null!=tt.console.profile;he&&ht&&tt.console.profile(Ve);const Bt=wt();let Nt=0;for(;Nt<5||wt()-Bt<500;)this.appRef.tick(),Nt++;const dn=wt();he&&ht&&tt.console.profileEnd(Ve);const Dn=(dn-Bt)/Nt;return tt.console.log(`ran ${Nt} change detection cycles`),tt.console.log(`${Dn.toFixed(2)} ms per check`),new ft(Dn,Nt)}}function wt(){return tt.performance&&tt.performance.now?tt.performance.now():(new Date).getTime()}const $t="profiler";function nn(je){return Ze($t,new pt(je)),je}function Ht(){Ze($t,null)}function En(je){const Ue={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return je.replace(/[&"'<>]/g,he=>Ue[he])}function zt(je){return je}let St=(()=>{class je{constructor(){this.store={},this.onSerializeCallbacks={}}static init(he){const Ve=new je;return Ve.store=he,Ve}get(he,Ve){return void 0!==this.store[he]?this.store[he]:Ve}set(he,Ve){this.store[he]=Ve}remove(he){delete this.store[he]}hasKey(he){return this.store.hasOwnProperty(he)}onSerialize(he,Ve){this.onSerializeCallbacks[he]=Ve}toJson(){for(const he in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(he))try{this.store[he]=this.onSerializeCallbacks[he]()}catch(Ve){console.warn("Exception in onSerialize callback: ",Ve)}return JSON.stringify(this.store)}}return je.\u0275fac=function(he){return new(he||je)},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:je.\u0275fac}),je})();function bn(je,Ue){const he=je.getElementById(Ue+"-state");let Ve={};if(he&&he.textContent)try{Ve=JSON.parse(function sn(je){const Ue={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return je.replace(/&[^;]+;/g,he=>Ue[he])}(he.textContent))}catch(ht){console.warn("Exception while restoring TransferState for app "+Ue,ht)}return St.init(Ve)}let Zt=(()=>{class je{}return je.\u0275fac=function(he){return new(he||je)},je.\u0275mod=u.\u0275\u0275defineNgModule({type:je}),je.\u0275inj=u.\u0275\u0275defineInjector({providers:[{provide:St,useFactory:bn,deps:[i.DOCUMENT,u.APP_ID]}]}),je})();class an{static all(){return()=>!0}static css(Ue){return he=>null!=he.nativeElement&&function Ge(je,Ue){return!!(0,i.\u0275getDOM)().isElementNode(je)&&(je.matches&&je.matches(Ue)||je.msMatchesSelector&&je.msMatchesSelector(Ue)||je.webkitMatchesSelector&&je.webkitMatchesSelector(Ue))}(he.nativeElement,Ue)}static directive(Ue){return he=>-1!==he.providerTokens.indexOf(Ue)}}const ce={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},L=new u.InjectionToken("HammerGestureConfig"),v=new u.InjectionToken("HammerLoader");let S=(()=>{class je{constructor(){this.events=[],this.overrides={}}buildHammer(he){const Ve=new Hammer(he,this.options);Ve.get("pinch").set({enable:!0}),Ve.get("rotate").set({enable:!0});for(const ht in this.overrides)Ve.get(ht).set(this.overrides[ht]);return Ve}}return je.\u0275fac=function(he){return new(he||je)},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:je.\u0275fac}),je})(),M=(()=>{class je extends fe{constructor(he,Ve,ht,Bt){super(he),this._config=Ve,this.console=ht,this.loader=Bt,this._loaderPromise=null}supports(he){return!(!ce.hasOwnProperty(he.toLowerCase())&&!this.isCustomEvent(he)||!window.Hammer&&!this.loader)}addEventListener(he,Ve,ht){const Bt=this.manager.getZone();if(Ve=Ve.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let Nt=!1,dn=()=>{Nt=!0};return this._loaderPromise.then(()=>{window.Hammer?Nt||(dn=this.addEventListener(he,Ve,ht)):dn=()=>{}}).catch(()=>{dn=()=>{}}),()=>{dn()}}return Bt.runOutsideAngular(()=>{const Nt=this._config.buildHammer(he),dn=function(Dn){Bt.runGuarded(function(){ht(Dn)})};return Nt.on(Ve,dn),()=>{Nt.off(Ve,dn),"function"==typeof Nt.destroy&&Nt.destroy()}})}isCustomEvent(he){return this._config.events.indexOf(he)>-1}}return je.\u0275fac=function(he){return new(he||je)(u.\u0275\u0275inject(i.DOCUMENT),u.\u0275\u0275inject(L),u.\u0275\u0275inject(u.\u0275Console),u.\u0275\u0275inject(v,8))},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:je.\u0275fac}),je})(),G=(()=>{class je{}return je.\u0275fac=function(he){return new(he||je)},je.\u0275mod=u.\u0275\u0275defineNgModule({type:je}),je.\u0275inj=u.\u0275\u0275defineInjector({providers:[{provide:x,useClass:M,multi:!0,deps:[i.DOCUMENT,L,u.\u0275Console,[new u.Optional,v]]},{provide:L,useClass:S,deps:[]}]}),je})(),rt=(()=>{class je{}return je.\u0275fac=function(he){return new(he||je)},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:function(he){let Ve=null;return Ve=he?new(he||je):u.\u0275\u0275inject(Kt),Ve},providedIn:"root"}),je})(),Kt=(()=>{class je extends rt{constructor(he){super(),this._doc=he}sanitize(he,Ve){if(null==Ve)return null;switch(he){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 ${he} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(he){return(0,u.\u0275bypassSanitizationTrustHtml)(he)}bypassSecurityTrustStyle(he){return(0,u.\u0275bypassSanitizationTrustStyle)(he)}bypassSecurityTrustScript(he){return(0,u.\u0275bypassSanitizationTrustScript)(he)}bypassSecurityTrustUrl(he){return(0,u.\u0275bypassSanitizationTrustUrl)(he)}bypassSecurityTrustResourceUrl(he){return(0,u.\u0275bypassSanitizationTrustResourceUrl)(he)}}return je.\u0275fac=function(he){return new(he||je)(u.\u0275\u0275inject(i.DOCUMENT))},je.\u0275prov=u.\u0275\u0275defineInjectable({token:je,factory:function(he){let Ve=null;return Ve=he?new he:function Dt(je){return new Kt(je.get(i.DOCUMENT))}(u.\u0275\u0275inject(u.Injector)),Ve},providedIn:"root"}),je})();const rn=new u.Version("13.1.3")},107:(Le,g,l)=>{"use strict";l.r(g),l.d(g,{MONACO_PATH:()=>T,MonacoDiffEditorComponent:()=>fe,MonacoEditorComponent:()=>V,MonacoEditorLoaderDirective:()=>x,MonacoEditorLoaderService:()=>b,MonacoEditorModule:()=>$});var i=l(5e3),u=l(2722),m=l(9300),c=l(5698),s=l(1135),_=l(6758),C=l(655),D=l(3075);const I=["editor"],h=["diffEditor"],T="MONACO_PATH";let b=(()=>{class le{constructor(pe,ye){this.ngZone=pe,this.monacoPathConfig=ye,this.isMonacoLoaded$=new s.X(!1),this._monacoPath="assets/monaco-editor/min/vs",window.monacoEditorAlreadyInitialized?pe.run(()=>this.isMonacoLoaded$.next(!0)):(window.monacoEditorAlreadyInitialized=!0,this.monacoPathConfig&&(this.monacoPath=this.monacoPathConfig),this.loadMonaco())}set monacoPath(pe){pe&&(this._monacoPath=pe)}loadMonaco(){const pe=()=>{let ke=this._monacoPath;window.amdRequire=window.require;const Xe=!!this.nodeRequire,st=ke.includes("http");Xe&&(window.require=this.nodeRequire,st||(ke=window.require("path").resolve(window.__dirname,this._monacoPath))),window.amdRequire.config({paths:{vs:ke}}),window.amdRequire(["vs/editor/editor.main"],()=>{this.ngZone.run(()=>this.isMonacoLoaded$.next(!0))},q=>console.error("Error loading monaco-editor: ",q))};if(window.amdRequire)return pe();window.require&&(this.addElectronFixScripts(),this.nodeRequire=window.require);const De=document.createElement("script");De.type="text/javascript",De.src=`${this._monacoPath}/loader.js`,De.addEventListener("load",pe),document.body.appendChild(De)}addElectronFixScripts(){const pe=document.createElement("script"),ye=document.createTextNode("self.module = undefined;"),se=document.createTextNode("self.process.browser = true;");pe.appendChild(ye),pe.appendChild(se),document.body.appendChild(pe)}}return le.\u0275fac=function(pe){return new(pe||le)(i.\u0275\u0275inject(i.NgZone),i.\u0275\u0275inject(T,8))},le.\u0275prov=i.\u0275\u0275defineInjectable({token:le,factory:le.\u0275fac,providedIn:"root"}),le})(),x=(()=>{class le{constructor(pe,ye,se){this.templateRef=pe,this.viewContainer=ye,this.monacoEditorLoaderService=se,this.isMonacoLoaded$=this.monacoEditorLoaderService.isMonacoLoaded$.asObservable(),this.destroyed$=new _.x}ngOnInit(){this.isMonacoLoaded$.pipe((0,u.R)(this.destroyed$)).subscribe(pe=>{if(!pe)return this.viewContainer.clear();this.viewContainer.createEmbeddedView(this.templateRef)})}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}return le.\u0275fac=function(pe){return new(pe||le)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(b))},le.\u0275dir=i.\u0275\u0275defineDirective({type:le,selectors:[["","ngxLoadMonacoEditor",""]]}),le})(),V=(()=>{class le{constructor(pe){this.monacoLoader=pe,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)(pe=>pe),(0,c.q)(1)).subscribe(()=>{this.initEditor()})}ngOnChanges(pe){if(this.editor&&pe.options&&!pe.options.firstChange){const ye=pe.options.currentValue,{language:se,theme:De}=ye,ke=(0,C.__rest)(ye,["language","theme"]),{language:Xe,theme:st}=pe.options.previousValue;Xe!==se&&monaco.editor.setModelLanguage(this.editor.getModel(),this.options&&this.options.language?this.options.language:"text"),st!==De&&monaco.editor.setTheme(De),this.editor.updateOptions(ke)}if(this.editor&&pe.uri){const ye=pe.uri.currentValue,se=pe.uri.previousValue;if(se&&!ye||!se&&ye||ye&&se&&ye.path!==se.path){const De=this.editor.getValue();let ke;this.modelUriInstance&&this.modelUriInstance.dispose(),ye&&(ke=monaco.editor.getModels().find(Xe=>Xe.uri.path===ye.path)),this.modelUriInstance=ke||monaco.editor.createModel(De,this.options.language||"text",this.uri),this.editor.setModel(this.modelUriInstance)}}}writeValue(pe){this.value=pe,this.editor&&pe?this.editor.setValue(pe):this.editor&&this.editor.setValue("")}registerOnChange(pe){this.propagateChange=pe}registerOnTouched(pe){this.onTouched=pe}validate(){return this.parsedError?{monaco:{value:this.parsedError.split("|")}}:null}registerOnValidatorChange(pe){this.onErrorStatusChange=pe}initEditor(){const pe={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({},pe),this.options):pe),this.registerEditorListeners(),this.init.emit(this.editor)}registerEditorListeners(){this.editor.onDidChangeModelContent(()=>{this.propagateChange(this.editor.getValue())}),this.editor.onDidChangeModelDecorations(()=>{const pe=this.modelMarkers.map(({message:se})=>se).join("|");this.parsedError!==pe&&(this.parsedError=pe,this.onErrorStatusChange())}),this.editor.onDidBlurEditorText(()=>{this.onTouched()})}ngOnDestroy(){this.editor&&this.editor.dispose()}}return le.\u0275fac=function(pe){return new(pe||le)(i.\u0275\u0275directiveInject(b))},le.\u0275cmp=i.\u0275\u0275defineComponent({type:le,selectors:[["ngx-monaco-editor"]],viewQuery:function(pe,ye){if(1&pe&&i.\u0275\u0275viewQuery(I,7),2&pe){let se;i.\u0275\u0275queryRefresh(se=i.\u0275\u0275loadQuery())&&(ye.editorContent=se.first)}},inputs:{options:"options",uri:"uri"},outputs:{init:"init"},features:[i.\u0275\u0275ProvidersFeature([{provide:D.NG_VALUE_ACCESSOR,useExisting:(0,i.forwardRef)(()=>le),multi:!0},{provide:D.NG_VALIDATORS,useExisting:(0,i.forwardRef)(()=>le),multi:!0}]),i.\u0275\u0275NgOnChangesFeature],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["editor",""]],template:function(pe,ye){1&pe&&(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}),le})(),fe=(()=>{class le{constructor(pe){this.monacoLoader=pe,this.init=new i.EventEmitter}ngOnInit(){this.container=this.editorContent.nativeElement,this.monacoLoader.isMonacoLoaded$.pipe((0,m.h)(pe=>pe),(0,c.q)(1)).subscribe(()=>{this.initMonaco()})}ngOnChanges(pe){if(this.editor&&(pe.code&&!pe.code.firstChange||pe.modified&&!pe.modified.firstChange)){const ye=monaco.editor.createModel(this.modified),se=monaco.editor.createModel(this.original);this.editor.setModel({original:se,modified:ye})}this.editor&&pe.options&&!pe.options.firstChange&&(pe.options.previousValue.theme!==pe.options.currentValue.theme&&monaco.editor.setTheme(pe.options.currentValue.theme),this.editor.updateOptions(pe.options.currentValue))}initMonaco(){let pe={readOnly:!0,automaticLayout:!0,theme:"vc"};this.options&&(pe=Object.assign({},pe,this.options)),this.editor=monaco.editor.createDiffEditor(this.container,pe);const ye=monaco.editor.createModel(this.original),se=monaco.editor.createModel(this.modified);this.editor.setModel({original:ye,modified:se}),this.editor.layout(),this.init.emit(this.editor)}ngOnDestroy(){this.editor&&this.editor.dispose()}}return le.\u0275fac=function(pe){return new(pe||le)(i.\u0275\u0275directiveInject(b))},le.\u0275cmp=i.\u0275\u0275defineComponent({type:le,selectors:[["ngx-monaco-diff-editor"]],viewQuery:function(pe,ye){if(1&pe&&i.\u0275\u0275viewQuery(h,7),2&pe){let se;i.\u0275\u0275queryRefresh(se=i.\u0275\u0275loadQuery())&&(ye.editorContent=se.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(pe,ye){1&pe&&(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}),le})(),$=(()=>{class le{}return le.\u0275fac=function(pe){return new(pe||le)},le.\u0275mod=i.\u0275\u0275defineNgModule({type:le}),le.\u0275inj=i.\u0275\u0275defineInjector({imports:[[]]}),le})()},1430:(Le,g,l)=>{"use strict";l.r(g),l.d(g,{ANGULAR_SPLIT_DEFAULT_OPTIONS:()=>De,AngularSplitModule:()=>st,SplitAreaDirective:()=>Xe,SplitComponent:()=>ke});var i=l(5e3),u=l(9808),m=l(6758),c=l(9751),s=l(8372);const _=["gutterEls"];function C(q,Pe){if(1&q){const J=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",2,3),i.\u0275\u0275listener("mousedown",function(Ie){i.\u0275\u0275restoreView(J);const ie=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().startDragging(Ie,2*ie+1,ie+1)})("touchstart",function(Ie){i.\u0275\u0275restoreView(J);const ie=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().startDragging(Ie,2*ie+1,ie+1)})("mouseup",function(Ie){i.\u0275\u0275restoreView(J);const ie=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().clickGutter(Ie,ie+1)})("touchend",function(Ie){i.\u0275\u0275restoreView(J);const ie=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().clickGutter(Ie,ie+1)}),i.\u0275\u0275element(2,"div",4),i.\u0275\u0275elementEnd()}if(2&q){const J=i.\u0275\u0275nextContext().index,ae=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("flex-basis",ae.gutterSize,"px")("order",2*J+1)}}function D(q,Pe){1&q&&i.\u0275\u0275template(0,C,3,4,"div",1),2&q&&i.\u0275\u0275property("ngIf",!1===Pe.last)}const I=["*"];function h(q){return void 0!==q.changedTouches&&q.changedTouches.length>0?{x:q.changedTouches[0].clientX,y:q.changedTouches[0].clientY}:void 0!==q.clientX&&void 0!==q.clientY?{x:q.clientX,y:q.clientY}:null}function A(q,Pe,J){return Math.abs(q.x-Pe.x)<=J&&Math.abs(q.y-Pe.y)<=J}function T(q,Pe){const J=q.nativeElement.getBoundingClientRect();return"horizontal"===Pe?J.width:J.height}function b(q){return"boolean"==typeof q?q:"false"!==q}function x(q,Pe){return null==q?Pe:(q=Number(q),!isNaN(q)&&q>=0?q:Pe)}function V(q,Pe){if("percent"===q){const J=Pe.reduce((ae,Ie)=>null!==Ie?ae+Ie:ae,0);return Pe.every(ae=>null!==ae)&&J>99.9&&J<100.1}if("pixel"===q)return 1===Pe.filter(J=>null===J).length}function fe(q){return null===q.size?null:!0===q.component.lockSize?q.size:null===q.component.minSize?null:q.component.minSize>q.size?q.size:q.component.minSize}function $(q){return null===q.size?null:!0===q.component.lockSize?q.size:null===q.component.maxSize?null:q.component.maxSize<q.size?q.size:q.component.maxSize}function le(q,Pe,J,ae){return Pe.reduce((Ie,ie)=>{const Ke=function Me(q,Pe,J,ae){return 0===J?{areaSnapshot:Pe,pixelAbsorb:0,percentAfterAbsorption:Pe.sizePercentAtStart,pixelRemain:0}:0===Pe.sizePixelAtStart&&J<0?{areaSnapshot:Pe,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:J}:"percent"===q?function pe(q,Pe,J){const Ie=(q.sizePixelAtStart+Pe)/J*100;if(Pe>0){if(null!==q.area.maxSize&&Ie>q.area.maxSize){const ie=q.area.maxSize/100*J;return{areaSnapshot:q,pixelAbsorb:ie,percentAfterAbsorption:q.area.maxSize,pixelRemain:q.sizePixelAtStart+Pe-ie}}return{areaSnapshot:q,pixelAbsorb:Pe,percentAfterAbsorption:Ie>100?100:Ie,pixelRemain:0}}if(Pe<0){if(null!==q.area.minSize&&Ie<q.area.minSize){const ie=q.area.minSize/100*J;return{areaSnapshot:q,pixelAbsorb:ie,percentAfterAbsorption:q.area.minSize,pixelRemain:q.sizePixelAtStart+Pe-ie}}return Ie<0?{areaSnapshot:q,pixelAbsorb:-q.sizePixelAtStart,percentAfterAbsorption:0,pixelRemain:Pe+q.sizePixelAtStart}:{areaSnapshot:q,pixelAbsorb:Pe,percentAfterAbsorption:Ie,pixelRemain:0}}}(Pe,J,ae):"pixel"===q?function ye(q,Pe,J){const ae=q.sizePixelAtStart+Pe;return Pe>0?null!==q.area.maxSize&&ae>q.area.maxSize?{areaSnapshot:q,pixelAbsorb:q.area.maxSize-q.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:ae-q.area.maxSize}:{areaSnapshot:q,pixelAbsorb:Pe,percentAfterAbsorption:-1,pixelRemain:0}:Pe<0?null!==q.area.minSize&&ae<q.area.minSize?{areaSnapshot:q,pixelAbsorb:q.area.minSize+Pe-ae,percentAfterAbsorption:-1,pixelRemain:ae-q.area.minSize}:ae<0?{areaSnapshot:q,pixelAbsorb:-q.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:Pe+q.sizePixelAtStart}:{areaSnapshot:q,pixelAbsorb:Pe,percentAfterAbsorption:-1,pixelRemain:0}:void 0}(Pe,J):void 0}(q,ie,Ie.remain,ae);return Ie.list.push(Ke),Ie.remain=Ke.pixelRemain,Ie},{remain:J,list:[]})}function se(q,Pe){"percent"===q?Pe.areaSnapshot.area.size=Pe.percentAfterAbsorption:"pixel"===q&&null!==Pe.areaSnapshot.area.size&&(Pe.areaSnapshot.area.size=Pe.areaSnapshot.sizePixelAtStart+Pe.pixelAbsorb)}const De=new i.InjectionToken("angular-split-global-config");let ke=(()=>{class q{constructor(J,ae,Ie,ie,Ke){this.ngZone=J,this.elRef=ae,this.cdRef=Ie,this.renderer=ie,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=Ke?Object.assign(this._config,Ke):this._config,Object.keys(this._config).forEach(ge=>{this[ge]=this._config[ge]})}set direction(J){this._direction="vertical"===J?"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(J){this._unit="pixel"===J?"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(J){this._gutterSize=x(J,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(J){this._gutterStep=x(J,1)}get gutterStep(){return this._gutterStep}set restrictMove(J){this._restrictMove=b(J)}get restrictMove(){return this._restrictMove}set useTransition(J){this._useTransition=b(J),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(J){this._disabled=b(J),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(J){this._dir="rtl"===J?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(J){this._gutterDblClickDuration=x(J,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new c.y(J=>this.transitionEndSubscriber=J).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(J){const ae={component:J,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===J.visible?(this.displayedAreas.push(ae),this.build(!0,!0)):this.hiddenAreas.push(ae)}removeArea(J){if(this.displayedAreas.some(ae=>ae.component===J)){const ae=this.displayedAreas.find(Ie=>Ie.component===J);this.displayedAreas.splice(this.displayedAreas.indexOf(ae),1),this.build(!0,!0)}else if(this.hiddenAreas.some(ae=>ae.component===J)){const ae=this.hiddenAreas.find(Ie=>Ie.component===J);this.hiddenAreas.splice(this.hiddenAreas.indexOf(ae),1)}}updateArea(J,ae,Ie){!0===J.visible&&this.build(ae,Ie)}showArea(J){const ae=this.hiddenAreas.find(ie=>ie.component===J);if(void 0===ae)return;const Ie=this.hiddenAreas.splice(this.hiddenAreas.indexOf(ae),1);this.displayedAreas.push(...Ie),this.build(!0,!0)}hideArea(J){const ae=this.displayedAreas.find(ie=>ie.component===J);if(void 0===ae)return;const Ie=this.displayedAreas.splice(this.displayedAreas.indexOf(ae),1);Ie.forEach(ie=>{ie.order=0,ie.size=0}),this.hiddenAreas.push(...Ie),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(J=>null===J.size?"*":J.size)}setVisibleAreaSizes(J){if(J.length!==this.displayedAreas.length)return!1;const ae=J.map(ie=>x(ie,null));return!1!==V(this.unit,ae)&&(this.displayedAreas.forEach((ie,Ke)=>ie.component._size=ae[Ke]),this.build(!1,!0),!0)}build(J,ae){if(this.stopDragging(),!0===J&&(this.displayedAreas.every(Ie=>null!==Ie.component.order)&&this.displayedAreas.sort((Ie,ie)=>Ie.component.order-ie.component.order),this.displayedAreas.forEach((Ie,ie)=>{Ie.order=2*ie,Ie.component.setStyleOrder(Ie.order)})),!0===ae){const Ie=V(this.unit,this.displayedAreas.map(ie=>ie.component.size));switch(this.unit){case"percent":{const ie=100/this.displayedAreas.length;this.displayedAreas.forEach(Ke=>{Ke.size=Ie?Ke.component.size:ie,Ke.minSize=fe(Ke),Ke.maxSize=$(Ke)});break}case"pixel":if(Ie)this.displayedAreas.forEach(ie=>{ie.size=ie.component.size,ie.minSize=fe(ie),ie.maxSize=$(ie)});else{const ie=this.displayedAreas.filter(Ke=>null===Ke.component.size);if(0===ie.length&&this.displayedAreas.length>0)this.displayedAreas.forEach((Ke,ge)=>{Ke.size=0===ge?null:Ke.component.size,Ke.minSize=0===ge?null:fe(Ke),Ke.maxSize=0===ge?null:$(Ke)});else if(ie.length>1){let Ke=!1;this.displayedAreas.forEach(ge=>{null===ge.component.size?!1===Ke?(ge.size=null,ge.minSize=null,ge.maxSize=null,Ke=!0):(ge.size=100,ge.minSize=null,ge.maxSize=null):(ge.size=ge.component.size,ge.minSize=fe(ge),ge.maxSize=$(ge))})}}}}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 J=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(ae=>{ae.component.setStyleFlex(0,0,`calc( ${ae.size}% - ${ae.size/100*J}px )`,null!==ae.minSize&&ae.minSize===ae.size,null!==ae.maxSize&&ae.maxSize===ae.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach(J=>{null===J.size?J.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?J.component.setStyleFlex(0,0,"100%",!1,!1):J.component.setStyleFlex(0,0,`${J.size}px`,null!==J.minSize&&J.minSize===J.size,null!==J.maxSize&&J.maxSize===J.size)})}clickGutter(J,ae){const Ie=h(J);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",ae),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",ae),this.stopDragging()},this.gutterDblClickDuration))}startDragging(J,ae,Ie){J.preventDefault(),J.stopPropagation(),this.startPoint=h(J),null!==this.startPoint&&!0!==this.disabled&&!0!==this.isWaitingClear&&(this.snapshot={gutterNum:Ie,lastSteppedOffset:0,allAreasSizePixel:T(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(ie=>{const Ke={area:ie,sizePixelAtStart:T(ie.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?ie.size:-1};ie.order<ae?!0===this.restrictMove?this.snapshot.areasBeforeGutter=[Ke]:this.snapshot.areasBeforeGutter.unshift(Ke):ie.order>ae&&(!0===this.restrictMove?0===this.snapshot.areasAfterGutter.length&&(this.snapshot.areasAfterGutter=[Ke]):this.snapshot.areasAfterGutter.push(Ke))}),this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((ie,Ke)=>ie+Ke.sizePercentAtStart,0),0!==this.snapshot.areasBeforeGutter.length&&0!==this.snapshot.areasAfterGutter.length&&(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.dragEvent.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchmove",this.dragEvent.bind(this)))}),this.displayedAreas.forEach(ie=>ie.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0))}dragEvent(J){J.preventDefault(),J.stopPropagation();const ae=h(J);if(null!==this._clickTimeout&&!A(this.startPoint,ae,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1===this.isDragging||(this.endPoint=h(J),null===this.endPoint))return;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 Ie="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&(Ie=-Ie);const ie=Math.round(Ie/this.gutterStep)*this.gutterStep;if(ie===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=ie;let Ke=le(this.unit,this.snapshot.areasBeforeGutter,-ie,this.snapshot.allAreasSizePixel),ge=le(this.unit,this.snapshot.areasAfterGutter,ie,this.snapshot.allAreasSizePixel);if(0!==Ke.remain&&0!==ge.remain?Math.abs(Ke.remain)===Math.abs(ge.remain)||(Math.abs(Ke.remain)>Math.abs(ge.remain)?ge=le(this.unit,this.snapshot.areasAfterGutter,ie+Ke.remain,this.snapshot.allAreasSizePixel):Ke=le(this.unit,this.snapshot.areasBeforeGutter,-(ie-ge.remain),this.snapshot.allAreasSizePixel)):0!==Ke.remain?ge=le(this.unit,this.snapshot.areasAfterGutter,ie+Ke.remain,this.snapshot.allAreasSizePixel):0!==ge.remain&&(Ke=le(this.unit,this.snapshot.areasBeforeGutter,-(ie-ge.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const nt=[...Ke.list,...ge.list],ve=nt.find($e=>0!==$e.percentAfterAbsorption&&$e.percentAfterAbsorption!==$e.areaSnapshot.area.minSize&&$e.percentAfterAbsorption!==$e.areaSnapshot.area.maxSize);ve&&(ve.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-nt.filter($e=>$e!==ve).reduce(($e,ct)=>$e+ct.percentAfterAbsorption,0))}Ke.list.forEach(nt=>se(this.unit,nt)),ge.list.forEach(nt=>se(this.unit,nt)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(J){if(J&&(J.preventDefault(),J.stopPropagation()),!1!==this.isDragging){for(this.displayedAreas.forEach(ae=>ae.component.unlockEvents());this.dragListeners.length>0;){const ae=this.dragListeners.pop();ae&&ae()}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(J,ae){const Ie=this.getVisibleAreaSizes();"start"===J?this.dragStart.emit({gutterNum:ae,sizes:Ie}):"end"===J?this.dragEnd.emit({gutterNum:ae,sizes:Ie}):"click"===J?this.gutterClick.emit({gutterNum:ae,sizes:Ie}):"dblclick"===J?this.gutterDblClick.emit({gutterNum:ae,sizes:Ie}):"transitionEnd"===J?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(Ie)):"progress"===J&&this.dragProgressSubject.next({gutterNum:ae,sizes:Ie})}ngOnDestroy(){this.stopDragging()}collapseArea(J,ae,Ie){const ie=this.displayedAreas.find(nt=>nt.component===J);if(void 0===ie)return;const Ke="right"===Ie?1:-1;ie.sizeBeforeCollapse||(ie.sizeBeforeCollapse=ie.size,ie.gutterBeforeCollapse=Ke),ie.size=ae;const ge=this.gutterEls.find(nt=>nt.nativeElement.style.order===`${ie.order+Ke}`);ge&&this.renderer.addClass(ge.nativeElement,"as-split-gutter-collapsed"),this.updateArea(J,!1,!1)}expandArea(J){const ae=this.displayedAreas.find(ie=>ie.component===J);if(void 0===ae||!ae.sizeBeforeCollapse)return;ae.size=ae.sizeBeforeCollapse,ae.sizeBeforeCollapse=null;const Ie=this.gutterEls.find(ie=>ie.nativeElement.style.order===`${ae.order+ae.gutterBeforeCollapse}`);Ie&&this.renderer.removeClass(Ie.nativeElement,"as-split-gutter-collapsed"),this.updateArea(J,!1,!1)}}return q.\u0275fac=function(J){return new(J||q)(i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(De,8))},q.\u0275cmp=i.\u0275\u0275defineComponent({type:q,selectors:[["as-split"]],viewQuery:function(J,ae){if(1&J&&i.\u0275\u0275viewQuery(_,5),2&J){let Ie;i.\u0275\u0275queryRefresh(Ie=i.\u0275\u0275loadQuery())&&(ae.gutterEls=Ie)}},inputs:{direction:"direction",unit:"unit",gutterSize:"gutterSize",gutterStep:"gutterStep",restrictMove:"restrictMove",useTransition:"useTransition",disabled:"disabled",dir:"dir",gutterDblClickDuration:"gutterDblClickDuration",gutterClickDeltaPx:"gutterClickDeltaPx"},outputs:{transitionEnd:"transitionEnd",dragStart:"dragStart",dragEnd:"dragEnd",gutterClick:"gutterClick",gutterDblClick:"gutterDblClick"},exportAs:["asSplit"],ngContentSelectors:I,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],["class","as-split-gutter",3,"flex-basis","order","mousedown","touchstart","mouseup","touchend",4,"ngIf"],[1,"as-split-gutter",3,"mousedown","touchstart","mouseup","touchend"],["gutterEls",""],[1,"as-split-gutter-icon"]],template:function(J,ae){1&J&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275projection(0),i.\u0275\u0275template(1,D,1,1,"ng-template",0)),2&J&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",ae.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%]{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}),q})(),Xe=(()=>{class q{constructor(J,ae,Ie,ie){this.ngZone=J,this.elRef=ae,this.renderer=Ie,this.split=ie,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(J){this._order=x(J,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(J){this._size=x(J,null),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(J){this._minSize=x(J,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(J){this._maxSize=x(J,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(J){this._lockSize=b(J),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(J){this._visible=b(J),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",J=>{"flex-basis"===J.propertyName&&this.split.notify("transitionEnd",-1)})})}setStyleOrder(J){this.renderer.setStyle(this.elRef.nativeElement,"order",J)}setStyleFlex(J,ae,Ie,ie,Ke){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",J),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",ae),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",Ie),!0===ie?this.renderer.addClass(this.elRef.nativeElement,"as-min"):this.renderer.removeClass(this.elRef.nativeElement,"as-min"),!0===Ke?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 J=this.lockListeners.pop();J&&J()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.split.removeArea(this)}collapse(J=0,ae="right"){this.split.collapseArea(this,J,ae)}expand(){this.split.expandArea(this)}}return q.\u0275fac=function(J){return new(J||q)(i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(ke))},q.\u0275dir=i.\u0275\u0275defineDirective({type:q,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]}),q})(),st=(()=>{class q{static forRoot(){return console.warn("AngularSplitModule.forRoot() is deprecated and will be removed in v6"),{ngModule:q,providers:[]}}static forChild(){return console.warn("AngularSplitModule.forChild() is deprecated and will be removed in v6"),{ngModule:q,providers:[]}}}return q.\u0275fac=function(J){return new(J||q)},q.\u0275mod=i.\u0275\u0275defineNgModule({type:q}),q.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.CommonModule]]}),q})()},2290:(Le,g,l)=>{"use strict";l.r(g),l.d(g,{BasePortalHost:()=>se,ComponentPortal:()=>ye,DefaultGlobalConfig:()=>ge,DefaultNoAnimationsGlobalConfig:()=>ct,DefaultNoComponentGlobalConfig:()=>ke,Overlay:()=>Ie,OverlayContainer:()=>ae,OverlayRef:()=>J,TOAST_CONFIG:()=>Xe,Toast:()=>Ke,ToastContainerDirective:()=>Me,ToastContainerModule:()=>pe,ToastInjector:()=>q,ToastNoAnimation:()=>$e,ToastNoAnimationModule:()=>Tt,ToastPackage:()=>De,ToastRef:()=>st,ToastrComponentlessModule:()=>ve,ToastrModule:()=>nt,ToastrService:()=>ie});var i=l(5e3),u=l(1777),m=l(6758),c=l(9808),s=l(2313);const _=["toast-component",""];function C(Fe,Je){if(1&Fe){const Y=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",5),i.\u0275\u0275listener("click",function(){return i.\u0275\u0275restoreView(Y),i.\u0275\u0275nextContext().remove()}),i.\u0275\u0275elementStart(1,"span",6),i.\u0275\u0275text(2,"\xd7"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementEnd()}}function D(Fe,Je){if(1&Fe&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&Fe){const Y=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("[",Y.duplicatesCount+1,"]")}}function I(Fe,Je){if(1&Fe&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275text(1),i.\u0275\u0275template(2,D,2,1,"ng-container",4),i.\u0275\u0275elementEnd()),2&Fe){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Y.options.titleClass),i.\u0275\u0275attribute("aria-label",Y.title),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Y.title," "),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",Y.duplicatesCount)}}function h(Fe,Je){if(1&Fe&&i.\u0275\u0275element(0,"div",7),2&Fe){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Y.options.messageClass),i.\u0275\u0275property("innerHTML",Y.message,i.\u0275\u0275sanitizeHtml)}}function A(Fe,Je){if(1&Fe&&(i.\u0275\u0275elementStart(0,"div",8),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&Fe){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Y.options.messageClass),i.\u0275\u0275attribute("aria-label",Y.message),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Y.message," ")}}function T(Fe,Je){if(1&Fe&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275element(1,"div",9),i.\u0275\u0275elementEnd()),2&Fe){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275styleProp("width",Y.width+"%")}}function b(Fe,Je){if(1&Fe){const Y=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"button",5),i.\u0275\u0275listener("click",function(){return i.\u0275\u0275restoreView(Y),i.\u0275\u0275nextContext().remove()}),i.\u0275\u0275elementStart(1,"span",6),i.\u0275\u0275text(2,"\xd7"),i.\u0275\u0275elementEnd(),i.\u0275\u0275elementEnd()}}function x(Fe,Je){if(1&Fe&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&Fe){const Y=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("[",Y.duplicatesCount+1,"]")}}function V(Fe,Je){if(1&Fe&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275text(1),i.\u0275\u0275template(2,x,2,1,"ng-container",4),i.\u0275\u0275elementEnd()),2&Fe){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Y.options.titleClass),i.\u0275\u0275attribute("aria-label",Y.title),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Y.title," "),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",Y.duplicatesCount)}}function fe(Fe,Je){if(1&Fe&&i.\u0275\u0275element(0,"div",7),2&Fe){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Y.options.messageClass),i.\u0275\u0275property("innerHTML",Y.message,i.\u0275\u0275sanitizeHtml)}}function $(Fe,Je){if(1&Fe&&(i.\u0275\u0275elementStart(0,"div",8),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&Fe){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Y.options.messageClass),i.\u0275\u0275attribute("aria-label",Y.message),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1(" ",Y.message," ")}}function le(Fe,Je){if(1&Fe&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275element(1,"div",9),i.\u0275\u0275elementEnd()),2&Fe){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275styleProp("width",Y.width+"%")}}let Me=(()=>{class Fe{constructor(Y){this.el=Y}getContainerElement(){return this.el.nativeElement}}return Fe.\u0275fac=function(Y){return new(Y||Fe)(i.\u0275\u0275directiveInject(i.ElementRef))},Fe.\u0275dir=i.\u0275\u0275defineDirective({type:Fe,selectors:[["","toastContainer",""]],exportAs:["toastContainer"]}),Fe})(),pe=(()=>{class Fe{}return Fe.\u0275fac=function(Y){return new(Y||Fe)},Fe.\u0275mod=i.\u0275\u0275defineNgModule({type:Fe}),Fe.\u0275inj=i.\u0275\u0275defineInjector({}),Fe})();class ye{constructor(Je,Y){this.component=Je,this.injector=Y}attach(Je,Y){return this._attachedHost=Je,Je.attach(this,Y)}detach(){const Je=this._attachedHost;if(Je)return this._attachedHost=void 0,Je.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(Je){this._attachedHost=Je}}class se{attach(Je,Y){return this._attachedPortal=Je,this.attachComponentPortal(Je,Y)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(Je){this._disposeFn=Je}}class De{constructor(Je,Y,me,we,Re,_e){this.toastId=Je,this.config=Y,this.message=me,this.title=we,this.toastType=Re,this.toastRef=_e,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(Je){this._onAction.next(Je)}onAction(){return this._onAction.asObservable()}}const ke={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},Xe=new i.InjectionToken("ToastConfig");class st{constructor(Je){this._overlayRef=Je,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(Je,Y){Je&&this._resetTimeout.next(),Y&&this._countDuplicate.next(++this.duplicatesCount)}}class q{constructor(Je,Y){this._toastPackage=Je,this._parentInjector=Y}get(Je,Y,me){return Je===De?this._toastPackage:this._parentInjector.get(Je,Y,me)}}class Pe extends se{constructor(Je,Y,me){super(),this._hostDomElement=Je,this._componentFactoryResolver=Y,this._appRef=me}attachComponentPortal(Je,Y){const me=this._componentFactoryResolver.resolveComponentFactory(Je.component);let we;return we=me.create(Je.injector),this._appRef.attachView(we.hostView),this.setDisposeFn(()=>{this._appRef.detachView(we.hostView),we.destroy()}),Y?this._hostDomElement.insertBefore(this._getComponentRootNode(we),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(we)),we}_getComponentRootNode(Je){return Je.hostView.rootNodes[0]}}class J{constructor(Je){this._portalHost=Je}attach(Je,Y=!0){return this._portalHost.attach(Je,Y)}detach(){return this._portalHost.detach()}}let ae=(()=>{class Fe{constructor(Y){this._document=Y}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Y=this._document.createElement("div");Y.classList.add("overlay-container"),this._document.body.appendChild(Y),this._containerElement=Y}}return Fe.\u0275fac=function(Y){return new(Y||Fe)(i.\u0275\u0275inject(c.DOCUMENT))},Fe.\u0275prov=i.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac,providedIn:"root"}),Fe})(),Ie=(()=>{class Fe{constructor(Y,me,we,Re){this._overlayContainer=Y,this._componentFactoryResolver=me,this._appRef=we,this._document=Re,this._paneElements=new Map}create(Y,me){return this._createOverlayRef(this.getPaneElement(Y,me))}getPaneElement(Y="",me){return this._paneElements.get(me)||this._paneElements.set(me,{}),this._paneElements.get(me)[Y]||(this._paneElements.get(me)[Y]=this._createPaneElement(Y,me)),this._paneElements.get(me)[Y]}_createPaneElement(Y,me){const we=this._document.createElement("div");return we.id="toast-container",we.classList.add(Y),we.classList.add("toast-container"),me?me.getContainerElement().appendChild(we):this._overlayContainer.getContainerElement().appendChild(we),we}_createPortalHost(Y){return new Pe(Y,this._componentFactoryResolver,this._appRef)}_createOverlayRef(Y){return new J(this._createPortalHost(Y))}}return Fe.\u0275fac=function(Y){return new(Y||Fe)(i.\u0275\u0275inject(ae),i.\u0275\u0275inject(i.ComponentFactoryResolver),i.\u0275\u0275inject(i.ApplicationRef),i.\u0275\u0275inject(c.DOCUMENT))},Fe.\u0275prov=i.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac,providedIn:"root"}),Fe})(),ie=(()=>{class Fe{constructor(Y,me,we,Re,_e){this.overlay=me,this._injector=we,this.sanitizer=Re,this.ngZone=_e,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},Y.default),Y.config),Y.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},Y.default.iconClasses),Y.config.iconClasses))}show(Y,me,we={},Re=""){return this._preBuildNotification(Re,Y,me,this.applyConfig(we))}success(Y,me,we={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",Y,me,this.applyConfig(we))}error(Y,me,we={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",Y,me,this.applyConfig(we))}info(Y,me,we={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",Y,me,this.applyConfig(we))}warning(Y,me,we={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",Y,me,this.applyConfig(we))}clear(Y){for(const me of this.toasts)if(void 0!==Y){if(me.toastId===Y)return void me.toastRef.manualClose()}else me.toastRef.manualClose()}remove(Y){const me=this._findToast(Y);if(!me||(me.activeToast.toastRef.close(),this.toasts.splice(me.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(Y="",me="",we,Re){const{includeTitleDuplicates:_e}=this.toastrConfig;for(const Ye of this.toasts){const yt=_e&&Ye.title===Y;if((!_e||yt)&&Ye.message===me)return Ye.toastRef.onDuplicate(we,Re),Ye}return null}applyConfig(Y={}){return Object.assign(Object.assign({},this.toastrConfig),Y)}_findToast(Y){for(let me=0;me<this.toasts.length;me++)if(this.toasts[me].toastId===Y)return{index:me,activeToast:this.toasts[me]};return null}_preBuildNotification(Y,me,we,Re){return Re.onActivateTick?this.ngZone.run(()=>this._buildNotification(Y,me,we,Re)):this._buildNotification(Y,me,we,Re)}_buildNotification(Y,me,we,Re){if(!Re.toastComponent)throw new Error("toastComponent required");const _e=this.findDuplicate(we,me,this.toastrConfig.resetTimeoutOnDuplicate&&Re.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&we||me)&&this.toastrConfig.preventDuplicates&&null!==_e)return _e;this.previousToastMessage=me;let Ye=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(Ye=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const yt=this.overlay.create(Re.positionClass,this.overlayContainer);this.index=this.index+1;let Ct=me;me&&Re.enableHtml&&(Ct=this.sanitizer.sanitize(i.SecurityContext.HTML,me));const Ot=new st(yt),dt=new De(this.index,Re,Ct,we,Y,Ot),Qe=new q(dt,this._injector),N=new ye(Re.toastComponent,Qe),oe=yt.attach(N,this.toastrConfig.newestOnTop);Ot.componentInstance=oe.instance;const Oe={toastId:this.index,title:we||"",message:me||"",toastRef:Ot,onShown:Ot.afterActivate(),onHidden:Ot.afterClosed(),onTap:dt.onTap(),onAction:dt.onAction(),portal:oe};return Ye||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Oe.toastRef.activate()})),this.toasts.push(Oe),Oe}}return Fe.\u0275fac=function(Y){return new(Y||Fe)(i.\u0275\u0275inject(Xe),i.\u0275\u0275inject(Ie),i.\u0275\u0275inject(i.Injector),i.\u0275\u0275inject(s.DomSanitizer),i.\u0275\u0275inject(i.NgZone))},Fe.\u0275prov=i.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac,providedIn:"root"}),Fe})(),Ke=(()=>{class Fe{constructor(Y,me,we){this.toastrService=Y,this.toastPackage=me,this.ngZone=we,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=me.message,this.title=me.title,this.options=me.config,this.originalTimeout=me.config.timeOut,this.toastClasses=`${me.toastType} ${me.config.toastClass}`,this.sub=me.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=me.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=me.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=me.toastRef.countDuplicate().subscribe(Re=>{this.duplicatesCount=Re})}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 Y=(new Date).getTime();this.width=(this.hideTime-Y)/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(Y,me){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(Y),me)):this.timeout=setTimeout(()=>Y(),me)}outsideInterval(Y,me){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(Y),me)):this.intervalId=setInterval(()=>Y(),me)}runInsideAngular(Y){this.ngZone?this.ngZone.run(()=>Y()):Y()}}return Fe.\u0275fac=function(Y){return new(Y||Fe)(i.\u0275\u0275directiveInject(ie),i.\u0275\u0275directiveInject(De),i.\u0275\u0275directiveInject(i.NgZone))},Fe.\u0275cmp=i.\u0275\u0275defineComponent({type:Fe,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(Y,me){1&Y&&i.\u0275\u0275listener("click",function(){return me.tapToast()})("mouseenter",function(){return me.stickAround()})("mouseleave",function(){return me.delayedHideToast()}),2&Y&&(i.\u0275\u0275syntheticHostProperty("@flyInOut",me.state),i.\u0275\u0275classMap(me.toastClasses),i.\u0275\u0275styleProp("display",me.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(Y,me){1&Y&&(i.\u0275\u0275template(0,C,3,0,"button",0),i.\u0275\u0275template(1,I,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&Y&&(i.\u0275\u0275property("ngIf",me.options.closeButton),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",me.title),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",me.message&&me.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",me.message&&!me.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",me.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 }}"))])]}}),Fe})();const ge=Object.assign(Object.assign({},ke),{toastComponent:Ke});let nt=(()=>{class Fe{static forRoot(Y={}){return{ngModule:Fe,providers:[{provide:Xe,useValue:{default:ge,config:Y}}]}}}return Fe.\u0275fac=function(Y){return new(Y||Fe)},Fe.\u0275mod=i.\u0275\u0275defineNgModule({type:Fe}),Fe.\u0275inj=i.\u0275\u0275defineInjector({imports:[[c.CommonModule]]}),Fe})(),ve=(()=>{class Fe{static forRoot(Y={}){return{ngModule:nt,providers:[{provide:Xe,useValue:{default:ke,config:Y}}]}}}return Fe.\u0275fac=function(Y){return new(Y||Fe)},Fe.\u0275mod=i.\u0275\u0275defineNgModule({type:Fe}),Fe.\u0275inj=i.\u0275\u0275defineInjector({imports:[[c.CommonModule]]}),Fe})(),$e=(()=>{class Fe{constructor(Y,me,we){this.toastrService=Y,this.toastPackage=me,this.appRef=we,this.width=-1,this.toastClasses="",this.state="inactive",this.message=me.message,this.title=me.title,this.options=me.config,this.originalTimeout=me.config.timeOut,this.toastClasses=`${me.toastType} ${me.config.toastClass}`,this.sub=me.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=me.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=me.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=me.toastRef.countDuplicate().subscribe(Re=>{this.duplicatesCount=Re})}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 Y=(new Date).getTime();this.width=(this.hideTime-Y)/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 Fe.\u0275fac=function(Y){return new(Y||Fe)(i.\u0275\u0275directiveInject(ie),i.\u0275\u0275directiveInject(De),i.\u0275\u0275directiveInject(i.ApplicationRef))},Fe.\u0275cmp=i.\u0275\u0275defineComponent({type:Fe,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(Y,me){1&Y&&i.\u0275\u0275listener("click",function(){return me.tapToast()})("mouseenter",function(){return me.stickAround()})("mouseleave",function(){return me.delayedHideToast()}),2&Y&&(i.\u0275\u0275classMap(me.toastClasses),i.\u0275\u0275styleProp("display",me.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(Y,me){1&Y&&(i.\u0275\u0275template(0,b,3,0,"button",0),i.\u0275\u0275template(1,V,3,5,"div",1),i.\u0275\u0275template(2,fe,1,3,"div",2),i.\u0275\u0275template(3,$,2,4,"div",3),i.\u0275\u0275template(4,le,2,2,"div",4)),2&Y&&(i.\u0275\u0275property("ngIf",me.options.closeButton),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",me.title),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",me.message&&me.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",me.message&&!me.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",me.options.progressBar))},directives:[c.NgIf],encapsulation:2}),Fe})();const ct=Object.assign(Object.assign({},ke),{toastComponent:$e});let Tt=(()=>{class Fe{static forRoot(Y={}){return{ngModule:Fe,providers:[{provide:Xe,useValue:{default:ct,config:Y}}]}}}return Fe.\u0275fac=function(Y){return new(Y||Fe)},Fe.\u0275mod=i.\u0275\u0275defineNgModule({type:Fe}),Fe.\u0275inj=i.\u0275\u0275defineInjector({imports:[[c.CommonModule]]}),Fe})()},4147:Le=>{"use strict";Le.exports=JSON.parse('{"name":"@sdkgen/playground","version":"0.0.0-dev.20220124175413","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.20220124175413","@sdkgen/csharp-generator":"0.0.0-dev.20220124175413","@sdkgen/dart-generator":"0.0.0-dev.20220124175413","@sdkgen/fsharp-generator":"0.0.0-dev.20220124175413","@sdkgen/kotlin-generator":"0.0.0-dev.20220124175413","@sdkgen/parser":"0.0.0-dev.20220124175413","@sdkgen/swift-generator":"0.0.0-dev.20220124175413","@sdkgen/typescript-generator":"0.0.0-dev.20220124175413"},"devDependencies":{"@angular-devkit/build-angular":"~13.1.2","@angular/animations":"~13.1.2","@angular/cdk":"~13.1.2","@angular/cli":"~13.1.2","@angular/common":"~13.1.2","@angular/compiler":"~13.1.2","@angular/compiler-cli":"~13.1.2","@angular/core":"~13.1.2","@angular/forms":"~13.1.2","@angular/material":"~13.1.2","@angular/platform-browser":"~13.1.2","@angular/platform-browser-dynamic":"~13.1.2","@angular/router":"~13.1.2","@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.31.1","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"}}')}},Le=>{Le(Le.s=4431)}]);